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 AWS 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.



2135
2136
2137
2138
2139
2140
2141
2142
# File 'gems/aws-sdk-apprunner/lib/aws-sdk-apprunner/types.rb', line 2135

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 (source code commit or new image version) starts a deployment.

Default: true

Returns:

  • (Boolean)


2135
2136
2137
2138
2139
2140
2141
2142
# File 'gems/aws-sdk-apprunner/lib/aws-sdk-apprunner/types.rb', line 2135

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).



2135
2136
2137
2138
2139
2140
2141
2142
# File 'gems/aws-sdk-apprunner/lib/aws-sdk-apprunner/types.rb', line 2135

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).



2135
2136
2137
2138
2139
2140
2141
2142
# File 'gems/aws-sdk-apprunner/lib/aws-sdk-apprunner/types.rb', line 2135

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