create_and_attach_s3_access_point
async
¶
create_and_attach_s3_access_point(
*,
config_overrides: Optional[AsyncFSxClientConfig] = None,
client_request_token: Optional[ClientRequestToken] = None,
name: Optional[S3AccessPointAttachmentName] = None,
type: Optional[S3AccessPointAttachmentType] = None,
open_zfs_configuration: Optional[
CreateAndAttachS3AccessPointOpenZFSConfiguration
] = None,
ontap_configuration: Optional[
CreateAndAttachS3AccessPointOntapConfiguration
] = None,
s3_access_point: Optional[CreateAndAttachS3AccessPointS3Configuration] = None,
) -> CreateAndAttachS3AccessPointResponse
Creates an S3 access point and attaches it to an Amazon FSx volume. For FSx for OpenZFS file systems, the volume must be hosted on a high-availability file system, either Single-AZ or Multi-AZ. For more information, see Accessing your data using Amazon S3 access points. in the Amazon FSx for OpenZFS User Guide.
The requester requires the following permissions to perform these actions:
-
fsx:CreateAndAttachS3AccessPoint -
s3:CreateAccessPoint -
s3:GetAccessPoint -
s3:PutAccessPointPolicy -
s3:DeleteAccessPoint
The following actions are related to CreateAndAttachS3AccessPoint:
Parameters:
-
name(Optional[S3AccessPointAttachmentName], default:None) –The name you want to assign to this S3 access point.
-
type(Optional[S3AccessPointAttachmentType], default:None) –The type of S3 access point you want to create. Only
OpenZFSis supported. -
open_zfs_configuration(Optional[CreateAndAttachS3AccessPointOpenZFSConfiguration], default:None) –Specifies the configuration to use when creating and attaching an S3 access point to an FSx for OpenZFS volume.
-
s3_access_point(Optional[CreateAndAttachS3AccessPointS3Configuration], default:None) –Specifies the virtual private cloud (VPC) configuration if you're creating an access point that is restricted to a VPC. For more information, see Creating access points restricted to a virtual private cloud.
Raises:
-
AccessPointAlreadyOwnedByYou–An access point with that name already exists in the Amazon Web Services Region in your Amazon Web Services account.
-
BadRequest–A generic error indicating a failure with a client request.
-
IncompatibleParameterError–The error returned when a second request is received with the same client request token but different parameters settings. A client request token should always uniquely identify a single request.
-
InternalServerError–A generic error indicating a server-side failure.
-
InvalidAccessPoint–The access point specified doesn't exist.
-
InvalidRequest–The action or operation requested is invalid. Verify that the action is typed correctly.
-
TooManyAccessPoints–You have reached the maximum number of S3 access points attachments allowed for your account in this Amazon Web Services Region, or for the file system. For more information, or to request an increase, see Service quotas on FSx resources in the FSx for OpenZFS User Guide.
-
UnsupportedOperation–The requested operation is not supported for this resource or API.
-
VolumeNotFound–No Amazon FSx volumes were found based upon the supplied parameters.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_fsx/_services/async_f_sx.py
623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 | |