1. Packages
  2. AWS Cloud Control
  3. API Docs
  4. ec2
  5. getVpcBlockPublicAccessExclusion

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.26.0 published on Wednesday, Mar 12, 2025 by Pulumi

aws-native.ec2.getVpcBlockPublicAccessExclusion

Explore with Pulumi AI

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.26.0 published on Wednesday, Mar 12, 2025 by Pulumi

Resource Type definition for AWS::EC2::VPCBlockPublicAccessExclusion.

Using getVpcBlockPublicAccessExclusion

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getVpcBlockPublicAccessExclusion(args: GetVpcBlockPublicAccessExclusionArgs, opts?: InvokeOptions): Promise<GetVpcBlockPublicAccessExclusionResult>
function getVpcBlockPublicAccessExclusionOutput(args: GetVpcBlockPublicAccessExclusionOutputArgs, opts?: InvokeOptions): Output<GetVpcBlockPublicAccessExclusionResult>
Copy
def get_vpc_block_public_access_exclusion(exclusion_id: Optional[str] = None,
                                          opts: Optional[InvokeOptions] = None) -> GetVpcBlockPublicAccessExclusionResult
def get_vpc_block_public_access_exclusion_output(exclusion_id: Optional[pulumi.Input[str]] = None,
                                          opts: Optional[InvokeOptions] = None) -> Output[GetVpcBlockPublicAccessExclusionResult]
Copy
func LookupVpcBlockPublicAccessExclusion(ctx *Context, args *LookupVpcBlockPublicAccessExclusionArgs, opts ...InvokeOption) (*LookupVpcBlockPublicAccessExclusionResult, error)
func LookupVpcBlockPublicAccessExclusionOutput(ctx *Context, args *LookupVpcBlockPublicAccessExclusionOutputArgs, opts ...InvokeOption) LookupVpcBlockPublicAccessExclusionResultOutput
Copy

> Note: This function is named LookupVpcBlockPublicAccessExclusion in the Go SDK.

public static class GetVpcBlockPublicAccessExclusion 
{
    public static Task<GetVpcBlockPublicAccessExclusionResult> InvokeAsync(GetVpcBlockPublicAccessExclusionArgs args, InvokeOptions? opts = null)
    public static Output<GetVpcBlockPublicAccessExclusionResult> Invoke(GetVpcBlockPublicAccessExclusionInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetVpcBlockPublicAccessExclusionResult> getVpcBlockPublicAccessExclusion(GetVpcBlockPublicAccessExclusionArgs args, InvokeOptions options)
public static Output<GetVpcBlockPublicAccessExclusionResult> getVpcBlockPublicAccessExclusion(GetVpcBlockPublicAccessExclusionArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: aws-native:ec2:getVpcBlockPublicAccessExclusion
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

ExclusionId This property is required. string
The ID of the exclusion
ExclusionId This property is required. string
The ID of the exclusion
exclusionId This property is required. String
The ID of the exclusion
exclusionId This property is required. string
The ID of the exclusion
exclusion_id This property is required. str
The ID of the exclusion
exclusionId This property is required. String
The ID of the exclusion

getVpcBlockPublicAccessExclusion Result

The following output properties are available:

ExclusionId string
The ID of the exclusion
InternetGatewayExclusionMode Pulumi.AwsNative.Ec2.VpcBlockPublicAccessExclusionInternetGatewayExclusionMode
The desired Block Public Access Exclusion Mode for a specific VPC/Subnet.
Tags List<Pulumi.AwsNative.Outputs.Tag>
An array of key-value pairs to apply to this resource.
ExclusionId string
The ID of the exclusion
InternetGatewayExclusionMode VpcBlockPublicAccessExclusionInternetGatewayExclusionMode
The desired Block Public Access Exclusion Mode for a specific VPC/Subnet.
Tags Tag
An array of key-value pairs to apply to this resource.
exclusionId String
The ID of the exclusion
internetGatewayExclusionMode VpcBlockPublicAccessExclusionInternetGatewayExclusionMode
The desired Block Public Access Exclusion Mode for a specific VPC/Subnet.
tags List<Tag>
An array of key-value pairs to apply to this resource.
exclusionId string
The ID of the exclusion
internetGatewayExclusionMode VpcBlockPublicAccessExclusionInternetGatewayExclusionMode
The desired Block Public Access Exclusion Mode for a specific VPC/Subnet.
tags Tag[]
An array of key-value pairs to apply to this resource.
exclusion_id str
The ID of the exclusion
internet_gateway_exclusion_mode VpcBlockPublicAccessExclusionInternetGatewayExclusionMode
The desired Block Public Access Exclusion Mode for a specific VPC/Subnet.
tags Sequence[root_Tag]
An array of key-value pairs to apply to this resource.
exclusionId String
The ID of the exclusion
internetGatewayExclusionMode "allow-bidirectional" | "allow-egress"
The desired Block Public Access Exclusion Mode for a specific VPC/Subnet.
tags List<Property Map>
An array of key-value pairs to apply to this resource.

Supporting Types

Tag

Key This property is required. string
The key name of the tag
Value This property is required. string
The value of the tag
Key This property is required. string
The key name of the tag
Value This property is required. string
The value of the tag
key This property is required. String
The key name of the tag
value This property is required. String
The value of the tag
key This property is required. string
The key name of the tag
value This property is required. string
The value of the tag
key This property is required. str
The key name of the tag
value This property is required. str
The value of the tag
key This property is required. String
The key name of the tag
value This property is required. String
The value of the tag

VpcBlockPublicAccessExclusionInternetGatewayExclusionMode

Package Details

Repository
AWS Native pulumi/pulumi-aws-native
License
Apache-2.0

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.26.0 published on Wednesday, Mar 12, 2025 by Pulumi