Amazon.WAFRegional.AmazonWAFRegionalClient.GetRuleAsync C# (CSharp) Метод

GetRuleAsync() публичный Метод

Returns the Rule that is specified by the RuleId that you included in the GetRule request.
/// The operation failed because of a system problem, even though the request was valid. /// Retry your request. /// /// The operation failed because you tried to create, update, or delete an object by using /// an invalid account identifier. /// /// The operation failed because the referenced object doesn't exist. ///
public GetRuleAsync ( string ruleId, System cancellationToken = default(CancellationToken) ) : Task
ruleId string The RuleId of the Rule that you want to get. RuleId is returned by CreateRule and by ListRules.
cancellationToken System /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. ///
Результат Task
        public Task<GetRuleResponse> GetRuleAsync(string ruleId, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var request = new GetRuleRequest();
            request.RuleId = ruleId;
            return GetRuleAsync(request, cancellationToken);
        }

Same methods

AmazonWAFRegionalClient::GetRuleAsync ( GetRuleRequest request, System cancellationToken = default(CancellationToken) ) : Task
AmazonWAFRegionalClient