import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Provides a AWS Transfer AS2 Connector resource. * * ## Example Usage * * ### Basic * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = new aws.transfer.Connector("example", { * as2Config: { * compression: "DISABLED", * encryptionAlgorithm: "AWS128_CBC", * messageSubject: "For Connector", * localProfileId: local.profileId, * mdnResponse: "NONE", * mdnSigningAlgorithm: "NONE", * partnerProfileId: partner.profileId, * signingAlgorithm: "NONE", * }, * accessRole: test.arn, * url: "http://www.test.com", * }); * ``` * * ### SFTP Connector * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = new aws.transfer.Connector("example", { * sftpConfig: { * trustedHostKeys: ["ssh-rsa AAAAB3NYourKeysHere"], * userSecretId: exampleAwsSecretsmanagerSecret.id, * }, * accessRole: test.arn, * url: "sftp://test.com", * }); * ``` * * ### SFTP Connector with VPC Lattice * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = new aws.transfer.Connector("example", { * sftpConfig: { * trustedHostKeys: ["ssh-rsa AAAAB3NYourKeysHere"], * userSecretId: exampleAwsSecretsmanagerSecret.id, * }, * egressConfig: { * vpcLattice: { * resourceConfigurationArn: "arn:aws:vpc-lattice:us-east-1:123456789012:resourceconfiguration/rcfg-12345678901234567", * portNumber: 22, * }, * }, * accessRole: test.arn, * }); * ``` * * ## Import * * Using `pulumi import`, import Transfer AS2 Connector using the `connectorId`. For example: * * ```sh * $ pulumi import aws:transfer/connector:Connector example c-4221a88afd5f4362a * ``` */ export declare class Connector extends pulumi.CustomResource { /** * Get an existing Connector resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: ConnectorState, opts?: pulumi.CustomResourceOptions): Connector; /** * Returns true if the given object is an instance of Connector. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is Connector; /** * IAM Role which provides read and write access to the parent directory of the file location mentioned in the StartFileTransfer request. */ readonly accessRole: pulumi.Output; /** * ARN of the connector. */ readonly arn: pulumi.Output; /** * Either SFTP or AS2 is configured. Parameters to configure for the connector object. See `as2Config` Block below. */ readonly as2Config: pulumi.Output; /** * Unique identifier for the AS2 profile or SFTP Profile. */ readonly connectorId: pulumi.Output; /** * Egress configuration for the connector. When set, enables routing through customer VPCs using VPC Lattice for private connectivity. See `egressConfig` Block below. */ readonly egressConfig: pulumi.Output; /** * IAM Role which is required for allowing the connector to turn on CloudWatch logging for Amazon S3 events. */ readonly loggingRole: pulumi.Output; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ readonly region: pulumi.Output; /** * Name of the security policy for the connector. */ readonly securityPolicyName: pulumi.Output; /** * Either SFTP or AS2 is configured. Parameters to configure for the connector object. See `sftpConfig` Block below. */ readonly sftpConfig: pulumi.Output; /** * Map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. */ readonly tags: pulumi.Output<{ [key: string]: string; } | undefined>; readonly tagsAll: pulumi.Output<{ [key: string]: string; }>; /** * URL of the partners AS2 endpoint or SFTP endpoint. Required for AS2 connectors and service-managed SFTP connectors. Must be null when using VPC Lattice egress configuration. */ readonly url: pulumi.Output; /** * Create a Connector resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: ConnectorArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Connector resources. */ export interface ConnectorState { /** * IAM Role which provides read and write access to the parent directory of the file location mentioned in the StartFileTransfer request. */ accessRole?: pulumi.Input; /** * ARN of the connector. */ arn?: pulumi.Input; /** * Either SFTP or AS2 is configured. Parameters to configure for the connector object. See `as2Config` Block below. */ as2Config?: pulumi.Input; /** * Unique identifier for the AS2 profile or SFTP Profile. */ connectorId?: pulumi.Input; /** * Egress configuration for the connector. When set, enables routing through customer VPCs using VPC Lattice for private connectivity. See `egressConfig` Block below. */ egressConfig?: pulumi.Input; /** * IAM Role which is required for allowing the connector to turn on CloudWatch logging for Amazon S3 events. */ loggingRole?: pulumi.Input; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ region?: pulumi.Input; /** * Name of the security policy for the connector. */ securityPolicyName?: pulumi.Input; /** * Either SFTP or AS2 is configured. Parameters to configure for the connector object. See `sftpConfig` Block below. */ sftpConfig?: pulumi.Input; /** * Map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; tagsAll?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * URL of the partners AS2 endpoint or SFTP endpoint. Required for AS2 connectors and service-managed SFTP connectors. Must be null when using VPC Lattice egress configuration. */ url?: pulumi.Input; } /** * The set of arguments for constructing a Connector resource. */ export interface ConnectorArgs { /** * IAM Role which provides read and write access to the parent directory of the file location mentioned in the StartFileTransfer request. */ accessRole: pulumi.Input; /** * Either SFTP or AS2 is configured. Parameters to configure for the connector object. See `as2Config` Block below. */ as2Config?: pulumi.Input; /** * Egress configuration for the connector. When set, enables routing through customer VPCs using VPC Lattice for private connectivity. See `egressConfig` Block below. */ egressConfig?: pulumi.Input; /** * IAM Role which is required for allowing the connector to turn on CloudWatch logging for Amazon S3 events. */ loggingRole?: pulumi.Input; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ region?: pulumi.Input; /** * Name of the security policy for the connector. */ securityPolicyName?: pulumi.Input; /** * Either SFTP or AS2 is configured. Parameters to configure for the connector object. See `sftpConfig` Block below. */ sftpConfig?: pulumi.Input; /** * Map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * URL of the partners AS2 endpoint or SFTP endpoint. Required for AS2 connectors and service-managed SFTP connectors. Must be null when using VPC Lattice egress configuration. */ url?: pulumi.Input; } //# sourceMappingURL=connector.d.ts.map