@@ -60,8 +60,14 @@ def create_topic(project_id: str, topic_id: str) -> None:
6060 # [END pubsub_create_topic]
6161
6262
63- def create_topic_kinesis_ingestion (project_id : str , topic_id : str , stream_arn : str ,
64- consumer_arn : str , aws_role_arn : str , gcp_service_account : str ) -> None :
63+ def create_topic_kinesis_ingestion (
64+ project_id : str ,
65+ topic_id : str ,
66+ stream_arn : str ,
67+ consumer_arn : str ,
68+ aws_role_arn : str ,
69+ gcp_service_account : str ,
70+ ) -> None :
6571 """Create a new Pub/Sub topic with AWS Kinesis Ingestion Settings."""
6672 # [START pubsub_quickstart_create_topic]
6773 # [START pubsub_create_topic]
@@ -89,7 +95,7 @@ def create_topic_kinesis_ingestion(project_id: str, topic_id: str, stream_arn: s
8995 aws_role_arn = aws_role_arn ,
9096 gcp_service_account = gcp_service_account ,
9197 )
92- )
98+ ),
9399 )
94100
95101 topic = publisher .create_topic (request = request )
@@ -469,7 +475,9 @@ def detach_subscription(project_id: str, subscription_id: str) -> None:
469475 create_parser = subparsers .add_parser ("create" , help = create_topic .__doc__ )
470476 create_parser .add_argument ("topic_id" )
471477
472- create_topic_kinesis_ingestion_parser = subparsers .add_parser ("create_kinesis_ingestion" , help = create_topic_kinesis_ingestion .__doc__ )
478+ create_topic_kinesis_ingestion_parser = subparsers .add_parser (
479+ "create_kinesis_ingestion" , help = create_topic_kinesis_ingestion .__doc__
480+ )
473481 create_topic_kinesis_ingestion_parser .add_argument ("topic_id" )
474482 create_topic_kinesis_ingestion_parser .add_argument ("stream_arn" )
475483 create_topic_kinesis_ingestion_parser .add_argument ("consumer_arn" )
@@ -543,7 +551,7 @@ def detach_subscription(project_id: str, subscription_id: str) -> None:
543551 args .stream_arn ,
544552 args .consumer_arn ,
545553 args .aws_role_arn ,
546- args .gcp_service_account
554+ args .gcp_service_account ,
547555 )
548556 elif args .command == "delete" :
549557 delete_topic (args .project_id , args .topic_id )
0 commit comments