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

aws.iam.UserPoliciesExclusive

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 inline policy assignments using the user_name. For example:

    $ pulumi import aws:iam/userPoliciesExclusive:UserPoliciesExclusive example MyUser
    

    Create UserPoliciesExclusive Resource

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

    Constructor syntax

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

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

    PolicyNames List<string>
    A list of inline policy names to be assigned to the user. Policies attached to this user but not configured in this argument will be removed.
    UserName string
    IAM user name.
    PolicyNames []string
    A list of inline policy names to be assigned to the user. Policies attached to this user but not configured in this argument will be removed.
    UserName string
    IAM user name.
    policyNames List<String>
    A list of inline policy names to be assigned to the user. Policies attached to this user but not configured in this argument will be removed.
    userName String
    IAM user name.
    policyNames string[]
    A list of inline policy names to be assigned to the user. Policies attached to this user but not configured in this argument will be removed.
    userName string
    IAM user name.
    policy_names Sequence[str]
    A list of inline policy names to be assigned to the user. Policies attached to this user but not configured in this argument will be removed.
    user_name str
    IAM user name.
    policyNames List<String>
    A list of inline policy names to be assigned to the user. Policies attached to this user but not configured in this argument will be removed.
    userName String
    IAM user name.

    Outputs

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

    Get an existing UserPoliciesExclusive 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?: UserPoliciesExclusiveState, opts?: CustomResourceOptions): UserPoliciesExclusive
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            policy_names: Optional[Sequence[str]] = None,
            user_name: Optional[str] = None) -> UserPoliciesExclusive
    func GetUserPoliciesExclusive(ctx *Context, name string, id IDInput, state *UserPoliciesExclusiveState, opts ...ResourceOption) (*UserPoliciesExclusive, error)
    public static UserPoliciesExclusive Get(string name, Input<string> id, UserPoliciesExclusiveState? state, CustomResourceOptions? opts = null)
    public static UserPoliciesExclusive get(String name, Output<String> id, UserPoliciesExclusiveState 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 user. Policies attached to this user but not configured in this argument will be removed.
    UserName string
    IAM user name.
    PolicyNames []string
    A list of inline policy names to be assigned to the user. Policies attached to this user but not configured in this argument will be removed.
    UserName string
    IAM user name.
    policyNames List<String>
    A list of inline policy names to be assigned to the user. Policies attached to this user but not configured in this argument will be removed.
    userName String
    IAM user name.
    policyNames string[]
    A list of inline policy names to be assigned to the user. Policies attached to this user but not configured in this argument will be removed.
    userName string
    IAM user name.
    policy_names Sequence[str]
    A list of inline policy names to be assigned to the user. Policies attached to this user but not configured in this argument will be removed.
    user_name str
    IAM user name.
    policyNames List<String>
    A list of inline policy names to be assigned to the user. Policies attached to this user but not configured in this argument will be removed.
    userName String
    IAM user 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