Class CfnServiceLinkedRolePropsMixin
Creates an IAM role that is linked to a specific AWS service.
Implements
Inherited Members
Namespace: Amazon.CDK.CfnPropertyMixins.AWS.IAM
Assembly: Amazon.CDK.CfnPropertyMixins.dll
Syntax (csharp)
public class CfnServiceLinkedRolePropsMixin : Mixin, IMixin
Syntax (vb)
Public Class CfnServiceLinkedRolePropsMixin Inherits Mixin Implements IMixin
Remarks
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.
CloudformationResource: AWS::IAM::ServiceLinkedRole
Mixin: true
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.CfnPropertyMixins.AWS.IAM;
using Amazon.CDK;
IMergeStrategy mergeStrategy;
var cfnServiceLinkedRolePropsMixin = new CfnServiceLinkedRolePropsMixin(new CfnServiceLinkedRoleMixinProps {
AwsServiceName = "awsServiceName",
CustomSuffix = "customSuffix",
Description = "description"
}, new CfnPropertyMixinOptions {
Strategy = mergeStrategy
});
Synopsis
Constructors
| CfnServiceLinkedRolePropsMixin(ICfnServiceLinkedRoleMixinProps, ICfnPropertyMixinOptions?) | Create a mixin to apply properties to |
Properties
| CFN_PROPERTY_KEYS | Creates an IAM role that is linked to a specific AWS service. |
| Props | Creates an IAM role that is linked to a specific AWS service. |
| Strategy | Creates an IAM role that is linked to a specific AWS service. |
Methods
| ApplyTo(IConstruct) | Apply the mixin properties to the construct. |
| Supports(IConstruct) | Check if this mixin supports the given construct. |
Constructors
CfnServiceLinkedRolePropsMixin(ICfnServiceLinkedRoleMixinProps, ICfnPropertyMixinOptions?)
Create a mixin to apply properties to AWS::IAM::ServiceLinkedRole.
public CfnServiceLinkedRolePropsMixin(ICfnServiceLinkedRoleMixinProps props, ICfnPropertyMixinOptions? options = null)
Parameters
- props ICfnServiceLinkedRoleMixinProps
L1 properties to apply.
- options ICfnPropertyMixinOptions
Mixin options.
Remarks
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.
CloudformationResource: AWS::IAM::ServiceLinkedRole
Mixin: true
ExampleMetadata: fixture=_generated
Properties
CFN_PROPERTY_KEYS
Creates an IAM role that is linked to a specific AWS service.
protected static string[] CFN_PROPERTY_KEYS { get; }
Property Value
string[]
Remarks
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.
CloudformationResource: AWS::IAM::ServiceLinkedRole
Mixin: true
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.CfnPropertyMixins.AWS.IAM;
using Amazon.CDK;
IMergeStrategy mergeStrategy;
var cfnServiceLinkedRolePropsMixin = new CfnServiceLinkedRolePropsMixin(new CfnServiceLinkedRoleMixinProps {
AwsServiceName = "awsServiceName",
CustomSuffix = "customSuffix",
Description = "description"
}, new CfnPropertyMixinOptions {
Strategy = mergeStrategy
});
Props
Creates an IAM role that is linked to a specific AWS service.
protected virtual ICfnServiceLinkedRoleMixinProps Props { get; }
Property Value
ICfnServiceLinkedRoleMixinProps
Remarks
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.
CloudformationResource: AWS::IAM::ServiceLinkedRole
Mixin: true
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.CfnPropertyMixins.AWS.IAM;
using Amazon.CDK;
IMergeStrategy mergeStrategy;
var cfnServiceLinkedRolePropsMixin = new CfnServiceLinkedRolePropsMixin(new CfnServiceLinkedRoleMixinProps {
AwsServiceName = "awsServiceName",
CustomSuffix = "customSuffix",
Description = "description"
}, new CfnPropertyMixinOptions {
Strategy = mergeStrategy
});
Strategy
Creates an IAM role that is linked to a specific AWS service.
protected virtual IMergeStrategy Strategy { get; }
Property Value
Remarks
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.
CloudformationResource: AWS::IAM::ServiceLinkedRole
Mixin: true
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.CfnPropertyMixins.AWS.IAM;
using Amazon.CDK;
IMergeStrategy mergeStrategy;
var cfnServiceLinkedRolePropsMixin = new CfnServiceLinkedRolePropsMixin(new CfnServiceLinkedRoleMixinProps {
AwsServiceName = "awsServiceName",
CustomSuffix = "customSuffix",
Description = "description"
}, new CfnPropertyMixinOptions {
Strategy = mergeStrategy
});
Methods
ApplyTo(IConstruct)
Apply the mixin properties to the construct.
public override void ApplyTo(IConstruct construct)
Parameters
- construct IConstruct
Overrides
Remarks
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.
CloudformationResource: AWS::IAM::ServiceLinkedRole
Mixin: true
ExampleMetadata: fixture=_generated
Supports(IConstruct)
Check if this mixin supports the given construct.
public override bool Supports(IConstruct construct)
Parameters
- construct IConstruct
Returns
Overrides
Remarks
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.
CloudformationResource: AWS::IAM::ServiceLinkedRole
Mixin: true
ExampleMetadata: fixture=_generated