pub struct DnsPolicyAssociationClient { /* private fields */ }Expand description
Calls DnsPolicyAssociationService.
DNS policy associations: which DNS policy a VPC’s resolver relays through.
A VPC has at most one; without one, it relays through the project’s
default DNS policy in its region (see the VPC’s dns_policy). An
association’s id is the id of the DNS policy it names, so a client that
knows the VPC and the policy names the association without listing. To
move a VPC to another policy, delete its association and create another.
Implementations§
Source§impl DnsPolicyAssociationClient
impl DnsPolicyAssociationClient
Sourcepub fn new(client: &Client) -> Self
pub fn new(client: &Client) -> Self
Returns a client of DnsPolicyAssociationService that sends its calls through client.
Sourcepub fn service(&self) -> &Service
pub fn service(&self) -> &Service
The endpoint the client sends its calls to, which also serves the operations its methods answer with.
Sourcepub async fn get_dns_policy_association(
&self,
request: GetDnsPolicyAssociationRequest,
) -> Result<DnsPolicyAssociation, Error>
pub async fn get_dns_policy_association( &self, request: GetDnsPolicyAssociationRequest, ) -> Result<DnsPolicyAssociation, Error>
Returns a DNS policy association.
Sourcepub async fn list_dns_policy_associations(
&self,
request: ListDnsPolicyAssociationsRequest,
) -> Result<ListDnsPolicyAssociationsResponse, Error>
pub async fn list_dns_policy_associations( &self, request: ListDnsPolicyAssociationsRequest, ) -> Result<ListDnsPolicyAssociationsResponse, Error>
Lists a VPC’s DNS policy associations: none or one.
Sourcepub fn all_dns_policy_associations(
&self,
request: ListDnsPolicyAssociationsRequest,
) -> Pages<DnsPolicyAssociation>
pub fn all_dns_policy_associations( &self, request: ListDnsPolicyAssociationsRequest, ) -> Pages<DnsPolicyAssociation>
Returns everything list_dns_policy_associations lists from request’s page on, fetching the next page as the stream reaches it. A page that fails ends the stream with its error.
Sourcepub async fn create_dns_policy_association(
&self,
request: CreateDnsPolicyAssociationRequest,
) -> Result<Operation<DnsPolicyAssociation>, Error>
pub async fn create_dns_policy_association( &self, request: CreateDnsPolicyAssociationRequest, ) -> Result<Operation<DnsPolicyAssociation>, Error>
Associates a DNS policy with a VPC. Refused with FAILED_PRECONDITION
when the VPC has a DNS policy association. The operation is done once
the change is recorded; the VPC’s resolver applies it within seconds.
It answers with an operation to wait on: Operation::wait returns the DnsPolicyAssociation once the change is done.
Sourcepub async fn delete_dns_policy_association(
&self,
request: DeleteDnsPolicyAssociationRequest,
) -> Result<Operation<Empty>, Error>
pub async fn delete_dns_policy_association( &self, request: DeleteDnsPolicyAssociationRequest, ) -> Result<Operation<Empty>, Error>
Removes a VPC’s DNS policy association: the VPC relays through the project’s default DNS policy in its region again. The operation is done once the change is recorded; the VPC’s resolver applies it within seconds.
It answers with an operation to wait on, which has no result: Operation::wait returns once the change is done.