Interface Ec2ServiceAttributes
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
Ec2ServiceAttributes.Jsii$Proxy
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2025-01-15T21:09:18.600Z")
@Stability(Stable)
public interface Ec2ServiceAttributes
extends software.amazon.jsii.JsiiSerializable
The properties to import from the service using the EC2 launch type.
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.*; Cluster cluster; Ec2ServiceAttributes ec2ServiceAttributes = Ec2ServiceAttributes.builder() .cluster(cluster) // the properties below are optional .serviceArn("serviceArn") .serviceName("serviceName") .build();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forEc2ServiceAttributes
static final class
An implementation forEc2ServiceAttributes
-
Method Summary
Modifier and TypeMethodDescriptionstatic Ec2ServiceAttributes.Builder
builder()
The cluster that hosts the service.default String
The service ARN.default String
The name of the service.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getCluster
The cluster that hosts the service. -
getServiceArn
The service ARN.Default: - either this, or `serviceName`, is required
-
getServiceName
The name of the service.Default: - either this, or `serviceArn`, is required
-
builder
- Returns:
- a
Ec2ServiceAttributes.Builder
ofEc2ServiceAttributes
-