update_connector
¶
update_connector(
connector_id: ConnectorId,
*,
config_overrides: Optional[TransferClientConfig] = None,
url: Optional[Url] = None,
as2_config: Optional[As2ConnectorConfig] = None,
access_role: Optional[Role] = None,
logging_role: Optional[Role] = None,
sftp_config: Optional[SftpConnectorConfig] = None,
security_policy_name: Optional[ConnectorSecurityPolicyName] = None,
egress_config: Optional[UpdateConnectorEgressConfig] = None,
ip_address_type: Optional[ConnectorsIpAddressType] = None,
) -> UpdateConnectorResponse
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.
Parameters:
-
connector_id(ConnectorId) –The unique identifier for the connector.
-
url(Optional[Url], default:None) –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.
-
as2_config(Optional[As2ConnectorConfig], default:None) –A structure that contains the parameters for an AS2 connector object.
-
access_role(Optional[Role], default:None) –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
StartFileTransferand specifying the file paths in the request parameter,SendFilePaths. We use the file’s 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, theAccessRoleneeds to provide read and write access to the parent directory of the file location used in theStartFileTransferrequest. Additionally, you need to provide read and write access to the parent directory of the files that you intend to send withStartFileTransfer.If you are using Basic authentication for your AS2 connector, the access role requires the
secretsmanager:GetSecretValuepermission 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 thekms:Decryptpermission 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
StartFileTransferrequest. Additionally, make sure that the role providessecretsmanager:GetSecretValuepermission to Secrets Manager. -
logging_role(Optional[Role], default:None) –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.
-
sftp_config(Optional[SftpConnectorConfig], default:None) –A structure that contains the parameters for an SFTP connector object.
-
security_policy_name(Optional[ConnectorSecurityPolicyName], default:None) –Specifies the name of the security policy for the connector.
-
egress_config(Optional[UpdateConnectorEgressConfig], default:None) –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.
-
ip_address_type(Optional[ConnectorsIpAddressType], default:None) –Specifies the IP address type for the connector's network connections. When set to
IPV4, the connector uses IPv4 addresses only. When set toDUALSTACK, the connector supports both IPv4 and IPv6 addresses, with IPv6 preferred when available.
Raises:
-
InternalServiceError–This exception is thrown when an error occurs in the Transfer Family service.
-
InvalidRequestException–This exception is thrown when the client submits a malformed request.
-
ResourceExistsException–The requested resource does not exist, or exists in a region other than the one specified for the command.
-
ResourceNotFoundException–This exception is thrown when a resource is not found by the Amazon Web ServicesTransfer Family service.
-
ServiceUnavailableException–The request has failed because the Amazon Web ServicesTransfer Family service is not available.
-
ThrottlingException–The request was denied due to request throttling.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_transfer/_services/transfer.py
3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 | |