@Stability(value=Experimental) public static final class ServiceProps.Builder extends Object implements software.amazon.jsii.Builder<ServiceProps>
ServiceProps| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
ServiceProps.Builder |
accessRole(IRole accessRole)
Sets the value of
ServiceProps.getAccessRole() |
ServiceProps |
build()
Builds the configured instance.
|
ServiceProps.Builder |
cpu(Cpu cpu)
Sets the value of
ServiceProps.getCpu() |
ServiceProps.Builder |
instanceRole(IRole instanceRole)
Sets the value of
ServiceProps.getInstanceRole() |
ServiceProps.Builder |
memory(Memory memory)
Sets the value of
ServiceProps.getMemory() |
ServiceProps.Builder |
serviceName(String serviceName)
Sets the value of
ServiceProps.getServiceName() |
ServiceProps.Builder |
source(Source source)
Sets the value of
ServiceProps.getSource() |
ServiceProps.Builder |
vpcConnector(IVpcConnector vpcConnector)
Sets the value of
ServiceProps.getVpcConnector() |
@Stability(value=Experimental) public ServiceProps.Builder source(Source source)
ServiceProps.getSource()source - The source of the repository for the service. This parameter is required.this@Stability(value=Experimental) public ServiceProps.Builder accessRole(IRole accessRole)
ServiceProps.getAccessRole()accessRole - The IAM role that grants the App Runner service access to a source repository.
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.
this@Stability(value=Experimental) public ServiceProps.Builder cpu(Cpu cpu)
ServiceProps.getCpu()cpu - The number of CPU units reserved for each instance of your App Runner service.this@Stability(value=Experimental) public ServiceProps.Builder instanceRole(IRole instanceRole)
ServiceProps.getInstanceRole()instanceRole - The IAM role that provides permissions to your App Runner service.
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.
this@Stability(value=Experimental) public ServiceProps.Builder memory(Memory memory)
ServiceProps.getMemory()memory - The amount of memory reserved for each instance of your App Runner service.this@Stability(value=Experimental) public ServiceProps.Builder serviceName(String serviceName)
ServiceProps.getServiceName()serviceName - Name of the service.this@Stability(value=Experimental) public ServiceProps.Builder vpcConnector(IVpcConnector vpcConnector)
ServiceProps.getVpcConnector()vpcConnector - Settings for an App Runner VPC connector to associate with the service.this@Stability(value=Experimental) public ServiceProps build()
build in interface software.amazon.jsii.Builder<ServiceProps>ServicePropsNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.