amazonka-shield-2.0: Amazon Shield 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.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 to describe. You must provide either the ResourceArn of the protected resource or the ProtectionID of the protection, but not both.

  • resourceArn :: Maybe Text

    The ARN (Amazon Resource Name) of the protected Amazon Web Services resource. You must provide either the ResourceArn of the protected resource or the ProtectionID of the protection, but not both.

Instances

Instances details
ToJSON DescribeProtection Source # 
Instance details

Defined in Amazonka.Shield.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

AWSRequest DescribeProtection Source # 
Instance details

Defined in Amazonka.Shield.DescribeProtection

Associated Types

type AWSResponse DescribeProtection #

Generic DescribeProtection Source # 
Instance details

Defined in Amazonka.Shield.DescribeProtection

Associated Types

type Rep DescribeProtection :: Type -> Type #

Read DescribeProtection Source # 
Instance details

Defined in Amazonka.Shield.DescribeProtection

Show DescribeProtection Source # 
Instance details

Defined in Amazonka.Shield.DescribeProtection

NFData DescribeProtection Source # 
Instance details

Defined in Amazonka.Shield.DescribeProtection

Methods

rnf :: DescribeProtection -> () #

Eq DescribeProtection Source # 
Instance details

Defined in Amazonka.Shield.DescribeProtection

Hashable DescribeProtection Source # 
Instance details

Defined in Amazonka.Shield.DescribeProtection

type AWSResponse 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" "amazonka-shield-2.0-Cz9Fa9OSQ93AE4UCXBDcFo" '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))))

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 to describe. You must provide either the ResourceArn of the protected resource or the ProtectionID of the protection, but not both.

DescribeProtection, describeProtection_resourceArn - The ARN (Amazon Resource Name) of the protected Amazon Web Services resource. You must provide either the ResourceArn of the protected resource or the ProtectionID of the protection, but not both.

Request Lenses

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

The unique identifier (ID) for the Protection object to describe. You must provide either the ResourceArn of the protected resource or the ProtectionID of the protection, but not both.

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

The ARN (Amazon Resource Name) of the protected Amazon Web Services resource. You must provide either the ResourceArn of the protected resource or the ProtectionID of the protection, but not both.

Destructuring the Response

data DescribeProtectionResponse Source #

See: newDescribeProtectionResponse smart constructor.

Constructors

DescribeProtectionResponse' 

Fields

Instances

Instances details
Generic DescribeProtectionResponse Source # 
Instance details

Defined in Amazonka.Shield.DescribeProtection

Associated Types

type Rep DescribeProtectionResponse :: Type -> Type #

Read DescribeProtectionResponse Source # 
Instance details

Defined in Amazonka.Shield.DescribeProtection

Show DescribeProtectionResponse Source # 
Instance details

Defined in Amazonka.Shield.DescribeProtection

NFData DescribeProtectionResponse Source # 
Instance details

Defined in Amazonka.Shield.DescribeProtection

Eq 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" "amazonka-shield-2.0-Cz9Fa9OSQ93AE4UCXBDcFo" '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 that you requested.

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

Response Lenses