associate_file_system
¶
associate_file_system(
user_name: DomainUserName,
password: DomainUserPassword,
client_token: ClientToken,
gateway_arn: GatewayARN,
location_arn: FileSystemLocationARN,
*,
config_overrides: Optional[StorageGatewayClientConfig] = None,
tags: Optional[Tags] = None,
audit_destination_arn: Optional[AuditDestinationARN] = None,
cache_attributes: Optional[CacheAttributes] = None,
endpoint_network_configuration: Optional[EndpointNetworkConfiguration] = None,
) -> AssociateFileSystemOutput
Associate an Amazon FSx file system with the FSx File Gateway. After the association process is complete, the file shares on the Amazon FSx file system are available for access through the gateway. This operation only supports the FSx File Gateway type.
Parameters:
-
user_name(DomainUserName) –The user name of the user credential that has permission to access the root share D$ of the Amazon FSx file system. The user account must belong to the Amazon FSx delegated admin user group.
-
password(DomainUserPassword) –The password of the user credential.
-
client_token(ClientToken) –A unique string value that you supply that is used by the FSx File Gateway to ensure idempotent file system association creation.
-
location_arn(FileSystemLocationARN) –The Amazon Resource Name (ARN) of the Amazon FSx file system to associate with the FSx File Gateway.
-
tags(Optional[Tags], default:None) –A list of up to 50 tags that can be assigned to the file system association. Each tag is a key-value pair.
-
audit_destination_arn(Optional[AuditDestinationARN], default:None) –The Amazon Resource Name (ARN) of the storage used for the audit logs.
-
endpoint_network_configuration(Optional[EndpointNetworkConfiguration], default:None) –Specifies the network configuration information for the gateway associated with the Amazon FSx file system.
If multiple file systems are associated with this gateway, this parameter's
IpAddressesfield is required.
Raises:
-
InternalServerError–An internal server error has occurred during the request. For more information, see the error and message fields.
-
InvalidGatewayRequestException–An exception occurred because an invalid gateway request was issued to the service. For more information, see the error and message fields.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_storage_gateway/_services/storage_gateway.py
802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 | |