AwsPrivatelink

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 = new Aiven.AwsPrivatelink("foo", new Aiven.AwsPrivatelinkArgs
        {
            Project = data.Aiven_project.Foo.Project,
            ServiceName = aiven_kafka.Bar.Service_name,
            Principals = 
            {
                "arn:aws:iam::012345678901:user/mwf",
            },
        });
    }

}
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.NewAwsPrivatelink(ctx, "foo", &aiven.AwsPrivatelinkArgs{
			Project:     pulumi.Any(data.Aiven_project.Foo.Project),
			ServiceName: pulumi.Any(aiven_kafka.Bar.Service_name),
			Principals: pulumi.StringArray{
				pulumi.String("arn:aws:iam::012345678901:user/mwf"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
import pulumi
import pulumi_aiven as aiven

foo = aiven.AwsPrivatelink("foo",
    project=data["aiven_project"]["foo"]["project"],
    service_name=aiven_kafka["bar"]["service_name"],
    principals=["arn:aws:iam::012345678901:user/mwf"])
import * as pulumi from "@pulumi/pulumi";
import * as aiven from "@pulumi/aiven";

const foo = new aiven.AwsPrivatelink("foo", {
    project: data.aiven_project.foo.project,
    serviceName: aiven_kafka.bar.service_name,
    principals: ["arn:aws:iam::012345678901:user/mwf"],
});

Create a AwsPrivatelink Resource

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

AwsPrivatelink Resource Properties

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

Inputs

The AwsPrivatelink resource accepts the following input properties:

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.
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.
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.
principals Sequence[str]
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.

Outputs

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

AwsServiceId string
AWS service ID.
AwsServiceName string
AWS service name.
Id string
The provider-assigned unique ID for this managed resource.
AwsServiceId string
AWS service ID.
AwsServiceName string
AWS service name.
Id string
The provider-assigned unique ID for this managed resource.
awsServiceId string
AWS service ID.
awsServiceName string
AWS service name.
id string
The provider-assigned unique ID for this managed resource.
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.

Look up an Existing AwsPrivatelink Resource

Get an existing AwsPrivatelink 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?: AwsPrivatelinkState, opts?: CustomResourceOptions): AwsPrivatelink
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        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) -> AwsPrivatelink
func GetAwsPrivatelink(ctx *Context, name string, id IDInput, state *AwsPrivatelinkState, opts ...ResourceOption) (*AwsPrivatelink, error)
public static AwsPrivatelink Get(string name, Input<string> id, AwsPrivatelinkState? state, CustomResourceOptions? opts = null)
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.

The following state arguments are supported:

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 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.
aws_service_id str
AWS service ID.
aws_service_name str
AWS service name.
principals Sequence[str]
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.

Package Details

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