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

com.pulumi.aws.sagemaker.FeatureGroupArgs 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.FeatureGroupFeatureDefinitionArgs;
import com.pulumi.aws.sagemaker.inputs.FeatureGroupOfflineStoreConfigArgs;
import com.pulumi.aws.sagemaker.inputs.FeatureGroupOnlineStoreConfigArgs;
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 FeatureGroupArgs extends com.pulumi.resources.ResourceArgs {

    public static final FeatureGroupArgs Empty = new FeatureGroupArgs();

    /**
     * A free-form description of a Feature Group.
     * 
     */
    @Import(name="description")
    private @Nullable Output description;

    /**
     * @return A free-form description of a Feature Group.
     * 
     */
    public Optional> description() {
        return Optional.ofNullable(this.description);
    }

    /**
     * The name of the feature that stores the EventTime of a Record in a Feature Group.
     * 
     */
    @Import(name="eventTimeFeatureName", required=true)
    private Output eventTimeFeatureName;

    /**
     * @return The name of the feature that stores the EventTime of a Record in a Feature Group.
     * 
     */
    public Output eventTimeFeatureName() {
        return this.eventTimeFeatureName;
    }

    /**
     * A list of Feature names and types. See Feature Definition Below.
     * 
     */
    @Import(name="featureDefinitions", required=true)
    private Output> featureDefinitions;

    /**
     * @return A list of Feature names and types. See Feature Definition Below.
     * 
     */
    public Output> featureDefinitions() {
        return this.featureDefinitions;
    }

    /**
     * The name of the Feature Group. The name must be unique within an AWS Region in an AWS account.
     * 
     */
    @Import(name="featureGroupName", required=true)
    private Output featureGroupName;

    /**
     * @return The name of the Feature Group. The name must be unique within an AWS Region in an AWS account.
     * 
     */
    public Output featureGroupName() {
        return this.featureGroupName;
    }

    /**
     * The Offline Feature Store Configuration. See Offline Store Config Below.
     * 
     */
    @Import(name="offlineStoreConfig")
    private @Nullable Output offlineStoreConfig;

    /**
     * @return The Offline Feature Store Configuration. See Offline Store Config Below.
     * 
     */
    public Optional> offlineStoreConfig() {
        return Optional.ofNullable(this.offlineStoreConfig);
    }

    /**
     * The Online Feature Store Configuration. See Online Store Config Below.
     * 
     */
    @Import(name="onlineStoreConfig")
    private @Nullable Output onlineStoreConfig;

    /**
     * @return The Online Feature Store Configuration. See Online Store Config Below.
     * 
     */
    public Optional> onlineStoreConfig() {
        return Optional.ofNullable(this.onlineStoreConfig);
    }

    /**
     * The name of the Feature whose value uniquely identifies a Record defined in the Feature Store. Only the latest record per identifier value will be stored in the Online Store.
     * 
     */
    @Import(name="recordIdentifierFeatureName", required=true)
    private Output recordIdentifierFeatureName;

    /**
     * @return The name of the Feature whose value uniquely identifies a Record defined in the Feature Store. Only the latest record per identifier value will be stored in the Online Store.
     * 
     */
    public Output recordIdentifierFeatureName() {
        return this.recordIdentifierFeatureName;
    }

    /**
     * The Amazon Resource Name (ARN) of the IAM execution role used to persist data into the Offline Store if an `offline_store_config` is provided.
     * 
     */
    @Import(name="roleArn", required=true)
    private Output roleArn;

    /**
     * @return The Amazon Resource Name (ARN) of the IAM execution role used to persist data into the Offline Store if an `offline_store_config` is provided.
     * 
     */
    public Output roleArn() {
        return this.roleArn;
    }

    /**
     * Map of resource tags for 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 Map of resource tags for 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 FeatureGroupArgs() {}

    private FeatureGroupArgs(FeatureGroupArgs $) {
        this.description = $.description;
        this.eventTimeFeatureName = $.eventTimeFeatureName;
        this.featureDefinitions = $.featureDefinitions;
        this.featureGroupName = $.featureGroupName;
        this.offlineStoreConfig = $.offlineStoreConfig;
        this.onlineStoreConfig = $.onlineStoreConfig;
        this.recordIdentifierFeatureName = $.recordIdentifierFeatureName;
        this.roleArn = $.roleArn;
        this.tags = $.tags;
    }

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

    public static final class Builder {
        private FeatureGroupArgs $;

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

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

        /**
         * @param description A free-form description of a Feature Group.
         * 
         * @return builder
         * 
         */
        public Builder description(@Nullable Output description) {
            $.description = description;
            return this;
        }

        /**
         * @param description A free-form description of a Feature Group.
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

        /**
         * @param eventTimeFeatureName The name of the feature that stores the EventTime of a Record in a Feature Group.
         * 
         * @return builder
         * 
         */
        public Builder eventTimeFeatureName(Output eventTimeFeatureName) {
            $.eventTimeFeatureName = eventTimeFeatureName;
            return this;
        }

        /**
         * @param eventTimeFeatureName The name of the feature that stores the EventTime of a Record in a Feature Group.
         * 
         * @return builder
         * 
         */
        public Builder eventTimeFeatureName(String eventTimeFeatureName) {
            return eventTimeFeatureName(Output.of(eventTimeFeatureName));
        }

        /**
         * @param featureDefinitions A list of Feature names and types. See Feature Definition Below.
         * 
         * @return builder
         * 
         */
        public Builder featureDefinitions(Output> featureDefinitions) {
            $.featureDefinitions = featureDefinitions;
            return this;
        }

        /**
         * @param featureDefinitions A list of Feature names and types. See Feature Definition Below.
         * 
         * @return builder
         * 
         */
        public Builder featureDefinitions(List featureDefinitions) {
            return featureDefinitions(Output.of(featureDefinitions));
        }

        /**
         * @param featureDefinitions A list of Feature names and types. See Feature Definition Below.
         * 
         * @return builder
         * 
         */
        public Builder featureDefinitions(FeatureGroupFeatureDefinitionArgs... featureDefinitions) {
            return featureDefinitions(List.of(featureDefinitions));
        }

        /**
         * @param featureGroupName The name of the Feature Group. The name must be unique within an AWS Region in an AWS account.
         * 
         * @return builder
         * 
         */
        public Builder featureGroupName(Output featureGroupName) {
            $.featureGroupName = featureGroupName;
            return this;
        }

        /**
         * @param featureGroupName The name of the Feature Group. The name must be unique within an AWS Region in an AWS account.
         * 
         * @return builder
         * 
         */
        public Builder featureGroupName(String featureGroupName) {
            return featureGroupName(Output.of(featureGroupName));
        }

        /**
         * @param offlineStoreConfig The Offline Feature Store Configuration. See Offline Store Config Below.
         * 
         * @return builder
         * 
         */
        public Builder offlineStoreConfig(@Nullable Output offlineStoreConfig) {
            $.offlineStoreConfig = offlineStoreConfig;
            return this;
        }

        /**
         * @param offlineStoreConfig The Offline Feature Store Configuration. See Offline Store Config Below.
         * 
         * @return builder
         * 
         */
        public Builder offlineStoreConfig(FeatureGroupOfflineStoreConfigArgs offlineStoreConfig) {
            return offlineStoreConfig(Output.of(offlineStoreConfig));
        }

        /**
         * @param onlineStoreConfig The Online Feature Store Configuration. See Online Store Config Below.
         * 
         * @return builder
         * 
         */
        public Builder onlineStoreConfig(@Nullable Output onlineStoreConfig) {
            $.onlineStoreConfig = onlineStoreConfig;
            return this;
        }

        /**
         * @param onlineStoreConfig The Online Feature Store Configuration. See Online Store Config Below.
         * 
         * @return builder
         * 
         */
        public Builder onlineStoreConfig(FeatureGroupOnlineStoreConfigArgs onlineStoreConfig) {
            return onlineStoreConfig(Output.of(onlineStoreConfig));
        }

        /**
         * @param recordIdentifierFeatureName The name of the Feature whose value uniquely identifies a Record defined in the Feature Store. Only the latest record per identifier value will be stored in the Online Store.
         * 
         * @return builder
         * 
         */
        public Builder recordIdentifierFeatureName(Output recordIdentifierFeatureName) {
            $.recordIdentifierFeatureName = recordIdentifierFeatureName;
            return this;
        }

        /**
         * @param recordIdentifierFeatureName The name of the Feature whose value uniquely identifies a Record defined in the Feature Store. Only the latest record per identifier value will be stored in the Online Store.
         * 
         * @return builder
         * 
         */
        public Builder recordIdentifierFeatureName(String recordIdentifierFeatureName) {
            return recordIdentifierFeatureName(Output.of(recordIdentifierFeatureName));
        }

        /**
         * @param roleArn The Amazon Resource Name (ARN) of the IAM execution role used to persist data into the Offline Store if an `offline_store_config` is provided.
         * 
         * @return builder
         * 
         */
        public Builder roleArn(Output roleArn) {
            $.roleArn = roleArn;
            return this;
        }

        /**
         * @param roleArn The Amazon Resource Name (ARN) of the IAM execution role used to persist data into the Offline Store if an `offline_store_config` is provided.
         * 
         * @return builder
         * 
         */
        public Builder roleArn(String roleArn) {
            return roleArn(Output.of(roleArn));
        }

        /**
         * @param tags Map of resource tags for 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 Map of resource tags for 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 FeatureGroupArgs build() {
            if ($.eventTimeFeatureName == null) {
                throw new MissingRequiredPropertyException("FeatureGroupArgs", "eventTimeFeatureName");
            }
            if ($.featureDefinitions == null) {
                throw new MissingRequiredPropertyException("FeatureGroupArgs", "featureDefinitions");
            }
            if ($.featureGroupName == null) {
                throw new MissingRequiredPropertyException("FeatureGroupArgs", "featureGroupName");
            }
            if ($.recordIdentifierFeatureName == null) {
                throw new MissingRequiredPropertyException("FeatureGroupArgs", "recordIdentifierFeatureName");
            }
            if ($.roleArn == null) {
                throw new MissingRequiredPropertyException("FeatureGroupArgs", "roleArn");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy