Skip to content
v2.278.0

CfnListProps Struct ​

Properties for defining a CfnList.

Example ​

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

  // the properties below are optional
  description: 'description',
  elements: ['elements'],
  tags: [{
    key: 'key',
    value: 'value',
  }],
  variableType: 'variableType',
};
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_frauddetector as frauddetector

cfn_list_props = frauddetector.CfnListProps(
    name="name",

    # the properties below are optional
    description="description",
    elements=["elements"],
    tags=[CfnTag(
        key="key",
        value="value"
    )],
    variable_type="variableType"
)
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.frauddetector.*;

CfnListProps cfnListProps = CfnListProps.builder()
        .name("name")

        // the properties below are optional
        .description("description")
        .elements(List.of("elements"))
        .tags(List.of(CfnTag.builder()
                .key("key")
                .value("value")
                .build()))
        .variableType("variableType")
        .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.FraudDetector;

var cfnListProps = new CfnListProps {
    Name = "name",

    // the properties below are optional
    Description = "description",
    Elements = new [] { "elements" },
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } },
    VariableType = "variableType"
};
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"

cfnListProps := &CfnListProps{
	Name: jsii.String("name"),

	// the properties below are optional
	Description: jsii.String("description"),
	Elements: []*string{
		jsii.String("elements"),
	},
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
	VariableType: jsii.String("variableType"),
}

Properties ​

descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string #
The description of the list.
elementsoptionalstring[]elementsoptionaltyping.List[str]elementsoptionalList<String>Elementsoptionalstring[]Elementsoptional*[]*string #
The elements in the list.
namestringnamestrnameStringNamestringName*string required #
The name of the list.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #
An array of key-value pairs to apply to this resource.

For more information, see Tag .

variableTypeoptionalstringvariable_typeoptionalstrvariableTypeoptionalStringVariableTypeoptionalstringVariableTypeoptional*string #
The variable type of the list.

For more information, see Variable types