Sujets SNS

Introduction à AWS Boto en Python

Maksim Pecherskiy

Data Engineer!

SNS

SNS

Introduction à AWS Boto en Python

Comprendre SNS

SNS

Introduction à AWS Boto en Python

Comprendre SNS

SNS

Introduction à AWS Boto en Python

Comprendre SNS

SNS

Introduction à AWS Boto en Python

Comprendre SNS

SNS

Introduction à AWS Boto en Python

Comprendre SNS

SNS

Introduction à AWS Boto en Python

Comprendre SNS

SNS

Introduction à AWS Boto en Python

Accéder à SNS

SNS

Introduction à AWS Boto en Python

Tableau de bord SNS

Tableau de bord SNS

Introduction à AWS Boto en Python

Sujets SNS

Sujets SNS

Introduction à AWS Boto en Python

Sujets SNS

Sujets SNS

Introduction à AWS Boto en Python

Créer un sujet SNS

sns = boto3.client('sns', 
                   region_name='us-east-1', 
                   aws_access_key_id=AWS_KEY_ID,                   
                   aws_secret_access_key=AWS_SECRET)
Introduction à AWS Boto en Python

Créer un sujet SNS

response = sns.create_topic(Name='city_alerts')
Introduction à AWS Boto en Python

Créer un sujet SNS

Créer un sujet SNS

Introduction à AWS Boto en Python

Créer un sujet SNS

topic_arn = response['TopicArn']

Ou… un raccourci

sns.create_topic(Name='city_alerts')['TopicArn']
Introduction à AWS Boto en Python

Créer un sujet SNS

Créer un sujet SNS

Introduction à AWS Boto en Python

Autorisations

Autorisations

Introduction à AWS Boto en Python

Lister les sujets

response = sns.list_topics()
Introduction à AWS Boto en Python

Lister les sujets

Lister les sujets

Introduction à AWS Boto en Python

Supprimer des sujets

sns.delete_topic(TopicArn='arn:aws:sns:us-east-1:320333787981:city_alerts')
Introduction à AWS Boto en Python

Récapitulatif

Aperçu de SNS

Introduction à AWS Boto en Python

Récapitulatif

Créer un client SNS

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

Créer un sujet

response = sns.create_topic(Name='city_alerts')
topic_arn = response['TopicArn']
Introduction à AWS Boto en Python

Récapitulatif

Lister les sujets

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

Supprimer un sujet

sns.delete_topic(TopicArn='arn:aws:sns:us-east-1:320333787981:city_alerts')
Introduction à AWS Boto en Python

Passons à la pratique !

Introduction à AWS Boto en Python

Preparing Video For Download...