VpcEndpointServiceAllowedPrincipleArgs

data class VpcEndpointServiceAllowedPrincipleArgs(val principalArn: Output<String>? = null, val vpcEndpointServiceId: Output<String>? = null) : ConvertibleToJava<VpcEndpointServiceAllowedPrincipleArgs>

Provides a resource to allow a principal to discover a VPC endpoint service.

NOTE on VPC Endpoint Services and VPC Endpoint Service Allowed Principals: This provider provides both a standalone VPC Endpoint Service Allowed Principal resource and a VPC Endpoint Service resource with an allowed_principals attribute. Do not use the same principal ARN in both a VPC Endpoint Service resource and a VPC Endpoint Service Allowed Principal resource. Doing so will cause a conflict and will overwrite the association.

Example Usage

Basic usage:

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.AwsFunctions;
import com.pulumi.aws.ec2.VpcEndpointServiceAllowedPrinciple;
import com.pulumi.aws.ec2.VpcEndpointServiceAllowedPrincipleArgs;
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) {
final var current = AwsFunctions.getCallerIdentity();
var allowMeToFoo = new VpcEndpointServiceAllowedPrinciple("allowMeToFoo", VpcEndpointServiceAllowedPrincipleArgs.builder()
.vpcEndpointServiceId(aws_vpc_endpoint_service.foo().id())
.principalArn(current.applyValue(getCallerIdentityResult -> getCallerIdentityResult.arn()))
.build());
}
}

Constructors

Link copied to clipboard
constructor(principalArn: Output<String>? = null, vpcEndpointServiceId: Output<String>? = null)

Properties

Link copied to clipboard
val principalArn: Output<String>? = null

The ARN of the principal to allow permissions.

Link copied to clipboard
val vpcEndpointServiceId: Output<String>? = null

The ID of the VPC endpoint service to allow permission.

Functions

Link copied to clipboard
open override fun toJava(): VpcEndpointServiceAllowedPrincipleArgs