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

com.pulumi.aws.cloudwatch.inputs.EventTargetInputTransformerArgs Maven / Gradle / Ivy

Go to download

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

The 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.cloudwatch.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class EventTargetInputTransformerArgs extends com.pulumi.resources.ResourceArgs {

    public static final EventTargetInputTransformerArgs Empty = new EventTargetInputTransformerArgs();

    /**
     * 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".
     * 
     */
    @Import(name="inputPaths")
    private @Nullable Output> inputPaths;

    /**
     * @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 Optional>> inputPaths() {
        return Optional.ofNullable(this.inputPaths);
    }

    /**
     * Template to customize data sent to the target. Must be valid JSON. To send a string value, the string value must include double quotes.
     * 
     */
    @Import(name="inputTemplate", required=true)
    private Output inputTemplate;

    /**
     * @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 Output inputTemplate() {
        return this.inputTemplate;
    }

    private EventTargetInputTransformerArgs() {}

    private EventTargetInputTransformerArgs(EventTargetInputTransformerArgs $) {
        this.inputPaths = $.inputPaths;
        this.inputTemplate = $.inputTemplate;
    }

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

    public static final class Builder {
        private EventTargetInputTransformerArgs $;

        public Builder() {
            $ = new EventTargetInputTransformerArgs();
        }

        public Builder(EventTargetInputTransformerArgs defaults) {
            $ = new EventTargetInputTransformerArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param inputPaths 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".
         * 
         * @return builder
         * 
         */
        public Builder inputPaths(@Nullable Output> inputPaths) {
            $.inputPaths = inputPaths;
            return this;
        }

        /**
         * @param inputPaths 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".
         * 
         * @return builder
         * 
         */
        public Builder inputPaths(Map inputPaths) {
            return inputPaths(Output.of(inputPaths));
        }

        /**
         * @param inputTemplate Template to customize data sent to the target. Must be valid JSON. To send a string value, the string value must include double quotes.
         * 
         * @return builder
         * 
         */
        public Builder inputTemplate(Output inputTemplate) {
            $.inputTemplate = inputTemplate;
            return this;
        }

        /**
         * @param inputTemplate Template to customize data sent to the target. Must be valid JSON. To send a string value, the string value must include double quotes.
         * 
         * @return builder
         * 
         */
        public Builder inputTemplate(String inputTemplate) {
            return inputTemplate(Output.of(inputTemplate));
        }

        public EventTargetInputTransformerArgs build() {
            if ($.inputTemplate == null) {
                throw new MissingRequiredPropertyException("EventTargetInputTransformerArgs", "inputTemplate");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy