Class: AWSCDK::LicenseManager::CfnGrantProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
license_manager/cfn_grant_props.rb

Overview

Properties for defining a CfnGrant.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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.

Parameters:

  • allowed_operations (Array<String>, nil) (defaults to: nil)

    Allowed operations for the grant.

  • grant_name (String, nil) (defaults to: nil)

    Grant name.

  • home_region (String, nil) (defaults to: nil)

    Home Region of the grant.

  • license_arn (String, nil) (defaults to: nil)

    License ARN.

  • principals (Array<String>, nil) (defaults to: nil)

    The grant principals. You can specify one of the following as an Amazon Resource Name (ARN):.

  • status (String, nil) (defaults to: nil)

    Granted license status.

  • tags (Array<AWSCDK::CfnTag>, nil) (defaults to: nil)

    A list of tags to attach.



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 = tags.is_a?(Array) ? tags.map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : tags
  Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil?
end

Instance Attribute Details

#allowed_operationsArray<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_nameString? (readonly)

Grant name.



42
43
44
# File 'license_manager/cfn_grant_props.rb', line 42

def grant_name
  @grant_name
end

#home_regionString? (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_arnString? (readonly)

License ARN.



52
53
54
# File 'license_manager/cfn_grant_props.rb', line 52

def license_arn
  @license_arn
end

#principalsArray<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

#statusString? (readonly)

Granted license status.



66
67
68
# File 'license_manager/cfn_grant_props.rb', line 66

def status
  @status
end

#tagsArray<AWSCDK::CfnTag>? (readonly)

A list of tags to attach.



71
72
73
# File 'license_manager/cfn_grant_props.rb', line 71

def tags
  @tags
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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