Returns information about one or more of your Amazon Lightsail content delivery network (CDN) distributions.
lightsail_get_distributions(distributionName, pageToken)
A list with the following syntax:
list(
distributions = list(
list(
name = "string",
arn = "string",
supportCode = "string",
createdAt = as.POSIXct(
"2015-01-01"
),
location = list(
availabilityZone = "string",
regionName = "us-east-1"|"us-east-2"|"us-west-1"|"us-west-2"|"eu-west-1"|"eu-west-2"|"eu-west-3"|"eu-central-1"|"ca-central-1"|"ap-south-1"|"ap-southeast-1"|"ap-southeast-2"|"ap-northeast-1"|"ap-northeast-2"
),
resourceType = "ContainerService"|"Instance"|"StaticIp"|"KeyPair"|"InstanceSnapshot"|"Domain"|"PeeredVpc"|"LoadBalancer"|"LoadBalancerTlsCertificate"|"Disk"|"DiskSnapshot"|"RelationalDatabase"|"RelationalDatabaseSnapshot"|"ExportSnapshotRecord"|"CloudFormationStackRecord"|"Alarm"|"ContactMethod"|"Distribution"|"Certificate",
alternativeDomainNames = list(
"string"
),
status = "string",
isEnabled = TRUE|FALSE,
domainName = "string",
bundleId = "string",
certificateName = "string",
origin = list(
name = "string",
resourceType = "ContainerService"|"Instance"|"StaticIp"|"KeyPair"|"InstanceSnapshot"|"Domain"|"PeeredVpc"|"LoadBalancer"|"LoadBalancerTlsCertificate"|"Disk"|"DiskSnapshot"|"RelationalDatabase"|"RelationalDatabaseSnapshot"|"ExportSnapshotRecord"|"CloudFormationStackRecord"|"Alarm"|"ContactMethod"|"Distribution"|"Certificate",
regionName = "us-east-1"|"us-east-2"|"us-west-1"|"us-west-2"|"eu-west-1"|"eu-west-2"|"eu-west-3"|"eu-central-1"|"ca-central-1"|"ap-south-1"|"ap-southeast-1"|"ap-southeast-2"|"ap-northeast-1"|"ap-northeast-2",
protocolPolicy = "http-only"|"https-only"
),
originPublicDNS = "string",
defaultCacheBehavior = list(
behavior = "dont-cache"|"cache"
),
cacheBehaviorSettings = list(
defaultTTL = 123,
minimumTTL = 123,
maximumTTL = 123,
allowedHTTPMethods = "string",
cachedHTTPMethods = "string",
forwardedCookies = list(
option = "none"|"allow-list"|"all",
cookiesAllowList = list(
"string"
)
),
forwardedHeaders = list(
option = "none"|"allow-list"|"all",
headersAllowList = list(
"Accept"|"Accept-Charset"|"Accept-Datetime"|"Accept-Encoding"|"Accept-Language"|"Authorization"|"CloudFront-Forwarded-Proto"|"CloudFront-Is-Desktop-Viewer"|"CloudFront-Is-Mobile-Viewer"|"CloudFront-Is-SmartTV-Viewer"|"CloudFront-Is-Tablet-Viewer"|"CloudFront-Viewer-Country"|"Host"|"Origin"|"Referer"
)
),
forwardedQueryStrings = list(
option = TRUE|FALSE,
queryStringsAllowList = list(
"string"
)
)
),
cacheBehaviors = list(
list(
path = "string",
behavior = "dont-cache"|"cache"
)
),
ableToUpdateBundle = TRUE|FALSE,
tags = list(
list(
key = "string",
value = "string"
)
)
)
),
nextPageToken = "string"
)
The name of the distribution for which to return information.
Use the get_distributions
action to get
a list of distribution names that you can specify.
When omitted, the response includes all of your distributions in the AWS Region where the request is made.
The token to advance to the next page of results from your request.
To get a page token, perform an initial
get_distributions
request. If your
results are paginated, the response will return a next page token that
you can specify as the page token in a subsequent request.
svc$get_distributions(
distributionName = "string",
pageToken = "string"
)