Table of Contents

Class CfnUser.PolicyProperty

Namespace
Amazon.CDK.AWS.IAM
Assembly
Amazon.CDK.AWS.IAM.dll

Contains information about an attached policy.

public class CfnUser.PolicyProperty : CfnUser.IPolicyProperty
Inheritance
CfnUser.PolicyProperty
Implements
Inherited Members

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 policyProperty = new PolicyProperty {
                 PolicyDocument = policyDocument,
                 PolicyName = "policyName"
             };

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 .

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-policy.html

ExampleMetadata: fixture=_generated

Constructors

PolicyProperty()

public PolicyProperty()

Properties

PolicyDocument

The entire contents of the policy that defines permissions.

public object PolicyDocument { get; set; }

Property Value

object

Remarks

PolicyName

The friendly name (not ARN) identifying the policy.

public string PolicyName { get; set; }

Property Value

string

Remarks