amazonka-lightsail-2.0: Amazon Lightsail 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.Lightsail.DeleteDistribution

Description

Deletes your Amazon Lightsail content delivery network (CDN) distribution.

Synopsis

Creating a Request

data DeleteDistribution Source #

See: newDeleteDistribution smart constructor.

Constructors

DeleteDistribution' 

Fields

  • distributionName :: Maybe Text

    The name of the distribution to delete.

    Use the GetDistributions action to get a list of distribution names that you can specify.

Instances

Instances details
ToJSON DeleteDistribution Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteDistribution

ToHeaders DeleteDistribution Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteDistribution

ToPath DeleteDistribution Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteDistribution

ToQuery DeleteDistribution Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteDistribution

AWSRequest DeleteDistribution Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteDistribution

Associated Types

type AWSResponse DeleteDistribution #

Generic DeleteDistribution Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteDistribution

Associated Types

type Rep DeleteDistribution :: Type -> Type #

Read DeleteDistribution Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteDistribution

Show DeleteDistribution Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteDistribution

NFData DeleteDistribution Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteDistribution

Methods

rnf :: DeleteDistribution -> () #

Eq DeleteDistribution Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteDistribution

Hashable DeleteDistribution Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteDistribution

type AWSResponse DeleteDistribution Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteDistribution

type Rep DeleteDistribution Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteDistribution

type Rep DeleteDistribution = D1 ('MetaData "DeleteDistribution" "Amazonka.Lightsail.DeleteDistribution" "amazonka-lightsail-2.0-77hvsZhtZFxFduYae8QaN0" 'False) (C1 ('MetaCons "DeleteDistribution'" 'PrefixI 'True) (S1 ('MetaSel ('Just "distributionName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))

newDeleteDistribution :: DeleteDistribution Source #

Create a value of DeleteDistribution 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:distributionName:DeleteDistribution', deleteDistribution_distributionName - The name of the distribution to delete.

Use the GetDistributions action to get a list of distribution names that you can specify.

Request Lenses

deleteDistribution_distributionName :: Lens' DeleteDistribution (Maybe Text) Source #

The name of the distribution to delete.

Use the GetDistributions action to get a list of distribution names that you can specify.

Destructuring the Response

data DeleteDistributionResponse Source #

See: newDeleteDistributionResponse smart constructor.

Constructors

DeleteDistributionResponse' 

Fields

  • operation :: Maybe Operation

    An object that describes the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic DeleteDistributionResponse Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteDistribution

Associated Types

type Rep DeleteDistributionResponse :: Type -> Type #

Read DeleteDistributionResponse Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteDistribution

Show DeleteDistributionResponse Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteDistribution

NFData DeleteDistributionResponse Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteDistribution

Eq DeleteDistributionResponse Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteDistribution

type Rep DeleteDistributionResponse Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteDistribution

type Rep DeleteDistributionResponse = D1 ('MetaData "DeleteDistributionResponse" "Amazonka.Lightsail.DeleteDistribution" "amazonka-lightsail-2.0-77hvsZhtZFxFduYae8QaN0" 'False) (C1 ('MetaCons "DeleteDistributionResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "operation") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Operation)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newDeleteDistributionResponse Source #

Create a value of DeleteDistributionResponse 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:operation:DeleteDistributionResponse', deleteDistributionResponse_operation - An object that describes the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.

$sel:httpStatus:DeleteDistributionResponse', deleteDistributionResponse_httpStatus - The response's http status code.

Response Lenses

deleteDistributionResponse_operation :: Lens' DeleteDistributionResponse (Maybe Operation) Source #

An object that describes the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.