This is AWS WAF Classic documentation. For more information, see AWS WAF Classic in the developer guide.
For the latest version of AWS WAF, use the AWS WAFV2 API and see the AWS WAF Developer Guide. With the latest version, AWS WAF has a single set of endpoints for regional and global use.
Returns the RegexMatchSet specified by RegexMatchSetId.
Parameters:
Raises:
Source code in docs_src/capo_waf_regional/_services/async_waf_regional.py
| async def get_regex_match_set(
self,
regex_match_set_id: "capo_waf_regional.types.resource_id.ResourceId",
*,
config_overrides: Optional[AsyncWAFRegionalClientConfig] = None,
) -> (
"capo_waf_regional.types.get_regex_match_set_response.GetRegexMatchSetResponse"
):
"""<note> <p>This is <b>AWS WAF Classic</b> documentation. For more information, see <a href="https://docs.aws.amazon.com/waf/latest/developerguide/classic-waf-chapter.html">AWS WAF Classic</a> in the developer guide.</p> <p> <b>For the latest version of AWS WAF</b>, use the AWS WAFV2 API and see the <a href="https://docs.aws.amazon.com/waf/latest/developerguide/waf-chapter.html">AWS WAF Developer Guide</a>. With the latest version, AWS WAF has a single set of endpoints for regional and global use. </p> </note> <p>Returns the <a>RegexMatchSet</a> specified by <code>RegexMatchSetId</code>.</p>
Args:
regex_match_set_id: <p>The <code>RegexMatchSetId</code> of the <a>RegexMatchSet</a> that you want to get. <code>RegexMatchSetId</code> is returned by <a>CreateRegexMatchSet</a> and by <a>ListRegexMatchSets</a>.</p>
Raises:
capo_waf_regional.errors.waf_internal_error_exception.WAFInternalErrorException: <p>The operation failed because of a system problem, even though the request was valid. Retry your request.</p>
capo_waf_regional.errors.waf_invalid_account_exception.WAFInvalidAccountException: <p>The operation failed because you tried to create, update, or delete an object by using an invalid account identifier.</p>
capo_waf_regional.errors.waf_nonexistent_item_exception.WAFNonexistentItemException: <p>The operation failed because the referenced object doesn't exist.</p>
capo_waf_regional.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_waf_regional.types.get_regex_match_set_request.GetRegexMatchSetRequest]",
) -> AsyncOperationResponse[
"capo_waf_regional.types.get_regex_match_set_response.GetRegexMatchSetResponse"
]:
import capo_waf_regional._operations.awswaf_regional_20161128.get_regex_match_set
(
output,
http_response,
) = await capo_waf_regional._operations.awswaf_regional_20161128.get_regex_match_set.async_get_regex_match_set(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("GetRegexMatchSet")
)
input_: capo_waf_regional.types.get_regex_match_set_request.GetRegexMatchSetRequest = {
"regex_match_set_id": regex_match_set_id
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|