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.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.core.IResource
IResource.Jsii$Default -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedService(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedService(software.amazon.jsii.JsiiObjectRef objRef) Service(software.constructs.Construct scope, String id, ServiceProps props) -
Method Summary
Modifier and TypeMethodDescriptionstatic IServicefromServiceAttributes(software.constructs.Construct scope, String id, ServiceAttributes attrs) (experimental) Import from service attributes.static IServicefromServiceName(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, isResourceMethods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods inherited from class software.constructs.Construct
toStringMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awscdk.core.IConstruct
getNodeMethods 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.
-