getSecret function

Future<GetSecretResult> getSecret(
  1. GetSecretArgs args, {
  2. InvokeOptions? options,
})

> WARNING: This data source's functionality was removed in version 2.0.0 of the AWS Provider. You can migrate existing configurations to the aws.kms.getSecrets data source following instructions available in the Version 2 Upgrade Guide. This data source will be removed in a future version. args Arguments passed to this invoke. Arguments for getSecret. options Invoke options controlling this call.

Implementation

Future<GetSecretResult> getSecret(
  GetSecretArgs args, {
  pulumi.InvokeOptions? options,
}) async {
  final deployment = pulumi.Deployment.instance;
  final result = await deployment.invoke<Map<String, dynamic>>(
    'aws:kms/getSecret:getSecret',
    args.toMap(),
    options: pulumi.toDeploymentInvokeOptions(options),
  );
  return GetSecretResult.fromMap(result);
}