Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Deletes your Amazon Lightsail content delivery network (CDN) distribution.
Synopsis
- data DeleteDistribution = DeleteDistribution' {}
- newDeleteDistribution :: DeleteDistribution
- deleteDistribution_distributionName :: Lens' DeleteDistribution (Maybe Text)
- data DeleteDistributionResponse = DeleteDistributionResponse' {
- operation :: Maybe Operation
- httpStatus :: Int
- newDeleteDistributionResponse :: Int -> DeleteDistributionResponse
- deleteDistributionResponse_operation :: Lens' DeleteDistributionResponse (Maybe Operation)
- deleteDistributionResponse_httpStatus :: Lens' DeleteDistributionResponse Int
Creating a Request
data DeleteDistribution Source #
See: newDeleteDistribution
smart constructor.
DeleteDistribution' | |
|
Instances
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.
DeleteDistributionResponse' | |
|
Instances
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.
deleteDistributionResponse_httpStatus :: Lens' DeleteDistributionResponse Int Source #
The response's http status code.