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.

GetDeploymentsOutput

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

type GetDeploymentsOutput struct { Items []*Deployment `locationName:"item" type:"list"` Position *string `locationName:"position" type:"string"` }

Represents a collection resource that contains zero or more references to your existing deployments, and links that guide you on how to interact with your collection. The collection offers a paginated view of the contained deployments.

To create a new deployment of a RestApi, make a POST request against this resource. To view, update, or delete an existing deployment, make a GET, PATCH, or DELETE request, respectively, on a specified Deployment resource.

Deploying an API (https://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-deploy-api.html), AWS CLI (https://docs.aws.amazon.com/cli/latest/reference/apigateway/get-deployment.html), AWS SDKs (https://aws.amazon.com/tools/)

Items

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

Position

Type: *string

Method

GoString

func (s GetDeploymentsOutput) GoString() string

GoString returns the string representation

SetItems

func (s *GetDeploymentsOutput) SetItems(v []*Deployment) *GetDeploymentsOutput

SetItems sets the Items field's value.

SetPosition

func (s *GetDeploymentsOutput) SetPosition(v string) *GetDeploymentsOutput

SetPosition sets the Position field's value.

String

func (s GetDeploymentsOutput) String() string

String returns the string representation

On this page: