You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pages/topics-and-events/api-cli/python-node-topics-events.mdx
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -63,7 +63,7 @@ func main() {
63
63
64
64
Once connected, you can use any of the SDK's available functions. Be aware though that some functions are not [supported by Scaleway Topics and Events](/topics-and-events/reference-content/sns-support/), so make sure to check the link for more details on these. See the [official SDK documentation](https://pkg.go.dev/github.com/aws/aws-sdk-go/service/sns) for more information on getting started with the SDK, or keep reading for some code examples.
Be careful: messages sent to topics with no subscriptions are automatically deleted
77
+
Be careful: messages sent to topics with no subscriptions are automatically deleted.
78
78
79
79
```go
80
80
fori:=0; i < 10; i++ {
@@ -162,9 +162,9 @@ sns = boto3.resource('sns',
162
162
The `endpoint_url` for Scaleway Topics and Events (based on SNS) is `https://sns.mnq.fr-par.scaleway.com`. The values for the access and secret keys should be the credentials you [generated](/topics-and-events/how-to/create-credentials/) for Topics and Events.
163
163
</Message>
164
164
165
-
Once connected to, you can use any of the SDK's available functions. However, some functions are not [supported by ScalewayTopics and Events](/topics-and-events/reference-content/sns-support/), so do check the link to make sure. See the [official SDK documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/index.html) for more information, or keep reading for some code examples.
165
+
Once connected, you can use any of the SDK's available functions. However, some functions are not [supported by ScalewayTopics and Events](/topics-and-events/reference-content/sns-support/), so do check the link to make sure. See the [official SDK documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/index.html) for more information, or keep reading for some code examples.
166
166
167
-
### Createtopic (Python)
167
+
### Createa topic (Python)
168
168
169
169
```python
170
170
# Create a topic. This returns an SNS.Topic instance
@@ -175,7 +175,7 @@ print(topic.attributes)
175
175
176
176
### Publish messages to this topic (Python)
177
177
178
-
Be careful: messages sent to topics with no subscriptions are automatically deleted
178
+
Be careful: messages sent to topics with no subscriptions are automatically deleted.
179
179
180
180
```python
181
181
for i in range (0,10):
@@ -281,7 +281,7 @@ var snsClient = new SNSClient({
281
281
282
282
Once connected, you can use any of the SDK's available functions. However, some functions are not [supported by Scaleway Topics and Events](/topics-and-events/reference-content/sns-support), so do check the link to make sure. See the [official SDK documentation](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-sns/) for more information, or keep reading for some code examples.
283
283
284
-
### Create topic (NodeJS)
284
+
### Create a topic (NodeJS)
285
285
286
286
You can find all available parameters for `createTopic` in the [AWS documentation](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-sns/classes/createtopiccommand.html).
0 commit comments