How to use the AWS Secrets Manager connector in OutSystems to perform CRUD operations:
To get a secret, create a new screen in your OutSystems application and add an input parameter to the screen to accept the name of the secret. In the preparation action of the screen, use the "GetSecret" method of the "AmazonSecretsManagerConnector" extension to retrieve the secret value. Pass the name of the secret as a parameter to the method. The "GetSecret" method returns a structure containing the secret value and metadata about the secret.
To create a new secret, add a new screen to your OutSystems application with input parameters to accept the name and value of the secret. In the preparation action of the screen, use the "CreateSecret" method of the "AmazonSecretsManagerConnector" extension to create the secret. Pass the name and value of the secret as parameters to the method. The "CreateSecret" method returns a structure containing metadata about the new secret.
To update a secret, create a new screen in your OutSystems application with input parameters to accept the name and new value of the secret. In the preparation action of the screen, use the "UpdateSecret" method of the "AmazonSecretsManagerConnector" extension to update the secret. Pass the name of the secret and the new value as parameters to the method. The "UpdateSecret" method returns a structure containing metadata about the updated secret.
To delete a secret, create a new screen in your OutSystems application with an input parameter to accept the name of the secret. In the preparation action of the screen, use the "DeleteSecret" method of the "AmazonSecretsManagerConnector" extension to delete the secret. Pass the name of the secret as a parameter to the method. The "DeleteSecret" method does not return any values.
Note: Make sure you have configured the necessary AWS credentials in your OutSystems environment to access the Secrets Manager service. You can do this by using the "SetAWSCredentials" method of the "AmazonWebServicesCore" extension in the preparation action of your screen.