aws.iam.RolePoliciesExclusive
Explore with Pulumi AI
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:
- Policy
Names 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.
- Role
Name string - IAM role name.
- Policy
Names []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.
- Role
Name string - IAM role name.
- policy
Names 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.
- role
Name String - IAM role name.
- policy
Names 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.
- role
Name 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.
- policy
Names 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.
- role
Name 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.
- Policy
Names 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.
- Role
Name string - IAM role name.
- Policy
Names []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.
- Role
Name string - IAM role name.
- policy
Names 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.
- role
Name String - IAM role name.
- policy
Names 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.
- role
Name 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.
- policy
Names 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.
- role
Name 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.