create_dns_view
async
¶
create_dns_view(
global_resolver_id: ResourceId,
name: ResourceName,
*,
config_overrides: Optional[AsyncRoute53GlobalResolverClientConfig] = None,
client_token: Optional[ClientToken] = None,
dnssec_validation: Optional[DnsSecValidationType] = None,
edns_client_subnet: Optional[EdnsClientSubnetType] = None,
firewall_rules_fail_open: Optional[FirewallRulesFailOpenType] = None,
description: Optional[ResourceDescription] = None,
tags: Optional[Tags] = None,
) -> CreateDNSViewOutput
Creates a DNS view within a Route 53 Global Resolver. A DNS view models end users, user groups, networks, and devices, and serves as a parent resource that holds configurations controlling access, authorization, DNS firewall rules, and forwarding rules.
Route 53 Global Resolver is a global service that supports resolvers in multiple Amazon Web Services Regions but you must specify the US East (Ohio) Region to create, update, or otherwise work with Route 53 Global Resolver resources. That is, for example, specify --region us-east-2 on Amazon Web Services CLI commands.
Parameters:
-
global_resolver_id(ResourceId) –The ID of the Route 53 Global Resolver to associate with this DNS view.
-
client_token(Optional[ClientToken], default:None) –A unique string that identifies the request and ensures idempotency.
-
name(ResourceName) –A descriptive name for the DNS view.
-
dnssec_validation(Optional[DnsSecValidationType], default:None) –Whether to enable DNSSEC validation for DNS queries in this DNS view. When enabled, the resolver verifies the authenticity and integrity of DNS responses from public name servers for DNSSEC-signed domains.
-
edns_client_subnet(Optional[EdnsClientSubnetType], default:None) –Whether to enable EDNS Client Subnet injection for DNS queries in this DNS view. When enabled, client subnet information is forwarded to provide more accurate geographic-based DNS responses.
-
firewall_rules_fail_open(Optional[FirewallRulesFailOpenType], default:None) –Determines the behavior when Route 53 Global Resolver cannot apply DNS firewall rules due to service impairment. When enabled, DNS queries are allowed through; when disabled, queries are blocked.
-
description(Optional[ResourceDescription], default:None) –An optional description for the DNS view.
-
tags(Optional[Tags], default:None) –Tags to associate with the DNS view.
Raises:
-
AccessDeniedException–You don't have permission to perform this operation. Check your IAM permissions and try again.
-
ConflictException–The request conflicts with the current state of the resource. This can occur when trying to modify a resource that is not in a valid state for the requested operation.
-
InternalServerException–An internal server error occurred. Try again later.
-
ResourceNotFoundException–The specified resource was not found. Verify the resource ID and try again.
-
ServiceQuotaExceededException–The request would exceed one or more service quotas. Check your current usage and quotas, then try again.
-
ThrottlingException–The request was throttled due to too many requests. Wait a moment and try again.
-
ValidationException–The input parameters are invalid. Check the parameter values and try again.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_route53globalresolver/_services/async_route53_global_resolver.py
1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 | |