@Stability(value=Stable)
public static interface CfnComputeEnvironment.ComputeResourcesProperty
extends software.amazon.jsii.JsiiSerializable
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.batch.*;
ComputeResourcesProperty computeResourcesProperty = ComputeResourcesProperty.builder()
.maxvCpus(123)
.subnets(List.of("subnets"))
.type("type")
// the properties below are optional
.allocationStrategy("allocationStrategy")
.bidPercentage(123)
.desiredvCpus(123)
.ec2Configuration(List.of(Ec2ConfigurationObjectProperty.builder()
.imageType("imageType")
// the properties below are optional
.imageIdOverride("imageIdOverride")
.build()))
.ec2KeyPair("ec2KeyPair")
.imageId("imageId")
.instanceRole("instanceRole")
.instanceTypes(List.of("instanceTypes"))
.launchTemplate(LaunchTemplateSpecificationProperty.builder()
.launchTemplateId("launchTemplateId")
.launchTemplateName("launchTemplateName")
.version("version")
.build())
.minvCpus(123)
.placementGroup("placementGroup")
.securityGroupIds(List.of("securityGroupIds"))
.spotIamFleetRole("spotIamFleetRole")
.tags(Map.of(
"tagsKey", "tags"))
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnComputeEnvironment.ComputeResourcesProperty.Builder
A builder for
CfnComputeEnvironment.ComputeResourcesProperty |
static class |
CfnComputeEnvironment.ComputeResourcesProperty.Jsii$Proxy
An implementation for
CfnComputeEnvironment.ComputeResourcesProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnComputeEnvironment.ComputeResourcesProperty.Builder |
builder() |
default String |
getAllocationStrategy()
`CfnComputeEnvironment.ComputeResourcesProperty.AllocationStrategy`.
|
default Number |
getBidPercentage()
`CfnComputeEnvironment.ComputeResourcesProperty.BidPercentage`.
|
default Number |
getDesiredvCpus()
`CfnComputeEnvironment.ComputeResourcesProperty.DesiredvCpus`.
|
default Object |
getEc2Configuration()
`CfnComputeEnvironment.ComputeResourcesProperty.Ec2Configuration`.
|
default String |
getEc2KeyPair()
`CfnComputeEnvironment.ComputeResourcesProperty.Ec2KeyPair`.
|
default String |
getImageId()
`CfnComputeEnvironment.ComputeResourcesProperty.ImageId`.
|
default String |
getInstanceRole()
`CfnComputeEnvironment.ComputeResourcesProperty.InstanceRole`.
|
default List<String> |
getInstanceTypes()
`CfnComputeEnvironment.ComputeResourcesProperty.InstanceTypes`.
|
default Object |
getLaunchTemplate()
`CfnComputeEnvironment.ComputeResourcesProperty.LaunchTemplate`.
|
Number |
getMaxvCpus()
`CfnComputeEnvironment.ComputeResourcesProperty.MaxvCpus`.
|
default Number |
getMinvCpus()
`CfnComputeEnvironment.ComputeResourcesProperty.MinvCpus`.
|
default String |
getPlacementGroup()
`CfnComputeEnvironment.ComputeResourcesProperty.PlacementGroup`.
|
default List<String> |
getSecurityGroupIds()
`CfnComputeEnvironment.ComputeResourcesProperty.SecurityGroupIds`.
|
default String |
getSpotIamFleetRole()
`CfnComputeEnvironment.ComputeResourcesProperty.SpotIamFleetRole`.
|
List<String> |
getSubnets()
`CfnComputeEnvironment.ComputeResourcesProperty.Subnets`.
|
default Map<String,String> |
getTags()
`CfnComputeEnvironment.ComputeResourcesProperty.Tags`.
|
String |
getType()
`CfnComputeEnvironment.ComputeResourcesProperty.Type`.
|
@Stability(value=Stable) @NotNull Number getMaxvCpus()
@Stability(value=Stable) @NotNull List<String> getSubnets()
@Stability(value=Stable) @NotNull String getType()
@Stability(value=Stable) @Nullable default String getAllocationStrategy()
@Stability(value=Stable) @Nullable default Number getBidPercentage()
@Stability(value=Stable) @Nullable default Number getDesiredvCpus()
@Stability(value=Stable) @Nullable default Object getEc2Configuration()
@Stability(value=Stable) @Nullable default String getEc2KeyPair()
@Stability(value=Stable) @Nullable default String getImageId()
@Stability(value=Stable) @Nullable default String getInstanceRole()
@Stability(value=Stable) @Nullable default List<String> getInstanceTypes()
@Stability(value=Stable) @Nullable default Object getLaunchTemplate()
@Stability(value=Stable) @Nullable default Number getMinvCpus()
@Stability(value=Stable) @Nullable default String getPlacementGroup()
@Stability(value=Stable) @Nullable default List<String> getSecurityGroupIds()
@Stability(value=Stable) @Nullable default String getSpotIamFleetRole()
@Stability(value=Stable) @Nullable default Map<String,String> getTags()
@Stability(value=Stable) static CfnComputeEnvironment.ComputeResourcesProperty.Builder builder()
Copyright © 2022. All rights reserved.