All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.aws.iot.outputs.TopicRuleErrorActionCloudwatchLogs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

There is a newer version: 6.72.0
Show newest version
// *** 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.iot.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class TopicRuleErrorActionCloudwatchLogs {
    /**
     * @return The payload that contains a JSON array of records will be sent to CloudWatch via a batch call.
     * 
     */
    private @Nullable Boolean batchMode;
    /**
     * @return The CloudWatch log group name.
     * 
     */
    private String logGroupName;
    /**
     * @return The IAM role ARN that allows access to the CloudWatch alarm.
     * 
     */
    private String roleArn;

    private TopicRuleErrorActionCloudwatchLogs() {}
    /**
     * @return The payload that contains a JSON array of records will be sent to CloudWatch via a batch call.
     * 
     */
    public Optional batchMode() {
        return Optional.ofNullable(this.batchMode);
    }
    /**
     * @return The CloudWatch log group name.
     * 
     */
    public String logGroupName() {
        return this.logGroupName;
    }
    /**
     * @return The IAM role ARN that allows access to the CloudWatch alarm.
     * 
     */
    public String roleArn() {
        return this.roleArn;
    }

    public static Builder builder() {
        return new Builder();
    }

    public static Builder builder(TopicRuleErrorActionCloudwatchLogs defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable Boolean batchMode;
        private String logGroupName;
        private String roleArn;
        public Builder() {}
        public Builder(TopicRuleErrorActionCloudwatchLogs defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.batchMode = defaults.batchMode;
    	      this.logGroupName = defaults.logGroupName;
    	      this.roleArn = defaults.roleArn;
        }

        @CustomType.Setter
        public Builder batchMode(@Nullable Boolean batchMode) {

            this.batchMode = batchMode;
            return this;
        }
        @CustomType.Setter
        public Builder logGroupName(String logGroupName) {
            if (logGroupName == null) {
              throw new MissingRequiredPropertyException("TopicRuleErrorActionCloudwatchLogs", "logGroupName");
            }
            this.logGroupName = logGroupName;
            return this;
        }
        @CustomType.Setter
        public Builder roleArn(String roleArn) {
            if (roleArn == null) {
              throw new MissingRequiredPropertyException("TopicRuleErrorActionCloudwatchLogs", "roleArn");
            }
            this.roleArn = roleArn;
            return this;
        }
        public TopicRuleErrorActionCloudwatchLogs build() {
            final var _resultValue = new TopicRuleErrorActionCloudwatchLogs();
            _resultValue.batchMode = batchMode;
            _resultValue.logGroupName = logGroupName;
            _resultValue.roleArn = roleArn;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy