@Stability(value=Stable)
public static interface CfnLaunchTemplate.IamInstanceProfileProperty
extends software.amazon.jsii.JsiiSerializable
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 .
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ec2.*;
IamInstanceProfileProperty iamInstanceProfileProperty = IamInstanceProfileProperty.builder()
.arn("arn")
.name("name")
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnLaunchTemplate.IamInstanceProfileProperty.Builder
A builder for
CfnLaunchTemplate.IamInstanceProfileProperty |
static class |
CfnLaunchTemplate.IamInstanceProfileProperty.Jsii$Proxy
An implementation for
CfnLaunchTemplate.IamInstanceProfileProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnLaunchTemplate.IamInstanceProfileProperty.Builder |
builder() |
default String |
getArn()
The Amazon Resource Name (ARN) of the instance profile.
|
default String |
getName()
The name of the instance profile.
|
@Stability(value=Stable) @Nullable default String getArn()
@Stability(value=Stable) @Nullable default String getName()
@Stability(value=Stable) static CfnLaunchTemplate.IamInstanceProfileProperty.Builder builder()
Copyright © 2022. All rights reserved.