Class: AWSCDK::AppSync::CfnDataSource::OpenSearchServiceConfigProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(aws_region:, endpoint:) ⇒ OpenSearchServiceConfigProperty

Returns a new instance of OpenSearchServiceConfigProperty.

Parameters:

  • aws_region (String)

    The AWS Region.

  • endpoint (String)

    The endpoint.



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_regionString (readonly)

The AWS Region.



1071
1072
1073
# File 'app_sync/cfn_data_source.rb', line 1071

def aws_region
  @aws_region
end

#endpointString (readonly)

The endpoint.



1076
1077
1078
# File 'app_sync/cfn_data_source.rb', line 1076

def endpoint
  @endpoint
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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