| Modifier and Type | Method and Description |
|---|---|
Service.Builder |
accessRole(IRole accessRole)
(experimental) The IAM role that grants the App Runner service access to a source repository.
|
Service |
build() |
Service.Builder |
cpu(Cpu cpu)
(experimental) The number of CPU units reserved for each instance of your App Runner service.
|
static Service.Builder |
create(software.constructs.Construct scope,
String id) |
Service.Builder |
instanceRole(IRole instanceRole)
(experimental) The IAM role that provides permissions to your App Runner service.
|
Service.Builder |
memory(Memory memory)
(experimental) The amount of memory reserved for each instance of your App Runner service.
|
Service.Builder |
serviceName(String serviceName)
(experimental) Name of the service.
|
Service.Builder |
source(Source source)
(experimental) The source of the repository for the service.
|
@Stability(value=Experimental) public static Service.Builder create(software.constructs.Construct scope, String id)
scope - This parameter is required.id - This parameter is required.Service.Builder.@Stability(value=Experimental) public Service.Builder source(Source source)
source - The source of the repository for the service. This parameter is required.this@Stability(value=Experimental) public Service.Builder accessRole(IRole accessRole)
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.
accessRole - The IAM role that grants the App Runner service access to a source repository. This parameter is required.thishttps://docs.aws.amazon.com/apprunner/latest/dg/security_iam_service-with-iam.html#security_iam_service-with-iam-roles-service.access@Stability(value=Experimental) public Service.Builder cpu(Cpu cpu)
Default: Cpu.ONE_VCPU
cpu - The number of CPU units reserved for each instance of your App Runner service. This parameter is required.this@Stability(value=Experimental) public Service.Builder instanceRole(IRole instanceRole)
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.
instanceRole - The IAM role that provides permissions to your App Runner service. This parameter is required.thishttps://docs.aws.amazon.com/apprunner/latest/dg/security_iam_service-with-iam.html#security_iam_service-with-iam-roles-service.instance@Stability(value=Experimental) public Service.Builder memory(Memory memory)
Default: Memory.TWO_GB
memory - The amount of memory reserved for each instance of your App Runner service. This parameter is required.this@Stability(value=Experimental) public Service.Builder serviceName(String serviceName)
Default: - auto-generated if undefined.
serviceName - Name of the service. This parameter is required.thisCopyright © 2022. All rights reserved.