amazonka-ecr-1.4.2: Amazon EC2 Container Registry SDK.

Copyright(c) 2013-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.ECR.GetAuthorizationToken

Contents

Description

Retrieves a token that is valid for a specified registry for 12 hours. This command allows you to use the docker CLI to push and pull images with Amazon ECR. If you do not specify a registry, the default registry is assumed.

The authorizationToken returned for each registry specified is a base64 encoded string that can be decoded and used in a 'docker login' command to authenticate to a registry. The AWS CLI offers an 'aws ecr get-login' command that simplifies the login process.

Synopsis

Creating a Request

getAuthorizationToken :: GetAuthorizationToken Source #

Creates a value of GetAuthorizationToken with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data GetAuthorizationToken Source #

See: getAuthorizationToken smart constructor.

Instances

Eq GetAuthorizationToken Source # 
Data GetAuthorizationToken Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> GetAuthorizationToken -> c GetAuthorizationToken #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c GetAuthorizationToken #

toConstr :: GetAuthorizationToken -> Constr #

dataTypeOf :: GetAuthorizationToken -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c GetAuthorizationToken) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c GetAuthorizationToken) #

gmapT :: (forall b. Data b => b -> b) -> GetAuthorizationToken -> GetAuthorizationToken #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> GetAuthorizationToken -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> GetAuthorizationToken -> r #

gmapQ :: (forall d. Data d => d -> u) -> GetAuthorizationToken -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> GetAuthorizationToken -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> GetAuthorizationToken -> m GetAuthorizationToken #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> GetAuthorizationToken -> m GetAuthorizationToken #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> GetAuthorizationToken -> m GetAuthorizationToken #

Read GetAuthorizationToken Source # 
Show GetAuthorizationToken Source # 
Generic GetAuthorizationToken Source # 
ToJSON GetAuthorizationToken Source # 
Hashable GetAuthorizationToken Source # 
NFData GetAuthorizationToken Source # 

Methods

rnf :: GetAuthorizationToken -> () #

AWSRequest GetAuthorizationToken Source # 
ToPath GetAuthorizationToken Source # 
ToHeaders GetAuthorizationToken Source # 
ToQuery GetAuthorizationToken Source # 
type Rep GetAuthorizationToken Source # 
type Rep GetAuthorizationToken = D1 (MetaData "GetAuthorizationToken" "Network.AWS.ECR.GetAuthorizationToken" "amazonka-ecr-1.4.2-Fp72XPzRUrd39DRabYi9cP" True) (C1 (MetaCons "GetAuthorizationToken'" PrefixI True) (S1 (MetaSel (Just Symbol "_gatRegistryIds") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe (List1 Text)))))
type Rs GetAuthorizationToken Source # 

Request Lenses

gatRegistryIds :: Lens' GetAuthorizationToken (Maybe (NonEmpty Text)) Source #

A list of AWS account IDs that are associated with the registries for which to get authorization tokens. If you do not specify a registry, the default registry is assumed.

Destructuring the Response

getAuthorizationTokenResponse Source #

Creates a value of GetAuthorizationTokenResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data GetAuthorizationTokenResponse Source #

See: getAuthorizationTokenResponse smart constructor.

Instances

Eq GetAuthorizationTokenResponse Source # 
Data GetAuthorizationTokenResponse Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> GetAuthorizationTokenResponse -> c GetAuthorizationTokenResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c GetAuthorizationTokenResponse #

toConstr :: GetAuthorizationTokenResponse -> Constr #

dataTypeOf :: GetAuthorizationTokenResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c GetAuthorizationTokenResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c GetAuthorizationTokenResponse) #

gmapT :: (forall b. Data b => b -> b) -> GetAuthorizationTokenResponse -> GetAuthorizationTokenResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> GetAuthorizationTokenResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> GetAuthorizationTokenResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> GetAuthorizationTokenResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> GetAuthorizationTokenResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> GetAuthorizationTokenResponse -> m GetAuthorizationTokenResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> GetAuthorizationTokenResponse -> m GetAuthorizationTokenResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> GetAuthorizationTokenResponse -> m GetAuthorizationTokenResponse #

Read GetAuthorizationTokenResponse Source # 
Show GetAuthorizationTokenResponse Source # 
Generic GetAuthorizationTokenResponse Source # 
NFData GetAuthorizationTokenResponse Source # 
type Rep GetAuthorizationTokenResponse Source # 
type Rep GetAuthorizationTokenResponse = D1 (MetaData "GetAuthorizationTokenResponse" "Network.AWS.ECR.GetAuthorizationToken" "amazonka-ecr-1.4.2-Fp72XPzRUrd39DRabYi9cP" False) (C1 (MetaCons "GetAuthorizationTokenResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_gatrsAuthorizationData") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [AuthorizationData]))) (S1 (MetaSel (Just Symbol "_gatrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

Response Lenses

gatrsAuthorizationData :: Lens' GetAuthorizationTokenResponse [AuthorizationData] Source #

A list of authorization token data objects that correspond to the registryIds values in the request.