Class AuthorizationToken
Authorization token to access private ECR repositories in the current environment via Docker CLI.
Inheritance
System.Object
AuthorizationToken
Namespace: Amazon.CDK.AWS.ECR
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class AuthorizationToken : DeputyBase
Syntax (vb)
Public Class AuthorizationToken
Inherits DeputyBase
Remarks
See: https://docs.aws.amazon.com/AmazonECR/latest/userguide/registry_auth.html
ExampleMetadata: infused
Examples
var user = new User(this, "User");
AuthorizationToken.GrantRead(user);
Synopsis
Constructors
AuthorizationToken(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
AuthorizationToken(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Methods
GrantRead(IGrantable) | Grant access to retrieve an authorization token. |
Constructors
AuthorizationToken(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected AuthorizationToken(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
AuthorizationToken(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected AuthorizationToken(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Methods
GrantRead(IGrantable)
Grant access to retrieve an authorization token.
public static void GrantRead(IGrantable grantee)
Parameters
- grantee IGrantable