You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: create/opensearch.go
+21-8Lines changed: 21 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,7 @@ package create
2
2
3
3
import (
4
4
"context"
5
+
"fmt"
5
6
"strings"
6
7
7
8
"github.com/alecthomas/kong"
@@ -20,7 +21,7 @@ type openSearchCmd struct {
20
21
ClusterType storage.OpenSearchClusterType`placeholder:"${opensearch_cluster_type_default}" help:"Type of cluster. Available types: ${opensearch_cluster_types}"`
21
22
MachineTypestring`placeholder:"${opensearch_machine_type_default}" help:"Defines the sizing of an OpenSearch instance. Available types: ${opensearch_machine_types}"`
22
23
AllowedCidrs []meta.IPv4CIDR`placeholder:"203.0.113.1/32" help:"IP addresses allowed to connect to the public endpoint."`
23
-
BucketUsers []string`placeholder:"user1,user2" help:"BucketUsers specify the users who have read access to the OpenSearch snapshots bucket."`
24
+
BucketUsers []LocalReference`placeholder:"user1,user2" help:"BucketUsers specify the users who have read access to the OpenSearch snapshots bucket."`
24
25
PublicNetworking*bool`negatable:"" help:"Enable or disable public networking. Enabled by default."`
Copy file name to clipboardExpand all lines: update/opensearch.go
+10-5Lines changed: 10 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -15,10 +15,10 @@ import (
15
15
16
16
typeopenSearchCmdstruct {
17
17
resourceCmd
18
-
MachineType*string`help:"Configures OpenSearch to use a specified machine type." placeholder:"nine-search-m"`
19
-
AllowedCidrs*[]meta.IPv4CIDR`help:"IP addresses allowed to connect to the cluster. These restrictions do not apply for service connections." placeholder:"203.0.113.1/32"`
20
-
BucketUsers*[]string`help:"Users who have read access to the OpenSearch snapshots bucket." placeholder:"user1,user2"`
21
-
PublicNetworking*bool`negatable:"" help:"Enable or disable public networking."`
18
+
MachineType*string`help:"Configures OpenSearch to use a specified machine type." placeholder:"nine-search-m"`
19
+
AllowedCidrs*[]meta.IPv4CIDR`help:"IP addresses allowed to connect to the cluster. These restrictions do not apply for service connections." placeholder:"203.0.113.1/32"`
20
+
BucketUsers*[]create.LocalReference`help:"Users who have read access to the OpenSearch snapshots bucket." placeholder:"user1,user2"`
21
+
PublicNetworking*bool`negatable:"" help:"Enable or disable public networking."`
22
22
23
23
// Deprecated Flags
24
24
PublicNetworkingEnabled*bool`hidden:"" help:"If public networking is \"false\", it is only possible to access the service by configuring a service connection."`
0 commit comments