Interface CfnWorkspaceInstanceProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnWorkspaceInstanceProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-12-01T16:02:31.786Z")
@Stability(Stable)
public interface CfnWorkspaceInstanceProps
extends software.amazon.jsii.JsiiSerializable
Properties for defining a
CfnWorkspaceInstance.
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.workspacesinstances.*;
CfnWorkspaceInstanceProps cfnWorkspaceInstanceProps = CfnWorkspaceInstanceProps.builder()
.managedInstance(ManagedInstanceProperty.builder()
.imageId("imageId")
.instanceType("instanceType")
// the properties below are optional
.blockDeviceMappings(List.of(BlockDeviceMappingProperty.builder()
.deviceName("deviceName")
.ebs(EbsBlockDeviceProperty.builder()
.encrypted(false)
.iops(123)
.kmsKeyId("kmsKeyId")
.throughput(123)
.volumeSize(123)
.volumeType("volumeType")
.build())
.noDevice("noDevice")
.virtualName("virtualName")
.build()))
.capacityReservationSpecification(CapacityReservationSpecificationProperty.builder()
.capacityReservationPreference("capacityReservationPreference")
.capacityReservationTarget(CapacityReservationTargetProperty.builder()
.capacityReservationId("capacityReservationId")
.capacityReservationResourceGroupArn("capacityReservationResourceGroupArn")
.build())
.build())
.cpuOptions(CpuOptionsRequestProperty.builder()
.coreCount(123)
.threadsPerCore(123)
.build())
.creditSpecification(CreditSpecificationRequestProperty.builder()
.cpuCredits("cpuCredits")
.build())
.disableApiStop(false)
.ebsOptimized(false)
.enablePrimaryIpv6(false)
.enclaveOptions(EnclaveOptionsRequestProperty.builder()
.enabled(false)
.build())
.hibernationOptions(HibernationOptionsRequestProperty.builder()
.configured(false)
.build())
.iamInstanceProfile(IamInstanceProfileSpecificationProperty.builder()
.arn("arn")
.name("name")
.build())
.instanceMarketOptions(InstanceMarketOptionsRequestProperty.builder()
.marketType("marketType")
.spotOptions(SpotMarketOptionsProperty.builder()
.instanceInterruptionBehavior("instanceInterruptionBehavior")
.maxPrice("maxPrice")
.spotInstanceType("spotInstanceType")
.validUntilUtc("validUntilUtc")
.build())
.build())
.ipv6AddressCount(123)
.keyName("keyName")
.licenseSpecifications(List.of(LicenseConfigurationRequestProperty.builder()
.licenseConfigurationArn("licenseConfigurationArn")
.build()))
.maintenanceOptions(InstanceMaintenanceOptionsRequestProperty.builder()
.autoRecovery("autoRecovery")
.build())
.metadataOptions(InstanceMetadataOptionsRequestProperty.builder()
.httpEndpoint("httpEndpoint")
.httpProtocolIpv6("httpProtocolIpv6")
.httpPutResponseHopLimit(123)
.httpTokens("httpTokens")
.instanceMetadataTags("instanceMetadataTags")
.build())
.monitoring(RunInstancesMonitoringEnabledProperty.builder()
.enabled(false)
.build())
.networkInterfaces(List.of(InstanceNetworkInterfaceSpecificationProperty.builder()
.description("description")
.deviceIndex(123)
.groups(List.of("groups"))
.subnetId("subnetId")
.build()))
.networkPerformanceOptions(InstanceNetworkPerformanceOptionsRequestProperty.builder()
.bandwidthWeighting("bandwidthWeighting")
.build())
.placement(PlacementProperty.builder()
.availabilityZone("availabilityZone")
.groupId("groupId")
.groupName("groupName")
.partitionNumber(123)
.tenancy("tenancy")
.build())
.privateDnsNameOptions(PrivateDnsNameOptionsRequestProperty.builder()
.enableResourceNameDnsAaaaRecord(false)
.enableResourceNameDnsARecord(false)
.hostnameType("hostnameType")
.build())
.subnetId("subnetId")
.tagSpecifications(List.of(TagSpecificationProperty.builder()
.resourceType("resourceType")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build()))
.userData("userData")
.build())
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnWorkspaceInstancePropsstatic final classAn implementation forCfnWorkspaceInstanceProps -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default ObjectReturns union: eitherIResolvableorCfnWorkspaceInstance.ManagedInstancePropertygetTags()Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getManagedInstance
Returns union: eitherIResolvableorCfnWorkspaceInstance.ManagedInstanceProperty- See Also:
-
getTags
- See Also:
-
builder
- Returns:
- a
CfnWorkspaceInstanceProps.BuilderofCfnWorkspaceInstanceProps
-