Class CredentialSpec
Base construct for a credential specification (CredSpec).
Namespace: Amazon.CDK.AWS.ECS
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CredentialSpec : DeputyBase
Syntax (vb)
Public Class CredentialSpec
Inherits DeputyBase
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.ECS;
var credentialSpec = new CredentialSpec("prefixId", "fileLocation");
Synopsis
Constructors
CredentialSpec(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CredentialSpec(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
CredentialSpec(String, String) |
Properties
FileLocation | Location or ARN from where to retrieve the CredSpec file. |
PrefixId | Prefix string based on the type of CredSpec. |
Methods
ArnForS3Object(IBucket, String) | Helper method to generate the ARN for a S3 object. |
ArnForSsmParameter(IParameter) | Helper method to generate the ARN for a SSM parameter. |
Bind() | Called when the container is initialized to allow this object to bind to the stack. |
Constructors
CredentialSpec(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CredentialSpec(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
CredentialSpec(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CredentialSpec(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
CredentialSpec(String, String)
public CredentialSpec(string prefixId, string fileLocation)
Parameters
- prefixId System.String
- fileLocation System.String
Location or ARN from where to retrieve the CredSpec file.
Properties
FileLocation
Location or ARN from where to retrieve the CredSpec file.
public virtual string FileLocation { get; }
Property Value
System.String
PrefixId
Prefix string based on the type of CredSpec.
public virtual string PrefixId { get; }
Property Value
System.String
Methods
ArnForS3Object(IBucket, String)
Helper method to generate the ARN for a S3 object.
protected static string ArnForS3Object(IBucket bucket, string key)
Parameters
- bucket IBucket
- key System.String
Returns
System.String
Remarks
Used to avoid duplication of logic in derived classes.
ArnForSsmParameter(IParameter)
Helper method to generate the ARN for a SSM parameter.
protected static string ArnForSsmParameter(IParameter parameter)
Parameters
- parameter IParameter
Returns
System.String
Remarks
Used to avoid duplication of logic in derived classes.
Bind()
Called when the container is initialized to allow this object to bind to the stack.
public virtual ICredentialSpecConfig Bind()
Returns