Provides a resource to manage rds postgresql endpoint public address
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@volcengine/pulumi";
const example = new volcengine.rds_postgresql.EndpointPublicAddress("example", {
eipId: "eip-1c0x0ehrbhb7k5e8j71k84ryd",
endpointId: "postgres-ac541555dd74-cluster",
instanceId: "postgres-ac541555dd74",
});
import pulumi
import pulumi_volcengine as volcengine
example = volcengine.rds_postgresql.EndpointPublicAddress("example",
eip_id="eip-1c0x0ehrbhb7k5e8j71k84ryd",
endpoint_id="postgres-ac541555dd74-cluster",
instance_id="postgres-ac541555dd74")
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/rds_postgresql"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := rds_postgresql.NewEndpointPublicAddress(ctx, "example", &rds_postgresql.EndpointPublicAddressArgs{
EipId: pulumi.String("eip-1c0x0ehrbhb7k5e8j71k84ryd"),
EndpointId: pulumi.String("postgres-ac541555dd74-cluster"),
InstanceId: pulumi.String("postgres-ac541555dd74"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;
return await Deployment.RunAsync(() =>
{
var example = new Volcengine.Rds_postgresql.EndpointPublicAddress("example", new()
{
EipId = "eip-1c0x0ehrbhb7k5e8j71k84ryd",
EndpointId = "postgres-ac541555dd74-cluster",
InstanceId = "postgres-ac541555dd74",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.rds_postgresql.EndpointPublicAddress;
import com.pulumi.volcengine.rds_postgresql.EndpointPublicAddressArgs;
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 example = new EndpointPublicAddress("example", EndpointPublicAddressArgs.builder()
.eipId("eip-1c0x0ehrbhb7k5e8j71k84ryd")
.endpointId("postgres-ac541555dd74-cluster")
.instanceId("postgres-ac541555dd74")
.build());
}
}
resources:
example:
type: volcengine:rds_postgresql:EndpointPublicAddress
properties:
eipId: eip-1c0x0ehrbhb7k5e8j71k84ryd
endpointId: postgres-ac541555dd74-cluster
instanceId: postgres-ac541555dd74
Create EndpointPublicAddress Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new EndpointPublicAddress(name: string, args: EndpointPublicAddressArgs, opts?: CustomResourceOptions);@overload
def EndpointPublicAddress(resource_name: str,
args: EndpointPublicAddressArgs,
opts: Optional[ResourceOptions] = None)
@overload
def EndpointPublicAddress(resource_name: str,
opts: Optional[ResourceOptions] = None,
eip_id: Optional[str] = None,
endpoint_id: Optional[str] = None,
instance_id: Optional[str] = None)func NewEndpointPublicAddress(ctx *Context, name string, args EndpointPublicAddressArgs, opts ...ResourceOption) (*EndpointPublicAddress, error)public EndpointPublicAddress(string name, EndpointPublicAddressArgs args, CustomResourceOptions? opts = null)
public EndpointPublicAddress(String name, EndpointPublicAddressArgs args)
public EndpointPublicAddress(String name, EndpointPublicAddressArgs args, CustomResourceOptions options)
type: volcengine:rds_postgresql:EndpointPublicAddress
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 EndpointPublicAddressArgs
- 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 EndpointPublicAddressArgs
- 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 EndpointPublicAddressArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args EndpointPublicAddressArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args EndpointPublicAddressArgs
- 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 volcengineEndpointPublicAddressResource = new Volcengine.Rds_postgresql.EndpointPublicAddress("volcengineEndpointPublicAddressResource", new()
{
EipId = "string",
EndpointId = "string",
InstanceId = "string",
});
example, err := rds_postgresql.NewEndpointPublicAddress(ctx, "volcengineEndpointPublicAddressResource", &rds_postgresql.EndpointPublicAddressArgs{
EipId: pulumi.String("string"),
EndpointId: pulumi.String("string"),
InstanceId: pulumi.String("string"),
})
var volcengineEndpointPublicAddressResource = new com.pulumi.volcengine.rds_postgresql.EndpointPublicAddress("volcengineEndpointPublicAddressResource", com.pulumi.volcengine.rds_postgresql.EndpointPublicAddressArgs.builder()
.eipId("string")
.endpointId("string")
.instanceId("string")
.build());
volcengine_endpoint_public_address_resource = volcengine.rds_postgresql.EndpointPublicAddress("volcengineEndpointPublicAddressResource",
eip_id="string",
endpoint_id="string",
instance_id="string")
const volcengineEndpointPublicAddressResource = new volcengine.rds_postgresql.EndpointPublicAddress("volcengineEndpointPublicAddressResource", {
eipId: "string",
endpointId: "string",
instanceId: "string",
});
type: volcengine:rds_postgresql:EndpointPublicAddress
properties:
eipId: string
endpointId: string
instanceId: string
EndpointPublicAddress 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 EndpointPublicAddress resource accepts the following input properties:
- Eip
Id string - EIP ID to bind for public access.
- Endpoint
Id string - Endpoint ID.
- Instance
Id string - The ID of the RDS PostgreSQL instance.
- Eip
Id string - EIP ID to bind for public access.
- Endpoint
Id string - Endpoint ID.
- Instance
Id string - The ID of the RDS PostgreSQL instance.
- eip
Id String - EIP ID to bind for public access.
- endpoint
Id String - Endpoint ID.
- instance
Id String - The ID of the RDS PostgreSQL instance.
- eip
Id string - EIP ID to bind for public access.
- endpoint
Id string - Endpoint ID.
- instance
Id string - The ID of the RDS PostgreSQL instance.
- eip_
id str - EIP ID to bind for public access.
- endpoint_
id str - Endpoint ID.
- instance_
id str - The ID of the RDS PostgreSQL instance.
- eip
Id String - EIP ID to bind for public access.
- endpoint
Id String - Endpoint ID.
- instance
Id String - The ID of the RDS PostgreSQL instance.
Outputs
All input properties are implicitly available as output properties. Additionally, the EndpointPublicAddress 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 EndpointPublicAddress Resource
Get an existing EndpointPublicAddress 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?: EndpointPublicAddressState, opts?: CustomResourceOptions): EndpointPublicAddress@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
eip_id: Optional[str] = None,
endpoint_id: Optional[str] = None,
instance_id: Optional[str] = None) -> EndpointPublicAddressfunc GetEndpointPublicAddress(ctx *Context, name string, id IDInput, state *EndpointPublicAddressState, opts ...ResourceOption) (*EndpointPublicAddress, error)public static EndpointPublicAddress Get(string name, Input<string> id, EndpointPublicAddressState? state, CustomResourceOptions? opts = null)public static EndpointPublicAddress get(String name, Output<String> id, EndpointPublicAddressState state, CustomResourceOptions options)resources: _: type: volcengine:rds_postgresql:EndpointPublicAddress 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.
- Eip
Id string - EIP ID to bind for public access.
- Endpoint
Id string - Endpoint ID.
- Instance
Id string - The ID of the RDS PostgreSQL instance.
- Eip
Id string - EIP ID to bind for public access.
- Endpoint
Id string - Endpoint ID.
- Instance
Id string - The ID of the RDS PostgreSQL instance.
- eip
Id String - EIP ID to bind for public access.
- endpoint
Id String - Endpoint ID.
- instance
Id String - The ID of the RDS PostgreSQL instance.
- eip
Id string - EIP ID to bind for public access.
- endpoint
Id string - Endpoint ID.
- instance
Id string - The ID of the RDS PostgreSQL instance.
- eip_
id str - EIP ID to bind for public access.
- endpoint_
id str - Endpoint ID.
- instance_
id str - The ID of the RDS PostgreSQL instance.
- eip
Id String - EIP ID to bind for public access.
- endpoint
Id String - Endpoint ID.
- instance
Id String - The ID of the RDS PostgreSQL instance.
Import
RdsPostgresqlEndpointPublicAddress can be imported using the id, e.g.
$ pulumi import volcengine:rds_postgresql/endpointPublicAddress:EndpointPublicAddress default resource_id
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
volcengineTerraform Provider.
