Interface CfnAccessKeyProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnAccessKeyProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:29:57.226Z")
@Stability(Stable)
public interface CfnAccessKeyProps
extends software.amazon.jsii.JsiiSerializable
Properties for defining a
CfnAccessKey.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.iam.*;
CfnAccessKeyProps cfnAccessKeyProps = CfnAccessKeyProps.builder()
.userName("userName")
// the properties below are optional
.serial(123)
.status("status")
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnAccessKeyPropsstatic final classAn implementation forCfnAccessKeyProps -
Method Summary
Modifier and TypeMethodDescriptionstatic CfnAccessKeyProps.Builderbuilder()default NumberThis value is specific to CloudFormation and can only be incremented .default StringThe status of the access key.The name of the IAM user that the new key will belong to.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getUserName
The name of the IAM user that the new key will belong to.This parameter allows (through its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-
-
getSerial
This value is specific to CloudFormation and can only be incremented .Incrementing this value notifies CloudFormation that you want to rotate your access key. When you update your stack, CloudFormation will replace the existing access key with a new key.
-
getStatus
The status of the access key.Activemeans that the key is valid for API calls, whileInactivemeans it is not. -
builder
- Returns:
- a
CfnAccessKeyProps.BuilderofCfnAccessKeyProps
-