Class: AWSCDK::BedrockAgentCore::CfnOAuth2CredentialProvider::SecretReferenceProperty

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

Overview

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json_key:, secret_id:) ⇒ SecretReferenceProperty

Returns a new instance of SecretReferenceProperty.

Parameters:

  • json_key (String)

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

  • secret_id (String)

    The ID or ARN of the secret in AWS Secrets Manager.



1495
1496
1497
1498
1499
1500
# File 'bedrock_agent_core/cfn_o_auth2_credential_provider.rb', line 1495

def initialize(json_key:, secret_id:)
  @json_key = json_key
  Jsii::Type.check_type(@json_key, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "jsonKey")
  @secret_id = secret_id
  Jsii::Type.check_type(@secret_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "secretId")
end

Instance Attribute Details

#json_keyString (readonly)

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



1506
1507
1508
# File 'bedrock_agent_core/cfn_o_auth2_credential_provider.rb', line 1506

def json_key
  @json_key
end

#secret_idString (readonly)

The ID or ARN of the secret in AWS Secrets Manager.



1511
1512
1513
# File 'bedrock_agent_core/cfn_o_auth2_credential_provider.rb', line 1511

def secret_id
  @secret_id
end

Class Method Details

.jsii_propertiesObject



1513
1514
1515
1516
1517
1518
# File 'bedrock_agent_core/cfn_o_auth2_credential_provider.rb', line 1513

def self.jsii_properties
  {
    :json_key => "jsonKey",
    :secret_id => "secretId",
  }
end

Instance Method Details

#to_jsiiObject



1520
1521
1522
1523
1524
1525
1526
1527
# File 'bedrock_agent_core/cfn_o_auth2_credential_provider.rb', line 1520

def to_jsii
  result = {}
  result.merge!({
    "jsonKey" => @json_key,
    "secretId" => @secret_id,
  })
  result.compact
end