pub struct AclClient { /* private fields */ }Expand description
Calls AclService.
ACLs: stateless filters at the edge of a subnet. An ACL holds rules
(AclRuleService), and applies to the subnets that an ACL association
names it for (AclAssociationService). Each packet entering or leaving
such a subnet meets the rules of its direction in priority order; the
first that matches accepts or drops it, and a packet no rule matches is
dropped.
Implementations§
Source§impl AclClient
impl AclClient
Sourcepub fn new(client: &Client) -> Self
pub fn new(client: &Client) -> Self
Returns a client of AclService 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 list_acls(
&self,
request: ListAclsRequest,
) -> Result<ListAclsResponse, Error>
pub async fn list_acls( &self, request: ListAclsRequest, ) -> Result<ListAclsResponse, Error>
Lists the ACLs in a region, oldest first.
Sourcepub fn all_acls(&self, request: ListAclsRequest) -> Pages<Acl>
pub fn all_acls(&self, request: ListAclsRequest) -> Pages<Acl>
Returns everything list_acls 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_acl(
&self,
request: CreateAclRequest,
) -> Result<Operation<Acl>, Error>
pub async fn create_acl( &self, request: CreateAclRequest, ) -> Result<Operation<Acl>, Error>
Creates an ACL in a VPC, with no rules: it drops everything until rules are added. The operation is done once the ACL is recorded.
It answers with an operation to wait on: Operation::wait returns the Acl once the change is done.
Sourcepub async fn update_acl(
&self,
request: UpdateAclRequest,
) -> Result<Operation<Acl>, Error>
pub async fn update_acl( &self, request: UpdateAclRequest, ) -> Result<Operation<Acl>, Error>
Changes an ACL’s tags. The operation is done once the change is recorded.
It answers with an operation to wait on: Operation::wait returns the Acl once the change is done.
Sourcepub async fn delete_acl(
&self,
request: DeleteAclRequest,
) -> Result<Operation<Empty>, Error>
pub async fn delete_acl( &self, request: DeleteAclRequest, ) -> Result<Operation<Empty>, Error>
Deletes an ACL with its rules. Refused for an ACL the platform created with its VPC, which goes with the VPC, and while an ACL association names it. The operation is done once the change is recorded; the network applies it within seconds.
It answers with an operation to wait on, which has no result: Operation::wait returns once the change is done.