Interface CfnInfrastructureConfigurationProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnInfrastructureConfigurationProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-21T06:34:09.381Z")
@Stability(Stable)
public interface CfnInfrastructureConfigurationProps
extends software.amazon.jsii.JsiiSerializable
Properties for defining a
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 option settings for the infrastructure configuration.The instance profile of the infrastructure configuration.The instance types of the infrastructure configuration.default StringThe Amazon EC2 key pair of the infrastructure configuration.default ObjectThe logging configuration defines where Image Builder uploads your logs.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 tags attached to the resource created by Image Builder.The security group IDs of the infrastructure configuration.default StringThe Amazon Resource Name (ARN) of the SNS topic for the infrastructure configuration.default StringThe subnet ID of the infrastructure configuration.getTags()The tags of the infrastructure configuration.default ObjectThe terminate instance on failure configuration of the infrastructure configuration.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getInstanceProfileName
The instance profile of the infrastructure configuration.- See Also:
-
getName
The name of the infrastructure configuration.- See Also:
-
getDescription
The description of the infrastructure configuration.- See Also:
-
getInstanceMetadataOptions
The instance metadata option settings for the infrastructure configuration.- See Also:
-
getInstanceTypes
The instance types of the infrastructure configuration.- See Also:
-
getKeyPair
The Amazon EC2 key pair of the infrastructure configuration.- See Also:
-
getLogging
The logging configuration defines where Image Builder uploads your logs.- See Also:
-
getPlacement
The instance placement settings that define where the instances that are launched from your image will run.- See Also:
-
getResourceTags
The tags attached to the resource created by Image Builder.- See Also:
-
getSecurityGroupIds
The security group IDs of the infrastructure configuration.- See Also:
-
getSnsTopicArn
The Amazon Resource Name (ARN) of the SNS topic for the infrastructure configuration.- See Also:
-
getSubnetId
The subnet ID of the infrastructure configuration.- See Also:
-
getTags
The tags of the infrastructure configuration.- See Also:
-
getTerminateInstanceOnFailure
The terminate instance on failure configuration of the infrastructure configuration.- See Also:
-
builder
-