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();
 
  • 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

      @Stability(Experimental) @NotNull public String getServiceArn()
      (experimental) The ARN of the Service.
    • getServiceId

      @Stability(Experimental) @NotNull public String getServiceId()
      (experimental) The ID of the Service.
    • getServiceName

      @Stability(Experimental) @NotNull public String getServiceName()
      (experimental) The name of the service.
    • getServiceStatus

      @Stability(Experimental) @NotNull public String getServiceStatus()
      (experimental) The status of the Service.
    • getServiceUrl

      @Stability(Experimental) @NotNull public String getServiceUrl()
      (experimental) The URL of the Service.