We recommend new projects start with resources from the AWS provider.
published on Wednesday, Nov 18, 2026 by Pulumi
We recommend new projects start with resources from the AWS provider.
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:
- 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
- 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
- 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
- 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
- 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
- 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
- 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
Outputs
All input properties are implicitly available as output properties. Additionally, the VpcBlockPublicAccessOptions resource produces the following output properties:
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
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) -> VpcBlockPublicAccessOptionsfunc 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
| Name | Value |
|---|---|
| Block | block-bidirectional |
| Block | block-ingress |
| Name | Value |
|---|---|
| Vpc | block-bidirectional |
| Vpc | block-ingress |
| Value |
|---|
block-bidirectional |
block-ingress |
| Name | Value |
|---|---|
| Block | block-bidirectional |
| Block | block-ingress |
| Name | Value |
|---|---|
| Block | block-bidirectional |
| Block | block-ingress |
| Name | Value |
|---|---|
| BLOCK_BIDIRECTIONAL | block-bidirectional |
| BLOCK_INGRESS | block-ingress |
| Value |
|---|
block-bidirectional |
block-ingress |
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.
published on Wednesday, Nov 18, 2026 by Pulumi