We recommend new projects start with resources from the AWS provider.
AWS Cloud Control v1.37.0 published on Wednesday, Oct 15, 2025 by Pulumi
aws-native.ec2.getVpcBlockPublicAccessOptions
We recommend new projects start with resources from the AWS provider.
AWS Cloud Control v1.37.0 published on Wednesday, Oct 15, 2025 by Pulumi
Resource Type definition for AWS::EC2::VPCBlockPublicAccessOptions
Using getVpcBlockPublicAccessOptions
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 getVpcBlockPublicAccessOptions(args: GetVpcBlockPublicAccessOptionsArgs, opts?: InvokeOptions): Promise<GetVpcBlockPublicAccessOptionsResult>
function getVpcBlockPublicAccessOptionsOutput(args: GetVpcBlockPublicAccessOptionsOutputArgs, opts?: InvokeOptions): Output<GetVpcBlockPublicAccessOptionsResult>
def get_vpc_block_public_access_options(account_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetVpcBlockPublicAccessOptionsResult
def get_vpc_block_public_access_options_output(account_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetVpcBlockPublicAccessOptionsResult]
func LookupVpcBlockPublicAccessOptions(ctx *Context, args *LookupVpcBlockPublicAccessOptionsArgs, opts ...InvokeOption) (*LookupVpcBlockPublicAccessOptionsResult, error)
func LookupVpcBlockPublicAccessOptionsOutput(ctx *Context, args *LookupVpcBlockPublicAccessOptionsOutputArgs, opts ...InvokeOption) LookupVpcBlockPublicAccessOptionsResultOutput
> Note: This function is named LookupVpcBlockPublicAccessOptions
in the Go SDK.
public static class GetVpcBlockPublicAccessOptions
{
public static Task<GetVpcBlockPublicAccessOptionsResult> InvokeAsync(GetVpcBlockPublicAccessOptionsArgs args, InvokeOptions? opts = null)
public static Output<GetVpcBlockPublicAccessOptionsResult> Invoke(GetVpcBlockPublicAccessOptionsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetVpcBlockPublicAccessOptionsResult> getVpcBlockPublicAccessOptions(GetVpcBlockPublicAccessOptionsArgs args, InvokeOptions options)
public static Output<GetVpcBlockPublicAccessOptionsResult> getVpcBlockPublicAccessOptions(GetVpcBlockPublicAccessOptionsArgs args, InvokeOptions options)
fn::invoke:
function: aws-native:ec2:getVpcBlockPublicAccessOptions
arguments:
# arguments dictionary
The following arguments are supported:
- Account
Id string - The identifier for the specified AWS account.
- Account
Id string - The identifier for the specified AWS account.
- account
Id String - The identifier for the specified AWS account.
- account
Id string - The identifier for the specified AWS account.
- account_
id str - The identifier for the specified AWS account.
- account
Id String - The identifier for the specified AWS account.
getVpcBlockPublicAccessOptions Result
The following output properties are available:
- Account
Id string - The identifier for the specified AWS account.
- Exclusions
Allowed string - Determines if exclusions are allowed. If you have enabled VPC BPA at the Organization level, exclusions may be not-allowed. Otherwise, they are allowed.
- Internet
Gateway Pulumi.Block Mode Aws Native. Ec2. Vpc Block Public Access Options Internet Gateway Block Mode - The desired Block Public Access mode for Internet Gateways in your account. We do not allow to create in a off mode as this is the default value
- Account
Id string - The identifier for the specified AWS account.
- Exclusions
Allowed string - Determines if exclusions are allowed. If you have enabled VPC BPA at the Organization level, exclusions may be not-allowed. Otherwise, they are allowed.
- Internet
Gateway VpcBlock Mode Block Public Access Options Internet Gateway Block Mode - The desired Block Public Access mode for Internet Gateways in your account. We do not allow to create in a off mode as this is the default value
- account
Id String - The identifier for the specified AWS account.
- exclusions
Allowed String - Determines if exclusions are allowed. If you have enabled VPC BPA at the Organization level, exclusions may be not-allowed. Otherwise, they are allowed.
- internet
Gateway VpcBlock Mode Block Public Access Options Internet Gateway Block Mode - The desired Block Public Access mode for Internet Gateways in your account. We do not allow to create in a off mode as this is the default value
- account
Id string - The identifier for the specified AWS account.
- exclusions
Allowed string - Determines if exclusions are allowed. If you have enabled VPC BPA at the Organization level, exclusions may be not-allowed. Otherwise, they are allowed.
- internet
Gateway VpcBlock Mode Block Public Access Options Internet Gateway Block Mode - The desired Block Public Access mode for Internet Gateways in your account. We do not allow to create in a off mode as this is the default value
- account_
id str - The identifier for the specified AWS account.
- exclusions_
allowed str - Determines if exclusions are allowed. If you have enabled VPC BPA at the Organization level, exclusions may be not-allowed. Otherwise, they are allowed.
- internet_
gateway_ Vpcblock_ mode Block Public Access Options Internet Gateway Block Mode - The desired Block Public Access mode for Internet Gateways in your account. We do not allow to create in a off mode as this is the default value
- account
Id String - The identifier for the specified AWS account.
- exclusions
Allowed String - Determines if exclusions are allowed. If you have enabled VPC BPA at the Organization level, exclusions may be not-allowed. Otherwise, they are allowed.
- internet
Gateway "block-bidirectional" | "block-ingress"Block Mode - The desired Block Public Access mode for Internet Gateways in your account. We do not allow to create in a off mode as this is the default value
Supporting Types
VpcBlockPublicAccessOptionsInternetGatewayBlockMode
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.37.0 published on Wednesday, Oct 15, 2025 by Pulumi