KinesisAnalyticsV2 / Client / add_application_vpc_configuration
add_application_vpc_configuration#
- KinesisAnalyticsV2.Client.add_application_vpc_configuration(**kwargs)#
Adds a Virtual Private Cloud (VPC) configuration to the application. Applications can use VPCs to store and access resources securely.
Note the following about VPC configurations for Managed Service for Apache Flink applications:
VPC configurations are not supported for SQL applications.
When a VPC is added to a Managed Service for Apache Flink application, the application can no longer be accessed from the Internet directly. To enable Internet access to the application, add an Internet gateway to your VPC.
See also: AWS API Documentation
Request Syntax
response = client.add_application_vpc_configuration( ApplicationName='string', CurrentApplicationVersionId=123, VpcConfiguration={ 'SubnetIds': [ 'string', ], 'SecurityGroupIds': [ 'string', ] }, ConditionalToken='string' )
- Parameters:
ApplicationName (string) –
[REQUIRED]
The name of an existing application.
CurrentApplicationVersionId (integer) – The version of the application to which you want to add the VPC configuration. You must provide the
CurrentApplicationVersionId
or theConditionalToken
. You can use the DescribeApplication operation to get the current application version. If the version specified is not the current version, theConcurrentModificationException
is returned. For better concurrency support, use theConditionalToken
parameter instead ofCurrentApplicationVersionId
.VpcConfiguration (dict) –
[REQUIRED]
Description of the VPC to add to the application.
SubnetIds (list) – [REQUIRED]
The array of Subnet IDs used by the VPC configuration.
(string) –
SecurityGroupIds (list) – [REQUIRED]
The array of SecurityGroup IDs used by the VPC configuration.
(string) –
ConditionalToken (string) – A value you use to implement strong concurrency for application updates. You must provide the
ApplicationVersionID
or theConditionalToken
. You get the application’s currentConditionalToken
using DescribeApplication. For better concurrency support, use theConditionalToken
parameter instead ofCurrentApplicationVersionId
.
- Return type:
dict
- Returns:
Response Syntax
{ 'ApplicationARN': 'string', 'ApplicationVersionId': 123, 'VpcConfigurationDescription': { 'VpcConfigurationId': 'string', 'VpcId': 'string', 'SubnetIds': [ 'string', ], 'SecurityGroupIds': [ 'string', ] }, 'OperationId': 'string' }
Response Structure
(dict) –
ApplicationARN (string) –
The ARN of the application.
ApplicationVersionId (integer) –
Provides the current application version. Managed Service for Apache Flink updates the ApplicationVersionId each time you update the application.
VpcConfigurationDescription (dict) –
The parameters of the new VPC configuration.
VpcConfigurationId (string) –
The ID of the VPC configuration.
VpcId (string) –
The ID of the associated VPC.
SubnetIds (list) –
The array of Subnet IDs used by the VPC configuration.
(string) –
SecurityGroupIds (list) –
The array of SecurityGroup IDs used by the VPC configuration.
(string) –
OperationId (string) – Operation ID for tracking AddApplicationVpcConfiguration request
Exceptions
KinesisAnalyticsV2.Client.exceptions.ResourceNotFoundException
KinesisAnalyticsV2.Client.exceptions.ResourceInUseException
KinesisAnalyticsV2.Client.exceptions.InvalidArgumentException
KinesisAnalyticsV2.Client.exceptions.ConcurrentModificationException
KinesisAnalyticsV2.Client.exceptions.InvalidApplicationConfigurationException