generators/aws-containers/aws-client.js
function _getAuthorizationToken() {
    return spinner(
        new Promise((resolve, reject) =>
            ECR.sdk
                .getAuthorizationToken({})
                .promise()
                .then(data => {
                    if (!_.has(data, 'authorizationData.0')) {
                        reject(new Error('No authorization data found.'));
                        return;
                    }
                    resolve(data.authorizationData[0]);
                })
        )
    );
}
function _getAuthorizationToken() {
    return spinner(
        new Promise((resolve, reject) =>
            ECR.sdk
                .getAuthorizationToken({})
                .promise()
                .then(data => {
                    if (!_.has(data, 'authorizationData.0')) {
                        reject(new Error('No authorization data found.'));
                        return;
                    }
                    resolve(data.authorizationData[0]);
                })
        )
    );
}
function _getAuthorizationToken ( ) { return spinner ( new Promise ( ( resolve , reject ) => ECR . sdk . getAuthorizationToken ( { } ) . promise ( ) . then ( data => { if ( ! _ . has ( data , 'authorizationData.0' ) ) { reject ( new Error ( 'No authorization data found.' ) ) ; return ; } resolve ( data . authorizationData [ 0 ] ) ; } ) ) ) ; }
Fetch Authentication token from AWS to authenticate with Docker
@returns {Promise} Returns a promise that resolves when the informations are retrieved.
@private
Fetch Authentication token from AWS to authenticate with Docker