import * as pulumi from "@pulumi/pulumi"; /** * This resource provides the Smtp Credential resource in Oracle Cloud Infrastructure Identity service. * Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/identity/latest/SmtpCredential * * Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/identity * * Creates a new SMTP credential for the specified user. An SMTP credential has an SMTP user name and an SMTP password. * You must specify a *description* for the SMTP credential (although it can be an empty string). It does not * have to be unique, and you can change it anytime with * [UpdateSmtpCredential](https://docs.cloud.oracle.com/iaas/api/#/en/identity/20160918/SmtpCredentialSummary/UpdateSmtpCredential). * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testSmtpCredential = new oci.identity.SmtpCredential("test_smtp_credential", { * description: smtpCredentialDescription, * userId: testUser.id, * }); * ``` * * ## Import * * SmtpCredentials can be imported using the `id`, e.g. * * ```sh * $ pulumi import oci:Identity/smtpCredential:SmtpCredential test_smtp_credential "users/{userId}/smtpCredentials/{smtpCredentialId}" * ``` */ export declare class SmtpCredential extends pulumi.CustomResource { /** * Get an existing SmtpCredential 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?: SmtpCredentialState, opts?: pulumi.CustomResourceOptions): SmtpCredential; /** * Returns true if the given object is an instance of SmtpCredential. 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 SmtpCredential; /** * (Updatable) The description you assign to the SMTP credentials during creation. Does not have to be unique, and it's changeable. */ readonly description: pulumi.Output; /** * The detailed status of INACTIVE lifecycleState. */ readonly inactiveState: pulumi.Output; /** * The SMTP password. */ readonly password: pulumi.Output; /** * The credential's current state. */ readonly state: pulumi.Output; /** * Date and time the `SmtpCredential` object was created, in the format defined by RFC3339. Example: `2016-08-25T21:10:29.600Z` */ readonly timeCreated: pulumi.Output; /** * Date and time when this credential will expire, in the format defined by RFC3339. Null if it never expires. Example: `2016-08-25T21:10:29.600Z` */ readonly timeExpires: pulumi.Output; /** * The OCID of the user. * * ** IMPORTANT ** * Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values */ readonly userId: pulumi.Output; /** * The SMTP user name. */ readonly username: pulumi.Output; /** * Create a SmtpCredential 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: SmtpCredentialArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering SmtpCredential resources. */ export interface SmtpCredentialState { /** * (Updatable) The description you assign to the SMTP credentials during creation. Does not have to be unique, and it's changeable. */ description?: pulumi.Input; /** * The detailed status of INACTIVE lifecycleState. */ inactiveState?: pulumi.Input; /** * The SMTP password. */ password?: pulumi.Input; /** * The credential's current state. */ state?: pulumi.Input; /** * Date and time the `SmtpCredential` object was created, in the format defined by RFC3339. Example: `2016-08-25T21:10:29.600Z` */ timeCreated?: pulumi.Input; /** * Date and time when this credential will expire, in the format defined by RFC3339. Null if it never expires. Example: `2016-08-25T21:10:29.600Z` */ timeExpires?: pulumi.Input; /** * The OCID of the user. * * ** IMPORTANT ** * Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values */ userId?: pulumi.Input; /** * The SMTP user name. */ username?: pulumi.Input; } /** * The set of arguments for constructing a SmtpCredential resource. */ export interface SmtpCredentialArgs { /** * (Updatable) The description you assign to the SMTP credentials during creation. Does not have to be unique, and it's changeable. */ description: pulumi.Input; /** * The OCID of the user. * * ** IMPORTANT ** * Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values */ userId: pulumi.Input; } //# sourceMappingURL=smtpCredential.d.ts.map