Skip to content
v2.278.0

NamespaceKeyValidationProperty Struct ​

Validation rules for namespace variable values.

Multiple rules can be specified and all must pass.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_bedrockagentcore as bedrockagentcore } from 'aws-cdk-lib';
const namespaceKeyValidationProperty: bedrockagentcore.CfnMemory.NamespaceKeyValidationProperty = {
  allowedValues: ['allowedValues'],
  regexPattern: 'regexPattern',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_bedrockagentcore as bedrockagentcore

namespace_key_validation_property = bedrockagentcore.CfnMemory.NamespaceKeyValidationProperty(
    allowed_values=["allowedValues"],
    regex_pattern="regexPattern"
)
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.bedrockagentcore.*;

NamespaceKeyValidationProperty namespaceKeyValidationProperty = NamespaceKeyValidationProperty.builder()
        .allowedValues(List.of("allowedValues"))
        .regexPattern("regexPattern")
        .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.BedrockAgentCore;

var namespaceKeyValidationProperty = new NamespaceKeyValidationProperty {
    AllowedValues = new [] { "allowedValues" },
    RegexPattern = "regexPattern"
};
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"

namespaceKeyValidationProperty := &NamespaceKeyValidationProperty{
	AllowedValues: []*string{
		jsii.String("allowedValues"),
	},
	RegexPattern: jsii.String("regexPattern"),
}

Properties ​

allowedValuesoptionalstring[]allowed_valuesoptionaltyping.List[str]allowedValuesoptionalList<String>AllowedValuesoptionalstring[]AllowedValuesoptional*[]*string #
List of allowed values for this namespace variable.
regexPatternoptionalstringregex_patternoptionalstrregexPatternoptionalStringRegexPatternoptionalstringRegexPatternoptional*string #
A regex pattern that a namespace variable value must match.