agent-claw: automated task changes
This commit is contained in:
13
cdk/node_modules/aws-cdk-lib/aws-opensearchservice/.jsiirc.json
generated
vendored
Normal file
13
cdk/node_modules/aws-cdk-lib/aws-opensearchservice/.jsiirc.json
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"targets": {
|
||||
"java": {
|
||||
"package": "software.amazon.awscdk.services.opensearchservice"
|
||||
},
|
||||
"dotnet": {
|
||||
"namespace": "Amazon.CDK.AWS.OpenSearchService"
|
||||
},
|
||||
"python": {
|
||||
"module": "aws_cdk.aws_opensearchservice"
|
||||
}
|
||||
}
|
||||
}
|
||||
616
cdk/node_modules/aws-cdk-lib/aws-opensearchservice/README.md
generated
vendored
Normal file
616
cdk/node_modules/aws-cdk-lib/aws-opensearchservice/README.md
generated
vendored
Normal file
@@ -0,0 +1,616 @@
|
||||
# Amazon OpenSearch Service Construct Library
|
||||
|
||||
|
||||
See [Migrating to OpenSearch](https://docs.aws.amazon.com/cdk/api/latest/docs/aws-elasticsearch-readme.html#migrating-to-opensearch) for migration instructions from `aws-cdk-lib/aws-elasticsearch` to this module, `aws-cdk-lib/aws-opensearchservice`.
|
||||
|
||||
## Quick start
|
||||
|
||||
Create a development cluster by simply specifying the version:
|
||||
|
||||
```ts
|
||||
const devDomain = new Domain(this, 'Domain', {
|
||||
version: EngineVersion.OPENSEARCH_1_0,
|
||||
});
|
||||
```
|
||||
|
||||
To perform version upgrades without replacing the entire domain, specify the `enableVersionUpgrade` property.
|
||||
|
||||
```ts
|
||||
const devDomain = new Domain(this, 'Domain', {
|
||||
version: EngineVersion.OPENSEARCH_1_0,
|
||||
enableVersionUpgrade: true, // defaults to false
|
||||
});
|
||||
```
|
||||
|
||||
Create a cluster with GP3 volumes:
|
||||
|
||||
```ts
|
||||
const gp3Domain = new Domain(this, 'Domain', {
|
||||
version: EngineVersion.OPENSEARCH_2_5,
|
||||
ebs: {
|
||||
volumeSize: 30,
|
||||
volumeType: ec2.EbsDeviceVolumeType.GP3,
|
||||
throughput: 125,
|
||||
iops: 3000,
|
||||
},
|
||||
});
|
||||
```
|
||||
|
||||
Create a production grade cluster by also specifying things like capacity and az distribution
|
||||
|
||||
```ts
|
||||
const prodDomain = new Domain(this, 'Domain', {
|
||||
version: EngineVersion.OPENSEARCH_1_0,
|
||||
capacity: {
|
||||
masterNodes: 5,
|
||||
dataNodes: 20,
|
||||
},
|
||||
ebs: {
|
||||
volumeSize: 20,
|
||||
},
|
||||
zoneAwareness: {
|
||||
availabilityZoneCount: 3,
|
||||
},
|
||||
logging: {
|
||||
slowSearchLogEnabled: true,
|
||||
appLogEnabled: true,
|
||||
slowIndexLogEnabled: true,
|
||||
},
|
||||
});
|
||||
```
|
||||
|
||||
This creates an Amazon OpenSearch Service cluster and automatically sets up log groups for
|
||||
logging the domain logs and slow search logs.
|
||||
|
||||
## A note about SLR
|
||||
|
||||
Some cluster configurations (e.g VPC access) require the existence of the [`AWSServiceRoleForAmazonElasticsearchService`](https://docs.aws.amazon.com/opensearch-service/latest/developerguide/slr.html) Service-Linked Role.
|
||||
|
||||
When performing such operations via the AWS Console, this SLR is created automatically when needed. However, this is not the behavior when using CloudFormation. If an SLR is needed, but doesn't exist, you will encounter a failure message similar to:
|
||||
|
||||
```console
|
||||
Before you can proceed, you must enable a service-linked role to give Amazon OpenSearch Service...
|
||||
```
|
||||
|
||||
To resolve this, you need to [create](https://docs.aws.amazon.com/IAM/latest/UserGuide/using-service-linked-roles.html#create-service-linked-role) the SLR. We recommend using the AWS CLI:
|
||||
|
||||
```console
|
||||
aws iam create-service-linked-role --aws-service-name es.amazonaws.com
|
||||
```
|
||||
|
||||
You can also create it using the CDK, **but note that only the first application deploying this will succeed**:
|
||||
|
||||
```ts
|
||||
const slr = new iam.CfnServiceLinkedRole(this, 'Service Linked Role', {
|
||||
awsServiceName: 'es.amazonaws.com',
|
||||
});
|
||||
```
|
||||
|
||||
## Importing existing domains
|
||||
|
||||
### Using a known domain endpoint
|
||||
|
||||
To import an existing domain into your CDK application, use the `Domain.fromDomainEndpoint` factory method.
|
||||
This method accepts a domain endpoint of an already existing domain:
|
||||
|
||||
```ts
|
||||
const domainEndpoint = 'https://my-domain-jcjotrt6f7otem4sqcwbch3c4u.us-east-1.es.amazonaws.com';
|
||||
const domain = Domain.fromDomainEndpoint(this, 'ImportedDomain', domainEndpoint);
|
||||
```
|
||||
|
||||
### Using the output of another CloudFormation stack
|
||||
|
||||
To import an existing domain with the help of an exported value from another CloudFormation stack,
|
||||
use the `Domain.fromDomainAttributes` factory method. This will accept tokens.
|
||||
|
||||
```ts
|
||||
const domainArn = Fn.importValue(`another-cf-stack-export-domain-arn`);
|
||||
const domainEndpoint = Fn.importValue(`another-cf-stack-export-domain-endpoint`);
|
||||
const domain = Domain.fromDomainAttributes(this, 'ImportedDomain', {
|
||||
domainArn,
|
||||
domainEndpoint,
|
||||
});
|
||||
```
|
||||
|
||||
## Permissions
|
||||
|
||||
### IAM
|
||||
|
||||
Helper methods also exist for managing access to the domain.
|
||||
|
||||
```ts
|
||||
declare const fn: lambda.Function;
|
||||
declare const domain: Domain;
|
||||
|
||||
// Grant write access to the app-search index
|
||||
domain.grantIndexWrite('app-search', fn);
|
||||
|
||||
// Grant read access to the 'app-search/_search' path
|
||||
domain.grantPathRead('app-search/_search', fn);
|
||||
```
|
||||
|
||||
## Encryption
|
||||
|
||||
The domain can also be created with encryption enabled:
|
||||
|
||||
```ts
|
||||
const domain = new Domain(this, 'Domain', {
|
||||
version: EngineVersion.OPENSEARCH_1_0,
|
||||
ebs: {
|
||||
volumeSize: 100,
|
||||
volumeType: ec2.EbsDeviceVolumeType.GENERAL_PURPOSE_SSD,
|
||||
},
|
||||
nodeToNodeEncryption: true,
|
||||
encryptionAtRest: {
|
||||
enabled: true,
|
||||
},
|
||||
});
|
||||
```
|
||||
|
||||
This sets up the domain with node to node encryption and encryption at
|
||||
rest. You can also choose to supply your own KMS key to use for encryption at
|
||||
rest:
|
||||
|
||||
```ts
|
||||
import * as kms from 'aws-cdk-lib/aws-kms';
|
||||
|
||||
const encryptionKey = new kms.Key(this, 'EncryptionKey');
|
||||
|
||||
const domain = new Domain(this, 'Domain', {
|
||||
version: EngineVersion.OPENSEARCH_1_0,
|
||||
encryptionAtRest: {
|
||||
kmsKey: encryptionKey,
|
||||
},
|
||||
});
|
||||
```
|
||||
|
||||
The construct also supports using cross-account KMS keys for encryption at rest:
|
||||
|
||||
```ts
|
||||
import * as kms from 'aws-cdk-lib/aws-kms';
|
||||
|
||||
const crossAccountKey = kms.Key.fromKeyArn(
|
||||
this,
|
||||
'CrossAccountKey',
|
||||
'arn:aws:kms:us-east-1:111111111111:key/12345678-1234-1234-1234-123456789012',
|
||||
);
|
||||
|
||||
const domain = new Domain(this, 'Domain', {
|
||||
version: EngineVersion.OPENSEARCH_1_0,
|
||||
encryptionAtRest: {
|
||||
kmsKey: crossAccountKey,
|
||||
},
|
||||
});
|
||||
```
|
||||
|
||||
## VPC Support
|
||||
|
||||
Domains can be placed inside a VPC, providing a secure communication between Amazon OpenSearch Service and other services within the VPC without the need for an internet gateway, NAT device, or VPN connection.
|
||||
|
||||
> Visit [VPC Support for Amazon OpenSearch Service Domains](https://docs.aws.amazon.com/opensearch-service/latest/developerguide/vpc.html) for more details.
|
||||
|
||||
```ts
|
||||
const vpc = new ec2.Vpc(this, 'Vpc');
|
||||
const domainProps: DomainProps = {
|
||||
version: EngineVersion.OPENSEARCH_1_0,
|
||||
removalPolicy: RemovalPolicy.DESTROY,
|
||||
vpc,
|
||||
// must be enabled since our VPC contains multiple private subnets.
|
||||
zoneAwareness: {
|
||||
enabled: true,
|
||||
},
|
||||
capacity: {
|
||||
// must be an even number since the default az count is 2.
|
||||
dataNodes: 2,
|
||||
},
|
||||
};
|
||||
new Domain(this, 'Domain', domainProps);
|
||||
```
|
||||
|
||||
In addition, you can use the `vpcSubnets` property to control which specific subnets will be used, and the `securityGroups` property to control
|
||||
which security groups will be attached to the domain. By default, CDK will select all *private* subnets in the VPC, and create one dedicated security group.
|
||||
|
||||
## Metrics
|
||||
|
||||
Helper methods exist to access common domain metrics for example:
|
||||
|
||||
```ts
|
||||
declare const domain: Domain;
|
||||
const freeStorageSpace = domain.metricFreeStorageSpace();
|
||||
const masterSysMemoryUtilization = domain.metric('MasterSysMemoryUtilization');
|
||||
```
|
||||
|
||||
This module is part of the [AWS Cloud Development Kit](https://github.com/aws/aws-cdk) project.
|
||||
|
||||
## Fine grained access control
|
||||
|
||||
The domain can also be created with a master user configured. The password can
|
||||
be supplied or dynamically created if not supplied.
|
||||
|
||||
```ts
|
||||
const domain = new Domain(this, 'Domain', {
|
||||
version: EngineVersion.OPENSEARCH_1_0,
|
||||
enforceHttps: true,
|
||||
nodeToNodeEncryption: true,
|
||||
encryptionAtRest: {
|
||||
enabled: true,
|
||||
},
|
||||
fineGrainedAccessControl: {
|
||||
masterUserName: 'master-user',
|
||||
},
|
||||
});
|
||||
|
||||
const masterUserPassword = domain.masterUserPassword;
|
||||
```
|
||||
|
||||
## SAML authentication
|
||||
|
||||
You can enable SAML authentication to use your existing identity provider
|
||||
to offer single sign-on (SSO) for dashboards on Amazon OpenSearch Service domains
|
||||
running OpenSearch or Elasticsearch 6.7 or later.
|
||||
To use SAML authentication, fine-grained access control must be enabled.
|
||||
|
||||
```ts
|
||||
const domain = new Domain(this, 'Domain', {
|
||||
version: EngineVersion.OPENSEARCH_1_0,
|
||||
enforceHttps: true,
|
||||
nodeToNodeEncryption: true,
|
||||
encryptionAtRest: {
|
||||
enabled: true,
|
||||
},
|
||||
fineGrainedAccessControl: {
|
||||
masterUserName: 'master-user',
|
||||
samlAuthenticationEnabled: true,
|
||||
samlAuthenticationOptions: {
|
||||
idpEntityId: 'entity-id',
|
||||
idpMetadataContent: 'metadata-content-with-quotes-escaped',
|
||||
},
|
||||
},
|
||||
});
|
||||
```
|
||||
|
||||
## Using unsigned basic auth
|
||||
|
||||
For convenience, the domain can be configured to allow unsigned HTTP requests
|
||||
that use basic auth. Unless the domain is configured to be part of a VPC this
|
||||
means anyone can access the domain using the configured master username and
|
||||
password.
|
||||
|
||||
To enable unsigned basic auth access the domain is configured with an access
|
||||
policy that allows anonymous requests, HTTPS required, node to node encryption,
|
||||
encryption at rest and fine grained access control.
|
||||
|
||||
If the above settings are not set they will be configured as part of enabling
|
||||
unsigned basic auth. If they are set with conflicting values, an error will be
|
||||
thrown.
|
||||
|
||||
If no master user is configured a default master user is created with the
|
||||
username `admin`.
|
||||
|
||||
If no password is configured a default master user password is created and
|
||||
stored in the AWS Secrets Manager as secret. The secret has the prefix
|
||||
`<domain id>MasterUser`.
|
||||
|
||||
```ts
|
||||
const domain = new Domain(this, 'Domain', {
|
||||
version: EngineVersion.OPENSEARCH_1_0,
|
||||
useUnsignedBasicAuth: true,
|
||||
});
|
||||
|
||||
const masterUserPassword = domain.masterUserPassword;
|
||||
```
|
||||
|
||||
## Custom access policies
|
||||
|
||||
If the domain requires custom access control it can be configured either as a
|
||||
constructor property, or later by means of a helper method.
|
||||
|
||||
For simple permissions the `accessPolicies` constructor may be sufficient:
|
||||
|
||||
```ts
|
||||
const domain = new Domain(this, 'Domain', {
|
||||
version: EngineVersion.OPENSEARCH_1_0,
|
||||
accessPolicies: [
|
||||
new iam.PolicyStatement({
|
||||
actions: ['es:*ESHttpPost', 'es:ESHttpPut*'],
|
||||
effect: iam.Effect.ALLOW,
|
||||
principals: [new iam.AccountPrincipal('123456789012')],
|
||||
resources: ['*'],
|
||||
}),
|
||||
]
|
||||
});
|
||||
```
|
||||
|
||||
For more complex use-cases, for example, to set the domain up to receive data from a
|
||||
[cross-account Amazon Data Firehose](https://aws.amazon.com/premiumsupport/knowledge-center/kinesis-firehose-cross-account-streaming/) the `addAccessPolicies` helper method
|
||||
allows for policies that include the explicit domain ARN.
|
||||
|
||||
```ts
|
||||
const domain = new Domain(this, 'Domain', {
|
||||
version: EngineVersion.OPENSEARCH_1_0,
|
||||
});
|
||||
domain.addAccessPolicies(
|
||||
new iam.PolicyStatement({
|
||||
actions: ['es:ESHttpPost', 'es:ESHttpPut'],
|
||||
effect: iam.Effect.ALLOW,
|
||||
principals: [new iam.AccountPrincipal('123456789012')],
|
||||
resources: [domain.domainArn, `${domain.domainArn}/*`],
|
||||
}),
|
||||
new iam.PolicyStatement({
|
||||
actions: ['es:ESHttpGet'],
|
||||
effect: iam.Effect.ALLOW,
|
||||
principals: [new iam.AccountPrincipal('123456789012')],
|
||||
resources: [
|
||||
`${domain.domainArn}/_all/_settings`,
|
||||
`${domain.domainArn}/_cluster/stats`,
|
||||
`${domain.domainArn}/index-name*/_mapping/type-name`,
|
||||
`${domain.domainArn}/roletest*/_mapping/roletest`,
|
||||
`${domain.domainArn}/_nodes`,
|
||||
`${domain.domainArn}/_nodes/stats`,
|
||||
`${domain.domainArn}/_nodes/*/stats`,
|
||||
`${domain.domainArn}/_stats`,
|
||||
`${domain.domainArn}/index-name*/_stats`,
|
||||
`${domain.domainArn}/roletest*/_stat`,
|
||||
],
|
||||
}),
|
||||
);
|
||||
```
|
||||
|
||||
## Audit logs
|
||||
|
||||
Audit logs can be enabled for a domain, but only when fine grained access control is enabled.
|
||||
|
||||
```ts
|
||||
const domain = new Domain(this, 'Domain', {
|
||||
version: EngineVersion.OPENSEARCH_1_0,
|
||||
enforceHttps: true,
|
||||
nodeToNodeEncryption: true,
|
||||
encryptionAtRest: {
|
||||
enabled: true,
|
||||
},
|
||||
fineGrainedAccessControl: {
|
||||
masterUserName: 'master-user',
|
||||
},
|
||||
logging: {
|
||||
auditLogEnabled: true,
|
||||
slowSearchLogEnabled: true,
|
||||
appLogEnabled: true,
|
||||
slowIndexLogEnabled: true,
|
||||
},
|
||||
});
|
||||
```
|
||||
|
||||
## Suppress creating CloudWatch Logs resource policy
|
||||
|
||||
When logging is enabled for the domain, the CloudWatch Logs resource policy is created by default.
|
||||
This resource policy is necessary for logging, but since only a maximum of 10 resource policies can be created per region,
|
||||
the maximum number of resource policies may be a problem when enabling logging for several domains.
|
||||
By setting the `suppressLogsResourcePolicy` option to true, you can suppress the creation of a CloudWatch Logs resource policy.
|
||||
|
||||
If you set the `suppressLogsResourcePolicy` option to true, you must create a resource policy before deployment.
|
||||
Also, to avoid reaching this limit, consider reusing a broader policy that includes multiple log groups.
|
||||
|
||||
```ts
|
||||
const domain = new Domain(this, 'Domain', {
|
||||
version: EngineVersion.OPENSEARCH_1_0,
|
||||
enforceHttps: true,
|
||||
nodeToNodeEncryption: true,
|
||||
encryptionAtRest: {
|
||||
enabled: true,
|
||||
},
|
||||
fineGrainedAccessControl: {
|
||||
masterUserName: 'master-user',
|
||||
},
|
||||
logging: {
|
||||
auditLogEnabled: true,
|
||||
slowSearchLogEnabled: true,
|
||||
appLogEnabled: true,
|
||||
slowIndexLogEnabled: true,
|
||||
},
|
||||
suppressLogsResourcePolicy: true,
|
||||
});
|
||||
```
|
||||
|
||||
> Visit [Monitoring OpenSearch logs with Amazon CloudWatch Logs](https://docs.aws.amazon.com/opensearch-service/latest/developerguide/createdomain-configure-slow-logs.html) for more details.
|
||||
|
||||
## UltraWarm
|
||||
|
||||
UltraWarm nodes can be enabled to provide a cost-effective way to store large amounts of read-only data.
|
||||
|
||||
```ts
|
||||
const domain = new Domain(this, 'Domain', {
|
||||
version: EngineVersion.OPENSEARCH_1_0,
|
||||
capacity: {
|
||||
masterNodes: 2,
|
||||
warmNodes: 2,
|
||||
warmInstanceType: 'ultrawarm1.medium.search',
|
||||
},
|
||||
});
|
||||
```
|
||||
|
||||
## Cold storage
|
||||
|
||||
Cold storage can be enabled on the domain. You must enable UltraWarm storage to enable cold storage.
|
||||
|
||||
```ts
|
||||
const domain = new Domain(this, 'Domain', {
|
||||
version: EngineVersion.OPENSEARCH_1_0,
|
||||
capacity: {
|
||||
masterNodes: 2,
|
||||
warmNodes: 2,
|
||||
warmInstanceType: 'ultrawarm1.medium.search',
|
||||
},
|
||||
coldStorageEnabled: true,
|
||||
});
|
||||
```
|
||||
|
||||
## S3 Vectors Engine
|
||||
|
||||
Amazon OpenSearch Service offers [the ability to use Amazon S3 as a vector engine for vector indexes](https://docs.aws.amazon.com/opensearch-service/latest/developerguide/s3-vector-opensearch-integration-engine.html).
|
||||
This feature allows you to offload vector data to Amazon S3 while maintaining sub-second vector search capabilities at low cost.
|
||||
|
||||
Requirements:
|
||||
|
||||
- OpenSearch version 2.19 or later
|
||||
- OpenSearch Optimized instance types (OR1, OR2, OM2, OI2) for data nodes
|
||||
- Encryption at rest must be enabled
|
||||
|
||||
```ts
|
||||
const domain = new Domain(this, 'Domain', {
|
||||
version: EngineVersion.OPENSEARCH_2_19,
|
||||
s3VectorsEngineEnabled: true,
|
||||
capacity: {
|
||||
dataNodeInstanceType: 'or1.medium.search',
|
||||
},
|
||||
encryptionAtRest: {
|
||||
enabled: true,
|
||||
},
|
||||
});
|
||||
```
|
||||
|
||||
## Custom endpoint
|
||||
|
||||
Custom endpoints can be configured to reach the domain under a custom domain name.
|
||||
|
||||
```ts
|
||||
new Domain(this, 'Domain', {
|
||||
version: EngineVersion.OPENSEARCH_1_0,
|
||||
customEndpoint: {
|
||||
domainName: 'search.example.com',
|
||||
},
|
||||
});
|
||||
```
|
||||
|
||||
It is also possible to specify a custom certificate instead of the auto-generated one.
|
||||
|
||||
Additionally, an automatic CNAME-Record is created if a hosted zone is provided for the custom endpoint
|
||||
|
||||
## Advanced options
|
||||
|
||||
[Advanced options](https://docs.aws.amazon.com/opensearch-service/latest/developerguide/createupdatedomains.html#createdomain-configure-advanced-options) can used to configure additional options.
|
||||
|
||||
```ts
|
||||
new Domain(this, 'Domain', {
|
||||
version: EngineVersion.OPENSEARCH_1_0,
|
||||
advancedOptions: {
|
||||
'rest.action.multi.allow_explicit_index': 'false',
|
||||
'indices.fielddata.cache.size': '25',
|
||||
'indices.query.bool.max_clause_count': '2048',
|
||||
},
|
||||
});
|
||||
```
|
||||
|
||||
## Amazon Cognito authentication for OpenSearch Dashboards
|
||||
|
||||
The domain can be configured to use Amazon Cognito authentication for OpenSearch Dashboards.
|
||||
|
||||
> Visit [Configuring Amazon Cognito authentication for OpenSearch Dashboards](https://docs.aws.amazon.com/opensearch-service/latest/developerguide/cognito-auth.html) for more details.
|
||||
|
||||
```ts
|
||||
declare const cognitoConfigurationRole: iam.Role;
|
||||
|
||||
const domain = new Domain(this, 'Domain', {
|
||||
version: EngineVersion.OPENSEARCH_1_0,
|
||||
cognitoDashboardsAuth: {
|
||||
role: cognitoConfigurationRole,
|
||||
identityPoolId: 'example-identity-pool-id',
|
||||
userPoolId: 'example-user-pool-id',
|
||||
},
|
||||
});
|
||||
```
|
||||
|
||||
## Enable support for Multi-AZ with Standby deployment
|
||||
|
||||
The domain can be configured to use [multi-AZ with standby](https://docs.aws.amazon.com/opensearch-service/latest/developerguide/managedomains-multiaz.html#managedomains-za-standby).
|
||||
|
||||
```ts
|
||||
const domain = new Domain(this, 'Domain', {
|
||||
version: EngineVersion.OPENSEARCH_1_3,
|
||||
ebs: {
|
||||
volumeSize: 10,
|
||||
volumeType: ec2.EbsDeviceVolumeType.GENERAL_PURPOSE_SSD_GP3,
|
||||
},
|
||||
zoneAwareness: {
|
||||
enabled: true,
|
||||
availabilityZoneCount: 3,
|
||||
},
|
||||
capacity: {
|
||||
multiAzWithStandbyEnabled: true,
|
||||
masterNodes: 3,
|
||||
dataNodes: 3,
|
||||
},
|
||||
});
|
||||
```
|
||||
|
||||
## Define off-peak windows
|
||||
|
||||
The domain can be configured to use a daily 10-hour window considered as off-peak hours.
|
||||
|
||||
Off-peak windows were introduced on February 16, 2023.
|
||||
All domains created before this date have the off-peak window disabled by default.
|
||||
You must manually enable and configure the off-peak window for these domains.
|
||||
All domains created after this date will have the off-peak window enabled by default.
|
||||
You can't disable the off-peak window for a domain after it's enabled.
|
||||
|
||||
> Visit [Defining off-peak windows for Amazon OpenSearch Service](https://docs.aws.amazon.com/opensearch-service/latest/developerguide/off-peak.html) for more details.
|
||||
|
||||
```ts
|
||||
const domain = new Domain(this, 'Domain', {
|
||||
version: EngineVersion.OPENSEARCH_1_3,
|
||||
offPeakWindowEnabled: true, // can be omitted if offPeakWindowStart is set
|
||||
offPeakWindowStart: {
|
||||
hours: 20,
|
||||
minutes: 0,
|
||||
},
|
||||
});
|
||||
```
|
||||
|
||||
## Configuring service software updates
|
||||
|
||||
The domain can be configured to use service software updates.
|
||||
|
||||
> Visit [Service software updates in Amazon OpenSearch Service](https://docs.aws.amazon.com/opensearch-service/latest/developerguide/service-software.html) for more details.
|
||||
|
||||
```ts
|
||||
const domain = new Domain(this, 'Domain', {
|
||||
version: EngineVersion.OPENSEARCH_1_3,
|
||||
enableAutoSoftwareUpdate: true,
|
||||
});
|
||||
```
|
||||
|
||||
## IP address type
|
||||
|
||||
You can specify either dual stack or IPv4 as your IP address type.
|
||||
|
||||
```ts
|
||||
const domain = new Domain(this, 'Domain', {
|
||||
version: EngineVersion.OPENSEARCH_1_3,
|
||||
ipAddressType: IpAddressType.DUAL_STACK,
|
||||
});
|
||||
```
|
||||
|
||||
## Using Coordinator node with NodeOptions
|
||||
|
||||
You can specify coordinator as a valid value for node type.
|
||||
|
||||
> Visit [Dedicated coordinator nodes in Amazon OpenSearch Service](https://docs.aws.amazon.com/opensearch-service/latest/developerguide/Dedicated-coordinator-nodes.html) for more details.
|
||||
|
||||
```ts
|
||||
import * as opensearch from 'aws-cdk-lib/aws-opensearchservice';
|
||||
|
||||
const domain = new Domain(this, 'Domain', {
|
||||
version: EngineVersion.OPENSEARCH_1_3,
|
||||
capacity: {
|
||||
nodeOptions: [
|
||||
{
|
||||
nodeType: opensearch.NodeType.COORDINATOR,
|
||||
nodeConfig: {
|
||||
enabled: true,
|
||||
count: 2,
|
||||
type: 'm5.large.search',
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
})
|
||||
```
|
||||
38
cdk/node_modules/aws-cdk-lib/aws-opensearchservice/grants.json
generated
vendored
Normal file
38
cdk/node_modules/aws-cdk-lib/aws-opensearchservice/grants.json
generated
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
{
|
||||
"resources": {
|
||||
"Domain": {
|
||||
"grants": {
|
||||
"read": {
|
||||
"actions": [
|
||||
"es:ESHttpGet",
|
||||
"es:ESHttpHead"
|
||||
],
|
||||
"arnFormat": ["${domainArn}", "${domainArn}/*"],
|
||||
"docSummary": "Grant read permissions for this domain and its contents to an IAM\nprincipal (Role/Group/User)."
|
||||
},
|
||||
"write": {
|
||||
"actions": [
|
||||
"es:ESHttpDelete",
|
||||
"es:ESHttpPost",
|
||||
"es:ESHttpPut",
|
||||
"es:ESHttpPatch"
|
||||
],
|
||||
"arnFormat": ["${domainArn}", "${domainArn}/*"],
|
||||
"docSummary": "Grant write permissions for this domain and its contents to an IAM\nprincipal (Role/Group/User)."
|
||||
},
|
||||
"readWrite": {
|
||||
"actions": [
|
||||
"es:ESHttpGet",
|
||||
"es:ESHttpHead",
|
||||
"es:ESHttpDelete",
|
||||
"es:ESHttpPost",
|
||||
"es:ESHttpPut",
|
||||
"es:ESHttpPatch"
|
||||
],
|
||||
"arnFormat": ["${domainArn}", "${domainArn}/*"],
|
||||
"docSummary": "Grant read/write permissions for this domain and its contents to an IAM\nprincipal (Role/Group/User)."
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
1
cdk/node_modules/aws-cdk-lib/aws-opensearchservice/index.d.ts
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/aws-opensearchservice/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export * from './lib';
|
||||
1
cdk/node_modules/aws-cdk-lib/aws-opensearchservice/index.js
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/aws-opensearchservice/index.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";var __createBinding=exports&&exports.__createBinding||(Object.create?(function(o,m,k,k2){k2===void 0&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);(!desc||("get"in desc?!m.__esModule:desc.writable||desc.configurable))&&(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}):(function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]})),__exportStar=exports&&exports.__exportStar||function(m,exports2){for(var p in m)p!=="default"&&!Object.prototype.hasOwnProperty.call(exports2,p)&&__createBinding(exports2,m,p)};Object.defineProperty(exports,"__esModule",{value:!0});var _noFold;exports.TLSSecurityPolicy=void 0,Object.defineProperty(exports,_noFold="TLSSecurityPolicy",{enumerable:!0,configurable:!0,get:()=>{var value=require("./lib").TLSSecurityPolicy;return Object.defineProperty(exports,_noFold="TLSSecurityPolicy",{enumerable:!0,configurable:!0,value}),value}}),exports.IpAddressType=void 0,Object.defineProperty(exports,_noFold="IpAddressType",{enumerable:!0,configurable:!0,get:()=>{var value=require("./lib").IpAddressType;return Object.defineProperty(exports,_noFold="IpAddressType",{enumerable:!0,configurable:!0,value}),value}}),exports.NodeType=void 0,Object.defineProperty(exports,_noFold="NodeType",{enumerable:!0,configurable:!0,get:()=>{var value=require("./lib").NodeType;return Object.defineProperty(exports,_noFold="NodeType",{enumerable:!0,configurable:!0,value}),value}}),exports.Domain=void 0,Object.defineProperty(exports,_noFold="Domain",{enumerable:!0,configurable:!0,get:()=>{var value=require("./lib").Domain;return Object.defineProperty(exports,_noFold="Domain",{enumerable:!0,configurable:!0,value}),value}}),exports.EngineVersion=void 0,Object.defineProperty(exports,_noFold="EngineVersion",{enumerable:!0,configurable:!0,get:()=>{var value=require("./lib").EngineVersion;return Object.defineProperty(exports,_noFold="EngineVersion",{enumerable:!0,configurable:!0,value}),value}}),exports.CfnDomain=void 0,Object.defineProperty(exports,_noFold="CfnDomain",{enumerable:!0,configurable:!0,get:()=>{var value=require("./lib").CfnDomain;return Object.defineProperty(exports,_noFold="CfnDomain",{enumerable:!0,configurable:!0,value}),value}}),exports.CfnApplication=void 0,Object.defineProperty(exports,_noFold="CfnApplication",{enumerable:!0,configurable:!0,get:()=>{var value=require("./lib").CfnApplication;return Object.defineProperty(exports,_noFold="CfnApplication",{enumerable:!0,configurable:!0,value}),value}}),exports.DomainGrants=void 0,Object.defineProperty(exports,_noFold="DomainGrants",{enumerable:!0,configurable:!0,get:()=>{var value=require("./lib").DomainGrants;return Object.defineProperty(exports,_noFold="DomainGrants",{enumerable:!0,configurable:!0,value}),value}});
|
||||
1181
cdk/node_modules/aws-cdk-lib/aws-opensearchservice/lib/domain.d.ts
generated
vendored
Normal file
1181
cdk/node_modules/aws-cdk-lib/aws-opensearchservice/lib/domain.d.ts
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1
cdk/node_modules/aws-cdk-lib/aws-opensearchservice/lib/domain.js
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/aws-opensearchservice/lib/domain.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
4
cdk/node_modules/aws-cdk-lib/aws-opensearchservice/lib/index.d.ts
generated
vendored
Normal file
4
cdk/node_modules/aws-cdk-lib/aws-opensearchservice/lib/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
export * from './domain';
|
||||
export * from './version';
|
||||
export * from './opensearchservice.generated';
|
||||
export * from './opensearchservice-grants.generated';
|
||||
1
cdk/node_modules/aws-cdk-lib/aws-opensearchservice/lib/index.js
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/aws-opensearchservice/lib/index.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";var __createBinding=exports&&exports.__createBinding||(Object.create?(function(o,m,k,k2){k2===void 0&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);(!desc||("get"in desc?!m.__esModule:desc.writable||desc.configurable))&&(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}):(function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]})),__exportStar=exports&&exports.__exportStar||function(m,exports2){for(var p in m)p!=="default"&&!Object.prototype.hasOwnProperty.call(exports2,p)&&__createBinding(exports2,m,p)};Object.defineProperty(exports,"__esModule",{value:!0});var _noFold;exports.TLSSecurityPolicy=void 0,Object.defineProperty(exports,_noFold="TLSSecurityPolicy",{enumerable:!0,configurable:!0,get:()=>{var value=require("./domain").TLSSecurityPolicy;return Object.defineProperty(exports,_noFold="TLSSecurityPolicy",{enumerable:!0,configurable:!0,value}),value}}),exports.IpAddressType=void 0,Object.defineProperty(exports,_noFold="IpAddressType",{enumerable:!0,configurable:!0,get:()=>{var value=require("./domain").IpAddressType;return Object.defineProperty(exports,_noFold="IpAddressType",{enumerable:!0,configurable:!0,value}),value}}),exports.NodeType=void 0,Object.defineProperty(exports,_noFold="NodeType",{enumerable:!0,configurable:!0,get:()=>{var value=require("./domain").NodeType;return Object.defineProperty(exports,_noFold="NodeType",{enumerable:!0,configurable:!0,value}),value}}),exports.Domain=void 0,Object.defineProperty(exports,_noFold="Domain",{enumerable:!0,configurable:!0,get:()=>{var value=require("./domain").Domain;return Object.defineProperty(exports,_noFold="Domain",{enumerable:!0,configurable:!0,value}),value}}),exports.EngineVersion=void 0,Object.defineProperty(exports,_noFold="EngineVersion",{enumerable:!0,configurable:!0,get:()=>{var value=require("./version").EngineVersion;return Object.defineProperty(exports,_noFold="EngineVersion",{enumerable:!0,configurable:!0,value}),value}}),exports.CfnDomain=void 0,Object.defineProperty(exports,_noFold="CfnDomain",{enumerable:!0,configurable:!0,get:()=>{var value=require("./opensearchservice.generated").CfnDomain;return Object.defineProperty(exports,_noFold="CfnDomain",{enumerable:!0,configurable:!0,value}),value}}),exports.CfnApplication=void 0,Object.defineProperty(exports,_noFold="CfnApplication",{enumerable:!0,configurable:!0,get:()=>{var value=require("./opensearchservice.generated").CfnApplication;return Object.defineProperty(exports,_noFold="CfnApplication",{enumerable:!0,configurable:!0,value}),value}}),exports.DomainGrants=void 0,Object.defineProperty(exports,_noFold="DomainGrants",{enumerable:!0,configurable:!0,get:()=>{var value=require("./opensearchservice-grants.generated").DomainGrants;return Object.defineProperty(exports,_noFold="DomainGrants",{enumerable:!0,configurable:!0,value}),value}});
|
||||
22
cdk/node_modules/aws-cdk-lib/aws-opensearchservice/lib/log-group-resource-policy.d.ts
generated
vendored
Normal file
22
cdk/node_modules/aws-cdk-lib/aws-opensearchservice/lib/log-group-resource-policy.d.ts
generated
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
import type { Construct } from 'constructs';
|
||||
import * as iam from '../../aws-iam';
|
||||
import * as cr from '../../custom-resources';
|
||||
/**
|
||||
* Construction properties for LogGroupResourcePolicy
|
||||
*/
|
||||
export interface LogGroupResourcePolicyProps {
|
||||
/**
|
||||
* The log group resource policy name
|
||||
*/
|
||||
readonly policyName: string;
|
||||
/**
|
||||
* The policy statements for the log group resource logs
|
||||
*/
|
||||
readonly policyStatements: [iam.PolicyStatement];
|
||||
}
|
||||
/**
|
||||
* Creates LogGroup resource policies.
|
||||
*/
|
||||
export declare class LogGroupResourcePolicy extends cr.AwsCustomResource {
|
||||
constructor(scope: Construct, id: string, props: LogGroupResourcePolicyProps);
|
||||
}
|
||||
1
cdk/node_modules/aws-cdk-lib/aws-opensearchservice/lib/log-group-resource-policy.js
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/aws-opensearchservice/lib/log-group-resource-policy.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.LogGroupResourcePolicy=void 0;var iam=()=>{var tmp=require("../../aws-iam");return iam=()=>tmp,tmp},cr=()=>{var tmp=require("../../custom-resources");return cr=()=>tmp,tmp};class LogGroupResourcePolicy extends cr().AwsCustomResource{constructor(scope,id,props){const policyDocument=new(iam()).PolicyDocument({statements:props.policyStatements});super(scope,id,{resourceType:"Custom::CloudwatchLogResourcePolicy",onUpdate:{service:"CloudWatchLogs",action:"putResourcePolicy",parameters:{policyName:props.policyName,policyDocument:JSON.stringify(policyDocument)},physicalResourceId:cr().PhysicalResourceId.of(id)},onDelete:{service:"CloudWatchLogs",action:"deleteResourcePolicy",parameters:{policyName:props.policyName},ignoreErrorCodesMatching:"ResourceNotFoundException"},policy:cr().AwsCustomResourcePolicy.fromSdkCalls({resources:["*"]})})}}exports.LogGroupResourcePolicy=LogGroupResourcePolicy;
|
||||
38
cdk/node_modules/aws-cdk-lib/aws-opensearchservice/lib/opensearch-access-policy.d.ts
generated
vendored
Normal file
38
cdk/node_modules/aws-cdk-lib/aws-opensearchservice/lib/opensearch-access-policy.d.ts
generated
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
import type { Construct } from 'constructs';
|
||||
import * as iam from '../../aws-iam';
|
||||
import * as cr from '../../custom-resources';
|
||||
/**
|
||||
* Construction properties for OpenSearchAccessPolicy
|
||||
*/
|
||||
export interface OpenSearchAccessPolicyProps {
|
||||
/**
|
||||
* The OpenSearch Domain name
|
||||
*/
|
||||
readonly domainName: string;
|
||||
/**
|
||||
* The OpenSearch Domain ARN
|
||||
*/
|
||||
readonly domainArn: string;
|
||||
/**
|
||||
* The access policy statements for the OpenSearch cluster
|
||||
*/
|
||||
readonly accessPolicies: iam.PolicyStatement[];
|
||||
/**
|
||||
* Flag to control verbosity of OpenSearch policy custom resource result
|
||||
* If verbose output is actively disabled it will only output specific fields
|
||||
* This is can be used to limit the response body of the custom resource, in cases it exceeds the CFN 4k limit
|
||||
* @default true
|
||||
*/
|
||||
readonly verboseOutput?: boolean;
|
||||
}
|
||||
/**
|
||||
* Creates LogGroup resource policies.
|
||||
*/
|
||||
export declare class OpenSearchAccessPolicy extends cr.AwsCustomResource {
|
||||
private accessPolicyStatements;
|
||||
constructor(scope: Construct, id: string, props: OpenSearchAccessPolicyProps);
|
||||
/**
|
||||
* Add policy statements to the domain access policy
|
||||
*/
|
||||
addAccessPolicies(...accessPolicyStatements: iam.PolicyStatement[]): void;
|
||||
}
|
||||
1
cdk/node_modules/aws-cdk-lib/aws-opensearchservice/lib/opensearch-access-policy.js
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/aws-opensearchservice/lib/opensearch-access-policy.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.OpenSearchAccessPolicy=void 0;var iam=()=>{var tmp=require("../../aws-iam");return iam=()=>tmp,tmp},cdk=()=>{var tmp=require("../../core");return cdk=()=>tmp,tmp},cr=()=>{var tmp=require("../../custom-resources");return cr=()=>tmp,tmp};class OpenSearchAccessPolicy extends cr().AwsCustomResource{accessPolicyStatements=[];constructor(scope,id,props){super(scope,id,{resourceType:"Custom::OpenSearchAccessPolicy",installLatestAwsSdk:!1,onUpdate:{action:"updateDomainConfig",service:"OpenSearch",parameters:{DomainName:props.domainName,AccessPolicies:cdk().Lazy.string({produce:()=>JSON.stringify(new(iam()).PolicyDocument({statements:this.accessPolicyStatements}).toJSON())})},outputPaths:props.verboseOutput===void 0||props.verboseOutput?["DomainConfig.AccessPolicies"]:["DomainConfig.AccessPolicies.Status.State","DomainConfig.AccessPolicies.Status.UpdateVersion"],physicalResourceId:cr().PhysicalResourceId.of(`${props.domainName}AccessPolicy`)},policy:cr().AwsCustomResourcePolicy.fromStatements([new(iam()).PolicyStatement({actions:["es:UpdateDomainConfig"],resources:[props.domainArn]})])}),this.addAccessPolicies(...props.accessPolicies)}addAccessPolicies(...accessPolicyStatements){this.accessPolicyStatements.push(...accessPolicyStatements)}}exports.OpenSearchAccessPolicy=OpenSearchAccessPolicy;
|
||||
33
cdk/node_modules/aws-cdk-lib/aws-opensearchservice/lib/opensearchservice-grants.generated.d.ts
generated
vendored
Normal file
33
cdk/node_modules/aws-cdk-lib/aws-opensearchservice/lib/opensearchservice-grants.generated.d.ts
generated
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
import * as opensearchservice from "./opensearchservice.generated";
|
||||
import * as iam from "../../aws-iam";
|
||||
import * as cdk from "../../core/lib";
|
||||
/**
|
||||
* Collection of grant methods for a IDomainRef
|
||||
*/
|
||||
export declare class DomainGrants {
|
||||
/**
|
||||
* Creates grants for DomainGrants
|
||||
*/
|
||||
static fromDomain(resource: opensearchservice.IDomainRef): DomainGrants;
|
||||
protected readonly resource: opensearchservice.IDomainRef;
|
||||
private constructor();
|
||||
/**
|
||||
* Grant the given identity custom permissions
|
||||
*/
|
||||
actions(grantee: iam.IGrantable, actions: Array<string>, options?: cdk.PermissionsOptions): iam.Grant;
|
||||
/**
|
||||
* Grant read permissions for this domain and its contents to an IAM
|
||||
* principal (Role/Group/User).
|
||||
*/
|
||||
read(grantee: iam.IGrantable): iam.Grant;
|
||||
/**
|
||||
* Grant write permissions for this domain and its contents to an IAM
|
||||
* principal (Role/Group/User).
|
||||
*/
|
||||
write(grantee: iam.IGrantable): iam.Grant;
|
||||
/**
|
||||
* Grant read/write permissions for this domain and its contents to an IAM
|
||||
* principal (Role/Group/User).
|
||||
*/
|
||||
readWrite(grantee: iam.IGrantable): iam.Grant;
|
||||
}
|
||||
1
cdk/node_modules/aws-cdk-lib/aws-opensearchservice/lib/opensearchservice-grants.generated.js
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/aws-opensearchservice/lib/opensearchservice-grants.generated.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.DomainGrants=void 0;var jsiiDeprecationWarnings=()=>{var tmp=require("../../.warnings.jsii.js");return jsiiDeprecationWarnings=()=>tmp,tmp};const JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti");var opensearchservice=()=>{var tmp=require("./opensearchservice.generated");return opensearchservice=()=>tmp,tmp},iam=()=>{var tmp=require("../../aws-iam");return iam=()=>tmp,tmp};class DomainGrants{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_opensearchservice.DomainGrants",version:"2.252.0"};static fromDomain(resource){try{jsiiDeprecationWarnings().aws_cdk_lib_interfaces_aws_opensearchservice_IDomainRef(resource)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.fromDomain),error}return new DomainGrants({resource})}resource;constructor(props){this.resource=props.resource}actions(grantee,actions,options={}){try{jsiiDeprecationWarnings().aws_cdk_lib_aws_iam_IGrantable(grantee),jsiiDeprecationWarnings().aws_cdk_lib_PermissionsOptions(options)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.actions),error}return iam().Grant.addToPrincipal({actions,grantee,resourceArns:options.resourceArns??[opensearchservice().CfnDomain.arnForDomain(this.resource)]})}read(grantee){try{jsiiDeprecationWarnings().aws_cdk_lib_aws_iam_IGrantable(grantee)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.read),error}const actions=["es:ESHttpGet","es:ESHttpHead"];return this.actions(grantee,actions,{resourceArns:[opensearchservice().CfnDomain.arnForDomain(this.resource),opensearchservice().CfnDomain.arnForDomain(this.resource)+"/*"]})}write(grantee){try{jsiiDeprecationWarnings().aws_cdk_lib_aws_iam_IGrantable(grantee)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.write),error}const actions=["es:ESHttpDelete","es:ESHttpPost","es:ESHttpPut","es:ESHttpPatch"];return this.actions(grantee,actions,{resourceArns:[opensearchservice().CfnDomain.arnForDomain(this.resource),opensearchservice().CfnDomain.arnForDomain(this.resource)+"/*"]})}readWrite(grantee){try{jsiiDeprecationWarnings().aws_cdk_lib_aws_iam_IGrantable(grantee)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.readWrite),error}const actions=["es:ESHttpGet","es:ESHttpHead","es:ESHttpDelete","es:ESHttpPost","es:ESHttpPut","es:ESHttpPatch"];return this.actions(grantee,actions,{resourceArns:[opensearchservice().CfnDomain.arnForDomain(this.resource),opensearchservice().CfnDomain.arnForDomain(this.resource)+"/*"]})}}exports.DomainGrants=DomainGrants;
|
||||
1765
cdk/node_modules/aws-cdk-lib/aws-opensearchservice/lib/opensearchservice.generated.d.ts
generated
vendored
Normal file
1765
cdk/node_modules/aws-cdk-lib/aws-opensearchservice/lib/opensearchservice.generated.d.ts
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1
cdk/node_modules/aws-cdk-lib/aws-opensearchservice/lib/opensearchservice.generated.js
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/aws-opensearchservice/lib/opensearchservice.generated.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
3
cdk/node_modules/aws-cdk-lib/aws-opensearchservice/lib/perms.d.ts
generated
vendored
Normal file
3
cdk/node_modules/aws-cdk-lib/aws-opensearchservice/lib/perms.d.ts
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
export declare const ES_READ_ACTIONS: string[];
|
||||
export declare const ES_WRITE_ACTIONS: string[];
|
||||
export declare const ES_READ_WRITE_ACTIONS: string[];
|
||||
1
cdk/node_modules/aws-cdk-lib/aws-opensearchservice/lib/perms.js
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/aws-opensearchservice/lib/perms.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ES_READ_WRITE_ACTIONS=exports.ES_WRITE_ACTIONS=exports.ES_READ_ACTIONS=void 0,exports.ES_READ_ACTIONS=["es:ESHttpGet","es:ESHttpHead"],exports.ES_WRITE_ACTIONS=["es:ESHttpDelete","es:ESHttpPost","es:ESHttpPut","es:ESHttpPatch"],exports.ES_READ_WRITE_ACTIONS=[...exports.ES_READ_ACTIONS,...exports.ES_WRITE_ACTIONS];
|
||||
102
cdk/node_modules/aws-cdk-lib/aws-opensearchservice/lib/version.d.ts
generated
vendored
Normal file
102
cdk/node_modules/aws-cdk-lib/aws-opensearchservice/lib/version.d.ts
generated
vendored
Normal file
@@ -0,0 +1,102 @@
|
||||
/**
|
||||
* OpenSearch version
|
||||
*/
|
||||
export declare class EngineVersion {
|
||||
readonly version: string;
|
||||
/** AWS Elasticsearch 1.5 */
|
||||
static readonly ELASTICSEARCH_1_5: EngineVersion;
|
||||
/** AWS Elasticsearch 2.3 */
|
||||
static readonly ELASTICSEARCH_2_3: EngineVersion;
|
||||
/** AWS Elasticsearch 5.1 */
|
||||
static readonly ELASTICSEARCH_5_1: EngineVersion;
|
||||
/** AWS Elasticsearch 5.3 */
|
||||
static readonly ELASTICSEARCH_5_3: EngineVersion;
|
||||
/** AWS Elasticsearch 5.5 */
|
||||
static readonly ELASTICSEARCH_5_5: EngineVersion;
|
||||
/** AWS Elasticsearch 5.6 */
|
||||
static readonly ELASTICSEARCH_5_6: EngineVersion;
|
||||
/** AWS Elasticsearch 6.0 */
|
||||
static readonly ELASTICSEARCH_6_0: EngineVersion;
|
||||
/** AWS Elasticsearch 6.2 */
|
||||
static readonly ELASTICSEARCH_6_2: EngineVersion;
|
||||
/** AWS Elasticsearch 6.3 */
|
||||
static readonly ELASTICSEARCH_6_3: EngineVersion;
|
||||
/** AWS Elasticsearch 6.4 */
|
||||
static readonly ELASTICSEARCH_6_4: EngineVersion;
|
||||
/** AWS Elasticsearch 6.5 */
|
||||
static readonly ELASTICSEARCH_6_5: EngineVersion;
|
||||
/** AWS Elasticsearch 6.7 */
|
||||
static readonly ELASTICSEARCH_6_7: EngineVersion;
|
||||
/** AWS Elasticsearch 6.8 */
|
||||
static readonly ELASTICSEARCH_6_8: EngineVersion;
|
||||
/** AWS Elasticsearch 7.1 */
|
||||
static readonly ELASTICSEARCH_7_1: EngineVersion;
|
||||
/** AWS Elasticsearch 7.4 */
|
||||
static readonly ELASTICSEARCH_7_4: EngineVersion;
|
||||
/** AWS Elasticsearch 7.7 */
|
||||
static readonly ELASTICSEARCH_7_7: EngineVersion;
|
||||
/** AWS Elasticsearch 7.8 */
|
||||
static readonly ELASTICSEARCH_7_8: EngineVersion;
|
||||
/** AWS Elasticsearch 7.9 */
|
||||
static readonly ELASTICSEARCH_7_9: EngineVersion;
|
||||
/** AWS Elasticsearch 7.10 */
|
||||
static readonly ELASTICSEARCH_7_10: EngineVersion;
|
||||
/** AWS OpenSearch 1.0 */
|
||||
static readonly OPENSEARCH_1_0: EngineVersion;
|
||||
/** AWS OpenSearch 1.1 */
|
||||
static readonly OPENSEARCH_1_1: EngineVersion;
|
||||
/** AWS OpenSearch 1.2 */
|
||||
static readonly OPENSEARCH_1_2: EngineVersion;
|
||||
/** AWS OpenSearch 1.3 */
|
||||
static readonly OPENSEARCH_1_3: EngineVersion;
|
||||
/**
|
||||
* AWS OpenSearch 2.3
|
||||
*
|
||||
* OpenSearch 2.3 is now available on Amazon OpenSearch Service across 26
|
||||
* regions globally. Please refer to the AWS Region Table for more
|
||||
* information about Amazon OpenSearch Service availability:
|
||||
* https://aws.amazon.com/about-aws/global-infrastructure/regional-product-services/
|
||||
* */
|
||||
static readonly OPENSEARCH_2_3: EngineVersion;
|
||||
/** AWS OpenSearch 2.5 */
|
||||
static readonly OPENSEARCH_2_5: EngineVersion;
|
||||
/** AWS OpenSearch 2.7 */
|
||||
static readonly OPENSEARCH_2_7: EngineVersion;
|
||||
/** AWS OpenSearch 2.9 */
|
||||
static readonly OPENSEARCH_2_9: EngineVersion;
|
||||
/**
|
||||
* AWS OpenSearch 2.10
|
||||
* @deprecated use latest version of the OpenSearch engine
|
||||
**/
|
||||
static readonly OPENSEARCH_2_10: EngineVersion;
|
||||
/** AWS OpenSearch 2.11 */
|
||||
static readonly OPENSEARCH_2_11: EngineVersion;
|
||||
/** AWS OpenSearch 2.13 */
|
||||
static readonly OPENSEARCH_2_13: EngineVersion;
|
||||
/** AWS OpenSearch 2.15 */
|
||||
static readonly OPENSEARCH_2_15: EngineVersion;
|
||||
/** AWS OpenSearch 2.17 */
|
||||
static readonly OPENSEARCH_2_17: EngineVersion;
|
||||
/** AWS OpenSearch 2.19 */
|
||||
static readonly OPENSEARCH_2_19: EngineVersion;
|
||||
/** AWS OpenSearch 3.1 */
|
||||
static readonly OPENSEARCH_3_1: EngineVersion;
|
||||
/** AWS OpenSearch 3.3 */
|
||||
static readonly OPENSEARCH_3_3: EngineVersion;
|
||||
/** AWS OpenSearch 3.5 */
|
||||
static readonly OPENSEARCH_3_5: EngineVersion;
|
||||
/**
|
||||
* Custom ElasticSearch version
|
||||
* @param version custom version number
|
||||
*/
|
||||
static elasticsearch(version: string): EngineVersion;
|
||||
/**
|
||||
* Custom OpenSearch version
|
||||
* @param version custom version number
|
||||
*/
|
||||
static openSearch(version: string): EngineVersion;
|
||||
/**
|
||||
* @param version engine version identifier
|
||||
*/
|
||||
private constructor();
|
||||
}
|
||||
1
cdk/node_modules/aws-cdk-lib/aws-opensearchservice/lib/version.js
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/aws-opensearchservice/lib/version.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.EngineVersion=void 0;const JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti");class EngineVersion{version;static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_opensearchservice.EngineVersion",version:"2.252.0"};static ELASTICSEARCH_1_5=EngineVersion.elasticsearch("1.5");static ELASTICSEARCH_2_3=EngineVersion.elasticsearch("2.3");static ELASTICSEARCH_5_1=EngineVersion.elasticsearch("5.1");static ELASTICSEARCH_5_3=EngineVersion.elasticsearch("5.3");static ELASTICSEARCH_5_5=EngineVersion.elasticsearch("5.5");static ELASTICSEARCH_5_6=EngineVersion.elasticsearch("5.6");static ELASTICSEARCH_6_0=EngineVersion.elasticsearch("6.0");static ELASTICSEARCH_6_2=EngineVersion.elasticsearch("6.2");static ELASTICSEARCH_6_3=EngineVersion.elasticsearch("6.3");static ELASTICSEARCH_6_4=EngineVersion.elasticsearch("6.4");static ELASTICSEARCH_6_5=EngineVersion.elasticsearch("6.5");static ELASTICSEARCH_6_7=EngineVersion.elasticsearch("6.7");static ELASTICSEARCH_6_8=EngineVersion.elasticsearch("6.8");static ELASTICSEARCH_7_1=EngineVersion.elasticsearch("7.1");static ELASTICSEARCH_7_4=EngineVersion.elasticsearch("7.4");static ELASTICSEARCH_7_7=EngineVersion.elasticsearch("7.7");static ELASTICSEARCH_7_8=EngineVersion.elasticsearch("7.8");static ELASTICSEARCH_7_9=EngineVersion.elasticsearch("7.9");static ELASTICSEARCH_7_10=EngineVersion.elasticsearch("7.10");static OPENSEARCH_1_0=EngineVersion.openSearch("1.0");static OPENSEARCH_1_1=EngineVersion.openSearch("1.1");static OPENSEARCH_1_2=EngineVersion.openSearch("1.2");static OPENSEARCH_1_3=EngineVersion.openSearch("1.3");static OPENSEARCH_2_3=EngineVersion.openSearch("2.3");static OPENSEARCH_2_5=EngineVersion.openSearch("2.5");static OPENSEARCH_2_7=EngineVersion.openSearch("2.7");static OPENSEARCH_2_9=EngineVersion.openSearch("2.9");static OPENSEARCH_2_10=EngineVersion.openSearch("2.10");static OPENSEARCH_2_11=EngineVersion.openSearch("2.11");static OPENSEARCH_2_13=EngineVersion.openSearch("2.13");static OPENSEARCH_2_15=EngineVersion.openSearch("2.15");static OPENSEARCH_2_17=EngineVersion.openSearch("2.17");static OPENSEARCH_2_19=EngineVersion.openSearch("2.19");static OPENSEARCH_3_1=EngineVersion.openSearch("3.1");static OPENSEARCH_3_3=EngineVersion.openSearch("3.3");static OPENSEARCH_3_5=EngineVersion.openSearch("3.5");static elasticsearch(version){return new EngineVersion(`Elasticsearch_${version}`)}static openSearch(version){return new EngineVersion(`OpenSearch_${version}`)}constructor(version){this.version=version}}exports.EngineVersion=EngineVersion;
|
||||
Reference in New Issue
Block a user