Class: AWSCDK::BedrockAgentCore::OAuth2CredentialProviderProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::BedrockAgentCore::OAuth2CredentialProviderProps
- Defined in:
- bedrock_agent_core/o_auth2_credential_provider_props.rb
Overview
Low-level properties when you need full control (prefer OAuth2CredentialProvider.usingSlack and other factories).
Instance Attribute Summary collapse
-
#credential_provider_vendor ⇒ String
readonly
OAuth2 vendor string for CloudFormation
CredentialProviderVendor. -
#o_auth2_credential_provider_name ⇒ String?
readonly
Name of the credential provider.
-
#oauth2_provider_config_input ⇒ AWSCDK::BedrockAgentCore::CfnOAuth2CredentialProvider::Oauth2ProviderConfigInputProperty
readonly
OAuth2 provider configuration passed through to
Oauth2ProviderConfigInput. -
#tags ⇒ Hash{String => String}?
readonly
Tags for this credential provider.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(credential_provider_vendor:, oauth2_provider_config_input:, o_auth2_credential_provider_name: nil, tags: nil) ⇒ OAuth2CredentialProviderProps
constructor
A new instance of OAuth2CredentialProviderProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(credential_provider_vendor:, oauth2_provider_config_input:, o_auth2_credential_provider_name: nil, tags: nil) ⇒ OAuth2CredentialProviderProps
Returns a new instance of OAuth2CredentialProviderProps.
11 12 13 14 15 16 17 18 19 20 |
# File 'bedrock_agent_core/o_auth2_credential_provider_props.rb', line 11 def initialize(credential_provider_vendor:, oauth2_provider_config_input:, o_auth2_credential_provider_name: nil, tags: nil) @credential_provider_vendor = credential_provider_vendor Jsii::Type.check_type(@credential_provider_vendor, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "credentialProviderVendor") @oauth2_provider_config_input = oauth2_provider_config_input.is_a?(Hash) ? ::AWSCDK::BedrockAgentCore::CfnOAuth2CredentialProvider::Oauth2ProviderConfigInputProperty.new(**oauth2_provider_config_input.transform_keys(&:to_sym)) : oauth2_provider_config_input Jsii::Type.check_type(@oauth2_provider_config_input, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYmVkcm9ja2FnZW50Y29yZS5DZm5PQXV0aDJDcmVkZW50aWFsUHJvdmlkZXIuT2F1dGgyUHJvdmlkZXJDb25maWdJbnB1dFByb3BlcnR5In0=")), "oauth2ProviderConfigInput") @o_auth2_credential_provider_name = o_auth2_credential_provider_name Jsii::Type.check_type(@o_auth2_credential_provider_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "oAuth2CredentialProviderName") unless @o_auth2_credential_provider_name.nil? @tags = Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoibWFwIn19")), "tags") unless @tags.nil? end |
Instance Attribute Details
#credential_provider_vendor ⇒ String (readonly)
OAuth2 vendor string for CloudFormation CredentialProviderVendor.
25 26 27 |
# File 'bedrock_agent_core/o_auth2_credential_provider_props.rb', line 25 def credential_provider_vendor @credential_provider_vendor end |
#o_auth2_credential_provider_name ⇒ String? (readonly)
Note:
Default: a name generated by CDK
Name of the credential provider.
34 35 36 |
# File 'bedrock_agent_core/o_auth2_credential_provider_props.rb', line 34 def o_auth2_credential_provider_name @o_auth2_credential_provider_name end |
#oauth2_provider_config_input ⇒ AWSCDK::BedrockAgentCore::CfnOAuth2CredentialProvider::Oauth2ProviderConfigInputProperty (readonly)
OAuth2 provider configuration passed through to Oauth2ProviderConfigInput.
29 30 31 |
# File 'bedrock_agent_core/o_auth2_credential_provider_props.rb', line 29 def oauth2_provider_config_input @oauth2_provider_config_input end |
#tags ⇒ Hash{String => String}? (readonly)
Note:
Default: - no tags
Tags for this credential provider.
39 40 41 |
# File 'bedrock_agent_core/o_auth2_credential_provider_props.rb', line 39 def @tags end |
Class Method Details
.jsii_properties ⇒ Object
41 42 43 44 45 46 47 48 |
# File 'bedrock_agent_core/o_auth2_credential_provider_props.rb', line 41 def self.jsii_properties { :credential_provider_vendor => "credentialProviderVendor", :oauth2_provider_config_input => "oauth2ProviderConfigInput", :o_auth2_credential_provider_name => "oAuth2CredentialProviderName", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
50 51 52 53 54 55 56 57 58 59 |
# File 'bedrock_agent_core/o_auth2_credential_provider_props.rb', line 50 def to_jsii result = {} result.merge!({ "credentialProviderVendor" => @credential_provider_vendor, "oauth2ProviderConfigInput" => @oauth2_provider_config_input, "oAuth2CredentialProviderName" => @o_auth2_credential_provider_name, "tags" => @tags, }) result.compact end |