CfnServiceLinkedRolePropsMixin Mixin
Creates an IAM role that is linked to a specific AWS service.
The service controls the attached policies and when the role can be deleted. This helps ensure that the service is not broken by an unexpectedly changed or deleted role, which could put your AWS resources into an unknown state. Allowing the service to control the role helps improve service stability and proper cleanup when a service and its role are no longer needed. For more information, see Using service-linked roles in the IAM User Guide .
To attach a policy to this service-linked role, you must make the request using the AWS service that depends on this role.
Initializer
ts
new CfnServiceLinkedRolePropsMixin(props: CfnServiceLinkedRoleMixinProps, options?: CfnPropertyMixinOptions)
python
CfnServiceLinkedRolePropsMixin(props: CfnServiceLinkedRoleMixinProps, options: typing.Optional[CfnPropertyMixinOptions] = None)
java
new CfnServiceLinkedRolePropsMixin(CfnServiceLinkedRoleMixinProps props, CfnPropertyMixinOptions options)
csharp
new CfnServiceLinkedRolePropsMixin(CfnServiceLinkedRoleMixinProps props, CfnPropertyMixinOptions? options = null)
go
NewCfnServiceLinkedRolePropsMixin(Props CfnServiceLinkedRoleMixinProps, 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)#Apply the mixin properties to the construct.
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#Checks if `x` is a Mixin.
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#Check if this mixin supports the given construct.