1. Packages
  2. AWS
  3. API Docs
  4. iam
  5. RolePoliciesExclusive
AWS v6.54.0 published on Friday, Sep 27, 2024 by Pulumi

aws.iam.RolePoliciesExclusive

Explore with Pulumi AI

aws logo
AWS v6.54.0 published on Friday, Sep 27, 2024 by Pulumi

    Import

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

    $ pulumi import aws:iam/rolePoliciesExclusive:RolePoliciesExclusive example MyRole
    

    Create RolePoliciesExclusive Resource

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

    Constructor syntax

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

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

    PolicyNames List<string>
    A list of inline policy names to be assigned to the role. Policies attached to this role but not configured in this argument will be removed.
    RoleName string
    IAM role name.
    PolicyNames []string
    A list of inline policy names to be assigned to the role. Policies attached to this role but not configured in this argument will be removed.
    RoleName string
    IAM role name.
    policyNames List<String>
    A list of inline policy names to be assigned to the role. Policies attached to this role but not configured in this argument will be removed.
    roleName String
    IAM role name.
    policyNames string[]
    A list of inline policy names to be assigned to the role. Policies attached to this role but not configured in this argument will be removed.
    roleName string
    IAM role name.
    policy_names Sequence[str]
    A list of inline policy names to be assigned to the role. Policies attached to this role but not configured in this argument will be removed.
    role_name str
    IAM role name.
    policyNames List<String>
    A list of inline policy names to be assigned 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 RolePoliciesExclusive 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 RolePoliciesExclusive Resource

    Get an existing RolePoliciesExclusive 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?: RolePoliciesExclusiveState, opts?: CustomResourceOptions): RolePoliciesExclusive
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            policy_names: Optional[Sequence[str]] = None,
            role_name: Optional[str] = None) -> RolePoliciesExclusive
    func GetRolePoliciesExclusive(ctx *Context, name string, id IDInput, state *RolePoliciesExclusiveState, opts ...ResourceOption) (*RolePoliciesExclusive, error)
    public static RolePoliciesExclusive Get(string name, Input<string> id, RolePoliciesExclusiveState? state, CustomResourceOptions? opts = null)
    public static RolePoliciesExclusive get(String name, Output<String> id, RolePoliciesExclusiveState 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:
    PolicyNames List<string>
    A list of inline policy names to be assigned to the role. Policies attached to this role but not configured in this argument will be removed.
    RoleName string
    IAM role name.
    PolicyNames []string
    A list of inline policy names to be assigned to the role. Policies attached to this role but not configured in this argument will be removed.
    RoleName string
    IAM role name.
    policyNames List<String>
    A list of inline policy names to be assigned to the role. Policies attached to this role but not configured in this argument will be removed.
    roleName String
    IAM role name.
    policyNames string[]
    A list of inline policy names to be assigned to the role. Policies attached to this role but not configured in this argument will be removed.
    roleName string
    IAM role name.
    policy_names Sequence[str]
    A list of inline policy names to be assigned to the role. Policies attached to this role but not configured in this argument will be removed.
    role_name str
    IAM role name.
    policyNames List<String>
    A list of inline policy names to be assigned 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.54.0 published on Friday, Sep 27, 2024 by Pulumi