Class: AWSCDK::BedrockAgentCore::CfnPaymentCredentialProvider::CoinbaseCdpConfigurationOutputProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::BedrockAgentCore::CfnPaymentCredentialProvider::CoinbaseCdpConfigurationOutputProperty
- Defined in:
- bedrock_agent_core/cfn_payment_credential_provider.rb
Overview
Coinbase CDP configuration output with secret ARNs.
Instance Attribute Summary collapse
-
#api_key_id ⇒ String
readonly
The Coinbase CDP API key ID.
-
#api_key_secret_arn ⇒ AWSCDK::IResolvable, AWSCDK::BedrockAgentCore::CfnPaymentCredentialProvider::SecretInfoProperty
readonly
Contains information about a secret in AWS Secrets Manager.
-
#api_key_secret_json_key ⇒ String?
readonly
The JSON key within the secret that contains the API key secret value.
-
#api_key_secret_source ⇒ String?
readonly
The source of the secret.
-
#wallet_secret_arn ⇒ AWSCDK::IResolvable, ...
readonly
Contains information about a secret in AWS Secrets Manager.
-
#wallet_secret_json_key ⇒ String?
readonly
The JSON key within the secret that contains the wallet secret value.
-
#wallet_secret_source ⇒ String?
readonly
The source of the secret.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(api_key_id:, api_key_secret_arn:, api_key_secret_json_key: nil, api_key_secret_source: nil, wallet_secret_arn: nil, wallet_secret_json_key: nil, wallet_secret_source: nil) ⇒ CoinbaseCdpConfigurationOutputProperty
constructor
A new instance of CoinbaseCdpConfigurationOutputProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(api_key_id:, api_key_secret_arn:, api_key_secret_json_key: nil, api_key_secret_source: nil, wallet_secret_arn: nil, wallet_secret_json_key: nil, wallet_secret_source: nil) ⇒ CoinbaseCdpConfigurationOutputProperty
Returns a new instance of CoinbaseCdpConfigurationOutputProperty.
677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 |
# File 'bedrock_agent_core/cfn_payment_credential_provider.rb', line 677 def initialize(api_key_id:, api_key_secret_arn:, api_key_secret_json_key: nil, api_key_secret_source: nil, wallet_secret_arn: nil, wallet_secret_json_key: nil, wallet_secret_source: nil) @api_key_id = api_key_id Jsii::Type.check_type(@api_key_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "apiKeyId") @api_key_secret_arn = api_key_secret_arn.is_a?(Hash) ? ::AWSCDK::BedrockAgentCore::CfnPaymentCredentialProvider::SecretInfoProperty.new(**api_key_secret_arn.transform_keys(&:to_sym)) : api_key_secret_arn Jsii::Type.check_type(@api_key_secret_arn, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iZWRyb2NrYWdlbnRjb3JlLkNmblBheW1lbnRDcmVkZW50aWFsUHJvdmlkZXIuU2VjcmV0SW5mb1Byb3BlcnR5In1dfX0=")), "apiKeySecretArn") @api_key_secret_json_key = api_key_secret_json_key Jsii::Type.check_type(@api_key_secret_json_key, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "apiKeySecretJsonKey") unless @api_key_secret_json_key.nil? @api_key_secret_source = api_key_secret_source Jsii::Type.check_type(@api_key_secret_source, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "apiKeySecretSource") unless @api_key_secret_source.nil? @wallet_secret_arn = wallet_secret_arn.is_a?(Hash) ? ::AWSCDK::BedrockAgentCore::CfnPaymentCredentialProvider::SecretInfoProperty.new(**wallet_secret_arn.transform_keys(&:to_sym)) : wallet_secret_arn Jsii::Type.check_type(@wallet_secret_arn, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iZWRyb2NrYWdlbnRjb3JlLkNmblBheW1lbnRDcmVkZW50aWFsUHJvdmlkZXIuU2VjcmV0SW5mb1Byb3BlcnR5In1dfX0=")), "walletSecretArn") unless @wallet_secret_arn.nil? @wallet_secret_json_key = wallet_secret_json_key Jsii::Type.check_type(@wallet_secret_json_key, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "walletSecretJsonKey") unless @wallet_secret_json_key.nil? @wallet_secret_source = wallet_secret_source Jsii::Type.check_type(@wallet_secret_source, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "walletSecretSource") unless @wallet_secret_source.nil? end |
Instance Attribute Details
#api_key_id ⇒ String (readonly)
The Coinbase CDP API key ID.
698 699 700 |
# File 'bedrock_agent_core/cfn_payment_credential_provider.rb', line 698 def api_key_id @api_key_id end |
#api_key_secret_arn ⇒ AWSCDK::IResolvable, AWSCDK::BedrockAgentCore::CfnPaymentCredentialProvider::SecretInfoProperty (readonly)
Contains information about a secret in AWS Secrets Manager.
703 704 705 |
# File 'bedrock_agent_core/cfn_payment_credential_provider.rb', line 703 def api_key_secret_arn @api_key_secret_arn end |
#api_key_secret_json_key ⇒ String? (readonly)
The JSON key within the secret that contains the API key secret value.
708 709 710 |
# File 'bedrock_agent_core/cfn_payment_credential_provider.rb', line 708 def api_key_secret_json_key @api_key_secret_json_key end |
#api_key_secret_source ⇒ String? (readonly)
The source of the secret.
Use MANAGED for service-managed secrets or EXTERNAL for customer-provided secrets.
715 716 717 |
# File 'bedrock_agent_core/cfn_payment_credential_provider.rb', line 715 def api_key_secret_source @api_key_secret_source end |
#wallet_secret_arn ⇒ AWSCDK::IResolvable, ... (readonly)
Contains information about a secret in AWS Secrets Manager.
720 721 722 |
# File 'bedrock_agent_core/cfn_payment_credential_provider.rb', line 720 def wallet_secret_arn @wallet_secret_arn end |
#wallet_secret_json_key ⇒ String? (readonly)
The JSON key within the secret that contains the wallet secret value.
725 726 727 |
# File 'bedrock_agent_core/cfn_payment_credential_provider.rb', line 725 def wallet_secret_json_key @wallet_secret_json_key end |
#wallet_secret_source ⇒ String? (readonly)
The source of the secret.
Use MANAGED for service-managed secrets or EXTERNAL for customer-provided secrets.
732 733 734 |
# File 'bedrock_agent_core/cfn_payment_credential_provider.rb', line 732 def wallet_secret_source @wallet_secret_source end |
Class Method Details
.jsii_properties ⇒ Object
734 735 736 737 738 739 740 741 742 743 744 |
# File 'bedrock_agent_core/cfn_payment_credential_provider.rb', line 734 def self.jsii_properties { :api_key_id => "apiKeyId", :api_key_secret_arn => "apiKeySecretArn", :api_key_secret_json_key => "apiKeySecretJsonKey", :api_key_secret_source => "apiKeySecretSource", :wallet_secret_arn => "walletSecretArn", :wallet_secret_json_key => "walletSecretJsonKey", :wallet_secret_source => "walletSecretSource", } end |
Instance Method Details
#to_jsii ⇒ Object
746 747 748 749 750 751 752 753 754 755 756 757 758 |
# File 'bedrock_agent_core/cfn_payment_credential_provider.rb', line 746 def to_jsii result = {} result.merge!({ "apiKeyId" => @api_key_id, "apiKeySecretArn" => @api_key_secret_arn, "apiKeySecretJsonKey" => @api_key_secret_json_key, "apiKeySecretSource" => @api_key_secret_source, "walletSecretArn" => @wallet_secret_arn, "walletSecretJsonKey" => @wallet_secret_json_key, "walletSecretSource" => @wallet_secret_source, }) result.compact end |