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
21497 21498 21499 21500 21501 21502 21503 21504 21505 21506 21507 21508 21509 21510 21511 21512 21513 21514 21515 21516 21517 21518 21519 21520 21521 21522 21523 21524 21525 21526 21527 21528 21529 21530 21531 21532 21533 21534 21535 21536 21537 21538 21539 21540 21541 21542 21543 21544 21545 21546 21547 21548 21549 21550 21551 21552 21553 21554 21555 21556 21557 21558 21559 21560 21561 21562 21563 21564 21565 21566 21567 21568 21569 21570 21571 | |