Class: AWSCDK::BedrockAgentCore::CfnPaymentCredentialProvider::StripePrivyConfigurationOutputProperty

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

Overview

Stripe Privy configuration output with secret ARNs.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(app_id:, app_secret_arn:, authorization_id:, authorization_private_key_arn:, app_secret_json_key: nil, app_secret_source: nil, authorization_private_key_json_key: nil, authorization_private_key_source: nil) ⇒ StripePrivyConfigurationOutputProperty

Returns a new instance of StripePrivyConfigurationOutputProperty.

Parameters:

  • app_id (String)

    The app ID provided by Privy.

  • app_secret_arn (AWSCDK::IResolvable, AWSCDK::BedrockAgentCore::CfnPaymentCredentialProvider::SecretInfoProperty)

    Contains information about a secret in AWS Secrets Manager.

  • authorization_id (String)

    The authorization ID for the Stripe Privy integration.

  • authorization_private_key_arn (AWSCDK::IResolvable, AWSCDK::BedrockAgentCore::CfnPaymentCredentialProvider::SecretInfoProperty)

    Contains information about a secret in AWS Secrets Manager.

  • app_secret_json_key (String, nil) (defaults to: nil)

    The JSON key within the secret that contains the app secret value.

  • app_secret_source (String, nil) (defaults to: nil)

    The source of the secret.

  • authorization_private_key_json_key (String, nil) (defaults to: nil)

    The JSON key within the secret that contains the authorization private key value.

  • authorization_private_key_source (String, nil) (defaults to: nil)

    The source of the secret.



1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
# File 'bedrock_agent_core/cfn_payment_credential_provider.rb', line 1044

def initialize(app_id:, app_secret_arn:, authorization_id:, authorization_private_key_arn:, app_secret_json_key: nil, app_secret_source: nil, authorization_private_key_json_key: nil, authorization_private_key_source: nil)
  @app_id = app_id
  Jsii::Type.check_type(@app_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "appId")
  @app_secret_arn = app_secret_arn.is_a?(Hash) ? ::AWSCDK::BedrockAgentCore::CfnPaymentCredentialProvider::SecretInfoProperty.new(**app_secret_arn.transform_keys(&:to_sym)) : app_secret_arn
  Jsii::Type.check_type(@app_secret_arn, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iZWRyb2NrYWdlbnRjb3JlLkNmblBheW1lbnRDcmVkZW50aWFsUHJvdmlkZXIuU2VjcmV0SW5mb1Byb3BlcnR5In1dfX0=")), "appSecretArn")
  @authorization_id = authorization_id
  Jsii::Type.check_type(@authorization_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "authorizationId")
  @authorization_private_key_arn = authorization_private_key_arn.is_a?(Hash) ? ::AWSCDK::BedrockAgentCore::CfnPaymentCredentialProvider::SecretInfoProperty.new(**authorization_private_key_arn.transform_keys(&:to_sym)) : authorization_private_key_arn
  Jsii::Type.check_type(@authorization_private_key_arn, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iZWRyb2NrYWdlbnRjb3JlLkNmblBheW1lbnRDcmVkZW50aWFsUHJvdmlkZXIuU2VjcmV0SW5mb1Byb3BlcnR5In1dfX0=")), "authorizationPrivateKeyArn")
  @app_secret_json_key = app_secret_json_key
  Jsii::Type.check_type(@app_secret_json_key, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "appSecretJsonKey") unless @app_secret_json_key.nil?
  @app_secret_source = app_secret_source
  Jsii::Type.check_type(@app_secret_source, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "appSecretSource") unless @app_secret_source.nil?
  @authorization_private_key_json_key = authorization_private_key_json_key
  Jsii::Type.check_type(@authorization_private_key_json_key, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "authorizationPrivateKeyJsonKey") unless @authorization_private_key_json_key.nil?
  @authorization_private_key_source = authorization_private_key_source
  Jsii::Type.check_type(@authorization_private_key_source, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "authorizationPrivateKeySource") unless @authorization_private_key_source.nil?
end

Instance Attribute Details

#app_idString (readonly)

The app ID provided by Privy.



1067
1068
1069
# File 'bedrock_agent_core/cfn_payment_credential_provider.rb', line 1067

def app_id
  @app_id
end

#app_secret_json_keyString? (readonly)

The JSON key within the secret that contains the app secret value.



1087
1088
1089
# File 'bedrock_agent_core/cfn_payment_credential_provider.rb', line 1087

def app_secret_json_key
  @app_secret_json_key
end

#app_secret_sourceString? (readonly)

The source of the secret.

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



1094
1095
1096
# File 'bedrock_agent_core/cfn_payment_credential_provider.rb', line 1094

def app_secret_source
  @app_secret_source
end

#authorization_idString (readonly)

The authorization ID for the Stripe Privy integration.



1077
1078
1079
# File 'bedrock_agent_core/cfn_payment_credential_provider.rb', line 1077

def authorization_id
  @authorization_id
end

#authorization_private_key_json_keyString? (readonly)

The JSON key within the secret that contains the authorization private key value.



1099
1100
1101
# File 'bedrock_agent_core/cfn_payment_credential_provider.rb', line 1099

def authorization_private_key_json_key
  @authorization_private_key_json_key
end

#authorization_private_key_sourceString? (readonly)

The source of the secret.

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



1106
1107
1108
# File 'bedrock_agent_core/cfn_payment_credential_provider.rb', line 1106

def authorization_private_key_source
  @authorization_private_key_source
end

Class Method Details

.jsii_propertiesObject



1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
# File 'bedrock_agent_core/cfn_payment_credential_provider.rb', line 1108

def self.jsii_properties
  {
    :app_id => "appId",
    :app_secret_arn => "appSecretArn",
    :authorization_id => "authorizationId",
    :authorization_private_key_arn => "authorizationPrivateKeyArn",
    :app_secret_json_key => "appSecretJsonKey",
    :app_secret_source => "appSecretSource",
    :authorization_private_key_json_key => "authorizationPrivateKeyJsonKey",
    :authorization_private_key_source => "authorizationPrivateKeySource",
  }
end

Instance Method Details

#to_jsiiObject



1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
# File 'bedrock_agent_core/cfn_payment_credential_provider.rb', line 1121

def to_jsii
  result = {}
  result.merge!({
    "appId" => @app_id,
    "appSecretArn" => @app_secret_arn,
    "authorizationId" => @authorization_id,
    "authorizationPrivateKeyArn" => @authorization_private_key_arn,
    "appSecretJsonKey" => @app_secret_json_key,
    "appSecretSource" => @app_secret_source,
    "authorizationPrivateKeyJsonKey" => @authorization_private_key_json_key,
    "authorizationPrivateKeySource" => @authorization_private_key_source,
  })
  result.compact
end