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

aws.iam.GroupPoliciesExclusive

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 group_name. For example:

    $ pulumi import aws:iam/groupPoliciesExclusive:GroupPoliciesExclusive example MyGroup
    

    Create GroupPoliciesExclusive Resource

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

    Constructor syntax

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

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

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

    Outputs

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

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

    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