Interface CfnServiceProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnServiceProps.Jsii$Proxy
CfnService.
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.*;
CfnServiceProps cfnServiceProps = CfnServiceProps.builder()
.sourceConfiguration(SourceConfigurationProperty.builder()
.authenticationConfiguration(AuthenticationConfigurationProperty.builder()
.accessRoleArn("accessRoleArn")
.connectionArn("connectionArn")
.build())
.autoDeploymentsEnabled(false)
.codeRepository(CodeRepositoryProperty.builder()
.repositoryUrl("repositoryUrl")
.sourceCodeVersion(SourceCodeVersionProperty.builder()
.type("type")
.value("value")
.build())
// the properties below are optional
.codeConfiguration(CodeConfigurationProperty.builder()
.configurationSource("configurationSource")
// the properties below are optional
.codeConfigurationValues(CodeConfigurationValuesProperty.builder()
.runtime("runtime")
// the properties below are optional
.buildCommand("buildCommand")
.port("port")
.runtimeEnvironmentSecrets(List.of(KeyValuePairProperty.builder()
.name("name")
.value("value")
.build()))
.runtimeEnvironmentVariables(List.of(KeyValuePairProperty.builder()
.name("name")
.value("value")
.build()))
.startCommand("startCommand")
.build())
.build())
.sourceDirectory("sourceDirectory")
.build())
.imageRepository(ImageRepositoryProperty.builder()
.imageIdentifier("imageIdentifier")
.imageRepositoryType("imageRepositoryType")
// the properties below are optional
.imageConfiguration(ImageConfigurationProperty.builder()
.port("port")
.runtimeEnvironmentSecrets(List.of(KeyValuePairProperty.builder()
.name("name")
.value("value")
.build()))
.runtimeEnvironmentVariables(List.of(KeyValuePairProperty.builder()
.name("name")
.value("value")
.build()))
.startCommand("startCommand")
.build())
.build())
.build())
// the properties below are optional
.autoScalingConfigurationArn("autoScalingConfigurationArn")
.encryptionConfiguration(EncryptionConfigurationProperty.builder()
.kmsKey("kmsKey")
.build())
.healthCheckConfiguration(HealthCheckConfigurationProperty.builder()
.healthyThreshold(123)
.interval(123)
.path("path")
.protocol("protocol")
.timeout(123)
.unhealthyThreshold(123)
.build())
.instanceConfiguration(InstanceConfigurationProperty.builder()
.cpu("cpu")
.instanceRoleArn("instanceRoleArn")
.memory("memory")
.build())
.networkConfiguration(NetworkConfigurationProperty.builder()
.egressConfiguration(EgressConfigurationProperty.builder()
.egressType("egressType")
// the properties below are optional
.vpcConnectorArn("vpcConnectorArn")
.build())
.ingressConfiguration(IngressConfigurationProperty.builder()
.isPubliclyAccessible(false)
.build())
.ipAddressType("ipAddressType")
.build())
.observabilityConfiguration(ServiceObservabilityConfigurationProperty.builder()
.observabilityEnabled(false)
// the properties below are optional
.observabilityConfigurationArn("observabilityConfigurationArn")
.build())
.serviceName("serviceName")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnServicePropsstatic final classAn implementation forCfnServiceProps -
Method Summary
Modifier and TypeMethodDescriptionstatic CfnServiceProps.Builderbuilder()default StringThe Amazon Resource Name (ARN) of an App Runner automatic scaling configuration resource that you want to associate with your service.default ObjectAn optional custom encryption key that App Runner uses to encrypt the copy of your source repository that it maintains and your service logs.default ObjectThe settings for the health check that AWS App Runner performs to monitor the health of the App Runner service.default ObjectThe runtime configuration of instances (scaling units) of your service.default ObjectConfiguration settings related to network traffic of the web application that the App Runner service runs.default ObjectThe observability configuration of your service.default StringA name for the App Runner service.The source to deploy to the App Runner service.getTags()An optional list of metadata items that you can associate with the App Runner service resource.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getSourceConfiguration
The source to deploy to the App Runner service.It can be a code or an image repository.
Returns union: either
IResolvableorCfnService.SourceConfigurationProperty- See Also:
-
getAutoScalingConfigurationArn
The Amazon Resource Name (ARN) of an App Runner automatic scaling configuration resource that you want to associate with your service.If not provided, App Runner associates the latest revision of a default auto scaling configuration.
Specify an ARN with a name and a revision number to associate that revision. For example:
arn:aws:apprunner:us-east-1:123456789012:autoscalingconfiguration/high-availability/3Specify just the name to associate the latest revision. For example:
arn:aws:apprunner:us-east-1:123456789012:autoscalingconfiguration/high-availability- See Also:
-
getEncryptionConfiguration
An optional custom encryption key that App Runner uses to encrypt the copy of your source repository that it maintains and your service logs.By default, App Runner uses an AWS managed key .
Returns union: either
IResolvableorCfnService.EncryptionConfigurationProperty- See Also:
-
getHealthCheckConfiguration
The settings for the health check that AWS App Runner performs to monitor the health of the App Runner service.Returns union: either
IResolvableorCfnService.HealthCheckConfigurationProperty- See Also:
-
getInstanceConfiguration
The runtime configuration of instances (scaling units) of your service.Returns union: either
IResolvableorCfnService.InstanceConfigurationProperty- See Also:
-
getNetworkConfiguration
Configuration settings related to network traffic of the web application that the App Runner service runs.Returns union: either
IResolvableorCfnService.NetworkConfigurationProperty- See Also:
-
getObservabilityConfiguration
The observability configuration of your service.Returns union: either
IResolvableorCfnService.ServiceObservabilityConfigurationProperty- See Also:
-
getServiceName
A name for the App Runner service.It must be unique across all the running App Runner services in your AWS account in the AWS Region .
If you don't specify a name, AWS CloudFormation generates a name for your service.
- See Also:
-
getTags
An optional list of metadata items that you can associate with the App Runner service resource.A tag is a key-value pair.
- See Also:
-
builder
- Returns:
- a
CfnServiceProps.BuilderofCfnServiceProps
-