Class: AWSCDK::BedrockAgentCore::CfnHarness::OAuthCredentialProviderProperty

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(provider_arn:, scopes:, custom_parameters: nil, default_return_url: nil, grant_type: nil) ⇒ OAuthCredentialProviderProperty

Returns a new instance of OAuthCredentialProviderProperty.

Parameters:

  • provider_arn (String)
  • scopes (Array<String>)
  • custom_parameters (AWSCDK::IResolvable, Hash{String => String}, nil) (defaults to: nil)
  • default_return_url (String, nil) (defaults to: nil)
  • grant_type (String, nil) (defaults to: nil)


2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
# File 'bedrock_agent_core/cfn_harness.rb', line 2688

def initialize(provider_arn:, scopes:, custom_parameters: nil, default_return_url: nil, grant_type: nil)
  @provider_arn = provider_arn
  Jsii::Type.check_type(@provider_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "providerArn")
  @scopes = scopes
  Jsii::Type.check_type(@scopes, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "scopes")
  @custom_parameters = custom_parameters
  Jsii::Type.check_type(@custom_parameters, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsicHJpbWl0aXZlIjoic3RyaW5nIn0sImtpbmQiOiJtYXAifX1dfX0=")), "customParameters") unless @custom_parameters.nil?
  @default_return_url = default_return_url
  Jsii::Type.check_type(@default_return_url, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "defaultReturnUrl") unless @default_return_url.nil?
  @grant_type = grant_type
  Jsii::Type.check_type(@grant_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "grantType") unless @grant_type.nil?
end

Instance Attribute Details

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



2709
2710
2711
# File 'bedrock_agent_core/cfn_harness.rb', line 2709

def custom_parameters
  @custom_parameters
end

#default_return_urlString? (readonly)



2712
2713
2714
# File 'bedrock_agent_core/cfn_harness.rb', line 2712

def default_return_url
  @default_return_url
end

#grant_typeString? (readonly)



2715
2716
2717
# File 'bedrock_agent_core/cfn_harness.rb', line 2715

def grant_type
  @grant_type
end

#provider_arnString (readonly)



2703
2704
2705
# File 'bedrock_agent_core/cfn_harness.rb', line 2703

def provider_arn
  @provider_arn
end

#scopesArray<String> (readonly)



2706
2707
2708
# File 'bedrock_agent_core/cfn_harness.rb', line 2706

def scopes
  @scopes
end

Class Method Details

.jsii_propertiesObject



2717
2718
2719
2720
2721
2722
2723
2724
2725
# File 'bedrock_agent_core/cfn_harness.rb', line 2717

def self.jsii_properties
  {
    :provider_arn => "providerArn",
    :scopes => "scopes",
    :custom_parameters => "customParameters",
    :default_return_url => "defaultReturnUrl",
    :grant_type => "grantType",
  }
end

Instance Method Details

#to_jsiiObject



2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
# File 'bedrock_agent_core/cfn_harness.rb', line 2727

def to_jsii
  result = {}
  result.merge!({
    "providerArn" => @provider_arn,
    "scopes" => @scopes,
    "customParameters" => @custom_parameters,
    "defaultReturnUrl" => @default_return_url,
    "grantType" => @grant_type,
  })
  result.compact
end