As2ConfigProperty Struct
A structure that contains the parameters for an AS2 connector object.
| Source | |
|---|---|
| Type last changed |
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_transfer as transfer } from 'aws-cdk-lib';
const as2ConfigProperty: transfer.CfnConnector.As2ConfigProperty = {
asyncMdnConfig: {
serverIds: ['serverIds'],
url: 'url',
},
basicAuthSecretId: 'basicAuthSecretId',
compression: 'compression',
encryptionAlgorithm: 'encryptionAlgorithm',
localProfileId: 'localProfileId',
mdnResponse: 'mdnResponse',
mdnSigningAlgorithm: 'mdnSigningAlgorithm',
messageSubject: 'messageSubject',
partnerProfileId: 'partnerProfileId',
preserveContentType: 'preserveContentType',
signingAlgorithm: 'signingAlgorithm',
};
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_transfer as transfer
as2_config_property = transfer.CfnConnector.As2ConfigProperty(
async_mdn_config=transfer.CfnConnector.ConnectorAsyncMdnConfigProperty(
server_ids=["serverIds"],
url="url"
),
basic_auth_secret_id="basicAuthSecretId",
compression="compression",
encryption_algorithm="encryptionAlgorithm",
local_profile_id="localProfileId",
mdn_response="mdnResponse",
mdn_signing_algorithm="mdnSigningAlgorithm",
message_subject="messageSubject",
partner_profile_id="partnerProfileId",
preserve_content_type="preserveContentType",
signing_algorithm="signingAlgorithm"
)
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.transfer.*;
As2ConfigProperty as2ConfigProperty = As2ConfigProperty.builder()
.asyncMdnConfig(ConnectorAsyncMdnConfigProperty.builder()
.serverIds(List.of("serverIds"))
.url("url")
.build())
.basicAuthSecretId("basicAuthSecretId")
.compression("compression")
.encryptionAlgorithm("encryptionAlgorithm")
.localProfileId("localProfileId")
.mdnResponse("mdnResponse")
.mdnSigningAlgorithm("mdnSigningAlgorithm")
.messageSubject("messageSubject")
.partnerProfileId("partnerProfileId")
.preserveContentType("preserveContentType")
.signingAlgorithm("signingAlgorithm")
.build();
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Transfer;
var as2ConfigProperty = new As2ConfigProperty {
AsyncMdnConfig = new ConnectorAsyncMdnConfigProperty {
ServerIds = new [] { "serverIds" },
Url = "url"
},
BasicAuthSecretId = "basicAuthSecretId",
Compression = "compression",
EncryptionAlgorithm = "encryptionAlgorithm",
LocalProfileId = "localProfileId",
MdnResponse = "mdnResponse",
MdnSigningAlgorithm = "mdnSigningAlgorithm",
MessageSubject = "messageSubject",
PartnerProfileId = "partnerProfileId",
PreserveContentType = "preserveContentType",
SigningAlgorithm = "signingAlgorithm"
};
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
as2ConfigProperty := &As2ConfigProperty{
AsyncMdnConfig: &ConnectorAsyncMdnConfigProperty{
ServerIds: []*string{
jsii.String("serverIds"),
},
Url: jsii.String("url"),
},
BasicAuthSecretId: jsii.String("basicAuthSecretId"),
Compression: jsii.String("compression"),
EncryptionAlgorithm: jsii.String("encryptionAlgorithm"),
LocalProfileId: jsii.String("localProfileId"),
MdnResponse: jsii.String("mdnResponse"),
MdnSigningAlgorithm: jsii.String("mdnSigningAlgorithm"),
MessageSubject: jsii.String("messageSubject"),
PartnerProfileId: jsii.String("partnerProfileId"),
PreserveContentType: jsii.String("preserveContentType"),
SigningAlgorithm: jsii.String("signingAlgorithm"),
}
Properties
asyncMdnConfigoptionalIResolvable | CfnConnector.async_mdn_configoptionaltyping.Union[IResolvable, ConnectorAsyncMdnConfigProperty]asyncMdnConfigoptionalIResolvableAsyncMdnConfigoptionalIResolvableAsyncMdnConfigoptionalinterface{} #basicAuthSecretIdoptionalstringbasic_auth_secret_idoptionalstrbasicAuthSecretIdoptionalStringBasicAuthSecretIdoptionalstringBasicAuthSecretIdoptional*string #notes
To use Basic authentication, you must provide the name or Amazon Resource Name (ARN) of a secret in AWS 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:
- You are storing these credentials in Secrets Manager, not passing them directly into this API.
- If you are using the API, SDKs, or CloudFormation to configure your connector, then you must create the secret before you can enable Basic authentication. However, if you are using the AWS management console, you can have the system create the secret for you.
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=""'
compressionoptionalstringcompressionoptionalstrcompressionoptionalStringCompressionoptionalstringCompressionoptional*string #encryptionAlgorithmoptionalstringencryption_algorithmoptionalstrencryptionAlgorithmoptionalStringEncryptionAlgorithmoptionalstringEncryptionAlgorithmoptional*string #notes
Note the following:
- Do not use the
DES_EDE3_CBCalgorithm unless you must support a legacy client that requires it, as it is a weak encryption algorithm. - You can only specify
NONEif the URL for your connector uses HTTPS. Using HTTPS ensures that no traffic is sent in clear text.
localProfileIdoptionalstringlocal_profile_idoptionalstrlocalProfileIdoptionalStringLocalProfileIdoptionalstringLocalProfileIdoptional*string #mdnResponseoptionalstringmdn_responseoptionalstrmdnResponseoptionalStringMdnResponseoptionalstringMdnResponseoptional*string #Specify either of the following values:
SYNC: The system expects a synchronous MDN response, confirming that the file was transferred successfully (or not).NONE: Specifies that no MDN response is required.
mdnSigningAlgorithmoptionalstringmdn_signing_algorithmoptionalstrmdnSigningAlgorithmoptionalStringMdnSigningAlgorithmoptionalstringMdnSigningAlgorithmoptional*string #If set to DEFAULT (or not set at all), the value for
SigningAlgorithmis used.
messageSubjectoptionalstringmessage_subjectoptionalstrmessageSubjectoptionalStringMessageSubjectoptionalstringMessageSubjectoptional*string #partnerProfileIdoptionalstringpartner_profile_idoptionalstrpartnerProfileIdoptionalStringPartnerProfileIdoptionalstringPartnerProfileIdoptional*string #preserveContentTypeoptionalstringpreserve_content_typeoptionalstrpreserveContentTypeoptionalStringPreserveContentTypeoptionalstringPreserveContentTypeoptional*string #signingAlgorithmoptionalstringsigning_algorithmoptionalstrsigningAlgorithmoptionalStringSigningAlgorithmoptionalstringSigningAlgorithmoptional*string #