S3Files / Client / update_mount_target

update_mount_target

S3Files.Client.update_mount_target(**kwargs)

Updates the mount target resource, specifically security group configurations.

See also: AWS API Documentation

Request Syntax

response = client.update_mount_target(
    mountTargetId='string',
    securityGroups=[
        'string',
    ]
)
Parameters:
  • mountTargetId (string) –

    [REQUIRED]

    The ID of the mount target to update.

  • securityGroups (list) –

    [REQUIRED]

    An array of VPC security group IDs to associate with the mount target’s network interface. This replaces the existing security groups. All security groups must belong to the same VPC as the mount target’s subnet.

    • (string) –

Return type:

dict

Returns:

Response Syntax

{
    'availabilityZoneId': 'string',
    'ownerId': 'string',
    'mountTargetId': 'string',
    'fileSystemId': 'string',
    'subnetId': 'string',
    'ipv4Address': 'string',
    'ipv6Address': 'string',
    'networkInterfaceId': 'string',
    'vpcId': 'string',
    'securityGroups': [
        'string',
    ],
    'status': 'available'|'creating'|'deleting'|'deleted'|'error'|'updating',
    'statusMessage': 'string'
}

Response Structure

  • (dict) –

    • availabilityZoneId (string) –

      The Availability Zone ID where the mount target is located.

    • ownerId (string) –

      The Amazon Web Services account ID of the mount target owner.

    • mountTargetId (string) –

      The ID of the mount target.

    • fileSystemId (string) –

      The ID of the S3 File System.

    • subnetId (string) –

      The ID of the subnet where the mount target is located.

    • ipv4Address (string) –

      The IPv4 address of the mount target.

    • ipv6Address (string) –

      The IPv6 address of the mount target.

    • networkInterfaceId (string) –

      The ID of the network interface associated with the mount target.

    • vpcId (string) –

      The ID of the VPC where the mount target is located.

    • securityGroups (list) –

      The security groups associated with the mount target.

      • (string) –

    • status (string) –

      The current status of the mount target.

    • statusMessage (string) –

      Additional information about the mount target status.

Exceptions

  • S3Files.Client.exceptions.InternalServerException

  • S3Files.Client.exceptions.ResourceNotFoundException

  • S3Files.Client.exceptions.ThrottlingException

  • S3Files.Client.exceptions.ValidationException