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

com.pulumi.aws.ssm.inputs.MaintenanceWindowTargetState 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.60.0-alpha.1731982519
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.ssm.inputs;

import com.pulumi.aws.ssm.inputs.MaintenanceWindowTargetTargetArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final MaintenanceWindowTargetState Empty = new MaintenanceWindowTargetState();

    /**
     * The description of the maintenance window target.
     * 
     */
    @Import(name="description")
    private @Nullable Output description;

    /**
     * @return The description of the maintenance window target.
     * 
     */
    public Optional> description() {
        return Optional.ofNullable(this.description);
    }

    /**
     * The name of the maintenance window target.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return The name of the maintenance window target.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * User-provided value that will be included in any CloudWatch events raised while running tasks for these targets in this Maintenance Window.
     * 
     */
    @Import(name="ownerInformation")
    private @Nullable Output ownerInformation;

    /**
     * @return User-provided value that will be included in any CloudWatch events raised while running tasks for these targets in this Maintenance Window.
     * 
     */
    public Optional> ownerInformation() {
        return Optional.ofNullable(this.ownerInformation);
    }

    /**
     * The type of target being registered with the Maintenance Window. Possible values are `INSTANCE` and `RESOURCE_GROUP`.
     * 
     */
    @Import(name="resourceType")
    private @Nullable Output resourceType;

    /**
     * @return The type of target being registered with the Maintenance Window. Possible values are `INSTANCE` and `RESOURCE_GROUP`.
     * 
     */
    public Optional> resourceType() {
        return Optional.ofNullable(this.resourceType);
    }

    /**
     * The targets to register with the maintenance window. In other words, the instances to run commands on when the maintenance window runs. You can specify targets using instance IDs, resource group names, or tags that have been applied to instances. For more information about these examples formats see
     * (https://docs.aws.amazon.com/systems-manager/latest/userguide/mw-cli-tutorial-targets-examples.html)
     * 
     */
    @Import(name="targets")
    private @Nullable Output> targets;

    /**
     * @return The targets to register with the maintenance window. In other words, the instances to run commands on when the maintenance window runs. You can specify targets using instance IDs, resource group names, or tags that have been applied to instances. For more information about these examples formats see
     * (https://docs.aws.amazon.com/systems-manager/latest/userguide/mw-cli-tutorial-targets-examples.html)
     * 
     */
    public Optional>> targets() {
        return Optional.ofNullable(this.targets);
    }

    /**
     * The Id of the maintenance window to register the target with.
     * 
     */
    @Import(name="windowId")
    private @Nullable Output windowId;

    /**
     * @return The Id of the maintenance window to register the target with.
     * 
     */
    public Optional> windowId() {
        return Optional.ofNullable(this.windowId);
    }

    private MaintenanceWindowTargetState() {}

    private MaintenanceWindowTargetState(MaintenanceWindowTargetState $) {
        this.description = $.description;
        this.name = $.name;
        this.ownerInformation = $.ownerInformation;
        this.resourceType = $.resourceType;
        this.targets = $.targets;
        this.windowId = $.windowId;
    }

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

    public static final class Builder {
        private MaintenanceWindowTargetState $;

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

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

        /**
         * @param description The description of the maintenance window target.
         * 
         * @return builder
         * 
         */
        public Builder description(@Nullable Output description) {
            $.description = description;
            return this;
        }

        /**
         * @param description The description of the maintenance window target.
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

        /**
         * @param name The name of the maintenance window target.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name of the maintenance window target.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param ownerInformation User-provided value that will be included in any CloudWatch events raised while running tasks for these targets in this Maintenance Window.
         * 
         * @return builder
         * 
         */
        public Builder ownerInformation(@Nullable Output ownerInformation) {
            $.ownerInformation = ownerInformation;
            return this;
        }

        /**
         * @param ownerInformation User-provided value that will be included in any CloudWatch events raised while running tasks for these targets in this Maintenance Window.
         * 
         * @return builder
         * 
         */
        public Builder ownerInformation(String ownerInformation) {
            return ownerInformation(Output.of(ownerInformation));
        }

        /**
         * @param resourceType The type of target being registered with the Maintenance Window. Possible values are `INSTANCE` and `RESOURCE_GROUP`.
         * 
         * @return builder
         * 
         */
        public Builder resourceType(@Nullable Output resourceType) {
            $.resourceType = resourceType;
            return this;
        }

        /**
         * @param resourceType The type of target being registered with the Maintenance Window. Possible values are `INSTANCE` and `RESOURCE_GROUP`.
         * 
         * @return builder
         * 
         */
        public Builder resourceType(String resourceType) {
            return resourceType(Output.of(resourceType));
        }

        /**
         * @param targets The targets to register with the maintenance window. In other words, the instances to run commands on when the maintenance window runs. You can specify targets using instance IDs, resource group names, or tags that have been applied to instances. For more information about these examples formats see
         * (https://docs.aws.amazon.com/systems-manager/latest/userguide/mw-cli-tutorial-targets-examples.html)
         * 
         * @return builder
         * 
         */
        public Builder targets(@Nullable Output> targets) {
            $.targets = targets;
            return this;
        }

        /**
         * @param targets The targets to register with the maintenance window. In other words, the instances to run commands on when the maintenance window runs. You can specify targets using instance IDs, resource group names, or tags that have been applied to instances. For more information about these examples formats see
         * (https://docs.aws.amazon.com/systems-manager/latest/userguide/mw-cli-tutorial-targets-examples.html)
         * 
         * @return builder
         * 
         */
        public Builder targets(List targets) {
            return targets(Output.of(targets));
        }

        /**
         * @param targets The targets to register with the maintenance window. In other words, the instances to run commands on when the maintenance window runs. You can specify targets using instance IDs, resource group names, or tags that have been applied to instances. For more information about these examples formats see
         * (https://docs.aws.amazon.com/systems-manager/latest/userguide/mw-cli-tutorial-targets-examples.html)
         * 
         * @return builder
         * 
         */
        public Builder targets(MaintenanceWindowTargetTargetArgs... targets) {
            return targets(List.of(targets));
        }

        /**
         * @param windowId The Id of the maintenance window to register the target with.
         * 
         * @return builder
         * 
         */
        public Builder windowId(@Nullable Output windowId) {
            $.windowId = windowId;
            return this;
        }

        /**
         * @param windowId The Id of the maintenance window to register the target with.
         * 
         * @return builder
         * 
         */
        public Builder windowId(String windowId) {
            return windowId(Output.of(windowId));
        }

        public MaintenanceWindowTargetState build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy