@Generated(value="jsii-pacmak/1.50.0 (build d1830a4)", date="2022-01-04T15:39:03.522Z") @Stability(value=Stable) public interface CfnComputeEnvironmentProps extends software.amazon.jsii.JsiiSerializable
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.batch.*;
Object tags;
CfnComputeEnvironmentProps cfnComputeEnvironmentProps = CfnComputeEnvironmentProps.builder()
.type("type")
// the properties below are optional
.computeEnvironmentName("computeEnvironmentName")
.computeResources(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(tags)
.build())
.serviceRole("serviceRole")
.state("state")
.tags(tags)
.unmanagedvCpus(123)
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnComputeEnvironmentProps.Builder
A builder for
CfnComputeEnvironmentProps |
static class |
CfnComputeEnvironmentProps.Jsii$Proxy
An implementation for
CfnComputeEnvironmentProps |
| Modifier and Type | Method and Description |
|---|---|
static CfnComputeEnvironmentProps.Builder |
builder() |
default String |
getComputeEnvironmentName()
`AWS::Batch::ComputeEnvironment.ComputeEnvironmentName`.
|
default Object |
getComputeResources()
`AWS::Batch::ComputeEnvironment.ComputeResources`.
|
default String |
getServiceRole()
`AWS::Batch::ComputeEnvironment.ServiceRole`.
|
default String |
getState()
`AWS::Batch::ComputeEnvironment.State`.
|
default Object |
getTags()
`AWS::Batch::ComputeEnvironment.Tags`.
|
String |
getType()
`AWS::Batch::ComputeEnvironment.Type`.
|
default Number |
getUnmanagedvCpus()
`AWS::Batch::ComputeEnvironment.UnmanagedvCpus`.
|
@Stability(value=Stable) @NotNull String getType()
@Stability(value=Stable) @Nullable default String getComputeEnvironmentName()
@Stability(value=Stable) @Nullable default Object getComputeResources()
@Stability(value=Stable) @Nullable default String getServiceRole()
@Stability(value=Stable) @Nullable default String getState()
@Stability(value=Stable) @Nullable default Object getTags()
@Stability(value=Stable) @Nullable default Number getUnmanagedvCpus()
@Stability(value=Stable) static CfnComputeEnvironmentProps.Builder builder()
CfnComputeEnvironmentProps.Builder of CfnComputeEnvironmentPropsCopyright © 2022. All rights reserved.