@Generated(value="jsii-pacmak/1.50.0 (build d1830a4)", date="2022-01-04T15:39:03.517Z") @Stability(value=Stable) public class CfnComputeEnvironment extends CfnResource implements IInspectable
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;
CfnComputeEnvironment cfnComputeEnvironment = CfnComputeEnvironment.Builder.create(this, "MyCfnComputeEnvironment")
.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 | Class and Description |
|---|---|
static class |
CfnComputeEnvironment.Builder
A fluent builder for
CfnComputeEnvironment. |
static interface |
CfnComputeEnvironment.ComputeResourcesProperty
Example:
|
static interface |
CfnComputeEnvironment.Ec2ConfigurationObjectProperty
Example:
|
static interface |
CfnComputeEnvironment.LaunchTemplateSpecificationProperty
Example:
|
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$ProxyIConstruct.Jsii$Default| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnComputeEnvironment(Construct scope,
String id,
CfnComputeEnvironmentProps props)
Create a new `AWS::Batch::ComputeEnvironment`.
|
protected |
CfnComputeEnvironment(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnComputeEnvironment(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
protected Map<String,Object> |
getCfnProperties() |
String |
getComputeEnvironmentName()
`AWS::Batch::ComputeEnvironment.ComputeEnvironmentName`.
|
Object |
getComputeResources()
`AWS::Batch::ComputeEnvironment.ComputeResources`.
|
String |
getServiceRole()
`AWS::Batch::ComputeEnvironment.ServiceRole`.
|
String |
getState()
`AWS::Batch::ComputeEnvironment.State`.
|
TagManager |
getTags()
`AWS::Batch::ComputeEnvironment.Tags`.
|
String |
getType()
`AWS::Batch::ComputeEnvironment.Type`.
|
Number |
getUnmanagedvCpus()
`AWS::Batch::ComputeEnvironment.UnmanagedvCpus`.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setComputeEnvironmentName(String value)
`AWS::Batch::ComputeEnvironment.ComputeEnvironmentName`.
|
void |
setComputeResources(CfnComputeEnvironment.ComputeResourcesProperty value)
`AWS::Batch::ComputeEnvironment.ComputeResources`.
|
void |
setComputeResources(IResolvable value)
`AWS::Batch::ComputeEnvironment.ComputeResources`.
|
void |
setServiceRole(String value)
`AWS::Batch::ComputeEnvironment.ServiceRole`.
|
void |
setState(String value)
`AWS::Batch::ComputeEnvironment.State`.
|
void |
setType(String value)
`AWS::Batch::ComputeEnvironment.Type`.
|
void |
setUnmanagedvCpus(Number value)
`AWS::Batch::ComputeEnvironment.UnmanagedvCpus`.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdgetNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validatejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnComputeEnvironment(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnComputeEnvironment(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnComputeEnvironment(@NotNull
Construct scope,
@NotNull
String id,
@NotNull
CfnComputeEnvironmentProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public TagManager getTags()
@Stability(value=Stable) @NotNull public String getType()
@Stability(value=Stable)
public void setType(@NotNull
String value)
@Stability(value=Stable) @Nullable public String getComputeEnvironmentName()
@Stability(value=Stable)
public void setComputeEnvironmentName(@Nullable
String value)
@Stability(value=Stable) @Nullable public Object getComputeResources()
@Stability(value=Stable)
public void setComputeResources(@Nullable
CfnComputeEnvironment.ComputeResourcesProperty value)
@Stability(value=Stable)
public void setComputeResources(@Nullable
IResolvable value)
@Stability(value=Stable) @Nullable public String getServiceRole()
@Stability(value=Stable)
public void setServiceRole(@Nullable
String value)
@Stability(value=Stable) @Nullable public String getState()
@Stability(value=Stable)
public void setState(@Nullable
String value)
@Stability(value=Stable) @Nullable public Number getUnmanagedvCpus()
@Stability(value=Stable)
public void setUnmanagedvCpus(@Nullable
Number value)
Copyright © 2022. All rights reserved.