Class VpcEndpointServiceAllowedPrinciple
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_principalsattribute. 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
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var current = Output.Create(Aws.GetCallerIdentity.InvokeAsync());
var allowMeToFoo = new Aws.Ec2.VpcEndpointServiceAllowedPrinciple("allowMeToFoo", new Aws.Ec2.VpcEndpointServiceAllowedPrincipleArgs
{
PrincipalArn = current.Apply(current => current.Arn),
VpcEndpointServiceId = aws_vpc_endpoint_service.Foo.Id,
});
}
}
Inherited Members
Namespace: Pulumi.Aws.Ec2
Assembly: Pulumi.Aws.dll
Syntax
public class VpcEndpointServiceAllowedPrinciple : CustomResource
Constructors
View SourceVpcEndpointServiceAllowedPrinciple(String, VpcEndpointServiceAllowedPrincipleArgs, CustomResourceOptions)
Create a VpcEndpointServiceAllowedPrinciple resource with the given unique name, arguments, and options.
Declaration
public VpcEndpointServiceAllowedPrinciple(string name, VpcEndpointServiceAllowedPrincipleArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| VpcEndpointServiceAllowedPrincipleArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourcePrincipalArn
The ARN of the principal to allow permissions.
Declaration
public Output<string> PrincipalArn { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
VpcEndpointServiceId
The ID of the VPC endpoint service to allow permission.
Declaration
public Output<string> VpcEndpointServiceId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, VpcEndpointServiceAllowedPrincipleState, CustomResourceOptions)
Get an existing VpcEndpointServiceAllowedPrinciple resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static VpcEndpointServiceAllowedPrinciple Get(string name, Input<string> id, VpcEndpointServiceAllowedPrincipleState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| VpcEndpointServiceAllowedPrincipleState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| VpcEndpointServiceAllowedPrinciple |