Class Extension
The postgresql..Extension resource creates and manages an extension on a PostgreSQL
server.
Usage
using Pulumi;
using PostgreSql = Pulumi.PostgreSql;
class MyStack : Stack
{
public MyStack()
{
var myExtension = new PostgreSql.Extension("myExtension", new PostgreSql.ExtensionArgs
{
});
}
}
Inherited Members
Namespace: Pulumi.PostgreSql
Assembly: Pulumi.PostgreSql.dll
Syntax
public class Extension : CustomResource
Constructors
View SourceExtension(String, ExtensionArgs, CustomResourceOptions)
Create a Extension resource with the given unique name, arguments, and options.
Declaration
public Extension(string name, ExtensionArgs args = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| ExtensionArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceDatabase
Which database to create the extension on. Defaults to provider database.
Declaration
public Output<string> Database { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Name
The name of the extension.
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Schema
Sets the schema of an extension.
Declaration
public Output<string> Schema { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Version
Sets the version number of the extension.
Declaration
public Output<string> Version { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, ExtensionState, CustomResourceOptions)
Get an existing Extension resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static Extension Get(string name, Input<string> id, ExtensionState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| ExtensionState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| Extension |