Class AccessKey
Define a new IAM Access Key.
Inherited Members
Namespace: Amazon.CDK.AWS.IAM
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class AccessKey : Resource, IAccessKey, IResource
Syntax (vb)
Public Class AccessKey
Inherits Resource
Implements IAccessKey, IResource
Remarks
ExampleMetadata: infused
Examples
// Creates a new IAM user, access and secret keys, and stores the secret access key in a Secret.
var user = new User(this, "User");
var accessKey = new AccessKey(this, "AccessKey", new AccessKeyProps { User = user });
var secret = new Secret(this, "Secret", new SecretProps {
SecretStringValue = accessKey.SecretAccessKey
});
Synopsis
Constructors
AccessKey(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
AccessKey(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
AccessKey(Construct, String, IAccessKeyProps) |
Properties
AccessKeyId | The Access Key ID. |
SecretAccessKey | The Secret Access Key. |
Constructors
AccessKey(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected AccessKey(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
AccessKey(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected AccessKey(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
AccessKey(Construct, String, IAccessKeyProps)
public AccessKey(Construct scope, string id, IAccessKeyProps props)
Parameters
- scope Constructs.Construct
- id System.String
- props IAccessKeyProps
Properties
AccessKeyId
The Access Key ID.
public virtual string AccessKeyId { get; }
Property Value
System.String
SecretAccessKey
The Secret Access Key.
public virtual SecretValue SecretAccessKey { get; }
Property Value
Implements
Constructs.IConstruct
Constructs.IDependable