AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
Deletes the specified server certificate.
For more information about working with server certificates, see Working with server certificates in the IAM User Guide. This topic also includes a list of Amazon Web Services services that can use the server certificates that you manage with IAM.
If you are using a server certificate with Elastic Load Balancing, deleting the certificate could have implications for your application. If Elastic Load Balancing doesn't detect the deletion of bound certificates, it may continue to use the certificates. This could cause Elastic Load Balancing to stop accepting traffic. We recommend that you remove the reference to the certificate from Elastic Load Balancing before using this command to delete the certificate. For more information, see DeleteLoadBalancerListeners in the Elastic Load Balancing API Reference.
For .NET Core this operation is only available in asynchronous form. Please refer to DeleteServerCertificateAsync.
Namespace: Amazon.IdentityManagement
Assembly: AWSSDK.IdentityManagement.dll
Version: 3.x.y.z
public virtual DeleteServerCertificateResponse DeleteServerCertificate( DeleteServerCertificateRequest request )
Container for the necessary parameters to execute the DeleteServerCertificate service method.
Exception | Condition |
---|---|
DeleteConflictException | The request was rejected because it attempted to delete a resource that has attached subordinate entities. The error message describes these entities. |
LimitExceededException | The request was rejected because it attempted to create resources beyond the current Amazon Web Services account limits. The error message describes the limit exceeded. |
NoSuchEntityException | The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource. |
ServiceFailureException | The request processing has failed because of an unknown error, exception or failure. |
.NET Framework:
Supported in: 4.5 and newer, 3.5