@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-22T19:35:43.597Z") public class Service extends Resource
Example:
import software.amazon.awscdk.services.ecr.assets.*; DockerImageAsset imageAsset = DockerImageAsset.Builder.create(this, "ImageAssets") .directory(join(__dirname, "./docker.assets")) .build(); Service.Builder.create(this, "Service") .source(Source.fromAsset(AssetProps.builder() .imageConfiguration(ImageConfiguration.builder().port(8000).build()) .asset(imageAsset) .build())) .build();
Modifier and Type | Class and Description |
---|---|
static class |
Service.Builder
(experimental) A fluent builder for
Service . |
IResource.Jsii$Default
Modifier | Constructor and Description |
---|---|
protected |
Service(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
Service(software.amazon.jsii.JsiiObjectRef objRef) |
|
Service(software.constructs.Construct scope,
java.lang.String id,
ServiceProps props) |
Modifier and Type | Method and Description |
---|---|
static IService |
fromServiceAttributes(software.constructs.Construct scope,
java.lang.String id,
ServiceAttributes attrs)
(experimental) Import from service attributes.
|
static IService |
fromServiceName(software.constructs.Construct scope,
java.lang.String id,
java.lang.String serviceName)
(experimental) Import from service name.
|
java.lang.String |
getServiceArn()
(experimental) The ARN of the Service.
|
java.lang.String |
getServiceId()
(experimental) The ID of the Service.
|
java.lang.String |
getServiceName()
(experimental) The name of the service.
|
java.lang.String |
getServiceStatus()
(experimental) The status of the Service.
|
java.lang.String |
getServiceUrl()
(experimental) The URL of the Service.
|
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResource
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getNode
protected Service(software.amazon.jsii.JsiiObjectRef objRef)
protected Service(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public Service(software.constructs.Construct scope, java.lang.String id, ServiceProps props)
scope
- This parameter is required.id
- This parameter is required.props
- This parameter is required.public static IService fromServiceAttributes(software.constructs.Construct scope, java.lang.String id, ServiceAttributes attrs)
scope
- This parameter is required.id
- This parameter is required.attrs
- This parameter is required.public static IService fromServiceName(software.constructs.Construct scope, java.lang.String id, java.lang.String serviceName)
scope
- This parameter is required.id
- This parameter is required.serviceName
- This parameter is required.public java.lang.String getServiceArn()
public java.lang.String getServiceId()
public java.lang.String getServiceName()
public java.lang.String getServiceStatus()
public java.lang.String getServiceUrl()