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

com.pulumi.aws.transfer.ConnectorArgs 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.transfer;

import com.pulumi.aws.transfer.inputs.ConnectorAs2ConfigArgs;
import com.pulumi.aws.transfer.inputs.ConnectorSftpConfigArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final ConnectorArgs Empty = new ConnectorArgs();

    /**
     * The IAM Role which provides read and write access to the parent directory of the file location mentioned in the StartFileTransfer request.
     * 
     */
    @Import(name="accessRole", required=true)
    private Output accessRole;

    /**
     * @return The IAM Role which provides read and write access to the parent directory of the file location mentioned in the StartFileTransfer request.
     * 
     */
    public Output accessRole() {
        return this.accessRole;
    }

    /**
     * Either SFTP or AS2 is configured.The parameters to configure for the connector object. Fields documented below.
     * 
     */
    @Import(name="as2Config")
    private @Nullable Output as2Config;

    /**
     * @return Either SFTP or AS2 is configured.The parameters to configure for the connector object. Fields documented below.
     * 
     */
    public Optional> as2Config() {
        return Optional.ofNullable(this.as2Config);
    }

    /**
     * The IAM Role which is required for allowing the connector to turn on CloudWatch logging for Amazon S3 events.
     * 
     */
    @Import(name="loggingRole")
    private @Nullable Output loggingRole;

    /**
     * @return The IAM Role which is required for allowing the connector to turn on CloudWatch logging for Amazon S3 events.
     * 
     */
    public Optional> loggingRole() {
        return Optional.ofNullable(this.loggingRole);
    }

    /**
     * Name of the security policy for the connector.
     * 
     */
    @Import(name="securityPolicyName")
    private @Nullable Output securityPolicyName;

    /**
     * @return Name of the security policy for the connector.
     * 
     */
    public Optional> securityPolicyName() {
        return Optional.ofNullable(this.securityPolicyName);
    }

    /**
     * Either SFTP or AS2 is configured.The parameters to configure for the connector object. Fields documented below.
     * 
     */
    @Import(name="sftpConfig")
    private @Nullable Output sftpConfig;

    /**
     * @return Either SFTP or AS2 is configured.The parameters to configure for the connector object. Fields documented below.
     * 
     */
    public Optional> sftpConfig() {
        return Optional.ofNullable(this.sftpConfig);
    }

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

    /**
     * The URL of the partners AS2 endpoint or SFTP endpoint.
     * 
     */
    @Import(name="url", required=true)
    private Output url;

    /**
     * @return The URL of the partners AS2 endpoint or SFTP endpoint.
     * 
     */
    public Output url() {
        return this.url;
    }

    private ConnectorArgs() {}

    private ConnectorArgs(ConnectorArgs $) {
        this.accessRole = $.accessRole;
        this.as2Config = $.as2Config;
        this.loggingRole = $.loggingRole;
        this.securityPolicyName = $.securityPolicyName;
        this.sftpConfig = $.sftpConfig;
        this.tags = $.tags;
        this.url = $.url;
    }

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

    public static final class Builder {
        private ConnectorArgs $;

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

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

        /**
         * @param accessRole The IAM Role which provides read and write access to the parent directory of the file location mentioned in the StartFileTransfer request.
         * 
         * @return builder
         * 
         */
        public Builder accessRole(Output accessRole) {
            $.accessRole = accessRole;
            return this;
        }

        /**
         * @param accessRole The IAM Role which provides read and write access to the parent directory of the file location mentioned in the StartFileTransfer request.
         * 
         * @return builder
         * 
         */
        public Builder accessRole(String accessRole) {
            return accessRole(Output.of(accessRole));
        }

        /**
         * @param as2Config Either SFTP or AS2 is configured.The parameters to configure for the connector object. Fields documented below.
         * 
         * @return builder
         * 
         */
        public Builder as2Config(@Nullable Output as2Config) {
            $.as2Config = as2Config;
            return this;
        }

        /**
         * @param as2Config Either SFTP or AS2 is configured.The parameters to configure for the connector object. Fields documented below.
         * 
         * @return builder
         * 
         */
        public Builder as2Config(ConnectorAs2ConfigArgs as2Config) {
            return as2Config(Output.of(as2Config));
        }

        /**
         * @param loggingRole The IAM Role which is required for allowing the connector to turn on CloudWatch logging for Amazon S3 events.
         * 
         * @return builder
         * 
         */
        public Builder loggingRole(@Nullable Output loggingRole) {
            $.loggingRole = loggingRole;
            return this;
        }

        /**
         * @param loggingRole The IAM Role which is required for allowing the connector to turn on CloudWatch logging for Amazon S3 events.
         * 
         * @return builder
         * 
         */
        public Builder loggingRole(String loggingRole) {
            return loggingRole(Output.of(loggingRole));
        }

        /**
         * @param securityPolicyName Name of the security policy for the connector.
         * 
         * @return builder
         * 
         */
        public Builder securityPolicyName(@Nullable Output securityPolicyName) {
            $.securityPolicyName = securityPolicyName;
            return this;
        }

        /**
         * @param securityPolicyName Name of the security policy for the connector.
         * 
         * @return builder
         * 
         */
        public Builder securityPolicyName(String securityPolicyName) {
            return securityPolicyName(Output.of(securityPolicyName));
        }

        /**
         * @param sftpConfig Either SFTP or AS2 is configured.The parameters to configure for the connector object. Fields documented below.
         * 
         * @return builder
         * 
         */
        public Builder sftpConfig(@Nullable Output sftpConfig) {
            $.sftpConfig = sftpConfig;
            return this;
        }

        /**
         * @param sftpConfig Either SFTP or AS2 is configured.The parameters to configure for the connector object. Fields documented below.
         * 
         * @return builder
         * 
         */
        public Builder sftpConfig(ConnectorSftpConfigArgs sftpConfig) {
            return sftpConfig(Output.of(sftpConfig));
        }

        /**
         * @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 url The URL of the partners AS2 endpoint or SFTP endpoint.
         * 
         * @return builder
         * 
         */
        public Builder url(Output url) {
            $.url = url;
            return this;
        }

        /**
         * @param url The URL of the partners AS2 endpoint or SFTP endpoint.
         * 
         * @return builder
         * 
         */
        public Builder url(String url) {
            return url(Output.of(url));
        }

        public ConnectorArgs build() {
            if ($.accessRole == null) {
                throw new MissingRequiredPropertyException("ConnectorArgs", "accessRole");
            }
            if ($.url == null) {
                throw new MissingRequiredPropertyException("ConnectorArgs", "url");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy