Class CfnRolePropsMixin.PolicyProperty
Contains information about an attached policy.
Implements
Inherited Members
Namespace: Amazon.CDK.Mixins.Preview.AWS.IAM.Mixins
Assembly: Amazon.CDK.Mixins.Preview.dll
Syntax (csharp)
public class CfnRolePropsMixin.PolicyProperty : CfnRolePropsMixin.IPolicyProperty
Syntax (vb)
Public Class CfnRolePropsMixin.PolicyProperty Implements CfnRolePropsMixin.IPolicyProperty
Remarks
An attached policy is a managed policy that has been attached to a user, group, or role.
For more information about managed policies, refer to Managed Policies and Inline Policies in the IAM User Guide .
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-role-policy.html
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.Mixins.Preview.AWS.IAM.Mixins;
var policyDocument;
var policyProperty = new PolicyProperty {
PolicyDocument = policyDocument,
PolicyName = "policyName"
};
Synopsis
Constructors
| PolicyProperty() | Contains information about an attached policy. |
Properties
| PolicyDocument | The entire contents of the policy that defines permissions. |
| PolicyName | The friendly name (not ARN) identifying the policy. |
Constructors
PolicyProperty()
Contains information about an attached policy.
public PolicyProperty()
Remarks
An attached policy is a managed policy that has been attached to a user, group, or role.
For more information about managed policies, refer to Managed Policies and Inline Policies in the IAM User Guide .
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-role-policy.html
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.Mixins.Preview.AWS.IAM.Mixins;
var policyDocument;
var policyProperty = new PolicyProperty {
PolicyDocument = policyDocument,
PolicyName = "policyName"
};
Properties
PolicyDocument
The entire contents of the policy that defines permissions.
public object? PolicyDocument { get; set; }
Property Value
Remarks
PolicyName
The friendly name (not ARN) identifying the policy.
public string? PolicyName { get; set; }