@Generated(value="jsii-pacmak/1.50.0 (build d1830a4)", date="2022-01-04T15:39:02.867Z") @Stability(value=Experimental) public interface ServiceProps extends software.amazon.jsii.JsiiSerializable
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.apprunner.*;
import software.amazon.awscdk.services.iam.*;
Cpu cpu;
Memory memory;
Role role;
Source source;
ServiceProps serviceProps = ServiceProps.builder()
.source(source)
// the properties below are optional
.accessRole(role)
.cpu(cpu)
.instanceRole(role)
.memory(memory)
.serviceName("serviceName")
.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.