io.github.cdklabs.generative_ai_cdk_constructs.bedrock.GuardrailVersion Maven / Gradle / Ivy
Show all versions of generative-ai-cdk-constructs Show documentation
package io.github.cdklabs.generative_ai_cdk_constructs.bedrock;
/**
* (experimental) Creates a version of the guardrail.
*
* Use this API to create a snapshot of the guardrail when you are satisfied with
* a configuration, or to compare the configuration with another version.
*/
@javax.annotation.Generated(value = "jsii-pacmak/1.103.1 (build bef2dea)", date = "2024-09-23T18:35:37.391Z")
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@software.amazon.jsii.Jsii(module = io.github.cdklabs.generative_ai_cdk_constructs.$Module.class, fqn = "@cdklabs/generative-ai-cdk-constructs.bedrock.GuardrailVersion")
public class GuardrailVersion extends software.constructs.Construct {
protected GuardrailVersion(final software.amazon.jsii.JsiiObjectRef objRef) {
super(objRef);
}
protected GuardrailVersion(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) {
super(initializationMode);
}
/**
* @param scope This parameter is required.
* @param id This parameter is required.
* @param props This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public GuardrailVersion(final @org.jetbrains.annotations.NotNull software.constructs.Construct scope, final @org.jetbrains.annotations.NotNull java.lang.String id, final @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.bedrock.CfnGuardrailVersionProps props) {
super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);
software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(scope, "scope is required"), java.util.Objects.requireNonNull(id, "id is required"), java.util.Objects.requireNonNull(props, "props is required") });
}
/**
* (experimental) Instance of guardrail version.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.bedrock.CfnGuardrailVersion getGuardrailVersionInstance() {
return software.amazon.jsii.Kernel.get(this, "guardrailVersionInstance", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.bedrock.CfnGuardrailVersion.class));
}
}