1. Packages
  2. AWS
  3. API Docs
  4. iam
  5. GroupPoliciesExclusive
AWS v6.73.0 published on Wednesday, Mar 19, 2025 by Pulumi

aws.iam.GroupPoliciesExclusive

Explore with Pulumi AI

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
Copy

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 This property is required. string
The unique name of the resource.
args This property is required. GroupPoliciesExclusiveArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. 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 This property is required. string
The unique name of the resource.
args This property is required. GroupPoliciesExclusiveArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. GroupPoliciesExclusiveArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. 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",
    },
});
Copy
example, err := iam.NewGroupPoliciesExclusive(ctx, "groupPoliciesExclusiveResource", &iam.GroupPoliciesExclusiveArgs{
	GroupName: pulumi.String("string"),
	PolicyNames: pulumi.StringArray{
		pulumi.String("string"),
	},
})
Copy
var groupPoliciesExclusiveResource = new GroupPoliciesExclusive("groupPoliciesExclusiveResource", GroupPoliciesExclusiveArgs.builder()
    .groupName("string")
    .policyNames("string")
    .build());
Copy
group_policies_exclusive_resource = aws.iam.GroupPoliciesExclusive("groupPoliciesExclusiveResource",
    group_name="string",
    policy_names=["string"])
Copy
const groupPoliciesExclusiveResource = new aws.iam.GroupPoliciesExclusive("groupPoliciesExclusiveResource", {
    groupName: "string",
    policyNames: ["string"],
});
Copy
type: aws:iam:GroupPoliciesExclusive
properties:
    groupName: string
    policyNames:
        - string
Copy

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 This property is required. string
IAM group name.
PolicyNames This property is required. 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 This property is required. string
IAM group name.
PolicyNames This property is required. []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 This property is required. String
IAM group name.
policyNames This property is required. 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 This property is required. string
IAM group name.
policyNames This property is required. 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 This property is required. str
IAM group name.
policy_names This property is required. 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 This property is required. String
IAM group name.
policyNames This property is required. 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)
resources:  _:    type: aws:iam:GroupPoliciesExclusive    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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.