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

com.pulumi.aws.cloudwatch.outputs.EventTargetInputTransformer Maven / Gradle / Ivy

// *** 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.String;
import java.util.Map;
import java.util.Objects;
import javax.annotation.Nullable;

@CustomType
public final class EventTargetInputTransformer {
    /**
     * @return Key value pairs specified in the form of JSONPath (for example, time = $.time)
     * * You can have as many as 100 key-value pairs.
     * * You must use JSON dot notation, not bracket notation.
     * * The keys can't start with "AWS".
     * 
     */
    private @Nullable Map inputPaths;
    /**
     * @return Template to customize data sent to the target. Must be valid JSON. To send a string value, the string value must include double quotes.
     * 
     */
    private String inputTemplate;

    private EventTargetInputTransformer() {}
    /**
     * @return Key value pairs specified in the form of JSONPath (for example, time = $.time)
     * * You can have as many as 100 key-value pairs.
     * * You must use JSON dot notation, not bracket notation.
     * * The keys can't start with "AWS".
     * 
     */
    public Map inputPaths() {
        return this.inputPaths == null ? Map.of() : this.inputPaths;
    }
    /**
     * @return Template to customize data sent to the target. Must be valid JSON. To send a string value, the string value must include double quotes.
     * 
     */
    public String inputTemplate() {
        return this.inputTemplate;
    }

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

    public static Builder builder(EventTargetInputTransformer defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable Map inputPaths;
        private String inputTemplate;
        public Builder() {}
        public Builder(EventTargetInputTransformer defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.inputPaths = defaults.inputPaths;
    	      this.inputTemplate = defaults.inputTemplate;
        }

        @CustomType.Setter
        public Builder inputPaths(@Nullable Map inputPaths) {

            this.inputPaths = inputPaths;
            return this;
        }
        @CustomType.Setter
        public Builder inputTemplate(String inputTemplate) {
            if (inputTemplate == null) {
              throw new MissingRequiredPropertyException("EventTargetInputTransformer", "inputTemplate");
            }
            this.inputTemplate = inputTemplate;
            return this;
        }
        public EventTargetInputTransformer build() {
            final var _resultValue = new EventTargetInputTransformer();
            _resultValue.inputPaths = inputPaths;
            _resultValue.inputTemplate = inputTemplate;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy