update_connector
async
¶
update_connector(
connector_id: ConnectorId,
*,
config_overrides: Optional[AsyncTransferClientConfig] = 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/async_transfer.py
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 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 | |