Show / Hide Table of Contents

Class CfnLaunchTemplate.IamInstanceProfileProperty

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

Inheritance
object
CfnLaunchTemplate.IamInstanceProfileProperty
Implements
CfnLaunchTemplate.IIamInstanceProfileProperty
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnLaunchTemplate.IamInstanceProfileProperty : CfnLaunchTemplate.IIamInstanceProfileProperty
Syntax (vb)
Public Class CfnLaunchTemplate.IamInstanceProfileProperty Implements 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

Constructors

IamInstanceProfileProperty()

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

Properties

Arn

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

Name

The name of the instance profile.

Constructors

IamInstanceProfileProperty()

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

public IamInstanceProfileProperty()
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"
             };

Properties

Arn

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

public string? Arn { get; set; }
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.

public string? Name { get; set; }
Property Value

string

Remarks

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

Implements

CfnLaunchTemplate.IIamInstanceProfileProperty
Back to top Generated by DocFX