amazonka-opsworks-2.0: Amazon OpsWorks 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.OpsWorks.DescribeLayers

Description

Requests a description of one or more layers in a specified stack.

This call accepts only one resource-identifying parameter.

Required Permissions: To use this action, an IAM user must have a Show, Deploy, or Manage permissions level for the stack, or an attached policy that explicitly grants permissions. For more information about user permissions, see Managing User Permissions.

Synopsis

Creating a Request

data DescribeLayers Source #

See: newDescribeLayers smart constructor.

Constructors

DescribeLayers' 

Fields

  • layerIds :: Maybe [Text]

    An array of layer IDs that specify the layers to be described. If you omit this parameter, DescribeLayers returns a description of every layer in the specified stack.

  • stackId :: Maybe Text

    The stack ID.

Instances

Instances details
ToJSON DescribeLayers Source # 
Instance details

Defined in Amazonka.OpsWorks.DescribeLayers

ToHeaders DescribeLayers Source # 
Instance details

Defined in Amazonka.OpsWorks.DescribeLayers

ToPath DescribeLayers Source # 
Instance details

Defined in Amazonka.OpsWorks.DescribeLayers

ToQuery DescribeLayers Source # 
Instance details

Defined in Amazonka.OpsWorks.DescribeLayers

AWSRequest DescribeLayers Source # 
Instance details

Defined in Amazonka.OpsWorks.DescribeLayers

Associated Types

type AWSResponse DescribeLayers #

Generic DescribeLayers Source # 
Instance details

Defined in Amazonka.OpsWorks.DescribeLayers

Associated Types

type Rep DescribeLayers :: Type -> Type #

Read DescribeLayers Source # 
Instance details

Defined in Amazonka.OpsWorks.DescribeLayers

Show DescribeLayers Source # 
Instance details

Defined in Amazonka.OpsWorks.DescribeLayers

NFData DescribeLayers Source # 
Instance details

Defined in Amazonka.OpsWorks.DescribeLayers

Methods

rnf :: DescribeLayers -> () #

Eq DescribeLayers Source # 
Instance details

Defined in Amazonka.OpsWorks.DescribeLayers

Hashable DescribeLayers Source # 
Instance details

Defined in Amazonka.OpsWorks.DescribeLayers

type AWSResponse DescribeLayers Source # 
Instance details

Defined in Amazonka.OpsWorks.DescribeLayers

type Rep DescribeLayers Source # 
Instance details

Defined in Amazonka.OpsWorks.DescribeLayers

type Rep DescribeLayers = D1 ('MetaData "DescribeLayers" "Amazonka.OpsWorks.DescribeLayers" "amazonka-opsworks-2.0-7XrzSD2vbuN9lVUGWMVZ7S" 'False) (C1 ('MetaCons "DescribeLayers'" 'PrefixI 'True) (S1 ('MetaSel ('Just "layerIds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: S1 ('MetaSel ('Just "stackId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))

newDescribeLayers :: DescribeLayers Source #

Create a value of DescribeLayers 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:

DescribeLayers, describeLayers_layerIds - An array of layer IDs that specify the layers to be described. If you omit this parameter, DescribeLayers returns a description of every layer in the specified stack.

DescribeLayers, describeLayers_stackId - The stack ID.

Request Lenses

describeLayers_layerIds :: Lens' DescribeLayers (Maybe [Text]) Source #

An array of layer IDs that specify the layers to be described. If you omit this parameter, DescribeLayers returns a description of every layer in the specified stack.

Destructuring the Response

data DescribeLayersResponse Source #

Contains the response to a DescribeLayers request.

See: newDescribeLayersResponse smart constructor.

Constructors

DescribeLayersResponse' 

Fields

Instances

Instances details
Generic DescribeLayersResponse Source # 
Instance details

Defined in Amazonka.OpsWorks.DescribeLayers

Associated Types

type Rep DescribeLayersResponse :: Type -> Type #

Read DescribeLayersResponse Source # 
Instance details

Defined in Amazonka.OpsWorks.DescribeLayers

Show DescribeLayersResponse Source # 
Instance details

Defined in Amazonka.OpsWorks.DescribeLayers

NFData DescribeLayersResponse Source # 
Instance details

Defined in Amazonka.OpsWorks.DescribeLayers

Methods

rnf :: DescribeLayersResponse -> () #

Eq DescribeLayersResponse Source # 
Instance details

Defined in Amazonka.OpsWorks.DescribeLayers

type Rep DescribeLayersResponse Source # 
Instance details

Defined in Amazonka.OpsWorks.DescribeLayers

type Rep DescribeLayersResponse = D1 ('MetaData "DescribeLayersResponse" "Amazonka.OpsWorks.DescribeLayers" "amazonka-opsworks-2.0-7XrzSD2vbuN9lVUGWMVZ7S" 'False) (C1 ('MetaCons "DescribeLayersResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "layers") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Layer])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newDescribeLayersResponse Source #

Create a value of DescribeLayersResponse 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:layers:DescribeLayersResponse', describeLayersResponse_layers - An array of Layer objects that describe the layers.

$sel:httpStatus:DescribeLayersResponse', describeLayersResponse_httpStatus - The response's http status code.

Response Lenses

describeLayersResponse_layers :: Lens' DescribeLayersResponse (Maybe [Layer]) Source #

An array of Layer objects that describe the layers.