/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the ec2-2016-11-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.EC2.Model { /// /// Container for the parameters to the CreateVpcPeeringConnection operation. /// Requests a VPC peering connection between two VPCs: a requester VPC that you own and /// an accepter VPC with which to create the connection. The accepter VPC can belong to /// another Amazon Web Services account and can be in a different Region to the requester /// VPC. The requester VPC and accepter VPC cannot have overlapping CIDR blocks. /// /// /// /// Limitations and rules apply to a VPC peering connection. For more information, see /// the limitations /// section in the VPC Peering Guide. /// /// /// /// The owner of the accepter VPC must accept the peering request to activate the peering /// connection. The VPC peering connection request expires after 7 days, after which it /// cannot be accepted or rejected. /// /// /// /// If you create a VPC peering connection request between VPCs with overlapping CIDR /// blocks, the VPC peering connection has a status of failed. /// /// public partial class CreateVpcPeeringConnectionRequest : AmazonEC2Request { private string _peerOwnerId; private string _peerRegion; private string _peerVpcId; private List _tagSpecifications = new List(); private string _vpcId; /// /// Gets and sets the property PeerOwnerId. /// /// The Amazon Web Services account ID of the owner of the accepter VPC. /// /// /// /// Default: Your Amazon Web Services account ID /// /// public string PeerOwnerId { get { return this._peerOwnerId; } set { this._peerOwnerId = value; } } // Check to see if PeerOwnerId property is set internal bool IsSetPeerOwnerId() { return this._peerOwnerId != null; } /// /// Gets and sets the property PeerRegion. /// /// The Region code for the accepter VPC, if the accepter VPC is located in a Region other /// than the Region in which you make the request. /// /// /// /// Default: The Region in which you make the request. /// /// public string PeerRegion { get { return this._peerRegion; } set { this._peerRegion = value; } } // Check to see if PeerRegion property is set internal bool IsSetPeerRegion() { return this._peerRegion != null; } /// /// Gets and sets the property PeerVpcId. /// /// The ID of the VPC with which you are creating the VPC peering connection. You must /// specify this parameter in the request. /// /// public string PeerVpcId { get { return this._peerVpcId; } set { this._peerVpcId = value; } } // Check to see if PeerVpcId property is set internal bool IsSetPeerVpcId() { return this._peerVpcId != null; } /// /// Gets and sets the property TagSpecifications. /// /// The tags to assign to the peering connection. /// /// public List TagSpecifications { get { return this._tagSpecifications; } set { this._tagSpecifications = value; } } // Check to see if TagSpecifications property is set internal bool IsSetTagSpecifications() { return this._tagSpecifications != null && this._tagSpecifications.Count > 0; } /// /// Gets and sets the property VpcId. /// /// The ID of the requester VPC. You must specify this parameter in the request. /// /// [AWSProperty(Required=true)] public string VpcId { get { return this._vpcId; } set { this._vpcId = value; } } // Check to see if VpcId property is set internal bool IsSetVpcId() { return this._vpcId != null; } } }