import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { LightsailClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LightsailClient"; import type { CreateContainerServiceRegistryLoginRequest, CreateContainerServiceRegistryLoginResult } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link CreateContainerServiceRegistryLoginCommand}. */ export interface CreateContainerServiceRegistryLoginCommandInput extends CreateContainerServiceRegistryLoginRequest { } /** * @public * * The output of {@link CreateContainerServiceRegistryLoginCommand}. */ export interface CreateContainerServiceRegistryLoginCommandOutput extends CreateContainerServiceRegistryLoginResult, __MetadataBearer { } declare const CreateContainerServiceRegistryLoginCommand_base: { new (input: CreateContainerServiceRegistryLoginCommandInput): import("@smithy/smithy-client").CommandImpl; new (...[input]: [] | [CreateContainerServiceRegistryLoginCommandInput]): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

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.

* *

You can only push container images to the container service registry of your Lightsail * account. You cannot pull container images or perform any other container image management * actions on the container service registry.

*
*

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.

* *

This action is not required if you install and use the Lightsail Control * (lightsailctl) plugin to push container images to your Lightsail container service. For * more information, see Pushing and managing container images on your Amazon Lightsail container services * in the Amazon Lightsail Developer Guide.

*
* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { LightsailClient, CreateContainerServiceRegistryLoginCommand } from "@aws-sdk/client-lightsail"; // ES Modules import * // const { LightsailClient, CreateContainerServiceRegistryLoginCommand } = require("@aws-sdk/client-lightsail"); // CommonJS import * // import type { LightsailClientConfig } from "@aws-sdk/client-lightsail"; * const config = {}; // type is LightsailClientConfig * const client = new LightsailClient(config); * const input = {}; * const command = new CreateContainerServiceRegistryLoginCommand(input); * const response = await client.send(command); * // { // CreateContainerServiceRegistryLoginResult * // registryLogin: { // ContainerServiceRegistryLogin * // username: "STRING_VALUE", * // password: "STRING_VALUE", * // expiresAt: new Date("TIMESTAMP"), * // registry: "STRING_VALUE", * // }, * // }; * * ``` * * @param CreateContainerServiceRegistryLoginCommandInput - {@link CreateContainerServiceRegistryLoginCommandInput} * @returns {@link CreateContainerServiceRegistryLoginCommandOutput} * @see {@link CreateContainerServiceRegistryLoginCommandInput} for command's `input` shape. * @see {@link CreateContainerServiceRegistryLoginCommandOutput} for command's `response` shape. * @see {@link LightsailClientResolvedConfig | config} for LightsailClient's `config` shape. * * @throws {@link AccessDeniedException} (client fault) *

Lightsail throws this exception when the user cannot be authenticated or uses invalid * credentials to access a resource.

* * @throws {@link InvalidInputException} (client fault) *

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 to us-east-1 to create, view, or edit these * resources.

*
* * @throws {@link NotFoundException} (client fault) *

Lightsail throws this exception when it cannot find a resource.

* * @throws {@link RegionSetupInProgressException} (client fault) *

Lightsail throws this exception when an operation is performed on resources in an opt-in * Region that is currently being set up.

* * @throws {@link ServiceException} (server fault) *

A general service exception.

* * @throws {@link UnauthenticatedException} (client fault) *

Lightsail throws this exception when the user has not been authenticated.

* * @throws {@link LightsailServiceException} *

Base exception class for all service exceptions from Lightsail service.

* * * @public */ export declare class CreateContainerServiceRegistryLoginCommand extends CreateContainerServiceRegistryLoginCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: {}; output: CreateContainerServiceRegistryLoginResult; }; sdk: { input: CreateContainerServiceRegistryLoginCommandInput; output: CreateContainerServiceRegistryLoginCommandOutput; }; }; }