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

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.getVpcBlockPublicAccessOptions

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::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>
Copy
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]
Copy
func LookupVpcBlockPublicAccessOptions(ctx *Context, args *LookupVpcBlockPublicAccessOptionsArgs, opts ...InvokeOption) (*LookupVpcBlockPublicAccessOptionsResult, error)
func LookupVpcBlockPublicAccessOptionsOutput(ctx *Context, args *LookupVpcBlockPublicAccessOptionsOutputArgs, opts ...InvokeOption) LookupVpcBlockPublicAccessOptionsResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetVpcBlockPublicAccessOptionsResult> getVpcBlockPublicAccessOptions(GetVpcBlockPublicAccessOptionsArgs args, InvokeOptions options)
public static Output<GetVpcBlockPublicAccessOptionsResult> getVpcBlockPublicAccessOptions(GetVpcBlockPublicAccessOptionsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: aws-native:ec2:getVpcBlockPublicAccessOptions
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

AccountId This property is required. string
The identifier for the specified AWS account.
AccountId This property is required. string
The identifier for the specified AWS account.
accountId This property is required. String
The identifier for the specified AWS account.
accountId This property is required. string
The identifier for the specified AWS account.
account_id This property is required. str
The identifier for the specified AWS account.
accountId This property is required. String
The identifier for the specified AWS account.

getVpcBlockPublicAccessOptions Result

The following output properties are available:

AccountId string
The identifier for the specified AWS account.
InternetGatewayBlockMode Pulumi.AwsNative.Ec2.VpcBlockPublicAccessOptionsInternetGatewayBlockMode
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
AccountId string
The identifier for the specified AWS account.
InternetGatewayBlockMode VpcBlockPublicAccessOptionsInternetGatewayBlockMode
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
accountId String
The identifier for the specified AWS account.
internetGatewayBlockMode VpcBlockPublicAccessOptionsInternetGatewayBlockMode
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
accountId string
The identifier for the specified AWS account.
internetGatewayBlockMode VpcBlockPublicAccessOptionsInternetGatewayBlockMode
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.
internet_gateway_block_mode VpcBlockPublicAccessOptionsInternetGatewayBlockMode
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
accountId String
The identifier for the specified AWS account.
internetGatewayBlockMode "block-bidirectional" | "block-ingress"
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.26.0 published on Wednesday, Mar 12, 2025 by Pulumi