port.ActionPermissions
Explore with Pulumi AI
Create ActionPermissions Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ActionPermissions(name: string, args: ActionPermissionsArgs, opts?: CustomResourceOptions);
@overload
def ActionPermissions(resource_name: str,
args: ActionPermissionsArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ActionPermissions(resource_name: str,
opts: Optional[ResourceOptions] = None,
action_identifier: Optional[str] = None,
permissions: Optional[ActionPermissionsPermissionsArgs] = None,
blueprint_identifier: Optional[str] = None)
func NewActionPermissions(ctx *Context, name string, args ActionPermissionsArgs, opts ...ResourceOption) (*ActionPermissions, error)
public ActionPermissions(string name, ActionPermissionsArgs args, CustomResourceOptions? opts = null)
public ActionPermissions(String name, ActionPermissionsArgs args)
public ActionPermissions(String name, ActionPermissionsArgs args, CustomResourceOptions options)
type: port:ActionPermissions
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ActionPermissionsArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ActionPermissionsArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ActionPermissionsArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ActionPermissionsArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ActionPermissionsArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var actionPermissionsResource = new Port.ActionPermissions("actionPermissionsResource", new()
{
ActionIdentifier = "string",
Permissions = new Port.Inputs.ActionPermissionsPermissionsArgs
{
Approve = new Port.Inputs.ActionPermissionsPermissionsApproveArgs
{
Policy = "string",
Roles = new[]
{
"string",
},
Teams = new[]
{
"string",
},
Users = new[]
{
"string",
},
},
Execute = new Port.Inputs.ActionPermissionsPermissionsExecuteArgs
{
OwnedByTeam = false,
Policy = "string",
Roles = new[]
{
"string",
},
Teams = new[]
{
"string",
},
Users = new[]
{
"string",
},
},
},
});
example, err := port.NewActionPermissions(ctx, "actionPermissionsResource", &port.ActionPermissionsArgs{
ActionIdentifier: pulumi.String("string"),
Permissions: &port.ActionPermissionsPermissionsArgs{
Approve: &port.ActionPermissionsPermissionsApproveArgs{
Policy: pulumi.String("string"),
Roles: pulumi.StringArray{
pulumi.String("string"),
},
Teams: pulumi.StringArray{
pulumi.String("string"),
},
Users: pulumi.StringArray{
pulumi.String("string"),
},
},
Execute: &port.ActionPermissionsPermissionsExecuteArgs{
OwnedByTeam: pulumi.Bool(false),
Policy: pulumi.String("string"),
Roles: pulumi.StringArray{
pulumi.String("string"),
},
Teams: pulumi.StringArray{
pulumi.String("string"),
},
Users: pulumi.StringArray{
pulumi.String("string"),
},
},
},
})
var actionPermissionsResource = new ActionPermissions("actionPermissionsResource", ActionPermissionsArgs.builder()
.actionIdentifier("string")
.permissions(ActionPermissionsPermissionsArgs.builder()
.approve(ActionPermissionsPermissionsApproveArgs.builder()
.policy("string")
.roles("string")
.teams("string")
.users("string")
.build())
.execute(ActionPermissionsPermissionsExecuteArgs.builder()
.ownedByTeam(false)
.policy("string")
.roles("string")
.teams("string")
.users("string")
.build())
.build())
.build());
action_permissions_resource = port.ActionPermissions("actionPermissionsResource",
action_identifier="string",
permissions={
"approve": {
"policy": "string",
"roles": ["string"],
"teams": ["string"],
"users": ["string"],
},
"execute": {
"owned_by_team": False,
"policy": "string",
"roles": ["string"],
"teams": ["string"],
"users": ["string"],
},
})
const actionPermissionsResource = new port.ActionPermissions("actionPermissionsResource", {
actionIdentifier: "string",
permissions: {
approve: {
policy: "string",
roles: ["string"],
teams: ["string"],
users: ["string"],
},
execute: {
ownedByTeam: false,
policy: "string",
roles: ["string"],
teams: ["string"],
users: ["string"],
},
},
});
type: port:ActionPermissions
properties:
actionIdentifier: string
permissions:
approve:
policy: string
roles:
- string
teams:
- string
users:
- string
execute:
ownedByTeam: false
policy: string
roles:
- string
teams:
- string
users:
- string
ActionPermissions Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The ActionPermissions resource accepts the following input properties:
- Action
Identifier string - The ID of the action
- Permissions
port_
labs. Port. Inputs. Action Permissions Permissions - The permissions for the action
- Blueprint
Identifier string - The ID of the blueprint
- Action
Identifier string - The ID of the action
- Permissions
Action
Permissions Permissions Args - The permissions for the action
- Blueprint
Identifier string - The ID of the blueprint
- action
Identifier String - The ID of the action
- permissions
Action
Permissions Permissions - The permissions for the action
- blueprint
Identifier String - The ID of the blueprint
- action
Identifier string - The ID of the action
- permissions
Action
Permissions Permissions - The permissions for the action
- blueprint
Identifier string - The ID of the blueprint
- action_
identifier str - The ID of the action
- permissions
Action
Permissions Permissions Args - The permissions for the action
- blueprint_
identifier str - The ID of the blueprint
- action
Identifier String - The ID of the action
- permissions Property Map
- The permissions for the action
- blueprint
Identifier String - The ID of the blueprint
Outputs
All input properties are implicitly available as output properties. Additionally, the ActionPermissions resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing ActionPermissions Resource
Get an existing ActionPermissions resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ActionPermissionsState, opts?: CustomResourceOptions): ActionPermissions
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
action_identifier: Optional[str] = None,
blueprint_identifier: Optional[str] = None,
permissions: Optional[ActionPermissionsPermissionsArgs] = None) -> ActionPermissions
func GetActionPermissions(ctx *Context, name string, id IDInput, state *ActionPermissionsState, opts ...ResourceOption) (*ActionPermissions, error)
public static ActionPermissions Get(string name, Input<string> id, ActionPermissionsState? state, CustomResourceOptions? opts = null)
public static ActionPermissions get(String name, Output<String> id, ActionPermissionsState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Action
Identifier string - The ID of the action
- Blueprint
Identifier string - The ID of the blueprint
- Permissions
port_
labs. Port. Inputs. Action Permissions Permissions - The permissions for the action
- Action
Identifier string - The ID of the action
- Blueprint
Identifier string - The ID of the blueprint
- Permissions
Action
Permissions Permissions Args - The permissions for the action
- action
Identifier String - The ID of the action
- blueprint
Identifier String - The ID of the blueprint
- permissions
Action
Permissions Permissions - The permissions for the action
- action
Identifier string - The ID of the action
- blueprint
Identifier string - The ID of the blueprint
- permissions
Action
Permissions Permissions - The permissions for the action
- action_
identifier str - The ID of the action
- blueprint_
identifier str - The ID of the blueprint
- permissions
Action
Permissions Permissions Args - The permissions for the action
- action
Identifier String - The ID of the action
- blueprint
Identifier String - The ID of the blueprint
- permissions Property Map
- The permissions for the action
Supporting Types
ActionPermissionsPermissions, ActionPermissionsPermissionsArgs
- Approve
port_
labs. Port. Inputs. Action Permissions Permissions Approve - The permission to approve the action's runs
- Execute
port_
labs. Port. Inputs. Action Permissions Permissions Execute - The permission to execute the action
- Approve
Action
Permissions Permissions Approve - The permission to approve the action's runs
- Execute
Action
Permissions Permissions Execute - The permission to execute the action
- approve
Action
Permissions Permissions Approve - The permission to approve the action's runs
- execute
Action
Permissions Permissions Execute - The permission to execute the action
- approve
Action
Permissions Permissions Approve - The permission to approve the action's runs
- execute
Action
Permissions Permissions Execute - The permission to execute the action
- approve
Action
Permissions Permissions Approve - The permission to approve the action's runs
- execute
Action
Permissions Permissions Execute - The permission to execute the action
- approve Property Map
- The permission to approve the action's runs
- execute Property Map
- The permission to execute the action
ActionPermissionsPermissionsApprove, ActionPermissionsPermissionsApproveArgs
ActionPermissionsPermissionsExecute, ActionPermissionsPermissionsExecuteArgs
- Owned
By boolTeam - Give execution permission to the teams who own the entity
- Policy string
- The policy to use for execution
- Roles List<string>
- The roles with execution permission
- Teams List<string>
- The teams with execution permission
- Users List<string>
- The users with execution permission
- Owned
By boolTeam - Give execution permission to the teams who own the entity
- Policy string
- The policy to use for execution
- Roles []string
- The roles with execution permission
- Teams []string
- The teams with execution permission
- Users []string
- The users with execution permission
- owned
By BooleanTeam - Give execution permission to the teams who own the entity
- policy String
- The policy to use for execution
- roles List<String>
- The roles with execution permission
- teams List<String>
- The teams with execution permission
- users List<String>
- The users with execution permission
- owned
By booleanTeam - Give execution permission to the teams who own the entity
- policy string
- The policy to use for execution
- roles string[]
- The roles with execution permission
- teams string[]
- The teams with execution permission
- users string[]
- The users with execution permission
- owned_
by_ boolteam - Give execution permission to the teams who own the entity
- policy str
- The policy to use for execution
- roles Sequence[str]
- The roles with execution permission
- teams Sequence[str]
- The teams with execution permission
- users Sequence[str]
- The users with execution permission
- owned
By BooleanTeam - Give execution permission to the teams who own the entity
- policy String
- The policy to use for execution
- roles List<String>
- The roles with execution permission
- teams List<String>
- The teams with execution permission
- users List<String>
- The users with execution permission
Package Details
- Repository
- port port-labs/pulumi-port
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
port-labs
Terraform Provider.