Interface ServiceProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
ServiceProps.Jsii$Proxy
Example:
import software.amazon.awscdk.services.iam.*; Service service = Service.Builder.create(this, "Service") .source(Source.fromEcrPublic(EcrPublicProps.builder() .imageConfiguration(ImageConfiguration.builder().port(8000).build()) .imageIdentifier("public.ecr.aws/aws-containers/hello-app-runner:latest") .build())) .build(); service.addToRolePolicy(PolicyStatement.Builder.create() .effect(Effect.ALLOW) .actions(List.of("s3:GetObject")) .resources(List.of("*")) .build());
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forServiceProps
static final class
An implementation forServiceProps
-
Method Summary
Modifier and TypeMethodDescriptionstatic ServiceProps.Builder
builder()
default IRole
(experimental) The IAM role that grants the App Runner service access to a source repository.default Boolean
(experimental) Specifies whether to enable continuous integration from the source repository.default Cpu
getCpu()
(experimental) The number of CPU units reserved for each instance of your App Runner service.default HealthCheck
(experimental) Settings for the health check that AWS App Runner performs to monitor the health of a service.default IRole
(experimental) The IAM role that provides permissions to your App Runner service.default Memory
(experimental) The amount of memory reserved for each instance of your App Runner service.default String
(experimental) Name of the service.(experimental) The source of the repository for the service.default IVpcConnector
(experimental) Settings for an App Runner VPC connector to associate with the service.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getSource
(experimental) The source of the repository for the service. -
getAccessRole
(experimental) 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.
Default: - generate a new access role.
- See Also:
-
getAutoDeploymentsEnabled
(experimental) Specifies whether to enable continuous integration from the source repository.If true, continuous integration from the source repository is enabled for the App Runner service. Each repository change (including any source code commit or new image version) starts a deployment. By default, App Runner sets to false for a source image that uses an ECR Public repository or an ECR repository that's in an AWS account other than the one that the service is in. App Runner sets to true in all other cases (which currently include a source code repository or a source image using a same-account ECR repository).
Default: - no value will be passed.
-
getCpu
(experimental) The number of CPU units reserved for each instance of your App Runner service.Default: Cpu.ONE_VCPU
-
getHealthCheck
(experimental) Settings for the health check that AWS App Runner performs to monitor the health of a service.You can specify it by static methods
HealthCheck.http
orHealthCheck.tcp
.Default: - no health check configuration
-
getInstanceRole
(experimental) 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.
Default: - generate a new instance role.
- See Also:
-
getMemory
(experimental) The amount of memory reserved for each instance of your App Runner service.Default: Memory.TWO_GB
-
getServiceName
(experimental) Name of the service.Default: - auto-generated if undefined.
-
getVpcConnector
(experimental) Settings for an App Runner VPC connector to associate with the service.Default: - no VPC connector, uses the DEFAULT egress type instead
-
builder
- Returns:
- a
ServiceProps.Builder
ofServiceProps
-