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

com.pulumi.wavefront.CloudIntegrationCloudWatchArgs 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.wavefront;

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


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

    public static final CloudIntegrationCloudWatchArgs Empty = new CloudIntegrationCloudWatchArgs();

    /**
     * A list of point tag key-values to add to every point ingested using this integration.
     * 
     */
    @Import(name="additionalTags")
    private @Nullable Output> additionalTags;

    /**
     * @return A list of point tag key-values to add to every point ingested using this integration.
     * 
     */
    public Optional>> additionalTags() {
        return Optional.ofNullable(this.additionalTags);
    }

    /**
     * The Role ARN that the customer has created in AWS IAM to allow access to Wavefront.
     * 
     */
    @Import(name="externalId", required=true)
    private Output externalId;

    /**
     * @return The Role ARN that the customer has created in AWS IAM to allow access to Wavefront.
     * 
     */
    public Output externalId() {
        return this.externalId;
    }

    /**
     * Forces this resource to save, even if errors are present.
     * 
     */
    @Import(name="forceSave")
    private @Nullable Output forceSave;

    /**
     * @return Forces this resource to save, even if errors are present.
     * 
     */
    public Optional> forceSave() {
        return Optional.ofNullable(this.forceSave);
    }

    /**
     * A string->string map allow list of instance tag-value pairs (in AWS).
     * If the instance's AWS tags match this allow list, CloudWatch data about this instance is ingested.
     * Multiple entries are OR'ed.
     * 
     */
    @Import(name="instanceSelectionTags")
    private @Nullable Output> instanceSelectionTags;

    /**
     * @return A string->string map allow list of instance tag-value pairs (in AWS).
     * If the instance's AWS tags match this allow list, CloudWatch data about this instance is ingested.
     * Multiple entries are OR'ed.
     * 
     */
    public Optional>> instanceSelectionTags() {
        return Optional.ofNullable(this.instanceSelectionTags);
    }

    /**
     * A regular expression that a CloudWatch metric name must match (case-insensitively) in order to be ingested.
     * 
     */
    @Import(name="metricFilterRegex")
    private @Nullable Output metricFilterRegex;

    /**
     * @return A regular expression that a CloudWatch metric name must match (case-insensitively) in order to be ingested.
     * 
     */
    public Optional> metricFilterRegex() {
        return Optional.ofNullable(this.metricFilterRegex);
    }

    /**
     * The human-readable name of this integration.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return The human-readable name of this integration.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * A list of namespaces that limit what we query from CloudWatch.
     * 
     */
    @Import(name="namespaces")
    private @Nullable Output> namespaces;

    /**
     * @return A list of namespaces that limit what we query from CloudWatch.
     * 
     */
    public Optional>> namespaces() {
        return Optional.ofNullable(this.namespaces);
    }

    /**
     * A regular expression that AWS tag key name must match (case-insensitively)
     * in order to be ingested.
     * 
     */
    @Import(name="pointTagFilterRegex")
    private @Nullable Output pointTagFilterRegex;

    /**
     * @return A regular expression that AWS tag key name must match (case-insensitively)
     * in order to be ingested.
     * 
     */
    public Optional> pointTagFilterRegex() {
        return Optional.ofNullable(this.pointTagFilterRegex);
    }

    /**
     * The external ID corresponding to the Role ARN.
     * 
     */
    @Import(name="roleArn", required=true)
    private Output roleArn;

    /**
     * @return The external ID corresponding to the Role ARN.
     * 
     */
    public Output roleArn() {
        return this.roleArn;
    }

    /**
     * A value denoting which cloud service this service integrates with.
     * 
     */
    @Import(name="service", required=true)
    private Output service;

    /**
     * @return A value denoting which cloud service this service integrates with.
     * 
     */
    public Output service() {
        return this.service;
    }

    /**
     * How often, in minutes, to refresh the service.
     * 
     */
    @Import(name="serviceRefreshRateInMinutes")
    private @Nullable Output serviceRefreshRateInMinutes;

    /**
     * @return How often, in minutes, to refresh the service.
     * 
     */
    public Optional> serviceRefreshRateInMinutes() {
        return Optional.ofNullable(this.serviceRefreshRateInMinutes);
    }

    /**
     * A string->string map of allow list of volume tag-value pairs (in AWS).
     * If the volume's AWS tags match this allow list, CloudWatch data about this volume is ingested.
     * Multiple entries are OR'ed.
     * 
     */
    @Import(name="volumeSelectionTags")
    private @Nullable Output> volumeSelectionTags;

    /**
     * @return A string->string map of allow list of volume tag-value pairs (in AWS).
     * If the volume's AWS tags match this allow list, CloudWatch data about this volume is ingested.
     * Multiple entries are OR'ed.
     * 
     */
    public Optional>> volumeSelectionTags() {
        return Optional.ofNullable(this.volumeSelectionTags);
    }

    private CloudIntegrationCloudWatchArgs() {}

    private CloudIntegrationCloudWatchArgs(CloudIntegrationCloudWatchArgs $) {
        this.additionalTags = $.additionalTags;
        this.externalId = $.externalId;
        this.forceSave = $.forceSave;
        this.instanceSelectionTags = $.instanceSelectionTags;
        this.metricFilterRegex = $.metricFilterRegex;
        this.name = $.name;
        this.namespaces = $.namespaces;
        this.pointTagFilterRegex = $.pointTagFilterRegex;
        this.roleArn = $.roleArn;
        this.service = $.service;
        this.serviceRefreshRateInMinutes = $.serviceRefreshRateInMinutes;
        this.volumeSelectionTags = $.volumeSelectionTags;
    }

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

    public static final class Builder {
        private CloudIntegrationCloudWatchArgs $;

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

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

        /**
         * @param additionalTags A list of point tag key-values to add to every point ingested using this integration.
         * 
         * @return builder
         * 
         */
        public Builder additionalTags(@Nullable Output> additionalTags) {
            $.additionalTags = additionalTags;
            return this;
        }

        /**
         * @param additionalTags A list of point tag key-values to add to every point ingested using this integration.
         * 
         * @return builder
         * 
         */
        public Builder additionalTags(Map additionalTags) {
            return additionalTags(Output.of(additionalTags));
        }

        /**
         * @param externalId The Role ARN that the customer has created in AWS IAM to allow access to Wavefront.
         * 
         * @return builder
         * 
         */
        public Builder externalId(Output externalId) {
            $.externalId = externalId;
            return this;
        }

        /**
         * @param externalId The Role ARN that the customer has created in AWS IAM to allow access to Wavefront.
         * 
         * @return builder
         * 
         */
        public Builder externalId(String externalId) {
            return externalId(Output.of(externalId));
        }

        /**
         * @param forceSave Forces this resource to save, even if errors are present.
         * 
         * @return builder
         * 
         */
        public Builder forceSave(@Nullable Output forceSave) {
            $.forceSave = forceSave;
            return this;
        }

        /**
         * @param forceSave Forces this resource to save, even if errors are present.
         * 
         * @return builder
         * 
         */
        public Builder forceSave(Boolean forceSave) {
            return forceSave(Output.of(forceSave));
        }

        /**
         * @param instanceSelectionTags A string->string map allow list of instance tag-value pairs (in AWS).
         * If the instance's AWS tags match this allow list, CloudWatch data about this instance is ingested.
         * Multiple entries are OR'ed.
         * 
         * @return builder
         * 
         */
        public Builder instanceSelectionTags(@Nullable Output> instanceSelectionTags) {
            $.instanceSelectionTags = instanceSelectionTags;
            return this;
        }

        /**
         * @param instanceSelectionTags A string->string map allow list of instance tag-value pairs (in AWS).
         * If the instance's AWS tags match this allow list, CloudWatch data about this instance is ingested.
         * Multiple entries are OR'ed.
         * 
         * @return builder
         * 
         */
        public Builder instanceSelectionTags(Map instanceSelectionTags) {
            return instanceSelectionTags(Output.of(instanceSelectionTags));
        }

        /**
         * @param metricFilterRegex A regular expression that a CloudWatch metric name must match (case-insensitively) in order to be ingested.
         * 
         * @return builder
         * 
         */
        public Builder metricFilterRegex(@Nullable Output metricFilterRegex) {
            $.metricFilterRegex = metricFilterRegex;
            return this;
        }

        /**
         * @param metricFilterRegex A regular expression that a CloudWatch metric name must match (case-insensitively) in order to be ingested.
         * 
         * @return builder
         * 
         */
        public Builder metricFilterRegex(String metricFilterRegex) {
            return metricFilterRegex(Output.of(metricFilterRegex));
        }

        /**
         * @param name The human-readable name of this integration.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The human-readable name of this integration.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param namespaces A list of namespaces that limit what we query from CloudWatch.
         * 
         * @return builder
         * 
         */
        public Builder namespaces(@Nullable Output> namespaces) {
            $.namespaces = namespaces;
            return this;
        }

        /**
         * @param namespaces A list of namespaces that limit what we query from CloudWatch.
         * 
         * @return builder
         * 
         */
        public Builder namespaces(List namespaces) {
            return namespaces(Output.of(namespaces));
        }

        /**
         * @param namespaces A list of namespaces that limit what we query from CloudWatch.
         * 
         * @return builder
         * 
         */
        public Builder namespaces(String... namespaces) {
            return namespaces(List.of(namespaces));
        }

        /**
         * @param pointTagFilterRegex A regular expression that AWS tag key name must match (case-insensitively)
         * in order to be ingested.
         * 
         * @return builder
         * 
         */
        public Builder pointTagFilterRegex(@Nullable Output pointTagFilterRegex) {
            $.pointTagFilterRegex = pointTagFilterRegex;
            return this;
        }

        /**
         * @param pointTagFilterRegex A regular expression that AWS tag key name must match (case-insensitively)
         * in order to be ingested.
         * 
         * @return builder
         * 
         */
        public Builder pointTagFilterRegex(String pointTagFilterRegex) {
            return pointTagFilterRegex(Output.of(pointTagFilterRegex));
        }

        /**
         * @param roleArn The external ID corresponding to the Role ARN.
         * 
         * @return builder
         * 
         */
        public Builder roleArn(Output roleArn) {
            $.roleArn = roleArn;
            return this;
        }

        /**
         * @param roleArn The external ID corresponding to the Role ARN.
         * 
         * @return builder
         * 
         */
        public Builder roleArn(String roleArn) {
            return roleArn(Output.of(roleArn));
        }

        /**
         * @param service A value denoting which cloud service this service integrates with.
         * 
         * @return builder
         * 
         */
        public Builder service(Output service) {
            $.service = service;
            return this;
        }

        /**
         * @param service A value denoting which cloud service this service integrates with.
         * 
         * @return builder
         * 
         */
        public Builder service(String service) {
            return service(Output.of(service));
        }

        /**
         * @param serviceRefreshRateInMinutes How often, in minutes, to refresh the service.
         * 
         * @return builder
         * 
         */
        public Builder serviceRefreshRateInMinutes(@Nullable Output serviceRefreshRateInMinutes) {
            $.serviceRefreshRateInMinutes = serviceRefreshRateInMinutes;
            return this;
        }

        /**
         * @param serviceRefreshRateInMinutes How often, in minutes, to refresh the service.
         * 
         * @return builder
         * 
         */
        public Builder serviceRefreshRateInMinutes(Integer serviceRefreshRateInMinutes) {
            return serviceRefreshRateInMinutes(Output.of(serviceRefreshRateInMinutes));
        }

        /**
         * @param volumeSelectionTags A string->string map of allow list of volume tag-value pairs (in AWS).
         * If the volume's AWS tags match this allow list, CloudWatch data about this volume is ingested.
         * Multiple entries are OR'ed.
         * 
         * @return builder
         * 
         */
        public Builder volumeSelectionTags(@Nullable Output> volumeSelectionTags) {
            $.volumeSelectionTags = volumeSelectionTags;
            return this;
        }

        /**
         * @param volumeSelectionTags A string->string map of allow list of volume tag-value pairs (in AWS).
         * If the volume's AWS tags match this allow list, CloudWatch data about this volume is ingested.
         * Multiple entries are OR'ed.
         * 
         * @return builder
         * 
         */
        public Builder volumeSelectionTags(Map volumeSelectionTags) {
            return volumeSelectionTags(Output.of(volumeSelectionTags));
        }

        public CloudIntegrationCloudWatchArgs build() {
            if ($.externalId == null) {
                throw new MissingRequiredPropertyException("CloudIntegrationCloudWatchArgs", "externalId");
            }
            if ($.roleArn == null) {
                throw new MissingRequiredPropertyException("CloudIntegrationCloudWatchArgs", "roleArn");
            }
            if ($.service == null) {
                throw new MissingRequiredPropertyException("CloudIntegrationCloudWatchArgs", "service");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy