createContainerServiceRegistryLogin method
Creates a temporary set of log in credentials that you can use to log in
to the Docker process on your local machine. After you're logged in, you
can use the native Docker commands to push your local container images to
the container image registry of your Amazon Lightsail account so that you
can use them with your Lightsail container service. The log in credentials
expire 12 hours after they are created, at which point you will need to
create a new set of log in credentials.
After you push your container images to the container image registry of
your Lightsail account, use the RegisterContainerImage
action
to register the pushed images to a specific Lightsail container service.
May throw ServiceException. May throw InvalidInputException. May throw NotFoundException. May throw AccessDeniedException. May throw UnauthenticatedException.
Implementation
Future<CreateContainerServiceRegistryLoginResult>
createContainerServiceRegistryLogin() async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'Lightsail_20161128.CreateContainerServiceRegistryLogin'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
);
return CreateContainerServiceRegistryLoginResult.fromJson(
jsonResponse.body);
}