Skip to content
v2.278.0

CfnSegmentProps Struct ​

Properties for defining a CfnSegment.

Example ​

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

  // the properties below are optional
  description: 'description',
  pattern: 'pattern',
  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_evidently as evidently

cfn_segment_props = evidently.CfnSegmentProps(
    name="name",

    # the properties below are optional
    description="description",
    pattern="pattern",
    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.evidently.*;

CfnSegmentProps cfnSegmentProps = CfnSegmentProps.builder()
        .name("name")

        // the properties below are optional
        .description("description")
        .pattern("pattern")
        .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.Evidently;

var cfnSegmentProps = new CfnSegmentProps {
    Name = "name",

    // the properties below are optional
    Description = "description",
    Pattern = "pattern",
    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"

cfnSegmentProps := &CfnSegmentProps{
	Name: jsii.String("name"),

	// the properties below are optional
	Description: jsii.String("description"),
	Pattern: jsii.String("pattern"),
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}

Properties ​

descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string #
An optional description for this segment.
namestringnamestrnameStringNamestringName*string required #
A name for the segment.
patternoptionalstringpatternoptionalstrpatternoptionalStringPatternoptionalstringPatternoptional*string #
The pattern to use for the segment.

For more information about pattern syntax, see Segment rule pattern syntax .

tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #
Assigns one or more tags (key-value pairs) to the feature.
notes

Tags can help you organize and categorize your resources. You can also use them to scope user permissions by granting a user permission to access or change only resources with certain tag values.

Tags don't have any semantic meaning to AWS and are interpreted strictly as strings of characters.

You can associate as many as 50 tags with a feature.

For more information, see Tagging AWS resources .