vpc#

Exec module for managing EC2 Virtual Private Gateways.

async idem_aws.exec.aws.ec2.vpc.get(hub, ctx, name, resource_id: str = None, default: bool = None, filters: List = None) Dict[source]#

Get a VPC resource from AWS

Parameters:
Returns:

Returns VPC in present format

Return type:

Dict[str, Any]

Examples

Calling this exec module function from the cli with filters

idem exec aws.ec2.vpc.get name="my_resource"

Using in a state:

my_unmanaged_resource:
  exec.run:
    - path: aws.ec2.vpc.get
    - kwargs:
        name: my_resource
async idem_aws.exec.aws.ec2.vpc.list_(hub, ctx, name: str = None, filters: List = None, default: bool = None) Dict[source]#

Get a list of VPC resources from AWS

Parameters:
Returns:

Returns VPC in present format

Return type:

Dict[str, Any]

Examples

Calling this exec module function from the cli with filters

idem exec aws.ec2.vpc.get name="my_resource"

Using in a state:

my_unmanaged_resource:
  exec.run:
    - path: aws.ec2.vpc.get
    - kwargs:
        name: my_resource