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 |
Creates an Amazon Lightsail content delivery network (CDN) distribution.
A distribution is a globally distributed network of caching servers that improve the performance of your website or web application hosted on a Lightsail instance. For more information, see Content delivery networks in Amazon Lightsail.
Synopsis
- data CreateDistribution = CreateDistribution' {}
- newCreateDistribution :: Text -> InputOrigin -> CacheBehavior -> Text -> CreateDistribution
- createDistribution_cacheBehaviorSettings :: Lens' CreateDistribution (Maybe CacheSettings)
- createDistribution_ipAddressType :: Lens' CreateDistribution (Maybe IpAddressType)
- createDistribution_cacheBehaviors :: Lens' CreateDistribution (Maybe [CacheBehaviorPerPath])
- createDistribution_tags :: Lens' CreateDistribution (Maybe [Tag])
- createDistribution_distributionName :: Lens' CreateDistribution Text
- createDistribution_origin :: Lens' CreateDistribution InputOrigin
- createDistribution_defaultCacheBehavior :: Lens' CreateDistribution CacheBehavior
- createDistribution_bundleId :: Lens' CreateDistribution Text
- data CreateDistributionResponse = CreateDistributionResponse' {}
- newCreateDistributionResponse :: Int -> CreateDistributionResponse
- createDistributionResponse_distribution :: Lens' CreateDistributionResponse (Maybe LightsailDistribution)
- createDistributionResponse_operation :: Lens' CreateDistributionResponse (Maybe Operation)
- createDistributionResponse_httpStatus :: Lens' CreateDistributionResponse Int
Creating a Request
data CreateDistribution Source #
See: newCreateDistribution
smart constructor.
CreateDistribution' | |
|
Instances
newCreateDistribution Source #
:: Text | |
-> InputOrigin | |
-> CacheBehavior | |
-> Text | |
-> CreateDistribution |
Create a value of CreateDistribution
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:cacheBehaviorSettings:CreateDistribution'
, createDistribution_cacheBehaviorSettings
- An object that describes the cache behavior settings for the
distribution.
$sel:ipAddressType:CreateDistribution'
, createDistribution_ipAddressType
- The IP address type for the distribution.
The possible values are ipv4
for IPv4 only, and dualstack
for IPv4
and IPv6.
The default value is dualstack
.
$sel:cacheBehaviors:CreateDistribution'
, createDistribution_cacheBehaviors
- An array of objects that describe the per-path cache behavior for the
distribution.
$sel:tags:CreateDistribution'
, createDistribution_tags
- The tag keys and optional values to add to the distribution during
create.
Use the TagResource
action to tag a resource after it's created.
$sel:distributionName:CreateDistribution'
, createDistribution_distributionName
- The name for the distribution.
$sel:origin:CreateDistribution'
, createDistribution_origin
- An object that describes the origin resource for the distribution, such
as a Lightsail instance or load balancer.
The distribution pulls, caches, and serves content from the origin.
$sel:defaultCacheBehavior:CreateDistribution'
, createDistribution_defaultCacheBehavior
- An object that describes the default cache behavior for the
distribution.
$sel:bundleId:CreateDistribution'
, createDistribution_bundleId
- The bundle ID to use for the distribution.
A distribution bundle describes the specifications of your distribution, such as the monthly cost and monthly network transfer quota.
Use the GetDistributionBundles
action to get a list of distribution
bundle IDs that you can specify.
Request Lenses
createDistribution_cacheBehaviorSettings :: Lens' CreateDistribution (Maybe CacheSettings) Source #
An object that describes the cache behavior settings for the distribution.
createDistribution_ipAddressType :: Lens' CreateDistribution (Maybe IpAddressType) Source #
The IP address type for the distribution.
The possible values are ipv4
for IPv4 only, and dualstack
for IPv4
and IPv6.
The default value is dualstack
.
createDistribution_cacheBehaviors :: Lens' CreateDistribution (Maybe [CacheBehaviorPerPath]) Source #
An array of objects that describe the per-path cache behavior for the distribution.
createDistribution_tags :: Lens' CreateDistribution (Maybe [Tag]) Source #
The tag keys and optional values to add to the distribution during create.
Use the TagResource
action to tag a resource after it's created.
createDistribution_distributionName :: Lens' CreateDistribution Text Source #
The name for the distribution.
createDistribution_origin :: Lens' CreateDistribution InputOrigin Source #
An object that describes the origin resource for the distribution, such as a Lightsail instance or load balancer.
The distribution pulls, caches, and serves content from the origin.
createDistribution_defaultCacheBehavior :: Lens' CreateDistribution CacheBehavior Source #
An object that describes the default cache behavior for the distribution.
createDistribution_bundleId :: Lens' CreateDistribution Text Source #
The bundle ID to use for the distribution.
A distribution bundle describes the specifications of your distribution, such as the monthly cost and monthly network transfer quota.
Use the GetDistributionBundles
action to get a list of distribution
bundle IDs that you can specify.
Destructuring the Response
data CreateDistributionResponse Source #
See: newCreateDistributionResponse
smart constructor.
CreateDistributionResponse' | |
|
Instances
newCreateDistributionResponse Source #
Create a value of CreateDistributionResponse
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:distribution:CreateDistributionResponse'
, createDistributionResponse_distribution
- An object that describes the distribution created.
$sel:operation:CreateDistributionResponse'
, createDistributionResponse_operation
- An array of objects that describe 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:CreateDistributionResponse'
, createDistributionResponse_httpStatus
- The response's http status code.
Response Lenses
createDistributionResponse_distribution :: Lens' CreateDistributionResponse (Maybe LightsailDistribution) Source #
An object that describes the distribution created.
createDistributionResponse_operation :: Lens' CreateDistributionResponse (Maybe Operation) Source #
An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.
createDistributionResponse_httpStatus :: Lens' CreateDistributionResponse Int Source #
The response's http status code.