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/apigateway"

type Deployment struct { ApiSummary map[string]map[string]*MethodSnapshot `locationName:"apiSummary" type:"map"` CreatedDate *time.Time `locationName:"createdDate" type:"timestamp"` Description *string `locationName:"description" type:"string"` Id *string `locationName:"id" type:"string"` }

An immutable representation of a RestApi resource that can be called by users using Stages. A deployment must be associated with a Stage for it to be callable over the Internet.

To create a deployment, call POST on the Deployments resource of a RestApi. To view, update, or delete a deployment, call GET, PATCH, or DELETE on the specified deployment resource (/restapis/{restapi_id}/deployments/{deployment_id}).

RestApi, Deployments, Stage, AWS CLI (https://docs.aws.amazon.com/cli/latest/reference/apigateway/get-deployment.html), AWS SDKs (https://aws.amazon.com/tools/)

ApiSummary

Type: map[string]map[string]*MethodSnapshot

A summary of the RestApi at the date and time that the deployment resource was created.

CreatedDate

Type: *time.Time

The date and time that the deployment resource was created.

Description

Type: *string

The description for the deployment resource.

Id

Type: *string

The identifier for the deployment resource.

Method

GoString

func (s Deployment) GoString() string

GoString returns the string representation

SetApiSummary

func (s *Deployment) SetApiSummary(v map[string]map[string]*MethodSnapshot) *Deployment

SetApiSummary sets the ApiSummary field's value.

SetCreatedDate

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

SetCreatedDate sets the CreatedDate field's value.

SetDescription

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

SetDescription sets the Description field's value.

SetId

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

SetId sets the Id field's value.

String

func (s Deployment) String() string

String returns the string representation

On this page: