Class: AWSCDK::BedrockAgentCore::CfnGatewayTarget::AuthorizationDataProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
bedrock_agent_core/cfn_gateway_target.rb

Overview

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(oauth2:) ⇒ AuthorizationDataProperty

Returns a new instance of AuthorizationDataProperty.



919
920
921
922
# File 'bedrock_agent_core/cfn_gateway_target.rb', line 919

def initialize(oauth2:)
  @oauth2 = oauth2.is_a?(Hash) ? ::AWSCDK::BedrockAgentCore::CfnGatewayTarget::OAuth2AuthorizationDataProperty.new(**oauth2.transform_keys(&:to_sym)) : oauth2
  Jsii::Type.check_type(@oauth2, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iZWRyb2NrYWdlbnRjb3JlLkNmbkdhdGV3YXlUYXJnZXQuT0F1dGgyQXV0aG9yaXphdGlvbkRhdGFQcm9wZXJ0eSJ9XX19")), "oauth2")
end

Class Method Details

.jsii_propertiesObject



928
929
930
931
932
# File 'bedrock_agent_core/cfn_gateway_target.rb', line 928

def self.jsii_properties
  {
    :oauth2 => "oauth2",
  }
end

Instance Method Details

#to_jsiiObject



934
935
936
937
938
939
940
# File 'bedrock_agent_core/cfn_gateway_target.rb', line 934

def to_jsii
  result = {}
  result.merge!({
    "oauth2" => @oauth2,
  })
  result.compact
end