libZSservicesZSamazonka-shieldZSamazonka-shield
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.Shield.DescribeProtection

Description

Lists the details of a Protection object.

Synopsis

Creating a Request

data DescribeProtection Source #

See: newDescribeProtection smart constructor.

Constructors

DescribeProtection' 

Fields

  • protectionId :: Maybe Text

    The unique identifier (ID) for the Protection object that is described. When submitting the DescribeProtection request you must provide either the ResourceArn or the ProtectionID, but not both.

  • resourceArn :: Maybe Text

    The ARN (Amazon Resource Name) of the Amazon Web Services resource for the Protection object that is described. When submitting the DescribeProtection request you must provide either the ResourceArn or the ProtectionID, but not both.

Instances

Instances details
Eq DescribeProtection Source # 
Instance details

Defined in Amazonka.Shield.DescribeProtection

Read DescribeProtection Source # 
Instance details

Defined in Amazonka.Shield.DescribeProtection

Show DescribeProtection Source # 
Instance details

Defined in Amazonka.Shield.DescribeProtection

Generic DescribeProtection Source # 
Instance details

Defined in Amazonka.Shield.DescribeProtection

Associated Types

type Rep DescribeProtection :: Type -> Type #

NFData DescribeProtection Source # 
Instance details

Defined in Amazonka.Shield.DescribeProtection

Methods

rnf :: DescribeProtection -> () #

Hashable DescribeProtection Source # 
Instance details

Defined in Amazonka.Shield.DescribeProtection

ToJSON DescribeProtection Source # 
Instance details

Defined in Amazonka.Shield.DescribeProtection

AWSRequest DescribeProtection Source # 
Instance details

Defined in Amazonka.Shield.DescribeProtection

Associated Types

type AWSResponse DescribeProtection #

ToHeaders DescribeProtection Source # 
Instance details

Defined in Amazonka.Shield.DescribeProtection

ToPath DescribeProtection Source # 
Instance details

Defined in Amazonka.Shield.DescribeProtection

ToQuery DescribeProtection Source # 
Instance details

Defined in Amazonka.Shield.DescribeProtection

type Rep DescribeProtection Source # 
Instance details

Defined in Amazonka.Shield.DescribeProtection

type Rep DescribeProtection = D1 ('MetaData "DescribeProtection" "Amazonka.Shield.DescribeProtection" "libZSservicesZSamazonka-shieldZSamazonka-shield" 'False) (C1 ('MetaCons "DescribeProtection'" 'PrefixI 'True) (S1 ('MetaSel ('Just "protectionId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "resourceArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))
type AWSResponse DescribeProtection Source # 
Instance details

Defined in Amazonka.Shield.DescribeProtection

newDescribeProtection :: DescribeProtection Source #

Create a value of DescribeProtection 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:protectionId:DescribeProtection', describeProtection_protectionId - The unique identifier (ID) for the Protection object that is described. When submitting the DescribeProtection request you must provide either the ResourceArn or the ProtectionID, but not both.

$sel:resourceArn:DescribeProtection', describeProtection_resourceArn - The ARN (Amazon Resource Name) of the Amazon Web Services resource for the Protection object that is described. When submitting the DescribeProtection request you must provide either the ResourceArn or the ProtectionID, but not both.

Request Lenses

describeProtection_protectionId :: Lens' DescribeProtection (Maybe Text) Source #

The unique identifier (ID) for the Protection object that is described. When submitting the DescribeProtection request you must provide either the ResourceArn or the ProtectionID, but not both.

describeProtection_resourceArn :: Lens' DescribeProtection (Maybe Text) Source #

The ARN (Amazon Resource Name) of the Amazon Web Services resource for the Protection object that is described. When submitting the DescribeProtection request you must provide either the ResourceArn or the ProtectionID, but not both.

Destructuring the Response

data DescribeProtectionResponse Source #

See: newDescribeProtectionResponse smart constructor.

Constructors

DescribeProtectionResponse' 

Fields

Instances

Instances details
Eq DescribeProtectionResponse Source # 
Instance details

Defined in Amazonka.Shield.DescribeProtection

Read DescribeProtectionResponse Source # 
Instance details

Defined in Amazonka.Shield.DescribeProtection

Show DescribeProtectionResponse Source # 
Instance details

Defined in Amazonka.Shield.DescribeProtection

Generic DescribeProtectionResponse Source # 
Instance details

Defined in Amazonka.Shield.DescribeProtection

Associated Types

type Rep DescribeProtectionResponse :: Type -> Type #

NFData DescribeProtectionResponse Source # 
Instance details

Defined in Amazonka.Shield.DescribeProtection

type Rep DescribeProtectionResponse Source # 
Instance details

Defined in Amazonka.Shield.DescribeProtection

type Rep DescribeProtectionResponse = D1 ('MetaData "DescribeProtectionResponse" "Amazonka.Shield.DescribeProtection" "libZSservicesZSamazonka-shieldZSamazonka-shield" 'False) (C1 ('MetaCons "DescribeProtectionResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "protection") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Protection)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newDescribeProtectionResponse Source #

Create a value of DescribeProtectionResponse 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:protection:DescribeProtectionResponse', describeProtectionResponse_protection - The Protection object that is described.

$sel:httpStatus:DescribeProtectionResponse', describeProtectionResponse_httpStatus - The response's http status code.

Response Lenses