Show / Hide Table of Contents

Interface CfnLaunchTemplate.IIamInstanceProfileProperty

Specifies an IAM instance profile, which is a container for an IAM role for your instance.

Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface CfnLaunchTemplate.IIamInstanceProfileProperty
Syntax (vb)
Public Interface CfnLaunchTemplate.IIamInstanceProfileProperty
Remarks

You can use an IAM role to distribute your AWS credentials to your instances.

If you are creating the launch template for use with an Amazon EC2 Auto Scaling group, you can specify either the name or the ARN of the instance profile, but not both.

IamInstanceProfile is a property of AWS::EC2::LaunchTemplate LaunchTemplateData .

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-iaminstanceprofile.html

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.AWS.EC2;

             var iamInstanceProfileProperty = new IamInstanceProfileProperty {
                 Arn = "arn",
                 Name = "name"
             };

Synopsis

Properties

Arn

The Amazon Resource Name (ARN) of the instance profile.

Name

The name of the instance profile.

Properties

Arn

The Amazon Resource Name (ARN) of the instance profile.

string? Arn { get; }
Property Value

string

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-iaminstanceprofile.html#cfn-ec2-launchtemplate-iaminstanceprofile-arn

Name

The name of the instance profile.

string? Name { get; }
Property Value

string

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-iaminstanceprofile.html#cfn-ec2-launchtemplate-iaminstanceprofile-name

Back to top Generated by DocFX