Class CfnAccessKeyPropsMixin
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.Mixin
software.amazon.awscdk.cfnpropertymixins.services.iam.CfnAccessKeyPropsMixin
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable,software.constructs.IMixin
@Generated(value="jsii-pacmak/1.127.0 (build 2117ad5)",
date="2026-03-11T13:19:59.969Z")
@Stability(Stable)
public class CfnAccessKeyPropsMixin
extends Mixin
implements software.constructs.IMixin
Creates a new AWS secret access key and corresponding AWS access key ID for the specified user.
The default status for new keys is Active .
For information about quotas on the number of keys you can create, see IAM and AWS STS quotas in the IAM User Guide .
To ensure the security of your AWS account , the secret access key is accessible only during key and user creation. You must save the key (for example, in a text file) if you want to be able to access it again. If a secret key is lost, you can rotate access keys by increasing the value of the
serialproperty.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.cfnpropertymixins.services.iam.*;
import software.amazon.awscdk.*;
IMergeStrategy mergeStrategy;
CfnAccessKeyPropsMixin cfnAccessKeyPropsMixin = CfnAccessKeyPropsMixin.Builder.create(CfnAccessKeyMixinProps.builder()
.serial(123)
.status("status")
.userName("userName")
.build())
.strategy(mergeStrategy)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IMixin
software.constructs.IMixin.Jsii$Default, software.constructs.IMixin.Jsii$Proxy -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionCreate a mixin to apply properties toAWS::IAM::AccessKey.CfnAccessKeyPropsMixin(CfnAccessKeyMixinProps props, CfnPropertyMixinOptions options) Create a mixin to apply properties toAWS::IAM::AccessKey.protectedCfnAccessKeyPropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnAccessKeyPropsMixin(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyTo(software.constructs.IConstruct construct) Apply the mixin properties to the construct.protected CfnAccessKeyMixinPropsgetProps()protected IMergeStrategysupports(software.constructs.IConstruct construct) Check if this mixin supports the given construct.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_PROPERTY_KEYS
-
-
Constructor Details
-
CfnAccessKeyPropsMixin
protected CfnAccessKeyPropsMixin(software.amazon.jsii.JsiiObjectRef objRef) -
CfnAccessKeyPropsMixin
protected CfnAccessKeyPropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnAccessKeyPropsMixin
@Stability(Stable) public CfnAccessKeyPropsMixin(@NotNull CfnAccessKeyMixinProps props, @Nullable CfnPropertyMixinOptions options) Create a mixin to apply properties toAWS::IAM::AccessKey.- Parameters:
props- L1 properties to apply. This parameter is required.options- Mixin options.
-
CfnAccessKeyPropsMixin
Create a mixin to apply properties toAWS::IAM::AccessKey.- Parameters:
props- L1 properties to apply. This parameter is required.
-
-
Method Details
-
applyTo
@Stability(Stable) public void applyTo(@NotNull software.constructs.IConstruct construct) Apply the mixin properties to the construct. -
supports
@Stability(Stable) @NotNull public Boolean supports(@NotNull software.constructs.IConstruct construct) Check if this mixin supports the given construct. -
getProps
-
getStrategy
-