Show / Hide Table of Contents

Class CfnServiceLinkedRolePropsMixin

Creates an IAM role that is linked to a specific AWS service.

Inheritance
object
Mixin
CfnServiceLinkedRolePropsMixin
Implements
IMixin
Inherited Members
Mixin.IsMixin(object)
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.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-servicelinkedrole.html

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 AWS::IAM::ServiceLinkedRole.

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.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-servicelinkedrole.html

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.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-servicelinkedrole.html

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.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-servicelinkedrole.html

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

IMergeStrategy

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.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-servicelinkedrole.html

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
Mixin.ApplyTo(IConstruct)
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.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-servicelinkedrole.html

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

bool

Overrides
Mixin.Supports(IConstruct)
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.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-servicelinkedrole.html

CloudformationResource: AWS::IAM::ServiceLinkedRole

Mixin: true

ExampleMetadata: fixture=_generated

Implements

Constructs.IMixin
Back to top Generated by DocFX