| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.CloudFront.GetDistributionConfig
Description
Get the configuration information about a distribution.
Synopsis
- data GetDistributionConfig = GetDistributionConfig' {}
- newGetDistributionConfig :: Text -> GetDistributionConfig
- getDistributionConfig_id :: Lens' GetDistributionConfig Text
- data GetDistributionConfigResponse = GetDistributionConfigResponse' {}
- newGetDistributionConfigResponse :: Int -> GetDistributionConfigResponse
- getDistributionConfigResponse_distributionConfig :: Lens' GetDistributionConfigResponse (Maybe DistributionConfig)
- getDistributionConfigResponse_eTag :: Lens' GetDistributionConfigResponse (Maybe Text)
- getDistributionConfigResponse_httpStatus :: Lens' GetDistributionConfigResponse Int
Creating a Request
data GetDistributionConfig Source #
The request to get a distribution configuration.
See: newGetDistributionConfig smart constructor.
Constructors
| GetDistributionConfig' | |
Instances
newGetDistributionConfig Source #
Arguments
| :: Text | |
| -> GetDistributionConfig |
Create a value of GetDistributionConfig 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:
GetDistributionConfig, getDistributionConfig_id - The distribution's ID. If the ID is empty, an empty distribution
configuration is returned.
Request Lenses
getDistributionConfig_id :: Lens' GetDistributionConfig Text Source #
The distribution's ID. If the ID is empty, an empty distribution configuration is returned.
Destructuring the Response
data GetDistributionConfigResponse Source #
The returned result of the corresponding request.
See: newGetDistributionConfigResponse smart constructor.
Constructors
| GetDistributionConfigResponse' | |
Fields
| |
Instances
newGetDistributionConfigResponse Source #
Create a value of GetDistributionConfigResponse 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:
GetDistributionConfigResponse, getDistributionConfigResponse_distributionConfig - The distribution's configuration information.
$sel:eTag:GetDistributionConfigResponse', getDistributionConfigResponse_eTag - The current version of the configuration. For example: E2QWRUHAPOMQZL.
$sel:httpStatus:GetDistributionConfigResponse', getDistributionConfigResponse_httpStatus - The response's http status code.
Response Lenses
getDistributionConfigResponse_distributionConfig :: Lens' GetDistributionConfigResponse (Maybe DistributionConfig) Source #
The distribution's configuration information.
getDistributionConfigResponse_eTag :: Lens' GetDistributionConfigResponse (Maybe Text) Source #
The current version of the configuration. For example: E2QWRUHAPOMQZL.
getDistributionConfigResponse_httpStatus :: Lens' GetDistributionConfigResponse Int Source #
The response's http status code.