import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { CreateConnectorRequest, CreateConnectorResponse } from "../models/models_0"; import type { ServiceInputTypes, ServiceOutputTypes, TransferClientResolvedConfig } from "../TransferClient"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link CreateConnectorCommand}. */ export interface CreateConnectorCommandInput extends CreateConnectorRequest { } /** * @public * * The output of {@link CreateConnectorCommand}. */ export interface CreateConnectorCommandOutput extends CreateConnectorResponse, __MetadataBearer { } declare const CreateConnectorCommand_base: { new (input: CreateConnectorCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: CreateConnectorCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Creates the connector, which captures the parameters for a connection for the AS2 or SFTP protocol. For AS2, the connector is required for sending files to an externally hosted AS2 server. For SFTP, the connector is required when sending files to an SFTP server or receiving files from an SFTP server. For more details about connectors, see Configure AS2 connectors and Create SFTP connectors.

You must specify exactly one configuration object: either for AS2 (As2Config) or SFTP (SftpConfig).

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { TransferClient, CreateConnectorCommand } from "@aws-sdk/client-transfer"; // ES Modules import * // const { TransferClient, CreateConnectorCommand } = require("@aws-sdk/client-transfer"); // CommonJS import * // import type { TransferClientConfig } from "@aws-sdk/client-transfer"; * const config = {}; // type is TransferClientConfig * const client = new TransferClient(config); * const input = { // CreateConnectorRequest * Url: "STRING_VALUE", * As2Config: { // As2ConnectorConfig * LocalProfileId: "STRING_VALUE", * PartnerProfileId: "STRING_VALUE", * MessageSubject: "STRING_VALUE", * Compression: "ZLIB" || "DISABLED", * EncryptionAlgorithm: "AES128_CBC" || "AES192_CBC" || "AES256_CBC" || "DES_EDE3_CBC" || "NONE", * SigningAlgorithm: "SHA256" || "SHA384" || "SHA512" || "SHA1" || "NONE", * MdnSigningAlgorithm: "SHA256" || "SHA384" || "SHA512" || "SHA1" || "NONE" || "DEFAULT", * MdnResponse: "SYNC" || "NONE" || "ASYNC", * BasicAuthSecretId: "STRING_VALUE", * PreserveContentType: "ENABLED" || "DISABLED", * AsyncMdnConfig: { // As2AsyncMdnConnectorConfig * Url: "STRING_VALUE", * ServerIds: [ // As2AsyncMdnServerIds * "STRING_VALUE", * ], * }, * }, * AccessRole: "STRING_VALUE", // required * LoggingRole: "STRING_VALUE", * Tags: [ // Tags * { // Tag * Key: "STRING_VALUE", // required * Value: "STRING_VALUE", // required * }, * ], * SftpConfig: { // SftpConnectorConfig * UserSecretId: "STRING_VALUE", * TrustedHostKeys: [ // SftpConnectorTrustedHostKeyList * "STRING_VALUE", * ], * MaxConcurrentConnections: Number("int"), * }, * SecurityPolicyName: "STRING_VALUE", * EgressConfig: { // ConnectorEgressConfig Union: only one key present * VpcLattice: { // ConnectorVpcLatticeEgressConfig * ResourceConfigurationArn: "STRING_VALUE", // required * PortNumber: Number("int"), * }, * }, * }; * const command = new CreateConnectorCommand(input); * const response = await client.send(command); * // { // CreateConnectorResponse * // ConnectorId: "STRING_VALUE", // required * // }; * * ``` * * @param CreateConnectorCommandInput - {@link CreateConnectorCommandInput} * @returns {@link CreateConnectorCommandOutput} * @see {@link CreateConnectorCommandInput} for command's `input` shape. * @see {@link CreateConnectorCommandOutput} for command's `response` shape. * @see {@link TransferClientResolvedConfig | config} for TransferClient's `config` shape. * * @throws {@link InternalServiceError} (server fault) *

This exception is thrown when an error occurs in the Transfer Family service.

* * @throws {@link InvalidRequestException} (client fault) *

This exception is thrown when the client submits a malformed request.

* * @throws {@link ResourceExistsException} (client fault) *

The requested resource does not exist, or exists in a region other than the one specified for the command.

* * @throws {@link ResourceNotFoundException} (client fault) *

This exception is thrown when a resource is not found by the Amazon Web ServicesTransfer Family service.

* * @throws {@link ServiceUnavailableException} (server fault) *

The request has failed because the Amazon Web ServicesTransfer Family service is not available.

* * @throws {@link ThrottlingException} (client fault) *

The request was denied due to request throttling.

* * @throws {@link TransferServiceException} *

Base exception class for all service exceptions from Transfer service.

* * * @public */ export declare class CreateConnectorCommand extends CreateConnectorCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CreateConnectorRequest; output: CreateConnectorResponse; }; sdk: { input: CreateConnectorCommandInput; output: CreateConnectorCommandOutput; }; }; }