Class: AWSCDK::AppSync::AppSyncHttpDataSourceOptions
- Inherits:
-
AppSyncDataSourceOptions
- Object
- AppSyncDataSourceOptions
- AWSCDK::AppSync::AppSyncHttpDataSourceOptions
- Defined in:
- app_sync/app_sync_http_data_source_options.rb
Overview
Optional configuration for Http data sources.
Instance Attribute Summary collapse
-
#authorization_config ⇒ AWSCDK::AppSync::AppSyncAWSIAMConfig?
readonly
The authorization config in case the HTTP endpoint requires authorization.
-
#description ⇒ String?
readonly
The description of the data source.
-
#name ⇒ String?
readonly
The name of the data source, overrides the id given by CDK.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(description: nil, name: nil, authorization_config: nil) ⇒ AppSyncHttpDataSourceOptions
constructor
A new instance of AppSyncHttpDataSourceOptions.
- #to_jsii ⇒ Object
Constructor Details
#initialize(description: nil, name: nil, authorization_config: nil) ⇒ AppSyncHttpDataSourceOptions
Returns a new instance of AppSyncHttpDataSourceOptions.
10 11 12 13 14 15 16 17 |
# File 'app_sync/app_sync_http_data_source_options.rb', line 10 def initialize(description: nil, name: nil, authorization_config: nil) @description = description Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil? @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") unless @name.nil? @authorization_config = .is_a?(Hash) ? ::AWSCDK::AppSync::AppSyncAWSIAMConfig.new(**.transform_keys(&:to_sym)) : Jsii::Type.check_type(@authorization_config, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXBwc3luYy5BcHBTeW5jQXdzSWFtQ29uZmlnIn0=")), "authorizationConfig") unless @authorization_config.nil? end |
Instance Attribute Details
#authorization_config ⇒ AWSCDK::AppSync::AppSyncAWSIAMConfig? (readonly)
Note:
Default: - none
The authorization config in case the HTTP endpoint requires authorization.
33 34 35 |
# File 'app_sync/app_sync_http_data_source_options.rb', line 33 def @authorization_config end |
#description ⇒ String? (readonly)
Note:
Default: - No description
The description of the data source.
23 24 25 |
# File 'app_sync/app_sync_http_data_source_options.rb', line 23 def description @description end |
#name ⇒ String? (readonly)
Note:
Default: - generated by CDK given the id
The name of the data source, overrides the id given by CDK.
28 29 30 |
# File 'app_sync/app_sync_http_data_source_options.rb', line 28 def name @name end |
Class Method Details
.jsii_properties ⇒ Object
35 36 37 38 39 40 41 |
# File 'app_sync/app_sync_http_data_source_options.rb', line 35 def self.jsii_properties { :description => "description", :name => "name", :authorization_config => "authorizationConfig", } end |
Instance Method Details
#to_jsii ⇒ Object
43 44 45 46 47 48 49 50 51 52 |
# File 'app_sync/app_sync_http_data_source_options.rb', line 43 def to_jsii result = {} result.merge!(super) result.merge!({ "description" => @description, "name" => @name, "authorizationConfig" => @authorization_config, }) result.compact end |