AddToPrincipalPolicyResult Struct
Result of calling addToPrincipalPolicy.
Example
ts
// 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
policyDependableIDependablepolicy_dependableIDependablepolicyDependableIDependablePolicyDependableIDependablePolicyDependableIDependable= Required if `statementAdded` is …#Dependable which allows depending on the policy change being applied.
default
Default: Required if statementAdded is true.
statementAddedbooleanstatement_addedboolstatementAddedBooleanStatementAddedboolStatementAdded*boolrequired#Whether the statement was added to the identity's policies.