Class: AWSCDK::IAM::AccessKeyProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::IAM::AccessKeyProps
- Defined in:
- iam/access_key_props.rb
Overview
Properties for defining an IAM access key.
Instance Attribute Summary collapse
-
#serial ⇒ Numeric?
readonly
A CloudFormation-specific value that signifies the access key should be replaced/rotated.
-
#status ⇒ AWSCDK::IAM::AccessKeyStatus?
readonly
The status of the access key.
-
#user ⇒ AWSCDK::IAM::IUser
readonly
The IAM user this key will belong to.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(user:, serial: nil, status: nil) ⇒ AccessKeyProps
constructor
A new instance of AccessKeyProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(user:, serial: nil, status: nil) ⇒ AccessKeyProps
Returns a new instance of AccessKeyProps.
10 11 12 13 14 15 16 17 |
# File 'iam/access_key_props.rb', line 10 def initialize(user:, serial: nil, status: nil) @user = user Jsii::Type.check_type(@user, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfaWFtLklVc2VyIn0=")), "user") @serial = serial Jsii::Type.check_type(@serial, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "serial") unless @serial.nil? @status = status Jsii::Type.check_type(@status, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfaWFtLkFjY2Vzc0tleVN0YXR1cyJ9")), "status") unless @status.nil? end |
Instance Attribute Details
#serial ⇒ Numeric? (readonly)
Default: - No serial value
A CloudFormation-specific value that signifies the access key should be replaced/rotated.
This value can only be incremented. Incrementing this value will cause CloudFormation to replace the Access Key resource.
34 35 36 |
# File 'iam/access_key_props.rb', line 34 def serial @serial end |
#status ⇒ AWSCDK::IAM::AccessKeyStatus? (readonly)
Default: - The access key is active
The status of the access key.
An Active access key is allowed to be used to make API calls; An Inactive key cannot.
42 43 44 |
# File 'iam/access_key_props.rb', line 42 def status @status end |
#user ⇒ AWSCDK::IAM::IUser (readonly)
The IAM user this key will belong to.
Changing this value will result in the access key being deleted and a new access key (with a different ID and secret value) being assigned to the new user.
26 27 28 |
# File 'iam/access_key_props.rb', line 26 def user @user end |
Class Method Details
.jsii_properties ⇒ Object
44 45 46 47 48 49 50 |
# File 'iam/access_key_props.rb', line 44 def self.jsii_properties { :user => "user", :serial => "serial", :status => "status", } end |
Instance Method Details
#to_jsii ⇒ Object
52 53 54 55 56 57 58 59 60 |
# File 'iam/access_key_props.rb', line 52 def to_jsii result = {} result.merge!({ "user" => @user, "serial" => @serial, "status" => @status, }) result.compact end |