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
21793 21794 21795 21796 21797 21798 21799 21800 21801 21802 21803 21804 21805 21806 21807 21808 21809 21810 21811 21812 21813 21814 21815 21816 21817 21818 21819 21820 21821 21822 21823 21824 21825 21826 21827 21828 21829 21830 21831 21832 21833 21834 21835 21836 21837 21838 21839 21840 21841 21842 21843 21844 21845 21846 21847 21848 21849 21850 21851 21852 21853 21854 21855 21856 21857 21858 21859 21860 21861 21862 21863 21864 21865 21866 21867 21868 | |