SNS Topics

Introduktion till AWS Boto i Python

Maksim Pecherskiy

Data Engineer!

SNS

SNS

Introduktion till AWS Boto i Python

Förstå SNS

SNS

Introduktion till AWS Boto i Python

Förstå SNS

SNS

Introduktion till AWS Boto i Python

Förstå SNS

SNS

Introduktion till AWS Boto i Python

Förstå SNS

SNS

Introduktion till AWS Boto i Python

Förstå SNS

SNS

Introduktion till AWS Boto i Python

Förstå SNS

SNS

Introduktion till AWS Boto i Python

Komma åt SNS

SNS

Introduktion till AWS Boto i Python

SNS Dashboard

SNS Dashboard

Introduktion till AWS Boto i Python

SNS Topics

SNS Topics

Introduktion till AWS Boto i Python

SNS Topics

SNS Topics

Introduktion till AWS Boto i Python

Skapa ett SNS Topic

sns = boto3.client('sns', 
                   region_name='us-east-1', 
                   aws_access_key_id=AWS_KEY_ID,                   
                   aws_secret_access_key=AWS_SECRET)
Introduktion till AWS Boto i Python

Skapa ett SNS Topic

response = sns.create_topic(Name='city_alerts')
Introduktion till AWS Boto i Python

Skapa ett SNS Topic

Skapa ett SNS topic

Introduktion till AWS Boto i Python

Skapa ett SNS Topic

topic_arn = response['TopicArn']

Eller... en genväg

sns.create_topic(Name='city_alerts')['TopicArn']
Introduktion till AWS Boto i Python

Skapa ett SNS Topic

Skapa ett SNS topic

Introduktion till AWS Boto i Python

Behörigheter

Behörigheter

Introduktion till AWS Boto i Python

Lista topics

response = sns.list_topics()
Introduktion till AWS Boto i Python

Lista topics

Lista topics

Introduktion till AWS Boto i Python

Ta bort topics

sns.delete_topic(TopicArn='arn:aws:sns:us-east-1:320333787981:city_alerts')
Introduktion till AWS Boto i Python

Repetition

SNS-översikt

Introduktion till AWS Boto i Python

Repetition

Skapa SNS-klient

sns = boto3.client('sns', 
                   region_name='us-east-1', 
                   aws_access_key_id=AWS_KEY_ID,                   
                   aws_secret_access_key=AWS_SECRET)

Skapa ett topic

response = sns.create_topic(Name='city_alerts')
topic_arn = response['TopicArn']
Introduktion till AWS Boto i Python

Repetition

Lista topics

response = sns.list_topics()
topics = response['Topics']

Ta bort ett topic

sns.delete_topic(TopicArn='arn:aws:sns:us-east-1:320333787981:city_alerts')
Introduktion till AWS Boto i Python

Nu kör vi en övning!

Introduktion till AWS Boto i Python

Preparing Video For Download...