get_distributions
async
¶
get_distributions(
*,
config_overrides: Optional[AsyncLightsailClientConfig] = None,
distribution_name: Optional[ResourceName] = None,
page_token: Optional[string] = None,
) -> GetDistributionsResult
Returns information about one or more of your Amazon Lightsail content delivery network (CDN) distributions.
Parameters:
-
distribution_name(Optional[ResourceName], default:None) –The name of the distribution for which to return information.
When omitted, the response includes all of your distributions in the Amazon Web Services Region where the request is made.
-
page_token(Optional[string], default:None) –The token to advance to the next page of results from your request.
To get a page token, perform an initial
GetDistributionsrequest. 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.
Raises:
-
AccessDeniedException–Lightsail throws this exception when the user cannot be authenticated or uses invalid credentials to access a resource.
-
InvalidInputException–Lightsail throws this exception when user input does not conform to the validation rules of an input field.
Domain and distribution APIs are only available in the N. Virginia (
us-east-1) Amazon Web Services Region. Please set your Amazon Web Services Region configuration tous-east-1to create, view, or edit these resources. -
NotFoundException–Lightsail throws this exception when it cannot find a resource.
-
OperationFailureException–Lightsail throws this exception when an operation fails to execute.
-
ServiceException–A general service exception.
-
UnauthenticatedException–Lightsail throws this exception when the user has not been authenticated.
-
UnknownServiceError–The service returned an error code this client does not model.