interface CfnDistributionProps
| Language | Type name | 
|---|---|
|  .NET | Amazon.CDK.AWS.Lightsail.CfnDistributionProps | 
|  Java | software.amazon.awscdk.services.lightsail.CfnDistributionProps | 
|  Python | aws_cdk.aws_lightsail.CfnDistributionProps | 
|  TypeScript | @aws-cdk/aws-lightsail»CfnDistributionProps | 
Properties for defining a CfnDistribution.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as lightsail from '@aws-cdk/aws-lightsail';
const cfnDistributionProps: lightsail.CfnDistributionProps = {
  bundleId: 'bundleId',
  defaultCacheBehavior: {
    behavior: 'behavior',
  },
  distributionName: 'distributionName',
  origin: {
    name: 'name',
    protocolPolicy: 'protocolPolicy',
    regionName: 'regionName',
  },
  // the properties below are optional
  cacheBehaviors: [{
    behavior: 'behavior',
    path: 'path',
  }],
  cacheBehaviorSettings: {
    allowedHttpMethods: 'allowedHttpMethods',
    cachedHttpMethods: 'cachedHttpMethods',
    defaultTtl: 123,
    forwardedCookies: {
      cookiesAllowList: ['cookiesAllowList'],
      option: 'option',
    },
    forwardedHeaders: {
      headersAllowList: ['headersAllowList'],
      option: 'option',
    },
    forwardedQueryStrings: {
      option: false,
      queryStringsAllowList: ['queryStringsAllowList'],
    },
    maximumTtl: 123,
    minimumTtl: 123,
  },
  certificateName: 'certificateName',
  ipAddressType: 'ipAddressType',
  isEnabled: false,
  tags: [{
    key: 'key',
    value: 'value',
  }],
};
Properties
| Name | Type | Description | 
|---|---|---|
| bundle | string | The ID of the bundle applied to the distribution. | 
| default | IResolvable | Cache | An object that describes the default cache behavior of the distribution. | 
| distribution | string | The name of the distribution. | 
| origin | IResolvable | Input | An object that describes the origin resource of the distribution, such as a Lightsail instance, bucket, or load balancer. | 
| cache | IResolvable | Cache | An object that describes the cache behavior settings of the distribution. | 
| cache | IResolvable | IResolvable | Cache[] | An array of objects that describe the per-path cache behavior of the distribution. | 
| certificate | string | The name of the SSL/TLS certificate attached to the distribution. | 
| ip | string | The IP address type of the distribution. | 
| is | boolean | IResolvable | A Boolean value indicating whether the distribution is enabled. | 
| tags? | Cfn[] | An array of key-value pairs to apply to this resource. | 
bundleId
Type:
string
The ID of the bundle applied to the distribution.
defaultCacheBehavior
Type:
IResolvable | Cache
An object that describes the default cache behavior of the distribution.
distributionName
Type:
string
The name of the distribution.
origin
Type:
IResolvable | Input
An object that describes the origin resource of the distribution, such as a Lightsail instance, bucket, or load balancer.
The distribution pulls, caches, and serves content from the origin.
cacheBehaviorSettings?
Type:
IResolvable | Cache
(optional)
An object that describes the cache behavior settings of the distribution.
cacheBehaviors?
Type:
IResolvable | IResolvable | Cache[]
(optional)
An array of objects that describe the per-path cache behavior of the distribution.
certificateName?
Type:
string
(optional)
The name of the SSL/TLS certificate attached to the distribution.
ipAddressType?
Type:
string
(optional)
The IP address type of the distribution.
The possible values are ipv4 for IPv4 only, and dualstack for IPv4 and IPv6.
isEnabled?
Type:
boolean | IResolvable
(optional)
A Boolean value indicating whether the distribution is enabled.
tags?
Type:
Cfn[]
(optional)
An array of key-value pairs to apply to this resource.
For more information, see Tag in the AWS CloudFormation User Guide .
The
ValueofTagsis optional for Lightsail resources.
