Documentation ¶
Index ¶
- type LookupSQSArgs
- type LookupSQSOutputArgs
- type LookupSQSResult
- type LookupSQSResultOutput
- func (LookupSQSResultOutput) ElementType() reflect.Type
- func (o LookupSQSResultOutput) Endpoint() pulumi.StringOutput
- func (o LookupSQSResultOutput) Id() pulumi.StringOutput
- func (o LookupSQSResultOutput) ProjectId() pulumi.StringPtrOutput
- func (o LookupSQSResultOutput) Region() pulumi.StringPtrOutput
- func (o LookupSQSResultOutput) ToLookupSQSResultOutput() LookupSQSResultOutput
- func (o LookupSQSResultOutput) ToLookupSQSResultOutputWithContext(ctx context.Context) LookupSQSResultOutput
- type NATSAccount
- type NATSAccountArgs
- type NATSAccountArray
- type NATSAccountArrayInput
- type NATSAccountArrayOutput
- func (NATSAccountArrayOutput) ElementType() reflect.Type
- func (o NATSAccountArrayOutput) Index(i pulumi.IntInput) NATSAccountOutput
- func (o NATSAccountArrayOutput) ToNATSAccountArrayOutput() NATSAccountArrayOutput
- func (o NATSAccountArrayOutput) ToNATSAccountArrayOutputWithContext(ctx context.Context) NATSAccountArrayOutput
- type NATSAccountInput
- type NATSAccountMap
- type NATSAccountMapInput
- type NATSAccountMapOutput
- func (NATSAccountMapOutput) ElementType() reflect.Type
- func (o NATSAccountMapOutput) MapIndex(k pulumi.StringInput) NATSAccountOutput
- func (o NATSAccountMapOutput) ToNATSAccountMapOutput() NATSAccountMapOutput
- func (o NATSAccountMapOutput) ToNATSAccountMapOutputWithContext(ctx context.Context) NATSAccountMapOutput
- type NATSAccountOutput
- func (NATSAccountOutput) ElementType() reflect.Type
- func (o NATSAccountOutput) Endpoint() pulumi.StringOutput
- func (o NATSAccountOutput) Name() pulumi.StringOutput
- func (o NATSAccountOutput) ProjectId() pulumi.StringOutput
- func (o NATSAccountOutput) Region() pulumi.StringOutput
- func (o NATSAccountOutput) ToNATSAccountOutput() NATSAccountOutput
- func (o NATSAccountOutput) ToNATSAccountOutputWithContext(ctx context.Context) NATSAccountOutput
- type NATSAccountState
- type NATSCredentials
- type NATSCredentialsArgs
- type NATSCredentialsArray
- type NATSCredentialsArrayInput
- type NATSCredentialsArrayOutput
- func (NATSCredentialsArrayOutput) ElementType() reflect.Type
- func (o NATSCredentialsArrayOutput) Index(i pulumi.IntInput) NATSCredentialsOutput
- func (o NATSCredentialsArrayOutput) ToNATSCredentialsArrayOutput() NATSCredentialsArrayOutput
- func (o NATSCredentialsArrayOutput) ToNATSCredentialsArrayOutputWithContext(ctx context.Context) NATSCredentialsArrayOutput
- type NATSCredentialsInput
- type NATSCredentialsMap
- type NATSCredentialsMapInput
- type NATSCredentialsMapOutput
- func (NATSCredentialsMapOutput) ElementType() reflect.Type
- func (o NATSCredentialsMapOutput) MapIndex(k pulumi.StringInput) NATSCredentialsOutput
- func (o NATSCredentialsMapOutput) ToNATSCredentialsMapOutput() NATSCredentialsMapOutput
- func (o NATSCredentialsMapOutput) ToNATSCredentialsMapOutputWithContext(ctx context.Context) NATSCredentialsMapOutput
- type NATSCredentialsOutput
- func (o NATSCredentialsOutput) AccountId() pulumi.StringOutput
- func (NATSCredentialsOutput) ElementType() reflect.Type
- func (o NATSCredentialsOutput) File() pulumi.StringOutput
- func (o NATSCredentialsOutput) Name() pulumi.StringOutput
- func (o NATSCredentialsOutput) Region() pulumi.StringOutput
- func (o NATSCredentialsOutput) ToNATSCredentialsOutput() NATSCredentialsOutput
- func (o NATSCredentialsOutput) ToNATSCredentialsOutputWithContext(ctx context.Context) NATSCredentialsOutput
- type NATSCredentialsState
- type SNS
- type SNSArgs
- type SNSArray
- type SNSArrayInput
- type SNSArrayOutput
- type SNSCredentials
- type SNSCredentialsArgs
- type SNSCredentialsArray
- type SNSCredentialsArrayInput
- type SNSCredentialsArrayOutput
- func (SNSCredentialsArrayOutput) ElementType() reflect.Type
- func (o SNSCredentialsArrayOutput) Index(i pulumi.IntInput) SNSCredentialsOutput
- func (o SNSCredentialsArrayOutput) ToSNSCredentialsArrayOutput() SNSCredentialsArrayOutput
- func (o SNSCredentialsArrayOutput) ToSNSCredentialsArrayOutputWithContext(ctx context.Context) SNSCredentialsArrayOutput
- type SNSCredentialsInput
- type SNSCredentialsMap
- type SNSCredentialsMapInput
- type SNSCredentialsMapOutput
- func (SNSCredentialsMapOutput) ElementType() reflect.Type
- func (o SNSCredentialsMapOutput) MapIndex(k pulumi.StringInput) SNSCredentialsOutput
- func (o SNSCredentialsMapOutput) ToSNSCredentialsMapOutput() SNSCredentialsMapOutput
- func (o SNSCredentialsMapOutput) ToSNSCredentialsMapOutputWithContext(ctx context.Context) SNSCredentialsMapOutput
- type SNSCredentialsOutput
- func (o SNSCredentialsOutput) AccessKey() pulumi.StringOutput
- func (SNSCredentialsOutput) ElementType() reflect.Type
- func (o SNSCredentialsOutput) Name() pulumi.StringOutput
- func (o SNSCredentialsOutput) Permissions() SNSCredentialsPermissionsOutput
- func (o SNSCredentialsOutput) ProjectId() pulumi.StringOutput
- func (o SNSCredentialsOutput) Region() pulumi.StringOutput
- func (o SNSCredentialsOutput) SecretKey() pulumi.StringOutput
- func (o SNSCredentialsOutput) ToSNSCredentialsOutput() SNSCredentialsOutput
- func (o SNSCredentialsOutput) ToSNSCredentialsOutputWithContext(ctx context.Context) SNSCredentialsOutput
- type SNSCredentialsPermissions
- type SNSCredentialsPermissionsArgs
- func (SNSCredentialsPermissionsArgs) ElementType() reflect.Type
- func (i SNSCredentialsPermissionsArgs) ToSNSCredentialsPermissionsOutput() SNSCredentialsPermissionsOutput
- func (i SNSCredentialsPermissionsArgs) ToSNSCredentialsPermissionsOutputWithContext(ctx context.Context) SNSCredentialsPermissionsOutput
- func (i SNSCredentialsPermissionsArgs) ToSNSCredentialsPermissionsPtrOutput() SNSCredentialsPermissionsPtrOutput
- func (i SNSCredentialsPermissionsArgs) ToSNSCredentialsPermissionsPtrOutputWithContext(ctx context.Context) SNSCredentialsPermissionsPtrOutput
- type SNSCredentialsPermissionsInput
- type SNSCredentialsPermissionsOutput
- func (o SNSCredentialsPermissionsOutput) CanManage() pulumi.BoolPtrOutput
- func (o SNSCredentialsPermissionsOutput) CanPublish() pulumi.BoolPtrOutput
- func (o SNSCredentialsPermissionsOutput) CanReceive() pulumi.BoolPtrOutput
- func (SNSCredentialsPermissionsOutput) ElementType() reflect.Type
- func (o SNSCredentialsPermissionsOutput) ToSNSCredentialsPermissionsOutput() SNSCredentialsPermissionsOutput
- func (o SNSCredentialsPermissionsOutput) ToSNSCredentialsPermissionsOutputWithContext(ctx context.Context) SNSCredentialsPermissionsOutput
- func (o SNSCredentialsPermissionsOutput) ToSNSCredentialsPermissionsPtrOutput() SNSCredentialsPermissionsPtrOutput
- func (o SNSCredentialsPermissionsOutput) ToSNSCredentialsPermissionsPtrOutputWithContext(ctx context.Context) SNSCredentialsPermissionsPtrOutput
- type SNSCredentialsPermissionsPtrInput
- type SNSCredentialsPermissionsPtrOutput
- func (o SNSCredentialsPermissionsPtrOutput) CanManage() pulumi.BoolPtrOutput
- func (o SNSCredentialsPermissionsPtrOutput) CanPublish() pulumi.BoolPtrOutput
- func (o SNSCredentialsPermissionsPtrOutput) CanReceive() pulumi.BoolPtrOutput
- func (o SNSCredentialsPermissionsPtrOutput) Elem() SNSCredentialsPermissionsOutput
- func (SNSCredentialsPermissionsPtrOutput) ElementType() reflect.Type
- func (o SNSCredentialsPermissionsPtrOutput) ToSNSCredentialsPermissionsPtrOutput() SNSCredentialsPermissionsPtrOutput
- func (o SNSCredentialsPermissionsPtrOutput) ToSNSCredentialsPermissionsPtrOutputWithContext(ctx context.Context) SNSCredentialsPermissionsPtrOutput
- type SNSCredentialsState
- type SNSInput
- type SNSMap
- type SNSMapInput
- type SNSMapOutput
- type SNSOutput
- func (SNSOutput) ElementType() reflect.Type
- func (o SNSOutput) Endpoint() pulumi.StringOutput
- func (o SNSOutput) ProjectId() pulumi.StringOutput
- func (o SNSOutput) Region() pulumi.StringOutput
- func (o SNSOutput) ToSNSOutput() SNSOutput
- func (o SNSOutput) ToSNSOutputWithContext(ctx context.Context) SNSOutput
- type SNSState
- type SNSTopic
- type SNSTopicArgs
- type SNSTopicArray
- type SNSTopicArrayInput
- type SNSTopicArrayOutput
- type SNSTopicInput
- type SNSTopicMap
- type SNSTopicMapInput
- type SNSTopicMapOutput
- type SNSTopicOutput
- func (o SNSTopicOutput) AccessKey() pulumi.StringOutput
- func (o SNSTopicOutput) Arn() pulumi.StringOutput
- func (o SNSTopicOutput) ContentBasedDeduplication() pulumi.BoolOutput
- func (SNSTopicOutput) ElementType() reflect.Type
- func (o SNSTopicOutput) FifoTopic() pulumi.BoolOutput
- func (o SNSTopicOutput) Name() pulumi.StringOutput
- func (o SNSTopicOutput) NamePrefix() pulumi.StringOutput
- func (o SNSTopicOutput) Owner() pulumi.StringOutput
- func (o SNSTopicOutput) ProjectId() pulumi.StringOutput
- func (o SNSTopicOutput) Region() pulumi.StringOutput
- func (o SNSTopicOutput) SecretKey() pulumi.StringOutput
- func (o SNSTopicOutput) SnsEndpoint() pulumi.StringPtrOutput
- func (o SNSTopicOutput) ToSNSTopicOutput() SNSTopicOutput
- func (o SNSTopicOutput) ToSNSTopicOutputWithContext(ctx context.Context) SNSTopicOutput
- type SNSTopicState
- type SNSTopicSubscription
- type SNSTopicSubscriptionArgs
- type SNSTopicSubscriptionArray
- type SNSTopicSubscriptionArrayInput
- type SNSTopicSubscriptionArrayOutput
- func (SNSTopicSubscriptionArrayOutput) ElementType() reflect.Type
- func (o SNSTopicSubscriptionArrayOutput) Index(i pulumi.IntInput) SNSTopicSubscriptionOutput
- func (o SNSTopicSubscriptionArrayOutput) ToSNSTopicSubscriptionArrayOutput() SNSTopicSubscriptionArrayOutput
- func (o SNSTopicSubscriptionArrayOutput) ToSNSTopicSubscriptionArrayOutputWithContext(ctx context.Context) SNSTopicSubscriptionArrayOutput
- type SNSTopicSubscriptionInput
- type SNSTopicSubscriptionMap
- type SNSTopicSubscriptionMapInput
- type SNSTopicSubscriptionMapOutput
- func (SNSTopicSubscriptionMapOutput) ElementType() reflect.Type
- func (o SNSTopicSubscriptionMapOutput) MapIndex(k pulumi.StringInput) SNSTopicSubscriptionOutput
- func (o SNSTopicSubscriptionMapOutput) ToSNSTopicSubscriptionMapOutput() SNSTopicSubscriptionMapOutput
- func (o SNSTopicSubscriptionMapOutput) ToSNSTopicSubscriptionMapOutputWithContext(ctx context.Context) SNSTopicSubscriptionMapOutput
- type SNSTopicSubscriptionOutput
- func (o SNSTopicSubscriptionOutput) AccessKey() pulumi.StringOutput
- func (o SNSTopicSubscriptionOutput) Arn() pulumi.StringOutput
- func (SNSTopicSubscriptionOutput) ElementType() reflect.Type
- func (o SNSTopicSubscriptionOutput) Endpoint() pulumi.StringPtrOutput
- func (o SNSTopicSubscriptionOutput) ProjectId() pulumi.StringOutput
- func (o SNSTopicSubscriptionOutput) Protocol() pulumi.StringOutput
- func (o SNSTopicSubscriptionOutput) RedrivePolicy() pulumi.BoolOutput
- func (o SNSTopicSubscriptionOutput) Region() pulumi.StringOutput
- func (o SNSTopicSubscriptionOutput) SecretKey() pulumi.StringOutput
- func (o SNSTopicSubscriptionOutput) SnsEndpoint() pulumi.StringPtrOutput
- func (o SNSTopicSubscriptionOutput) ToSNSTopicSubscriptionOutput() SNSTopicSubscriptionOutput
- func (o SNSTopicSubscriptionOutput) ToSNSTopicSubscriptionOutputWithContext(ctx context.Context) SNSTopicSubscriptionOutput
- func (o SNSTopicSubscriptionOutput) TopicArn() pulumi.StringPtrOutput
- func (o SNSTopicSubscriptionOutput) TopicId() pulumi.StringPtrOutput
- type SNSTopicSubscriptionState
- type SQS
- type SQSArgs
- type SQSArray
- type SQSArrayInput
- type SQSArrayOutput
- type SQSCredentials
- type SQSCredentialsArgs
- type SQSCredentialsArray
- type SQSCredentialsArrayInput
- type SQSCredentialsArrayOutput
- func (SQSCredentialsArrayOutput) ElementType() reflect.Type
- func (o SQSCredentialsArrayOutput) Index(i pulumi.IntInput) SQSCredentialsOutput
- func (o SQSCredentialsArrayOutput) ToSQSCredentialsArrayOutput() SQSCredentialsArrayOutput
- func (o SQSCredentialsArrayOutput) ToSQSCredentialsArrayOutputWithContext(ctx context.Context) SQSCredentialsArrayOutput
- type SQSCredentialsInput
- type SQSCredentialsMap
- type SQSCredentialsMapInput
- type SQSCredentialsMapOutput
- func (SQSCredentialsMapOutput) ElementType() reflect.Type
- func (o SQSCredentialsMapOutput) MapIndex(k pulumi.StringInput) SQSCredentialsOutput
- func (o SQSCredentialsMapOutput) ToSQSCredentialsMapOutput() SQSCredentialsMapOutput
- func (o SQSCredentialsMapOutput) ToSQSCredentialsMapOutputWithContext(ctx context.Context) SQSCredentialsMapOutput
- type SQSCredentialsOutput
- func (o SQSCredentialsOutput) AccessKey() pulumi.StringOutput
- func (SQSCredentialsOutput) ElementType() reflect.Type
- func (o SQSCredentialsOutput) Name() pulumi.StringOutput
- func (o SQSCredentialsOutput) Permissions() SQSCredentialsPermissionsOutput
- func (o SQSCredentialsOutput) ProjectId() pulumi.StringOutput
- func (o SQSCredentialsOutput) Region() pulumi.StringOutput
- func (o SQSCredentialsOutput) SecretKey() pulumi.StringOutput
- func (o SQSCredentialsOutput) ToSQSCredentialsOutput() SQSCredentialsOutput
- func (o SQSCredentialsOutput) ToSQSCredentialsOutputWithContext(ctx context.Context) SQSCredentialsOutput
- type SQSCredentialsPermissions
- type SQSCredentialsPermissionsArgs
- func (SQSCredentialsPermissionsArgs) ElementType() reflect.Type
- func (i SQSCredentialsPermissionsArgs) ToSQSCredentialsPermissionsOutput() SQSCredentialsPermissionsOutput
- func (i SQSCredentialsPermissionsArgs) ToSQSCredentialsPermissionsOutputWithContext(ctx context.Context) SQSCredentialsPermissionsOutput
- func (i SQSCredentialsPermissionsArgs) ToSQSCredentialsPermissionsPtrOutput() SQSCredentialsPermissionsPtrOutput
- func (i SQSCredentialsPermissionsArgs) ToSQSCredentialsPermissionsPtrOutputWithContext(ctx context.Context) SQSCredentialsPermissionsPtrOutput
- type SQSCredentialsPermissionsInput
- type SQSCredentialsPermissionsOutput
- func (o SQSCredentialsPermissionsOutput) CanManage() pulumi.BoolPtrOutput
- func (o SQSCredentialsPermissionsOutput) CanPublish() pulumi.BoolPtrOutput
- func (o SQSCredentialsPermissionsOutput) CanReceive() pulumi.BoolPtrOutput
- func (SQSCredentialsPermissionsOutput) ElementType() reflect.Type
- func (o SQSCredentialsPermissionsOutput) ToSQSCredentialsPermissionsOutput() SQSCredentialsPermissionsOutput
- func (o SQSCredentialsPermissionsOutput) ToSQSCredentialsPermissionsOutputWithContext(ctx context.Context) SQSCredentialsPermissionsOutput
- func (o SQSCredentialsPermissionsOutput) ToSQSCredentialsPermissionsPtrOutput() SQSCredentialsPermissionsPtrOutput
- func (o SQSCredentialsPermissionsOutput) ToSQSCredentialsPermissionsPtrOutputWithContext(ctx context.Context) SQSCredentialsPermissionsPtrOutput
- type SQSCredentialsPermissionsPtrInput
- type SQSCredentialsPermissionsPtrOutput
- func (o SQSCredentialsPermissionsPtrOutput) CanManage() pulumi.BoolPtrOutput
- func (o SQSCredentialsPermissionsPtrOutput) CanPublish() pulumi.BoolPtrOutput
- func (o SQSCredentialsPermissionsPtrOutput) CanReceive() pulumi.BoolPtrOutput
- func (o SQSCredentialsPermissionsPtrOutput) Elem() SQSCredentialsPermissionsOutput
- func (SQSCredentialsPermissionsPtrOutput) ElementType() reflect.Type
- func (o SQSCredentialsPermissionsPtrOutput) ToSQSCredentialsPermissionsPtrOutput() SQSCredentialsPermissionsPtrOutput
- func (o SQSCredentialsPermissionsPtrOutput) ToSQSCredentialsPermissionsPtrOutputWithContext(ctx context.Context) SQSCredentialsPermissionsPtrOutput
- type SQSCredentialsState
- type SQSInput
- type SQSMap
- type SQSMapInput
- type SQSMapOutput
- type SQSOutput
- func (SQSOutput) ElementType() reflect.Type
- func (o SQSOutput) Endpoint() pulumi.StringOutput
- func (o SQSOutput) ProjectId() pulumi.StringOutput
- func (o SQSOutput) Region() pulumi.StringOutput
- func (o SQSOutput) ToSQSOutput() SQSOutput
- func (o SQSOutput) ToSQSOutputWithContext(ctx context.Context) SQSOutput
- type SQSQueue
- type SQSQueueArgs
- type SQSQueueArray
- type SQSQueueArrayInput
- type SQSQueueArrayOutput
- type SQSQueueInput
- type SQSQueueMap
- type SQSQueueMapInput
- type SQSQueueMapOutput
- type SQSQueueOutput
- func (o SQSQueueOutput) AccessKey() pulumi.StringOutput
- func (o SQSQueueOutput) ContentBasedDeduplication() pulumi.BoolOutput
- func (SQSQueueOutput) ElementType() reflect.Type
- func (o SQSQueueOutput) FifoQueue() pulumi.BoolOutput
- func (o SQSQueueOutput) MessageMaxAge() pulumi.IntPtrOutput
- func (o SQSQueueOutput) MessageMaxSize() pulumi.IntPtrOutput
- func (o SQSQueueOutput) Name() pulumi.StringOutput
- func (o SQSQueueOutput) NamePrefix() pulumi.StringOutput
- func (o SQSQueueOutput) ProjectId() pulumi.StringOutput
- func (o SQSQueueOutput) ReceiveWaitTimeSeconds() pulumi.IntPtrOutput
- func (o SQSQueueOutput) Region() pulumi.StringOutput
- func (o SQSQueueOutput) SecretKey() pulumi.StringOutput
- func (o SQSQueueOutput) SqsEndpoint() pulumi.StringPtrOutput
- func (o SQSQueueOutput) ToSQSQueueOutput() SQSQueueOutput
- func (o SQSQueueOutput) ToSQSQueueOutputWithContext(ctx context.Context) SQSQueueOutput
- func (o SQSQueueOutput) Url() pulumi.StringOutput
- func (o SQSQueueOutput) VisibilityTimeoutSeconds() pulumi.IntPtrOutput
- type SQSQueueState
- type SQSState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LookupSQSArgs ¶
type LookupSQSArgs struct { // `projectId`) The ID of the project for which sqs is enabled. ProjectId *string `pulumi:"projectId"` // `region`). The region in which sqs is enabled. Region *string `pulumi:"region"` }
A collection of arguments for invoking getSQS.
type LookupSQSOutputArgs ¶
type LookupSQSOutputArgs struct { // `projectId`) The ID of the project for which sqs is enabled. ProjectId pulumi.StringPtrInput `pulumi:"projectId"` // `region`). The region in which sqs is enabled. Region pulumi.StringPtrInput `pulumi:"region"` }
A collection of arguments for invoking getSQS.
func (LookupSQSOutputArgs) ElementType ¶
func (LookupSQSOutputArgs) ElementType() reflect.Type
type LookupSQSResult ¶
type LookupSQSResult struct { // The endpoint of the SQS service for this project. Endpoint string `pulumi:"endpoint"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` ProjectId *string `pulumi:"projectId"` Region *string `pulumi:"region"` }
A collection of values returned by getSQS.
func LookupSQS ¶
func LookupSQS(ctx *pulumi.Context, args *LookupSQSArgs, opts ...pulumi.InvokeOption) (*LookupSQSResult, error)
Gets information about SQS for a project
## Examples
### Basic
<!--Start PulumiCodeChooser --> ```go package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi" "github.com/raeumlich/pulumi-scaleway/sdk/go/scaleway/mnq"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := mnq.LookupSQS(ctx, nil, nil) if err != nil { return err } _, err = mnq.LookupSQS(ctx, &mnq.LookupSQSArgs{ ProjectId: pulumi.StringRef(scaleway_account_project.Main.Id), }, nil) if err != nil { return err } return nil }) }
``` <!--End PulumiCodeChooser -->
type LookupSQSResultOutput ¶
type LookupSQSResultOutput struct{ *pulumi.OutputState }
A collection of values returned by getSQS.
func LookupSQSOutput ¶
func LookupSQSOutput(ctx *pulumi.Context, args LookupSQSOutputArgs, opts ...pulumi.InvokeOption) LookupSQSResultOutput
func (LookupSQSResultOutput) ElementType ¶
func (LookupSQSResultOutput) ElementType() reflect.Type
func (LookupSQSResultOutput) Endpoint ¶
func (o LookupSQSResultOutput) Endpoint() pulumi.StringOutput
The endpoint of the SQS service for this project.
func (LookupSQSResultOutput) Id ¶
func (o LookupSQSResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (LookupSQSResultOutput) ProjectId ¶
func (o LookupSQSResultOutput) ProjectId() pulumi.StringPtrOutput
func (LookupSQSResultOutput) Region ¶
func (o LookupSQSResultOutput) Region() pulumi.StringPtrOutput
func (LookupSQSResultOutput) ToLookupSQSResultOutput ¶
func (o LookupSQSResultOutput) ToLookupSQSResultOutput() LookupSQSResultOutput
func (LookupSQSResultOutput) ToLookupSQSResultOutputWithContext ¶
func (o LookupSQSResultOutput) ToLookupSQSResultOutputWithContext(ctx context.Context) LookupSQSResultOutput
type NATSAccount ¶
type NATSAccount struct { pulumi.CustomResourceState // The endpoint of the NATS service for this account. Endpoint pulumi.StringOutput `pulumi:"endpoint"` // The unique name of the nats account. Name pulumi.StringOutput `pulumi:"name"` // `projectId`) The ID of the project the // account is associated with. ProjectId pulumi.StringOutput `pulumi:"projectId"` // `region`). The region // in which the account should be created. Region pulumi.StringOutput `pulumi:"region"` }
Creates and manages Scaleway Messaging and queuing Nats Accounts. For further information please check our [documentation](https://www.scaleway.com/en/docs/serverless/messaging/reference-content/nats-overview/) To use Scaleway's provider with official nats jetstream provider, check out the corresponding guide
## Example Usage
### Basic
<!--Start PulumiCodeChooser --> ```go package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi" "github.com/raeumlich/pulumi-scaleway/sdk/go/scaleway/mnq"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := mnq.NewNATSAccount(ctx, "main", nil) if err != nil { return err } return nil }) }
``` <!--End PulumiCodeChooser -->
## Import
Namespaces can be imported using the `{region}/{id}`, e.g.
bash
```sh $ pulumi import scaleway:mnq/nATSAccount:NATSAccount main fr-par/11111111111111111111111111111111 ```
func GetNATSAccount ¶
func GetNATSAccount(ctx *pulumi.Context, name string, id pulumi.IDInput, state *NATSAccountState, opts ...pulumi.ResourceOption) (*NATSAccount, error)
GetNATSAccount gets an existing NATSAccount resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewNATSAccount ¶
func NewNATSAccount(ctx *pulumi.Context, name string, args *NATSAccountArgs, opts ...pulumi.ResourceOption) (*NATSAccount, error)
NewNATSAccount registers a new resource with the given unique name, arguments, and options.
func (*NATSAccount) ElementType ¶
func (*NATSAccount) ElementType() reflect.Type
func (*NATSAccount) ToNATSAccountOutput ¶
func (i *NATSAccount) ToNATSAccountOutput() NATSAccountOutput
func (*NATSAccount) ToNATSAccountOutputWithContext ¶
func (i *NATSAccount) ToNATSAccountOutputWithContext(ctx context.Context) NATSAccountOutput
type NATSAccountArgs ¶
type NATSAccountArgs struct { // The unique name of the nats account. Name pulumi.StringPtrInput // `projectId`) The ID of the project the // account is associated with. ProjectId pulumi.StringPtrInput // `region`). The region // in which the account should be created. Region pulumi.StringPtrInput }
The set of arguments for constructing a NATSAccount resource.
func (NATSAccountArgs) ElementType ¶
func (NATSAccountArgs) ElementType() reflect.Type
type NATSAccountArray ¶
type NATSAccountArray []NATSAccountInput
func (NATSAccountArray) ElementType ¶
func (NATSAccountArray) ElementType() reflect.Type
func (NATSAccountArray) ToNATSAccountArrayOutput ¶
func (i NATSAccountArray) ToNATSAccountArrayOutput() NATSAccountArrayOutput
func (NATSAccountArray) ToNATSAccountArrayOutputWithContext ¶
func (i NATSAccountArray) ToNATSAccountArrayOutputWithContext(ctx context.Context) NATSAccountArrayOutput
type NATSAccountArrayInput ¶
type NATSAccountArrayInput interface { pulumi.Input ToNATSAccountArrayOutput() NATSAccountArrayOutput ToNATSAccountArrayOutputWithContext(context.Context) NATSAccountArrayOutput }
NATSAccountArrayInput is an input type that accepts NATSAccountArray and NATSAccountArrayOutput values. You can construct a concrete instance of `NATSAccountArrayInput` via:
NATSAccountArray{ NATSAccountArgs{...} }
type NATSAccountArrayOutput ¶
type NATSAccountArrayOutput struct{ *pulumi.OutputState }
func (NATSAccountArrayOutput) ElementType ¶
func (NATSAccountArrayOutput) ElementType() reflect.Type
func (NATSAccountArrayOutput) Index ¶
func (o NATSAccountArrayOutput) Index(i pulumi.IntInput) NATSAccountOutput
func (NATSAccountArrayOutput) ToNATSAccountArrayOutput ¶
func (o NATSAccountArrayOutput) ToNATSAccountArrayOutput() NATSAccountArrayOutput
func (NATSAccountArrayOutput) ToNATSAccountArrayOutputWithContext ¶
func (o NATSAccountArrayOutput) ToNATSAccountArrayOutputWithContext(ctx context.Context) NATSAccountArrayOutput
type NATSAccountInput ¶
type NATSAccountInput interface { pulumi.Input ToNATSAccountOutput() NATSAccountOutput ToNATSAccountOutputWithContext(ctx context.Context) NATSAccountOutput }
type NATSAccountMap ¶
type NATSAccountMap map[string]NATSAccountInput
func (NATSAccountMap) ElementType ¶
func (NATSAccountMap) ElementType() reflect.Type
func (NATSAccountMap) ToNATSAccountMapOutput ¶
func (i NATSAccountMap) ToNATSAccountMapOutput() NATSAccountMapOutput
func (NATSAccountMap) ToNATSAccountMapOutputWithContext ¶
func (i NATSAccountMap) ToNATSAccountMapOutputWithContext(ctx context.Context) NATSAccountMapOutput
type NATSAccountMapInput ¶
type NATSAccountMapInput interface { pulumi.Input ToNATSAccountMapOutput() NATSAccountMapOutput ToNATSAccountMapOutputWithContext(context.Context) NATSAccountMapOutput }
NATSAccountMapInput is an input type that accepts NATSAccountMap and NATSAccountMapOutput values. You can construct a concrete instance of `NATSAccountMapInput` via:
NATSAccountMap{ "key": NATSAccountArgs{...} }
type NATSAccountMapOutput ¶
type NATSAccountMapOutput struct{ *pulumi.OutputState }
func (NATSAccountMapOutput) ElementType ¶
func (NATSAccountMapOutput) ElementType() reflect.Type
func (NATSAccountMapOutput) MapIndex ¶
func (o NATSAccountMapOutput) MapIndex(k pulumi.StringInput) NATSAccountOutput
func (NATSAccountMapOutput) ToNATSAccountMapOutput ¶
func (o NATSAccountMapOutput) ToNATSAccountMapOutput() NATSAccountMapOutput
func (NATSAccountMapOutput) ToNATSAccountMapOutputWithContext ¶
func (o NATSAccountMapOutput) ToNATSAccountMapOutputWithContext(ctx context.Context) NATSAccountMapOutput
type NATSAccountOutput ¶
type NATSAccountOutput struct{ *pulumi.OutputState }
func (NATSAccountOutput) ElementType ¶
func (NATSAccountOutput) ElementType() reflect.Type
func (NATSAccountOutput) Endpoint ¶
func (o NATSAccountOutput) Endpoint() pulumi.StringOutput
The endpoint of the NATS service for this account.
func (NATSAccountOutput) Name ¶
func (o NATSAccountOutput) Name() pulumi.StringOutput
The unique name of the nats account.
func (NATSAccountOutput) ProjectId ¶
func (o NATSAccountOutput) ProjectId() pulumi.StringOutput
`projectId`) The ID of the project the account is associated with.
func (NATSAccountOutput) Region ¶
func (o NATSAccountOutput) Region() pulumi.StringOutput
`region`). The region in which the account should be created.
func (NATSAccountOutput) ToNATSAccountOutput ¶
func (o NATSAccountOutput) ToNATSAccountOutput() NATSAccountOutput
func (NATSAccountOutput) ToNATSAccountOutputWithContext ¶
func (o NATSAccountOutput) ToNATSAccountOutputWithContext(ctx context.Context) NATSAccountOutput
type NATSAccountState ¶
type NATSAccountState struct { // The endpoint of the NATS service for this account. Endpoint pulumi.StringPtrInput // The unique name of the nats account. Name pulumi.StringPtrInput // `projectId`) The ID of the project the // account is associated with. ProjectId pulumi.StringPtrInput // `region`). The region // in which the account should be created. Region pulumi.StringPtrInput }
func (NATSAccountState) ElementType ¶
func (NATSAccountState) ElementType() reflect.Type
type NATSCredentials ¶
type NATSCredentials struct { pulumi.CustomResourceState // The ID of the nats account the credentials are generated from AccountId pulumi.StringOutput `pulumi:"accountId"` // The content of the credentials file. File pulumi.StringOutput `pulumi:"file"` // The unique name of the nats credentials. Name pulumi.StringOutput `pulumi:"name"` // `region`). The region // in which the account exists. Region pulumi.StringOutput `pulumi:"region"` }
Creates and manages Scaleway Messaging and queuing Nats Credentials. For further information please check our [documentation](https://www.scaleway.com/en/docs/serverless/messaging/reference-content/nats-overview/)
## Example Usage
### Basic
<!--Start PulumiCodeChooser --> ```go package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi" "github.com/raeumlich/pulumi-scaleway/sdk/go/scaleway/mnq"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { mainNATSAccount, err := mnq.NewNATSAccount(ctx, "mainNATSAccount", nil) if err != nil { return err } _, err = mnq.NewNATSCredentials(ctx, "mainNATSCredentials", &mnq.NATSCredentialsArgs{ AccountId: mainNATSAccount.ID(), }) if err != nil { return err } return nil }) }
``` <!--End PulumiCodeChooser -->
## Import
Namespaces can be imported using the `{region}/{id}`, e.g.
bash
```sh $ pulumi import scaleway:mnq/nATSCredentials:NATSCredentials main fr-par/11111111111111111111111111111111 ```
func GetNATSCredentials ¶
func GetNATSCredentials(ctx *pulumi.Context, name string, id pulumi.IDInput, state *NATSCredentialsState, opts ...pulumi.ResourceOption) (*NATSCredentials, error)
GetNATSCredentials gets an existing NATSCredentials resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewNATSCredentials ¶
func NewNATSCredentials(ctx *pulumi.Context, name string, args *NATSCredentialsArgs, opts ...pulumi.ResourceOption) (*NATSCredentials, error)
NewNATSCredentials registers a new resource with the given unique name, arguments, and options.
func (*NATSCredentials) ElementType ¶
func (*NATSCredentials) ElementType() reflect.Type
func (*NATSCredentials) ToNATSCredentialsOutput ¶
func (i *NATSCredentials) ToNATSCredentialsOutput() NATSCredentialsOutput
func (*NATSCredentials) ToNATSCredentialsOutputWithContext ¶
func (i *NATSCredentials) ToNATSCredentialsOutputWithContext(ctx context.Context) NATSCredentialsOutput
type NATSCredentialsArgs ¶
type NATSCredentialsArgs struct { // The ID of the nats account the credentials are generated from AccountId pulumi.StringInput // The unique name of the nats credentials. Name pulumi.StringPtrInput // `region`). The region // in which the account exists. Region pulumi.StringPtrInput }
The set of arguments for constructing a NATSCredentials resource.
func (NATSCredentialsArgs) ElementType ¶
func (NATSCredentialsArgs) ElementType() reflect.Type
type NATSCredentialsArray ¶
type NATSCredentialsArray []NATSCredentialsInput
func (NATSCredentialsArray) ElementType ¶
func (NATSCredentialsArray) ElementType() reflect.Type
func (NATSCredentialsArray) ToNATSCredentialsArrayOutput ¶
func (i NATSCredentialsArray) ToNATSCredentialsArrayOutput() NATSCredentialsArrayOutput
func (NATSCredentialsArray) ToNATSCredentialsArrayOutputWithContext ¶
func (i NATSCredentialsArray) ToNATSCredentialsArrayOutputWithContext(ctx context.Context) NATSCredentialsArrayOutput
type NATSCredentialsArrayInput ¶
type NATSCredentialsArrayInput interface { pulumi.Input ToNATSCredentialsArrayOutput() NATSCredentialsArrayOutput ToNATSCredentialsArrayOutputWithContext(context.Context) NATSCredentialsArrayOutput }
NATSCredentialsArrayInput is an input type that accepts NATSCredentialsArray and NATSCredentialsArrayOutput values. You can construct a concrete instance of `NATSCredentialsArrayInput` via:
NATSCredentialsArray{ NATSCredentialsArgs{...} }
type NATSCredentialsArrayOutput ¶
type NATSCredentialsArrayOutput struct{ *pulumi.OutputState }
func (NATSCredentialsArrayOutput) ElementType ¶
func (NATSCredentialsArrayOutput) ElementType() reflect.Type
func (NATSCredentialsArrayOutput) Index ¶
func (o NATSCredentialsArrayOutput) Index(i pulumi.IntInput) NATSCredentialsOutput
func (NATSCredentialsArrayOutput) ToNATSCredentialsArrayOutput ¶
func (o NATSCredentialsArrayOutput) ToNATSCredentialsArrayOutput() NATSCredentialsArrayOutput
func (NATSCredentialsArrayOutput) ToNATSCredentialsArrayOutputWithContext ¶
func (o NATSCredentialsArrayOutput) ToNATSCredentialsArrayOutputWithContext(ctx context.Context) NATSCredentialsArrayOutput
type NATSCredentialsInput ¶
type NATSCredentialsInput interface { pulumi.Input ToNATSCredentialsOutput() NATSCredentialsOutput ToNATSCredentialsOutputWithContext(ctx context.Context) NATSCredentialsOutput }
type NATSCredentialsMap ¶
type NATSCredentialsMap map[string]NATSCredentialsInput
func (NATSCredentialsMap) ElementType ¶
func (NATSCredentialsMap) ElementType() reflect.Type
func (NATSCredentialsMap) ToNATSCredentialsMapOutput ¶
func (i NATSCredentialsMap) ToNATSCredentialsMapOutput() NATSCredentialsMapOutput
func (NATSCredentialsMap) ToNATSCredentialsMapOutputWithContext ¶
func (i NATSCredentialsMap) ToNATSCredentialsMapOutputWithContext(ctx context.Context) NATSCredentialsMapOutput
type NATSCredentialsMapInput ¶
type NATSCredentialsMapInput interface { pulumi.Input ToNATSCredentialsMapOutput() NATSCredentialsMapOutput ToNATSCredentialsMapOutputWithContext(context.Context) NATSCredentialsMapOutput }
NATSCredentialsMapInput is an input type that accepts NATSCredentialsMap and NATSCredentialsMapOutput values. You can construct a concrete instance of `NATSCredentialsMapInput` via:
NATSCredentialsMap{ "key": NATSCredentialsArgs{...} }
type NATSCredentialsMapOutput ¶
type NATSCredentialsMapOutput struct{ *pulumi.OutputState }
func (NATSCredentialsMapOutput) ElementType ¶
func (NATSCredentialsMapOutput) ElementType() reflect.Type
func (NATSCredentialsMapOutput) MapIndex ¶
func (o NATSCredentialsMapOutput) MapIndex(k pulumi.StringInput) NATSCredentialsOutput
func (NATSCredentialsMapOutput) ToNATSCredentialsMapOutput ¶
func (o NATSCredentialsMapOutput) ToNATSCredentialsMapOutput() NATSCredentialsMapOutput
func (NATSCredentialsMapOutput) ToNATSCredentialsMapOutputWithContext ¶
func (o NATSCredentialsMapOutput) ToNATSCredentialsMapOutputWithContext(ctx context.Context) NATSCredentialsMapOutput
type NATSCredentialsOutput ¶
type NATSCredentialsOutput struct{ *pulumi.OutputState }
func (NATSCredentialsOutput) AccountId ¶
func (o NATSCredentialsOutput) AccountId() pulumi.StringOutput
The ID of the nats account the credentials are generated from
func (NATSCredentialsOutput) ElementType ¶
func (NATSCredentialsOutput) ElementType() reflect.Type
func (NATSCredentialsOutput) File ¶
func (o NATSCredentialsOutput) File() pulumi.StringOutput
The content of the credentials file.
func (NATSCredentialsOutput) Name ¶
func (o NATSCredentialsOutput) Name() pulumi.StringOutput
The unique name of the nats credentials.
func (NATSCredentialsOutput) Region ¶
func (o NATSCredentialsOutput) Region() pulumi.StringOutput
`region`). The region in which the account exists.
func (NATSCredentialsOutput) ToNATSCredentialsOutput ¶
func (o NATSCredentialsOutput) ToNATSCredentialsOutput() NATSCredentialsOutput
func (NATSCredentialsOutput) ToNATSCredentialsOutputWithContext ¶
func (o NATSCredentialsOutput) ToNATSCredentialsOutputWithContext(ctx context.Context) NATSCredentialsOutput
type NATSCredentialsState ¶
type NATSCredentialsState struct { // The ID of the nats account the credentials are generated from AccountId pulumi.StringPtrInput // The content of the credentials file. File pulumi.StringPtrInput // The unique name of the nats credentials. Name pulumi.StringPtrInput // `region`). The region // in which the account exists. Region pulumi.StringPtrInput }
func (NATSCredentialsState) ElementType ¶
func (NATSCredentialsState) ElementType() reflect.Type
type SNS ¶
type SNS struct { pulumi.CustomResourceState // The endpoint of the SNS service for this project. Endpoint pulumi.StringOutput `pulumi:"endpoint"` // `projectId`) The ID of the project the sns will be enabled for. ProjectId pulumi.StringOutput `pulumi:"projectId"` // `region`). The region // in which sns will be enabled. Region pulumi.StringOutput `pulumi:"region"` }
Activate Scaleway Messaging and queuing SNS for a project. For further information please check our [documentation](https://www.scaleway.com/en/docs/serverless/messaging/reference-content/sns-overview/)
## Example Usage
### Basic
Activate SNS for default project ¶
<!--Start PulumiCodeChooser --> ```go package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi" "github.com/raeumlich/pulumi-scaleway/sdk/go/scaleway/mnq"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := mnq.NewSNS(ctx, "main", nil) if err != nil { return err } return nil }) }
``` <!--End PulumiCodeChooser -->
Activate SNS for a specific project ¶
<!--Start PulumiCodeChooser --> ```go package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi" "github.com/raeumlich/pulumi-scaleway/sdk/go/scaleway/account" "github.com/raeumlich/pulumi-scaleway/sdk/go/scaleway/mnq"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { project, err := account.LookupProject(ctx, &account.LookupProjectArgs{ Name: pulumi.StringRef("default"), }, nil) if err != nil { return err } // For specific project in default region _, err = mnq.NewSNS(ctx, "forProject", &mnq.SNSArgs{ ProjectId: *pulumi.String(project.Id), }) if err != nil { return err } return nil }) }
``` <!--End PulumiCodeChooser -->
## Import
SNS status can be imported using the `{region}/{project_id}`, e.g.
bash
```sh $ pulumi import scaleway:mnq/sNS:SNS main fr-par/11111111111111111111111111111111 ```
func GetSNS ¶
func GetSNS(ctx *pulumi.Context, name string, id pulumi.IDInput, state *SNSState, opts ...pulumi.ResourceOption) (*SNS, error)
GetSNS gets an existing SNS resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewSNS ¶
func NewSNS(ctx *pulumi.Context, name string, args *SNSArgs, opts ...pulumi.ResourceOption) (*SNS, error)
NewSNS registers a new resource with the given unique name, arguments, and options.
func (*SNS) ElementType ¶
func (*SNS) ToSNSOutput ¶
type SNSArgs ¶
type SNSArgs struct { // `projectId`) The ID of the project the sns will be enabled for. ProjectId pulumi.StringPtrInput // `region`). The region // in which sns will be enabled. Region pulumi.StringPtrInput }
The set of arguments for constructing a SNS resource.
func (SNSArgs) ElementType ¶
type SNSArray ¶
type SNSArray []SNSInput
func (SNSArray) ElementType ¶
func (SNSArray) ToSNSArrayOutput ¶
func (i SNSArray) ToSNSArrayOutput() SNSArrayOutput
func (SNSArray) ToSNSArrayOutputWithContext ¶
func (i SNSArray) ToSNSArrayOutputWithContext(ctx context.Context) SNSArrayOutput
type SNSArrayInput ¶
type SNSArrayInput interface { pulumi.Input ToSNSArrayOutput() SNSArrayOutput ToSNSArrayOutputWithContext(context.Context) SNSArrayOutput }
SNSArrayInput is an input type that accepts SNSArray and SNSArrayOutput values. You can construct a concrete instance of `SNSArrayInput` via:
SNSArray{ SNSArgs{...} }
type SNSArrayOutput ¶
type SNSArrayOutput struct{ *pulumi.OutputState }
func (SNSArrayOutput) ElementType ¶
func (SNSArrayOutput) ElementType() reflect.Type
func (SNSArrayOutput) ToSNSArrayOutput ¶
func (o SNSArrayOutput) ToSNSArrayOutput() SNSArrayOutput
func (SNSArrayOutput) ToSNSArrayOutputWithContext ¶
func (o SNSArrayOutput) ToSNSArrayOutputWithContext(ctx context.Context) SNSArrayOutput
type SNSCredentials ¶
type SNSCredentials struct { pulumi.CustomResourceState // The ID of the key. AccessKey pulumi.StringOutput `pulumi:"accessKey"` // The unique name of the sns credentials. Name pulumi.StringOutput `pulumi:"name"` // . List of permissions associated to these credentials. Only one of permissions may be set. Permissions SNSCredentialsPermissionsOutput `pulumi:"permissions"` // `projectId`) The ID of the project the sns is enabled for. ProjectId pulumi.StringOutput `pulumi:"projectId"` // `region`). The region in which sns is enabled. Region pulumi.StringOutput `pulumi:"region"` // The secret value of the key. SecretKey pulumi.StringOutput `pulumi:"secretKey"` }
Creates and manages Scaleway Messaging and queuing SNS Credentials. For further information please check our [documentation](https://www.scaleway.com/en/docs/serverless/messaging/reference-content/sns-overview/)
## Example Usage
### Basic
<!--Start PulumiCodeChooser --> ```go package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi" "github.com/raeumlich/pulumi-scaleway/sdk/go/scaleway/mnq"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { mainSNS, err := mnq.NewSNS(ctx, "mainSNS", nil) if err != nil { return err } _, err = mnq.NewSNSCredentials(ctx, "mainSNSCredentials", &mnq.SNSCredentialsArgs{ ProjectId: mainSNS.ProjectId, Permissions: &mnq.SNSCredentialsPermissionsArgs{ CanManage: pulumi.Bool(false), CanReceive: pulumi.Bool(true), CanPublish: pulumi.Bool(false), }, }) if err != nil { return err } return nil }) }
``` <!--End PulumiCodeChooser -->
## Import
SNS credentials can be imported using the `{region}/{id}`, e.g.
bash
```sh $ pulumi import scaleway:mnq/sNSCredentials:SNSCredentials main fr-par/11111111111111111111111111111111 ```
func GetSNSCredentials ¶
func GetSNSCredentials(ctx *pulumi.Context, name string, id pulumi.IDInput, state *SNSCredentialsState, opts ...pulumi.ResourceOption) (*SNSCredentials, error)
GetSNSCredentials gets an existing SNSCredentials resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewSNSCredentials ¶
func NewSNSCredentials(ctx *pulumi.Context, name string, args *SNSCredentialsArgs, opts ...pulumi.ResourceOption) (*SNSCredentials, error)
NewSNSCredentials registers a new resource with the given unique name, arguments, and options.
func (*SNSCredentials) ElementType ¶
func (*SNSCredentials) ElementType() reflect.Type
func (*SNSCredentials) ToSNSCredentialsOutput ¶
func (i *SNSCredentials) ToSNSCredentialsOutput() SNSCredentialsOutput
func (*SNSCredentials) ToSNSCredentialsOutputWithContext ¶
func (i *SNSCredentials) ToSNSCredentialsOutputWithContext(ctx context.Context) SNSCredentialsOutput
type SNSCredentialsArgs ¶
type SNSCredentialsArgs struct { // The unique name of the sns credentials. Name pulumi.StringPtrInput // . List of permissions associated to these credentials. Only one of permissions may be set. Permissions SNSCredentialsPermissionsPtrInput // `projectId`) The ID of the project the sns is enabled for. ProjectId pulumi.StringPtrInput // `region`). The region in which sns is enabled. Region pulumi.StringPtrInput }
The set of arguments for constructing a SNSCredentials resource.
func (SNSCredentialsArgs) ElementType ¶
func (SNSCredentialsArgs) ElementType() reflect.Type
type SNSCredentialsArray ¶
type SNSCredentialsArray []SNSCredentialsInput
func (SNSCredentialsArray) ElementType ¶
func (SNSCredentialsArray) ElementType() reflect.Type
func (SNSCredentialsArray) ToSNSCredentialsArrayOutput ¶
func (i SNSCredentialsArray) ToSNSCredentialsArrayOutput() SNSCredentialsArrayOutput
func (SNSCredentialsArray) ToSNSCredentialsArrayOutputWithContext ¶
func (i SNSCredentialsArray) ToSNSCredentialsArrayOutputWithContext(ctx context.Context) SNSCredentialsArrayOutput
type SNSCredentialsArrayInput ¶
type SNSCredentialsArrayInput interface { pulumi.Input ToSNSCredentialsArrayOutput() SNSCredentialsArrayOutput ToSNSCredentialsArrayOutputWithContext(context.Context) SNSCredentialsArrayOutput }
SNSCredentialsArrayInput is an input type that accepts SNSCredentialsArray and SNSCredentialsArrayOutput values. You can construct a concrete instance of `SNSCredentialsArrayInput` via:
SNSCredentialsArray{ SNSCredentialsArgs{...} }
type SNSCredentialsArrayOutput ¶
type SNSCredentialsArrayOutput struct{ *pulumi.OutputState }
func (SNSCredentialsArrayOutput) ElementType ¶
func (SNSCredentialsArrayOutput) ElementType() reflect.Type
func (SNSCredentialsArrayOutput) Index ¶
func (o SNSCredentialsArrayOutput) Index(i pulumi.IntInput) SNSCredentialsOutput
func (SNSCredentialsArrayOutput) ToSNSCredentialsArrayOutput ¶
func (o SNSCredentialsArrayOutput) ToSNSCredentialsArrayOutput() SNSCredentialsArrayOutput
func (SNSCredentialsArrayOutput) ToSNSCredentialsArrayOutputWithContext ¶
func (o SNSCredentialsArrayOutput) ToSNSCredentialsArrayOutputWithContext(ctx context.Context) SNSCredentialsArrayOutput
type SNSCredentialsInput ¶
type SNSCredentialsInput interface { pulumi.Input ToSNSCredentialsOutput() SNSCredentialsOutput ToSNSCredentialsOutputWithContext(ctx context.Context) SNSCredentialsOutput }
type SNSCredentialsMap ¶
type SNSCredentialsMap map[string]SNSCredentialsInput
func (SNSCredentialsMap) ElementType ¶
func (SNSCredentialsMap) ElementType() reflect.Type
func (SNSCredentialsMap) ToSNSCredentialsMapOutput ¶
func (i SNSCredentialsMap) ToSNSCredentialsMapOutput() SNSCredentialsMapOutput
func (SNSCredentialsMap) ToSNSCredentialsMapOutputWithContext ¶
func (i SNSCredentialsMap) ToSNSCredentialsMapOutputWithContext(ctx context.Context) SNSCredentialsMapOutput
type SNSCredentialsMapInput ¶
type SNSCredentialsMapInput interface { pulumi.Input ToSNSCredentialsMapOutput() SNSCredentialsMapOutput ToSNSCredentialsMapOutputWithContext(context.Context) SNSCredentialsMapOutput }
SNSCredentialsMapInput is an input type that accepts SNSCredentialsMap and SNSCredentialsMapOutput values. You can construct a concrete instance of `SNSCredentialsMapInput` via:
SNSCredentialsMap{ "key": SNSCredentialsArgs{...} }
type SNSCredentialsMapOutput ¶
type SNSCredentialsMapOutput struct{ *pulumi.OutputState }
func (SNSCredentialsMapOutput) ElementType ¶
func (SNSCredentialsMapOutput) ElementType() reflect.Type
func (SNSCredentialsMapOutput) MapIndex ¶
func (o SNSCredentialsMapOutput) MapIndex(k pulumi.StringInput) SNSCredentialsOutput
func (SNSCredentialsMapOutput) ToSNSCredentialsMapOutput ¶
func (o SNSCredentialsMapOutput) ToSNSCredentialsMapOutput() SNSCredentialsMapOutput
func (SNSCredentialsMapOutput) ToSNSCredentialsMapOutputWithContext ¶
func (o SNSCredentialsMapOutput) ToSNSCredentialsMapOutputWithContext(ctx context.Context) SNSCredentialsMapOutput
type SNSCredentialsOutput ¶
type SNSCredentialsOutput struct{ *pulumi.OutputState }
func (SNSCredentialsOutput) AccessKey ¶
func (o SNSCredentialsOutput) AccessKey() pulumi.StringOutput
The ID of the key.
func (SNSCredentialsOutput) ElementType ¶
func (SNSCredentialsOutput) ElementType() reflect.Type
func (SNSCredentialsOutput) Name ¶
func (o SNSCredentialsOutput) Name() pulumi.StringOutput
The unique name of the sns credentials.
func (SNSCredentialsOutput) Permissions ¶
func (o SNSCredentialsOutput) Permissions() SNSCredentialsPermissionsOutput
. List of permissions associated to these credentials. Only one of permissions may be set.
func (SNSCredentialsOutput) ProjectId ¶
func (o SNSCredentialsOutput) ProjectId() pulumi.StringOutput
`projectId`) The ID of the project the sns is enabled for.
func (SNSCredentialsOutput) Region ¶
func (o SNSCredentialsOutput) Region() pulumi.StringOutput
`region`). The region in which sns is enabled.
func (SNSCredentialsOutput) SecretKey ¶
func (o SNSCredentialsOutput) SecretKey() pulumi.StringOutput
The secret value of the key.
func (SNSCredentialsOutput) ToSNSCredentialsOutput ¶
func (o SNSCredentialsOutput) ToSNSCredentialsOutput() SNSCredentialsOutput
func (SNSCredentialsOutput) ToSNSCredentialsOutputWithContext ¶
func (o SNSCredentialsOutput) ToSNSCredentialsOutputWithContext(ctx context.Context) SNSCredentialsOutput
type SNSCredentialsPermissions ¶
type SNSCredentialsPermissions struct { // . Defines if user can manage the associated resource(s). CanManage *bool `pulumi:"canManage"` // . Defines if user can publish messages to the service. CanPublish *bool `pulumi:"canPublish"` // . Defines if user can receive messages from the service. CanReceive *bool `pulumi:"canReceive"` }
type SNSCredentialsPermissionsArgs ¶
type SNSCredentialsPermissionsArgs struct { // . Defines if user can manage the associated resource(s). CanManage pulumi.BoolPtrInput `pulumi:"canManage"` // . Defines if user can publish messages to the service. CanPublish pulumi.BoolPtrInput `pulumi:"canPublish"` // . Defines if user can receive messages from the service. CanReceive pulumi.BoolPtrInput `pulumi:"canReceive"` }
func (SNSCredentialsPermissionsArgs) ElementType ¶
func (SNSCredentialsPermissionsArgs) ElementType() reflect.Type
func (SNSCredentialsPermissionsArgs) ToSNSCredentialsPermissionsOutput ¶
func (i SNSCredentialsPermissionsArgs) ToSNSCredentialsPermissionsOutput() SNSCredentialsPermissionsOutput
func (SNSCredentialsPermissionsArgs) ToSNSCredentialsPermissionsOutputWithContext ¶
func (i SNSCredentialsPermissionsArgs) ToSNSCredentialsPermissionsOutputWithContext(ctx context.Context) SNSCredentialsPermissionsOutput
func (SNSCredentialsPermissionsArgs) ToSNSCredentialsPermissionsPtrOutput ¶
func (i SNSCredentialsPermissionsArgs) ToSNSCredentialsPermissionsPtrOutput() SNSCredentialsPermissionsPtrOutput
func (SNSCredentialsPermissionsArgs) ToSNSCredentialsPermissionsPtrOutputWithContext ¶
func (i SNSCredentialsPermissionsArgs) ToSNSCredentialsPermissionsPtrOutputWithContext(ctx context.Context) SNSCredentialsPermissionsPtrOutput
type SNSCredentialsPermissionsInput ¶
type SNSCredentialsPermissionsInput interface { pulumi.Input ToSNSCredentialsPermissionsOutput() SNSCredentialsPermissionsOutput ToSNSCredentialsPermissionsOutputWithContext(context.Context) SNSCredentialsPermissionsOutput }
SNSCredentialsPermissionsInput is an input type that accepts SNSCredentialsPermissionsArgs and SNSCredentialsPermissionsOutput values. You can construct a concrete instance of `SNSCredentialsPermissionsInput` via:
SNSCredentialsPermissionsArgs{...}
type SNSCredentialsPermissionsOutput ¶
type SNSCredentialsPermissionsOutput struct{ *pulumi.OutputState }
func (SNSCredentialsPermissionsOutput) CanManage ¶
func (o SNSCredentialsPermissionsOutput) CanManage() pulumi.BoolPtrOutput
. Defines if user can manage the associated resource(s).
func (SNSCredentialsPermissionsOutput) CanPublish ¶
func (o SNSCredentialsPermissionsOutput) CanPublish() pulumi.BoolPtrOutput
. Defines if user can publish messages to the service.
func (SNSCredentialsPermissionsOutput) CanReceive ¶
func (o SNSCredentialsPermissionsOutput) CanReceive() pulumi.BoolPtrOutput
. Defines if user can receive messages from the service.
func (SNSCredentialsPermissionsOutput) ElementType ¶
func (SNSCredentialsPermissionsOutput) ElementType() reflect.Type
func (SNSCredentialsPermissionsOutput) ToSNSCredentialsPermissionsOutput ¶
func (o SNSCredentialsPermissionsOutput) ToSNSCredentialsPermissionsOutput() SNSCredentialsPermissionsOutput
func (SNSCredentialsPermissionsOutput) ToSNSCredentialsPermissionsOutputWithContext ¶
func (o SNSCredentialsPermissionsOutput) ToSNSCredentialsPermissionsOutputWithContext(ctx context.Context) SNSCredentialsPermissionsOutput
func (SNSCredentialsPermissionsOutput) ToSNSCredentialsPermissionsPtrOutput ¶
func (o SNSCredentialsPermissionsOutput) ToSNSCredentialsPermissionsPtrOutput() SNSCredentialsPermissionsPtrOutput
func (SNSCredentialsPermissionsOutput) ToSNSCredentialsPermissionsPtrOutputWithContext ¶
func (o SNSCredentialsPermissionsOutput) ToSNSCredentialsPermissionsPtrOutputWithContext(ctx context.Context) SNSCredentialsPermissionsPtrOutput
type SNSCredentialsPermissionsPtrInput ¶
type SNSCredentialsPermissionsPtrInput interface { pulumi.Input ToSNSCredentialsPermissionsPtrOutput() SNSCredentialsPermissionsPtrOutput ToSNSCredentialsPermissionsPtrOutputWithContext(context.Context) SNSCredentialsPermissionsPtrOutput }
SNSCredentialsPermissionsPtrInput is an input type that accepts SNSCredentialsPermissionsArgs, SNSCredentialsPermissionsPtr and SNSCredentialsPermissionsPtrOutput values. You can construct a concrete instance of `SNSCredentialsPermissionsPtrInput` via:
SNSCredentialsPermissionsArgs{...} or: nil
func SNSCredentialsPermissionsPtr ¶
func SNSCredentialsPermissionsPtr(v *SNSCredentialsPermissionsArgs) SNSCredentialsPermissionsPtrInput
type SNSCredentialsPermissionsPtrOutput ¶
type SNSCredentialsPermissionsPtrOutput struct{ *pulumi.OutputState }
func (SNSCredentialsPermissionsPtrOutput) CanManage ¶
func (o SNSCredentialsPermissionsPtrOutput) CanManage() pulumi.BoolPtrOutput
. Defines if user can manage the associated resource(s).
func (SNSCredentialsPermissionsPtrOutput) CanPublish ¶
func (o SNSCredentialsPermissionsPtrOutput) CanPublish() pulumi.BoolPtrOutput
. Defines if user can publish messages to the service.
func (SNSCredentialsPermissionsPtrOutput) CanReceive ¶
func (o SNSCredentialsPermissionsPtrOutput) CanReceive() pulumi.BoolPtrOutput
. Defines if user can receive messages from the service.
func (SNSCredentialsPermissionsPtrOutput) Elem ¶
func (o SNSCredentialsPermissionsPtrOutput) Elem() SNSCredentialsPermissionsOutput
func (SNSCredentialsPermissionsPtrOutput) ElementType ¶
func (SNSCredentialsPermissionsPtrOutput) ElementType() reflect.Type
func (SNSCredentialsPermissionsPtrOutput) ToSNSCredentialsPermissionsPtrOutput ¶
func (o SNSCredentialsPermissionsPtrOutput) ToSNSCredentialsPermissionsPtrOutput() SNSCredentialsPermissionsPtrOutput
func (SNSCredentialsPermissionsPtrOutput) ToSNSCredentialsPermissionsPtrOutputWithContext ¶
func (o SNSCredentialsPermissionsPtrOutput) ToSNSCredentialsPermissionsPtrOutputWithContext(ctx context.Context) SNSCredentialsPermissionsPtrOutput
type SNSCredentialsState ¶
type SNSCredentialsState struct { // The ID of the key. AccessKey pulumi.StringPtrInput // The unique name of the sns credentials. Name pulumi.StringPtrInput // . List of permissions associated to these credentials. Only one of permissions may be set. Permissions SNSCredentialsPermissionsPtrInput // `projectId`) The ID of the project the sns is enabled for. ProjectId pulumi.StringPtrInput // `region`). The region in which sns is enabled. Region pulumi.StringPtrInput // The secret value of the key. SecretKey pulumi.StringPtrInput }
func (SNSCredentialsState) ElementType ¶
func (SNSCredentialsState) ElementType() reflect.Type
type SNSMap ¶
func (SNSMap) ElementType ¶
func (SNSMap) ToSNSMapOutput ¶
func (i SNSMap) ToSNSMapOutput() SNSMapOutput
func (SNSMap) ToSNSMapOutputWithContext ¶
func (i SNSMap) ToSNSMapOutputWithContext(ctx context.Context) SNSMapOutput
type SNSMapInput ¶
type SNSMapInput interface { pulumi.Input ToSNSMapOutput() SNSMapOutput ToSNSMapOutputWithContext(context.Context) SNSMapOutput }
SNSMapInput is an input type that accepts SNSMap and SNSMapOutput values. You can construct a concrete instance of `SNSMapInput` via:
SNSMap{ "key": SNSArgs{...} }
type SNSMapOutput ¶
type SNSMapOutput struct{ *pulumi.OutputState }
func (SNSMapOutput) ElementType ¶
func (SNSMapOutput) ElementType() reflect.Type
func (SNSMapOutput) MapIndex ¶
func (o SNSMapOutput) MapIndex(k pulumi.StringInput) SNSOutput
func (SNSMapOutput) ToSNSMapOutput ¶
func (o SNSMapOutput) ToSNSMapOutput() SNSMapOutput
func (SNSMapOutput) ToSNSMapOutputWithContext ¶
func (o SNSMapOutput) ToSNSMapOutputWithContext(ctx context.Context) SNSMapOutput
type SNSOutput ¶
type SNSOutput struct{ *pulumi.OutputState }
func (SNSOutput) ElementType ¶
func (SNSOutput) Endpoint ¶
func (o SNSOutput) Endpoint() pulumi.StringOutput
The endpoint of the SNS service for this project.
func (SNSOutput) ProjectId ¶
func (o SNSOutput) ProjectId() pulumi.StringOutput
`projectId`) The ID of the project the sns will be enabled for.
func (SNSOutput) Region ¶
func (o SNSOutput) Region() pulumi.StringOutput
`region`). The region in which sns will be enabled.
func (SNSOutput) ToSNSOutput ¶
type SNSState ¶
type SNSState struct { // The endpoint of the SNS service for this project. Endpoint pulumi.StringPtrInput // `projectId`) The ID of the project the sns will be enabled for. ProjectId pulumi.StringPtrInput // `region`). The region // in which sns will be enabled. Region pulumi.StringPtrInput }
func (SNSState) ElementType ¶
type SNSTopic ¶
type SNSTopic struct { pulumi.CustomResourceState // The access key of the SNS credentials. AccessKey pulumi.StringOutput `pulumi:"accessKey"` // The ARN of the topic Arn pulumi.StringOutput `pulumi:"arn"` // Specifies whether to enable content-based deduplication. ContentBasedDeduplication pulumi.BoolOutput `pulumi:"contentBasedDeduplication"` // Whether the topic is a FIFO. If true, the topic name must end with .fifo. FifoTopic pulumi.BoolOutput `pulumi:"fifoTopic"` // The unique name of the sns topic. Either `name` or `namePrefix` is required. Conflicts with `namePrefix`. Name pulumi.StringOutput `pulumi:"name"` // Creates a unique name beginning with the specified prefix. Conflicts with `name`. NamePrefix pulumi.StringOutput `pulumi:"namePrefix"` // Owner of the SNS topic, should have format 'project-${project_id}' Owner pulumi.StringOutput `pulumi:"owner"` // `projectId`) The ID of the project the sns is enabled for. ProjectId pulumi.StringOutput `pulumi:"projectId"` // `region`). The region // in which sns is enabled. Region pulumi.StringOutput `pulumi:"region"` // The secret key of the SNS credentials. SecretKey pulumi.StringOutput `pulumi:"secretKey"` // The endpoint of the SNS service. Can contain a {region} placeholder. Defaults to `https://sns.mnq.{region}.scaleway.com`. SnsEndpoint pulumi.StringPtrOutput `pulumi:"snsEndpoint"` }
Manage Scaleway Messaging and queuing SNS Topics. For further information please check our [documentation](https://www.scaleway.com/en/docs/serverless/messaging/reference-content/sns-overview/)
## Example Usage
### Basic
<!--Start PulumiCodeChooser --> ```go package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi" "github.com/raeumlich/pulumi-scaleway/sdk/go/scaleway/mnq"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { mainSNS, err := mnq.NewSNS(ctx, "mainSNS", nil) if err != nil { return err } mainSNSCredentials, err := mnq.NewSNSCredentials(ctx, "mainSNSCredentials", &mnq.SNSCredentialsArgs{ ProjectId: mainSNS.ProjectId, Permissions: &mnq.SNSCredentialsPermissionsArgs{ CanManage: pulumi.Bool(true), }, }) if err != nil { return err } _, err = mnq.NewSNSTopic(ctx, "topic", &mnq.SNSTopicArgs{ ProjectId: mainSNS.ProjectId, AccessKey: mainSNSCredentials.AccessKey, SecretKey: mainSNSCredentials.SecretKey, }) if err != nil { return err } return nil }) }
``` <!--End PulumiCodeChooser -->
## Import
SNS topic can be imported using the `{region}/{project-id}/{topic-name}`, e.g.
bash
```sh $ pulumi import scaleway:mnq/sNSTopic:SNSTopic main fr-par/11111111111111111111111111111111/my-topic ```
func GetSNSTopic ¶
func GetSNSTopic(ctx *pulumi.Context, name string, id pulumi.IDInput, state *SNSTopicState, opts ...pulumi.ResourceOption) (*SNSTopic, error)
GetSNSTopic gets an existing SNSTopic resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewSNSTopic ¶
func NewSNSTopic(ctx *pulumi.Context, name string, args *SNSTopicArgs, opts ...pulumi.ResourceOption) (*SNSTopic, error)
NewSNSTopic registers a new resource with the given unique name, arguments, and options.
func (*SNSTopic) ElementType ¶
func (*SNSTopic) ToSNSTopicOutput ¶
func (i *SNSTopic) ToSNSTopicOutput() SNSTopicOutput
func (*SNSTopic) ToSNSTopicOutputWithContext ¶
func (i *SNSTopic) ToSNSTopicOutputWithContext(ctx context.Context) SNSTopicOutput
type SNSTopicArgs ¶
type SNSTopicArgs struct { // The access key of the SNS credentials. AccessKey pulumi.StringInput // Specifies whether to enable content-based deduplication. ContentBasedDeduplication pulumi.BoolPtrInput // Whether the topic is a FIFO. If true, the topic name must end with .fifo. FifoTopic pulumi.BoolPtrInput // The unique name of the sns topic. Either `name` or `namePrefix` is required. Conflicts with `namePrefix`. Name pulumi.StringPtrInput // Creates a unique name beginning with the specified prefix. Conflicts with `name`. NamePrefix pulumi.StringPtrInput // `projectId`) The ID of the project the sns is enabled for. ProjectId pulumi.StringPtrInput // `region`). The region // in which sns is enabled. Region pulumi.StringPtrInput // The secret key of the SNS credentials. SecretKey pulumi.StringInput // The endpoint of the SNS service. Can contain a {region} placeholder. Defaults to `https://sns.mnq.{region}.scaleway.com`. SnsEndpoint pulumi.StringPtrInput }
The set of arguments for constructing a SNSTopic resource.
func (SNSTopicArgs) ElementType ¶
func (SNSTopicArgs) ElementType() reflect.Type
type SNSTopicArray ¶
type SNSTopicArray []SNSTopicInput
func (SNSTopicArray) ElementType ¶
func (SNSTopicArray) ElementType() reflect.Type
func (SNSTopicArray) ToSNSTopicArrayOutput ¶
func (i SNSTopicArray) ToSNSTopicArrayOutput() SNSTopicArrayOutput
func (SNSTopicArray) ToSNSTopicArrayOutputWithContext ¶
func (i SNSTopicArray) ToSNSTopicArrayOutputWithContext(ctx context.Context) SNSTopicArrayOutput
type SNSTopicArrayInput ¶
type SNSTopicArrayInput interface { pulumi.Input ToSNSTopicArrayOutput() SNSTopicArrayOutput ToSNSTopicArrayOutputWithContext(context.Context) SNSTopicArrayOutput }
SNSTopicArrayInput is an input type that accepts SNSTopicArray and SNSTopicArrayOutput values. You can construct a concrete instance of `SNSTopicArrayInput` via:
SNSTopicArray{ SNSTopicArgs{...} }
type SNSTopicArrayOutput ¶
type SNSTopicArrayOutput struct{ *pulumi.OutputState }
func (SNSTopicArrayOutput) ElementType ¶
func (SNSTopicArrayOutput) ElementType() reflect.Type
func (SNSTopicArrayOutput) Index ¶
func (o SNSTopicArrayOutput) Index(i pulumi.IntInput) SNSTopicOutput
func (SNSTopicArrayOutput) ToSNSTopicArrayOutput ¶
func (o SNSTopicArrayOutput) ToSNSTopicArrayOutput() SNSTopicArrayOutput
func (SNSTopicArrayOutput) ToSNSTopicArrayOutputWithContext ¶
func (o SNSTopicArrayOutput) ToSNSTopicArrayOutputWithContext(ctx context.Context) SNSTopicArrayOutput
type SNSTopicInput ¶
type SNSTopicInput interface { pulumi.Input ToSNSTopicOutput() SNSTopicOutput ToSNSTopicOutputWithContext(ctx context.Context) SNSTopicOutput }
type SNSTopicMap ¶
type SNSTopicMap map[string]SNSTopicInput
func (SNSTopicMap) ElementType ¶
func (SNSTopicMap) ElementType() reflect.Type
func (SNSTopicMap) ToSNSTopicMapOutput ¶
func (i SNSTopicMap) ToSNSTopicMapOutput() SNSTopicMapOutput
func (SNSTopicMap) ToSNSTopicMapOutputWithContext ¶
func (i SNSTopicMap) ToSNSTopicMapOutputWithContext(ctx context.Context) SNSTopicMapOutput
type SNSTopicMapInput ¶
type SNSTopicMapInput interface { pulumi.Input ToSNSTopicMapOutput() SNSTopicMapOutput ToSNSTopicMapOutputWithContext(context.Context) SNSTopicMapOutput }
SNSTopicMapInput is an input type that accepts SNSTopicMap and SNSTopicMapOutput values. You can construct a concrete instance of `SNSTopicMapInput` via:
SNSTopicMap{ "key": SNSTopicArgs{...} }
type SNSTopicMapOutput ¶
type SNSTopicMapOutput struct{ *pulumi.OutputState }
func (SNSTopicMapOutput) ElementType ¶
func (SNSTopicMapOutput) ElementType() reflect.Type
func (SNSTopicMapOutput) MapIndex ¶
func (o SNSTopicMapOutput) MapIndex(k pulumi.StringInput) SNSTopicOutput
func (SNSTopicMapOutput) ToSNSTopicMapOutput ¶
func (o SNSTopicMapOutput) ToSNSTopicMapOutput() SNSTopicMapOutput
func (SNSTopicMapOutput) ToSNSTopicMapOutputWithContext ¶
func (o SNSTopicMapOutput) ToSNSTopicMapOutputWithContext(ctx context.Context) SNSTopicMapOutput
type SNSTopicOutput ¶
type SNSTopicOutput struct{ *pulumi.OutputState }
func (SNSTopicOutput) AccessKey ¶
func (o SNSTopicOutput) AccessKey() pulumi.StringOutput
The access key of the SNS credentials.
func (SNSTopicOutput) ContentBasedDeduplication ¶
func (o SNSTopicOutput) ContentBasedDeduplication() pulumi.BoolOutput
Specifies whether to enable content-based deduplication.
func (SNSTopicOutput) ElementType ¶
func (SNSTopicOutput) ElementType() reflect.Type
func (SNSTopicOutput) FifoTopic ¶
func (o SNSTopicOutput) FifoTopic() pulumi.BoolOutput
Whether the topic is a FIFO. If true, the topic name must end with .fifo.
func (SNSTopicOutput) Name ¶
func (o SNSTopicOutput) Name() pulumi.StringOutput
The unique name of the sns topic. Either `name` or `namePrefix` is required. Conflicts with `namePrefix`.
func (SNSTopicOutput) NamePrefix ¶
func (o SNSTopicOutput) NamePrefix() pulumi.StringOutput
Creates a unique name beginning with the specified prefix. Conflicts with `name`.
func (SNSTopicOutput) Owner ¶
func (o SNSTopicOutput) Owner() pulumi.StringOutput
Owner of the SNS topic, should have format 'project-${project_id}'
func (SNSTopicOutput) ProjectId ¶
func (o SNSTopicOutput) ProjectId() pulumi.StringOutput
`projectId`) The ID of the project the sns is enabled for.
func (SNSTopicOutput) Region ¶
func (o SNSTopicOutput) Region() pulumi.StringOutput
`region`). The region in which sns is enabled.
func (SNSTopicOutput) SecretKey ¶
func (o SNSTopicOutput) SecretKey() pulumi.StringOutput
The secret key of the SNS credentials.
func (SNSTopicOutput) SnsEndpoint ¶
func (o SNSTopicOutput) SnsEndpoint() pulumi.StringPtrOutput
The endpoint of the SNS service. Can contain a {region} placeholder. Defaults to `https://sns.mnq.{region}.scaleway.com`.
func (SNSTopicOutput) ToSNSTopicOutput ¶
func (o SNSTopicOutput) ToSNSTopicOutput() SNSTopicOutput
func (SNSTopicOutput) ToSNSTopicOutputWithContext ¶
func (o SNSTopicOutput) ToSNSTopicOutputWithContext(ctx context.Context) SNSTopicOutput
type SNSTopicState ¶
type SNSTopicState struct { // The access key of the SNS credentials. AccessKey pulumi.StringPtrInput // The ARN of the topic Arn pulumi.StringPtrInput // Specifies whether to enable content-based deduplication. ContentBasedDeduplication pulumi.BoolPtrInput // Whether the topic is a FIFO. If true, the topic name must end with .fifo. FifoTopic pulumi.BoolPtrInput // The unique name of the sns topic. Either `name` or `namePrefix` is required. Conflicts with `namePrefix`. Name pulumi.StringPtrInput // Creates a unique name beginning with the specified prefix. Conflicts with `name`. NamePrefix pulumi.StringPtrInput // Owner of the SNS topic, should have format 'project-${project_id}' Owner pulumi.StringPtrInput // `projectId`) The ID of the project the sns is enabled for. ProjectId pulumi.StringPtrInput // `region`). The region // in which sns is enabled. Region pulumi.StringPtrInput // The secret key of the SNS credentials. SecretKey pulumi.StringPtrInput // The endpoint of the SNS service. Can contain a {region} placeholder. Defaults to `https://sns.mnq.{region}.scaleway.com`. SnsEndpoint pulumi.StringPtrInput }
func (SNSTopicState) ElementType ¶
func (SNSTopicState) ElementType() reflect.Type
type SNSTopicSubscription ¶
type SNSTopicSubscription struct { pulumi.CustomResourceState // The access key of the SNS credentials. AccessKey pulumi.StringOutput `pulumi:"accessKey"` // The ARN of the topic subscription Arn pulumi.StringOutput `pulumi:"arn"` // Endpoint of the subscription Endpoint pulumi.StringPtrOutput `pulumi:"endpoint"` // `projectId`) The ID of the project the sns is enabled for. ProjectId pulumi.StringOutput `pulumi:"projectId"` // Protocol of the SNS Topic Subscription. Protocol pulumi.StringOutput `pulumi:"protocol"` // Activate JSON Redrive Policy. RedrivePolicy pulumi.BoolOutput `pulumi:"redrivePolicy"` // `region`). The region // in which sns is enabled. Region pulumi.StringOutput `pulumi:"region"` // The secret key of the SNS credentials. SecretKey pulumi.StringOutput `pulumi:"secretKey"` // The endpoint of the SNS service. Can contain a {region} placeholder. Defaults to `https://sns.mnq.{region}.scaleway.com`. SnsEndpoint pulumi.StringPtrOutput `pulumi:"snsEndpoint"` // The ARN of the topic. Either `topicId` or `topicArn` is required. TopicArn pulumi.StringPtrOutput `pulumi:"topicArn"` // The ID of the topic. Either `topicId` or `topicArn` is required. Conflicts with `topicArn`. TopicId pulumi.StringPtrOutput `pulumi:"topicId"` }
Manage Scaleway Messaging and queuing SNS Topic Subscriptions. For further information please check our [documentation](https://www.scaleway.com/en/docs/serverless/messaging/reference-content/sns-overview/)
## Example Usage
### Basic
<!--Start PulumiCodeChooser --> ```go package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi" "github.com/raeumlich/pulumi-scaleway/sdk/go/scaleway/mnq"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { // For default project in default region mainSNS, err := mnq.NewSNS(ctx, "mainSNS", nil) if err != nil { return err } mainSNSCredentials, err := mnq.NewSNSCredentials(ctx, "mainSNSCredentials", &mnq.SNSCredentialsArgs{ ProjectId: mainSNS.ProjectId, Permissions: &mnq.SNSCredentialsPermissionsArgs{ CanManage: pulumi.Bool(true), CanPublish: pulumi.Bool(true), CanReceive: pulumi.Bool(true), }, }) if err != nil { return err } topic, err := mnq.NewSNSTopic(ctx, "topic", &mnq.SNSTopicArgs{ ProjectId: mainSNS.ProjectId, AccessKey: mainSNSCredentials.AccessKey, SecretKey: mainSNSCredentials.SecretKey, }) if err != nil { return err } _, err = mnq.NewSNSTopicSubscription(ctx, "mainSNSTopicSubscription", &mnq.SNSTopicSubscriptionArgs{ ProjectId: mainSNS.ProjectId, AccessKey: mainSNSCredentials.AccessKey, SecretKey: mainSNSCredentials.SecretKey, TopicId: topic.ID(), Protocol: pulumi.String("http"), Endpoint: pulumi.String("http://example.com"), }) if err != nil { return err } return nil }) }
``` <!--End PulumiCodeChooser -->
## Import
SNS topic subscriptions can be imported using the `{region}/{project-id}/{topic-name}/{subscription-id}`, e.g.
bash
```sh $ pulumi import scaleway:mnq/sNSTopicSubscription:SNSTopicSubscription main fr-par/11111111111111111111111111111111/my-topic/11111111111111111111111111111111 ```
func GetSNSTopicSubscription ¶
func GetSNSTopicSubscription(ctx *pulumi.Context, name string, id pulumi.IDInput, state *SNSTopicSubscriptionState, opts ...pulumi.ResourceOption) (*SNSTopicSubscription, error)
GetSNSTopicSubscription gets an existing SNSTopicSubscription resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewSNSTopicSubscription ¶
func NewSNSTopicSubscription(ctx *pulumi.Context, name string, args *SNSTopicSubscriptionArgs, opts ...pulumi.ResourceOption) (*SNSTopicSubscription, error)
NewSNSTopicSubscription registers a new resource with the given unique name, arguments, and options.
func (*SNSTopicSubscription) ElementType ¶
func (*SNSTopicSubscription) ElementType() reflect.Type
func (*SNSTopicSubscription) ToSNSTopicSubscriptionOutput ¶
func (i *SNSTopicSubscription) ToSNSTopicSubscriptionOutput() SNSTopicSubscriptionOutput
func (*SNSTopicSubscription) ToSNSTopicSubscriptionOutputWithContext ¶
func (i *SNSTopicSubscription) ToSNSTopicSubscriptionOutputWithContext(ctx context.Context) SNSTopicSubscriptionOutput
type SNSTopicSubscriptionArgs ¶
type SNSTopicSubscriptionArgs struct { // The access key of the SNS credentials. AccessKey pulumi.StringInput // Endpoint of the subscription Endpoint pulumi.StringPtrInput // `projectId`) The ID of the project the sns is enabled for. ProjectId pulumi.StringPtrInput // Protocol of the SNS Topic Subscription. Protocol pulumi.StringInput // Activate JSON Redrive Policy. RedrivePolicy pulumi.BoolPtrInput // `region`). The region // in which sns is enabled. Region pulumi.StringPtrInput // The secret key of the SNS credentials. SecretKey pulumi.StringInput // The endpoint of the SNS service. Can contain a {region} placeholder. Defaults to `https://sns.mnq.{region}.scaleway.com`. SnsEndpoint pulumi.StringPtrInput // The ARN of the topic. Either `topicId` or `topicArn` is required. TopicArn pulumi.StringPtrInput // The ID of the topic. Either `topicId` or `topicArn` is required. Conflicts with `topicArn`. TopicId pulumi.StringPtrInput }
The set of arguments for constructing a SNSTopicSubscription resource.
func (SNSTopicSubscriptionArgs) ElementType ¶
func (SNSTopicSubscriptionArgs) ElementType() reflect.Type
type SNSTopicSubscriptionArray ¶
type SNSTopicSubscriptionArray []SNSTopicSubscriptionInput
func (SNSTopicSubscriptionArray) ElementType ¶
func (SNSTopicSubscriptionArray) ElementType() reflect.Type
func (SNSTopicSubscriptionArray) ToSNSTopicSubscriptionArrayOutput ¶
func (i SNSTopicSubscriptionArray) ToSNSTopicSubscriptionArrayOutput() SNSTopicSubscriptionArrayOutput
func (SNSTopicSubscriptionArray) ToSNSTopicSubscriptionArrayOutputWithContext ¶
func (i SNSTopicSubscriptionArray) ToSNSTopicSubscriptionArrayOutputWithContext(ctx context.Context) SNSTopicSubscriptionArrayOutput
type SNSTopicSubscriptionArrayInput ¶
type SNSTopicSubscriptionArrayInput interface { pulumi.Input ToSNSTopicSubscriptionArrayOutput() SNSTopicSubscriptionArrayOutput ToSNSTopicSubscriptionArrayOutputWithContext(context.Context) SNSTopicSubscriptionArrayOutput }
SNSTopicSubscriptionArrayInput is an input type that accepts SNSTopicSubscriptionArray and SNSTopicSubscriptionArrayOutput values. You can construct a concrete instance of `SNSTopicSubscriptionArrayInput` via:
SNSTopicSubscriptionArray{ SNSTopicSubscriptionArgs{...} }
type SNSTopicSubscriptionArrayOutput ¶
type SNSTopicSubscriptionArrayOutput struct{ *pulumi.OutputState }
func (SNSTopicSubscriptionArrayOutput) ElementType ¶
func (SNSTopicSubscriptionArrayOutput) ElementType() reflect.Type
func (SNSTopicSubscriptionArrayOutput) Index ¶
func (o SNSTopicSubscriptionArrayOutput) Index(i pulumi.IntInput) SNSTopicSubscriptionOutput
func (SNSTopicSubscriptionArrayOutput) ToSNSTopicSubscriptionArrayOutput ¶
func (o SNSTopicSubscriptionArrayOutput) ToSNSTopicSubscriptionArrayOutput() SNSTopicSubscriptionArrayOutput
func (SNSTopicSubscriptionArrayOutput) ToSNSTopicSubscriptionArrayOutputWithContext ¶
func (o SNSTopicSubscriptionArrayOutput) ToSNSTopicSubscriptionArrayOutputWithContext(ctx context.Context) SNSTopicSubscriptionArrayOutput
type SNSTopicSubscriptionInput ¶
type SNSTopicSubscriptionInput interface { pulumi.Input ToSNSTopicSubscriptionOutput() SNSTopicSubscriptionOutput ToSNSTopicSubscriptionOutputWithContext(ctx context.Context) SNSTopicSubscriptionOutput }
type SNSTopicSubscriptionMap ¶
type SNSTopicSubscriptionMap map[string]SNSTopicSubscriptionInput
func (SNSTopicSubscriptionMap) ElementType ¶
func (SNSTopicSubscriptionMap) ElementType() reflect.Type
func (SNSTopicSubscriptionMap) ToSNSTopicSubscriptionMapOutput ¶
func (i SNSTopicSubscriptionMap) ToSNSTopicSubscriptionMapOutput() SNSTopicSubscriptionMapOutput
func (SNSTopicSubscriptionMap) ToSNSTopicSubscriptionMapOutputWithContext ¶
func (i SNSTopicSubscriptionMap) ToSNSTopicSubscriptionMapOutputWithContext(ctx context.Context) SNSTopicSubscriptionMapOutput
type SNSTopicSubscriptionMapInput ¶
type SNSTopicSubscriptionMapInput interface { pulumi.Input ToSNSTopicSubscriptionMapOutput() SNSTopicSubscriptionMapOutput ToSNSTopicSubscriptionMapOutputWithContext(context.Context) SNSTopicSubscriptionMapOutput }
SNSTopicSubscriptionMapInput is an input type that accepts SNSTopicSubscriptionMap and SNSTopicSubscriptionMapOutput values. You can construct a concrete instance of `SNSTopicSubscriptionMapInput` via:
SNSTopicSubscriptionMap{ "key": SNSTopicSubscriptionArgs{...} }
type SNSTopicSubscriptionMapOutput ¶
type SNSTopicSubscriptionMapOutput struct{ *pulumi.OutputState }
func (SNSTopicSubscriptionMapOutput) ElementType ¶
func (SNSTopicSubscriptionMapOutput) ElementType() reflect.Type
func (SNSTopicSubscriptionMapOutput) MapIndex ¶
func (o SNSTopicSubscriptionMapOutput) MapIndex(k pulumi.StringInput) SNSTopicSubscriptionOutput
func (SNSTopicSubscriptionMapOutput) ToSNSTopicSubscriptionMapOutput ¶
func (o SNSTopicSubscriptionMapOutput) ToSNSTopicSubscriptionMapOutput() SNSTopicSubscriptionMapOutput
func (SNSTopicSubscriptionMapOutput) ToSNSTopicSubscriptionMapOutputWithContext ¶
func (o SNSTopicSubscriptionMapOutput) ToSNSTopicSubscriptionMapOutputWithContext(ctx context.Context) SNSTopicSubscriptionMapOutput
type SNSTopicSubscriptionOutput ¶
type SNSTopicSubscriptionOutput struct{ *pulumi.OutputState }
func (SNSTopicSubscriptionOutput) AccessKey ¶
func (o SNSTopicSubscriptionOutput) AccessKey() pulumi.StringOutput
The access key of the SNS credentials.
func (SNSTopicSubscriptionOutput) Arn ¶
func (o SNSTopicSubscriptionOutput) Arn() pulumi.StringOutput
The ARN of the topic subscription
func (SNSTopicSubscriptionOutput) ElementType ¶
func (SNSTopicSubscriptionOutput) ElementType() reflect.Type
func (SNSTopicSubscriptionOutput) Endpoint ¶
func (o SNSTopicSubscriptionOutput) Endpoint() pulumi.StringPtrOutput
Endpoint of the subscription
func (SNSTopicSubscriptionOutput) ProjectId ¶
func (o SNSTopicSubscriptionOutput) ProjectId() pulumi.StringOutput
`projectId`) The ID of the project the sns is enabled for.
func (SNSTopicSubscriptionOutput) Protocol ¶
func (o SNSTopicSubscriptionOutput) Protocol() pulumi.StringOutput
Protocol of the SNS Topic Subscription.
func (SNSTopicSubscriptionOutput) RedrivePolicy ¶
func (o SNSTopicSubscriptionOutput) RedrivePolicy() pulumi.BoolOutput
Activate JSON Redrive Policy.
func (SNSTopicSubscriptionOutput) Region ¶
func (o SNSTopicSubscriptionOutput) Region() pulumi.StringOutput
`region`). The region in which sns is enabled.
func (SNSTopicSubscriptionOutput) SecretKey ¶
func (o SNSTopicSubscriptionOutput) SecretKey() pulumi.StringOutput
The secret key of the SNS credentials.
func (SNSTopicSubscriptionOutput) SnsEndpoint ¶
func (o SNSTopicSubscriptionOutput) SnsEndpoint() pulumi.StringPtrOutput
The endpoint of the SNS service. Can contain a {region} placeholder. Defaults to `https://sns.mnq.{region}.scaleway.com`.
func (SNSTopicSubscriptionOutput) ToSNSTopicSubscriptionOutput ¶
func (o SNSTopicSubscriptionOutput) ToSNSTopicSubscriptionOutput() SNSTopicSubscriptionOutput
func (SNSTopicSubscriptionOutput) ToSNSTopicSubscriptionOutputWithContext ¶
func (o SNSTopicSubscriptionOutput) ToSNSTopicSubscriptionOutputWithContext(ctx context.Context) SNSTopicSubscriptionOutput
func (SNSTopicSubscriptionOutput) TopicArn ¶
func (o SNSTopicSubscriptionOutput) TopicArn() pulumi.StringPtrOutput
The ARN of the topic. Either `topicId` or `topicArn` is required.
func (SNSTopicSubscriptionOutput) TopicId ¶
func (o SNSTopicSubscriptionOutput) TopicId() pulumi.StringPtrOutput
The ID of the topic. Either `topicId` or `topicArn` is required. Conflicts with `topicArn`.
type SNSTopicSubscriptionState ¶
type SNSTopicSubscriptionState struct { // The access key of the SNS credentials. AccessKey pulumi.StringPtrInput // The ARN of the topic subscription Arn pulumi.StringPtrInput // Endpoint of the subscription Endpoint pulumi.StringPtrInput // `projectId`) The ID of the project the sns is enabled for. ProjectId pulumi.StringPtrInput // Protocol of the SNS Topic Subscription. Protocol pulumi.StringPtrInput // Activate JSON Redrive Policy. RedrivePolicy pulumi.BoolPtrInput // `region`). The region // in which sns is enabled. Region pulumi.StringPtrInput // The secret key of the SNS credentials. SecretKey pulumi.StringPtrInput // The endpoint of the SNS service. Can contain a {region} placeholder. Defaults to `https://sns.mnq.{region}.scaleway.com`. SnsEndpoint pulumi.StringPtrInput // The ARN of the topic. Either `topicId` or `topicArn` is required. TopicArn pulumi.StringPtrInput // The ID of the topic. Either `topicId` or `topicArn` is required. Conflicts with `topicArn`. TopicId pulumi.StringPtrInput }
func (SNSTopicSubscriptionState) ElementType ¶
func (SNSTopicSubscriptionState) ElementType() reflect.Type
type SQS ¶
type SQS struct { pulumi.CustomResourceState // The endpoint of the SQS service for this project. Endpoint pulumi.StringOutput `pulumi:"endpoint"` // `projectId`) The ID of the project the sqs will be enabled for. ProjectId pulumi.StringOutput `pulumi:"projectId"` // `region`). The region // in which sqs will be enabled. Region pulumi.StringOutput `pulumi:"region"` }
Activate Scaleway Messaging and queuing SQS for a project. For further information please check our [documentation](https://www.scaleway.com/en/docs/serverless/messaging/reference-content/sqs-overview/)
## Example Usage
### Basic
Activate SQS for default project ¶
<!--Start PulumiCodeChooser --> ```go package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi" "github.com/raeumlich/pulumi-scaleway/sdk/go/scaleway/mnq"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := mnq.NewSQS(ctx, "main", nil) if err != nil { return err } return nil }) }
``` <!--End PulumiCodeChooser -->
Activate SQS for a specific project ¶
<!--Start PulumiCodeChooser --> ```go package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi" "github.com/raeumlich/pulumi-scaleway/sdk/go/scaleway/account" "github.com/raeumlich/pulumi-scaleway/sdk/go/scaleway/mnq"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { project, err := account.LookupProject(ctx, &account.LookupProjectArgs{ Name: pulumi.StringRef("default"), }, nil) if err != nil { return err } _, err = mnq.NewSQS(ctx, "forProject", &mnq.SQSArgs{ ProjectId: *pulumi.String(project.Id), }) if err != nil { return err } return nil }) }
``` <!--End PulumiCodeChooser -->
## Import
SQS status can be imported using the `{region}/{project_id}`, e.g.
bash
```sh $ pulumi import scaleway:mnq/sQS:SQS main fr-par/11111111111111111111111111111111 ```
func GetSQS ¶
func GetSQS(ctx *pulumi.Context, name string, id pulumi.IDInput, state *SQSState, opts ...pulumi.ResourceOption) (*SQS, error)
GetSQS gets an existing SQS resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewSQS ¶
func NewSQS(ctx *pulumi.Context, name string, args *SQSArgs, opts ...pulumi.ResourceOption) (*SQS, error)
NewSQS registers a new resource with the given unique name, arguments, and options.
func (*SQS) ElementType ¶
func (*SQS) ToSQSOutput ¶
type SQSArgs ¶
type SQSArgs struct { // `projectId`) The ID of the project the sqs will be enabled for. ProjectId pulumi.StringPtrInput // `region`). The region // in which sqs will be enabled. Region pulumi.StringPtrInput }
The set of arguments for constructing a SQS resource.
func (SQSArgs) ElementType ¶
type SQSArray ¶
type SQSArray []SQSInput
func (SQSArray) ElementType ¶
func (SQSArray) ToSQSArrayOutput ¶
func (i SQSArray) ToSQSArrayOutput() SQSArrayOutput
func (SQSArray) ToSQSArrayOutputWithContext ¶
func (i SQSArray) ToSQSArrayOutputWithContext(ctx context.Context) SQSArrayOutput
type SQSArrayInput ¶
type SQSArrayInput interface { pulumi.Input ToSQSArrayOutput() SQSArrayOutput ToSQSArrayOutputWithContext(context.Context) SQSArrayOutput }
SQSArrayInput is an input type that accepts SQSArray and SQSArrayOutput values. You can construct a concrete instance of `SQSArrayInput` via:
SQSArray{ SQSArgs{...} }
type SQSArrayOutput ¶
type SQSArrayOutput struct{ *pulumi.OutputState }
func (SQSArrayOutput) ElementType ¶
func (SQSArrayOutput) ElementType() reflect.Type
func (SQSArrayOutput) ToSQSArrayOutput ¶
func (o SQSArrayOutput) ToSQSArrayOutput() SQSArrayOutput
func (SQSArrayOutput) ToSQSArrayOutputWithContext ¶
func (o SQSArrayOutput) ToSQSArrayOutputWithContext(ctx context.Context) SQSArrayOutput
type SQSCredentials ¶
type SQSCredentials struct { pulumi.CustomResourceState // The ID of the key. AccessKey pulumi.StringOutput `pulumi:"accessKey"` // The unique name of the sqs credentials. Name pulumi.StringOutput `pulumi:"name"` // . List of permissions associated to these credentials. Only one of permissions may be set. Permissions SQSCredentialsPermissionsOutput `pulumi:"permissions"` // `projectId`) The ID of the project the sqs is enabled for. ProjectId pulumi.StringOutput `pulumi:"projectId"` // `region`). The region in which sqs is enabled. Region pulumi.StringOutput `pulumi:"region"` // The secret value of the key. SecretKey pulumi.StringOutput `pulumi:"secretKey"` }
Creates and manages Scaleway Messaging and queuing SQS Credentials. For further information please check our [documentation](https://www.scaleway.com/en/docs/serverless/messaging/reference-content/sqs-overview/)
## Example Usage
### Basic
<!--Start PulumiCodeChooser --> ```go package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi" "github.com/raeumlich/pulumi-scaleway/sdk/go/scaleway/mnq"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { mainSQS, err := mnq.NewSQS(ctx, "mainSQS", nil) if err != nil { return err } _, err = mnq.NewSQSCredentials(ctx, "mainSQSCredentials", &mnq.SQSCredentialsArgs{ ProjectId: mainSQS.ProjectId, Permissions: &mnq.SQSCredentialsPermissionsArgs{ CanManage: pulumi.Bool(false), CanReceive: pulumi.Bool(true), CanPublish: pulumi.Bool(false), }, }) if err != nil { return err } return nil }) }
``` <!--End PulumiCodeChooser -->
## Import
SQS credentials can be imported using the `{region}/{id}`, e.g.
bash
```sh $ pulumi import scaleway:mnq/sQSCredentials:SQSCredentials main fr-par/11111111111111111111111111111111 ```
func GetSQSCredentials ¶
func GetSQSCredentials(ctx *pulumi.Context, name string, id pulumi.IDInput, state *SQSCredentialsState, opts ...pulumi.ResourceOption) (*SQSCredentials, error)
GetSQSCredentials gets an existing SQSCredentials resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewSQSCredentials ¶
func NewSQSCredentials(ctx *pulumi.Context, name string, args *SQSCredentialsArgs, opts ...pulumi.ResourceOption) (*SQSCredentials, error)
NewSQSCredentials registers a new resource with the given unique name, arguments, and options.
func (*SQSCredentials) ElementType ¶
func (*SQSCredentials) ElementType() reflect.Type
func (*SQSCredentials) ToSQSCredentialsOutput ¶
func (i *SQSCredentials) ToSQSCredentialsOutput() SQSCredentialsOutput
func (*SQSCredentials) ToSQSCredentialsOutputWithContext ¶
func (i *SQSCredentials) ToSQSCredentialsOutputWithContext(ctx context.Context) SQSCredentialsOutput
type SQSCredentialsArgs ¶
type SQSCredentialsArgs struct { // The unique name of the sqs credentials. Name pulumi.StringPtrInput // . List of permissions associated to these credentials. Only one of permissions may be set. Permissions SQSCredentialsPermissionsPtrInput // `projectId`) The ID of the project the sqs is enabled for. ProjectId pulumi.StringPtrInput // `region`). The region in which sqs is enabled. Region pulumi.StringPtrInput }
The set of arguments for constructing a SQSCredentials resource.
func (SQSCredentialsArgs) ElementType ¶
func (SQSCredentialsArgs) ElementType() reflect.Type
type SQSCredentialsArray ¶
type SQSCredentialsArray []SQSCredentialsInput
func (SQSCredentialsArray) ElementType ¶
func (SQSCredentialsArray) ElementType() reflect.Type
func (SQSCredentialsArray) ToSQSCredentialsArrayOutput ¶
func (i SQSCredentialsArray) ToSQSCredentialsArrayOutput() SQSCredentialsArrayOutput
func (SQSCredentialsArray) ToSQSCredentialsArrayOutputWithContext ¶
func (i SQSCredentialsArray) ToSQSCredentialsArrayOutputWithContext(ctx context.Context) SQSCredentialsArrayOutput
type SQSCredentialsArrayInput ¶
type SQSCredentialsArrayInput interface { pulumi.Input ToSQSCredentialsArrayOutput() SQSCredentialsArrayOutput ToSQSCredentialsArrayOutputWithContext(context.Context) SQSCredentialsArrayOutput }
SQSCredentialsArrayInput is an input type that accepts SQSCredentialsArray and SQSCredentialsArrayOutput values. You can construct a concrete instance of `SQSCredentialsArrayInput` via:
SQSCredentialsArray{ SQSCredentialsArgs{...} }
type SQSCredentialsArrayOutput ¶
type SQSCredentialsArrayOutput struct{ *pulumi.OutputState }
func (SQSCredentialsArrayOutput) ElementType ¶
func (SQSCredentialsArrayOutput) ElementType() reflect.Type
func (SQSCredentialsArrayOutput) Index ¶
func (o SQSCredentialsArrayOutput) Index(i pulumi.IntInput) SQSCredentialsOutput
func (SQSCredentialsArrayOutput) ToSQSCredentialsArrayOutput ¶
func (o SQSCredentialsArrayOutput) ToSQSCredentialsArrayOutput() SQSCredentialsArrayOutput
func (SQSCredentialsArrayOutput) ToSQSCredentialsArrayOutputWithContext ¶
func (o SQSCredentialsArrayOutput) ToSQSCredentialsArrayOutputWithContext(ctx context.Context) SQSCredentialsArrayOutput
type SQSCredentialsInput ¶
type SQSCredentialsInput interface { pulumi.Input ToSQSCredentialsOutput() SQSCredentialsOutput ToSQSCredentialsOutputWithContext(ctx context.Context) SQSCredentialsOutput }
type SQSCredentialsMap ¶
type SQSCredentialsMap map[string]SQSCredentialsInput
func (SQSCredentialsMap) ElementType ¶
func (SQSCredentialsMap) ElementType() reflect.Type
func (SQSCredentialsMap) ToSQSCredentialsMapOutput ¶
func (i SQSCredentialsMap) ToSQSCredentialsMapOutput() SQSCredentialsMapOutput
func (SQSCredentialsMap) ToSQSCredentialsMapOutputWithContext ¶
func (i SQSCredentialsMap) ToSQSCredentialsMapOutputWithContext(ctx context.Context) SQSCredentialsMapOutput
type SQSCredentialsMapInput ¶
type SQSCredentialsMapInput interface { pulumi.Input ToSQSCredentialsMapOutput() SQSCredentialsMapOutput ToSQSCredentialsMapOutputWithContext(context.Context) SQSCredentialsMapOutput }
SQSCredentialsMapInput is an input type that accepts SQSCredentialsMap and SQSCredentialsMapOutput values. You can construct a concrete instance of `SQSCredentialsMapInput` via:
SQSCredentialsMap{ "key": SQSCredentialsArgs{...} }
type SQSCredentialsMapOutput ¶
type SQSCredentialsMapOutput struct{ *pulumi.OutputState }
func (SQSCredentialsMapOutput) ElementType ¶
func (SQSCredentialsMapOutput) ElementType() reflect.Type
func (SQSCredentialsMapOutput) MapIndex ¶
func (o SQSCredentialsMapOutput) MapIndex(k pulumi.StringInput) SQSCredentialsOutput
func (SQSCredentialsMapOutput) ToSQSCredentialsMapOutput ¶
func (o SQSCredentialsMapOutput) ToSQSCredentialsMapOutput() SQSCredentialsMapOutput
func (SQSCredentialsMapOutput) ToSQSCredentialsMapOutputWithContext ¶
func (o SQSCredentialsMapOutput) ToSQSCredentialsMapOutputWithContext(ctx context.Context) SQSCredentialsMapOutput
type SQSCredentialsOutput ¶
type SQSCredentialsOutput struct{ *pulumi.OutputState }
func (SQSCredentialsOutput) AccessKey ¶
func (o SQSCredentialsOutput) AccessKey() pulumi.StringOutput
The ID of the key.
func (SQSCredentialsOutput) ElementType ¶
func (SQSCredentialsOutput) ElementType() reflect.Type
func (SQSCredentialsOutput) Name ¶
func (o SQSCredentialsOutput) Name() pulumi.StringOutput
The unique name of the sqs credentials.
func (SQSCredentialsOutput) Permissions ¶
func (o SQSCredentialsOutput) Permissions() SQSCredentialsPermissionsOutput
. List of permissions associated to these credentials. Only one of permissions may be set.
func (SQSCredentialsOutput) ProjectId ¶
func (o SQSCredentialsOutput) ProjectId() pulumi.StringOutput
`projectId`) The ID of the project the sqs is enabled for.
func (SQSCredentialsOutput) Region ¶
func (o SQSCredentialsOutput) Region() pulumi.StringOutput
`region`). The region in which sqs is enabled.
func (SQSCredentialsOutput) SecretKey ¶
func (o SQSCredentialsOutput) SecretKey() pulumi.StringOutput
The secret value of the key.
func (SQSCredentialsOutput) ToSQSCredentialsOutput ¶
func (o SQSCredentialsOutput) ToSQSCredentialsOutput() SQSCredentialsOutput
func (SQSCredentialsOutput) ToSQSCredentialsOutputWithContext ¶
func (o SQSCredentialsOutput) ToSQSCredentialsOutputWithContext(ctx context.Context) SQSCredentialsOutput
type SQSCredentialsPermissions ¶
type SQSCredentialsPermissions struct { // . Defines if user can manage the associated resource(s). CanManage *bool `pulumi:"canManage"` // . Defines if user can publish messages to the service. CanPublish *bool `pulumi:"canPublish"` // . Defines if user can receive messages from the service. CanReceive *bool `pulumi:"canReceive"` }
type SQSCredentialsPermissionsArgs ¶
type SQSCredentialsPermissionsArgs struct { // . Defines if user can manage the associated resource(s). CanManage pulumi.BoolPtrInput `pulumi:"canManage"` // . Defines if user can publish messages to the service. CanPublish pulumi.BoolPtrInput `pulumi:"canPublish"` // . Defines if user can receive messages from the service. CanReceive pulumi.BoolPtrInput `pulumi:"canReceive"` }
func (SQSCredentialsPermissionsArgs) ElementType ¶
func (SQSCredentialsPermissionsArgs) ElementType() reflect.Type
func (SQSCredentialsPermissionsArgs) ToSQSCredentialsPermissionsOutput ¶
func (i SQSCredentialsPermissionsArgs) ToSQSCredentialsPermissionsOutput() SQSCredentialsPermissionsOutput
func (SQSCredentialsPermissionsArgs) ToSQSCredentialsPermissionsOutputWithContext ¶
func (i SQSCredentialsPermissionsArgs) ToSQSCredentialsPermissionsOutputWithContext(ctx context.Context) SQSCredentialsPermissionsOutput
func (SQSCredentialsPermissionsArgs) ToSQSCredentialsPermissionsPtrOutput ¶
func (i SQSCredentialsPermissionsArgs) ToSQSCredentialsPermissionsPtrOutput() SQSCredentialsPermissionsPtrOutput
func (SQSCredentialsPermissionsArgs) ToSQSCredentialsPermissionsPtrOutputWithContext ¶
func (i SQSCredentialsPermissionsArgs) ToSQSCredentialsPermissionsPtrOutputWithContext(ctx context.Context) SQSCredentialsPermissionsPtrOutput
type SQSCredentialsPermissionsInput ¶
type SQSCredentialsPermissionsInput interface { pulumi.Input ToSQSCredentialsPermissionsOutput() SQSCredentialsPermissionsOutput ToSQSCredentialsPermissionsOutputWithContext(context.Context) SQSCredentialsPermissionsOutput }
SQSCredentialsPermissionsInput is an input type that accepts SQSCredentialsPermissionsArgs and SQSCredentialsPermissionsOutput values. You can construct a concrete instance of `SQSCredentialsPermissionsInput` via:
SQSCredentialsPermissionsArgs{...}
type SQSCredentialsPermissionsOutput ¶
type SQSCredentialsPermissionsOutput struct{ *pulumi.OutputState }
func (SQSCredentialsPermissionsOutput) CanManage ¶
func (o SQSCredentialsPermissionsOutput) CanManage() pulumi.BoolPtrOutput
. Defines if user can manage the associated resource(s).
func (SQSCredentialsPermissionsOutput) CanPublish ¶
func (o SQSCredentialsPermissionsOutput) CanPublish() pulumi.BoolPtrOutput
. Defines if user can publish messages to the service.
func (SQSCredentialsPermissionsOutput) CanReceive ¶
func (o SQSCredentialsPermissionsOutput) CanReceive() pulumi.BoolPtrOutput
. Defines if user can receive messages from the service.
func (SQSCredentialsPermissionsOutput) ElementType ¶
func (SQSCredentialsPermissionsOutput) ElementType() reflect.Type
func (SQSCredentialsPermissionsOutput) ToSQSCredentialsPermissionsOutput ¶
func (o SQSCredentialsPermissionsOutput) ToSQSCredentialsPermissionsOutput() SQSCredentialsPermissionsOutput
func (SQSCredentialsPermissionsOutput) ToSQSCredentialsPermissionsOutputWithContext ¶
func (o SQSCredentialsPermissionsOutput) ToSQSCredentialsPermissionsOutputWithContext(ctx context.Context) SQSCredentialsPermissionsOutput
func (SQSCredentialsPermissionsOutput) ToSQSCredentialsPermissionsPtrOutput ¶
func (o SQSCredentialsPermissionsOutput) ToSQSCredentialsPermissionsPtrOutput() SQSCredentialsPermissionsPtrOutput
func (SQSCredentialsPermissionsOutput) ToSQSCredentialsPermissionsPtrOutputWithContext ¶
func (o SQSCredentialsPermissionsOutput) ToSQSCredentialsPermissionsPtrOutputWithContext(ctx context.Context) SQSCredentialsPermissionsPtrOutput
type SQSCredentialsPermissionsPtrInput ¶
type SQSCredentialsPermissionsPtrInput interface { pulumi.Input ToSQSCredentialsPermissionsPtrOutput() SQSCredentialsPermissionsPtrOutput ToSQSCredentialsPermissionsPtrOutputWithContext(context.Context) SQSCredentialsPermissionsPtrOutput }
SQSCredentialsPermissionsPtrInput is an input type that accepts SQSCredentialsPermissionsArgs, SQSCredentialsPermissionsPtr and SQSCredentialsPermissionsPtrOutput values. You can construct a concrete instance of `SQSCredentialsPermissionsPtrInput` via:
SQSCredentialsPermissionsArgs{...} or: nil
func SQSCredentialsPermissionsPtr ¶
func SQSCredentialsPermissionsPtr(v *SQSCredentialsPermissionsArgs) SQSCredentialsPermissionsPtrInput
type SQSCredentialsPermissionsPtrOutput ¶
type SQSCredentialsPermissionsPtrOutput struct{ *pulumi.OutputState }
func (SQSCredentialsPermissionsPtrOutput) CanManage ¶
func (o SQSCredentialsPermissionsPtrOutput) CanManage() pulumi.BoolPtrOutput
. Defines if user can manage the associated resource(s).
func (SQSCredentialsPermissionsPtrOutput) CanPublish ¶
func (o SQSCredentialsPermissionsPtrOutput) CanPublish() pulumi.BoolPtrOutput
. Defines if user can publish messages to the service.
func (SQSCredentialsPermissionsPtrOutput) CanReceive ¶
func (o SQSCredentialsPermissionsPtrOutput) CanReceive() pulumi.BoolPtrOutput
. Defines if user can receive messages from the service.
func (SQSCredentialsPermissionsPtrOutput) Elem ¶
func (o SQSCredentialsPermissionsPtrOutput) Elem() SQSCredentialsPermissionsOutput
func (SQSCredentialsPermissionsPtrOutput) ElementType ¶
func (SQSCredentialsPermissionsPtrOutput) ElementType() reflect.Type
func (SQSCredentialsPermissionsPtrOutput) ToSQSCredentialsPermissionsPtrOutput ¶
func (o SQSCredentialsPermissionsPtrOutput) ToSQSCredentialsPermissionsPtrOutput() SQSCredentialsPermissionsPtrOutput
func (SQSCredentialsPermissionsPtrOutput) ToSQSCredentialsPermissionsPtrOutputWithContext ¶
func (o SQSCredentialsPermissionsPtrOutput) ToSQSCredentialsPermissionsPtrOutputWithContext(ctx context.Context) SQSCredentialsPermissionsPtrOutput
type SQSCredentialsState ¶
type SQSCredentialsState struct { // The ID of the key. AccessKey pulumi.StringPtrInput // The unique name of the sqs credentials. Name pulumi.StringPtrInput // . List of permissions associated to these credentials. Only one of permissions may be set. Permissions SQSCredentialsPermissionsPtrInput // `projectId`) The ID of the project the sqs is enabled for. ProjectId pulumi.StringPtrInput // `region`). The region in which sqs is enabled. Region pulumi.StringPtrInput // The secret value of the key. SecretKey pulumi.StringPtrInput }
func (SQSCredentialsState) ElementType ¶
func (SQSCredentialsState) ElementType() reflect.Type
type SQSMap ¶
func (SQSMap) ElementType ¶
func (SQSMap) ToSQSMapOutput ¶
func (i SQSMap) ToSQSMapOutput() SQSMapOutput
func (SQSMap) ToSQSMapOutputWithContext ¶
func (i SQSMap) ToSQSMapOutputWithContext(ctx context.Context) SQSMapOutput
type SQSMapInput ¶
type SQSMapInput interface { pulumi.Input ToSQSMapOutput() SQSMapOutput ToSQSMapOutputWithContext(context.Context) SQSMapOutput }
SQSMapInput is an input type that accepts SQSMap and SQSMapOutput values. You can construct a concrete instance of `SQSMapInput` via:
SQSMap{ "key": SQSArgs{...} }
type SQSMapOutput ¶
type SQSMapOutput struct{ *pulumi.OutputState }
func (SQSMapOutput) ElementType ¶
func (SQSMapOutput) ElementType() reflect.Type
func (SQSMapOutput) MapIndex ¶
func (o SQSMapOutput) MapIndex(k pulumi.StringInput) SQSOutput
func (SQSMapOutput) ToSQSMapOutput ¶
func (o SQSMapOutput) ToSQSMapOutput() SQSMapOutput
func (SQSMapOutput) ToSQSMapOutputWithContext ¶
func (o SQSMapOutput) ToSQSMapOutputWithContext(ctx context.Context) SQSMapOutput
type SQSOutput ¶
type SQSOutput struct{ *pulumi.OutputState }
func (SQSOutput) ElementType ¶
func (SQSOutput) Endpoint ¶
func (o SQSOutput) Endpoint() pulumi.StringOutput
The endpoint of the SQS service for this project.
func (SQSOutput) ProjectId ¶
func (o SQSOutput) ProjectId() pulumi.StringOutput
`projectId`) The ID of the project the sqs will be enabled for.
func (SQSOutput) Region ¶
func (o SQSOutput) Region() pulumi.StringOutput
`region`). The region in which sqs will be enabled.
func (SQSOutput) ToSQSOutput ¶
type SQSQueue ¶
type SQSQueue struct { pulumi.CustomResourceState // The access key of the SQS queue. AccessKey pulumi.StringOutput `pulumi:"accessKey"` // Specifies whether to enable content-based deduplication. Defaults to `false`. ContentBasedDeduplication pulumi.BoolOutput `pulumi:"contentBasedDeduplication"` // Whether the queue is a FIFO queue. If true, the queue name must end with .fifo. Defaults to `false`. FifoQueue pulumi.BoolOutput `pulumi:"fifoQueue"` // The number of seconds the queue retains a message. Must be between 60 and 1_209_600. Defaults to 345_600. MessageMaxAge pulumi.IntPtrOutput `pulumi:"messageMaxAge"` // The maximum size of a message. Should be in bytes. Must be between 1024 and 262_144. Defaults to 262_144. MessageMaxSize pulumi.IntPtrOutput `pulumi:"messageMaxSize"` // The unique name of the sqs queue. Either `name` or `namePrefix` is required. Conflicts with `namePrefix`. Name pulumi.StringOutput `pulumi:"name"` // Creates a unique name beginning with the specified prefix. Conflicts with `name`. NamePrefix pulumi.StringOutput `pulumi:"namePrefix"` // `projectId`) The ID of the project the sqs is enabled for. ProjectId pulumi.StringOutput `pulumi:"projectId"` // The number of seconds to wait for a message to arrive in the queue before returning. Must be between 0 and 20. Defaults to 0. ReceiveWaitTimeSeconds pulumi.IntPtrOutput `pulumi:"receiveWaitTimeSeconds"` // `region`). The region in which sqs is enabled. Region pulumi.StringOutput `pulumi:"region"` // The secret key of the SQS queue. SecretKey pulumi.StringOutput `pulumi:"secretKey"` // The endpoint of the SQS queue. Can contain a {region} placeholder. Defaults to `https://sqs.mnq.{region}.scaleway.com`. SqsEndpoint pulumi.StringPtrOutput `pulumi:"sqsEndpoint"` // The URL of the queue. Url pulumi.StringOutput `pulumi:"url"` // The number of seconds a message is hidden from other consumers. Must be between 0 and 43_200. Defaults to 30. VisibilityTimeoutSeconds pulumi.IntPtrOutput `pulumi:"visibilityTimeoutSeconds"` }
Creates and manages Scaleway Messaging and queuing SQS Queues. For further information please check our [documentation](https://www.scaleway.com/en/docs/serverless/messaging/how-to/create-manage-queues/)
## Example Usage
### Basic
<!--Start PulumiCodeChooser --> ```go package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi" "github.com/raeumlich/pulumi-scaleway/sdk/go/scaleway/mnq"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { mainSQS, err := mnq.NewSQS(ctx, "mainSQS", nil) if err != nil { return err } mainSQSCredentials, err := mnq.NewSQSCredentials(ctx, "mainSQSCredentials", &mnq.SQSCredentialsArgs{ ProjectId: mainSQS.ProjectId, Permissions: &mnq.SQSCredentialsPermissionsArgs{ CanManage: pulumi.Bool(true), CanReceive: pulumi.Bool(false), CanPublish: pulumi.Bool(false), }, }) if err != nil { return err } _, err = mnq.NewSQSQueue(ctx, "mainSQSQueue", &mnq.SQSQueueArgs{ ProjectId: mainSQS.ProjectId, SqsEndpoint: mainSQS.Endpoint, AccessKey: mainSQSCredentials.AccessKey, SecretKey: mainSQSCredentials.SecretKey, }) if err != nil { return err } return nil }) }
``` <!--End PulumiCodeChooser -->
func GetSQSQueue ¶
func GetSQSQueue(ctx *pulumi.Context, name string, id pulumi.IDInput, state *SQSQueueState, opts ...pulumi.ResourceOption) (*SQSQueue, error)
GetSQSQueue gets an existing SQSQueue resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewSQSQueue ¶
func NewSQSQueue(ctx *pulumi.Context, name string, args *SQSQueueArgs, opts ...pulumi.ResourceOption) (*SQSQueue, error)
NewSQSQueue registers a new resource with the given unique name, arguments, and options.
func (*SQSQueue) ElementType ¶
func (*SQSQueue) ToSQSQueueOutput ¶
func (i *SQSQueue) ToSQSQueueOutput() SQSQueueOutput
func (*SQSQueue) ToSQSQueueOutputWithContext ¶
func (i *SQSQueue) ToSQSQueueOutputWithContext(ctx context.Context) SQSQueueOutput
type SQSQueueArgs ¶
type SQSQueueArgs struct { // The access key of the SQS queue. AccessKey pulumi.StringInput // Specifies whether to enable content-based deduplication. Defaults to `false`. ContentBasedDeduplication pulumi.BoolPtrInput // Whether the queue is a FIFO queue. If true, the queue name must end with .fifo. Defaults to `false`. FifoQueue pulumi.BoolPtrInput // The number of seconds the queue retains a message. Must be between 60 and 1_209_600. Defaults to 345_600. MessageMaxAge pulumi.IntPtrInput // The maximum size of a message. Should be in bytes. Must be between 1024 and 262_144. Defaults to 262_144. MessageMaxSize pulumi.IntPtrInput // The unique name of the sqs queue. Either `name` or `namePrefix` is required. Conflicts with `namePrefix`. Name pulumi.StringPtrInput // Creates a unique name beginning with the specified prefix. Conflicts with `name`. NamePrefix pulumi.StringPtrInput // `projectId`) The ID of the project the sqs is enabled for. ProjectId pulumi.StringPtrInput // The number of seconds to wait for a message to arrive in the queue before returning. Must be between 0 and 20. Defaults to 0. ReceiveWaitTimeSeconds pulumi.IntPtrInput // `region`). The region in which sqs is enabled. Region pulumi.StringPtrInput // The secret key of the SQS queue. SecretKey pulumi.StringInput // The endpoint of the SQS queue. Can contain a {region} placeholder. Defaults to `https://sqs.mnq.{region}.scaleway.com`. SqsEndpoint pulumi.StringPtrInput // The number of seconds a message is hidden from other consumers. Must be between 0 and 43_200. Defaults to 30. VisibilityTimeoutSeconds pulumi.IntPtrInput }
The set of arguments for constructing a SQSQueue resource.
func (SQSQueueArgs) ElementType ¶
func (SQSQueueArgs) ElementType() reflect.Type
type SQSQueueArray ¶
type SQSQueueArray []SQSQueueInput
func (SQSQueueArray) ElementType ¶
func (SQSQueueArray) ElementType() reflect.Type
func (SQSQueueArray) ToSQSQueueArrayOutput ¶
func (i SQSQueueArray) ToSQSQueueArrayOutput() SQSQueueArrayOutput
func (SQSQueueArray) ToSQSQueueArrayOutputWithContext ¶
func (i SQSQueueArray) ToSQSQueueArrayOutputWithContext(ctx context.Context) SQSQueueArrayOutput
type SQSQueueArrayInput ¶
type SQSQueueArrayInput interface { pulumi.Input ToSQSQueueArrayOutput() SQSQueueArrayOutput ToSQSQueueArrayOutputWithContext(context.Context) SQSQueueArrayOutput }
SQSQueueArrayInput is an input type that accepts SQSQueueArray and SQSQueueArrayOutput values. You can construct a concrete instance of `SQSQueueArrayInput` via:
SQSQueueArray{ SQSQueueArgs{...} }
type SQSQueueArrayOutput ¶
type SQSQueueArrayOutput struct{ *pulumi.OutputState }
func (SQSQueueArrayOutput) ElementType ¶
func (SQSQueueArrayOutput) ElementType() reflect.Type
func (SQSQueueArrayOutput) Index ¶
func (o SQSQueueArrayOutput) Index(i pulumi.IntInput) SQSQueueOutput
func (SQSQueueArrayOutput) ToSQSQueueArrayOutput ¶
func (o SQSQueueArrayOutput) ToSQSQueueArrayOutput() SQSQueueArrayOutput
func (SQSQueueArrayOutput) ToSQSQueueArrayOutputWithContext ¶
func (o SQSQueueArrayOutput) ToSQSQueueArrayOutputWithContext(ctx context.Context) SQSQueueArrayOutput
type SQSQueueInput ¶
type SQSQueueInput interface { pulumi.Input ToSQSQueueOutput() SQSQueueOutput ToSQSQueueOutputWithContext(ctx context.Context) SQSQueueOutput }
type SQSQueueMap ¶
type SQSQueueMap map[string]SQSQueueInput
func (SQSQueueMap) ElementType ¶
func (SQSQueueMap) ElementType() reflect.Type
func (SQSQueueMap) ToSQSQueueMapOutput ¶
func (i SQSQueueMap) ToSQSQueueMapOutput() SQSQueueMapOutput
func (SQSQueueMap) ToSQSQueueMapOutputWithContext ¶
func (i SQSQueueMap) ToSQSQueueMapOutputWithContext(ctx context.Context) SQSQueueMapOutput
type SQSQueueMapInput ¶
type SQSQueueMapInput interface { pulumi.Input ToSQSQueueMapOutput() SQSQueueMapOutput ToSQSQueueMapOutputWithContext(context.Context) SQSQueueMapOutput }
SQSQueueMapInput is an input type that accepts SQSQueueMap and SQSQueueMapOutput values. You can construct a concrete instance of `SQSQueueMapInput` via:
SQSQueueMap{ "key": SQSQueueArgs{...} }
type SQSQueueMapOutput ¶
type SQSQueueMapOutput struct{ *pulumi.OutputState }
func (SQSQueueMapOutput) ElementType ¶
func (SQSQueueMapOutput) ElementType() reflect.Type
func (SQSQueueMapOutput) MapIndex ¶
func (o SQSQueueMapOutput) MapIndex(k pulumi.StringInput) SQSQueueOutput
func (SQSQueueMapOutput) ToSQSQueueMapOutput ¶
func (o SQSQueueMapOutput) ToSQSQueueMapOutput() SQSQueueMapOutput
func (SQSQueueMapOutput) ToSQSQueueMapOutputWithContext ¶
func (o SQSQueueMapOutput) ToSQSQueueMapOutputWithContext(ctx context.Context) SQSQueueMapOutput
type SQSQueueOutput ¶
type SQSQueueOutput struct{ *pulumi.OutputState }
func (SQSQueueOutput) AccessKey ¶
func (o SQSQueueOutput) AccessKey() pulumi.StringOutput
The access key of the SQS queue.
func (SQSQueueOutput) ContentBasedDeduplication ¶
func (o SQSQueueOutput) ContentBasedDeduplication() pulumi.BoolOutput
Specifies whether to enable content-based deduplication. Defaults to `false`.
func (SQSQueueOutput) ElementType ¶
func (SQSQueueOutput) ElementType() reflect.Type
func (SQSQueueOutput) FifoQueue ¶
func (o SQSQueueOutput) FifoQueue() pulumi.BoolOutput
Whether the queue is a FIFO queue. If true, the queue name must end with .fifo. Defaults to `false`.
func (SQSQueueOutput) MessageMaxAge ¶
func (o SQSQueueOutput) MessageMaxAge() pulumi.IntPtrOutput
The number of seconds the queue retains a message. Must be between 60 and 1_209_600. Defaults to 345_600.
func (SQSQueueOutput) MessageMaxSize ¶
func (o SQSQueueOutput) MessageMaxSize() pulumi.IntPtrOutput
The maximum size of a message. Should be in bytes. Must be between 1024 and 262_144. Defaults to 262_144.
func (SQSQueueOutput) Name ¶
func (o SQSQueueOutput) Name() pulumi.StringOutput
The unique name of the sqs queue. Either `name` or `namePrefix` is required. Conflicts with `namePrefix`.
func (SQSQueueOutput) NamePrefix ¶
func (o SQSQueueOutput) NamePrefix() pulumi.StringOutput
Creates a unique name beginning with the specified prefix. Conflicts with `name`.
func (SQSQueueOutput) ProjectId ¶
func (o SQSQueueOutput) ProjectId() pulumi.StringOutput
`projectId`) The ID of the project the sqs is enabled for.
func (SQSQueueOutput) ReceiveWaitTimeSeconds ¶
func (o SQSQueueOutput) ReceiveWaitTimeSeconds() pulumi.IntPtrOutput
The number of seconds to wait for a message to arrive in the queue before returning. Must be between 0 and 20. Defaults to 0.
func (SQSQueueOutput) Region ¶
func (o SQSQueueOutput) Region() pulumi.StringOutput
`region`). The region in which sqs is enabled.
func (SQSQueueOutput) SecretKey ¶
func (o SQSQueueOutput) SecretKey() pulumi.StringOutput
The secret key of the SQS queue.
func (SQSQueueOutput) SqsEndpoint ¶
func (o SQSQueueOutput) SqsEndpoint() pulumi.StringPtrOutput
The endpoint of the SQS queue. Can contain a {region} placeholder. Defaults to `https://sqs.mnq.{region}.scaleway.com`.
func (SQSQueueOutput) ToSQSQueueOutput ¶
func (o SQSQueueOutput) ToSQSQueueOutput() SQSQueueOutput
func (SQSQueueOutput) ToSQSQueueOutputWithContext ¶
func (o SQSQueueOutput) ToSQSQueueOutputWithContext(ctx context.Context) SQSQueueOutput
func (SQSQueueOutput) VisibilityTimeoutSeconds ¶
func (o SQSQueueOutput) VisibilityTimeoutSeconds() pulumi.IntPtrOutput
The number of seconds a message is hidden from other consumers. Must be between 0 and 43_200. Defaults to 30.
type SQSQueueState ¶
type SQSQueueState struct { // The access key of the SQS queue. AccessKey pulumi.StringPtrInput // Specifies whether to enable content-based deduplication. Defaults to `false`. ContentBasedDeduplication pulumi.BoolPtrInput // Whether the queue is a FIFO queue. If true, the queue name must end with .fifo. Defaults to `false`. FifoQueue pulumi.BoolPtrInput // The number of seconds the queue retains a message. Must be between 60 and 1_209_600. Defaults to 345_600. MessageMaxAge pulumi.IntPtrInput // The maximum size of a message. Should be in bytes. Must be between 1024 and 262_144. Defaults to 262_144. MessageMaxSize pulumi.IntPtrInput // The unique name of the sqs queue. Either `name` or `namePrefix` is required. Conflicts with `namePrefix`. Name pulumi.StringPtrInput // Creates a unique name beginning with the specified prefix. Conflicts with `name`. NamePrefix pulumi.StringPtrInput // `projectId`) The ID of the project the sqs is enabled for. ProjectId pulumi.StringPtrInput // The number of seconds to wait for a message to arrive in the queue before returning. Must be between 0 and 20. Defaults to 0. ReceiveWaitTimeSeconds pulumi.IntPtrInput // `region`). The region in which sqs is enabled. Region pulumi.StringPtrInput // The secret key of the SQS queue. SecretKey pulumi.StringPtrInput // The endpoint of the SQS queue. Can contain a {region} placeholder. Defaults to `https://sqs.mnq.{region}.scaleway.com`. SqsEndpoint pulumi.StringPtrInput // The URL of the queue. Url pulumi.StringPtrInput // The number of seconds a message is hidden from other consumers. Must be between 0 and 43_200. Defaults to 30. VisibilityTimeoutSeconds pulumi.IntPtrInput }
func (SQSQueueState) ElementType ¶
func (SQSQueueState) ElementType() reflect.Type
type SQSState ¶
type SQSState struct { // The endpoint of the SQS service for this project. Endpoint pulumi.StringPtrInput // `projectId`) The ID of the project the sqs will be enabled for. ProjectId pulumi.StringPtrInput // `region`). The region // in which sqs will be enabled. Region pulumi.StringPtrInput }