@Generated(value="jsii-pacmak/1.58.0 (build f8ba112)", date="2022-05-11T19:24:24.580Z") @Stability(value=Experimental) public interface ServiceProps extends software.amazon.jsii.JsiiSerializable
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 | 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.
|
@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.
https://docs.aws.amazon.com/apprunner/latest/dg/security_iam_service-with-iam.html#security_iam_service-with-iam-roles-service.access@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.
https://docs.aws.amazon.com/apprunner/latest/dg/security_iam_service-with-iam.html#security_iam_service-with-iam-roles-service.instance@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) static ServiceProps.Builder builder()
ServiceProps.Builder of ServicePropsCopyright © 2022. All rights reserved.