vpc_peering_connection_accepter#

State module for managing EC2 VPC Peering Connection Accepter.

async idem_aws.states.aws.ec2.vpc_peering_connection_accepter.present(hub, ctx, name: str, resource_id: str, connection_status: str = None, tags: Dict[str, str] = None) Dict[str, Any][source]#

Requests to modify the VPC peering connection accepter.

If you are creating a VPC peering connection in the same AWS account, you must both create and accept the request yourself. A VPC peering connection that’s in the pending-acceptance state must be accepted by the owner of the accepter VPC to be activated. Updating the status only makes sense when the vpc peering connection is in pending-acceptance mode. When updating the status is attempted to be made through the VPC peering connection resource, it can only take place when the two VPCs are in the same region and have the same owner. If that is not true, the acceptance is controlled by this particular resource - VPC peering connection accepter.

Parameters:
  • name (str) – An Idem name of the resource.

  • resource_id (str) – An identifier of the resource in the provider. It is an identifier of the vpc peering connection of which the options are part of.

  • connection_status (str, Optional) – The desired status for the VPC peering connection, but in practice, an update will be attempted only if this status is set to “active”.

  • tags (Dict, Optional) – Dict in the format of {tag-key: tag-value} The tags to assign to the peering connection. Each tag consists of a key name and an associated value. Defaults to None.

Request Syntax:
[vpc-peering-connection-id]:
  aws.ec2.vpc_peering_connection_accepter.present:
    - resource_id: "string"
    - connection_status: "string"
    - tags: "Dict"
Returns:

Dict[str, Any]

Examples

pcx-ae89ce9b:
  aws.ec2.vpc_peering_connection_accepter.present:
    - resource_id: pcx-ae89ce9b
    - connection_status: "active"
    - tags:
        first_key: first_value
        second_key: second_value
        third_key: third_value
        fourth_key: fourth_value
async idem_aws.states.aws.ec2.vpc_peering_connection_accepter.absent(hub, ctx, name: str, resource_id: str = None) Dict[str, Any][source]#

A No-Op function for vpc_peering_connection_accepter.

This is a configuration resource of the vpc_peering_connection resource. It’s not possible to delete vpc_peering_connection_accepter, You need to delete the vpc_peering_connection resource by calling vpc_peering_connection.absent, while providing the vpc_peering_connection id. If you want to modify the vpc_peering_connection_accepter resource, use the vpc_peering_connection_options.present.

Parameters:
  • name (str) – An Idem name of the resource.

  • resource_id (str, Optional) – The id of the vpc peering connection.

Request Syntax:
[vpc-peering-connection-id]:
  aws.ec2.vpc_peering_connection_accepter.absent:
    - name: "string"
    - resource_id: "string"
Returns:

Dict[str, Any]

Examples

pcx-ae89ce9b:
  aws.ec2.vpc_peering_connection_accepter.absent:
    - name: pcx-ae89ce9b
    - resource_id: pcx-ae89ce9b
async idem_aws.states.aws.ec2.vpc_peering_connection_accepter.describe(hub, ctx) Dict[str, Dict[str, Any]][source]#

Describe the resource in a way that can be recreated/managed with the corresponding “present” function.

Describes one or more of your VPC peering connection accepters.

Returns:

Dict[str, Any]

Examples

$ idem describe aws.ec2.vpc_peering_connection_accepter.py