update_ip_restriction
¶
update_ip_restriction(
aws_account_id: AwsAccountId,
*,
config_overrides: Optional[QuickSightClientConfig] = 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/quick_sight.py
19602 19603 19604 19605 19606 19607 19608 19609 19610 19611 19612 19613 19614 19615 19616 19617 19618 19619 19620 19621 19622 19623 19624 19625 19626 19627 19628 19629 19630 19631 19632 19633 19634 19635 19636 19637 19638 19639 19640 19641 19642 19643 19644 19645 19646 19647 19648 19649 19650 19651 19652 19653 19654 19655 19656 19657 19658 19659 19660 19661 19662 19663 19664 19665 19666 19667 19668 19669 19670 19671 19672 19673 19674 19675 19676 | |