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 Kinesis Data Analytics applications:
See also: AWS API Documentation
Request Syntax
response = client.add_application_vpc_configuration(
ApplicationName='string',
CurrentApplicationVersionId=123,
VpcConfiguration={
'SubnetIds': [
'string',
],
'SecurityGroupIds': [
'string',
]
},
ConditionalToken='string'
)
[REQUIRED]
The name of an existing application.
CurrentApplicationVersionId
or the ConditionalToken
. You can use the DescribeApplication operation to get the current application version. If the version specified is not the current version, the ConcurrentModificationException
is returned. For better concurrency support, use the ConditionalToken
parameter instead of CurrentApplicationVersionId
.[REQUIRED]
Description of the VPC to add to the application.
The array of Subnet IDs used by the VPC configuration.
The array of SecurityGroup IDs used by the VPC configuration.
ApplicationVersionID
or the ConditionalToken
. You get the application's current ConditionalToken
using DescribeApplication. For better concurrency support, use the ConditionalToken
parameter instead of CurrentApplicationVersionId
.dict
Response Syntax
{
'ApplicationARN': 'string',
'ApplicationVersionId': 123,
'VpcConfigurationDescription': {
'VpcConfigurationId': 'string',
'VpcId': 'string',
'SubnetIds': [
'string',
],
'SecurityGroupIds': [
'string',
]
}
}
Response Structure
(dict) --
ApplicationARN (string) --
The ARN of the application.
ApplicationVersionId (integer) --
Provides the current application version. Kinesis Data Analytics 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.
SecurityGroupIds (list) --
The array of SecurityGroup IDs used by the VPC configuration.
Exceptions
KinesisAnalyticsV2.Client.exceptions.ResourceNotFoundException
KinesisAnalyticsV2.Client.exceptions.ResourceInUseException
KinesisAnalyticsV2.Client.exceptions.InvalidArgumentException
KinesisAnalyticsV2.Client.exceptions.ConcurrentModificationException
KinesisAnalyticsV2.Client.exceptions.InvalidApplicationConfigurationException