vpc_peering_connection_options#

State module for managing EC2 VPC Peering Connection Options.

async idem_aws.states.aws.ec2.vpc_peering_connection_options.present(hub, ctx, name: str, resource_id: str, peer_allow_remote_vpc_dns_resolution: bool = None, peer_allow_classic_link_to_remote_vpc: bool = None, peer_allow_vpc_to_remote_classic_link: bool = None, allow_remote_vpc_dns_resolution: bool = None, allow_classic_link_to_remote_vpc: bool = None, allow_vpc_to_remote_classic_link: bool = None) Dict[str, Any][source]#

Requests to modify the VPC peering connection options.

If the peered VPCs are in the same AWS account, you can enable DNS resolution for queries from the local VPC. This ensures that queries from the local VPC resolve to private IP addresses in the peer VPC. This option is not available if the peered VPCs are in different AWS accounts or different Regions. For peered VPCs in different AWS accounts, each AWS account owner must initiate a separate request to modify the peering connection options. For inter-region peering connections, you must use the Region for the requester VPC to modify the requester VPC peering options and the Region for the accepter VPC to modify the accepter VPC peering options.

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.

  • peer_allow_remote_vpc_dns_resolution (bool, Optional) – VPC peering connection option for the accepter: Requester Indicates whether a local VPC can resolve public DNS hostnames to private IP addresses when queried from instances in a peer VPC.

  • peer_allow_classic_link_to_remote_vpc (bool, Optional) – VPC peering connection option for the accepter: Indicates whether a local ClassicLink connection can communicate with the peer VPC over the VPC peering connection.

  • peer_allow_vpc_to_remote_classic_link (bool, Optional) – VPC peering connection option for the accepter: Indicates whether a local VPC can communicate with a ClassicLink connection in the peer VPC over the VPC peering connection.

  • allow_remote_vpc_dns_resolution (bool, Optional) – VPC peering connection option for the requester: Requester Indicates whether a local VPC can resolve public DNS hostnames to private IP addresses when queried from instances in a peer VPC.

  • allow_classic_link_to_remote_vpc (bool, Optional) – VPC peering connection option for the requester: Indicates whether a local ClassicLink connection can communicate with the peer VPC over the VPC peering connection.

  • allow_vpc_to_remote_classic_link (bool, Optional) – VPC peering connection option for the requester: Indicates whether a local VPC can communicate with a ClassicLink connection in the peer VPC over the VPC peering connection.

Request Syntax:
[vpc-peering-connection-id]:
  aws.ec2.vpc_peering_connection_options.present:
    - resource_id: "string"
    - peer_allow_remote_vpc_dns_resolution: True|False
    - peer_allow_classic_link_to_remote_vpc: True|False
    - peer_allow_vpc_to_remote_classic_link: True|False
    - allow_remote_vpc_dns_resolution: True|False
    - allow_classic_link_to_remote_vpc: True|False
    - allow_vpc_to_remote_classic_link: True|False
Returns:

Dict[str, Any]

Examples

pcx-ae89ce9b:
    aws.ec2.vpc_peering_connection_options.present:
        - resource_id: pcx-ae89ce9b
        - peer_allow_classic_link_to_remote_vpc: true
        - allow_vpc_to_remote_classic_link: true
async idem_aws.states.aws.ec2.vpc_peering_connection_options.absent(hub, ctx, name: str, resource_id: str = None) Dict[str, Any][source]#

A No-Op function for vpc_peering_connection_options.

This is a configuration resource of the vpc_peering_connection resource. It’s not possible to delete vpc_peering_connection_options, 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_options 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_options.absent:
    - name: "string"
Returns:

Dict[str, Any]

async idem_aws.states.aws.ec2.vpc_peering_connection_options.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 options.

Returns:

Dict[str, Any]

Examples

$ idem describe aws.ec2.vpc_peering_connection_options.py