Amazon.IoT.AmazonIoTClient.DeletePolicyVersion C# (CSharp) Метод

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

Deletes the specified version of the specified policy. You cannot delete the default version of a policy using this API. To delete the default version of a policy, use DeletePolicy. To find out which version of a policy is marked as the default version, use ListPolicyVersions.
/// You can't delete the resource because it is attached to one or more resources. /// /// An unexpected error has occurred. /// /// The request is not valid. /// /// The specified resource does not exist. /// /// The service is temporarily unavailable. /// /// The rate exceeds the limit. /// /// You are not authorized to perform this operation. ///
public DeletePolicyVersion ( string policyName, string policyVersionId ) : DeletePolicyVersionResponse
policyName string The name of the policy.
policyVersionId string The policy version ID.
Результат DeletePolicyVersionResponse
        public DeletePolicyVersionResponse DeletePolicyVersion(string policyName, string policyVersionId)
        {
            var request = new DeletePolicyVersionRequest();
            request.PolicyName = policyName;
            request.PolicyVersionId = policyVersionId;
            return DeletePolicyVersion(request);
        }

Same methods

AmazonIoTClient::DeletePolicyVersion ( DeletePolicyVersionRequest request ) : DeletePolicyVersionResponse
AmazonIoTClient