Class CfnUserToGroupAddition
Adds the specified user to the specified group.
Inherited Members
Namespace: Amazon.CDK.AWS.IAM
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnUserToGroupAddition : CfnResource, IInspectable, IUserToGroupAdditionRef, IConstruct, IDependable, IEnvironmentAware
Syntax (vb)
Public Class CfnUserToGroupAddition Inherits CfnResource Implements IInspectable, IUserToGroupAdditionRef, IConstruct, IDependable, IEnvironmentAware
Remarks
CloudformationResource: AWS::IAM::UserToGroupAddition
ExampleMetadata: fixture=_generated
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" }
});
Synopsis
Constructors
| CfnUserToGroupAddition(Construct, string, ICfnUserToGroupAdditionProps) | Create a new |
Properties
| AttrId | The stable and unique string identifying the group. |
| CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
| CfnProperties | Adds the specified user to the specified group. |
| GroupName | The name of the group to update. |
| UserToGroupAdditionRef | A reference to a UserToGroupAddition resource. |
| Users | A list of the names of the users that you want to add to the group. |
Methods
| Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
| IsCfnUserToGroupAddition(object) | Checks whether the given object is a CfnUserToGroupAddition. |
| RenderProperties(IDictionary<string, object>) | Adds the specified user to the specified group. |
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
Construct identifier for this resource (unique in its scope).
- props ICfnUserToGroupAdditionProps
Resource properties.
Remarks
CloudformationResource: AWS::IAM::UserToGroupAddition
ExampleMetadata: fixture=_generated
Properties
AttrId
The stable and unique string identifying the group.
public virtual string AttrId { get; }
Property Value
Remarks
For more information about IDs, see IAM identifiers in the IAM User Guide .
CloudformationAttribute: Id
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
Remarks
CloudformationResource: AWS::IAM::UserToGroupAddition
ExampleMetadata: fixture=_generated
CfnProperties
Adds the specified user to the specified group.
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
Overrides
Remarks
CloudformationResource: AWS::IAM::UserToGroupAddition
ExampleMetadata: fixture=_generated
GroupName
The name of the group to update.
public virtual string GroupName { get; set; }
Property Value
Remarks
CloudformationResource: AWS::IAM::UserToGroupAddition
ExampleMetadata: fixture=_generated
UserToGroupAdditionRef
A reference to a UserToGroupAddition resource.
public virtual IUserToGroupAdditionReference UserToGroupAdditionRef { get; }
Property Value
Remarks
CloudformationResource: AWS::IAM::UserToGroupAddition
ExampleMetadata: fixture=_generated
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
CloudformationResource: AWS::IAM::UserToGroupAddition
ExampleMetadata: fixture=_generated
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.
Remarks
CloudformationResource: AWS::IAM::UserToGroupAddition
ExampleMetadata: fixture=_generated
IsCfnUserToGroupAddition(object)
Checks whether the given object is a CfnUserToGroupAddition.
public static bool IsCfnUserToGroupAddition(object x)
Parameters
- x object
Returns
Remarks
CloudformationResource: AWS::IAM::UserToGroupAddition
ExampleMetadata: fixture=_generated
RenderProperties(IDictionary<string, object>)
Adds the specified user to the specified group.
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props IDictionary<string, object>
Returns
Overrides
Remarks
CloudformationResource: AWS::IAM::UserToGroupAddition
ExampleMetadata: fixture=_generated