Interface CfnServiceProps

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnServiceProps.Jsii$Proxy

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:40.011Z") @Stability(Stable) public interface CfnServiceProps extends software.amazon.jsii.JsiiSerializable
Properties for defining a 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())
                         .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())
                 .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();
 
  • Method Details

    • getSourceConfiguration

      @Stability(Stable) @NotNull Object getSourceConfiguration()
      The source to deploy to the App Runner service.

      It can be a code or an image repository.

    • getAutoScalingConfigurationArn

      @Stability(Stable) @Nullable default String 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/3

      Specify just the name to associate the latest revision. For example: arn:aws:apprunner:us-east-1:123456789012:autoscalingconfiguration/high-availability

    • getEncryptionConfiguration

      @Stability(Stable) @Nullable default Object 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 .

    • getHealthCheckConfiguration

      @Stability(Stable) @Nullable default Object getHealthCheckConfiguration()
      The settings for the health check that AWS App Runner performs to monitor the health of the App Runner service.
    • getInstanceConfiguration

      @Stability(Stable) @Nullable default Object getInstanceConfiguration()
      The runtime configuration of instances (scaling units) of your service.
    • getNetworkConfiguration

      @Stability(Stable) @Nullable default Object getNetworkConfiguration()
      Configuration settings related to network traffic of the web application that the App Runner service runs.
    • getObservabilityConfiguration

      @Stability(Stable) @Nullable default Object getObservabilityConfiguration()
      The observability configuration of your service.
    • getServiceName

      @Stability(Stable) @Nullable default String 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.

    • getTags

      @Stability(Stable) @Nullable default List<CfnTag> getTags()
      An optional list of metadata items that you can associate with the App Runner service resource.

      A tag is a key-value pair.

    • builder

      @Stability(Stable) static CfnServiceProps.Builder builder()
      Returns:
      a CfnServiceProps.Builder of CfnServiceProps