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

com.pulumi.aws.cloudwatch.inputs.EventTargetEcsTargetOrderedPlacementStrategyArgs 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.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.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final EventTargetEcsTargetOrderedPlacementStrategyArgs Empty = new EventTargetEcsTargetOrderedPlacementStrategyArgs();

    /**
     * The field to apply the placement strategy against. For the `spread` placement strategy, valid values are `instanceId` (or `host`, which has the same effect), or any platform or custom attribute that is applied to a container instance, such as `attribute:ecs.availability-zone`. For the `binpack` placement strategy, valid values are `cpu` and `memory`. For the `random` placement strategy, this field is not used. For more information, see [Amazon ECS task placement strategies](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-placement-strategies.html).
     * 
     */
    @Import(name="field")
    private @Nullable Output field;

    /**
     * @return The field to apply the placement strategy against. For the `spread` placement strategy, valid values are `instanceId` (or `host`, which has the same effect), or any platform or custom attribute that is applied to a container instance, such as `attribute:ecs.availability-zone`. For the `binpack` placement strategy, valid values are `cpu` and `memory`. For the `random` placement strategy, this field is not used. For more information, see [Amazon ECS task placement strategies](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-placement-strategies.html).
     * 
     */
    public Optional> field() {
        return Optional.ofNullable(this.field);
    }

    /**
     * Type of placement strategy. The only valid values at this time are `binpack`, `random` and `spread`.
     * 
     */
    @Import(name="type", required=true)
    private Output type;

    /**
     * @return Type of placement strategy. The only valid values at this time are `binpack`, `random` and `spread`.
     * 
     */
    public Output type() {
        return this.type;
    }

    private EventTargetEcsTargetOrderedPlacementStrategyArgs() {}

    private EventTargetEcsTargetOrderedPlacementStrategyArgs(EventTargetEcsTargetOrderedPlacementStrategyArgs $) {
        this.field = $.field;
        this.type = $.type;
    }

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

    public static final class Builder {
        private EventTargetEcsTargetOrderedPlacementStrategyArgs $;

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

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

        /**
         * @param field The field to apply the placement strategy against. For the `spread` placement strategy, valid values are `instanceId` (or `host`, which has the same effect), or any platform or custom attribute that is applied to a container instance, such as `attribute:ecs.availability-zone`. For the `binpack` placement strategy, valid values are `cpu` and `memory`. For the `random` placement strategy, this field is not used. For more information, see [Amazon ECS task placement strategies](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-placement-strategies.html).
         * 
         * @return builder
         * 
         */
        public Builder field(@Nullable Output field) {
            $.field = field;
            return this;
        }

        /**
         * @param field The field to apply the placement strategy against. For the `spread` placement strategy, valid values are `instanceId` (or `host`, which has the same effect), or any platform or custom attribute that is applied to a container instance, such as `attribute:ecs.availability-zone`. For the `binpack` placement strategy, valid values are `cpu` and `memory`. For the `random` placement strategy, this field is not used. For more information, see [Amazon ECS task placement strategies](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-placement-strategies.html).
         * 
         * @return builder
         * 
         */
        public Builder field(String field) {
            return field(Output.of(field));
        }

        /**
         * @param type Type of placement strategy. The only valid values at this time are `binpack`, `random` and `spread`.
         * 
         * @return builder
         * 
         */
        public Builder type(Output type) {
            $.type = type;
            return this;
        }

        /**
         * @param type Type of placement strategy. The only valid values at this time are `binpack`, `random` and `spread`.
         * 
         * @return builder
         * 
         */
        public Builder type(String type) {
            return type(Output.of(type));
        }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy