@Generated(value="jsii-pacmak/1.47.0 (build 86d2c33)", date="2021-12-22T10:27:17.204Z") @Stability(value=Stable) public class CfnService 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.ecs.*;
CfnService cfnService = CfnService.Builder.create(this, "MyCfnService")
.capacityProviderStrategy(List.of(CapacityProviderStrategyItemProperty.builder()
.base(123)
.capacityProvider("capacityProvider")
.weight(123)
.build()))
.cluster("cluster")
.deploymentConfiguration(DeploymentConfigurationProperty.builder()
.deploymentCircuitBreaker(DeploymentCircuitBreakerProperty.builder()
.enable(false)
.rollback(false)
.build())
.maximumPercent(123)
.minimumHealthyPercent(123)
.build())
.deploymentController(DeploymentControllerProperty.builder()
.type("type")
.build())
.desiredCount(123)
.enableEcsManagedTags(false)
.enableExecuteCommand(false)
.healthCheckGracePeriodSeconds(123)
.launchType("launchType")
.loadBalancers(List.of(LoadBalancerProperty.builder()
.containerPort(123)
// the properties below are optional
.containerName("containerName")
.loadBalancerName("loadBalancerName")
.targetGroupArn("targetGroupArn")
.build()))
.networkConfiguration(NetworkConfigurationProperty.builder()
.awsvpcConfiguration(AwsVpcConfigurationProperty.builder()
.subnets(List.of("subnets"))
// the properties below are optional
.assignPublicIp("assignPublicIp")
.securityGroups(List.of("securityGroups"))
.build())
.build())
.placementConstraints(List.of(PlacementConstraintProperty.builder()
.type("type")
// the properties below are optional
.expression("expression")
.build()))
.placementStrategies(List.of(PlacementStrategyProperty.builder()
.type("type")
// the properties below are optional
.field("field")
.build()))
.platformVersion("platformVersion")
.propagateTags("propagateTags")
.role("role")
.schedulingStrategy("schedulingStrategy")
.serviceName("serviceName")
.serviceRegistries(List.of(ServiceRegistryProperty.builder()
.containerName("containerName")
.containerPort(123)
.port(123)
.registryArn("registryArn")
.build()))
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.taskDefinition("taskDefinition")
.build();
| Modifier and Type | Class and Description |
|---|---|
static interface |
CfnService.AwsVpcConfigurationProperty
Example:
|
static class |
CfnService.Builder
A fluent builder for
CfnService. |
static interface |
CfnService.CapacityProviderStrategyItemProperty
Example:
|
static interface |
CfnService.DeploymentCircuitBreakerProperty
Example:
|
static interface |
CfnService.DeploymentConfigurationProperty
Example:
|
static interface |
CfnService.DeploymentControllerProperty
Example:
|
static interface |
CfnService.LoadBalancerProperty
Example:
|
static interface |
CfnService.NetworkConfigurationProperty
Example:
|
static interface |
CfnService.PlacementConstraintProperty
Example:
|
static interface |
CfnService.PlacementStrategyProperty
Example:
|
static interface |
CfnService.ServiceRegistryProperty
Example:
|
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| 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 |
|---|---|
|
CfnService(software.constructs.Construct scope,
String id)
Create a new `AWS::ECS::Service`.
|
|
CfnService(software.constructs.Construct scope,
String id,
CfnServiceProps props)
Create a new `AWS::ECS::Service`.
|
protected |
CfnService(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnService(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAttrName() |
String |
getAttrServiceArn() |
Object |
getCapacityProviderStrategy()
`AWS::ECS::Service.CapacityProviderStrategy`.
|
protected Map<String,Object> |
getCfnProperties() |
String |
getCluster()
`AWS::ECS::Service.Cluster`.
|
Object |
getDeploymentConfiguration()
`AWS::ECS::Service.DeploymentConfiguration`.
|
Object |
getDeploymentController()
`AWS::ECS::Service.DeploymentController`.
|
Number |
getDesiredCount()
`AWS::ECS::Service.DesiredCount`.
|
Object |
getEnableEcsManagedTags()
`AWS::ECS::Service.EnableECSManagedTags`.
|
Object |
getEnableExecuteCommand()
`AWS::ECS::Service.EnableExecuteCommand`.
|
Number |
getHealthCheckGracePeriodSeconds()
`AWS::ECS::Service.HealthCheckGracePeriodSeconds`.
|
String |
getLaunchType()
`AWS::ECS::Service.LaunchType`.
|
Object |
getLoadBalancers()
`AWS::ECS::Service.LoadBalancers`.
|
Object |
getNetworkConfiguration()
`AWS::ECS::Service.NetworkConfiguration`.
|
Object |
getPlacementConstraints()
`AWS::ECS::Service.PlacementConstraints`.
|
Object |
getPlacementStrategies()
`AWS::ECS::Service.PlacementStrategies`.
|
String |
getPlatformVersion()
`AWS::ECS::Service.PlatformVersion`.
|
String |
getPropagateTags()
`AWS::ECS::Service.PropagateTags`.
|
String |
getRole()
`AWS::ECS::Service.Role`.
|
String |
getSchedulingStrategy()
`AWS::ECS::Service.SchedulingStrategy`.
|
String |
getServiceName()
`AWS::ECS::Service.ServiceName`.
|
Object |
getServiceRegistries()
`AWS::ECS::Service.ServiceRegistries`.
|
TagManager |
getTags()
`AWS::ECS::Service.Tags`.
|
String |
getTaskDefinition()
`AWS::ECS::Service.TaskDefinition`.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setCapacityProviderStrategy(IResolvable value)
`AWS::ECS::Service.CapacityProviderStrategy`.
|
void |
setCapacityProviderStrategy(List<Object> value)
`AWS::ECS::Service.CapacityProviderStrategy`.
|
void |
setCluster(String value)
`AWS::ECS::Service.Cluster`.
|
void |
setDeploymentConfiguration(CfnService.DeploymentConfigurationProperty value)
`AWS::ECS::Service.DeploymentConfiguration`.
|
void |
setDeploymentConfiguration(IResolvable value)
`AWS::ECS::Service.DeploymentConfiguration`.
|
void |
setDeploymentController(CfnService.DeploymentControllerProperty value)
`AWS::ECS::Service.DeploymentController`.
|
void |
setDeploymentController(IResolvable value)
`AWS::ECS::Service.DeploymentController`.
|
void |
setDesiredCount(Number value)
`AWS::ECS::Service.DesiredCount`.
|
void |
setEnableEcsManagedTags(Boolean value)
`AWS::ECS::Service.EnableECSManagedTags`.
|
void |
setEnableEcsManagedTags(IResolvable value)
`AWS::ECS::Service.EnableECSManagedTags`.
|
void |
setEnableExecuteCommand(Boolean value)
`AWS::ECS::Service.EnableExecuteCommand`.
|
void |
setEnableExecuteCommand(IResolvable value)
`AWS::ECS::Service.EnableExecuteCommand`.
|
void |
setHealthCheckGracePeriodSeconds(Number value)
`AWS::ECS::Service.HealthCheckGracePeriodSeconds`.
|
void |
setLaunchType(String value)
`AWS::ECS::Service.LaunchType`.
|
void |
setLoadBalancers(IResolvable value)
`AWS::ECS::Service.LoadBalancers`.
|
void |
setLoadBalancers(List<Object> value)
`AWS::ECS::Service.LoadBalancers`.
|
void |
setNetworkConfiguration(CfnService.NetworkConfigurationProperty value)
`AWS::ECS::Service.NetworkConfiguration`.
|
void |
setNetworkConfiguration(IResolvable value)
`AWS::ECS::Service.NetworkConfiguration`.
|
void |
setPlacementConstraints(IResolvable value)
`AWS::ECS::Service.PlacementConstraints`.
|
void |
setPlacementConstraints(List<Object> value)
`AWS::ECS::Service.PlacementConstraints`.
|
void |
setPlacementStrategies(IResolvable value)
`AWS::ECS::Service.PlacementStrategies`.
|
void |
setPlacementStrategies(List<Object> value)
`AWS::ECS::Service.PlacementStrategies`.
|
void |
setPlatformVersion(String value)
`AWS::ECS::Service.PlatformVersion`.
|
void |
setPropagateTags(String value)
`AWS::ECS::Service.PropagateTags`.
|
void |
setRole(String value)
`AWS::ECS::Service.Role`.
|
void |
setSchedulingStrategy(String value)
`AWS::ECS::Service.SchedulingStrategy`.
|
void |
setServiceName(String value)
`AWS::ECS::Service.ServiceName`.
|
void |
setServiceRegistries(IResolvable value)
`AWS::ECS::Service.ServiceRegistries`.
|
void |
setServiceRegistries(List<Object> value)
`AWS::ECS::Service.ServiceRegistries`.
|
void |
setTaskDefinition(String value)
`AWS::ECS::Service.TaskDefinition`.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnService(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnService(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnService(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@Nullable
CfnServiceProps 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.@Stability(value=Stable)
public CfnService(@NotNull
software.constructs.Construct scope,
@NotNull
String id)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. 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 public String getAttrName()
@Stability(value=Stable) @NotNull public String getAttrServiceArn()
@Stability(value=Stable) @Nullable public Object getCapacityProviderStrategy()
@Stability(value=Stable)
public void setCapacityProviderStrategy(@Nullable
IResolvable value)
@Stability(value=Stable)
public void setCapacityProviderStrategy(@Nullable
List<Object> value)
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @Nullable public String getCluster()
@Stability(value=Stable)
public void setCluster(@Nullable
String value)
@Stability(value=Stable) @Nullable public Object getDeploymentConfiguration()
@Stability(value=Stable)
public void setDeploymentConfiguration(@Nullable
CfnService.DeploymentConfigurationProperty value)
@Stability(value=Stable)
public void setDeploymentConfiguration(@Nullable
IResolvable value)
@Stability(value=Stable) @Nullable public Object getDeploymentController()
@Stability(value=Stable)
public void setDeploymentController(@Nullable
CfnService.DeploymentControllerProperty value)
@Stability(value=Stable)
public void setDeploymentController(@Nullable
IResolvable value)
@Stability(value=Stable) @Nullable public Number getDesiredCount()
@Stability(value=Stable)
public void setDesiredCount(@Nullable
Number value)
@Stability(value=Stable) @Nullable public Object getEnableEcsManagedTags()
@Stability(value=Stable)
public void setEnableEcsManagedTags(@Nullable
Boolean value)
@Stability(value=Stable)
public void setEnableEcsManagedTags(@Nullable
IResolvable value)
@Stability(value=Stable) @Nullable public Object getEnableExecuteCommand()
@Stability(value=Stable)
public void setEnableExecuteCommand(@Nullable
Boolean value)
@Stability(value=Stable)
public void setEnableExecuteCommand(@Nullable
IResolvable value)
@Stability(value=Stable) @Nullable public Number getHealthCheckGracePeriodSeconds()
@Stability(value=Stable)
public void setHealthCheckGracePeriodSeconds(@Nullable
Number value)
@Stability(value=Stable) @Nullable public String getLaunchType()
@Stability(value=Stable)
public void setLaunchType(@Nullable
String value)
@Stability(value=Stable) @Nullable public Object getLoadBalancers()
@Stability(value=Stable)
public void setLoadBalancers(@Nullable
IResolvable value)
@Stability(value=Stable)
public void setLoadBalancers(@Nullable
List<Object> value)
@Stability(value=Stable) @Nullable public Object getNetworkConfiguration()
@Stability(value=Stable)
public void setNetworkConfiguration(@Nullable
CfnService.NetworkConfigurationProperty value)
@Stability(value=Stable)
public void setNetworkConfiguration(@Nullable
IResolvable value)
@Stability(value=Stable) @Nullable public Object getPlacementConstraints()
@Stability(value=Stable)
public void setPlacementConstraints(@Nullable
IResolvable value)
@Stability(value=Stable)
public void setPlacementConstraints(@Nullable
List<Object> value)
@Stability(value=Stable) @Nullable public Object getPlacementStrategies()
@Stability(value=Stable)
public void setPlacementStrategies(@Nullable
IResolvable value)
@Stability(value=Stable)
public void setPlacementStrategies(@Nullable
List<Object> value)
@Stability(value=Stable) @Nullable public String getPlatformVersion()
@Stability(value=Stable)
public void setPlatformVersion(@Nullable
String value)
@Stability(value=Stable) @Nullable public String getPropagateTags()
@Stability(value=Stable)
public void setPropagateTags(@Nullable
String value)
@Stability(value=Stable) @Nullable public String getRole()
@Stability(value=Stable)
public void setRole(@Nullable
String value)
@Stability(value=Stable) @Nullable public String getSchedulingStrategy()
@Stability(value=Stable)
public void setSchedulingStrategy(@Nullable
String value)
@Stability(value=Stable) @Nullable public String getServiceName()
@Stability(value=Stable)
public void setServiceName(@Nullable
String value)
@Stability(value=Stable) @Nullable public Object getServiceRegistries()
@Stability(value=Stable)
public void setServiceRegistries(@Nullable
IResolvable value)
@Stability(value=Stable)
public void setServiceRegistries(@Nullable
List<Object> value)
@Stability(value=Stable) @NotNull public TagManager getTags()
@Stability(value=Stable) @Nullable public String getTaskDefinition()
@Stability(value=Stable)
public void setTaskDefinition(@Nullable
String value)
Copyright © 2021. All rights reserved.