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

com.pulumi.aws.amp.AlertManagerDefinitionArgs 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.66.3
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.amp;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;


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

    public static final AlertManagerDefinitionArgs Empty = new AlertManagerDefinitionArgs();

    /**
     * the alert manager definition that you want to be applied. See more [in AWS Docs](https://docs.aws.amazon.com/prometheus/latest/userguide/AMP-alert-manager.html).
     * 
     */
    @Import(name="definition", required=true)
    private Output definition;

    /**
     * @return the alert manager definition that you want to be applied. See more [in AWS Docs](https://docs.aws.amazon.com/prometheus/latest/userguide/AMP-alert-manager.html).
     * 
     */
    public Output definition() {
        return this.definition;
    }

    /**
     * ID of the prometheus workspace the alert manager definition should be linked to
     * 
     */
    @Import(name="workspaceId", required=true)
    private Output workspaceId;

    /**
     * @return ID of the prometheus workspace the alert manager definition should be linked to
     * 
     */
    public Output workspaceId() {
        return this.workspaceId;
    }

    private AlertManagerDefinitionArgs() {}

    private AlertManagerDefinitionArgs(AlertManagerDefinitionArgs $) {
        this.definition = $.definition;
        this.workspaceId = $.workspaceId;
    }

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

    public static final class Builder {
        private AlertManagerDefinitionArgs $;

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

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

        /**
         * @param definition the alert manager definition that you want to be applied. See more [in AWS Docs](https://docs.aws.amazon.com/prometheus/latest/userguide/AMP-alert-manager.html).
         * 
         * @return builder
         * 
         */
        public Builder definition(Output definition) {
            $.definition = definition;
            return this;
        }

        /**
         * @param definition the alert manager definition that you want to be applied. See more [in AWS Docs](https://docs.aws.amazon.com/prometheus/latest/userguide/AMP-alert-manager.html).
         * 
         * @return builder
         * 
         */
        public Builder definition(String definition) {
            return definition(Output.of(definition));
        }

        /**
         * @param workspaceId ID of the prometheus workspace the alert manager definition should be linked to
         * 
         * @return builder
         * 
         */
        public Builder workspaceId(Output workspaceId) {
            $.workspaceId = workspaceId;
            return this;
        }

        /**
         * @param workspaceId ID of the prometheus workspace the alert manager definition should be linked to
         * 
         * @return builder
         * 
         */
        public Builder workspaceId(String workspaceId) {
            return workspaceId(Output.of(workspaceId));
        }

        public AlertManagerDefinitionArgs build() {
            if ($.definition == null) {
                throw new MissingRequiredPropertyException("AlertManagerDefinitionArgs", "definition");
            }
            if ($.workspaceId == null) {
                throw new MissingRequiredPropertyException("AlertManagerDefinitionArgs", "workspaceId");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy