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.GetDeployment

Description

Gets information about a Deployment resource.

Synopsis

Creating a Request

data GetDeployment Source #

Requests API Gateway to get information about a Deployment resource.

See: newGetDeployment smart constructor.

Constructors

GetDeployment' 

Fields

  • embed :: Maybe [Text]

    A query parameter to retrieve the specified embedded resources of the returned Deployment resource in the response. In a REST API call, this embed parameter value is a list of comma-separated strings, as in GET /restapis/{restapi_id}/deployments/{deployment_id}?embed=var1,var2. The SDK and other platform-dependent libraries might use a different format for the list. Currently, this request supports only retrieval of the embedded API summary this way. Hence, the parameter value must be a single-valued list containing only the "apisummary" string. For example, GET /restapis/{restapi_id}/deployments/{deployment_id}?embed=apisummary.

  • restApiId :: Text

    The string identifier of the associated RestApi.

  • deploymentId :: Text

    The identifier of the Deployment resource to get information about.

Instances

Instances details
ToHeaders GetDeployment Source # 
Instance details

Defined in Amazonka.APIGateway.GetDeployment

ToPath GetDeployment Source # 
Instance details

Defined in Amazonka.APIGateway.GetDeployment

ToQuery GetDeployment Source # 
Instance details

Defined in Amazonka.APIGateway.GetDeployment

AWSRequest GetDeployment Source # 
Instance details

Defined in Amazonka.APIGateway.GetDeployment

Associated Types

type AWSResponse GetDeployment #

Generic GetDeployment Source # 
Instance details

Defined in Amazonka.APIGateway.GetDeployment

Associated Types

type Rep GetDeployment :: Type -> Type #

Read GetDeployment Source # 
Instance details

Defined in Amazonka.APIGateway.GetDeployment

Show GetDeployment Source # 
Instance details

Defined in Amazonka.APIGateway.GetDeployment

NFData GetDeployment Source # 
Instance details

Defined in Amazonka.APIGateway.GetDeployment

Methods

rnf :: GetDeployment -> () #

Eq GetDeployment Source # 
Instance details

Defined in Amazonka.APIGateway.GetDeployment

Hashable GetDeployment Source # 
Instance details

Defined in Amazonka.APIGateway.GetDeployment

type AWSResponse GetDeployment Source # 
Instance details

Defined in Amazonka.APIGateway.GetDeployment

type Rep GetDeployment Source # 
Instance details

Defined in Amazonka.APIGateway.GetDeployment

type Rep GetDeployment = D1 ('MetaData "GetDeployment" "Amazonka.APIGateway.GetDeployment" "amazonka-apigateway-2.0-zw0Lbt4rUGxZBjJ4Rpfi" 'False) (C1 ('MetaCons "GetDeployment'" 'PrefixI 'True) (S1 ('MetaSel ('Just "embed") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: (S1 ('MetaSel ('Just "restApiId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "deploymentId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newGetDeployment Source #

Create a value of GetDeployment 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:embed:GetDeployment', getDeployment_embed - A query parameter to retrieve the specified embedded resources of the returned Deployment resource in the response. In a REST API call, this embed parameter value is a list of comma-separated strings, as in GET /restapis/{restapi_id}/deployments/{deployment_id}?embed=var1,var2. The SDK and other platform-dependent libraries might use a different format for the list. Currently, this request supports only retrieval of the embedded API summary this way. Hence, the parameter value must be a single-valued list containing only the "apisummary" string. For example, GET /restapis/{restapi_id}/deployments/{deployment_id}?embed=apisummary.

GetDeployment, getDeployment_restApiId - The string identifier of the associated RestApi.

GetDeployment, getDeployment_deploymentId - The identifier of the Deployment resource to get information about.

Request Lenses

getDeployment_embed :: Lens' GetDeployment (Maybe [Text]) Source #

A query parameter to retrieve the specified embedded resources of the returned Deployment resource in the response. In a REST API call, this embed parameter value is a list of comma-separated strings, as in GET /restapis/{restapi_id}/deployments/{deployment_id}?embed=var1,var2. The SDK and other platform-dependent libraries might use a different format for the list. Currently, this request supports only retrieval of the embedded API summary this way. Hence, the parameter value must be a single-valued list containing only the "apisummary" string. For example, GET /restapis/{restapi_id}/deployments/{deployment_id}?embed=apisummary.

getDeployment_restApiId :: Lens' GetDeployment Text Source #

The string identifier of the associated RestApi.

getDeployment_deploymentId :: Lens' GetDeployment Text Source #

The identifier of the Deployment resource to get information about.

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.