1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Database
  5. AutonomousDatabaseSaasAdminUser
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

oci.Database.AutonomousDatabaseSaasAdminUser

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

    This resource creates and enables the Autonomous Database administrative user account in Oracle Cloud Infrastructure Database service.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testAutonomousDatabaseSaasAdminUser = new oci.database.AutonomousDatabaseSaasAdminUser("test_autonomous_database_saas_admin_user", {
        autonomousDatabaseId: testAutonomousDatabase.id,
        password: autonomousDatabaseSaasAdminUserPassword,
        accessType: autonomousDatabaseSaasAdminUserAccessType,
        duration: autonomousDatabaseSaasAdminUserDuration,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_autonomous_database_saas_admin_user = oci.database.AutonomousDatabaseSaasAdminUser("test_autonomous_database_saas_admin_user",
        autonomous_database_id=test_autonomous_database["id"],
        password=autonomous_database_saas_admin_user_password,
        access_type=autonomous_database_saas_admin_user_access_type,
        duration=autonomous_database_saas_admin_user_duration)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/Database"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := Database.NewAutonomousDatabaseSaasAdminUser(ctx, "test_autonomous_database_saas_admin_user", &Database.AutonomousDatabaseSaasAdminUserArgs{
    			AutonomousDatabaseId: pulumi.Any(testAutonomousDatabase.Id),
    			Password:             pulumi.Any(autonomousDatabaseSaasAdminUserPassword),
    			AccessType:           pulumi.Any(autonomousDatabaseSaasAdminUserAccessType),
    			Duration:             pulumi.Any(autonomousDatabaseSaasAdminUserDuration),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Oci = Pulumi.Oci;
    
    return await Deployment.RunAsync(() => 
    {
        var testAutonomousDatabaseSaasAdminUser = new Oci.Database.AutonomousDatabaseSaasAdminUser("test_autonomous_database_saas_admin_user", new()
        {
            AutonomousDatabaseId = testAutonomousDatabase.Id,
            Password = autonomousDatabaseSaasAdminUserPassword,
            AccessType = autonomousDatabaseSaasAdminUserAccessType,
            Duration = autonomousDatabaseSaasAdminUserDuration,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.Database.AutonomousDatabaseSaasAdminUser;
    import com.pulumi.oci.Database.AutonomousDatabaseSaasAdminUserArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var testAutonomousDatabaseSaasAdminUser = new AutonomousDatabaseSaasAdminUser("testAutonomousDatabaseSaasAdminUser", AutonomousDatabaseSaasAdminUserArgs.builder()
                .autonomousDatabaseId(testAutonomousDatabase.id())
                .password(autonomousDatabaseSaasAdminUserPassword)
                .accessType(autonomousDatabaseSaasAdminUserAccessType)
                .duration(autonomousDatabaseSaasAdminUserDuration)
                .build());
    
        }
    }
    
    resources:
      testAutonomousDatabaseSaasAdminUser:
        type: oci:Database:AutonomousDatabaseSaasAdminUser
        name: test_autonomous_database_saas_admin_user
        properties:
          autonomousDatabaseId: ${testAutonomousDatabase.id}
          password: ${autonomousDatabaseSaasAdminUserPassword}
          accessType: ${autonomousDatabaseSaasAdminUserAccessType}
          duration: ${autonomousDatabaseSaasAdminUserDuration}
    

    Create AutonomousDatabaseSaasAdminUser Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new AutonomousDatabaseSaasAdminUser(name: string, args: AutonomousDatabaseSaasAdminUserArgs, opts?: CustomResourceOptions);
    @overload
    def AutonomousDatabaseSaasAdminUser(resource_name: str,
                                        args: AutonomousDatabaseSaasAdminUserArgs,
                                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def AutonomousDatabaseSaasAdminUser(resource_name: str,
                                        opts: Optional[ResourceOptions] = None,
                                        autonomous_database_id: Optional[str] = None,
                                        access_type: Optional[str] = None,
                                        duration: Optional[int] = None,
                                        password: Optional[str] = None,
                                        secret_id: Optional[str] = None,
                                        secret_version_number: Optional[int] = None,
                                        time_saas_admin_user_enabled: Optional[str] = None)
    func NewAutonomousDatabaseSaasAdminUser(ctx *Context, name string, args AutonomousDatabaseSaasAdminUserArgs, opts ...ResourceOption) (*AutonomousDatabaseSaasAdminUser, error)
    public AutonomousDatabaseSaasAdminUser(string name, AutonomousDatabaseSaasAdminUserArgs args, CustomResourceOptions? opts = null)
    public AutonomousDatabaseSaasAdminUser(String name, AutonomousDatabaseSaasAdminUserArgs args)
    public AutonomousDatabaseSaasAdminUser(String name, AutonomousDatabaseSaasAdminUserArgs args, CustomResourceOptions options)
    
    type: oci:Database:AutonomousDatabaseSaasAdminUser
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args AutonomousDatabaseSaasAdminUserArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args AutonomousDatabaseSaasAdminUserArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args AutonomousDatabaseSaasAdminUserArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AutonomousDatabaseSaasAdminUserArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AutonomousDatabaseSaasAdminUserArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var autonomousDatabaseSaasAdminUserResource = new Oci.Database.AutonomousDatabaseSaasAdminUser("autonomousDatabaseSaasAdminUserResource", new()
    {
        AutonomousDatabaseId = "string",
        AccessType = "string",
        Duration = 0,
        Password = "string",
        SecretId = "string",
        SecretVersionNumber = 0,
        TimeSaasAdminUserEnabled = "string",
    });
    
    example, err := Database.NewAutonomousDatabaseSaasAdminUser(ctx, "autonomousDatabaseSaasAdminUserResource", &Database.AutonomousDatabaseSaasAdminUserArgs{
    	AutonomousDatabaseId:     pulumi.String("string"),
    	AccessType:               pulumi.String("string"),
    	Duration:                 pulumi.Int(0),
    	Password:                 pulumi.String("string"),
    	SecretId:                 pulumi.String("string"),
    	SecretVersionNumber:      pulumi.Int(0),
    	TimeSaasAdminUserEnabled: pulumi.String("string"),
    })
    
    var autonomousDatabaseSaasAdminUserResource = new AutonomousDatabaseSaasAdminUser("autonomousDatabaseSaasAdminUserResource", AutonomousDatabaseSaasAdminUserArgs.builder()
        .autonomousDatabaseId("string")
        .accessType("string")
        .duration(0)
        .password("string")
        .secretId("string")
        .secretVersionNumber(0)
        .timeSaasAdminUserEnabled("string")
        .build());
    
    autonomous_database_saas_admin_user_resource = oci.database.AutonomousDatabaseSaasAdminUser("autonomousDatabaseSaasAdminUserResource",
        autonomous_database_id="string",
        access_type="string",
        duration=0,
        password="string",
        secret_id="string",
        secret_version_number=0,
        time_saas_admin_user_enabled="string")
    
    const autonomousDatabaseSaasAdminUserResource = new oci.database.AutonomousDatabaseSaasAdminUser("autonomousDatabaseSaasAdminUserResource", {
        autonomousDatabaseId: "string",
        accessType: "string",
        duration: 0,
        password: "string",
        secretId: "string",
        secretVersionNumber: 0,
        timeSaasAdminUserEnabled: "string",
    });
    
    type: oci:Database:AutonomousDatabaseSaasAdminUser
    properties:
        accessType: string
        autonomousDatabaseId: string
        duration: 0
        password: string
        secretId: string
        secretVersionNumber: 0
        timeSaasAdminUserEnabled: string
    

    AutonomousDatabaseSaasAdminUser Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The AutonomousDatabaseSaasAdminUser resource accepts the following input properties:

    AutonomousDatabaseId string
    The database OCID.
    AccessType string
    The access type for the SaaS administrative user. If no access type is specified, the READ_ONLY access type is used.
    Duration int
    How long, in hours, the SaaS administrative user will stay enabled. If no duration is specified, the default value 1 will be used.
    Password string
    A strong password for SaaS administrative user. The password must be a minimum of nine (9) characters and contain a minimum of two (2) uppercase, two (2) lowercase, two (2) numbers, and two (2) special characters from _ (underscore), # (hashtag), or - (dash). The password is mandatory if "secret_id" is not present.
    SecretId string
    The OCID of the Oracle Cloud Infrastructure secret. The secret is mandatory if "password" is not present.
    SecretVersionNumber int

    The version of the vault secret. If no version is specified, the latest version will be used.

    ** 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

    TimeSaasAdminUserEnabled string
    AutonomousDatabaseId string
    The database OCID.
    AccessType string
    The access type for the SaaS administrative user. If no access type is specified, the READ_ONLY access type is used.
    Duration int
    How long, in hours, the SaaS administrative user will stay enabled. If no duration is specified, the default value 1 will be used.
    Password string
    A strong password for SaaS administrative user. The password must be a minimum of nine (9) characters and contain a minimum of two (2) uppercase, two (2) lowercase, two (2) numbers, and two (2) special characters from _ (underscore), # (hashtag), or - (dash). The password is mandatory if "secret_id" is not present.
    SecretId string
    The OCID of the Oracle Cloud Infrastructure secret. The secret is mandatory if "password" is not present.
    SecretVersionNumber int

    The version of the vault secret. If no version is specified, the latest version will be used.

    ** 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

    TimeSaasAdminUserEnabled string
    autonomousDatabaseId String
    The database OCID.
    accessType String
    The access type for the SaaS administrative user. If no access type is specified, the READ_ONLY access type is used.
    duration Integer
    How long, in hours, the SaaS administrative user will stay enabled. If no duration is specified, the default value 1 will be used.
    password String
    A strong password for SaaS administrative user. The password must be a minimum of nine (9) characters and contain a minimum of two (2) uppercase, two (2) lowercase, two (2) numbers, and two (2) special characters from _ (underscore), # (hashtag), or - (dash). The password is mandatory if "secret_id" is not present.
    secretId String
    The OCID of the Oracle Cloud Infrastructure secret. The secret is mandatory if "password" is not present.
    secretVersionNumber Integer

    The version of the vault secret. If no version is specified, the latest version will be used.

    ** 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

    timeSaasAdminUserEnabled String
    autonomousDatabaseId string
    The database OCID.
    accessType string
    The access type for the SaaS administrative user. If no access type is specified, the READ_ONLY access type is used.
    duration number
    How long, in hours, the SaaS administrative user will stay enabled. If no duration is specified, the default value 1 will be used.
    password string
    A strong password for SaaS administrative user. The password must be a minimum of nine (9) characters and contain a minimum of two (2) uppercase, two (2) lowercase, two (2) numbers, and two (2) special characters from _ (underscore), # (hashtag), or - (dash). The password is mandatory if "secret_id" is not present.
    secretId string
    The OCID of the Oracle Cloud Infrastructure secret. The secret is mandatory if "password" is not present.
    secretVersionNumber number

    The version of the vault secret. If no version is specified, the latest version will be used.

    ** 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

    timeSaasAdminUserEnabled string
    autonomous_database_id str
    The database OCID.
    access_type str
    The access type for the SaaS administrative user. If no access type is specified, the READ_ONLY access type is used.
    duration int
    How long, in hours, the SaaS administrative user will stay enabled. If no duration is specified, the default value 1 will be used.
    password str
    A strong password for SaaS administrative user. The password must be a minimum of nine (9) characters and contain a minimum of two (2) uppercase, two (2) lowercase, two (2) numbers, and two (2) special characters from _ (underscore), # (hashtag), or - (dash). The password is mandatory if "secret_id" is not present.
    secret_id str
    The OCID of the Oracle Cloud Infrastructure secret. The secret is mandatory if "password" is not present.
    secret_version_number int

    The version of the vault secret. If no version is specified, the latest version will be used.

    ** 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

    time_saas_admin_user_enabled str
    autonomousDatabaseId String
    The database OCID.
    accessType String
    The access type for the SaaS administrative user. If no access type is specified, the READ_ONLY access type is used.
    duration Number
    How long, in hours, the SaaS administrative user will stay enabled. If no duration is specified, the default value 1 will be used.
    password String
    A strong password for SaaS administrative user. The password must be a minimum of nine (9) characters and contain a minimum of two (2) uppercase, two (2) lowercase, two (2) numbers, and two (2) special characters from _ (underscore), # (hashtag), or - (dash). The password is mandatory if "secret_id" is not present.
    secretId String
    The OCID of the Oracle Cloud Infrastructure secret. The secret is mandatory if "password" is not present.
    secretVersionNumber Number

    The version of the vault secret. If no version is specified, the latest version will be used.

    ** 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

    timeSaasAdminUserEnabled String

    Outputs

    All input properties are implicitly available as output properties. Additionally, the AutonomousDatabaseSaasAdminUser resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing AutonomousDatabaseSaasAdminUser Resource

    Get an existing AutonomousDatabaseSaasAdminUser resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: AutonomousDatabaseSaasAdminUserState, opts?: CustomResourceOptions): AutonomousDatabaseSaasAdminUser
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            access_type: Optional[str] = None,
            autonomous_database_id: Optional[str] = None,
            duration: Optional[int] = None,
            password: Optional[str] = None,
            secret_id: Optional[str] = None,
            secret_version_number: Optional[int] = None,
            time_saas_admin_user_enabled: Optional[str] = None) -> AutonomousDatabaseSaasAdminUser
    func GetAutonomousDatabaseSaasAdminUser(ctx *Context, name string, id IDInput, state *AutonomousDatabaseSaasAdminUserState, opts ...ResourceOption) (*AutonomousDatabaseSaasAdminUser, error)
    public static AutonomousDatabaseSaasAdminUser Get(string name, Input<string> id, AutonomousDatabaseSaasAdminUserState? state, CustomResourceOptions? opts = null)
    public static AutonomousDatabaseSaasAdminUser get(String name, Output<String> id, AutonomousDatabaseSaasAdminUserState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AccessType string
    The access type for the SaaS administrative user. If no access type is specified, the READ_ONLY access type is used.
    AutonomousDatabaseId string
    The database OCID.
    Duration int
    How long, in hours, the SaaS administrative user will stay enabled. If no duration is specified, the default value 1 will be used.
    Password string
    A strong password for SaaS administrative user. The password must be a minimum of nine (9) characters and contain a minimum of two (2) uppercase, two (2) lowercase, two (2) numbers, and two (2) special characters from _ (underscore), # (hashtag), or - (dash). The password is mandatory if "secret_id" is not present.
    SecretId string
    The OCID of the Oracle Cloud Infrastructure secret. The secret is mandatory if "password" is not present.
    SecretVersionNumber int

    The version of the vault secret. If no version is specified, the latest version will be used.

    ** 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

    TimeSaasAdminUserEnabled string
    AccessType string
    The access type for the SaaS administrative user. If no access type is specified, the READ_ONLY access type is used.
    AutonomousDatabaseId string
    The database OCID.
    Duration int
    How long, in hours, the SaaS administrative user will stay enabled. If no duration is specified, the default value 1 will be used.
    Password string
    A strong password for SaaS administrative user. The password must be a minimum of nine (9) characters and contain a minimum of two (2) uppercase, two (2) lowercase, two (2) numbers, and two (2) special characters from _ (underscore), # (hashtag), or - (dash). The password is mandatory if "secret_id" is not present.
    SecretId string
    The OCID of the Oracle Cloud Infrastructure secret. The secret is mandatory if "password" is not present.
    SecretVersionNumber int

    The version of the vault secret. If no version is specified, the latest version will be used.

    ** 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

    TimeSaasAdminUserEnabled string
    accessType String
    The access type for the SaaS administrative user. If no access type is specified, the READ_ONLY access type is used.
    autonomousDatabaseId String
    The database OCID.
    duration Integer
    How long, in hours, the SaaS administrative user will stay enabled. If no duration is specified, the default value 1 will be used.
    password String
    A strong password for SaaS administrative user. The password must be a minimum of nine (9) characters and contain a minimum of two (2) uppercase, two (2) lowercase, two (2) numbers, and two (2) special characters from _ (underscore), # (hashtag), or - (dash). The password is mandatory if "secret_id" is not present.
    secretId String
    The OCID of the Oracle Cloud Infrastructure secret. The secret is mandatory if "password" is not present.
    secretVersionNumber Integer

    The version of the vault secret. If no version is specified, the latest version will be used.

    ** 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

    timeSaasAdminUserEnabled String
    accessType string
    The access type for the SaaS administrative user. If no access type is specified, the READ_ONLY access type is used.
    autonomousDatabaseId string
    The database OCID.
    duration number
    How long, in hours, the SaaS administrative user will stay enabled. If no duration is specified, the default value 1 will be used.
    password string
    A strong password for SaaS administrative user. The password must be a minimum of nine (9) characters and contain a minimum of two (2) uppercase, two (2) lowercase, two (2) numbers, and two (2) special characters from _ (underscore), # (hashtag), or - (dash). The password is mandatory if "secret_id" is not present.
    secretId string
    The OCID of the Oracle Cloud Infrastructure secret. The secret is mandatory if "password" is not present.
    secretVersionNumber number

    The version of the vault secret. If no version is specified, the latest version will be used.

    ** 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

    timeSaasAdminUserEnabled string
    access_type str
    The access type for the SaaS administrative user. If no access type is specified, the READ_ONLY access type is used.
    autonomous_database_id str
    The database OCID.
    duration int
    How long, in hours, the SaaS administrative user will stay enabled. If no duration is specified, the default value 1 will be used.
    password str
    A strong password for SaaS administrative user. The password must be a minimum of nine (9) characters and contain a minimum of two (2) uppercase, two (2) lowercase, two (2) numbers, and two (2) special characters from _ (underscore), # (hashtag), or - (dash). The password is mandatory if "secret_id" is not present.
    secret_id str
    The OCID of the Oracle Cloud Infrastructure secret. The secret is mandatory if "password" is not present.
    secret_version_number int

    The version of the vault secret. If no version is specified, the latest version will be used.

    ** 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

    time_saas_admin_user_enabled str
    accessType String
    The access type for the SaaS administrative user. If no access type is specified, the READ_ONLY access type is used.
    autonomousDatabaseId String
    The database OCID.
    duration Number
    How long, in hours, the SaaS administrative user will stay enabled. If no duration is specified, the default value 1 will be used.
    password String
    A strong password for SaaS administrative user. The password must be a minimum of nine (9) characters and contain a minimum of two (2) uppercase, two (2) lowercase, two (2) numbers, and two (2) special characters from _ (underscore), # (hashtag), or - (dash). The password is mandatory if "secret_id" is not present.
    secretId String
    The OCID of the Oracle Cloud Infrastructure secret. The secret is mandatory if "password" is not present.
    secretVersionNumber Number

    The version of the vault secret. If no version is specified, the latest version will be used.

    ** 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

    timeSaasAdminUserEnabled String

    Import

    Import is not supported for this resource.

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi