Class: AWSCDK::AppSync::CfnDataSource::OpenSearchServiceConfigProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::AppSync::CfnDataSource::OpenSearchServiceConfigProperty
- Defined in:
- app_sync/cfn_data_source.rb
Overview
The OpenSearchServiceConfig property type specifies the AwsRegion and Endpoints for an Amazon OpenSearch Service domain in your account for an AWS AppSync data source.
OpenSearchServiceConfig is a property of the AWS::AppSync::DataSource property type.
Instance Attribute Summary collapse
-
#aws_region ⇒ String
readonly
The AWS Region.
-
#endpoint ⇒ String
readonly
The endpoint.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(aws_region:, endpoint:) ⇒ OpenSearchServiceConfigProperty
constructor
A new instance of OpenSearchServiceConfigProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(aws_region:, endpoint:) ⇒ OpenSearchServiceConfigProperty
Returns a new instance of OpenSearchServiceConfigProperty.
1060 1061 1062 1063 1064 1065 |
# File 'app_sync/cfn_data_source.rb', line 1060 def initialize(aws_region:, endpoint:) @aws_region = aws_region Jsii::Type.check_type(@aws_region, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "awsRegion") @endpoint = endpoint Jsii::Type.check_type(@endpoint, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "endpoint") end |
Instance Attribute Details
#aws_region ⇒ String (readonly)
The AWS Region.
1071 1072 1073 |
# File 'app_sync/cfn_data_source.rb', line 1071 def aws_region @aws_region end |
#endpoint ⇒ String (readonly)
The endpoint.
1076 1077 1078 |
# File 'app_sync/cfn_data_source.rb', line 1076 def endpoint @endpoint end |
Class Method Details
.jsii_properties ⇒ Object
1078 1079 1080 1081 1082 1083 |
# File 'app_sync/cfn_data_source.rb', line 1078 def self.jsii_properties { :aws_region => "awsRegion", :endpoint => "endpoint", } end |
Instance Method Details
#to_jsii ⇒ Object
1085 1086 1087 1088 1089 1090 1091 1092 |
# File 'app_sync/cfn_data_source.rb', line 1085 def to_jsii result = {} result.merge!({ "awsRegion" => @aws_region, "endpoint" => @endpoint, }) result.compact end |