Class CfnUserToGroupAddition
A CloudFormation AWS::IAM::UserToGroupAddition
.
public class CfnUserToGroupAddition : CfnResource, IInspectable
- Inheritance
-
CfnUserToGroupAddition
- Implements
-
IInspectable
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.IAM;
var cfnUserToGroupAddition = new CfnUserToGroupAddition(this, "MyCfnUserToGroupAddition", new CfnUserToGroupAdditionProps {
GroupName = "groupName",
Users = new [] { "users" }
});
Remarks
Adds the specified user to the specified group.
CloudformationResource: AWS::IAM::UserToGroupAddition
Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-addusertogroup.html
ExampleMetadata: fixture=_generated
Constructors
CfnUserToGroupAddition(Construct, string, ICfnUserToGroupAdditionProps)
Create a new AWS::IAM::UserToGroupAddition
.
public CfnUserToGroupAddition(Construct scope, string id, ICfnUserToGroupAdditionProps props)
Parameters
scope
Construct- scope in which this resource is defined.
id
string- scoped id of the resource.
props
ICfnUserToGroupAdditionProps- resource properties.
Properties
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
CfnProperties
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
GroupName
The name of the group to update.
public virtual string GroupName { get; set; }
Property Value
Remarks
This parameter allows (through its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-
Users
A list of the names of the users that you want to add to the group.
public virtual string[] Users { get; set; }
Property Value
- string[]
Remarks
Methods
Inspect(TreeInspector)
Examines the CloudFormation resource and discloses attributes.
public virtual void Inspect(TreeInspector inspector)
Parameters
inspector
TreeInspector- tree inspector to collect and process attributes.
RenderProperties(IDictionary<string, object>)
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
props
IDictionary<string, object>