SuppressionList

class SuppressionList : KotlinCustomResource

A class representing a SuppressionList resource. Uses Azure REST API version 2023-06-01-preview. In version 2.x of the Azure Native provider, it used API version 2023-06-01-preview. Other available API versions: 2024-09-01-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native communication [ApiVersion]. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.

Example Usage

CreateOrUpdate SuppressionLists resource.

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var suppressionList = new AzureNative.Communication.SuppressionList("suppressionList", new()
{
DomainName = "contoso.com",
EmailServiceName = "contosoEmailService",
ListName = "contosoNewsAlerts",
ResourceGroupName = "contosoResourceGroup",
SuppressionListName = "aaaa1111-bbbb-2222-3333-aaaa11112222",
});
});
package main
import (
communication "github.com/pulumi/pulumi-azure-native-sdk/communication/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := communication.NewSuppressionList(ctx, "suppressionList", &communication.SuppressionListArgs{
DomainName: pulumi.String("contoso.com"),
EmailServiceName: pulumi.String("contosoEmailService"),
ListName: pulumi.String("contosoNewsAlerts"),
ResourceGroupName: pulumi.String("contosoResourceGroup"),
SuppressionListName: pulumi.String("aaaa1111-bbbb-2222-3333-aaaa11112222"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.communication.SuppressionList;
import com.pulumi.azurenative.communication.SuppressionListArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var suppressionList = new SuppressionList("suppressionList", SuppressionListArgs.builder()
.domainName("contoso.com")
.emailServiceName("contosoEmailService")
.listName("contosoNewsAlerts")
.resourceGroupName("contosoResourceGroup")
.suppressionListName("aaaa1111-bbbb-2222-3333-aaaa11112222")
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:communication:SuppressionList aaaa1111-bbbb-2222-3333-aaaa11112222 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Communication/emailServices/{emailServiceName}/domains/{domainName}/suppressionLists/{suppressionListName}

Properties

Link copied to clipboard
val azureApiVersion: Output<String>

The Azure API version of the resource.

Link copied to clipboard

The date the resource was created.

Link copied to clipboard
val dataLocation: Output<String>

The location where the SuppressionListAddress data is stored at rest. This value is inherited from the parent Domains resource.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard

The date the resource was last updated.

Link copied to clipboard
val listName: Output<String>?

The the name of the suppression list. This value must match one of the valid sender usernames of the sending domain.

Link copied to clipboard
val name: Output<String>

The name of the resource

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Azure Resource Manager metadata containing createdBy and modifiedBy information.

Link copied to clipboard
val type: Output<String>

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Link copied to clipboard
val urn: Output<String>