All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.aws.redshiftserverless.kotlin.EndpointAccessArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.redshiftserverless.kotlin

import com.pulumi.aws.redshiftserverless.EndpointAccessArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Creates a new Amazon Redshift Serverless Endpoint Access.
 * ## Example Usage
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as aws from "@pulumi/aws";
 * const example = new aws.redshiftserverless.EndpointAccess("example", {
 *     endpointName: "example",
 *     workgroupName: "example",
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_aws as aws
 * example = aws.redshiftserverless.EndpointAccess("example",
 *     endpoint_name="example",
 *     workgroup_name="example")
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Aws = Pulumi.Aws;
 * return await Deployment.RunAsync(() =>
 * {
 *     var example = new Aws.RedshiftServerless.EndpointAccess("example", new()
 *     {
 *         EndpointName = "example",
 *         WorkgroupName = "example",
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/redshiftserverless"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		_, err := redshiftserverless.NewEndpointAccess(ctx, "example", &redshiftserverless.EndpointAccessArgs{
 * 			EndpointName:  pulumi.String("example"),
 * 			WorkgroupName: pulumi.String("example"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		return nil
 * 	})
 * }
 * ```
 * ```java
 * package generated_program;
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.aws.redshiftserverless.EndpointAccess;
 * import com.pulumi.aws.redshiftserverless.EndpointAccessArgs;
 * 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 example = new EndpointAccess("example", EndpointAccessArgs.builder()
 *             .endpointName("example")
 *             .workgroupName("example")
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   example:
 *     type: aws:redshiftserverless:EndpointAccess
 *     properties:
 *       endpointName: example
 *       workgroupName: example
 * ```
 * 
 * ## Import
 * Using `pulumi import`, import Redshift Serverless Endpoint Access using the `endpoint_name`. For example:
 * ```sh
 * $ pulumi import aws:redshiftserverless/endpointAccess:EndpointAccess example example
 * ```
 * @property endpointName The name of the endpoint.
 * @property ownerAccount The owner Amazon Web Services account for the Amazon Redshift Serverless workgroup.
 * @property subnetIds An array of VPC subnet IDs to associate with the endpoint.
 * @property vpcSecurityGroupIds An array of security group IDs to associate with the workgroup.
 * @property workgroupName The name of the workgroup.
 */
public data class EndpointAccessArgs(
    public val endpointName: Output? = null,
    public val ownerAccount: Output? = null,
    public val subnetIds: Output>? = null,
    public val vpcSecurityGroupIds: Output>? = null,
    public val workgroupName: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.redshiftserverless.EndpointAccessArgs =
        com.pulumi.aws.redshiftserverless.EndpointAccessArgs.builder()
            .endpointName(endpointName?.applyValue({ args0 -> args0 }))
            .ownerAccount(ownerAccount?.applyValue({ args0 -> args0 }))
            .subnetIds(subnetIds?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .vpcSecurityGroupIds(vpcSecurityGroupIds?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .workgroupName(workgroupName?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [EndpointAccessArgs].
 */
@PulumiTagMarker
public class EndpointAccessArgsBuilder internal constructor() {
    private var endpointName: Output? = null

    private var ownerAccount: Output? = null

    private var subnetIds: Output>? = null

    private var vpcSecurityGroupIds: Output>? = null

    private var workgroupName: Output? = null

    /**
     * @param value The name of the endpoint.
     */
    @JvmName("iyvmvjarpdbohpcd")
    public suspend fun endpointName(`value`: Output) {
        this.endpointName = value
    }

    /**
     * @param value The owner Amazon Web Services account for the Amazon Redshift Serverless workgroup.
     */
    @JvmName("bkivqvsyrdiaspse")
    public suspend fun ownerAccount(`value`: Output) {
        this.ownerAccount = value
    }

    /**
     * @param value An array of VPC subnet IDs to associate with the endpoint.
     */
    @JvmName("djarbanriobfwqwr")
    public suspend fun subnetIds(`value`: Output>) {
        this.subnetIds = value
    }

    @JvmName("jpbjkemnhgtxxnai")
    public suspend fun subnetIds(vararg values: Output) {
        this.subnetIds = Output.all(values.asList())
    }

    /**
     * @param values An array of VPC subnet IDs to associate with the endpoint.
     */
    @JvmName("rfmcxctmrrnnkyaw")
    public suspend fun subnetIds(values: List>) {
        this.subnetIds = Output.all(values)
    }

    /**
     * @param value An array of security group IDs to associate with the workgroup.
     */
    @JvmName("ahaswgjpatedtxkh")
    public suspend fun vpcSecurityGroupIds(`value`: Output>) {
        this.vpcSecurityGroupIds = value
    }

    @JvmName("rugdmmxklhakqyip")
    public suspend fun vpcSecurityGroupIds(vararg values: Output) {
        this.vpcSecurityGroupIds = Output.all(values.asList())
    }

    /**
     * @param values An array of security group IDs to associate with the workgroup.
     */
    @JvmName("uuptidlfmdemiqey")
    public suspend fun vpcSecurityGroupIds(values: List>) {
        this.vpcSecurityGroupIds = Output.all(values)
    }

    /**
     * @param value The name of the workgroup.
     */
    @JvmName("eboqcisklamnyujw")
    public suspend fun workgroupName(`value`: Output) {
        this.workgroupName = value
    }

    /**
     * @param value The name of the endpoint.
     */
    @JvmName("psfnvptyhcqqbmdd")
    public suspend fun endpointName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.endpointName = mapped
    }

    /**
     * @param value The owner Amazon Web Services account for the Amazon Redshift Serverless workgroup.
     */
    @JvmName("dnlnojimspcpvkuu")
    public suspend fun ownerAccount(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ownerAccount = mapped
    }

    /**
     * @param value An array of VPC subnet IDs to associate with the endpoint.
     */
    @JvmName("rvfwcepmjldlxell")
    public suspend fun subnetIds(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.subnetIds = mapped
    }

    /**
     * @param values An array of VPC subnet IDs to associate with the endpoint.
     */
    @JvmName("pqjmdiaipwlqbqjk")
    public suspend fun subnetIds(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.subnetIds = mapped
    }

    /**
     * @param value An array of security group IDs to associate with the workgroup.
     */
    @JvmName("elslgflrwrqwdakr")
    public suspend fun vpcSecurityGroupIds(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.vpcSecurityGroupIds = mapped
    }

    /**
     * @param values An array of security group IDs to associate with the workgroup.
     */
    @JvmName("vhjprdhdehypedva")
    public suspend fun vpcSecurityGroupIds(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.vpcSecurityGroupIds = mapped
    }

    /**
     * @param value The name of the workgroup.
     */
    @JvmName("qqndfsepjrpirawr")
    public suspend fun workgroupName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.workgroupName = mapped
    }

    internal fun build(): EndpointAccessArgs = EndpointAccessArgs(
        endpointName = endpointName,
        ownerAccount = ownerAccount,
        subnetIds = subnetIds,
        vpcSecurityGroupIds = vpcSecurityGroupIds,
        workgroupName = workgroupName,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy