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

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

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

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. SecurityGroupVpcAssociationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. 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 This property is required. string
The unique name of the resource.
args This property is required. SecurityGroupVpcAssociationArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. SecurityGroupVpcAssociationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. 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:

GroupId This property is required. string
The group ID of the specified security group.
VpcId This property is required. string
The ID of the VPC in the security group vpc association.
GroupId This property is required. string
The group ID of the specified security group.
VpcId This property is required. string
The ID of the VPC in the security group vpc association.
groupId This property is required. String
The group ID of the specified security group.
vpcId This property is required. String
The ID of the VPC in the security group vpc association.
groupId This property is required. string
The group ID of the specified security group.
vpcId This property is required. string
The ID of the VPC in the security group vpc association.
group_id This property is required. str
The group ID of the specified security group.
vpc_id This property is required. str
The ID of the VPC in the security group vpc association.
groupId This property is required. String
The group ID of the specified security group.
vpcId This property is required. String
The ID of the VPC in the security group vpc association.

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.AwsNative.Ec2.SecurityGroupVpcAssociationState
The state of the security group vpc association.
StateReason string
The reason for the state of the security group vpc association.
VpcOwnerId string
The owner of the VPC in the security group vpc association.
Id string
The provider-assigned unique ID for this managed resource.
State SecurityGroupVpcAssociationStateEnum
The state of the security group vpc association.
StateReason string
The reason for the state of the security group vpc association.
VpcOwnerId string
The owner of the VPC in the security group vpc association.
id String
The provider-assigned unique ID for this managed resource.
state SecurityGroupVpcAssociationState
The state of the security group vpc association.
stateReason String
The reason for the state of the security group vpc association.
vpcOwnerId String
The owner of the VPC in the security group vpc association.
id string
The provider-assigned unique ID for this managed resource.
state SecurityGroupVpcAssociationState
The state of the security group vpc association.
stateReason string
The reason for the state of the security group vpc association.
vpcOwnerId string
The owner of the VPC in the security group vpc association.
id str
The provider-assigned unique ID for this managed resource.
state SecurityGroupVpcAssociationState
The state of the security group vpc association.
state_reason str
The reason for the state of the security group vpc association.
vpc_owner_id str
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.
stateReason String
The reason for the state of the security group vpc association.
vpcOwnerId String
The owner of the VPC in the security group vpc association.

Supporting Types

SecurityGroupVpcAssociationState
, SecurityGroupVpcAssociationStateArgs

Associating
associating
Associated
associated
AssociationFailed
association-failed
Disassociating
disassociating
Disassociated
disassociated
DisassociationFailed
disassociation-failed
SecurityGroupVpcAssociationStateAssociating
associating
SecurityGroupVpcAssociationStateAssociated
associated
SecurityGroupVpcAssociationStateAssociationFailed
association-failed
SecurityGroupVpcAssociationStateDisassociating
disassociating
SecurityGroupVpcAssociationStateDisassociated
disassociated
SecurityGroupVpcAssociationStateDisassociationFailed
disassociation-failed
Associating
associating
Associated
associated
AssociationFailed
association-failed
Disassociating
disassociating
Disassociated
disassociated
DisassociationFailed
disassociation-failed
Associating
associating
Associated
associated
AssociationFailed
association-failed
Disassociating
disassociating
Disassociated
disassociated
DisassociationFailed
disassociation-failed
ASSOCIATING
associating
ASSOCIATED
associated
ASSOCIATION_FAILED
association-failed
DISASSOCIATING
disassociating
DISASSOCIATED
disassociated
DISASSOCIATION_FAILED
disassociation-failed
"associating"
associating
"associated"
associated
"association-failed"
association-failed
"disassociating"
disassociating
"disassociated"
disassociated
"disassociation-failed"
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.

AWS Cloud Control v1.26.0 published on Wednesday, Mar 12, 2025 by Pulumi