create_and_attach_s3_access_point
¶
create_and_attach_s3_access_point(
*,
config_overrides: Optional[FSxClientConfig] = 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. For FSx for ONTAP file systems, see Accessing data using Amazon S3 access points in the Amazon FSx for NetApp ONTAP 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. Valid values are
OPENZFSandONTAP. -
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/f_sx.py
711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 | |