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 the AWS::EC2::SecurityGroupVpcAssociation resource
Create SecurityGroupVpcAssociation Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SecurityGroupVpcAssociation(name: string, args: SecurityGroupVpcAssociationArgs, opts?: CustomResourceOptions);@overload
def SecurityGroupVpcAssociation(resource_name: str,
args: SecurityGroupVpcAssociationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SecurityGroupVpcAssociation(resource_name: str,
opts: Optional[ResourceOptions] = None,
group_id: Optional[str] = None,
vpc_id: Optional[str] = None)func NewSecurityGroupVpcAssociation(ctx *Context, name string, args SecurityGroupVpcAssociationArgs, opts ...ResourceOption) (*SecurityGroupVpcAssociation, error)public SecurityGroupVpcAssociation(string name, SecurityGroupVpcAssociationArgs args, CustomResourceOptions? opts = null)
public SecurityGroupVpcAssociation(String name, SecurityGroupVpcAssociationArgs args)
public SecurityGroupVpcAssociation(String name, SecurityGroupVpcAssociationArgs args, CustomResourceOptions options)
type: aws-native:ec2:SecurityGroupVpcAssociation
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "aws-native_ec2_security_group_vpc_association" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args SecurityGroupVpcAssociationArgs
- 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 SecurityGroupVpcAssociationArgs
- 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 SecurityGroupVpcAssociationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SecurityGroupVpcAssociationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SecurityGroupVpcAssociationArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
SecurityGroupVpcAssociation 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 SecurityGroupVpcAssociation resource accepts the following input properties:
Outputs
All input properties are implicitly available as output properties. Additionally, the SecurityGroupVpcAssociation resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- State
Pulumi.
Aws Native. Ec2. Security Group Vpc Association State - The state of the security group vpc association.
- State
Reason string - The reason for the state of the security group vpc association.
- Vpc
Owner stringId - The owner of the VPC in the security group vpc association.
- Id string
- The provider-assigned unique ID for this managed resource.
- State
Security
Group Vpc Association State Enum - The state of the security group vpc association.
- State
Reason string - The reason for the state of the security group vpc association.
- Vpc
Owner stringId - The owner of the VPC in the security group vpc association.
- id string
- The provider-assigned unique ID for this managed resource.
- state "associating" | "associated" | "association-failed" | "disassociating" | "disassociated" | "disassociation-failed"
- The state of the security group vpc association.
- state_
reason string - The reason for the state of the security group vpc association.
- vpc_
owner_ stringid - The owner of the VPC in the security group vpc association.
- id String
- The provider-assigned unique ID for this managed resource.
- state
Security
Group Vpc Association State - The state of the security group vpc association.
- state
Reason String - The reason for the state of the security group vpc association.
- vpc
Owner StringId - The owner of the VPC in the security group vpc association.
- id string
- The provider-assigned unique ID for this managed resource.
- state
Security
Group Vpc Association State - The state of the security group vpc association.
- state
Reason string - The reason for the state of the security group vpc association.
- vpc
Owner stringId - The owner of the VPC in the security group vpc association.
- id str
- The provider-assigned unique ID for this managed resource.
- state
Security
Group Vpc Association State - The state of the security group vpc association.
- state_
reason str - The reason for the state of the security group vpc association.
- vpc_
owner_ strid - The owner of the VPC in the security group vpc association.
- id String
- The provider-assigned unique ID for this managed resource.
- state "associating" | "associated" | "association-failed" | "disassociating" | "disassociated" | "disassociation-failed"
- The state of the security group vpc association.
- state
Reason String - The reason for the state of the security group vpc association.
- vpc
Owner StringId - The owner of the VPC in the security group vpc association.
Look up Existing SecurityGroupVpcAssociation Resource
Get an existing SecurityGroupVpcAssociation 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): SecurityGroupVpcAssociation@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None) -> SecurityGroupVpcAssociationfunc GetSecurityGroupVpcAssociation(ctx *Context, name string, id IDInput, state *SecurityGroupVpcAssociationState, opts ...ResourceOption) (*SecurityGroupVpcAssociation, error)public static SecurityGroupVpcAssociation Get(string name, Input<string> id, CustomResourceOptions? opts = null)public static SecurityGroupVpcAssociation get(String name, Output<String> id, CustomResourceOptions options)resources: existingSecurityGroupVpcAssociation: type: aws-native:ec2:SecurityGroupVpcAssociation get: id: ${id}import {
to = aws-native_ec2_security_group_vpc_association.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 SecurityGroupVpcAssociationState
- 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
SecurityGroupVpcAssociationState
| Name | Value |
|---|---|
| Associating | associating |
| Associated | associated |
| Association | association-failed |
| Disassociating | disassociating |
| Disassociated | disassociated |
| Disassociation | disassociation-failed |
| Name | Value |
|---|---|
| Security | associating |
| Security | associated |
| Security | association-failed |
| Security | disassociating |
| Security | disassociated |
| Security | disassociation-failed |
| Value |
|---|
associating |
associated |
association-failed |
disassociating |
disassociated |
disassociation-failed |
| Name | Value |
|---|---|
| Associating | associating |
| Associated | associated |
| Association | association-failed |
| Disassociating | disassociating |
| Disassociated | disassociated |
| Disassociation | disassociation-failed |
| Name | Value |
|---|---|
| Associating | associating |
| Associated | associated |
| Association | association-failed |
| Disassociating | disassociating |
| Disassociated | disassociated |
| Disassociation | disassociation-failed |
| Name | Value |
|---|---|
| ASSOCIATING | associating |
| ASSOCIATED | associated |
| ASSOCIATION_FAILED | association-failed |
| DISASSOCIATING | disassociating |
| DISASSOCIATED | disassociated |
| DISASSOCIATION_FAILED | disassociation-failed |
| Value |
|---|
associating |
associated |
association-failed |
disassociating |
disassociated |
disassociation-failed |
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