Class: AWSCDK::CleanRooms::CfnIdNamespaceAssociationProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
clean_rooms/cfn_id_namespace_association_props.rb

Overview

Properties for defining a CfnIdNamespaceAssociation.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(input_reference_config:, membership_identifier:, name:, description: nil, id_mapping_config: nil, tags: nil) ⇒ CfnIdNamespaceAssociationProps

Returns a new instance of CfnIdNamespaceAssociationProps.

Parameters:



15
16
17
18
19
20
21
22
23
24
25
26
27
28
# File 'clean_rooms/cfn_id_namespace_association_props.rb', line 15

def initialize(input_reference_config:, membership_identifier:, name:, description: nil, id_mapping_config: nil, tags: nil)
  @input_reference_config = input_reference_config.is_a?(Hash) ? ::AWSCDK::CleanRooms::CfnIdNamespaceAssociation::IdNamespaceAssociationInputReferenceConfigProperty.new(**input_reference_config.transform_keys(&:to_sym)) : input_reference_config
  Jsii::Type.check_type(@input_reference_config, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19jbGVhbnJvb21zLkNmbklkTmFtZXNwYWNlQXNzb2NpYXRpb24uSWROYW1lc3BhY2VBc3NvY2lhdGlvbklucHV0UmVmZXJlbmNlQ29uZmlnUHJvcGVydHkifV19fQ==")), "inputReferenceConfig")
  @membership_identifier = membership_identifier
  Jsii::Type.check_type(@membership_identifier, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "membershipIdentifier")
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name")
  @description = description
  Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil?
  @id_mapping_config = id_mapping_config.is_a?(Hash) ? ::AWSCDK::CleanRooms::CfnIdNamespaceAssociation::IdMappingConfigProperty.new(**id_mapping_config.transform_keys(&:to_sym)) : id_mapping_config
  Jsii::Type.check_type(@id_mapping_config, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19jbGVhbnJvb21zLkNmbklkTmFtZXNwYWNlQXNzb2NpYXRpb24uSWRNYXBwaW5nQ29uZmlnUHJvcGVydHkifV19fQ==")), "idMappingConfig") unless @id_mapping_config.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

#descriptionString? (readonly)

The description of the ID namespace association.



49
50
51
# File 'clean_rooms/cfn_id_namespace_association_props.rb', line 49

def description
  @description
end

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

The configuration settings for the ID mapping table.



54
55
56
# File 'clean_rooms/cfn_id_namespace_association_props.rb', line 54

def id_mapping_config
  @id_mapping_config
end

#membership_identifierString (readonly)

The unique identifier of the membership that contains the ID namespace association.



39
40
41
# File 'clean_rooms/cfn_id_namespace_association_props.rb', line 39

def membership_identifier
  @membership_identifier
end

#nameString (readonly)

The name of this ID namespace association.



44
45
46
# File 'clean_rooms/cfn_id_namespace_association_props.rb', line 44

def name
  @name
end

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

An optional label that you can assign to a resource when you create it.

Each tag consists of a key and an optional value, both of which you define. When you use tagging, you can also use tag-based access control in IAM policies to control access to this resource.



61
62
63
# File 'clean_rooms/cfn_id_namespace_association_props.rb', line 61

def tags
  @tags
end

Class Method Details

.jsii_propertiesObject



63
64
65
66
67
68
69
70
71
72
# File 'clean_rooms/cfn_id_namespace_association_props.rb', line 63

def self.jsii_properties
  {
    :input_reference_config => "inputReferenceConfig",
    :membership_identifier => "membershipIdentifier",
    :name => "name",
    :description => "description",
    :id_mapping_config => "idMappingConfig",
    :tags => "tags",
  }
end

Instance Method Details

#to_jsiiObject



74
75
76
77
78
79
80
81
82
83
84
85
# File 'clean_rooms/cfn_id_namespace_association_props.rb', line 74

def to_jsii
  result = {}
  result.merge!({
    "inputReferenceConfig" => @input_reference_config,
    "membershipIdentifier" => @membership_identifier,
    "name" => @name,
    "description" => @description,
    "idMappingConfig" => @id_mapping_config,
    "tags" => @tags,
  })
  result.compact
end