Class: AWSCDK::BedrockAgentCore::CfnHarness::HarnessGatewayOutboundAuthProperty

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

Overview

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(aws_iam: nil, none: nil, oauth: nil) ⇒ HarnessGatewayOutboundAuthProperty

Returns a new instance of HarnessGatewayOutboundAuthProperty.

Parameters:



1526
1527
1528
1529
1530
1531
1532
1533
# File 'bedrock_agent_core/cfn_harness.rb', line 1526

def initialize(aws_iam: nil, none: nil, oauth: nil)
  @aws_iam = aws_iam
  Jsii::Type.check_type(@aws_iam, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJhbnkifQ==")), "awsIam") unless @aws_iam.nil?
  @none = none
  Jsii::Type.check_type(@none, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJhbnkifQ==")), "none") unless @none.nil?
  @oauth = oauth.is_a?(Hash) ? ::AWSCDK::BedrockAgentCore::CfnHarness::OAuthCredentialProviderProperty.new(**oauth.transform_keys(&:to_sym)) : oauth
  Jsii::Type.check_type(@oauth, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iZWRyb2NrYWdlbnRjb3JlLkNmbkhhcm5lc3MuT0F1dGhDcmVkZW50aWFsUHJvdmlkZXJQcm9wZXJ0eSJ9XX19")), "oauth") unless @oauth.nil?
end

Instance Attribute Details

#aws_iamObject? (readonly)



1537
1538
1539
# File 'bedrock_agent_core/cfn_harness.rb', line 1537

def aws_iam
  @aws_iam
end

#noneObject? (readonly)



1540
1541
1542
# File 'bedrock_agent_core/cfn_harness.rb', line 1540

def none
  @none
end

Class Method Details

.jsii_propertiesObject



1545
1546
1547
1548
1549
1550
1551
# File 'bedrock_agent_core/cfn_harness.rb', line 1545

def self.jsii_properties
  {
    :aws_iam => "awsIam",
    :none => "none",
    :oauth => "oauth",
  }
end

Instance Method Details

#to_jsiiObject



1553
1554
1555
1556
1557
1558
1559
1560
1561
# File 'bedrock_agent_core/cfn_harness.rb', line 1553

def to_jsii
  result = {}
  result.merge!({
    "awsIam" => @aws_iam,
    "none" => @none,
    "oauth" => @oauth,
  })
  result.compact
end