Skip to content
v2.278.0

GuardrailConfigurationProperty Struct ​

Configuration information for a guardrail that you use with the Converse operation.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_bedrock as bedrock } from 'aws-cdk-lib';
const guardrailConfigurationProperty: bedrock.CfnFlow.GuardrailConfigurationProperty = {
  guardrailIdentifier: 'guardrailIdentifier',
  guardrailVersion: 'guardrailVersion',
};
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_bedrock as bedrock

guardrail_configuration_property = bedrock.CfnFlow.GuardrailConfigurationProperty(
    guardrail_identifier="guardrailIdentifier",
    guardrail_version="guardrailVersion"
)
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.bedrock.*;

GuardrailConfigurationProperty guardrailConfigurationProperty = GuardrailConfigurationProperty.builder()
        .guardrailIdentifier("guardrailIdentifier")
        .guardrailVersion("guardrailVersion")
        .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.Bedrock;

var guardrailConfigurationProperty = new GuardrailConfigurationProperty {
    GuardrailIdentifier = "guardrailIdentifier",
    GuardrailVersion = "guardrailVersion"
};
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"

guardrailConfigurationProperty := &GuardrailConfigurationProperty{
	GuardrailIdentifier: jsii.String("guardrailIdentifier"),
	GuardrailVersion: jsii.String("guardrailVersion"),
}

Properties ​

guardrailIdentifieroptionalstringguardrail_identifieroptionalstrguardrailIdentifieroptionalStringGuardrailIdentifieroptionalstringGuardrailIdentifieroptional*string #
The identifier for the guardrail.
guardrailVersionoptionalstringguardrail_versionoptionalstrguardrailVersionoptionalStringGuardrailVersionoptionalstringGuardrailVersionoptional*string #
The version of the guardrail.