Class AccessKey

All Implemented Interfaces:
IConstruct, IDependable, IResource, IAccessKey,, software.constructs.IConstruct

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:29:57.216Z") @Stability(Stable) public class AccessKey extends Resource implements IAccessKey
Define a new IAM Access Key.


 // Creates a new IAM user, access and secret keys, and stores the secret access key in a Secret.
 User user = new User(this, "User");
 AccessKey accessKey = AccessKey.Builder.create(this, "AccessKey").user(user).build();
 SecretStringValueBeta1 secretValue = SecretStringValueBeta1.fromToken(accessKey.secretAccessKey.toString());
 Secret.Builder.create(this, "Secret")
  • Constructor Details

    • AccessKey

      protected AccessKey( objRef)
    • AccessKey

      protected AccessKey( initializationMode)
    • AccessKey

      @Stability(Stable) public AccessKey(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull AccessKeyProps props)
      scope - This parameter is required.
      id - This parameter is required.
      props - This parameter is required.
  • Method Details