Class CfnGroupPolicy
Adds or updates an inline policy document that is embedded in the specified IAM group.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.IAM
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnGroupPolicy : CfnResource, IInspectable
Syntax (vb)
Public Class CfnGroupPolicy
Inherits CfnResource
Implements IInspectable
Remarks
A group can also have managed policies attached to it. To attach a managed policy to a group, use AWS::IAM::Group
. To create a new managed policy, use AWS::IAM::ManagedPolicy
. For information about policies, see Managed policies and inline policies in the IAM User Guide .
For information about the maximum number of inline policies that you can embed in a group, see IAM and AWS STS quotas in the IAM User Guide .
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-grouppolicy.html
CloudformationResource: AWS::IAM::GroupPolicy
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 policyDocument;
var cfnGroupPolicy = new CfnGroupPolicy(this, "MyCfnGroupPolicy", new CfnGroupPolicyProps {
GroupName = "groupName",
PolicyName = "policyName",
// the properties below are optional
PolicyDocument = policyDocument
});
Synopsis
Constructors
Cfn |
Used by jsii to construct an instance of this class from a Javascript-owned object reference |
Cfn |
Used by jsii to construct an instance of this class from DeputyProps |
Cfn |
Properties
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
Cfn |
|
Group |
The name of the group to associate the policy with. |
Policy |
The policy document. |
Policy |
The name of the policy document. |
Methods
Inspect(Tree |
Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
CfnGroupPolicy(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CfnGroupPolicy(ByRefValue reference)
Parameters
- reference Amazon.
JSII. Runtime. Deputy. By Ref Value The Javascript-owned object reference
CfnGroupPolicy(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CfnGroupPolicy(DeputyBase.DeputyProps props)
Parameters
- props Amazon.
JSII. Runtime. Deputy. Deputy Base. Deputy Props The deputy props
CfnGroupPolicy(Construct, String, ICfnGroupPolicyProps)
public CfnGroupPolicy(Construct scope, string id, ICfnGroupPolicyProps props)
Parameters
- scope Constructs.
Construct Scope in which this resource is defined.
- id System.
String Construct identifier for this resource (unique in its scope).
- props ICfn
Group Policy Props 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
System.
CfnProperties
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
System.
Overrides
GroupName
The name of the group to associate the policy with.
public virtual string GroupName { get; set; }
Property Value
System.
PolicyDocument
The policy document.
public virtual object PolicyDocument { get; set; }
Property Value
System.
PolicyName
The name of the policy document.
public virtual string PolicyName { get; set; }
Property Value
System.
Methods
Inspect(TreeInspector)
Examines the CloudFormation resource and discloses attributes.
public virtual void Inspect(TreeInspector inspector)
Parameters
- inspector Tree
Inspector tree inspector to collect and process attributes.
RenderProperties(IDictionary<String, Object>)
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props System.
Collections. <System.Generic. IDictionary String , System.Object >
Returns
System.