io.github.cdklabs.generative_ai_cdk_constructs.AossCwDashboard Maven / Gradle / Ivy
Show all versions of generative-ai-cdk-constructs Show documentation
package io.github.cdklabs.generative_ai_cdk_constructs;
/**
* (experimental) The BedrockCwDashboard class.
*/
@javax.annotation.Generated(value = "jsii-pacmak/1.103.1 (build bef2dea)", date = "2024-09-23T22:27:31.824Z")
@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.AossCwDashboard")
public class AossCwDashboard extends software.constructs.Construct {
protected AossCwDashboard(final software.amazon.jsii.JsiiObjectRef objRef) {
super(objRef);
}
protected AossCwDashboard(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) {
super(initializationMode);
}
/**
* (experimental) Constructs a new instance of the AossCwDashboard class.
*
* @param scope
- represents the scope for all the resources.
This parameter is required.
* @param id - this is a a scope-unique id.
This parameter is required.
* @param props - user provided props for the construct.
This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public AossCwDashboard(final @org.jetbrains.annotations.NotNull software.constructs.Construct scope, final @org.jetbrains.annotations.NotNull java.lang.String id, final @org.jetbrains.annotations.NotNull io.github.cdklabs.generative_ai_cdk_constructs.AossCwDashboardProps 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") });
}
/**
* @param collectionName This parameter is required.
* @param collectionId This parameter is required.
* @param props This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public void addCollectionMonitoringbyAttributes(final @org.jetbrains.annotations.NotNull java.lang.String collectionName, final @org.jetbrains.annotations.NotNull java.lang.String collectionId, final @org.jetbrains.annotations.NotNull io.github.cdklabs.generative_ai_cdk_constructs.CollectionMonitoringProps props) {
software.amazon.jsii.Kernel.call(this, "addCollectionMonitoringbyAttributes", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(collectionName, "collectionName is required"), java.util.Objects.requireNonNull(collectionId, "collectionId is required"), java.util.Objects.requireNonNull(props, "props is required") });
}
/**
* @param collection This parameter is required.
* @param props This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public void addCollectionMonitoringByCollection(final @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.opensearchserverless.CfnCollection collection, final @org.jetbrains.annotations.NotNull io.github.cdklabs.generative_ai_cdk_constructs.CollectionMonitoringProps props) {
software.amazon.jsii.Kernel.call(this, "addCollectionMonitoringByCollection", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(collection, "collection is required"), java.util.Objects.requireNonNull(props, "props is required") });
}
/**
* @param collectionName This parameter is required.
* @param collectionId This parameter is required.
* @param IndexName This parameter is required.
* @param IndexId This parameter is required.
* @param props This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public void addIndexMonitoringByAtributes(final @org.jetbrains.annotations.NotNull java.lang.String collectionName, final @org.jetbrains.annotations.NotNull java.lang.String collectionId, final @org.jetbrains.annotations.NotNull java.lang.String IndexName, final @org.jetbrains.annotations.NotNull java.lang.String IndexId, final @org.jetbrains.annotations.NotNull io.github.cdklabs.generative_ai_cdk_constructs.IndexMonitoringProps props) {
software.amazon.jsii.Kernel.call(this, "addIndexMonitoringByAtributes", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(collectionName, "collectionName is required"), java.util.Objects.requireNonNull(collectionId, "collectionId is required"), java.util.Objects.requireNonNull(IndexName, "IndexName is required"), java.util.Objects.requireNonNull(IndexId, "IndexId is required"), java.util.Objects.requireNonNull(props, "props is required") });
}
/**
* (experimental) Returns the instance of CloudWatch dashboard used by the construct.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.cloudwatch.Dashboard getDashboard() {
return software.amazon.jsii.Kernel.get(this, "dashboard", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.cloudwatch.Dashboard.class));
}
/**
* (experimental) A fluent builder for {@link io.github.cdklabs.generative_ai_cdk_constructs.AossCwDashboard}.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public static final class Builder implements software.amazon.jsii.Builder {
/**
* @return a new instance of {@link Builder}.
* @param scope - represents the scope for all the resources.
This parameter is required.
* @param id - this is a a scope-unique id.
This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public static Builder create(final software.constructs.Construct scope, final java.lang.String id) {
return new Builder(scope, id);
}
private final software.constructs.Construct scope;
private final java.lang.String id;
private final io.github.cdklabs.generative_ai_cdk_constructs.AossCwDashboardProps.Builder props;
private Builder(final software.constructs.Construct scope, final java.lang.String id) {
this.scope = scope;
this.id = id;
this.props = new io.github.cdklabs.generative_ai_cdk_constructs.AossCwDashboardProps.Builder();
}
/**
* (experimental) Optional A name for the dashboard which will be created.
*
* If existingDashboard is defined, this value will be ignored.
* If not provided, the construct will create a new dashboard named 'BedrockMetricsDashboard'
*
* Default: - none
*
* @return {@code this}
* @param dashboardName Optional A name for the dashboard which will be created. This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder dashboardName(final java.lang.String dashboardName) {
this.props.dashboardName(dashboardName);
return this;
}
/**
* (experimental) Optional An existing dashboard where metrics will be added to.
*
* If not provided, the construct will create a new dashboard
*
* Default: - none
*
* @return {@code this}
* @param existingDashboard Optional An existing dashboard where metrics will be added to. This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder existingDashboard(final software.amazon.awscdk.services.cloudwatch.Dashboard existingDashboard) {
this.props.existingDashboard(existingDashboard);
return this;
}
/**
* @return a newly built instance of {@link io.github.cdklabs.generative_ai_cdk_constructs.AossCwDashboard}.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@Override
public io.github.cdklabs.generative_ai_cdk_constructs.AossCwDashboard build() {
return new io.github.cdklabs.generative_ai_cdk_constructs.AossCwDashboard(
this.scope,
this.id,
this.props.build()
);
}
}
}