- AWS Code Sample demonstrates how to get information about a snapshot of application state data

# Copyright 2010-2019, Inc. or its affiliates. All Rights Reserved. # # This file is 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 # # # # 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. """ Usage: python """ import sys import boto3 from botocore.exceptions import ClientError ARGUMENTS = len(sys.argv) - 1 if ARGUMENTS < 2: print("You must supply an application name and snapshot name") else: APPLICATION_NAME = sys.argv[1] SNAPSHOT_NAME = sys.argv[2] # Create kinesisanalyticsv2 client CLIENT = boto3.client('kinesisanalyticsv2') # Describe the snapshot details try: RESP = CLIENT.describe_application_snapshot( ApplicationName=APPLICATION_NAME, SnapshotName=SNAPSHOT_NAME ) print(RESP) except ClientError as client_error: print("Got the following error calling describe_application_snapshot: {}".format(client_error))

Sample Details

Service: kinesisanalyticsv2

Last tested: 2019-10-14

Author: nprajilesh

Type: full-example