Table of Contents

Class AddToPrincipalPolicyResult

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

Result of calling addToPrincipalPolicy.

public class AddToPrincipalPolicyResult : IAddToPrincipalPolicyResult
Inheritance
AddToPrincipalPolicyResult
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;
            using Amazon.CDK;

            IDependable dependable;
            var addToPrincipalPolicyResult = new AddToPrincipalPolicyResult {
                StatementAdded = false,

                // the properties below are optional
                PolicyDependable = dependable
            };

Remarks

ExampleMetadata: fixture=_generated

Constructors

AddToPrincipalPolicyResult()

public AddToPrincipalPolicyResult()

Properties

PolicyDependable

Dependable which allows depending on the policy change being applied.

public IDependable? PolicyDependable { get; set; }

Property Value

IDependable

Remarks

Default: - Required if statementAdded is true.

StatementAdded

Whether the statement was added to the identity's policies.

public bool StatementAdded { get; set; }

Property Value

bool