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

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

Sets the specified version of the specified policy as the policy's default (operative) version. This action affects all certificates to which the policy is attached. To list the principals the policy is attached to, use the ListPrincipalPolicy API.
/// 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 SetDefaultPolicyVersion ( string policyName, string policyVersionId ) : SetDefaultPolicyVersionResponse
policyName string The policy name.
policyVersionId string The policy version ID.
Результат SetDefaultPolicyVersionResponse
        public SetDefaultPolicyVersionResponse SetDefaultPolicyVersion(string policyName, string policyVersionId)
        {
            var request = new SetDefaultPolicyVersionRequest();
            request.PolicyName = policyName;
            request.PolicyVersionId = policyVersionId;
            return SetDefaultPolicyVersion(request);
        }

Same methods

AmazonIoTClient::SetDefaultPolicyVersion ( SetDefaultPolicyVersionRequest request ) : SetDefaultPolicyVersionResponse
AmazonIoTClient