Class: AWSCDK::LicenseManager::CfnGrantProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::LicenseManager::CfnGrantProps
- Defined in:
- license_manager/cfn_grant_props.rb
Overview
Properties for defining a CfnGrant.
Instance Attribute Summary collapse
-
#allowed_operations ⇒ Array<String>?
readonly
Allowed operations for the grant.
-
#grant_name ⇒ String?
readonly
Grant name.
-
#home_region ⇒ String?
readonly
Home Region of the grant.
-
#license_arn ⇒ String?
readonly
License ARN.
-
#principals ⇒ Array<String>?
readonly
The grant principals.
-
#status ⇒ String?
readonly
Granted license status.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
A list of tags to attach.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(allowed_operations: nil, grant_name: nil, home_region: nil, license_arn: nil, principals: nil, status: nil, tags: nil) ⇒ CfnGrantProps
constructor
A new instance of CfnGrantProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(allowed_operations: nil, grant_name: nil, home_region: nil, license_arn: nil, principals: nil, status: nil, tags: nil) ⇒ CfnGrantProps
Returns a new instance of CfnGrantProps.
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'license_manager/cfn_grant_props.rb', line 16 def initialize(allowed_operations: nil, grant_name: nil, home_region: nil, license_arn: nil, principals: nil, status: nil, tags: nil) @allowed_operations = allowed_operations Jsii::Type.check_type(@allowed_operations, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "allowedOperations") unless @allowed_operations.nil? @grant_name = grant_name Jsii::Type.check_type(@grant_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "grantName") unless @grant_name.nil? @home_region = home_region Jsii::Type.check_type(@home_region, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "homeRegion") unless @home_region.nil? @license_arn = license_arn Jsii::Type.check_type(@license_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "licenseArn") unless @license_arn.nil? @principals = principals Jsii::Type.check_type(@principals, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "principals") unless @principals.nil? @status = status Jsii::Type.check_type(@status, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "status") unless @status.nil? @tags = .is_a?(Array) ? .map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil? end |
Instance Attribute Details
#allowed_operations ⇒ Array<String>? (readonly)
Allowed operations for the grant.
37 38 39 |
# File 'license_manager/cfn_grant_props.rb', line 37 def allowed_operations @allowed_operations end |
#grant_name ⇒ String? (readonly)
Grant name.
42 43 44 |
# File 'license_manager/cfn_grant_props.rb', line 42 def grant_name @grant_name end |
#home_region ⇒ String? (readonly)
Home Region of the grant.
47 48 49 |
# File 'license_manager/cfn_grant_props.rb', line 47 def home_region @home_region end |
#license_arn ⇒ String? (readonly)
License ARN.
52 53 54 |
# File 'license_manager/cfn_grant_props.rb', line 52 def license_arn @license_arn end |
#principals ⇒ Array<String>? (readonly)
The grant principals. You can specify one of the following as an Amazon Resource Name (ARN):.
- An AWS account, which includes only the account specified.
- An organizational unit (OU), which includes all accounts in the OU.
- An organization, which will include all accounts across your organization.
61 62 63 |
# File 'license_manager/cfn_grant_props.rb', line 61 def principals @principals end |
#status ⇒ String? (readonly)
Granted license status.
66 67 68 |
# File 'license_manager/cfn_grant_props.rb', line 66 def status @status end |
#tags ⇒ Array<AWSCDK::CfnTag>? (readonly)
A list of tags to attach.
71 72 73 |
# File 'license_manager/cfn_grant_props.rb', line 71 def @tags end |
Class Method Details
.jsii_properties ⇒ Object
73 74 75 76 77 78 79 80 81 82 83 |
# File 'license_manager/cfn_grant_props.rb', line 73 def self.jsii_properties { :allowed_operations => "allowedOperations", :grant_name => "grantName", :home_region => "homeRegion", :license_arn => "licenseArn", :principals => "principals", :status => "status", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
85 86 87 88 89 90 91 92 93 94 95 96 97 |
# File 'license_manager/cfn_grant_props.rb', line 85 def to_jsii result = {} result.merge!({ "allowedOperations" => @allowed_operations, "grantName" => @grant_name, "homeRegion" => @home_region, "licenseArn" => @license_arn, "principals" => @principals, "status" => @status, "tags" => @tags, }) result.compact end |