1. Packages
  2. Akeyless Provider
  3. API Docs
  4. ProducerPostgres
akeyless 1.9.0 published on Monday, Apr 14, 2025 by akeyless-community

akeyless.ProducerPostgres

Explore with Pulumi AI

akeyless logo
akeyless 1.9.0 published on Monday, Apr 14, 2025 by akeyless-community

    PostgreSQLproducer resource

    Create ProducerPostgres Resource

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

    Constructor syntax

    new ProducerPostgres(name: string, args?: ProducerPostgresArgs, opts?: CustomResourceOptions);
    @overload
    def ProducerPostgres(resource_name: str,
                         args: Optional[ProducerPostgresArgs] = None,
                         opts: Optional[ResourceOptions] = None)
    
    @overload
    def ProducerPostgres(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         creation_statements: Optional[str] = None,
                         name: Optional[str] = None,
                         postgresql_db_name: Optional[str] = None,
                         postgresql_host: Optional[str] = None,
                         postgresql_password: Optional[str] = None,
                         postgresql_port: Optional[str] = None,
                         postgresql_username: Optional[str] = None,
                         producer_encryption_key: Optional[str] = None,
                         producer_postgres_id: Optional[str] = None,
                         secure_access_bastion_issuer: Optional[str] = None,
                         secure_access_db_name: Optional[str] = None,
                         secure_access_db_schema: Optional[str] = None,
                         secure_access_enable: Optional[str] = None,
                         secure_access_hosts: Optional[Sequence[str]] = None,
                         secure_access_web: Optional[bool] = None,
                         tags: Optional[Sequence[str]] = None,
                         target_name: Optional[str] = None,
                         user_ttl: Optional[str] = None)
    func NewProducerPostgres(ctx *Context, name string, args *ProducerPostgresArgs, opts ...ResourceOption) (*ProducerPostgres, error)
    public ProducerPostgres(string name, ProducerPostgresArgs? args = null, CustomResourceOptions? opts = null)
    public ProducerPostgres(String name, ProducerPostgresArgs args)
    public ProducerPostgres(String name, ProducerPostgresArgs args, CustomResourceOptions options)
    
    type: akeyless:ProducerPostgres
    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 ProducerPostgresArgs
    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 ProducerPostgresArgs
    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 ProducerPostgresArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ProducerPostgresArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ProducerPostgresArgs
    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 producerPostgresResource = new Akeyless.ProducerPostgres("producerPostgresResource", new()
    {
        CreationStatements = "string",
        Name = "string",
        PostgresqlDbName = "string",
        PostgresqlHost = "string",
        PostgresqlPassword = "string",
        PostgresqlPort = "string",
        PostgresqlUsername = "string",
        ProducerEncryptionKey = "string",
        ProducerPostgresId = "string",
        SecureAccessBastionIssuer = "string",
        SecureAccessDbName = "string",
        SecureAccessDbSchema = "string",
        SecureAccessEnable = "string",
        SecureAccessHosts = new[]
        {
            "string",
        },
        SecureAccessWeb = false,
        Tags = new[]
        {
            "string",
        },
        TargetName = "string",
        UserTtl = "string",
    });
    
    example, err := akeyless.NewProducerPostgres(ctx, "producerPostgresResource", &akeyless.ProducerPostgresArgs{
    	CreationStatements:        pulumi.String("string"),
    	Name:                      pulumi.String("string"),
    	PostgresqlDbName:          pulumi.String("string"),
    	PostgresqlHost:            pulumi.String("string"),
    	PostgresqlPassword:        pulumi.String("string"),
    	PostgresqlPort:            pulumi.String("string"),
    	PostgresqlUsername:        pulumi.String("string"),
    	ProducerEncryptionKey:     pulumi.String("string"),
    	ProducerPostgresId:        pulumi.String("string"),
    	SecureAccessBastionIssuer: pulumi.String("string"),
    	SecureAccessDbName:        pulumi.String("string"),
    	SecureAccessDbSchema:      pulumi.String("string"),
    	SecureAccessEnable:        pulumi.String("string"),
    	SecureAccessHosts: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	SecureAccessWeb: pulumi.Bool(false),
    	Tags: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	TargetName: pulumi.String("string"),
    	UserTtl:    pulumi.String("string"),
    })
    
    var producerPostgresResource = new ProducerPostgres("producerPostgresResource", ProducerPostgresArgs.builder()
        .creationStatements("string")
        .name("string")
        .postgresqlDbName("string")
        .postgresqlHost("string")
        .postgresqlPassword("string")
        .postgresqlPort("string")
        .postgresqlUsername("string")
        .producerEncryptionKey("string")
        .producerPostgresId("string")
        .secureAccessBastionIssuer("string")
        .secureAccessDbName("string")
        .secureAccessDbSchema("string")
        .secureAccessEnable("string")
        .secureAccessHosts("string")
        .secureAccessWeb(false)
        .tags("string")
        .targetName("string")
        .userTtl("string")
        .build());
    
    producer_postgres_resource = akeyless.ProducerPostgres("producerPostgresResource",
        creation_statements="string",
        name="string",
        postgresql_db_name="string",
        postgresql_host="string",
        postgresql_password="string",
        postgresql_port="string",
        postgresql_username="string",
        producer_encryption_key="string",
        producer_postgres_id="string",
        secure_access_bastion_issuer="string",
        secure_access_db_name="string",
        secure_access_db_schema="string",
        secure_access_enable="string",
        secure_access_hosts=["string"],
        secure_access_web=False,
        tags=["string"],
        target_name="string",
        user_ttl="string")
    
    const producerPostgresResource = new akeyless.ProducerPostgres("producerPostgresResource", {
        creationStatements: "string",
        name: "string",
        postgresqlDbName: "string",
        postgresqlHost: "string",
        postgresqlPassword: "string",
        postgresqlPort: "string",
        postgresqlUsername: "string",
        producerEncryptionKey: "string",
        producerPostgresId: "string",
        secureAccessBastionIssuer: "string",
        secureAccessDbName: "string",
        secureAccessDbSchema: "string",
        secureAccessEnable: "string",
        secureAccessHosts: ["string"],
        secureAccessWeb: false,
        tags: ["string"],
        targetName: "string",
        userTtl: "string",
    });
    
    type: akeyless:ProducerPostgres
    properties:
        creationStatements: string
        name: string
        postgresqlDbName: string
        postgresqlHost: string
        postgresqlPassword: string
        postgresqlPort: string
        postgresqlUsername: string
        producerEncryptionKey: string
        producerPostgresId: string
        secureAccessBastionIssuer: string
        secureAccessDbName: string
        secureAccessDbSchema: string
        secureAccessEnable: string
        secureAccessHosts:
            - string
        secureAccessWeb: false
        tags:
            - string
        targetName: string
        userTtl: string
    

    ProducerPostgres 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 ProducerPostgres resource accepts the following input properties:

    CreationStatements string
    PostgreSQL Creation Statements
    Name string
    Producer name
    PostgresqlDbName string
    PostgreSQL DB name
    PostgresqlHost string
    PostgreSQL host name
    PostgresqlPassword string
    PostgreSQL password
    PostgresqlPort string
    PostgreSQL port
    PostgresqlUsername string
    PostgreSQL user
    ProducerEncryptionKey string
    Encrypt producer with following key
    ProducerPostgresId string
    The ID of this resource.
    SecureAccessBastionIssuer string
    Path to the SSH Certificate Issuer for your Akeyless Bastion
    SecureAccessDbName string
    Enable Web Secure Remote Access
    SecureAccessDbSchema string
    The db schema
    SecureAccessEnable string
    Enable/Disable secure remote access, [true/false]
    SecureAccessHosts List<string>
    Target DB servers for connections., For multiple values repeat this flag.
    SecureAccessWeb bool
    Enable Web Secure Remote Access
    Tags List<string>
    List of the tags attached to this secret. To specify multiple tags use argument multiple times: -t Tag1 -t Tag2
    TargetName string
    Name of existing target to use in producer creation
    UserTtl string
    User TTL
    CreationStatements string
    PostgreSQL Creation Statements
    Name string
    Producer name
    PostgresqlDbName string
    PostgreSQL DB name
    PostgresqlHost string
    PostgreSQL host name
    PostgresqlPassword string
    PostgreSQL password
    PostgresqlPort string
    PostgreSQL port
    PostgresqlUsername string
    PostgreSQL user
    ProducerEncryptionKey string
    Encrypt producer with following key
    ProducerPostgresId string
    The ID of this resource.
    SecureAccessBastionIssuer string
    Path to the SSH Certificate Issuer for your Akeyless Bastion
    SecureAccessDbName string
    Enable Web Secure Remote Access
    SecureAccessDbSchema string
    The db schema
    SecureAccessEnable string
    Enable/Disable secure remote access, [true/false]
    SecureAccessHosts []string
    Target DB servers for connections., For multiple values repeat this flag.
    SecureAccessWeb bool
    Enable Web Secure Remote Access
    Tags []string
    List of the tags attached to this secret. To specify multiple tags use argument multiple times: -t Tag1 -t Tag2
    TargetName string
    Name of existing target to use in producer creation
    UserTtl string
    User TTL
    creationStatements String
    PostgreSQL Creation Statements
    name String
    Producer name
    postgresqlDbName String
    PostgreSQL DB name
    postgresqlHost String
    PostgreSQL host name
    postgresqlPassword String
    PostgreSQL password
    postgresqlPort String
    PostgreSQL port
    postgresqlUsername String
    PostgreSQL user
    producerEncryptionKey String
    Encrypt producer with following key
    producerPostgresId String
    The ID of this resource.
    secureAccessBastionIssuer String
    Path to the SSH Certificate Issuer for your Akeyless Bastion
    secureAccessDbName String
    Enable Web Secure Remote Access
    secureAccessDbSchema String
    The db schema
    secureAccessEnable String
    Enable/Disable secure remote access, [true/false]
    secureAccessHosts List<String>
    Target DB servers for connections., For multiple values repeat this flag.
    secureAccessWeb Boolean
    Enable Web Secure Remote Access
    tags List<String>
    List of the tags attached to this secret. To specify multiple tags use argument multiple times: -t Tag1 -t Tag2
    targetName String
    Name of existing target to use in producer creation
    userTtl String
    User TTL
    creationStatements string
    PostgreSQL Creation Statements
    name string
    Producer name
    postgresqlDbName string
    PostgreSQL DB name
    postgresqlHost string
    PostgreSQL host name
    postgresqlPassword string
    PostgreSQL password
    postgresqlPort string
    PostgreSQL port
    postgresqlUsername string
    PostgreSQL user
    producerEncryptionKey string
    Encrypt producer with following key
    producerPostgresId string
    The ID of this resource.
    secureAccessBastionIssuer string
    Path to the SSH Certificate Issuer for your Akeyless Bastion
    secureAccessDbName string
    Enable Web Secure Remote Access
    secureAccessDbSchema string
    The db schema
    secureAccessEnable string
    Enable/Disable secure remote access, [true/false]
    secureAccessHosts string[]
    Target DB servers for connections., For multiple values repeat this flag.
    secureAccessWeb boolean
    Enable Web Secure Remote Access
    tags string[]
    List of the tags attached to this secret. To specify multiple tags use argument multiple times: -t Tag1 -t Tag2
    targetName string
    Name of existing target to use in producer creation
    userTtl string
    User TTL
    creation_statements str
    PostgreSQL Creation Statements
    name str
    Producer name
    postgresql_db_name str
    PostgreSQL DB name
    postgresql_host str
    PostgreSQL host name
    postgresql_password str
    PostgreSQL password
    postgresql_port str
    PostgreSQL port
    postgresql_username str
    PostgreSQL user
    producer_encryption_key str
    Encrypt producer with following key
    producer_postgres_id str
    The ID of this resource.
    secure_access_bastion_issuer str
    Path to the SSH Certificate Issuer for your Akeyless Bastion
    secure_access_db_name str
    Enable Web Secure Remote Access
    secure_access_db_schema str
    The db schema
    secure_access_enable str
    Enable/Disable secure remote access, [true/false]
    secure_access_hosts Sequence[str]
    Target DB servers for connections., For multiple values repeat this flag.
    secure_access_web bool
    Enable Web Secure Remote Access
    tags Sequence[str]
    List of the tags attached to this secret. To specify multiple tags use argument multiple times: -t Tag1 -t Tag2
    target_name str
    Name of existing target to use in producer creation
    user_ttl str
    User TTL
    creationStatements String
    PostgreSQL Creation Statements
    name String
    Producer name
    postgresqlDbName String
    PostgreSQL DB name
    postgresqlHost String
    PostgreSQL host name
    postgresqlPassword String
    PostgreSQL password
    postgresqlPort String
    PostgreSQL port
    postgresqlUsername String
    PostgreSQL user
    producerEncryptionKey String
    Encrypt producer with following key
    producerPostgresId String
    The ID of this resource.
    secureAccessBastionIssuer String
    Path to the SSH Certificate Issuer for your Akeyless Bastion
    secureAccessDbName String
    Enable Web Secure Remote Access
    secureAccessDbSchema String
    The db schema
    secureAccessEnable String
    Enable/Disable secure remote access, [true/false]
    secureAccessHosts List<String>
    Target DB servers for connections., For multiple values repeat this flag.
    secureAccessWeb Boolean
    Enable Web Secure Remote Access
    tags List<String>
    List of the tags attached to this secret. To specify multiple tags use argument multiple times: -t Tag1 -t Tag2
    targetName String
    Name of existing target to use in producer creation
    userTtl String
    User TTL

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ProducerPostgres 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 ProducerPostgres Resource

    Get an existing ProducerPostgres 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?: ProducerPostgresState, opts?: CustomResourceOptions): ProducerPostgres
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            creation_statements: Optional[str] = None,
            name: Optional[str] = None,
            postgresql_db_name: Optional[str] = None,
            postgresql_host: Optional[str] = None,
            postgresql_password: Optional[str] = None,
            postgresql_port: Optional[str] = None,
            postgresql_username: Optional[str] = None,
            producer_encryption_key: Optional[str] = None,
            producer_postgres_id: Optional[str] = None,
            secure_access_bastion_issuer: Optional[str] = None,
            secure_access_db_name: Optional[str] = None,
            secure_access_db_schema: Optional[str] = None,
            secure_access_enable: Optional[str] = None,
            secure_access_hosts: Optional[Sequence[str]] = None,
            secure_access_web: Optional[bool] = None,
            tags: Optional[Sequence[str]] = None,
            target_name: Optional[str] = None,
            user_ttl: Optional[str] = None) -> ProducerPostgres
    func GetProducerPostgres(ctx *Context, name string, id IDInput, state *ProducerPostgresState, opts ...ResourceOption) (*ProducerPostgres, error)
    public static ProducerPostgres Get(string name, Input<string> id, ProducerPostgresState? state, CustomResourceOptions? opts = null)
    public static ProducerPostgres get(String name, Output<String> id, ProducerPostgresState state, CustomResourceOptions options)
    resources:  _:    type: akeyless:ProducerPostgres    get:      id: ${id}
    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:
    CreationStatements string
    PostgreSQL Creation Statements
    Name string
    Producer name
    PostgresqlDbName string
    PostgreSQL DB name
    PostgresqlHost string
    PostgreSQL host name
    PostgresqlPassword string
    PostgreSQL password
    PostgresqlPort string
    PostgreSQL port
    PostgresqlUsername string
    PostgreSQL user
    ProducerEncryptionKey string
    Encrypt producer with following key
    ProducerPostgresId string
    The ID of this resource.
    SecureAccessBastionIssuer string
    Path to the SSH Certificate Issuer for your Akeyless Bastion
    SecureAccessDbName string
    Enable Web Secure Remote Access
    SecureAccessDbSchema string
    The db schema
    SecureAccessEnable string
    Enable/Disable secure remote access, [true/false]
    SecureAccessHosts List<string>
    Target DB servers for connections., For multiple values repeat this flag.
    SecureAccessWeb bool
    Enable Web Secure Remote Access
    Tags List<string>
    List of the tags attached to this secret. To specify multiple tags use argument multiple times: -t Tag1 -t Tag2
    TargetName string
    Name of existing target to use in producer creation
    UserTtl string
    User TTL
    CreationStatements string
    PostgreSQL Creation Statements
    Name string
    Producer name
    PostgresqlDbName string
    PostgreSQL DB name
    PostgresqlHost string
    PostgreSQL host name
    PostgresqlPassword string
    PostgreSQL password
    PostgresqlPort string
    PostgreSQL port
    PostgresqlUsername string
    PostgreSQL user
    ProducerEncryptionKey string
    Encrypt producer with following key
    ProducerPostgresId string
    The ID of this resource.
    SecureAccessBastionIssuer string
    Path to the SSH Certificate Issuer for your Akeyless Bastion
    SecureAccessDbName string
    Enable Web Secure Remote Access
    SecureAccessDbSchema string
    The db schema
    SecureAccessEnable string
    Enable/Disable secure remote access, [true/false]
    SecureAccessHosts []string
    Target DB servers for connections., For multiple values repeat this flag.
    SecureAccessWeb bool
    Enable Web Secure Remote Access
    Tags []string
    List of the tags attached to this secret. To specify multiple tags use argument multiple times: -t Tag1 -t Tag2
    TargetName string
    Name of existing target to use in producer creation
    UserTtl string
    User TTL
    creationStatements String
    PostgreSQL Creation Statements
    name String
    Producer name
    postgresqlDbName String
    PostgreSQL DB name
    postgresqlHost String
    PostgreSQL host name
    postgresqlPassword String
    PostgreSQL password
    postgresqlPort String
    PostgreSQL port
    postgresqlUsername String
    PostgreSQL user
    producerEncryptionKey String
    Encrypt producer with following key
    producerPostgresId String
    The ID of this resource.
    secureAccessBastionIssuer String
    Path to the SSH Certificate Issuer for your Akeyless Bastion
    secureAccessDbName String
    Enable Web Secure Remote Access
    secureAccessDbSchema String
    The db schema
    secureAccessEnable String
    Enable/Disable secure remote access, [true/false]
    secureAccessHosts List<String>
    Target DB servers for connections., For multiple values repeat this flag.
    secureAccessWeb Boolean
    Enable Web Secure Remote Access
    tags List<String>
    List of the tags attached to this secret. To specify multiple tags use argument multiple times: -t Tag1 -t Tag2
    targetName String
    Name of existing target to use in producer creation
    userTtl String
    User TTL
    creationStatements string
    PostgreSQL Creation Statements
    name string
    Producer name
    postgresqlDbName string
    PostgreSQL DB name
    postgresqlHost string
    PostgreSQL host name
    postgresqlPassword string
    PostgreSQL password
    postgresqlPort string
    PostgreSQL port
    postgresqlUsername string
    PostgreSQL user
    producerEncryptionKey string
    Encrypt producer with following key
    producerPostgresId string
    The ID of this resource.
    secureAccessBastionIssuer string
    Path to the SSH Certificate Issuer for your Akeyless Bastion
    secureAccessDbName string
    Enable Web Secure Remote Access
    secureAccessDbSchema string
    The db schema
    secureAccessEnable string
    Enable/Disable secure remote access, [true/false]
    secureAccessHosts string[]
    Target DB servers for connections., For multiple values repeat this flag.
    secureAccessWeb boolean
    Enable Web Secure Remote Access
    tags string[]
    List of the tags attached to this secret. To specify multiple tags use argument multiple times: -t Tag1 -t Tag2
    targetName string
    Name of existing target to use in producer creation
    userTtl string
    User TTL
    creation_statements str
    PostgreSQL Creation Statements
    name str
    Producer name
    postgresql_db_name str
    PostgreSQL DB name
    postgresql_host str
    PostgreSQL host name
    postgresql_password str
    PostgreSQL password
    postgresql_port str
    PostgreSQL port
    postgresql_username str
    PostgreSQL user
    producer_encryption_key str
    Encrypt producer with following key
    producer_postgres_id str
    The ID of this resource.
    secure_access_bastion_issuer str
    Path to the SSH Certificate Issuer for your Akeyless Bastion
    secure_access_db_name str
    Enable Web Secure Remote Access
    secure_access_db_schema str
    The db schema
    secure_access_enable str
    Enable/Disable secure remote access, [true/false]
    secure_access_hosts Sequence[str]
    Target DB servers for connections., For multiple values repeat this flag.
    secure_access_web bool
    Enable Web Secure Remote Access
    tags Sequence[str]
    List of the tags attached to this secret. To specify multiple tags use argument multiple times: -t Tag1 -t Tag2
    target_name str
    Name of existing target to use in producer creation
    user_ttl str
    User TTL
    creationStatements String
    PostgreSQL Creation Statements
    name String
    Producer name
    postgresqlDbName String
    PostgreSQL DB name
    postgresqlHost String
    PostgreSQL host name
    postgresqlPassword String
    PostgreSQL password
    postgresqlPort String
    PostgreSQL port
    postgresqlUsername String
    PostgreSQL user
    producerEncryptionKey String
    Encrypt producer with following key
    producerPostgresId String
    The ID of this resource.
    secureAccessBastionIssuer String
    Path to the SSH Certificate Issuer for your Akeyless Bastion
    secureAccessDbName String
    Enable Web Secure Remote Access
    secureAccessDbSchema String
    The db schema
    secureAccessEnable String
    Enable/Disable secure remote access, [true/false]
    secureAccessHosts List<String>
    Target DB servers for connections., For multiple values repeat this flag.
    secureAccessWeb Boolean
    Enable Web Secure Remote Access
    tags List<String>
    List of the tags attached to this secret. To specify multiple tags use argument multiple times: -t Tag1 -t Tag2
    targetName String
    Name of existing target to use in producer creation
    userTtl String
    User TTL

    Package Details

    Repository
    akeyless akeyless-community/terraform-provider-akeyless
    License
    Notes
    This Pulumi package is based on the akeyless Terraform Provider.
    akeyless logo
    akeyless 1.9.0 published on Monday, Apr 14, 2025 by akeyless-community