interface AddToPrincipalPolicyResult
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.IAM.AddToPrincipalPolicyResult |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsiam#AddToPrincipalPolicyResult |
Java | software.amazon.awscdk.services.iam.AddToPrincipalPolicyResult |
Python | aws_cdk.aws_iam.AddToPrincipalPolicyResult |
TypeScript (source) | aws-cdk-lib » aws_iam » AddToPrincipalPolicyResult |
Obtainable from
Service.addToPrincipalPolicy(), Group.addToPrincipalPolicy(), Lazy.addToPrincipalPolicy(), Principal.addToPrincipalPolicy(), Principal.addToPrincipalPolicy(), Role.addToPrincipalPolicy(), Session.addToPrincipalPolicy(), Unknown.addToPrincipalPolicy(), User.addToPrincipalPolicy(), Service.addToPrincipalPolicy()
Result of calling addToPrincipalPolicy.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_iam as iam } from 'aws-cdk-lib';
import * as constructs from 'constructs';
declare const dependable: constructs.IDependable;
const addToPrincipalPolicyResult: iam.AddToPrincipalPolicyResult = {
statementAdded: false,
// the properties below are optional
policyDependable: dependable,
};
Properties
| Name | Type | Description |
|---|---|---|
| statement | boolean | Whether the statement was added to the identity's policies. |
| policy | IDependable | Dependable which allows depending on the policy change being applied. |
statementAdded
Type:
boolean
Whether the statement was added to the identity's policies.
policyDependable?
Type:
IDependable
(optional, default: Required if statementAdded is true.)
Dependable which allows depending on the policy change being applied.

.NET
Go
Java
Python
TypeScript (