1. Packages
  2. AWS
  3. API Docs
  4. iam
  5. RolePolicyAttachmentsExclusive
AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi

aws.iam.RolePolicyAttachmentsExclusive

Explore with Pulumi AI

aws logo
AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi

    Import

    Using pulumi import, import exclusive management of customer managed policy assignments using the role_name. For example:

    $ pulumi import aws:iam/rolePolicyAttachmentsExclusive:RolePolicyAttachmentsExclusive example MyRole
    

    Create RolePolicyAttachmentsExclusive Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new RolePolicyAttachmentsExclusive(name: string, args: RolePolicyAttachmentsExclusiveArgs, opts?: CustomResourceOptions);
    @overload
    def RolePolicyAttachmentsExclusive(resource_name: str,
                                       args: RolePolicyAttachmentsExclusiveArgs,
                                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def RolePolicyAttachmentsExclusive(resource_name: str,
                                       opts: Optional[ResourceOptions] = None,
                                       policy_arns: Optional[Sequence[str]] = None,
                                       role_name: Optional[str] = None)
    func NewRolePolicyAttachmentsExclusive(ctx *Context, name string, args RolePolicyAttachmentsExclusiveArgs, opts ...ResourceOption) (*RolePolicyAttachmentsExclusive, error)
    public RolePolicyAttachmentsExclusive(string name, RolePolicyAttachmentsExclusiveArgs args, CustomResourceOptions? opts = null)
    public RolePolicyAttachmentsExclusive(String name, RolePolicyAttachmentsExclusiveArgs args)
    public RolePolicyAttachmentsExclusive(String name, RolePolicyAttachmentsExclusiveArgs args, CustomResourceOptions options)
    
    type: aws:iam:RolePolicyAttachmentsExclusive
    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 RolePolicyAttachmentsExclusiveArgs
    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 RolePolicyAttachmentsExclusiveArgs
    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 RolePolicyAttachmentsExclusiveArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args RolePolicyAttachmentsExclusiveArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args RolePolicyAttachmentsExclusiveArgs
    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 rolePolicyAttachmentsExclusiveResource = new Aws.Iam.RolePolicyAttachmentsExclusive("rolePolicyAttachmentsExclusiveResource", new()
    {
        PolicyArns = new[]
        {
            "string",
        },
        RoleName = "string",
    });
    
    example, err := iam.NewRolePolicyAttachmentsExclusive(ctx, "rolePolicyAttachmentsExclusiveResource", &iam.RolePolicyAttachmentsExclusiveArgs{
    	PolicyArns: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	RoleName: pulumi.String("string"),
    })
    
    var rolePolicyAttachmentsExclusiveResource = new RolePolicyAttachmentsExclusive("rolePolicyAttachmentsExclusiveResource", RolePolicyAttachmentsExclusiveArgs.builder()
        .policyArns("string")
        .roleName("string")
        .build());
    
    role_policy_attachments_exclusive_resource = aws.iam.RolePolicyAttachmentsExclusive("rolePolicyAttachmentsExclusiveResource",
        policy_arns=["string"],
        role_name="string")
    
    const rolePolicyAttachmentsExclusiveResource = new aws.iam.RolePolicyAttachmentsExclusive("rolePolicyAttachmentsExclusiveResource", {
        policyArns: ["string"],
        roleName: "string",
    });
    
    type: aws:iam:RolePolicyAttachmentsExclusive
    properties:
        policyArns:
            - string
        roleName: string
    

    RolePolicyAttachmentsExclusive 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 RolePolicyAttachmentsExclusive resource accepts the following input properties:

    PolicyArns List<string>
    A list of customer managed policy ARNs to be attached to the role. Policies attached to this role but not configured in this argument will be removed.
    RoleName string
    IAM role name.
    PolicyArns []string
    A list of customer managed policy ARNs to be attached to the role. Policies attached to this role but not configured in this argument will be removed.
    RoleName string
    IAM role name.
    policyArns List<String>
    A list of customer managed policy ARNs to be attached to the role. Policies attached to this role but not configured in this argument will be removed.
    roleName String
    IAM role name.
    policyArns string[]
    A list of customer managed policy ARNs to be attached to the role. Policies attached to this role but not configured in this argument will be removed.
    roleName string
    IAM role name.
    policy_arns Sequence[str]
    A list of customer managed policy ARNs to be attached to the role. Policies attached to this role but not configured in this argument will be removed.
    role_name str
    IAM role name.
    policyArns List<String>
    A list of customer managed policy ARNs to be attached to the role. Policies attached to this role but not configured in this argument will be removed.
    roleName String
    IAM role name.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the RolePolicyAttachmentsExclusive 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 RolePolicyAttachmentsExclusive Resource

    Get an existing RolePolicyAttachmentsExclusive 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?: RolePolicyAttachmentsExclusiveState, opts?: CustomResourceOptions): RolePolicyAttachmentsExclusive
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            policy_arns: Optional[Sequence[str]] = None,
            role_name: Optional[str] = None) -> RolePolicyAttachmentsExclusive
    func GetRolePolicyAttachmentsExclusive(ctx *Context, name string, id IDInput, state *RolePolicyAttachmentsExclusiveState, opts ...ResourceOption) (*RolePolicyAttachmentsExclusive, error)
    public static RolePolicyAttachmentsExclusive Get(string name, Input<string> id, RolePolicyAttachmentsExclusiveState? state, CustomResourceOptions? opts = null)
    public static RolePolicyAttachmentsExclusive get(String name, Output<String> id, RolePolicyAttachmentsExclusiveState 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:
    PolicyArns List<string>
    A list of customer managed policy ARNs to be attached to the role. Policies attached to this role but not configured in this argument will be removed.
    RoleName string
    IAM role name.
    PolicyArns []string
    A list of customer managed policy ARNs to be attached to the role. Policies attached to this role but not configured in this argument will be removed.
    RoleName string
    IAM role name.
    policyArns List<String>
    A list of customer managed policy ARNs to be attached to the role. Policies attached to this role but not configured in this argument will be removed.
    roleName String
    IAM role name.
    policyArns string[]
    A list of customer managed policy ARNs to be attached to the role. Policies attached to this role but not configured in this argument will be removed.
    roleName string
    IAM role name.
    policy_arns Sequence[str]
    A list of customer managed policy ARNs to be attached to the role. Policies attached to this role but not configured in this argument will be removed.
    role_name str
    IAM role name.
    policyArns List<String>
    A list of customer managed policy ARNs to be attached to the role. Policies attached to this role but not configured in this argument will be removed.
    roleName String
    IAM role name.

    Package Details

    Repository
    AWS Classic pulumi/pulumi-aws
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aws Terraform Provider.
    aws logo
    AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi