Class: AWSCDK::SES::CfnTenantProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
ses/cfn_tenant_props.rb

Overview

Properties for defining a CfnTenant.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(tenant_name:, resource_associations: nil, tags: nil) ⇒ CfnTenantProps

Returns a new instance of CfnTenantProps.

Parameters:



12
13
14
15
16
17
18
19
# File 'ses/cfn_tenant_props.rb', line 12

def initialize(tenant_name:, resource_associations: nil, tags: nil)
  @tenant_name = tenant_name
  Jsii::Type.check_type(@tenant_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "tenantName")
  @resource_associations = resource_associations
  Jsii::Type.check_type(@resource_associations, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc2VzLkNmblRlbmFudC5SZXNvdXJjZUFzc29jaWF0aW9uUHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "resourceAssociations") unless @resource_associations.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

#resource_associationsAWSCDK::IResolvable, ... (readonly)

The list of resources to associate with the tenant.



32
33
34
# File 'ses/cfn_tenant_props.rb', line 32

def resource_associations
  @resource_associations
end

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

An array of objects that define the tags (keys and values) associated with the tenant.



37
38
39
# File 'ses/cfn_tenant_props.rb', line 37

def tags
  @tags
end

#tenant_nameString (readonly)

The name of a tenant.

The name can contain up to 64 alphanumeric characters, including letters, numbers, hyphens (-) and underscores (_) only.



27
28
29
# File 'ses/cfn_tenant_props.rb', line 27

def tenant_name
  @tenant_name
end

Class Method Details

.jsii_propertiesObject



39
40
41
42
43
44
45
# File 'ses/cfn_tenant_props.rb', line 39

def self.jsii_properties
  {
    :tenant_name => "tenantName",
    :resource_associations => "resourceAssociations",
    :tags => "tags",
  }
end

Instance Method Details

#to_jsiiObject



47
48
49
50
51
52
53
54
55
# File 'ses/cfn_tenant_props.rb', line 47

def to_jsii
  result = {}
  result.merge!({
    "tenantName" => @tenant_name,
    "resourceAssociations" => @resource_associations,
    "tags" => @tags,
  })
  result.compact
end