Skip to content

Commit

Permalink
X-ENI (or Cross-Account ENI) is a new feature that allows the attachm…
Browse files Browse the repository at this point in the history
…ent or association of Elastic Network Interfaces (ENI) between VPCs in different AWS accounts located in the same availability zone. With this new capability, service providers and partners can deliver managed solutions in a variety of new architectural patterns where the provider and consumer of the service are in different AWS accounts.
  • Loading branch information
sstevenkang committed Jul 13, 2017
1 parent 9d222ef commit 1a4f79b
Show file tree
Hide file tree
Showing 28 changed files with 2,617 additions and 18 deletions.
220 changes: 217 additions & 3 deletions generator/ServiceModels/ec2/ec2-2016-11-15.normal.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
/*
* Copyright 2010-2014 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 Amazon.Runtime;
using Amazon.Runtime.Internal;

namespace Amazon.EC2.Model
{
/// <summary>
/// Container for the parameters to the CreateNetworkInterfacePermission operation.
/// Grants an AWS authorized partner account permission to attach the specified network
/// interface to an instance in their account.
///
///
/// <para>
/// You can grant permission to a single AWS account only, and only one account at a time.
/// </para>
/// </summary>
public partial class CreateNetworkInterfacePermissionRequest : AmazonEC2Request
{
private string _awsAccountId;
private string _awsService;
private string _networkInterfaceId;
private InterfacePermissionType _permission;

/// <summary>
/// Gets and sets the property AwsAccountId.
/// <para>
/// The AWS account ID.
/// </para>
/// </summary>
public string AwsAccountId
{
get { return this._awsAccountId; }
set { this._awsAccountId = value; }
}

// Check to see if AwsAccountId property is set
internal bool IsSetAwsAccountId()
{
return this._awsAccountId != null;
}

/// <summary>
/// Gets and sets the property AwsService.
/// <para>
/// The AWS service. Currently not supported.
/// </para>
/// </summary>
public string AwsService
{
get { return this._awsService; }
set { this._awsService = value; }
}

// Check to see if AwsService property is set
internal bool IsSetAwsService()
{
return this._awsService != null;
}

/// <summary>
/// Gets and sets the property NetworkInterfaceId.
/// <para>
/// The ID of the network interface.
/// </para>
/// </summary>
public string NetworkInterfaceId
{
get { return this._networkInterfaceId; }
set { this._networkInterfaceId = value; }
}

// Check to see if NetworkInterfaceId property is set
internal bool IsSetNetworkInterfaceId()
{
return this._networkInterfaceId != null;
}

/// <summary>
/// Gets and sets the property Permission.
/// <para>
/// The type of permission to grant.
/// </para>
/// </summary>
public InterfacePermissionType Permission
{
get { return this._permission; }
set { this._permission = value; }
}

// Check to see if Permission property is set
internal bool IsSetPermission()
{
return this._permission != null;
}

}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
/*
* Copyright 2010-2014 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 Amazon.Runtime;
using Amazon.Runtime.Internal;

namespace Amazon.EC2.Model
{
/// <summary>
/// This is the response object from the CreateNetworkInterfacePermission operation.
/// </summary>
public partial class CreateNetworkInterfacePermissionResponse : AmazonWebServiceResponse
{
private NetworkInterfacePermission _interfacePermission;

/// <summary>
/// Gets and sets the property InterfacePermission.
/// <para>
/// Information about the permission for the network interface.
/// </para>
/// </summary>
public NetworkInterfacePermission InterfacePermission
{
get { return this._interfacePermission; }
set { this._interfacePermission = value; }
}

// Check to see if InterfacePermission property is set
internal bool IsSetInterfacePermission()
{
return this._interfacePermission != null;
}

}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
/*
* Copyright 2010-2014 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 Amazon.Runtime;
using Amazon.Runtime.Internal;

namespace Amazon.EC2.Model
{
/// <summary>
/// Container for the parameters to the DeleteNetworkInterfacePermission operation.
/// Deletes a permission for a network interface. By default, you cannot delete the permission
/// if the account for which you're removing the permission has attached the network interface
/// to an instance. However, you can force delete the permission, regardless of any attachment.
/// </summary>
public partial class DeleteNetworkInterfacePermissionRequest : AmazonEC2Request
{
private bool? _force;
private string _networkInterfacePermissionId;

/// <summary>
/// Gets and sets the property Force.
/// <para>
/// Specify <code>true</code> to remove the permission even if the network interface is
/// attached to an instance.
/// </para>
/// </summary>
public bool Force
{
get { return this._force.GetValueOrDefault(); }
set { this._force = value; }
}

// Check to see if Force property is set
internal bool IsSetForce()
{
return this._force.HasValue;
}

/// <summary>
/// Gets and sets the property NetworkInterfacePermissionId.
/// <para>
/// The ID of the network interface permission.
/// </para>
/// </summary>
public string NetworkInterfacePermissionId
{
get { return this._networkInterfacePermissionId; }
set { this._networkInterfacePermissionId = value; }
}

// Check to see if NetworkInterfacePermissionId property is set
internal bool IsSetNetworkInterfacePermissionId()
{
return this._networkInterfacePermissionId != null;
}

}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
/*
* Copyright 2010-2014 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 Amazon.Runtime;
using Amazon.Runtime.Internal;

namespace Amazon.EC2.Model
{
/// <summary>
/// This is the response object from the DeleteNetworkInterfacePermission operation.
/// </summary>
public partial class DeleteNetworkInterfacePermissionResponse : AmazonWebServiceResponse
{
private bool? _return;

/// <summary>
/// Gets and sets the property Return.
/// <para>
/// Returns <code>true</code> if the request succeeds, otherwise returns an error.
/// </para>
/// </summary>
public bool Return
{
get { return this._return.GetValueOrDefault(); }
set { this._return = value; }
}

// Check to see if Return property is set
internal bool IsSetReturn()
{
return this._return.HasValue;
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ namespace Amazon.EC2.Model
/// <summary>
/// Container for the parameters to the DescribeInstanceStatus operation.
/// Describes the status of one or more instances. By default, only running instances
/// are described, unless specified otherwise.
/// are described, unless you specifically indicate to return the status of all instances.
///
///
/// <para>
Expand Down

0 comments on commit 1a4f79b

Please sign in to comment.