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 IIamInstanceProfileProperty
Syntax (vb)
Public Interface 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 .
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.
virtual string Arn { get; }
Property Value
System.String
Remarks
Name
The name of the instance profile.
virtual string Name { get; }
Property Value
System.String