AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

Deployment

import "github.com/aws/aws-sdk-go/service/ecs"

type Deployment struct { CreatedAt *time.Time `locationName:"createdAt" type:"timestamp"` DesiredCount *int64 `locationName:"desiredCount" type:"integer"` Id *string `locationName:"id" type:"string"` LaunchType *string `locationName:"launchType" type:"string" enum:"LaunchType"` NetworkConfiguration *NetworkConfiguration `locationName:"networkConfiguration" type:"structure"` PendingCount *int64 `locationName:"pendingCount" type:"integer"` PlatformVersion *string `locationName:"platformVersion" type:"string"` RunningCount *int64 `locationName:"runningCount" type:"integer"` Status *string `locationName:"status" type:"string"` TaskDefinition *string `locationName:"taskDefinition" type:"string"` UpdatedAt *time.Time `locationName:"updatedAt" type:"timestamp"` }

The details of an Amazon ECS service deployment. This is used when a service uses the CODE_DEPLOY deployment controller type.

CreatedAt

Type: *time.Time

The Unix timestamp for when the service deployment was created.

DesiredCount

Type: *int64

The most recent desired count of tasks that was specified for the service to deploy or maintain.

Id

Type: *string

The ID of the deployment.

LaunchType

Type: *string

The launch type the tasks in the service are using. For more information, see Amazon ECS Launch Types (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_types.html) in the Amazon Elastic Container Service Developer Guide.

NetworkConfiguration

An object representing the network configuration for a task or service.

PendingCount

Type: *int64

The number of tasks in the deployment that are in the PENDING status.

PlatformVersion

Type: *string

The platform version on which your tasks in the service are running. A platform version is only specified for tasks using the Fargate launch type. If one is not specified, the LATEST platform version is used by default. For more information, see AWS Fargate Platform Versions (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/platform_versions.html) in the Amazon Elastic Container Service Developer Guide.

RunningCount

Type: *int64

The number of tasks in the deployment that are in the RUNNING status.

Status

Type: *string

The status of the deployment. The following describes each state:

PRIMARYThe most recent deployment of a service.

ACTIVEA service deployment that still has running tasks, but are in the process of being replaced with a new PRIMARY deployment.

INACTIVEA deployment that has been completely replaced.

TaskDefinition

Type: *string

The most recent task definition that was specified for the tasks in the service to use.

UpdatedAt

Type: *time.Time

The Unix timestamp for when the service deployment was last updated.

Method

GoString

func (s Deployment) GoString() string

GoString returns the string representation

SetCreatedAt

func (s *Deployment) SetCreatedAt(v time.Time) *Deployment

SetCreatedAt sets the CreatedAt field's value.

SetDesiredCount

func (s *Deployment) SetDesiredCount(v int64) *Deployment

SetDesiredCount sets the DesiredCount field's value.

SetId

func (s *Deployment) SetId(v string) *Deployment

SetId sets the Id field's value.

SetLaunchType

func (s *Deployment) SetLaunchType(v string) *Deployment

SetLaunchType sets the LaunchType field's value.

SetNetworkConfiguration

func (s *Deployment) SetNetworkConfiguration(v *NetworkConfiguration) *Deployment

SetNetworkConfiguration sets the NetworkConfiguration field's value.

SetPendingCount

func (s *Deployment) SetPendingCount(v int64) *Deployment

SetPendingCount sets the PendingCount field's value.

SetPlatformVersion

func (s *Deployment) SetPlatformVersion(v string) *Deployment

SetPlatformVersion sets the PlatformVersion field's value.

SetRunningCount

func (s *Deployment) SetRunningCount(v int64) *Deployment

SetRunningCount sets the RunningCount field's value.

SetStatus

func (s *Deployment) SetStatus(v string) *Deployment

SetStatus sets the Status field's value.

SetTaskDefinition

func (s *Deployment) SetTaskDefinition(v string) *Deployment

SetTaskDefinition sets the TaskDefinition field's value.

SetUpdatedAt

func (s *Deployment) SetUpdatedAt(v time.Time) *Deployment

SetUpdatedAt sets the UpdatedAt field's value.

String

func (s Deployment) String() string

String returns the string representation

On this page: