1. Packages
  2. Port
  3. API Docs
  4. ActionPermissions
Port v2.0.1 published on Monday, May 13, 2024 by port-labs

port.ActionPermissions

Explore with Pulumi AI

port logo
Port v2.0.1 published on Monday, May 13, 2024 by port-labs

    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.

    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=port.ActionPermissionsPermissionsArgs(
            approve=port.ActionPermissionsPermissionsApproveArgs(
                policy="string",
                roles=["string"],
                teams=["string"],
                users=["string"],
            ),
            execute=port.ActionPermissionsPermissionsExecuteArgs(
                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

    The ActionPermissions resource accepts the following input properties:

    ActionIdentifier string
    The ID of the action
    Permissions port_labs.Port.Inputs.ActionPermissionsPermissions
    The permissions for the action
    BlueprintIdentifier string
    The ID of the blueprint

    Deprecated: Action is not attached to blueprint anymore. This value is ignored

    ActionIdentifier string
    The ID of the action
    Permissions ActionPermissionsPermissionsArgs
    The permissions for the action
    BlueprintIdentifier string
    The ID of the blueprint

    Deprecated: Action is not attached to blueprint anymore. This value is ignored

    actionIdentifier String
    The ID of the action
    permissions ActionPermissionsPermissions
    The permissions for the action
    blueprintIdentifier String
    The ID of the blueprint

    Deprecated: Action is not attached to blueprint anymore. This value is ignored

    actionIdentifier string
    The ID of the action
    permissions ActionPermissionsPermissions
    The permissions for the action
    blueprintIdentifier string
    The ID of the blueprint

    Deprecated: Action is not attached to blueprint anymore. This value is ignored

    action_identifier str
    The ID of the action
    permissions ActionPermissionsPermissionsArgs
    The permissions for the action
    blueprint_identifier str
    The ID of the blueprint

    Deprecated: Action is not attached to blueprint anymore. This value is ignored

    actionIdentifier String
    The ID of the action
    permissions Property Map
    The permissions for the action
    blueprintIdentifier String
    The ID of the blueprint

    Deprecated: Action is not attached to blueprint anymore. This value is ignored

    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.
    The following state arguments are supported:
    ActionIdentifier string
    The ID of the action
    BlueprintIdentifier string
    The ID of the blueprint

    Deprecated: Action is not attached to blueprint anymore. This value is ignored

    Permissions port_labs.Port.Inputs.ActionPermissionsPermissions
    The permissions for the action
    ActionIdentifier string
    The ID of the action
    BlueprintIdentifier string
    The ID of the blueprint

    Deprecated: Action is not attached to blueprint anymore. This value is ignored

    Permissions ActionPermissionsPermissionsArgs
    The permissions for the action
    actionIdentifier String
    The ID of the action
    blueprintIdentifier String
    The ID of the blueprint

    Deprecated: Action is not attached to blueprint anymore. This value is ignored

    permissions ActionPermissionsPermissions
    The permissions for the action
    actionIdentifier string
    The ID of the action
    blueprintIdentifier string
    The ID of the blueprint

    Deprecated: Action is not attached to blueprint anymore. This value is ignored

    permissions ActionPermissionsPermissions
    The permissions for the action
    action_identifier str
    The ID of the action
    blueprint_identifier str
    The ID of the blueprint

    Deprecated: Action is not attached to blueprint anymore. This value is ignored

    permissions ActionPermissionsPermissionsArgs
    The permissions for the action
    actionIdentifier String
    The ID of the action
    blueprintIdentifier String
    The ID of the blueprint

    Deprecated: Action is not attached to blueprint anymore. This value is ignored

    permissions Property Map
    The permissions for the action

    Supporting Types

    ActionPermissionsPermissions, ActionPermissionsPermissionsArgs

    Approve ActionPermissionsPermissionsApprove
    The permission to approve the action's runs
    Execute ActionPermissionsPermissionsExecute
    The permission to execute the action
    approve ActionPermissionsPermissionsApprove
    The permission to approve the action's runs
    execute ActionPermissionsPermissionsExecute
    The permission to execute the action
    approve ActionPermissionsPermissionsApprove
    The permission to approve the action's runs
    execute ActionPermissionsPermissionsExecute
    The permission to execute the action
    approve ActionPermissionsPermissionsApprove
    The permission to approve the action's runs
    execute ActionPermissionsPermissionsExecute
    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

    Policy string
    The policy to use for approval
    Roles List<string>
    The roles with approval permission
    Teams List<string>
    The teams with approval permission
    Users List<string>
    The users with approval permission
    Policy string
    The policy to use for approval
    Roles []string
    The roles with approval permission
    Teams []string
    The teams with approval permission
    Users []string
    The users with approval permission
    policy String
    The policy to use for approval
    roles List<String>
    The roles with approval permission
    teams List<String>
    The teams with approval permission
    users List<String>
    The users with approval permission
    policy string
    The policy to use for approval
    roles string[]
    The roles with approval permission
    teams string[]
    The teams with approval permission
    users string[]
    The users with approval permission
    policy str
    The policy to use for approval
    roles Sequence[str]
    The roles with approval permission
    teams Sequence[str]
    The teams with approval permission
    users Sequence[str]
    The users with approval permission
    policy String
    The policy to use for approval
    roles List<String>
    The roles with approval permission
    teams List<String>
    The teams with approval permission
    users List<String>
    The users with approval permission

    ActionPermissionsPermissionsExecute, ActionPermissionsPermissionsExecuteArgs

    OwnedByTeam bool
    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
    OwnedByTeam bool
    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
    ownedByTeam Boolean
    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
    ownedByTeam boolean
    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_team bool
    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
    ownedByTeam Boolean
    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.
    port logo
    Port v2.0.1 published on Monday, May 13, 2024 by port-labs