Class: AWSCDK::BedrockAgentCore::CfnPaymentManagerProps

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

Overview

Properties for defining a CfnPaymentManager.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(authorizer_type:, name:, role_arn:, authorizer_configuration: nil, description: nil, tags: nil) ⇒ CfnPaymentManagerProps

Returns a new instance of CfnPaymentManagerProps.

Parameters:



15
16
17
18
19
20
21
22
23
24
25
26
27
28
# File 'bedrock_agent_core/cfn_payment_manager_props.rb', line 15

def initialize(authorizer_type:, name:, role_arn:, authorizer_configuration: nil, description: nil, tags: nil)
  @authorizer_type = authorizer_type
  Jsii::Type.check_type(@authorizer_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "authorizerType")
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name")
  @role_arn = role_arn
  Jsii::Type.check_type(@role_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "roleArn")
  @authorizer_configuration = authorizer_configuration.is_a?(Hash) ? ::AWSCDK::BedrockAgentCore::CfnPaymentManager::AuthorizerConfigurationProperty.new(**authorizer_configuration.transform_keys(&:to_sym)) : authorizer_configuration
  Jsii::Type.check_type(@authorizer_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iZWRyb2NrYWdlbnRjb3JlLkNmblBheW1lbnRNYW5hZ2VyLkF1dGhvcml6ZXJDb25maWd1cmF0aW9uUHJvcGVydHkifV19fQ==")), "authorizerConfiguration") unless @authorizer_configuration.nil?
  @description = description
  Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil?
  @tags = tags.is_a?(Array) ? tags.map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : tags
  Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil?
end

Instance Attribute Details

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



45
46
47
# File 'bedrock_agent_core/cfn_payment_manager_props.rb', line 45

def authorizer_configuration
  @authorizer_configuration
end

#authorizer_typeString (readonly)



32
33
34
# File 'bedrock_agent_core/cfn_payment_manager_props.rb', line 32

def authorizer_type
  @authorizer_type
end

#descriptionString? (readonly)

A description of the payment manager.



50
51
52
# File 'bedrock_agent_core/cfn_payment_manager_props.rb', line 50

def description
  @description
end

#nameString (readonly)

The name of the payment manager.



37
38
39
# File 'bedrock_agent_core/cfn_payment_manager_props.rb', line 37

def name
  @name
end

#role_arnString (readonly)

The ARN of the IAM role for the payment manager.



42
43
44
# File 'bedrock_agent_core/cfn_payment_manager_props.rb', line 42

def role_arn
  @role_arn
end

#tagsArray<AWSCDK::CfnTag>? (readonly)

Tags to assign to the payment manager.



55
56
57
# File 'bedrock_agent_core/cfn_payment_manager_props.rb', line 55

def tags
  @tags
end

Class Method Details

.jsii_propertiesObject



57
58
59
60
61
62
63
64
65
66
# File 'bedrock_agent_core/cfn_payment_manager_props.rb', line 57

def self.jsii_properties
  {
    :authorizer_type => "authorizerType",
    :name => "name",
    :role_arn => "roleArn",
    :authorizer_configuration => "authorizerConfiguration",
    :description => "description",
    :tags => "tags",
  }
end

Instance Method Details

#to_jsiiObject



68
69
70
71
72
73
74
75
76
77
78
79
# File 'bedrock_agent_core/cfn_payment_manager_props.rb', line 68

def to_jsii
  result = {}
  result.merge!({
    "authorizerType" => @authorizer_type,
    "name" => @name,
    "roleArn" => @role_arn,
    "authorizerConfiguration" => @authorizer_configuration,
    "description" => @description,
    "tags" => @tags,
  })
  result.compact
end