Class: AWSCDK::IoTWireless::CfnPartnerAccountProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
io_t_wireless/cfn_partner_account_props.rb

Overview

Properties for defining a CfnPartnerAccount.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(account_linked: nil, partner_account_id: nil, partner_type: nil, sidewalk: nil, sidewalk_response: nil, sidewalk_update: nil, tags: nil) ⇒ CfnPartnerAccountProps

Returns a new instance of CfnPartnerAccountProps.

Parameters:



16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# File 'io_t_wireless/cfn_partner_account_props.rb', line 16

def initialize(account_linked: nil, partner_account_id: nil, partner_type: nil, sidewalk: nil, sidewalk_response: nil, sidewalk_update: nil, tags: nil)
  @account_linked = 
  Jsii::Type.check_type(@account_linked, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "accountLinked") unless @account_linked.nil?
  @partner_account_id = 
  Jsii::Type.check_type(@partner_account_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "partnerAccountId") unless @partner_account_id.nil?
  @partner_type = partner_type
  Jsii::Type.check_type(@partner_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "partnerType") unless @partner_type.nil?
  @sidewalk = sidewalk.is_a?(Hash) ? ::AWSCDK::IoTWireless::CfnPartnerAccount::SidewalkAccountInfoProperty.new(**sidewalk.transform_keys(&:to_sym)) : sidewalk
  Jsii::Type.check_type(@sidewalk, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19pb3R3aXJlbGVzcy5DZm5QYXJ0bmVyQWNjb3VudC5TaWRld2Fsa0FjY291bnRJbmZvUHJvcGVydHkifV19fQ==")), "sidewalk") unless @sidewalk.nil?
  @sidewalk_response = sidewalk_response.is_a?(Hash) ? ::AWSCDK::IoTWireless::CfnPartnerAccount::SidewalkAccountInfoWithFingerprintProperty.new(**sidewalk_response.transform_keys(&:to_sym)) : sidewalk_response
  Jsii::Type.check_type(@sidewalk_response, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19pb3R3aXJlbGVzcy5DZm5QYXJ0bmVyQWNjb3VudC5TaWRld2Fsa0FjY291bnRJbmZvV2l0aEZpbmdlcnByaW50UHJvcGVydHkifV19fQ==")), "sidewalkResponse") unless @sidewalk_response.nil?
  @sidewalk_update = sidewalk_update.is_a?(Hash) ? ::AWSCDK::IoTWireless::CfnPartnerAccount::SidewalkUpdateAccountProperty.new(**sidewalk_update.transform_keys(&:to_sym)) : sidewalk_update
  Jsii::Type.check_type(@sidewalk_update, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19pb3R3aXJlbGVzcy5DZm5QYXJ0bmVyQWNjb3VudC5TaWRld2Fsa1VwZGF0ZUFjY291bnRQcm9wZXJ0eSJ9XX19")), "sidewalkUpdate") unless @sidewalk_update.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

#account_linkedBoolean, ... (readonly)

Whether the partner account is linked to the AWS account.



37
38
39
# File 'io_t_wireless/cfn_partner_account_props.rb', line 37

def 
  @account_linked
end

#partner_account_idString? (readonly)

The ID of the partner account to update.



42
43
44
# File 'io_t_wireless/cfn_partner_account_props.rb', line 42

def 
  @partner_account_id
end

#partner_typeString? (readonly)

The partner type.



47
48
49
# File 'io_t_wireless/cfn_partner_account_props.rb', line 47

def partner_type
  @partner_type
end

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

The Sidewalk account credentials.



52
53
54
# File 'io_t_wireless/cfn_partner_account_props.rb', line 52

def sidewalk
  @sidewalk
end

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

Information about a Sidewalk account.



57
58
59
# File 'io_t_wireless/cfn_partner_account_props.rb', line 57

def sidewalk_response
  @sidewalk_response
end

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

Sidewalk update.



62
63
64
# File 'io_t_wireless/cfn_partner_account_props.rb', line 62

def sidewalk_update
  @sidewalk_update
end

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

The tags are an array of key-value pairs to attach to the specified resource.

Tags can have a minimum of 0 and a maximum of 50 items.



69
70
71
# File 'io_t_wireless/cfn_partner_account_props.rb', line 69

def tags
  @tags
end

Class Method Details

.jsii_propertiesObject



71
72
73
74
75
76
77
78
79
80
81
# File 'io_t_wireless/cfn_partner_account_props.rb', line 71

def self.jsii_properties
  {
    :account_linked => "accountLinked",
    :partner_account_id => "partnerAccountId",
    :partner_type => "partnerType",
    :sidewalk => "sidewalk",
    :sidewalk_response => "sidewalkResponse",
    :sidewalk_update => "sidewalkUpdate",
    :tags => "tags",
  }
end

Instance Method Details

#to_jsiiObject



83
84
85
86
87
88
89
90
91
92
93
94
95
# File 'io_t_wireless/cfn_partner_account_props.rb', line 83

def to_jsii
  result = {}
  result.merge!({
    "accountLinked" => @account_linked,
    "partnerAccountId" => @partner_account_id,
    "partnerType" => @partner_type,
    "sidewalk" => @sidewalk,
    "sidewalkResponse" => @sidewalk_response,
    "sidewalkUpdate" => @sidewalk_update,
    "tags" => @tags,
  })
  result.compact
end