com.pulumi.aws.cloudwatch.outputs.EventTargetBatchTarget Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws Show documentation
Show all versions of aws Show documentation
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.aws.cloudwatch.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class EventTargetBatchTarget {
/**
* @return The size of the array, if this is an array batch job. Valid values are integers between 2 and 10,000.
*
*/
private @Nullable Integer arraySize;
/**
* @return The number of times to attempt to retry, if the job fails. Valid values are 1 to 10.
*
*/
private @Nullable Integer jobAttempts;
/**
* @return The ARN or name of the job definition to use if the event target is an AWS Batch job. This job definition must already exist.
*
*/
private String jobDefinition;
/**
* @return The name to use for this execution of the job, if the target is an AWS Batch job.
*
*/
private String jobName;
private EventTargetBatchTarget() {}
/**
* @return The size of the array, if this is an array batch job. Valid values are integers between 2 and 10,000.
*
*/
public Optional arraySize() {
return Optional.ofNullable(this.arraySize);
}
/**
* @return The number of times to attempt to retry, if the job fails. Valid values are 1 to 10.
*
*/
public Optional jobAttempts() {
return Optional.ofNullable(this.jobAttempts);
}
/**
* @return The ARN or name of the job definition to use if the event target is an AWS Batch job. This job definition must already exist.
*
*/
public String jobDefinition() {
return this.jobDefinition;
}
/**
* @return The name to use for this execution of the job, if the target is an AWS Batch job.
*
*/
public String jobName() {
return this.jobName;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(EventTargetBatchTarget defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable Integer arraySize;
private @Nullable Integer jobAttempts;
private String jobDefinition;
private String jobName;
public Builder() {}
public Builder(EventTargetBatchTarget defaults) {
Objects.requireNonNull(defaults);
this.arraySize = defaults.arraySize;
this.jobAttempts = defaults.jobAttempts;
this.jobDefinition = defaults.jobDefinition;
this.jobName = defaults.jobName;
}
@CustomType.Setter
public Builder arraySize(@Nullable Integer arraySize) {
this.arraySize = arraySize;
return this;
}
@CustomType.Setter
public Builder jobAttempts(@Nullable Integer jobAttempts) {
this.jobAttempts = jobAttempts;
return this;
}
@CustomType.Setter
public Builder jobDefinition(String jobDefinition) {
if (jobDefinition == null) {
throw new MissingRequiredPropertyException("EventTargetBatchTarget", "jobDefinition");
}
this.jobDefinition = jobDefinition;
return this;
}
@CustomType.Setter
public Builder jobName(String jobName) {
if (jobName == null) {
throw new MissingRequiredPropertyException("EventTargetBatchTarget", "jobName");
}
this.jobName = jobName;
return this;
}
public EventTargetBatchTarget build() {
final var _resultValue = new EventTargetBatchTarget();
_resultValue.arraySize = arraySize;
_resultValue.jobAttempts = jobAttempts;
_resultValue.jobDefinition = jobDefinition;
_resultValue.jobName = jobName;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy