Class: AWSCDK::BedrockAgentCore::CfnPaymentCredentialProvider::CoinbaseCdpConfigurationInputProperty

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

Overview

Coinbase CDP configuration with API credentials.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(api_key_id:, api_key_secret: nil, api_key_secret_config: nil, api_key_secret_source: nil, wallet_secret: nil, wallet_secret_config: nil, wallet_secret_source: nil) ⇒ CoinbaseCdpConfigurationInputProperty

Returns a new instance of CoinbaseCdpConfigurationInputProperty.

Parameters:



580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
# File 'bedrock_agent_core/cfn_payment_credential_provider.rb', line 580

def initialize(api_key_id:, api_key_secret: nil, api_key_secret_config: nil, api_key_secret_source: nil, wallet_secret: nil, wallet_secret_config: 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 = api_key_secret
  Jsii::Type.check_type(@api_key_secret, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "apiKeySecret") unless @api_key_secret.nil?
  @api_key_secret_config = api_key_secret_config.is_a?(Hash) ? ::AWSCDK::BedrockAgentCore::CfnPaymentCredentialProvider::SecretReferenceProperty.new(**api_key_secret_config.transform_keys(&:to_sym)) : api_key_secret_config
  Jsii::Type.check_type(@api_key_secret_config, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iZWRyb2NrYWdlbnRjb3JlLkNmblBheW1lbnRDcmVkZW50aWFsUHJvdmlkZXIuU2VjcmV0UmVmZXJlbmNlUHJvcGVydHkifV19fQ==")), "apiKeySecretConfig") unless @api_key_secret_config.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 = wallet_secret
  Jsii::Type.check_type(@wallet_secret, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "walletSecret") unless @wallet_secret.nil?
  @wallet_secret_config = wallet_secret_config.is_a?(Hash) ? ::AWSCDK::BedrockAgentCore::CfnPaymentCredentialProvider::SecretReferenceProperty.new(**wallet_secret_config.transform_keys(&:to_sym)) : wallet_secret_config
  Jsii::Type.check_type(@wallet_secret_config, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iZWRyb2NrYWdlbnRjb3JlLkNmblBheW1lbnRDcmVkZW50aWFsUHJvdmlkZXIuU2VjcmV0UmVmZXJlbmNlUHJvcGVydHkifV19fQ==")), "walletSecretConfig") unless @wallet_secret_config.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_idString (readonly)

The Coinbase CDP API key ID.



601
602
603
# File 'bedrock_agent_core/cfn_payment_credential_provider.rb', line 601

def api_key_id
  @api_key_id
end

#api_key_secretString? (readonly)

The Coinbase CDP API key secret.



606
607
608
# File 'bedrock_agent_core/cfn_payment_credential_provider.rb', line 606

def api_key_secret
  @api_key_secret
end

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

A reference to a customer-provided secret stored in AWS Secrets Manager.



611
612
613
# File 'bedrock_agent_core/cfn_payment_credential_provider.rb', line 611

def api_key_secret_config
  @api_key_secret_config
end

#api_key_secret_sourceString? (readonly)

The source of the secret.

Use MANAGED for service-managed secrets or EXTERNAL for customer-provided secrets.



618
619
620
# File 'bedrock_agent_core/cfn_payment_credential_provider.rb', line 618

def api_key_secret_source
  @api_key_secret_source
end

#wallet_secretString? (readonly)

The Coinbase CDP wallet secret.



623
624
625
# File 'bedrock_agent_core/cfn_payment_credential_provider.rb', line 623

def wallet_secret
  @wallet_secret
end

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

A reference to a customer-provided secret stored in AWS Secrets Manager.



628
629
630
# File 'bedrock_agent_core/cfn_payment_credential_provider.rb', line 628

def wallet_secret_config
  @wallet_secret_config
end

#wallet_secret_sourceString? (readonly)

The source of the secret.

Use MANAGED for service-managed secrets or EXTERNAL for customer-provided secrets.



635
636
637
# File 'bedrock_agent_core/cfn_payment_credential_provider.rb', line 635

def wallet_secret_source
  @wallet_secret_source
end

Class Method Details

.jsii_propertiesObject



637
638
639
640
641
642
643
644
645
646
647
# File 'bedrock_agent_core/cfn_payment_credential_provider.rb', line 637

def self.jsii_properties
  {
    :api_key_id => "apiKeyId",
    :api_key_secret => "apiKeySecret",
    :api_key_secret_config => "apiKeySecretConfig",
    :api_key_secret_source => "apiKeySecretSource",
    :wallet_secret => "walletSecret",
    :wallet_secret_config => "walletSecretConfig",
    :wallet_secret_source => "walletSecretSource",
  }
end

Instance Method Details

#to_jsiiObject



649
650
651
652
653
654
655
656
657
658
659
660
661
# File 'bedrock_agent_core/cfn_payment_credential_provider.rb', line 649

def to_jsii
  result = {}
  result.merge!({
    "apiKeyId" => @api_key_id,
    "apiKeySecret" => @api_key_secret,
    "apiKeySecretConfig" => @api_key_secret_config,
    "apiKeySecretSource" => @api_key_secret_source,
    "walletSecret" => @wallet_secret,
    "walletSecretConfig" => @wallet_secret_config,
    "walletSecretSource" => @wallet_secret_source,
  })
  result.compact
end