Class: AWSCDK::SecurityLake::CfnSubscriber::SubscriberIdentityProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::SecurityLake::CfnSubscriber::SubscriberIdentityProperty
- Defined in:
- security_lake/cfn_subscriber.rb
Overview
Specify the AWS account ID and external ID that the subscriber will use to access source data.
Instance Attribute Summary collapse
-
#external_id ⇒ String
readonly
The external ID is a unique identifier that the subscriber provides to you.
-
#principal ⇒ String
readonly
Principals can include accounts, users, roles, federated users, or AWS services.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(external_id:, principal:) ⇒ SubscriberIdentityProperty
constructor
A new instance of SubscriberIdentityProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(external_id:, principal:) ⇒ SubscriberIdentityProperty
Returns a new instance of SubscriberIdentityProperty.
770 771 772 773 774 775 |
# File 'security_lake/cfn_subscriber.rb', line 770 def initialize(external_id:, principal:) @external_id = external_id Jsii::Type.check_type(@external_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "externalId") @principal = principal Jsii::Type.check_type(@principal, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "principal") end |
Instance Attribute Details
#external_id ⇒ String (readonly)
The external ID is a unique identifier that the subscriber provides to you.
781 782 783 |
# File 'security_lake/cfn_subscriber.rb', line 781 def external_id @external_id end |
#principal ⇒ String (readonly)
Principals can include accounts, users, roles, federated users, or AWS services.
786 787 788 |
# File 'security_lake/cfn_subscriber.rb', line 786 def principal @principal end |
Class Method Details
.jsii_properties ⇒ Object
788 789 790 791 792 793 |
# File 'security_lake/cfn_subscriber.rb', line 788 def self.jsii_properties { :external_id => "externalId", :principal => "principal", } end |
Instance Method Details
#to_jsii ⇒ Object
795 796 797 798 799 800 801 802 |
# File 'security_lake/cfn_subscriber.rb', line 795 def to_jsii result = {} result.merge!({ "externalId" => @external_id, "principal" => @principal, }) result.compact end |