CfnRolePolicyPropsMixin Mixin
Adds or updates an inline policy document that is embedded in the specified IAM role.
When you embed an inline policy in a role, the inline policy is used as part of the role's access (permissions) policy. The role's trust policy is created at the same time as the role, using CreateRole . You can update a role's trust policy using UpdateAssumeRolePolicy . For information about roles, see IAM roles in the IAM User Guide .
A role can also have a managed policy attached to it. To attach a managed policy to a role, use AWS::IAM::Role . To create a new managed policy, use AWS::IAM::ManagedPolicy . For information about policies, see Managed policies and inline policies in the IAM User Guide .
For information about the maximum number of inline policies that you can embed with a role, see IAM and AWS STS quotas in the IAM User Guide .
Initializer
new CfnRolePolicyPropsMixin(props: CfnRolePolicyMixinProps, options?: CfnPropertyMixinOptions)
CfnRolePolicyPropsMixin(props: CfnRolePolicyMixinProps, options: typing.Optional[CfnPropertyMixinOptions] = None)
new CfnRolePolicyPropsMixin(CfnRolePolicyMixinProps props, CfnPropertyMixinOptions options)
new CfnRolePolicyPropsMixin(CfnRolePolicyMixinProps props, CfnPropertyMixinOptions? options = null)
NewCfnRolePolicyPropsMixin(Props CfnRolePolicyMixinProps, Options CfnPropertyMixinOptions)
Methods
applyTo(construct: IConstruct): voiddef apply_to(self, construct: IConstruct) -> Nonepublic void applyTo(IConstruct construct)public void ApplyTo(IConstruct construct)func ApplyTo(Construct IConstruct)#isMixin(x: any): boolean@staticmethod def is_mixin(x: Any) -> boolpublic static Boolean isMixin(Object x)public static bool IsMixin(object x)func IsMixin(X interface{}) *boolstatic#1 parameter · returns
Parameters
xxxxX— Any object.
Returns: true if x is an object created from a class which extends Mixin.
supports(construct: IConstruct): booleandef supports(self, construct: IConstruct) -> boolpublic Boolean supports(IConstruct construct)public bool Supports(IConstruct construct)func Supports(Construct IConstruct) *bool#