Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions,
see Getting Started with Amazon Web Services in China
(PDF).
Delete an IAM SAML provider using an Amazon SDK
The following code example shows how to delete an Amazon Identity and Access Management (IAM) SAML provider.
- JavaScript
-
- SDK for JavaScript (v3)
-
import { DeleteSAMLProviderCommand, IAMClient } from "@aws-sdk/client-iam";
const client = new IAMClient({});
/**
*
* @param {string} providerArn
* @returns
*/
export const deleteSAMLProvider = async (providerArn) => {
const command = new DeleteSAMLProviderCommand({
SAMLProviderArn: providerArn,
});
const response = await client.send(command);
console.log(response);
return response;
};
For a complete list of Amazon SDK developer guides and code examples, see
Using IAM with an Amazon SDK.
This topic also includes information about getting started and details about previous SDK versions.