@Generated(value="jsii-pacmak/1.30.0 (build adae23f)", date="2021-06-30T10:01:06.762Z") @Stability(value=Experimental) public class Cluster extends Resource implements ICluster
| Modifier and Type | Class and Description |
|---|---|
static class |
Cluster.Builder
(experimental) A fluent builder for
Cluster. |
software.amazon.jsii.JsiiObject.InitializationModeICluster.Jsii$Default, ICluster.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
Cluster(software.constructs.Construct scope,
String id)
(experimental) Constructs a new instance of the Cluster class.
|
|
Cluster(software.constructs.Construct scope,
String id,
ClusterProps props)
(experimental) Constructs a new instance of the Cluster class.
|
protected |
Cluster(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
Cluster(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAsgCapacityProvider(AsgCapacityProvider provider)
(experimental) This method adds an Auto Scaling Group Capacity Provider to a cluster.
|
void |
addAsgCapacityProvider(AsgCapacityProvider provider,
AddAutoScalingGroupCapacityOptions options)
(experimental) This method adds an Auto Scaling Group Capacity Provider to a cluster.
|
INamespace |
addDefaultCloudMapNamespace(CloudMapNamespaceOptions options)
(experimental) Add an AWS Cloud Map DNS namespace for this cluster.
|
void |
enableFargateCapacityProviders()
(experimental) Enable the Fargate capacity providers for this cluster.
|
static ICluster |
fromClusterAttributes(software.constructs.Construct scope,
String id,
ClusterAttributes attrs)
(experimental) Import an existing cluster to the stack from its attributes.
|
IAutoScalingGroup |
getAutoscalingGroup()
(experimental) Getter for autoscaling group added to cluster.
|
String |
getClusterArn()
(experimental) The Amazon Resource Name (ARN) that identifies the cluster.
|
String |
getClusterName()
(experimental) The name of the cluster.
|
Connections |
getConnections()
(experimental) Manage the allowed network connections for the cluster with Security Groups.
|
INamespace |
getDefaultCloudMapNamespace()
(experimental) Getter for namespace added to cluster.
|
ExecuteCommandConfiguration |
getExecuteCommandConfiguration()
(experimental) Getter for execute command configuration associated with the cluster.
|
Boolean |
getHasEc2Capacity()
(experimental) Whether the cluster has EC2 capacity associated with it.
|
IVpc |
getVpc()
(experimental) The VPC associated with the cluster.
|
Metric |
metric(String metricName)
(experimental) This method returns the specifed CloudWatch metric for this cluster.
|
Metric |
metric(String metricName,
MetricOptions props)
(experimental) This method returns the specifed CloudWatch metric for this cluster.
|
Metric |
metricCpuReservation()
(experimental) This method returns the CloudWatch metric for this clusters CPU reservation.
|
Metric |
metricCpuReservation(MetricOptions props)
(experimental) This method returns the CloudWatch metric for this clusters CPU reservation.
|
Metric |
metricCpuUtilization()
(experimental) This method returns the CloudWatch metric for this clusters CPU utilization.
|
Metric |
metricCpuUtilization(MetricOptions props)
(experimental) This method returns the CloudWatch metric for this clusters CPU utilization.
|
Metric |
metricMemoryReservation()
(experimental) This method returns the CloudWatch metric for this clusters memory reservation.
|
Metric |
metricMemoryReservation(MetricOptions props)
(experimental) This method returns the CloudWatch metric for this clusters memory reservation.
|
Metric |
metricMemoryUtilization()
(experimental) This method returns the CloudWatch metric for this clusters memory utilization.
|
Metric |
metricMemoryUtilization(MetricOptions props)
(experimental) This method returns the CloudWatch metric for this clusters memory utilization.
|
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResourcejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected Cluster(software.amazon.jsii.JsiiObjectRef objRef)
protected Cluster(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
public Cluster(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@Nullable
ClusterProps props)
scope - This parameter is required.id - This parameter is required.props - @Stability(value=Experimental)
public Cluster(@NotNull
software.constructs.Construct scope,
@NotNull
String id)
scope - This parameter is required.id - This parameter is required.@Stability(value=Experimental) @NotNull public static ICluster fromClusterAttributes(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull ClusterAttributes attrs)
scope - This parameter is required.id - This parameter is required.attrs - This parameter is required.@Stability(value=Experimental)
public void addAsgCapacityProvider(@NotNull
AsgCapacityProvider provider,
@Nullable
AddAutoScalingGroupCapacityOptions options)
provider - the capacity provider to add to this cluster. This parameter is required.options - @Stability(value=Experimental)
public void addAsgCapacityProvider(@NotNull
AsgCapacityProvider provider)
provider - the capacity provider to add to this cluster. This parameter is required.@Stability(value=Experimental) @NotNull public INamespace addDefaultCloudMapNamespace(@NotNull CloudMapNamespaceOptions options)
NOTE: HttpNamespaces are not supported, as ECS always requires a DNSConfig when registering an instance to a Cloud Map service.
options - This parameter is required.@Stability(value=Experimental) public void enableFargateCapacityProviders()
@Stability(value=Experimental) @NotNull public Metric metric(@NotNull String metricName, @Nullable MetricOptions props)
metricName - This parameter is required.props - @Stability(value=Experimental) @NotNull public Metric metric(@NotNull String metricName)
metricName - This parameter is required.@Stability(value=Experimental) @NotNull public Metric metricCpuReservation(@Nullable MetricOptions props)
Default: average over 5 minutes
props - @Stability(value=Experimental) @NotNull public Metric metricCpuReservation()
Default: average over 5 minutes
@Stability(value=Experimental) @NotNull public Metric metricCpuUtilization(@Nullable MetricOptions props)
Default: average over 5 minutes
props - @Stability(value=Experimental) @NotNull public Metric metricCpuUtilization()
Default: average over 5 minutes
@Stability(value=Experimental) @NotNull public Metric metricMemoryReservation(@Nullable MetricOptions props)
Default: average over 5 minutes
props - @Stability(value=Experimental) @NotNull public Metric metricMemoryReservation()
Default: average over 5 minutes
@Stability(value=Experimental) @NotNull public Metric metricMemoryUtilization(@Nullable MetricOptions props)
Default: average over 5 minutes
props - @Stability(value=Experimental) @NotNull public Metric metricMemoryUtilization()
Default: average over 5 minutes
@Stability(value=Experimental) @NotNull public String getClusterArn()
getClusterArn in interface ICluster@Stability(value=Experimental) @NotNull public String getClusterName()
getClusterName in interface ICluster@Stability(value=Experimental) @NotNull public Connections getConnections()
getConnections in interface ICluster@Stability(value=Experimental) @NotNull public Boolean getHasEc2Capacity()
getHasEc2Capacity in interface ICluster@Stability(value=Experimental) @NotNull public IVpc getVpc()
@Stability(value=Experimental) @Nullable public IAutoScalingGroup getAutoscalingGroup()
getAutoscalingGroup in interface ICluster@Stability(value=Experimental) @Nullable public INamespace getDefaultCloudMapNamespace()
getDefaultCloudMapNamespace in interface ICluster@Stability(value=Experimental) @Nullable public ExecuteCommandConfiguration getExecuteCommandConfiguration()
getExecuteCommandConfiguration in interface IClusterCopyright © 2021. All rights reserved.