Skip to end of banner
Go to start of banner

Delete Topic

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 15 Current »

In this article

Overview

You can use this Snap to delete a topic in Amazon SNS. See, https://docs.aws.amazon.com/sns/latest/dg/sns-delete-subscription-topic.html for further information.

Prerequisites

Valid AWS Account and SNS access.

Support for Ultra Pipelines

Limitations

None.

Known Issues

The Snap does not generate errors when a non-existing tag is removed.

Snap Input and Output

Input/Output

Type of View

Number of Views

Examples of Upstream and Downstream Snaps

Description

Input 

Document

  • Min: 0

  • Max: 1

  • Mapper

The Region, ARN and other details of the topic.

Output

Document

  • Min: 0

  • Max: 1

  • Copy

The status of the deleted topic is displayed.

Error

Error handling is to have a generic way to handle errors without losing data or failing the Snap execution. You can handle the errors that might arise while running the Pipeline by choosing one of the options from the When errors occur section under the Views tab.

The options available are:

  • Stop Pipeline Execution: Stops the current pipeline execution when an error arises.

  • Discard Error Data and Continue: Ignores an error completely, discard that record, and continue with the rest of the records.

  • Route Error Data to Error View: Routes the data to an error view of the Snap and then decides what to do with the error.

See Error View in Pipeline in examples to understand the Snap error view settings and error output. For more information on the error view and handling error output in a Pipeline, see Error handling in Pipelines.

Snap Settings

Icons used in the interface

  • Asterisk (*) - Mandatory fields.

  • Suggestion icon (blue star) - Suggestible fields and suggestions will be populated based on the account settings.

  • Expression icon (blue star) - Enable when you want to use expressions as field values.

Field Name

Field Dependency

Description

Label*

None

The name for the Snap. You can modify this to be more specific, especially if you have more than one of the same Snap in your Pipeline.

Default Value: N/A
ExampleDelete topic

Region

None

Specify the AWS region where the application is implemented. This is a suggestible field and suggestions will be populated based on the Account settings. If the region field is empty, then the Snap evaluates the region in the following sequence:
Topic Arn or Subscription ARN and the region of the EC2 instance.

It is a best practice to provide the value for Region field.

Default Value: N/A
Exampleus-east-1, us-west-1

Topic Arn*

None

Specify the Amazon Resource Name of the topic. This is a suggestible field and suggestions will be populated based on the Account settings.

Default Value: N/A
ExampleTopic 1

Snap Execution

Select one of the three modes in which the Snap executes. Available options are:

  • Validate & Execute: Performs limited execution of the Snap, and generates a data preview during Pipeline validation. Subsequently, performs full execution of the Snap (unlimited records) during Pipeline runtime.

  • Execute only: Performs full execution of the Snap during Pipeline execution without generating preview data.

  • Disabled: Disables the Snap and all Snaps that are downstream from it.

Default valueExecute only
ExampleValidate & Execute

Troubleshooting

Error

Reason

Resolution

An error occurred while creating a topic with the given topic name in AWS SNS.

 Valid information might be missing.

Please check the input data, formats and try again

One or more pipeline parameters are given in the account

Validation is not applicable for pipeline parameters

Please do not validate the account if pipeline parameters are provided

Access denied by the SNS service

Invalid credentials for AWS SNS.

Please provide valid credentials.

Examples

In this example, we create a topic with the Mapper Snap and the Create Topic Snap and then delete the topic by giving its Topic Arn.

In the following Mapper Snap, the topic name and other details are provided. A topic name and the topic details are given as inputs to the Create Topic Snap. The Mapper Snap is configured with the following details and output view is displayed is as follows:

After the Mapper Snap, the Create Topic Snap is configured with the following attributes and tag attributes. The output view of the Snap is displayed as follows:

After creating the topic, the Delete Topic Snap is used to delete the topic by giving the topic Arn. The Snap settings and the output view of the Snap are displayed as follows:

Downloads

Important steps to successfully reuse Pipelines

  1. Download and import the Pipeline into SnapLogic.
  2. Configure Snap accounts as applicable.
  3. Provide Pipeline parameters as applicable.

  File Modified
You are not logged in. Any changes you make will be marked as anonymous. You may want to Log In if you already have an account.
No files shared here yet.
  • Drag and drop to upload or browse for files
  • Snap Pack History

    Error rendering macro 'excerpt-include' : No location was provided.


    See Also

    Amazon SNS Snap Pack

    https://docs-snaplogic.atlassian.net/wiki/spaces/SD/pages/1439233/Glossary

    https://docs-snaplogic.atlassian.net/wiki/spaces/SD/pages/1438341/Getting+Started

    https://docs-snaplogic.atlassian.net/wiki/spaces/SD/pages/1439233/Glossary

    • No labels