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

com.pulumi.aws.oam.LinkArgs 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.oam;

import com.pulumi.aws.oam.inputs.LinkLinkConfigurationArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
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 LinkArgs extends com.pulumi.resources.ResourceArgs {

    public static final LinkArgs Empty = new LinkArgs();

    /**
     * Human-readable name to use to identify this source account when you are viewing data from it in the monitoring account.
     * 
     */
    @Import(name="labelTemplate", required=true)
    private Output labelTemplate;

    /**
     * @return Human-readable name to use to identify this source account when you are viewing data from it in the monitoring account.
     * 
     */
    public Output labelTemplate() {
        return this.labelTemplate;
    }

    /**
     * Configuration for creating filters that specify that only some metric namespaces or log groups are to be shared from the source account to the monitoring account. See `link_configuration` Block for details.
     * 
     */
    @Import(name="linkConfiguration")
    private @Nullable Output linkConfiguration;

    /**
     * @return Configuration for creating filters that specify that only some metric namespaces or log groups are to be shared from the source account to the monitoring account. See `link_configuration` Block for details.
     * 
     */
    public Optional> linkConfiguration() {
        return Optional.ofNullable(this.linkConfiguration);
    }

    /**
     * Types of data that the source account shares with the monitoring account.
     * 
     */
    @Import(name="resourceTypes", required=true)
    private Output> resourceTypes;

    /**
     * @return Types of data that the source account shares with the monitoring account.
     * 
     */
    public Output> resourceTypes() {
        return this.resourceTypes;
    }

    /**
     * Identifier of the sink to use to create this link.
     * 
     * The following arguments are optional:
     * 
     */
    @Import(name="sinkIdentifier", required=true)
    private Output sinkIdentifier;

    /**
     * @return Identifier of the sink to use to create this link.
     * 
     * The following arguments are optional:
     * 
     */
    public Output sinkIdentifier() {
        return this.sinkIdentifier;
    }

    /**
     * A map of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return A map of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    private LinkArgs() {}

    private LinkArgs(LinkArgs $) {
        this.labelTemplate = $.labelTemplate;
        this.linkConfiguration = $.linkConfiguration;
        this.resourceTypes = $.resourceTypes;
        this.sinkIdentifier = $.sinkIdentifier;
        this.tags = $.tags;
    }

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

    public static final class Builder {
        private LinkArgs $;

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

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

        /**
         * @param labelTemplate Human-readable name to use to identify this source account when you are viewing data from it in the monitoring account.
         * 
         * @return builder
         * 
         */
        public Builder labelTemplate(Output labelTemplate) {
            $.labelTemplate = labelTemplate;
            return this;
        }

        /**
         * @param labelTemplate Human-readable name to use to identify this source account when you are viewing data from it in the monitoring account.
         * 
         * @return builder
         * 
         */
        public Builder labelTemplate(String labelTemplate) {
            return labelTemplate(Output.of(labelTemplate));
        }

        /**
         * @param linkConfiguration Configuration for creating filters that specify that only some metric namespaces or log groups are to be shared from the source account to the monitoring account. See `link_configuration` Block for details.
         * 
         * @return builder
         * 
         */
        public Builder linkConfiguration(@Nullable Output linkConfiguration) {
            $.linkConfiguration = linkConfiguration;
            return this;
        }

        /**
         * @param linkConfiguration Configuration for creating filters that specify that only some metric namespaces or log groups are to be shared from the source account to the monitoring account. See `link_configuration` Block for details.
         * 
         * @return builder
         * 
         */
        public Builder linkConfiguration(LinkLinkConfigurationArgs linkConfiguration) {
            return linkConfiguration(Output.of(linkConfiguration));
        }

        /**
         * @param resourceTypes Types of data that the source account shares with the monitoring account.
         * 
         * @return builder
         * 
         */
        public Builder resourceTypes(Output> resourceTypes) {
            $.resourceTypes = resourceTypes;
            return this;
        }

        /**
         * @param resourceTypes Types of data that the source account shares with the monitoring account.
         * 
         * @return builder
         * 
         */
        public Builder resourceTypes(List resourceTypes) {
            return resourceTypes(Output.of(resourceTypes));
        }

        /**
         * @param resourceTypes Types of data that the source account shares with the monitoring account.
         * 
         * @return builder
         * 
         */
        public Builder resourceTypes(String... resourceTypes) {
            return resourceTypes(List.of(resourceTypes));
        }

        /**
         * @param sinkIdentifier Identifier of the sink to use to create this link.
         * 
         * The following arguments are optional:
         * 
         * @return builder
         * 
         */
        public Builder sinkIdentifier(Output sinkIdentifier) {
            $.sinkIdentifier = sinkIdentifier;
            return this;
        }

        /**
         * @param sinkIdentifier Identifier of the sink to use to create this link.
         * 
         * The following arguments are optional:
         * 
         * @return builder
         * 
         */
        public Builder sinkIdentifier(String sinkIdentifier) {
            return sinkIdentifier(Output.of(sinkIdentifier));
        }

        /**
         * @param tags A map of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags A map of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        public LinkArgs build() {
            if ($.labelTemplate == null) {
                throw new MissingRequiredPropertyException("LinkArgs", "labelTemplate");
            }
            if ($.resourceTypes == null) {
                throw new MissingRequiredPropertyException("LinkArgs", "resourceTypes");
            }
            if ($.sinkIdentifier == null) {
                throw new MissingRequiredPropertyException("LinkArgs", "sinkIdentifier");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy