diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 758683a7a..c97898b14 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -211,6 +211,7 @@ jobs: publish fakecloud-opensearch # only core/persistence/aws deps (ES + OpenSearch) publish fakecloud-backup # only core/persistence/aws deps publish fakecloud-glacier # only core/persistence/aws deps + publish fakecloud-transfer # only core/persistence/aws deps publish fakecloud-kinesis publish fakecloud-scheduler publish fakecloud-bedrock diff --git a/AGENTS.md b/AGENTS.md index 6b0804e44..061817a3f 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -5,7 +5,7 @@ Local AWS cloud emulator. Part of the faisca project family. ## Product Context - FakeCloud is a local AWS emulator focused on high-fidelity behavior and AWS-compatible responses. -- Current project state: 60 AWS services, 4,625 operations, 152,159/152,159 Smithy conformance variants pass — true 100% across every implemented service, no flake margin. See [the parity matrix](website/content/docs/parity.md) for the full service-by-service breakdown of control-plane vs data-plane coverage and known limitations. +- Current project state: 61 AWS services, 4,696 operations, 154,915/154,915 Smithy conformance variants pass — true 100% across every implemented service, no flake margin. See [the parity matrix](website/content/docs/parity.md) for the full service-by-service breakdown of control-plane vs data-plane coverage and known limitations. - The broader roadmap prioritizes services that LocalStack keeps behind paid tiers, especially ECS, ELB/ALB, CloudFront, CloudWatch Metrics, and EC2. - Introspection SDKs (Rust, Python, TypeScript, Go, PHP, Java) are already built and maintained for the `/_fakecloud/*` endpoints. diff --git a/Cargo.lock b/Cargo.lock index ae8c3e2ac..a88f9e420 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3492,6 +3492,7 @@ dependencies = [ "fakecloud-ssm", "fakecloud-ssoadmin", "fakecloud-stepfunctions", + "fakecloud-transfer", "fakecloud-verifiedpermissions", "fakecloud-wafv2", "libc", @@ -5188,6 +5189,26 @@ dependencies = [ "tokio", ] +[[package]] +name = "fakecloud-transfer" +version = "0.34.1" +dependencies = [ + "async-trait", + "bytes", + "chrono", + "fakecloud-aws", + "fakecloud-core", + "fakecloud-persistence", + "http 1.4.0", + "parking_lot", + "serde", + "serde_json", + "thiserror 2.0.18", + "tokio", + "tracing", + "uuid", +] + [[package]] name = "fakecloud-verifiedpermissions" version = "0.34.1" diff --git a/Cargo.toml b/Cargo.toml index 4049372b1..2751e3ded 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,5 +1,5 @@ [workspace] -members = [ "crates/fakecloud-account", "crates/fakecloud-acm", "crates/fakecloud-apigateway", "crates/fakecloud-apigatewayv2", "crates/fakecloud-application-autoscaling", "crates/fakecloud-autoscaling", "crates/fakecloud-athena", "crates/fakecloud-aws", "crates/fakecloud-batch", "crates/fakecloud-bedrock", "crates/fakecloud-bedrock-agent", "crates/fakecloud-bedrock-agent-runtime", "crates/fakecloud-cloudcontrol", "crates/fakecloud-cloudformation", "crates/fakecloud-cloudfront", "crates/fakecloud-backup", "crates/fakecloud-cloudwatch", "crates/fakecloud-cognito", "crates/fakecloud-conformance", "crates/fakecloud-conformance-macros", "crates/fakecloud-core", "crates/fakecloud-dms", "crates/fakecloud-dsql", "crates/fakecloud-dynamodb", "crates/fakecloud-e2e", "crates/fakecloud-ec2", "crates/fakecloud-ecr", "crates/fakecloud-ecs", "crates/fakecloud-eks", "crates/fakecloud-glacier", "crates/fakecloud-elasticache", "crates/fakecloud-memorydb", "crates/fakecloud-elbv2", "crates/fakecloud-eventbridge", "crates/fakecloud-firehose", "crates/fakecloud-glue", "crates/fakecloud-iam", "crates/fakecloud-identitystore", "crates/fakecloud-ssoadmin", "crates/fakecloud-verifiedpermissions", "crates/fakecloud-kinesis", "crates/fakecloud-kms", "crates/fakecloud-k8s", "crates/fakecloud-lambda", "crates/fakecloud-logs", "crates/fakecloud-opensearch", "crates/fakecloud-organizations", "crates/fakecloud-parity", "crates/fakecloud-persistence", "crates/fakecloud-pipes", "crates/fakecloud-rds", "crates/fakecloud-rds-data", "crates/fakecloud-redshift", "crates/fakecloud-resource-groups", "crates/fakecloud-resource-groups-tagging", "crates/fakecloud-route53", "crates/fakecloud-s3", "crates/fakecloud-scheduler", "crates/fakecloud-sdk", "crates/fakecloud-secretsmanager", "crates/fakecloud-server", "crates/fakecloud-servicediscovery", "crates/fakecloud-ses", "crates/fakecloud-sns", "crates/fakecloud-sqs", "crates/fakecloud-ssm", "crates/fakecloud-stepfunctions", "crates/fakecloud-testkit", "crates/fakecloud-tfacc", "crates/fakecloud-wafv2",] +members = [ "crates/fakecloud-account", "crates/fakecloud-acm", "crates/fakecloud-apigateway", "crates/fakecloud-apigatewayv2", "crates/fakecloud-application-autoscaling", "crates/fakecloud-autoscaling", "crates/fakecloud-athena", "crates/fakecloud-aws", "crates/fakecloud-batch", "crates/fakecloud-bedrock", "crates/fakecloud-bedrock-agent", "crates/fakecloud-bedrock-agent-runtime", "crates/fakecloud-cloudcontrol", "crates/fakecloud-cloudformation", "crates/fakecloud-cloudfront", "crates/fakecloud-backup", "crates/fakecloud-cloudwatch", "crates/fakecloud-cognito", "crates/fakecloud-conformance", "crates/fakecloud-conformance-macros", "crates/fakecloud-core", "crates/fakecloud-dms", "crates/fakecloud-dsql", "crates/fakecloud-dynamodb", "crates/fakecloud-e2e", "crates/fakecloud-ec2", "crates/fakecloud-ecr", "crates/fakecloud-ecs", "crates/fakecloud-eks", "crates/fakecloud-glacier", "crates/fakecloud-elasticache", "crates/fakecloud-memorydb", "crates/fakecloud-elbv2", "crates/fakecloud-eventbridge", "crates/fakecloud-firehose", "crates/fakecloud-glue", "crates/fakecloud-iam", "crates/fakecloud-identitystore", "crates/fakecloud-ssoadmin", "crates/fakecloud-verifiedpermissions", "crates/fakecloud-kinesis", "crates/fakecloud-kms", "crates/fakecloud-k8s", "crates/fakecloud-lambda", "crates/fakecloud-logs", "crates/fakecloud-opensearch", "crates/fakecloud-organizations", "crates/fakecloud-parity", "crates/fakecloud-persistence", "crates/fakecloud-pipes", "crates/fakecloud-rds", "crates/fakecloud-rds-data", "crates/fakecloud-redshift", "crates/fakecloud-resource-groups", "crates/fakecloud-resource-groups-tagging", "crates/fakecloud-route53", "crates/fakecloud-s3", "crates/fakecloud-scheduler", "crates/fakecloud-sdk", "crates/fakecloud-secretsmanager", "crates/fakecloud-server", "crates/fakecloud-servicediscovery", "crates/fakecloud-ses", "crates/fakecloud-sns", "crates/fakecloud-sqs", "crates/fakecloud-ssm", "crates/fakecloud-stepfunctions", "crates/fakecloud-testkit", "crates/fakecloud-tfacc", "crates/fakecloud-transfer", "crates/fakecloud-wafv2",] resolver = "2" [workspace.package] @@ -209,6 +209,10 @@ version = "0.34.1" path = "crates/fakecloud-dms" version = "0.34.1" +[workspace.dependencies.fakecloud-transfer] +path = "crates/fakecloud-transfer" +version = "0.34.1" + [workspace.dependencies.fakecloud-dsql] path = "crates/fakecloud-dsql" version = "0.34.1" diff --git a/README.md b/README.md index 9a10469fc..0e25f75a7 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,7 @@ Works as a drop-in for LocalStack in CI, with Terraform (`endpoints` block), CDK ## Why fakecloud - **Free, forever.** AGPL-3.0, no paid tier, no account, no token. -- **True 100% conformance.** 152,159 Smithy-model-generated test variants pass on every commit, validated against AWS's own Smithy models. CI also runs upstream `terraform-provider-aws` `TestAcc*` suites to catch waiter/field/drift bugs that SDK tests miss. +- **True 100% conformance.** 154,915 Smithy-model-generated test variants pass on every commit, validated against AWS's own Smithy models. CI also runs upstream `terraform-provider-aws` `TestAcc*` suites to catch waiter/field/drift bugs that SDK tests miss. - **Real cross-service wiring.** EventBridge -> Step Functions, S3 -> Lambda, SES inbound -> S3/SNS/Lambda, and 15+ more integrations execute end-to-end. - **Real infrastructure for stateful services.** Lambda (23 runtimes), RDS (Postgres/MySQL/MariaDB/Oracle/SQL Server/Db2), ElastiCache (Redis/Valkey/Memcached), ECS, and EC2 run as real containers. Use Docker (default) or native Kubernetes Pods via `FAKECLOUD_CONTAINER_BACKEND=k8s`. See the [Kubernetes backend guide](https://fakecloud.dev/docs/guides/kubernetes-backend/). - **Single binary.** ~19 MB, ~10 MiB idle, ~300ms startup. No Docker needed to run fakecloud itself. @@ -47,7 +47,7 @@ Works as a drop-in for LocalStack in CI, with Terraform (`endpoints` block), CDK ## Supported services -60 services, 4,625 operations, true 100% conformance across every implemented service. Notes below are one-liners; the [parity matrix](https://fakecloud.dev/docs/parity/) has full control-plane vs data-plane coverage and known limitations per service. +61 services, 4,696 operations, true 100% conformance across every implemented service. Notes below are one-liners; the [parity matrix](https://fakecloud.dev/docs/parity/) has full control-plane vs data-plane coverage and known limitations per service. | Service | Ops | Notes | | ------------------------- | --- | ----- | @@ -74,6 +74,7 @@ Works as a drop-in for LocalStack in CI, with Terraform (`endpoints` block), CDK | RDS Data API | 6 | Real SQL on the backing Postgres/MySQL container, typed params/results incl. `bytea`/`BLOB`, transactions, batch | | Redshift | 141 | Full control plane: clusters, snapshots, parameter/subnet groups, snapshot schedules, endpoint access, logging, cross-region snapshot-copy config, tagging | | Database Migration Service | 119 | Full control plane: replication instances/tasks/endpoints, subnet groups, event subscriptions, certificates, serverless replication configs, data providers, instance profiles, migration projects, schema conversion, Fleet Advisor, tagging; persisted. No data-migration engine | +| Transfer Family | 71 | Full control plane: SFTP/FTPS/FTP/AS2 servers (start/stop settle state), users + SSH keys, host keys, accesses, workflows + executions, agreements, connectors (`TestConnection`, file transfer, directory listing, remote delete/move), profiles, certificates, security policies, web apps, `TestIdentityProvider`, tagging; persisted. No SFTP/AS2 transport engine | | Aurora DSQL | 16 | Serverless distributed Postgres control plane: clusters, resource policies, change streams to Kinesis, multi-region, tagging | | Resource Groups | 23 | Groups by tag/CloudFormation-stack query, explicit membership, group configuration, tagging, account settings, tag-sync tasks | | Resource Groups Tagging API | 9 | Cross-service tag reads/writes, compliance summary, tag reports, backed by a real cross-service tag index | @@ -126,6 +127,7 @@ Per-service docs and feature matrices: [fakecloud.dev/docs/services](https://fak | RDS Data API | 6 ops, real SQL + typed results + transactions on the RDS container | [Paid only](https://docs.localstack.cloud/references/licensing/) | | Redshift | 141 ops, full control plane free (clusters, snapshots, endpoint access, logging) | [Paid only](https://docs.localstack.cloud/references/licensing/) | | Database Migration Service | 119 ops, full control plane free (replication instances/tasks/endpoints, subnet groups, serverless configs, schema conversion) | [Paid only](https://docs.localstack.cloud/references/licensing/) | +| Transfer Family | 71 ops, full control plane free (servers, users, SSH/host keys, accesses, workflows, agreements, connectors, profiles, certificates, web apps) | [Paid only](https://docs.localstack.cloud/references/licensing/) | | Aurora DSQL | 16 ops, full control plane free (clusters, policies, streams, tagging) | [Paid only](https://docs.localstack.cloud/references/licensing/) | | Resource Groups | 23 ops, groups + queries + membership + tag-sync, free | [Paid only](https://docs.localstack.cloud/references/licensing/) | | Resource Groups Tagging API | 9 ops, cross-service tag reads/writes + reports, free | [Paid only](https://docs.localstack.cloud/references/licensing/) | diff --git a/aws-models/service-map.json b/aws-models/service-map.json index f4e070991..290d25022 100644 --- a/aws-models/service-map.json +++ b/aws-models/service-map.json @@ -238,5 +238,9 @@ "dms": { "repo_dir": "database-migration-service", "service_name": "dms" + }, + "transfer": { + "repo_dir": "transfer", + "service_name": "transfer" } } diff --git a/aws-models/transfer.json b/aws-models/transfer.json new file mode 100644 index 000000000..3bfbf488a --- /dev/null +++ b/aws-models/transfer.json @@ -0,0 +1,12453 @@ +{ + "smithy": "2.0", + "shapes": { + "com.amazonaws.necco.coral#CfnSshPublicKeys": { + "type": "list", + "member": { + "target": "com.amazonaws.transfer#SshPublicKeyBody" + }, + "traits": { + "smithy.api#documentation": "This represents the SSH User Public Keys for CloudFormation resource" + } + }, + "com.amazonaws.necco.coral#CfnUserProperties": { + "type": "structure", + "members": { + "SshPublicKeys": { + "target": "com.amazonaws.necco.coral#CfnSshPublicKeys" + } + }, + "traits": { + "smithy.api#documentation": "This represents the SSH User Public Keys for CloudFormation resource" + } + }, + "com.amazonaws.transfer#AccessDeniedException": { + "type": "structure", + "members": { + "Message": { + "target": "com.amazonaws.transfer#ServiceErrorMessage" + } + }, + "traits": { + "aws.protocols#awsQueryError": { + "code": "AccessDenied", + "httpResponseCode": 403 + }, + "smithy.api#documentation": "

You do not have sufficient access to perform this action.

", + "smithy.api#error": "client", + "smithy.api#httpError": 403 + } + }, + "com.amazonaws.transfer#AddressAllocationId": { + "type": "string" + }, + "com.amazonaws.transfer#AddressAllocationIds": { + "type": "list", + "member": { + "target": "com.amazonaws.transfer#AddressAllocationId" + } + }, + "com.amazonaws.transfer#AgreementId": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 19, + "max": 19 + }, + "smithy.api#pattern": "^a-([0-9a-f]{17})$" + } + }, + "com.amazonaws.transfer#AgreementResource": { + "type": "resource", + "identifiers": { + "ServerId": { + "target": "com.amazonaws.transfer#ServerId" + }, + "AgreementId": { + "target": "com.amazonaws.transfer#AgreementId" + } + }, + "create": { + "target": "com.amazonaws.transfer#CreateAgreement" + }, + "read": { + "target": "com.amazonaws.transfer#DescribeAgreement" + }, + "update": { + "target": "com.amazonaws.transfer#UpdateAgreement" + }, + "delete": { + "target": "com.amazonaws.transfer#DeleteAgreement" + }, + "list": { + "target": "com.amazonaws.transfer#ListAgreements" + }, + "traits": { + "aws.api#arn": { + "template": "agreement/{ServerId}/{AgreementId}" + }, + "aws.api#taggable": { + "property": "Tags" + }, + "aws.cloudformation#cfnResource": { + "name": "Agreement", + "additionalSchemas": [ + "com.amazonaws.transfer#DescribedAgreement" + ] + } + } + }, + "com.amazonaws.transfer#AgreementStatusType": { + "type": "enum", + "members": { + "ACTIVE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ACTIVE" + } + }, + "INACTIVE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "INACTIVE" + } + } + } + }, + "com.amazonaws.transfer#Arn": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 20, + "max": 1600 + }, + "smithy.api#pattern": "^arn:\\S+$" + } + }, + "com.amazonaws.transfer#As2AsyncMdnConnectorConfig": { + "type": "structure", + "members": { + "Url": { + "target": "com.amazonaws.transfer#Url", + "traits": { + "smithy.api#documentation": "

The URL endpoint where asynchronous MDN responses should be sent.

" + } + }, + "ServerIds": { + "target": "com.amazonaws.transfer#As2AsyncMdnServerIds", + "traits": { + "smithy.api#documentation": "

A list of server identifiers that can handle asynchronous MDN responses. You can specify between 1 and 10 server IDs.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Contains the configuration details for asynchronous Message Disposition Notification (MDN) responses in AS2 connectors. This configuration specifies where asynchronous MDN responses should be sent and which servers should handle them.

" + } + }, + "com.amazonaws.transfer#As2AsyncMdnServerIds": { + "type": "list", + "member": { + "target": "com.amazonaws.transfer#ServerId" + }, + "traits": { + "smithy.api#length": { + "min": 1, + "max": 10 + } + } + }, + "com.amazonaws.transfer#As2ConnectorConfig": { + "type": "structure", + "members": { + "LocalProfileId": { + "target": "com.amazonaws.transfer#ProfileId", + "traits": { + "smithy.api#documentation": "

A unique identifier for the AS2 local profile.

" + } + }, + "PartnerProfileId": { + "target": "com.amazonaws.transfer#ProfileId", + "traits": { + "smithy.api#documentation": "

A unique identifier for the partner profile for the connector.

" + } + }, + "MessageSubject": { + "target": "com.amazonaws.transfer#MessageSubject", + "traits": { + "smithy.api#documentation": "

Used as the Subject HTTP header attribute in AS2 messages that are being sent with the connector.

" + } + }, + "Compression": { + "target": "com.amazonaws.transfer#CompressionEnum", + "traits": { + "smithy.api#documentation": "

Specifies whether the AS2 file is compressed.

" + } + }, + "EncryptionAlgorithm": { + "target": "com.amazonaws.transfer#EncryptionAlg", + "traits": { + "smithy.api#documentation": "

The algorithm that is used to encrypt the file.

Note the following:

" + } + }, + "SigningAlgorithm": { + "target": "com.amazonaws.transfer#SigningAlg", + "traits": { + "smithy.api#documentation": "

The algorithm that is used to sign the AS2 messages sent with the connector.

" + } + }, + "MdnSigningAlgorithm": { + "target": "com.amazonaws.transfer#MdnSigningAlg", + "traits": { + "smithy.api#documentation": "

The signing algorithm for the MDN response.

If set to DEFAULT (or not set at all), the value for SigningAlgorithm is used.

" + } + }, + "MdnResponse": { + "target": "com.amazonaws.transfer#MdnResponse", + "traits": { + "smithy.api#documentation": "

Used for outbound requests (from an Transfer Family connector to a partner AS2 server) to determine whether the partner response for transfers is synchronous or asynchronous. Specify either of the following values:

" + } + }, + "BasicAuthSecretId": { + "target": "com.amazonaws.transfer#As2ConnectorSecretId", + "traits": { + "smithy.api#documentation": "

Provides Basic authentication support to the AS2 Connectors API. To use Basic authentication, you must provide the name or Amazon Resource Name (ARN) of a secret in Secrets Manager.

The default value for this parameter is null, which indicates that Basic authentication is not enabled for the connector.

If the connector should use Basic authentication, the secret needs to be in the following format:

{ \"Username\": \"user-name\", \"Password\": \"user-password\" }

Replace user-name and user-password with the credentials for the actual user that is being authenticated.

Note the following:

If you have previously enabled Basic authentication for a connector, you can disable it by using the UpdateConnector API call. For example, if you are using the CLI, you can run the following command to remove Basic authentication:

update-connector --connector-id my-connector-id --as2-config 'BasicAuthSecretId=\"\"'

" + } + }, + "PreserveContentType": { + "target": "com.amazonaws.transfer#PreserveContentType", + "traits": { + "smithy.api#documentation": "

Allows you to use the Amazon S3 Content-Type that is associated with objects in S3 instead of having the content type mapped based on the file extension. This parameter is enabled by default when you create an AS2 connector from the console, but disabled by default when you create an AS2 connector by calling the API directly.

" + } + }, + "AsyncMdnConfig": { + "target": "com.amazonaws.transfer#As2AsyncMdnConnectorConfig", + "traits": { + "smithy.api#documentation": "

Configuration settings for asynchronous Message Disposition Notification (MDN) responses. This allows you to configure where asynchronous MDN responses should be sent and which servers should handle them.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Contains the details for an AS2 connector object. The connector object is used for AS2 outbound processes, to connect the Transfer Family customer with the trading partner.

" + } + }, + "com.amazonaws.transfer#As2ConnectorSecretId": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 0, + "max": 2048 + } + } + }, + "com.amazonaws.transfer#As2Id": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 128 + }, + "smithy.api#pattern": "^[\\u0020-\\u007E\\s]*$" + } + }, + "com.amazonaws.transfer#As2Transport": { + "type": "enum", + "members": { + "HTTP": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "HTTP" + } + } + } + }, + "com.amazonaws.transfer#As2Transports": { + "type": "list", + "member": { + "target": "com.amazonaws.transfer#As2Transport" + }, + "traits": { + "smithy.api#length": { + "min": 1, + "max": 1 + } + } + }, + "com.amazonaws.transfer#CallbackToken": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 64 + }, + "smithy.api#pattern": "^\\w+$" + } + }, + "com.amazonaws.transfer#CertDate": { + "type": "timestamp" + }, + "com.amazonaws.transfer#CertSerial": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 0, + "max": 48 + }, + "smithy.api#pattern": "^[0-9a-fA-F{}:?]*$" + } + }, + "com.amazonaws.transfer#Certificate": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 0, + "max": 1600 + } + } + }, + "com.amazonaws.transfer#CertificateBodyType": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 16384 + }, + "smithy.api#pattern": "^[\\t\\n\\r\\u0020-\\u00FF]+$", + "smithy.api#sensitive": {} + } + }, + "com.amazonaws.transfer#CertificateChainType": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 2097152 + }, + "smithy.api#pattern": "^[\\t\\n\\r\\u0020-\\u00FF]+$", + "smithy.api#sensitive": {} + } + }, + "com.amazonaws.transfer#CertificateId": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 22, + "max": 22 + }, + "smithy.api#pattern": "^cert-([0-9a-f]{17})$" + } + }, + "com.amazonaws.transfer#CertificateIds": { + "type": "list", + "member": { + "target": "com.amazonaws.transfer#CertificateId" + } + }, + "com.amazonaws.transfer#CertificateResource": { + "type": "resource", + "identifiers": { + "CertificateId": { + "target": "com.amazonaws.transfer#CertificateId" + } + }, + "create": { + "target": "com.amazonaws.transfer#ImportCertificate" + }, + "read": { + "target": "com.amazonaws.transfer#DescribeCertificate" + }, + "update": { + "target": "com.amazonaws.transfer#UpdateCertificate" + }, + "delete": { + "target": "com.amazonaws.transfer#DeleteCertificate" + }, + "list": { + "target": "com.amazonaws.transfer#ListCertificates" + }, + "traits": { + "aws.api#arn": { + "template": "certificate/{CertificateId}" + }, + "aws.api#taggable": { + "property": "Tags" + }, + "aws.cloudformation#cfnResource": { + "name": "Certificate", + "additionalSchemas": [ + "com.amazonaws.transfer#DescribedCertificate" + ] + } + } + }, + "com.amazonaws.transfer#CertificateStatusType": { + "type": "enum", + "members": { + "ACTIVE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ACTIVE" + } + }, + "PENDING_ROTATION": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "PENDING_ROTATION" + } + }, + "INACTIVE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "INACTIVE" + } + } + } + }, + "com.amazonaws.transfer#CertificateType": { + "type": "enum", + "members": { + "CERTIFICATE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "CERTIFICATE" + } + }, + "CERTIFICATE_WITH_PRIVATE_KEY": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "CERTIFICATE_WITH_PRIVATE_KEY" + } + } + } + }, + "com.amazonaws.transfer#CertificateUsageType": { + "type": "enum", + "members": { + "SIGNING": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "SIGNING" + } + }, + "ENCRYPTION": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ENCRYPTION" + } + }, + "TLS": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "TLS" + } + } + } + }, + "com.amazonaws.transfer#CompressionEnum": { + "type": "enum", + "members": { + "ZLIB": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ZLIB" + } + }, + "DISABLED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "DISABLED" + } + } + } + }, + "com.amazonaws.transfer#ConflictException": { + "type": "structure", + "members": { + "Message": { + "target": "com.amazonaws.transfer#Message", + "traits": { + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

This exception is thrown when the UpdateServer is called for a file transfer protocol-enabled server that has VPC as the endpoint type and the server's VpcEndpointID is not in the available state.

", + "smithy.api#error": "client", + "smithy.api#httpError": 409 + } + }, + "com.amazonaws.transfer#ConnectorEgressConfig": { + "type": "union", + "members": { + "VpcLattice": { + "target": "com.amazonaws.transfer#ConnectorVpcLatticeEgressConfig", + "traits": { + "smithy.api#documentation": "

VPC_LATTICE configuration for routing connector traffic through customer VPCs. Enables private connectivity to SFTP servers without requiring public internet access or complex network configurations.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Configuration structure that defines how traffic is routed from the connector to the SFTP server. Contains VPC Lattice settings when using VPC_LATTICE egress type for private connectivity through customer VPCs.

" + } + }, + "com.amazonaws.transfer#ConnectorEgressType": { + "type": "enum", + "members": { + "SERVICE_MANAGED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "SERVICE_MANAGED" + } + }, + "VPC_LATTICE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "VPC_LATTICE" + } + } + } + }, + "com.amazonaws.transfer#ConnectorErrorMessage": { + "type": "string" + }, + "com.amazonaws.transfer#ConnectorFileTransferResult": { + "type": "structure", + "members": { + "FilePath": { + "target": "com.amazonaws.transfer#FilePath", + "traits": { + "smithy.api#documentation": "

The filename and path to where the file was sent to or retrieved from.

", + "smithy.api#required": {} + } + }, + "StatusCode": { + "target": "com.amazonaws.transfer#TransferTableStatus", + "traits": { + "smithy.api#documentation": "

The current status for the transfer.

", + "smithy.api#required": {} + } + }, + "FailureCode": { + "target": "com.amazonaws.transfer#FailureCode", + "traits": { + "smithy.api#documentation": "

For transfers that fail, this parameter contains a code indicating the reason. For example, RETRIEVE_FILE_NOT_FOUND

" + } + }, + "FailureMessage": { + "target": "com.amazonaws.transfer#Message", + "traits": { + "smithy.api#documentation": "

For transfers that fail, this parameter describes the reason for the failure.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

A structure that contains the details for files transferred using an SFTP connector, during a single transfer.

" + } + }, + "com.amazonaws.transfer#ConnectorFileTransferResults": { + "type": "list", + "member": { + "target": "com.amazonaws.transfer#ConnectorFileTransferResult" + }, + "traits": { + "smithy.api#length": { + "min": 0, + "max": 1000 + } + } + }, + "com.amazonaws.transfer#ConnectorId": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 19, + "max": 19 + }, + "smithy.api#pattern": "^c-([0-9a-f]{17})$" + } + }, + "com.amazonaws.transfer#ConnectorResource": { + "type": "resource", + "identifiers": { + "ConnectorId": { + "target": "com.amazonaws.transfer#ConnectorId" + } + }, + "create": { + "target": "com.amazonaws.transfer#CreateConnector" + }, + "read": { + "target": "com.amazonaws.transfer#DescribeConnector" + }, + "update": { + "target": "com.amazonaws.transfer#UpdateConnector" + }, + "delete": { + "target": "com.amazonaws.transfer#DeleteConnector" + }, + "list": { + "target": "com.amazonaws.transfer#ListConnectors" + }, + "traits": { + "aws.api#arn": { + "template": "connector/{ConnectorId}" + }, + "aws.api#taggable": { + "property": "Tags" + }, + "aws.cloudformation#cfnResource": { + "name": "Connector", + "additionalSchemas": [ + "com.amazonaws.transfer#DescribedConnector" + ] + } + } + }, + "com.amazonaws.transfer#ConnectorSecurityPolicyName": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 0, + "max": 100 + }, + "smithy.api#pattern": "^TransferSFTPConnectorSecurityPolicy-[A-Za-z0-9-]+$" + } + }, + "com.amazonaws.transfer#ConnectorStatus": { + "type": "enum", + "members": { + "ACTIVE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ACTIVE" + } + }, + "ERRORED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ERRORED" + } + }, + "PENDING": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "PENDING" + } + } + } + }, + "com.amazonaws.transfer#ConnectorVpcLatticeEgressConfig": { + "type": "structure", + "members": { + "ResourceConfigurationArn": { + "target": "com.amazonaws.transfer#VpcLatticeResourceConfigurationArn", + "traits": { + "smithy.api#documentation": "

ARN of the VPC_LATTICE Resource Configuration that defines the target SFTP server location. Must point to a valid Resource Configuration in the customer's VPC with appropriate network connectivity to the SFTP server.

", + "smithy.api#required": {} + } + }, + "PortNumber": { + "target": "com.amazonaws.transfer#SftpPort", + "traits": { + "smithy.api#documentation": "

Port number for connecting to the SFTP server through VPC_LATTICE. Defaults to 22 if not specified. Must match the port on which the target SFTP server is listening.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

VPC_LATTICE egress configuration that specifies the Resource Configuration ARN and port for connecting to SFTP servers through customer VPCs. Requires a valid Resource Configuration with appropriate network access.

" + } + }, + "com.amazonaws.transfer#ConnectorsIpAddressType": { + "type": "enum", + "members": { + "IPV4": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "IPV4" + } + }, + "DUALSTACK": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "DUALSTACK" + } + } + } + }, + "com.amazonaws.transfer#CopyStepDetails": { + "type": "structure", + "members": { + "Name": { + "target": "com.amazonaws.transfer#WorkflowStepName", + "traits": { + "smithy.api#documentation": "

The name of the step, used as an identifier.

" + } + }, + "DestinationFileLocation": { + "target": "com.amazonaws.transfer#InputFileLocation", + "traits": { + "smithy.api#documentation": "

Specifies the location for the file being copied. Use ${Transfer:UserName} or ${Transfer:UploadDate} in this field to parametrize the destination prefix by username or uploaded date.

" + } + }, + "OverwriteExisting": { + "target": "com.amazonaws.transfer#OverwriteExisting", + "traits": { + "smithy.api#documentation": "

A flag that indicates whether to overwrite an existing file of the same name. The default is FALSE.

If the workflow is processing a file that has the same name as an existing file, the behavior is as follows:

" + } + }, + "SourceFileLocation": { + "target": "com.amazonaws.transfer#SourceFileLocation", + "traits": { + "smithy.api#documentation": "

Specifies which file to use as input to the workflow step: either the output from the previous step, or the originally uploaded file for the workflow.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Each step type has its own StepDetails structure.

" + } + }, + "com.amazonaws.transfer#CreateAccess": { + "type": "operation", + "input": { + "target": "com.amazonaws.transfer#CreateAccessRequest" + }, + "output": { + "target": "com.amazonaws.transfer#CreateAccessResponse" + }, + "errors": [ + { + "target": "com.amazonaws.transfer#InternalServiceError" + }, + { + "target": "com.amazonaws.transfer#InvalidRequestException" + }, + { + "target": "com.amazonaws.transfer#ResourceExistsException" + }, + { + "target": "com.amazonaws.transfer#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.transfer#ServiceUnavailableException" + } + ], + "traits": { + "smithy.api#documentation": "

Used by administrators to choose which groups in the directory should have access to upload and download files over the enabled protocols using Transfer Family. For example, a Microsoft Active Directory might contain 50,000 users, but only a small fraction might need the ability to transfer files to the server. An administrator can use CreateAccess to limit the access to the correct set of users who need this ability.

" + } + }, + "com.amazonaws.transfer#CreateAccessRequest": { + "type": "structure", + "members": { + "HomeDirectory": { + "target": "com.amazonaws.transfer#HomeDirectory", + "traits": { + "smithy.api#documentation": "

The landing directory (folder) for a user when they log in to the server using the client.

A HomeDirectory example is /bucket_name/home/mydirectory.

You can use the HomeDirectory parameter for HomeDirectoryType when it is set to either PATH or LOGICAL.

" + } + }, + "HomeDirectoryType": { + "target": "com.amazonaws.transfer#HomeDirectoryType", + "traits": { + "smithy.api#documentation": "

The type of landing directory (folder) that you want your users' home directory to be when they log in to the server. If you set it to PATH, the user will see the absolute Amazon S3 bucket or Amazon EFS path as is in their file transfer protocol clients. If you set it to LOGICAL, you need to provide mappings in the HomeDirectoryMappings for how you want to make Amazon S3 or Amazon EFS paths visible to your users.

If HomeDirectoryType is LOGICAL, you must provide mappings, using the HomeDirectoryMappings parameter. If, on the other hand, HomeDirectoryType is PATH, you provide an absolute path using the HomeDirectory parameter. You cannot have both HomeDirectory and HomeDirectoryMappings in your template.

" + } + }, + "HomeDirectoryMappings": { + "target": "com.amazonaws.transfer#HomeDirectoryMappings", + "traits": { + "smithy.api#documentation": "

Logical directory mappings that specify what Amazon S3 or Amazon EFS paths and keys should be visible to your user and how you want to make them visible. You must specify the Entry and Target pair, where Entry shows how the path is made visible and Target is the actual Amazon S3 or Amazon EFS path. If you only specify a target, it is displayed as is. You also must ensure that your Identity and Access Management (IAM) role provides access to paths in Target. This value can be set only when HomeDirectoryType is set to LOGICAL.

The following is an Entry and Target pair example.

[ { \"Entry\": \"/directory1\", \"Target\": \"/bucket_name/home/mydirectory\" } ]

In most cases, you can use this value instead of the session policy to lock down your user to the designated home directory (\"chroot\"). To do this, you can set Entry to / and set Target to the HomeDirectory parameter value.

The following is an Entry and Target pair example for chroot.

[ { \"Entry\": \"/\", \"Target\": \"/bucket_name/home/mydirectory\" } ]

" + } + }, + "Policy": { + "target": "com.amazonaws.transfer#Policy", + "traits": { + "smithy.api#documentation": "

A session policy for your user so that you can use the same Identity and Access Management (IAM) role across multiple users. This policy scopes down a user's access to portions of their Amazon S3 bucket. Variables that you can use inside this policy include ${Transfer:UserName}, ${Transfer:HomeDirectory}, and ${Transfer:HomeBucket}.

This policy applies only when the domain of ServerId is Amazon S3. Amazon EFS does not use session policies.

For session policies, Transfer Family stores the policy as a JSON blob, instead of the Amazon Resource Name (ARN) of the policy. You save the policy as a JSON blob and pass it in the Policy argument.

For an example of a session policy, see Example session policy.

For more information, see AssumeRole in the Security Token Service API Reference.

" + } + }, + "PosixProfile": { + "target": "com.amazonaws.transfer#PosixProfile" + }, + "Role": { + "target": "com.amazonaws.transfer#Role", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role that controls your users' access to your Amazon S3 bucket or Amazon EFS file system. The policies attached to this role determine the level of access that you want to provide your users when transferring files into and out of your Amazon S3 bucket or Amazon EFS file system. The IAM role should also contain a trust relationship that allows the server to access your resources when servicing your users' transfer requests.

", + "smithy.api#required": {} + } + }, + "ServerId": { + "target": "com.amazonaws.transfer#ServerId", + "traits": { + "smithy.api#documentation": "

A system-assigned unique identifier for a server instance. This is the specific server that you added your user to.

", + "smithy.api#required": {} + } + }, + "ExternalId": { + "target": "com.amazonaws.transfer#ExternalId", + "traits": { + "smithy.api#documentation": "

A unique identifier that is required to identify specific groups within your directory. The users of the group that you associate have access to your Amazon S3 or Amazon EFS resources over the enabled protocols using Transfer Family. If you know the group name, you can view the SID values by running the following command using Windows PowerShell.

Get-ADGroup -Filter {samAccountName -like \"YourGroupName*\"} -Properties * | Select SamAccountName,ObjectSid

In that command, replace YourGroupName with the name of your Active Directory group.

The regular expression used to validate this parameter is a string of characters consisting of uppercase and lowercase alphanumeric characters with no spaces. You can also include underscores or any of the following characters: =,.@:/-

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.transfer#CreateAccessResponse": { + "type": "structure", + "members": { + "ServerId": { + "target": "com.amazonaws.transfer#ServerId", + "traits": { + "smithy.api#documentation": "

The identifier of the server that the user is attached to.

", + "smithy.api#required": {} + } + }, + "ExternalId": { + "target": "com.amazonaws.transfer#ExternalId", + "traits": { + "smithy.api#documentation": "

The external identifier of the group whose users have access to your Amazon S3 or Amazon EFS resources over the enabled protocols using Transfer Family.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.transfer#CreateAgreement": { + "type": "operation", + "input": { + "target": "com.amazonaws.transfer#CreateAgreementRequest" + }, + "output": { + "target": "com.amazonaws.transfer#CreateAgreementResponse" + }, + "errors": [ + { + "target": "com.amazonaws.transfer#InternalServiceError" + }, + { + "target": "com.amazonaws.transfer#InvalidRequestException" + }, + { + "target": "com.amazonaws.transfer#ResourceExistsException" + }, + { + "target": "com.amazonaws.transfer#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.transfer#ServiceUnavailableException" + }, + { + "target": "com.amazonaws.transfer#ThrottlingException" + } + ], + "traits": { + "aws.iam#iamAction": { + "requiredActions": [ + "transfer:TagResource", + "iam:PassRole" + ] + }, + "smithy.api#documentation": "

Creates an agreement. An agreement is a bilateral trading partner agreement, or partnership, between an Transfer Family server and an AS2 process. The agreement defines the file and message transfer relationship between the server and the AS2 process. To define an agreement, Transfer Family combines a server, local profile, partner profile, certificate, and other attributes.

The partner is identified with the PartnerProfileId, and the AS2 process is identified with the LocalProfileId.

Specify either BaseDirectory or CustomDirectories, but not both. Specifying both causes the command to fail.

" + } + }, + "com.amazonaws.transfer#CreateAgreementRequest": { + "type": "structure", + "members": { + "Description": { + "target": "com.amazonaws.transfer#Description", + "traits": { + "smithy.api#documentation": "

A name or short description to identify the agreement.

" + } + }, + "ServerId": { + "target": "com.amazonaws.transfer#ServerId", + "traits": { + "smithy.api#documentation": "

A system-assigned unique identifier for a server instance. This is the specific server that the agreement uses.

", + "smithy.api#required": {} + } + }, + "LocalProfileId": { + "target": "com.amazonaws.transfer#ProfileId", + "traits": { + "smithy.api#documentation": "

A unique identifier for the AS2 local profile.

", + "smithy.api#required": {} + } + }, + "PartnerProfileId": { + "target": "com.amazonaws.transfer#ProfileId", + "traits": { + "smithy.api#documentation": "

A unique identifier for the partner profile used in the agreement.

", + "smithy.api#required": {} + } + }, + "BaseDirectory": { + "target": "com.amazonaws.transfer#HomeDirectory", + "traits": { + "smithy.api#documentation": "

The landing directory (folder) for files transferred by using the AS2 protocol.

A BaseDirectory example is /amzn-s3-demo-bucket/home/mydirectory.

" + } + }, + "AccessRole": { + "target": "com.amazonaws.transfer#Role", + "traits": { + "smithy.api#documentation": "

Connectors are used to send files using either the AS2 or SFTP protocol. For the access role, provide the Amazon Resource Name (ARN) of the Identity and Access Management role to use.

For AS2 connectors

With AS2, you can send files by calling StartFileTransfer and specifying the file paths in the request parameter, SendFilePaths. We use the file\u2019s parent directory (for example, for --send-file-paths /bucket/dir/file.txt, parent directory is /bucket/dir/) to temporarily store a processed AS2 message file, store the MDN when we receive them from the partner, and write a final JSON file containing relevant metadata of the transmission. So, the AccessRole needs to provide read and write access to the parent directory of the file location used in the StartFileTransfer request. Additionally, you need to provide read and write access to the parent directory of the files that you intend to send with StartFileTransfer.

If you are using Basic authentication for your AS2 connector, the access role requires the secretsmanager:GetSecretValue permission for the secret. If the secret is encrypted using a customer-managed key instead of the Amazon Web Services managed key in Secrets Manager, then the role also needs the kms:Decrypt permission for that key.

For SFTP connectors

Make sure that the access role provides read and write access to the parent directory of the file location that's used in the StartFileTransfer request. Additionally, make sure that the role provides secretsmanager:GetSecretValue permission to Secrets Manager.

", + "smithy.api#required": {} + } + }, + "Status": { + "target": "com.amazonaws.transfer#AgreementStatusType", + "traits": { + "smithy.api#documentation": "

The status of the agreement. The agreement can be either ACTIVE or INACTIVE.

" + } + }, + "Tags": { + "target": "com.amazonaws.transfer#Tags", + "traits": { + "smithy.api#documentation": "

Key-value pairs that can be used to group and search for agreements.

" + } + }, + "PreserveFilename": { + "target": "com.amazonaws.transfer#PreserveFilenameType", + "traits": { + "smithy.api#documentation": "

Determines whether or not Transfer Family appends a unique string of characters to the end of the AS2 message payload filename when saving it.

" + } + }, + "EnforceMessageSigning": { + "target": "com.amazonaws.transfer#EnforceMessageSigningType", + "traits": { + "smithy.api#documentation": "

Determines whether or not unsigned messages from your trading partners will be accepted.

" + } + }, + "CustomDirectories": { + "target": "com.amazonaws.transfer#CustomDirectoriesType", + "traits": { + "smithy.api#documentation": "

A CustomDirectoriesType structure. This structure specifies custom directories for storing various AS2 message files. You can specify directories for the following types of files.

" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.transfer#CreateAgreementResponse": { + "type": "structure", + "members": { + "AgreementId": { + "target": "com.amazonaws.transfer#AgreementId", + "traits": { + "smithy.api#documentation": "

The unique identifier for the agreement. Use this ID for deleting, or updating an agreement, as well as in any other API calls that require that you specify the agreement ID.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.transfer#CreateConnector": { + "type": "operation", + "input": { + "target": "com.amazonaws.transfer#CreateConnectorRequest" + }, + "output": { + "target": "com.amazonaws.transfer#CreateConnectorResponse" + }, + "errors": [ + { + "target": "com.amazonaws.transfer#InternalServiceError" + }, + { + "target": "com.amazonaws.transfer#InvalidRequestException" + }, + { + "target": "com.amazonaws.transfer#ResourceExistsException" + }, + { + "target": "com.amazonaws.transfer#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.transfer#ServiceUnavailableException" + }, + { + "target": "com.amazonaws.transfer#ThrottlingException" + } + ], + "traits": { + "aws.iam#iamAction": { + "requiredActions": [ + "transfer:TagResource", + "iam:PassRole" + ] + }, + "smithy.api#documentation": "

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).

" + } + }, + "com.amazonaws.transfer#CreateConnectorRequest": { + "type": "structure", + "members": { + "Url": { + "target": "com.amazonaws.transfer#Url", + "traits": { + "smithy.api#documentation": "

The URL of the partner's AS2 or SFTP endpoint.

When creating AS2 connectors or service-managed SFTP connectors (connectors without egress configuration), you must provide a URL to specify the remote server endpoint. For VPC Lattice type connectors, the URL must be null.

" + } + }, + "As2Config": { + "target": "com.amazonaws.transfer#As2ConnectorConfig", + "traits": { + "smithy.api#documentation": "

A structure that contains the parameters for an AS2 connector object.

" + } + }, + "AccessRole": { + "target": "com.amazonaws.transfer#Role", + "traits": { + "smithy.api#documentation": "

Connectors are used to send files using either the AS2 or SFTP protocol. For the access role, provide the Amazon Resource Name (ARN) of the Identity and Access Management role to use.

For AS2 connectors

With AS2, you can send files by calling StartFileTransfer and specifying the file paths in the request parameter, SendFilePaths. We use the file\u2019s parent directory (for example, for --send-file-paths /bucket/dir/file.txt, parent directory is /bucket/dir/) to temporarily store a processed AS2 message file, store the MDN when we receive them from the partner, and write a final JSON file containing relevant metadata of the transmission. So, the AccessRole needs to provide read and write access to the parent directory of the file location used in the StartFileTransfer request. Additionally, you need to provide read and write access to the parent directory of the files that you intend to send with StartFileTransfer.

If you are using Basic authentication for your AS2 connector, the access role requires the secretsmanager:GetSecretValue permission for the secret. If the secret is encrypted using a customer-managed key instead of the Amazon Web Services managed key in Secrets Manager, then the role also needs the kms:Decrypt permission for that key.

For SFTP connectors

Make sure that the access role provides read and write access to the parent directory of the file location that's used in the StartFileTransfer request. Additionally, make sure that the role provides secretsmanager:GetSecretValue permission to Secrets Manager.

", + "smithy.api#required": {} + } + }, + "LoggingRole": { + "target": "com.amazonaws.transfer#Role", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role that allows a connector to turn on CloudWatch logging for Amazon S3 events. When set, you can view connector activity in your CloudWatch logs.

" + } + }, + "Tags": { + "target": "com.amazonaws.transfer#Tags", + "traits": { + "smithy.api#documentation": "

Key-value pairs that can be used to group and search for connectors. Tags are metadata attached to connectors for any purpose.

" + } + }, + "SftpConfig": { + "target": "com.amazonaws.transfer#SftpConnectorConfig", + "traits": { + "smithy.api#documentation": "

A structure that contains the parameters for an SFTP connector object.

" + } + }, + "SecurityPolicyName": { + "target": "com.amazonaws.transfer#ConnectorSecurityPolicyName", + "traits": { + "smithy.api#documentation": "

Specifies the name of the security policy for the connector.

" + } + }, + "EgressConfig": { + "target": "com.amazonaws.transfer#ConnectorEgressConfig", + "traits": { + "smithy.api#documentation": "

Specifies the egress configuration for the connector, which determines how traffic is routed from the connector to the SFTP server. When set to VPC, enables routing through customer VPCs using VPC_LATTICE for private connectivity.

" + } + }, + "IpAddressType": { + "target": "com.amazonaws.transfer#ConnectorsIpAddressType", + "traits": { + "smithy.api#documentation": "

Specifies the IP address type for the connector's network connections. When set to IPV4, the connector uses IPv4 addresses only. When set to DUALSTACK, the connector supports both IPv4 and IPv6 addresses, with IPv6 preferred when available.

" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.transfer#CreateConnectorResponse": { + "type": "structure", + "members": { + "ConnectorId": { + "target": "com.amazonaws.transfer#ConnectorId", + "traits": { + "smithy.api#documentation": "

The unique identifier for the connector, returned after the API call succeeds.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.transfer#CreateProfile": { + "type": "operation", + "input": { + "target": "com.amazonaws.transfer#CreateProfileRequest" + }, + "output": { + "target": "com.amazonaws.transfer#CreateProfileResponse" + }, + "errors": [ + { + "target": "com.amazonaws.transfer#InternalServiceError" + }, + { + "target": "com.amazonaws.transfer#InvalidRequestException" + }, + { + "target": "com.amazonaws.transfer#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.transfer#ServiceUnavailableException" + }, + { + "target": "com.amazonaws.transfer#ThrottlingException" + } + ], + "traits": { + "aws.iam#iamAction": { + "requiredActions": [ + "transfer:TagResource" + ] + }, + "smithy.api#documentation": "

Creates the local or partner profile to use for AS2 transfers.

" + } + }, + "com.amazonaws.transfer#CreateProfileRequest": { + "type": "structure", + "members": { + "As2Id": { + "target": "com.amazonaws.transfer#As2Id", + "traits": { + "smithy.api#documentation": "

The As2Id is the AS2-name, as defined in the RFC 4130. For inbound transfers, this is the AS2-From header for the AS2 messages sent from the partner. For outbound connectors, this is the AS2-To header for the AS2 messages sent to the partner using the StartFileTransfer API operation. This ID cannot include spaces.

", + "smithy.api#required": {} + } + }, + "ProfileType": { + "target": "com.amazonaws.transfer#ProfileType", + "traits": { + "smithy.api#documentation": "

Determines the type of profile to create:

", + "smithy.api#required": {} + } + }, + "CertificateIds": { + "target": "com.amazonaws.transfer#CertificateIds", + "traits": { + "smithy.api#documentation": "

An array of identifiers for the imported certificates. You use this identifier for working with profiles and partner profiles.

" + } + }, + "Tags": { + "target": "com.amazonaws.transfer#Tags", + "traits": { + "smithy.api#documentation": "

Key-value pairs that can be used to group and search for AS2 profiles.

" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.transfer#CreateProfileResponse": { + "type": "structure", + "members": { + "ProfileId": { + "target": "com.amazonaws.transfer#ProfileId", + "traits": { + "smithy.api#documentation": "

The unique identifier for the AS2 profile, returned after the API call succeeds.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.transfer#CreateServer": { + "type": "operation", + "input": { + "target": "com.amazonaws.transfer#CreateServerRequest" + }, + "output": { + "target": "com.amazonaws.transfer#CreateServerResponse" + }, + "errors": [ + { + "target": "com.amazonaws.transfer#AccessDeniedException" + }, + { + "target": "com.amazonaws.transfer#InternalServiceError" + }, + { + "target": "com.amazonaws.transfer#InvalidRequestException" + }, + { + "target": "com.amazonaws.transfer#ResourceExistsException" + }, + { + "target": "com.amazonaws.transfer#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.transfer#ServiceUnavailableException" + }, + { + "target": "com.amazonaws.transfer#ThrottlingException" + } + ], + "traits": { + "aws.iam#iamAction": { + "requiredActions": [ + "apigateway:GET", + "ds:AuthorizeApplication", + "ds:DescribeDirectories", + "ec2:AssociateAddress", + "ec2:CreateVpcEndpoint", + "ec2:DescribeAddresses", + "ec2:DescribeNetworkInterfaces", + "ec2:DescribeVpcEndpoints", + "iam:PassRole", + "transfer:CreateServer", + "transfer:DescribeServer", + "transfer:StartServer", + "transfer:StopServer", + "transfer:UpdateServer", + "transfer:TagResource", + "logs:CreateLogDelivery", + "logs:GetLogDelivery", + "logs:UpdateLogDelivery", + "logs:DeleteLogDelivery", + "logs:ListLogDeliveries", + "logs:PutResourcePolicy", + "logs:DescribeResourcePolicies", + "logs:DescribeLogGroups" + ] + }, + "smithy.api#documentation": "

Instantiates an auto-scaling virtual server based on the selected file transfer protocol in Amazon Web Services. When you make updates to your file transfer protocol-enabled server or when you work with users, use the service-generated ServerId property that is assigned to the newly created server.

" + } + }, + "com.amazonaws.transfer#CreateServerRequest": { + "type": "structure", + "members": { + "Certificate": { + "target": "com.amazonaws.transfer#Certificate", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the Certificate Manager (ACM) certificate. Required when Protocols is set to FTPS.

To request a new public certificate, see Request a public certificate in the Certificate Manager User Guide.

To import an existing certificate into ACM, see Importing certificates into ACM in the Certificate Manager User Guide.

To request a private certificate to use FTPS through private IP addresses, see Request a private certificate in the Certificate Manager User Guide.

Certificates with the following cryptographic algorithms and key sizes are supported:

The certificate must be a valid SSL/TLS X.509 version 3 certificate with FQDN or IP address specified and information about the issuer.

" + } + }, + "Domain": { + "target": "com.amazonaws.transfer#Domain", + "traits": { + "smithy.api#documentation": "

The domain of the storage system that is used for file transfers. There are two domains available: Amazon Simple Storage Service (Amazon S3) and Amazon Elastic File System (Amazon EFS). The default value is S3.

After the server is created, the domain cannot be changed.

" + } + }, + "EndpointDetails": { + "target": "com.amazonaws.transfer#EndpointDetails", + "traits": { + "smithy.api#documentation": "

The virtual private cloud (VPC) endpoint settings that are configured for your server. When you host your endpoint within your VPC, you can make your endpoint accessible only to resources within your VPC, or you can attach Elastic IP addresses and make your endpoint accessible to clients over the internet. Your VPC's default security groups are automatically assigned to your endpoint.

" + } + }, + "EndpointType": { + "target": "com.amazonaws.transfer#EndpointType", + "traits": { + "smithy.api#documentation": "

The type of endpoint that you want your server to use. You can choose to make your server's endpoint publicly accessible (PUBLIC) or host it inside your VPC. With an endpoint that is hosted in a VPC, you can restrict access to your server and resources only within your VPC or choose to make it internet facing by attaching Elastic IP addresses directly to it.

After May 19, 2021, you won't be able to create a server using EndpointType=VPC_ENDPOINT in your Amazon Web Services account if your account hasn't already done so before May 19, 2021. If you have already created servers with EndpointType=VPC_ENDPOINT in your Amazon Web Services account on or before May 19, 2021, you will not be affected. After this date, use EndpointType=VPC.

For more information, see https://docs.aws.amazon.com/transfer/latest/userguide/create-server-in-vpc.html#deprecate-vpc-endpoint.

It is recommended that you use VPC as the EndpointType. With this endpoint type, you have the option to directly associate up to three Elastic IPv4 addresses (BYO IP included) with your server's endpoint and use VPC security groups to restrict traffic by the client's public IP address. This is not possible with EndpointType set to VPC_ENDPOINT.

" + } + }, + "HostKey": { + "target": "com.amazonaws.transfer#HostKey", + "traits": { + "aws.cloudformation#cfnExcludeProperty": {}, + "smithy.api#documentation": "

The RSA, ECDSA, or ED25519 private key to use for your SFTP-enabled server. You can add multiple host keys, in case you want to rotate keys, or have a set of active keys that use different algorithms.

Use the following command to generate an RSA 2048 bit key with no passphrase:

ssh-keygen -t rsa -b 2048 -N \"\" -m PEM -f my-new-server-key.

Use a minimum value of 2048 for the -b option. You can create a stronger key by using 3072 or 4096.

Use the following command to generate an ECDSA 256 bit key with no passphrase:

ssh-keygen -t ecdsa -b 256 -N \"\" -m PEM -f my-new-server-key.

Valid values for the -b option for ECDSA are 256, 384, and 521.

Use the following command to generate an ED25519 key with no passphrase:

ssh-keygen -t ed25519 -N \"\" -f my-new-server-key.

For all of these commands, you can replace my-new-server-key with a string of your choice.

If you aren't planning to migrate existing users from an existing SFTP-enabled server to a new server, don't update the host key. Accidentally changing a server's host key can be disruptive.

For more information, see Manage host keys for your SFTP-enabled server in the Transfer Family User Guide.

" + } + }, + "IdentityProviderDetails": { + "target": "com.amazonaws.transfer#IdentityProviderDetails", + "traits": { + "smithy.api#documentation": "

Required when IdentityProviderType is set to AWS_DIRECTORY_SERVICE, Amazon Web Services_LAMBDA or API_GATEWAY. Accepts an array containing all of the information required to use a directory in AWS_DIRECTORY_SERVICE or invoke a customer-supplied authentication API, including the API Gateway URL. Cannot be specified when IdentityProviderType is set to SERVICE_MANAGED.

" + } + }, + "IdentityProviderType": { + "target": "com.amazonaws.transfer#IdentityProviderType", + "traits": { + "smithy.api#documentation": "

The mode of authentication for a server. The default value is SERVICE_MANAGED, which allows you to store and access user credentials within the Transfer Family service.

Use AWS_DIRECTORY_SERVICE to provide access to Active Directory groups in Directory Service for Microsoft Active Directory or Microsoft Active Directory in your on-premises environment or in Amazon Web Services using AD Connector. This option also requires you to provide a Directory ID by using the IdentityProviderDetails parameter.

Use the API_GATEWAY value to integrate with an identity provider of your choosing. The API_GATEWAY setting requires you to provide an Amazon API Gateway endpoint URL to call for authentication by using the IdentityProviderDetails parameter.

Use the AWS_LAMBDA value to directly use an Lambda function as your identity provider. If you choose this value, you must specify the ARN for the Lambda function in the Function parameter for the IdentityProviderDetails data type.

" + } + }, + "LoggingRole": { + "target": "com.amazonaws.transfer#NullableRole", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role that allows a server to turn on Amazon CloudWatch logging for Amazon S3 or Amazon EFS events. When set, you can view user activity in your CloudWatch logs.

" + } + }, + "PostAuthenticationLoginBanner": { + "target": "com.amazonaws.transfer#PostAuthenticationLoginBanner", + "traits": { + "smithy.api#documentation": "

Specifies a string to display when users connect to a server. This string is displayed after the user authenticates.

The SFTP protocol does not support post-authentication display banners.

" + } + }, + "PreAuthenticationLoginBanner": { + "target": "com.amazonaws.transfer#PreAuthenticationLoginBanner", + "traits": { + "smithy.api#documentation": "

Specifies a string to display when users connect to a server. This string is displayed before the user authenticates. For example, the following banner displays details about using the system:

This system is for the use of authorized users only. Individuals using this computer system without authority, or in excess of their authority, are subject to having all of their activities on this system monitored and recorded by system personnel.

" + } + }, + "Protocols": { + "target": "com.amazonaws.transfer#Protocols", + "traits": { + "smithy.api#documentation": "

Specifies the file transfer protocol or protocols over which your file transfer protocol client can connect to your server's endpoint. The available protocols are:

" + } + }, + "ProtocolDetails": { + "target": "com.amazonaws.transfer#ProtocolDetails", + "traits": { + "smithy.api#documentation": "

The protocol settings that are configured for your server.

Avoid placing Network Load Balancers (NLBs) or NAT gateways in front of Transfer Family servers, as this increases costs and can cause performance issues, including reduced connection limits for FTPS. For more details, see Avoid placing NLBs and NATs in front of Transfer Family.

" + } + }, + "SecurityPolicyName": { + "target": "com.amazonaws.transfer#SecurityPolicyName", + "traits": { + "smithy.api#documentation": "

Specifies the name of the security policy for the server.

" + } + }, + "Tags": { + "target": "com.amazonaws.transfer#Tags", + "traits": { + "smithy.api#documentation": "

Key-value pairs that can be used to group and search for servers.

" + } + }, + "WorkflowDetails": { + "target": "com.amazonaws.transfer#WorkflowDetails", + "traits": { + "smithy.api#documentation": "

Specifies the workflow ID for the workflow to assign and the execution role that's used for executing the workflow.

In addition to a workflow to execute when a file is uploaded completely, WorkflowDetails can also contain a workflow ID (and execution role) for a workflow to execute on partial upload. A partial upload occurs when the server session disconnects while the file is still being uploaded.

" + } + }, + "StructuredLogDestinations": { + "target": "com.amazonaws.transfer#StructuredLogDestinations", + "traits": { + "smithy.api#documentation": "

Specifies the log groups to which your server logs are sent.

To specify a log group, you must provide the ARN for an existing log group. In this case, the format of the log group is as follows:

arn:aws:logs:region-name:amazon-account-id:log-group:log-group-name:*

For example, arn:aws:logs:us-east-1:111122223333:log-group:mytestgroup:*

If you have previously specified a log group for a server, you can clear it, and in effect turn off structured logging, by providing an empty value for this parameter in an update-server call. For example:

update-server --server-id s-1234567890abcdef0 --structured-log-destinations

" + } + }, + "S3StorageOptions": { + "target": "com.amazonaws.transfer#S3StorageOptions", + "traits": { + "smithy.api#documentation": "

Specifies whether or not performance for your Amazon S3 directories is optimized.

By default, home directory mappings have a TYPE of DIRECTORY. If you enable this option, you would then need to explicitly set the HomeDirectoryMapEntry Type to FILE if you want a mapping to have a file target.

" + } + }, + "IpAddressType": { + "target": "com.amazonaws.transfer#IpAddressType", + "traits": { + "smithy.api#documentation": "

Specifies whether to use IPv4 only, or to use dual-stack (IPv4 and IPv6) for your Transfer Family endpoint. The default value is IPV4.

The IpAddressType parameter has the following limitations:

When using DUALSTACK as the IpAddressType, you cannot set the AddressAllocationIds parameter for the EndpointDetails for the server.

" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.transfer#CreateServerResponse": { + "type": "structure", + "members": { + "ServerId": { + "target": "com.amazonaws.transfer#ServerId", + "traits": { + "smithy.api#documentation": "

The service-assigned identifier of the server that is created.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.transfer#CreateUser": { + "type": "operation", + "input": { + "target": "com.amazonaws.transfer#CreateUserRequest" + }, + "output": { + "target": "com.amazonaws.transfer#CreateUserResponse" + }, + "errors": [ + { + "target": "com.amazonaws.transfer#InternalServiceError" + }, + { + "target": "com.amazonaws.transfer#InvalidRequestException" + }, + { + "target": "com.amazonaws.transfer#ResourceExistsException" + }, + { + "target": "com.amazonaws.transfer#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.transfer#ServiceUnavailableException" + } + ], + "traits": { + "aws.iam#iamAction": { + "requiredActions": [ + "iam:PassRole", + "transfer:CreateUser", + "transfer:DescribeUser", + "transfer:ImportSshPublicKey", + "transfer:TagResource" + ] + }, + "smithy.api#documentation": "

Creates a user and associates them with an existing file transfer protocol-enabled server. You can only create and associate users with servers that have the IdentityProviderType set to SERVICE_MANAGED. Using parameters for CreateUser, you can specify the user name, set the home directory, store the user's public key, and assign the user's Identity and Access Management (IAM) role. You can also optionally add a session policy, and assign metadata with tags that can be used to group and search for users.

", + "smithy.api#idempotent": {} + } + }, + "com.amazonaws.transfer#CreateUserRequest": { + "type": "structure", + "members": { + "HomeDirectory": { + "target": "com.amazonaws.transfer#HomeDirectory", + "traits": { + "smithy.api#documentation": "

The landing directory (folder) for a user when they log in to the server using the client.

A HomeDirectory example is /bucket_name/home/mydirectory.

You can use the HomeDirectory parameter for HomeDirectoryType when it is set to either PATH or LOGICAL.

" + } + }, + "HomeDirectoryType": { + "target": "com.amazonaws.transfer#HomeDirectoryType", + "traits": { + "smithy.api#documentation": "

The type of landing directory (folder) that you want your users' home directory to be when they log in to the server. If you set it to PATH, the user will see the absolute Amazon S3 bucket or Amazon EFS path as is in their file transfer protocol clients. If you set it to LOGICAL, you need to provide mappings in the HomeDirectoryMappings for how you want to make Amazon S3 or Amazon EFS paths visible to your users.

If HomeDirectoryType is LOGICAL, you must provide mappings, using the HomeDirectoryMappings parameter. If, on the other hand, HomeDirectoryType is PATH, you provide an absolute path using the HomeDirectory parameter. You cannot have both HomeDirectory and HomeDirectoryMappings in your template.

" + } + }, + "HomeDirectoryMappings": { + "target": "com.amazonaws.transfer#HomeDirectoryMappings", + "traits": { + "smithy.api#documentation": "

Logical directory mappings that specify what Amazon S3 or Amazon EFS paths and keys should be visible to your user and how you want to make them visible. You must specify the Entry and Target pair, where Entry shows how the path is made visible and Target is the actual Amazon S3 or Amazon EFS path. If you only specify a target, it is displayed as is. You also must ensure that your Identity and Access Management (IAM) role provides access to paths in Target. This value can be set only when HomeDirectoryType is set to LOGICAL.

The following is an Entry and Target pair example.

[ { \"Entry\": \"/directory1\", \"Target\": \"/bucket_name/home/mydirectory\" } ]

In most cases, you can use this value instead of the session policy to lock your user down to the designated home directory (\"chroot\"). To do this, you can set Entry to / and set Target to the value the user should see for their home directory when they log in.

The following is an Entry and Target pair example for chroot.

[ { \"Entry\": \"/\", \"Target\": \"/bucket_name/home/mydirectory\" } ]

" + } + }, + "Policy": { + "target": "com.amazonaws.transfer#Policy", + "traits": { + "smithy.api#documentation": "

A session policy for your user so that you can use the same Identity and Access Management (IAM) role across multiple users. This policy scopes down a user's access to portions of their Amazon S3 bucket. Variables that you can use inside this policy include ${Transfer:UserName}, ${Transfer:HomeDirectory}, and ${Transfer:HomeBucket}.

This policy applies only when the domain of ServerId is Amazon S3. Amazon EFS does not use session policies.

For session policies, Transfer Family stores the policy as a JSON blob, instead of the Amazon Resource Name (ARN) of the policy. You save the policy as a JSON blob and pass it in the Policy argument.

For an example of a session policy, see Example session policy.

For more information, see AssumeRole in the Amazon Web Services Security Token Service API Reference.

" + } + }, + "PosixProfile": { + "target": "com.amazonaws.transfer#PosixProfile", + "traits": { + "smithy.api#documentation": "

Specifies the full POSIX identity, including user ID (Uid), group ID (Gid), and any secondary groups IDs (SecondaryGids), that controls your users' access to your Amazon EFS file systems. The POSIX permissions that are set on files and directories in Amazon EFS determine the level of access your users get when transferring files into and out of your Amazon EFS file systems.

" + } + }, + "Role": { + "target": "com.amazonaws.transfer#Role", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role that controls your users' access to your Amazon S3 bucket or Amazon EFS file system. The policies attached to this role determine the level of access that you want to provide your users when transferring files into and out of your Amazon S3 bucket or Amazon EFS file system. The IAM role should also contain a trust relationship that allows the server to access your resources when servicing your users' transfer requests.

", + "smithy.api#required": {} + } + }, + "ServerId": { + "target": "com.amazonaws.transfer#ServerId", + "traits": { + "smithy.api#documentation": "

A system-assigned unique identifier for a server instance. This is the specific server that you added your user to.

", + "smithy.api#required": {} + } + }, + "SshPublicKeyBody": { + "target": "com.amazonaws.transfer#SshPublicKeyBody", + "traits": { + "aws.cloudformation#cfnExcludeProperty": {}, + "smithy.api#documentation": "

The public portion of the Secure Shell (SSH) key used to authenticate the user to the server.

The three standard SSH public key format elements are <key type>, <body base64>, and an optional <comment>, with spaces between each element.

Transfer Family accepts RSA, ECDSA, and ED25519 keys.

" + } + }, + "Tags": { + "target": "com.amazonaws.transfer#Tags", + "traits": { + "smithy.api#documentation": "

Key-value pairs that can be used to group and search for users. Tags are metadata attached to users for any purpose.

" + } + }, + "UserName": { + "target": "com.amazonaws.transfer#UserName", + "traits": { + "smithy.api#documentation": "

A unique string that identifies a user and is associated with a ServerId. This user name must be a minimum of 3 and a maximum of 100 characters long. The following are valid characters: a-z, A-Z, 0-9, underscore '_', hyphen '-', period '.', and at sign '@'. The user name can't start with a hyphen, period, or at sign.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.transfer#CreateUserResponse": { + "type": "structure", + "members": { + "ServerId": { + "target": "com.amazonaws.transfer#ServerId", + "traits": { + "smithy.api#documentation": "

The identifier of the server that the user is attached to.

", + "smithy.api#required": {} + } + }, + "UserName": { + "target": "com.amazonaws.transfer#UserName", + "traits": { + "smithy.api#documentation": "

A unique string that identifies a Transfer Family user.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.transfer#CreateWebApp": { + "type": "operation", + "input": { + "target": "com.amazonaws.transfer#CreateWebAppRequest" + }, + "output": { + "target": "com.amazonaws.transfer#CreateWebAppResponse" + }, + "errors": [ + { + "target": "com.amazonaws.transfer#AccessDeniedException" + }, + { + "target": "com.amazonaws.transfer#InternalServiceError" + }, + { + "target": "com.amazonaws.transfer#InvalidRequestException" + }, + { + "target": "com.amazonaws.transfer#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.transfer#ThrottlingException" + } + ], + "traits": { + "aws.iam#iamAction": { + "requiredActions": [ + "iam:PassRole", + "transfer:CreateWebApp", + "transfer:TagResource" + ] + }, + "smithy.api#documentation": "

Creates a web app based on specified parameters, and returns the ID for the new web app. You can configure the web app to be publicly accessible or hosted within a VPC.

For more information about using VPC endpoints with Transfer Family, see Create a Transfer Family web app in a VPC.

", + "smithy.api#http": { + "method": "POST", + "uri": "/createWebApp" + } + } + }, + "com.amazonaws.transfer#CreateWebAppRequest": { + "type": "structure", + "members": { + "IdentityProviderDetails": { + "target": "com.amazonaws.transfer#WebAppIdentityProviderDetails", + "traits": { + "smithy.api#documentation": "

You can provide a structure that contains the details for the identity provider to use with your web app.

For more details about this parameter, see Configure your identity provider for Transfer Family web apps.

", + "smithy.api#required": {} + } + }, + "AccessEndpoint": { + "target": "com.amazonaws.transfer#WebAppAccessEndpoint", + "traits": { + "smithy.api#documentation": "

The AccessEndpoint is the URL that you provide to your users for them to interact with the Transfer Family web app. You can specify a custom URL or use the default value.

Before you enter a custom URL for this parameter, follow the steps described in Update your access endpoint with a custom URL.

" + } + }, + "WebAppUnits": { + "target": "com.amazonaws.transfer#WebAppUnits", + "traits": { + "smithy.api#documentation": "

A union that contains the value for number of concurrent connections or the user sessions on your web app.

" + } + }, + "Tags": { + "target": "com.amazonaws.transfer#Tags", + "traits": { + "smithy.api#documentation": "

Key-value pairs that can be used to group and search for web apps.

" + } + }, + "WebAppEndpointPolicy": { + "target": "com.amazonaws.transfer#WebAppEndpointPolicy", + "traits": { + "smithy.api#documentation": "

Setting for the type of endpoint policy for the web app. The default value is STANDARD.

If you are creating the web app in an Amazon Web Services GovCloud (US) Region, you can set this parameter to FIPS.

" + } + }, + "EndpointDetails": { + "target": "com.amazonaws.transfer#WebAppEndpointDetails", + "traits": { + "smithy.api#documentation": "

The endpoint configuration for the web app. You can specify whether the web app endpoint is publicly accessible or hosted within a VPC.

" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.transfer#CreateWebAppResponse": { + "type": "structure", + "members": { + "WebAppId": { + "target": "com.amazonaws.transfer#WebAppId", + "traits": { + "smithy.api#documentation": "

Returns a unique identifier for the web app.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.transfer#CreateWorkflow": { + "type": "operation", + "input": { + "target": "com.amazonaws.transfer#CreateWorkflowRequest" + }, + "output": { + "target": "com.amazonaws.transfer#CreateWorkflowResponse" + }, + "errors": [ + { + "target": "com.amazonaws.transfer#AccessDeniedException" + }, + { + "target": "com.amazonaws.transfer#InternalServiceError" + }, + { + "target": "com.amazonaws.transfer#InvalidRequestException" + }, + { + "target": "com.amazonaws.transfer#ResourceExistsException" + }, + { + "target": "com.amazonaws.transfer#ServiceUnavailableException" + }, + { + "target": "com.amazonaws.transfer#ThrottlingException" + } + ], + "traits": { + "aws.iam#iamAction": { + "requiredActions": [ + "transfer:TagResource" + ] + }, + "smithy.api#documentation": "

Allows you to create a workflow with specified steps and step details the workflow invokes after file transfer completes. After creating a workflow, you can associate the workflow created with any transfer servers by specifying the workflow-details field in CreateServer and UpdateServer operations.

" + } + }, + "com.amazonaws.transfer#CreateWorkflowRequest": { + "type": "structure", + "members": { + "Description": { + "target": "com.amazonaws.transfer#WorkflowDescription", + "traits": { + "smithy.api#documentation": "

A textual description for the workflow.

" + } + }, + "Steps": { + "target": "com.amazonaws.transfer#WorkflowSteps", + "traits": { + "smithy.api#documentation": "

Specifies the details for the steps that are in the specified workflow.

The TYPE specifies which of the following actions is being taken for this step.

Currently, copying and tagging are supported only on S3.

For file location, you specify either the Amazon S3 bucket and key, or the Amazon EFS file system ID and path.

", + "smithy.api#required": {} + } + }, + "OnExceptionSteps": { + "target": "com.amazonaws.transfer#WorkflowSteps", + "traits": { + "smithy.api#documentation": "

Specifies the steps (actions) to take if errors are encountered during execution of the workflow.

For custom steps, the Lambda function needs to send FAILURE to the call back API to kick off the exception steps. Additionally, if the Lambda does not send SUCCESS before it times out, the exception steps are executed.

" + } + }, + "Tags": { + "target": "com.amazonaws.transfer#Tags", + "traits": { + "smithy.api#documentation": "

Key-value pairs that can be used to group and search for workflows. Tags are metadata attached to workflows for any purpose.

" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.transfer#CreateWorkflowResponse": { + "type": "structure", + "members": { + "WorkflowId": { + "target": "com.amazonaws.transfer#WorkflowId", + "traits": { + "smithy.api#documentation": "

A unique identifier for the workflow.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.transfer#CustomDirectoriesType": { + "type": "structure", + "members": { + "FailedFilesDirectory": { + "target": "com.amazonaws.transfer#HomeDirectory", + "traits": { + "smithy.api#documentation": "

Specifies a location to store failed AS2 message files.

", + "smithy.api#required": {} + } + }, + "MdnFilesDirectory": { + "target": "com.amazonaws.transfer#HomeDirectory", + "traits": { + "smithy.api#documentation": "

Specifies a location to store MDN files.

", + "smithy.api#required": {} + } + }, + "PayloadFilesDirectory": { + "target": "com.amazonaws.transfer#HomeDirectory", + "traits": { + "smithy.api#documentation": "

Specifies a location to store the payload for AS2 message files.

", + "smithy.api#required": {} + } + }, + "StatusFilesDirectory": { + "target": "com.amazonaws.transfer#HomeDirectory", + "traits": { + "smithy.api#documentation": "

Specifies a location to store AS2 status messages.

", + "smithy.api#required": {} + } + }, + "TemporaryFilesDirectory": { + "target": "com.amazonaws.transfer#HomeDirectory", + "traits": { + "smithy.api#documentation": "

Specifies a location to store temporary AS2 message files.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

Contains Amazon S3 locations for storing specific types of AS2 message files.

" + } + }, + "com.amazonaws.transfer#CustomHttpHeader": { + "type": "structure", + "members": { + "Key": { + "target": "com.amazonaws.transfer#CustomHttpHeaderKeyType", + "traits": { + "smithy.api#documentation": "

The name of the custom HTTP header.

" + } + }, + "Value": { + "target": "com.amazonaws.transfer#CustomHttpHeaderValueType", + "traits": { + "smithy.api#documentation": "

The value of the custom HTTP header.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Represents a custom HTTP header that can be included in AS2 messages. Each header consists of a key-value pair.

", + "smithy.api#sensitive": {} + } + }, + "com.amazonaws.transfer#CustomHttpHeaderKeyType": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 64 + }, + "smithy.api#pattern": "^[a-zA-Z0-9-]+$", + "smithy.api#sensitive": {} + } + }, + "com.amazonaws.transfer#CustomHttpHeaderValueType": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 0, + "max": 256 + }, + "smithy.api#pattern": "^[a-zA-Z0-9 +\\-./:=@_]*$", + "smithy.api#sensitive": {} + } + }, + "com.amazonaws.transfer#CustomHttpHeaders": { + "type": "list", + "member": { + "target": "com.amazonaws.transfer#CustomHttpHeader" + } + }, + "com.amazonaws.transfer#CustomStepDetails": { + "type": "structure", + "members": { + "Name": { + "target": "com.amazonaws.transfer#WorkflowStepName", + "traits": { + "smithy.api#documentation": "

The name of the step, used as an identifier.

" + } + }, + "Target": { + "target": "com.amazonaws.transfer#CustomStepTarget", + "traits": { + "smithy.api#documentation": "

The ARN for the Lambda function that is being called.

" + } + }, + "TimeoutSeconds": { + "target": "com.amazonaws.transfer#CustomStepTimeoutSeconds", + "traits": { + "smithy.api#documentation": "

Timeout, in seconds, for the step.

" + } + }, + "SourceFileLocation": { + "target": "com.amazonaws.transfer#SourceFileLocation", + "traits": { + "smithy.api#documentation": "

Specifies which file to use as input to the workflow step: either the output from the previous step, or the originally uploaded file for the workflow.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Each step type has its own StepDetails structure.

" + } + }, + "com.amazonaws.transfer#CustomStepStatus": { + "type": "enum", + "members": { + "SUCCESS": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "SUCCESS" + } + }, + "FAILURE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "FAILURE" + } + } + } + }, + "com.amazonaws.transfer#CustomStepTarget": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 0, + "max": 170 + }, + "smithy.api#pattern": "^arn:[a-z-]+:lambda:.*$" + } + }, + "com.amazonaws.transfer#CustomStepTimeoutSeconds": { + "type": "integer", + "traits": { + "smithy.api#range": { + "min": 1, + "max": 1800 + } + } + }, + "com.amazonaws.transfer#DateImported": { + "type": "timestamp" + }, + "com.amazonaws.transfer#DecryptStepDetails": { + "type": "structure", + "members": { + "Name": { + "target": "com.amazonaws.transfer#WorkflowStepName", + "traits": { + "smithy.api#documentation": "

The name of the step, used as an identifier.

" + } + }, + "Type": { + "target": "com.amazonaws.transfer#EncryptionType", + "traits": { + "smithy.api#documentation": "

The type of encryption used. Currently, this value must be PGP.

", + "smithy.api#required": {} + } + }, + "SourceFileLocation": { + "target": "com.amazonaws.transfer#SourceFileLocation", + "traits": { + "smithy.api#documentation": "

Specifies which file to use as input to the workflow step: either the output from the previous step, or the originally uploaded file for the workflow.

" + } + }, + "OverwriteExisting": { + "target": "com.amazonaws.transfer#OverwriteExisting", + "traits": { + "smithy.api#documentation": "

A flag that indicates whether to overwrite an existing file of the same name. The default is FALSE.

If the workflow is processing a file that has the same name as an existing file, the behavior is as follows:

" + } + }, + "DestinationFileLocation": { + "target": "com.amazonaws.transfer#InputFileLocation", + "traits": { + "smithy.api#documentation": "

Specifies the location for the file being decrypted. Use ${Transfer:UserName} or ${Transfer:UploadDate} in this field to parametrize the destination prefix by username or uploaded date.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

Each step type has its own StepDetails structure.

" + } + }, + "com.amazonaws.transfer#DeleteAccess": { + "type": "operation", + "input": { + "target": "com.amazonaws.transfer#DeleteAccessRequest" + }, + "output": { + "target": "smithy.api#Unit" + }, + "errors": [ + { + "target": "com.amazonaws.transfer#InternalServiceError" + }, + { + "target": "com.amazonaws.transfer#InvalidRequestException" + }, + { + "target": "com.amazonaws.transfer#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.transfer#ServiceUnavailableException" + } + ], + "traits": { + "smithy.api#documentation": "

Allows you to delete the access specified in the ServerID and ExternalID parameters.

" + } + }, + "com.amazonaws.transfer#DeleteAccessRequest": { + "type": "structure", + "members": { + "ServerId": { + "target": "com.amazonaws.transfer#ServerId", + "traits": { + "smithy.api#documentation": "

A system-assigned unique identifier for a server that has this user assigned.

", + "smithy.api#required": {} + } + }, + "ExternalId": { + "target": "com.amazonaws.transfer#ExternalId", + "traits": { + "smithy.api#documentation": "

A unique identifier that is required to identify specific groups within your directory. The users of the group that you associate have access to your Amazon S3 or Amazon EFS resources over the enabled protocols using Transfer Family. If you know the group name, you can view the SID values by running the following command using Windows PowerShell.

Get-ADGroup -Filter {samAccountName -like \"YourGroupName*\"} -Properties * | Select SamAccountName,ObjectSid

In that command, replace YourGroupName with the name of your Active Directory group.

The regular expression used to validate this parameter is a string of characters consisting of uppercase and lowercase alphanumeric characters with no spaces. You can also include underscores or any of the following characters: =,.@:/-

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.transfer#DeleteAgreement": { + "type": "operation", + "input": { + "target": "com.amazonaws.transfer#DeleteAgreementRequest" + }, + "output": { + "target": "smithy.api#Unit" + }, + "errors": [ + { + "target": "com.amazonaws.transfer#InternalServiceError" + }, + { + "target": "com.amazonaws.transfer#InvalidRequestException" + }, + { + "target": "com.amazonaws.transfer#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.transfer#ServiceUnavailableException" + } + ], + "traits": { + "smithy.api#documentation": "

Delete the agreement that's specified in the provided AgreementId.

", + "smithy.api#idempotent": {} + } + }, + "com.amazonaws.transfer#DeleteAgreementRequest": { + "type": "structure", + "members": { + "AgreementId": { + "target": "com.amazonaws.transfer#AgreementId", + "traits": { + "smithy.api#documentation": "

A unique identifier for the agreement. This identifier is returned when you create an agreement.

", + "smithy.api#required": {} + } + }, + "ServerId": { + "target": "com.amazonaws.transfer#ServerId", + "traits": { + "smithy.api#documentation": "

The server identifier associated with the agreement that you are deleting.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.transfer#DeleteCertificate": { + "type": "operation", + "input": { + "target": "com.amazonaws.transfer#DeleteCertificateRequest" + }, + "output": { + "target": "smithy.api#Unit" + }, + "errors": [ + { + "target": "com.amazonaws.transfer#InternalServiceError" + }, + { + "target": "com.amazonaws.transfer#InvalidRequestException" + }, + { + "target": "com.amazonaws.transfer#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.transfer#ServiceUnavailableException" + } + ], + "traits": { + "smithy.api#documentation": "

Deletes the certificate that's specified in the CertificateId parameter.

", + "smithy.api#idempotent": {} + } + }, + "com.amazonaws.transfer#DeleteCertificateRequest": { + "type": "structure", + "members": { + "CertificateId": { + "target": "com.amazonaws.transfer#CertificateId", + "traits": { + "smithy.api#documentation": "

The identifier of the certificate object that you are deleting.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.transfer#DeleteConnector": { + "type": "operation", + "input": { + "target": "com.amazonaws.transfer#DeleteConnectorRequest" + }, + "output": { + "target": "smithy.api#Unit" + }, + "errors": [ + { + "target": "com.amazonaws.transfer#InternalServiceError" + }, + { + "target": "com.amazonaws.transfer#InvalidRequestException" + }, + { + "target": "com.amazonaws.transfer#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.transfer#ServiceUnavailableException" + } + ], + "traits": { + "smithy.api#documentation": "

Deletes the connector that's specified in the provided ConnectorId.

", + "smithy.api#idempotent": {} + } + }, + "com.amazonaws.transfer#DeleteConnectorRequest": { + "type": "structure", + "members": { + "ConnectorId": { + "target": "com.amazonaws.transfer#ConnectorId", + "traits": { + "smithy.api#documentation": "

The unique identifier for the connector.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.transfer#DeleteHostKey": { + "type": "operation", + "input": { + "target": "com.amazonaws.transfer#DeleteHostKeyRequest" + }, + "output": { + "target": "smithy.api#Unit" + }, + "errors": [ + { + "target": "com.amazonaws.transfer#InternalServiceError" + }, + { + "target": "com.amazonaws.transfer#InvalidRequestException" + }, + { + "target": "com.amazonaws.transfer#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.transfer#ServiceUnavailableException" + }, + { + "target": "com.amazonaws.transfer#ThrottlingException" + } + ], + "traits": { + "smithy.api#documentation": "

Deletes the host key that's specified in the HostKeyId parameter.

" + } + }, + "com.amazonaws.transfer#DeleteHostKeyRequest": { + "type": "structure", + "members": { + "ServerId": { + "target": "com.amazonaws.transfer#ServerId", + "traits": { + "smithy.api#documentation": "

The identifier of the server that contains the host key that you are deleting.

", + "smithy.api#required": {} + } + }, + "HostKeyId": { + "target": "com.amazonaws.transfer#HostKeyId", + "traits": { + "smithy.api#documentation": "

The identifier of the host key that you are deleting.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.transfer#DeleteId": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 512 + }, + "smithy.api#pattern": "^[0-9a-zA-Z./-]+$" + } + }, + "com.amazonaws.transfer#DeleteProfile": { + "type": "operation", + "input": { + "target": "com.amazonaws.transfer#DeleteProfileRequest" + }, + "output": { + "target": "smithy.api#Unit" + }, + "errors": [ + { + "target": "com.amazonaws.transfer#InternalServiceError" + }, + { + "target": "com.amazonaws.transfer#InvalidRequestException" + }, + { + "target": "com.amazonaws.transfer#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.transfer#ServiceUnavailableException" + } + ], + "traits": { + "smithy.api#documentation": "

Deletes the profile that's specified in the ProfileId parameter.

", + "smithy.api#idempotent": {} + } + }, + "com.amazonaws.transfer#DeleteProfileRequest": { + "type": "structure", + "members": { + "ProfileId": { + "target": "com.amazonaws.transfer#ProfileId", + "traits": { + "smithy.api#documentation": "

The identifier of the profile that you are deleting.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.transfer#DeleteServer": { + "type": "operation", + "input": { + "target": "com.amazonaws.transfer#DeleteServerRequest" + }, + "output": { + "target": "smithy.api#Unit" + }, + "errors": [ + { + "target": "com.amazonaws.transfer#AccessDeniedException" + }, + { + "target": "com.amazonaws.transfer#InternalServiceError" + }, + { + "target": "com.amazonaws.transfer#InvalidRequestException" + }, + { + "target": "com.amazonaws.transfer#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.transfer#ServiceUnavailableException" + } + ], + "traits": { + "aws.iam#iamAction": { + "requiredActions": [ + "ds:DescribeDirectories", + "ds:UnauthorizeApplication", + "ec2:DeleteVpcEndpoints", + "ec2:DescribeAddresses", + "ec2:DescribeNetworkInterfaces", + "ec2:DescribeVpcEndpoints", + "ec2:DisassociateAddress", + "logs:GetLogDelivery", + "logs:DeleteLogDelivery", + "logs:ListLogDeliveries", + "transfer:DeleteServer" + ] + }, + "smithy.api#documentation": "

Deletes the file transfer protocol-enabled server that you specify.

No response returns from this operation.

", + "smithy.api#idempotent": {} + } + }, + "com.amazonaws.transfer#DeleteServerRequest": { + "type": "structure", + "members": { + "ServerId": { + "target": "com.amazonaws.transfer#ServerId", + "traits": { + "smithy.api#documentation": "

A unique system-assigned identifier for a server instance.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.transfer#DeleteSshPublicKey": { + "type": "operation", + "input": { + "target": "com.amazonaws.transfer#DeleteSshPublicKeyRequest" + }, + "output": { + "target": "smithy.api#Unit" + }, + "errors": [ + { + "target": "com.amazonaws.transfer#InternalServiceError" + }, + { + "target": "com.amazonaws.transfer#InvalidRequestException" + }, + { + "target": "com.amazonaws.transfer#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.transfer#ServiceUnavailableException" + }, + { + "target": "com.amazonaws.transfer#ThrottlingException" + } + ], + "traits": { + "smithy.api#documentation": "

Deletes a user's Secure Shell (SSH) public key.

" + } + }, + "com.amazonaws.transfer#DeleteSshPublicKeyRequest": { + "type": "structure", + "members": { + "ServerId": { + "target": "com.amazonaws.transfer#ServerId", + "traits": { + "smithy.api#documentation": "

A system-assigned unique identifier for a file transfer protocol-enabled server instance that has the user assigned to it.

", + "smithy.api#required": {} + } + }, + "SshPublicKeyId": { + "target": "com.amazonaws.transfer#SshPublicKeyId", + "traits": { + "smithy.api#documentation": "

A unique identifier used to reference your user's specific SSH key.

", + "smithy.api#required": {} + } + }, + "UserName": { + "target": "com.amazonaws.transfer#UserName", + "traits": { + "smithy.api#documentation": "

A unique string that identifies a user whose public key is being deleted.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.transfer#DeleteStepDetails": { + "type": "structure", + "members": { + "Name": { + "target": "com.amazonaws.transfer#WorkflowStepName", + "traits": { + "smithy.api#documentation": "

The name of the step, used as an identifier.

" + } + }, + "SourceFileLocation": { + "target": "com.amazonaws.transfer#SourceFileLocation", + "traits": { + "smithy.api#documentation": "

Specifies which file to use as input to the workflow step: either the output from the previous step, or the originally uploaded file for the workflow.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

The name of the step, used to identify the delete step.

" + } + }, + "com.amazonaws.transfer#DeleteUser": { + "type": "operation", + "input": { + "target": "com.amazonaws.transfer#DeleteUserRequest" + }, + "output": { + "target": "smithy.api#Unit" + }, + "errors": [ + { + "target": "com.amazonaws.transfer#InternalServiceError" + }, + { + "target": "com.amazonaws.transfer#InvalidRequestException" + }, + { + "target": "com.amazonaws.transfer#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.transfer#ServiceUnavailableException" + } + ], + "traits": { + "aws.iam#iamAction": { + "requiredActions": [ + "transfer:DeleteUser" + ] + }, + "smithy.api#documentation": "

Deletes the user belonging to a file transfer protocol-enabled server you specify.

No response returns from this operation.

When you delete a user from a server, the user's information is lost.

", + "smithy.api#idempotent": {} + } + }, + "com.amazonaws.transfer#DeleteUserRequest": { + "type": "structure", + "members": { + "ServerId": { + "target": "com.amazonaws.transfer#ServerId", + "traits": { + "smithy.api#documentation": "

A system-assigned unique identifier for a server instance that has the user assigned to it.

", + "smithy.api#required": {} + } + }, + "UserName": { + "target": "com.amazonaws.transfer#UserName", + "traits": { + "smithy.api#documentation": "

A unique string that identifies a user that is being deleted from a server.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.transfer#DeleteWebApp": { + "type": "operation", + "input": { + "target": "com.amazonaws.transfer#DeleteWebAppRequest" + }, + "output": { + "target": "smithy.api#Unit" + }, + "errors": [ + { + "target": "com.amazonaws.transfer#AccessDeniedException" + }, + { + "target": "com.amazonaws.transfer#InternalServiceError" + }, + { + "target": "com.amazonaws.transfer#InvalidRequestException" + }, + { + "target": "com.amazonaws.transfer#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.transfer#ThrottlingException" + } + ], + "traits": { + "aws.iam#iamAction": { + "requiredActions": [ + "transfer:DeleteWebApp" + ] + }, + "smithy.api#documentation": "

Deletes the specified web app.

", + "smithy.api#http": { + "method": "POST", + "uri": "/deleteWebApp" + }, + "smithy.api#idempotent": {} + } + }, + "com.amazonaws.transfer#DeleteWebAppCustomization": { + "type": "operation", + "input": { + "target": "com.amazonaws.transfer#DeleteWebAppCustomizationRequest" + }, + "output": { + "target": "smithy.api#Unit" + }, + "errors": [ + { + "target": "com.amazonaws.transfer#AccessDeniedException" + }, + { + "target": "com.amazonaws.transfer#ConflictException" + }, + { + "target": "com.amazonaws.transfer#InternalServiceError" + }, + { + "target": "com.amazonaws.transfer#InvalidRequestException" + }, + { + "target": "com.amazonaws.transfer#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.transfer#ThrottlingException" + } + ], + "traits": { + "aws.iam#iamAction": { + "requiredActions": [ + "transfer:DeleteWebAppCustomization" + ] + }, + "smithy.api#documentation": "

Deletes the WebAppCustomization object that corresponds to the web app ID specified.

", + "smithy.api#http": { + "method": "POST", + "uri": "/deleteWebAppCustomization" + }, + "smithy.api#idempotent": {} + } + }, + "com.amazonaws.transfer#DeleteWebAppCustomizationRequest": { + "type": "structure", + "members": { + "WebAppId": { + "target": "com.amazonaws.transfer#WebAppId", + "traits": { + "smithy.api#documentation": "

Provide the unique identifier for the web app that contains the customizations that you are deleting.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {}, + "smithy.api#references": [ + { + "resource": "com.amazonaws.transfer#WebAppResource" + } + ] + } + }, + "com.amazonaws.transfer#DeleteWebAppRequest": { + "type": "structure", + "members": { + "WebAppId": { + "target": "com.amazonaws.transfer#WebAppId", + "traits": { + "smithy.api#documentation": "

Provide the unique identifier for the web app that you are deleting.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.transfer#DeleteWorkflow": { + "type": "operation", + "input": { + "target": "com.amazonaws.transfer#DeleteWorkflowRequest" + }, + "output": { + "target": "smithy.api#Unit" + }, + "errors": [ + { + "target": "com.amazonaws.transfer#AccessDeniedException" + }, + { + "target": "com.amazonaws.transfer#InternalServiceError" + }, + { + "target": "com.amazonaws.transfer#InvalidRequestException" + }, + { + "target": "com.amazonaws.transfer#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.transfer#ServiceUnavailableException" + } + ], + "traits": { + "smithy.api#documentation": "

Deletes the specified workflow.

", + "smithy.api#idempotent": {} + } + }, + "com.amazonaws.transfer#DeleteWorkflowRequest": { + "type": "structure", + "members": { + "WorkflowId": { + "target": "com.amazonaws.transfer#WorkflowId", + "traits": { + "smithy.api#documentation": "

A unique identifier for the workflow.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.transfer#DescribeAccess": { + "type": "operation", + "input": { + "target": "com.amazonaws.transfer#DescribeAccessRequest" + }, + "output": { + "target": "com.amazonaws.transfer#DescribeAccessResponse" + }, + "errors": [ + { + "target": "com.amazonaws.transfer#InternalServiceError" + }, + { + "target": "com.amazonaws.transfer#InvalidRequestException" + }, + { + "target": "com.amazonaws.transfer#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.transfer#ServiceUnavailableException" + } + ], + "traits": { + "smithy.api#documentation": "

Describes the access that is assigned to the specific file transfer protocol-enabled server, as identified by its ServerId property and its ExternalId.

The response from this call returns the properties of the access that is associated with the ServerId value that was specified.

", + "smithy.api#readonly": {} + } + }, + "com.amazonaws.transfer#DescribeAccessRequest": { + "type": "structure", + "members": { + "ServerId": { + "target": "com.amazonaws.transfer#ServerId", + "traits": { + "smithy.api#documentation": "

A system-assigned unique identifier for a server that has this access assigned.

", + "smithy.api#required": {} + } + }, + "ExternalId": { + "target": "com.amazonaws.transfer#ExternalId", + "traits": { + "smithy.api#documentation": "

A unique identifier that is required to identify specific groups within your directory. The users of the group that you associate have access to your Amazon S3 or Amazon EFS resources over the enabled protocols using Transfer Family. If you know the group name, you can view the SID values by running the following command using Windows PowerShell.

Get-ADGroup -Filter {samAccountName -like \"YourGroupName*\"} -Properties * | Select SamAccountName,ObjectSid

In that command, replace YourGroupName with the name of your Active Directory group.

The regular expression used to validate this parameter is a string of characters consisting of uppercase and lowercase alphanumeric characters with no spaces. You can also include underscores or any of the following characters: =,.@:/-

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.transfer#DescribeAccessResponse": { + "type": "structure", + "members": { + "ServerId": { + "target": "com.amazonaws.transfer#ServerId", + "traits": { + "smithy.api#documentation": "

A system-assigned unique identifier for a server that has this access assigned.

", + "smithy.api#required": {} + } + }, + "Access": { + "target": "com.amazonaws.transfer#DescribedAccess", + "traits": { + "smithy.api#documentation": "

The external identifier of the server that the access is attached to.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.transfer#DescribeAgreement": { + "type": "operation", + "input": { + "target": "com.amazonaws.transfer#DescribeAgreementRequest" + }, + "output": { + "target": "com.amazonaws.transfer#DescribeAgreementResponse" + }, + "errors": [ + { + "target": "com.amazonaws.transfer#InternalServiceError" + }, + { + "target": "com.amazonaws.transfer#InvalidRequestException" + }, + { + "target": "com.amazonaws.transfer#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.transfer#ServiceUnavailableException" + } + ], + "traits": { + "smithy.api#documentation": "

Describes the agreement that's identified by the AgreementId.

", + "smithy.api#readonly": {} + } + }, + "com.amazonaws.transfer#DescribeAgreementRequest": { + "type": "structure", + "members": { + "AgreementId": { + "target": "com.amazonaws.transfer#AgreementId", + "traits": { + "smithy.api#documentation": "

A unique identifier for the agreement. This identifier is returned when you create an agreement.

", + "smithy.api#required": {} + } + }, + "ServerId": { + "target": "com.amazonaws.transfer#ServerId", + "traits": { + "smithy.api#documentation": "

The server identifier that's associated with the agreement.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.transfer#DescribeAgreementResponse": { + "type": "structure", + "members": { + "Agreement": { + "target": "com.amazonaws.transfer#DescribedAgreement", + "traits": { + "aws.cloudformation#cfnExcludeProperty": {}, + "smithy.api#documentation": "

The details for the specified agreement, returned as a DescribedAgreement object.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.transfer#DescribeCertificate": { + "type": "operation", + "input": { + "target": "com.amazonaws.transfer#DescribeCertificateRequest" + }, + "output": { + "target": "com.amazonaws.transfer#DescribeCertificateResponse" + }, + "errors": [ + { + "target": "com.amazonaws.transfer#InternalServiceError" + }, + { + "target": "com.amazonaws.transfer#InvalidRequestException" + }, + { + "target": "com.amazonaws.transfer#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.transfer#ServiceUnavailableException" + } + ], + "traits": { + "smithy.api#documentation": "

Describes the certificate that's identified by the CertificateId.

Transfer Family automatically publishes a Amazon CloudWatch metric called DaysUntilExpiry for imported certificates. This metric tracks the number of days until the certificate expires based on the InactiveDate. The metric is available in the AWS/Transfer namespace and includes the CertificateId as a dimension.

", + "smithy.api#readonly": {} + } + }, + "com.amazonaws.transfer#DescribeCertificateRequest": { + "type": "structure", + "members": { + "CertificateId": { + "target": "com.amazonaws.transfer#CertificateId", + "traits": { + "smithy.api#documentation": "

An array of identifiers for the imported certificates. You use this identifier for working with profiles and partner profiles.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.transfer#DescribeCertificateResponse": { + "type": "structure", + "members": { + "Certificate": { + "target": "com.amazonaws.transfer#DescribedCertificate", + "traits": { + "aws.cloudformation#cfnExcludeProperty": {}, + "smithy.api#documentation": "

The details for the specified certificate, returned as an object.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.transfer#DescribeConnector": { + "type": "operation", + "input": { + "target": "com.amazonaws.transfer#DescribeConnectorRequest" + }, + "output": { + "target": "com.amazonaws.transfer#DescribeConnectorResponse" + }, + "errors": [ + { + "target": "com.amazonaws.transfer#InternalServiceError" + }, + { + "target": "com.amazonaws.transfer#InvalidRequestException" + }, + { + "target": "com.amazonaws.transfer#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.transfer#ServiceUnavailableException" + } + ], + "traits": { + "smithy.api#documentation": "

Describes the connector that's identified by the ConnectorId.

", + "smithy.api#readonly": {} + } + }, + "com.amazonaws.transfer#DescribeConnectorRequest": { + "type": "structure", + "members": { + "ConnectorId": { + "target": "com.amazonaws.transfer#ConnectorId", + "traits": { + "smithy.api#documentation": "

The unique identifier for the connector.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.transfer#DescribeConnectorResponse": { + "type": "structure", + "members": { + "Connector": { + "target": "com.amazonaws.transfer#DescribedConnector", + "traits": { + "aws.cloudformation#cfnExcludeProperty": {}, + "smithy.api#documentation": "

The structure that contains the details of the connector.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.transfer#DescribeExecution": { + "type": "operation", + "input": { + "target": "com.amazonaws.transfer#DescribeExecutionRequest" + }, + "output": { + "target": "com.amazonaws.transfer#DescribeExecutionResponse" + }, + "errors": [ + { + "target": "com.amazonaws.transfer#InternalServiceError" + }, + { + "target": "com.amazonaws.transfer#InvalidRequestException" + }, + { + "target": "com.amazonaws.transfer#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.transfer#ServiceUnavailableException" + } + ], + "traits": { + "smithy.api#documentation": "

You can use DescribeExecution to check the details of the execution of the specified workflow.

This API call only returns details for in-progress workflows.

If you provide an ID for an execution that is not in progress, or if the execution doesn't match the specified workflow ID, you receive a ResourceNotFound exception.

", + "smithy.api#readonly": {} + } + }, + "com.amazonaws.transfer#DescribeExecutionRequest": { + "type": "structure", + "members": { + "ExecutionId": { + "target": "com.amazonaws.transfer#ExecutionId", + "traits": { + "smithy.api#documentation": "

A unique identifier for the execution of a workflow.

", + "smithy.api#required": {} + } + }, + "WorkflowId": { + "target": "com.amazonaws.transfer#WorkflowId", + "traits": { + "smithy.api#documentation": "

A unique identifier for the workflow.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.transfer#DescribeExecutionResponse": { + "type": "structure", + "members": { + "WorkflowId": { + "target": "com.amazonaws.transfer#WorkflowId", + "traits": { + "smithy.api#documentation": "

A unique identifier for the workflow.

", + "smithy.api#required": {} + } + }, + "Execution": { + "target": "com.amazonaws.transfer#DescribedExecution", + "traits": { + "smithy.api#documentation": "

The structure that contains the details of the workflow' execution.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.transfer#DescribeHostKey": { + "type": "operation", + "input": { + "target": "com.amazonaws.transfer#DescribeHostKeyRequest" + }, + "output": { + "target": "com.amazonaws.transfer#DescribeHostKeyResponse" + }, + "errors": [ + { + "target": "com.amazonaws.transfer#InternalServiceError" + }, + { + "target": "com.amazonaws.transfer#InvalidRequestException" + }, + { + "target": "com.amazonaws.transfer#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.transfer#ServiceUnavailableException" + } + ], + "traits": { + "smithy.api#documentation": "

Returns the details of the host key that's specified by the HostKeyId and ServerId.

", + "smithy.api#readonly": {} + } + }, + "com.amazonaws.transfer#DescribeHostKeyRequest": { + "type": "structure", + "members": { + "ServerId": { + "target": "com.amazonaws.transfer#ServerId", + "traits": { + "smithy.api#documentation": "

The identifier of the server that contains the host key that you want described.

", + "smithy.api#required": {} + } + }, + "HostKeyId": { + "target": "com.amazonaws.transfer#HostKeyId", + "traits": { + "smithy.api#documentation": "

The identifier of the host key that you want described.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.transfer#DescribeHostKeyResponse": { + "type": "structure", + "members": { + "HostKey": { + "target": "com.amazonaws.transfer#DescribedHostKey", + "traits": { + "smithy.api#documentation": "

Returns the details for the specified host key.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.transfer#DescribeProfile": { + "type": "operation", + "input": { + "target": "com.amazonaws.transfer#DescribeProfileRequest" + }, + "output": { + "target": "com.amazonaws.transfer#DescribeProfileResponse" + }, + "errors": [ + { + "target": "com.amazonaws.transfer#InternalServiceError" + }, + { + "target": "com.amazonaws.transfer#InvalidRequestException" + }, + { + "target": "com.amazonaws.transfer#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.transfer#ServiceUnavailableException" + } + ], + "traits": { + "smithy.api#documentation": "

Returns the details of the profile that's specified by the ProfileId.

", + "smithy.api#readonly": {} + } + }, + "com.amazonaws.transfer#DescribeProfileRequest": { + "type": "structure", + "members": { + "ProfileId": { + "target": "com.amazonaws.transfer#ProfileId", + "traits": { + "smithy.api#documentation": "

The identifier of the profile that you want described.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.transfer#DescribeProfileResponse": { + "type": "structure", + "members": { + "Profile": { + "target": "com.amazonaws.transfer#DescribedProfile", + "traits": { + "aws.cloudformation#cfnExcludeProperty": {}, + "smithy.api#documentation": "

The details of the specified profile, returned as an object.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.transfer#DescribeSecurityPolicy": { + "type": "operation", + "input": { + "target": "com.amazonaws.transfer#DescribeSecurityPolicyRequest" + }, + "output": { + "target": "com.amazonaws.transfer#DescribeSecurityPolicyResponse" + }, + "errors": [ + { + "target": "com.amazonaws.transfer#InternalServiceError" + }, + { + "target": "com.amazonaws.transfer#InvalidRequestException" + }, + { + "target": "com.amazonaws.transfer#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.transfer#ServiceUnavailableException" + } + ], + "traits": { + "smithy.api#documentation": "

Describes the security policy that is attached to your server or SFTP connector. The response contains a description of the security policy's properties. For more information about security policies, see Working with security policies for servers or Working with security policies for SFTP connectors.

", + "smithy.api#readonly": {} + } + }, + "com.amazonaws.transfer#DescribeSecurityPolicyRequest": { + "type": "structure", + "members": { + "SecurityPolicyName": { + "target": "com.amazonaws.transfer#SecurityPolicyName", + "traits": { + "smithy.api#documentation": "

Specify the text name of the security policy for which you want the details.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.transfer#DescribeSecurityPolicyResponse": { + "type": "structure", + "members": { + "SecurityPolicy": { + "target": "com.amazonaws.transfer#DescribedSecurityPolicy", + "traits": { + "smithy.api#documentation": "

An array containing the properties of the security policy.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.transfer#DescribeServer": { + "type": "operation", + "input": { + "target": "com.amazonaws.transfer#DescribeServerRequest" + }, + "output": { + "target": "com.amazonaws.transfer#DescribeServerResponse" + }, + "errors": [ + { + "target": "com.amazonaws.transfer#InternalServiceError" + }, + { + "target": "com.amazonaws.transfer#InvalidRequestException" + }, + { + "target": "com.amazonaws.transfer#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.transfer#ServiceUnavailableException" + } + ], + "traits": { + "aws.iam#iamAction": { + "requiredActions": [ + "ec2:DescribeVpcEndpoints", + "transfer:DescribeServer" + ] + }, + "smithy.api#documentation": "

Describes a file transfer protocol-enabled server that you specify by passing the ServerId parameter.

The response contains a description of a server's properties. When you set EndpointType to VPC, the response will contain the EndpointDetails.

", + "smithy.api#readonly": {}, + "smithy.waiters#waitable": { + "ServerOffline": { + "acceptors": [ + { + "state": "success", + "matcher": { + "output": { + "path": "Server.State", + "expected": "OFFLINE", + "comparator": "stringEquals" + } + } + }, + { + "state": "failure", + "matcher": { + "output": { + "path": "Server.State", + "expected": "STOP_FAILED", + "comparator": "stringEquals" + } + } + } + ], + "maxDelay": 3600, + "minDelay": 30 + }, + "ServerOnline": { + "acceptors": [ + { + "state": "success", + "matcher": { + "output": { + "path": "Server.State", + "expected": "ONLINE", + "comparator": "stringEquals" + } + } + }, + { + "state": "failure", + "matcher": { + "output": { + "path": "Server.State", + "expected": "START_FAILED", + "comparator": "stringEquals" + } + } + } + ], + "maxDelay": 3600, + "minDelay": 30 + } + } + } + }, + "com.amazonaws.transfer#DescribeServerRequest": { + "type": "structure", + "members": { + "ServerId": { + "target": "com.amazonaws.transfer#ServerId", + "traits": { + "smithy.api#documentation": "

A system-assigned unique identifier for a server.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.transfer#DescribeServerResponse": { + "type": "structure", + "members": { + "Server": { + "target": "com.amazonaws.transfer#DescribedServer", + "traits": { + "aws.cloudformation#cfnExcludeProperty": {}, + "smithy.api#documentation": "

An array containing the properties of a server with the ServerID you specified.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.transfer#DescribeUser": { + "type": "operation", + "input": { + "target": "com.amazonaws.transfer#DescribeUserRequest" + }, + "output": { + "target": "com.amazonaws.transfer#DescribeUserResponse" + }, + "errors": [ + { + "target": "com.amazonaws.transfer#InternalServiceError" + }, + { + "target": "com.amazonaws.transfer#InvalidRequestException" + }, + { + "target": "com.amazonaws.transfer#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.transfer#ServiceUnavailableException" + } + ], + "traits": { + "aws.iam#iamAction": { + "requiredActions": [ + "transfer:DescribeUser" + ] + }, + "smithy.api#documentation": "

Describes the user assigned to the specific file transfer protocol-enabled server, as identified by its ServerId property.

The response from this call returns the properties of the user associated with the ServerId value that was specified.

", + "smithy.api#readonly": {} + } + }, + "com.amazonaws.transfer#DescribeUserRequest": { + "type": "structure", + "members": { + "ServerId": { + "target": "com.amazonaws.transfer#ServerId", + "traits": { + "smithy.api#documentation": "

A system-assigned unique identifier for a server that has this user assigned.

", + "smithy.api#required": {} + } + }, + "UserName": { + "target": "com.amazonaws.transfer#UserName", + "traits": { + "smithy.api#documentation": "

The name of the user assigned to one or more servers. User names are part of the sign-in credentials to use the Transfer Family service and perform file transfer tasks.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.transfer#DescribeUserResponse": { + "type": "structure", + "members": { + "ServerId": { + "target": "com.amazonaws.transfer#ServerId", + "traits": { + "smithy.api#documentation": "

A system-assigned unique identifier for a server that has this user assigned.

", + "smithy.api#required": {} + } + }, + "User": { + "target": "com.amazonaws.transfer#DescribedUser", + "traits": { + "aws.cloudformation#cfnExcludeProperty": {}, + "smithy.api#documentation": "

An array containing the properties of the Transfer Family user for the ServerID value that you specified.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.transfer#DescribeWebApp": { + "type": "operation", + "input": { + "target": "com.amazonaws.transfer#DescribeWebAppRequest" + }, + "output": { + "target": "com.amazonaws.transfer#DescribeWebAppResponse" + }, + "errors": [ + { + "target": "com.amazonaws.transfer#AccessDeniedException" + }, + { + "target": "com.amazonaws.transfer#InternalServiceError" + }, + { + "target": "com.amazonaws.transfer#InvalidRequestException" + }, + { + "target": "com.amazonaws.transfer#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.transfer#ThrottlingException" + } + ], + "traits": { + "aws.iam#iamAction": { + "requiredActions": [ + "transfer:DescribeWebApp" + ] + }, + "smithy.api#documentation": "

Describes the web app that's identified by WebAppId. The response includes endpoint configuration details such as whether the web app is publicly accessible or VPC hosted.

For more information about using VPC endpoints with Transfer Family, see Create a Transfer Family web app in a VPC.

", + "smithy.api#http": { + "method": "POST", + "uri": "/describeWebApp" + }, + "smithy.api#readonly": {} + } + }, + "com.amazonaws.transfer#DescribeWebAppCustomization": { + "type": "operation", + "input": { + "target": "com.amazonaws.transfer#DescribeWebAppCustomizationRequest" + }, + "output": { + "target": "com.amazonaws.transfer#DescribeWebAppCustomizationResponse" + }, + "errors": [ + { + "target": "com.amazonaws.transfer#AccessDeniedException" + }, + { + "target": "com.amazonaws.transfer#InternalServiceError" + }, + { + "target": "com.amazonaws.transfer#InvalidRequestException" + }, + { + "target": "com.amazonaws.transfer#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.transfer#ThrottlingException" + } + ], + "traits": { + "aws.iam#iamAction": { + "requiredActions": [ + "transfer:DescribeWebAppCustomization" + ] + }, + "smithy.api#documentation": "

Describes the web app customization object that's identified by WebAppId.

", + "smithy.api#http": { + "method": "POST", + "uri": "/describeWebAppCustomization" + }, + "smithy.api#readonly": {} + } + }, + "com.amazonaws.transfer#DescribeWebAppCustomizationRequest": { + "type": "structure", + "members": { + "WebAppId": { + "target": "com.amazonaws.transfer#WebAppId", + "traits": { + "smithy.api#documentation": "

Provide the unique identifier for the web app.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {}, + "smithy.api#references": [ + { + "resource": "com.amazonaws.transfer#WebAppResource" + } + ] + } + }, + "com.amazonaws.transfer#DescribeWebAppCustomizationResponse": { + "type": "structure", + "members": { + "WebAppCustomization": { + "target": "com.amazonaws.transfer#DescribedWebAppCustomization", + "traits": { + "aws.cloudformation#cfnExcludeProperty": {}, + "smithy.api#documentation": "

Returns a structure that contains the details of the web app customizations.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.transfer#DescribeWebAppRequest": { + "type": "structure", + "members": { + "WebAppId": { + "target": "com.amazonaws.transfer#WebAppId", + "traits": { + "smithy.api#documentation": "

Provide the unique identifier for the web app.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.transfer#DescribeWebAppResponse": { + "type": "structure", + "members": { + "WebApp": { + "target": "com.amazonaws.transfer#DescribedWebApp", + "traits": { + "aws.cloudformation#cfnExcludeProperty": {}, + "smithy.api#documentation": "

Returns a structure that contains the details of the web app.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.transfer#DescribeWorkflow": { + "type": "operation", + "input": { + "target": "com.amazonaws.transfer#DescribeWorkflowRequest" + }, + "output": { + "target": "com.amazonaws.transfer#DescribeWorkflowResponse" + }, + "errors": [ + { + "target": "com.amazonaws.transfer#InternalServiceError" + }, + { + "target": "com.amazonaws.transfer#InvalidRequestException" + }, + { + "target": "com.amazonaws.transfer#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.transfer#ServiceUnavailableException" + } + ], + "traits": { + "smithy.api#documentation": "

Describes the specified workflow.

", + "smithy.api#readonly": {} + } + }, + "com.amazonaws.transfer#DescribeWorkflowRequest": { + "type": "structure", + "members": { + "WorkflowId": { + "target": "com.amazonaws.transfer#WorkflowId", + "traits": { + "smithy.api#documentation": "

A unique identifier for the workflow.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.transfer#DescribeWorkflowResponse": { + "type": "structure", + "members": { + "Workflow": { + "target": "com.amazonaws.transfer#DescribedWorkflow", + "traits": { + "aws.cloudformation#cfnExcludeProperty": {}, + "smithy.api#documentation": "

The structure that contains the details of the workflow.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.transfer#DescribedAccess": { + "type": "structure", + "members": { + "HomeDirectory": { + "target": "com.amazonaws.transfer#HomeDirectory", + "traits": { + "smithy.api#documentation": "

The landing directory (folder) for a user when they log in to the server using the client.

A HomeDirectory example is /bucket_name/home/mydirectory.

You can use the HomeDirectory parameter for HomeDirectoryType when it is set to either PATH or LOGICAL.

" + } + }, + "HomeDirectoryMappings": { + "target": "com.amazonaws.transfer#HomeDirectoryMappings", + "traits": { + "smithy.api#documentation": "

Logical directory mappings that specify what Amazon S3 or Amazon EFS paths and keys should be visible to your user and how you want to make them visible. You must specify the Entry and Target pair, where Entry shows how the path is made visible and Target is the actual Amazon S3 or Amazon EFS path. If you only specify a target, it is displayed as is. You also must ensure that your Identity and Access Management (IAM) role provides access to paths in Target. This value can be set only when HomeDirectoryType is set to LOGICAL.

In most cases, you can use this value instead of the session policy to lock down the associated access to the designated home directory (\"chroot\"). To do this, you can set Entry to '/' and set Target to the HomeDirectory parameter value.

" + } + }, + "HomeDirectoryType": { + "target": "com.amazonaws.transfer#HomeDirectoryType", + "traits": { + "smithy.api#documentation": "

The type of landing directory (folder) that you want your users' home directory to be when they log in to the server. If you set it to PATH, the user will see the absolute Amazon S3 bucket or Amazon EFS path as is in their file transfer protocol clients. If you set it to LOGICAL, you need to provide mappings in the HomeDirectoryMappings for how you want to make Amazon S3 or Amazon EFS paths visible to your users.

If HomeDirectoryType is LOGICAL, you must provide mappings, using the HomeDirectoryMappings parameter. If, on the other hand, HomeDirectoryType is PATH, you provide an absolute path using the HomeDirectory parameter. You cannot have both HomeDirectory and HomeDirectoryMappings in your template.

" + } + }, + "Policy": { + "target": "com.amazonaws.transfer#Policy", + "traits": { + "smithy.api#documentation": "

A session policy for your user so that you can use the same Identity and Access Management (IAM) role across multiple users. This policy scopes down a user's access to portions of their Amazon S3 bucket. Variables that you can use inside this policy include ${Transfer:UserName}, ${Transfer:HomeDirectory}, and ${Transfer:HomeBucket}.

" + } + }, + "PosixProfile": { + "target": "com.amazonaws.transfer#PosixProfile" + }, + "Role": { + "target": "com.amazonaws.transfer#Role", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role that controls your users' access to your Amazon S3 bucket or Amazon EFS file system. The policies attached to this role determine the level of access that you want to provide your users when transferring files into and out of your Amazon S3 bucket or Amazon EFS file system. The IAM role should also contain a trust relationship that allows the server to access your resources when servicing your users' transfer requests.

" + } + }, + "ExternalId": { + "target": "com.amazonaws.transfer#ExternalId", + "traits": { + "smithy.api#documentation": "

A unique identifier that is required to identify specific groups within your directory. The users of the group that you associate have access to your Amazon S3 or Amazon EFS resources over the enabled protocols using Transfer Family. If you know the group name, you can view the SID values by running the following command using Windows PowerShell.

Get-ADGroup -Filter {samAccountName -like \"YourGroupName*\"} -Properties * | Select SamAccountName,ObjectSid

In that command, replace YourGroupName with the name of your Active Directory group.

The regular expression used to validate this parameter is a string of characters consisting of uppercase and lowercase alphanumeric characters with no spaces. You can also include underscores or any of the following characters: =,.@:/-

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Describes the properties of the access that was specified.

" + } + }, + "com.amazonaws.transfer#DescribedAgreement": { + "type": "structure", + "members": { + "Arn": { + "target": "com.amazonaws.transfer#Arn", + "traits": { + "aws.cloudformation#cfnMutability": "read", + "smithy.api#documentation": "

The unique Amazon Resource Name (ARN) for the agreement.

", + "smithy.api#required": {} + } + }, + "AgreementId": { + "target": "com.amazonaws.transfer#AgreementId", + "traits": { + "smithy.api#documentation": "

A unique identifier for the agreement. This identifier is returned when you create an agreement.

" + } + }, + "Description": { + "target": "com.amazonaws.transfer#Description", + "traits": { + "smithy.api#documentation": "

The name or short description that's used to identify the agreement.

" + } + }, + "Status": { + "target": "com.amazonaws.transfer#AgreementStatusType", + "traits": { + "smithy.api#documentation": "

The current status of the agreement, either ACTIVE or INACTIVE.

" + } + }, + "ServerId": { + "target": "com.amazonaws.transfer#ServerId", + "traits": { + "smithy.api#documentation": "

A system-assigned unique identifier for a server instance. This identifier indicates the specific server that the agreement uses.

" + } + }, + "LocalProfileId": { + "target": "com.amazonaws.transfer#ProfileId", + "traits": { + "smithy.api#documentation": "

A unique identifier for the AS2 local profile.

" + } + }, + "PartnerProfileId": { + "target": "com.amazonaws.transfer#ProfileId", + "traits": { + "smithy.api#documentation": "

A unique identifier for the partner profile used in the agreement.

" + } + }, + "BaseDirectory": { + "target": "com.amazonaws.transfer#HomeDirectory", + "traits": { + "smithy.api#documentation": "

The landing directory (folder) for files that are transferred by using the AS2 protocol.

" + } + }, + "AccessRole": { + "target": "com.amazonaws.transfer#Role", + "traits": { + "smithy.api#documentation": "

Connectors are used to send files using either the AS2 or SFTP protocol. For the access role, provide the Amazon Resource Name (ARN) of the Identity and Access Management role to use.

For AS2 connectors

With AS2, you can send files by calling StartFileTransfer and specifying the file paths in the request parameter, SendFilePaths. We use the file\u2019s parent directory (for example, for --send-file-paths /bucket/dir/file.txt, parent directory is /bucket/dir/) to temporarily store a processed AS2 message file, store the MDN when we receive them from the partner, and write a final JSON file containing relevant metadata of the transmission. So, the AccessRole needs to provide read and write access to the parent directory of the file location used in the StartFileTransfer request. Additionally, you need to provide read and write access to the parent directory of the files that you intend to send with StartFileTransfer.

If you are using Basic authentication for your AS2 connector, the access role requires the secretsmanager:GetSecretValue permission for the secret. If the secret is encrypted using a customer-managed key instead of the Amazon Web Services managed key in Secrets Manager, then the role also needs the kms:Decrypt permission for that key.

For SFTP connectors

Make sure that the access role provides read and write access to the parent directory of the file location that's used in the StartFileTransfer request. Additionally, make sure that the role provides secretsmanager:GetSecretValue permission to Secrets Manager.

" + } + }, + "Tags": { + "target": "com.amazonaws.transfer#Tags", + "traits": { + "smithy.api#documentation": "

Key-value pairs that can be used to group and search for agreements.

" + } + }, + "PreserveFilename": { + "target": "com.amazonaws.transfer#PreserveFilenameType", + "traits": { + "smithy.api#documentation": "

Determines whether or not Transfer Family appends a unique string of characters to the end of the AS2 message payload filename when saving it.

" + } + }, + "EnforceMessageSigning": { + "target": "com.amazonaws.transfer#EnforceMessageSigningType", + "traits": { + "smithy.api#documentation": "

Determines whether or not unsigned messages from your trading partners will be accepted.

" + } + }, + "CustomDirectories": { + "target": "com.amazonaws.transfer#CustomDirectoriesType", + "traits": { + "smithy.api#documentation": "

A CustomDirectoriesType structure. This structure specifies custom directories for storing various AS2 message files. You can specify directories for the following types of files.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Describes the properties of an agreement.

" + } + }, + "com.amazonaws.transfer#DescribedCertificate": { + "type": "structure", + "members": { + "Arn": { + "target": "com.amazonaws.transfer#Arn", + "traits": { + "aws.cloudformation#cfnMutability": "read", + "smithy.api#documentation": "

The unique Amazon Resource Name (ARN) for the certificate.

", + "smithy.api#required": {} + } + }, + "CertificateId": { + "target": "com.amazonaws.transfer#CertificateId", + "traits": { + "smithy.api#documentation": "

An array of identifiers for the imported certificates. You use this identifier for working with profiles and partner profiles.

" + } + }, + "Usage": { + "target": "com.amazonaws.transfer#CertificateUsageType", + "traits": { + "smithy.api#documentation": "

Specifies how this certificate is used. It can be used in the following ways:

" + } + }, + "Status": { + "target": "com.amazonaws.transfer#CertificateStatusType", + "traits": { + "smithy.api#documentation": "

A certificate's status can be either ACTIVE or INACTIVE.

You can set ActiveDate and InactiveDate in the UpdateCertificate call. If you set values for these parameters, those values are used to determine whether the certificate has a status of ACTIVE or INACTIVE.

If you don't set values for ActiveDate and InactiveDate, we use the NotBefore and NotAfter date as specified on the X509 certificate to determine when a certificate is active and when it is inactive.

" + } + }, + "Certificate": { + "target": "com.amazonaws.transfer#CertificateBodyType", + "traits": { + "smithy.api#documentation": "

The file name for the certificate.

" + } + }, + "CertificateChain": { + "target": "com.amazonaws.transfer#CertificateChainType", + "traits": { + "smithy.api#documentation": "

The list of certificates that make up the chain for the certificate.

" + } + }, + "ActiveDate": { + "target": "com.amazonaws.transfer#CertDate", + "traits": { + "smithy.api#documentation": "

An optional date that specifies when the certificate becomes active. If you do not specify a value, ActiveDate takes the same value as NotBeforeDate, which is specified by the CA.

" + } + }, + "InactiveDate": { + "target": "com.amazonaws.transfer#CertDate", + "traits": { + "smithy.api#documentation": "

An optional date that specifies when the certificate becomes inactive. If you do not specify a value, InactiveDate takes the same value as NotAfterDate, which is specified by the CA.

" + } + }, + "Serial": { + "target": "com.amazonaws.transfer#CertSerial", + "traits": { + "smithy.api#documentation": "

The serial number for the certificate.

" + } + }, + "NotBeforeDate": { + "target": "com.amazonaws.transfer#CertDate", + "traits": { + "smithy.api#documentation": "

The earliest date that the certificate is valid.

" + } + }, + "NotAfterDate": { + "target": "com.amazonaws.transfer#CertDate", + "traits": { + "smithy.api#documentation": "

The final date that the certificate is valid.

" + } + }, + "Type": { + "target": "com.amazonaws.transfer#CertificateType", + "traits": { + "smithy.api#documentation": "

If a private key has been specified for the certificate, its type is CERTIFICATE_WITH_PRIVATE_KEY. If there is no private key, the type is CERTIFICATE.

" + } + }, + "Description": { + "target": "com.amazonaws.transfer#Description", + "traits": { + "smithy.api#documentation": "

The name or description that's used to identity the certificate.

" + } + }, + "Tags": { + "target": "com.amazonaws.transfer#Tags", + "traits": { + "smithy.api#documentation": "

Key-value pairs that can be used to group and search for certificates.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Describes the properties of a certificate.

" + } + }, + "com.amazonaws.transfer#DescribedConnector": { + "type": "structure", + "members": { + "Arn": { + "target": "com.amazonaws.transfer#Arn", + "traits": { + "smithy.api#documentation": "

The unique Amazon Resource Name (ARN) for the connector.

", + "smithy.api#required": {} + } + }, + "ConnectorId": { + "target": "com.amazonaws.transfer#ConnectorId", + "traits": { + "smithy.api#documentation": "

The unique identifier for the connector.

" + } + }, + "Url": { + "target": "com.amazonaws.transfer#Url", + "traits": { + "smithy.api#documentation": "

The URL of the partner's AS2 or SFTP endpoint.

When creating AS2 connectors or service-managed SFTP connectors (connectors without egress configuration), you must provide a URL to specify the remote server endpoint. For VPC Lattice type connectors, the URL must be null.

" + } + }, + "As2Config": { + "target": "com.amazonaws.transfer#As2ConnectorConfig", + "traits": { + "smithy.api#documentation": "

A structure that contains the parameters for an AS2 connector object.

" + } + }, + "AccessRole": { + "target": "com.amazonaws.transfer#Role", + "traits": { + "smithy.api#documentation": "

Connectors are used to send files using either the AS2 or SFTP protocol. For the access role, provide the Amazon Resource Name (ARN) of the Identity and Access Management role to use.

For AS2 connectors

With AS2, you can send files by calling StartFileTransfer and specifying the file paths in the request parameter, SendFilePaths. We use the file\u2019s parent directory (for example, for --send-file-paths /bucket/dir/file.txt, parent directory is /bucket/dir/) to temporarily store a processed AS2 message file, store the MDN when we receive them from the partner, and write a final JSON file containing relevant metadata of the transmission. So, the AccessRole needs to provide read and write access to the parent directory of the file location used in the StartFileTransfer request. Additionally, you need to provide read and write access to the parent directory of the files that you intend to send with StartFileTransfer.

If you are using Basic authentication for your AS2 connector, the access role requires the secretsmanager:GetSecretValue permission for the secret. If the secret is encrypted using a customer-managed key instead of the Amazon Web Services managed key in Secrets Manager, then the role also needs the kms:Decrypt permission for that key.

For SFTP connectors

Make sure that the access role provides read and write access to the parent directory of the file location that's used in the StartFileTransfer request. Additionally, make sure that the role provides secretsmanager:GetSecretValue permission to Secrets Manager.

" + } + }, + "LoggingRole": { + "target": "com.amazonaws.transfer#Role", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role that allows a connector to turn on CloudWatch logging for Amazon S3 events. When set, you can view connector activity in your CloudWatch logs.

" + } + }, + "Tags": { + "target": "com.amazonaws.transfer#Tags", + "traits": { + "smithy.api#documentation": "

Key-value pairs that can be used to group and search for connectors.

" + } + }, + "SftpConfig": { + "target": "com.amazonaws.transfer#SftpConnectorConfig", + "traits": { + "smithy.api#documentation": "

A structure that contains the parameters for an SFTP connector object.

" + } + }, + "ServiceManagedEgressIpAddresses": { + "target": "com.amazonaws.transfer#ServiceManagedEgressIpAddresses", + "traits": { + "smithy.api#documentation": "

The list of egress IP addresses of this connector. These IP addresses are assigned automatically when you create the connector.

" + } + }, + "SecurityPolicyName": { + "target": "com.amazonaws.transfer#ConnectorSecurityPolicyName", + "traits": { + "smithy.api#documentation": "

The text name of the security policy for the specified connector.

" + } + }, + "EgressConfig": { + "target": "com.amazonaws.transfer#DescribedConnectorEgressConfig", + "traits": { + "aws.cloudformation#cfnExcludeProperty": {}, + "smithy.api#documentation": "

Current egress configuration of the connector, showing how traffic is routed to the SFTP server. Contains VPC Lattice settings when using VPC_LATTICE egress type.

When using the VPC_LATTICE egress type, Transfer Family uses a managed Service Network to simplify the resource sharing process.

" + } + }, + "EgressType": { + "target": "com.amazonaws.transfer#ConnectorEgressType", + "traits": { + "smithy.api#default": "SERVICE_MANAGED", + "smithy.api#documentation": "

Type of egress configuration for the connector. SERVICE_MANAGED uses Transfer Family managed NAT gateways, while VPC_LATTICE routes traffic through customer VPCs using VPC Lattice.

", + "smithy.api#required": {} + } + }, + "ErrorMessage": { + "target": "com.amazonaws.transfer#ConnectorErrorMessage", + "traits": { + "smithy.api#documentation": "

Error message providing details when the connector is in ERRORED status. Contains information to help troubleshoot connector creation or operation failures.

" + } + }, + "Status": { + "target": "com.amazonaws.transfer#ConnectorStatus", + "traits": { + "smithy.api#default": "ACTIVE", + "smithy.api#documentation": "

Current status of the connector. PENDING indicates creation/update in progress, ACTIVE means ready for operations, and ERRORED indicates a failure requiring attention.

", + "smithy.api#required": {} + } + }, + "IpAddressType": { + "target": "com.amazonaws.transfer#ConnectorsIpAddressType", + "traits": { + "smithy.api#documentation": "

IP address type for the connector's network connections. When set to IPV4, the connector uses IPv4 addresses only. When set to DUALSTACK, the connector supports both IPv4 and IPv6 addresses, with IPv6 preferred when available.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Describes the parameters for the connector, as identified by the ConnectorId.

" + } + }, + "com.amazonaws.transfer#DescribedConnectorEgressConfig": { + "type": "union", + "members": { + "VpcLattice": { + "target": "com.amazonaws.transfer#DescribedConnectorVpcLatticeEgressConfig", + "traits": { + "smithy.api#documentation": "

VPC_LATTICE configuration details in the response, showing the current Resource Configuration ARN and port settings for VPC-based connectivity.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Response structure containing the current egress configuration details for the connector. Shows how traffic is currently routed from the connector to the SFTP server.

" + } + }, + "com.amazonaws.transfer#DescribedConnectorVpcLatticeEgressConfig": { + "type": "structure", + "members": { + "ResourceConfigurationArn": { + "target": "com.amazonaws.transfer#VpcLatticeResourceConfigurationArn", + "traits": { + "smithy.api#documentation": "

ARN of the VPC_LATTICE Resource Configuration currently used by the connector. This Resource Configuration defines the network path to the SFTP server through the customer's VPC.

", + "smithy.api#required": {} + } + }, + "PortNumber": { + "target": "com.amazonaws.transfer#SftpPort", + "traits": { + "smithy.api#documentation": "

Port number currently configured for SFTP connections through VPC_LATTICE. Shows the port on which the connector attempts to connect to the target SFTP server.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

VPC_LATTICE egress configuration details in the response, containing the Resource Configuration ARN and port number currently configured for the connector.

" + } + }, + "com.amazonaws.transfer#DescribedExecution": { + "type": "structure", + "members": { + "ExecutionId": { + "target": "com.amazonaws.transfer#ExecutionId", + "traits": { + "smithy.api#documentation": "

A unique identifier for the execution of a workflow.

" + } + }, + "InitialFileLocation": { + "target": "com.amazonaws.transfer#FileLocation", + "traits": { + "smithy.api#documentation": "

A structure that describes the Amazon S3 or EFS file location. This is the file location when the execution begins: if the file is being copied, this is the initial (as opposed to destination) file location.

" + } + }, + "ServiceMetadata": { + "target": "com.amazonaws.transfer#ServiceMetadata", + "traits": { + "smithy.api#documentation": "

A container object for the session details that are associated with a workflow.

" + } + }, + "ExecutionRole": { + "target": "com.amazonaws.transfer#Role", + "traits": { + "smithy.api#documentation": "

The IAM role associated with the execution.

" + } + }, + "LoggingConfiguration": { + "target": "com.amazonaws.transfer#LoggingConfiguration", + "traits": { + "smithy.api#documentation": "

The IAM logging role associated with the execution.

" + } + }, + "PosixProfile": { + "target": "com.amazonaws.transfer#PosixProfile" + }, + "Status": { + "target": "com.amazonaws.transfer#ExecutionStatus", + "traits": { + "smithy.api#documentation": "

The status is one of the execution. Can be in progress, completed, exception encountered, or handling the exception.

" + } + }, + "Results": { + "target": "com.amazonaws.transfer#ExecutionResults", + "traits": { + "smithy.api#documentation": "

A structure that describes the execution results. This includes a list of the steps along with the details of each step, error type and message (if any), and the OnExceptionSteps structure.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

The details for an execution object.

" + } + }, + "com.amazonaws.transfer#DescribedHostKey": { + "type": "structure", + "members": { + "Arn": { + "target": "com.amazonaws.transfer#Arn", + "traits": { + "smithy.api#documentation": "

The unique Amazon Resource Name (ARN) for the host key.

", + "smithy.api#required": {} + } + }, + "HostKeyId": { + "target": "com.amazonaws.transfer#HostKeyId", + "traits": { + "smithy.api#documentation": "

A unique identifier for the host key.

" + } + }, + "HostKeyFingerprint": { + "target": "com.amazonaws.transfer#HostKeyFingerprint", + "traits": { + "smithy.api#documentation": "

The public key fingerprint, which is a short sequence of bytes used to identify the longer public key.

" + } + }, + "Description": { + "target": "com.amazonaws.transfer#HostKeyDescription", + "traits": { + "smithy.api#documentation": "

The text description for this host key.

" + } + }, + "Type": { + "target": "com.amazonaws.transfer#HostKeyType", + "traits": { + "smithy.api#documentation": "

The encryption algorithm that is used for the host key. The Type parameter is specified by using one of the following values:

" + } + }, + "DateImported": { + "target": "com.amazonaws.transfer#DateImported", + "traits": { + "smithy.api#documentation": "

The date on which the host key was added to the server.

" + } + }, + "Tags": { + "target": "com.amazonaws.transfer#Tags", + "traits": { + "smithy.api#documentation": "

Key-value pairs that can be used to group and search for host keys.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

The details for a server host key.

" + } + }, + "com.amazonaws.transfer#DescribedIdentityCenterConfig": { + "type": "structure", + "members": { + "ApplicationArn": { + "target": "com.amazonaws.transfer#IdentityCenterApplicationArn", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) for the IAM Identity Center application: this value is set automatically when you create your web app.

" + } + }, + "InstanceArn": { + "target": "com.amazonaws.transfer#IdentityCenterInstanceArn", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) for the IAM Identity Center used for the web app.

" + } + }, + "Role": { + "target": "com.amazonaws.transfer#Role", + "traits": { + "smithy.api#documentation": "

The IAM role in IAM Identity Center used for the web app.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

A structure that contains the details of the IAM Identity Center used for your web app. Returned during a call to DescribeWebApp.

" + } + }, + "com.amazonaws.transfer#DescribedProfile": { + "type": "structure", + "members": { + "Arn": { + "target": "com.amazonaws.transfer#Arn", + "traits": { + "smithy.api#documentation": "

The unique Amazon Resource Name (ARN) for the profile.

", + "smithy.api#required": {} + } + }, + "ProfileId": { + "target": "com.amazonaws.transfer#ProfileId", + "traits": { + "smithy.api#documentation": "

A unique identifier for the local or partner AS2 profile.

" + } + }, + "ProfileType": { + "target": "com.amazonaws.transfer#ProfileType", + "traits": { + "smithy.api#documentation": "

Indicates whether to list only LOCAL type profiles or only PARTNER type profiles. If not supplied in the request, the command lists all types of profiles.

" + } + }, + "As2Id": { + "target": "com.amazonaws.transfer#As2Id", + "traits": { + "smithy.api#documentation": "

The As2Id is the AS2-name, as defined in the RFC 4130. For inbound transfers, this is the AS2-From header for the AS2 messages sent from the partner. For outbound connectors, this is the AS2-To header for the AS2 messages sent to the partner using the StartFileTransfer API operation. This ID cannot include spaces.

" + } + }, + "CertificateIds": { + "target": "com.amazonaws.transfer#CertificateIds", + "traits": { + "smithy.api#documentation": "

An array of identifiers for the imported certificates. You use this identifier for working with profiles and partner profiles.

" + } + }, + "Tags": { + "target": "com.amazonaws.transfer#Tags", + "traits": { + "smithy.api#documentation": "

Key-value pairs that can be used to group and search for profiles.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

The details for a local or partner AS2 profile.

" + } + }, + "com.amazonaws.transfer#DescribedSecurityPolicy": { + "type": "structure", + "members": { + "Fips": { + "target": "com.amazonaws.transfer#Fips", + "traits": { + "smithy.api#documentation": "

Specifies whether this policy enables Federal Information Processing Standards (FIPS). This parameter applies to both server and connector security policies.

" + } + }, + "SecurityPolicyName": { + "target": "com.amazonaws.transfer#SecurityPolicyName", + "traits": { + "smithy.api#documentation": "

The text name of the specified security policy.

", + "smithy.api#required": {} + } + }, + "SshCiphers": { + "target": "com.amazonaws.transfer#SecurityPolicyOptions", + "traits": { + "smithy.api#documentation": "

Lists the enabled Secure Shell (SSH) cipher encryption algorithms in the security policy that is attached to the server or connector. This parameter applies to both server and connector security policies.

" + } + }, + "SshKexs": { + "target": "com.amazonaws.transfer#SecurityPolicyOptions", + "traits": { + "smithy.api#documentation": "

Lists the enabled SSH key exchange (KEX) encryption algorithms in the security policy that is attached to the server or connector. This parameter applies to both server and connector security policies.

" + } + }, + "SshMacs": { + "target": "com.amazonaws.transfer#SecurityPolicyOptions", + "traits": { + "smithy.api#documentation": "

Lists the enabled SSH message authentication code (MAC) encryption algorithms in the security policy that is attached to the server or connector. This parameter applies to both server and connector security policies.

" + } + }, + "TlsCiphers": { + "target": "com.amazonaws.transfer#SecurityPolicyOptions", + "traits": { + "smithy.api#documentation": "

Lists the enabled Transport Layer Security (TLS) cipher encryption algorithms in the security policy that is attached to the server.

This parameter only applies to security policies for servers.

" + } + }, + "SshHostKeyAlgorithms": { + "target": "com.amazonaws.transfer#SecurityPolicyOptions", + "traits": { + "smithy.api#documentation": "

Lists the host key algorithms for the security policy.

This parameter only applies to security policies for connectors.

" + } + }, + "Type": { + "target": "com.amazonaws.transfer#SecurityPolicyResourceType", + "traits": { + "smithy.api#documentation": "

The resource type to which the security policy applies, either server or connector.

" + } + }, + "Protocols": { + "target": "com.amazonaws.transfer#SecurityPolicyProtocols", + "traits": { + "smithy.api#documentation": "

Lists the file transfer protocols that the security policy applies to.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Describes the properties of a security policy that you specify. For more information about security policies, see Working with security policies for servers or Working with security policies for SFTP connectors.

" + } + }, + "com.amazonaws.transfer#DescribedServer": { + "type": "structure", + "members": { + "Arn": { + "target": "com.amazonaws.transfer#Arn", + "traits": { + "aws.cloudformation#cfnAdditionalIdentifier": {}, + "aws.cloudformation#cfnMutability": "read", + "smithy.api#documentation": "

Specifies the unique Amazon Resource Name (ARN) of the server.

", + "smithy.api#required": {} + } + }, + "Certificate": { + "target": "com.amazonaws.transfer#Certificate", + "traits": { + "aws.cloudformation#cfnMutability": "full", + "smithy.api#documentation": "

Specifies the ARN of the Amazon Web ServicesCertificate Manager (ACM) certificate. Required when Protocols is set to FTPS.

" + } + }, + "ProtocolDetails": { + "target": "com.amazonaws.transfer#ProtocolDetails", + "traits": { + "aws.cloudformation#cfnMutability": "full", + "smithy.api#documentation": "

The protocol settings that are configured for your server.

Avoid placing Network Load Balancers (NLBs) or NAT gateways in front of Transfer Family servers, as this increases costs and can cause performance issues, including reduced connection limits for FTPS. For more details, see Avoid placing NLBs and NATs in front of Transfer Family.

" + } + }, + "Domain": { + "target": "com.amazonaws.transfer#Domain", + "traits": { + "aws.cloudformation#cfnMutability": "create-and-read", + "smithy.api#documentation": "

Specifies the domain of the storage system that is used for file transfers. There are two domains available: Amazon Simple Storage Service (Amazon S3) and Amazon Elastic File System (Amazon EFS). The default value is S3.

" + } + }, + "EndpointDetails": { + "target": "com.amazonaws.transfer#EndpointDetails", + "traits": { + "aws.cloudformation#cfnMutability": "full", + "smithy.api#documentation": "

The virtual private cloud (VPC) endpoint settings that are configured for your server. When you host your endpoint within your VPC, you can make your endpoint accessible only to resources within your VPC, or you can attach Elastic IP addresses and make your endpoint accessible to clients over the internet. Your VPC's default security groups are automatically assigned to your endpoint.

" + } + }, + "EndpointType": { + "target": "com.amazonaws.transfer#EndpointType", + "traits": { + "aws.cloudformation#cfnMutability": "full", + "smithy.api#documentation": "

Defines the type of endpoint that your server is connected to. If your server is connected to a VPC endpoint, your server isn't accessible over the public internet.

" + } + }, + "HostKeyFingerprint": { + "target": "com.amazonaws.transfer#HostKeyFingerprint", + "traits": { + "aws.cloudformation#cfnExcludeProperty": {}, + "smithy.api#documentation": "

Specifies the Base64-encoded SHA256 fingerprint of the server's host key. This value is equivalent to the output of the ssh-keygen -l -f my-new-server-key command.

" + } + }, + "IdentityProviderDetails": { + "target": "com.amazonaws.transfer#IdentityProviderDetails", + "traits": { + "aws.cloudformation#cfnMutability": "full", + "smithy.api#documentation": "

Specifies information to call a customer-supplied authentication API. This field is not populated when the IdentityProviderType of a server is AWS_DIRECTORY_SERVICE or SERVICE_MANAGED.

" + } + }, + "IdentityProviderType": { + "target": "com.amazonaws.transfer#IdentityProviderType", + "traits": { + "smithy.api#documentation": "

The mode of authentication for a server. The default value is SERVICE_MANAGED, which allows you to store and access user credentials within the Transfer Family service.

Use AWS_DIRECTORY_SERVICE to provide access to Active Directory groups in Directory Service for Microsoft Active Directory or Microsoft Active Directory in your on-premises environment or in Amazon Web Services using AD Connector. This option also requires you to provide a Directory ID by using the IdentityProviderDetails parameter.

Use the API_GATEWAY value to integrate with an identity provider of your choosing. The API_GATEWAY setting requires you to provide an Amazon API Gateway endpoint URL to call for authentication by using the IdentityProviderDetails parameter.

Use the AWS_LAMBDA value to directly use an Lambda function as your identity provider. If you choose this value, you must specify the ARN for the Lambda function in the Function parameter for the IdentityProviderDetails data type.

" + } + }, + "LoggingRole": { + "target": "com.amazonaws.transfer#NullableRole", + "traits": { + "aws.cloudformation#cfnMutability": "full", + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role that allows a server to turn on Amazon CloudWatch logging for Amazon S3 or Amazon EFS events. When set, you can view user activity in your CloudWatch logs.

" + } + }, + "PostAuthenticationLoginBanner": { + "target": "com.amazonaws.transfer#PostAuthenticationLoginBanner", + "traits": { + "aws.cloudformation#cfnMutability": "full", + "smithy.api#documentation": "

Specifies a string to display when users connect to a server. This string is displayed after the user authenticates.

The SFTP protocol does not support post-authentication display banners.

" + } + }, + "PreAuthenticationLoginBanner": { + "target": "com.amazonaws.transfer#PreAuthenticationLoginBanner", + "traits": { + "aws.cloudformation#cfnMutability": "full", + "smithy.api#documentation": "

Specifies a string to display when users connect to a server. This string is displayed before the user authenticates. For example, the following banner displays details about using the system:

This system is for the use of authorized users only. Individuals using this computer system without authority, or in excess of their authority, are subject to having all of their activities on this system monitored and recorded by system personnel.

" + } + }, + "Protocols": { + "target": "com.amazonaws.transfer#Protocols", + "traits": { + "aws.cloudformation#cfnMutability": "full", + "smithy.api#documentation": "

Specifies the file transfer protocol or protocols over which your file transfer protocol client can connect to your server's endpoint. The available protocols are:

" + } + }, + "SecurityPolicyName": { + "target": "com.amazonaws.transfer#SecurityPolicyName", + "traits": { + "aws.cloudformation#cfnMutability": "full", + "smithy.api#documentation": "

Specifies the name of the security policy for the server.

" + } + }, + "ServerId": { + "target": "com.amazonaws.transfer#ServerId", + "traits": { + "smithy.api#documentation": "

Specifies the unique system-assigned identifier for a server that you instantiate.

" + } + }, + "State": { + "target": "com.amazonaws.transfer#State", + "traits": { + "aws.cloudformation#cfnExcludeProperty": {}, + "smithy.api#documentation": "

The condition of the server that was described. A value of ONLINE indicates that the server can accept jobs and transfer files. A State value of OFFLINE means that the server cannot perform file transfer operations.

The states of STARTING and STOPPING indicate that the server is in an intermediate state, either not fully able to respond, or not fully offline. The values of START_FAILED or STOP_FAILED can indicate an error condition.

" + } + }, + "Tags": { + "target": "com.amazonaws.transfer#Tags", + "traits": { + "aws.cloudformation#cfnMutability": "full", + "smithy.api#documentation": "

Specifies the key-value pairs that you can use to search for and group servers that were assigned to the server that was described.

" + } + }, + "UserCount": { + "target": "com.amazonaws.transfer#UserCount", + "traits": { + "aws.cloudformation#cfnExcludeProperty": {}, + "smithy.api#documentation": "

Specifies the number of users that are assigned to a server you specified with the ServerId.

" + } + }, + "WorkflowDetails": { + "target": "com.amazonaws.transfer#WorkflowDetails", + "traits": { + "aws.cloudformation#cfnMutability": "full", + "smithy.api#documentation": "

Specifies the workflow ID for the workflow to assign and the execution role that's used for executing the workflow.

In addition to a workflow to execute when a file is uploaded completely, WorkflowDetails can also contain a workflow ID (and execution role) for a workflow to execute on partial upload. A partial upload occurs when the server session disconnects while the file is still being uploaded.

" + } + }, + "StructuredLogDestinations": { + "target": "com.amazonaws.transfer#StructuredLogDestinations", + "traits": { + "aws.cloudformation#cfnMutability": "full", + "smithy.api#documentation": "

Specifies the log groups to which your server logs are sent.

To specify a log group, you must provide the ARN for an existing log group. In this case, the format of the log group is as follows:

arn:aws:logs:region-name:amazon-account-id:log-group:log-group-name:*

For example, arn:aws:logs:us-east-1:111122223333:log-group:mytestgroup:*

If you have previously specified a log group for a server, you can clear it, and in effect turn off structured logging, by providing an empty value for this parameter in an update-server call. For example:

update-server --server-id s-1234567890abcdef0 --structured-log-destinations

" + } + }, + "S3StorageOptions": { + "target": "com.amazonaws.transfer#S3StorageOptions", + "traits": { + "aws.cloudformation#cfnMutability": "full", + "smithy.api#documentation": "

Specifies whether or not performance for your Amazon S3 directories is optimized.

By default, home directory mappings have a TYPE of DIRECTORY. If you enable this option, you would then need to explicitly set the HomeDirectoryMapEntry Type to FILE if you want a mapping to have a file target.

" + } + }, + "As2ServiceManagedEgressIpAddresses": { + "target": "com.amazonaws.transfer#ServiceManagedEgressIpAddresses", + "traits": { + "aws.cloudformation#cfnMutability": "read", + "smithy.api#documentation": "

The list of egress IP addresses of this server. These IP addresses are only relevant for servers that use the AS2 protocol. They are used for sending asynchronous MDNs.

These IP addresses are assigned automatically when you create an AS2 server. Additionally, if you update an existing server and add the AS2 protocol, static IP addresses are assigned as well.

" + } + }, + "IpAddressType": { + "target": "com.amazonaws.transfer#IpAddressType", + "traits": { + "aws.cloudformation#cfnMutability": "full", + "smithy.api#documentation": "

Specifies whether to use IPv4 only, or to use dual-stack (IPv4 and IPv6) for your Transfer Family endpoint. The default value is IPV4.

The IpAddressType parameter has the following limitations:

When using DUALSTACK as the IpAddressType, you cannot set the AddressAllocationIds parameter for the EndpointDetails for the server.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Describes the properties of a file transfer protocol-enabled server that was specified.

" + } + }, + "com.amazonaws.transfer#DescribedUser": { + "type": "structure", + "members": { + "Arn": { + "target": "com.amazonaws.transfer#Arn", + "traits": { + "aws.cloudformation#cfnAdditionalIdentifier": {}, + "aws.cloudformation#cfnMutability": "read", + "smithy.api#documentation": "

Specifies the unique Amazon Resource Name (ARN) for the user that was requested to be described.

", + "smithy.api#required": {} + } + }, + "HomeDirectory": { + "target": "com.amazonaws.transfer#HomeDirectory", + "traits": { + "aws.cloudformation#cfnMutability": "full", + "smithy.api#documentation": "

The landing directory (folder) for a user when they log in to the server using the client.

A HomeDirectory example is /bucket_name/home/mydirectory.

You can use the HomeDirectory parameter for HomeDirectoryType when it is set to either PATH or LOGICAL.

" + } + }, + "HomeDirectoryMappings": { + "target": "com.amazonaws.transfer#HomeDirectoryMappings", + "traits": { + "aws.cloudformation#cfnMutability": "full", + "smithy.api#documentation": "

Logical directory mappings that specify what Amazon S3 or Amazon EFS paths and keys should be visible to your user and how you want to make them visible. You must specify the Entry and Target pair, where Entry shows how the path is made visible and Target is the actual Amazon S3 or Amazon EFS path. If you only specify a target, it is displayed as is. You also must ensure that your Identity and Access Management (IAM) role provides access to paths in Target. This value can be set only when HomeDirectoryType is set to LOGICAL.

In most cases, you can use this value instead of the session policy to lock your user down to the designated home directory (\"chroot\"). To do this, you can set Entry to '/' and set Target to the HomeDirectory parameter value.

" + } + }, + "HomeDirectoryType": { + "target": "com.amazonaws.transfer#HomeDirectoryType", + "traits": { + "aws.cloudformation#cfnMutability": "full", + "smithy.api#documentation": "

The type of landing directory (folder) that you want your users' home directory to be when they log in to the server. If you set it to PATH, the user will see the absolute Amazon S3 bucket or Amazon EFS path as is in their file transfer protocol clients. If you set it to LOGICAL, you need to provide mappings in the HomeDirectoryMappings for how you want to make Amazon S3 or Amazon EFS paths visible to your users.

If HomeDirectoryType is LOGICAL, you must provide mappings, using the HomeDirectoryMappings parameter. If, on the other hand, HomeDirectoryType is PATH, you provide an absolute path using the HomeDirectory parameter. You cannot have both HomeDirectory and HomeDirectoryMappings in your template.

" + } + }, + "Policy": { + "target": "com.amazonaws.transfer#Policy", + "traits": { + "aws.cloudformation#cfnMutability": "full", + "smithy.api#documentation": "

A session policy for your user so that you can use the same Identity and Access Management (IAM) role across multiple users. This policy scopes down a user's access to portions of their Amazon S3 bucket. Variables that you can use inside this policy include ${Transfer:UserName}, ${Transfer:HomeDirectory}, and ${Transfer:HomeBucket}.

" + } + }, + "PosixProfile": { + "target": "com.amazonaws.transfer#PosixProfile", + "traits": { + "aws.cloudformation#cfnMutability": "full", + "smithy.api#documentation": "

Specifies the full POSIX identity, including user ID (Uid), group ID (Gid), and any secondary groups IDs (SecondaryGids), that controls your users' access to your Amazon Elastic File System (Amazon EFS) file systems. The POSIX permissions that are set on files and directories in your file system determine the level of access your users get when transferring files into and out of your Amazon EFS file systems.

" + } + }, + "Role": { + "target": "com.amazonaws.transfer#Role", + "traits": { + "aws.cloudformation#cfnMutability": "full", + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role that controls your users' access to your Amazon S3 bucket or Amazon EFS file system. The policies attached to this role determine the level of access that you want to provide your users when transferring files into and out of your Amazon S3 bucket or Amazon EFS file system. The IAM role should also contain a trust relationship that allows the server to access your resources when servicing your users' transfer requests.

" + } + }, + "SshPublicKeys": { + "target": "com.amazonaws.transfer#SshPublicKeys", + "traits": { + "aws.cloudformation#cfnExcludeProperty": {}, + "smithy.api#documentation": "

Specifies the public key portion of the Secure Shell (SSH) keys stored for the described user.

To delete the public key body, set its value to zero keys, as shown here:

SshPublicKeys: []

" + } + }, + "Tags": { + "target": "com.amazonaws.transfer#Tags", + "traits": { + "aws.cloudformation#cfnMutability": "full", + "smithy.api#documentation": "

Specifies the key-value pairs for the user requested. Tag can be used to search for and group users for a variety of purposes.

" + } + }, + "UserName": { + "target": "com.amazonaws.transfer#UserName", + "traits": { + "smithy.api#documentation": "

Specifies the name of the user that was requested to be described. User names are used for authentication purposes. This is the string that will be used by your user when they log in to your server.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Describes the properties of a user that was specified.

" + } + }, + "com.amazonaws.transfer#DescribedWebApp": { + "type": "structure", + "members": { + "Arn": { + "target": "com.amazonaws.transfer#Arn", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the web app.

", + "smithy.api#required": {} + } + }, + "WebAppId": { + "target": "com.amazonaws.transfer#WebAppId", + "traits": { + "smithy.api#documentation": "

The unique identifier for the web app.

", + "smithy.api#required": {} + } + }, + "DescribedIdentityProviderDetails": { + "target": "com.amazonaws.transfer#DescribedWebAppIdentityProviderDetails", + "traits": { + "smithy.api#documentation": "

A structure that contains the details for the identity provider used by the web app.

" + } + }, + "AccessEndpoint": { + "target": "com.amazonaws.transfer#WebAppAccessEndpoint", + "traits": { + "smithy.api#documentation": "

The AccessEndpoint is the URL that you provide to your users for them to interact with the Transfer Family web app. You can specify a custom URL or use the default value.

" + } + }, + "WebAppEndpoint": { + "target": "com.amazonaws.transfer#WebAppEndpoint", + "traits": { + "smithy.api#documentation": "

The WebAppEndpoint is the unique URL for your Transfer Family web app. This is the value that you use when you configure Origins on CloudFront.

" + } + }, + "WebAppUnits": { + "target": "com.amazonaws.transfer#WebAppUnits", + "traits": { + "smithy.api#documentation": "

A union that contains the value for number of concurrent connections or the user sessions on your web app.

" + } + }, + "Tags": { + "target": "com.amazonaws.transfer#Tags", + "traits": { + "smithy.api#documentation": "

Key-value pairs that can be used to group and search for web apps. Tags are metadata attached to web apps for any purpose.

" + } + }, + "WebAppEndpointPolicy": { + "target": "com.amazonaws.transfer#WebAppEndpointPolicy", + "traits": { + "smithy.api#documentation": "

Setting for the type of endpoint policy for the web app. The default value is STANDARD.

If your web app was created in an Amazon Web Services GovCloud (US) Region, the value of this parameter can be FIPS, which indicates the web app endpoint is FIPS-compliant.

" + } + }, + "EndpointType": { + "target": "com.amazonaws.transfer#WebAppEndpointType", + "traits": { + "smithy.api#documentation": "

The type of endpoint hosting the web app. Valid values are PUBLIC for publicly accessible endpoints and VPC for VPC-hosted endpoints that provide network isolation.

" + } + }, + "DescribedEndpointDetails": { + "target": "com.amazonaws.transfer#DescribedWebAppEndpointDetails", + "traits": { + "smithy.api#documentation": "

The endpoint configuration details for the web app, including VPC settings if the endpoint is hosted within a VPC.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

A structure that describes the parameters for the web app, as identified by the WebAppId.

" + } + }, + "com.amazonaws.transfer#DescribedWebAppCustomization": { + "type": "structure", + "members": { + "Arn": { + "target": "com.amazonaws.transfer#Arn", + "traits": { + "smithy.api#documentation": "

Returns the Amazon Resource Name (ARN) for the web app.

", + "smithy.api#required": {} + } + }, + "WebAppId": { + "target": "com.amazonaws.transfer#WebAppId", + "traits": { + "smithy.api#documentation": "

Returns the unique identifier for your web app.

", + "smithy.api#required": {} + } + }, + "Title": { + "target": "com.amazonaws.transfer#WebAppTitle", + "traits": { + "smithy.api#documentation": "

Returns the page title that you defined for your web app.

" + } + }, + "LogoFile": { + "target": "com.amazonaws.transfer#WebAppLogoFile", + "traits": { + "smithy.api#documentation": "

Returns a logo file data string (in base64 encoding).

" + } + }, + "FaviconFile": { + "target": "com.amazonaws.transfer#WebAppFaviconFile", + "traits": { + "smithy.api#documentation": "

Returns an icon file data string (in base64 encoding).

" + } + } + }, + "traits": { + "smithy.api#documentation": "

A structure that contains the customization fields for the web app. You can provide a title, logo, and icon to customize the appearance of your web app.

", + "smithy.api#references": [ + { + "resource": "com.amazonaws.transfer#WebAppResource" + } + ] + } + }, + "com.amazonaws.transfer#DescribedWebAppEndpointDetails": { + "type": "union", + "members": { + "Vpc": { + "target": "com.amazonaws.transfer#DescribedWebAppVpcConfig", + "traits": { + "smithy.api#documentation": "

The VPC configuration details when the web app endpoint is hosted within a VPC. This includes the VPC ID, subnet IDs, and VPC endpoint ID.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Contains the endpoint configuration details for a web app, including VPC configuration when the endpoint is hosted within a VPC.

" + } + }, + "com.amazonaws.transfer#DescribedWebAppIdentityProviderDetails": { + "type": "union", + "members": { + "IdentityCenterConfig": { + "target": "com.amazonaws.transfer#DescribedIdentityCenterConfig", + "traits": { + "smithy.api#documentation": "

Returns a structure for your identity provider details. This structure contains the instance ARN and role being used for the web app.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Returns a structure that contains the identity provider details for your web app.

" + } + }, + "com.amazonaws.transfer#DescribedWebAppVpcConfig": { + "type": "structure", + "members": { + "SubnetIds": { + "target": "com.amazonaws.transfer#SubnetIds", + "traits": { + "smithy.api#documentation": "

The list of subnet IDs within the VPC where the web app endpoint is deployed. These subnets must be in the same VPC and provide network connectivity for the endpoint.

" + } + }, + "VpcId": { + "target": "com.amazonaws.transfer#VpcId", + "traits": { + "smithy.api#documentation": "

The identifier of the VPC where the web app endpoint is hosted.

" + } + }, + "VpcEndpointId": { + "target": "com.amazonaws.transfer#VpcEndpointId", + "traits": { + "smithy.api#documentation": "

The identifier of the VPC endpoint created for the web app.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Contains the VPC configuration details for a web app endpoint, including the VPC identifier, subnet IDs, and VPC endpoint ID used for hosting the endpoint.

" + } + }, + "com.amazonaws.transfer#DescribedWorkflow": { + "type": "structure", + "members": { + "Arn": { + "target": "com.amazonaws.transfer#Arn", + "traits": { + "aws.cloudformation#cfnMutability": "read", + "smithy.api#documentation": "

Specifies the unique Amazon Resource Name (ARN) for the workflow.

", + "smithy.api#required": {} + } + }, + "Description": { + "target": "com.amazonaws.transfer#WorkflowDescription", + "traits": { + "smithy.api#documentation": "

Specifies the text description for the workflow.

" + } + }, + "Steps": { + "target": "com.amazonaws.transfer#WorkflowSteps", + "traits": { + "smithy.api#documentation": "

Specifies the details for the steps that are in the specified workflow.

" + } + }, + "OnExceptionSteps": { + "target": "com.amazonaws.transfer#WorkflowSteps", + "traits": { + "smithy.api#documentation": "

Specifies the steps (actions) to take if errors are encountered during execution of the workflow.

" + } + }, + "WorkflowId": { + "target": "com.amazonaws.transfer#WorkflowId", + "traits": { + "smithy.api#documentation": "

A unique identifier for the workflow.

" + } + }, + "Tags": { + "target": "com.amazonaws.transfer#Tags", + "traits": { + "smithy.api#documentation": "

Key-value pairs that can be used to group and search for workflows. Tags are metadata attached to workflows for any purpose.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Describes the properties of the specified workflow

" + } + }, + "com.amazonaws.transfer#Description": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 200 + }, + "smithy.api#pattern": "^[\\u0021-\\u007E]+$" + } + }, + "com.amazonaws.transfer#DirectoryId": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 12, + "max": 12 + }, + "smithy.api#pattern": "^d-[0-9a-f]{10}$" + } + }, + "com.amazonaws.transfer#DirectoryListingOptimization": { + "type": "enum", + "members": { + "ENABLED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ENABLED" + } + }, + "DISABLED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "DISABLED" + } + } + }, + "traits": { + "smithy.api#documentation": "Indicates whether optimization to directory listing on S3 servers is used. Disabled by default for compatibility." + } + }, + "com.amazonaws.transfer#Domain": { + "type": "enum", + "members": { + "S3": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "S3" + } + }, + "EFS": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "EFS" + } + } + } + }, + "com.amazonaws.transfer#EfsFileLocation": { + "type": "structure", + "members": { + "FileSystemId": { + "target": "com.amazonaws.transfer#EfsFileSystemId", + "traits": { + "smithy.api#documentation": "

The identifier of the file system, assigned by Amazon EFS.

" + } + }, + "Path": { + "target": "com.amazonaws.transfer#EfsPath", + "traits": { + "smithy.api#documentation": "

The pathname for the folder being used by a workflow.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Specifies the details for the file location for the file that's being used in the workflow. Only applicable if you are using Amazon Elastic File Systems (Amazon EFS) for storage.

" + } + }, + "com.amazonaws.transfer#EfsFileSystemId": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 0, + "max": 128 + }, + "smithy.api#pattern": "^(arn:aws[-a-z]*:elasticfilesystem:[0-9a-z-:]+:(access-point/fsap|file-system/fs)-[0-9a-f]{8,40}|fs(ap)?-[0-9a-f]{8,40})$" + } + }, + "com.amazonaws.transfer#EfsPath": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 65536 + }, + "smithy.api#pattern": "^[^\\x00]+$" + } + }, + "com.amazonaws.transfer#EncryptionAlg": { + "type": "enum", + "members": { + "AES128_CBC": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "AES128_CBC" + } + }, + "AES192_CBC": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "AES192_CBC" + } + }, + "AES256_CBC": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "AES256_CBC" + } + }, + "DES_EDE3_CBC": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "DES_EDE3_CBC" + } + }, + "NONE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "NONE" + } + } + } + }, + "com.amazonaws.transfer#EncryptionType": { + "type": "enum", + "members": { + "PGP": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "PGP" + } + } + } + }, + "com.amazonaws.transfer#EndpointDetails": { + "type": "structure", + "members": { + "AddressAllocationIds": { + "target": "com.amazonaws.transfer#AddressAllocationIds", + "traits": { + "smithy.api#documentation": "

A list of address allocation IDs that are required to attach an Elastic IP address to your server's endpoint.

An address allocation ID corresponds to the allocation ID of an Elastic IP address. This value can be retrieved from the allocationId field from the Amazon EC2 Address data type. One way to retrieve this value is by calling the EC2 DescribeAddresses API.

This parameter is optional. Set this parameter if you want to make your VPC endpoint public-facing. For details, see Create an internet-facing endpoint for your server.

This property can only be set as follows:

" + } + }, + "SubnetIds": { + "target": "com.amazonaws.transfer#SubnetIds", + "traits": { + "smithy.api#documentation": "

A list of subnet IDs that are required to host your server endpoint in your VPC.

This property can only be set when EndpointType is set to VPC.

" + } + }, + "VpcEndpointId": { + "target": "com.amazonaws.transfer#VpcEndpointId", + "traits": { + "smithy.api#documentation": "

The identifier of the VPC endpoint.

This property can only be set when EndpointType is set to VPC_ENDPOINT.

For more information, see https://docs.aws.amazon.com/transfer/latest/userguide/create-server-in-vpc.html#deprecate-vpc-endpoint.

" + } + }, + "VpcId": { + "target": "com.amazonaws.transfer#VpcId", + "traits": { + "smithy.api#documentation": "

The VPC identifier of the VPC in which a server's endpoint will be hosted.

This property can only be set when EndpointType is set to VPC.

" + } + }, + "SecurityGroupIds": { + "target": "com.amazonaws.transfer#SecurityGroupIds", + "traits": { + "smithy.api#documentation": "

A list of security groups IDs that are available to attach to your server's endpoint.

While SecurityGroupIds appears in the response syntax for consistency with CreateServer and UpdateServer operations, this field is not populated in DescribeServer responses. Security groups are managed at the VPC endpoint level and can be modified outside of the Transfer Family service. To retrieve current security group information, use the EC2 DescribeVpcEndpoints API with the VpcEndpointId returned in the response.

This property can only be set when EndpointType is set to VPC.

You can edit the SecurityGroupIds property in the UpdateServer API only if you are changing the EndpointType from PUBLIC or VPC_ENDPOINT to VPC. To change security groups associated with your server's VPC endpoint after creation, use the Amazon EC2 ModifyVpcEndpoint API.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

The virtual private cloud (VPC) endpoint settings that are configured for your file transfer protocol-enabled server. With a VPC endpoint, you can restrict access to your server and resources only within your VPC. To control incoming internet traffic, invoke the UpdateServer API and attach an Elastic IP address to your server's endpoint.

After May 19, 2021, you won't be able to create a server using EndpointType=VPC_ENDPOINT in your Amazon Web Services account if your account hasn't already done so before May 19, 2021. If you have already created servers with EndpointType=VPC_ENDPOINT in your Amazon Web Services account on or before May 19, 2021, you will not be affected. After this date, use EndpointType=VPC.

For more information, see https://docs.aws.amazon.com/transfer/latest/userguide/create-server-in-vpc.html#deprecate-vpc-endpoint.

It is recommended that you use VPC as the EndpointType. With this endpoint type, you have the option to directly associate up to three Elastic IPv4 addresses (BYO IP included) with your server's endpoint and use VPC security groups to restrict traffic by the client's public IP address. This is not possible with EndpointType set to VPC_ENDPOINT.

" + } + }, + "com.amazonaws.transfer#EndpointType": { + "type": "enum", + "members": { + "PUBLIC": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "PUBLIC" + } + }, + "VPC": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "VPC" + } + }, + "VPC_ENDPOINT": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "VPC_ENDPOINT" + } + } + } + }, + "com.amazonaws.transfer#EnforceMessageSigningType": { + "type": "enum", + "members": { + "ENABLED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ENABLED" + } + }, + "DISABLED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "DISABLED" + } + } + } + }, + "com.amazonaws.transfer#ExecutionError": { + "type": "structure", + "members": { + "Type": { + "target": "com.amazonaws.transfer#ExecutionErrorType", + "traits": { + "smithy.api#documentation": "

Specifies the error type.

", + "smithy.api#required": {} + } + }, + "Message": { + "target": "com.amazonaws.transfer#ExecutionErrorMessage", + "traits": { + "smithy.api#documentation": "

Specifies the descriptive message that corresponds to the ErrorType.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

Specifies the error message and type, for an error that occurs during the execution of the workflow.

" + } + }, + "com.amazonaws.transfer#ExecutionErrorMessage": { + "type": "string" + }, + "com.amazonaws.transfer#ExecutionErrorType": { + "type": "enum", + "members": { + "PERMISSION_DENIED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "PERMISSION_DENIED" + } + }, + "CUSTOM_STEP_FAILED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "CUSTOM_STEP_FAILED" + } + }, + "THROTTLED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "THROTTLED" + } + }, + "ALREADY_EXISTS": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ALREADY_EXISTS" + } + }, + "NOT_FOUND": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "NOT_FOUND" + } + }, + "BAD_REQUEST": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "BAD_REQUEST" + } + }, + "TIMEOUT": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "TIMEOUT" + } + }, + "INTERNAL_SERVER_ERROR": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "INTERNAL_SERVER_ERROR" + } + } + } + }, + "com.amazonaws.transfer#ExecutionId": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 36, + "max": 36 + }, + "smithy.api#pattern": "^[0-9a-fA-F]{8}\\-[0-9a-fA-F]{4}\\-[0-9a-fA-F]{4}\\-[0-9a-fA-F]{4}\\-[0-9a-fA-F]{12}$" + } + }, + "com.amazonaws.transfer#ExecutionResults": { + "type": "structure", + "members": { + "Steps": { + "target": "com.amazonaws.transfer#ExecutionStepResults", + "traits": { + "smithy.api#documentation": "

Specifies the details for the steps that are in the specified workflow.

" + } + }, + "OnExceptionSteps": { + "target": "com.amazonaws.transfer#ExecutionStepResults", + "traits": { + "smithy.api#documentation": "

Specifies the steps (actions) to take if errors are encountered during execution of the workflow.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Specifies the steps in the workflow, as well as the steps to execute in case of any errors during workflow execution.

" + } + }, + "com.amazonaws.transfer#ExecutionStatus": { + "type": "enum", + "members": { + "IN_PROGRESS": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "IN_PROGRESS" + } + }, + "COMPLETED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "COMPLETED" + } + }, + "EXCEPTION": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "EXCEPTION" + } + }, + "HANDLING_EXCEPTION": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "HANDLING_EXCEPTION" + } + } + } + }, + "com.amazonaws.transfer#ExecutionStepResult": { + "type": "structure", + "members": { + "StepType": { + "target": "com.amazonaws.transfer#WorkflowStepType", + "traits": { + "smithy.api#documentation": "

One of the available step types.

" + } + }, + "Outputs": { + "target": "com.amazonaws.transfer#StepResultOutputsJson", + "traits": { + "smithy.api#documentation": "

The values for the key/value pair applied as a tag to the file. Only applicable if the step type is TAG.

" + } + }, + "Error": { + "target": "com.amazonaws.transfer#ExecutionError", + "traits": { + "smithy.api#documentation": "

Specifies the details for an error, if it occurred during execution of the specified workflow step.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Specifies the following details for the step: error (if any), outputs (if any), and the step type.

" + } + }, + "com.amazonaws.transfer#ExecutionStepResults": { + "type": "list", + "member": { + "target": "com.amazonaws.transfer#ExecutionStepResult" + }, + "traits": { + "smithy.api#length": { + "min": 1, + "max": 50 + } + } + }, + "com.amazonaws.transfer#ExternalId": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 256 + }, + "smithy.api#pattern": "^S-1-[\\d-]+$" + } + }, + "com.amazonaws.transfer#FailureCode": { + "type": "string" + }, + "com.amazonaws.transfer#FileLocation": { + "type": "structure", + "members": { + "S3FileLocation": { + "target": "com.amazonaws.transfer#S3FileLocation", + "traits": { + "smithy.api#documentation": "

Specifies the S3 details for the file being used, such as bucket, ETag, and so forth.

" + } + }, + "EfsFileLocation": { + "target": "com.amazonaws.transfer#EfsFileLocation", + "traits": { + "smithy.api#documentation": "

Specifies the Amazon EFS identifier and the path for the file being used.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Specifies the Amazon S3 or EFS file details to be used in the step.

" + } + }, + "com.amazonaws.transfer#FilePath": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 1024 + }, + "smithy.api#pattern": "^(.)+$" + } + }, + "com.amazonaws.transfer#FilePaths": { + "type": "list", + "member": { + "target": "com.amazonaws.transfer#FilePath" + }, + "traits": { + "smithy.api#length": { + "min": 1, + "max": 10 + } + } + }, + "com.amazonaws.transfer#Fips": { + "type": "boolean" + }, + "com.amazonaws.transfer#Function": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 170 + }, + "smithy.api#pattern": "^arn:[a-z-]+:lambda:.*$" + } + }, + "com.amazonaws.transfer#HomeDirectory": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 0, + "max": 1024 + }, + "smithy.api#pattern": "^(|/.*)$" + } + }, + "com.amazonaws.transfer#HomeDirectoryMapEntry": { + "type": "structure", + "members": { + "Entry": { + "target": "com.amazonaws.transfer#MapEntry", + "traits": { + "smithy.api#documentation": "

Represents an entry for HomeDirectoryMappings.

", + "smithy.api#required": {} + } + }, + "Target": { + "target": "com.amazonaws.transfer#MapTarget", + "traits": { + "smithy.api#documentation": "

Represents the map target that is used in a HomeDirectoryMapEntry.

", + "smithy.api#required": {} + } + }, + "Type": { + "target": "com.amazonaws.transfer#MapType", + "traits": { + "smithy.api#documentation": "

Specifies the type of mapping. Set the type to FILE if you want the mapping to point to a file, or DIRECTORY for the directory to point to a directory.

By default, home directory mappings have a Type of DIRECTORY when you create a Transfer Family server. You would need to explicitly set Type to FILE if you want a mapping to have a file target.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Represents an object that contains entries and targets for HomeDirectoryMappings.

The following is an Entry and Target pair example for chroot.

[ { \"Entry\": \"/\", \"Target\": \"/bucket_name/home/mydirectory\" } ]

" + } + }, + "com.amazonaws.transfer#HomeDirectoryMappings": { + "type": "list", + "member": { + "target": "com.amazonaws.transfer#HomeDirectoryMapEntry" + }, + "traits": { + "smithy.api#length": { + "min": 1, + "max": 50000 + } + } + }, + "com.amazonaws.transfer#HomeDirectoryType": { + "type": "enum", + "members": { + "PATH": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "PATH" + } + }, + "LOGICAL": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "LOGICAL" + } + } + } + }, + "com.amazonaws.transfer#HostKey": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 0, + "max": 4096 + }, + "smithy.api#sensitive": {} + } + }, + "com.amazonaws.transfer#HostKeyDescription": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 0, + "max": 200 + }, + "smithy.api#pattern": "^[\\p{Print}]*$" + } + }, + "com.amazonaws.transfer#HostKeyFingerprint": { + "type": "string" + }, + "com.amazonaws.transfer#HostKeyId": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 25, + "max": 25 + }, + "smithy.api#pattern": "^hostkey-[0-9a-f]{17}$" + } + }, + "com.amazonaws.transfer#HostKeyType": { + "type": "string" + }, + "com.amazonaws.transfer#IdentityCenterApplicationArn": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 10, + "max": 1224 + }, + "smithy.api#pattern": "^arn:[\\w-]+:sso::\\d{12}:application/(sso)?ins-[a-zA-Z0-9-.]{16}/apl-[a-zA-Z0-9]{16}$" + } + }, + "com.amazonaws.transfer#IdentityCenterConfig": { + "type": "structure", + "members": { + "InstanceArn": { + "target": "com.amazonaws.transfer#IdentityCenterInstanceArn", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) for the IAM Identity Center used for the web app.

" + } + }, + "Role": { + "target": "com.amazonaws.transfer#Role", + "traits": { + "smithy.api#documentation": "

The IAM role in IAM Identity Center used for the web app.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

A structure that describes the values to use for the IAM Identity Center settings when you create or update a web app.

" + } + }, + "com.amazonaws.transfer#IdentityCenterInstanceArn": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 10, + "max": 1224 + }, + "smithy.api#pattern": "^arn:[\\w-]+:sso:::instance/(sso)?ins-[a-zA-Z0-9-.]{16}$" + } + }, + "com.amazonaws.transfer#IdentityProviderDetails": { + "type": "structure", + "members": { + "Url": { + "target": "com.amazonaws.transfer#Url", + "traits": { + "smithy.api#documentation": "

Provides the location of the service endpoint used to authenticate users.

" + } + }, + "InvocationRole": { + "target": "com.amazonaws.transfer#Role", + "traits": { + "smithy.api#documentation": "

This parameter is only applicable if your IdentityProviderType is API_GATEWAY. Provides the type of InvocationRole used to authenticate the user account.

" + } + }, + "DirectoryId": { + "target": "com.amazonaws.transfer#DirectoryId", + "traits": { + "smithy.api#documentation": "

The identifier of the Directory Service directory that you want to use as your identity provider.

" + } + }, + "Function": { + "target": "com.amazonaws.transfer#Function", + "traits": { + "smithy.api#documentation": "

The ARN for a Lambda function to use for the Identity provider.

" + } + }, + "SftpAuthenticationMethods": { + "target": "com.amazonaws.transfer#SftpAuthenticationMethods", + "traits": { + "smithy.api#documentation": "

For SFTP-enabled servers, and for custom identity providers only, you can specify whether to authenticate using a password, SSH key pair, or both.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Returns information related to the type of user authentication that is in use for a file transfer protocol-enabled server's users. A server can have only one method of authentication.

" + } + }, + "com.amazonaws.transfer#IdentityProviderType": { + "type": "enum", + "members": { + "SERVICE_MANAGED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "SERVICE_MANAGED" + } + }, + "API_GATEWAY": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "API_GATEWAY" + } + }, + "AWS_DIRECTORY_SERVICE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "AWS_DIRECTORY_SERVICE" + } + }, + "AWS_LAMBDA": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "AWS_LAMBDA" + } + } + }, + "traits": { + "smithy.api#documentation": "

The mode of authentication for a server. The default value is SERVICE_MANAGED, which allows you to store and access user credentials within the Transfer Family service.

Use AWS_DIRECTORY_SERVICE to provide access to Active Directory groups in Directory Service for Microsoft Active Directory or Microsoft Active Directory in your on-premises environment or in Amazon Web Services using AD Connector. This option also requires you to provide a Directory ID by using the IdentityProviderDetails parameter.

Use the API_GATEWAY value to integrate with an identity provider of your choosing. The API_GATEWAY setting requires you to provide an Amazon API Gateway endpoint URL to call for authentication by using the IdentityProviderDetails parameter.

Use the AWS_LAMBDA value to directly use an Lambda function as your identity provider. If you choose this value, you must specify the ARN for the Lambda function in the Function parameter for the IdentityProviderDetails data type.

" + } + }, + "com.amazonaws.transfer#ImportCertificate": { + "type": "operation", + "input": { + "target": "com.amazonaws.transfer#ImportCertificateRequest" + }, + "output": { + "target": "com.amazonaws.transfer#ImportCertificateResponse" + }, + "errors": [ + { + "target": "com.amazonaws.transfer#InternalServiceError" + }, + { + "target": "com.amazonaws.transfer#InvalidRequestException" + }, + { + "target": "com.amazonaws.transfer#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.transfer#ServiceUnavailableException" + } + ], + "traits": { + "aws.iam#iamAction": { + "requiredActions": [ + "transfer:TagResource" + ] + }, + "smithy.api#documentation": "

Imports the signing and encryption certificates that you need to create local (AS2) profiles and partner profiles.

You can import both the certificate and its chain in the Certificate parameter.

After importing a certificate, Transfer Family automatically creates a Amazon CloudWatch metric called DaysUntilExpiry that tracks the number of days until the certificate expires. The metric is based on the InactiveDate parameter and is published daily in the AWS/Transfer namespace.

It can take up to a full day after importing a certificate for Transfer Family to emit the DaysUntilExpiry metric to your account.

If you use the Certificate parameter to upload both the certificate and its chain, don't use the CertificateChain parameter.

CloudWatch monitoring

The DaysUntilExpiry metric includes the following specifications:

" + } + }, + "com.amazonaws.transfer#ImportCertificateRequest": { + "type": "structure", + "members": { + "Usage": { + "target": "com.amazonaws.transfer#CertificateUsageType", + "traits": { + "smithy.api#documentation": "

Specifies how this certificate is used. It can be used in the following ways:

", + "smithy.api#required": {} + } + }, + "Certificate": { + "target": "com.amazonaws.transfer#CertificateBodyType", + "traits": { + "smithy.api#documentation": "

You can provide both the certificate and its chain in this parameter, without needing to use the CertificateChain parameter. If you use this parameter for both the certificate and its chain, do not use the CertificateChain parameter.

", + "smithy.api#required": {} + } + }, + "CertificateChain": { + "target": "com.amazonaws.transfer#CertificateChainType", + "traits": { + "smithy.api#documentation": "

An optional list of certificates that make up the chain for the certificate that's being imported.

" + } + }, + "PrivateKey": { + "target": "com.amazonaws.transfer#PrivateKeyType", + "traits": { + "smithy.api#documentation": "" + } + }, + "ActiveDate": { + "target": "com.amazonaws.transfer#CertDate", + "traits": { + "smithy.api#documentation": "

An optional date that specifies when the certificate becomes active. If you do not specify a value, ActiveDate takes the same value as NotBeforeDate, which is specified by the CA.

" + } + }, + "InactiveDate": { + "target": "com.amazonaws.transfer#CertDate", + "traits": { + "smithy.api#documentation": "

An optional date that specifies when the certificate becomes inactive. If you do not specify a value, InactiveDate takes the same value as NotAfterDate, which is specified by the CA.

" + } + }, + "Description": { + "target": "com.amazonaws.transfer#Description", + "traits": { + "smithy.api#documentation": "

A short description that helps identify the certificate.

" + } + }, + "Tags": { + "target": "com.amazonaws.transfer#Tags", + "traits": { + "smithy.api#documentation": "

Key-value pairs that can be used to group and search for certificates.

" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.transfer#ImportCertificateResponse": { + "type": "structure", + "members": { + "CertificateId": { + "target": "com.amazonaws.transfer#CertificateId", + "traits": { + "smithy.api#documentation": "

An array of identifiers for the imported certificates. You use this identifier for working with profiles and partner profiles.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.transfer#ImportHostKey": { + "type": "operation", + "input": { + "target": "com.amazonaws.transfer#ImportHostKeyRequest" + }, + "output": { + "target": "com.amazonaws.transfer#ImportHostKeyResponse" + }, + "errors": [ + { + "target": "com.amazonaws.transfer#InternalServiceError" + }, + { + "target": "com.amazonaws.transfer#InvalidRequestException" + }, + { + "target": "com.amazonaws.transfer#ResourceExistsException" + }, + { + "target": "com.amazonaws.transfer#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.transfer#ServiceUnavailableException" + }, + { + "target": "com.amazonaws.transfer#ThrottlingException" + } + ], + "traits": { + "smithy.api#documentation": "

Adds a host key to the server that's specified by the ServerId parameter.

" + } + }, + "com.amazonaws.transfer#ImportHostKeyRequest": { + "type": "structure", + "members": { + "ServerId": { + "target": "com.amazonaws.transfer#ServerId", + "traits": { + "smithy.api#documentation": "

The identifier of the server that contains the host key that you are importing.

", + "smithy.api#required": {} + } + }, + "HostKeyBody": { + "target": "com.amazonaws.transfer#HostKey", + "traits": { + "smithy.api#documentation": "

The private key portion of an SSH key pair.

Transfer Family accepts RSA, ECDSA, and ED25519 keys.

", + "smithy.api#required": {} + } + }, + "Description": { + "target": "com.amazonaws.transfer#HostKeyDescription", + "traits": { + "smithy.api#documentation": "

The text description that identifies this host key.

" + } + }, + "Tags": { + "target": "com.amazonaws.transfer#Tags", + "traits": { + "smithy.api#documentation": "

Key-value pairs that can be used to group and search for host keys.

" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.transfer#ImportHostKeyResponse": { + "type": "structure", + "members": { + "ServerId": { + "target": "com.amazonaws.transfer#ServerId", + "traits": { + "smithy.api#documentation": "

Returns the server identifier that contains the imported key.

", + "smithy.api#required": {} + } + }, + "HostKeyId": { + "target": "com.amazonaws.transfer#HostKeyId", + "traits": { + "smithy.api#documentation": "

Returns the host key identifier for the imported key.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.transfer#ImportSshPublicKey": { + "type": "operation", + "input": { + "target": "com.amazonaws.transfer#ImportSshPublicKeyRequest" + }, + "output": { + "target": "com.amazonaws.transfer#ImportSshPublicKeyResponse" + }, + "errors": [ + { + "target": "com.amazonaws.transfer#InternalServiceError" + }, + { + "target": "com.amazonaws.transfer#InvalidRequestException" + }, + { + "target": "com.amazonaws.transfer#ResourceExistsException" + }, + { + "target": "com.amazonaws.transfer#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.transfer#ServiceUnavailableException" + }, + { + "target": "com.amazonaws.transfer#ThrottlingException" + } + ], + "traits": { + "smithy.api#documentation": "

Adds a Secure Shell (SSH) public key to a Transfer Family user identified by a UserName value assigned to the specific file transfer protocol-enabled server, identified by ServerId.

The response returns the UserName value, the ServerId value, and the name of the SshPublicKeyId.

" + } + }, + "com.amazonaws.transfer#ImportSshPublicKeyRequest": { + "type": "structure", + "members": { + "ServerId": { + "target": "com.amazonaws.transfer#ServerId", + "traits": { + "smithy.api#documentation": "

A system-assigned unique identifier for a server.

", + "smithy.api#required": {} + } + }, + "SshPublicKeyBody": { + "target": "com.amazonaws.transfer#SshPublicKeyBody", + "traits": { + "smithy.api#documentation": "

The public key portion of an SSH key pair.

Transfer Family accepts RSA, ECDSA, and ED25519 keys.

", + "smithy.api#required": {} + } + }, + "UserName": { + "target": "com.amazonaws.transfer#UserName", + "traits": { + "smithy.api#documentation": "

The name of the Transfer Family user that is assigned to one or more servers.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.transfer#ImportSshPublicKeyResponse": { + "type": "structure", + "members": { + "ServerId": { + "target": "com.amazonaws.transfer#ServerId", + "traits": { + "smithy.api#documentation": "

A system-assigned unique identifier for a server.

", + "smithy.api#required": {} + } + }, + "SshPublicKeyId": { + "target": "com.amazonaws.transfer#SshPublicKeyId", + "traits": { + "smithy.api#documentation": "

The name given to a public key by the system that was imported.

", + "smithy.api#required": {} + } + }, + "UserName": { + "target": "com.amazonaws.transfer#UserName", + "traits": { + "smithy.api#documentation": "

A user name assigned to the ServerID value that you specified.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

Identifies the user, the server they belong to, and the identifier of the SSH public key associated with that user. A user can have more than one key on each server that they are associated with.

", + "smithy.api#output": {} + } + }, + "com.amazonaws.transfer#InputFileLocation": { + "type": "structure", + "members": { + "S3FileLocation": { + "target": "com.amazonaws.transfer#S3InputFileLocation", + "traits": { + "smithy.api#documentation": "

Specifies the details for the Amazon S3 file that's being copied or decrypted.

" + } + }, + "EfsFileLocation": { + "target": "com.amazonaws.transfer#EfsFileLocation", + "traits": { + "smithy.api#documentation": "

Specifies the details for the Amazon Elastic File System (Amazon EFS) file that's being decrypted.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Specifies the location for the file that's being processed.

" + } + }, + "com.amazonaws.transfer#InternalServiceError": { + "type": "structure", + "members": { + "Message": { + "target": "com.amazonaws.transfer#Message", + "traits": { + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

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

", + "smithy.api#error": "server", + "smithy.api#httpError": 503 + } + }, + "com.amazonaws.transfer#InvalidNextTokenException": { + "type": "structure", + "members": { + "Message": { + "target": "com.amazonaws.transfer#Message", + "traits": { + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

The NextToken parameter that was passed is invalid.

", + "smithy.api#error": "client", + "smithy.api#httpError": 400 + } + }, + "com.amazonaws.transfer#InvalidRequestException": { + "type": "structure", + "members": { + "Message": { + "target": "com.amazonaws.transfer#Message", + "traits": { + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

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

", + "smithy.api#error": "client", + "smithy.api#httpError": 400 + } + }, + "com.amazonaws.transfer#IpAddressType": { + "type": "enum", + "members": { + "IPV4": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "IPV4" + } + }, + "DUALSTACK": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "DUALSTACK" + } + } + } + }, + "com.amazonaws.transfer#ListAccesses": { + "type": "operation", + "input": { + "target": "com.amazonaws.transfer#ListAccessesRequest" + }, + "output": { + "target": "com.amazonaws.transfer#ListAccessesResponse" + }, + "errors": [ + { + "target": "com.amazonaws.transfer#InternalServiceError" + }, + { + "target": "com.amazonaws.transfer#InvalidNextTokenException" + }, + { + "target": "com.amazonaws.transfer#InvalidRequestException" + }, + { + "target": "com.amazonaws.transfer#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.transfer#ServiceUnavailableException" + } + ], + "traits": { + "smithy.api#documentation": "

Lists the details for all the accesses you have on your server.

", + "smithy.api#paginated": { + "inputToken": "NextToken", + "outputToken": "NextToken", + "items": "Accesses", + "pageSize": "MaxResults" + }, + "smithy.api#readonly": {} + } + }, + "com.amazonaws.transfer#ListAccessesRequest": { + "type": "structure", + "members": { + "MaxResults": { + "target": "com.amazonaws.transfer#MaxResults", + "traits": { + "smithy.api#documentation": "

The maximum number of items to return.

" + } + }, + "NextToken": { + "target": "com.amazonaws.transfer#NextToken", + "traits": { + "smithy.api#documentation": "

When you can get additional results from the ListAccesses call, a NextToken parameter is returned in the output. You can then pass in a subsequent command to the NextToken parameter to continue listing additional accesses.

" + } + }, + "ServerId": { + "target": "com.amazonaws.transfer#ServerId", + "traits": { + "smithy.api#documentation": "

A system-assigned unique identifier for a server that has users assigned to it.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.transfer#ListAccessesResponse": { + "type": "structure", + "members": { + "NextToken": { + "target": "com.amazonaws.transfer#NextToken", + "traits": { + "smithy.api#documentation": "

When you can get additional results from the ListAccesses call, a NextToken parameter is returned in the output. You can then pass in a subsequent command to the NextToken parameter to continue listing additional accesses.

" + } + }, + "ServerId": { + "target": "com.amazonaws.transfer#ServerId", + "traits": { + "smithy.api#documentation": "

A system-assigned unique identifier for a server that has users assigned to it.

", + "smithy.api#required": {} + } + }, + "Accesses": { + "target": "com.amazonaws.transfer#ListedAccesses", + "traits": { + "smithy.api#documentation": "

Returns the accesses and their properties for the ServerId value that you specify.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.transfer#ListAgreements": { + "type": "operation", + "input": { + "target": "com.amazonaws.transfer#ListAgreementsRequest" + }, + "output": { + "target": "com.amazonaws.transfer#ListAgreementsResponse" + }, + "errors": [ + { + "target": "com.amazonaws.transfer#InternalServiceError" + }, + { + "target": "com.amazonaws.transfer#InvalidNextTokenException" + }, + { + "target": "com.amazonaws.transfer#InvalidRequestException" + }, + { + "target": "com.amazonaws.transfer#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.transfer#ServiceUnavailableException" + } + ], + "traits": { + "smithy.api#documentation": "

Returns a list of the agreements for the server that's identified by the ServerId that you supply. If you want to limit the results to a certain number, supply a value for the MaxResults parameter. If you ran the command previously and received a value for NextToken, you can supply that value to continue listing agreements from where you left off.

", + "smithy.api#paginated": { + "inputToken": "NextToken", + "outputToken": "NextToken", + "items": "Agreements", + "pageSize": "MaxResults" + }, + "smithy.api#readonly": {} + } + }, + "com.amazonaws.transfer#ListAgreementsRequest": { + "type": "structure", + "members": { + "MaxResults": { + "target": "com.amazonaws.transfer#MaxResults", + "traits": { + "smithy.api#documentation": "

The maximum number of items to return.

" + } + }, + "NextToken": { + "target": "com.amazonaws.transfer#NextToken", + "traits": { + "smithy.api#documentation": "

When you can get additional results from the ListAgreements call, a NextToken parameter is returned in the output. You can then pass in a subsequent command to the NextToken parameter to continue listing additional agreements.

" + } + }, + "ServerId": { + "target": "com.amazonaws.transfer#ServerId", + "traits": { + "smithy.api#documentation": "

The identifier of the server for which you want a list of agreements.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.transfer#ListAgreementsResponse": { + "type": "structure", + "members": { + "NextToken": { + "target": "com.amazonaws.transfer#NextToken", + "traits": { + "smithy.api#documentation": "

Returns a token that you can use to call ListAgreements again and receive additional results, if there are any.

" + } + }, + "Agreements": { + "target": "com.amazonaws.transfer#ListedAgreements", + "traits": { + "smithy.api#documentation": "

Returns an array, where each item contains the details of an agreement.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.transfer#ListCertificates": { + "type": "operation", + "input": { + "target": "com.amazonaws.transfer#ListCertificatesRequest" + }, + "output": { + "target": "com.amazonaws.transfer#ListCertificatesResponse" + }, + "errors": [ + { + "target": "com.amazonaws.transfer#InternalServiceError" + }, + { + "target": "com.amazonaws.transfer#InvalidNextTokenException" + }, + { + "target": "com.amazonaws.transfer#InvalidRequestException" + }, + { + "target": "com.amazonaws.transfer#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.transfer#ServiceUnavailableException" + } + ], + "traits": { + "smithy.api#documentation": "

Returns a list of the current certificates that have been imported into Transfer Family. If you want to limit the results to a certain number, supply a value for the MaxResults parameter. If you ran the command previously and received a value for the NextToken parameter, you can supply that value to continue listing certificates from where you left off.

", + "smithy.api#paginated": { + "inputToken": "NextToken", + "outputToken": "NextToken", + "items": "Certificates", + "pageSize": "MaxResults" + }, + "smithy.api#readonly": {} + } + }, + "com.amazonaws.transfer#ListCertificatesRequest": { + "type": "structure", + "members": { + "MaxResults": { + "target": "com.amazonaws.transfer#MaxResults", + "traits": { + "smithy.api#documentation": "

The maximum number of items to return.

" + } + }, + "NextToken": { + "target": "com.amazonaws.transfer#NextToken", + "traits": { + "smithy.api#documentation": "

When you can get additional results from the ListCertificates call, a NextToken parameter is returned in the output. You can then pass in a subsequent command to the NextToken parameter to continue listing additional certificates.

" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.transfer#ListCertificatesResponse": { + "type": "structure", + "members": { + "NextToken": { + "target": "com.amazonaws.transfer#NextToken", + "traits": { + "smithy.api#documentation": "

Returns the next token, which you can use to list the next certificate.

" + } + }, + "Certificates": { + "target": "com.amazonaws.transfer#ListedCertificates", + "traits": { + "smithy.api#documentation": "

Returns an array of the certificates that are specified in the ListCertificates call.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.transfer#ListConnectors": { + "type": "operation", + "input": { + "target": "com.amazonaws.transfer#ListConnectorsRequest" + }, + "output": { + "target": "com.amazonaws.transfer#ListConnectorsResponse" + }, + "errors": [ + { + "target": "com.amazonaws.transfer#InternalServiceError" + }, + { + "target": "com.amazonaws.transfer#InvalidNextTokenException" + }, + { + "target": "com.amazonaws.transfer#InvalidRequestException" + }, + { + "target": "com.amazonaws.transfer#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.transfer#ServiceUnavailableException" + } + ], + "traits": { + "smithy.api#documentation": "

Lists the connectors for the specified Region.

", + "smithy.api#paginated": { + "inputToken": "NextToken", + "outputToken": "NextToken", + "items": "Connectors", + "pageSize": "MaxResults" + }, + "smithy.api#readonly": {} + } + }, + "com.amazonaws.transfer#ListConnectorsRequest": { + "type": "structure", + "members": { + "MaxResults": { + "target": "com.amazonaws.transfer#MaxResults", + "traits": { + "smithy.api#documentation": "

The maximum number of items to return.

" + } + }, + "NextToken": { + "target": "com.amazonaws.transfer#NextToken", + "traits": { + "smithy.api#documentation": "

When you can get additional results from the ListConnectors call, a NextToken parameter is returned in the output. You can then pass in a subsequent command to the NextToken parameter to continue listing additional connectors.

" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.transfer#ListConnectorsResponse": { + "type": "structure", + "members": { + "NextToken": { + "target": "com.amazonaws.transfer#NextToken", + "traits": { + "smithy.api#documentation": "

Returns a token that you can use to call ListConnectors again and receive additional results, if there are any.

" + } + }, + "Connectors": { + "target": "com.amazonaws.transfer#ListedConnectors", + "traits": { + "smithy.api#documentation": "

Returns an array, where each item contains the details of a connector.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.transfer#ListExecutions": { + "type": "operation", + "input": { + "target": "com.amazonaws.transfer#ListExecutionsRequest" + }, + "output": { + "target": "com.amazonaws.transfer#ListExecutionsResponse" + }, + "errors": [ + { + "target": "com.amazonaws.transfer#InternalServiceError" + }, + { + "target": "com.amazonaws.transfer#InvalidNextTokenException" + }, + { + "target": "com.amazonaws.transfer#InvalidRequestException" + }, + { + "target": "com.amazonaws.transfer#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.transfer#ServiceUnavailableException" + } + ], + "traits": { + "smithy.api#documentation": "

Lists all in-progress executions for the specified workflow.

If the specified workflow ID cannot be found, ListExecutions returns a ResourceNotFound exception.

", + "smithy.api#paginated": { + "inputToken": "NextToken", + "outputToken": "NextToken", + "items": "Executions", + "pageSize": "MaxResults" + }, + "smithy.api#readonly": {} + } + }, + "com.amazonaws.transfer#ListExecutionsRequest": { + "type": "structure", + "members": { + "MaxResults": { + "target": "com.amazonaws.transfer#MaxResults", + "traits": { + "smithy.api#documentation": "

The maximum number of items to return.

" + } + }, + "NextToken": { + "target": "com.amazonaws.transfer#NextToken", + "traits": { + "smithy.api#documentation": "

ListExecutions returns the NextToken parameter in the output. You can then pass the NextToken parameter in a subsequent command to continue listing additional executions.

This is useful for pagination, for instance. If you have 100 executions for a workflow, you might only want to list first 10. If so, call the API by specifying the max-results:

aws transfer list-executions --max-results 10

This returns details for the first 10 executions, as well as the pointer (NextToken) to the eleventh execution. You can now call the API again, supplying the NextToken value you received:

aws transfer list-executions --max-results 10 --next-token $somePointerReturnedFromPreviousListResult

This call returns the next 10 executions, the 11th through the 20th. You can then repeat the call until the details for all 100 executions have been returned.

" + } + }, + "WorkflowId": { + "target": "com.amazonaws.transfer#WorkflowId", + "traits": { + "smithy.api#documentation": "

A unique identifier for the workflow.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.transfer#ListExecutionsResponse": { + "type": "structure", + "members": { + "NextToken": { + "target": "com.amazonaws.transfer#NextToken", + "traits": { + "smithy.api#documentation": "

ListExecutions returns the NextToken parameter in the output. You can then pass the NextToken parameter in a subsequent command to continue listing additional executions.

" + } + }, + "WorkflowId": { + "target": "com.amazonaws.transfer#WorkflowId", + "traits": { + "smithy.api#documentation": "

A unique identifier for the workflow.

", + "smithy.api#required": {} + } + }, + "Executions": { + "target": "com.amazonaws.transfer#ListedExecutions", + "traits": { + "smithy.api#documentation": "

Returns the details for each execution, in a ListedExecution array.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.transfer#ListFileTransferResults": { + "type": "operation", + "input": { + "target": "com.amazonaws.transfer#ListFileTransferResultsRequest" + }, + "output": { + "target": "com.amazonaws.transfer#ListFileTransferResultsResponse" + }, + "errors": [ + { + "target": "com.amazonaws.transfer#InternalServiceError" + }, + { + "target": "com.amazonaws.transfer#InvalidRequestException" + }, + { + "target": "com.amazonaws.transfer#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.transfer#ServiceUnavailableException" + } + ], + "traits": { + "smithy.api#documentation": "

Returns real-time updates and detailed information on the status of each individual file being transferred in a specific file transfer operation. You specify the file transfer by providing its ConnectorId and its TransferId.

File transfer results are available up to 7 days after an operation has been requested.

", + "smithy.api#http": { + "method": "POST", + "uri": "/listFileTransferResults" + }, + "smithy.api#paginated": { + "inputToken": "NextToken", + "outputToken": "NextToken", + "items": "FileTransferResults", + "pageSize": "MaxResults" + } + } + }, + "com.amazonaws.transfer#ListFileTransferResultsRequest": { + "type": "structure", + "members": { + "ConnectorId": { + "target": "com.amazonaws.transfer#ConnectorId", + "traits": { + "smithy.api#documentation": "

A unique identifier for a connector. This value should match the value supplied to the corresponding StartFileTransfer call.

", + "smithy.api#required": {} + } + }, + "TransferId": { + "target": "com.amazonaws.transfer#TransferId", + "traits": { + "smithy.api#documentation": "

A unique identifier for a file transfer. This value should match the value supplied to the corresponding StartFileTransfer call.

", + "smithy.api#required": {} + } + }, + "NextToken": { + "target": "com.amazonaws.transfer#NextToken", + "traits": { + "smithy.api#documentation": "

If there are more file details than returned in this call, use this value for a subsequent call to ListFileTransferResults to retrieve them.

" + } + }, + "MaxResults": { + "target": "com.amazonaws.transfer#MaxResults", + "traits": { + "smithy.api#documentation": "

The maximum number of files to return in a single page. Note that currently you can specify a maximum of 10 file paths in a single StartFileTransfer operation. Thus, the maximum number of file transfer results that can be returned in a single page is 10.

" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.transfer#ListFileTransferResultsResponse": { + "type": "structure", + "members": { + "FileTransferResults": { + "target": "com.amazonaws.transfer#ConnectorFileTransferResults", + "traits": { + "smithy.api#documentation": "

Returns the details for the files transferred in the transfer identified by the TransferId and ConnectorId specified.

", + "smithy.api#required": {} + } + }, + "NextToken": { + "target": "com.amazonaws.transfer#NextToken", + "traits": { + "smithy.api#documentation": "

Returns a token that you can use to call ListFileTransferResults again and receive additional results, if there are any (against the same TransferId.

" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.transfer#ListHostKeys": { + "type": "operation", + "input": { + "target": "com.amazonaws.transfer#ListHostKeysRequest" + }, + "output": { + "target": "com.amazonaws.transfer#ListHostKeysResponse" + }, + "errors": [ + { + "target": "com.amazonaws.transfer#InternalServiceError" + }, + { + "target": "com.amazonaws.transfer#InvalidNextTokenException" + }, + { + "target": "com.amazonaws.transfer#InvalidRequestException" + }, + { + "target": "com.amazonaws.transfer#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.transfer#ServiceUnavailableException" + } + ], + "traits": { + "smithy.api#documentation": "

Returns a list of host keys for the server that's specified by the ServerId parameter.

", + "smithy.api#readonly": {} + } + }, + "com.amazonaws.transfer#ListHostKeysRequest": { + "type": "structure", + "members": { + "MaxResults": { + "target": "com.amazonaws.transfer#MaxResults", + "traits": { + "smithy.api#documentation": "

The maximum number of items to return.

" + } + }, + "NextToken": { + "target": "com.amazonaws.transfer#NextToken", + "traits": { + "smithy.api#documentation": "

When there are additional results that were not returned, a NextToken parameter is returned. You can use that value for a subsequent call to ListHostKeys to continue listing results.

" + } + }, + "ServerId": { + "target": "com.amazonaws.transfer#ServerId", + "traits": { + "smithy.api#documentation": "

The identifier of the server that contains the host keys that you want to view.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.transfer#ListHostKeysResponse": { + "type": "structure", + "members": { + "NextToken": { + "target": "com.amazonaws.transfer#NextToken", + "traits": { + "smithy.api#documentation": "

Returns a token that you can use to call ListHostKeys again and receive additional results, if there are any.

" + } + }, + "ServerId": { + "target": "com.amazonaws.transfer#ServerId", + "traits": { + "smithy.api#documentation": "

Returns the server identifier that contains the listed host keys.

", + "smithy.api#required": {} + } + }, + "HostKeys": { + "target": "com.amazonaws.transfer#ListedHostKeys", + "traits": { + "smithy.api#documentation": "

Returns an array, where each item contains the details of a host key.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.transfer#ListProfiles": { + "type": "operation", + "input": { + "target": "com.amazonaws.transfer#ListProfilesRequest" + }, + "output": { + "target": "com.amazonaws.transfer#ListProfilesResponse" + }, + "errors": [ + { + "target": "com.amazonaws.transfer#InternalServiceError" + }, + { + "target": "com.amazonaws.transfer#InvalidNextTokenException" + }, + { + "target": "com.amazonaws.transfer#InvalidRequestException" + }, + { + "target": "com.amazonaws.transfer#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.transfer#ServiceUnavailableException" + } + ], + "traits": { + "smithy.api#documentation": "

Returns a list of the profiles for your system. If you want to limit the results to a certain number, supply a value for the MaxResults parameter. If you ran the command previously and received a value for NextToken, you can supply that value to continue listing profiles from where you left off.

", + "smithy.api#paginated": { + "inputToken": "NextToken", + "outputToken": "NextToken", + "items": "Profiles", + "pageSize": "MaxResults" + }, + "smithy.api#readonly": {} + } + }, + "com.amazonaws.transfer#ListProfilesRequest": { + "type": "structure", + "members": { + "MaxResults": { + "target": "com.amazonaws.transfer#MaxResults", + "traits": { + "smithy.api#documentation": "

The maximum number of items to return.

" + } + }, + "NextToken": { + "target": "com.amazonaws.transfer#NextToken", + "traits": { + "smithy.api#documentation": "

When there are additional results that were not returned, a NextToken parameter is returned. You can use that value for a subsequent call to ListProfiles to continue listing results.

" + } + }, + "ProfileType": { + "target": "com.amazonaws.transfer#ProfileType", + "traits": { + "smithy.api#documentation": "

Indicates whether to list only LOCAL type profiles or only PARTNER type profiles. If not supplied in the request, the command lists all types of profiles.

" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.transfer#ListProfilesResponse": { + "type": "structure", + "members": { + "NextToken": { + "target": "com.amazonaws.transfer#NextToken", + "traits": { + "smithy.api#documentation": "

Returns a token that you can use to call ListProfiles again and receive additional results, if there are any.

" + } + }, + "Profiles": { + "target": "com.amazonaws.transfer#ListedProfiles", + "traits": { + "smithy.api#documentation": "

Returns an array, where each item contains the details of a profile.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.transfer#ListSecurityPolicies": { + "type": "operation", + "input": { + "target": "com.amazonaws.transfer#ListSecurityPoliciesRequest" + }, + "output": { + "target": "com.amazonaws.transfer#ListSecurityPoliciesResponse" + }, + "errors": [ + { + "target": "com.amazonaws.transfer#InternalServiceError" + }, + { + "target": "com.amazonaws.transfer#InvalidNextTokenException" + }, + { + "target": "com.amazonaws.transfer#InvalidRequestException" + }, + { + "target": "com.amazonaws.transfer#ServiceUnavailableException" + } + ], + "traits": { + "smithy.api#documentation": "

Lists the security policies that are attached to your servers and SFTP connectors. For more information about security policies, see Working with security policies for servers or Working with security policies for SFTP connectors.

", + "smithy.api#paginated": { + "inputToken": "NextToken", + "outputToken": "NextToken", + "items": "SecurityPolicyNames", + "pageSize": "MaxResults" + }, + "smithy.api#readonly": {} + } + }, + "com.amazonaws.transfer#ListSecurityPoliciesRequest": { + "type": "structure", + "members": { + "MaxResults": { + "target": "com.amazonaws.transfer#MaxResults", + "traits": { + "smithy.api#documentation": "

Specifies the number of security policies to return as a response to the ListSecurityPolicies query.

" + } + }, + "NextToken": { + "target": "com.amazonaws.transfer#NextToken", + "traits": { + "smithy.api#documentation": "

When additional results are obtained from the ListSecurityPolicies command, a NextToken parameter is returned in the output. You can then pass the NextToken parameter in a subsequent command to continue listing additional security policies.

" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.transfer#ListSecurityPoliciesResponse": { + "type": "structure", + "members": { + "NextToken": { + "target": "com.amazonaws.transfer#NextToken", + "traits": { + "smithy.api#documentation": "

When you can get additional results from the ListSecurityPolicies operation, a NextToken parameter is returned in the output. In a following command, you can pass in the NextToken parameter to continue listing security policies.

" + } + }, + "SecurityPolicyNames": { + "target": "com.amazonaws.transfer#SecurityPolicyNames", + "traits": { + "smithy.api#documentation": "

An array of security policies that were listed.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.transfer#ListServers": { + "type": "operation", + "input": { + "target": "com.amazonaws.transfer#ListServersRequest" + }, + "output": { + "target": "com.amazonaws.transfer#ListServersResponse" + }, + "errors": [ + { + "target": "com.amazonaws.transfer#InternalServiceError" + }, + { + "target": "com.amazonaws.transfer#InvalidNextTokenException" + }, + { + "target": "com.amazonaws.transfer#InvalidRequestException" + }, + { + "target": "com.amazonaws.transfer#ServiceUnavailableException" + } + ], + "traits": { + "aws.iam#iamAction": { + "requiredActions": [ + "transfer:ListServers" + ] + }, + "smithy.api#documentation": "

Lists the file transfer protocol-enabled servers that are associated with your Amazon Web Services account.

", + "smithy.api#paginated": { + "inputToken": "NextToken", + "outputToken": "NextToken", + "items": "Servers", + "pageSize": "MaxResults" + }, + "smithy.api#readonly": {} + } + }, + "com.amazonaws.transfer#ListServersRequest": { + "type": "structure", + "members": { + "MaxResults": { + "target": "com.amazonaws.transfer#MaxResults", + "traits": { + "smithy.api#documentation": "

Specifies the number of servers to return as a response to the ListServers query.

" + } + }, + "NextToken": { + "target": "com.amazonaws.transfer#NextToken", + "traits": { + "smithy.api#documentation": "

When additional results are obtained from the ListServers command, a NextToken parameter is returned in the output. You can then pass the NextToken parameter in a subsequent command to continue listing additional servers.

" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.transfer#ListServersResponse": { + "type": "structure", + "members": { + "NextToken": { + "target": "com.amazonaws.transfer#NextToken", + "traits": { + "smithy.api#documentation": "

When you can get additional results from the ListServers operation, a NextToken parameter is returned in the output. In a following command, you can pass in the NextToken parameter to continue listing additional servers.

" + } + }, + "Servers": { + "target": "com.amazonaws.transfer#ListedServers", + "traits": { + "smithy.api#documentation": "

An array of servers that were listed.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.transfer#ListTagsForResource": { + "type": "operation", + "input": { + "target": "com.amazonaws.transfer#ListTagsForResourceRequest" + }, + "output": { + "target": "com.amazonaws.transfer#ListTagsForResourceResponse" + }, + "errors": [ + { + "target": "com.amazonaws.transfer#InternalServiceError" + }, + { + "target": "com.amazonaws.transfer#InvalidNextTokenException" + }, + { + "target": "com.amazonaws.transfer#InvalidRequestException" + }, + { + "target": "com.amazonaws.transfer#ServiceUnavailableException" + } + ], + "traits": { + "smithy.api#documentation": "

Lists all of the tags associated with the Amazon Resource Name (ARN) that you specify. The resource can be a user, server, or role.

", + "smithy.api#paginated": { + "inputToken": "NextToken", + "outputToken": "NextToken", + "items": "Tags", + "pageSize": "MaxResults" + }, + "smithy.api#readonly": {} + } + }, + "com.amazonaws.transfer#ListTagsForResourceRequest": { + "type": "structure", + "members": { + "Arn": { + "target": "com.amazonaws.transfer#Arn", + "traits": { + "smithy.api#documentation": "

Requests the tags associated with a particular Amazon Resource Name (ARN). An ARN is an identifier for a specific Amazon Web Services resource, such as a server, user, or role.

", + "smithy.api#required": {} + } + }, + "MaxResults": { + "target": "com.amazonaws.transfer#MaxResults", + "traits": { + "smithy.api#documentation": "

Specifies the number of tags to return as a response to the ListTagsForResource request.

" + } + }, + "NextToken": { + "target": "com.amazonaws.transfer#NextToken", + "traits": { + "smithy.api#documentation": "

When you request additional results from the ListTagsForResource operation, a NextToken parameter is returned in the input. You can then pass in a subsequent command to the NextToken parameter to continue listing additional tags.

" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.transfer#ListTagsForResourceResponse": { + "type": "structure", + "members": { + "Arn": { + "target": "com.amazonaws.transfer#Arn", + "traits": { + "smithy.api#documentation": "

The ARN you specified to list the tags of.

" + } + }, + "NextToken": { + "target": "com.amazonaws.transfer#NextToken", + "traits": { + "smithy.api#documentation": "

When you can get additional results from the ListTagsForResource call, a NextToken parameter is returned in the output. You can then pass in a subsequent command to the NextToken parameter to continue listing additional tags.

" + } + }, + "Tags": { + "target": "com.amazonaws.transfer#Tags", + "traits": { + "smithy.api#documentation": "

Key-value pairs that are assigned to a resource, usually for the purpose of grouping and searching for items. Tags are metadata that you define.

" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.transfer#ListUsers": { + "type": "operation", + "input": { + "target": "com.amazonaws.transfer#ListUsersRequest" + }, + "output": { + "target": "com.amazonaws.transfer#ListUsersResponse" + }, + "errors": [ + { + "target": "com.amazonaws.transfer#InternalServiceError" + }, + { + "target": "com.amazonaws.transfer#InvalidNextTokenException" + }, + { + "target": "com.amazonaws.transfer#InvalidRequestException" + }, + { + "target": "com.amazonaws.transfer#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.transfer#ServiceUnavailableException" + } + ], + "traits": { + "aws.iam#iamAction": { + "requiredActions": [ + "transfer:ListUsers" + ] + }, + "smithy.api#documentation": "

Lists the users for a file transfer protocol-enabled server that you specify by passing the ServerId parameter.

", + "smithy.api#paginated": { + "inputToken": "NextToken", + "outputToken": "NextToken", + "items": "Users", + "pageSize": "MaxResults" + }, + "smithy.api#readonly": {} + } + }, + "com.amazonaws.transfer#ListUsersRequest": { + "type": "structure", + "members": { + "MaxResults": { + "target": "com.amazonaws.transfer#MaxResults", + "traits": { + "smithy.api#documentation": "

Specifies the number of users to return as a response to the ListUsers request.

" + } + }, + "NextToken": { + "target": "com.amazonaws.transfer#NextToken", + "traits": { + "smithy.api#documentation": "

If there are additional results from the ListUsers call, a NextToken parameter is returned in the output. You can then pass the NextToken to a subsequent ListUsers command, to continue listing additional users.

" + } + }, + "ServerId": { + "target": "com.amazonaws.transfer#ServerId", + "traits": { + "smithy.api#documentation": "

A system-assigned unique identifier for a server that has users assigned to it.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.transfer#ListUsersResponse": { + "type": "structure", + "members": { + "NextToken": { + "target": "com.amazonaws.transfer#NextToken", + "traits": { + "smithy.api#documentation": "

When you can get additional results from the ListUsers call, a NextToken parameter is returned in the output. You can then pass in a subsequent command to the NextToken parameter to continue listing additional users.

" + } + }, + "ServerId": { + "target": "com.amazonaws.transfer#ServerId", + "traits": { + "smithy.api#documentation": "

A system-assigned unique identifier for a server that the users are assigned to.

", + "smithy.api#required": {} + } + }, + "Users": { + "target": "com.amazonaws.transfer#ListedUsers", + "traits": { + "smithy.api#documentation": "

Returns the Transfer Family users and their properties for the ServerId value that you specify.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.transfer#ListWebApps": { + "type": "operation", + "input": { + "target": "com.amazonaws.transfer#ListWebAppsRequest" + }, + "output": { + "target": "com.amazonaws.transfer#ListWebAppsResponse" + }, + "errors": [ + { + "target": "com.amazonaws.transfer#InternalServiceError" + }, + { + "target": "com.amazonaws.transfer#InvalidNextTokenException" + }, + { + "target": "com.amazonaws.transfer#InvalidRequestException" + }, + { + "target": "com.amazonaws.transfer#ThrottlingException" + } + ], + "traits": { + "aws.iam#iamAction": { + "requiredActions": [ + "transfer:ListWebApps" + ] + }, + "smithy.api#documentation": "

Lists all web apps associated with your Amazon Web Services account for your current region. The response includes the endpoint type for each web app, showing whether it is publicly accessible or VPC hosted.

For more information about using VPC endpoints with Transfer Family, see Create a Transfer Family web app in a VPC.

", + "smithy.api#http": { + "method": "POST", + "uri": "/listWebApps" + }, + "smithy.api#paginated": { + "inputToken": "NextToken", + "outputToken": "NextToken", + "items": "WebApps", + "pageSize": "MaxResults" + }, + "smithy.api#readonly": {} + } + }, + "com.amazonaws.transfer#ListWebAppsRequest": { + "type": "structure", + "members": { + "MaxResults": { + "target": "com.amazonaws.transfer#MaxResults", + "traits": { + "smithy.api#documentation": "

The maximum number of items to return.

" + } + }, + "NextToken": { + "target": "com.amazonaws.transfer#NextToken", + "traits": { + "smithy.api#documentation": "

Returns the NextToken parameter in the output. You can then pass the NextToken parameter in a subsequent command to continue listing additional web apps.

" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.transfer#ListWebAppsResponse": { + "type": "structure", + "members": { + "NextToken": { + "target": "com.amazonaws.transfer#NextToken", + "traits": { + "smithy.api#documentation": "

Provide this value for the NextToken parameter in a subsequent command to continue listing additional web apps.

" + } + }, + "WebApps": { + "target": "com.amazonaws.transfer#ListedWebApps", + "traits": { + "smithy.api#documentation": "

Returns, for each listed web app, a structure that contains details for the web app.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.transfer#ListWorkflows": { + "type": "operation", + "input": { + "target": "com.amazonaws.transfer#ListWorkflowsRequest" + }, + "output": { + "target": "com.amazonaws.transfer#ListWorkflowsResponse" + }, + "errors": [ + { + "target": "com.amazonaws.transfer#InternalServiceError" + }, + { + "target": "com.amazonaws.transfer#InvalidNextTokenException" + }, + { + "target": "com.amazonaws.transfer#InvalidRequestException" + }, + { + "target": "com.amazonaws.transfer#ServiceUnavailableException" + } + ], + "traits": { + "smithy.api#documentation": "

Lists all workflows associated with your Amazon Web Services account for your current region.

", + "smithy.api#paginated": { + "inputToken": "NextToken", + "outputToken": "NextToken", + "items": "Workflows", + "pageSize": "MaxResults" + }, + "smithy.api#readonly": {} + } + }, + "com.amazonaws.transfer#ListWorkflowsRequest": { + "type": "structure", + "members": { + "MaxResults": { + "target": "com.amazonaws.transfer#MaxResults", + "traits": { + "smithy.api#documentation": "

The maximum number of items to return.

" + } + }, + "NextToken": { + "target": "com.amazonaws.transfer#NextToken", + "traits": { + "smithy.api#documentation": "

ListWorkflows returns the NextToken parameter in the output. You can then pass the NextToken parameter in a subsequent command to continue listing additional workflows.

" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.transfer#ListWorkflowsResponse": { + "type": "structure", + "members": { + "NextToken": { + "target": "com.amazonaws.transfer#NextToken", + "traits": { + "smithy.api#documentation": "

ListWorkflows returns the NextToken parameter in the output. You can then pass the NextToken parameter in a subsequent command to continue listing additional workflows.

" + } + }, + "Workflows": { + "target": "com.amazonaws.transfer#ListedWorkflows", + "traits": { + "smithy.api#documentation": "

Returns the Arn, WorkflowId, and Description for each workflow.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.transfer#ListedAccess": { + "type": "structure", + "members": { + "HomeDirectory": { + "target": "com.amazonaws.transfer#HomeDirectory", + "traits": { + "smithy.api#documentation": "

The landing directory (folder) for a user when they log in to the server using the client.

A HomeDirectory example is /bucket_name/home/mydirectory.

You can use the HomeDirectory parameter for HomeDirectoryType when it is set to either PATH or LOGICAL.

" + } + }, + "HomeDirectoryType": { + "target": "com.amazonaws.transfer#HomeDirectoryType", + "traits": { + "smithy.api#documentation": "

The type of landing directory (folder) that you want your users' home directory to be when they log in to the server. If you set it to PATH, the user will see the absolute Amazon S3 bucket or Amazon EFS path as is in their file transfer protocol clients. If you set it to LOGICAL, you need to provide mappings in the HomeDirectoryMappings for how you want to make Amazon S3 or Amazon EFS paths visible to your users.

If HomeDirectoryType is LOGICAL, you must provide mappings, using the HomeDirectoryMappings parameter. If, on the other hand, HomeDirectoryType is PATH, you provide an absolute path using the HomeDirectory parameter. You cannot have both HomeDirectory and HomeDirectoryMappings in your template.

" + } + }, + "Role": { + "target": "com.amazonaws.transfer#Role", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role that controls your users' access to your Amazon S3 bucket or Amazon EFS file system. The policies attached to this role determine the level of access that you want to provide your users when transferring files into and out of your Amazon S3 bucket or Amazon EFS file system. The IAM role should also contain a trust relationship that allows the server to access your resources when servicing your users' transfer requests.

" + } + }, + "ExternalId": { + "target": "com.amazonaws.transfer#ExternalId", + "traits": { + "smithy.api#documentation": "

A unique identifier that is required to identify specific groups within your directory. The users of the group that you associate have access to your Amazon S3 or Amazon EFS resources over the enabled protocols using Transfer Family. If you know the group name, you can view the SID values by running the following command using Windows PowerShell.

Get-ADGroup -Filter {samAccountName -like \"YourGroupName*\"} -Properties * | Select SamAccountName,ObjectSid

In that command, replace YourGroupName with the name of your Active Directory group.

The regular expression used to validate this parameter is a string of characters consisting of uppercase and lowercase alphanumeric characters with no spaces. You can also include underscores or any of the following characters: =,.@:/-

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Lists the properties for one or more specified associated accesses.

" + } + }, + "com.amazonaws.transfer#ListedAccesses": { + "type": "list", + "member": { + "target": "com.amazonaws.transfer#ListedAccess" + } + }, + "com.amazonaws.transfer#ListedAgreement": { + "type": "structure", + "members": { + "Arn": { + "target": "com.amazonaws.transfer#Arn", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the specified agreement.

" + } + }, + "AgreementId": { + "target": "com.amazonaws.transfer#AgreementId", + "traits": { + "smithy.api#documentation": "

A unique identifier for the agreement. This identifier is returned when you create an agreement.

" + } + }, + "Description": { + "target": "com.amazonaws.transfer#Description", + "traits": { + "smithy.api#documentation": "

The current description for the agreement. You can change it by calling the UpdateAgreement operation and providing a new description.

" + } + }, + "Status": { + "target": "com.amazonaws.transfer#AgreementStatusType", + "traits": { + "smithy.api#documentation": "

The agreement can be either ACTIVE or INACTIVE.

" + } + }, + "ServerId": { + "target": "com.amazonaws.transfer#ServerId", + "traits": { + "smithy.api#documentation": "

The unique identifier for the agreement.

" + } + }, + "LocalProfileId": { + "target": "com.amazonaws.transfer#ProfileId", + "traits": { + "smithy.api#documentation": "

A unique identifier for the AS2 local profile.

" + } + }, + "PartnerProfileId": { + "target": "com.amazonaws.transfer#ProfileId", + "traits": { + "smithy.api#documentation": "

A unique identifier for the partner profile.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Describes the properties of an agreement.

" + } + }, + "com.amazonaws.transfer#ListedAgreements": { + "type": "list", + "member": { + "target": "com.amazonaws.transfer#ListedAgreement" + } + }, + "com.amazonaws.transfer#ListedCertificate": { + "type": "structure", + "members": { + "Arn": { + "target": "com.amazonaws.transfer#Arn", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the specified certificate.

" + } + }, + "CertificateId": { + "target": "com.amazonaws.transfer#CertificateId", + "traits": { + "smithy.api#documentation": "

An array of identifiers for the imported certificates. You use this identifier for working with profiles and partner profiles.

" + } + }, + "Usage": { + "target": "com.amazonaws.transfer#CertificateUsageType", + "traits": { + "smithy.api#documentation": "

Specifies how this certificate is used. It can be used in the following ways:

" + } + }, + "Status": { + "target": "com.amazonaws.transfer#CertificateStatusType", + "traits": { + "smithy.api#documentation": "

The certificate can be either ACTIVE, PENDING_ROTATION, or INACTIVE. PENDING_ROTATION means that this certificate will replace the current certificate when it expires.

" + } + }, + "ActiveDate": { + "target": "com.amazonaws.transfer#CertDate", + "traits": { + "smithy.api#documentation": "

An optional date that specifies when the certificate becomes active. If you do not specify a value, ActiveDate takes the same value as NotBeforeDate, which is specified by the CA.

" + } + }, + "InactiveDate": { + "target": "com.amazonaws.transfer#CertDate", + "traits": { + "smithy.api#documentation": "

An optional date that specifies when the certificate becomes inactive. If you do not specify a value, InactiveDate takes the same value as NotAfterDate, which is specified by the CA.

" + } + }, + "Type": { + "target": "com.amazonaws.transfer#CertificateType", + "traits": { + "smithy.api#documentation": "

The type for the certificate. If a private key has been specified for the certificate, its type is CERTIFICATE_WITH_PRIVATE_KEY. If there is no private key, the type is CERTIFICATE.

" + } + }, + "Description": { + "target": "com.amazonaws.transfer#Description", + "traits": { + "smithy.api#documentation": "

The name or short description that's used to identify the certificate.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Describes the properties of a certificate.

" + } + }, + "com.amazonaws.transfer#ListedCertificates": { + "type": "list", + "member": { + "target": "com.amazonaws.transfer#ListedCertificate" + } + }, + "com.amazonaws.transfer#ListedConnector": { + "type": "structure", + "members": { + "Arn": { + "target": "com.amazonaws.transfer#Arn", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the specified connector.

" + } + }, + "ConnectorId": { + "target": "com.amazonaws.transfer#ConnectorId", + "traits": { + "smithy.api#documentation": "

The unique identifier for the connector.

" + } + }, + "Url": { + "target": "com.amazonaws.transfer#Url", + "traits": { + "smithy.api#documentation": "

The URL of the partner's AS2 or SFTP endpoint.

When creating AS2 connectors or service-managed SFTP connectors (connectors without egress configuration), you must provide a URL to specify the remote server endpoint. For VPC Lattice type connectors, the URL must be null.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Returns details of the connector that is specified.

" + } + }, + "com.amazonaws.transfer#ListedConnectors": { + "type": "list", + "member": { + "target": "com.amazonaws.transfer#ListedConnector" + } + }, + "com.amazonaws.transfer#ListedExecution": { + "type": "structure", + "members": { + "ExecutionId": { + "target": "com.amazonaws.transfer#ExecutionId", + "traits": { + "smithy.api#documentation": "

A unique identifier for the execution of a workflow.

" + } + }, + "InitialFileLocation": { + "target": "com.amazonaws.transfer#FileLocation", + "traits": { + "smithy.api#documentation": "

A structure that describes the Amazon S3 or EFS file location. This is the file location when the execution begins: if the file is being copied, this is the initial (as opposed to destination) file location.

" + } + }, + "ServiceMetadata": { + "target": "com.amazonaws.transfer#ServiceMetadata", + "traits": { + "smithy.api#documentation": "

A container object for the session details that are associated with a workflow.

" + } + }, + "Status": { + "target": "com.amazonaws.transfer#ExecutionStatus", + "traits": { + "smithy.api#documentation": "

The status is one of the execution. Can be in progress, completed, exception encountered, or handling the exception.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Returns properties of the execution that is specified.

" + } + }, + "com.amazonaws.transfer#ListedExecutions": { + "type": "list", + "member": { + "target": "com.amazonaws.transfer#ListedExecution" + } + }, + "com.amazonaws.transfer#ListedHostKey": { + "type": "structure", + "members": { + "Arn": { + "target": "com.amazonaws.transfer#Arn", + "traits": { + "smithy.api#documentation": "

The unique Amazon Resource Name (ARN) of the host key.

", + "smithy.api#required": {} + } + }, + "HostKeyId": { + "target": "com.amazonaws.transfer#HostKeyId", + "traits": { + "smithy.api#documentation": "

A unique identifier for the host key.

" + } + }, + "Fingerprint": { + "target": "com.amazonaws.transfer#HostKeyFingerprint", + "traits": { + "smithy.api#documentation": "

The public key fingerprint, which is a short sequence of bytes used to identify the longer public key.

" + } + }, + "Description": { + "target": "com.amazonaws.transfer#HostKeyDescription", + "traits": { + "smithy.api#documentation": "

The current description for the host key. You can change it by calling the UpdateHostKey operation and providing a new description.

" + } + }, + "Type": { + "target": "com.amazonaws.transfer#HostKeyType", + "traits": { + "smithy.api#documentation": "

The encryption algorithm that is used for the host key. The Type parameter is specified by using one of the following values:

" + } + }, + "DateImported": { + "target": "com.amazonaws.transfer#DateImported", + "traits": { + "smithy.api#documentation": "

The date on which the host key was added to the server.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Returns properties of the host key that's specified.

" + } + }, + "com.amazonaws.transfer#ListedHostKeys": { + "type": "list", + "member": { + "target": "com.amazonaws.transfer#ListedHostKey" + } + }, + "com.amazonaws.transfer#ListedProfile": { + "type": "structure", + "members": { + "Arn": { + "target": "com.amazonaws.transfer#Arn", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the specified profile.

" + } + }, + "ProfileId": { + "target": "com.amazonaws.transfer#ProfileId", + "traits": { + "smithy.api#documentation": "

A unique identifier for the local or partner AS2 profile.

" + } + }, + "As2Id": { + "target": "com.amazonaws.transfer#As2Id", + "traits": { + "smithy.api#documentation": "

The As2Id is the AS2-name, as defined in the RFC 4130. For inbound transfers, this is the AS2-From header for the AS2 messages sent from the partner. For outbound connectors, this is the AS2-To header for the AS2 messages sent to the partner using the StartFileTransfer API operation. This ID cannot include spaces.

" + } + }, + "ProfileType": { + "target": "com.amazonaws.transfer#ProfileType", + "traits": { + "smithy.api#documentation": "

Indicates whether to list only LOCAL type profiles or only PARTNER type profiles. If not supplied in the request, the command lists all types of profiles.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Returns the properties of the profile that was specified.

" + } + }, + "com.amazonaws.transfer#ListedProfiles": { + "type": "list", + "member": { + "target": "com.amazonaws.transfer#ListedProfile" + } + }, + "com.amazonaws.transfer#ListedServer": { + "type": "structure", + "members": { + "Arn": { + "target": "com.amazonaws.transfer#Arn", + "traits": { + "smithy.api#documentation": "

Specifies the unique Amazon Resource Name (ARN) for a server to be listed.

", + "smithy.api#required": {} + } + }, + "Domain": { + "target": "com.amazonaws.transfer#Domain", + "traits": { + "smithy.api#documentation": "

Specifies the domain of the storage system that is used for file transfers. There are two domains available: Amazon Simple Storage Service (Amazon S3) and Amazon Elastic File System (Amazon EFS). The default value is S3.

" + } + }, + "IdentityProviderType": { + "target": "com.amazonaws.transfer#IdentityProviderType", + "traits": { + "smithy.api#documentation": "

The mode of authentication for a server. The default value is SERVICE_MANAGED, which allows you to store and access user credentials within the Transfer Family service.

Use AWS_DIRECTORY_SERVICE to provide access to Active Directory groups in Directory Service for Microsoft Active Directory or Microsoft Active Directory in your on-premises environment or in Amazon Web Services using AD Connector. This option also requires you to provide a Directory ID by using the IdentityProviderDetails parameter.

Use the API_GATEWAY value to integrate with an identity provider of your choosing. The API_GATEWAY setting requires you to provide an Amazon API Gateway endpoint URL to call for authentication by using the IdentityProviderDetails parameter.

Use the AWS_LAMBDA value to directly use an Lambda function as your identity provider. If you choose this value, you must specify the ARN for the Lambda function in the Function parameter for the IdentityProviderDetails data type.

" + } + }, + "EndpointType": { + "target": "com.amazonaws.transfer#EndpointType", + "traits": { + "smithy.api#documentation": "

Specifies the type of VPC endpoint that your server is connected to. If your server is connected to a VPC endpoint, your server isn't accessible over the public internet.

" + } + }, + "LoggingRole": { + "target": "com.amazonaws.transfer#Role", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role that allows a server to turn on Amazon CloudWatch logging for Amazon S3 or Amazon EFS events. When set, you can view user activity in your CloudWatch logs.

" + } + }, + "ServerId": { + "target": "com.amazonaws.transfer#ServerId", + "traits": { + "smithy.api#documentation": "

Specifies the unique system assigned identifier for the servers that were listed.

" + } + }, + "State": { + "target": "com.amazonaws.transfer#State", + "traits": { + "smithy.api#documentation": "

The condition of the server that was described. A value of ONLINE indicates that the server can accept jobs and transfer files. A State value of OFFLINE means that the server cannot perform file transfer operations.

The states of STARTING and STOPPING indicate that the server is in an intermediate state, either not fully able to respond, or not fully offline. The values of START_FAILED or STOP_FAILED can indicate an error condition.

" + } + }, + "UserCount": { + "target": "com.amazonaws.transfer#UserCount", + "traits": { + "smithy.api#documentation": "

Specifies the number of users that are assigned to a server you specified with the ServerId.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Returns properties of a file transfer protocol-enabled server that was specified.

" + } + }, + "com.amazonaws.transfer#ListedServers": { + "type": "list", + "member": { + "target": "com.amazonaws.transfer#ListedServer" + } + }, + "com.amazonaws.transfer#ListedUser": { + "type": "structure", + "members": { + "Arn": { + "target": "com.amazonaws.transfer#Arn", + "traits": { + "smithy.api#documentation": "

Provides the unique Amazon Resource Name (ARN) for the user that you want to learn about.

", + "smithy.api#required": {} + } + }, + "HomeDirectory": { + "target": "com.amazonaws.transfer#HomeDirectory", + "traits": { + "smithy.api#documentation": "

The landing directory (folder) for a user when they log in to the server using the client.

A HomeDirectory example is /bucket_name/home/mydirectory.

You can use the HomeDirectory parameter for HomeDirectoryType when it is set to either PATH or LOGICAL.

" + } + }, + "HomeDirectoryType": { + "target": "com.amazonaws.transfer#HomeDirectoryType", + "traits": { + "smithy.api#documentation": "

The type of landing directory (folder) that you want your users' home directory to be when they log in to the server. If you set it to PATH, the user will see the absolute Amazon S3 bucket or Amazon EFS path as is in their file transfer protocol clients. If you set it to LOGICAL, you need to provide mappings in the HomeDirectoryMappings for how you want to make Amazon S3 or Amazon EFS paths visible to your users.

If HomeDirectoryType is LOGICAL, you must provide mappings, using the HomeDirectoryMappings parameter. If, on the other hand, HomeDirectoryType is PATH, you provide an absolute path using the HomeDirectory parameter. You cannot have both HomeDirectory and HomeDirectoryMappings in your template.

" + } + }, + "Role": { + "target": "com.amazonaws.transfer#Role", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role that controls your users' access to your Amazon S3 bucket or Amazon EFS file system. The policies attached to this role determine the level of access that you want to provide your users when transferring files into and out of your Amazon S3 bucket or Amazon EFS file system. The IAM role should also contain a trust relationship that allows the server to access your resources when servicing your users' transfer requests.

The IAM role that controls your users' access to your Amazon S3 bucket for servers with Domain=S3, or your EFS file system for servers with Domain=EFS.

The policies attached to this role determine the level of access you want to provide your users when transferring files into and out of your S3 buckets or EFS file systems.

" + } + }, + "SshPublicKeyCount": { + "target": "com.amazonaws.transfer#SshPublicKeyCount", + "traits": { + "smithy.api#documentation": "

Specifies the number of SSH public keys stored for the user you specified.

" + } + }, + "UserName": { + "target": "com.amazonaws.transfer#UserName", + "traits": { + "smithy.api#documentation": "

Specifies the name of the user whose ARN was specified. User names are used for authentication purposes.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Returns properties of the user that you specify.

" + } + }, + "com.amazonaws.transfer#ListedUsers": { + "type": "list", + "member": { + "target": "com.amazonaws.transfer#ListedUser" + } + }, + "com.amazonaws.transfer#ListedWebApp": { + "type": "structure", + "members": { + "Arn": { + "target": "com.amazonaws.transfer#Arn", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) for the web app.

", + "smithy.api#required": {} + } + }, + "WebAppId": { + "target": "com.amazonaws.transfer#WebAppId", + "traits": { + "smithy.api#documentation": "

The unique identifier for the web app.

", + "smithy.api#required": {} + } + }, + "AccessEndpoint": { + "target": "com.amazonaws.transfer#WebAppAccessEndpoint", + "traits": { + "smithy.api#documentation": "

The AccessEndpoint is the URL that you provide to your users for them to interact with the Transfer Family web app. You can specify a custom URL or use the default value.

" + } + }, + "WebAppEndpoint": { + "target": "com.amazonaws.transfer#WebAppEndpoint", + "traits": { + "smithy.api#documentation": "

The WebAppEndpoint is the unique URL for your Transfer Family web app. This is the value that you use when you configure Origins on CloudFront.

" + } + }, + "EndpointType": { + "target": "com.amazonaws.transfer#WebAppEndpointType", + "traits": { + "smithy.api#documentation": "

The type of endpoint hosting the web app. Valid values are PUBLIC for publicly accessible endpoints and VPC for VPC-hosted endpoints.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

a structure that contains details for the web app.

" + } + }, + "com.amazonaws.transfer#ListedWebApps": { + "type": "list", + "member": { + "target": "com.amazonaws.transfer#ListedWebApp" + } + }, + "com.amazonaws.transfer#ListedWorkflow": { + "type": "structure", + "members": { + "WorkflowId": { + "target": "com.amazonaws.transfer#WorkflowId", + "traits": { + "smithy.api#documentation": "

A unique identifier for the workflow.

" + } + }, + "Description": { + "target": "com.amazonaws.transfer#WorkflowDescription", + "traits": { + "smithy.api#documentation": "

Specifies the text description for the workflow.

" + } + }, + "Arn": { + "target": "com.amazonaws.transfer#Arn", + "traits": { + "smithy.api#documentation": "

Specifies the unique Amazon Resource Name (ARN) for the workflow.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Contains the identifier, text description, and Amazon Resource Name (ARN) for the workflow.

" + } + }, + "com.amazonaws.transfer#ListedWorkflows": { + "type": "list", + "member": { + "target": "com.amazonaws.transfer#ListedWorkflow" + } + }, + "com.amazonaws.transfer#ListingId": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 512 + }, + "smithy.api#pattern": "^[0-9a-zA-Z./-]+$" + } + }, + "com.amazonaws.transfer#LogGroupName": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 512 + }, + "smithy.api#pattern": "^[\\.\\-_/#A-Za-z0-9]*$" + } + }, + "com.amazonaws.transfer#LoggingConfiguration": { + "type": "structure", + "members": { + "LoggingRole": { + "target": "com.amazonaws.transfer#Role", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role that allows a server to turn on Amazon CloudWatch logging for Amazon S3 or Amazon EFS events. When set, you can view user activity in your CloudWatch logs.

" + } + }, + "LogGroupName": { + "target": "com.amazonaws.transfer#LogGroupName", + "traits": { + "smithy.api#documentation": "

The name of the CloudWatch logging group for the Transfer Family server to which this workflow belongs.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Consists of the logging role and the log group name.

" + } + }, + "com.amazonaws.transfer#MapEntry": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 0, + "max": 1024 + }, + "smithy.api#pattern": "^/.*$" + } + }, + "com.amazonaws.transfer#MapTarget": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 0, + "max": 1024 + }, + "smithy.api#pattern": "^/.*$" + } + }, + "com.amazonaws.transfer#MapType": { + "type": "enum", + "members": { + "FILE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "FILE" + } + }, + "DIRECTORY": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "DIRECTORY" + } + } + } + }, + "com.amazonaws.transfer#MaxConcurrentConnections": { + "type": "integer", + "traits": { + "smithy.api#default": 1, + "smithy.api#documentation": "The number of concurrent connections that the connector will create to the remote server.", + "smithy.api#range": { + "min": 1 + } + } + }, + "com.amazonaws.transfer#MaxItems": { + "type": "integer", + "traits": { + "smithy.api#range": { + "min": 1 + } + } + }, + "com.amazonaws.transfer#MaxResults": { + "type": "integer", + "traits": { + "smithy.api#range": { + "min": 1, + "max": 1000 + } + } + }, + "com.amazonaws.transfer#MdnResponse": { + "type": "enum", + "members": { + "SYNC": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "SYNC" + } + }, + "NONE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "NONE" + } + }, + "ASYNC": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ASYNC" + } + } + } + }, + "com.amazonaws.transfer#MdnSigningAlg": { + "type": "enum", + "members": { + "SHA256": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "SHA256" + } + }, + "SHA384": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "SHA384" + } + }, + "SHA512": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "SHA512" + } + }, + "SHA1": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "SHA1" + } + }, + "NONE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "NONE" + } + }, + "DEFAULT": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "DEFAULT" + } + } + } + }, + "com.amazonaws.transfer#Message": { + "type": "string" + }, + "com.amazonaws.transfer#MessageSubject": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 1024 + }, + "smithy.api#pattern": "^[\\u0020-\\u007E\\t]+$", + "smithy.api#sensitive": {} + } + }, + "com.amazonaws.transfer#MoveId": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 512 + }, + "smithy.api#pattern": "^[0-9a-zA-Z./-]+$" + } + }, + "com.amazonaws.transfer#NextToken": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 6144 + } + } + }, + "com.amazonaws.transfer#NullableRole": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 0, + "max": 2048 + }, + "smithy.api#pattern": "^(|arn:.*role/\\S+)$" + } + }, + "com.amazonaws.transfer#OnPartialUploadWorkflowDetails": { + "type": "list", + "member": { + "target": "com.amazonaws.transfer#WorkflowDetail" + }, + "traits": { + "smithy.api#length": { + "min": 0, + "max": 1 + } + } + }, + "com.amazonaws.transfer#OnUploadWorkflowDetails": { + "type": "list", + "member": { + "target": "com.amazonaws.transfer#WorkflowDetail" + }, + "traits": { + "smithy.api#length": { + "min": 0, + "max": 1 + } + } + }, + "com.amazonaws.transfer#OutputFileName": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 26, + "max": 537 + }, + "smithy.api#pattern": "^c-([0-9a-f]{17})-[0-9a-zA-Z./-]+.json$" + } + }, + "com.amazonaws.transfer#OverwriteExisting": { + "type": "enum", + "members": { + "TRUE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "TRUE" + } + }, + "FALSE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "FALSE" + } + } + } + }, + "com.amazonaws.transfer#PassiveIp": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 0, + "max": 15 + } + } + }, + "com.amazonaws.transfer#Policy": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 0, + "max": 2048 + } + } + }, + "com.amazonaws.transfer#PosixId": { + "type": "long", + "traits": { + "smithy.api#range": { + "min": 0, + "max": 4294967295 + } + } + }, + "com.amazonaws.transfer#PosixProfile": { + "type": "structure", + "members": { + "Uid": { + "target": "com.amazonaws.transfer#PosixId", + "traits": { + "smithy.api#documentation": "

The POSIX user ID used for all EFS operations by this user.

", + "smithy.api#required": {} + } + }, + "Gid": { + "target": "com.amazonaws.transfer#PosixId", + "traits": { + "smithy.api#documentation": "

The POSIX group ID used for all EFS operations by this user.

", + "smithy.api#required": {} + } + }, + "SecondaryGids": { + "target": "com.amazonaws.transfer#SecondaryGids", + "traits": { + "smithy.api#documentation": "

The secondary POSIX group IDs used for all EFS operations by this user.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

The full POSIX identity, including user ID (Uid), group ID (Gid), and any secondary groups IDs (SecondaryGids), that controls your users' access to your Amazon EFS file systems. The POSIX permissions that are set on files and directories in your file system determine the level of access your users get when transferring files into and out of your Amazon EFS file systems.

" + } + }, + "com.amazonaws.transfer#PostAuthenticationLoginBanner": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 0, + "max": 4096 + }, + "smithy.api#pattern": "^[\\x09-\\x0D\\x20-\\x7E]*$" + } + }, + "com.amazonaws.transfer#PreAuthenticationLoginBanner": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 0, + "max": 4096 + }, + "smithy.api#pattern": "^[\\x09-\\x0D\\x20-\\x7E]*$" + } + }, + "com.amazonaws.transfer#PreserveContentType": { + "type": "enum", + "members": { + "ENABLED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ENABLED" + } + }, + "DISABLED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "DISABLED" + } + } + } + }, + "com.amazonaws.transfer#PreserveFilenameType": { + "type": "enum", + "members": { + "ENABLED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ENABLED" + } + }, + "DISABLED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "DISABLED" + } + } + } + }, + "com.amazonaws.transfer#PrivateKeyType": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 16384 + }, + "smithy.api#pattern": "^[\\t\\n\\r\\u0020-\\u00FF]+$", + "smithy.api#sensitive": {} + } + }, + "com.amazonaws.transfer#ProfileId": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 19, + "max": 19 + }, + "smithy.api#pattern": "^p-([0-9a-f]{17})$" + } + }, + "com.amazonaws.transfer#ProfileResource": { + "type": "resource", + "identifiers": { + "ProfileId": { + "target": "com.amazonaws.transfer#ProfileId" + } + }, + "create": { + "target": "com.amazonaws.transfer#CreateProfile" + }, + "read": { + "target": "com.amazonaws.transfer#DescribeProfile" + }, + "update": { + "target": "com.amazonaws.transfer#UpdateProfile" + }, + "delete": { + "target": "com.amazonaws.transfer#DeleteProfile" + }, + "list": { + "target": "com.amazonaws.transfer#ListProfiles" + }, + "traits": { + "aws.api#arn": { + "template": "profile/{ProfileId}" + }, + "aws.api#taggable": { + "property": "Tags" + }, + "aws.cloudformation#cfnResource": { + "name": "Profile", + "additionalSchemas": [ + "com.amazonaws.transfer#DescribedProfile" + ] + } + } + }, + "com.amazonaws.transfer#ProfileType": { + "type": "enum", + "members": { + "LOCAL": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "LOCAL" + } + }, + "PARTNER": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "PARTNER" + } + } + } + }, + "com.amazonaws.transfer#Protocol": { + "type": "enum", + "members": { + "SFTP": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "SFTP" + } + }, + "FTP": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "FTP" + } + }, + "FTPS": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "FTPS" + } + }, + "AS2": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "AS2" + } + } + } + }, + "com.amazonaws.transfer#ProtocolDetails": { + "type": "structure", + "members": { + "PassiveIp": { + "target": "com.amazonaws.transfer#PassiveIp", + "traits": { + "smithy.api#documentation": "

Indicates passive mode, for FTP and FTPS protocols. Enter a single IPv4 address, such as the public IP address of a firewall, router, or load balancer. For example:

aws transfer update-server --protocol-details PassiveIp=0.0.0.0

Replace 0.0.0.0 in the example above with the actual IP address you want to use.

If you change the PassiveIp value, you must stop and then restart your Transfer Family server for the change to take effect. For details on using passive mode (PASV) in a NAT environment, see Configuring your FTPS server behind a firewall or NAT with Transfer Family.

Additionally, avoid placing Network Load Balancers (NLBs) or NAT gateways in front of Transfer Family servers. This configuration increases costs and can cause performance issues. When NLBs or NATs are in the communication path, Transfer Family cannot accurately recognize client IP addresses, which impacts connection sharding and limits FTPS servers to only 300 simultaneous connections instead of 10,000. If you must use an NLB, use port 21 for health checks and enable TLS session resumption by setting TlsSessionResumptionMode = ENFORCED. For optimal performance, migrate to VPC endpoints with Elastic IP addresses instead of using NLBs. For more details, see Avoid placing NLBs and NATs in front of Transfer Family.

Special values

The AUTO and 0.0.0.0 are special values for the PassiveIp parameter. The value PassiveIp=AUTO is assigned by default to FTP and FTPS type servers. In this case, the server automatically responds with one of the endpoint IPs within the PASV response. PassiveIp=0.0.0.0 has a more unique application for its usage. For example, if you have a High Availability (HA) Network Load Balancer (NLB) environment, where you have 3 subnets, you can only specify a single IP address using the PassiveIp parameter. This reduces the effectiveness of having High Availability. In this case, you can specify PassiveIp=0.0.0.0. This tells the client to use the same IP address as the Control connection and utilize all AZs for their connections. Note, however, that not all FTP clients support the PassiveIp=0.0.0.0 response. FileZilla and WinSCP do support it. If you are using other clients, check to see if your client supports the PassiveIp=0.0.0.0 response.

" + } + }, + "TlsSessionResumptionMode": { + "target": "com.amazonaws.transfer#TlsSessionResumptionMode", + "traits": { + "smithy.api#documentation": "

A property used with Transfer Family servers that use the FTPS protocol. TLS Session Resumption provides a mechanism to resume or share a negotiated secret key between the control and data connection for an FTPS session. TlsSessionResumptionMode determines whether or not the server resumes recent, negotiated sessions through a unique session ID. This property is available during CreateServer and UpdateServer calls. If a TlsSessionResumptionMode value is not specified during CreateServer, it is set to ENFORCED by default.

" + } + }, + "SetStatOption": { + "target": "com.amazonaws.transfer#SetStatOption", + "traits": { + "smithy.api#documentation": "

Use the SetStatOption to ignore the error that is generated when the client attempts to use SETSTAT on a file you are uploading to an S3 bucket.

Some SFTP file transfer clients can attempt to change the attributes of remote files, including timestamp and permissions, using commands, such as SETSTAT when uploading the file. However, these commands are not compatible with object storage systems, such as Amazon S3. Due to this incompatibility, file uploads from these clients can result in errors even when the file is otherwise successfully uploaded.

Set the value to ENABLE_NO_OP to have the Transfer Family server ignore the SETSTAT command, and upload files without needing to make any changes to your SFTP client. While the SetStatOption ENABLE_NO_OP setting ignores the error, it does generate a log entry in Amazon CloudWatch Logs, so you can determine when the client is making a SETSTAT call.

If you want to preserve the original timestamp for your file, and modify other file attributes using SETSTAT, you can use Amazon EFS as backend storage with Transfer Family.

" + } + }, + "As2Transports": { + "target": "com.amazonaws.transfer#As2Transports", + "traits": { + "smithy.api#documentation": "

Indicates the transport method for the AS2 messages. Currently, only HTTP is supported.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

The protocol settings that are configured for your server.

" + } + }, + "com.amazonaws.transfer#Protocols": { + "type": "list", + "member": { + "target": "com.amazonaws.transfer#Protocol" + }, + "traits": { + "smithy.api#length": { + "min": 1, + "max": 4 + } + } + }, + "com.amazonaws.transfer#Resource": { + "type": "string" + }, + "com.amazonaws.transfer#ResourceExistsException": { + "type": "structure", + "members": { + "Message": { + "target": "com.amazonaws.transfer#Message", + "traits": { + "smithy.api#required": {} + } + }, + "Resource": { + "target": "com.amazonaws.transfer#Resource", + "traits": { + "smithy.api#required": {} + } + }, + "ResourceType": { + "target": "com.amazonaws.transfer#ResourceType", + "traits": { + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

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

", + "smithy.api#error": "client", + "smithy.api#httpError": 409 + } + }, + "com.amazonaws.transfer#ResourceNotFoundException": { + "type": "structure", + "members": { + "Message": { + "target": "com.amazonaws.transfer#Message", + "traits": { + "smithy.api#required": {} + } + }, + "Resource": { + "target": "com.amazonaws.transfer#Resource", + "traits": { + "smithy.api#required": {} + } + }, + "ResourceType": { + "target": "com.amazonaws.transfer#ResourceType", + "traits": { + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

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

", + "smithy.api#error": "client", + "smithy.api#httpError": 404 + } + }, + "com.amazonaws.transfer#ResourceType": { + "type": "string" + }, + "com.amazonaws.transfer#Response": { + "type": "string" + }, + "com.amazonaws.transfer#RetryAfterSeconds": { + "type": "string" + }, + "com.amazonaws.transfer#Role": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 20, + "max": 2048 + }, + "smithy.api#pattern": "^arn:.*role/\\S+$" + } + }, + "com.amazonaws.transfer#S3Bucket": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 3, + "max": 63 + }, + "smithy.api#pattern": "^[a-z0-9][\\.\\-a-z0-9]{1,61}[a-z0-9]$" + } + }, + "com.amazonaws.transfer#S3Etag": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 65536 + }, + "smithy.api#pattern": "^.+$" + } + }, + "com.amazonaws.transfer#S3FileLocation": { + "type": "structure", + "members": { + "Bucket": { + "target": "com.amazonaws.transfer#S3Bucket", + "traits": { + "smithy.api#documentation": "

Specifies the S3 bucket that contains the file being used.

" + } + }, + "Key": { + "target": "com.amazonaws.transfer#S3Key", + "traits": { + "smithy.api#documentation": "

The name assigned to the file when it was created in Amazon S3. You use the object key to retrieve the object.

" + } + }, + "VersionId": { + "target": "com.amazonaws.transfer#S3VersionId", + "traits": { + "smithy.api#documentation": "

Specifies the file version.

" + } + }, + "Etag": { + "target": "com.amazonaws.transfer#S3Etag", + "traits": { + "smithy.api#documentation": "

The entity tag is a hash of the object. The ETag reflects changes only to the contents of an object, not its metadata.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Specifies the details for the file location for the file that's being used in the workflow. Only applicable if you are using S3 storage.

" + } + }, + "com.amazonaws.transfer#S3InputFileLocation": { + "type": "structure", + "members": { + "Bucket": { + "target": "com.amazonaws.transfer#S3Bucket", + "traits": { + "smithy.api#documentation": "

Specifies the S3 bucket for the customer input file.

" + } + }, + "Key": { + "target": "com.amazonaws.transfer#S3Key", + "traits": { + "smithy.api#documentation": "

The name assigned to the file when it was created in Amazon S3. You use the object key to retrieve the object.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Specifies the customer input Amazon S3 file location. If it is used inside copyStepDetails.DestinationFileLocation, it should be the S3 copy destination.

You need to provide the bucket and key. The key can represent either a path or a file. This is determined by whether or not you end the key value with the forward slash (/) character. If the final character is \"/\", then your file is copied to the folder, and its name does not change. If, rather, the final character is alphanumeric, your uploaded file is renamed to the path value. In this case, if a file with that name already exists, it is overwritten.

For example, if your path is shared-files/bob/, your uploaded files are copied to the shared-files/bob/, folder. If your path is shared-files/today, each uploaded file is copied to the shared-files folder and named today: each upload overwrites the previous version of the bob file.

" + } + }, + "com.amazonaws.transfer#S3Key": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 0, + "max": 1024 + }, + "smithy.api#pattern": "^[\\P{M}\\p{M}]*$" + } + }, + "com.amazonaws.transfer#S3StorageOptions": { + "type": "structure", + "members": { + "DirectoryListingOptimization": { + "target": "com.amazonaws.transfer#DirectoryListingOptimization", + "traits": { + "smithy.api#documentation": "

Specifies whether or not performance for your Amazon S3 directories is optimized.

By default, home directory mappings have a TYPE of DIRECTORY. If you enable this option, you would then need to explicitly set the HomeDirectoryMapEntry Type to FILE if you want a mapping to have a file target.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

The Amazon S3 storage options that are configured for your server.

" + } + }, + "com.amazonaws.transfer#S3Tag": { + "type": "structure", + "members": { + "Key": { + "target": "com.amazonaws.transfer#S3TagKey", + "traits": { + "smithy.api#documentation": "

The name assigned to the tag that you create.

", + "smithy.api#required": {} + } + }, + "Value": { + "target": "com.amazonaws.transfer#S3TagValue", + "traits": { + "smithy.api#documentation": "

The value that corresponds to the key.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

Specifies the key-value pair that are assigned to a file during the execution of a Tagging step.

" + } + }, + "com.amazonaws.transfer#S3TagKey": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 128 + }, + "smithy.api#pattern": "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$" + } + }, + "com.amazonaws.transfer#S3TagValue": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 0, + "max": 256 + }, + "smithy.api#pattern": "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$" + } + }, + "com.amazonaws.transfer#S3Tags": { + "type": "list", + "member": { + "target": "com.amazonaws.transfer#S3Tag" + }, + "traits": { + "smithy.api#length": { + "min": 1, + "max": 10 + } + } + }, + "com.amazonaws.transfer#S3VersionId": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 1024 + }, + "smithy.api#pattern": "^.+$" + } + }, + "com.amazonaws.transfer#SecondaryGids": { + "type": "list", + "member": { + "target": "com.amazonaws.transfer#PosixId" + }, + "traits": { + "smithy.api#length": { + "min": 0, + "max": 16 + } + } + }, + "com.amazonaws.transfer#SecretId": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 2048 + } + } + }, + "com.amazonaws.transfer#SecurityGroupId": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 11, + "max": 20 + }, + "smithy.api#pattern": "^sg-[0-9a-f]{8,17}$" + } + }, + "com.amazonaws.transfer#SecurityGroupIds": { + "type": "list", + "member": { + "target": "com.amazonaws.transfer#SecurityGroupId" + } + }, + "com.amazonaws.transfer#SecurityPolicyName": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 0, + "max": 100 + }, + "smithy.api#pattern": "^Transfer[A-Za-z0-9]*SecurityPolicy-[A-Za-z0-9-]+$" + } + }, + "com.amazonaws.transfer#SecurityPolicyNames": { + "type": "list", + "member": { + "target": "com.amazonaws.transfer#SecurityPolicyName" + } + }, + "com.amazonaws.transfer#SecurityPolicyOption": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 0, + "max": 50 + } + } + }, + "com.amazonaws.transfer#SecurityPolicyOptions": { + "type": "list", + "member": { + "target": "com.amazonaws.transfer#SecurityPolicyOption" + } + }, + "com.amazonaws.transfer#SecurityPolicyProtocol": { + "type": "enum", + "members": { + "SFTP": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "SFTP" + } + }, + "FTPS": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "FTPS" + } + } + } + }, + "com.amazonaws.transfer#SecurityPolicyProtocols": { + "type": "list", + "member": { + "target": "com.amazonaws.transfer#SecurityPolicyProtocol" + }, + "traits": { + "smithy.api#length": { + "min": 1, + "max": 5 + } + } + }, + "com.amazonaws.transfer#SecurityPolicyResourceType": { + "type": "enum", + "members": { + "SERVER": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "SERVER" + } + }, + "CONNECTOR": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "CONNECTOR" + } + } + } + }, + "com.amazonaws.transfer#SendWorkflowStepState": { + "type": "operation", + "input": { + "target": "com.amazonaws.transfer#SendWorkflowStepStateRequest" + }, + "output": { + "target": "com.amazonaws.transfer#SendWorkflowStepStateResponse" + }, + "errors": [ + { + "target": "com.amazonaws.transfer#AccessDeniedException" + }, + { + "target": "com.amazonaws.transfer#InternalServiceError" + }, + { + "target": "com.amazonaws.transfer#InvalidRequestException" + }, + { + "target": "com.amazonaws.transfer#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.transfer#ServiceUnavailableException" + }, + { + "target": "com.amazonaws.transfer#ThrottlingException" + } + ], + "traits": { + "smithy.api#documentation": "

Sends a callback for asynchronous custom steps.

The ExecutionId, WorkflowId, and Token are passed to the target resource during execution of a custom step of a workflow. You must include those with their callback as well as providing a status.

" + } + }, + "com.amazonaws.transfer#SendWorkflowStepStateRequest": { + "type": "structure", + "members": { + "WorkflowId": { + "target": "com.amazonaws.transfer#WorkflowId", + "traits": { + "smithy.api#documentation": "

A unique identifier for the workflow.

", + "smithy.api#required": {} + } + }, + "ExecutionId": { + "target": "com.amazonaws.transfer#ExecutionId", + "traits": { + "smithy.api#documentation": "

A unique identifier for the execution of a workflow.

", + "smithy.api#required": {} + } + }, + "Token": { + "target": "com.amazonaws.transfer#CallbackToken", + "traits": { + "smithy.api#documentation": "

Used to distinguish between multiple callbacks for multiple Lambda steps within the same execution.

", + "smithy.api#required": {} + } + }, + "Status": { + "target": "com.amazonaws.transfer#CustomStepStatus", + "traits": { + "smithy.api#documentation": "

Indicates whether the specified step succeeded or failed.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.transfer#SendWorkflowStepStateResponse": { + "type": "structure", + "members": {}, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.transfer#ServerId": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 19, + "max": 19 + }, + "smithy.api#pattern": "^s-([0-9a-f]{17})$" + } + }, + "com.amazonaws.transfer#ServerResource": { + "type": "resource", + "identifiers": { + "ServerId": { + "target": "com.amazonaws.transfer#ServerId" + } + }, + "create": { + "target": "com.amazonaws.transfer#CreateServer" + }, + "read": { + "target": "com.amazonaws.transfer#DescribeServer" + }, + "update": { + "target": "com.amazonaws.transfer#UpdateServer" + }, + "delete": { + "target": "com.amazonaws.transfer#DeleteServer" + }, + "list": { + "target": "com.amazonaws.transfer#ListServers" + }, + "traits": { + "aws.api#arn": { + "template": "server/{ServerId}" + }, + "aws.api#taggable": { + "property": "Tags" + }, + "aws.cloudformation#cfnResource": { + "name": "Server", + "additionalSchemas": [ + "com.amazonaws.transfer#DescribedServer" + ] + } + } + }, + "com.amazonaws.transfer#ServiceErrorMessage": { + "type": "string" + }, + "com.amazonaws.transfer#ServiceManagedEgressIpAddress": { + "type": "string", + "traits": { + "smithy.api#pattern": "^\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}$" + } + }, + "com.amazonaws.transfer#ServiceManagedEgressIpAddresses": { + "type": "list", + "member": { + "target": "com.amazonaws.transfer#ServiceManagedEgressIpAddress" + }, + "traits": { + "smithy.api#documentation": "The list of egress IP addresses of this server. These IP addresses are only relevant for servers that use the AS2 protocol. They are used for sending asynchronous MDNs. These IP addresses are assigned automatically when you create an AS2 server. Additionally, if you update an existing server and add the AS2 protocol, static IP addresses are assigned as well." + } + }, + "com.amazonaws.transfer#ServiceMetadata": { + "type": "structure", + "members": { + "UserDetails": { + "target": "com.amazonaws.transfer#UserDetails", + "traits": { + "smithy.api#documentation": "

The Server ID (ServerId), Session ID (SessionId) and user (UserName) make up the UserDetails.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

A container object for the session details that are associated with a workflow.

" + } + }, + "com.amazonaws.transfer#ServiceUnavailableException": { + "type": "structure", + "members": { + "Message": { + "target": "com.amazonaws.transfer#ServiceErrorMessage" + } + }, + "traits": { + "aws.protocols#awsQueryError": { + "code": "ServiceUnavailable", + "httpResponseCode": 503 + }, + "smithy.api#documentation": "

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

", + "smithy.api#error": "server", + "smithy.api#httpError": 503 + } + }, + "com.amazonaws.transfer#SessionId": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 3, + "max": 32 + }, + "smithy.api#pattern": "^[\\w-]*$" + } + }, + "com.amazonaws.transfer#SetStatOption": { + "type": "enum", + "members": { + "DEFAULT": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "DEFAULT" + } + }, + "ENABLE_NO_OP": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ENABLE_NO_OP" + } + } + } + }, + "com.amazonaws.transfer#SftpAuthenticationMethods": { + "type": "enum", + "members": { + "PASSWORD": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "PASSWORD" + } + }, + "PUBLIC_KEY": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "PUBLIC_KEY" + } + }, + "PUBLIC_KEY_OR_PASSWORD": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "PUBLIC_KEY_OR_PASSWORD" + } + }, + "PUBLIC_KEY_AND_PASSWORD": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "PUBLIC_KEY_AND_PASSWORD" + } + } + } + }, + "com.amazonaws.transfer#SftpConnectorConfig": { + "type": "structure", + "members": { + "UserSecretId": { + "target": "com.amazonaws.transfer#SecretId", + "traits": { + "smithy.api#documentation": "

The identifier for the secret (in Amazon Web Services Secrets Manager) that contains the SFTP user's private key, password, or both. The identifier must be the Amazon Resource Name (ARN) of the secret.

" + } + }, + "TrustedHostKeys": { + "target": "com.amazonaws.transfer#SftpConnectorTrustedHostKeyList", + "traits": { + "smithy.api#documentation": "

The public portion of the host key, or keys, that are used to identify the external server to which you are connecting. You can use the ssh-keyscan command against the SFTP server to retrieve the necessary key.

TrustedHostKeys is optional for CreateConnector. If not provided, you can use TestConnection to retrieve the server host key during the initial connection attempt, and subsequently update the connector with the observed host key.

When creating connectors with egress config (VPC_LATTICE type connectors), since host name is not something we can verify, the only accepted trusted host key format is key-type key-body without the host name. For example: ssh-rsa AAAAB3Nza...<long-string-for-public-key>

The three standard SSH public key format elements are <key type>, <body base64>, and an optional <comment>, with spaces between each element. Specify only the <key type> and <body base64>: do not enter the <comment> portion of the key.

For the trusted host key, Transfer Family accepts RSA and ECDSA keys.

Run this command to retrieve the SFTP server host key, where your SFTP server name is ftp.host.com.

ssh-keyscan ftp.host.com

This prints the public host key to standard output.

ftp.host.com ssh-rsa AAAAB3Nza...<long-string-for-public-key>

Copy and paste this string into the TrustedHostKeys field for the create-connector command or into the Trusted host keys field in the console.

For VPC Lattice type connectors (VPC_LATTICE), remove the hostname from the key and use only the key-type key-body format. In this example, it should be: ssh-rsa AAAAB3Nza...<long-string-for-public-key>

" + } + }, + "MaxConcurrentConnections": { + "target": "com.amazonaws.transfer#MaxConcurrentConnections", + "traits": { + "smithy.api#default": 1, + "smithy.api#documentation": "

Specify the number of concurrent connections that your connector creates to the remote server. The default value is 1. The maximum values is 5.

If you are using the Amazon Web Services Management Console, the default value is 5.

This parameter specifies the number of active connections that your connector can establish with the remote server at the same time. Increasing this value can enhance connector performance when transferring large file batches by enabling parallel operations.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Contains the details for an SFTP connector object. The connector object is used for transferring files to and from a partner's SFTP server.

" + } + }, + "com.amazonaws.transfer#SftpConnectorConnectionDetails": { + "type": "structure", + "members": { + "HostKey": { + "target": "com.amazonaws.transfer#SftpConnectorHostKey", + "traits": { + "smithy.api#documentation": "

The SSH public key of the remote SFTP server. This is returned during the initial connection attempt when you call TestConnection. It allows you to retrieve the valid server host key to update the connector when you are unable to obtain it in advance.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Contains the details for an SFTP connector connection.

" + } + }, + "com.amazonaws.transfer#SftpConnectorHostKey": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 2048 + } + } + }, + "com.amazonaws.transfer#SftpConnectorTrustedHostKey": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 2048 + } + } + }, + "com.amazonaws.transfer#SftpConnectorTrustedHostKeyList": { + "type": "list", + "member": { + "target": "com.amazonaws.transfer#SftpConnectorTrustedHostKey" + }, + "traits": { + "smithy.api#length": { + "min": 0, + "max": 10 + } + } + }, + "com.amazonaws.transfer#SftpPort": { + "type": "integer", + "traits": { + "smithy.api#range": { + "min": 1, + "max": 65535 + } + } + }, + "com.amazonaws.transfer#SigningAlg": { + "type": "enum", + "members": { + "SHA256": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "SHA256" + } + }, + "SHA384": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "SHA384" + } + }, + "SHA512": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "SHA512" + } + }, + "SHA1": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "SHA1" + } + }, + "NONE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "NONE" + } + } + } + }, + "com.amazonaws.transfer#SourceFileLocation": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 0, + "max": 256 + }, + "smithy.api#pattern": "^\\$\\{(\\w+.)+\\w+\\}$" + } + }, + "com.amazonaws.transfer#SourceIp": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 0, + "max": 32 + }, + "smithy.api#pattern": "^[0-9a-fA-F\\.\\:]+$" + } + }, + "com.amazonaws.transfer#SshPublicKey": { + "type": "structure", + "members": { + "DateImported": { + "target": "com.amazonaws.transfer#DateImported", + "traits": { + "smithy.api#documentation": "

Specifies the date that the public key was added to the Transfer Family user.

", + "smithy.api#required": {} + } + }, + "SshPublicKeyBody": { + "target": "com.amazonaws.transfer#SshPublicKeyBody", + "traits": { + "smithy.api#documentation": "

Specifies the content of the SSH public key as specified by the PublicKeyId.

Transfer Family accepts RSA, ECDSA, and ED25519 keys.

", + "smithy.api#required": {} + } + }, + "SshPublicKeyId": { + "target": "com.amazonaws.transfer#SshPublicKeyId", + "traits": { + "smithy.api#documentation": "

Specifies the SshPublicKeyId parameter contains the identifier of the public key.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

Provides information about the public Secure Shell (SSH) key that is associated with a Transfer Family user for the specific file transfer protocol-enabled server (as identified by ServerId). The information returned includes the date the key was imported, the public key contents, and the public key ID. A user can store more than one SSH public key associated with their user name on a specific server.

" + } + }, + "com.amazonaws.transfer#SshPublicKeyBody": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 0, + "max": 2048 + }, + "smithy.api#pattern": "^\\s*(ssh|ecdsa)-[a-z0-9-]+[ \\t]+(([A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{1,3})?(={0,3})?)(\\s*|[ \\t]+[\\S \\t]*\\s*)$" + } + }, + "com.amazonaws.transfer#SshPublicKeyCount": { + "type": "integer" + }, + "com.amazonaws.transfer#SshPublicKeyId": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 21, + "max": 21 + }, + "smithy.api#pattern": "^key-[0-9a-f]{17}$" + } + }, + "com.amazonaws.transfer#SshPublicKeys": { + "type": "list", + "member": { + "target": "com.amazonaws.transfer#SshPublicKey" + }, + "traits": { + "smithy.api#length": { + "min": 0, + "max": 5 + } + } + }, + "com.amazonaws.transfer#StartDirectoryListing": { + "type": "operation", + "input": { + "target": "com.amazonaws.transfer#StartDirectoryListingRequest" + }, + "output": { + "target": "com.amazonaws.transfer#StartDirectoryListingResponse" + }, + "errors": [ + { + "target": "com.amazonaws.transfer#InternalServiceError" + }, + { + "target": "com.amazonaws.transfer#InvalidRequestException" + }, + { + "target": "com.amazonaws.transfer#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.transfer#ServiceUnavailableException" + }, + { + "target": "com.amazonaws.transfer#ThrottlingException" + } + ], + "traits": { + "smithy.api#documentation": "

Retrieves a list of the contents of a directory from a remote SFTP server. You specify the connector ID, the output path, and the remote directory path. You can also specify the optional MaxItems value to control the maximum number of items that are listed from the remote directory. This API returns a list of all files and directories in the remote directory (up to the maximum value), but does not return files or folders in sub-directories. That is, it only returns a list of files and directories one-level deep.

After you receive the listing file, you can provide the files that you want to transfer to the RetrieveFilePaths parameter of the StartFileTransfer API call.

The naming convention for the output file is connector-ID-listing-ID.json. The output file contains the following information:

" + } + }, + "com.amazonaws.transfer#StartDirectoryListingRequest": { + "type": "structure", + "members": { + "ConnectorId": { + "target": "com.amazonaws.transfer#ConnectorId", + "traits": { + "smithy.api#documentation": "

The unique identifier for the connector.

", + "smithy.api#required": {} + } + }, + "RemoteDirectoryPath": { + "target": "com.amazonaws.transfer#FilePath", + "traits": { + "smithy.api#documentation": "

Specifies the directory on the remote SFTP server for which you want to list its contents.

", + "smithy.api#required": {} + } + }, + "MaxItems": { + "target": "com.amazonaws.transfer#MaxItems", + "traits": { + "smithy.api#documentation": "

An optional parameter where you can specify the maximum number of file/directory names to retrieve. The default value is 1,000.

" + } + }, + "OutputDirectoryPath": { + "target": "com.amazonaws.transfer#FilePath", + "traits": { + "smithy.api#documentation": "

Specifies the path (bucket and prefix) in Amazon S3 storage to store the results of the directory listing.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.transfer#StartDirectoryListingResponse": { + "type": "structure", + "members": { + "ListingId": { + "target": "com.amazonaws.transfer#ListingId", + "traits": { + "smithy.api#documentation": "

Returns a unique identifier for the directory listing call.

", + "smithy.api#required": {} + } + }, + "OutputFileName": { + "target": "com.amazonaws.transfer#OutputFileName", + "traits": { + "smithy.api#documentation": "

Returns the file name where the results are stored. This is a combination of the connector ID and the listing ID: <connector-id>-<listing-id>.json.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.transfer#StartFileTransfer": { + "type": "operation", + "input": { + "target": "com.amazonaws.transfer#StartFileTransferRequest" + }, + "output": { + "target": "com.amazonaws.transfer#StartFileTransferResponse" + }, + "errors": [ + { + "target": "com.amazonaws.transfer#InternalServiceError" + }, + { + "target": "com.amazonaws.transfer#InvalidRequestException" + }, + { + "target": "com.amazonaws.transfer#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.transfer#ServiceUnavailableException" + }, + { + "target": "com.amazonaws.transfer#ThrottlingException" + } + ], + "traits": { + "smithy.api#documentation": "

Begins a file transfer between local Amazon Web Services storage and a remote AS2 or SFTP server.

" + } + }, + "com.amazonaws.transfer#StartFileTransferRequest": { + "type": "structure", + "members": { + "ConnectorId": { + "target": "com.amazonaws.transfer#ConnectorId", + "traits": { + "smithy.api#documentation": "

The unique identifier for the connector.

", + "smithy.api#required": {} + } + }, + "SendFilePaths": { + "target": "com.amazonaws.transfer#FilePaths", + "traits": { + "smithy.api#documentation": "

One or more source paths for the Amazon S3 storage. Each string represents a source file path for one outbound file transfer. For example, amzn-s3-demo-bucket/myfile.txt .

Replace amzn-s3-demo-bucket with one of your actual buckets.

" + } + }, + "RetrieveFilePaths": { + "target": "com.amazonaws.transfer#FilePaths", + "traits": { + "smithy.api#documentation": "

One or more source paths for the partner's SFTP server. Each string represents a source file path for one inbound file transfer.

" + } + }, + "LocalDirectoryPath": { + "target": "com.amazonaws.transfer#FilePath", + "traits": { + "smithy.api#documentation": "

For an inbound transfer, the LocaDirectoryPath specifies the destination for one or more files that are transferred from the partner's SFTP server.

" + } + }, + "RemoteDirectoryPath": { + "target": "com.amazonaws.transfer#FilePath", + "traits": { + "smithy.api#documentation": "

For an outbound transfer, the RemoteDirectoryPath specifies the destination for one or more files that are transferred to the partner's SFTP server. If you don't specify a RemoteDirectoryPath, the destination for transferred files is the SFTP user's home directory.

" + } + }, + "CustomHttpHeaders": { + "target": "com.amazonaws.transfer#CustomHttpHeaders", + "traits": { + "smithy.api#documentation": "

An array of key-value pairs that represent custom HTTP headers to include in AS2 messages. These headers are added to the AS2 message when sending files to your trading partner.

" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.transfer#StartFileTransferResponse": { + "type": "structure", + "members": { + "TransferId": { + "target": "com.amazonaws.transfer#TransferId", + "traits": { + "smithy.api#documentation": "

Returns the unique identifier for the file transfer.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.transfer#StartRemoteDelete": { + "type": "operation", + "input": { + "target": "com.amazonaws.transfer#StartRemoteDeleteRequest" + }, + "output": { + "target": "com.amazonaws.transfer#StartRemoteDeleteResponse" + }, + "errors": [ + { + "target": "com.amazonaws.transfer#InternalServiceError" + }, + { + "target": "com.amazonaws.transfer#InvalidRequestException" + }, + { + "target": "com.amazonaws.transfer#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.transfer#ServiceUnavailableException" + }, + { + "target": "com.amazonaws.transfer#ThrottlingException" + } + ], + "traits": { + "smithy.api#documentation": "

Deletes a file or directory on the remote SFTP server.

", + "smithy.api#http": { + "method": "POST", + "uri": "/startRemoteDelete" + } + } + }, + "com.amazonaws.transfer#StartRemoteDeleteRequest": { + "type": "structure", + "members": { + "ConnectorId": { + "target": "com.amazonaws.transfer#ConnectorId", + "traits": { + "smithy.api#documentation": "

The unique identifier for the connector.

", + "smithy.api#required": {} + } + }, + "DeletePath": { + "target": "com.amazonaws.transfer#FilePath", + "traits": { + "smithy.api#documentation": "

The absolute path of the file or directory to delete. You can only specify one path per call to this operation.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.transfer#StartRemoteDeleteResponse": { + "type": "structure", + "members": { + "DeleteId": { + "target": "com.amazonaws.transfer#DeleteId", + "traits": { + "smithy.api#documentation": "

Returns a unique identifier for the delete operation.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.transfer#StartRemoteMove": { + "type": "operation", + "input": { + "target": "com.amazonaws.transfer#StartRemoteMoveRequest" + }, + "output": { + "target": "com.amazonaws.transfer#StartRemoteMoveResponse" + }, + "errors": [ + { + "target": "com.amazonaws.transfer#InternalServiceError" + }, + { + "target": "com.amazonaws.transfer#InvalidRequestException" + }, + { + "target": "com.amazonaws.transfer#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.transfer#ServiceUnavailableException" + }, + { + "target": "com.amazonaws.transfer#ThrottlingException" + } + ], + "traits": { + "smithy.api#documentation": "

Moves or renames a file or directory on the remote SFTP server.

", + "smithy.api#http": { + "method": "POST", + "uri": "/startRemoteMove" + } + } + }, + "com.amazonaws.transfer#StartRemoteMoveRequest": { + "type": "structure", + "members": { + "ConnectorId": { + "target": "com.amazonaws.transfer#ConnectorId", + "traits": { + "smithy.api#documentation": "

The unique identifier for the connector.

", + "smithy.api#required": {} + } + }, + "SourcePath": { + "target": "com.amazonaws.transfer#FilePath", + "traits": { + "smithy.api#documentation": "

The absolute path of the file or directory to move or rename. You can only specify one path per call to this operation.

", + "smithy.api#required": {} + } + }, + "TargetPath": { + "target": "com.amazonaws.transfer#FilePath", + "traits": { + "smithy.api#documentation": "

The absolute path for the target of the move/rename operation.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.transfer#StartRemoteMoveResponse": { + "type": "structure", + "members": { + "MoveId": { + "target": "com.amazonaws.transfer#MoveId", + "traits": { + "smithy.api#documentation": "

Returns a unique identifier for the move/rename operation.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.transfer#StartServer": { + "type": "operation", + "input": { + "target": "com.amazonaws.transfer#StartServerRequest" + }, + "output": { + "target": "smithy.api#Unit" + }, + "errors": [ + { + "target": "com.amazonaws.transfer#InternalServiceError" + }, + { + "target": "com.amazonaws.transfer#InvalidRequestException" + }, + { + "target": "com.amazonaws.transfer#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.transfer#ServiceUnavailableException" + }, + { + "target": "com.amazonaws.transfer#ThrottlingException" + } + ], + "traits": { + "smithy.api#documentation": "

Changes the state of a file transfer protocol-enabled server from OFFLINE to ONLINE. It has no impact on a server that is already ONLINE. An ONLINE server can accept and process file transfer jobs.

The state of STARTING indicates that the server is in an intermediate state, either not fully able to respond, or not fully online. The values of START_FAILED can indicate an error condition.

No response is returned from this call.

" + } + }, + "com.amazonaws.transfer#StartServerRequest": { + "type": "structure", + "members": { + "ServerId": { + "target": "com.amazonaws.transfer#ServerId", + "traits": { + "smithy.api#documentation": "

A system-assigned unique identifier for a server that you start.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.transfer#State": { + "type": "enum", + "members": { + "OFFLINE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "OFFLINE" + } + }, + "ONLINE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ONLINE" + } + }, + "STARTING": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "STARTING" + } + }, + "STOPPING": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "STOPPING" + } + }, + "START_FAILED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "START_FAILED" + } + }, + "STOP_FAILED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "STOP_FAILED" + } + } + }, + "traits": { + "smithy.api#documentation": "

Describes the condition of a file transfer protocol-enabled server with respect to its ability to perform file operations. There are six possible states: OFFLINE, ONLINE, STARTING, STOPPING, START_FAILED, and STOP_FAILED.

OFFLINE indicates that the server exists, but that it is not available for file operations. ONLINE indicates that the server is available to perform file operations. STARTING indicates that the server's was instantiated, but the server is not yet available to perform file operations. Under normal conditions, it can take a couple of minutes for the server to be completely operational. Both START_FAILED and STOP_FAILED are error conditions.

" + } + }, + "com.amazonaws.transfer#Status": { + "type": "string" + }, + "com.amazonaws.transfer#StatusCode": { + "type": "integer", + "traits": { + "smithy.api#default": 0 + } + }, + "com.amazonaws.transfer#StepResultOutputsJson": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 0, + "max": 65536 + } + } + }, + "com.amazonaws.transfer#StopServer": { + "type": "operation", + "input": { + "target": "com.amazonaws.transfer#StopServerRequest" + }, + "output": { + "target": "smithy.api#Unit" + }, + "errors": [ + { + "target": "com.amazonaws.transfer#InternalServiceError" + }, + { + "target": "com.amazonaws.transfer#InvalidRequestException" + }, + { + "target": "com.amazonaws.transfer#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.transfer#ServiceUnavailableException" + }, + { + "target": "com.amazonaws.transfer#ThrottlingException" + } + ], + "traits": { + "smithy.api#documentation": "

Changes the state of a file transfer protocol-enabled server from ONLINE to OFFLINE. An OFFLINE server cannot accept and process file transfer jobs. Information tied to your server, such as server and user properties, are not affected by stopping your server.

Stopping the server does not reduce or impact your file transfer protocol endpoint billing; you must delete the server to stop being billed.

The state of STOPPING indicates that the server is in an intermediate state, either not fully able to respond, or not fully offline. The values of STOP_FAILED can indicate an error condition.

No response is returned from this call.

" + } + }, + "com.amazonaws.transfer#StopServerRequest": { + "type": "structure", + "members": { + "ServerId": { + "target": "com.amazonaws.transfer#ServerId", + "traits": { + "smithy.api#documentation": "

A system-assigned unique identifier for a server that you stopped.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.transfer#StructuredLogDestinations": { + "type": "list", + "member": { + "target": "com.amazonaws.transfer#Arn" + }, + "traits": { + "smithy.api#length": { + "min": 0, + "max": 1 + } + } + }, + "com.amazonaws.transfer#SubnetId": { + "type": "string" + }, + "com.amazonaws.transfer#SubnetIds": { + "type": "list", + "member": { + "target": "com.amazonaws.transfer#SubnetId" + } + }, + "com.amazonaws.transfer#Tag": { + "type": "structure", + "members": { + "Key": { + "target": "com.amazonaws.transfer#TagKey", + "traits": { + "smithy.api#documentation": "

The name assigned to the tag that you create.

", + "smithy.api#required": {} + } + }, + "Value": { + "target": "com.amazonaws.transfer#TagValue", + "traits": { + "smithy.api#documentation": "

Contains one or more values that you assigned to the key name you create.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

Creates a key-value pair for a specific resource. Tags are metadata that you can use to search for and group a resource for various purposes. You can apply tags to servers, users, and roles. A tag key can take more than one value. For example, to group servers for accounting purposes, you might create a tag called Group and assign the values Research and Accounting to that group.

" + } + }, + "com.amazonaws.transfer#TagKey": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 0, + "max": 128 + } + } + }, + "com.amazonaws.transfer#TagKeys": { + "type": "list", + "member": { + "target": "com.amazonaws.transfer#TagKey" + }, + "traits": { + "smithy.api#length": { + "min": 1, + "max": 50 + } + } + }, + "com.amazonaws.transfer#TagResource": { + "type": "operation", + "input": { + "target": "com.amazonaws.transfer#TagResourceRequest" + }, + "output": { + "target": "smithy.api#Unit" + }, + "errors": [ + { + "target": "com.amazonaws.transfer#InternalServiceError" + }, + { + "target": "com.amazonaws.transfer#InvalidRequestException" + }, + { + "target": "com.amazonaws.transfer#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.transfer#ServiceUnavailableException" + } + ], + "traits": { + "smithy.api#documentation": "

Attaches a key-value pair to a resource, as identified by its Amazon Resource Name (ARN). Resources are users, servers, roles, and other entities.

There is no response returned from this call.

" + } + }, + "com.amazonaws.transfer#TagResourceRequest": { + "type": "structure", + "members": { + "Arn": { + "target": "com.amazonaws.transfer#Arn", + "traits": { + "smithy.api#documentation": "

An Amazon Resource Name (ARN) for a specific Amazon Web Services resource, such as a server, user, or role.

", + "smithy.api#required": {} + } + }, + "Tags": { + "target": "com.amazonaws.transfer#Tags", + "traits": { + "smithy.api#documentation": "

Key-value pairs assigned to ARNs that you can use to group and search for resources by type. You can attach this metadata to resources (servers, users, workflows, and so on) for any purpose.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.transfer#TagStepDetails": { + "type": "structure", + "members": { + "Name": { + "target": "com.amazonaws.transfer#WorkflowStepName", + "traits": { + "smithy.api#documentation": "

The name of the step, used as an identifier.

" + } + }, + "Tags": { + "target": "com.amazonaws.transfer#S3Tags", + "traits": { + "smithy.api#documentation": "

Array that contains from 1 to 10 key/value pairs.

" + } + }, + "SourceFileLocation": { + "target": "com.amazonaws.transfer#SourceFileLocation", + "traits": { + "smithy.api#documentation": "

Specifies which file to use as input to the workflow step: either the output from the previous step, or the originally uploaded file for the workflow.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Each step type has its own StepDetails structure.

The key/value pairs used to tag a file during the execution of a workflow step.

" + } + }, + "com.amazonaws.transfer#TagValue": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 0, + "max": 256 + } + } + }, + "com.amazonaws.transfer#Tags": { + "type": "list", + "member": { + "target": "com.amazonaws.transfer#Tag" + }, + "traits": { + "smithy.api#length": { + "min": 1, + "max": 50 + } + } + }, + "com.amazonaws.transfer#TestConnection": { + "type": "operation", + "input": { + "target": "com.amazonaws.transfer#TestConnectionRequest" + }, + "output": { + "target": "com.amazonaws.transfer#TestConnectionResponse" + }, + "errors": [ + { + "target": "com.amazonaws.transfer#InternalServiceError" + }, + { + "target": "com.amazonaws.transfer#InvalidRequestException" + }, + { + "target": "com.amazonaws.transfer#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.transfer#ServiceUnavailableException" + } + ], + "traits": { + "smithy.api#documentation": "

Tests whether your SFTP connector is set up successfully. We highly recommend that you call this operation to test your ability to transfer files between local Amazon Web Services storage and a trading partner's SFTP server.

" + } + }, + "com.amazonaws.transfer#TestConnectionRequest": { + "type": "structure", + "members": { + "ConnectorId": { + "target": "com.amazonaws.transfer#ConnectorId", + "traits": { + "smithy.api#documentation": "

The unique identifier for the connector.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.transfer#TestConnectionResponse": { + "type": "structure", + "members": { + "ConnectorId": { + "target": "com.amazonaws.transfer#ConnectorId", + "traits": { + "smithy.api#documentation": "

Returns the identifier of the connector object that you are testing.

" + } + }, + "Status": { + "target": "com.amazonaws.transfer#Status", + "traits": { + "smithy.api#documentation": "

Returns OK for successful test, or ERROR if the test fails.

" + } + }, + "StatusMessage": { + "target": "com.amazonaws.transfer#Message", + "traits": { + "smithy.api#documentation": "

Returns Connection succeeded if the test is successful. Or, returns a descriptive error message if the test fails. The following list provides troubleshooting details, depending on the error message that you receive.

" + } + }, + "SftpConnectionDetails": { + "target": "com.amazonaws.transfer#SftpConnectorConnectionDetails", + "traits": { + "smithy.api#documentation": "

Structure that contains the SFTP connector host key.

" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.transfer#TestIdentityProvider": { + "type": "operation", + "input": { + "target": "com.amazonaws.transfer#TestIdentityProviderRequest" + }, + "output": { + "target": "com.amazonaws.transfer#TestIdentityProviderResponse" + }, + "errors": [ + { + "target": "com.amazonaws.transfer#InternalServiceError" + }, + { + "target": "com.amazonaws.transfer#InvalidRequestException" + }, + { + "target": "com.amazonaws.transfer#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.transfer#ServiceUnavailableException" + } + ], + "traits": { + "smithy.api#documentation": "

If the IdentityProviderType of a file transfer protocol-enabled server is AWS_DIRECTORY_SERVICE or API_Gateway, tests whether your identity provider is set up successfully. We highly recommend that you call this operation to test your authentication method as soon as you create your server. By doing so, you can troubleshoot issues with the identity provider integration to ensure that your users can successfully use the service.

The ServerId and UserName parameters are required. The ServerProtocol, SourceIp, and UserPassword are all optional.

Note the following:

" + } + }, + "com.amazonaws.transfer#TestIdentityProviderRequest": { + "type": "structure", + "members": { + "ServerId": { + "target": "com.amazonaws.transfer#ServerId", + "traits": { + "smithy.api#documentation": "

A system-assigned identifier for a specific server. That server's user authentication method is tested with a user name and password.

", + "smithy.api#required": {} + } + }, + "ServerProtocol": { + "target": "com.amazonaws.transfer#Protocol", + "traits": { + "smithy.api#documentation": "

The type of file transfer protocol to be tested.

The available protocols are:

" + } + }, + "SourceIp": { + "target": "com.amazonaws.transfer#SourceIp", + "traits": { + "smithy.api#documentation": "

The source IP address of the account to be tested.

" + } + }, + "UserName": { + "target": "com.amazonaws.transfer#UserName", + "traits": { + "smithy.api#documentation": "

The name of the account to be tested.

", + "smithy.api#required": {} + } + }, + "UserPassword": { + "target": "com.amazonaws.transfer#UserPassword", + "traits": { + "smithy.api#documentation": "

The password of the account to be tested.

" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.transfer#TestIdentityProviderResponse": { + "type": "structure", + "members": { + "Response": { + "target": "com.amazonaws.transfer#Response", + "traits": { + "smithy.api#documentation": "

The response that is returned from your API Gateway or your Lambda function.

" + } + }, + "StatusCode": { + "target": "com.amazonaws.transfer#StatusCode", + "traits": { + "smithy.api#default": 0, + "smithy.api#documentation": "

The HTTP status code that is the response from your API Gateway or your Lambda function.

", + "smithy.api#required": {} + } + }, + "Message": { + "target": "com.amazonaws.transfer#Message", + "traits": { + "smithy.api#documentation": "

A message that indicates whether the test was successful or not.

If an empty string is returned, the most likely cause is that the authentication failed due to an incorrect username or password.

" + } + }, + "Url": { + "target": "com.amazonaws.transfer#Url", + "traits": { + "smithy.api#documentation": "

The endpoint of the service used to authenticate a user.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.transfer#ThrottlingException": { + "type": "structure", + "members": { + "RetryAfterSeconds": { + "target": "com.amazonaws.transfer#RetryAfterSeconds", + "traits": { + "smithy.api#httpHeader": "Retry-After" + } + } + }, + "traits": { + "smithy.api#documentation": "

The request was denied due to request throttling.

", + "smithy.api#error": "client", + "smithy.api#httpError": 429 + } + }, + "com.amazonaws.transfer#TlsSessionResumptionMode": { + "type": "enum", + "members": { + "DISABLED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "DISABLED" + } + }, + "ENABLED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ENABLED" + } + }, + "ENFORCED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ENFORCED" + } + } + } + }, + "com.amazonaws.transfer#TransferId": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 512 + }, + "smithy.api#pattern": "^[0-9a-zA-Z./-]+$" + } + }, + "com.amazonaws.transfer#TransferService": { + "type": "service", + "version": "2018-11-05", + "operations": [ + { + "target": "com.amazonaws.transfer#CreateAccess" + }, + { + "target": "com.amazonaws.transfer#DeleteAccess" + }, + { + "target": "com.amazonaws.transfer#DeleteHostKey" + }, + { + "target": "com.amazonaws.transfer#DeleteSshPublicKey" + }, + { + "target": "com.amazonaws.transfer#DescribeAccess" + }, + { + "target": "com.amazonaws.transfer#DescribeExecution" + }, + { + "target": "com.amazonaws.transfer#DescribeHostKey" + }, + { + "target": "com.amazonaws.transfer#DescribeSecurityPolicy" + }, + { + "target": "com.amazonaws.transfer#ImportHostKey" + }, + { + "target": "com.amazonaws.transfer#ImportSshPublicKey" + }, + { + "target": "com.amazonaws.transfer#ListAccesses" + }, + { + "target": "com.amazonaws.transfer#ListExecutions" + }, + { + "target": "com.amazonaws.transfer#ListFileTransferResults" + }, + { + "target": "com.amazonaws.transfer#ListHostKeys" + }, + { + "target": "com.amazonaws.transfer#ListSecurityPolicies" + }, + { + "target": "com.amazonaws.transfer#ListTagsForResource" + }, + { + "target": "com.amazonaws.transfer#SendWorkflowStepState" + }, + { + "target": "com.amazonaws.transfer#StartDirectoryListing" + }, + { + "target": "com.amazonaws.transfer#StartFileTransfer" + }, + { + "target": "com.amazonaws.transfer#StartRemoteDelete" + }, + { + "target": "com.amazonaws.transfer#StartRemoteMove" + }, + { + "target": "com.amazonaws.transfer#StartServer" + }, + { + "target": "com.amazonaws.transfer#StopServer" + }, + { + "target": "com.amazonaws.transfer#TagResource" + }, + { + "target": "com.amazonaws.transfer#TestConnection" + }, + { + "target": "com.amazonaws.transfer#TestIdentityProvider" + }, + { + "target": "com.amazonaws.transfer#UntagResource" + }, + { + "target": "com.amazonaws.transfer#UpdateAccess" + }, + { + "target": "com.amazonaws.transfer#UpdateHostKey" + } + ], + "resources": [ + { + "target": "com.amazonaws.transfer#AgreementResource" + }, + { + "target": "com.amazonaws.transfer#CertificateResource" + }, + { + "target": "com.amazonaws.transfer#ConnectorResource" + }, + { + "target": "com.amazonaws.transfer#ProfileResource" + }, + { + "target": "com.amazonaws.transfer#ServerResource" + }, + { + "target": "com.amazonaws.transfer#UserResource" + }, + { + "target": "com.amazonaws.transfer#WebAppCustomizationResource" + }, + { + "target": "com.amazonaws.transfer#WebAppResource" + }, + { + "target": "com.amazonaws.transfer#WorkflowResource" + } + ], + "traits": { + "aws.api#service": { + "sdkId": "Transfer", + "arnNamespace": "transfer", + "cloudFormationName": "Transfer", + "cloudTrailEventSource": "transfer.amazonaws.com", + "endpointPrefix": "transfer" + }, + "aws.api#tagEnabled": {}, + "aws.auth#sigv4": { + "name": "transfer" + }, + "aws.protocols#awsJson1_1": {}, + "smithy.api#documentation": "

Transfer Family is a fully managed service that enables the transfer of files over the File Transfer Protocol (FTP), File Transfer Protocol over SSL (FTPS), or Secure Shell (SSH) File Transfer Protocol (SFTP) directly into and out of Amazon Simple Storage Service (Amazon S3) or Amazon EFS. Additionally, you can use Applicability Statement 2 (AS2) to transfer files into and out of Amazon S3. Amazon Web Services helps you seamlessly migrate your file transfer workflows to Transfer Family by integrating with existing authentication systems, and providing DNS routing with Amazon Route 53 so nothing changes for your customers and partners, or their applications. With your data in Amazon S3, you can use it with Amazon Web Services services for processing, analytics, machine learning, and archiving. Getting started with Transfer Family is easy since there is no infrastructure to buy and set up.

", + "smithy.api#title": "AWS Transfer Family", + "smithy.rules#endpointBdd": { + "version": "1.1", + "parameters": { + "Region": { + "builtIn": "AWS::Region", + "required": false, + "documentation": "The AWS region used to dispatch the request.", + "type": "string" + }, + "UseDualStack": { + "builtIn": "AWS::UseDualStack", + "required": true, + "default": false, + "documentation": "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", + "type": "boolean" + }, + "UseFIPS": { + "builtIn": "AWS::UseFIPS", + "required": true, + "default": false, + "documentation": "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", + "type": "boolean" + }, + "Endpoint": { + "builtIn": "SDK::Endpoint", + "required": false, + "documentation": "Override the endpoint used to send this request", + "type": "string" + } + }, + "conditions": [ + { + "fn": "isSet", + "argv": [ + { + "ref": "Endpoint" + } + ] + }, + { + "fn": "isSet", + "argv": [ + { + "ref": "Region" + } + ] + }, + { + "fn": "aws.partition", + "argv": [ + { + "ref": "Region" + } + ], + "assign": "PartitionResult" + }, + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseFIPS" + }, + true + ] + }, + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseDualStack" + }, + true + ] + }, + { + "fn": "booleanEquals", + "argv": [ + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsDualStack" + ] + }, + true + ] + }, + { + "fn": "booleanEquals", + "argv": [ + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsFIPS" + ] + }, + true + ] + } + ], + "results": [ + { + "conditions": [], + "error": "Invalid Configuration: FIPS and custom endpoint are not supported", + "type": "error" + }, + { + "conditions": [], + "error": "Invalid Configuration: Dualstack and custom endpoint are not supported", + "type": "error" + }, + { + "conditions": [], + "endpoint": { + "url": { + "ref": "Endpoint" + }, + "properties": {}, + "headers": {} + }, + "type": "endpoint" + }, + { + "conditions": [], + "endpoint": { + "url": "https://transfer-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + }, + { + "conditions": [], + "error": "FIPS and DualStack are enabled, but this partition does not support one or both", + "type": "error" + }, + { + "conditions": [], + "endpoint": { + "url": "https://transfer-fips.{Region}.{PartitionResult#dnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + }, + { + "conditions": [], + "error": "FIPS is enabled but this partition does not support FIPS", + "type": "error" + }, + { + "conditions": [], + "endpoint": { + "url": "https://transfer.{Region}.{PartitionResult#dualStackDnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + }, + { + "conditions": [], + "error": "DualStack is enabled but this partition does not support DualStack", + "type": "error" + }, + { + "conditions": [], + "endpoint": { + "url": "https://transfer.{Region}.{PartitionResult#dnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + }, + { + "conditions": [], + "error": "Invalid Configuration: Missing Region", + "type": "error" + } + ], + "root": 2, + "nodeCount": 13, + "nodes": "/////wAAAAH/////AAAAAAAAAAwAAAADAAAAAQAAAAQF9eELAAAAAgAAAAUF9eELAAAAAwAAAAgAAAAGAAAABAAAAAcF9eEKAAAABQX14QgF9eEJAAAABAAAAAoAAAAJAAAABgX14QYF9eEHAAAABQAAAAsF9eEFAAAABgX14QQF9eEFAAAAAwX14QEAAAANAAAABAX14QIF9eED" + }, + "smithy.rules#endpointRuleSet": { + "version": "1.0", + "parameters": { + "Region": { + "builtIn": "AWS::Region", + "required": false, + "documentation": "The AWS region used to dispatch the request.", + "type": "string" + }, + "UseDualStack": { + "builtIn": "AWS::UseDualStack", + "required": true, + "default": false, + "documentation": "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", + "type": "boolean" + }, + "UseFIPS": { + "builtIn": "AWS::UseFIPS", + "required": true, + "default": false, + "documentation": "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", + "type": "boolean" + }, + "Endpoint": { + "builtIn": "SDK::Endpoint", + "required": false, + "documentation": "Override the endpoint used to send this request", + "type": "string" + } + }, + "rules": [ + { + "conditions": [ + { + "fn": "isSet", + "argv": [ + { + "ref": "Endpoint" + } + ] + } + ], + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseFIPS" + }, + true + ] + } + ], + "error": "Invalid Configuration: FIPS and custom endpoint are not supported", + "type": "error" + }, + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseDualStack" + }, + true + ] + } + ], + "error": "Invalid Configuration: Dualstack and custom endpoint are not supported", + "type": "error" + }, + { + "conditions": [], + "endpoint": { + "url": { + "ref": "Endpoint" + }, + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ], + "type": "tree" + }, + { + "conditions": [ + { + "fn": "isSet", + "argv": [ + { + "ref": "Region" + } + ] + } + ], + "rules": [ + { + "conditions": [ + { + "fn": "aws.partition", + "argv": [ + { + "ref": "Region" + } + ], + "assign": "PartitionResult" + } + ], + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseFIPS" + }, + true + ] + }, + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseDualStack" + }, + true + ] + } + ], + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + true, + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsFIPS" + ] + } + ] + }, + { + "fn": "booleanEquals", + "argv": [ + true, + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsDualStack" + ] + } + ] + } + ], + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://transfer-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ], + "type": "tree" + }, + { + "conditions": [], + "error": "FIPS and DualStack are enabled, but this partition does not support one or both", + "type": "error" + } + ], + "type": "tree" + }, + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseFIPS" + }, + true + ] + } + ], + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsFIPS" + ] + }, + true + ] + } + ], + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://transfer-fips.{Region}.{PartitionResult#dnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ], + "type": "tree" + }, + { + "conditions": [], + "error": "FIPS is enabled but this partition does not support FIPS", + "type": "error" + } + ], + "type": "tree" + }, + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseDualStack" + }, + true + ] + } + ], + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + true, + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsDualStack" + ] + } + ] + } + ], + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://transfer.{Region}.{PartitionResult#dualStackDnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ], + "type": "tree" + }, + { + "conditions": [], + "error": "DualStack is enabled but this partition does not support DualStack", + "type": "error" + } + ], + "type": "tree" + }, + { + "conditions": [], + "endpoint": { + "url": "https://transfer.{Region}.{PartitionResult#dnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ], + "type": "tree" + } + ], + "type": "tree" + }, + { + "conditions": [], + "error": "Invalid Configuration: Missing Region", + "type": "error" + } + ] + }, + "smithy.rules#endpointTests": { + "testCases": [ + { + "documentation": "For region af-south-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://transfer.af-south-1.amazonaws.com" + } + }, + "params": { + "Region": "af-south-1", + "UseFIPS": false, + "UseDualStack": false + } + }, + { + "documentation": "For region ap-east-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://transfer.ap-east-1.amazonaws.com" + } + }, + "params": { + "Region": "ap-east-1", + "UseFIPS": false, + "UseDualStack": false + } + }, + { + "documentation": "For region ap-northeast-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://transfer.ap-northeast-1.amazonaws.com" + } + }, + "params": { + "Region": "ap-northeast-1", + "UseFIPS": false, + "UseDualStack": false + } + }, + { + "documentation": "For region ap-northeast-2 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://transfer.ap-northeast-2.amazonaws.com" + } + }, + "params": { + "Region": "ap-northeast-2", + "UseFIPS": false, + "UseDualStack": false + } + }, + { + "documentation": "For region ap-northeast-3 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://transfer.ap-northeast-3.amazonaws.com" + } + }, + "params": { + "Region": "ap-northeast-3", + "UseFIPS": false, + "UseDualStack": false + } + }, + { + "documentation": "For region ap-south-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://transfer.ap-south-1.amazonaws.com" + } + }, + "params": { + "Region": "ap-south-1", + "UseFIPS": false, + "UseDualStack": false + } + }, + { + "documentation": "For region ap-southeast-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://transfer.ap-southeast-1.amazonaws.com" + } + }, + "params": { + "Region": "ap-southeast-1", + "UseFIPS": false, + "UseDualStack": false + } + }, + { + "documentation": "For region ap-southeast-2 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://transfer.ap-southeast-2.amazonaws.com" + } + }, + "params": { + "Region": "ap-southeast-2", + "UseFIPS": false, + "UseDualStack": false + } + }, + { + "documentation": "For region ca-central-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://transfer.ca-central-1.amazonaws.com" + } + }, + "params": { + "Region": "ca-central-1", + "UseFIPS": false, + "UseDualStack": false + } + }, + { + "documentation": "For region ca-central-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://transfer-fips.ca-central-1.amazonaws.com" + } + }, + "params": { + "Region": "ca-central-1", + "UseFIPS": true, + "UseDualStack": false + } + }, + { + "documentation": "For region eu-central-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://transfer.eu-central-1.amazonaws.com" + } + }, + "params": { + "Region": "eu-central-1", + "UseFIPS": false, + "UseDualStack": false + } + }, + { + "documentation": "For region eu-north-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://transfer.eu-north-1.amazonaws.com" + } + }, + "params": { + "Region": "eu-north-1", + "UseFIPS": false, + "UseDualStack": false + } + }, + { + "documentation": "For region eu-south-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://transfer.eu-south-1.amazonaws.com" + } + }, + "params": { + "Region": "eu-south-1", + "UseFIPS": false, + "UseDualStack": false + } + }, + { + "documentation": "For region eu-west-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://transfer.eu-west-1.amazonaws.com" + } + }, + "params": { + "Region": "eu-west-1", + "UseFIPS": false, + "UseDualStack": false + } + }, + { + "documentation": "For region eu-west-2 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://transfer.eu-west-2.amazonaws.com" + } + }, + "params": { + "Region": "eu-west-2", + "UseFIPS": false, + "UseDualStack": false + } + }, + { + "documentation": "For region eu-west-3 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://transfer.eu-west-3.amazonaws.com" + } + }, + "params": { + "Region": "eu-west-3", + "UseFIPS": false, + "UseDualStack": false + } + }, + { + "documentation": "For region me-south-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://transfer.me-south-1.amazonaws.com" + } + }, + "params": { + "Region": "me-south-1", + "UseFIPS": false, + "UseDualStack": false + } + }, + { + "documentation": "For region sa-east-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://transfer.sa-east-1.amazonaws.com" + } + }, + "params": { + "Region": "sa-east-1", + "UseFIPS": false, + "UseDualStack": false + } + }, + { + "documentation": "For region us-east-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://transfer.us-east-1.amazonaws.com" + } + }, + "params": { + "Region": "us-east-1", + "UseFIPS": false, + "UseDualStack": false + } + }, + { + "documentation": "For region us-east-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://transfer-fips.us-east-1.amazonaws.com" + } + }, + "params": { + "Region": "us-east-1", + "UseFIPS": true, + "UseDualStack": false + } + }, + { + "documentation": "For region us-east-2 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://transfer.us-east-2.amazonaws.com" + } + }, + "params": { + "Region": "us-east-2", + "UseFIPS": false, + "UseDualStack": false + } + }, + { + "documentation": "For region us-east-2 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://transfer-fips.us-east-2.amazonaws.com" + } + }, + "params": { + "Region": "us-east-2", + "UseFIPS": true, + "UseDualStack": false + } + }, + { + "documentation": "For region us-west-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://transfer.us-west-1.amazonaws.com" + } + }, + "params": { + "Region": "us-west-1", + "UseFIPS": false, + "UseDualStack": false + } + }, + { + "documentation": "For region us-west-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://transfer-fips.us-west-1.amazonaws.com" + } + }, + "params": { + "Region": "us-west-1", + "UseFIPS": true, + "UseDualStack": false + } + }, + { + "documentation": "For region us-west-2 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://transfer.us-west-2.amazonaws.com" + } + }, + "params": { + "Region": "us-west-2", + "UseFIPS": false, + "UseDualStack": false + } + }, + { + "documentation": "For region us-west-2 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://transfer-fips.us-west-2.amazonaws.com" + } + }, + "params": { + "Region": "us-west-2", + "UseFIPS": true, + "UseDualStack": false + } + }, + { + "documentation": "For region us-east-1 with FIPS enabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://transfer-fips.us-east-1.api.aws" + } + }, + "params": { + "Region": "us-east-1", + "UseFIPS": true, + "UseDualStack": true + } + }, + { + "documentation": "For region us-east-1 with FIPS disabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://transfer.us-east-1.api.aws" + } + }, + "params": { + "Region": "us-east-1", + "UseFIPS": false, + "UseDualStack": true + } + }, + { + "documentation": "For region cn-north-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://transfer.cn-north-1.amazonaws.com.cn" + } + }, + "params": { + "Region": "cn-north-1", + "UseFIPS": false, + "UseDualStack": false + } + }, + { + "documentation": "For region cn-northwest-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://transfer.cn-northwest-1.amazonaws.com.cn" + } + }, + "params": { + "Region": "cn-northwest-1", + "UseFIPS": false, + "UseDualStack": false + } + }, + { + "documentation": "For region cn-north-1 with FIPS enabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://transfer-fips.cn-north-1.api.amazonwebservices.com.cn" + } + }, + "params": { + "Region": "cn-north-1", + "UseFIPS": true, + "UseDualStack": true + } + }, + { + "documentation": "For region cn-north-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://transfer-fips.cn-north-1.amazonaws.com.cn" + } + }, + "params": { + "Region": "cn-north-1", + "UseFIPS": true, + "UseDualStack": false + } + }, + { + "documentation": "For region cn-north-1 with FIPS disabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://transfer.cn-north-1.api.amazonwebservices.com.cn" + } + }, + "params": { + "Region": "cn-north-1", + "UseFIPS": false, + "UseDualStack": true + } + }, + { + "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://transfer.us-gov-east-1.amazonaws.com" + } + }, + "params": { + "Region": "us-gov-east-1", + "UseFIPS": false, + "UseDualStack": false + } + }, + { + "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://transfer-fips.us-gov-east-1.amazonaws.com" + } + }, + "params": { + "Region": "us-gov-east-1", + "UseFIPS": true, + "UseDualStack": false + } + }, + { + "documentation": "For region us-gov-west-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://transfer.us-gov-west-1.amazonaws.com" + } + }, + "params": { + "Region": "us-gov-west-1", + "UseFIPS": false, + "UseDualStack": false + } + }, + { + "documentation": "For region us-gov-west-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://transfer-fips.us-gov-west-1.amazonaws.com" + } + }, + "params": { + "Region": "us-gov-west-1", + "UseFIPS": true, + "UseDualStack": false + } + }, + { + "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://transfer-fips.us-gov-east-1.api.aws" + } + }, + "params": { + "Region": "us-gov-east-1", + "UseFIPS": true, + "UseDualStack": true + } + }, + { + "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://transfer.us-gov-east-1.api.aws" + } + }, + "params": { + "Region": "us-gov-east-1", + "UseFIPS": false, + "UseDualStack": true + } + }, + { + "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://transfer-fips.us-iso-east-1.c2s.ic.gov" + } + }, + "params": { + "Region": "us-iso-east-1", + "UseFIPS": true, + "UseDualStack": false + } + }, + { + "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://transfer.us-iso-east-1.c2s.ic.gov" + } + }, + "params": { + "Region": "us-iso-east-1", + "UseFIPS": false, + "UseDualStack": false + } + }, + { + "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://transfer-fips.us-isob-east-1.sc2s.sgov.gov" + } + }, + "params": { + "Region": "us-isob-east-1", + "UseFIPS": true, + "UseDualStack": false + } + }, + { + "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://transfer.us-isob-east-1.sc2s.sgov.gov" + } + }, + "params": { + "Region": "us-isob-east-1", + "UseFIPS": false, + "UseDualStack": false + } + }, + { + "documentation": "For custom endpoint with region set and fips disabled and dualstack disabled", + "expect": { + "endpoint": { + "url": "https://example.com" + } + }, + "params": { + "Region": "us-east-1", + "UseFIPS": false, + "UseDualStack": false, + "Endpoint": "https://example.com" + } + }, + { + "documentation": "For custom endpoint with region not set and fips disabled and dualstack disabled", + "expect": { + "endpoint": { + "url": "https://example.com" + } + }, + "params": { + "UseFIPS": false, + "UseDualStack": false, + "Endpoint": "https://example.com" + } + }, + { + "documentation": "For custom endpoint with fips enabled and dualstack disabled", + "expect": { + "error": "Invalid Configuration: FIPS and custom endpoint are not supported" + }, + "params": { + "Region": "us-east-1", + "UseFIPS": true, + "UseDualStack": false, + "Endpoint": "https://example.com" + } + }, + { + "documentation": "For custom endpoint with fips disabled and dualstack enabled", + "expect": { + "error": "Invalid Configuration: Dualstack and custom endpoint are not supported" + }, + "params": { + "Region": "us-east-1", + "UseFIPS": false, + "UseDualStack": true, + "Endpoint": "https://example.com" + } + }, + { + "documentation": "Missing region", + "expect": { + "error": "Invalid Configuration: Missing Region" + } + } + ], + "version": "1.0" + } + } + }, + "com.amazonaws.transfer#TransferTableStatus": { + "type": "enum", + "members": { + "QUEUED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "QUEUED" + } + }, + "IN_PROGRESS": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "IN_PROGRESS" + } + }, + "COMPLETED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "COMPLETED" + } + }, + "FAILED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "FAILED" + } + } + } + }, + "com.amazonaws.transfer#UntagResource": { + "type": "operation", + "input": { + "target": "com.amazonaws.transfer#UntagResourceRequest" + }, + "output": { + "target": "smithy.api#Unit" + }, + "errors": [ + { + "target": "com.amazonaws.transfer#InternalServiceError" + }, + { + "target": "com.amazonaws.transfer#InvalidRequestException" + }, + { + "target": "com.amazonaws.transfer#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.transfer#ServiceUnavailableException" + } + ], + "traits": { + "smithy.api#documentation": "

Detaches a key-value pair from a resource, as identified by its Amazon Resource Name (ARN). Resources are users, servers, roles, and other entities.

No response is returned from this call.

" + } + }, + "com.amazonaws.transfer#UntagResourceRequest": { + "type": "structure", + "members": { + "Arn": { + "target": "com.amazonaws.transfer#Arn", + "traits": { + "smithy.api#documentation": "

The value of the resource that will have the tag removed. An Amazon Resource Name (ARN) is an identifier for a specific Amazon Web Services resource, such as a server, user, or role.

", + "smithy.api#required": {} + } + }, + "TagKeys": { + "target": "com.amazonaws.transfer#TagKeys", + "traits": { + "smithy.api#documentation": "

TagKeys are key-value pairs assigned to ARNs that can be used to group and search for resources by type. This metadata can be attached to resources for any purpose.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.transfer#UpdateAccess": { + "type": "operation", + "input": { + "target": "com.amazonaws.transfer#UpdateAccessRequest" + }, + "output": { + "target": "com.amazonaws.transfer#UpdateAccessResponse" + }, + "errors": [ + { + "target": "com.amazonaws.transfer#InternalServiceError" + }, + { + "target": "com.amazonaws.transfer#InvalidRequestException" + }, + { + "target": "com.amazonaws.transfer#ResourceExistsException" + }, + { + "target": "com.amazonaws.transfer#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.transfer#ServiceUnavailableException" + }, + { + "target": "com.amazonaws.transfer#ThrottlingException" + } + ], + "traits": { + "smithy.api#documentation": "

Allows you to update parameters for the access specified in the ServerID and ExternalID parameters.

" + } + }, + "com.amazonaws.transfer#UpdateAccessRequest": { + "type": "structure", + "members": { + "HomeDirectory": { + "target": "com.amazonaws.transfer#HomeDirectory", + "traits": { + "smithy.api#documentation": "

The landing directory (folder) for a user when they log in to the server using the client.

A HomeDirectory example is /bucket_name/home/mydirectory.

You can use the HomeDirectory parameter for HomeDirectoryType when it is set to either PATH or LOGICAL.

" + } + }, + "HomeDirectoryType": { + "target": "com.amazonaws.transfer#HomeDirectoryType", + "traits": { + "smithy.api#documentation": "

The type of landing directory (folder) that you want your users' home directory to be when they log in to the server. If you set it to PATH, the user will see the absolute Amazon S3 bucket or Amazon EFS path as is in their file transfer protocol clients. If you set it to LOGICAL, you need to provide mappings in the HomeDirectoryMappings for how you want to make Amazon S3 or Amazon EFS paths visible to your users.

If HomeDirectoryType is LOGICAL, you must provide mappings, using the HomeDirectoryMappings parameter. If, on the other hand, HomeDirectoryType is PATH, you provide an absolute path using the HomeDirectory parameter. You cannot have both HomeDirectory and HomeDirectoryMappings in your template.

" + } + }, + "HomeDirectoryMappings": { + "target": "com.amazonaws.transfer#HomeDirectoryMappings", + "traits": { + "smithy.api#documentation": "

Logical directory mappings that specify what Amazon S3 or Amazon EFS paths and keys should be visible to your user and how you want to make them visible. You must specify the Entry and Target pair, where Entry shows how the path is made visible and Target is the actual Amazon S3 or Amazon EFS path. If you only specify a target, it is displayed as is. You also must ensure that your Identity and Access Management (IAM) role provides access to paths in Target. This value can be set only when HomeDirectoryType is set to LOGICAL.

The following is an Entry and Target pair example.

[ { \"Entry\": \"/directory1\", \"Target\": \"/bucket_name/home/mydirectory\" } ]

In most cases, you can use this value instead of the session policy to lock down your user to the designated home directory (\"chroot\"). To do this, you can set Entry to / and set Target to the HomeDirectory parameter value.

The following is an Entry and Target pair example for chroot.

[ { \"Entry\": \"/\", \"Target\": \"/bucket_name/home/mydirectory\" } ]

" + } + }, + "Policy": { + "target": "com.amazonaws.transfer#Policy", + "traits": { + "smithy.api#documentation": "

A session policy for your user so that you can use the same Identity and Access Management (IAM) role across multiple users. This policy scopes down a user's access to portions of their Amazon S3 bucket. Variables that you can use inside this policy include ${Transfer:UserName}, ${Transfer:HomeDirectory}, and ${Transfer:HomeBucket}.

This policy applies only when the domain of ServerId is Amazon S3. Amazon EFS does not use session policies.

For session policies, Transfer Family stores the policy as a JSON blob, instead of the Amazon Resource Name (ARN) of the policy. You save the policy as a JSON blob and pass it in the Policy argument.

For an example of a session policy, see Example session policy.

For more information, see AssumeRole in the Amazon Web ServicesSecurity Token Service API Reference.

" + } + }, + "PosixProfile": { + "target": "com.amazonaws.transfer#PosixProfile" + }, + "Role": { + "target": "com.amazonaws.transfer#Role", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role that controls your users' access to your Amazon S3 bucket or Amazon EFS file system. The policies attached to this role determine the level of access that you want to provide your users when transferring files into and out of your Amazon S3 bucket or Amazon EFS file system. The IAM role should also contain a trust relationship that allows the server to access your resources when servicing your users' transfer requests.

" + } + }, + "ServerId": { + "target": "com.amazonaws.transfer#ServerId", + "traits": { + "smithy.api#documentation": "

A system-assigned unique identifier for a server instance. This is the specific server that you added your user to.

", + "smithy.api#required": {} + } + }, + "ExternalId": { + "target": "com.amazonaws.transfer#ExternalId", + "traits": { + "smithy.api#documentation": "

A unique identifier that is required to identify specific groups within your directory. The users of the group that you associate have access to your Amazon S3 or Amazon EFS resources over the enabled protocols using Transfer Family. If you know the group name, you can view the SID values by running the following command using Windows PowerShell.

Get-ADGroup -Filter {samAccountName -like \"YourGroupName*\"} -Properties * | Select SamAccountName,ObjectSid

In that command, replace YourGroupName with the name of your Active Directory group.

The regular expression used to validate this parameter is a string of characters consisting of uppercase and lowercase alphanumeric characters with no spaces. You can also include underscores or any of the following characters: =,.@:/-

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.transfer#UpdateAccessResponse": { + "type": "structure", + "members": { + "ServerId": { + "target": "com.amazonaws.transfer#ServerId", + "traits": { + "smithy.api#documentation": "

The identifier of the server that the user is attached to.

", + "smithy.api#required": {} + } + }, + "ExternalId": { + "target": "com.amazonaws.transfer#ExternalId", + "traits": { + "smithy.api#documentation": "

The external identifier of the group whose users have access to your Amazon S3 or Amazon EFS resources over the enabled protocols using Amazon Web ServicesTransfer Family.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.transfer#UpdateAgreement": { + "type": "operation", + "input": { + "target": "com.amazonaws.transfer#UpdateAgreementRequest" + }, + "output": { + "target": "com.amazonaws.transfer#UpdateAgreementResponse" + }, + "errors": [ + { + "target": "com.amazonaws.transfer#InternalServiceError" + }, + { + "target": "com.amazonaws.transfer#InvalidRequestException" + }, + { + "target": "com.amazonaws.transfer#ResourceExistsException" + }, + { + "target": "com.amazonaws.transfer#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.transfer#ServiceUnavailableException" + }, + { + "target": "com.amazonaws.transfer#ThrottlingException" + } + ], + "traits": { + "aws.iam#iamAction": { + "requiredActions": [ + "transfer:TagResource", + "transfer:UnTagResource", + "iam:PassRole" + ] + }, + "smithy.api#documentation": "

Updates some of the parameters for an existing agreement. Provide the AgreementId and the ServerId for the agreement that you want to update, along with the new values for the parameters to update.

Specify either BaseDirectory or CustomDirectories, but not both. Specifying both causes the command to fail.

If you update an agreement from using base directory to custom directories, the base directory is no longer used. Similarly, if you change from custom directories to a base directory, the custom directories are no longer used.

" + } + }, + "com.amazonaws.transfer#UpdateAgreementRequest": { + "type": "structure", + "members": { + "AgreementId": { + "target": "com.amazonaws.transfer#AgreementId", + "traits": { + "smithy.api#documentation": "

A unique identifier for the agreement. This identifier is returned when you create an agreement.

", + "smithy.api#required": {} + } + }, + "ServerId": { + "target": "com.amazonaws.transfer#ServerId", + "traits": { + "smithy.api#documentation": "

A system-assigned unique identifier for a server instance. This is the specific server that the agreement uses.

", + "smithy.api#required": {} + } + }, + "Description": { + "target": "com.amazonaws.transfer#Description", + "traits": { + "smithy.api#documentation": "

To replace the existing description, provide a short description for the agreement.

" + } + }, + "Status": { + "target": "com.amazonaws.transfer#AgreementStatusType", + "traits": { + "smithy.api#documentation": "

You can update the status for the agreement, either activating an inactive agreement or the reverse.

" + } + }, + "LocalProfileId": { + "target": "com.amazonaws.transfer#ProfileId", + "traits": { + "smithy.api#documentation": "

A unique identifier for the AS2 local profile.

To change the local profile identifier, provide a new value here.

" + } + }, + "PartnerProfileId": { + "target": "com.amazonaws.transfer#ProfileId", + "traits": { + "smithy.api#documentation": "

A unique identifier for the partner profile. To change the partner profile identifier, provide a new value here.

" + } + }, + "BaseDirectory": { + "target": "com.amazonaws.transfer#HomeDirectory", + "traits": { + "smithy.api#documentation": "

To change the landing directory (folder) for files that are transferred, provide the bucket folder that you want to use; for example, /amzn-s3-demo-bucket/home/mydirectory .

" + } + }, + "AccessRole": { + "target": "com.amazonaws.transfer#Role", + "traits": { + "smithy.api#documentation": "

Connectors are used to send files using either the AS2 or SFTP protocol. For the access role, provide the Amazon Resource Name (ARN) of the Identity and Access Management role to use.

For AS2 connectors

With AS2, you can send files by calling StartFileTransfer and specifying the file paths in the request parameter, SendFilePaths. We use the file\u2019s parent directory (for example, for --send-file-paths /bucket/dir/file.txt, parent directory is /bucket/dir/) to temporarily store a processed AS2 message file, store the MDN when we receive them from the partner, and write a final JSON file containing relevant metadata of the transmission. So, the AccessRole needs to provide read and write access to the parent directory of the file location used in the StartFileTransfer request. Additionally, you need to provide read and write access to the parent directory of the files that you intend to send with StartFileTransfer.

If you are using Basic authentication for your AS2 connector, the access role requires the secretsmanager:GetSecretValue permission for the secret. If the secret is encrypted using a customer-managed key instead of the Amazon Web Services managed key in Secrets Manager, then the role also needs the kms:Decrypt permission for that key.

For SFTP connectors

Make sure that the access role provides read and write access to the parent directory of the file location that's used in the StartFileTransfer request. Additionally, make sure that the role provides secretsmanager:GetSecretValue permission to Secrets Manager.

" + } + }, + "PreserveFilename": { + "target": "com.amazonaws.transfer#PreserveFilenameType", + "traits": { + "smithy.api#documentation": "

Determines whether or not Transfer Family appends a unique string of characters to the end of the AS2 message payload filename when saving it.

" + } + }, + "EnforceMessageSigning": { + "target": "com.amazonaws.transfer#EnforceMessageSigningType", + "traits": { + "smithy.api#documentation": "

Determines whether or not unsigned messages from your trading partners will be accepted.

" + } + }, + "CustomDirectories": { + "target": "com.amazonaws.transfer#CustomDirectoriesType", + "traits": { + "smithy.api#documentation": "

A CustomDirectoriesType structure. This structure specifies custom directories for storing various AS2 message files. You can specify directories for the following types of files.

" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.transfer#UpdateAgreementResponse": { + "type": "structure", + "members": { + "AgreementId": { + "target": "com.amazonaws.transfer#AgreementId", + "traits": { + "smithy.api#documentation": "

A unique identifier for the agreement. This identifier is returned when you create an agreement.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.transfer#UpdateCertificate": { + "type": "operation", + "input": { + "target": "com.amazonaws.transfer#UpdateCertificateRequest" + }, + "output": { + "target": "com.amazonaws.transfer#UpdateCertificateResponse" + }, + "errors": [ + { + "target": "com.amazonaws.transfer#InternalServiceError" + }, + { + "target": "com.amazonaws.transfer#InvalidRequestException" + }, + { + "target": "com.amazonaws.transfer#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.transfer#ServiceUnavailableException" + }, + { + "target": "com.amazonaws.transfer#ThrottlingException" + } + ], + "traits": { + "aws.iam#iamAction": { + "requiredActions": [ + "transfer:TagResource", + "transfer:UnTagResource" + ] + }, + "smithy.api#documentation": "

Updates the active and inactive dates for a certificate.

" + } + }, + "com.amazonaws.transfer#UpdateCertificateRequest": { + "type": "structure", + "members": { + "CertificateId": { + "target": "com.amazonaws.transfer#CertificateId", + "traits": { + "smithy.api#documentation": "

The identifier of the certificate object that you are updating.

", + "smithy.api#required": {} + } + }, + "ActiveDate": { + "target": "com.amazonaws.transfer#CertDate", + "traits": { + "smithy.api#documentation": "

An optional date that specifies when the certificate becomes active. If you do not specify a value, ActiveDate takes the same value as NotBeforeDate, which is specified by the CA.

" + } + }, + "InactiveDate": { + "target": "com.amazonaws.transfer#CertDate", + "traits": { + "smithy.api#documentation": "

An optional date that specifies when the certificate becomes inactive. If you do not specify a value, InactiveDate takes the same value as NotAfterDate, which is specified by the CA.

" + } + }, + "Description": { + "target": "com.amazonaws.transfer#Description", + "traits": { + "smithy.api#documentation": "

A short description to help identify the certificate.

" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.transfer#UpdateCertificateResponse": { + "type": "structure", + "members": { + "CertificateId": { + "target": "com.amazonaws.transfer#CertificateId", + "traits": { + "smithy.api#documentation": "

Returns the identifier of the certificate object that you are updating.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.transfer#UpdateConnector": { + "type": "operation", + "input": { + "target": "com.amazonaws.transfer#UpdateConnectorRequest" + }, + "output": { + "target": "com.amazonaws.transfer#UpdateConnectorResponse" + }, + "errors": [ + { + "target": "com.amazonaws.transfer#InternalServiceError" + }, + { + "target": "com.amazonaws.transfer#InvalidRequestException" + }, + { + "target": "com.amazonaws.transfer#ResourceExistsException" + }, + { + "target": "com.amazonaws.transfer#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.transfer#ServiceUnavailableException" + }, + { + "target": "com.amazonaws.transfer#ThrottlingException" + } + ], + "traits": { + "aws.iam#iamAction": { + "requiredActions": [ + "transfer:TagResource", + "transfer:UnTagResource", + "iam:PassRole" + ] + }, + "smithy.api#documentation": "

Updates some of the parameters for an existing connector. Provide the ConnectorId for the connector that you want to update, along with the new values for the parameters to update.

" + } + }, + "com.amazonaws.transfer#UpdateConnectorEgressConfig": { + "type": "union", + "members": { + "VpcLattice": { + "target": "com.amazonaws.transfer#UpdateConnectorVpcLatticeEgressConfig", + "traits": { + "smithy.api#documentation": "

VPC_LATTICE configuration updates for the connector. Use this to modify the Resource Configuration ARN or port number for VPC-based connectivity.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Structure for updating the egress configuration of an existing connector. Allows modification of how traffic is routed from the connector to the SFTP server, including VPC_LATTICE settings.

" + } + }, + "com.amazonaws.transfer#UpdateConnectorRequest": { + "type": "structure", + "members": { + "ConnectorId": { + "target": "com.amazonaws.transfer#ConnectorId", + "traits": { + "smithy.api#documentation": "

The unique identifier for the connector.

", + "smithy.api#required": {} + } + }, + "Url": { + "target": "com.amazonaws.transfer#Url", + "traits": { + "smithy.api#documentation": "

The URL of the partner's AS2 or SFTP endpoint.

When creating AS2 connectors or service-managed SFTP connectors (connectors without egress configuration), you must provide a URL to specify the remote server endpoint. For VPC Lattice type connectors, the URL must be null.

" + } + }, + "As2Config": { + "target": "com.amazonaws.transfer#As2ConnectorConfig", + "traits": { + "smithy.api#documentation": "

A structure that contains the parameters for an AS2 connector object.

" + } + }, + "AccessRole": { + "target": "com.amazonaws.transfer#Role", + "traits": { + "smithy.api#documentation": "

Connectors are used to send files using either the AS2 or SFTP protocol. For the access role, provide the Amazon Resource Name (ARN) of the Identity and Access Management role to use.

For AS2 connectors

With AS2, you can send files by calling StartFileTransfer and specifying the file paths in the request parameter, SendFilePaths. We use the file\u2019s parent directory (for example, for --send-file-paths /bucket/dir/file.txt, parent directory is /bucket/dir/) to temporarily store a processed AS2 message file, store the MDN when we receive them from the partner, and write a final JSON file containing relevant metadata of the transmission. So, the AccessRole needs to provide read and write access to the parent directory of the file location used in the StartFileTransfer request. Additionally, you need to provide read and write access to the parent directory of the files that you intend to send with StartFileTransfer.

If you are using Basic authentication for your AS2 connector, the access role requires the secretsmanager:GetSecretValue permission for the secret. If the secret is encrypted using a customer-managed key instead of the Amazon Web Services managed key in Secrets Manager, then the role also needs the kms:Decrypt permission for that key.

For SFTP connectors

Make sure that the access role provides read and write access to the parent directory of the file location that's used in the StartFileTransfer request. Additionally, make sure that the role provides secretsmanager:GetSecretValue permission to Secrets Manager.

" + } + }, + "LoggingRole": { + "target": "com.amazonaws.transfer#Role", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role that allows a connector to turn on CloudWatch logging for Amazon S3 events. When set, you can view connector activity in your CloudWatch logs.

" + } + }, + "SftpConfig": { + "target": "com.amazonaws.transfer#SftpConnectorConfig", + "traits": { + "smithy.api#documentation": "

A structure that contains the parameters for an SFTP connector object.

" + } + }, + "SecurityPolicyName": { + "target": "com.amazonaws.transfer#ConnectorSecurityPolicyName", + "traits": { + "smithy.api#documentation": "

Specifies the name of the security policy for the connector.

" + } + }, + "EgressConfig": { + "target": "com.amazonaws.transfer#UpdateConnectorEgressConfig", + "traits": { + "aws.cloudformation#cfnExcludeProperty": {}, + "smithy.api#documentation": "

Updates the egress configuration for the connector, allowing you to modify how traffic is routed from the connector to the SFTP server. Changes to VPC configuration may require connector restart.

" + } + }, + "IpAddressType": { + "target": "com.amazonaws.transfer#ConnectorsIpAddressType", + "traits": { + "smithy.api#documentation": "

Specifies the IP address type for the connector's network connections. When set to IPV4, the connector uses IPv4 addresses only. When set to DUALSTACK, the connector supports both IPv4 and IPv6 addresses, with IPv6 preferred when available.

" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.transfer#UpdateConnectorResponse": { + "type": "structure", + "members": { + "ConnectorId": { + "target": "com.amazonaws.transfer#ConnectorId", + "traits": { + "smithy.api#documentation": "

Returns the identifier of the connector object that you are updating.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.transfer#UpdateConnectorVpcLatticeEgressConfig": { + "type": "structure", + "members": { + "ResourceConfigurationArn": { + "target": "com.amazonaws.transfer#VpcLatticeResourceConfigurationArn", + "traits": { + "smithy.api#documentation": "

Updated ARN of the VPC_LATTICE Resource Configuration. Use this to change the target SFTP server location or modify the network path through the customer's VPC infrastructure.

" + } + }, + "PortNumber": { + "target": "com.amazonaws.transfer#SftpPort", + "traits": { + "smithy.api#documentation": "

Updated port number for SFTP connections through VPC_LATTICE. Change this if the target SFTP server port has been modified or if connecting to a different server endpoint.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

VPC_LATTICE egress configuration updates for modifying how the connector routes traffic through customer VPCs. Changes to these settings may require connector restart to take effect.

" + } + }, + "com.amazonaws.transfer#UpdateHostKey": { + "type": "operation", + "input": { + "target": "com.amazonaws.transfer#UpdateHostKeyRequest" + }, + "output": { + "target": "com.amazonaws.transfer#UpdateHostKeyResponse" + }, + "errors": [ + { + "target": "com.amazonaws.transfer#InternalServiceError" + }, + { + "target": "com.amazonaws.transfer#InvalidRequestException" + }, + { + "target": "com.amazonaws.transfer#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.transfer#ServiceUnavailableException" + }, + { + "target": "com.amazonaws.transfer#ThrottlingException" + } + ], + "traits": { + "smithy.api#documentation": "

Updates the description for the host key that's specified by the ServerId and HostKeyId parameters.

" + } + }, + "com.amazonaws.transfer#UpdateHostKeyRequest": { + "type": "structure", + "members": { + "ServerId": { + "target": "com.amazonaws.transfer#ServerId", + "traits": { + "smithy.api#documentation": "

The identifier of the server that contains the host key that you are updating.

", + "smithy.api#required": {} + } + }, + "HostKeyId": { + "target": "com.amazonaws.transfer#HostKeyId", + "traits": { + "smithy.api#documentation": "

The identifier of the host key that you are updating.

", + "smithy.api#required": {} + } + }, + "Description": { + "target": "com.amazonaws.transfer#HostKeyDescription", + "traits": { + "smithy.api#documentation": "

An updated description for the host key.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.transfer#UpdateHostKeyResponse": { + "type": "structure", + "members": { + "ServerId": { + "target": "com.amazonaws.transfer#ServerId", + "traits": { + "smithy.api#documentation": "

Returns the server identifier for the server that contains the updated host key.

", + "smithy.api#required": {} + } + }, + "HostKeyId": { + "target": "com.amazonaws.transfer#HostKeyId", + "traits": { + "smithy.api#documentation": "

Returns the host key identifier for the updated host key.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.transfer#UpdateProfile": { + "type": "operation", + "input": { + "target": "com.amazonaws.transfer#UpdateProfileRequest" + }, + "output": { + "target": "com.amazonaws.transfer#UpdateProfileResponse" + }, + "errors": [ + { + "target": "com.amazonaws.transfer#InternalServiceError" + }, + { + "target": "com.amazonaws.transfer#InvalidRequestException" + }, + { + "target": "com.amazonaws.transfer#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.transfer#ServiceUnavailableException" + }, + { + "target": "com.amazonaws.transfer#ThrottlingException" + } + ], + "traits": { + "aws.iam#iamAction": { + "requiredActions": [ + "transfer:TagResource", + "transfer:UnTagResource" + ] + }, + "smithy.api#documentation": "

Updates some of the parameters for an existing profile. Provide the ProfileId for the profile that you want to update, along with the new values for the parameters to update.

" + } + }, + "com.amazonaws.transfer#UpdateProfileRequest": { + "type": "structure", + "members": { + "ProfileId": { + "target": "com.amazonaws.transfer#ProfileId", + "traits": { + "smithy.api#documentation": "

The identifier of the profile object that you are updating.

", + "smithy.api#required": {} + } + }, + "CertificateIds": { + "target": "com.amazonaws.transfer#CertificateIds", + "traits": { + "smithy.api#documentation": "

An array of identifiers for the imported certificates. You use this identifier for working with profiles and partner profiles.

" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.transfer#UpdateProfileResponse": { + "type": "structure", + "members": { + "ProfileId": { + "target": "com.amazonaws.transfer#ProfileId", + "traits": { + "smithy.api#documentation": "

Returns the identifier for the profile that's being updated.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.transfer#UpdateServer": { + "type": "operation", + "input": { + "target": "com.amazonaws.transfer#UpdateServerRequest" + }, + "output": { + "target": "com.amazonaws.transfer#UpdateServerResponse" + }, + "errors": [ + { + "target": "com.amazonaws.transfer#AccessDeniedException" + }, + { + "target": "com.amazonaws.transfer#ConflictException" + }, + { + "target": "com.amazonaws.transfer#InternalServiceError" + }, + { + "target": "com.amazonaws.transfer#InvalidRequestException" + }, + { + "target": "com.amazonaws.transfer#ResourceExistsException" + }, + { + "target": "com.amazonaws.transfer#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.transfer#ServiceUnavailableException" + }, + { + "target": "com.amazonaws.transfer#ThrottlingException" + } + ], + "traits": { + "aws.iam#iamAction": { + "requiredActions": [ + "apigateway:GET", + "ec2:AssociateAddress", + "ec2:DisassociateAddress", + "ec2:CreateVpcEndpoint", + "ec2:DeleteVpcEndpoints", + "ec2:DescribeAddresses", + "ec2:DescribeNetworkInterfaces", + "ec2:DescribeVpcEndpoints", + "ec2:ModifyVpcEndpoint", + "iam:PassRole", + "transfer:DescribeServer", + "transfer:StartServer", + "transfer:StopServer", + "transfer:UpdateServer", + "transfer:TagResource", + "transfer:UnTagResource", + "logs:CreateLogDelivery", + "logs:GetLogDelivery", + "logs:UpdateLogDelivery", + "logs:DeleteLogDelivery", + "logs:ListLogDeliveries", + "logs:PutResourcePolicy", + "logs:DescribeResourcePolicies", + "logs:DescribeLogGroups" + ] + }, + "smithy.api#documentation": "

Updates the file transfer protocol-enabled server's properties after that server has been created.

The UpdateServer call returns the ServerId of the server you updated.

" + } + }, + "com.amazonaws.transfer#UpdateServerRequest": { + "type": "structure", + "members": { + "Certificate": { + "target": "com.amazonaws.transfer#Certificate", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the Amazon Web ServicesCertificate Manager (ACM) certificate. Required when Protocols is set to FTPS.

To request a new public certificate, see Request a public certificate in the Amazon Web ServicesCertificate Manager User Guide.

To import an existing certificate into ACM, see Importing certificates into ACM in the Amazon Web ServicesCertificate Manager User Guide.

To request a private certificate to use FTPS through private IP addresses, see Request a private certificate in the Amazon Web ServicesCertificate Manager User Guide.

Certificates with the following cryptographic algorithms and key sizes are supported:

The certificate must be a valid SSL/TLS X.509 version 3 certificate with FQDN or IP address specified and information about the issuer.

" + } + }, + "ProtocolDetails": { + "target": "com.amazonaws.transfer#ProtocolDetails", + "traits": { + "smithy.api#documentation": "

The protocol settings that are configured for your server.

Avoid placing Network Load Balancers (NLBs) or NAT gateways in front of Transfer Family servers, as this increases costs and can cause performance issues, including reduced connection limits for FTPS. For more details, see Avoid placing NLBs and NATs in front of Transfer Family.

" + } + }, + "EndpointDetails": { + "target": "com.amazonaws.transfer#EndpointDetails", + "traits": { + "smithy.api#documentation": "

The virtual private cloud (VPC) endpoint settings that are configured for your server. When you host your endpoint within your VPC, you can make your endpoint accessible only to resources within your VPC, or you can attach Elastic IP addresses and make your endpoint accessible to clients over the internet. Your VPC's default security groups are automatically assigned to your endpoint.

" + } + }, + "EndpointType": { + "target": "com.amazonaws.transfer#EndpointType", + "traits": { + "smithy.api#documentation": "

The type of endpoint that you want your server to use. You can choose to make your server's endpoint publicly accessible (PUBLIC) or host it inside your VPC. With an endpoint that is hosted in a VPC, you can restrict access to your server and resources only within your VPC or choose to make it internet facing by attaching Elastic IP addresses directly to it.

After May 19, 2021, you won't be able to create a server using EndpointType=VPC_ENDPOINT in your Amazon Web Services account if your account hasn't already done so before May 19, 2021. If you have already created servers with EndpointType=VPC_ENDPOINT in your Amazon Web Services account on or before May 19, 2021, you will not be affected. After this date, use EndpointType=VPC.

For more information, see https://docs.aws.amazon.com/transfer/latest/userguide/create-server-in-vpc.html#deprecate-vpc-endpoint.

It is recommended that you use VPC as the EndpointType. With this endpoint type, you have the option to directly associate up to three Elastic IPv4 addresses (BYO IP included) with your server's endpoint and use VPC security groups to restrict traffic by the client's public IP address. This is not possible with EndpointType set to VPC_ENDPOINT.

" + } + }, + "HostKey": { + "target": "com.amazonaws.transfer#HostKey", + "traits": { + "aws.cloudformation#cfnExcludeProperty": {}, + "smithy.api#documentation": "

The RSA, ECDSA, or ED25519 private key to use for your SFTP-enabled server. You can add multiple host keys, in case you want to rotate keys, or have a set of active keys that use different algorithms.

Use the following command to generate an RSA 2048 bit key with no passphrase:

ssh-keygen -t rsa -b 2048 -N \"\" -m PEM -f my-new-server-key.

Use a minimum value of 2048 for the -b option. You can create a stronger key by using 3072 or 4096.

Use the following command to generate an ECDSA 256 bit key with no passphrase:

ssh-keygen -t ecdsa -b 256 -N \"\" -m PEM -f my-new-server-key.

Valid values for the -b option for ECDSA are 256, 384, and 521.

Use the following command to generate an ED25519 key with no passphrase:

ssh-keygen -t ed25519 -N \"\" -f my-new-server-key.

For all of these commands, you can replace my-new-server-key with a string of your choice.

If you aren't planning to migrate existing users from an existing SFTP-enabled server to a new server, don't update the host key. Accidentally changing a server's host key can be disruptive.

For more information, see Manage host keys for your SFTP-enabled server in the Transfer Family User Guide.

" + } + }, + "IdentityProviderDetails": { + "target": "com.amazonaws.transfer#IdentityProviderDetails", + "traits": { + "smithy.api#documentation": "

An array containing all of the information required to call a customer's authentication API method.

" + } + }, + "LoggingRole": { + "target": "com.amazonaws.transfer#NullableRole", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role that allows a server to turn on Amazon CloudWatch logging for Amazon S3 or Amazon EFS events. When set, you can view user activity in your CloudWatch logs.

" + } + }, + "PostAuthenticationLoginBanner": { + "target": "com.amazonaws.transfer#PostAuthenticationLoginBanner", + "traits": { + "smithy.api#documentation": "

Specifies a string to display when users connect to a server. This string is displayed after the user authenticates.

The SFTP protocol does not support post-authentication display banners.

" + } + }, + "PreAuthenticationLoginBanner": { + "target": "com.amazonaws.transfer#PreAuthenticationLoginBanner", + "traits": { + "smithy.api#documentation": "

Specifies a string to display when users connect to a server. This string is displayed before the user authenticates. For example, the following banner displays details about using the system:

This system is for the use of authorized users only. Individuals using this computer system without authority, or in excess of their authority, are subject to having all of their activities on this system monitored and recorded by system personnel.

" + } + }, + "Protocols": { + "target": "com.amazonaws.transfer#Protocols", + "traits": { + "smithy.api#documentation": "

Specifies the file transfer protocol or protocols over which your file transfer protocol client can connect to your server's endpoint. The available protocols are:

" + } + }, + "SecurityPolicyName": { + "target": "com.amazonaws.transfer#SecurityPolicyName", + "traits": { + "smithy.api#documentation": "

Specifies the name of the security policy for the server.

" + } + }, + "ServerId": { + "target": "com.amazonaws.transfer#ServerId", + "traits": { + "smithy.api#documentation": "

A system-assigned unique identifier for a server instance that the Transfer Family user is assigned to.

", + "smithy.api#required": {} + } + }, + "WorkflowDetails": { + "target": "com.amazonaws.transfer#WorkflowDetails", + "traits": { + "smithy.api#documentation": "

Specifies the workflow ID for the workflow to assign and the execution role that's used for executing the workflow.

In addition to a workflow to execute when a file is uploaded completely, WorkflowDetails can also contain a workflow ID (and execution role) for a workflow to execute on partial upload. A partial upload occurs when the server session disconnects while the file is still being uploaded.

To remove an associated workflow from a server, you can provide an empty OnUpload object, as in the following example.

aws transfer update-server --server-id s-01234567890abcdef --workflow-details '{\"OnUpload\":[]}'

" + } + }, + "StructuredLogDestinations": { + "target": "com.amazonaws.transfer#StructuredLogDestinations", + "traits": { + "smithy.api#documentation": "

Specifies the log groups to which your server logs are sent.

To specify a log group, you must provide the ARN for an existing log group. In this case, the format of the log group is as follows:

arn:aws:logs:region-name:amazon-account-id:log-group:log-group-name:*

For example, arn:aws:logs:us-east-1:111122223333:log-group:mytestgroup:*

If you have previously specified a log group for a server, you can clear it, and in effect turn off structured logging, by providing an empty value for this parameter in an update-server call. For example:

update-server --server-id s-1234567890abcdef0 --structured-log-destinations

" + } + }, + "S3StorageOptions": { + "target": "com.amazonaws.transfer#S3StorageOptions", + "traits": { + "smithy.api#documentation": "

Specifies whether or not performance for your Amazon S3 directories is optimized.

By default, home directory mappings have a TYPE of DIRECTORY. If you enable this option, you would then need to explicitly set the HomeDirectoryMapEntry Type to FILE if you want a mapping to have a file target.

" + } + }, + "IpAddressType": { + "target": "com.amazonaws.transfer#IpAddressType", + "traits": { + "smithy.api#documentation": "

Specifies whether to use IPv4 only, or to use dual-stack (IPv4 and IPv6) for your Transfer Family endpoint. The default value is IPV4.

The IpAddressType parameter has the following limitations:

When using DUALSTACK as the IpAddressType, you cannot set the AddressAllocationIds parameter for the EndpointDetails for the server.

" + } + }, + "IdentityProviderType": { + "target": "com.amazonaws.transfer#IdentityProviderType", + "traits": { + "smithy.api#documentation": "

The mode of authentication for a server. The default value is SERVICE_MANAGED, which allows you to store and access user credentials within the Transfer Family service.

Use AWS_DIRECTORY_SERVICE to provide access to Active Directory groups in Directory Service for Microsoft Active Directory or Microsoft Active Directory in your on-premises environment or in Amazon Web Services using AD Connector. This option also requires you to provide a Directory ID by using the IdentityProviderDetails parameter.

Use the API_GATEWAY value to integrate with an identity provider of your choosing. The API_GATEWAY setting requires you to provide an Amazon API Gateway endpoint URL to call for authentication by using the IdentityProviderDetails parameter.

Use the AWS_LAMBDA value to directly use an Lambda function as your identity provider. If you choose this value, you must specify the ARN for the Lambda function in the Function parameter for the IdentityProviderDetails data type.

" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.transfer#UpdateServerResponse": { + "type": "structure", + "members": { + "ServerId": { + "target": "com.amazonaws.transfer#ServerId", + "traits": { + "smithy.api#documentation": "

A system-assigned unique identifier for a server that the Transfer Family user is assigned to.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.transfer#UpdateUser": { + "type": "operation", + "input": { + "target": "com.amazonaws.transfer#UpdateUserRequest" + }, + "output": { + "target": "com.amazonaws.transfer#UpdateUserResponse" + }, + "errors": [ + { + "target": "com.amazonaws.transfer#InternalServiceError" + }, + { + "target": "com.amazonaws.transfer#InvalidRequestException" + }, + { + "target": "com.amazonaws.transfer#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.transfer#ServiceUnavailableException" + }, + { + "target": "com.amazonaws.transfer#ThrottlingException" + } + ], + "traits": { + "aws.iam#iamAction": { + "requiredActions": [ + "iam:PassRole", + "transfer:DeleteSshPublicKey", + "transfer:DescribeUser", + "transfer:ImportSshPublicKey", + "transfer:TagResource", + "transfer:UnTagResource" + ] + }, + "smithy.api#documentation": "

Assigns new properties to a user. Parameters you pass modify any or all of the following: the home directory, role, and policy for the UserName and ServerId you specify.

The response returns the ServerId and the UserName for the updated user.

In the console, you can select Restricted when you create or update a user. This ensures that the user can't access anything outside of their home directory. The programmatic way to configure this behavior is to update the user. Set their HomeDirectoryType to LOGICAL, and specify HomeDirectoryMappings with Entry as root (/) and Target as their home directory.

For example, if the user's home directory is /test/admin-user, the following command updates the user so that their configuration in the console shows the Restricted flag as selected.

aws transfer update-user --server-id <server-id> --user-name admin-user --home-directory-type LOGICAL --home-directory-mappings \"[{\\\"Entry\\\":\\\"/\\\", \\\"Target\\\":\\\"/test/admin-user\\\"}]\"

" + } + }, + "com.amazonaws.transfer#UpdateUserRequest": { + "type": "structure", + "members": { + "HomeDirectory": { + "target": "com.amazonaws.transfer#HomeDirectory", + "traits": { + "smithy.api#documentation": "

The landing directory (folder) for a user when they log in to the server using the client.

A HomeDirectory example is /bucket_name/home/mydirectory.

You can use the HomeDirectory parameter for HomeDirectoryType when it is set to either PATH or LOGICAL.

" + } + }, + "HomeDirectoryType": { + "target": "com.amazonaws.transfer#HomeDirectoryType", + "traits": { + "smithy.api#documentation": "

The type of landing directory (folder) that you want your users' home directory to be when they log in to the server. If you set it to PATH, the user will see the absolute Amazon S3 bucket or Amazon EFS path as is in their file transfer protocol clients. If you set it to LOGICAL, you need to provide mappings in the HomeDirectoryMappings for how you want to make Amazon S3 or Amazon EFS paths visible to your users.

If HomeDirectoryType is LOGICAL, you must provide mappings, using the HomeDirectoryMappings parameter. If, on the other hand, HomeDirectoryType is PATH, you provide an absolute path using the HomeDirectory parameter. You cannot have both HomeDirectory and HomeDirectoryMappings in your template.

" + } + }, + "HomeDirectoryMappings": { + "target": "com.amazonaws.transfer#HomeDirectoryMappings", + "traits": { + "smithy.api#documentation": "

Logical directory mappings that specify what Amazon S3 or Amazon EFS paths and keys should be visible to your user and how you want to make them visible. You must specify the Entry and Target pair, where Entry shows how the path is made visible and Target is the actual Amazon S3 or Amazon EFS path. If you only specify a target, it is displayed as is. You also must ensure that your Identity and Access Management (IAM) role provides access to paths in Target. This value can be set only when HomeDirectoryType is set to LOGICAL.

The following is an Entry and Target pair example.

[ { \"Entry\": \"/directory1\", \"Target\": \"/bucket_name/home/mydirectory\" } ]

In most cases, you can use this value instead of the session policy to lock down your user to the designated home directory (\"chroot\"). To do this, you can set Entry to '/' and set Target to the HomeDirectory parameter value.

The following is an Entry and Target pair example for chroot.

[ { \"Entry\": \"/\", \"Target\": \"/bucket_name/home/mydirectory\" } ]

" + } + }, + "Policy": { + "target": "com.amazonaws.transfer#Policy", + "traits": { + "smithy.api#documentation": "

A session policy for your user so that you can use the same Identity and Access Management (IAM) role across multiple users. This policy scopes down a user's access to portions of their Amazon S3 bucket. Variables that you can use inside this policy include ${Transfer:UserName}, ${Transfer:HomeDirectory}, and ${Transfer:HomeBucket}.

This policy applies only when the domain of ServerId is Amazon S3. Amazon EFS does not use session policies.

For session policies, Transfer Family stores the policy as a JSON blob, instead of the Amazon Resource Name (ARN) of the policy. You save the policy as a JSON blob and pass it in the Policy argument.

For an example of a session policy, see Creating a session policy.

For more information, see AssumeRole in the Amazon Web Services Security Token Service API Reference.

" + } + }, + "PosixProfile": { + "target": "com.amazonaws.transfer#PosixProfile", + "traits": { + "smithy.api#documentation": "

Specifies the full POSIX identity, including user ID (Uid), group ID (Gid), and any secondary groups IDs (SecondaryGids), that controls your users' access to your Amazon Elastic File Systems (Amazon EFS). The POSIX permissions that are set on files and directories in your file system determines the level of access your users get when transferring files into and out of your Amazon EFS file systems.

" + } + }, + "Role": { + "target": "com.amazonaws.transfer#Role", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role that controls your users' access to your Amazon S3 bucket or Amazon EFS file system. The policies attached to this role determine the level of access that you want to provide your users when transferring files into and out of your Amazon S3 bucket or Amazon EFS file system. The IAM role should also contain a trust relationship that allows the server to access your resources when servicing your users' transfer requests.

" + } + }, + "ServerId": { + "target": "com.amazonaws.transfer#ServerId", + "traits": { + "smithy.api#documentation": "

A system-assigned unique identifier for a Transfer Family server instance that the user is assigned to.

", + "smithy.api#required": {} + } + }, + "UserName": { + "target": "com.amazonaws.transfer#UserName", + "traits": { + "smithy.api#documentation": "

A unique string that identifies a user and is associated with a server as specified by the ServerId. This user name must be a minimum of 3 and a maximum of 100 characters long. The following are valid characters: a-z, A-Z, 0-9, underscore '_', hyphen '-', period '.', and at sign '@'. The user name can't start with a hyphen, period, or at sign.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.transfer#UpdateUserResponse": { + "type": "structure", + "members": { + "ServerId": { + "target": "com.amazonaws.transfer#ServerId", + "traits": { + "smithy.api#documentation": "

A system-assigned unique identifier for a Transfer Family server instance that the account is assigned to.

", + "smithy.api#required": {} + } + }, + "UserName": { + "target": "com.amazonaws.transfer#UserName", + "traits": { + "smithy.api#documentation": "

The unique identifier for a user that is assigned to a server instance that was specified in the request.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

UpdateUserResponse returns the user name and identifier for the request to update a user's properties.

", + "smithy.api#output": {} + } + }, + "com.amazonaws.transfer#UpdateWebApp": { + "type": "operation", + "input": { + "target": "com.amazonaws.transfer#UpdateWebAppRequest" + }, + "output": { + "target": "com.amazonaws.transfer#UpdateWebAppResponse" + }, + "errors": [ + { + "target": "com.amazonaws.transfer#AccessDeniedException" + }, + { + "target": "com.amazonaws.transfer#ConflictException" + }, + { + "target": "com.amazonaws.transfer#InternalServiceError" + }, + { + "target": "com.amazonaws.transfer#InvalidRequestException" + }, + { + "target": "com.amazonaws.transfer#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.transfer#ThrottlingException" + } + ], + "traits": { + "aws.iam#iamAction": { + "requiredActions": [ + "iam:PassRole", + "transfer:TagResource", + "transfer:UnTagResource", + "transfer:UpdateWebApp" + ] + }, + "smithy.api#documentation": "

Assigns new properties to a web app. You can modify the access point, identity provider details, endpoint configuration, and the web app units.

For more information about using VPC endpoints with Transfer Family, see Create a Transfer Family web app in a VPC.

", + "smithy.api#http": { + "method": "POST", + "uri": "/updateWebApp" + } + } + }, + "com.amazonaws.transfer#UpdateWebAppCustomization": { + "type": "operation", + "input": { + "target": "com.amazonaws.transfer#UpdateWebAppCustomizationRequest" + }, + "output": { + "target": "com.amazonaws.transfer#UpdateWebAppCustomizationResponse" + }, + "errors": [ + { + "target": "com.amazonaws.transfer#AccessDeniedException" + }, + { + "target": "com.amazonaws.transfer#ConflictException" + }, + { + "target": "com.amazonaws.transfer#InternalServiceError" + }, + { + "target": "com.amazonaws.transfer#InvalidRequestException" + }, + { + "target": "com.amazonaws.transfer#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.transfer#ThrottlingException" + } + ], + "traits": { + "aws.iam#iamAction": { + "requiredActions": [ + "transfer:UpdateWebAppCustomization" + ] + }, + "smithy.api#documentation": "

Assigns new customization properties to a web app. You can modify the icon file, logo file, and title.

", + "smithy.api#http": { + "method": "POST", + "uri": "/updateWebAppCustomization" + } + } + }, + "com.amazonaws.transfer#UpdateWebAppCustomizationRequest": { + "type": "structure", + "members": { + "WebAppId": { + "target": "com.amazonaws.transfer#WebAppId", + "traits": { + "smithy.api#documentation": "

Provide the identifier of the web app that you are updating.

", + "smithy.api#required": {} + } + }, + "Title": { + "target": "com.amazonaws.transfer#WebAppTitle", + "traits": { + "smithy.api#documentation": "

Provide an updated title.

" + } + }, + "LogoFile": { + "target": "com.amazonaws.transfer#WebAppLogoFile", + "traits": { + "smithy.api#documentation": "

Specify logo file data string (in base64 encoding).

" + } + }, + "FaviconFile": { + "target": "com.amazonaws.transfer#WebAppFaviconFile", + "traits": { + "smithy.api#documentation": "

Specify an icon file data string (in base64 encoding).

" + } + } + }, + "traits": { + "smithy.api#input": {}, + "smithy.api#references": [ + { + "resource": "com.amazonaws.transfer#WebAppResource" + } + ] + } + }, + "com.amazonaws.transfer#UpdateWebAppCustomizationResponse": { + "type": "structure", + "members": { + "WebAppId": { + "target": "com.amazonaws.transfer#WebAppId", + "traits": { + "smithy.api#documentation": "

Returns the unique identifier for the web app being updated.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#output": {}, + "smithy.api#references": [ + { + "resource": "com.amazonaws.transfer#WebAppResource" + } + ] + } + }, + "com.amazonaws.transfer#UpdateWebAppEndpointDetails": { + "type": "union", + "members": { + "Vpc": { + "target": "com.amazonaws.transfer#UpdateWebAppVpcConfig", + "traits": { + "smithy.api#documentation": "

The VPC configuration details for updating a web app endpoint hosted within a VPC. This includes the subnet IDs for endpoint deployment.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Contains the endpoint configuration details for updating a web app, including VPC settings for endpoints hosted within a VPC.

" + } + }, + "com.amazonaws.transfer#UpdateWebAppIdentityCenterConfig": { + "type": "structure", + "members": { + "Role": { + "target": "com.amazonaws.transfer#Role", + "traits": { + "smithy.api#documentation": "

The IAM role used to access IAM Identity Center.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

A structure that describes the values to use for the IAM Identity Center settings when you update a web app.

" + } + }, + "com.amazonaws.transfer#UpdateWebAppIdentityProviderDetails": { + "type": "union", + "members": { + "IdentityCenterConfig": { + "target": "com.amazonaws.transfer#UpdateWebAppIdentityCenterConfig", + "traits": { + "smithy.api#documentation": "

A structure that describes the values to use for the IAM Identity Center settings when you update a web app.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

A union that contains the UpdateWebAppIdentityCenterConfig object.

" + } + }, + "com.amazonaws.transfer#UpdateWebAppRequest": { + "type": "structure", + "members": { + "WebAppId": { + "target": "com.amazonaws.transfer#WebAppId", + "traits": { + "smithy.api#documentation": "

Provide the identifier of the web app that you are updating.

", + "smithy.api#required": {} + } + }, + "IdentityProviderDetails": { + "target": "com.amazonaws.transfer#UpdateWebAppIdentityProviderDetails", + "traits": { + "aws.cloudformation#cfnExcludeProperty": {}, + "smithy.api#documentation": "

Provide updated identity provider values in a WebAppIdentityProviderDetails object.

" + } + }, + "AccessEndpoint": { + "target": "com.amazonaws.transfer#WebAppAccessEndpoint", + "traits": { + "smithy.api#documentation": "

The AccessEndpoint is the URL that you provide to your users for them to interact with the Transfer Family web app. You can specify a custom URL or use the default value.

" + } + }, + "WebAppUnits": { + "target": "com.amazonaws.transfer#WebAppUnits", + "traits": { + "smithy.api#documentation": "

A union that contains the value for number of concurrent connections or the user sessions on your web app.

" + } + }, + "EndpointDetails": { + "target": "com.amazonaws.transfer#UpdateWebAppEndpointDetails", + "traits": { + "aws.cloudformation#cfnExcludeProperty": {}, + "smithy.api#documentation": "

The updated endpoint configuration for the web app. You can modify the endpoint type and VPC configuration settings.

" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.transfer#UpdateWebAppResponse": { + "type": "structure", + "members": { + "WebAppId": { + "target": "com.amazonaws.transfer#WebAppId", + "traits": { + "smithy.api#documentation": "

Returns the unique identifier for the web app being updated.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.transfer#UpdateWebAppVpcConfig": { + "type": "structure", + "members": { + "SubnetIds": { + "target": "com.amazonaws.transfer#SubnetIds", + "traits": { + "smithy.api#documentation": "

The list of subnet IDs within the VPC where the web app endpoint should be deployed during the update operation.

" + } + }, + "IpAddressType": { + "target": "com.amazonaws.transfer#WebAppVpcEndpointIpAddressType", + "traits": { + "smithy.api#documentation": "

The IP address type for the web app's VPC endpoint. This determines whether the endpoint is accessible over IPv4 only, or over both IPv4 and IPv6.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Contains the VPC configuration settings for updating a web app endpoint, including the subnet IDs where the endpoint should be deployed.

" + } + }, + "com.amazonaws.transfer#Url": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 0, + "max": 255 + } + } + }, + "com.amazonaws.transfer#UserCount": { + "type": "integer" + }, + "com.amazonaws.transfer#UserDetails": { + "type": "structure", + "members": { + "UserName": { + "target": "com.amazonaws.transfer#UserName", + "traits": { + "smithy.api#documentation": "

A unique string that identifies a Transfer Family user associated with a server.

", + "smithy.api#required": {} + } + }, + "ServerId": { + "target": "com.amazonaws.transfer#ServerId", + "traits": { + "smithy.api#documentation": "

The system-assigned unique identifier for a Transfer server instance.

", + "smithy.api#required": {} + } + }, + "SessionId": { + "target": "com.amazonaws.transfer#SessionId", + "traits": { + "smithy.api#documentation": "

The system-assigned unique identifier for a session that corresponds to the workflow.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Specifies the user name, server ID, and session ID for a workflow.

" + } + }, + "com.amazonaws.transfer#UserName": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 3, + "max": 100 + }, + "smithy.api#pattern": "^[\\w][\\w@.-]{2,99}$" + } + }, + "com.amazonaws.transfer#UserPassword": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 0, + "max": 1024 + }, + "smithy.api#sensitive": {} + } + }, + "com.amazonaws.transfer#UserResource": { + "type": "resource", + "identifiers": { + "ServerId": { + "target": "com.amazonaws.transfer#ServerId" + }, + "UserName": { + "target": "com.amazonaws.transfer#UserName" + } + }, + "put": { + "target": "com.amazonaws.transfer#CreateUser" + }, + "read": { + "target": "com.amazonaws.transfer#DescribeUser" + }, + "update": { + "target": "com.amazonaws.transfer#UpdateUser" + }, + "delete": { + "target": "com.amazonaws.transfer#DeleteUser" + }, + "list": { + "target": "com.amazonaws.transfer#ListUsers" + }, + "traits": { + "aws.api#arn": { + "template": "user/{ServerId}/{UserName}" + }, + "aws.api#taggable": { + "property": "Tags" + }, + "aws.cloudformation#cfnResource": { + "name": "User", + "additionalSchemas": [ + "com.amazonaws.transfer#DescribedUser", + "com.amazonaws.necco.coral#CfnUserProperties" + ] + }, + "smithy.api#noReplace": {} + } + }, + "com.amazonaws.transfer#VpcEndpointId": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 22, + "max": 22 + }, + "smithy.api#pattern": "^vpce-[0-9a-f]{17}$" + } + }, + "com.amazonaws.transfer#VpcId": { + "type": "string" + }, + "com.amazonaws.transfer#VpcLatticeResourceConfigurationArn": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 2048 + }, + "smithy.api#pattern": "^arn:[a-z0-9\\-]+:vpc-lattice:[a-zA-Z0-9\\-]+:\\d{12}:resourceconfiguration/rcfg-[0-9a-z]{17}$" + } + }, + "com.amazonaws.transfer#WebAppAccessEndpoint": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 1024 + } + } + }, + "com.amazonaws.transfer#WebAppCustomizationResource": { + "type": "resource", + "identifiers": { + "WebAppId": { + "target": "com.amazonaws.transfer#WebAppId" + } + }, + "read": { + "target": "com.amazonaws.transfer#DescribeWebAppCustomization" + }, + "update": { + "target": "com.amazonaws.transfer#UpdateWebAppCustomization" + }, + "delete": { + "target": "com.amazonaws.transfer#DeleteWebAppCustomization" + }, + "traits": { + "aws.cloudformation#cfnResource": { + "name": "WebAppCustomization", + "additionalSchemas": [ + "com.amazonaws.transfer#DescribedWebAppCustomization" + ] + } + } + }, + "com.amazonaws.transfer#WebAppEndpoint": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 1024 + } + } + }, + "com.amazonaws.transfer#WebAppEndpointDetails": { + "type": "union", + "members": { + "Vpc": { + "target": "com.amazonaws.transfer#WebAppVpcConfig", + "traits": { + "smithy.api#documentation": "

The VPC configuration for hosting the web app endpoint within a VPC.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Contains the endpoint configuration for a web app, including VPC settings when the endpoint is hosted within a VPC.

" + } + }, + "com.amazonaws.transfer#WebAppEndpointPolicy": { + "type": "enum", + "members": { + "FIPS": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "FIPS" + } + }, + "STANDARD": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "STANDARD" + } + } + } + }, + "com.amazonaws.transfer#WebAppEndpointType": { + "type": "enum", + "members": { + "PUBLIC": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "PUBLIC" + } + }, + "VPC": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "VPC" + } + } + } + }, + "com.amazonaws.transfer#WebAppFaviconFile": { + "type": "blob", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 20960 + }, + "smithy.api#sensitive": {} + } + }, + "com.amazonaws.transfer#WebAppId": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 24, + "max": 24 + }, + "smithy.api#pattern": "^webapp-[0-9a-f]{17}$" + } + }, + "com.amazonaws.transfer#WebAppIdentityProviderDetails": { + "type": "union", + "members": { + "IdentityCenterConfig": { + "target": "com.amazonaws.transfer#IdentityCenterConfig", + "traits": { + "smithy.api#documentation": "

A structure that describes the values to use for the IAM Identity Center settings when you create a web app.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

A union that contains the IdentityCenterConfig object.

" + } + }, + "com.amazonaws.transfer#WebAppLogoFile": { + "type": "blob", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 51200 + }, + "smithy.api#sensitive": {} + } + }, + "com.amazonaws.transfer#WebAppResource": { + "type": "resource", + "identifiers": { + "WebAppId": { + "target": "com.amazonaws.transfer#WebAppId" + } + }, + "create": { + "target": "com.amazonaws.transfer#CreateWebApp" + }, + "read": { + "target": "com.amazonaws.transfer#DescribeWebApp" + }, + "update": { + "target": "com.amazonaws.transfer#UpdateWebApp" + }, + "delete": { + "target": "com.amazonaws.transfer#DeleteWebApp" + }, + "list": { + "target": "com.amazonaws.transfer#ListWebApps" + }, + "traits": { + "aws.api#arn": { + "template": "webapp/{WebAppId}" + }, + "aws.api#taggable": { + "property": "Tags" + }, + "aws.cloudformation#cfnResource": { + "name": "WebApp", + "additionalSchemas": [ + "com.amazonaws.transfer#DescribedWebApp" + ] + } + } + }, + "com.amazonaws.transfer#WebAppTitle": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 0, + "max": 100 + } + } + }, + "com.amazonaws.transfer#WebAppUnitCount": { + "type": "integer", + "traits": { + "smithy.api#range": { + "min": 1 + } + } + }, + "com.amazonaws.transfer#WebAppUnits": { + "type": "union", + "members": { + "Provisioned": { + "target": "com.amazonaws.transfer#WebAppUnitCount", + "traits": { + "smithy.api#documentation": "

An integer that represents the number of units for your desired number of concurrent connections, or the number of user sessions on your web app at the same time.

Each increment allows an additional 250 concurrent sessions: a value of 1 sets the number of concurrent sessions to 250; 2 sets a value of 500, and so on.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Contains an integer value that represents the value for number of concurrent connections or the user sessions on your web app.

" + } + }, + "com.amazonaws.transfer#WebAppVpcConfig": { + "type": "structure", + "members": { + "SubnetIds": { + "target": "com.amazonaws.transfer#SubnetIds", + "traits": { + "smithy.api#documentation": "

The list of subnet IDs within the VPC where the web app endpoint will be deployed. These subnets must be in the same VPC specified in the VpcId parameter.

" + } + }, + "VpcId": { + "target": "com.amazonaws.transfer#VpcId", + "traits": { + "smithy.api#documentation": "

The identifier of the VPC where the web app endpoint will be hosted.

" + } + }, + "SecurityGroupIds": { + "target": "com.amazonaws.transfer#SecurityGroupIds", + "traits": { + "smithy.api#documentation": "

The list of security group IDs that control access to the web app endpoint. These security groups determine which sources can access the endpoint based on IP addresses and port configurations.

" + } + }, + "IpAddressType": { + "target": "com.amazonaws.transfer#WebAppVpcEndpointIpAddressType", + "traits": { + "smithy.api#documentation": "

The IP address type for the web app's VPC endpoint. This determines whether the endpoint is accessible over IPv4 only, or over both IPv4 and IPv6.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Contains the VPC configuration settings for hosting a web app endpoint, including the VPC ID, subnet IDs, and security group IDs for access control.

" + } + }, + "com.amazonaws.transfer#WebAppVpcEndpointIpAddressType": { + "type": "enum", + "members": { + "IPV4": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "IPV4" + } + }, + "DUALSTACK": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "DUALSTACK" + } + } + } + }, + "com.amazonaws.transfer#WorkflowDescription": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 0, + "max": 256 + }, + "smithy.api#pattern": "^[\\w- ]*$" + } + }, + "com.amazonaws.transfer#WorkflowDetail": { + "type": "structure", + "members": { + "WorkflowId": { + "target": "com.amazonaws.transfer#WorkflowId", + "traits": { + "smithy.api#documentation": "

A unique identifier for the workflow.

", + "smithy.api#required": {} + } + }, + "ExecutionRole": { + "target": "com.amazonaws.transfer#Role", + "traits": { + "smithy.api#documentation": "

Includes the necessary permissions for S3, EFS, and Lambda operations that Transfer can assume, so that all workflow steps can operate on the required resources

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

Specifies the workflow ID for the workflow to assign and the execution role that's used for executing the workflow.

In addition to a workflow to execute when a file is uploaded completely, WorkflowDetails can also contain a workflow ID (and execution role) for a workflow to execute on partial upload. A partial upload occurs when the server session disconnects while the file is still being uploaded.

" + } + }, + "com.amazonaws.transfer#WorkflowDetails": { + "type": "structure", + "members": { + "OnUpload": { + "target": "com.amazonaws.transfer#OnUploadWorkflowDetails", + "traits": { + "smithy.api#documentation": "

A trigger that starts a workflow: the workflow begins to execute after a file is uploaded.

To remove an associated workflow from a server, you can provide an empty OnUpload object, as in the following example.

aws transfer update-server --server-id s-01234567890abcdef --workflow-details '{\"OnUpload\":[]}'

OnUpload can contain a maximum of one WorkflowDetail object.

" + } + }, + "OnPartialUpload": { + "target": "com.amazonaws.transfer#OnPartialUploadWorkflowDetails", + "traits": { + "smithy.api#documentation": "

A trigger that starts a workflow if a file is only partially uploaded. You can attach a workflow to a server that executes whenever there is a partial upload.

A partial upload occurs when a file is open when the session disconnects.

OnPartialUpload can contain a maximum of one WorkflowDetail object.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Container for the WorkflowDetail data type. It is used by actions that trigger a workflow to begin execution.

" + } + }, + "com.amazonaws.transfer#WorkflowId": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 19, + "max": 19 + }, + "smithy.api#pattern": "^w-([a-z0-9]{17})$" + } + }, + "com.amazonaws.transfer#WorkflowResource": { + "type": "resource", + "identifiers": { + "WorkflowId": { + "target": "com.amazonaws.transfer#WorkflowId" + } + }, + "create": { + "target": "com.amazonaws.transfer#CreateWorkflow" + }, + "read": { + "target": "com.amazonaws.transfer#DescribeWorkflow" + }, + "delete": { + "target": "com.amazonaws.transfer#DeleteWorkflow" + }, + "list": { + "target": "com.amazonaws.transfer#ListWorkflows" + }, + "traits": { + "aws.api#arn": { + "template": "workflow/{WorkflowId}" + }, + "aws.api#taggable": { + "property": "Tags" + }, + "aws.cloudformation#cfnResource": { + "name": "Workflow", + "additionalSchemas": [ + "com.amazonaws.transfer#DescribedWorkflow" + ] + } + } + }, + "com.amazonaws.transfer#WorkflowStep": { + "type": "structure", + "members": { + "Type": { + "target": "com.amazonaws.transfer#WorkflowStepType", + "traits": { + "smithy.api#documentation": "

Currently, the following step types are supported.

" + } + }, + "CopyStepDetails": { + "target": "com.amazonaws.transfer#CopyStepDetails", + "traits": { + "smithy.api#documentation": "

Details for a step that performs a file copy.

Consists of the following values:

" + } + }, + "CustomStepDetails": { + "target": "com.amazonaws.transfer#CustomStepDetails", + "traits": { + "smithy.api#documentation": "

Details for a step that invokes an Lambda function.

Consists of the Lambda function's name, target, and timeout (in seconds).

" + } + }, + "DeleteStepDetails": { + "target": "com.amazonaws.transfer#DeleteStepDetails", + "traits": { + "smithy.api#documentation": "

Details for a step that deletes the file.

" + } + }, + "TagStepDetails": { + "target": "com.amazonaws.transfer#TagStepDetails", + "traits": { + "smithy.api#documentation": "

Details for a step that creates one or more tags.

You specify one or more tags. Each tag contains a key-value pair.

" + } + }, + "DecryptStepDetails": { + "target": "com.amazonaws.transfer#DecryptStepDetails", + "traits": { + "smithy.api#documentation": "

Details for a step that decrypts an encrypted file.

Consists of the following values:

" + } + } + }, + "traits": { + "smithy.api#documentation": "

The basic building block of a workflow.

" + } + }, + "com.amazonaws.transfer#WorkflowStepName": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 0, + "max": 30 + }, + "smithy.api#pattern": "^[\\w-]*$" + } + }, + "com.amazonaws.transfer#WorkflowStepType": { + "type": "enum", + "members": { + "COPY": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "COPY" + } + }, + "CUSTOM": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "CUSTOM" + } + }, + "TAG": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "TAG" + } + }, + "DELETE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "DELETE" + } + }, + "DECRYPT": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "DECRYPT" + } + } + } + }, + "com.amazonaws.transfer#WorkflowSteps": { + "type": "list", + "member": { + "target": "com.amazonaws.transfer#WorkflowStep" + }, + "traits": { + "smithy.api#length": { + "min": 0, + "max": 8 + } + } + } + } +} \ No newline at end of file diff --git a/conformance-baseline.json b/conformance-baseline.json index 3dd7e1997..bd03f52af 100644 --- a/conformance-baseline.json +++ b/conformance-baseline.json @@ -1,6 +1,6 @@ { - "variants_passed": 152159, - "total_variants": 152159, + "variants_passed": 154915, + "total_variants": 154915, "per_service": { "acm": { "passed": 599, @@ -241,6 +241,10 @@ "dms": { "passed": 3344, "total": 3344 + }, + "transfer": { + "passed": 2756, + "total": 2756 } } } diff --git a/crates/fakecloud-conformance/src/audit.rs b/crates/fakecloud-conformance/src/audit.rs index b01cf93e1..0dce7d8d5 100644 --- a/crates/fakecloud-conformance/src/audit.rs +++ b/crates/fakecloud-conformance/src/audit.rs @@ -186,6 +186,7 @@ fn service_source_files(project_root: &Path) -> Vec { // mappings (same pattern as the bedrock control/data-plane crate). ("backup", "backup", &["service.rs"], &["backup"]), ("glacier", "glacier", &["service.rs"], &["glacier"]), + ("transfer", "transfer", &["service.rs"], &["transfer"]), ("es", "opensearch", &["service.rs"], &["es", "opensearch"]), ( "opensearch", diff --git a/crates/fakecloud-conformance/src/probe/service_detection.rs b/crates/fakecloud-conformance/src/probe/service_detection.rs index 5356c320f..08662debb 100644 --- a/crates/fakecloud-conformance/src/probe/service_detection.rs +++ b/crates/fakecloud-conformance/src/probe/service_detection.rs @@ -90,6 +90,10 @@ pub(super) fn service_protocol(service_name: &str) -> Protocol { "dms" => Protocol::Json { target_prefix: "AmazonDMSv20160101", }, + // Transfer Family: awsJson1.1. + "transfer" => Protocol::Json { + target_prefix: "TransferService", + }, // IAM Identity Center Identity Store: awsJson1.1. "identitystore" => Protocol::Json { target_prefix: "AWSIdentityStore", diff --git a/crates/fakecloud-conformance/tests/transfer.rs b/crates/fakecloud-conformance/tests/transfer.rs new file mode 100644 index 000000000..91e741232 --- /dev/null +++ b/crates/fakecloud-conformance/tests/transfer.rs @@ -0,0 +1,87 @@ +//! Transfer Family (`transfer`) awsJson1.1 conformance probe assertions. +//! +//! One `#[test_action]` per operation in the Transfer Family Smithy model. +//! Checksums are harvested from `aws-models/transfer.json`; the probe +//! generates request variants per operation and asserts fakecloud responds +//! AWS-faithfully. + +mod helpers; + +use fakecloud_conformance_macros::test_action; +use helpers::TestServer; + +#[test_action("transfer", "CreateAccess", checksum = "482198aa")] +#[test_action("transfer", "CreateAgreement", checksum = "5ff5b981")] +#[test_action("transfer", "CreateConnector", checksum = "578da32e")] +#[test_action("transfer", "CreateProfile", checksum = "0e1e3546")] +#[test_action("transfer", "CreateServer", checksum = "ea5dbf8a")] +#[test_action("transfer", "CreateUser", checksum = "d6286e25")] +#[test_action("transfer", "CreateWebApp", checksum = "bd0dd462")] +#[test_action("transfer", "CreateWorkflow", checksum = "696a3a07")] +#[test_action("transfer", "DeleteAccess", checksum = "548e462d")] +#[test_action("transfer", "DeleteAgreement", checksum = "9506efcb")] +#[test_action("transfer", "DeleteCertificate", checksum = "97b2d9b4")] +#[test_action("transfer", "DeleteConnector", checksum = "1db58cf4")] +#[test_action("transfer", "DeleteHostKey", checksum = "62f809a1")] +#[test_action("transfer", "DeleteProfile", checksum = "b5eb80ae")] +#[test_action("transfer", "DeleteServer", checksum = "6f305e55")] +#[test_action("transfer", "DeleteSshPublicKey", checksum = "f6b49744")] +#[test_action("transfer", "DeleteUser", checksum = "19757e28")] +#[test_action("transfer", "DeleteWebApp", checksum = "eeb211c4")] +#[test_action("transfer", "DeleteWebAppCustomization", checksum = "e8cbbd5a")] +#[test_action("transfer", "DeleteWorkflow", checksum = "8daf485f")] +#[test_action("transfer", "DescribeAccess", checksum = "610847ce")] +#[test_action("transfer", "DescribeAgreement", checksum = "21085849")] +#[test_action("transfer", "DescribeCertificate", checksum = "2754344d")] +#[test_action("transfer", "DescribeConnector", checksum = "bbeaac81")] +#[test_action("transfer", "DescribeExecution", checksum = "348aaf31")] +#[test_action("transfer", "DescribeHostKey", checksum = "8c8a69e5")] +#[test_action("transfer", "DescribeProfile", checksum = "d9d8da1a")] +#[test_action("transfer", "DescribeSecurityPolicy", checksum = "fda492fe")] +#[test_action("transfer", "DescribeServer", checksum = "6ba52588")] +#[test_action("transfer", "DescribeUser", checksum = "e8862054")] +#[test_action("transfer", "DescribeWebApp", checksum = "22d46bc7")] +#[test_action("transfer", "DescribeWebAppCustomization", checksum = "d25880c8")] +#[test_action("transfer", "DescribeWorkflow", checksum = "2fd4f5c6")] +#[test_action("transfer", "ImportCertificate", checksum = "1cedd4c5")] +#[test_action("transfer", "ImportHostKey", checksum = "74741f88")] +#[test_action("transfer", "ImportSshPublicKey", checksum = "4d50d80c")] +#[test_action("transfer", "ListAccesses", checksum = "9d9895ff")] +#[test_action("transfer", "ListAgreements", checksum = "828fe443")] +#[test_action("transfer", "ListCertificates", checksum = "28065eeb")] +#[test_action("transfer", "ListConnectors", checksum = "75c5d970")] +#[test_action("transfer", "ListExecutions", checksum = "10c919da")] +#[test_action("transfer", "ListFileTransferResults", checksum = "b8fd7d0e")] +#[test_action("transfer", "ListHostKeys", checksum = "e7bc64fc")] +#[test_action("transfer", "ListProfiles", checksum = "3239a92b")] +#[test_action("transfer", "ListSecurityPolicies", checksum = "a4567012")] +#[test_action("transfer", "ListServers", checksum = "6b857724")] +#[test_action("transfer", "ListTagsForResource", checksum = "a71e5b6d")] +#[test_action("transfer", "ListUsers", checksum = "69cc1e51")] +#[test_action("transfer", "ListWebApps", checksum = "9376298b")] +#[test_action("transfer", "ListWorkflows", checksum = "ddb40c6c")] +#[test_action("transfer", "SendWorkflowStepState", checksum = "aee0c8f7")] +#[test_action("transfer", "StartDirectoryListing", checksum = "efcd468d")] +#[test_action("transfer", "StartFileTransfer", checksum = "087dc798")] +#[test_action("transfer", "StartRemoteDelete", checksum = "ff76bd60")] +#[test_action("transfer", "StartRemoteMove", checksum = "935cb709")] +#[test_action("transfer", "StartServer", checksum = "7a0591da")] +#[test_action("transfer", "StopServer", checksum = "0a7099d2")] +#[test_action("transfer", "TagResource", checksum = "d7eb0fd8")] +#[test_action("transfer", "TestConnection", checksum = "a30e44f2")] +#[test_action("transfer", "TestIdentityProvider", checksum = "10f0daa5")] +#[test_action("transfer", "UntagResource", checksum = "e1327a6a")] +#[test_action("transfer", "UpdateAccess", checksum = "018643a1")] +#[test_action("transfer", "UpdateAgreement", checksum = "bde6c56f")] +#[test_action("transfer", "UpdateCertificate", checksum = "07521e17")] +#[test_action("transfer", "UpdateConnector", checksum = "a7ff2a02")] +#[test_action("transfer", "UpdateHostKey", checksum = "d6bce871")] +#[test_action("transfer", "UpdateProfile", checksum = "b2283ba5")] +#[test_action("transfer", "UpdateServer", checksum = "56339d3e")] +#[test_action("transfer", "UpdateUser", checksum = "fea09f51")] +#[test_action("transfer", "UpdateWebApp", checksum = "becaeaed")] +#[test_action("transfer", "UpdateWebAppCustomization", checksum = "94d03877")] +#[tokio::test] +async fn transfer_probe() { + let _server = TestServer::start().await; +} diff --git a/crates/fakecloud-core/src/protocol.rs b/crates/fakecloud-core/src/protocol.rs index 1ec0dc6c2..2cf451e87 100644 --- a/crates/fakecloud-core/src/protocol.rs +++ b/crates/fakecloud-core/src/protocol.rs @@ -457,6 +457,8 @@ fn parse_amz_target(target: &str) -> Option { "Route53AutoNaming_v20170314" => "servicediscovery", // Database Migration Service: awsJson1.1. "AmazonDMSv20160101" => "dms", + // Transfer Family: awsJson1.1. + "TransferService" => "transfer", // IAM Identity Center Identity Store: awsJson1.1. "AWSIdentityStore" => "identitystore", // IAM Identity Center SSO Admin: awsJson1.1. diff --git a/crates/fakecloud-server/Cargo.toml b/crates/fakecloud-server/Cargo.toml index a10ebcd82..694699d8b 100644 --- a/crates/fakecloud-server/Cargo.toml +++ b/crates/fakecloud-server/Cargo.toml @@ -37,6 +37,7 @@ fakecloud-rds = { workspace = true } fakecloud-redshift = { workspace = true } fakecloud-rds-data = { workspace = true } fakecloud-dms = { workspace = true } +fakecloud-transfer = { workspace = true } fakecloud-dsql = { workspace = true } fakecloud-resource-groups = { workspace = true } fakecloud-resource-groups-tagging = { workspace = true } diff --git a/crates/fakecloud-server/src/main.rs b/crates/fakecloud-server/src/main.rs index 1260e3b25..3f0b62ea7 100644 --- a/crates/fakecloud-server/src/main.rs +++ b/crates/fakecloud-server/src/main.rs @@ -495,6 +495,13 @@ async fn main() { &endpoint_url, ), )); + let transfer_state: fakecloud_transfer::SharedTransferState = Arc::new( + parking_lot::RwLock::new(fakecloud_core::multi_account::MultiAccountState::new( + &cli.account_id, + &cli.region, + &endpoint_url, + )), + ); let verifiedpermissions_state: fakecloud_verifiedpermissions::SharedVerifiedPermissionsState = Arc::new(parking_lot::RwLock::new( fakecloud_core::multi_account::MultiAccountState::new( @@ -4138,6 +4145,35 @@ async fn main() { } registry.register(Arc::new(dms_service)); + // Transfer Family control plane. + let transfer_snapshot_store: Option> = + if persistence_config.mode == fakecloud_persistence::StorageMode::Persistent { + let data_path = persistence_config + .data_path + .as_ref() + .expect("validated above") + .clone(); + let path = data_path.join("transfer").join("snapshot.json"); + let store = fakecloud_persistence::DiskSnapshotStore::new(path); + match fakecloud_transfer::persistence::load_into(&store, &transfer_state) { + Ok(fakecloud_transfer::persistence::LoadOutcome::Loaded(accounts)) => { + tracing::info!(accounts, "loaded transfer persistence snapshot"); + } + Ok(fakecloud_transfer::persistence::LoadOutcome::Empty) => { + tracing::info!("no transfer persistence snapshot found; starting empty"); + } + Err(err) => fatal_exit(format_args!("{err}")), + } + Some(Arc::new(store) as Arc) + } else { + None + }; + let mut transfer_service = fakecloud_transfer::TransferService::new(transfer_state.clone()); + if let Some(store) = transfer_snapshot_store { + transfer_service = transfer_service.with_snapshot_store(store); + } + registry.register(Arc::new(transfer_service)); + // Verified Permissions control plane + Cedar authorization. let verifiedpermissions_snapshot_store: Option> = if persistence_config.mode == fakecloud_persistence::StorageMode::Persistent { diff --git a/crates/fakecloud-tfacc/src/allowlist.rs b/crates/fakecloud-tfacc/src/allowlist.rs index 4bca13284..80b55e69f 100644 --- a/crates/fakecloud-tfacc/src/allowlist.rs +++ b/crates/fakecloud-tfacc/src/allowlist.rs @@ -1005,6 +1005,19 @@ pub const SERVICES: &[Service] = &[ run_regex: "^TestAccDMS(Certificate|Endpoint)_basic$", deny: &[], }, + Service { + name: "transfer", + // AWS Transfer Family control plane. Scoped to the standalone `_basic` + // resources whose create/read/update/delete round-trips through the + // fakecloud control plane: `aws_transfer_server` (SERVICE_MANAGED + // server that settles to ONLINE), `aws_transfer_user` + + // `aws_transfer_ssh_key` (a user and an imported SSH public key on that + // server), and `aws_transfer_access` (a directory-group access). Wider + // resources (connectors, agreements, profiles, certificates, workflows, + // web apps) come in a later widening batch. + run_regex: "^TestAccTransfer(Server|User|SSHKey|Access)_basic$", + deny: &[], + }, ]; /// CI matrix shards. One GitHub Actions job per entry. @@ -1547,4 +1560,10 @@ pub const SHARDS: &[Shard] = &[ run_regex: "^TestAccDMS(Certificate|Endpoint)_basic$", extra_deny: &[], }, + Shard { + name: "transfer", + service: "transfer", + run_regex: "^TestAccTransfer(Server|User|SSHKey|Access)_basic$", + extra_deny: &[], + }, ]; diff --git a/crates/fakecloud-tfacc/src/lib.rs b/crates/fakecloud-tfacc/src/lib.rs index fc718cb90..d8ad26835 100644 --- a/crates/fakecloud-tfacc/src/lib.rs +++ b/crates/fakecloud-tfacc/src/lib.rs @@ -401,6 +401,7 @@ pub const ENDPOINT_ENV_VARS: &[(&str, &str)] = &[ ("AWS_ENDPOINT_URL_RDS", "rds"), ("AWS_ENDPOINT_URL_DMS", "dms"), ("AWS_ENDPOINT_URL_DATABASE_MIGRATION_SERVICE", "dms"), + ("AWS_ENDPOINT_URL_TRANSFER", "transfer"), ("AWS_ENDPOINT_URL_REDSHIFT", "redshift"), ("AWS_ENDPOINT_URL_ELASTICACHE", "elasticache"), ("AWS_ENDPOINT_URL_MEMORYDB", "memorydb"), diff --git a/crates/fakecloud-tfacc/tests/acc.rs b/crates/fakecloud-tfacc/tests/acc.rs index 548e80e2c..46233bb43 100644 --- a/crates/fakecloud-tfacc/tests/acc.rs +++ b/crates/fakecloud-tfacc/tests/acc.rs @@ -346,3 +346,8 @@ async fn verifiedpermissions_acceptance() { async fn dms_acceptance() { run_shard("dms").await; } + +#[tokio::test] +async fn transfer_acceptance() { + run_shard("transfer").await; +} diff --git a/crates/fakecloud-transfer/Cargo.toml b/crates/fakecloud-transfer/Cargo.toml new file mode 100644 index 000000000..b6721c62f --- /dev/null +++ b/crates/fakecloud-transfer/Cargo.toml @@ -0,0 +1,27 @@ +[package] +name = "fakecloud-transfer" +description = "AWS Transfer Family (transfer) control-plane implementation for FakeCloud" +edition.workspace = true +license.workspace = true +repository.workspace = true +homepage.workspace = true +version.workspace = true + +[dependencies] +fakecloud-aws = { workspace = true } +fakecloud-core = { workspace = true } +fakecloud-persistence = { workspace = true } +async-trait = { workspace = true } +chrono = { workspace = true } +http = { workspace = true } +parking_lot = { workspace = true } +serde = { workspace = true } +serde_json = { workspace = true } +thiserror = { workspace = true } +tokio = { workspace = true } +tracing = { workspace = true } +uuid = { workspace = true } + +[dev-dependencies] +tokio = { workspace = true, features = ["macros", "rt-multi-thread"] } +bytes = { workspace = true } diff --git a/crates/fakecloud-transfer/src/lib.rs b/crates/fakecloud-transfer/src/lib.rs new file mode 100644 index 000000000..992513658 --- /dev/null +++ b/crates/fakecloud-transfer/src/lib.rs @@ -0,0 +1,30 @@ +//! AWS Transfer Family (`transfer`) awsJson1.1 control plane for fakecloud. +//! +//! The full 71-operation Transfer Family control plane from the AWS Smithy +//! model: SFTP/FTPS/FTP/AS2 servers, users, SSH public keys, host keys, +//! service-managed accesses, workflows and executions, AS2 agreements, +//! connectors (SFTP + AS2, with `TestConnection` / file-transfer / directory +//! listing / remote delete+move actions), profiles, certificates, security +//! policies, web apps (+ customization), identity-provider testing, and +//! resource tagging. +//! +//! Transfer is modelled as a state CRUD control plane. There is no real SFTP +//! daemon or AS2 data movement engine (LocalStack Community treats Transfer the +//! same way — the actual file transport is out of scope). Every resource is +//! real, account-partitioned, persisted state: every `Create`/`Import` is +//! reflected by its `Describe` and `List`, every `Update` persists, every +//! `Delete` deletes, `StartServer` / `StopServer` transition the server `State` +//! and settle to steady state (`ONLINE` / `OFFLINE`) synchronously so waiters +//! complete, and `TestConnection` / `TestIdentityProvider` return successful +//! results against a real, existing resource. Nested configuration objects +//! (endpoint details, identity-provider details, AS2/SFTP connector config, +//! workflow steps, ...) are stored as the raw request `Value` so they +//! round-trip verbatim through `Describe`. + +pub mod persistence; +pub mod service; +pub mod state; +mod validate; + +pub use service::TransferService; +pub use state::{SharedTransferState, TransferData, TRANSFER_SNAPSHOT_SCHEMA_VERSION}; diff --git a/crates/fakecloud-transfer/src/persistence.rs b/crates/fakecloud-transfer/src/persistence.rs new file mode 100644 index 000000000..febb7287c --- /dev/null +++ b/crates/fakecloud-transfer/src/persistence.rs @@ -0,0 +1,150 @@ +//! Snapshot save/load for Transfer Family state. + +use std::sync::Arc; + +use tokio::sync::Mutex as AsyncMutex; + +use fakecloud_persistence::SnapshotStore; + +use crate::state::{SharedTransferState, TransferSnapshot, TRANSFER_SNAPSHOT_SCHEMA_VERSION}; + +#[derive(Debug, PartialEq, Eq)] +pub enum LoadOutcome { + Empty, + Loaded(usize), +} + +#[derive(Debug, thiserror::Error)] +pub enum LoadError { + #[error("failed to read transfer persistence snapshot: {0}")] + Io(String), + #[error("failed to parse transfer persistence snapshot: {0}")] + Parse(String), + #[error("transfer persistence schema too new: on-disk={on_disk}, max supported={supported}")] + SchemaTooNew { on_disk: u32, supported: u32 }, +} + +pub fn load_into( + store: &dyn SnapshotStore, + state: &SharedTransferState, +) -> Result { + let Some(bytes) = store.load().map_err(|e| LoadError::Io(e.to_string()))? else { + return Ok(LoadOutcome::Empty); + }; + let snapshot: TransferSnapshot = + serde_json::from_slice(&bytes).map_err(|e| LoadError::Parse(e.to_string()))?; + if snapshot.schema_version > TRANSFER_SNAPSHOT_SCHEMA_VERSION { + return Err(LoadError::SchemaTooNew { + on_disk: snapshot.schema_version, + supported: TRANSFER_SNAPSHOT_SCHEMA_VERSION, + }); + } + let accounts = snapshot.accounts.account_count(); + *state.write() = snapshot.accounts; + Ok(LoadOutcome::Loaded(accounts)) +} + +pub async fn save_snapshot( + state: &SharedTransferState, + store: Option>, + lock: &AsyncMutex<()>, +) { + let Some(store) = store else { + return; + }; + let _guard = lock.lock().await; + let snapshot = TransferSnapshot { + schema_version: TRANSFER_SNAPSHOT_SCHEMA_VERSION, + accounts: state.read().clone(), + }; + let join = tokio::task::spawn_blocking(move || -> std::io::Result<()> { + let bytes = serde_json::to_vec(&snapshot) + .map_err(|e| std::io::Error::new(std::io::ErrorKind::InvalidData, e.to_string()))?; + store.save(&bytes) + }) + .await; + match join { + Ok(Ok(())) => {} + Ok(Err(err)) => tracing::error!(%err, "failed to write transfer snapshot"), + Err(err) => tracing::error!(%err, "transfer snapshot task panicked"), + } +} + +#[cfg(test)] +mod tests { + use super::*; + use crate::state::{TransferData, TransferSnapshot}; + use fakecloud_core::multi_account::MultiAccountState; + use parking_lot::RwLock; + use std::sync::Mutex; + + struct MemStore(Mutex>>); + impl SnapshotStore for MemStore { + fn load(&self) -> std::io::Result>> { + Ok(self.0.lock().unwrap().clone()) + } + fn save(&self, bytes: &[u8]) -> std::io::Result<()> { + *self.0.lock().unwrap() = Some(bytes.to_vec()); + Ok(()) + } + } + + fn state() -> SharedTransferState { + Arc::new(RwLock::new(MultiAccountState::new( + "000000000000", + "us-east-1", + "", + ))) + } + + #[test] + fn empty_store_is_empty() { + assert_eq!( + load_into(&MemStore(Mutex::new(None)), &state()).unwrap(), + LoadOutcome::Empty + ); + } + + #[test] + fn round_trip_restores_accounts_and_resources() { + let mut accounts: MultiAccountState = + MultiAccountState::new("000000000000", "us-east-1", ""); + let data = accounts.get_or_create("111122223333"); + data.servers.insert( + "s-0123456789abcdef0".to_string(), + serde_json::json!({ "ServerId": "s-0123456789abcdef0" }), + ); + let snap = TransferSnapshot { + schema_version: TRANSFER_SNAPSHOT_SCHEMA_VERSION, + accounts, + }; + let store = MemStore(Mutex::new(Some(serde_json::to_vec(&snap).unwrap()))); + let restored = state(); + assert_eq!( + load_into(&store, &restored).unwrap(), + LoadOutcome::Loaded(2) + ); + assert!(restored + .read() + .get("111122223333") + .unwrap() + .servers + .contains_key("s-0123456789abcdef0")); + } + + #[test] + fn rejects_future_schema() { + let accounts: MultiAccountState = + MultiAccountState::new("000000000000", "us-east-1", ""); + let bytes = serde_json::to_vec(&serde_json::json!({ + "schema_version": TRANSFER_SNAPSHOT_SCHEMA_VERSION + 1, + "accounts": accounts, + })) + .unwrap(); + let store = MemStore(Mutex::new(Some(bytes))); + assert!(matches!( + load_into(&store, &state()), + Err(LoadError::SchemaTooNew { .. }) + )); + } +} diff --git a/crates/fakecloud-transfer/src/service.rs b/crates/fakecloud-transfer/src/service.rs new file mode 100644 index 000000000..69b3df91d --- /dev/null +++ b/crates/fakecloud-transfer/src/service.rs @@ -0,0 +1,2056 @@ +//! AWS Transfer Family (`transfer`) awsJson1.1 dispatch + operation handlers. +//! +//! The full 71-operation Transfer Family control plane. State is +//! account-partitioned and persisted. Each resource is stored as its +//! already-output-valid `DescribedX` JSON object so `Describe`/`List` echo +//! exactly what `Create`/`Import`/`Update` persisted, and nested configuration +//! objects round-trip verbatim. + +use std::sync::Arc; + +use async_trait::async_trait; +use http::StatusCode; +use serde_json::{json, Map, Value}; +use tokio::sync::Mutex as AsyncMutex; +use uuid::Uuid; + +use fakecloud_core::service::{AwsRequest, AwsResponse, AwsService, AwsServiceError}; +use fakecloud_persistence::SnapshotStore; + +use crate::persistence::save_snapshot; +use crate::state::{SharedTransferState, TransferData}; + +/// Every operation name in the Transfer Family Smithy model (71 operations). +pub const TRANSFER_ACTIONS: &[&str] = &[ + "CreateAccess", + "CreateAgreement", + "CreateConnector", + "CreateProfile", + "CreateServer", + "CreateUser", + "CreateWebApp", + "CreateWorkflow", + "DeleteAccess", + "DeleteAgreement", + "DeleteCertificate", + "DeleteConnector", + "DeleteHostKey", + "DeleteProfile", + "DeleteServer", + "DeleteSshPublicKey", + "DeleteUser", + "DeleteWebApp", + "DeleteWebAppCustomization", + "DeleteWorkflow", + "DescribeAccess", + "DescribeAgreement", + "DescribeCertificate", + "DescribeConnector", + "DescribeExecution", + "DescribeHostKey", + "DescribeProfile", + "DescribeSecurityPolicy", + "DescribeServer", + "DescribeUser", + "DescribeWebApp", + "DescribeWebAppCustomization", + "DescribeWorkflow", + "ImportCertificate", + "ImportHostKey", + "ImportSshPublicKey", + "ListAccesses", + "ListAgreements", + "ListCertificates", + "ListConnectors", + "ListExecutions", + "ListFileTransferResults", + "ListHostKeys", + "ListProfiles", + "ListSecurityPolicies", + "ListServers", + "ListTagsForResource", + "ListUsers", + "ListWebApps", + "ListWorkflows", + "SendWorkflowStepState", + "StartDirectoryListing", + "StartFileTransfer", + "StartRemoteDelete", + "StartRemoteMove", + "StartServer", + "StopServer", + "TagResource", + "TestConnection", + "TestIdentityProvider", + "UntagResource", + "UpdateAccess", + "UpdateAgreement", + "UpdateCertificate", + "UpdateConnector", + "UpdateHostKey", + "UpdateProfile", + "UpdateServer", + "UpdateUser", + "UpdateWebApp", + "UpdateWebAppCustomization", +]; + +pub struct TransferService { + state: SharedTransferState, + snapshot_store: Option>, + snapshot_lock: Arc>, +} + +impl TransferService { + pub fn new(state: SharedTransferState) -> Self { + Self { + state, + snapshot_store: None, + snapshot_lock: Arc::new(AsyncMutex::new(())), + } + } + + pub fn with_snapshot_store(mut self, store: Arc) -> Self { + self.snapshot_store = Some(store); + self + } + + async fn save(&self) { + save_snapshot( + &self.state, + self.snapshot_store.clone(), + &self.snapshot_lock, + ) + .await; + } +} + +#[async_trait] +impl AwsService for TransferService { + fn service_name(&self) -> &str { + "transfer" + } + + async fn handle(&self, request: AwsRequest) -> Result { + let mutates = is_mutating(request.action.as_str()); + let result = dispatch(self, &request); + if mutates && matches!(result.as_ref(), Ok(resp) if resp.status.is_success()) { + self.save().await; + } + result + } + + fn supported_actions(&self) -> &[&str] { + TRANSFER_ACTIONS + } +} + +/// Read/test operations never mutate state. Everything else (Create, Import, +/// Update, Delete, Start, Stop, Send, Tag, Untag) can, so it triggers a +/// snapshot save on success. +fn is_mutating(action: &str) -> bool { + !(action.starts_with("Describe") || action.starts_with("List") || action.starts_with("Test")) +} + +fn dispatch(s: &TransferService, req: &AwsRequest) -> Result { + let b = parse(req)?; + crate::validate::validate_input(req.action.as_str(), &b)?; + let ctx = Ctx { + account: req.account_id.clone(), + region: req.region.clone(), + }; + match req.action.as_str() { + // servers + "CreateServer" => s.create_server(&ctx, &b), + "DescribeServer" => s.describe_server(&ctx, &b), + "UpdateServer" => s.update_server(&ctx, &b), + "DeleteServer" => s.delete_server(&ctx, &b), + "StartServer" => s.start_server(&ctx, &b), + "StopServer" => s.stop_server(&ctx, &b), + "ListServers" => s.list_servers(&ctx, &b), + // users + "CreateUser" => s.create_user(&ctx, &b), + "DescribeUser" => s.describe_user(&ctx, &b), + "UpdateUser" => s.update_user(&ctx, &b), + "DeleteUser" => s.delete_user(&ctx, &b), + "ListUsers" => s.list_users(&ctx, &b), + // ssh public keys + "ImportSshPublicKey" => s.import_ssh_public_key(&ctx, &b), + "DeleteSshPublicKey" => s.delete_ssh_public_key(&ctx, &b), + // host keys + "ImportHostKey" => s.import_host_key(&ctx, &b), + "UpdateHostKey" => s.update_host_key(&ctx, &b), + "DescribeHostKey" => s.describe_host_key(&ctx, &b), + "DeleteHostKey" => s.delete_host_key(&ctx, &b), + "ListHostKeys" => s.list_host_keys(&ctx, &b), + // accesses + "CreateAccess" => s.create_access(&ctx, &b), + "UpdateAccess" => s.update_access(&ctx, &b), + "DescribeAccess" => s.describe_access(&ctx, &b), + "DeleteAccess" => s.delete_access(&ctx, &b), + "ListAccesses" => s.list_accesses(&ctx, &b), + // workflows + "CreateWorkflow" => s.create_workflow(&ctx, &b), + "DescribeWorkflow" => s.describe_workflow(&ctx, &b), + "DeleteWorkflow" => s.delete_workflow(&ctx, &b), + "ListWorkflows" => s.list_workflows(&ctx, &b), + "SendWorkflowStepState" => s.send_workflow_step_state(&ctx, &b), + // executions + "DescribeExecution" => s.describe_execution(&ctx, &b), + "ListExecutions" => s.list_executions(&ctx, &b), + // agreements + "CreateAgreement" => s.create_agreement(&ctx, &b), + "UpdateAgreement" => s.update_agreement(&ctx, &b), + "DescribeAgreement" => s.describe_agreement(&ctx, &b), + "DeleteAgreement" => s.delete_agreement(&ctx, &b), + "ListAgreements" => s.list_agreements(&ctx, &b), + // connectors + "CreateConnector" => s.create_connector(&ctx, &b), + "UpdateConnector" => s.update_connector(&ctx, &b), + "DescribeConnector" => s.describe_connector(&ctx, &b), + "DeleteConnector" => s.delete_connector(&ctx, &b), + "ListConnectors" => s.list_connectors(&ctx, &b), + "TestConnection" => s.test_connection(&ctx, &b), + "StartDirectoryListing" => s.start_directory_listing(&ctx, &b), + "StartFileTransfer" => s.start_file_transfer(&ctx, &b), + "StartRemoteDelete" => s.start_remote_delete(&ctx, &b), + "StartRemoteMove" => s.start_remote_move(&ctx, &b), + "ListFileTransferResults" => s.list_file_transfer_results(&ctx, &b), + // profiles + "CreateProfile" => s.create_profile(&ctx, &b), + "UpdateProfile" => s.update_profile(&ctx, &b), + "DescribeProfile" => s.describe_profile(&ctx, &b), + "DeleteProfile" => s.delete_profile(&ctx, &b), + "ListProfiles" => s.list_profiles(&ctx, &b), + // certificates + "ImportCertificate" => s.import_certificate(&ctx, &b), + "UpdateCertificate" => s.update_certificate(&ctx, &b), + "DescribeCertificate" => s.describe_certificate(&ctx, &b), + "DeleteCertificate" => s.delete_certificate(&ctx, &b), + "ListCertificates" => s.list_certificates(&ctx, &b), + // security policies + "DescribeSecurityPolicy" => s.describe_security_policy(&b), + "ListSecurityPolicies" => s.list_security_policies(&b), + // web apps + "CreateWebApp" => s.create_web_app(&ctx, &b), + "UpdateWebApp" => s.update_web_app(&ctx, &b), + "DescribeWebApp" => s.describe_web_app(&ctx, &b), + "DeleteWebApp" => s.delete_web_app(&ctx, &b), + "ListWebApps" => s.list_web_apps(&ctx, &b), + "UpdateWebAppCustomization" => s.update_web_app_customization(&ctx, &b), + "DescribeWebAppCustomization" => s.describe_web_app_customization(&ctx, &b), + "DeleteWebAppCustomization" => s.delete_web_app_customization(&ctx, &b), + // identity provider + "TestIdentityProvider" => s.test_identity_provider(&ctx, &b), + // tagging + "TagResource" => s.tag_resource(&ctx, &b), + "UntagResource" => s.untag_resource(&ctx, &b), + "ListTagsForResource" => s.list_tags_for_resource(&ctx, &b), + _ => Err(AwsServiceError::action_not_implemented( + s.service_name(), + &req.action, + )), + } +} + +// ===================== helpers ===================== + +/// Per-request account + region context. +struct Ctx { + account: String, + region: String, +} + +fn ok(v: Value) -> Result { + Ok(AwsResponse::json_value(StatusCode::OK, v)) +} + +fn parse(req: &AwsRequest) -> Result { + if req.body.is_empty() { + return Ok(json!({})); + } + serde_json::from_slice(&req.body) + .map_err(|e| invalid_request(&format!("Request body is malformed: {e}"))) +} + +fn invalid_request(msg: &str) -> AwsServiceError { + AwsServiceError::aws_error(StatusCode::BAD_REQUEST, "InvalidRequestException", msg) +} + +fn not_found(msg: &str) -> AwsServiceError { + AwsServiceError::aws_error(StatusCode::NOT_FOUND, "ResourceNotFoundException", msg) +} + +fn resource_exists(msg: &str) -> AwsServiceError { + AwsServiceError::aws_error(StatusCode::BAD_REQUEST, "ResourceExistsException", msg) +} + +/// Read a required, non-empty string field. +fn req_str<'a>(b: &'a Value, f: &str) -> Result<&'a str, AwsServiceError> { + b.get(f) + .and_then(Value::as_str) + .filter(|s| !s.is_empty()) + .ok_or_else(|| invalid_request(&format!("{f} is required."))) +} + +fn opt_str<'a>(b: &'a Value, f: &str) -> Option<&'a str> { + b.get(f).and_then(Value::as_str).filter(|s| !s.is_empty()) +} + +fn now_ts() -> f64 { + chrono::Utc::now().timestamp() as f64 +} + +/// 17 lowercase hex characters, matching Transfer's resource-id suffix form. +fn hex17() -> String { + let raw = Uuid::new_v4().simple().to_string(); + raw.chars() + .filter(|c| c.is_ascii_hexdigit()) + .take(17) + .collect() +} + +fn arn(ctx: &Ctx, path: &str) -> String { + format!("arn:aws:transfer:{}:{}:{}", ctx.region, ctx.account, path) +} + +/// Copy the given fields verbatim from `src` into `dst` when present. +fn copy_present(src: &Value, dst: &mut Map, fields: &[&str]) { + for f in fields { + if let Some(v) = src.get(*f) { + dst.insert((*f).to_string(), v.clone()); + } + } +} + +/// Collect a resource's `Tags` input into the account tag map under its ARN. +fn store_tags(data: &mut TransferData, arn: &str, b: &Value) { + if let Some(tags) = b.get("Tags").and_then(Value::as_array) { + let entry = data.tags.entry(arn.to_string()).or_default(); + for t in tags { + if let (Some(k), Some(v)) = ( + t.get("Key").and_then(Value::as_str), + t.get("Value").and_then(Value::as_str), + ) { + entry.insert(k.to_string(), v.to_string()); + } + } + } +} + +/// Return a resource's `Tags` list (from the account tag map) for embedding in +/// a `Describe` response, or `None` when the resource carries no tags. +fn tags_list(data: &TransferData, arn: &str) -> Option { + data.tags.get(arn).filter(|m| !m.is_empty()).map(|m| { + Value::Array( + m.iter() + .map(|(k, v)| json!({ "Key": k, "Value": v })) + .collect(), + ) + }) +} + +/// Paginate an ordered list of rows using Transfer's `MaxResults` + +/// `NextToken` (opaque start-index) window. +fn paginate(rows: Vec, b: &Value) -> (Vec, Option) { + let start = b + .get("NextToken") + .and_then(Value::as_str) + .and_then(|t| t.parse::().ok()) + .unwrap_or(0); + let max = b + .get("MaxResults") + .and_then(Value::as_u64) + .map(|m| m.clamp(1, 1000) as usize) + .unwrap_or(1000); + let end = start.saturating_add(max).min(rows.len()); + let page = rows.get(start..end).unwrap_or(&[]).to_vec(); + let next = if end < rows.len() { + Some(end.to_string()) + } else { + None + }; + (page, next) +} + +/// Build a `{key: [...], NextToken?: ...}` list response with optional extra +/// top-level fields (e.g. the echoed `ServerId`). +fn list_response(key: &str, rows: Vec, b: &Value, extra: &[(&str, Value)]) -> Value { + let (page, next) = paginate(rows, b); + let mut out = Map::new(); + for (k, v) in extra { + out.insert((*k).to_string(), v.clone()); + } + out.insert(key.to_string(), Value::Array(page)); + if let Some(t) = next { + out.insert("NextToken".to_string(), json!(t)); + } + Value::Object(out) +} + +// ===================== servers ===================== + +/// Input fields that echo verbatim into a `DescribedServer`. +const SERVER_FIELDS: &[&str] = &[ + "Certificate", + "ProtocolDetails", + "EndpointDetails", + "EndpointType", + "IdentityProviderDetails", + "IdentityProviderType", + "LoggingRole", + "PostAuthenticationLoginBanner", + "PreAuthenticationLoginBanner", + "Protocols", + "SecurityPolicyName", + "WorkflowDetails", + "StructuredLogDestinations", + "S3StorageOptions", + "IpAddressType", + "Domain", +]; + +impl TransferService { + fn require_server<'a>( + &self, + data: &'a TransferData, + server_id: &str, + ) -> Result<&'a Value, AwsServiceError> { + data.servers + .get(server_id) + .ok_or_else(|| not_found(&format!("Server {server_id} does not exist."))) + } + + fn create_server(&self, ctx: &Ctx, b: &Value) -> Result { + let server_id = format!("s-{}", hex17()); + let server_arn = arn(ctx, &format!("server/{server_id}")); + let mut srv = Map::new(); + srv.insert("Arn".into(), json!(server_arn)); + srv.insert("ServerId".into(), json!(server_id)); + srv.insert( + "Domain".into(), + b.get("Domain").cloned().unwrap_or(json!("S3")), + ); + srv.insert( + "EndpointType".into(), + b.get("EndpointType").cloned().unwrap_or(json!("PUBLIC")), + ); + srv.insert( + "IdentityProviderType".into(), + b.get("IdentityProviderType") + .cloned() + .unwrap_or(json!("SERVICE_MANAGED")), + ); + // Settle to ONLINE immediately so `server-online` waiters complete + // against the synchronous control plane. + srv.insert("State".into(), json!("ONLINE")); + srv.insert("UserCount".into(), json!(0)); + srv.insert( + "HostKeyFingerprint".into(), + json!(format!("SHA256:{}", hex17())), + ); + copy_present(b, &mut srv, SERVER_FIELDS); + let srv = Value::Object(srv); + self.state + .write() + .get_or_create(&ctx.account) + .servers + .insert(server_id.clone(), srv); + { + let mut guard = self.state.write(); + let data = guard.get_or_create(&ctx.account); + store_tags(data, &server_arn, b); + } + ok(json!({ "ServerId": server_id })) + } + + fn describe_server(&self, ctx: &Ctx, b: &Value) -> Result { + let server_id = req_str(b, "ServerId")?; + let guard = self.state.read(); + let data = guard + .get(&ctx.account) + .ok_or_else(|| not_found(&format!("Server {server_id} does not exist.")))?; + let srv = self.require_server(data, server_id)?; + let mut out = srv.as_object().unwrap().clone(); + let arn = out + .get("Arn") + .and_then(Value::as_str) + .unwrap_or("") + .to_string(); + if let Some(tags) = tags_list(data, &arn) { + out.insert("Tags".into(), tags); + } + // Reflect the live user count. + let count = data + .users + .keys() + .filter(|k| k.starts_with(&format!("{server_id}/"))) + .count(); + out.insert("UserCount".into(), json!(count)); + ok(json!({ "Server": Value::Object(out) })) + } + + fn update_server(&self, ctx: &Ctx, b: &Value) -> Result { + let server_id = req_str(b, "ServerId")?.to_string(); + let mut guard = self.state.write(); + let data = guard.get_or_create(&ctx.account); + let srv = data + .servers + .get_mut(&server_id) + .ok_or_else(|| not_found(&format!("Server {server_id} does not exist.")))?; + let obj = srv.as_object_mut().unwrap(); + copy_present(b, obj, SERVER_FIELDS); + ok(json!({ "ServerId": server_id })) + } + + fn delete_server(&self, ctx: &Ctx, b: &Value) -> Result { + let server_id = req_str(b, "ServerId")?.to_string(); + let mut guard = self.state.write(); + let data = guard.get_or_create(&ctx.account); + let srv = data + .servers + .remove(&server_id) + .ok_or_else(|| not_found(&format!("Server {server_id} does not exist.")))?; + if let Some(arn) = srv.get("Arn").and_then(Value::as_str) { + data.tags.remove(arn); + } + let prefix = format!("{server_id}/"); + data.users.retain(|k, _| !k.starts_with(&prefix)); + data.accesses.retain(|k, _| !k.starts_with(&prefix)); + data.host_keys.retain(|k, _| !k.starts_with(&prefix)); + data.agreements.retain(|k, _| !k.starts_with(&prefix)); + ok(json!({})) + } + + fn start_server(&self, ctx: &Ctx, b: &Value) -> Result { + self.set_server_state(ctx, b, "ONLINE") + } + + fn stop_server(&self, ctx: &Ctx, b: &Value) -> Result { + self.set_server_state(ctx, b, "OFFLINE") + } + + fn set_server_state( + &self, + ctx: &Ctx, + b: &Value, + state: &str, + ) -> Result { + let server_id = req_str(b, "ServerId")?.to_string(); + let mut guard = self.state.write(); + let data = guard.get_or_create(&ctx.account); + let srv = data + .servers + .get_mut(&server_id) + .ok_or_else(|| not_found(&format!("Server {server_id} does not exist.")))?; + // Settle synchronously to the requested steady state so a describe + // waiter observes ONLINE/OFFLINE immediately. + srv.as_object_mut() + .unwrap() + .insert("State".into(), json!(state)); + ok(json!({})) + } + + fn list_servers(&self, ctx: &Ctx, b: &Value) -> Result { + let guard = self.state.read(); + let rows = guard + .get(&ctx.account) + .map(|d| d.servers.values().map(|s| listed_server(s, d)).collect()) + .unwrap_or_default(); + ok(list_response("Servers", rows, b, &[])) + } +} + +fn listed_server(srv: &Value, data: &TransferData) -> Value { + let server_id = srv.get("ServerId").and_then(Value::as_str).unwrap_or(""); + let count = data + .users + .keys() + .filter(|k| k.starts_with(&format!("{server_id}/"))) + .count(); + let mut out = Map::new(); + for f in [ + "Arn", + "Domain", + "IdentityProviderType", + "EndpointType", + "LoggingRole", + "ServerId", + "State", + ] { + if let Some(v) = srv.get(f) { + out.insert(f.to_string(), v.clone()); + } + } + out.insert("UserCount".into(), json!(count)); + Value::Object(out) +} + +// ===================== users + ssh keys ===================== + +const USER_FIELDS: &[&str] = &[ + "HomeDirectory", + "HomeDirectoryMappings", + "HomeDirectoryType", + "Policy", + "PosixProfile", + "Role", +]; + +impl TransferService { + fn create_user(&self, ctx: &Ctx, b: &Value) -> Result { + let server_id = req_str(b, "ServerId")?.to_string(); + let user_name = req_str(b, "UserName")?.to_string(); + req_str(b, "Role")?; + let mut guard = self.state.write(); + let data = guard.get_or_create(&ctx.account); + self.require_server(data, &server_id)?; + let key = format!("{server_id}/{user_name}"); + if data.users.contains_key(&key) { + return Err(resource_exists(&format!( + "User {user_name} already exists on server {server_id}." + ))); + } + let user_arn = arn(ctx, &format!("user/{server_id}/{user_name}")); + let mut user = Map::new(); + user.insert("Arn".into(), json!(user_arn)); + user.insert("UserName".into(), json!(user_name)); + copy_present(b, &mut user, USER_FIELDS); + let mut ssh_keys = Vec::new(); + if let Some(body) = opt_str(b, "SshPublicKeyBody") { + ssh_keys.push(json!({ + "SshPublicKeyId": format!("key-{}", hex17()), + "SshPublicKeyBody": body, + "DateImported": now_ts() + })); + } + user.insert("SshPublicKeys".into(), json!(ssh_keys)); + data.users.insert(key, Value::Object(user)); + store_tags(data, &user_arn, b); + ok(json!({ "ServerId": server_id, "UserName": user_name })) + } + + fn describe_user(&self, ctx: &Ctx, b: &Value) -> Result { + let server_id = req_str(b, "ServerId")?.to_string(); + let user_name = req_str(b, "UserName")?.to_string(); + let guard = self.state.read(); + let data = guard + .get(&ctx.account) + .ok_or_else(|| not_found(&format!("Server {server_id} does not exist.")))?; + self.require_server(data, &server_id)?; + let user = data + .users + .get(&format!("{server_id}/{user_name}")) + .ok_or_else(|| not_found(&format!("User {user_name} does not exist.")))?; + let mut out = user.as_object().unwrap().clone(); + let arn = out + .get("Arn") + .and_then(Value::as_str) + .unwrap_or("") + .to_string(); + if let Some(tags) = tags_list(data, &arn) { + out.insert("Tags".into(), tags); + } + ok(json!({ "ServerId": server_id, "User": Value::Object(out) })) + } + + fn update_user(&self, ctx: &Ctx, b: &Value) -> Result { + let server_id = req_str(b, "ServerId")?.to_string(); + let user_name = req_str(b, "UserName")?.to_string(); + let mut guard = self.state.write(); + let data = guard.get_or_create(&ctx.account); + self.require_server(data, &server_id)?; + let user = data + .users + .get_mut(&format!("{server_id}/{user_name}")) + .ok_or_else(|| not_found(&format!("User {user_name} does not exist.")))?; + copy_present(b, user.as_object_mut().unwrap(), USER_FIELDS); + ok(json!({ "ServerId": server_id, "UserName": user_name })) + } + + fn delete_user(&self, ctx: &Ctx, b: &Value) -> Result { + let server_id = req_str(b, "ServerId")?.to_string(); + let user_name = req_str(b, "UserName")?.to_string(); + let mut guard = self.state.write(); + let data = guard.get_or_create(&ctx.account); + self.require_server(data, &server_id)?; + let user = data + .users + .remove(&format!("{server_id}/{user_name}")) + .ok_or_else(|| not_found(&format!("User {user_name} does not exist.")))?; + if let Some(arn) = user.get("Arn").and_then(Value::as_str) { + data.tags.remove(arn); + } + ok(json!({})) + } + + fn list_users(&self, ctx: &Ctx, b: &Value) -> Result { + let server_id = req_str(b, "ServerId")?.to_string(); + let guard = self.state.read(); + let data = guard + .get(&ctx.account) + .ok_or_else(|| not_found(&format!("Server {server_id} does not exist.")))?; + self.require_server(data, &server_id)?; + let prefix = format!("{server_id}/"); + let rows: Vec = data + .users + .iter() + .filter(|(k, _)| k.starts_with(&prefix)) + .map(|(_, u)| listed_user(u)) + .collect(); + ok(list_response( + "Users", + rows, + b, + &[("ServerId", json!(server_id))], + )) + } + + fn import_ssh_public_key(&self, ctx: &Ctx, b: &Value) -> Result { + let server_id = req_str(b, "ServerId")?.to_string(); + let user_name = req_str(b, "UserName")?.to_string(); + let body = req_str(b, "SshPublicKeyBody")?.to_string(); + let mut guard = self.state.write(); + let data = guard.get_or_create(&ctx.account); + self.require_server(data, &server_id)?; + let user = data + .users + .get_mut(&format!("{server_id}/{user_name}")) + .ok_or_else(|| not_found(&format!("User {user_name} does not exist.")))?; + let key_id = format!("key-{}", hex17()); + let keys = user + .as_object_mut() + .unwrap() + .entry("SshPublicKeys") + .or_insert_with(|| json!([])); + if let Some(arr) = keys.as_array_mut() { + if arr + .iter() + .any(|k| k.get("SshPublicKeyBody").and_then(Value::as_str) == Some(body.as_str())) + { + return Err(resource_exists("The SSH public key already exists.")); + } + arr.push(json!({ + "SshPublicKeyId": key_id, + "SshPublicKeyBody": body, + "DateImported": now_ts() + })); + } + ok(json!({ + "ServerId": server_id, + "SshPublicKeyId": key_id, + "UserName": user_name + })) + } + + fn delete_ssh_public_key(&self, ctx: &Ctx, b: &Value) -> Result { + let server_id = req_str(b, "ServerId")?.to_string(); + let user_name = req_str(b, "UserName")?.to_string(); + let key_id = req_str(b, "SshPublicKeyId")?.to_string(); + let mut guard = self.state.write(); + let data = guard.get_or_create(&ctx.account); + self.require_server(data, &server_id)?; + let user = data + .users + .get_mut(&format!("{server_id}/{user_name}")) + .ok_or_else(|| not_found(&format!("User {user_name} does not exist.")))?; + let keys = user + .as_object_mut() + .unwrap() + .get_mut("SshPublicKeys") + .and_then(Value::as_array_mut); + let removed = match keys { + Some(arr) => { + let before = arr.len(); + arr.retain(|k| { + k.get("SshPublicKeyId").and_then(Value::as_str) != Some(key_id.as_str()) + }); + arr.len() != before + } + None => false, + }; + if !removed { + return Err(not_found(&format!( + "SSH public key {key_id} does not exist." + ))); + } + ok(json!({})) + } +} + +fn listed_user(user: &Value) -> Value { + let mut out = Map::new(); + for f in [ + "Arn", + "HomeDirectory", + "HomeDirectoryType", + "Role", + "UserName", + ] { + if let Some(v) = user.get(f) { + out.insert(f.to_string(), v.clone()); + } + } + let count = user + .get("SshPublicKeys") + .and_then(Value::as_array) + .map(|a| a.len()) + .unwrap_or(0); + out.insert("SshPublicKeyCount".into(), json!(count)); + Value::Object(out) +} + +// ===================== host keys ===================== + +impl TransferService { + fn import_host_key(&self, ctx: &Ctx, b: &Value) -> Result { + let server_id = req_str(b, "ServerId")?.to_string(); + req_str(b, "HostKeyBody")?; + let mut guard = self.state.write(); + let data = guard.get_or_create(&ctx.account); + self.require_server(data, &server_id)?; + let host_key_id = format!("hostkey-{}", hex17()); + let key = format!("{server_id}/{host_key_id}"); + let hk_arn = arn(ctx, &format!("host-key/{server_id}/{host_key_id}")); + let mut hk = Map::new(); + hk.insert("Arn".into(), json!(hk_arn)); + hk.insert("HostKeyId".into(), json!(host_key_id)); + hk.insert( + "HostKeyFingerprint".into(), + json!(format!("SHA256:{}", hex17())), + ); + hk.insert("Type".into(), json!("ssh-rsa")); + hk.insert("DateImported".into(), json!(now_ts())); + copy_present(b, &mut hk, &["Description"]); + data.host_keys.insert(key, Value::Object(hk)); + store_tags(data, &hk_arn, b); + ok(json!({ "ServerId": server_id, "HostKeyId": host_key_id })) + } + + fn update_host_key(&self, ctx: &Ctx, b: &Value) -> Result { + let server_id = req_str(b, "ServerId")?.to_string(); + let host_key_id = req_str(b, "HostKeyId")?.to_string(); + let description = req_str(b, "Description")?.to_string(); + let mut guard = self.state.write(); + let data = guard.get_or_create(&ctx.account); + let hk = data + .host_keys + .get_mut(&format!("{server_id}/{host_key_id}")) + .ok_or_else(|| not_found(&format!("Host key {host_key_id} does not exist.")))?; + hk.as_object_mut() + .unwrap() + .insert("Description".into(), json!(description)); + ok(json!({ "ServerId": server_id, "HostKeyId": host_key_id })) + } + + fn describe_host_key(&self, ctx: &Ctx, b: &Value) -> Result { + let server_id = req_str(b, "ServerId")?.to_string(); + let host_key_id = req_str(b, "HostKeyId")?.to_string(); + let guard = self.state.read(); + let data = guard + .get(&ctx.account) + .ok_or_else(|| not_found(&format!("Host key {host_key_id} does not exist.")))?; + let hk = data + .host_keys + .get(&format!("{server_id}/{host_key_id}")) + .ok_or_else(|| not_found(&format!("Host key {host_key_id} does not exist.")))?; + let mut out = hk.as_object().unwrap().clone(); + let arn = out + .get("Arn") + .and_then(Value::as_str) + .unwrap_or("") + .to_string(); + if let Some(tags) = tags_list(data, &arn) { + out.insert("Tags".into(), tags); + } + ok(json!({ "HostKey": Value::Object(out) })) + } + + fn delete_host_key(&self, ctx: &Ctx, b: &Value) -> Result { + let server_id = req_str(b, "ServerId")?.to_string(); + let host_key_id = req_str(b, "HostKeyId")?.to_string(); + let mut guard = self.state.write(); + let data = guard.get_or_create(&ctx.account); + let hk = data + .host_keys + .remove(&format!("{server_id}/{host_key_id}")) + .ok_or_else(|| not_found(&format!("Host key {host_key_id} does not exist.")))?; + if let Some(arn) = hk.get("Arn").and_then(Value::as_str) { + data.tags.remove(arn); + } + ok(json!({})) + } + + fn list_host_keys(&self, ctx: &Ctx, b: &Value) -> Result { + let server_id = req_str(b, "ServerId")?.to_string(); + let guard = self.state.read(); + let data = guard + .get(&ctx.account) + .ok_or_else(|| not_found(&format!("Server {server_id} does not exist.")))?; + self.require_server(data, &server_id)?; + let prefix = format!("{server_id}/"); + let rows: Vec = data + .host_keys + .iter() + .filter(|(k, _)| k.starts_with(&prefix)) + .map(|(_, hk)| listed_host_key(hk)) + .collect(); + ok(list_response( + "HostKeys", + rows, + b, + &[("ServerId", json!(server_id))], + )) + } +} + +fn listed_host_key(hk: &Value) -> Value { + let mut out = Map::new(); + for (src, dst) in [ + ("Arn", "Arn"), + ("HostKeyId", "HostKeyId"), + ("HostKeyFingerprint", "Fingerprint"), + ("Description", "Description"), + ("Type", "Type"), + ("DateImported", "DateImported"), + ] { + if let Some(v) = hk.get(src) { + out.insert(dst.to_string(), v.clone()); + } + } + Value::Object(out) +} + +// ===================== accesses ===================== + +const ACCESS_FIELDS: &[&str] = &[ + "HomeDirectory", + "HomeDirectoryMappings", + "HomeDirectoryType", + "Policy", + "PosixProfile", + "Role", +]; + +impl TransferService { + fn create_access(&self, ctx: &Ctx, b: &Value) -> Result { + let server_id = req_str(b, "ServerId")?.to_string(); + let external_id = req_str(b, "ExternalId")?.to_string(); + req_str(b, "Role")?; + let mut guard = self.state.write(); + let data = guard.get_or_create(&ctx.account); + self.require_server(data, &server_id)?; + let key = format!("{server_id}/{external_id}"); + if data.accesses.contains_key(&key) { + return Err(resource_exists(&format!( + "Access for {external_id} already exists." + ))); + } + let mut acc = Map::new(); + acc.insert("ExternalId".into(), json!(external_id)); + copy_present(b, &mut acc, ACCESS_FIELDS); + data.accesses.insert(key, Value::Object(acc)); + ok(json!({ "ServerId": server_id, "ExternalId": external_id })) + } + + fn update_access(&self, ctx: &Ctx, b: &Value) -> Result { + let server_id = req_str(b, "ServerId")?.to_string(); + let external_id = req_str(b, "ExternalId")?.to_string(); + let mut guard = self.state.write(); + let data = guard.get_or_create(&ctx.account); + self.require_server(data, &server_id)?; + let acc = data + .accesses + .get_mut(&format!("{server_id}/{external_id}")) + .ok_or_else(|| not_found(&format!("Access {external_id} does not exist.")))?; + copy_present(b, acc.as_object_mut().unwrap(), ACCESS_FIELDS); + ok(json!({ "ServerId": server_id, "ExternalId": external_id })) + } + + fn describe_access(&self, ctx: &Ctx, b: &Value) -> Result { + let server_id = req_str(b, "ServerId")?.to_string(); + let external_id = req_str(b, "ExternalId")?.to_string(); + let guard = self.state.read(); + let data = guard + .get(&ctx.account) + .ok_or_else(|| not_found(&format!("Access {external_id} does not exist.")))?; + let acc = data + .accesses + .get(&format!("{server_id}/{external_id}")) + .ok_or_else(|| not_found(&format!("Access {external_id} does not exist.")))?; + ok(json!({ "ServerId": server_id, "Access": acc })) + } + + fn delete_access(&self, ctx: &Ctx, b: &Value) -> Result { + let server_id = req_str(b, "ServerId")?.to_string(); + let external_id = req_str(b, "ExternalId")?.to_string(); + let mut guard = self.state.write(); + let data = guard.get_or_create(&ctx.account); + data.accesses + .remove(&format!("{server_id}/{external_id}")) + .ok_or_else(|| not_found(&format!("Access {external_id} does not exist.")))?; + ok(json!({})) + } + + fn list_accesses(&self, ctx: &Ctx, b: &Value) -> Result { + let server_id = req_str(b, "ServerId")?.to_string(); + let guard = self.state.read(); + let data = guard + .get(&ctx.account) + .ok_or_else(|| not_found(&format!("Server {server_id} does not exist.")))?; + self.require_server(data, &server_id)?; + let prefix = format!("{server_id}/"); + let rows: Vec = data + .accesses + .iter() + .filter(|(k, _)| k.starts_with(&prefix)) + .map(|(_, a)| { + let mut out = Map::new(); + for f in ["HomeDirectory", "HomeDirectoryType", "Role", "ExternalId"] { + if let Some(v) = a.get(f) { + out.insert(f.to_string(), v.clone()); + } + } + Value::Object(out) + }) + .collect(); + ok(list_response( + "Accesses", + rows, + b, + &[("ServerId", json!(server_id))], + )) + } +} + +// ===================== workflows + executions ===================== + +impl TransferService { + fn create_workflow(&self, ctx: &Ctx, b: &Value) -> Result { + if b.get("Steps").and_then(Value::as_array).is_none() { + return Err(invalid_request("Steps is required.")); + } + let workflow_id = format!("w-{}", hex17()); + let wf_arn = arn(ctx, &format!("workflow/{workflow_id}")); + let mut wf = Map::new(); + wf.insert("Arn".into(), json!(wf_arn)); + wf.insert("WorkflowId".into(), json!(workflow_id)); + copy_present(b, &mut wf, &["Description", "Steps", "OnExceptionSteps"]); + let mut guard = self.state.write(); + let data = guard.get_or_create(&ctx.account); + data.workflows + .insert(workflow_id.clone(), Value::Object(wf)); + store_tags(data, &wf_arn, b); + ok(json!({ "WorkflowId": workflow_id })) + } + + fn describe_workflow(&self, ctx: &Ctx, b: &Value) -> Result { + let workflow_id = req_str(b, "WorkflowId")?.to_string(); + let guard = self.state.read(); + let data = guard + .get(&ctx.account) + .ok_or_else(|| not_found(&format!("Workflow {workflow_id} does not exist.")))?; + let wf = data + .workflows + .get(&workflow_id) + .ok_or_else(|| not_found(&format!("Workflow {workflow_id} does not exist.")))?; + let mut out = wf.as_object().unwrap().clone(); + let arn = out + .get("Arn") + .and_then(Value::as_str) + .unwrap_or("") + .to_string(); + if let Some(tags) = tags_list(data, &arn) { + out.insert("Tags".into(), tags); + } + ok(json!({ "Workflow": Value::Object(out) })) + } + + fn delete_workflow(&self, ctx: &Ctx, b: &Value) -> Result { + let workflow_id = req_str(b, "WorkflowId")?.to_string(); + let mut guard = self.state.write(); + let data = guard.get_or_create(&ctx.account); + let wf = data + .workflows + .remove(&workflow_id) + .ok_or_else(|| not_found(&format!("Workflow {workflow_id} does not exist.")))?; + if let Some(arn) = wf.get("Arn").and_then(Value::as_str) { + data.tags.remove(arn); + } + let prefix = format!("{workflow_id}/"); + data.executions.retain(|k, _| !k.starts_with(&prefix)); + ok(json!({})) + } + + fn list_workflows(&self, ctx: &Ctx, b: &Value) -> Result { + let guard = self.state.read(); + let rows: Vec = guard + .get(&ctx.account) + .map(|d| { + d.workflows + .values() + .map(|w| { + let mut out = Map::new(); + for f in ["WorkflowId", "Description", "Arn"] { + if let Some(v) = w.get(f) { + out.insert(f.to_string(), v.clone()); + } + } + Value::Object(out) + }) + .collect() + }) + .unwrap_or_default(); + ok(list_response("Workflows", rows, b, &[])) + } + + fn send_workflow_step_state( + &self, + ctx: &Ctx, + b: &Value, + ) -> Result { + let workflow_id = req_str(b, "WorkflowId")?.to_string(); + let execution_id = req_str(b, "ExecutionId")?.to_string(); + req_str(b, "Token")?; + req_str(b, "Status")?; + let guard = self.state.read(); + let data = guard + .get(&ctx.account) + .ok_or_else(|| not_found(&format!("Execution {execution_id} does not exist.")))?; + if !data + .executions + .contains_key(&format!("{workflow_id}/{execution_id}")) + { + return Err(not_found(&format!( + "Execution {execution_id} does not exist." + ))); + } + ok(json!({})) + } + + fn describe_execution(&self, ctx: &Ctx, b: &Value) -> Result { + let workflow_id = req_str(b, "WorkflowId")?.to_string(); + let execution_id = req_str(b, "ExecutionId")?.to_string(); + let guard = self.state.read(); + let data = guard + .get(&ctx.account) + .ok_or_else(|| not_found(&format!("Execution {execution_id} does not exist.")))?; + let exec = data + .executions + .get(&format!("{workflow_id}/{execution_id}")) + .ok_or_else(|| not_found(&format!("Execution {execution_id} does not exist.")))?; + ok(json!({ "WorkflowId": workflow_id, "Execution": exec })) + } + + fn list_executions(&self, ctx: &Ctx, b: &Value) -> Result { + let workflow_id = req_str(b, "WorkflowId")?.to_string(); + let guard = self.state.read(); + let data = guard + .get(&ctx.account) + .ok_or_else(|| not_found(&format!("Workflow {workflow_id} does not exist.")))?; + if !data.workflows.contains_key(&workflow_id) { + return Err(not_found(&format!( + "Workflow {workflow_id} does not exist." + ))); + } + let prefix = format!("{workflow_id}/"); + let rows: Vec = data + .executions + .iter() + .filter(|(k, _)| k.starts_with(&prefix)) + .map(|(_, e)| { + let mut out = Map::new(); + for f in [ + "ExecutionId", + "InitialFileLocation", + "ServiceMetadata", + "Status", + ] { + if let Some(v) = e.get(f) { + out.insert(f.to_string(), v.clone()); + } + } + Value::Object(out) + }) + .collect(); + ok(list_response( + "Executions", + rows, + b, + &[("WorkflowId", json!(workflow_id))], + )) + } +} + +// ===================== agreements ===================== + +const AGREEMENT_FIELDS: &[&str] = &[ + "Description", + "Status", + "LocalProfileId", + "PartnerProfileId", + "BaseDirectory", + "AccessRole", + "PreserveFilename", + "EnforceMessageSigning", + "CustomDirectories", +]; + +impl TransferService { + fn create_agreement(&self, ctx: &Ctx, b: &Value) -> Result { + let server_id = req_str(b, "ServerId")?.to_string(); + req_str(b, "LocalProfileId")?; + req_str(b, "PartnerProfileId")?; + req_str(b, "AccessRole")?; + let mut guard = self.state.write(); + let data = guard.get_or_create(&ctx.account); + self.require_server(data, &server_id)?; + let agreement_id = format!("a-{}", hex17()); + let ag_arn = arn(ctx, &format!("agreement/{agreement_id}")); + let mut ag = Map::new(); + ag.insert("Arn".into(), json!(ag_arn)); + ag.insert("AgreementId".into(), json!(agreement_id)); + ag.insert("ServerId".into(), json!(server_id)); + ag.insert( + "Status".into(), + b.get("Status").cloned().unwrap_or(json!("ACTIVE")), + ); + copy_present(b, &mut ag, AGREEMENT_FIELDS); + data.agreements + .insert(format!("{server_id}/{agreement_id}"), Value::Object(ag)); + store_tags(data, &ag_arn, b); + ok(json!({ "AgreementId": agreement_id })) + } + + fn update_agreement(&self, ctx: &Ctx, b: &Value) -> Result { + let agreement_id = req_str(b, "AgreementId")?.to_string(); + let server_id = req_str(b, "ServerId")?.to_string(); + let mut guard = self.state.write(); + let data = guard.get_or_create(&ctx.account); + let ag = data + .agreements + .get_mut(&format!("{server_id}/{agreement_id}")) + .ok_or_else(|| not_found(&format!("Agreement {agreement_id} does not exist.")))?; + copy_present(b, ag.as_object_mut().unwrap(), AGREEMENT_FIELDS); + ok(json!({ "AgreementId": agreement_id })) + } + + fn describe_agreement(&self, ctx: &Ctx, b: &Value) -> Result { + let agreement_id = req_str(b, "AgreementId")?.to_string(); + let server_id = req_str(b, "ServerId")?.to_string(); + let guard = self.state.read(); + let data = guard + .get(&ctx.account) + .ok_or_else(|| not_found(&format!("Agreement {agreement_id} does not exist.")))?; + let ag = data + .agreements + .get(&format!("{server_id}/{agreement_id}")) + .ok_or_else(|| not_found(&format!("Agreement {agreement_id} does not exist.")))?; + let mut out = ag.as_object().unwrap().clone(); + let arn = out + .get("Arn") + .and_then(Value::as_str) + .unwrap_or("") + .to_string(); + if let Some(tags) = tags_list(data, &arn) { + out.insert("Tags".into(), tags); + } + ok(json!({ "Agreement": Value::Object(out) })) + } + + fn delete_agreement(&self, ctx: &Ctx, b: &Value) -> Result { + let agreement_id = req_str(b, "AgreementId")?.to_string(); + let server_id = req_str(b, "ServerId")?.to_string(); + let mut guard = self.state.write(); + let data = guard.get_or_create(&ctx.account); + let ag = data + .agreements + .remove(&format!("{server_id}/{agreement_id}")) + .ok_or_else(|| not_found(&format!("Agreement {agreement_id} does not exist.")))?; + if let Some(arn) = ag.get("Arn").and_then(Value::as_str) { + data.tags.remove(arn); + } + ok(json!({})) + } + + fn list_agreements(&self, ctx: &Ctx, b: &Value) -> Result { + let server_id = req_str(b, "ServerId")?.to_string(); + let guard = self.state.read(); + let data = guard + .get(&ctx.account) + .ok_or_else(|| not_found(&format!("Server {server_id} does not exist.")))?; + self.require_server(data, &server_id)?; + let prefix = format!("{server_id}/"); + let rows: Vec = data + .agreements + .iter() + .filter(|(k, _)| k.starts_with(&prefix)) + .map(|(_, a)| { + let mut out = Map::new(); + for f in [ + "Arn", + "AgreementId", + "Description", + "Status", + "ServerId", + "LocalProfileId", + "PartnerProfileId", + ] { + if let Some(v) = a.get(f) { + out.insert(f.to_string(), v.clone()); + } + } + Value::Object(out) + }) + .collect(); + ok(list_response("Agreements", rows, b, &[])) + } +} + +// ===================== connectors ===================== + +const CONNECTOR_FIELDS: &[&str] = &[ + "Url", + "As2Config", + "AccessRole", + "LoggingRole", + "SftpConfig", + "SecurityPolicyName", + "IpAddressType", +]; + +impl TransferService { + fn require_connector<'a>( + &self, + data: &'a TransferData, + connector_id: &str, + ) -> Result<&'a Value, AwsServiceError> { + data.connectors + .get(connector_id) + .ok_or_else(|| not_found(&format!("Connector {connector_id} does not exist."))) + } + + fn create_connector(&self, ctx: &Ctx, b: &Value) -> Result { + req_str(b, "AccessRole")?; + let connector_id = format!("c-{}", hex17()); + let c_arn = arn(ctx, &format!("connector/{connector_id}")); + let mut c = Map::new(); + c.insert("Arn".into(), json!(c_arn)); + c.insert("ConnectorId".into(), json!(connector_id)); + c.insert("EgressType".into(), json!("SERVICE_MANAGED")); + c.insert("Status".into(), json!("ACTIVE")); + c.insert( + "ServiceManagedEgressIpAddresses".into(), + json!(["3.219.0.10", "52.4.0.20"]), + ); + copy_present(b, &mut c, CONNECTOR_FIELDS); + let mut guard = self.state.write(); + let data = guard.get_or_create(&ctx.account); + data.connectors + .insert(connector_id.clone(), Value::Object(c)); + store_tags(data, &c_arn, b); + ok(json!({ "ConnectorId": connector_id })) + } + + fn update_connector(&self, ctx: &Ctx, b: &Value) -> Result { + let connector_id = req_str(b, "ConnectorId")?.to_string(); + let mut guard = self.state.write(); + let data = guard.get_or_create(&ctx.account); + let c = data + .connectors + .get_mut(&connector_id) + .ok_or_else(|| not_found(&format!("Connector {connector_id} does not exist.")))?; + copy_present(b, c.as_object_mut().unwrap(), CONNECTOR_FIELDS); + ok(json!({ "ConnectorId": connector_id })) + } + + fn describe_connector(&self, ctx: &Ctx, b: &Value) -> Result { + let connector_id = req_str(b, "ConnectorId")?.to_string(); + let guard = self.state.read(); + let data = guard + .get(&ctx.account) + .ok_or_else(|| not_found(&format!("Connector {connector_id} does not exist.")))?; + let c = self.require_connector(data, &connector_id)?; + let mut out = c.as_object().unwrap().clone(); + let arn = out + .get("Arn") + .and_then(Value::as_str) + .unwrap_or("") + .to_string(); + if let Some(tags) = tags_list(data, &arn) { + out.insert("Tags".into(), tags); + } + ok(json!({ "Connector": Value::Object(out) })) + } + + fn delete_connector(&self, ctx: &Ctx, b: &Value) -> Result { + let connector_id = req_str(b, "ConnectorId")?.to_string(); + let mut guard = self.state.write(); + let data = guard.get_or_create(&ctx.account); + let c = data + .connectors + .remove(&connector_id) + .ok_or_else(|| not_found(&format!("Connector {connector_id} does not exist.")))?; + if let Some(arn) = c.get("Arn").and_then(Value::as_str) { + data.tags.remove(arn); + } + let prefix = format!("{connector_id}/"); + data.file_transfers.retain(|k, _| !k.starts_with(&prefix)); + ok(json!({})) + } + + fn list_connectors(&self, ctx: &Ctx, b: &Value) -> Result { + let guard = self.state.read(); + let rows: Vec = guard + .get(&ctx.account) + .map(|d| { + d.connectors + .values() + .map(|c| { + let mut out = Map::new(); + for f in ["Arn", "ConnectorId", "Url"] { + if let Some(v) = c.get(f) { + out.insert(f.to_string(), v.clone()); + } + } + Value::Object(out) + }) + .collect() + }) + .unwrap_or_default(); + ok(list_response("Connectors", rows, b, &[])) + } + + fn test_connection(&self, ctx: &Ctx, b: &Value) -> Result { + let connector_id = req_str(b, "ConnectorId")?.to_string(); + let guard = self.state.read(); + let data = guard + .get(&ctx.account) + .ok_or_else(|| not_found(&format!("Connector {connector_id} does not exist.")))?; + self.require_connector(data, &connector_id)?; + ok(json!({ + "ConnectorId": connector_id, + "Status": "OK", + "StatusMessage": "Connection succeeded" + })) + } + + fn start_directory_listing( + &self, + ctx: &Ctx, + b: &Value, + ) -> Result { + let connector_id = req_str(b, "ConnectorId")?.to_string(); + req_str(b, "RemoteDirectoryPath")?; + req_str(b, "OutputDirectoryPath")?; + let guard = self.state.read(); + let data = guard + .get(&ctx.account) + .ok_or_else(|| not_found(&format!("Connector {connector_id} does not exist.")))?; + self.require_connector(data, &connector_id)?; + let listing_id = Uuid::new_v4().to_string(); + ok(json!({ + "ListingId": listing_id, + "OutputFileName": format!("{connector_id}-{listing_id}.json") + })) + } + + fn start_file_transfer(&self, ctx: &Ctx, b: &Value) -> Result { + let connector_id = req_str(b, "ConnectorId")?.to_string(); + let mut guard = self.state.write(); + let data = guard.get_or_create(&ctx.account); + self.require_connector(data, &connector_id)?; + let transfer_id = Uuid::new_v4().to_string(); + // Record a completed result per requested path so + // ListFileTransferResults reflects the transfer. + let mut results = Vec::new(); + for field in ["SendFilePaths", "RetrieveFilePaths"] { + if let Some(paths) = b.get(field).and_then(Value::as_array) { + for p in paths.iter().filter_map(Value::as_str) { + results.push(json!({ "FilePath": p, "StatusCode": "COMPLETED" })); + } + } + } + data.file_transfers.insert( + format!("{connector_id}/{transfer_id}"), + json!({ "Results": results }), + ); + ok(json!({ "TransferId": transfer_id })) + } + + fn start_remote_delete(&self, ctx: &Ctx, b: &Value) -> Result { + let connector_id = req_str(b, "ConnectorId")?.to_string(); + req_str(b, "DeletePath")?; + let guard = self.state.read(); + let data = guard + .get(&ctx.account) + .ok_or_else(|| not_found(&format!("Connector {connector_id} does not exist.")))?; + self.require_connector(data, &connector_id)?; + ok(json!({ "DeleteId": Uuid::new_v4().to_string() })) + } + + fn start_remote_move(&self, ctx: &Ctx, b: &Value) -> Result { + let connector_id = req_str(b, "ConnectorId")?.to_string(); + req_str(b, "SourcePath")?; + req_str(b, "TargetPath")?; + let guard = self.state.read(); + let data = guard + .get(&ctx.account) + .ok_or_else(|| not_found(&format!("Connector {connector_id} does not exist.")))?; + self.require_connector(data, &connector_id)?; + ok(json!({ "MoveId": Uuid::new_v4().to_string() })) + } + + fn list_file_transfer_results( + &self, + ctx: &Ctx, + b: &Value, + ) -> Result { + let connector_id = req_str(b, "ConnectorId")?.to_string(); + let transfer_id = req_str(b, "TransferId")?.to_string(); + let guard = self.state.read(); + let data = guard + .get(&ctx.account) + .ok_or_else(|| not_found(&format!("Connector {connector_id} does not exist.")))?; + self.require_connector(data, &connector_id)?; + let rows: Vec = data + .file_transfers + .get(&format!("{connector_id}/{transfer_id}")) + .and_then(|t| t.get("Results")) + .and_then(Value::as_array) + .cloned() + .unwrap_or_default(); + ok(list_response("FileTransferResults", rows, b, &[])) + } +} + +// ===================== profiles ===================== + +impl TransferService { + fn create_profile(&self, ctx: &Ctx, b: &Value) -> Result { + req_str(b, "As2Id")?; + req_str(b, "ProfileType")?; + let profile_id = format!("p-{}", hex17()); + let p_arn = arn(ctx, &format!("profile/{profile_id}")); + let mut p = Map::new(); + p.insert("Arn".into(), json!(p_arn)); + p.insert("ProfileId".into(), json!(profile_id)); + copy_present(b, &mut p, &["As2Id", "ProfileType", "CertificateIds"]); + let mut guard = self.state.write(); + let data = guard.get_or_create(&ctx.account); + data.profiles.insert(profile_id.clone(), Value::Object(p)); + store_tags(data, &p_arn, b); + ok(json!({ "ProfileId": profile_id })) + } + + fn update_profile(&self, ctx: &Ctx, b: &Value) -> Result { + let profile_id = req_str(b, "ProfileId")?.to_string(); + let mut guard = self.state.write(); + let data = guard.get_or_create(&ctx.account); + let p = data + .profiles + .get_mut(&profile_id) + .ok_or_else(|| not_found(&format!("Profile {profile_id} does not exist.")))?; + copy_present(b, p.as_object_mut().unwrap(), &["CertificateIds"]); + ok(json!({ "ProfileId": profile_id })) + } + + fn describe_profile(&self, ctx: &Ctx, b: &Value) -> Result { + let profile_id = req_str(b, "ProfileId")?.to_string(); + let guard = self.state.read(); + let data = guard + .get(&ctx.account) + .ok_or_else(|| not_found(&format!("Profile {profile_id} does not exist.")))?; + let p = data + .profiles + .get(&profile_id) + .ok_or_else(|| not_found(&format!("Profile {profile_id} does not exist.")))?; + let mut out = p.as_object().unwrap().clone(); + let arn = out + .get("Arn") + .and_then(Value::as_str) + .unwrap_or("") + .to_string(); + if let Some(tags) = tags_list(data, &arn) { + out.insert("Tags".into(), tags); + } + ok(json!({ "Profile": Value::Object(out) })) + } + + fn delete_profile(&self, ctx: &Ctx, b: &Value) -> Result { + let profile_id = req_str(b, "ProfileId")?.to_string(); + let mut guard = self.state.write(); + let data = guard.get_or_create(&ctx.account); + let p = data + .profiles + .remove(&profile_id) + .ok_or_else(|| not_found(&format!("Profile {profile_id} does not exist.")))?; + if let Some(arn) = p.get("Arn").and_then(Value::as_str) { + data.tags.remove(arn); + } + ok(json!({})) + } + + fn list_profiles(&self, ctx: &Ctx, b: &Value) -> Result { + let filter = opt_str(b, "ProfileType").map(String::from); + let guard = self.state.read(); + let rows: Vec = guard + .get(&ctx.account) + .map(|d| { + d.profiles + .values() + .filter(|p| { + filter + .as_deref() + .is_none_or(|f| p.get("ProfileType").and_then(Value::as_str) == Some(f)) + }) + .map(|p| { + let mut out = Map::new(); + for f in ["Arn", "ProfileId", "As2Id", "ProfileType"] { + if let Some(v) = p.get(f) { + out.insert(f.to_string(), v.clone()); + } + } + Value::Object(out) + }) + .collect() + }) + .unwrap_or_default(); + ok(list_response("Profiles", rows, b, &[])) + } +} + +// ===================== certificates ===================== + +impl TransferService { + fn import_certificate(&self, ctx: &Ctx, b: &Value) -> Result { + req_str(b, "Usage")?; + req_str(b, "Certificate")?; + let certificate_id = format!("cert-{}", hex17()); + let c_arn = arn(ctx, &format!("certificate/{certificate_id}")); + let mut c = Map::new(); + c.insert("Arn".into(), json!(c_arn)); + c.insert("CertificateId".into(), json!(certificate_id)); + c.insert("Status".into(), json!("ACTIVE")); + c.insert("Type".into(), json!("CERTIFICATE")); + copy_present( + b, + &mut c, + &[ + "Usage", + "Certificate", + "CertificateChain", + "ActiveDate", + "InactiveDate", + "Description", + ], + ); + let mut guard = self.state.write(); + let data = guard.get_or_create(&ctx.account); + data.certificates + .insert(certificate_id.clone(), Value::Object(c)); + store_tags(data, &c_arn, b); + ok(json!({ "CertificateId": certificate_id })) + } + + fn update_certificate(&self, ctx: &Ctx, b: &Value) -> Result { + let certificate_id = req_str(b, "CertificateId")?.to_string(); + let mut guard = self.state.write(); + let data = guard.get_or_create(&ctx.account); + let c = data + .certificates + .get_mut(&certificate_id) + .ok_or_else(|| not_found(&format!("Certificate {certificate_id} does not exist.")))?; + copy_present( + b, + c.as_object_mut().unwrap(), + &["ActiveDate", "InactiveDate", "Description"], + ); + ok(json!({ "CertificateId": certificate_id })) + } + + fn describe_certificate(&self, ctx: &Ctx, b: &Value) -> Result { + let certificate_id = req_str(b, "CertificateId")?.to_string(); + let guard = self.state.read(); + let data = guard + .get(&ctx.account) + .ok_or_else(|| not_found(&format!("Certificate {certificate_id} does not exist.")))?; + let c = data + .certificates + .get(&certificate_id) + .ok_or_else(|| not_found(&format!("Certificate {certificate_id} does not exist.")))?; + let mut out = c.as_object().unwrap().clone(); + let arn = out + .get("Arn") + .and_then(Value::as_str) + .unwrap_or("") + .to_string(); + if let Some(tags) = tags_list(data, &arn) { + out.insert("Tags".into(), tags); + } + ok(json!({ "Certificate": Value::Object(out) })) + } + + fn delete_certificate(&self, ctx: &Ctx, b: &Value) -> Result { + let certificate_id = req_str(b, "CertificateId")?.to_string(); + let mut guard = self.state.write(); + let data = guard.get_or_create(&ctx.account); + let c = data + .certificates + .remove(&certificate_id) + .ok_or_else(|| not_found(&format!("Certificate {certificate_id} does not exist.")))?; + if let Some(arn) = c.get("Arn").and_then(Value::as_str) { + data.tags.remove(arn); + } + ok(json!({})) + } + + fn list_certificates(&self, ctx: &Ctx, b: &Value) -> Result { + let guard = self.state.read(); + let rows: Vec = guard + .get(&ctx.account) + .map(|d| { + d.certificates + .values() + .map(|c| { + let mut out = Map::new(); + for f in [ + "Arn", + "CertificateId", + "Usage", + "Status", + "ActiveDate", + "InactiveDate", + "Type", + "Description", + ] { + if let Some(v) = c.get(f) { + out.insert(f.to_string(), v.clone()); + } + } + Value::Object(out) + }) + .collect() + }) + .unwrap_or_default(); + ok(list_response("Certificates", rows, b, &[])) + } +} + +// ===================== security policies ===================== + +/// The real AWS Transfer Family managed security policy names. +const SECURITY_POLICIES: &[&str] = &[ + "TransferSecurityPolicy-2018-11", + "TransferSecurityPolicy-2020-06", + "TransferSecurityPolicy-2022-03", + "TransferSecurityPolicy-2023-05", + "TransferSecurityPolicy-2024-01", + "TransferSecurityPolicy-FIPS-2020-06", + "TransferSecurityPolicy-FIPS-2023-05", + "TransferSecurityPolicy-FIPS-2024-01", + "TransferSecurityPolicy-FIPS-2024-05", + "TransferSecurityPolicy-PQ-SSH-Experimental-2023-04", + "TransferSecurityPolicy-PQ-SSH-FIPS-Experimental-2023-04", + "TransferSecurityPolicy-Restricted-2018-11", + "TransferSecurityPolicy-Restricted-2020-06", +]; + +impl TransferService { + fn describe_security_policy(&self, b: &Value) -> Result { + let name = req_str(b, "SecurityPolicyName")?; + if !SECURITY_POLICIES.contains(&name) { + return Err(not_found(&format!( + "Security policy {name} does not exist." + ))); + } + let fips = name.contains("FIPS"); + let policy_type = if name.contains("Connector") { + "CONNECTOR" + } else { + "SERVER" + }; + ok(json!({ + "SecurityPolicy": { + "SecurityPolicyName": name, + "Fips": fips, + "Type": policy_type, + "SshCiphers": ["aes256-gcm@openssh.com", "aes128-gcm@openssh.com"], + "SshKexs": ["ecdh-sha2-nistp256", "diffie-hellman-group-exchange-sha256"], + "SshMacs": ["hmac-sha2-256", "hmac-sha2-512"], + "TlsCiphers": ["TLS_AES_128_GCM_SHA256", "TLS_AES_256_GCM_SHA384"] + } + })) + } + + fn list_security_policies(&self, b: &Value) -> Result { + let rows: Vec = SECURITY_POLICIES.iter().map(|p| json!(p)).collect(); + ok(list_response("SecurityPolicyNames", rows, b, &[])) + } +} + +// ===================== web apps ===================== + +const WEB_APP_FIELDS: &[&str] = &["AccessEndpoint", "WebAppUnits", "WebAppEndpointPolicy"]; + +impl TransferService { + fn create_web_app(&self, ctx: &Ctx, b: &Value) -> Result { + if b.get("IdentityProviderDetails").is_none() { + return Err(invalid_request("IdentityProviderDetails is required.")); + } + let web_app_id = format!("webapp-{}", hex17()); + let w_arn = arn(ctx, &format!("webapp/{web_app_id}")); + let mut w = Map::new(); + w.insert("Arn".into(), json!(w_arn)); + w.insert("WebAppId".into(), json!(web_app_id)); + w.insert( + "WebAppEndpoint".into(), + json!(format!( + "{web_app_id}.transfer.{}.amazonaws.com", + ctx.region + )), + ); + w.insert("EndpointType".into(), json!("STANDARD")); + if let Some(idp) = b.get("IdentityProviderDetails") { + w.insert("DescribedIdentityProviderDetails".into(), idp.clone()); + } + copy_present(b, &mut w, WEB_APP_FIELDS); + let mut guard = self.state.write(); + let data = guard.get_or_create(&ctx.account); + data.web_apps.insert(web_app_id.clone(), Value::Object(w)); + store_tags(data, &w_arn, b); + ok(json!({ "WebAppId": web_app_id })) + } + + fn update_web_app(&self, ctx: &Ctx, b: &Value) -> Result { + let web_app_id = req_str(b, "WebAppId")?.to_string(); + let mut guard = self.state.write(); + let data = guard.get_or_create(&ctx.account); + let w = data + .web_apps + .get_mut(&web_app_id) + .ok_or_else(|| not_found(&format!("Web app {web_app_id} does not exist.")))?; + let obj = w.as_object_mut().unwrap(); + if let Some(idp) = b.get("IdentityProviderDetails") { + obj.insert("DescribedIdentityProviderDetails".into(), idp.clone()); + } + copy_present(b, obj, WEB_APP_FIELDS); + ok(json!({ "WebAppId": web_app_id })) + } + + fn describe_web_app(&self, ctx: &Ctx, b: &Value) -> Result { + let web_app_id = req_str(b, "WebAppId")?.to_string(); + let guard = self.state.read(); + let data = guard + .get(&ctx.account) + .ok_or_else(|| not_found(&format!("Web app {web_app_id} does not exist.")))?; + let w = data + .web_apps + .get(&web_app_id) + .ok_or_else(|| not_found(&format!("Web app {web_app_id} does not exist.")))?; + let mut out = w.as_object().unwrap().clone(); + let arn = out + .get("Arn") + .and_then(Value::as_str) + .unwrap_or("") + .to_string(); + if let Some(tags) = tags_list(data, &arn) { + out.insert("Tags".into(), tags); + } + ok(json!({ "WebApp": Value::Object(out) })) + } + + fn delete_web_app(&self, ctx: &Ctx, b: &Value) -> Result { + let web_app_id = req_str(b, "WebAppId")?.to_string(); + let mut guard = self.state.write(); + let data = guard.get_or_create(&ctx.account); + let w = data + .web_apps + .remove(&web_app_id) + .ok_or_else(|| not_found(&format!("Web app {web_app_id} does not exist.")))?; + data.web_app_customizations.remove(&web_app_id); + if let Some(arn) = w.get("Arn").and_then(Value::as_str) { + data.tags.remove(arn); + } + ok(json!({})) + } + + fn list_web_apps(&self, ctx: &Ctx, b: &Value) -> Result { + let guard = self.state.read(); + let rows: Vec = guard + .get(&ctx.account) + .map(|d| { + d.web_apps + .values() + .map(|w| { + let mut out = Map::new(); + for f in [ + "Arn", + "WebAppId", + "AccessEndpoint", + "WebAppEndpoint", + "EndpointType", + ] { + if let Some(v) = w.get(f) { + out.insert(f.to_string(), v.clone()); + } + } + Value::Object(out) + }) + .collect() + }) + .unwrap_or_default(); + ok(list_response("WebApps", rows, b, &[])) + } + + fn update_web_app_customization( + &self, + ctx: &Ctx, + b: &Value, + ) -> Result { + let web_app_id = req_str(b, "WebAppId")?.to_string(); + let mut guard = self.state.write(); + let data = guard.get_or_create(&ctx.account); + let w = data + .web_apps + .get(&web_app_id) + .ok_or_else(|| not_found(&format!("Web app {web_app_id} does not exist.")))?; + let arn = w + .get("Arn") + .and_then(Value::as_str) + .unwrap_or("") + .replace("webapp/", "webapp-customization/"); + let mut cust = Map::new(); + cust.insert("Arn".into(), json!(arn)); + cust.insert("WebAppId".into(), json!(web_app_id)); + copy_present(b, &mut cust, &["Title", "LogoFile", "FaviconFile"]); + data.web_app_customizations + .insert(web_app_id.clone(), Value::Object(cust)); + ok(json!({ "WebAppId": web_app_id })) + } + + fn describe_web_app_customization( + &self, + ctx: &Ctx, + b: &Value, + ) -> Result { + let web_app_id = req_str(b, "WebAppId")?.to_string(); + let guard = self.state.read(); + let data = guard + .get(&ctx.account) + .ok_or_else(|| not_found(&format!("Web app {web_app_id} does not exist.")))?; + if let Some(cust) = data.web_app_customizations.get(&web_app_id) { + return ok(json!({ "WebAppCustomization": cust })); + } + // A web app with no explicit customization still yields the default + // (empty) customization record. + let w = data + .web_apps + .get(&web_app_id) + .ok_or_else(|| not_found(&format!("Web app {web_app_id} does not exist.")))?; + let arn = w + .get("Arn") + .and_then(Value::as_str) + .unwrap_or("") + .replace("webapp/", "webapp-customization/"); + ok(json!({ + "WebAppCustomization": { "Arn": arn, "WebAppId": web_app_id } + })) + } + + fn delete_web_app_customization( + &self, + ctx: &Ctx, + b: &Value, + ) -> Result { + let web_app_id = req_str(b, "WebAppId")?.to_string(); + let mut guard = self.state.write(); + let data = guard.get_or_create(&ctx.account); + if !data.web_apps.contains_key(&web_app_id) { + return Err(not_found(&format!("Web app {web_app_id} does not exist."))); + } + data.web_app_customizations.remove(&web_app_id); + ok(json!({})) + } +} + +// ===================== identity provider ===================== + +impl TransferService { + fn test_identity_provider(&self, ctx: &Ctx, b: &Value) -> Result { + let server_id = req_str(b, "ServerId")?.to_string(); + req_str(b, "UserName")?; + let guard = self.state.read(); + let data = guard + .get(&ctx.account) + .ok_or_else(|| not_found(&format!("Server {server_id} does not exist.")))?; + let srv = self.require_server(data, &server_id)?; + let idp_type = srv + .get("IdentityProviderType") + .and_then(Value::as_str) + .unwrap_or("SERVICE_MANAGED"); + let url = srv + .get("IdentityProviderDetails") + .and_then(|d| d.get("Url")) + .and_then(Value::as_str) + .unwrap_or("") + .to_string(); + ok(json!({ + "Response": format!("{{\"IdentityProviderType\":\"{idp_type}\"}}"), + "StatusCode": 200, + "Message": "", + "Url": url + })) + } +} + +// ===================== tagging ===================== + +impl TransferService { + fn tag_resource(&self, ctx: &Ctx, b: &Value) -> Result { + let resource_arn = req_str(b, "Arn")?.to_string(); + if b.get("Tags").and_then(Value::as_array).is_none() { + return Err(invalid_request("Tags is required.")); + } + let mut guard = self.state.write(); + let data = guard.get_or_create(&ctx.account); + store_tags(data, &resource_arn, b); + ok(json!({})) + } + + fn untag_resource(&self, ctx: &Ctx, b: &Value) -> Result { + let resource_arn = req_str(b, "Arn")?.to_string(); + let keys: Vec = b + .get("TagKeys") + .and_then(Value::as_array) + .map(|a| { + a.iter() + .filter_map(|v| v.as_str().map(String::from)) + .collect() + }) + .ok_or_else(|| invalid_request("TagKeys is required."))?; + let mut guard = self.state.write(); + let data = guard.get_or_create(&ctx.account); + if let Some(entry) = data.tags.get_mut(&resource_arn) { + for k in &keys { + entry.remove(k); + } + } + ok(json!({})) + } + + fn list_tags_for_resource(&self, ctx: &Ctx, b: &Value) -> Result { + let resource_arn = req_str(b, "Arn")?.to_string(); + let guard = self.state.read(); + let tags: Vec = guard + .get(&ctx.account) + .and_then(|d| d.tags.get(&resource_arn)) + .map(|m| { + m.iter() + .map(|(k, v)| json!({ "Key": k, "Value": v })) + .collect() + }) + .unwrap_or_default(); + ok(json!({ "Arn": resource_arn, "Tags": tags })) + } +} diff --git a/crates/fakecloud-transfer/src/state.rs b/crates/fakecloud-transfer/src/state.rs new file mode 100644 index 000000000..83f5e841e --- /dev/null +++ b/crates/fakecloud-transfer/src/state.rs @@ -0,0 +1,82 @@ +//! Account-partitioned, serializable state for AWS Transfer Family's +//! (`transfer`) control plane. +//! +//! Every Transfer resource is stored as an already-output-valid JSON object +//! (`serde_json::Value`) keyed by its identifier. Storing the wire shape +//! directly keeps nested configuration objects (endpoint details, +//! identity-provider details, connector config, workflow steps) round-tripping +//! verbatim and guarantees the `Describe` responses echo exactly what was +//! persisted. + +use std::collections::BTreeMap; +use std::sync::Arc; + +use parking_lot::RwLock; +use serde::{Deserialize, Serialize}; +use serde_json::Value; + +use fakecloud_core::multi_account::{AccountState, MultiAccountState}; + +pub const TRANSFER_SNAPSHOT_SCHEMA_VERSION: u32 = 1; + +/// Per-account Transfer Family state. Each resource is stored as its +/// already-output-valid `DescribedX` JSON object. +#[derive(Debug, Clone, Default, Serialize, Deserialize)] +pub struct TransferData { + /// Servers keyed by `ServerId` (`s-...`). + #[serde(default)] + pub servers: BTreeMap, + /// Users keyed by `"{ServerId}/{UserName}"`. + #[serde(default)] + pub users: BTreeMap, + /// Service-managed accesses keyed by `"{ServerId}/{ExternalId}"`. + #[serde(default)] + pub accesses: BTreeMap, + /// Host keys keyed by `"{ServerId}/{HostKeyId}"`. + #[serde(default)] + pub host_keys: BTreeMap, + /// Workflows keyed by `WorkflowId` (`w-...`). + #[serde(default)] + pub workflows: BTreeMap, + /// Workflow executions keyed by `"{WorkflowId}/{ExecutionId}"`. + #[serde(default)] + pub executions: BTreeMap, + /// AS2 agreements keyed by `"{ServerId}/{AgreementId}"`. + #[serde(default)] + pub agreements: BTreeMap, + /// Connectors keyed by `ConnectorId` (`c-...`). + #[serde(default)] + pub connectors: BTreeMap, + /// AS2 profiles keyed by `ProfileId` (`p-...`). + #[serde(default)] + pub profiles: BTreeMap, + /// Certificates keyed by `CertificateId` (`cert-...`). + #[serde(default)] + pub certificates: BTreeMap, + /// Web apps keyed by `WebAppId` (`webapp-...`). + #[serde(default)] + pub web_apps: BTreeMap, + /// Web-app customizations keyed by `WebAppId`. + #[serde(default)] + pub web_app_customizations: BTreeMap, + /// Connector file-transfer results keyed by `"{ConnectorId}/{TransferId}"`. + #[serde(default)] + pub file_transfers: BTreeMap, + /// Resource tags keyed by `Arn` -> (key -> value). + #[serde(default)] + pub tags: BTreeMap>, +} + +impl AccountState for TransferData { + fn new_for_account(_account_id: &str, _region: &str, _endpoint: &str) -> Self { + Self::default() + } +} + +pub type SharedTransferState = Arc>>; + +#[derive(Debug, Serialize, Deserialize)] +pub struct TransferSnapshot { + pub schema_version: u32, + pub accounts: MultiAccountState, +} diff --git a/crates/fakecloud-transfer/src/validate.rs b/crates/fakecloud-transfer/src/validate.rs new file mode 100644 index 000000000..92c4a193c --- /dev/null +++ b/crates/fakecloud-transfer/src/validate.rs @@ -0,0 +1,653 @@ +//! Model-derived input validation for Transfer Family operations. +//! +//! Each operation's constrained top-level input members (string `@length`, +//! integer `@range`, and `enum` value sets) are validated against the AWS +//! Smithy model. A violation yields an `InvalidRequestException`, matching the +//! real service's client-side validation. Members that are absent from the +//! request are skipped (required-field presence is enforced by the handlers). + +use http::StatusCode; +use serde_json::Value; + +use fakecloud_core::service::AwsServiceError; + +enum RuleKind { + Str { + min: Option, + max: Option, + }, + Int { + min: Option, + max: Option, + }, + Enum(&'static [&'static str]), +} + +struct Rule { + field: &'static str, + kind: RuleKind, +} + +impl Rule { + const fn str_(field: &'static str, min: Option, max: Option) -> Rule { + Rule { + field, + kind: RuleKind::Str { min, max }, + } + } + const fn int_(field: &'static str, min: Option, max: Option) -> Rule { + Rule { + field, + kind: RuleKind::Int { min, max }, + } + } + const fn enum_(field: &'static str, values: &'static [&'static str]) -> Rule { + Rule { + field, + kind: RuleKind::Enum(values), + } + } +} + +fn invalid(msg: String) -> AwsServiceError { + AwsServiceError::aws_error(StatusCode::BAD_REQUEST, "InvalidRequestException", &msg) +} + +/// Validate the constrained top-level members of `body` for `action`. +pub(crate) fn validate_input(action: &str, body: &Value) -> Result<(), AwsServiceError> { + for rule in rules_for(action) { + let Some(v) = body.get(rule.field) else { + continue; + }; + match &rule.kind { + RuleKind::Str { min, max } => { + if let Some(s) = v.as_str() { + let len = s.chars().count(); + if let Some(min) = min { + if len < *min { + return Err(invalid(format!( + "{} must have length greater than or equal to {}.", + rule.field, min + ))); + } + } + if let Some(max) = max { + if len > *max { + return Err(invalid(format!( + "{} must have length less than or equal to {}.", + rule.field, max + ))); + } + } + } + } + RuleKind::Int { min, max } => { + if let Some(n) = v.as_i64() { + if let Some(min) = min { + if n < *min { + return Err(invalid(format!( + "{} must be greater than or equal to {}.", + rule.field, min + ))); + } + } + if let Some(max) = max { + if n > *max { + return Err(invalid(format!( + "{} must be less than or equal to {}.", + rule.field, max + ))); + } + } + } + } + RuleKind::Enum(values) => { + if let Some(s) = v.as_str() { + if !values.contains(&s) { + return Err(invalid(format!( + "{} '{}' is not a valid value. Valid values are: {}.", + rule.field, + s, + values.join(", ") + ))); + } + } + } + } + } + Ok(()) +} + +/// Per-operation constrained-member rules, derived from the Smithy model. +fn rules_for(action: &str) -> &'static [Rule] { + match action { + "CreateAccess" => { + const R: &[Rule] = &[ + Rule::str_("HomeDirectory", Some(0), Some(1024)), + Rule::enum_("HomeDirectoryType", &["PATH", "LOGICAL"]), + Rule::str_("Policy", Some(0), Some(2048)), + Rule::str_("Role", Some(20), Some(2048)), + Rule::str_("ServerId", Some(19), Some(19)), + Rule::str_("ExternalId", Some(1), Some(256)), + ]; + R + } + "CreateAgreement" => { + const R: &[Rule] = &[ + Rule::str_("Description", Some(1), Some(200)), + Rule::str_("ServerId", Some(19), Some(19)), + Rule::str_("LocalProfileId", Some(19), Some(19)), + Rule::str_("PartnerProfileId", Some(19), Some(19)), + Rule::str_("BaseDirectory", Some(0), Some(1024)), + Rule::str_("AccessRole", Some(20), Some(2048)), + Rule::enum_("Status", &["ACTIVE", "INACTIVE"]), + Rule::enum_("PreserveFilename", &["ENABLED", "DISABLED"]), + Rule::enum_("EnforceMessageSigning", &["ENABLED", "DISABLED"]), + ]; + R + } + "CreateConnector" => { + const R: &[Rule] = &[ + Rule::str_("Url", Some(0), Some(255)), + Rule::str_("AccessRole", Some(20), Some(2048)), + Rule::str_("LoggingRole", Some(20), Some(2048)), + Rule::str_("SecurityPolicyName", Some(0), Some(100)), + Rule::enum_("IpAddressType", &["IPV4", "DUALSTACK"]), + ]; + R + } + "CreateProfile" => { + const R: &[Rule] = &[ + Rule::str_("As2Id", Some(1), Some(128)), + Rule::enum_("ProfileType", &["LOCAL", "PARTNER"]), + ]; + R + } + "CreateServer" => { + const R: &[Rule] = &[ + Rule::str_("Certificate", Some(0), Some(1600)), + Rule::enum_("Domain", &["S3", "EFS"]), + Rule::enum_("EndpointType", &["PUBLIC", "VPC", "VPC_ENDPOINT"]), + Rule::str_("HostKey", Some(0), Some(4096)), + Rule::enum_( + "IdentityProviderType", + &[ + "SERVICE_MANAGED", + "API_GATEWAY", + "AWS_DIRECTORY_SERVICE", + "AWS_LAMBDA", + ], + ), + Rule::str_("LoggingRole", Some(0), Some(2048)), + Rule::str_("PostAuthenticationLoginBanner", Some(0), Some(4096)), + Rule::str_("PreAuthenticationLoginBanner", Some(0), Some(4096)), + Rule::str_("SecurityPolicyName", Some(0), Some(100)), + Rule::enum_("IpAddressType", &["IPV4", "DUALSTACK"]), + ]; + R + } + "CreateUser" => { + const R: &[Rule] = &[ + Rule::str_("HomeDirectory", Some(0), Some(1024)), + Rule::enum_("HomeDirectoryType", &["PATH", "LOGICAL"]), + Rule::str_("Policy", Some(0), Some(2048)), + Rule::str_("Role", Some(20), Some(2048)), + Rule::str_("ServerId", Some(19), Some(19)), + Rule::str_("SshPublicKeyBody", Some(0), Some(2048)), + Rule::str_("UserName", Some(3), Some(100)), + ]; + R + } + "CreateWebApp" => { + const R: &[Rule] = &[ + Rule::str_("AccessEndpoint", Some(1), Some(1024)), + Rule::enum_("WebAppEndpointPolicy", &["FIPS", "STANDARD"]), + ]; + R + } + "CreateWorkflow" => { + const R: &[Rule] = &[Rule::str_("Description", Some(0), Some(256))]; + R + } + "DeleteAccess" => { + const R: &[Rule] = &[ + Rule::str_("ServerId", Some(19), Some(19)), + Rule::str_("ExternalId", Some(1), Some(256)), + ]; + R + } + "DeleteAgreement" => { + const R: &[Rule] = &[ + Rule::str_("AgreementId", Some(19), Some(19)), + Rule::str_("ServerId", Some(19), Some(19)), + ]; + R + } + "DeleteCertificate" => { + const R: &[Rule] = &[Rule::str_("CertificateId", Some(22), Some(22))]; + R + } + "DeleteConnector" => { + const R: &[Rule] = &[Rule::str_("ConnectorId", Some(19), Some(19))]; + R + } + "DeleteHostKey" => { + const R: &[Rule] = &[ + Rule::str_("ServerId", Some(19), Some(19)), + Rule::str_("HostKeyId", Some(25), Some(25)), + ]; + R + } + "DeleteProfile" => { + const R: &[Rule] = &[Rule::str_("ProfileId", Some(19), Some(19))]; + R + } + "DeleteServer" => { + const R: &[Rule] = &[Rule::str_("ServerId", Some(19), Some(19))]; + R + } + "DeleteSshPublicKey" => { + const R: &[Rule] = &[ + Rule::str_("ServerId", Some(19), Some(19)), + Rule::str_("SshPublicKeyId", Some(21), Some(21)), + Rule::str_("UserName", Some(3), Some(100)), + ]; + R + } + "DeleteUser" => { + const R: &[Rule] = &[ + Rule::str_("ServerId", Some(19), Some(19)), + Rule::str_("UserName", Some(3), Some(100)), + ]; + R + } + "DeleteWebApp" => { + const R: &[Rule] = &[Rule::str_("WebAppId", Some(24), Some(24))]; + R + } + "DeleteWebAppCustomization" => { + const R: &[Rule] = &[Rule::str_("WebAppId", Some(24), Some(24))]; + R + } + "DeleteWorkflow" => { + const R: &[Rule] = &[Rule::str_("WorkflowId", Some(19), Some(19))]; + R + } + "DescribeAccess" => { + const R: &[Rule] = &[ + Rule::str_("ServerId", Some(19), Some(19)), + Rule::str_("ExternalId", Some(1), Some(256)), + ]; + R + } + "DescribeAgreement" => { + const R: &[Rule] = &[ + Rule::str_("AgreementId", Some(19), Some(19)), + Rule::str_("ServerId", Some(19), Some(19)), + ]; + R + } + "DescribeCertificate" => { + const R: &[Rule] = &[Rule::str_("CertificateId", Some(22), Some(22))]; + R + } + "DescribeConnector" => { + const R: &[Rule] = &[Rule::str_("ConnectorId", Some(19), Some(19))]; + R + } + "DescribeExecution" => { + const R: &[Rule] = &[ + Rule::str_("ExecutionId", Some(36), Some(36)), + Rule::str_("WorkflowId", Some(19), Some(19)), + ]; + R + } + "DescribeHostKey" => { + const R: &[Rule] = &[ + Rule::str_("ServerId", Some(19), Some(19)), + Rule::str_("HostKeyId", Some(25), Some(25)), + ]; + R + } + "DescribeProfile" => { + const R: &[Rule] = &[Rule::str_("ProfileId", Some(19), Some(19))]; + R + } + "DescribeSecurityPolicy" => { + const R: &[Rule] = &[Rule::str_("SecurityPolicyName", Some(0), Some(100))]; + R + } + "DescribeServer" => { + const R: &[Rule] = &[Rule::str_("ServerId", Some(19), Some(19))]; + R + } + "DescribeUser" => { + const R: &[Rule] = &[ + Rule::str_("ServerId", Some(19), Some(19)), + Rule::str_("UserName", Some(3), Some(100)), + ]; + R + } + "DescribeWebApp" => { + const R: &[Rule] = &[Rule::str_("WebAppId", Some(24), Some(24))]; + R + } + "DescribeWebAppCustomization" => { + const R: &[Rule] = &[Rule::str_("WebAppId", Some(24), Some(24))]; + R + } + "DescribeWorkflow" => { + const R: &[Rule] = &[Rule::str_("WorkflowId", Some(19), Some(19))]; + R + } + "ImportCertificate" => { + const R: &[Rule] = &[ + Rule::enum_("Usage", &["SIGNING", "ENCRYPTION", "TLS"]), + Rule::str_("Certificate", Some(1), Some(16384)), + Rule::str_("CertificateChain", Some(1), Some(2097152)), + Rule::str_("PrivateKey", Some(1), Some(16384)), + Rule::str_("Description", Some(1), Some(200)), + ]; + R + } + "ImportHostKey" => { + const R: &[Rule] = &[ + Rule::str_("ServerId", Some(19), Some(19)), + Rule::str_("HostKeyBody", Some(0), Some(4096)), + Rule::str_("Description", Some(0), Some(200)), + ]; + R + } + "ImportSshPublicKey" => { + const R: &[Rule] = &[ + Rule::str_("ServerId", Some(19), Some(19)), + Rule::str_("SshPublicKeyBody", Some(0), Some(2048)), + Rule::str_("UserName", Some(3), Some(100)), + ]; + R + } + "ListAccesses" => { + const R: &[Rule] = &[ + Rule::int_("MaxResults", Some(1), Some(1000)), + Rule::str_("NextToken", Some(1), Some(6144)), + Rule::str_("ServerId", Some(19), Some(19)), + ]; + R + } + "ListAgreements" => { + const R: &[Rule] = &[ + Rule::int_("MaxResults", Some(1), Some(1000)), + Rule::str_("NextToken", Some(1), Some(6144)), + Rule::str_("ServerId", Some(19), Some(19)), + ]; + R + } + "ListCertificates" => { + const R: &[Rule] = &[ + Rule::int_("MaxResults", Some(1), Some(1000)), + Rule::str_("NextToken", Some(1), Some(6144)), + ]; + R + } + "ListConnectors" => { + const R: &[Rule] = &[ + Rule::int_("MaxResults", Some(1), Some(1000)), + Rule::str_("NextToken", Some(1), Some(6144)), + ]; + R + } + "ListExecutions" => { + const R: &[Rule] = &[ + Rule::int_("MaxResults", Some(1), Some(1000)), + Rule::str_("NextToken", Some(1), Some(6144)), + Rule::str_("WorkflowId", Some(19), Some(19)), + ]; + R + } + "ListFileTransferResults" => { + const R: &[Rule] = &[ + Rule::str_("ConnectorId", Some(19), Some(19)), + Rule::str_("TransferId", Some(1), Some(512)), + Rule::str_("NextToken", Some(1), Some(6144)), + Rule::int_("MaxResults", Some(1), Some(1000)), + ]; + R + } + "ListHostKeys" => { + const R: &[Rule] = &[ + Rule::int_("MaxResults", Some(1), Some(1000)), + Rule::str_("NextToken", Some(1), Some(6144)), + Rule::str_("ServerId", Some(19), Some(19)), + ]; + R + } + "ListProfiles" => { + const R: &[Rule] = &[ + Rule::int_("MaxResults", Some(1), Some(1000)), + Rule::str_("NextToken", Some(1), Some(6144)), + Rule::enum_("ProfileType", &["LOCAL", "PARTNER"]), + ]; + R + } + "ListSecurityPolicies" => { + const R: &[Rule] = &[ + Rule::int_("MaxResults", Some(1), Some(1000)), + Rule::str_("NextToken", Some(1), Some(6144)), + ]; + R + } + "ListServers" => { + const R: &[Rule] = &[ + Rule::int_("MaxResults", Some(1), Some(1000)), + Rule::str_("NextToken", Some(1), Some(6144)), + ]; + R + } + "ListTagsForResource" => { + const R: &[Rule] = &[ + Rule::str_("Arn", Some(20), Some(1600)), + Rule::int_("MaxResults", Some(1), Some(1000)), + Rule::str_("NextToken", Some(1), Some(6144)), + ]; + R + } + "ListUsers" => { + const R: &[Rule] = &[ + Rule::int_("MaxResults", Some(1), Some(1000)), + Rule::str_("NextToken", Some(1), Some(6144)), + Rule::str_("ServerId", Some(19), Some(19)), + ]; + R + } + "ListWebApps" => { + const R: &[Rule] = &[ + Rule::int_("MaxResults", Some(1), Some(1000)), + Rule::str_("NextToken", Some(1), Some(6144)), + ]; + R + } + "ListWorkflows" => { + const R: &[Rule] = &[ + Rule::int_("MaxResults", Some(1), Some(1000)), + Rule::str_("NextToken", Some(1), Some(6144)), + ]; + R + } + "SendWorkflowStepState" => { + const R: &[Rule] = &[ + Rule::str_("WorkflowId", Some(19), Some(19)), + Rule::str_("ExecutionId", Some(36), Some(36)), + Rule::str_("Token", Some(1), Some(64)), + Rule::enum_("Status", &["SUCCESS", "FAILURE"]), + ]; + R + } + "StartDirectoryListing" => { + const R: &[Rule] = &[ + Rule::str_("ConnectorId", Some(19), Some(19)), + Rule::str_("RemoteDirectoryPath", Some(1), Some(1024)), + Rule::int_("MaxItems", Some(1), None), + Rule::str_("OutputDirectoryPath", Some(1), Some(1024)), + ]; + R + } + "StartFileTransfer" => { + const R: &[Rule] = &[ + Rule::str_("ConnectorId", Some(19), Some(19)), + Rule::str_("LocalDirectoryPath", Some(1), Some(1024)), + Rule::str_("RemoteDirectoryPath", Some(1), Some(1024)), + ]; + R + } + "StartRemoteDelete" => { + const R: &[Rule] = &[ + Rule::str_("ConnectorId", Some(19), Some(19)), + Rule::str_("DeletePath", Some(1), Some(1024)), + ]; + R + } + "StartRemoteMove" => { + const R: &[Rule] = &[ + Rule::str_("ConnectorId", Some(19), Some(19)), + Rule::str_("SourcePath", Some(1), Some(1024)), + Rule::str_("TargetPath", Some(1), Some(1024)), + ]; + R + } + "StartServer" => { + const R: &[Rule] = &[Rule::str_("ServerId", Some(19), Some(19))]; + R + } + "StopServer" => { + const R: &[Rule] = &[Rule::str_("ServerId", Some(19), Some(19))]; + R + } + "TagResource" => { + const R: &[Rule] = &[Rule::str_("Arn", Some(20), Some(1600))]; + R + } + "TestConnection" => { + const R: &[Rule] = &[Rule::str_("ConnectorId", Some(19), Some(19))]; + R + } + "TestIdentityProvider" => { + const R: &[Rule] = &[ + Rule::str_("ServerId", Some(19), Some(19)), + Rule::enum_("ServerProtocol", &["SFTP", "FTP", "FTPS", "AS2"]), + Rule::str_("SourceIp", Some(0), Some(32)), + Rule::str_("UserName", Some(3), Some(100)), + Rule::str_("UserPassword", Some(0), Some(1024)), + ]; + R + } + "UntagResource" => { + const R: &[Rule] = &[Rule::str_("Arn", Some(20), Some(1600))]; + R + } + "UpdateAccess" => { + const R: &[Rule] = &[ + Rule::str_("HomeDirectory", Some(0), Some(1024)), + Rule::enum_("HomeDirectoryType", &["PATH", "LOGICAL"]), + Rule::str_("Policy", Some(0), Some(2048)), + Rule::str_("Role", Some(20), Some(2048)), + Rule::str_("ServerId", Some(19), Some(19)), + Rule::str_("ExternalId", Some(1), Some(256)), + ]; + R + } + "UpdateAgreement" => { + const R: &[Rule] = &[ + Rule::str_("AgreementId", Some(19), Some(19)), + Rule::str_("ServerId", Some(19), Some(19)), + Rule::str_("Description", Some(1), Some(200)), + Rule::enum_("Status", &["ACTIVE", "INACTIVE"]), + Rule::str_("LocalProfileId", Some(19), Some(19)), + Rule::str_("PartnerProfileId", Some(19), Some(19)), + Rule::str_("BaseDirectory", Some(0), Some(1024)), + Rule::str_("AccessRole", Some(20), Some(2048)), + Rule::enum_("PreserveFilename", &["ENABLED", "DISABLED"]), + Rule::enum_("EnforceMessageSigning", &["ENABLED", "DISABLED"]), + ]; + R + } + "UpdateCertificate" => { + const R: &[Rule] = &[ + Rule::str_("CertificateId", Some(22), Some(22)), + Rule::str_("Description", Some(1), Some(200)), + ]; + R + } + "UpdateConnector" => { + const R: &[Rule] = &[ + Rule::str_("ConnectorId", Some(19), Some(19)), + Rule::str_("Url", Some(0), Some(255)), + Rule::str_("AccessRole", Some(20), Some(2048)), + Rule::str_("LoggingRole", Some(20), Some(2048)), + Rule::str_("SecurityPolicyName", Some(0), Some(100)), + Rule::enum_("IpAddressType", &["IPV4", "DUALSTACK"]), + ]; + R + } + "UpdateHostKey" => { + const R: &[Rule] = &[ + Rule::str_("ServerId", Some(19), Some(19)), + Rule::str_("HostKeyId", Some(25), Some(25)), + Rule::str_("Description", Some(0), Some(200)), + ]; + R + } + "UpdateProfile" => { + const R: &[Rule] = &[Rule::str_("ProfileId", Some(19), Some(19))]; + R + } + "UpdateServer" => { + const R: &[Rule] = &[ + Rule::str_("Certificate", Some(0), Some(1600)), + Rule::enum_("EndpointType", &["PUBLIC", "VPC", "VPC_ENDPOINT"]), + Rule::str_("HostKey", Some(0), Some(4096)), + Rule::str_("LoggingRole", Some(0), Some(2048)), + Rule::str_("PostAuthenticationLoginBanner", Some(0), Some(4096)), + Rule::str_("PreAuthenticationLoginBanner", Some(0), Some(4096)), + Rule::str_("SecurityPolicyName", Some(0), Some(100)), + Rule::str_("ServerId", Some(19), Some(19)), + Rule::enum_("IpAddressType", &["IPV4", "DUALSTACK"]), + Rule::enum_( + "IdentityProviderType", + &[ + "SERVICE_MANAGED", + "API_GATEWAY", + "AWS_DIRECTORY_SERVICE", + "AWS_LAMBDA", + ], + ), + ]; + R + } + "UpdateUser" => { + const R: &[Rule] = &[ + Rule::str_("HomeDirectory", Some(0), Some(1024)), + Rule::enum_("HomeDirectoryType", &["PATH", "LOGICAL"]), + Rule::str_("Policy", Some(0), Some(2048)), + Rule::str_("Role", Some(20), Some(2048)), + Rule::str_("ServerId", Some(19), Some(19)), + Rule::str_("UserName", Some(3), Some(100)), + ]; + R + } + "UpdateWebApp" => { + const R: &[Rule] = &[ + Rule::str_("WebAppId", Some(24), Some(24)), + Rule::str_("AccessEndpoint", Some(1), Some(1024)), + ]; + R + } + "UpdateWebAppCustomization" => { + const R: &[Rule] = &[ + Rule::str_("WebAppId", Some(24), Some(24)), + Rule::str_("Title", Some(0), Some(100)), + ]; + R + } + _ => &[], + } +} diff --git a/crates/fakecloud-transfer/tests/service_tests.rs b/crates/fakecloud-transfer/tests/service_tests.rs new file mode 100644 index 000000000..119fe4e11 --- /dev/null +++ b/crates/fakecloud-transfer/tests/service_tests.rs @@ -0,0 +1,579 @@ +//! End-to-end CRUD + lifecycle tests for the Transfer Family service, driving +//! the public `AwsService::handle` entry point with hand-built awsJson1.1 +//! requests. + +use std::collections::HashMap; + +use bytes::Bytes; +use http::{HeaderMap, Method}; +use parking_lot::{Mutex, RwLock}; +use serde_json::{json, Value}; + +use fakecloud_core::multi_account::MultiAccountState; +use fakecloud_core::service::{AwsRequest, AwsService}; +use fakecloud_transfer::TransferService; + +fn svc() -> TransferService { + TransferService::new(std::sync::Arc::new(RwLock::new(MultiAccountState::new( + "000000000000", + "us-east-1", + "", + )))) +} + +fn request(action: &str, body: Value) -> AwsRequest { + AwsRequest { + service: "transfer".into(), + action: action.into(), + region: "us-east-1".into(), + account_id: "000000000000".into(), + request_id: "req".into(), + headers: HeaderMap::new(), + query_params: HashMap::new(), + body: Bytes::from(serde_json::to_vec(&body).unwrap()), + body_stream: Mutex::new(None), + path_segments: vec![], + raw_path: String::new(), + raw_query: String::new(), + method: Method::POST, + is_query_protocol: false, + access_key_id: None, + principal: None, + } +} + +async fn call(s: &TransferService, action: &str, body: Value) -> Value { + let resp = s.handle(request(action, body)).await.expect("op ok"); + assert!(resp.status.is_success(), "{action} should succeed"); + let bytes = resp.body.expect_bytes(); + if bytes.is_empty() { + json!({}) + } else { + serde_json::from_slice(bytes).unwrap() + } +} + +async fn err_code(s: &TransferService, action: &str, body: Value) -> String { + let e = s + .handle(request(action, body)) + .await + .err() + .expect("expected error"); + e.code().to_string() +} + +async fn new_server(s: &TransferService) -> String { + call( + s, + "CreateServer", + json!({ "IdentityProviderType": "SERVICE_MANAGED" }), + ) + .await["ServerId"] + .as_str() + .unwrap() + .to_string() +} + +const ROLE: &str = "arn:aws:iam::000000000000:role/transfer-role"; + +#[tokio::test] +async fn server_crud_and_state_transitions() { + let s = svc(); + let server_id = new_server(&s).await; + assert!(server_id.starts_with("s-") && server_id.len() == 19); + + let desc = call(&s, "DescribeServer", json!({ "ServerId": server_id })).await; + assert_eq!(desc["Server"]["State"], json!("ONLINE")); + assert_eq!(desc["Server"]["ServerId"], json!(server_id)); + assert!(desc["Server"]["Arn"].as_str().unwrap().contains(":server/")); + + // Update persists. + call( + &s, + "UpdateServer", + json!({ "ServerId": server_id, "LoggingRole": ROLE }), + ) + .await; + let desc = call(&s, "DescribeServer", json!({ "ServerId": server_id })).await; + assert_eq!(desc["Server"]["LoggingRole"], json!(ROLE)); + + // Stop -> OFFLINE, Start -> ONLINE, reflected synchronously. + call(&s, "StopServer", json!({ "ServerId": server_id })).await; + let desc = call(&s, "DescribeServer", json!({ "ServerId": server_id })).await; + assert_eq!(desc["Server"]["State"], json!("OFFLINE")); + call(&s, "StartServer", json!({ "ServerId": server_id })).await; + let desc = call(&s, "DescribeServer", json!({ "ServerId": server_id })).await; + assert_eq!(desc["Server"]["State"], json!("ONLINE")); + + // List shows it. + let list = call(&s, "ListServers", json!({})).await; + assert_eq!(list["Servers"].as_array().unwrap().len(), 1); + + // Delete removes it. + call(&s, "DeleteServer", json!({ "ServerId": server_id })).await; + assert_eq!( + err_code(&s, "DescribeServer", json!({ "ServerId": server_id })).await, + "ResourceNotFoundException" + ); + let list = call(&s, "ListServers", json!({})).await; + assert!(list["Servers"].as_array().unwrap().is_empty()); +} + +#[tokio::test] +async fn user_and_ssh_key_lifecycle() { + let s = svc(); + let server_id = new_server(&s).await; + let created = call( + &s, + "CreateUser", + json!({ "ServerId": server_id, "UserName": "alice", "Role": ROLE, "HomeDirectory": "/home/alice" }), + ) + .await; + assert_eq!(created["UserName"], json!("alice")); + + let desc = call( + &s, + "DescribeUser", + json!({ "ServerId": server_id, "UserName": "alice" }), + ) + .await; + assert_eq!(desc["User"]["HomeDirectory"], json!("/home/alice")); + assert_eq!(desc["ServerId"], json!(server_id)); + + // Import an SSH public key; it surfaces in describe + the count in list. + let key = call( + &s, + "ImportSshPublicKey", + json!({ "ServerId": server_id, "UserName": "alice", "SshPublicKeyBody": "ssh-rsa AAAAB3..." }), + ) + .await; + let key_id = key["SshPublicKeyId"].as_str().unwrap().to_string(); + let desc = call( + &s, + "DescribeUser", + json!({ "ServerId": server_id, "UserName": "alice" }), + ) + .await; + assert_eq!(desc["User"]["SshPublicKeys"].as_array().unwrap().len(), 1); + let list = call(&s, "ListUsers", json!({ "ServerId": server_id })).await; + assert_eq!(list["Users"][0]["SshPublicKeyCount"], json!(1)); + + call( + &s, + "DeleteSshPublicKey", + json!({ "ServerId": server_id, "UserName": "alice", "SshPublicKeyId": key_id }), + ) + .await; + let desc = call( + &s, + "DescribeUser", + json!({ "ServerId": server_id, "UserName": "alice" }), + ) + .await; + assert_eq!(desc["User"]["SshPublicKeys"].as_array().unwrap().len(), 0); + + // DescribeServer reflects the live user count. + let srv = call(&s, "DescribeServer", json!({ "ServerId": server_id })).await; + assert_eq!(srv["Server"]["UserCount"], json!(1)); + + call( + &s, + "DeleteUser", + json!({ "ServerId": server_id, "UserName": "alice" }), + ) + .await; + assert_eq!( + err_code( + &s, + "DescribeUser", + json!({ "ServerId": server_id, "UserName": "alice" }) + ) + .await, + "ResourceNotFoundException" + ); +} + +#[tokio::test] +async fn host_key_crud() { + let s = svc(); + let server_id = new_server(&s).await; + let hk = call( + &s, + "ImportHostKey", + json!({ "ServerId": server_id, "HostKeyBody": "-----BEGIN...", "Description": "primary" }), + ) + .await; + let host_key_id = hk["HostKeyId"].as_str().unwrap().to_string(); + assert!(host_key_id.starts_with("hostkey-")); + call( + &s, + "UpdateHostKey", + json!({ "ServerId": server_id, "HostKeyId": host_key_id, "Description": "rotated" }), + ) + .await; + let desc = call( + &s, + "DescribeHostKey", + json!({ "ServerId": server_id, "HostKeyId": host_key_id }), + ) + .await; + assert_eq!(desc["HostKey"]["Description"], json!("rotated")); + let list = call(&s, "ListHostKeys", json!({ "ServerId": server_id })).await; + assert_eq!(list["HostKeys"].as_array().unwrap().len(), 1); + call( + &s, + "DeleteHostKey", + json!({ "ServerId": server_id, "HostKeyId": host_key_id }), + ) + .await; + let list = call(&s, "ListHostKeys", json!({ "ServerId": server_id })).await; + assert!(list["HostKeys"].as_array().unwrap().is_empty()); +} + +#[tokio::test] +async fn access_crud() { + let s = svc(); + let server_id = new_server(&s).await; + let external_id = "S-1-1-12-1234567890-123456789-1234567890-1234"; + call( + &s, + "CreateAccess", + json!({ "ServerId": server_id, "ExternalId": external_id, "Role": ROLE, "HomeDirectory": "/data" }), + ) + .await; + call( + &s, + "UpdateAccess", + json!({ "ServerId": server_id, "ExternalId": external_id, "HomeDirectory": "/data2" }), + ) + .await; + let desc = call( + &s, + "DescribeAccess", + json!({ "ServerId": server_id, "ExternalId": external_id }), + ) + .await; + assert_eq!(desc["Access"]["HomeDirectory"], json!("/data2")); + assert_eq!(desc["ServerId"], json!(server_id)); + let list = call(&s, "ListAccesses", json!({ "ServerId": server_id })).await; + assert_eq!(list["Accesses"][0]["ExternalId"], json!(external_id)); + call( + &s, + "DeleteAccess", + json!({ "ServerId": server_id, "ExternalId": external_id }), + ) + .await; + let list = call(&s, "ListAccesses", json!({ "ServerId": server_id })).await; + assert!(list["Accesses"].as_array().unwrap().is_empty()); +} + +#[tokio::test] +async fn workflow_and_agreement() { + let s = svc(); + let server_id = new_server(&s).await; + let wf = call( + &s, + "CreateWorkflow", + json!({ "Description": "copy", "Steps": [{ "Type": "COPY" }] }), + ) + .await; + let workflow_id = wf["WorkflowId"].as_str().unwrap().to_string(); + assert!(workflow_id.starts_with("w-")); + let desc = call(&s, "DescribeWorkflow", json!({ "WorkflowId": workflow_id })).await; + assert_eq!(desc["Workflow"]["Steps"].as_array().unwrap().len(), 1); + assert_eq!( + call(&s, "ListWorkflows", json!({})).await["Workflows"] + .as_array() + .unwrap() + .len(), + 1 + ); + + // Execution lookups on a missing execution 404. + assert_eq!( + err_code( + &s, + "DescribeExecution", + json!({ "WorkflowId": workflow_id, "ExecutionId": "12345678-1234-1234-1234-123456789012" }) + ) + .await, + "ResourceNotFoundException" + ); + + let ag = call( + &s, + "CreateAgreement", + json!({ "ServerId": server_id, "LocalProfileId": "p-11111111111111111", "PartnerProfileId": "p-22222222222222222", "AccessRole": ROLE }), + ) + .await; + let agreement_id = ag["AgreementId"].as_str().unwrap().to_string(); + assert!(agreement_id.starts_with("a-")); + let desc = call( + &s, + "DescribeAgreement", + json!({ "ServerId": server_id, "AgreementId": agreement_id }), + ) + .await; + assert_eq!(desc["Agreement"]["Status"], json!("ACTIVE")); + + call(&s, "DeleteWorkflow", json!({ "WorkflowId": workflow_id })).await; + call( + &s, + "DeleteAgreement", + json!({ "ServerId": server_id, "AgreementId": agreement_id }), + ) + .await; +} + +#[tokio::test] +async fn connector_and_transfers() { + let s = svc(); + let c = call( + &s, + "CreateConnector", + json!({ "Url": "sftp://partner.example.com", "AccessRole": ROLE, "SftpConfig": { "UserSecretId": "secret" } }), + ) + .await; + let connector_id = c["ConnectorId"].as_str().unwrap().to_string(); + assert!(connector_id.starts_with("c-")); + + let desc = call( + &s, + "DescribeConnector", + json!({ "ConnectorId": connector_id }), + ) + .await; + assert_eq!(desc["Connector"]["Status"], json!("ACTIVE")); + assert_eq!(desc["Connector"]["EgressType"], json!("SERVICE_MANAGED")); + assert_eq!( + desc["Connector"]["Url"], + json!("sftp://partner.example.com") + ); + + let tc = call(&s, "TestConnection", json!({ "ConnectorId": connector_id })).await; + assert_eq!(tc["Status"], json!("OK")); + + let ft = call( + &s, + "StartFileTransfer", + json!({ "ConnectorId": connector_id, "SendFilePaths": ["/local/a.txt"] }), + ) + .await; + let transfer_id = ft["TransferId"].as_str().unwrap().to_string(); + let results = call( + &s, + "ListFileTransferResults", + json!({ "ConnectorId": connector_id, "TransferId": transfer_id }), + ) + .await; + let arr = results["FileTransferResults"].as_array().unwrap(); + assert_eq!(arr.len(), 1); + assert_eq!(arr[0]["FilePath"], json!("/local/a.txt")); + assert_eq!(arr[0]["StatusCode"], json!("COMPLETED")); + + // Remote actions return ids against an existing connector. + assert!(call( + &s, + "StartRemoteDelete", + json!({ "ConnectorId": connector_id, "DeletePath": "/remote/x" }) + ) + .await["DeleteId"] + .is_string()); + assert!(call( + &s, + "StartRemoteMove", + json!({ "ConnectorId": connector_id, "SourcePath": "/a", "TargetPath": "/b" }) + ) + .await["MoveId"] + .is_string()); + assert!(call(&s, "StartDirectoryListing", json!({ "ConnectorId": connector_id, "RemoteDirectoryPath": "/", "OutputDirectoryPath": "/out" })).await["ListingId"].is_string()); + + call( + &s, + "DeleteConnector", + json!({ "ConnectorId": connector_id }), + ) + .await; +} + +#[tokio::test] +async fn profiles_and_certificates() { + let s = svc(); + let p = call( + &s, + "CreateProfile", + json!({ "As2Id": "MYID", "ProfileType": "LOCAL" }), + ) + .await; + let profile_id = p["ProfileId"].as_str().unwrap().to_string(); + assert!(profile_id.starts_with("p-")); + let desc = call(&s, "DescribeProfile", json!({ "ProfileId": profile_id })).await; + assert_eq!(desc["Profile"]["As2Id"], json!("MYID")); + let list = call(&s, "ListProfiles", json!({ "ProfileType": "LOCAL" })).await; + assert_eq!(list["Profiles"].as_array().unwrap().len(), 1); + // Filtering by the other type excludes it. + let list = call(&s, "ListProfiles", json!({ "ProfileType": "PARTNER" })).await; + assert!(list["Profiles"].as_array().unwrap().is_empty()); + + let cert = call( + &s, + "ImportCertificate", + json!({ "Usage": "SIGNING", "Certificate": "-----BEGIN CERTIFICATE-----", "Description": "signer" }), + ) + .await; + let certificate_id = cert["CertificateId"].as_str().unwrap().to_string(); + assert!(certificate_id.starts_with("cert-")); + let desc = call( + &s, + "DescribeCertificate", + json!({ "CertificateId": certificate_id }), + ) + .await; + assert_eq!(desc["Certificate"]["Usage"], json!("SIGNING")); + assert_eq!( + call(&s, "ListCertificates", json!({})).await["Certificates"] + .as_array() + .unwrap() + .len(), + 1 + ); + call(&s, "DeleteProfile", json!({ "ProfileId": profile_id })).await; + call( + &s, + "DeleteCertificate", + json!({ "CertificateId": certificate_id }), + ) + .await; +} + +#[tokio::test] +async fn security_policies_and_web_apps() { + let s = svc(); + let list = call(&s, "ListSecurityPolicies", json!({})).await; + let names = list["SecurityPolicyNames"].as_array().unwrap(); + assert!(names.iter().any(|n| n == "TransferSecurityPolicy-2018-11")); + let desc = call( + &s, + "DescribeSecurityPolicy", + json!({ "SecurityPolicyName": "TransferSecurityPolicy-FIPS-2023-05" }), + ) + .await; + assert_eq!(desc["SecurityPolicy"]["Fips"], json!(true)); + assert_eq!( + err_code( + &s, + "DescribeSecurityPolicy", + json!({ "SecurityPolicyName": "TransferSecurityPolicy-9999-99" }) + ) + .await, + "ResourceNotFoundException" + ); + + let w = call( + &s, + "CreateWebApp", + json!({ "IdentityProviderDetails": { "IdentityCenterConfig": { "InstanceArn": "arn:aws:sso:::instance/ssoins-1" } } }), + ) + .await; + let web_app_id = w["WebAppId"].as_str().unwrap().to_string(); + assert!(web_app_id.starts_with("webapp-")); + let desc = call(&s, "DescribeWebApp", json!({ "WebAppId": web_app_id })).await; + assert_eq!(desc["WebApp"]["WebAppId"], json!(web_app_id)); + call( + &s, + "UpdateWebAppCustomization", + json!({ "WebAppId": web_app_id, "Title": "My Portal" }), + ) + .await; + let cust = call( + &s, + "DescribeWebAppCustomization", + json!({ "WebAppId": web_app_id }), + ) + .await; + assert_eq!(cust["WebAppCustomization"]["Title"], json!("My Portal")); + call(&s, "DeleteWebApp", json!({ "WebAppId": web_app_id })).await; +} + +#[tokio::test] +async fn tagging_round_trip() { + let s = svc(); + let server_id = new_server(&s).await; + let arn = call(&s, "DescribeServer", json!({ "ServerId": server_id })).await["Server"]["Arn"] + .as_str() + .unwrap() + .to_string(); + call( + &s, + "TagResource", + json!({ "Arn": arn, "Tags": [{ "Key": "env", "Value": "prod" }] }), + ) + .await; + let tags = call(&s, "ListTagsForResource", json!({ "Arn": arn })).await; + assert_eq!(tags["Tags"][0]["Key"], json!("env")); + call( + &s, + "UntagResource", + json!({ "Arn": arn, "TagKeys": ["env"] }), + ) + .await; + let tags = call(&s, "ListTagsForResource", json!({ "Arn": arn })).await; + assert!(tags["Tags"].as_array().unwrap().is_empty()); +} + +#[tokio::test] +async fn error_codes() { + let s = svc(); + // Missing parent server -> ResourceNotFoundException. + assert_eq!( + err_code( + &s, + "CreateUser", + json!({ "ServerId": "s-0000000000000000a", "UserName": "bob", "Role": ROLE }) + ) + .await, + "ResourceNotFoundException" + ); + // Missing required field -> InvalidRequestException. + assert_eq!( + err_code(&s, "CreateConnector", json!({})).await, + "InvalidRequestException" + ); + // Invalid enum value -> InvalidRequestException (model-derived validation). + assert_eq!( + err_code(&s, "CreateServer", json!({ "Domain": "GLACIER" })).await, + "InvalidRequestException" + ); + // Too-long string -> InvalidRequestException. + let long = "x".repeat(300); + assert_eq!( + err_code( + &s, + "CreateConnector", + json!({ "AccessRole": ROLE, "Url": long }) + ) + .await, + "InvalidRequestException" + ); +} + +#[tokio::test] +async fn duplicate_server_children_conflict() { + let s = svc(); + let server_id = new_server(&s).await; + call( + &s, + "CreateUser", + json!({ "ServerId": server_id, "UserName": "carol", "Role": ROLE }), + ) + .await; + assert_eq!( + err_code( + &s, + "CreateUser", + json!({ "ServerId": server_id, "UserName": "carol", "Role": ROLE }) + ) + .await, + "ResourceExistsException" + ); +} diff --git a/scripts/generate-operations-index.sh b/scripts/generate-operations-index.sh index 6a4310bc0..6119f26fb 100755 --- a/scripts/generate-operations-index.sh +++ b/scripts/generate-operations-index.sh @@ -58,6 +58,7 @@ SERVICES=( "rds-data|RDS Data|rds-data" "redshift|Redshift|redshift" "dms|Database Migration Service|dms" + "transfer|Transfer Family|transfer" "dsql|Aurora DSQL|dsql" "resource-groups|Resource Groups|resource-groups" "tagging|Resource Groups Tagging API|resource-groups-tagging" diff --git a/scripts/update-aws-models.sh b/scripts/update-aws-models.sh index cd6f6b42e..a8abe5a41 100755 --- a/scripts/update-aws-models.sh +++ b/scripts/update-aws-models.sh @@ -49,6 +49,7 @@ SERVICES=( "eks:eks" "glacier:glacier" "backup:backup" + "transfer:transfer" "es:elasticsearch-service" "opensearch:opensearch" "servicediscovery:servicediscovery" diff --git a/website/content/docs/about/conformance.md b/website/content/docs/about/conformance.md index 3244756ed..99c78f8a9 100644 --- a/website/content/docs/about/conformance.md +++ b/website/content/docs/about/conformance.md @@ -35,7 +35,7 @@ Every response is validated against the operation's Smithy output shape. Missing ## Current coverage -152,159/152,159 generated test variants across all 60 services (4,625 operations) pass on every commit — true 100% conformance with no flake margin and no skipped services. The exact pass/total per service is checked into [`conformance-baseline.json`](https://github.com/faiscadev/fakecloud/blob/main/conformance-baseline.json). +154,915/154,915 generated test variants across all 61 services (4,696 operations) pass on every commit — true 100% conformance with no flake margin and no skipped services. The exact pass/total per service is checked into [`conformance-baseline.json`](https://github.com/faiscadev/fakecloud/blob/main/conformance-baseline.json). See the harness and methodology at [`crates/fakecloud-conformance/`](https://github.com/faiscadev/fakecloud/tree/main/crates/fakecloud-conformance). @@ -94,7 +94,7 @@ The real-AWS job is locked down hard: ### Why E2E isn't parity -The E2E suite is much bigger (280+ tests, 60 services) but it doesn't run against real AWS — ever. Two reasons: +The E2E suite is much bigger (280+ tests, 61 services) but it doesn't run against real AWS — ever. Two reasons: 1. **A lot of E2E is testing fakecloud itself.** Introspection endpoints, persistence mode, `/_fakecloud/*/tick` processors, warm Lambda container introspection, forced SQS DLQ moves, auth event logs in Cognito — none of that exists on real AWS. Running those tests against AWS would be meaningless; they'd just fail at the first `/_fakecloud/*` request. diff --git a/website/content/docs/about/what-it-is.md b/website/content/docs/about/what-it-is.md index 1d00d5102..070cec56b 100644 --- a/website/content/docs/about/what-it-is.md +++ b/website/content/docs/about/what-it-is.md @@ -6,7 +6,7 @@ weight = 3 ## What fakecloud is -A free, open-source local AWS emulator for integration testing and local development. For every service it implements, the goal is 100% behavioral parity with real AWS — measured by a schema-driven [conformance harness](/docs/about/conformance/) that runs 152,159 generated test variants against official AWS Smithy models on every commit, all of which pass. +A free, open-source local AWS emulator for integration testing and local development. For every service it implements, the goal is 100% behavioral parity with real AWS — measured by a schema-driven [conformance harness](/docs/about/conformance/) that runs 154,915 generated test variants against official AWS Smithy models on every commit, all of which pass. The point is to let you run your application code against something that behaves like AWS, without burning an AWS account or hitting rate limits. Your tests exercise real SDK code paths end-to-end. Your CI pipeline runs fast and free. @@ -14,7 +14,7 @@ The point is to let you run your application code against something that behaves **Not a production cloud.** It's not designed for scale, durability, multi-tenancy, or production workloads. State is in-memory by default. Persistence is limited to a subset of services. It's single-binary and single-process. Don't put it in front of real users. -**Not a drop-in for all of AWS.** It implements 60 services — the ones most teams actually test against. If you need EKS, Redshift, or SageMaker, fakecloud isn't the right tool (yet). +**Not a drop-in for all of AWS.** It implements 61 services — the ones most teams actually test against. If you need EKS, Redshift, or SageMaker, fakecloud isn't the right tool (yet). **Not a mock.** Mocks return predefined values regardless of whether you call them correctly. fakecloud speaks real AWS wire protocols, validates real SigV4 headers (without signature checking), and returns AWS-shaped responses that the real SDK parses and deserializes. If your code assembles the request wrong, fakecloud fails the same way real AWS would. @@ -37,4 +37,4 @@ The point is to let you run your application code against something that behaves fakecloud exists because testing AWS code well is harder than it should be. Mocks lie. Staging accounts cost money and leak state between tests. Real AWS is slow, rate-limited, and unsuitable for fast CI feedback. The bet is that a correctness-first local emulator — one that matches AWS's actual wire protocol on every documented operation — is a better tradeoff for most testing workflows than any of the alternatives. -That's why the project prioritizes conformance and cross-service wiring over breadth. 60 services at true 100% (152,159/152,159 Smithy variants pass) is more useful than 100 services at 50%. +That's why the project prioritizes conformance and cross-service wiring over breadth. 61 services at true 100% (154,915/154,915 Smithy variants pass) is more useful than 100 services at 50%. diff --git a/website/content/docs/migration-from-localstack.md b/website/content/docs/migration-from-localstack.md index dd3ede3ea..5e5e93abb 100644 --- a/website/content/docs/migration-from-localstack.md +++ b/website/content/docs/migration-from-localstack.md @@ -9,7 +9,7 @@ If your local development workflow is blocked by LocalStack's account requiremen ## Key Differences - **No API Key**: fakecloud is fully functional offline. No `ACTIVATE_PRO` or account login required. - **Single Binary**: Replace heavy Docker-in-Docker setups with a ~19MB binary that starts in <300ms. -- **Parity**: 100% API conformance across 4,625 operations, including features LocalStack gates behind Pro (like ECR and Bedrock). +- **Parity**: 100% API conformance across 4,696 operations, including features LocalStack gates behind Pro (like ECR and Bedrock). ## Service Mapping | Feature | LocalStack | fakecloud | diff --git a/website/content/docs/operations/_index.md b/website/content/docs/operations/_index.md index 4e051e345..ea911d96b 100644 --- a/website/content/docs/operations/_index.md +++ b/website/content/docs/operations/_index.md @@ -1834,6 +1834,80 @@ This is a surface listing, not an implementation manifest. For fakecloud's per-s - `TestConnection` - `UpdateSubscriptionsToEventBridge` +## [Transfer Family](@/docs/services/transfer.md) + +- `CreateAccess` +- `CreateAgreement` +- `CreateConnector` +- `CreateProfile` +- `CreateServer` +- `CreateUser` +- `CreateWebApp` +- `CreateWorkflow` +- `DeleteAccess` +- `DeleteAgreement` +- `DeleteCertificate` +- `DeleteConnector` +- `DeleteHostKey` +- `DeleteProfile` +- `DeleteServer` +- `DeleteSshPublicKey` +- `DeleteUser` +- `DeleteWebApp` +- `DeleteWebAppCustomization` +- `DeleteWorkflow` +- `DescribeAccess` +- `DescribeAgreement` +- `DescribeCertificate` +- `DescribeConnector` +- `DescribeExecution` +- `DescribeHostKey` +- `DescribeProfile` +- `DescribeSecurityPolicy` +- `DescribeServer` +- `DescribeUser` +- `DescribeWebApp` +- `DescribeWebAppCustomization` +- `DescribeWorkflow` +- `ImportCertificate` +- `ImportHostKey` +- `ImportSshPublicKey` +- `ListAccesses` +- `ListAgreements` +- `ListCertificates` +- `ListConnectors` +- `ListExecutions` +- `ListFileTransferResults` +- `ListHostKeys` +- `ListProfiles` +- `ListSecurityPolicies` +- `ListServers` +- `ListTagsForResource` +- `ListUsers` +- `ListWebApps` +- `ListWorkflows` +- `SendWorkflowStepState` +- `StartDirectoryListing` +- `StartFileTransfer` +- `StartRemoteDelete` +- `StartRemoteMove` +- `StartServer` +- `StopServer` +- `TagResource` +- `TestConnection` +- `TestIdentityProvider` +- `UntagResource` +- `UpdateAccess` +- `UpdateAgreement` +- `UpdateCertificate` +- `UpdateConnector` +- `UpdateHostKey` +- `UpdateProfile` +- `UpdateServer` +- `UpdateUser` +- `UpdateWebApp` +- `UpdateWebAppCustomization` + ## [Aurora DSQL](@/docs/services/dsql.md) - `CreateCluster` diff --git a/website/content/docs/parity.md b/website/content/docs/parity.md index 9757d0abb..45386aec5 100644 --- a/website/content/docs/parity.md +++ b/website/content/docs/parity.md @@ -4,7 +4,7 @@ description = "Service-by-service behavior parity: what is real, what is synthes weight = 1 +++ -fakecloud implements **60 AWS services** with **4,625 operations**. **152,159/152,159 generated Smithy conformance variants pass** on every commit — true 100% across every implemented service, no flake margin and no skipped services. Conformance checks request/response shapes, field names, and error codes against [AWS's own Smithy models](https://github.com/faiscadev/fakecloud/blob/main/conformance-baseline.json). Behavior parity varies by service — some run real infrastructure (Postgres, Redis, Docker containers), some run a real control plane but return synthesized data for complex queries, and a few have control-plane-only coverage with no data-plane enforcement. +fakecloud implements **61 AWS services** with **4,696 operations**. **154,915/154,915 generated Smithy conformance variants pass** on every commit — true 100% across every implemented service, no flake margin and no skipped services. Conformance checks request/response shapes, field names, and error codes against [AWS's own Smithy models](https://github.com/faiscadev/fakecloud/blob/main/conformance-baseline.json). Behavior parity varies by service — some run real infrastructure (Postgres, Redis, Docker containers), some run a real control plane but return synthesized data for complex queries, and a few have control-plane-only coverage with no data-plane enforcement. | Service | Ops | Protocol | Control plane | Data plane | Known limitations | | --- | --- | --- | --- | --- | --- | @@ -34,6 +34,7 @@ fakecloud implements **60 AWS services** with **4,625 operations**. **152,159/15 | [Resource Groups](@/docs/services/resource-groups.md) | 23 | REST-JSON | Full | Partial | Full 23-op control plane: group lifecycle (Create/Get/Update/Delete/ListGroups), resource queries (`TAG_FILTERS_1_0` / `CLOUDFORMATION_STACK_1_0`) via GetGroupQuery/UpdateGroupQuery, explicit membership (GroupResources/UngroupResources/ListGroupResources), group configuration, tagging (Tag/Untag/GetTags), account settings, grouping statuses, and tag-sync tasks. `arn:aws:resource-groups:...:group//` ARNs, account-partitioned and persisted. Query-based membership resolution (evaluating a tag/CloudFormation-stack query against live resources) depends on the cross-service tag index shipping with the Resource Groups Tagging API; explicit membership is fully real now. | | [Resource Groups Tagging API](@/docs/services/resource-groups-tagging.md) | 9 | JSON 1.1 | Full | Partial | All 9 ops: `GetResources` (with `ResourceARNList` / `ResourceTypeFilters` / `TagFilters` and pagination), `GetTagKeys`, `GetTagValues`, `TagResources`, `UntagResources`, `GetComplianceSummary`, `StartReportCreation`, `DescribeReportCreation`, `ListRequiredTags`. Backed by a cross-service tag index: reads aggregate every service's live tags through a shared provider registry, plus tags applied directly to arbitrary ARNs via `TagResources`. Account-partitioned and persisted. Per-service tag providers roll out incrementally; today the index reflects tags applied through this API. | | [Database Migration Service](@/docs/services/dms.md) | 119 | JSON 1.1 | Full | None | Complete 119-op DMS control plane: replication instances (settle straight to `available`), endpoints with per-engine settings that round-trip verbatim, replication tasks (`starting`->`running`->`stopped`, plus assessment runs and table statistics), replication subnet groups, event subscriptions, certificates, connections (`TestConnection` succeeds against a stored endpoint + instance), serverless replication configs and replications, data providers, instance profiles, migration projects, schema-conversion / metadata-model requests, Fleet Advisor, recommendations, account attributes, and tagging. Real CRUD with `Marker`/`MaxRecords` pagination and `Filters`; `@length`/`@range`/enum constraints enforced. Account-partitioned and persisted. No data-migration engine — the actual row movement is out of scope, matching how LocalStack Community mocks DMS. | +| [Transfer Family](@/docs/services/transfer.md) | 71 | JSON 1.1 | Full | None | Complete 71-op Transfer Family control plane: SFTP/FTPS/FTP/AS2 servers (`StartServer`/`StopServer` settle `State` straight to `ONLINE`/`OFFLINE`), users and their SSH public keys, host keys, service-managed accesses, workflows and executions (`SendWorkflowStepState`), AS2 agreements, connectors (SFTP + AS2, with `TestConnection`, `StartFileTransfer`, `StartDirectoryListing`, `StartRemoteDelete`/`StartRemoteMove`, and `ListFileTransferResults`), profiles, certificates, the managed security-policy catalogue, web apps (+ customization), `TestIdentityProvider`, and tagging. Real CRUD with `MaxResults`/`NextToken` pagination; `@length`/`@range`/enum constraints enforced. Nested config round-trips verbatim. Account-partitioned and persisted. No SFTP daemon or AS2 transport engine — the file movement itself is out of scope, matching how LocalStack Community mocks Transfer. | | [Aurora DSQL](@/docs/services/dsql.md) | 16 | REST-JSON | Full | Control-only | Full 16-op control plane: cluster lifecycle with async `CREATING`->`ACTIVE` and `DELETING`->`DELETED` transitions, `clientToken` idempotency, deletion-protection enforcement, `multiRegionProperties` round-trip, 26-char lowercase cluster ids with `arn:aws:dsql:::cluster/` ARNs and `.dsql..on.aws` endpoint hosts, cluster resource policies, change streams to Kinesis, `GetVpcEndpointServiceName`, and tagging. State is account-partitioned and persists across restarts in persistent mode. The PostgreSQL-compatible data plane (a reachable container + IAM-token auth) is a pending follow-up. | | [ElastiCache](@/docs/services/elasticache.md) | 75 | JSON 1.1 (Query) | Full | Full | Real Redis, Valkey, and Memcached via Docker. `RestoreFromSnapshot` uses real RDB dump format. ACL `SETUSER` and `CONFIG SET` commands are supported. | | [MemoryDB](@/docs/services/memorydb.md) | 45 | JSON 1.1 | Full | Control plane | Full control plane for clusters, shards, ACLs, users, parameter/subnet groups, snapshots, and multi-region clusters, with persistence. Clusters transition `creating` -> `available` on describe. Redis/Valkey data-plane container backing is a roadmap item. | @@ -77,7 +78,7 @@ fakecloud implements **60 AWS services** with **4,625 operations**. **152,159/15 ## What "100% conformance" means -fakecloud validates every implemented operation against AWS's own Smithy models using a generated test suite with **152,159 variants**, **all of which pass** on every commit. This guarantees that field names, types, required/optional flags, error codes, and HTTP signatures are identical to AWS. It does *not* guarantee that every operation behaves exactly like AWS in all edge cases — that is what the **Data plane** and **Known limitations** columns describe. +fakecloud validates every implemented operation against AWS's own Smithy models using a generated test suite with **154,915 variants**, **all of which pass** on every commit. This guarantees that field names, types, required/optional flags, error codes, and HTTP signatures are identical to AWS. It does *not* guarantee that every operation behaves exactly like AWS in all edge cases — that is what the **Data plane** and **Known limitations** columns describe. If you need a service that is not listed above, the issue tracker and [roadmap](https://github.com/faiscadev/fakecloud#roadmap) are the best places to request it. diff --git a/website/content/docs/services/_index.md b/website/content/docs/services/_index.md index a20d50e99..344675a70 100644 --- a/website/content/docs/services/_index.md +++ b/website/content/docs/services/_index.md @@ -7,7 +7,7 @@ template = "docs.html" page_template = "docs-page.html" +++ -fakecloud implements 60 AWS services with 3,966 total operations. 152,159/152,159 generated Smithy conformance variants pass on every commit — true 100% across the board. Per-service feature matrices and gotchas live on individual service pages — use the sidebar to navigate. +fakecloud implements 61 AWS services with 3,966 total operations. 154,915/154,915 generated Smithy conformance variants pass on every commit — true 100% across the board. Per-service feature matrices and gotchas live on individual service pages — use the sidebar to navigate. | Service | Ops | Notes | | ---------------------- | --- | ---------------------------------------------------------------------- | @@ -34,6 +34,7 @@ fakecloud implements 60 AWS services with 3,966 total operations. 152,159/152,15 | RDS Data API | 6 | Real SQL on the backing Postgres/MySQL container; typed params/results incl. `bytea`/`BLOB`, transactions, batch | | Redshift | 141 | Full control plane: clusters (progress to `available`, synthetic endpoint), snapshots (real `SnapshotArn`), parameter groups (`Source=user` filter), subnet/security groups, snapshot schedules + copy grants, endpoint access (synthesized VPC endpoint), per-cluster logging, cross-region snapshot-copy config, tagging. No SQL data plane (separate `redshift-data` API) | | Aurora DSQL | 16 | Serverless distributed Postgres control plane; clusters, resource policies, change streams to Kinesis, multi-region properties, deletion protection, `clientToken` idempotency, tagging; async `CREATING`->`ACTIVE` lifecycle. Data plane (reachable container + IAM-token auth) is a follow-up | +| Transfer Family | 71 | Full control plane: SFTP/FTPS/FTP/AS2 servers (start/stop settle `State`), users + SSH keys, host keys, accesses, workflows + executions, agreements, connectors (`TestConnection`, file transfer, directory listing, remote delete/move), profiles, certificates, security policies, web apps, `TestIdentityProvider`, tagging; persisted. No SFTP daemon or AS2 transport engine | | Resource Groups | 23 | Groups by tag/CloudFormation-stack query, explicit membership, group configuration, tagging, account settings, grouping statuses, tag-sync tasks; `arn:...:group//` ARNs, persisted | | ElastiCache | 75 | Real Redis, Valkey, Memcached via Docker | | MemoryDB | 45 | Full control plane: clusters, shards, ACLs, users, parameter/subnet groups, snapshots, multi-region clusters; persisted. Redis/Valkey data-plane container backing is a follow-up | diff --git a/website/content/docs/services/transfer.md b/website/content/docs/services/transfer.md new file mode 100644 index 000000000..f83023b4f --- /dev/null +++ b/website/content/docs/services/transfer.md @@ -0,0 +1,73 @@ ++++ +title = "Transfer Family" +description = "AWS Transfer Family (transfer) control plane on fakecloud: SFTP/FTPS/FTP/AS2 servers, users, SSH and host keys, accesses, workflows, agreements, connectors, profiles, certificates, security policies, and web apps — real account-partitioned, persisted state." +weight = 53 ++++ + +fakecloud implements the **AWS Transfer Family** (`transfer`) control plane. The +full **71-operation awsJson1.1 API** ships now: SFTP/FTPS/FTP/AS2 servers, users +and their SSH public keys, host keys, service-managed accesses, workflows and +executions, AS2 agreements, connectors, profiles, certificates, the managed +security-policy catalogue, web apps, identity-provider testing, and tagging. +Every resource is real, account-partitioned state that persists across restarts +in persistent mode, so what one session creates the next session still sees. + +Transfer Family on fakecloud is a control-plane emulator: there is no real SFTP +daemon and no AS2 message-transport engine — the actual movement of files +between clients and storage is out of scope, the same way LocalStack Community +mocks Transfer. Everything up to and including the control plane that configures +a transfer (creating and configuring servers, users, connectors, workflows, and +agreements, testing connections and identity providers, and transitioning server +state) is real. + +## Supported features + +- **Servers** (`CreateServer`, `DescribeServer`, `UpdateServer`, `DeleteServer`, + `StartServer`, `StopServer`, `ListServers`). New servers get an + `arn:aws:transfer:::server/s-` ARN and settle straight to + `ONLINE`; `StartServer` / `StopServer` transition `State` to `ONLINE` / + `OFFLINE` synchronously so `server-online` / `server-offline` waiters + complete. `DescribeServer` reflects the live `UserCount`. +- **Users + SSH public keys** (`CreateUser`, `DescribeUser`, `UpdateUser`, + `DeleteUser`, `ListUsers`, `ImportSshPublicKey`, `DeleteSshPublicKey`). Keys + attach to the user and surface in `DescribeUser`; `ListUsers` reports the + per-user key count. +- **Host keys** (`ImportHostKey`, `UpdateHostKey`, `DescribeHostKey`, + `DeleteHostKey`, `ListHostKeys`) with synthesized fingerprints. +- **Accesses** (`CreateAccess`, `UpdateAccess`, `DescribeAccess`, + `DeleteAccess`, `ListAccesses`) keyed by the directory group `ExternalId`. +- **Workflows + executions** (`CreateWorkflow`, `DescribeWorkflow`, + `DeleteWorkflow`, `ListWorkflows`, `SendWorkflowStepState`, + `DescribeExecution`, `ListExecutions`). Workflow steps round-trip verbatim. +- **AS2 agreements** (`CreateAgreement`, `UpdateAgreement`, `DescribeAgreement`, + `DeleteAgreement`, `ListAgreements`). +- **Connectors** (`CreateConnector`, `UpdateConnector`, `DescribeConnector`, + `DeleteConnector`, `ListConnectors`, `TestConnection`) for SFTP and AS2, plus + the connector transfer actions `StartFileTransfer`, `StartDirectoryListing`, + `StartRemoteDelete`, `StartRemoteMove`, and `ListFileTransferResults`. +- **AS2 profiles** (`CreateProfile`, `UpdateProfile`, `DescribeProfile`, + `DeleteProfile`, `ListProfiles`) and **certificates** (`ImportCertificate`, + `UpdateCertificate`, `DescribeCertificate`, `DeleteCertificate`, + `ListCertificates`). +- **Security policies** (`DescribeSecurityPolicy`, `ListSecurityPolicies`) + return the real AWS-managed Transfer security-policy catalogue + (`TransferSecurityPolicy-2018-11` through the FIPS and PQ-SSH variants). +- **Web apps** (`CreateWebApp`, `UpdateWebApp`, `DescribeWebApp`, + `DeleteWebApp`, `ListWebApps`) with customization + (`UpdateWebAppCustomization`, `DescribeWebAppCustomization`, + `DeleteWebAppCustomization`). +- **Identity provider testing** (`TestIdentityProvider`) and **tagging** + (`TagResource`, `UntagResource`, `ListTagsForResource`) keyed by resource ARN. + +All `List` operations honor `MaxResults` / `NextToken` pagination, and +`@length`, `@range`, and enum input constraints are enforced with the model's +declared error codes. + +## Not implemented + +- **The SFTP / FTPS / FTP daemon and AS2 transport engine.** Transfer Family on + fakecloud does not open a listening SFTP endpoint or move AS2 messages — no + files are transferred over the wire. This mirrors LocalStack Community, which + mocks Transfer as a control plane only. + +100% conformance: all 2,756 generated Smithy probe variants pass. diff --git a/website/content/dynamodb-emulator.md b/website/content/dynamodb-emulator.md index 01a7404c9..3d5ab88a5 100644 --- a/website/content/dynamodb-emulator.md +++ b/website/content/dynamodb-emulator.md @@ -16,7 +16,7 @@ Point your AWS SDK at `http://localhost:4566`. That's the whole setup. ## Why fakecloud for DynamoDB - **57 DynamoDB operations** at 100% conformance — tables, items, transactions (`TransactWriteItems`, `TransactGetItems`), PartiQL (`ExecuteStatement`, `BatchExecuteStatement`), backups, global tables, streams, secondary indexes. -- **Validated against AWS's own Smithy models** on every commit — 152,159/152,159 generated test variants pass, true 100% conformance. +- **Validated against AWS's own Smithy models** on every commit — 154,915/154,915 generated test variants pass, true 100% conformance. - **Any AWS SDK in any language.** Real HTTP server on port 4566 — Python boto3, Node aws-sdk, Go aws-sdk-go-v2, Java, Kotlin, Rust, PHP all work identically. - **No account, no auth token, no paid tier.** AGPL-3.0. - **No Docker required** for DynamoDB (binary runs the storage engine in-process). Fastest local DynamoDB you can run. diff --git a/website/content/fake-aws-server.md b/website/content/fake-aws-server.md index ef3c51e9b..9be2c05c4 100644 --- a/website/content/fake-aws-server.md +++ b/website/content/fake-aws-server.md @@ -16,7 +16,7 @@ Listens on `http://localhost:4566`. Any AWS SDK in any language points at it and ## What "fake AWS server" means here - **Real HTTP server**, not an in-process mock. Your Go / Java / Kotlin / Node / Rust / PHP / Python code uses the regular AWS SDK with `endpoint_url` set to `http://localhost:4566`. -- **Speaks the AWS wire protocol** at true 100% conformance across every implemented service. 60 services, 4,625 operations, 152,159/152,159 Smithy-model-generated test variants pass on every commit. +- **Speaks the AWS wire protocol** at true 100% conformance across every implemented service. 61 services, 4,696 operations, 154,915/154,915 Smithy-model-generated test variants pass on every commit. - **Real execution** for stateful services: Lambda runs your function code in Docker containers across 23 runtimes, RDS runs real PostgreSQL/MySQL/MariaDB/Oracle/SQL Server/Db2, ElastiCache runs real Redis/Valkey/Memcached. - **Real cross-service wiring**: S3 -> Lambda, SQS -> Lambda, SNS fan-out, EventBridge -> Step Functions, and 15+ more integrations execute end-to-end, not as stubs. - **Free, open-source, AGPL-3.0.** No account, no auth token, no paid tier. diff --git a/website/content/fake-bedrock.md b/website/content/fake-bedrock.md index 20f373712..7d1b6da06 100644 --- a/website/content/fake-bedrock.md +++ b/website/content/fake-bedrock.md @@ -20,7 +20,7 @@ Point any AWS SDK at `http://localhost:4566`. - A mock fails to catch bugs in how your code assembles HTTP requests. It never sent a request. - A fake catches those bugs. Your code made a real HTTP call. The request body was parsed by a real JSON parser. The response traveled back through the real SDK response parser. -fakecloud is a fake AWS — a complete server on port 4566 that speaks 60 AWS services' wire protocols at true 100% Smithy conformance (152,159/152,159 generated variants pass). Your code thinks it's talking to real AWS. +fakecloud is a fake AWS — a complete server on port 4566 that speaks 61 AWS services' wire protocols at true 100% Smithy conformance (154,915/154,915 generated variants pass). Your code thinks it's talking to real AWS. And it is, as far as the protocol is concerned. The part that's fake is the response content — which is exactly the part you want to control in tests. diff --git a/website/content/faq.md b/website/content/faq.md index 1108a3653..b382249e3 100644 --- a/website/content/faq.md +++ b/website/content/faq.md @@ -20,7 +20,7 @@ Yes. LocalStack replaced its open-source Community Edition with a proprietary im ### How many AWS services does fakecloud support? -60 services and 4,625 API operations. 152,159/152,159 generated Smithy conformance variants pass on every commit — true 100% across every implemented service, with more services on the roadmap. The explicit goal is 100% of AWS services, each at 100% behavioral conformance, with 100% of cross-service integrations. Services land depth-first — a service is added when it passes the full Smithy-model test variants and cross-service wire-ups. +61 services and 4,696 API operations. 154,915/154,915 generated Smithy conformance variants pass on every commit — true 100% across every implemented service, with more services on the roadmap. The explicit goal is 100% of AWS services, each at 100% behavioral conformance, with 100% of cross-service integrations. Services land depth-first — a service is added when it passes the full Smithy-model test variants and cross-service wire-ups. ### Which AWS services are supported? @@ -109,7 +109,7 @@ GitHub issues: [github.com/faiscadev/fakecloud/issues](https://github.com/faisca {"@type": "Question", "name": "What is fakecloud?", "acceptedAnswer": {"@type": "Answer", "text": "fakecloud is a free, open-source local AWS cloud emulator for integration testing and local development. It runs on a single port (4566), requires no account or auth token, and aims for 100% behavioral conformance with real AWS on every service it implements. AGPL-3.0 licensed."}}, {"@type": "Question", "name": "Is fakecloud free?", "acceptedAnswer": {"@type": "Answer", "text": "Yes. AGPL-3.0, free for commercial use. Using fakecloud as a dev/test dependency has zero AGPL implications for your application."}}, {"@type": "Question", "name": "Is fakecloud a LocalStack alternative?", "acceptedAnswer": {"@type": "Answer", "text": "Yes. LocalStack replaced its open-source Community Edition with a proprietary image in March 2026 that requires an account and auth token. fakecloud is a free, open-source replacement."}}, - {"@type": "Question", "name": "How many AWS services does fakecloud support?", "acceptedAnswer": {"@type": "Answer", "text": "60 services and 4,625 API operations. 152,159/152,159 generated Smithy conformance variants pass on every commit, true 100% across every implemented service, with more on the roadmap. The goal is 100% of AWS services, each at 100% behavioral conformance, with 100% of cross-service integrations."}}, + {"@type": "Question", "name": "How many AWS services does fakecloud support?", "acceptedAnswer": {"@type": "Answer", "text": "61 services and 4,696 API operations. 154,915/154,915 generated Smithy conformance variants pass on every commit, true 100% across every implemented service, with more on the roadmap. The goal is 100% of AWS services, each at 100% behavioral conformance, with 100% of cross-service integrations."}}, {"@type": "Question", "name": "Which AWS services are supported?", "acceptedAnswer": {"@type": "Answer", "text": "S3, SQS, SNS, EventBridge, EventBridge Pipes, EventBridge Scheduler, Lambda, EC2, DynamoDB, IAM, STS, Organizations, SSM, Secrets Manager, CloudWatch Logs, CloudWatch (Metrics & Alarms), KMS, CloudFormation, Cloud Control API, SES (v2 + v1 inbound), Cognito User Pools, Cognito Identity, Kinesis, Firehose, RDS, RDS Data API, Aurora DSQL, Resource Groups, Resource Groups Tagging API, ElastiCache, Step Functions, API Gateway v1 (REST), API Gateway v2 (HTTP), Bedrock, Bedrock Agent, Bedrock Agent Runtime, Bedrock Runtime, ECR, ECS, Elastic Load Balancing v2, CloudFront, Route 53, WAF v2, Application Auto Scaling, Athena, ACM, Glue."}}, {"@type": "Question", "name": "Does fakecloud execute Lambda code for real?", "acceptedAnswer": {"@type": "Answer", "text": "Yes. fakecloud pulls real AWS Lambda runtime containers and executes your handler against them. 27 official runtimes including Node.js 16/18/20/22/24, Python 3.8 through 3.14, Java 11/17/21/25, .NET 6/8/10, Ruby 3.2, Go (go1.x), and custom provided/provided.al2/provided.al2023."}}, {"@type": "Question", "name": "Does fakecloud run real databases for RDS?", "acceptedAnswer": {"@type": "Answer", "text": "Yes. RDS emulation pulls real PostgreSQL, MySQL, MariaDB, Oracle, SQL Server, and Db2 Docker images and runs them as the DB instance."}}, diff --git a/website/content/glossary.md b/website/content/glossary.md index f46bbb3ac..6c5eb8f83 100644 --- a/website/content/glossary.md +++ b/website/content/glossary.md @@ -10,7 +10,7 @@ A short reference for the terms that show up across the fakecloud docs, [conform The measure of whether an emulator reproduces real AWS behavior — request and response shapes, field names, error codes, and observable side effects — not just whether a given API call returns a 200. fakecloud aims at 100% behavioral parity on every service it implements. See [What fakecloud is (and isn't)](/docs/about/what-it-is/). ### Conformance -The automated check that fakecloud's responses match AWS's [Smithy](#smithy) models exactly. fakecloud's conformance harness runs **152,159 generated test variants** on every commit, all of which pass. See [How conformance works](/docs/about/conformance/). +The automated check that fakecloud's responses match AWS's [Smithy](#smithy) models exactly. fakecloud's conformance harness runs **154,915 generated test variants** on every commit, all of which pass. See [How conformance works](/docs/about/conformance/). ### Configurable response A test-only mechanism for setting the exact response (or error) fakecloud will return for a given operation, without modifying application code. Used for testing failure paths — throttles, timeouts, specific error codes — that are hard to trigger against real AWS. diff --git a/website/content/localstack-alternative.md b/website/content/localstack-alternative.md index ce66daf2c..2bcc340dd 100644 --- a/website/content/localstack-alternative.md +++ b/website/content/localstack-alternative.md @@ -1,6 +1,6 @@ +++ title = "Free, open-source LocalStack alternative" -description = "fakecloud is a free, open-source local AWS emulator: 60 services, 4,625 operations, 152,159/152,159 Smithy variants pass (true 100% conformance), 6 test-assertion SDKs. No account, no token, no paid tier. Drop-in replacement for LocalStack Community." +description = "fakecloud is a free, open-source local AWS emulator: 61 services, 4,696 operations, 154,915/154,915 Smithy variants pass (true 100% conformance), 6 test-assertion SDKs. No account, no token, no paid tier. Drop-in replacement for LocalStack Community." template = "page.html" aliases = [ "/alternative/localstack/", @@ -24,14 +24,14 @@ Point any AWS SDK or CLI at `http://localhost:4566` with dummy credentials. That ## Goal: 100% AWS, 100% conformance, 100% integrations -fakecloud aims at every AWS service, each at 100% behavioral conformance, including every cross-service integration. Services land depth-first: a service is supported when it matches real AWS across every documented operation and cross-service wire-up — not when the API surface looks filled in. 60 services are there today (see below), all at true 100% — 152,159/152,159 Smithy variants pass; the rest are on the roadmap, prioritized by real-project demand. +fakecloud aims at every AWS service, each at 100% behavioral conformance, including every cross-service integration. Services land depth-first: a service is supported when it matches real AWS across every documented operation and cross-service wire-up — not when the API surface looks filled in. 61 services are there today (see below), all at true 100% — 154,915/154,915 Smithy variants pass; the rest are on the roadmap, prioritized by real-project demand. This is why fakecloud runs real Lambda code in real runtime containers, runs real PostgreSQL/MySQL/MariaDB/Oracle/SQL Server/Db2 for RDS, runs real Redis/Valkey/Memcached for ElastiCache, fires real S3 -> Lambda and SES inbound -> S3/SNS/Lambda flows, and validates every operation against AWS's own Smithy models on every commit. ## What fakecloud gives you -- **60 AWS services.** S3, SQS, SNS, EventBridge, EventBridge Pipes, EventBridge Scheduler, Lambda, EC2, DynamoDB, IAM, STS, Organizations, SSM, Secrets Manager, CloudWatch Logs, CloudWatch (Metrics & Alarms), KMS, CloudFormation, Cloud Control API, SES (v2 + v1 inbound), Cognito User Pools, Cognito Identity, Kinesis, Firehose, RDS, RDS Data API, Aurora DSQL, Resource Groups, Resource Groups Tagging API, ElastiCache, Step Functions, API Gateway v1 (REST), API Gateway v2 (HTTP), Bedrock, Bedrock Agent, Bedrock Agent Runtime, Bedrock Runtime, ECR, ECS, Elastic Load Balancing v2, CloudFront, Route 53, WAF v2, Application Auto Scaling, Athena, ACM, Glue. -- **4,625 API operations. True 100% conformance** across every implemented service — 152,159/152,159 Smithy-model-generated test variants pass on every commit. +- **61 AWS services.** S3, SQS, SNS, EventBridge, EventBridge Pipes, EventBridge Scheduler, Lambda, EC2, DynamoDB, IAM, STS, Organizations, SSM, Secrets Manager, CloudWatch Logs, CloudWatch (Metrics & Alarms), KMS, CloudFormation, Cloud Control API, SES (v2 + v1 inbound), Cognito User Pools, Cognito Identity, Kinesis, Firehose, RDS, RDS Data API, Aurora DSQL, Resource Groups, Resource Groups Tagging API, ElastiCache, Step Functions, API Gateway v1 (REST), API Gateway v2 (HTTP), Bedrock, Bedrock Agent, Bedrock Agent Runtime, Bedrock Runtime, ECR, ECS, Elastic Load Balancing v2, CloudFront, Route 53, WAF v2, Application Auto Scaling, Athena, ACM, Glue. +- **4,696 API operations. True 100% conformance** across every implemented service — 154,915/154,915 Smithy-model-generated test variants pass on every commit. - **Tested against upstream Terraform acceptance tests.** CI runs `hashicorp/terraform-provider-aws` `TestAcc*` suites against fakecloud, catching waiter and field-presence drift that pure SDK tests miss. - **Real Lambda execution.** 23 runtimes in Docker containers. Not a mock, not a stub. Node, Python, Java, Go, .NET, Ruby, custom runtimes. - **Real stateful services.** RDS runs real PostgreSQL/MySQL/MariaDB/Oracle/SQL Server/Db2. ElastiCache runs real Redis/Valkey/Memcached. Your Lambda talking to RDS is talking to a real Postgres (or Oracle, or SQL Server). @@ -52,7 +52,7 @@ This is why fakecloud runs real Lambda code in real runtime containers, runs rea | Startup | ~300ms | ~3s | | Idle memory | ~10 MiB | ~150 MiB | | Install size | ~19 MB binary | ~1 GB image | -| Conformance methodology | Smithy-model-validated, 152,159/152,159 variants pass | Not published | +| Conformance methodology | Smithy-model-validated, 154,915/154,915 variants pass | Not published | | Test-assertion SDKs | TypeScript, Python, Go, PHP, Java, Rust | Python, Java | | Cognito User Pools | 122 operations | [Paid only](https://docs.localstack.cloud/references/licensing/) | | SES v2 | 110 operations, full send + templates + DKIM | [Paid only](https://docs.localstack.cloud/references/licensing/) | @@ -119,7 +119,7 @@ Yes. Single binary, ~19 MB, ~300ms startup. Common patterns: install-and-run as **What does "100% conformance" mean?** -For every operation exposed by AWS's Smithy model, fakecloud accepts every documented input shape and returns the documented output shape, with every field AWS returns. Validated on every commit against 152,159 generated test variants — every single one passes, no flake margin and no skipped services — plus the upstream `hashicorp/terraform-provider-aws` `TestAcc*` suites. This applies to every service listed above. +For every operation exposed by AWS's Smithy model, fakecloud accepts every documented input shape and returns the documented output shape, with every field AWS returns. Validated on every commit against 154,915 generated test variants — every single one passes, no flake margin and no skipped services — plus the upstream `hashicorp/terraform-provider-aws` `TestAcc*` suites. This applies to every service listed above. **What's fakecloud's coverage goal?** diff --git a/website/content/supported-services.md b/website/content/supported-services.md index 487cfbee7..2ce427b1c 100644 --- a/website/content/supported-services.md +++ b/website/content/supported-services.md @@ -1,15 +1,15 @@ +++ title = "AWS Service Coverage & API Conformance" -description = "fakecloud provides 100% API conformance across 4,625 operations. Explore our supported AWS services for local development." +description = "fakecloud provides 100% API conformance across 4,696 operations. Explore our supported AWS services for local development." template = "page.html" +++ -fakecloud provides 100% API conformance across 4,625 operations. Unlike mocks, fakecloud is built against official AWS Smithy models to ensure wire-protocol compatibility and deterministic behavior for local development. +fakecloud provides 100% API conformance across 4,696 operations. Unlike mocks, fakecloud is built against official AWS Smithy models to ensure wire-protocol compatibility and deterministic behavior for local development. ## Coverage Summary - **Total Services**: 54 - **Total Operations**: 4,220 -- **Conformance Engine**: 152,159 Smithy-based test variants +- **Conformance Engine**: 154,915 Smithy-based test variants - **Startup Time**: ~300ms ## Supported Services @@ -27,6 +27,7 @@ fakecloud provides 100% API conformance across 4,625 operations. Unlike mocks, f - **RDS Data API**: 6 operations. Real SQL (`ExecuteStatement`/`BatchExecuteStatement`) on the backing Postgres/MySQL container with typed parameters and results, plus transactions (`BeginTransaction`/`CommitTransaction`/`RollbackTransaction`). - **Redshift**: 141 operations. Full control plane — clusters, snapshots, parameter/subnet/security groups, snapshot schedules and copy grants, endpoint access, per-cluster logging, cross-region snapshot-copy config, and tagging. No SQL data plane (that is the separate `redshift-data` API). - **Database Migration Service (DMS)**: 119 operations. Full control plane — replication instances (settle to `available`), endpoints with per-engine settings, replication tasks (with assessment runs and table statistics), replication subnet groups, event subscriptions, certificates, connections (`TestConnection`), serverless replication configs and replications, data providers, instance profiles, migration projects, schema-conversion / metadata-model requests, Fleet Advisor, recommendations, account attributes, and tagging. Real CRUD with pagination and filters. No data-migration engine — the actual row movement is out of scope, matching how LocalStack Community mocks DMS. +- **Transfer Family**: 71 operations. Full control plane — SFTP/FTPS/FTP/AS2 servers (`StartServer`/`StopServer` settle `State` to `ONLINE`/`OFFLINE`), users and their SSH public keys, host keys, service-managed accesses, workflows and executions (`SendWorkflowStepState`), AS2 agreements, connectors (SFTP + AS2, with `TestConnection`, `StartFileTransfer`, `StartDirectoryListing`, `StartRemoteDelete`/`StartRemoteMove`, `ListFileTransferResults`), profiles, certificates, the managed security-policy catalogue, web apps (+ customization), `TestIdentityProvider`, and tagging. Real CRUD with `MaxResults`/`NextToken` pagination and enforced `@length`/`@range`/enum constraints. No SFTP daemon or AS2 transport engine — the file movement itself is out of scope, matching how LocalStack Community mocks Transfer. - **Aurora DSQL**: 16 operations. Serverless distributed PostgreSQL control plane. Cluster lifecycle (`CreateCluster`/`GetCluster`/`UpdateCluster`/`DeleteCluster`/`ListClusters`) with async `CREATING`->`ACTIVE` transitions, cluster resource policies, change streams to Kinesis (`CreateStream`/`GetStream`/`DeleteStream`/`ListStreams`), `GetVpcEndpointServiceName`, and tagging. Data plane (reachable container + IAM-token auth) is a follow-up. - **ElastiCache**: 75 operations. Real Redis, Valkey, and Memcached via Docker. - **MemoryDB**: 45 operations. Full control plane for Redis/Valkey clusters, shards, ACLs, users, parameter and subnet groups, snapshots, and multi-region clusters, with persistence. Redis/Valkey data-plane container backing is a follow-up. diff --git a/website/content/vs/elasticmq.md b/website/content/vs/elasticmq.md index 8246a57d6..736dcf624 100644 --- a/website/content/vs/elasticmq.md +++ b/website/content/vs/elasticmq.md @@ -6,7 +6,7 @@ template = "page.html" [ElasticMQ](https://github.com/softwaremill/elasticmq) is a message queue server with an Amazon SQS-compatible interface. Scala-based, focused, battle-tested. Good at what it does. -fakecloud's SQS is one of 60 services and ties into the rest (SNS fan-out, Lambda event source mappings, DLQ to other services, IAM policy enforcement). +fakecloud's SQS is one of 61 services and ties into the rest (SNS fan-out, Lambda event source mappings, DLQ to other services, IAM policy enforcement). ## When to pick ElasticMQ diff --git a/website/content/vs/floci.md b/website/content/vs/floci.md index c33d364e7..cdd9a0b90 100644 --- a/website/content/vs/floci.md +++ b/website/content/vs/floci.md @@ -16,7 +16,7 @@ Both are free, open-source, local AWS emulators. Real HTTP server speaking the A **floci's approach** (check their site for the current details — the project publishes performance claims like startup time, memory, and SDK-test pass rate): a free LocalStack replacement. Verify their numbers against the version you'd actually run. -**fakecloud's approach:** depth-first, explicit goal. 100% of AWS services, each at 100% behavioral conformance, with 100% of cross-service integrations. A service is added when it passes the full Smithy-model test variants and cross-service wire-ups, not when the API surface looks filled in. 60 services shipped today (including full ECR with OCI v2 `docker push`/`pull`, full ECS, full ELBv2 ALB/NLB/GWLB control plane). Built around real Lambda execution (23 runtimes in Docker), real stateful backends (Postgres/MySQL/MariaDB/Redis/Valkey/Memcached via Docker), real cross-service wiring, and validation on every commit against AWS's own Smithy models — 152,159/152,159 generated test variants pass, true 100% conformance — plus the upstream `hashicorp/terraform-provider-aws` `TestAcc*` suites. +**fakecloud's approach:** depth-first, explicit goal. 100% of AWS services, each at 100% behavioral conformance, with 100% of cross-service integrations. A service is added when it passes the full Smithy-model test variants and cross-service wire-ups, not when the API surface looks filled in. 61 services shipped today (including full ECR with OCI v2 `docker push`/`pull`, full ECS, full ELBv2 ALB/NLB/GWLB control plane). Built around real Lambda execution (23 runtimes in Docker), real stateful backends (Postgres/MySQL/MariaDB/Redis/Valkey/Memcached via Docker), real cross-service wiring, and validation on every commit against AWS's own Smithy models — 154,915/154,915 generated test variants pass, true 100% conformance — plus the upstream `hashicorp/terraform-provider-aws` `TestAcc*` suites. Breadth-first and depth-first are both valid tradeoffs. Pick by whether your tests need real downstream execution and cross-service flows, or surface-level plausibility across more services. @@ -32,12 +32,12 @@ Run your actual test suite against both. Numbers published on landing pages are | Distribution | Single static binary (~19 MB) + Docker image | | Startup | ~300ms | | Idle memory | ~10 MiB | -| Services covered today | 49 (3,966 ops) at true 100% conformance (152,159/152,159 variants), incl. ECR + ECS + ELBv2 | +| Services covered today | 49 (3,966 ops) at true 100% conformance (154,915/154,915 variants), incl. ECR + ECS + ELBv2 | | Lambda execution | Real code in 13 Docker runtime containers | | RDS | Real PostgreSQL/MySQL/MariaDB via Docker | | ElastiCache | Real Redis/Valkey/Memcached via Docker | | Cross-service wiring | S3 -> Lambda, SNS fan-out, EventBridge -> Step Functions, SES inbound -> S3/SNS/Lambda, 15+ more fire end-to-end | -| Conformance methodology | Smithy-validated, 152,159/152,159 test variants pass on every commit | +| Conformance methodology | Smithy-validated, 154,915/154,915 test variants pass on every commit | | Terraform TestAcc CI | Yes (upstream suites run against fakecloud) | | Test-assertion SDKs | TypeScript, Python, Go, PHP, Java, Rust | | Multi-account, SCPs, ABAC | Yes | diff --git a/website/content/vs/localstack.md b/website/content/vs/localstack.md index 69d5431e1..dd356aa8d 100644 --- a/website/content/vs/localstack.md +++ b/website/content/vs/localstack.md @@ -27,7 +27,7 @@ Since LocalStack replaced its open-source Community Edition with a proprietary i | Startup | ~300ms | ~3s | ~3s | | Idle memory | ~10 MiB | ~150 MiB | ~150 MiB | | Install size | ~19 MB | ~1 GB Docker image | ~1 GB Docker image | -| Conformance methodology | Smithy-validated, 152,159/152,159 test variants pass on every commit | Not published | Not published | +| Conformance methodology | Smithy-validated, 154,915/154,915 test variants pass on every commit | Not published | Not published | | Terraform TestAcc CI | Yes (upstream suites run against fakecloud) | Not published | Not published | | Test-assertion SDKs | TypeScript, Python, Go, PHP, Java, Rust | Python, Java | Python, Java | | Cognito User Pools | 122 ops, full auth flows | [Paid only](https://docs.localstack.cloud/references/licensing/) | Yes | diff --git a/website/content/vs/ministack.md b/website/content/vs/ministack.md index 0ed605288..8cc3ea261 100644 --- a/website/content/vs/ministack.md +++ b/website/content/vs/ministack.md @@ -16,7 +16,7 @@ Free, open-source, local AWS emulation. Real HTTP server speaking the AWS wire p **MiniStack's approach** (check their repo for current details — it's moving fast): positions as a free LocalStack replacement. Evaluate their service coverage and architecture directly against your test suite. -**fakecloud's approach:** depth-first, explicit goal. 100% of AWS services, each at 100% behavioral conformance, with 100% of cross-service integrations. Services land one at a time; a service is added when it passes the full Smithy-model test variants and cross-service wire-ups, not when the API surface looks filled in. 60 services shipped today (including full ECR with OCI v2 `docker push`/`pull`, full ECS, full ELBv2 ALB/NLB/GWLB control plane); more progressively. Built around real Lambda execution, real stateful backends (Postgres/MySQL/MariaDB/Redis/Valkey/Memcached via Docker), and real cross-service wiring, validated on every commit against AWS's own Smithy models — 152,159/152,159 generated test variants pass, true 100% conformance — plus the upstream `hashicorp/terraform-provider-aws` `TestAcc*` suites. +**fakecloud's approach:** depth-first, explicit goal. 100% of AWS services, each at 100% behavioral conformance, with 100% of cross-service integrations. Services land one at a time; a service is added when it passes the full Smithy-model test variants and cross-service wire-ups, not when the API surface looks filled in. 61 services shipped today (including full ECR with OCI v2 `docker push`/`pull`, full ECS, full ELBv2 ALB/NLB/GWLB control plane); more progressively. Built around real Lambda execution, real stateful backends (Postgres/MySQL/MariaDB/Redis/Valkey/Memcached via Docker), and real cross-service wiring, validated on every commit against AWS's own Smithy models — 154,915/154,915 generated test variants pass, true 100% conformance — plus the upstream `hashicorp/terraform-provider-aws` `TestAcc*` suites. These are philosophies, not rankings. Breadth-first and depth-first are different tradeoffs. A team whose tests lean lightly on many services will prefer breadth. A team whose tests exercise real cross-service flows or need real code execution will prefer depth. @@ -35,11 +35,11 @@ These are philosophies, not rankings. Breadth-first and depth-first are differen | Distribution | Single static binary (~19 MB) + Docker image | | Startup | ~300ms | | Idle memory | ~10 MiB | -| Services covered today | 47 (3,966 ops) at true 100% conformance (152,159/152,159 variants), incl. ECR + ECS + ELBv2 | +| Services covered today | 47 (3,966 ops) at true 100% conformance (154,915/154,915 variants), incl. ECR + ECS + ELBv2 | | Lambda execution | Real, 23 runtimes in Docker | | RDS | Real PostgreSQL/MySQL/MariaDB via Docker | | ElastiCache | Real Redis/Valkey/Memcached via Docker | -| Conformance methodology | Smithy-validated, 152,159/152,159 test variants pass on every commit | +| Conformance methodology | Smithy-validated, 154,915/154,915 test variants pass on every commit | | Terraform TestAcc CI | Yes (upstream suites run against fakecloud) | | Test-assertion SDKs | TypeScript, Python, Go, PHP, Java, Rust | | License | AGPL-3.0 | diff --git a/website/content/vs/moto.md b/website/content/vs/moto.md index 49416c58a..6d78ce1d7 100644 --- a/website/content/vs/moto.md +++ b/website/content/vs/moto.md @@ -29,7 +29,7 @@ fakecloud is a different tool for a different problem. | Real cross-service wiring | Yes (S3 -> Lambda, SNS fan-out, etc fire end-to-end) | Partial (Moto simulates some events, not real execution) | | Setup for Python unit tests | HTTP endpoint override + fakecloud running | `@mock_aws` decorator | | Service count | 47 at true 100% conformance (depth-first) | 100+ at varying depth (breadth-first) | -| Conformance methodology | Smithy-validated, 152,159/152,159 test variants pass on every commit | Not published | +| Conformance methodology | Smithy-validated, 154,915/154,915 test variants pass on every commit | Not published | | License | AGPL-3.0 | Apache-2.0 | ## When Moto is the right pick diff --git a/website/content/vs/sam-local.md b/website/content/vs/sam-local.md index 874b89a3a..4dd9a58b9 100644 --- a/website/content/vs/sam-local.md +++ b/website/content/vs/sam-local.md @@ -1,12 +1,12 @@ +++ title = "fakecloud vs SAM Local" -description = "How fakecloud compares to AWS SAM Local. Scope difference: SAM Local runs Lambda + limited API Gateway; fakecloud runs 60 services with real cross-service wiring." +description = "How fakecloud compares to AWS SAM Local. Scope difference: SAM Local runs Lambda + limited API Gateway; fakecloud runs 61 services with real cross-service wiring." template = "page.html" +++ AWS SAM Local is AWS's official tool for running Lambda functions locally. It invokes Lambda inside a Docker container with the real AWS runtime image, and provides a limited HTTP / API Gateway surface in front. -fakecloud runs Lambda the same way — real runtime containers, 23 runtimes supported — and also runs 46 other AWS services end-to-end at true 100% Smithy conformance (152,159/152,159 variants pass). +fakecloud runs Lambda the same way — real runtime containers, 23 runtimes supported — and also runs 46 other AWS services end-to-end at true 100% Smithy conformance (154,915/154,915 variants pass). ## Scope difference diff --git a/website/static/llms-full.txt b/website/static/llms-full.txt index 170961cbf..1d42f4683 100644 --- a/website/static/llms-full.txt +++ b/website/static/llms-full.txt @@ -6,10 +6,10 @@ fakecloud emulates AWS locally for integration testing and development. It is a single Rust binary (~19 MB, ~300ms startup, ~10 MiB idle memory) — no Docker required to run fakecloud itself, no signup. Point any AWS SDK or the AWS CLI at `http://localhost:4566` with dummy credentials. -**Coverage goal:** 100% of AWS services, each at 100% behavioral conformance, with 100% of cross-service integrations. Approach is depth-first — a service lands when it passes the full Smithy-model test variants and the cross-service wire-ups that matter for it, not when the API surface looks filled in. 60 services (4,625 operations) are shipped today, all at true 100% conformance — 152,159/152,159 generated Smithy variants pass on every commit; more land progressively as they hit the bar. +**Coverage goal:** 100% of AWS services, each at 100% behavioral conformance, with 100% of cross-service integrations. Approach is depth-first — a service lands when it passes the full Smithy-model test variants and the cross-service wire-ups that matter for it, not when the API surface looks filled in. 61 services (4,696 operations) are shipped today, all at true 100% conformance — 154,915/154,915 generated Smithy variants pass on every commit; more land progressively as they hit the bar. Key design principles: -- **Depth-first coverage**: every implemented service targets 100% conformance with real AWS, validated on every commit against AWS's own Smithy models — 152,159/152,159 generated test variants pass on every commit, true 100% across every implemented service. CI also runs upstream `hashicorp/terraform-provider-aws` `TestAcc*` suites against fakecloud. +- **Depth-first coverage**: every implemented service targets 100% conformance with real AWS, validated on every commit against AWS's own Smithy models — 154,915/154,915 generated test variants pass on every commit, true 100% across every implemented service. CI also runs upstream `hashicorp/terraform-provider-aws` `TestAcc*` suites against fakecloud. - **Real cross-service integrations**: 30+ service-to-service integrations wire up end-to-end — S3 notifications, SNS fan-out, EventBridge rules, DynamoDB Streams, CloudWatch Logs subscriptions, Cognito triggers, API Gateway -> Lambda, Step Functions task integrations, SES inbound -> S3/SNS/Lambda, and more. Not stubs — the downstream service actually executes. - **Real execution for stateful services**: Lambda runs function code in real Lambda runtime containers across 23 runtimes. RDS runs real PostgreSQL/MySQL/MariaDB. ElastiCache runs real Redis/Valkey. - **Zero friction**: no auth tokens, no accounts, no config files needed @@ -87,7 +87,7 @@ Default is `memory` mode — all state lives in RAM, startup is instant, shutdown is a no-op. Pass `--storage-mode=persistent --data-path=` to mirror all service state to disk and reload on the next launch. -All 60 services persist their durable state: S3, SQS, SNS, EventBridge, +All 61 services persist their durable state: S3, SQS, SNS, EventBridge, EventBridge Pipes, EventBridge Scheduler, Lambda, DynamoDB, IAM, STS, SSM, Secrets Manager, CloudWatch Logs, CloudWatch (Metrics & Alarms), KMS, CloudFormation, Cloud Control API, SES, Cognito User Pools, Cognito Identity, Kinesis, Firehose, RDS, RDS Data API, Aurora DSQL, Resource Groups, Resource Groups Tagging API, ElastiCache, MemoryDB, EKS, AWS Backup, diff --git a/website/static/llms.txt b/website/static/llms.txt index 9d46a3cfb..4ba3fea40 100644 --- a/website/static/llms.txt +++ b/website/static/llms.txt @@ -4,7 +4,7 @@ - **Goal:** 100% of AWS services, each at 100% conformance, with 100% of cross-service integrations. Approach is depth-first — a service is added when it passes the full Smithy-model test variants and cross-service wire-ups, not when the API surface looks filled in. - Single static binary (~19 MB), ~300ms startup, ~10 MiB idle memory, no Docker required to run fakecloud itself -- **60 AWS services shipped today, 4,625 operations, true 100% Smithy conformance — 152,159/152,159 generated test variants pass on every commit**, no flake margin and no skipped services. More services land as they hit the conformance bar; roadmap is driven by real-project demand. +- **61 AWS services shipped today, 4,696 operations, true 100% Smithy conformance — 154,915/154,915 generated test variants pass on every commit**, no flake margin and no skipped services. More services land as they hit the conformance bar; roadmap is driven by real-project demand. - Services: S3, SQS, SNS, EventBridge, EventBridge Pipes, EventBridge Scheduler, Lambda, EC2, DynamoDB, IAM, STS, Organizations, SSM, Secrets Manager, CloudWatch Logs, CloudWatch (Metrics & Alarms), KMS, CloudFormation, Cloud Control API, SES (v2 + v1 inbound), Cognito User Pools, Cognito Identity, Kinesis, Firehose, RDS, RDS Data API, Aurora DSQL, Resource Groups, Resource Groups Tagging API, ElastiCache, MemoryDB, EKS, AWS Backup, Cloud Map, Step Functions, API Gateway v1 (REST), API Gateway v2 (HTTP), Bedrock, Bedrock Agent, Bedrock Agent Runtime, Bedrock Runtime, ECR, ECS, Elastic Load Balancing v2, CloudFront, Route 53, WAF v2, Application Auto Scaling, Athena, ACM, Glue - 30+ cross-service integrations: S3 notifications, SNS fan-out, EventBridge rules, DynamoDB Streams, CloudWatch Logs subscriptions, Cognito triggers, API Gateway -> Lambda, Step Functions task integrations, SES inbound -> S3/SNS/Lambda, and more - Real Lambda execution via Docker across 23 runtimes (Node.js 16/18/20/22/24, Python 3.8/3.9/3.10/3.11/3.12/3.13/3.14, Java 11/17/21/25, Go 1.x, Ruby 3.3/3.4, .NET 8/10, custom `provided.al2` / `provided.al2023`) diff --git a/website/templates/index.html b/website/templates/index.html index e333b6c46..36cbcf754 100644 --- a/website/templates/index.html +++ b/website/templates/index.html @@ -12,7 +12,7 @@ "applicationCategory": "DeveloperApplication", "applicationSubCategory": "CloudTestingTool", "operatingSystem": "Linux, macOS, Windows", - "description": "Free, open-source local AWS cloud emulator. 60 services, 4,625 operations, 152,159/152,159 Smithy variants pass — true 100% conformance. Single binary, no account, no auth token.", + "description": "Free, open-source local AWS cloud emulator. 61 services, 4,696 operations, 154,915/154,915 Smithy variants pass — true 100% conformance. Single binary, no account, no auth token.", "url": "https://fakecloud.dev", "downloadUrl": "https://github.com/faiscadev/fakecloud/releases", "codeRepository": "https://github.com/faiscadev/fakecloud", @@ -56,7 +56,7 @@

fakecloud

Local AWS cloud emulator for integration tests. Run your app with normal AWS clients, stay fully local, and use fakecloud SDKs when your tests need deeper visibility.

-

60 services. 4,625 operations. 152,159/152,159 Smithy variants pass — true 100% conformance.

+

61 services. 4,696 operations. 154,915/154,915 Smithy variants pass — true 100% conformance.

Get Started Why fakecloud @@ -95,13 +95,13 @@

First-party test clients

Coverage
-

60 AWS services

+

61 AWS services

S3, SQS, SNS, EventBridge, EventBridge Pipes, EventBridge Scheduler, Lambda, EC2, DynamoDB, IAM, STS, Organizations, SSM, Secrets Manager, CloudWatch Logs, CloudWatch (Metrics & Alarms), KMS, CloudFormation, Cloud Control API, SES, Cognito User Pools, Cognito Identity, Kinesis, Firehose, RDS, RDS Data API, Aurora DSQL, Resource Groups, Resource Groups Tagging API, ElastiCache, MemoryDB, EKS, Cloud Map, Step Functions, API Gateway v1 (REST), API Gateway v2 (HTTP), Bedrock, Bedrock Agent, Bedrock Agent Runtime, Bedrock Runtime, ECR, ECS, Elastic Load Balancing v2, CloudFront, Route 53, WAF v2, Application Auto Scaling, Athena, ACM, and Glue.

Tested

Conformance tested

-

True 100% conformance across all 3,932 implemented API operations: 152,159/152,159 Smithy-model-generated test variants pass on every commit, backed by end-to-end tests against the official AWS SDKs.

+

True 100% conformance across all 3,932 implemented API operations: 154,915/154,915 Smithy-model-generated test variants pass on every commit, backed by end-to-end tests against the official AWS SDKs.

Real behavior