Class: AWSCDK::IAM::GrantOnKeyResult
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::IAM::GrantOnKeyResult
- Defined in:
- iam/grant_on_key_result.rb
Overview
Result of a call to grantOnKey().
Instance Attribute Summary collapse
-
#grant ⇒ AWSCDK::IAM::Grant?
readonly
The Grant object, if a grant was created.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(grant: nil) ⇒ GrantOnKeyResult
constructor
A new instance of GrantOnKeyResult.
- #to_jsii ⇒ Object
Constructor Details
#initialize(grant: nil) ⇒ GrantOnKeyResult
Returns a new instance of GrantOnKeyResult.
8 9 10 11 |
# File 'iam/grant_on_key_result.rb', line 8 def initialize(grant: nil) @grant = grant Jsii::Type.check_type(@grant, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfaWFtLkdyYW50In0=")), "grant") unless @grant.nil? end |
Instance Attribute Details
#grant ⇒ AWSCDK::IAM::Grant? (readonly)
Note:
Default: No grant
The Grant object, if a grant was created.
17 18 19 |
# File 'iam/grant_on_key_result.rb', line 17 def grant @grant end |
Class Method Details
.jsii_properties ⇒ Object
19 20 21 22 23 |
# File 'iam/grant_on_key_result.rb', line 19 def self.jsii_properties { :grant => "grant", } end |
Instance Method Details
#to_jsii ⇒ Object
25 26 27 28 29 30 31 |
# File 'iam/grant_on_key_result.rb', line 25 def to_jsii result = {} result.merge!({ "grant" => @grant, }) result.compact end |