@Generated(value="jsii-pacmak/1.58.0 (build f8ba112)", date="2022-05-13T01:13:31.948Z") public class Service extends Resource
Example:
Service.Builder.create(this, "Service") .source(Source.fromGitHub(GithubRepositoryProps.builder() .repositoryUrl("https://github.com/aws-containers/hello-app-runner") .branch("main") .configurationSource(ConfigurationSourceType.REPOSITORY) .connection(GitHubConnection.fromConnectionArn("CONNECTION_ARN")) .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()