/** * Construct a synchronous implementation of AWSWAF using the current builder configuration. * * @param params * Current builder configuration represented as a parameter object. * @return Fully configured implementation of AWSWAF. */ @Override protected AWSWAF build(AwsSyncClientParams params) { return new AWSWAFClient(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 AWSWAF.ListRuleGroups * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/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>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 AWSWAF.ListByteMatchSets * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/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>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 AWSWAF.ListIPSets * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/ListIPSets" target="_top">AWS API * Documentation</a> */ @Override public ListIPSetsResult listIPSets(ListIPSetsRequest request) { request = beforeClientExecution(request); return executeListIPSets(request); }
@SdkInternalApi final CreateGeoMatchSetResult executeCreateGeoMatchSet(CreateGeoMatchSetRequest createGeoMatchSetRequest) { ExecutionContext executionContext = createExecutionContext(createGeoMatchSetRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<CreateGeoMatchSetRequest> request = null; Response<CreateGeoMatchSetResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateGeoMatchSetRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(createGeoMatchSetRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "WAF"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateGeoMatchSet"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler<AmazonWebServiceResponse<CreateGeoMatchSetResult>> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateGeoMatchSetResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } }
/** * <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 AWSWAF.ListRateBasedRules * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/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>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 AWSWAF.ListRules * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/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 AWSWAF.ListRegexMatchSets * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/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>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 AWSWAF.ListRegexPatternSets * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/ListRegexPatternSets" target="_top">AWS API * Documentation</a> */ @Override public ListRegexPatternSetsResult listRegexPatternSets(ListRegexPatternSetsRequest request) { request = beforeClientExecution(request); return executeListRegexPatternSets(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 AWSWAF.GetLoggingConfiguration * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/GetLoggingConfiguration" target="_top">AWS * API Documentation</a> */ @Override public GetLoggingConfigurationResult getLoggingConfiguration(GetLoggingConfigurationRequest request) { request = beforeClientExecution(request); return executeGetLoggingConfiguration(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 AWSWAF.GetPermissionPolicy * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/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>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 AWSWAF.ListSubscribedRuleGroups * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/ListSubscribedRuleGroups" target="_top">AWS * API Documentation</a> */ @Override public ListSubscribedRuleGroupsResult listSubscribedRuleGroups(ListSubscribedRuleGroupsRequest request) { request = beforeClientExecution(request); return executeListSubscribedRuleGroups(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 AWSWAF.ListSizeConstraintSets * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/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 AWSWAF.GetIPSet * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/GetIPSet" target="_top">AWS API * Documentation</a> */ @Override public GetIPSetResult getIPSet(GetIPSetRequest request) { request = beforeClientExecution(request); return executeGetIPSet(request); }
/** * <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 AWSWAF.ListGeoMatchSets * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/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 AWSWAF.ListWebACLs * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/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>SqlInjectionMatchSet</a> objects. * </p> * * @param listSqlInjectionMatchSetsRequest * A request to list the <a>SqlInjectionMatchSet</a> objects created by the current AWS account. * @return Result of the ListSqlInjectionMatchSets 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 AWSWAF.ListSqlInjectionMatchSets * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/ListSqlInjectionMatchSets" target="_top">AWS * API Documentation</a> */ @Override public ListSqlInjectionMatchSetsResult listSqlInjectionMatchSets(ListSqlInjectionMatchSetsRequest request) { request = beforeClientExecution(request); return executeListSqlInjectionMatchSets(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 AWSWAF.ListXssMatchSets * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/ListXssMatchSets" target="_top">AWS API * Documentation</a> */ @Override public ListXssMatchSetsResult listXssMatchSets(ListXssMatchSetsRequest request) { request = beforeClientExecution(request); return executeListXssMatchSets(request); }
/** * <p> * Returns the <a>Rule</a> that is specified by the <code>RuleId</code> that you included in the * <code>GetRule</code> request. * </p> * * @param getRuleRequest * @return Result of the GetRule 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 AWSWAF.GetRule * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/GetRule" target="_top">AWS API * Documentation</a> */ @Override public GetRuleResult getRule(GetRuleRequest request) { request = beforeClientExecution(request); return executeGetRule(request); }