1. Registry
  2. Packages
  3. AWS Cloud Control
  4. API Docs
  5. ec2
  6. VpcBlockPublicAccessOptions

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

Viewing docs for AWS Cloud Control v1.86.0
published on Wednesday, Nov 18, 2026 by Pulumi
aws-native logo aws-native logo AWS Cloud Control

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

Viewing docs for AWS Cloud Control v1.86.0
published on Wednesday, Nov 18, 2026 by Pulumi

    Resource Type definition for AWS::EC2::VPCBlockPublicAccessOptions

    Create VpcBlockPublicAccessOptions Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new VpcBlockPublicAccessOptions(name: string, args: VpcBlockPublicAccessOptionsArgs, opts?: CustomResourceOptions);
    @overload
    def VpcBlockPublicAccessOptions(resource_name: str,
                                    args: VpcBlockPublicAccessOptionsArgs,
                                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def VpcBlockPublicAccessOptions(resource_name: str,
                                    opts: Optional[ResourceOptions] = None,
                                    internet_gateway_block_mode: Optional[VpcBlockPublicAccessOptionsInternetGatewayBlockMode] = None)
    func NewVpcBlockPublicAccessOptions(ctx *Context, name string, args VpcBlockPublicAccessOptionsArgs, opts ...ResourceOption) (*VpcBlockPublicAccessOptions, error)
    public VpcBlockPublicAccessOptions(string name, VpcBlockPublicAccessOptionsArgs args, CustomResourceOptions? opts = null)
    public VpcBlockPublicAccessOptions(String name, VpcBlockPublicAccessOptionsArgs args)
    public VpcBlockPublicAccessOptions(String name, VpcBlockPublicAccessOptionsArgs args, CustomResourceOptions options)
    
    type: aws-native:ec2:VpcBlockPublicAccessOptions
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "aws-native_ec2_vpc_block_public_access_options" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args VpcBlockPublicAccessOptionsArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args VpcBlockPublicAccessOptionsArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args VpcBlockPublicAccessOptionsArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args VpcBlockPublicAccessOptionsArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args VpcBlockPublicAccessOptionsArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    VpcBlockPublicAccessOptions Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The VpcBlockPublicAccessOptions resource accepts the following input properties:

    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
    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
    internet_gateway_block_mode "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
    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
    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
    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
    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

    Outputs

    All input properties are implicitly available as output properties. Additionally, the VpcBlockPublicAccessOptions resource produces the following output properties:

    AccountId string
    The identifier for the specified AWS account.
    ExclusionsAllowed 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.
    Id string
    The provider-assigned unique ID for this managed resource.
    AccountId string
    The identifier for the specified AWS account.
    ExclusionsAllowed 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.
    Id string
    The provider-assigned unique ID for this managed resource.
    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.
    id string
    The provider-assigned unique ID for this managed resource.
    accountId String
    The identifier for the specified AWS account.
    exclusionsAllowed 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.
    id String
    The provider-assigned unique ID for this managed resource.
    accountId string
    The identifier for the specified AWS account.
    exclusionsAllowed 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.
    id string
    The provider-assigned unique ID for this managed resource.
    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.
    id str
    The provider-assigned unique ID for this managed resource.
    accountId String
    The identifier for the specified AWS account.
    exclusionsAllowed 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.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing VpcBlockPublicAccessOptions Resource

    Get an existing VpcBlockPublicAccessOptions resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, opts?: CustomResourceOptions): VpcBlockPublicAccessOptions
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None) -> VpcBlockPublicAccessOptions
    func GetVpcBlockPublicAccessOptions(ctx *Context, name string, id IDInput, state *VpcBlockPublicAccessOptionsState, opts ...ResourceOption) (*VpcBlockPublicAccessOptions, error)
    public static VpcBlockPublicAccessOptions Get(string name, Input<string> id, CustomResourceOptions? opts = null)
    public static VpcBlockPublicAccessOptions get(String name, Output<String> id, CustomResourceOptions options)
    resources:  existingVpcBlockPublicAccessOptions:    type: aws-native:ec2:VpcBlockPublicAccessOptions    get:      id: ${id}
    import {
      to = aws-native_ec2_vpc_block_public_access_options.example
      id = "${id}"
    }
    
    name string
    The unique name of the resulting resource.
    id Input<ID>
    The unique provider ID of the resource to look up.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resulting resource.
    id str
    The unique provider ID of the resource to look up.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resulting resource.
    id IDInput
    The unique provider ID of the resource to look up.
    state VpcBlockPublicAccessOptionsState
    Pass nil. This resource has no state arguments.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resulting resource.
    id Input<string>
    The unique provider ID of the resource to look up.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resulting resource.
    id Output<String>
    The unique provider ID of the resource to look up.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Supporting Types

    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

    NameValue
    BlockBidirectionalblock-bidirectional
    BlockIngressblock-ingress
    NameValue
    VpcBlockPublicAccessOptionsInternetGatewayBlockModeBlockBidirectionalblock-bidirectional
    VpcBlockPublicAccessOptionsInternetGatewayBlockModeBlockIngressblock-ingress
    Value
    block-bidirectional
    block-ingress
    NameValue
    BlockBidirectionalblock-bidirectional
    BlockIngressblock-ingress
    NameValue
    BlockBidirectionalblock-bidirectional
    BlockIngressblock-ingress
    NameValue
    BLOCK_BIDIRECTIONALblock-bidirectional
    BLOCK_INGRESSblock-ingress
    Value
    block-bidirectional
    block-ingress

    Package Details

    Repository
    AWS Native pulumi/pulumi-aws-native
    License
    Apache-2.0
    aws-native logo aws-native logo AWS Cloud Control

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

    Viewing docs for AWS Cloud Control v1.86.0
    published on Wednesday, Nov 18, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial