amazonka-apigateway-2.0: Amazon API Gateway SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.APIGateway.CreateDeployment

Description

Creates a Deployment resource, which makes a specified RestApi callable over the internet.

Synopsis

Creating a Request

data CreateDeployment Source #

Requests API Gateway to create a Deployment resource.

See: newCreateDeployment smart constructor.

Constructors

CreateDeployment' 

Fields

Instances

Instances details
ToJSON CreateDeployment Source # 
Instance details

Defined in Amazonka.APIGateway.CreateDeployment

ToHeaders CreateDeployment Source # 
Instance details

Defined in Amazonka.APIGateway.CreateDeployment

ToPath CreateDeployment Source # 
Instance details

Defined in Amazonka.APIGateway.CreateDeployment

ToQuery CreateDeployment Source # 
Instance details

Defined in Amazonka.APIGateway.CreateDeployment

AWSRequest CreateDeployment Source # 
Instance details

Defined in Amazonka.APIGateway.CreateDeployment

Associated Types

type AWSResponse CreateDeployment #

Generic CreateDeployment Source # 
Instance details

Defined in Amazonka.APIGateway.CreateDeployment

Associated Types

type Rep CreateDeployment :: Type -> Type #

Read CreateDeployment Source # 
Instance details

Defined in Amazonka.APIGateway.CreateDeployment

Show CreateDeployment Source # 
Instance details

Defined in Amazonka.APIGateway.CreateDeployment

NFData CreateDeployment Source # 
Instance details

Defined in Amazonka.APIGateway.CreateDeployment

Methods

rnf :: CreateDeployment -> () #

Eq CreateDeployment Source # 
Instance details

Defined in Amazonka.APIGateway.CreateDeployment

Hashable CreateDeployment Source # 
Instance details

Defined in Amazonka.APIGateway.CreateDeployment

type AWSResponse CreateDeployment Source # 
Instance details

Defined in Amazonka.APIGateway.CreateDeployment

type Rep CreateDeployment Source # 
Instance details

Defined in Amazonka.APIGateway.CreateDeployment

newCreateDeployment Source #

Create a value of CreateDeployment with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

CreateDeployment, createDeployment_cacheClusterEnabled - Enables a cache cluster for the Stage resource specified in the input.

CreateDeployment, createDeployment_cacheClusterSize - The stage's cache capacity in GB. For more information about choosing a cache size, see Enabling API caching to enhance responsiveness.

CreateDeployment, createDeployment_canarySettings - The input configuration for the canary deployment when the deployment is a canary release deployment.

CreateDeployment, createDeployment_description - The description for the Deployment resource to create.

$sel:stageDescription:CreateDeployment', createDeployment_stageDescription - The description of the Stage resource for the Deployment resource to create.

CreateDeployment, createDeployment_stageName - The name of the Stage resource for the Deployment resource to create.

CreateDeployment, createDeployment_tracingEnabled - Specifies whether active tracing with X-ray is enabled for the Stage.

CreateDeployment, createDeployment_variables - A map that defines the stage variables for the Stage resource that is associated with the new deployment. Variable names can have alphanumeric and underscore characters, and the values must match [A-Za-z0-9-._~:/?#&=,]+.

CreateDeployment, createDeployment_restApiId - The string identifier of the associated RestApi.

Request Lenses

createDeployment_cacheClusterEnabled :: Lens' CreateDeployment (Maybe Bool) Source #

Enables a cache cluster for the Stage resource specified in the input.

createDeployment_cacheClusterSize :: Lens' CreateDeployment (Maybe CacheClusterSize) Source #

The stage's cache capacity in GB. For more information about choosing a cache size, see Enabling API caching to enhance responsiveness.

createDeployment_canarySettings :: Lens' CreateDeployment (Maybe DeploymentCanarySettings) Source #

The input configuration for the canary deployment when the deployment is a canary release deployment.

createDeployment_description :: Lens' CreateDeployment (Maybe Text) Source #

The description for the Deployment resource to create.

createDeployment_stageDescription :: Lens' CreateDeployment (Maybe Text) Source #

The description of the Stage resource for the Deployment resource to create.

createDeployment_stageName :: Lens' CreateDeployment (Maybe Text) Source #

The name of the Stage resource for the Deployment resource to create.

createDeployment_tracingEnabled :: Lens' CreateDeployment (Maybe Bool) Source #

Specifies whether active tracing with X-ray is enabled for the Stage.

createDeployment_variables :: Lens' CreateDeployment (Maybe (HashMap Text Text)) Source #

A map that defines the stage variables for the Stage resource that is associated with the new deployment. Variable names can have alphanumeric and underscore characters, and the values must match [A-Za-z0-9-._~:/?#&=,]+.

createDeployment_restApiId :: Lens' CreateDeployment Text Source #

The string identifier of the associated RestApi.

Destructuring the Response

data Deployment Source #

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.

See: newDeployment smart constructor.

Constructors

Deployment' 

Fields

Instances

Instances details
FromJSON Deployment Source # 
Instance details

Defined in Amazonka.APIGateway.Types.Deployment

Generic Deployment Source # 
Instance details

Defined in Amazonka.APIGateway.Types.Deployment

Associated Types

type Rep Deployment :: Type -> Type #

Read Deployment Source # 
Instance details

Defined in Amazonka.APIGateway.Types.Deployment

Show Deployment Source # 
Instance details

Defined in Amazonka.APIGateway.Types.Deployment

NFData Deployment Source # 
Instance details

Defined in Amazonka.APIGateway.Types.Deployment

Methods

rnf :: Deployment -> () #

Eq Deployment Source # 
Instance details

Defined in Amazonka.APIGateway.Types.Deployment

Hashable Deployment Source # 
Instance details

Defined in Amazonka.APIGateway.Types.Deployment

type Rep Deployment Source # 
Instance details

Defined in Amazonka.APIGateway.Types.Deployment

type Rep Deployment = D1 ('MetaData "Deployment" "Amazonka.APIGateway.Types.Deployment" "amazonka-apigateway-2.0-zw0Lbt4rUGxZBjJ4Rpfi" 'False) (C1 ('MetaCons "Deployment'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "apiSummary") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text (HashMap Text MethodSnapshot)))) :*: S1 ('MetaSel ('Just "createdDate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX))) :*: (S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))

newDeployment :: Deployment Source #

Create a value of Deployment with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:apiSummary:Deployment', deployment_apiSummary - A summary of the RestApi at the date and time that the deployment resource was created.

$sel:createdDate:Deployment', deployment_createdDate - The date and time that the deployment resource was created.

$sel:description:Deployment', deployment_description - The description for the deployment resource.

$sel:id:Deployment', deployment_id - The identifier for the deployment resource.

Response Lenses

deployment_apiSummary :: Lens' Deployment (Maybe (HashMap Text (HashMap Text MethodSnapshot))) Source #

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

deployment_createdDate :: Lens' Deployment (Maybe UTCTime) Source #

The date and time that the deployment resource was created.

deployment_description :: Lens' Deployment (Maybe Text) Source #

The description for the deployment resource.

deployment_id :: Lens' Deployment (Maybe Text) Source #

The identifier for the deployment resource.