@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-07T23:47:00.801Z") @Stability(value=Experimental) public interface ServiceProps extends software.amazon.jsii.JsiiSerializable
Example:
import software.amazon.awscdk.core.*;
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 | Interface and Description |
|---|---|
static class |
ServiceProps.Builder
A builder for
ServiceProps |
static class |
ServiceProps.Jsii$Proxy
An implementation for
ServiceProps |
| Modifier and Type | Method and Description |
|---|---|
static ServiceProps.Builder |
builder() |
default IRole |
getAccessRole()
(experimental) The IAM role that grants the App Runner service access to a source repository.
|
default Cpu |
getCpu()
(experimental) The number of CPU units reserved for each instance of your App Runner service.
|
default IRole |
getInstanceRole()
(experimental) The IAM role that provides permissions to your App Runner service.
|
default Memory |
getMemory()
(experimental) The amount of memory reserved for each instance of your App Runner service.
|
default String |
getServiceName()
(experimental) Name of the service.
|
Source |
getSource()
(experimental) The source of the repository for the service.
|
default IVpcConnector |
getVpcConnector()
(experimental) Settings for an App Runner VPC connector to associate with the service.
|
@Stability(value=Experimental) @NotNull Source getSource()
@Stability(value=Experimental) @Nullable default IRole getAccessRole()
It's required for ECR image repositories (but not for ECR Public repositories).
The role must be assumable by the 'build.apprunner.amazonaws.com' service principal.
Default: - generate a new access role.
@Stability(value=Experimental) @Nullable default Cpu getCpu()
Default: Cpu.ONE_VCPU
@Stability(value=Experimental) @Nullable default IRole getInstanceRole()
These are permissions that your code needs when it calls any AWS APIs.
The role must be assumable by the 'tasks.apprunner.amazonaws.com' service principal.
Default: - no instance role attached.
@Stability(value=Experimental) @Nullable default Memory getMemory()
Default: Memory.TWO_GB
@Stability(value=Experimental) @Nullable default String getServiceName()
Default: - auto-generated if undefined.
@Stability(value=Experimental) @Nullable default IVpcConnector getVpcConnector()
Default: - no VPC connector, uses the DEFAULT egress type instead
@Stability(value=Experimental) static ServiceProps.Builder builder()
ServiceProps.Builder of ServicePropsCopyright © 2022. All rights reserved.