Skip to content
v2.278.0

CfnCollectionGroupProps Struct ​

Properties for defining a CfnCollectionGroup.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_opensearchserverless as opensearchserverless } from 'aws-cdk-lib';
const cfnCollectionGroupProps: opensearchserverless.CfnCollectionGroupProps = {
  name: 'name',
  standbyReplicas: 'standbyReplicas',

  // the properties below are optional
  capacityLimits: {
    maxIndexingCapacityInOcu: 123,
    maxSearchCapacityInOcu: 123,
    minIndexingCapacityInOcu: 123,
    minSearchCapacityInOcu: 123,
  },
  description: 'description',
  generation: 'generation',
  tags: [{
    key: 'key',
    value: 'value',
  }],
};
python
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_opensearchserverless as opensearchserverless

cfn_collection_group_props = opensearchserverless.CfnCollectionGroupProps(
    name="name",
    standby_replicas="standbyReplicas",

    # the properties below are optional
    capacity_limits=opensearchserverless.CfnCollectionGroup.CapacityLimitsProperty(
        max_indexing_capacity_in_ocu=123,
        max_search_capacity_in_ocu=123,
        min_indexing_capacity_in_ocu=123,
        min_search_capacity_in_ocu=123
    ),
    description="description",
    generation="generation",
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.opensearchserverless.*;

CfnCollectionGroupProps cfnCollectionGroupProps = CfnCollectionGroupProps.builder()
        .name("name")
        .standbyReplicas("standbyReplicas")

        // the properties below are optional
        .capacityLimits(CapacityLimitsProperty.builder()
                .maxIndexingCapacityInOcu(123)
                .maxSearchCapacityInOcu(123)
                .minIndexingCapacityInOcu(123)
                .minSearchCapacityInOcu(123)
                .build())
        .description("description")
        .generation("generation")
        .tags(List.of(CfnTag.builder()
                .key("key")
                .value("value")
                .build()))
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.OpenSearchServerless;

var cfnCollectionGroupProps = new CfnCollectionGroupProps {
    Name = "name",
    StandbyReplicas = "standbyReplicas",

    // the properties below are optional
    CapacityLimits = new CapacityLimitsProperty {
        MaxIndexingCapacityInOcu = 123,
        MaxSearchCapacityInOcu = 123,
        MinIndexingCapacityInOcu = 123,
        MinSearchCapacityInOcu = 123
    },
    Description = "description",
    Generation = "generation",
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnCollectionGroupProps := &CfnCollectionGroupProps{
	Name: jsii.String("name"),
	StandbyReplicas: jsii.String("standbyReplicas"),

	// the properties below are optional
	CapacityLimits: &CapacityLimitsProperty{
		MaxIndexingCapacityInOcu: jsii.Number(123),
		MaxSearchCapacityInOcu: jsii.Number(123),
		MinIndexingCapacityInOcu: jsii.Number(123),
		MinSearchCapacityInOcu: jsii.Number(123),
	},
	Description: jsii.String("description"),
	Generation: jsii.String("generation"),
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}

Properties ​

capacityLimitsoptionalIResolvable | CfnCollectionGroup.CapacityLimitsPropertycapacity_limitsoptionaltyping.Union[IResolvable, CapacityLimitsProperty]capacityLimitsoptionalIResolvableCapacityLimitsoptionalIResolvableCapacityLimitsoptionalinterface{} #
descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string #
The description of the collection group.
generationoptionalstringgenerationoptionalstrgenerationoptionalStringGenerationoptionalstringGenerationoptional*string #
The generation of Amazon OpenSearch Serverless for the collection group.

Valid values are CLASSIC and NEXTGEN.

namestringnamestrnameStringNamestringName*string required #
The name of the collection group.
standbyReplicasstringstandby_replicasstrstandbyReplicasStringStandbyReplicasstringStandbyReplicas*string required #
Indicates whether standby replicas are used for the collection group.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #
An array of key-value pairs to apply to this resource.