/
EbsOptions.go
59 lines (56 loc) · 2.24 KB
/
EbsOptions.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
package awsopensearchservice
import (
"github.com/aws/aws-cdk-go/awscdk/v2/awsec2"
)
// The configurations of Amazon Elastic Block Store (Amazon EBS) volumes that are attached to data nodes in the Amazon OpenSearch Service domain.
//
// For more information, see
// [Amazon EBS](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AmazonEBS.html)
// in the Amazon Elastic Compute Cloud Developer Guide.
//
// Example:
// domain := awscdk.NewDomain(this, jsii.String("Domain"), &DomainProps{
// Version: awscdk.EngineVersion_OPENSEARCH_1_0(),
// Ebs: &EbsOptions{
// VolumeSize: jsii.Number(100),
// VolumeType: ec2.EbsDeviceVolumeType_GENERAL_PURPOSE_SSD,
// },
// NodeToNodeEncryption: jsii.Boolean(true),
// EncryptionAtRest: &EncryptionAtRestOptions{
// Enabled: jsii.Boolean(true),
// },
// })
//
type EbsOptions struct {
// Specifies whether Amazon EBS volumes are attached to data nodes in the Amazon OpenSearch Service domain.
// Default: - true.
//
Enabled *bool `field:"optional" json:"enabled" yaml:"enabled"`
// The number of I/O operations per second (IOPS) that the volume supports.
//
// This property applies only to the gp3 and Provisioned IOPS (SSD) EBS
// volume type.
// Default: - iops are not set.
//
Iops *float64 `field:"optional" json:"iops" yaml:"iops"`
// The throughput (in MiB/s) of the EBS volumes attached to data nodes.
//
// This property applies only to the gp3 volume type.
// Default: - throughput is not set.
//
Throughput *float64 `field:"optional" json:"throughput" yaml:"throughput"`
// The size (in GiB) of the EBS volume for each data node.
//
// The minimum and
// maximum size of an EBS volume depends on the EBS volume type and the
// instance type to which it is attached. For valid values, see
// [EBS volume size limits](https://docs.aws.amazon.com/opensearch-service/latest/developerguide/limits.html#ebsresource)
// in the Amazon OpenSearch Service Developer Guide.
// Default: 10.
//
VolumeSize *float64 `field:"optional" json:"volumeSize" yaml:"volumeSize"`
// The EBS volume type to use with the Amazon OpenSearch Service domain, such as standard, gp2, io1.
// Default: gp2.
//
VolumeType awsec2.EbsDeviceVolumeType `field:"optional" json:"volumeType" yaml:"volumeType"`
}