update_ip_restriction
async
¶
update_ip_restriction(
aws_account_id: AwsAccountId,
*,
config_overrides: Optional[AsyncQuickSightClientConfig] = None,
ip_restriction_rule_map: Optional[IpRestrictionRuleMap] = None,
vpc_id_restriction_rule_map: Optional[VpcIdRestrictionRuleMap] = None,
vpc_endpoint_id_restriction_rule_map: Optional[
VpcEndpointIdRestrictionRuleMap
] = None,
enabled: Optional[NullableBoolean] = None,
) -> UpdateIpRestrictionResponse
Updates the content and status of IP rules. Traffic from a source is allowed when the source satisfies either the IpRestrictionRule, VpcIdRestrictionRule, or VpcEndpointIdRestrictionRule. To use this operation, you must provide the entire map of rules. You can use the DescribeIpRestriction operation to get the current rule map.
Parameters:
-
aws_account_id(AwsAccountId) –The ID of the Amazon Web Services account that contains the IP rules.
-
ip_restriction_rule_map(Optional[IpRestrictionRuleMap], default:None) –A map that describes the updated IP rules with CIDR ranges and descriptions.
-
vpc_id_restriction_rule_map(Optional[VpcIdRestrictionRuleMap], default:None) –A map of VPC IDs and their corresponding rules. When you configure this parameter, traffic from all VPC endpoints that are present in the specified VPC is allowed.
-
vpc_endpoint_id_restriction_rule_map(Optional[VpcEndpointIdRestrictionRuleMap], default:None) –A map of allowed VPC endpoint IDs and their corresponding rule descriptions.
-
enabled(Optional[NullableBoolean], default:None) –A value that specifies whether IP rules are turned on.
Raises:
-
AccessDeniedException–You don't have access to this item. The provided credentials couldn't be validated. You might not be authorized to carry out the request. Make sure that your account is authorized to use the Amazon Quick Sight service, that your policies have the correct permissions, and that you are using the correct credentials.
-
InternalFailureException–An internal failure occurred.
-
InvalidParameterValueException–One or more parameters has a value that isn't valid.
-
LimitExceededException–A limit is exceeded.
-
ResourceNotFoundException–One or more resources can't be found.
-
ThrottlingException–Access is throttled.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_quicksight/_services/async_quick_sight.py
19872 19873 19874 19875 19876 19877 19878 19879 19880 19881 19882 19883 19884 19885 19886 19887 19888 19889 19890 19891 19892 19893 19894 19895 19896 19897 19898 19899 19900 19901 19902 19903 19904 19905 19906 19907 19908 19909 19910 19911 19912 19913 19914 19915 19916 19917 19918 19919 19920 19921 19922 19923 19924 19925 19926 19927 19928 19929 19930 19931 19932 19933 19934 19935 19936 19937 19938 19939 19940 19941 19942 19943 19944 19945 19946 19947 | |