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

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

AWS Cloud Control v1.9.0 published on Monday, Nov 18, 2024 by Pulumi

aws-native.ec2.getSecurityGroupVpcAssociation

Explore with Pulumi AI

aws-native logo

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

AWS Cloud Control v1.9.0 published on Monday, Nov 18, 2024 by Pulumi

    Resource type definition for the AWS::EC2::SecurityGroupVpcAssociation resource

    Using getSecurityGroupVpcAssociation

    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 getSecurityGroupVpcAssociation(args: GetSecurityGroupVpcAssociationArgs, opts?: InvokeOptions): Promise<GetSecurityGroupVpcAssociationResult>
    function getSecurityGroupVpcAssociationOutput(args: GetSecurityGroupVpcAssociationOutputArgs, opts?: InvokeOptions): Output<GetSecurityGroupVpcAssociationResult>
    def get_security_group_vpc_association(group_id: Optional[str] = None,
                                           vpc_id: Optional[str] = None,
                                           opts: Optional[InvokeOptions] = None) -> GetSecurityGroupVpcAssociationResult
    def get_security_group_vpc_association_output(group_id: Optional[pulumi.Input[str]] = None,
                                           vpc_id: Optional[pulumi.Input[str]] = None,
                                           opts: Optional[InvokeOptions] = None) -> Output[GetSecurityGroupVpcAssociationResult]
    func LookupSecurityGroupVpcAssociation(ctx *Context, args *LookupSecurityGroupVpcAssociationArgs, opts ...InvokeOption) (*LookupSecurityGroupVpcAssociationResult, error)
    func LookupSecurityGroupVpcAssociationOutput(ctx *Context, args *LookupSecurityGroupVpcAssociationOutputArgs, opts ...InvokeOption) LookupSecurityGroupVpcAssociationResultOutput

    > Note: This function is named LookupSecurityGroupVpcAssociation in the Go SDK.

    public static class GetSecurityGroupVpcAssociation 
    {
        public static Task<GetSecurityGroupVpcAssociationResult> InvokeAsync(GetSecurityGroupVpcAssociationArgs args, InvokeOptions? opts = null)
        public static Output<GetSecurityGroupVpcAssociationResult> Invoke(GetSecurityGroupVpcAssociationInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetSecurityGroupVpcAssociationResult> getSecurityGroupVpcAssociation(GetSecurityGroupVpcAssociationArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: aws-native:ec2:getSecurityGroupVpcAssociation
      arguments:
        # arguments dictionary

    The following arguments are supported:

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

    getSecurityGroupVpcAssociation Result

    The following output properties are available:

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

    Package Details

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

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

    AWS Cloud Control v1.9.0 published on Monday, Nov 18, 2024 by Pulumi