1. Packages
  2. Aiven
  3. API Docs
  4. GcpPrivatelinkConnectionApproval
Aiven v6.17.2 published on Thursday, Jun 6, 2024 by Pulumi

aiven.GcpPrivatelinkConnectionApproval

Explore with Pulumi AI

aiven logo
Aiven v6.17.2 published on Thursday, Jun 6, 2024 by Pulumi

    Approves a Google Private Service Connect connection to an Aiven service with an associated endpoint IP.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aiven from "@pulumi/aiven";
    
    const approve = new aiven.GcpPrivatelinkConnectionApproval("approve", {
        project: exampleProject.project,
        serviceName: exampleKafka.serviceName,
        userIpAddress: "10.0.0.100",
    });
    
    import pulumi
    import pulumi_aiven as aiven
    
    approve = aiven.GcpPrivatelinkConnectionApproval("approve",
        project=example_project["project"],
        service_name=example_kafka["serviceName"],
        user_ip_address="10.0.0.100")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aiven/sdk/v6/go/aiven"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := aiven.NewGcpPrivatelinkConnectionApproval(ctx, "approve", &aiven.GcpPrivatelinkConnectionApprovalArgs{
    			Project:       pulumi.Any(exampleProject.Project),
    			ServiceName:   pulumi.Any(exampleKafka.ServiceName),
    			UserIpAddress: pulumi.String("10.0.0.100"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aiven = Pulumi.Aiven;
    
    return await Deployment.RunAsync(() => 
    {
        var approve = new Aiven.GcpPrivatelinkConnectionApproval("approve", new()
        {
            Project = exampleProject.Project,
            ServiceName = exampleKafka.ServiceName,
            UserIpAddress = "10.0.0.100",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aiven.GcpPrivatelinkConnectionApproval;
    import com.pulumi.aiven.GcpPrivatelinkConnectionApprovalArgs;
    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 approve = new GcpPrivatelinkConnectionApproval("approve", GcpPrivatelinkConnectionApprovalArgs.builder()
                .project(exampleProject.project())
                .serviceName(exampleKafka.serviceName())
                .userIpAddress("10.0.0.100")
                .build());
    
        }
    }
    
    resources:
      approve:
        type: aiven:GcpPrivatelinkConnectionApproval
        properties:
          project: ${exampleProject.project}
          serviceName: ${exampleKafka.serviceName}
          userIpAddress: 10.0.0.100
    

    Create GcpPrivatelinkConnectionApproval Resource

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

    Constructor syntax

    new GcpPrivatelinkConnectionApproval(name: string, args: GcpPrivatelinkConnectionApprovalArgs, opts?: CustomResourceOptions);
    @overload
    def GcpPrivatelinkConnectionApproval(resource_name: str,
                                         args: GcpPrivatelinkConnectionApprovalArgs,
                                         opts: Optional[ResourceOptions] = None)
    
    @overload
    def GcpPrivatelinkConnectionApproval(resource_name: str,
                                         opts: Optional[ResourceOptions] = None,
                                         project: Optional[str] = None,
                                         service_name: Optional[str] = None,
                                         user_ip_address: Optional[str] = None)
    func NewGcpPrivatelinkConnectionApproval(ctx *Context, name string, args GcpPrivatelinkConnectionApprovalArgs, opts ...ResourceOption) (*GcpPrivatelinkConnectionApproval, error)
    public GcpPrivatelinkConnectionApproval(string name, GcpPrivatelinkConnectionApprovalArgs args, CustomResourceOptions? opts = null)
    public GcpPrivatelinkConnectionApproval(String name, GcpPrivatelinkConnectionApprovalArgs args)
    public GcpPrivatelinkConnectionApproval(String name, GcpPrivatelinkConnectionApprovalArgs args, CustomResourceOptions options)
    
    type: aiven:GcpPrivatelinkConnectionApproval
    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 GcpPrivatelinkConnectionApprovalArgs
    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 GcpPrivatelinkConnectionApprovalArgs
    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 GcpPrivatelinkConnectionApprovalArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args GcpPrivatelinkConnectionApprovalArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args GcpPrivatelinkConnectionApprovalArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

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

    var gcpPrivatelinkConnectionApprovalResource = new Aiven.GcpPrivatelinkConnectionApproval("gcpPrivatelinkConnectionApprovalResource", new()
    {
        Project = "string",
        ServiceName = "string",
        UserIpAddress = "string",
    });
    
    example, err := aiven.NewGcpPrivatelinkConnectionApproval(ctx, "gcpPrivatelinkConnectionApprovalResource", &aiven.GcpPrivatelinkConnectionApprovalArgs{
    	Project:       pulumi.String("string"),
    	ServiceName:   pulumi.String("string"),
    	UserIpAddress: pulumi.String("string"),
    })
    
    var gcpPrivatelinkConnectionApprovalResource = new GcpPrivatelinkConnectionApproval("gcpPrivatelinkConnectionApprovalResource", GcpPrivatelinkConnectionApprovalArgs.builder()
        .project("string")
        .serviceName("string")
        .userIpAddress("string")
        .build());
    
    gcp_privatelink_connection_approval_resource = aiven.GcpPrivatelinkConnectionApproval("gcpPrivatelinkConnectionApprovalResource",
        project="string",
        service_name="string",
        user_ip_address="string")
    
    const gcpPrivatelinkConnectionApprovalResource = new aiven.GcpPrivatelinkConnectionApproval("gcpPrivatelinkConnectionApprovalResource", {
        project: "string",
        serviceName: "string",
        userIpAddress: "string",
    });
    
    type: aiven:GcpPrivatelinkConnectionApproval
    properties:
        project: string
        serviceName: string
        userIpAddress: string
    

    GcpPrivatelinkConnectionApproval Resource Properties

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

    Inputs

    The GcpPrivatelinkConnectionApproval resource accepts the following input properties:

    Project string
    The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
    ServiceName string
    The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
    UserIpAddress string
    The Private Service Connect connection user IP address.
    Project string
    The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
    ServiceName string
    The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
    UserIpAddress string
    The Private Service Connect connection user IP address.
    project String
    The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
    serviceName String
    The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
    userIpAddress String
    The Private Service Connect connection user IP address.
    project string
    The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
    serviceName string
    The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
    userIpAddress string
    The Private Service Connect connection user IP address.
    project str
    The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
    service_name str
    The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
    user_ip_address str
    The Private Service Connect connection user IP address.
    project String
    The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
    serviceName String
    The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
    userIpAddress String
    The Private Service Connect connection user IP address.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    PrivatelinkConnectionId string
    Aiven internal ID for the private link connection.
    PscConnectionId string
    The Google Private Service Connect connection ID.
    State string
    The state of the connection.
    Id string
    The provider-assigned unique ID for this managed resource.
    PrivatelinkConnectionId string
    Aiven internal ID for the private link connection.
    PscConnectionId string
    The Google Private Service Connect connection ID.
    State string
    The state of the connection.
    id String
    The provider-assigned unique ID for this managed resource.
    privatelinkConnectionId String
    Aiven internal ID for the private link connection.
    pscConnectionId String
    The Google Private Service Connect connection ID.
    state String
    The state of the connection.
    id string
    The provider-assigned unique ID for this managed resource.
    privatelinkConnectionId string
    Aiven internal ID for the private link connection.
    pscConnectionId string
    The Google Private Service Connect connection ID.
    state string
    The state of the connection.
    id str
    The provider-assigned unique ID for this managed resource.
    privatelink_connection_id str
    Aiven internal ID for the private link connection.
    psc_connection_id str
    The Google Private Service Connect connection ID.
    state str
    The state of the connection.
    id String
    The provider-assigned unique ID for this managed resource.
    privatelinkConnectionId String
    Aiven internal ID for the private link connection.
    pscConnectionId String
    The Google Private Service Connect connection ID.
    state String
    The state of the connection.

    Look up Existing GcpPrivatelinkConnectionApproval Resource

    Get an existing GcpPrivatelinkConnectionApproval 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?: GcpPrivatelinkConnectionApprovalState, opts?: CustomResourceOptions): GcpPrivatelinkConnectionApproval
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            privatelink_connection_id: Optional[str] = None,
            project: Optional[str] = None,
            psc_connection_id: Optional[str] = None,
            service_name: Optional[str] = None,
            state: Optional[str] = None,
            user_ip_address: Optional[str] = None) -> GcpPrivatelinkConnectionApproval
    func GetGcpPrivatelinkConnectionApproval(ctx *Context, name string, id IDInput, state *GcpPrivatelinkConnectionApprovalState, opts ...ResourceOption) (*GcpPrivatelinkConnectionApproval, error)
    public static GcpPrivatelinkConnectionApproval Get(string name, Input<string> id, GcpPrivatelinkConnectionApprovalState? state, CustomResourceOptions? opts = null)
    public static GcpPrivatelinkConnectionApproval get(String name, Output<String> id, GcpPrivatelinkConnectionApprovalState 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:
    PrivatelinkConnectionId string
    Aiven internal ID for the private link connection.
    Project string
    The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
    PscConnectionId string
    The Google Private Service Connect connection ID.
    ServiceName string
    The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
    State string
    The state of the connection.
    UserIpAddress string
    The Private Service Connect connection user IP address.
    PrivatelinkConnectionId string
    Aiven internal ID for the private link connection.
    Project string
    The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
    PscConnectionId string
    The Google Private Service Connect connection ID.
    ServiceName string
    The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
    State string
    The state of the connection.
    UserIpAddress string
    The Private Service Connect connection user IP address.
    privatelinkConnectionId String
    Aiven internal ID for the private link connection.
    project String
    The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
    pscConnectionId String
    The Google Private Service Connect connection ID.
    serviceName String
    The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
    state String
    The state of the connection.
    userIpAddress String
    The Private Service Connect connection user IP address.
    privatelinkConnectionId string
    Aiven internal ID for the private link connection.
    project string
    The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
    pscConnectionId string
    The Google Private Service Connect connection ID.
    serviceName string
    The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
    state string
    The state of the connection.
    userIpAddress string
    The Private Service Connect connection user IP address.
    privatelink_connection_id str
    Aiven internal ID for the private link connection.
    project str
    The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
    psc_connection_id str
    The Google Private Service Connect connection ID.
    service_name str
    The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
    state str
    The state of the connection.
    user_ip_address str
    The Private Service Connect connection user IP address.
    privatelinkConnectionId String
    Aiven internal ID for the private link connection.
    project String
    The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
    pscConnectionId String
    The Google Private Service Connect connection ID.
    serviceName String
    The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
    state String
    The state of the connection.
    userIpAddress String
    The Private Service Connect connection user IP address.

    Import

    $ pulumi import aiven:index/gcpPrivatelinkConnectionApproval:GcpPrivatelinkConnectionApproval main PROJECT/SERVICE_NAME
    

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

    Package Details

    Repository
    Aiven pulumi/pulumi-aiven
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aiven Terraform Provider.
    aiven logo
    Aiven v6.17.2 published on Thursday, Jun 6, 2024 by Pulumi