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

com.pulumi.aws.appsync.outputs.DataSourceDynamodbConfig 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.appsync.outputs;

import com.pulumi.aws.appsync.outputs.DataSourceDynamodbConfigDeltaSyncConfig;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class DataSourceDynamodbConfig {
    /**
     * @return The DeltaSyncConfig for a versioned data source. See `delta_sync_config` Block for details.
     * 
     */
    private @Nullable DataSourceDynamodbConfigDeltaSyncConfig deltaSyncConfig;
    /**
     * @return AWS region of the DynamoDB table. Defaults to current region.
     * 
     */
    private @Nullable String region;
    /**
     * @return Name of the DynamoDB table.
     * 
     */
    private String tableName;
    /**
     * @return Set to `true` to use Amazon Cognito credentials with this data source.
     * 
     */
    private @Nullable Boolean useCallerCredentials;
    /**
     * @return Detects Conflict Detection and Resolution with this data source.
     * 
     */
    private @Nullable Boolean versioned;

    private DataSourceDynamodbConfig() {}
    /**
     * @return The DeltaSyncConfig for a versioned data source. See `delta_sync_config` Block for details.
     * 
     */
    public Optional deltaSyncConfig() {
        return Optional.ofNullable(this.deltaSyncConfig);
    }
    /**
     * @return AWS region of the DynamoDB table. Defaults to current region.
     * 
     */
    public Optional region() {
        return Optional.ofNullable(this.region);
    }
    /**
     * @return Name of the DynamoDB table.
     * 
     */
    public String tableName() {
        return this.tableName;
    }
    /**
     * @return Set to `true` to use Amazon Cognito credentials with this data source.
     * 
     */
    public Optional useCallerCredentials() {
        return Optional.ofNullable(this.useCallerCredentials);
    }
    /**
     * @return Detects Conflict Detection and Resolution with this data source.
     * 
     */
    public Optional versioned() {
        return Optional.ofNullable(this.versioned);
    }

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

    public static Builder builder(DataSourceDynamodbConfig defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable DataSourceDynamodbConfigDeltaSyncConfig deltaSyncConfig;
        private @Nullable String region;
        private String tableName;
        private @Nullable Boolean useCallerCredentials;
        private @Nullable Boolean versioned;
        public Builder() {}
        public Builder(DataSourceDynamodbConfig defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.deltaSyncConfig = defaults.deltaSyncConfig;
    	      this.region = defaults.region;
    	      this.tableName = defaults.tableName;
    	      this.useCallerCredentials = defaults.useCallerCredentials;
    	      this.versioned = defaults.versioned;
        }

        @CustomType.Setter
        public Builder deltaSyncConfig(@Nullable DataSourceDynamodbConfigDeltaSyncConfig deltaSyncConfig) {

            this.deltaSyncConfig = deltaSyncConfig;
            return this;
        }
        @CustomType.Setter
        public Builder region(@Nullable String region) {

            this.region = region;
            return this;
        }
        @CustomType.Setter
        public Builder tableName(String tableName) {
            if (tableName == null) {
              throw new MissingRequiredPropertyException("DataSourceDynamodbConfig", "tableName");
            }
            this.tableName = tableName;
            return this;
        }
        @CustomType.Setter
        public Builder useCallerCredentials(@Nullable Boolean useCallerCredentials) {

            this.useCallerCredentials = useCallerCredentials;
            return this;
        }
        @CustomType.Setter
        public Builder versioned(@Nullable Boolean versioned) {

            this.versioned = versioned;
            return this;
        }
        public DataSourceDynamodbConfig build() {
            final var _resultValue = new DataSourceDynamodbConfig();
            _resultValue.deltaSyncConfig = deltaSyncConfig;
            _resultValue.region = region;
            _resultValue.tableName = tableName;
            _resultValue.useCallerCredentials = useCallerCredentials;
            _resultValue.versioned = versioned;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy