1. Packages
  2. Harness Provider
  3. API Docs
  4. platform
  5. CentralNotificationChannel
Harness v0.7.7 published on Thursday, Jul 17, 2025 by Pulumi

harness.platform.CentralNotificationChannel

Explore with Pulumi AI

harness logo
Harness v0.7.7 published on Thursday, Jul 17, 2025 by Pulumi

    Resource for managing Harness Notification Channels.

    Create CentralNotificationChannel Resource

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

    Constructor syntax

    new CentralNotificationChannel(name: string, args: CentralNotificationChannelArgs, opts?: CustomResourceOptions);
    @overload
    def CentralNotificationChannel(resource_name: str,
                                   args: CentralNotificationChannelArgs,
                                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def CentralNotificationChannel(resource_name: str,
                                   opts: Optional[ResourceOptions] = None,
                                   channel: Optional[CentralNotificationChannelChannelArgs] = None,
                                   identifier: Optional[str] = None,
                                   notification_channel_type: Optional[str] = None,
                                   name: Optional[str] = None,
                                   org: Optional[str] = None,
                                   project: Optional[str] = None,
                                   status: Optional[str] = None)
    func NewCentralNotificationChannel(ctx *Context, name string, args CentralNotificationChannelArgs, opts ...ResourceOption) (*CentralNotificationChannel, error)
    public CentralNotificationChannel(string name, CentralNotificationChannelArgs args, CustomResourceOptions? opts = null)
    public CentralNotificationChannel(String name, CentralNotificationChannelArgs args)
    public CentralNotificationChannel(String name, CentralNotificationChannelArgs args, CustomResourceOptions options)
    
    type: harness:platform:CentralNotificationChannel
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

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

    Constructor example

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

    var centralNotificationChannelResource = new Harness.Platform.CentralNotificationChannel("centralNotificationChannelResource", new()
    {
        Channel = new Harness.Platform.Inputs.CentralNotificationChannelChannelArgs
        {
            ApiKey = "string",
            DatadogUrls = new[]
            {
                "string",
            },
            DelegateSelectors = new[]
            {
                "string",
            },
            EmailIds = new[]
            {
                "string",
            },
            ExecuteOnDelegate = false,
            Headers = new[]
            {
                new Harness.Platform.Inputs.CentralNotificationChannelChannelHeaderArgs
                {
                    Key = "string",
                    Value = "string",
                },
            },
            MsTeamKeys = new[]
            {
                "string",
            },
            PagerDutyIntegrationKeys = new[]
            {
                "string",
            },
            SlackWebhookUrls = new[]
            {
                "string",
            },
            UserGroups = new[]
            {
                new Harness.Platform.Inputs.CentralNotificationChannelChannelUserGroupArgs
                {
                    Identifier = "string",
                },
            },
            WebhookUrls = new[]
            {
                "string",
            },
        },
        Identifier = "string",
        NotificationChannelType = "string",
        Name = "string",
        Org = "string",
        Project = "string",
        Status = "string",
    });
    
    example, err := platform.NewCentralNotificationChannel(ctx, "centralNotificationChannelResource", &platform.CentralNotificationChannelArgs{
    	Channel: &platform.CentralNotificationChannelChannelArgs{
    		ApiKey: pulumi.String("string"),
    		DatadogUrls: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    		DelegateSelectors: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    		EmailIds: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    		ExecuteOnDelegate: pulumi.Bool(false),
    		Headers: platform.CentralNotificationChannelChannelHeaderArray{
    			&platform.CentralNotificationChannelChannelHeaderArgs{
    				Key:   pulumi.String("string"),
    				Value: pulumi.String("string"),
    			},
    		},
    		MsTeamKeys: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    		PagerDutyIntegrationKeys: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    		SlackWebhookUrls: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    		UserGroups: platform.CentralNotificationChannelChannelUserGroupArray{
    			&platform.CentralNotificationChannelChannelUserGroupArgs{
    				Identifier: pulumi.String("string"),
    			},
    		},
    		WebhookUrls: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    	},
    	Identifier:              pulumi.String("string"),
    	NotificationChannelType: pulumi.String("string"),
    	Name:                    pulumi.String("string"),
    	Org:                     pulumi.String("string"),
    	Project:                 pulumi.String("string"),
    	Status:                  pulumi.String("string"),
    })
    
    var centralNotificationChannelResource = new CentralNotificationChannel("centralNotificationChannelResource", CentralNotificationChannelArgs.builder()
        .channel(CentralNotificationChannelChannelArgs.builder()
            .apiKey("string")
            .datadogUrls("string")
            .delegateSelectors("string")
            .emailIds("string")
            .executeOnDelegate(false)
            .headers(CentralNotificationChannelChannelHeaderArgs.builder()
                .key("string")
                .value("string")
                .build())
            .msTeamKeys("string")
            .pagerDutyIntegrationKeys("string")
            .slackWebhookUrls("string")
            .userGroups(CentralNotificationChannelChannelUserGroupArgs.builder()
                .identifier("string")
                .build())
            .webhookUrls("string")
            .build())
        .identifier("string")
        .notificationChannelType("string")
        .name("string")
        .org("string")
        .project("string")
        .status("string")
        .build());
    
    central_notification_channel_resource = harness.platform.CentralNotificationChannel("centralNotificationChannelResource",
        channel={
            "api_key": "string",
            "datadog_urls": ["string"],
            "delegate_selectors": ["string"],
            "email_ids": ["string"],
            "execute_on_delegate": False,
            "headers": [{
                "key": "string",
                "value": "string",
            }],
            "ms_team_keys": ["string"],
            "pager_duty_integration_keys": ["string"],
            "slack_webhook_urls": ["string"],
            "user_groups": [{
                "identifier": "string",
            }],
            "webhook_urls": ["string"],
        },
        identifier="string",
        notification_channel_type="string",
        name="string",
        org="string",
        project="string",
        status="string")
    
    const centralNotificationChannelResource = new harness.platform.CentralNotificationChannel("centralNotificationChannelResource", {
        channel: {
            apiKey: "string",
            datadogUrls: ["string"],
            delegateSelectors: ["string"],
            emailIds: ["string"],
            executeOnDelegate: false,
            headers: [{
                key: "string",
                value: "string",
            }],
            msTeamKeys: ["string"],
            pagerDutyIntegrationKeys: ["string"],
            slackWebhookUrls: ["string"],
            userGroups: [{
                identifier: "string",
            }],
            webhookUrls: ["string"],
        },
        identifier: "string",
        notificationChannelType: "string",
        name: "string",
        org: "string",
        project: "string",
        status: "string",
    });
    
    type: harness:platform:CentralNotificationChannel
    properties:
        channel:
            apiKey: string
            datadogUrls:
                - string
            delegateSelectors:
                - string
            emailIds:
                - string
            executeOnDelegate: false
            headers:
                - key: string
                  value: string
            msTeamKeys:
                - string
            pagerDutyIntegrationKeys:
                - string
            slackWebhookUrls:
                - string
            userGroups:
                - identifier: string
            webhookUrls:
                - string
        identifier: string
        name: string
        notificationChannelType: string
        org: string
        project: string
        status: string
    

    CentralNotificationChannel Resource Properties

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

    Inputs

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

    The CentralNotificationChannel resource accepts the following input properties:

    Outputs

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

    Account string
    Account identifier associated with this notification channel.
    Created int
    Timestamp when the notification channel was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    LastModified int
    Timestamp when the notification channel was last modified.
    Account string
    Account identifier associated with this notification channel.
    Created int
    Timestamp when the notification channel was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    LastModified int
    Timestamp when the notification channel was last modified.
    account String
    Account identifier associated with this notification channel.
    created Integer
    Timestamp when the notification channel was created.
    id String
    The provider-assigned unique ID for this managed resource.
    lastModified Integer
    Timestamp when the notification channel was last modified.
    account string
    Account identifier associated with this notification channel.
    created number
    Timestamp when the notification channel was created.
    id string
    The provider-assigned unique ID for this managed resource.
    lastModified number
    Timestamp when the notification channel was last modified.
    account str
    Account identifier associated with this notification channel.
    created int
    Timestamp when the notification channel was created.
    id str
    The provider-assigned unique ID for this managed resource.
    last_modified int
    Timestamp when the notification channel was last modified.
    account String
    Account identifier associated with this notification channel.
    created Number
    Timestamp when the notification channel was created.
    id String
    The provider-assigned unique ID for this managed resource.
    lastModified Number
    Timestamp when the notification channel was last modified.

    Look up Existing CentralNotificationChannel Resource

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

    public static get(name: string, id: Input<ID>, state?: CentralNotificationChannelState, opts?: CustomResourceOptions): CentralNotificationChannel
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            account: Optional[str] = None,
            channel: Optional[CentralNotificationChannelChannelArgs] = None,
            created: Optional[int] = None,
            identifier: Optional[str] = None,
            last_modified: Optional[int] = None,
            name: Optional[str] = None,
            notification_channel_type: Optional[str] = None,
            org: Optional[str] = None,
            project: Optional[str] = None,
            status: Optional[str] = None) -> CentralNotificationChannel
    func GetCentralNotificationChannel(ctx *Context, name string, id IDInput, state *CentralNotificationChannelState, opts ...ResourceOption) (*CentralNotificationChannel, error)
    public static CentralNotificationChannel Get(string name, Input<string> id, CentralNotificationChannelState? state, CustomResourceOptions? opts = null)
    public static CentralNotificationChannel get(String name, Output<String> id, CentralNotificationChannelState state, CustomResourceOptions options)
    resources:  _:    type: harness:platform:CentralNotificationChannel    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Account string
    Account identifier associated with this notification channel.
    Channel CentralNotificationChannelChannel
    Created int
    Timestamp when the notification channel was created.
    Identifier string
    LastModified int
    Timestamp when the notification channel was last modified.
    Name string
    NotificationChannelType string
    Org string
    Project string
    Status string
    Account string
    Account identifier associated with this notification channel.
    Channel CentralNotificationChannelChannelArgs
    Created int
    Timestamp when the notification channel was created.
    Identifier string
    LastModified int
    Timestamp when the notification channel was last modified.
    Name string
    NotificationChannelType string
    Org string
    Project string
    Status string
    account String
    Account identifier associated with this notification channel.
    channel CentralNotificationChannelChannel
    created Integer
    Timestamp when the notification channel was created.
    identifier String
    lastModified Integer
    Timestamp when the notification channel was last modified.
    name String
    notificationChannelType String
    org String
    project String
    status String
    account string
    Account identifier associated with this notification channel.
    channel CentralNotificationChannelChannel
    created number
    Timestamp when the notification channel was created.
    identifier string
    lastModified number
    Timestamp when the notification channel was last modified.
    name string
    notificationChannelType string
    org string
    project string
    status string
    account str
    Account identifier associated with this notification channel.
    channel CentralNotificationChannelChannelArgs
    created int
    Timestamp when the notification channel was created.
    identifier str
    last_modified int
    Timestamp when the notification channel was last modified.
    name str
    notification_channel_type str
    org str
    project str
    status str
    account String
    Account identifier associated with this notification channel.
    channel Property Map
    created Number
    Timestamp when the notification channel was created.
    identifier String
    lastModified Number
    Timestamp when the notification channel was last modified.
    name String
    notificationChannelType String
    org String
    project String
    status String

    Supporting Types

    CentralNotificationChannelChannel, CentralNotificationChannelChannelArgs

    CentralNotificationChannelChannelHeader, CentralNotificationChannelChannelHeaderArgs

    Key string
    Value string
    Key string
    Value string
    key String
    value String
    key string
    value string
    key str
    value str
    key String
    value String

    CentralNotificationChannelChannelUserGroup, CentralNotificationChannelChannelUserGroupArgs

    Identifier string
    Identifier string
    identifier String
    identifier string
    identifier String

    Package Details

    Repository
    harness pulumi/pulumi-harness
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the harness Terraform Provider.
    harness logo
    Harness v0.7.7 published on Thursday, Jul 17, 2025 by Pulumi