aiven.AzurePrivatelink

The Azure Privatelink resource allows the creation and management of Aiven Azure Privatelink for a services.

Example Usage

using System.Collections.Generic;
using Pulumi;
using Aiven = Pulumi.Aiven;

return await Deployment.RunAsync(() => 
{
    var foo = new Aiven.AzurePrivatelink("foo", new()
    {
        Project = data.Aiven_project.Foo.Project,
        ServiceName = aiven_kafka.Bar.Service_name,
        UserSubscriptionIds = new[]
        {
            "xxxxxx-xxxx-xxxx-xxxx-xxxxxxxx",
        },
    });

});
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.NewAzurePrivatelink(ctx, "foo", &aiven.AzurePrivatelinkArgs{
			Project:     pulumi.Any(data.Aiven_project.Foo.Project),
			ServiceName: pulumi.Any(aiven_kafka.Bar.Service_name),
			UserSubscriptionIds: pulumi.StringArray{
				pulumi.String("xxxxxx-xxxx-xxxx-xxxx-xxxxxxxx"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aiven.AzurePrivatelink;
import com.pulumi.aiven.AzurePrivatelinkArgs;
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 foo = new AzurePrivatelink("foo", AzurePrivatelinkArgs.builder()        
            .project(data.aiven_project().foo().project())
            .serviceName(aiven_kafka.bar().service_name())
            .userSubscriptionIds("xxxxxx-xxxx-xxxx-xxxx-xxxxxxxx")
            .build());

    }
}
import pulumi
import pulumi_aiven as aiven

foo = aiven.AzurePrivatelink("foo",
    project=data["aiven_project"]["foo"]["project"],
    service_name=aiven_kafka["bar"]["service_name"],
    user_subscription_ids=["xxxxxx-xxxx-xxxx-xxxx-xxxxxxxx"])
import * as pulumi from "@pulumi/pulumi";
import * as aiven from "@pulumi/aiven";

const foo = new aiven.AzurePrivatelink("foo", {
    project: data.aiven_project.foo.project,
    serviceName: aiven_kafka.bar.service_name,
    userSubscriptionIds: ["xxxxxx-xxxx-xxxx-xxxx-xxxxxxxx"],
});
resources:
  foo:
    type: aiven:AzurePrivatelink
    properties:
      project: ${data.aiven_project.foo.project}
      serviceName: ${aiven_kafka.bar.service_name}
      userSubscriptionIds:
        - xxxxxx-xxxx-xxxx-xxxx-xxxxxxxx

Create AzurePrivatelink Resource

new AzurePrivatelink(name: string, args: AzurePrivatelinkArgs, opts?: CustomResourceOptions);
@overload
def AzurePrivatelink(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     project: Optional[str] = None,
                     service_name: Optional[str] = None,
                     user_subscription_ids: Optional[Sequence[str]] = None)
@overload
def AzurePrivatelink(resource_name: str,
                     args: AzurePrivatelinkArgs,
                     opts: Optional[ResourceOptions] = None)
func NewAzurePrivatelink(ctx *Context, name string, args AzurePrivatelinkArgs, opts ...ResourceOption) (*AzurePrivatelink, error)
public AzurePrivatelink(string name, AzurePrivatelinkArgs args, CustomResourceOptions? opts = null)
public AzurePrivatelink(String name, AzurePrivatelinkArgs args)
public AzurePrivatelink(String name, AzurePrivatelinkArgs args, CustomResourceOptions options)
type: aiven:AzurePrivatelink
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args AzurePrivatelinkArgs
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 AzurePrivatelinkArgs
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 AzurePrivatelinkArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args AzurePrivatelinkArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args AzurePrivatelinkArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

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

Project string

Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.

ServiceName string

Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.

UserSubscriptionIds List<string>

A List of allowed Subscription IDs. Maximum length: 16.

Project string

Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.

ServiceName string

Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.

UserSubscriptionIds []string

A List of allowed Subscription IDs. Maximum length: 16.

project String

Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.

serviceName String

Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.

userSubscriptionIds List<String>

A List of allowed Subscription IDs. Maximum length: 16.

project string

Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.

serviceName string

Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.

userSubscriptionIds string[]

A List of allowed Subscription IDs. Maximum length: 16.

project str

Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.

service_name str

Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.

user_subscription_ids Sequence[str]

A List of allowed Subscription IDs. Maximum length: 16.

project String

Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.

serviceName String

Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.

userSubscriptionIds List<String>

A List of allowed Subscription IDs. Maximum length: 16.

Outputs

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

AzureServiceAlias string

Azure Privatelink service alias

AzureServiceId string

Azure Privatelink service ID

Id string

The provider-assigned unique ID for this managed resource.

Message string

Printable result of the Azure Privatelink request

State string

Privatelink resource state

AzureServiceAlias string

Azure Privatelink service alias

AzureServiceId string

Azure Privatelink service ID

Id string

The provider-assigned unique ID for this managed resource.

Message string

Printable result of the Azure Privatelink request

State string

Privatelink resource state

azureServiceAlias String

Azure Privatelink service alias

azureServiceId String

Azure Privatelink service ID

id String

The provider-assigned unique ID for this managed resource.

message String

Printable result of the Azure Privatelink request

state String

Privatelink resource state

azureServiceAlias string

Azure Privatelink service alias

azureServiceId string

Azure Privatelink service ID

id string

The provider-assigned unique ID for this managed resource.

message string

Printable result of the Azure Privatelink request

state string

Privatelink resource state

azure_service_alias str

Azure Privatelink service alias

azure_service_id str

Azure Privatelink service ID

id str

The provider-assigned unique ID for this managed resource.

message str

Printable result of the Azure Privatelink request

state str

Privatelink resource state

azureServiceAlias String

Azure Privatelink service alias

azureServiceId String

Azure Privatelink service ID

id String

The provider-assigned unique ID for this managed resource.

message String

Printable result of the Azure Privatelink request

state String

Privatelink resource state

Look up Existing AzurePrivatelink Resource

Get an existing AzurePrivatelink 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?: AzurePrivatelinkState, opts?: CustomResourceOptions): AzurePrivatelink
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        azure_service_alias: Optional[str] = None,
        azure_service_id: Optional[str] = None,
        message: Optional[str] = None,
        project: Optional[str] = None,
        service_name: Optional[str] = None,
        state: Optional[str] = None,
        user_subscription_ids: Optional[Sequence[str]] = None) -> AzurePrivatelink
func GetAzurePrivatelink(ctx *Context, name string, id IDInput, state *AzurePrivatelinkState, opts ...ResourceOption) (*AzurePrivatelink, error)
public static AzurePrivatelink Get(string name, Input<string> id, AzurePrivatelinkState? state, CustomResourceOptions? opts = null)
public static AzurePrivatelink get(String name, Output<String> id, AzurePrivatelinkState 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:
AzureServiceAlias string

Azure Privatelink service alias

AzureServiceId string

Azure Privatelink service ID

Message string

Printable result of the Azure Privatelink request

Project string

Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.

ServiceName string

Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.

State string

Privatelink resource state

UserSubscriptionIds List<string>

A List of allowed Subscription IDs. Maximum length: 16.

AzureServiceAlias string

Azure Privatelink service alias

AzureServiceId string

Azure Privatelink service ID

Message string

Printable result of the Azure Privatelink request

Project string

Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.

ServiceName string

Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.

State string

Privatelink resource state

UserSubscriptionIds []string

A List of allowed Subscription IDs. Maximum length: 16.

azureServiceAlias String

Azure Privatelink service alias

azureServiceId String

Azure Privatelink service ID

message String

Printable result of the Azure Privatelink request

project String

Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.

serviceName String

Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.

state String

Privatelink resource state

userSubscriptionIds List<String>

A List of allowed Subscription IDs. Maximum length: 16.

azureServiceAlias string

Azure Privatelink service alias

azureServiceId string

Azure Privatelink service ID

message string

Printable result of the Azure Privatelink request

project string

Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.

serviceName string

Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.

state string

Privatelink resource state

userSubscriptionIds string[]

A List of allowed Subscription IDs. Maximum length: 16.

azure_service_alias str

Azure Privatelink service alias

azure_service_id str

Azure Privatelink service ID

message str

Printable result of the Azure Privatelink request

project str

Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.

service_name str

Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.

state str

Privatelink resource state

user_subscription_ids Sequence[str]

A List of allowed Subscription IDs. Maximum length: 16.

azureServiceAlias String

Azure Privatelink service alias

azureServiceId String

Azure Privatelink service ID

message String

Printable result of the Azure Privatelink request

project String

Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.

serviceName String

Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.

state String

Privatelink resource state

userSubscriptionIds List<String>

A List of allowed Subscription IDs. Maximum length: 16.

Import

 $ pulumi import aiven:index/azurePrivatelink:AzurePrivatelink foo project/service_name

Package Details

Repository
Aiven pulumi/pulumi-aiven
License
Apache-2.0
Notes

This Pulumi package is based on the aiven Terraform Provider.