/** * Construct a synchronous implementation of AWSWAFRegional using the current builder configuration. * * @param params * Current builder configuration represented as a parameter object. * @return Fully configured implementation of AWSWAFRegional. */ @Override protected AWSWAFRegional build(AwsSyncClientParams params) { return new AWSWAFRegionalClient(params); }
/** * <p> * Returns an array of <a>RuleGroup</a> objects. * </p> * * @param listRuleGroupsRequest * @return Result of the ListRuleGroups operation returned by the service. * @throws WAFInternalErrorException * The operation failed because of a system problem, even though the request was valid. Retry your request. * @sample AWSWAFRegional.ListRuleGroups * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/ListRuleGroups" target="_top">AWS * API Documentation</a> */ @Override public ListRuleGroupsResult listRuleGroups(ListRuleGroupsRequest request) { request = beforeClientExecution(request); return executeListRuleGroups(request); }
/** * Invoke with no authentication. Credentials are not required and any credentials set on the client or request will * be ignored for this operation. **/ private <X, Y extends AmazonWebServiceRequest> Response<X> anonymousInvoke(Request<Y> request, HttpResponseHandler<AmazonWebServiceResponse<X>> responseHandler, ExecutionContext executionContext) { return doInvoke(request, responseHandler, executionContext, null, null); }
/** * <p> * Returns an array of <a>RuleGroup</a> objects that you are subscribed to. * </p> * * @param listSubscribedRuleGroupsRequest * @return Result of the ListSubscribedRuleGroups operation returned by the service. * @throws WAFNonexistentItemException * The operation failed because the referenced object doesn't exist. * @throws WAFInternalErrorException * The operation failed because of a system problem, even though the request was valid. Retry your request. * @sample AWSWAFRegional.ListSubscribedRuleGroups * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/ListSubscribedRuleGroups" * target="_top">AWS API Documentation</a> */ @Override public ListSubscribedRuleGroupsResult listSubscribedRuleGroups(ListSubscribedRuleGroupsRequest request) { request = beforeClientExecution(request); return executeListSubscribedRuleGroups(request); }
/** * <p> * Returns the <a>LoggingConfiguration</a> for the specified web ACL. * </p> * * @param getLoggingConfigurationRequest * @return Result of the GetLoggingConfiguration operation returned by the service. * @throws WAFInternalErrorException * The operation failed because of a system problem, even though the request was valid. Retry your request. * @throws WAFNonexistentItemException * The operation failed because the referenced object doesn't exist. * @sample AWSWAFRegional.GetLoggingConfiguration * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/GetLoggingConfiguration" * target="_top">AWS API Documentation</a> */ @Override public GetLoggingConfigurationResult getLoggingConfiguration(GetLoggingConfigurationRequest request) { request = beforeClientExecution(request); return executeGetLoggingConfiguration(request); }
@SdkInternalApi final CreateXssMatchSetResult executeCreateXssMatchSet(CreateXssMatchSetRequest createXssMatchSetRequest) { ExecutionContext executionContext = createExecutionContext(createXssMatchSetRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<CreateXssMatchSetRequest> request = null; Response<CreateXssMatchSetResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateXssMatchSetRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(createXssMatchSetRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "WAF Regional"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateXssMatchSet"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler<AmazonWebServiceResponse<CreateXssMatchSetResult>> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateXssMatchSetResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } }
/** * <p> * Returns an array of <a>GeoMatchSetSummary</a> objects in the response. * </p> * * @param listGeoMatchSetsRequest * @return Result of the ListGeoMatchSets operation returned by the service. * @throws WAFInternalErrorException * The operation failed because of a system problem, even though the request was valid. Retry your request. * @throws WAFInvalidAccountException * The operation failed because you tried to create, update, or delete an object by using an invalid account * identifier. * @sample AWSWAFRegional.ListGeoMatchSets * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/ListGeoMatchSets" target="_top">AWS * API Documentation</a> */ @Override public ListGeoMatchSetsResult listGeoMatchSets(ListGeoMatchSetsRequest request) { request = beforeClientExecution(request); return executeListGeoMatchSets(request); }
/** * <p> * Returns an array of <a>WebACLSummary</a> objects in the response. * </p> * * @param listWebACLsRequest * @return Result of the ListWebACLs operation returned by the service. * @throws WAFInternalErrorException * The operation failed because of a system problem, even though the request was valid. Retry your request. * @throws WAFInvalidAccountException * The operation failed because you tried to create, update, or delete an object by using an invalid account * identifier. * @sample AWSWAFRegional.ListWebACLs * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/ListWebACLs" target="_top">AWS API * Documentation</a> */ @Override public ListWebACLsResult listWebACLs(ListWebACLsRequest request) { request = beforeClientExecution(request); return executeListWebACLs(request); }
/** * <p> * Returns an array of <a>RuleSummary</a> objects. * </p> * * @param listRulesRequest * @return Result of the ListRules operation returned by the service. * @throws WAFInternalErrorException * The operation failed because of a system problem, even though the request was valid. Retry your request. * @throws WAFInvalidAccountException * The operation failed because you tried to create, update, or delete an object by using an invalid account * identifier. * @sample AWSWAFRegional.ListRules * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/ListRules" target="_top">AWS API * Documentation</a> */ @Override public ListRulesResult listRules(ListRulesRequest request) { request = beforeClientExecution(request); return executeListRules(request); }
/** * <p> * Returns an array of <a>RegexMatchSetSummary</a> objects. * </p> * * @param listRegexMatchSetsRequest * @return Result of the ListRegexMatchSets operation returned by the service. * @throws WAFInternalErrorException * The operation failed because of a system problem, even though the request was valid. Retry your request. * @throws WAFInvalidAccountException * The operation failed because you tried to create, update, or delete an object by using an invalid account * identifier. * @sample AWSWAFRegional.ListRegexMatchSets * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/ListRegexMatchSets" * target="_top">AWS API Documentation</a> */ @Override public ListRegexMatchSetsResult listRegexMatchSets(ListRegexMatchSetsRequest request) { request = beforeClientExecution(request); return executeListRegexMatchSets(request); }
/** * <p> * Returns an array of <a>XssMatchSet</a> objects. * </p> * * @param listXssMatchSetsRequest * A request to list the <a>XssMatchSet</a> objects created by the current AWS account. * @return Result of the ListXssMatchSets operation returned by the service. * @throws WAFInternalErrorException * The operation failed because of a system problem, even though the request was valid. Retry your request. * @throws WAFInvalidAccountException * The operation failed because you tried to create, update, or delete an object by using an invalid account * identifier. * @sample AWSWAFRegional.ListXssMatchSets * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/ListXssMatchSets" target="_top">AWS * API Documentation</a> */ @Override public ListXssMatchSetsResult listXssMatchSets(ListXssMatchSetsRequest request) { request = beforeClientExecution(request); return executeListXssMatchSets(request); }
/** * <p> * Returns the IAM policy attached to the RuleGroup. * </p> * * @param getPermissionPolicyRequest * @return Result of the GetPermissionPolicy operation returned by the service. * @throws WAFInternalErrorException * The operation failed because of a system problem, even though the request was valid. Retry your request. * @throws WAFNonexistentItemException * The operation failed because the referenced object doesn't exist. * @sample AWSWAFRegional.GetPermissionPolicy * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/GetPermissionPolicy" * target="_top">AWS API Documentation</a> */ @Override public GetPermissionPolicyResult getPermissionPolicy(GetPermissionPolicyRequest request) { request = beforeClientExecution(request); return executeGetPermissionPolicy(request); }
/** * <p> * Returns an array of <a>IPSetSummary</a> objects in the response. * </p> * * @param listIPSetsRequest * @return Result of the ListIPSets operation returned by the service. * @throws WAFInternalErrorException * The operation failed because of a system problem, even though the request was valid. Retry your request. * @throws WAFInvalidAccountException * The operation failed because you tried to create, update, or delete an object by using an invalid account * identifier. * @sample AWSWAFRegional.ListIPSets * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/ListIPSets" target="_top">AWS API * Documentation</a> */ @Override public ListIPSetsResult listIPSets(ListIPSetsRequest request) { request = beforeClientExecution(request); return executeListIPSets(request); }
/** * <p> * Returns an array of <a>RuleSummary</a> objects. * </p> * * @param listRateBasedRulesRequest * @return Result of the ListRateBasedRules operation returned by the service. * @throws WAFInternalErrorException * The operation failed because of a system problem, even though the request was valid. Retry your request. * @throws WAFInvalidAccountException * The operation failed because you tried to create, update, or delete an object by using an invalid account * identifier. * @sample AWSWAFRegional.ListRateBasedRules * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/ListRateBasedRules" * target="_top">AWS API Documentation</a> */ @Override public ListRateBasedRulesResult listRateBasedRules(ListRateBasedRulesRequest request) { request = beforeClientExecution(request); return executeListRateBasedRules(request); }
/** * <p> * Returns an array of <a>RegexPatternSetSummary</a> objects. * </p> * * @param listRegexPatternSetsRequest * @return Result of the ListRegexPatternSets operation returned by the service. * @throws WAFInternalErrorException * The operation failed because of a system problem, even though the request was valid. Retry your request. * @throws WAFInvalidAccountException * The operation failed because you tried to create, update, or delete an object by using an invalid account * identifier. * @sample AWSWAFRegional.ListRegexPatternSets * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/ListRegexPatternSets" * target="_top">AWS API Documentation</a> */ @Override public ListRegexPatternSetsResult listRegexPatternSets(ListRegexPatternSetsRequest request) { request = beforeClientExecution(request); return executeListRegexPatternSets(request); }
/** * <p> * Returns the <a>ByteMatchSet</a> specified by <code>ByteMatchSetId</code>. * </p> * * @param getByteMatchSetRequest * @return Result of the GetByteMatchSet operation returned by the service. * @throws WAFInternalErrorException * The operation failed because of a system problem, even though the request was valid. Retry your request. * @throws WAFInvalidAccountException * The operation failed because you tried to create, update, or delete an object by using an invalid account * identifier. * @throws WAFNonexistentItemException * The operation failed because the referenced object doesn't exist. * @sample AWSWAFRegional.GetByteMatchSet * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/GetByteMatchSet" target="_top">AWS * API Documentation</a> */ @Override public GetByteMatchSetResult getByteMatchSet(GetByteMatchSetRequest request) { request = beforeClientExecution(request); return executeGetByteMatchSet(request); }
/** * <p> * Returns the <a>SizeConstraintSet</a> specified by <code>SizeConstraintSetId</code>. * </p> * * @param getSizeConstraintSetRequest * @return Result of the GetSizeConstraintSet operation returned by the service. * @throws WAFInternalErrorException * The operation failed because of a system problem, even though the request was valid. Retry your request. * @throws WAFInvalidAccountException * The operation failed because you tried to create, update, or delete an object by using an invalid account * identifier. * @throws WAFNonexistentItemException * The operation failed because the referenced object doesn't exist. * @sample AWSWAFRegional.GetSizeConstraintSet * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/GetSizeConstraintSet" * target="_top">AWS API Documentation</a> */ @Override public GetSizeConstraintSetResult getSizeConstraintSet(GetSizeConstraintSetRequest request) { request = beforeClientExecution(request); return executeGetSizeConstraintSet(request); }
/** * <p> * Returns an array of <a>ByteMatchSetSummary</a> objects. * </p> * * @param listByteMatchSetsRequest * @return Result of the ListByteMatchSets operation returned by the service. * @throws WAFInternalErrorException * The operation failed because of a system problem, even though the request was valid. Retry your request. * @throws WAFInvalidAccountException * The operation failed because you tried to create, update, or delete an object by using an invalid account * identifier. * @sample AWSWAFRegional.ListByteMatchSets * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/ListByteMatchSets" target="_top">AWS * API Documentation</a> */ @Override public ListByteMatchSetsResult listByteMatchSets(ListByteMatchSetsRequest request) { request = beforeClientExecution(request); return executeListByteMatchSets(request); }
/** * <p> * Returns an array of <a>SizeConstraintSetSummary</a> objects. * </p> * * @param listSizeConstraintSetsRequest * @return Result of the ListSizeConstraintSets operation returned by the service. * @throws WAFInternalErrorException * The operation failed because of a system problem, even though the request was valid. Retry your request. * @throws WAFInvalidAccountException * The operation failed because you tried to create, update, or delete an object by using an invalid account * identifier. * @sample AWSWAFRegional.ListSizeConstraintSets * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/ListSizeConstraintSets" * target="_top">AWS API Documentation</a> */ @Override public ListSizeConstraintSetsResult listSizeConstraintSets(ListSizeConstraintSetsRequest request) { request = beforeClientExecution(request); return executeListSizeConstraintSets(request); }
/** * <p> * Returns the <a>IPSet</a> that is specified by <code>IPSetId</code>. * </p> * * @param getIPSetRequest * @return Result of the GetIPSet operation returned by the service. * @throws WAFInternalErrorException * The operation failed because of a system problem, even though the request was valid. Retry your request. * @throws WAFInvalidAccountException * The operation failed because you tried to create, update, or delete an object by using an invalid account * identifier. * @throws WAFNonexistentItemException * The operation failed because the referenced object doesn't exist. * @sample AWSWAFRegional.GetIPSet * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/GetIPSet" target="_top">AWS API * Documentation</a> */ @Override public GetIPSetResult getIPSet(GetIPSetRequest request) { request = beforeClientExecution(request); return executeGetIPSet(request); }