aws lightsail create-distribution
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
Options
Name | Description |
---|---|
--distribution-name <string> | The name for the distribution |
--origin <structure> | 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 |
--default-cache-behavior <structure> | An object that describes the default cache behavior for the distribution |
--cache-behavior-settings <structure> | An object that describes the cache behavior settings for the distribution |
--cache-behaviors <list> | An array of objects that describe the per-path cache behavior for the distribution |
--bundle-id <string> | 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 |
--ip-address-type <string> | 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 |
--tags <list> | 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 |
--cli-input-json <string> | Performs service operation based on the JSON string provided. The JSON string follows the format provided by ``--generate-cli-skeleton``. If other arguments are provided on the command line, the CLI values will override the JSON-provided values. It is not possible to pass arbitrary binary values using a JSON-provided value as the string will be taken literally |
--generate-cli-skeleton <string> | Prints a JSON skeleton to standard output without sending an API request. If provided with no value or the value ``input``, prints a sample input JSON that can be used as an argument for ``--cli-input-json``. If provided with the value ``output``, it validates the command inputs and returns a sample output JSON for that command |