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>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 dictionaryThe following arguments are supported:
- AccountId string
- The identifier for the specified AWS account.
- AccountId string
- The identifier for the specified AWS account.
- accountId String
- The identifier for the specified AWS account.
- accountId string
- The identifier for the specified AWS account.
- account_id str
- The identifier for the specified AWS account.
- accountId 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.
- InternetGateway 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
- AccountId string
- The identifier for the specified AWS account.
- InternetGateway 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
- accountId String
- The identifier for the specified AWS account.
- internetGateway 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
- accountId string
- The identifier for the specified AWS account.
- internetGateway 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.
- 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
- accountId String
- The identifier for the specified AWS account.
- internetGateway "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.26.0 published on Wednesday, Mar 12, 2025 by Pulumi