1. Packages
  2. Google Cloud Native
  3. API Docs
  4. datastream
  5. datastream/v1alpha1
  6. PrivateConnection

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi

google-native.datastream/v1alpha1.PrivateConnection

Explore with Pulumi AI

google-native logo

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi

    Use this method to create a private connectivity configuration. Auto-naming is currently not supported for this resource.

    Create PrivateConnection Resource

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

    Constructor syntax

    new PrivateConnection(name: string, args: PrivateConnectionArgs, opts?: CustomResourceOptions);
    @overload
    def PrivateConnection(resource_name: str,
                          args: PrivateConnectionArgs,
                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def PrivateConnection(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          display_name: Optional[str] = None,
                          private_connection_id: Optional[str] = None,
                          labels: Optional[Mapping[str, str]] = None,
                          location: Optional[str] = None,
                          project: Optional[str] = None,
                          request_id: Optional[str] = None,
                          vpc_peering_config: Optional[VpcPeeringConfigArgs] = None)
    func NewPrivateConnection(ctx *Context, name string, args PrivateConnectionArgs, opts ...ResourceOption) (*PrivateConnection, error)
    public PrivateConnection(string name, PrivateConnectionArgs args, CustomResourceOptions? opts = null)
    public PrivateConnection(String name, PrivateConnectionArgs args)
    public PrivateConnection(String name, PrivateConnectionArgs args, CustomResourceOptions options)
    
    type: google-native:datastream/v1alpha1:PrivateConnection
    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 PrivateConnectionArgs
    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 PrivateConnectionArgs
    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 PrivateConnectionArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args PrivateConnectionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args PrivateConnectionArgs
    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 exampleprivateConnectionResourceResourceFromDatastreamv1alpha1 = new GoogleNative.Datastream.V1Alpha1.PrivateConnection("exampleprivateConnectionResourceResourceFromDatastreamv1alpha1", new()
    {
        DisplayName = "string",
        PrivateConnectionId = "string",
        Labels = 
        {
            { "string", "string" },
        },
        Location = "string",
        Project = "string",
        RequestId = "string",
        VpcPeeringConfig = new GoogleNative.Datastream.V1Alpha1.Inputs.VpcPeeringConfigArgs
        {
            Subnet = "string",
            VpcName = "string",
        },
    });
    
    example, err := datastreamv1alpha1.NewPrivateConnection(ctx, "exampleprivateConnectionResourceResourceFromDatastreamv1alpha1", &datastreamv1alpha1.PrivateConnectionArgs{
    DisplayName: pulumi.String("string"),
    PrivateConnectionId: pulumi.String("string"),
    Labels: pulumi.StringMap{
    "string": pulumi.String("string"),
    },
    Location: pulumi.String("string"),
    Project: pulumi.String("string"),
    RequestId: pulumi.String("string"),
    VpcPeeringConfig: &datastream.VpcPeeringConfigArgs{
    Subnet: pulumi.String("string"),
    VpcName: pulumi.String("string"),
    },
    })
    
    var exampleprivateConnectionResourceResourceFromDatastreamv1alpha1 = new PrivateConnection("exampleprivateConnectionResourceResourceFromDatastreamv1alpha1", PrivateConnectionArgs.builder()
        .displayName("string")
        .privateConnectionId("string")
        .labels(Map.of("string", "string"))
        .location("string")
        .project("string")
        .requestId("string")
        .vpcPeeringConfig(VpcPeeringConfigArgs.builder()
            .subnet("string")
            .vpcName("string")
            .build())
        .build());
    
    exampleprivate_connection_resource_resource_from_datastreamv1alpha1 = google_native.datastream.v1alpha1.PrivateConnection("exampleprivateConnectionResourceResourceFromDatastreamv1alpha1",
        display_name="string",
        private_connection_id="string",
        labels={
            "string": "string",
        },
        location="string",
        project="string",
        request_id="string",
        vpc_peering_config=google_native.datastream.v1alpha1.VpcPeeringConfigArgs(
            subnet="string",
            vpc_name="string",
        ))
    
    const exampleprivateConnectionResourceResourceFromDatastreamv1alpha1 = new google_native.datastream.v1alpha1.PrivateConnection("exampleprivateConnectionResourceResourceFromDatastreamv1alpha1", {
        displayName: "string",
        privateConnectionId: "string",
        labels: {
            string: "string",
        },
        location: "string",
        project: "string",
        requestId: "string",
        vpcPeeringConfig: {
            subnet: "string",
            vpcName: "string",
        },
    });
    
    type: google-native:datastream/v1alpha1:PrivateConnection
    properties:
        displayName: string
        labels:
            string: string
        location: string
        privateConnectionId: string
        project: string
        requestId: string
        vpcPeeringConfig:
            subnet: string
            vpcName: string
    

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

    DisplayName string
    Display name.
    PrivateConnectionId string
    Required. The private connectivity identifier.
    Labels Dictionary<string, string>
    Labels.
    Location string
    Project string
    RequestId string
    Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
    VpcPeeringConfig Pulumi.GoogleNative.Datastream.V1Alpha1.Inputs.VpcPeeringConfig
    VPC Peering Config
    DisplayName string
    Display name.
    PrivateConnectionId string
    Required. The private connectivity identifier.
    Labels map[string]string
    Labels.
    Location string
    Project string
    RequestId string
    Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
    VpcPeeringConfig VpcPeeringConfigArgs
    VPC Peering Config
    displayName String
    Display name.
    privateConnectionId String
    Required. The private connectivity identifier.
    labels Map<String,String>
    Labels.
    location String
    project String
    requestId String
    Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
    vpcPeeringConfig VpcPeeringConfig
    VPC Peering Config
    displayName string
    Display name.
    privateConnectionId string
    Required. The private connectivity identifier.
    labels {[key: string]: string}
    Labels.
    location string
    project string
    requestId string
    Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
    vpcPeeringConfig VpcPeeringConfig
    VPC Peering Config
    display_name str
    Display name.
    private_connection_id str
    Required. The private connectivity identifier.
    labels Mapping[str, str]
    Labels.
    location str
    project str
    request_id str
    Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
    vpc_peering_config VpcPeeringConfigArgs
    VPC Peering Config
    displayName String
    Display name.
    privateConnectionId String
    Required. The private connectivity identifier.
    labels Map<String>
    Labels.
    location String
    project String
    requestId String
    Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
    vpcPeeringConfig Property Map
    VPC Peering Config

    Outputs

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

    CreateTime string
    The create time of the resource.
    Error Pulumi.GoogleNative.Datastream.V1Alpha1.Outputs.ErrorResponse
    In case of error, the details of the error in a user-friendly format.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The resource's name.
    State string
    The state of the Private Connection.
    UpdateTime string
    The update time of the resource.
    CreateTime string
    The create time of the resource.
    Error ErrorResponse
    In case of error, the details of the error in a user-friendly format.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The resource's name.
    State string
    The state of the Private Connection.
    UpdateTime string
    The update time of the resource.
    createTime String
    The create time of the resource.
    error ErrorResponse
    In case of error, the details of the error in a user-friendly format.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The resource's name.
    state String
    The state of the Private Connection.
    updateTime String
    The update time of the resource.
    createTime string
    The create time of the resource.
    error ErrorResponse
    In case of error, the details of the error in a user-friendly format.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    The resource's name.
    state string
    The state of the Private Connection.
    updateTime string
    The update time of the resource.
    create_time str
    The create time of the resource.
    error ErrorResponse
    In case of error, the details of the error in a user-friendly format.
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    The resource's name.
    state str
    The state of the Private Connection.
    update_time str
    The update time of the resource.
    createTime String
    The create time of the resource.
    error Property Map
    In case of error, the details of the error in a user-friendly format.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The resource's name.
    state String
    The state of the Private Connection.
    updateTime String
    The update time of the resource.

    Supporting Types

    ErrorResponse, ErrorResponseArgs

    Details Dictionary<string, string>
    Additional information about the error.
    ErrorTime string
    The time when the error occurred.
    ErrorUuid string
    A unique identifier for this specific error, allowing it to be traced throughout the system in logs and API responses.
    Message string
    A message containing more information about the error that occurred.
    Reason string
    A title that explains the reason for the error.
    Details map[string]string
    Additional information about the error.
    ErrorTime string
    The time when the error occurred.
    ErrorUuid string
    A unique identifier for this specific error, allowing it to be traced throughout the system in logs and API responses.
    Message string
    A message containing more information about the error that occurred.
    Reason string
    A title that explains the reason for the error.
    details Map<String,String>
    Additional information about the error.
    errorTime String
    The time when the error occurred.
    errorUuid String
    A unique identifier for this specific error, allowing it to be traced throughout the system in logs and API responses.
    message String
    A message containing more information about the error that occurred.
    reason String
    A title that explains the reason for the error.
    details {[key: string]: string}
    Additional information about the error.
    errorTime string
    The time when the error occurred.
    errorUuid string
    A unique identifier for this specific error, allowing it to be traced throughout the system in logs and API responses.
    message string
    A message containing more information about the error that occurred.
    reason string
    A title that explains the reason for the error.
    details Mapping[str, str]
    Additional information about the error.
    error_time str
    The time when the error occurred.
    error_uuid str
    A unique identifier for this specific error, allowing it to be traced throughout the system in logs and API responses.
    message str
    A message containing more information about the error that occurred.
    reason str
    A title that explains the reason for the error.
    details Map<String>
    Additional information about the error.
    errorTime String
    The time when the error occurred.
    errorUuid String
    A unique identifier for this specific error, allowing it to be traced throughout the system in logs and API responses.
    message String
    A message containing more information about the error that occurred.
    reason String
    A title that explains the reason for the error.

    VpcPeeringConfig, VpcPeeringConfigArgs

    Subnet string
    A free subnet for peering. (CIDR of /29)
    VpcName string
    fully qualified name of the VPC Datastream will peer to.
    Subnet string
    A free subnet for peering. (CIDR of /29)
    VpcName string
    fully qualified name of the VPC Datastream will peer to.
    subnet String
    A free subnet for peering. (CIDR of /29)
    vpcName String
    fully qualified name of the VPC Datastream will peer to.
    subnet string
    A free subnet for peering. (CIDR of /29)
    vpcName string
    fully qualified name of the VPC Datastream will peer to.
    subnet str
    A free subnet for peering. (CIDR of /29)
    vpc_name str
    fully qualified name of the VPC Datastream will peer to.
    subnet String
    A free subnet for peering. (CIDR of /29)
    vpcName String
    fully qualified name of the VPC Datastream will peer to.

    VpcPeeringConfigResponse, VpcPeeringConfigResponseArgs

    Subnet string
    A free subnet for peering. (CIDR of /29)
    VpcName string
    fully qualified name of the VPC Datastream will peer to.
    Subnet string
    A free subnet for peering. (CIDR of /29)
    VpcName string
    fully qualified name of the VPC Datastream will peer to.
    subnet String
    A free subnet for peering. (CIDR of /29)
    vpcName String
    fully qualified name of the VPC Datastream will peer to.
    subnet string
    A free subnet for peering. (CIDR of /29)
    vpcName string
    fully qualified name of the VPC Datastream will peer to.
    subnet str
    A free subnet for peering. (CIDR of /29)
    vpc_name str
    fully qualified name of the VPC Datastream will peer to.
    subnet String
    A free subnet for peering. (CIDR of /29)
    vpcName String
    fully qualified name of the VPC Datastream will peer to.

    Package Details

    Repository
    Google Cloud Native pulumi/pulumi-google-native
    License
    Apache-2.0
    google-native logo

    Google Cloud Native is in preview. Google Cloud Classic is fully supported.

    Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi