software.amazon.awscdk.services.apprunner.alpha.ObservabilityConfiguration Maven / Gradle / Ivy
Show all versions of apprunner-alpha Show documentation
package software.amazon.awscdk.services.apprunner.alpha;
/**
* (experimental) The App Runner Observability configuration.
*
* Example:
*
*
* ObservabilityConfiguration observabilityConfiguration = ObservabilityConfiguration.Builder.create(this, "ObservabilityConfiguration")
* .observabilityConfigurationName("MyObservabilityConfiguration")
* .traceConfigurationVendor(TraceConfigurationVendor.AWSXRAY)
* .build();
* Service.Builder.create(this, "DemoService")
* .source(Source.fromEcrPublic(EcrPublicProps.builder()
* .imageConfiguration(ImageConfiguration.builder().port(8000).build())
* .imageIdentifier("public.ecr.aws/aws-containers/hello-app-runner:latest")
* .build()))
* .observabilityConfiguration(observabilityConfiguration)
* .build();
*
*/
@javax.annotation.Generated(value = "jsii-pacmak/1.104.0 (build e79254c)", date = "2024-12-17T21:37:41.222Z")
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@software.amazon.jsii.Jsii(module = software.amazon.awscdk.services.apprunner.alpha.$Module.class, fqn = "@aws-cdk/aws-apprunner-alpha.ObservabilityConfiguration")
public class ObservabilityConfiguration extends software.amazon.awscdk.Resource implements software.amazon.awscdk.services.apprunner.alpha.IObservabilityConfiguration {
protected ObservabilityConfiguration(final software.amazon.jsii.JsiiObjectRef objRef) {
super(objRef);
}
protected ObservabilityConfiguration(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 ObservabilityConfiguration(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.apprunner.alpha.ObservabilityConfigurationProps 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) Imports an App Runner Observability Configuration from its ARN.
*
* @param scope This parameter is required.
* @param id This parameter is required.
* @param observabilityConfigurationArn This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public static @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.apprunner.alpha.IObservabilityConfiguration fromArn(final @org.jetbrains.annotations.NotNull software.constructs.Construct scope, final @org.jetbrains.annotations.NotNull java.lang.String id, final @org.jetbrains.annotations.NotNull java.lang.String observabilityConfigurationArn) {
return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.awscdk.services.apprunner.alpha.ObservabilityConfiguration.class, "fromArn", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.apprunner.alpha.IObservabilityConfiguration.class), new Object[] { java.util.Objects.requireNonNull(scope, "scope is required"), java.util.Objects.requireNonNull(id, "id is required"), java.util.Objects.requireNonNull(observabilityConfigurationArn, "observabilityConfigurationArn is required") });
}
/**
* (experimental) Imports an App Runner Observability Configuration from attributes.
*
* @param scope This parameter is required.
* @param id This parameter is required.
* @param attrs This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public static @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.apprunner.alpha.IObservabilityConfiguration fromObservabilityConfigurationAttributes(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.apprunner.alpha.ObservabilityConfigurationAttributes attrs) {
return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.awscdk.services.apprunner.alpha.ObservabilityConfiguration.class, "fromObservabilityConfigurationAttributes", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.apprunner.alpha.IObservabilityConfiguration.class), new Object[] { java.util.Objects.requireNonNull(scope, "scope is required"), java.util.Objects.requireNonNull(id, "id is required"), java.util.Objects.requireNonNull(attrs, "attrs is required") });
}
/**
* (experimental) The ARN of the Observability configuration.
*/
@Override
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public @org.jetbrains.annotations.NotNull java.lang.String getObservabilityConfigurationArn() {
return software.amazon.jsii.Kernel.get(this, "observabilityConfigurationArn", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
}
/**
* (experimental) The name of the Observability configuration.
*/
@Override
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public @org.jetbrains.annotations.NotNull java.lang.String getObservabilityConfigurationName() {
return software.amazon.jsii.Kernel.get(this, "observabilityConfigurationName", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
}
/**
* (experimental) The revision of the Observability configuration.
*/
@Override
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public @org.jetbrains.annotations.NotNull java.lang.Number getObservabilityConfigurationRevision() {
return software.amazon.jsii.Kernel.get(this, "observabilityConfigurationRevision", software.amazon.jsii.NativeType.forClass(java.lang.Number.class));
}
/**
* (experimental) A fluent builder for {@link software.amazon.awscdk.services.apprunner.alpha.ObservabilityConfiguration}.
*/
@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 This parameter is required.
* @param 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 software.amazon.awscdk.services.apprunner.alpha.ObservabilityConfigurationProps.Builder props;
private Builder(final software.constructs.Construct scope, final java.lang.String id) {
this.scope = scope;
this.id = id;
this.props = new software.amazon.awscdk.services.apprunner.alpha.ObservabilityConfigurationProps.Builder();
}
/**
* (experimental) The implementation provider chosen for tracing App Runner services.
*
* @return {@code this}
* @param traceConfigurationVendor The implementation provider chosen for tracing App Runner services. This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder traceConfigurationVendor(final software.amazon.awscdk.services.apprunner.alpha.TraceConfigurationVendor traceConfigurationVendor) {
this.props.traceConfigurationVendor(traceConfigurationVendor);
return this;
}
/**
* (experimental) The name for the ObservabilityConfiguration.
*
* Default: - a name generated by CloudFormation
*
* @return {@code this}
* @param observabilityConfigurationName The name for the ObservabilityConfiguration. This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder observabilityConfigurationName(final java.lang.String observabilityConfigurationName) {
this.props.observabilityConfigurationName(observabilityConfigurationName);
return this;
}
/**
* @return a newly built instance of {@link software.amazon.awscdk.services.apprunner.alpha.ObservabilityConfiguration}.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@Override
public software.amazon.awscdk.services.apprunner.alpha.ObservabilityConfiguration build() {
return new software.amazon.awscdk.services.apprunner.alpha.ObservabilityConfiguration(
this.scope,
this.id,
this.props.build()
);
}
}
}