Interface CfnInfrastructureConfigurationProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnInfrastructureConfigurationProps.Jsii$Proxy
CfnInfrastructureConfiguration.
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.imagebuilder.*;
CfnInfrastructureConfigurationProps cfnInfrastructureConfigurationProps = CfnInfrastructureConfigurationProps.builder()
.instanceProfileName("instanceProfileName")
.name("name")
// the properties below are optional
.description("description")
.instanceMetadataOptions(InstanceMetadataOptionsProperty.builder()
.httpPutResponseHopLimit(123)
.httpTokens("httpTokens")
.build())
.instanceTypes(List.of("instanceTypes"))
.keyPair("keyPair")
.logging(LoggingProperty.builder()
.s3Logs(S3LogsProperty.builder()
.s3BucketName("s3BucketName")
.s3KeyPrefix("s3KeyPrefix")
.build())
.build())
.placement(PlacementProperty.builder()
.availabilityZone("availabilityZone")
.hostId("hostId")
.hostResourceGroupArn("hostResourceGroupArn")
.tenancy("tenancy")
.build())
.resourceTags(Map.of(
"resourceTagsKey", "resourceTags"))
.securityGroupIds(List.of("securityGroupIds"))
.snsTopicArn("snsTopicArn")
.subnetId("subnetId")
.tags(Map.of(
"tagsKey", "tags"))
.terminateInstanceOnFailure(false)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnInfrastructureConfigurationPropsstatic final classAn implementation forCfnInfrastructureConfigurationProps -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default StringThe description of the infrastructure configuration.default ObjectThe instance metadata options that you can set for the HTTP requests that pipeline builds use to launch EC2 build and test instances.The instance profile to associate with the instance used to customize your Amazon EC2 AMI.The instance types of the infrastructure configuration.default StringThe key pair of the infrastructure configuration.default ObjectThe logging configuration of the infrastructure configuration.getName()The name of the infrastructure configuration.default ObjectThe instance placement settings that define where the instances that are launched from your image will run.default ObjectThe metadata tags to assign to the Amazon EC2 instance that Image Builder launches during the build process.The security group IDs to associate with the instance used to customize your Amazon EC2 AMI.default StringThe Amazon Resource Name (ARN) for the SNS topic to which we send image build event notifications.default StringThe subnet ID in which to place the instance used to customize your Amazon EC2 AMI.getTags()The metadata tags to assign to the infrastructure configuration resource that Image Builder creates as output.default ObjectThe terminate instance on failure setting of the infrastructure configuration.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getInstanceProfileName
The instance profile to associate with the instance used to customize your Amazon EC2 AMI.- See Also:
-
getName
The name of the infrastructure configuration.- See Also:
-
getDescription
The description of the infrastructure configuration.- See Also:
-
getInstanceMetadataOptions
The instance metadata options that you can set for the HTTP requests that pipeline builds use to launch EC2 build and test instances.Returns union: either
IResolvableorCfnInfrastructureConfiguration.InstanceMetadataOptionsProperty- See Also:
-
getInstanceTypes
The instance types of the infrastructure configuration.You can specify one or more instance types to use for this build. The service will pick one of these instance types based on availability.
- See Also:
-
getKeyPair
The key pair of the infrastructure configuration.You can use this to log on to and debug the instance used to create your image.
- See Also:
-
getLogging
The logging configuration of the infrastructure configuration.Returns union: either
IResolvableorCfnInfrastructureConfiguration.LoggingProperty- See Also:
-
getPlacement
The instance placement settings that define where the instances that are launched from your image will run.Returns union: either
IResolvableorCfnInfrastructureConfiguration.PlacementProperty- See Also:
-
getResourceTags
The metadata tags to assign to the Amazon EC2 instance that Image Builder launches during the build process.Tags are formatted as key value pairs.
Returns union: either Mapinvalid input: '<'String,
String> orIResolvable- See Also:
-
getSecurityGroupIds
The security group IDs to associate with the instance used to customize your Amazon EC2 AMI.- See Also:
-
getSnsTopicArn
The Amazon Resource Name (ARN) for the SNS topic to which we send image build event notifications.EC2 Image Builder is unable to send notifications to SNS topics that are encrypted using keys from other accounts. The key that is used to encrypt the SNS topic must reside in the account that the Image Builder service runs under.
- See Also:
-
getSubnetId
The subnet ID in which to place the instance used to customize your Amazon EC2 AMI.- See Also:
-
getTags
The metadata tags to assign to the infrastructure configuration resource that Image Builder creates as output.Tags are formatted as key value pairs.
- See Also:
-
getTerminateInstanceOnFailure
The terminate instance on failure setting of the infrastructure configuration.Set to false if you want Image Builder to retain the instance used to configure your AMI if the build or test phase of your workflow fails.
Returns union: either
BooleanorIResolvable- See Also:
-
builder
-