Class: Aws::ECS::Types::ExpressGatewayContainer

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

Overview

Defines the configuration for the primary container in an Express service. This container receives traffic from the Application Load Balancer and runs your application code.

The container configuration includes the container image, port mapping, logging settings, environment variables, and secrets. The container image is the only required parameter, with sensible defaults provided for other settings.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#aws_logs_configurationTypes::ExpressGatewayServiceAwsLogsConfiguration

The log configuration for the container.



6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 6018

class ExpressGatewayContainer < Struct.new(
  :image,
  :container_port,
  :aws_logs_configuration,
  :repository_credentials,
  :command,
  :environment,
  :secrets)
  SENSITIVE = []
  include Aws::Structure
end

#commandArray<String>

The command that is passed to the container.

Returns:

  • (Array<String>)


6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 6018

class ExpressGatewayContainer < Struct.new(
  :image,
  :container_port,
  :aws_logs_configuration,
  :repository_credentials,
  :command,
  :environment,
  :secrets)
  SENSITIVE = []
  include Aws::Structure
end

#container_portInteger

The port number on the container that receives traffic from the load balancer. Default is 80.

Returns:

  • (Integer)


6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 6018

class ExpressGatewayContainer < Struct.new(
  :image,
  :container_port,
  :aws_logs_configuration,
  :repository_credentials,
  :command,
  :environment,
  :secrets)
  SENSITIVE = []
  include Aws::Structure
end

#environmentArray<Types::KeyValuePair>

The environment variables to pass to the container.

Returns:



6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 6018

class ExpressGatewayContainer < Struct.new(
  :image,
  :container_port,
  :aws_logs_configuration,
  :repository_credentials,
  :command,
  :environment,
  :secrets)
  SENSITIVE = []
  include Aws::Structure
end

#imageString

The image used to start a container. This string is passed directly to the Docker daemon. Images in the Docker Hub registry are available by default. Other repositories are specified with either repository-url/image:tag or repository-url/image@digest.

For Express services, the image typically contains a web application that listens on the specified container port. The image can be stored in Amazon ECR, Docker Hub, or any other container registry accessible to your execution role.

Returns:

  • (String)


6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 6018

class ExpressGatewayContainer < Struct.new(
  :image,
  :container_port,
  :aws_logs_configuration,
  :repository_credentials,
  :command,
  :environment,
  :secrets)
  SENSITIVE = []
  include Aws::Structure
end

#repository_credentialsTypes::ExpressGatewayRepositoryCredentials

The configuration for repository credentials for private registry authentication.



6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 6018

class ExpressGatewayContainer < Struct.new(
  :image,
  :container_port,
  :aws_logs_configuration,
  :repository_credentials,
  :command,
  :environment,
  :secrets)
  SENSITIVE = []
  include Aws::Structure
end

#secretsArray<Types::Secret>

The secrets to pass to the container.

Returns:



6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 6018

class ExpressGatewayContainer < Struct.new(
  :image,
  :container_port,
  :aws_logs_configuration,
  :repository_credentials,
  :command,
  :environment,
  :secrets)
  SENSITIVE = []
  include Aws::Structure
end