Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
ResourceFactory.prototype.makeElasticSearchDomain = function () {
return new cloudform_1.Elasticsearch.Domain({
DomainName: cloudform_1.Fn.Ref(ResourceFactory.ParameterIds.ElasticSearchDomainName),
ElasticsearchVersion: '6.2',
ElasticsearchClusterConfig: {
InstanceCount: cloudform_1.Fn.Ref(ResourceFactory.ParameterIds.ElasticSearchInstanceCount),
InstanceType: cloudform_1.Fn.Ref(ResourceFactory.ParameterIds.ElasticSearchInstanceType)
},
EBSOptions: {
EBSEnabled: true,
VolumeType: 'gp2',
VolumeSize: cloudform_1.Fn.Ref(ResourceFactory.ParameterIds.ElasticSearchEBSVolumeGB)
}
});
};
/**
ResourceFactory.prototype.makeElasticSearchDomain = function () {
return new cloudform_1.Elasticsearch.Domain({
DomainName: cloudform_1.Fn.Ref(amplify_graphql_transformer_common_1.ResourceConstants.PARAMETERS.ElasticSearchDomainName),
ElasticsearchVersion: '6.2',
ElasticsearchClusterConfig: {
InstanceCount: cloudform_1.Fn.Ref(amplify_graphql_transformer_common_1.ResourceConstants.PARAMETERS.ElasticSearchInstanceCount),
InstanceType: cloudform_1.Fn.Ref(amplify_graphql_transformer_common_1.ResourceConstants.PARAMETERS.ElasticSearchInstanceType)
},
EBSOptions: {
EBSEnabled: true,
VolumeType: 'gp2',
VolumeSize: cloudform_1.Fn.Ref(amplify_graphql_transformer_common_1.ResourceConstants.PARAMETERS.ElasticSearchEBSVolumeGB)
}
});
};
/**