Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@aws-cdk/aws-elasticsearch

Package Overview
Dependencies
Maintainers
4
Versions
288
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-cdk/aws-elasticsearch - npm Package Compare versions

Comparing version 0.22.0 to 0.23.0

17

lib/elasticsearch.generated.d.ts

@@ -44,2 +44,7 @@ import cdk = require('@aws-cdk/cdk');

/**
* ``AWS::Elasticsearch::Domain.NodeToNodeEncryptionOptions``
* @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticsearch-domain.html#cfn-elasticsearch-domain-nodetonodeencryptionoptions
*/
nodeToNodeEncryptionOptions?: CfnDomain.NodeToNodeEncryptionOptionsProperty | cdk.Token;
/**
* ``AWS::Elasticsearch::Domain.SnapshotOptions``

@@ -173,2 +178,14 @@ * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticsearch-domain.html#cfn-elasticsearch-domain-snapshotoptions

/**
* @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticsearch-domain-nodetonodeencryptionoptions.html
*/
interface NodeToNodeEncryptionOptionsProperty {
/**
* ``CfnDomain.NodeToNodeEncryptionOptionsProperty.Enabled``
* @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticsearch-domain-nodetonodeencryptionoptions.html#cfn-elasticsearch-domain-nodetonodeencryptionoptions-enabled
*/
enabled?: boolean | cdk.Token;
}
}
export declare namespace CfnDomain {
/**
* @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticsearch-domain-snapshotoptions.html

@@ -175,0 +192,0 @@ */

37

lib/elasticsearch.generated.js

@@ -5,3 +5,3 @@ "use strict";

// See: docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cfn-resource-specification.html
// @cfn2ts:meta@ {"generated":"2019-01-11T09:48:57.622Z","fingerprint":"bGFNGVCBLqjnGs+uMdUTVv19wS7B7A7M/dOShX7idQI="}
// @cfn2ts:meta@ {"generated":"2019-02-04T14:41:44.225Z","fingerprint":"9I16rHJGencipUSg+/ZFEBWtX1EO2cP5xsrckDXfA/o="}
Object.defineProperty(exports, "__esModule", { value: true });

@@ -29,2 +29,3 @@ // tslint:disable:max-line-length | This is generated code - line lengths are difficult to control

errors.collect(cdk.propertyValidator('encryptionAtRestOptions', CfnDomain_EncryptionAtRestOptionsPropertyValidator)(properties.encryptionAtRestOptions));
errors.collect(cdk.propertyValidator('nodeToNodeEncryptionOptions', CfnDomain_NodeToNodeEncryptionOptionsPropertyValidator)(properties.nodeToNodeEncryptionOptions));
errors.collect(cdk.propertyValidator('snapshotOptions', CfnDomain_SnapshotOptionsPropertyValidator)(properties.snapshotOptions));

@@ -55,2 +56,3 @@ errors.collect(cdk.propertyValidator('tags', cdk.listValidator(cdk.validateTag))(properties.tags));

EncryptionAtRestOptions: cfnDomainEncryptionAtRestOptionsPropertyToCloudFormation(properties.encryptionAtRestOptions),
NodeToNodeEncryptionOptions: cfnDomainNodeToNodeEncryptionOptionsPropertyToCloudFormation(properties.nodeToNodeEncryptionOptions),
SnapshotOptions: cfnDomainSnapshotOptionsPropertyToCloudFormation(properties.snapshotOptions),

@@ -202,2 +204,33 @@ Tags: cdk.listMapper(cdk.tagToCloudFormation)(properties.tags),

/**
* Determine whether the given properties match those of a ``NodeToNodeEncryptionOptionsProperty``
*
* @param properties the TypeScript properties of a ``NodeToNodeEncryptionOptionsProperty``
*
* @returns the result of the validation.
*/
function CfnDomain_NodeToNodeEncryptionOptionsPropertyValidator(properties) {
if (!cdk.canInspect(properties)) {
return cdk.VALIDATION_SUCCESS;
}
const errors = new cdk.ValidationResults();
errors.collect(cdk.propertyValidator('enabled', cdk.validateBoolean)(properties.enabled));
return errors.wrap('supplied properties not correct for "NodeToNodeEncryptionOptionsProperty"');
}
/**
* Renders the AWS CloudFormation properties of an ``AWS::Elasticsearch::Domain.NodeToNodeEncryptionOptions`` resource
*
* @param properties the TypeScript properties of a ``NodeToNodeEncryptionOptionsProperty``
*
* @returns the AWS CloudFormation properties of an ``AWS::Elasticsearch::Domain.NodeToNodeEncryptionOptions`` resource.
*/
function cfnDomainNodeToNodeEncryptionOptionsPropertyToCloudFormation(properties) {
if (!cdk.canInspect(properties)) {
return properties;
}
CfnDomain_NodeToNodeEncryptionOptionsPropertyValidator(properties).assertSuccess();
return {
Enabled: cdk.booleanToCloudFormation(properties.enabled),
};
}
/**
* Determine whether the given properties match those of a ``SnapshotOptionsProperty``

@@ -266,2 +299,2 @@ *

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZWxhc3RpY3NlYXJjaC5nZW5lcmF0ZWQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJlbGFzdGljc2VhcmNoLmdlbmVyYXRlZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsK0VBQStFO0FBQy9FLCtEQUErRDtBQUMvRCw4RkFBOEY7QUFDOUYsc0hBQXNIOztBQUV0SCxrR0FBa0c7QUFFbEcsb0NBQXFDO0FBMERyQzs7Ozs7O0dBTUc7QUFDSCxTQUFTLHVCQUF1QixDQUFDLFVBQWU7SUFDNUMsSUFBSSxDQUFDLEdBQUcsQ0FBQyxVQUFVLENBQUMsVUFBVSxDQUFDLEVBQUU7UUFBRSxPQUFPLEdBQUcsQ0FBQyxrQkFBa0IsQ0FBQztLQUFFO0lBQ25FLE1BQU0sTUFBTSxHQUFHLElBQUksR0FBRyxDQUFDLGlCQUFpQixFQUFFLENBQUM7SUFDM0MsTUFBTSxDQUFDLE9BQU8sQ0FBQyxHQUFHLENBQUMsaUJBQWlCLENBQUMsZ0JBQWdCLEVBQUUsR0FBRyxDQUFDLGNBQWMsQ0FBQyxDQUFDLFVBQVUsQ0FBQyxjQUFjLENBQUMsQ0FBQyxDQUFDO0lBQ3ZHLE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uc3VibmV0SWRzKSxcbiAgICB9O1xufVxuIl19

14

package.json
{
"name": "@aws-cdk/aws-elasticsearch",
"version": "0.22.0",
"version": "0.23.0",
"description": "The CDK Construct Library for AWS::Elasticsearch",

@@ -57,13 +57,13 @@ "main": "lib/index.js",

"devDependencies": {
"@aws-cdk/assert": "^0.22.0",
"cdk-build-tools": "^0.22.0",
"cfn2ts": "^0.22.0",
"pkglint": "^0.22.0"
"@aws-cdk/assert": "^0.23.0",
"cdk-build-tools": "^0.23.0",
"cfn2ts": "^0.23.0",
"pkglint": "^0.23.0"
},
"dependencies": {
"@aws-cdk/cdk": "^0.22.0"
"@aws-cdk/cdk": "^0.23.0"
},
"homepage": "https://github.com/awslabs/aws-cdk",
"peerDependencies": {
"@aws-cdk/cdk": "^0.22.0"
"@aws-cdk/cdk": "^0.23.0"
},

@@ -70,0 +70,0 @@ "engines": {

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc