import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Manages the Oracle Database@AWS Autonomous Database Serverless integration with AWS Secrets Manager. The resource provisions an Oracle-managed service role that can assume a customer-managed role to read an administrator-password secret. * * > **Note:** This integration is shared by all databases in the AWS account and Region. Creating this resource manages the existing integration if it is already enabled. Destroying this resource disables the integration for the entire account and Region, which can disrupt databases outside this Terraform configuration that use AWS Secrets Manager credentials. Manage the integration in only one Terraform configuration and coordinate changes with all database owners that depend on it. * * For accounts with a resource anchor, creating or destroying this resource preserves an existing OCI identity domain. If no identity domain exists, the service creates one when enabling or disabling the integration. This resource does not delete the identity domain. * * Create the customer-managed IAM role separately. Its trust policy must allow the exported `roleArn` to assume it, and its permissions must grant access to the selected secret. See the [AWS Secrets Manager documentation](https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html) for IAM permission guidance. * * ## Example Usage * * ### Basic Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = new aws.odb.AutonomousDatabaseSecretsManagerIntegration("example", {}); * export const adbsSecretsManagerServiceRoleArn = example.roleArn; * ``` * * ## Import * * ### Identity Schema * * #### Required * * #### Optional * * * `accountId` (String) AWS Account where this resource is managed. * * `region` (String) Region where this resource is managed. * * Using `pulumi import`, import the integration using its Region. For example: * * ```sh * $ pulumi import aws:odb/autonomousDatabaseSecretsManagerIntegration:AutonomousDatabaseSecretsManagerIntegration example us-east-1 * ``` */ export declare class AutonomousDatabaseSecretsManagerIntegration extends pulumi.CustomResource { /** * Get an existing AutonomousDatabaseSecretsManagerIntegration resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: AutonomousDatabaseSecretsManagerIntegrationState, opts?: pulumi.CustomResourceOptions): AutonomousDatabaseSecretsManagerIntegration; /** * Check whether an existing AutonomousDatabaseSecretsManagerIntegration resource with the given ID exists. * * @param id The _unique_ provider ID of the resource to check. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static exists(id: pulumi.Input, state?: AutonomousDatabaseSecretsManagerIntegrationState, opts?: pulumi.CustomResourceOptions): pulumi.Output; /** * Returns true if the given object is an instance of AutonomousDatabaseSecretsManagerIntegration. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is AutonomousDatabaseSecretsManagerIntegration; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ readonly region: pulumi.Output; /** * ARN of the Oracle-managed service role that assumes the customer-managed IAM role. */ readonly roleArn: pulumi.Output; /** * Current lifecycle status of the service role. */ readonly status: pulumi.Output; /** * Additional lifecycle-status information, if available. */ readonly statusReason: pulumi.Output; readonly timeouts: pulumi.Output; /** * Create a AutonomousDatabaseSecretsManagerIntegration resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args?: AutonomousDatabaseSecretsManagerIntegrationArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering AutonomousDatabaseSecretsManagerIntegration resources. */ export interface AutonomousDatabaseSecretsManagerIntegrationState { /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ region?: pulumi.Input; /** * ARN of the Oracle-managed service role that assumes the customer-managed IAM role. */ roleArn?: pulumi.Input; /** * Current lifecycle status of the service role. */ status?: pulumi.Input; /** * Additional lifecycle-status information, if available. */ statusReason?: pulumi.Input; timeouts?: pulumi.Input; } /** * The set of arguments for constructing a AutonomousDatabaseSecretsManagerIntegration resource. */ export interface AutonomousDatabaseSecretsManagerIntegrationArgs { /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ region?: pulumi.Input; timeouts?: pulumi.Input; } //# sourceMappingURL=autonomousDatabaseSecretsManagerIntegration.d.ts.map