1. Packages
  2. Scaleway
  3. API Docs
  4. MnqSnsTopicSubscription
Scaleway v1.20.0 published on Monday, Nov 4, 2024 by pulumiverse

scaleway.MnqSnsTopicSubscription

Explore with Pulumi AI

scaleway logo
Scaleway v1.20.0 published on Monday, Nov 4, 2024 by pulumiverse

    Manages Scaleway Messaging and Queuing SNS topic subscriptions. For further information, see our main documentation.

    Example Usage

    Basic

    import * as pulumi from "@pulumi/pulumi";
    import * as scaleway from "@pulumiverse/scaleway";
    
    // For default project in default region
    const main = new scaleway.MnqSns("main", {});
    const mainMnqSnsCredentials = new scaleway.MnqSnsCredentials("main", {
        projectId: main.projectId,
        permissions: {
            canManage: true,
            canPublish: true,
            canReceive: true,
        },
    });
    const topic = new scaleway.MnqSnsTopic("topic", {
        projectId: main.projectId,
        name: "my-topic",
        accessKey: mainMnqSnsCredentials.accessKey,
        secretKey: mainMnqSnsCredentials.secretKey,
    });
    const mainMnqSnsTopicSubscription = new scaleway.MnqSnsTopicSubscription("main", {
        projectId: main.projectId,
        accessKey: mainMnqSnsCredentials.accessKey,
        secretKey: mainMnqSnsCredentials.secretKey,
        topicId: topic.id,
        protocol: "http",
        endpoint: "http://example.com",
    });
    
    import pulumi
    import pulumiverse_scaleway as scaleway
    
    # For default project in default region
    main = scaleway.MnqSns("main")
    main_mnq_sns_credentials = scaleway.MnqSnsCredentials("main",
        project_id=main.project_id,
        permissions={
            "can_manage": True,
            "can_publish": True,
            "can_receive": True,
        })
    topic = scaleway.MnqSnsTopic("topic",
        project_id=main.project_id,
        name="my-topic",
        access_key=main_mnq_sns_credentials.access_key,
        secret_key=main_mnq_sns_credentials.secret_key)
    main_mnq_sns_topic_subscription = scaleway.MnqSnsTopicSubscription("main",
        project_id=main.project_id,
        access_key=main_mnq_sns_credentials.access_key,
        secret_key=main_mnq_sns_credentials.secret_key,
        topic_id=topic.id,
        protocol="http",
        endpoint="http://example.com")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		// For default project in default region
    		main, err := scaleway.NewMnqSns(ctx, "main", nil)
    		if err != nil {
    			return err
    		}
    		mainMnqSnsCredentials, err := scaleway.NewMnqSnsCredentials(ctx, "main", &scaleway.MnqSnsCredentialsArgs{
    			ProjectId: main.ProjectId,
    			Permissions: &scaleway.MnqSnsCredentialsPermissionsArgs{
    				CanManage:  pulumi.Bool(true),
    				CanPublish: pulumi.Bool(true),
    				CanReceive: pulumi.Bool(true),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		topic, err := scaleway.NewMnqSnsTopic(ctx, "topic", &scaleway.MnqSnsTopicArgs{
    			ProjectId: main.ProjectId,
    			Name:      pulumi.String("my-topic"),
    			AccessKey: mainMnqSnsCredentials.AccessKey,
    			SecretKey: mainMnqSnsCredentials.SecretKey,
    		})
    		if err != nil {
    			return err
    		}
    		_, err = scaleway.NewMnqSnsTopicSubscription(ctx, "main", &scaleway.MnqSnsTopicSubscriptionArgs{
    			ProjectId: main.ProjectId,
    			AccessKey: mainMnqSnsCredentials.AccessKey,
    			SecretKey: mainMnqSnsCredentials.SecretKey,
    			TopicId:   topic.ID(),
    			Protocol:  pulumi.String("http"),
    			Endpoint:  pulumi.String("http://example.com"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Scaleway = Pulumiverse.Scaleway;
    
    return await Deployment.RunAsync(() => 
    {
        // For default project in default region
        var main = new Scaleway.MnqSns("main");
    
        var mainMnqSnsCredentials = new Scaleway.MnqSnsCredentials("main", new()
        {
            ProjectId = main.ProjectId,
            Permissions = new Scaleway.Inputs.MnqSnsCredentialsPermissionsArgs
            {
                CanManage = true,
                CanPublish = true,
                CanReceive = true,
            },
        });
    
        var topic = new Scaleway.MnqSnsTopic("topic", new()
        {
            ProjectId = main.ProjectId,
            Name = "my-topic",
            AccessKey = mainMnqSnsCredentials.AccessKey,
            SecretKey = mainMnqSnsCredentials.SecretKey,
        });
    
        var mainMnqSnsTopicSubscription = new Scaleway.MnqSnsTopicSubscription("main", new()
        {
            ProjectId = main.ProjectId,
            AccessKey = mainMnqSnsCredentials.AccessKey,
            SecretKey = mainMnqSnsCredentials.SecretKey,
            TopicId = topic.Id,
            Protocol = "http",
            Endpoint = "http://example.com",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.scaleway.MnqSns;
    import com.pulumi.scaleway.MnqSnsCredentials;
    import com.pulumi.scaleway.MnqSnsCredentialsArgs;
    import com.pulumi.scaleway.inputs.MnqSnsCredentialsPermissionsArgs;
    import com.pulumi.scaleway.MnqSnsTopic;
    import com.pulumi.scaleway.MnqSnsTopicArgs;
    import com.pulumi.scaleway.MnqSnsTopicSubscription;
    import com.pulumi.scaleway.MnqSnsTopicSubscriptionArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            // For default project in default region
            var main = new MnqSns("main");
    
            var mainMnqSnsCredentials = new MnqSnsCredentials("mainMnqSnsCredentials", MnqSnsCredentialsArgs.builder()
                .projectId(main.projectId())
                .permissions(MnqSnsCredentialsPermissionsArgs.builder()
                    .canManage(true)
                    .canPublish(true)
                    .canReceive(true)
                    .build())
                .build());
    
            var topic = new MnqSnsTopic("topic", MnqSnsTopicArgs.builder()
                .projectId(main.projectId())
                .name("my-topic")
                .accessKey(mainMnqSnsCredentials.accessKey())
                .secretKey(mainMnqSnsCredentials.secretKey())
                .build());
    
            var mainMnqSnsTopicSubscription = new MnqSnsTopicSubscription("mainMnqSnsTopicSubscription", MnqSnsTopicSubscriptionArgs.builder()
                .projectId(main.projectId())
                .accessKey(mainMnqSnsCredentials.accessKey())
                .secretKey(mainMnqSnsCredentials.secretKey())
                .topicId(topic.id())
                .protocol("http")
                .endpoint("http://example.com")
                .build());
    
        }
    }
    
    resources:
      # For default project in default region
      main:
        type: scaleway:MnqSns
      mainMnqSnsCredentials:
        type: scaleway:MnqSnsCredentials
        name: main
        properties:
          projectId: ${main.projectId}
          permissions:
            canManage: true
            canPublish: true
            canReceive: true
      topic:
        type: scaleway:MnqSnsTopic
        properties:
          projectId: ${main.projectId}
          name: my-topic
          accessKey: ${mainMnqSnsCredentials.accessKey}
          secretKey: ${mainMnqSnsCredentials.secretKey}
      mainMnqSnsTopicSubscription:
        type: scaleway:MnqSnsTopicSubscription
        name: main
        properties:
          projectId: ${main.projectId}
          accessKey: ${mainMnqSnsCredentials.accessKey}
          secretKey: ${mainMnqSnsCredentials.secretKey}
          topicId: ${topic.id}
          protocol: http
          endpoint: http://example.com
    

    Create MnqSnsTopicSubscription Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new MnqSnsTopicSubscription(name: string, args: MnqSnsTopicSubscriptionArgs, opts?: CustomResourceOptions);
    @overload
    def MnqSnsTopicSubscription(resource_name: str,
                                args: MnqSnsTopicSubscriptionArgs,
                                opts: Optional[ResourceOptions] = None)
    
    @overload
    def MnqSnsTopicSubscription(resource_name: str,
                                opts: Optional[ResourceOptions] = None,
                                access_key: Optional[str] = None,
                                protocol: Optional[str] = None,
                                secret_key: Optional[str] = None,
                                endpoint: Optional[str] = None,
                                project_id: Optional[str] = None,
                                redrive_policy: Optional[bool] = None,
                                region: Optional[str] = None,
                                sns_endpoint: Optional[str] = None,
                                topic_arn: Optional[str] = None,
                                topic_id: Optional[str] = None)
    func NewMnqSnsTopicSubscription(ctx *Context, name string, args MnqSnsTopicSubscriptionArgs, opts ...ResourceOption) (*MnqSnsTopicSubscription, error)
    public MnqSnsTopicSubscription(string name, MnqSnsTopicSubscriptionArgs args, CustomResourceOptions? opts = null)
    public MnqSnsTopicSubscription(String name, MnqSnsTopicSubscriptionArgs args)
    public MnqSnsTopicSubscription(String name, MnqSnsTopicSubscriptionArgs args, CustomResourceOptions options)
    
    type: scaleway:MnqSnsTopicSubscription
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args MnqSnsTopicSubscriptionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args MnqSnsTopicSubscriptionArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args MnqSnsTopicSubscriptionArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args MnqSnsTopicSubscriptionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args MnqSnsTopicSubscriptionArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var mnqSnsTopicSubscriptionResource = new Scaleway.MnqSnsTopicSubscription("mnqSnsTopicSubscriptionResource", new()
    {
        AccessKey = "string",
        Protocol = "string",
        SecretKey = "string",
        Endpoint = "string",
        ProjectId = "string",
        RedrivePolicy = false,
        Region = "string",
        SnsEndpoint = "string",
        TopicArn = "string",
        TopicId = "string",
    });
    
    example, err := scaleway.NewMnqSnsTopicSubscription(ctx, "mnqSnsTopicSubscriptionResource", &scaleway.MnqSnsTopicSubscriptionArgs{
    	AccessKey:     pulumi.String("string"),
    	Protocol:      pulumi.String("string"),
    	SecretKey:     pulumi.String("string"),
    	Endpoint:      pulumi.String("string"),
    	ProjectId:     pulumi.String("string"),
    	RedrivePolicy: pulumi.Bool(false),
    	Region:        pulumi.String("string"),
    	SnsEndpoint:   pulumi.String("string"),
    	TopicArn:      pulumi.String("string"),
    	TopicId:       pulumi.String("string"),
    })
    
    var mnqSnsTopicSubscriptionResource = new MnqSnsTopicSubscription("mnqSnsTopicSubscriptionResource", MnqSnsTopicSubscriptionArgs.builder()
        .accessKey("string")
        .protocol("string")
        .secretKey("string")
        .endpoint("string")
        .projectId("string")
        .redrivePolicy(false)
        .region("string")
        .snsEndpoint("string")
        .topicArn("string")
        .topicId("string")
        .build());
    
    mnq_sns_topic_subscription_resource = scaleway.MnqSnsTopicSubscription("mnqSnsTopicSubscriptionResource",
        access_key="string",
        protocol="string",
        secret_key="string",
        endpoint="string",
        project_id="string",
        redrive_policy=False,
        region="string",
        sns_endpoint="string",
        topic_arn="string",
        topic_id="string")
    
    const mnqSnsTopicSubscriptionResource = new scaleway.MnqSnsTopicSubscription("mnqSnsTopicSubscriptionResource", {
        accessKey: "string",
        protocol: "string",
        secretKey: "string",
        endpoint: "string",
        projectId: "string",
        redrivePolicy: false,
        region: "string",
        snsEndpoint: "string",
        topicArn: "string",
        topicId: "string",
    });
    
    type: scaleway:MnqSnsTopicSubscription
    properties:
        accessKey: string
        endpoint: string
        projectId: string
        protocol: string
        redrivePolicy: false
        region: string
        secretKey: string
        snsEndpoint: string
        topicArn: string
        topicId: string
    

    MnqSnsTopicSubscription Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The MnqSnsTopicSubscription resource accepts the following input properties:

    AccessKey string
    The access key of the SNS credentials.
    Protocol string
    Protocol of the SNS topic subscription.
    SecretKey string
    The secret key of the SNS credentials.
    Endpoint string
    Endpoint of the subscription
    ProjectId string
    project_id) The ID of the Project in which SNS is enabled.
    RedrivePolicy bool
    Activate JSON redrive policy.
    Region string
    region). The region in which SNS is enabled.
    SnsEndpoint string
    The endpoint of the SNS service. Can contain a {region} placeholder. Defaults to https://sns.mnq.{region}.scaleway.com.
    TopicArn string
    The ARN of the topic. Either topic_id or topic_arn is required.
    TopicId string
    The ID of the topic. Either topic_id or topic_arn is required. Conflicts with topic_arn.
    AccessKey string
    The access key of the SNS credentials.
    Protocol string
    Protocol of the SNS topic subscription.
    SecretKey string
    The secret key of the SNS credentials.
    Endpoint string
    Endpoint of the subscription
    ProjectId string
    project_id) The ID of the Project in which SNS is enabled.
    RedrivePolicy bool
    Activate JSON redrive policy.
    Region string
    region). The region in which SNS is enabled.
    SnsEndpoint string
    The endpoint of the SNS service. Can contain a {region} placeholder. Defaults to https://sns.mnq.{region}.scaleway.com.
    TopicArn string
    The ARN of the topic. Either topic_id or topic_arn is required.
    TopicId string
    The ID of the topic. Either topic_id or topic_arn is required. Conflicts with topic_arn.
    accessKey String
    The access key of the SNS credentials.
    protocol String
    Protocol of the SNS topic subscription.
    secretKey String
    The secret key of the SNS credentials.
    endpoint String
    Endpoint of the subscription
    projectId String
    project_id) The ID of the Project in which SNS is enabled.
    redrivePolicy Boolean
    Activate JSON redrive policy.
    region String
    region). The region in which SNS is enabled.
    snsEndpoint String
    The endpoint of the SNS service. Can contain a {region} placeholder. Defaults to https://sns.mnq.{region}.scaleway.com.
    topicArn String
    The ARN of the topic. Either topic_id or topic_arn is required.
    topicId String
    The ID of the topic. Either topic_id or topic_arn is required. Conflicts with topic_arn.
    accessKey string
    The access key of the SNS credentials.
    protocol string
    Protocol of the SNS topic subscription.
    secretKey string
    The secret key of the SNS credentials.
    endpoint string
    Endpoint of the subscription
    projectId string
    project_id) The ID of the Project in which SNS is enabled.
    redrivePolicy boolean
    Activate JSON redrive policy.
    region string
    region). The region in which SNS is enabled.
    snsEndpoint string
    The endpoint of the SNS service. Can contain a {region} placeholder. Defaults to https://sns.mnq.{region}.scaleway.com.
    topicArn string
    The ARN of the topic. Either topic_id or topic_arn is required.
    topicId string
    The ID of the topic. Either topic_id or topic_arn is required. Conflicts with topic_arn.
    access_key str
    The access key of the SNS credentials.
    protocol str
    Protocol of the SNS topic subscription.
    secret_key str
    The secret key of the SNS credentials.
    endpoint str
    Endpoint of the subscription
    project_id str
    project_id) The ID of the Project in which SNS is enabled.
    redrive_policy bool
    Activate JSON redrive policy.
    region str
    region). The region in which SNS is enabled.
    sns_endpoint str
    The endpoint of the SNS service. Can contain a {region} placeholder. Defaults to https://sns.mnq.{region}.scaleway.com.
    topic_arn str
    The ARN of the topic. Either topic_id or topic_arn is required.
    topic_id str
    The ID of the topic. Either topic_id or topic_arn is required. Conflicts with topic_arn.
    accessKey String
    The access key of the SNS credentials.
    protocol String
    Protocol of the SNS topic subscription.
    secretKey String
    The secret key of the SNS credentials.
    endpoint String
    Endpoint of the subscription
    projectId String
    project_id) The ID of the Project in which SNS is enabled.
    redrivePolicy Boolean
    Activate JSON redrive policy.
    region String
    region). The region in which SNS is enabled.
    snsEndpoint String
    The endpoint of the SNS service. Can contain a {region} placeholder. Defaults to https://sns.mnq.{region}.scaleway.com.
    topicArn String
    The ARN of the topic. Either topic_id or topic_arn is required.
    topicId String
    The ID of the topic. Either topic_id or topic_arn is required. Conflicts with topic_arn.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the MnqSnsTopicSubscription resource produces the following output properties:

    Arn string
    The ARN of the topic subscription
    Id string
    The provider-assigned unique ID for this managed resource.
    Arn string
    The ARN of the topic subscription
    Id string
    The provider-assigned unique ID for this managed resource.
    arn String
    The ARN of the topic subscription
    id String
    The provider-assigned unique ID for this managed resource.
    arn string
    The ARN of the topic subscription
    id string
    The provider-assigned unique ID for this managed resource.
    arn str
    The ARN of the topic subscription
    id str
    The provider-assigned unique ID for this managed resource.
    arn String
    The ARN of the topic subscription
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing MnqSnsTopicSubscription Resource

    Get an existing MnqSnsTopicSubscription resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: MnqSnsTopicSubscriptionState, opts?: CustomResourceOptions): MnqSnsTopicSubscription
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            access_key: Optional[str] = None,
            arn: Optional[str] = None,
            endpoint: Optional[str] = None,
            project_id: Optional[str] = None,
            protocol: Optional[str] = None,
            redrive_policy: Optional[bool] = None,
            region: Optional[str] = None,
            secret_key: Optional[str] = None,
            sns_endpoint: Optional[str] = None,
            topic_arn: Optional[str] = None,
            topic_id: Optional[str] = None) -> MnqSnsTopicSubscription
    func GetMnqSnsTopicSubscription(ctx *Context, name string, id IDInput, state *MnqSnsTopicSubscriptionState, opts ...ResourceOption) (*MnqSnsTopicSubscription, error)
    public static MnqSnsTopicSubscription Get(string name, Input<string> id, MnqSnsTopicSubscriptionState? state, CustomResourceOptions? opts = null)
    public static MnqSnsTopicSubscription get(String name, Output<String> id, MnqSnsTopicSubscriptionState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AccessKey string
    The access key of the SNS credentials.
    Arn string
    The ARN of the topic subscription
    Endpoint string
    Endpoint of the subscription
    ProjectId string
    project_id) The ID of the Project in which SNS is enabled.
    Protocol string
    Protocol of the SNS topic subscription.
    RedrivePolicy bool
    Activate JSON redrive policy.
    Region string
    region). The region in which SNS is enabled.
    SecretKey string
    The secret key of the SNS credentials.
    SnsEndpoint string
    The endpoint of the SNS service. Can contain a {region} placeholder. Defaults to https://sns.mnq.{region}.scaleway.com.
    TopicArn string
    The ARN of the topic. Either topic_id or topic_arn is required.
    TopicId string
    The ID of the topic. Either topic_id or topic_arn is required. Conflicts with topic_arn.
    AccessKey string
    The access key of the SNS credentials.
    Arn string
    The ARN of the topic subscription
    Endpoint string
    Endpoint of the subscription
    ProjectId string
    project_id) The ID of the Project in which SNS is enabled.
    Protocol string
    Protocol of the SNS topic subscription.
    RedrivePolicy bool
    Activate JSON redrive policy.
    Region string
    region). The region in which SNS is enabled.
    SecretKey string
    The secret key of the SNS credentials.
    SnsEndpoint string
    The endpoint of the SNS service. Can contain a {region} placeholder. Defaults to https://sns.mnq.{region}.scaleway.com.
    TopicArn string
    The ARN of the topic. Either topic_id or topic_arn is required.
    TopicId string
    The ID of the topic. Either topic_id or topic_arn is required. Conflicts with topic_arn.
    accessKey String
    The access key of the SNS credentials.
    arn String
    The ARN of the topic subscription
    endpoint String
    Endpoint of the subscription
    projectId String
    project_id) The ID of the Project in which SNS is enabled.
    protocol String
    Protocol of the SNS topic subscription.
    redrivePolicy Boolean
    Activate JSON redrive policy.
    region String
    region). The region in which SNS is enabled.
    secretKey String
    The secret key of the SNS credentials.
    snsEndpoint String
    The endpoint of the SNS service. Can contain a {region} placeholder. Defaults to https://sns.mnq.{region}.scaleway.com.
    topicArn String
    The ARN of the topic. Either topic_id or topic_arn is required.
    topicId String
    The ID of the topic. Either topic_id or topic_arn is required. Conflicts with topic_arn.
    accessKey string
    The access key of the SNS credentials.
    arn string
    The ARN of the topic subscription
    endpoint string
    Endpoint of the subscription
    projectId string
    project_id) The ID of the Project in which SNS is enabled.
    protocol string
    Protocol of the SNS topic subscription.
    redrivePolicy boolean
    Activate JSON redrive policy.
    region string
    region). The region in which SNS is enabled.
    secretKey string
    The secret key of the SNS credentials.
    snsEndpoint string
    The endpoint of the SNS service. Can contain a {region} placeholder. Defaults to https://sns.mnq.{region}.scaleway.com.
    topicArn string
    The ARN of the topic. Either topic_id or topic_arn is required.
    topicId string
    The ID of the topic. Either topic_id or topic_arn is required. Conflicts with topic_arn.
    access_key str
    The access key of the SNS credentials.
    arn str
    The ARN of the topic subscription
    endpoint str
    Endpoint of the subscription
    project_id str
    project_id) The ID of the Project in which SNS is enabled.
    protocol str
    Protocol of the SNS topic subscription.
    redrive_policy bool
    Activate JSON redrive policy.
    region str
    region). The region in which SNS is enabled.
    secret_key str
    The secret key of the SNS credentials.
    sns_endpoint str
    The endpoint of the SNS service. Can contain a {region} placeholder. Defaults to https://sns.mnq.{region}.scaleway.com.
    topic_arn str
    The ARN of the topic. Either topic_id or topic_arn is required.
    topic_id str
    The ID of the topic. Either topic_id or topic_arn is required. Conflicts with topic_arn.
    accessKey String
    The access key of the SNS credentials.
    arn String
    The ARN of the topic subscription
    endpoint String
    Endpoint of the subscription
    projectId String
    project_id) The ID of the Project in which SNS is enabled.
    protocol String
    Protocol of the SNS topic subscription.
    redrivePolicy Boolean
    Activate JSON redrive policy.
    region String
    region). The region in which SNS is enabled.
    secretKey String
    The secret key of the SNS credentials.
    snsEndpoint String
    The endpoint of the SNS service. Can contain a {region} placeholder. Defaults to https://sns.mnq.{region}.scaleway.com.
    topicArn String
    The ARN of the topic. Either topic_id or topic_arn is required.
    topicId String
    The ID of the topic. Either topic_id or topic_arn is required. Conflicts with topic_arn.

    Import

    SNS topic subscriptions can be imported using {region}/{project-id}/{topic-name}/{subscription-id}, e.g.

    bash

    $ pulumi import scaleway:index/mnqSnsTopicSubscription:MnqSnsTopicSubscription main fr-par/11111111111111111111111111111111/my-topic/11111111111111111111111111111111
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    scaleway pulumiverse/pulumi-scaleway
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the scaleway Terraform Provider.
    scaleway logo
    Scaleway v1.20.0 published on Monday, Nov 4, 2024 by pulumiverse