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

com.pulumi.aws.sagemaker.WorkteamArgs 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.aws.sagemaker;

import com.pulumi.aws.sagemaker.inputs.WorkteamMemberDefinitionArgs;
import com.pulumi.aws.sagemaker.inputs.WorkteamNotificationConfigurationArgs;
import com.pulumi.aws.sagemaker.inputs.WorkteamWorkerAccessConfigurationArgs;
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 WorkteamArgs extends com.pulumi.resources.ResourceArgs {

    public static final WorkteamArgs Empty = new WorkteamArgs();

    /**
     * A description of the work team.
     * 
     */
    @Import(name="description", required=true)
    private Output description;

    /**
     * @return A description of the work team.
     * 
     */
    public Output description() {
        return this.description;
    }

    /**
     * A list of Member Definitions that contains objects that identify the workers that make up the work team. Workforces can be created using Amazon Cognito or your own OIDC Identity Provider (IdP). For private workforces created using Amazon Cognito use `cognito_member_definition`. For workforces created using your own OIDC identity provider (IdP) use `oidc_member_definition`. Do not provide input for both of these parameters in a single request. see Member Definition details below.
     * 
     */
    @Import(name="memberDefinitions", required=true)
    private Output> memberDefinitions;

    /**
     * @return A list of Member Definitions that contains objects that identify the workers that make up the work team. Workforces can be created using Amazon Cognito or your own OIDC Identity Provider (IdP). For private workforces created using Amazon Cognito use `cognito_member_definition`. For workforces created using your own OIDC identity provider (IdP) use `oidc_member_definition`. Do not provide input for both of these parameters in a single request. see Member Definition details below.
     * 
     */
    public Output> memberDefinitions() {
        return this.memberDefinitions;
    }

    /**
     * Configures notification of workers regarding available or expiring work items. see Notification Configuration details below.
     * 
     */
    @Import(name="notificationConfiguration")
    private @Nullable Output notificationConfiguration;

    /**
     * @return Configures notification of workers regarding available or expiring work items. see Notification Configuration details below.
     * 
     */
    public Optional> notificationConfiguration() {
        return Optional.ofNullable(this.notificationConfiguration);
    }

    /**
     * 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);
    }

    /**
     * Use this optional parameter to constrain access to an Amazon S3 resource based on the IP address using supported IAM global condition keys. The Amazon S3 resource is accessed in the worker portal using a Amazon S3 presigned URL. see Worker Access Configuration details below.
     * 
     */
    @Import(name="workerAccessConfiguration")
    private @Nullable Output workerAccessConfiguration;

    /**
     * @return Use this optional parameter to constrain access to an Amazon S3 resource based on the IP address using supported IAM global condition keys. The Amazon S3 resource is accessed in the worker portal using a Amazon S3 presigned URL. see Worker Access Configuration details below.
     * 
     */
    public Optional> workerAccessConfiguration() {
        return Optional.ofNullable(this.workerAccessConfiguration);
    }

    /**
     * The name of the workforce.
     * 
     */
    @Import(name="workforceName")
    private @Nullable Output workforceName;

    /**
     * @return The name of the workforce.
     * 
     */
    public Optional> workforceName() {
        return Optional.ofNullable(this.workforceName);
    }

    /**
     * The name of the Workteam (must be unique).
     * 
     */
    @Import(name="workteamName", required=true)
    private Output workteamName;

    /**
     * @return The name of the Workteam (must be unique).
     * 
     */
    public Output workteamName() {
        return this.workteamName;
    }

    private WorkteamArgs() {}

    private WorkteamArgs(WorkteamArgs $) {
        this.description = $.description;
        this.memberDefinitions = $.memberDefinitions;
        this.notificationConfiguration = $.notificationConfiguration;
        this.tags = $.tags;
        this.workerAccessConfiguration = $.workerAccessConfiguration;
        this.workforceName = $.workforceName;
        this.workteamName = $.workteamName;
    }

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

    public static final class Builder {
        private WorkteamArgs $;

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

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

        /**
         * @param description A description of the work team.
         * 
         * @return builder
         * 
         */
        public Builder description(Output description) {
            $.description = description;
            return this;
        }

        /**
         * @param description A description of the work team.
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

        /**
         * @param memberDefinitions A list of Member Definitions that contains objects that identify the workers that make up the work team. Workforces can be created using Amazon Cognito or your own OIDC Identity Provider (IdP). For private workforces created using Amazon Cognito use `cognito_member_definition`. For workforces created using your own OIDC identity provider (IdP) use `oidc_member_definition`. Do not provide input for both of these parameters in a single request. see Member Definition details below.
         * 
         * @return builder
         * 
         */
        public Builder memberDefinitions(Output> memberDefinitions) {
            $.memberDefinitions = memberDefinitions;
            return this;
        }

        /**
         * @param memberDefinitions A list of Member Definitions that contains objects that identify the workers that make up the work team. Workforces can be created using Amazon Cognito or your own OIDC Identity Provider (IdP). For private workforces created using Amazon Cognito use `cognito_member_definition`. For workforces created using your own OIDC identity provider (IdP) use `oidc_member_definition`. Do not provide input for both of these parameters in a single request. see Member Definition details below.
         * 
         * @return builder
         * 
         */
        public Builder memberDefinitions(List memberDefinitions) {
            return memberDefinitions(Output.of(memberDefinitions));
        }

        /**
         * @param memberDefinitions A list of Member Definitions that contains objects that identify the workers that make up the work team. Workforces can be created using Amazon Cognito or your own OIDC Identity Provider (IdP). For private workforces created using Amazon Cognito use `cognito_member_definition`. For workforces created using your own OIDC identity provider (IdP) use `oidc_member_definition`. Do not provide input for both of these parameters in a single request. see Member Definition details below.
         * 
         * @return builder
         * 
         */
        public Builder memberDefinitions(WorkteamMemberDefinitionArgs... memberDefinitions) {
            return memberDefinitions(List.of(memberDefinitions));
        }

        /**
         * @param notificationConfiguration Configures notification of workers regarding available or expiring work items. see Notification Configuration details below.
         * 
         * @return builder
         * 
         */
        public Builder notificationConfiguration(@Nullable Output notificationConfiguration) {
            $.notificationConfiguration = notificationConfiguration;
            return this;
        }

        /**
         * @param notificationConfiguration Configures notification of workers regarding available or expiring work items. see Notification Configuration details below.
         * 
         * @return builder
         * 
         */
        public Builder notificationConfiguration(WorkteamNotificationConfigurationArgs notificationConfiguration) {
            return notificationConfiguration(Output.of(notificationConfiguration));
        }

        /**
         * @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));
        }

        /**
         * @param workerAccessConfiguration Use this optional parameter to constrain access to an Amazon S3 resource based on the IP address using supported IAM global condition keys. The Amazon S3 resource is accessed in the worker portal using a Amazon S3 presigned URL. see Worker Access Configuration details below.
         * 
         * @return builder
         * 
         */
        public Builder workerAccessConfiguration(@Nullable Output workerAccessConfiguration) {
            $.workerAccessConfiguration = workerAccessConfiguration;
            return this;
        }

        /**
         * @param workerAccessConfiguration Use this optional parameter to constrain access to an Amazon S3 resource based on the IP address using supported IAM global condition keys. The Amazon S3 resource is accessed in the worker portal using a Amazon S3 presigned URL. see Worker Access Configuration details below.
         * 
         * @return builder
         * 
         */
        public Builder workerAccessConfiguration(WorkteamWorkerAccessConfigurationArgs workerAccessConfiguration) {
            return workerAccessConfiguration(Output.of(workerAccessConfiguration));
        }

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

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

        /**
         * @param workteamName The name of the Workteam (must be unique).
         * 
         * @return builder
         * 
         */
        public Builder workteamName(Output workteamName) {
            $.workteamName = workteamName;
            return this;
        }

        /**
         * @param workteamName The name of the Workteam (must be unique).
         * 
         * @return builder
         * 
         */
        public Builder workteamName(String workteamName) {
            return workteamName(Output.of(workteamName));
        }

        public WorkteamArgs build() {
            if ($.description == null) {
                throw new MissingRequiredPropertyException("WorkteamArgs", "description");
            }
            if ($.memberDefinitions == null) {
                throw new MissingRequiredPropertyException("WorkteamArgs", "memberDefinitions");
            }
            if ($.workteamName == null) {
                throw new MissingRequiredPropertyException("WorkteamArgs", "workteamName");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy