Class: Aws::AppRunner::Types::SourceConfiguration

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-apprunner/lib/aws-sdk-apprunner/types.rb

Overview

Note:

When making an API call, you may pass SourceConfiguration data as a hash:

{
  code_repository: {
    repository_url: "String", # required
    source_code_version: { # required
      type: "BRANCH", # required, accepts BRANCH
      value: "String", # required
    },
    code_configuration: {
      configuration_source: "REPOSITORY", # required, accepts REPOSITORY, API
      code_configuration_values: {
        runtime: "PYTHON_3", # required, accepts PYTHON_3, NODEJS_12
        build_command: "BuildCommand",
        start_command: "StartCommand",
        port: "String",
        runtime_environment_variables: {
          "RuntimeEnvironmentVariablesKey" => "RuntimeEnvironmentVariablesValue",
        },
      },
    },
  },
  image_repository: {
    image_identifier: "ImageIdentifier", # required
    image_configuration: {
      runtime_environment_variables: {
        "RuntimeEnvironmentVariablesKey" => "RuntimeEnvironmentVariablesValue",
      },
      start_command: "String",
      port: "String",
    },
    image_repository_type: "ECR", # required, accepts ECR, ECR_PUBLIC
  },
  auto_deployments_enabled: false,
  authentication_configuration: {
    connection_arn: "AppRunnerResourceArn",
    access_role_arn: "RoleArn",
  },
}

Describes the source deployed to an App Runner service. It can be a code or an image repository.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#authentication_configurationTypes::AuthenticationConfiguration

Describes the resources that are needed to authenticate access to some source repositories.



2144
2145
2146
2147
2148
2149
2150
2151
# File 'gems/aws-sdk-apprunner/lib/aws-sdk-apprunner/types.rb', line 2144

class SourceConfiguration < Struct.new(
  :code_repository,
  :image_repository,
  :auto_deployments_enabled,
  :authentication_configuration)
  SENSITIVE = []
  include Aws::Structure
end

#auto_deployments_enabledBoolean

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.

Default: App Runner sets to false for a source image that uses an ECR Public repository or an ECR repository that's in an Amazon Web Services 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).

Returns:

  • (Boolean)


2144
2145
2146
2147
2148
2149
2150
2151
# File 'gems/aws-sdk-apprunner/lib/aws-sdk-apprunner/types.rb', line 2144

class SourceConfiguration < Struct.new(
  :code_repository,
  :image_repository,
  :auto_deployments_enabled,
  :authentication_configuration)
  SENSITIVE = []
  include Aws::Structure
end

#code_repositoryTypes::CodeRepository

The description of a source code repository.

You must provide either this member or ImageRepository (but not both).



2144
2145
2146
2147
2148
2149
2150
2151
# File 'gems/aws-sdk-apprunner/lib/aws-sdk-apprunner/types.rb', line 2144

class SourceConfiguration < Struct.new(
  :code_repository,
  :image_repository,
  :auto_deployments_enabled,
  :authentication_configuration)
  SENSITIVE = []
  include Aws::Structure
end

#image_repositoryTypes::ImageRepository

The description of a source image repository.

You must provide either this member or CodeRepository (but not both).



2144
2145
2146
2147
2148
2149
2150
2151
# File 'gems/aws-sdk-apprunner/lib/aws-sdk-apprunner/types.rb', line 2144

class SourceConfiguration < Struct.new(
  :code_repository,
  :image_repository,
  :auto_deployments_enabled,
  :authentication_configuration)
  SENSITIVE = []
  include Aws::Structure
end