getAwsPrivatelink

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

Example Usage

using Pulumi;
using Aiven = Pulumi.Aiven;

class MyStack : Stack
{
    public MyStack()
    {
        var foo = Output.Create(Aiven.GetAwsPrivatelink.InvokeAsync(new Aiven.GetAwsPrivatelinkArgs
        {
            Project = data.Aiven_project.Foo.Project,
            ServiceName = aiven_kafka.Bar.Service_name,
        }));
    }

}
package main

import (
	"github.com/pulumi/pulumi-aiven/sdk/v4/go/aiven"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := aiven.LookupAwsPrivatelink(ctx, &aiven.LookupAwsPrivatelinkArgs{
			Project:     data.Aiven_project.Foo.Project,
			ServiceName: aiven_kafka.Bar.Service_name,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
import pulumi
import pulumi_aiven as aiven

foo = aiven.get_aws_privatelink(project=data["aiven_project"]["foo"]["project"],
    service_name=aiven_kafka["bar"]["service_name"])
import * as pulumi from "@pulumi/pulumi";
import * as aiven from "@pulumi/aiven";

const foo = aiven.getAwsPrivatelink({
    project: data.aiven_project.foo.project,
    serviceName: aiven_kafka.bar.service_name,
});

Using getAwsPrivatelink

function getAwsPrivatelink(args: GetAwsPrivatelinkArgs, opts?: InvokeOptions): Promise<GetAwsPrivatelinkResult>
def get_aws_privatelink(aws_service_id: Optional[str] = None,
                        aws_service_name: Optional[str] = None,
                        principals: Optional[Sequence[str]] = None,
                        project: Optional[str] = None,
                        service_name: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> GetAwsPrivatelinkResult
func LookupAwsPrivatelink(ctx *Context, args *LookupAwsPrivatelinkArgs, opts ...InvokeOption) (*LookupAwsPrivatelinkResult, error)

Note: This function is named LookupAwsPrivatelink in the Go SDK.

public static class GetAwsPrivatelink {
    public static Task<GetAwsPrivatelinkResult> InvokeAsync(GetAwsPrivatelinkArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Project string
identifies the project the service belongs to. To set up proper dependency between the project and the service, refer to the project as shown in the above example. Project cannot be changed later without destroying and re-creating the service.
ServiceName string
specifies the actual name of the service. The name cannot be changed later without destroying and re-creating the service so name should be picked based on intended service usage rather than current attributes.
AwsServiceId string
AWS service ID.
AwsServiceName string
AWS service name.
Principals List<string>
list of allowed principals
Project string
identifies the project the service belongs to. To set up proper dependency between the project and the service, refer to the project as shown in the above example. Project cannot be changed later without destroying and re-creating the service.
ServiceName string
specifies the actual name of the service. The name cannot be changed later without destroying and re-creating the service so name should be picked based on intended service usage rather than current attributes.
AwsServiceId string
AWS service ID.
AwsServiceName string
AWS service name.
Principals []string
list of allowed principals
project string
identifies the project the service belongs to. To set up proper dependency between the project and the service, refer to the project as shown in the above example. Project cannot be changed later without destroying and re-creating the service.
serviceName string
specifies the actual name of the service. The name cannot be changed later without destroying and re-creating the service so name should be picked based on intended service usage rather than current attributes.
awsServiceId string
AWS service ID.
awsServiceName string
AWS service name.
principals string[]
list of allowed principals
project str
identifies the project the service belongs to. To set up proper dependency between the project and the service, refer to the project as shown in the above example. Project cannot be changed later without destroying and re-creating the service.
service_name str
specifies the actual name of the service. The name cannot be changed later without destroying and re-creating the service so name should be picked based on intended service usage rather than current attributes.
aws_service_id str
AWS service ID.
aws_service_name str
AWS service name.
principals Sequence[str]
list of allowed principals

getAwsPrivatelink Result

The following output properties are available:

AwsServiceId string
AWS service ID.
AwsServiceName string
AWS service name.
Id string
The provider-assigned unique ID for this managed resource.
Project string
ServiceName string
Principals List<string>
list of allowed principals
AwsServiceId string
AWS service ID.
AwsServiceName string
AWS service name.
Id string
The provider-assigned unique ID for this managed resource.
Project string
ServiceName string
Principals []string
list of allowed principals
awsServiceId string
AWS service ID.
awsServiceName string
AWS service name.
id string
The provider-assigned unique ID for this managed resource.
project string
serviceName string
principals string[]
list of allowed principals
aws_service_id str
AWS service ID.
aws_service_name str
AWS service name.
id str
The provider-assigned unique ID for this managed resource.
project str
service_name str
principals Sequence[str]
list of allowed principals

Package Details

Repository
https://github.com/pulumi/pulumi-aiven
License
Apache-2.0
Notes
This Pulumi package is based on the aiven Terraform Provider.