Class Service
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.core.Construct
software.amazon.awscdk.core.Resource
software.amazon.awscdk.services.apprunner.Service
- All Implemented Interfaces:
IConstruct
,IDependable
,IResource
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:40.058Z")
@Stability(Experimental)
public class Service
extends Resource
(experimental) The App Runner Service.
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();
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IResource
IResource.Jsii$Default
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Service
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
Service
(software.amazon.jsii.JsiiObjectRef objRef) Service
(software.constructs.Construct scope, String id, ServiceProps props) -
Method Summary
Modifier and TypeMethodDescriptionstatic IService
fromServiceAttributes
(software.constructs.Construct scope, String id, ServiceAttributes attrs) (experimental) Import from service attributes.static IService
fromServiceName
(software.constructs.Construct scope, String id, String serviceName) (experimental) Import from service name.(experimental) The ARN of the Service.(experimental) The ID of the Service.(experimental) The name of the service.(experimental) The status of the Service.(experimental) The URL of the Service.Methods inherited from class software.amazon.awscdk.core.Resource
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResource
Methods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
Methods inherited from class software.constructs.Construct
toString
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface software.amazon.awscdk.core.IConstruct
getNode
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
Service
protected Service(software.amazon.jsii.JsiiObjectRef objRef) -
Service
protected Service(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
Service
@Stability(Experimental) public Service(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull ServiceProps props) - Parameters:
scope
- This parameter is required.id
- This parameter is required.props
- This parameter is required.
-
-
Method Details
-
fromServiceAttributes
@Stability(Experimental) @NotNull public static IService fromServiceAttributes(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull ServiceAttributes attrs) (experimental) Import from service attributes.- Parameters:
scope
- This parameter is required.id
- This parameter is required.attrs
- This parameter is required.
-
fromServiceName
@Stability(Experimental) @NotNull public static IService fromServiceName(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String serviceName) (experimental) Import from service name.- Parameters:
scope
- This parameter is required.id
- This parameter is required.serviceName
- This parameter is required.
-
getServiceArn
(experimental) The ARN of the Service. -
getServiceId
(experimental) The ID of the Service. -
getServiceName
(experimental) The name of the service. -
getServiceStatus
(experimental) The status of the Service. -
getServiceUrl
(experimental) The URL of the Service.
-