harness.platform.CentralNotificationChannel
Explore with Pulumi AI
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:
- Channel
Central
Notification Channel Channel - Identifier string
- Notification
Channel stringType - Name string
- Org string
- Project string
- Status string
- Channel
Central
Notification Channel Channel Args - Identifier string
- Notification
Channel stringType - Name string
- Org string
- Project string
- Status string
- channel
Central
Notification Channel Channel - identifier String
- notification
Channel StringType - name String
- org String
- project String
- status String
- channel
Central
Notification Channel Channel - identifier string
- notification
Channel stringType - name string
- org string
- project string
- status string
- channel
Central
Notification Channel Channel Args - identifier str
- notification_
channel_ strtype - name str
- org str
- project str
- status str
- channel Property Map
- identifier String
- notification
Channel StringType - name String
- org String
- project String
- status String
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.
- Last
Modified 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.
- Last
Modified 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.
- last
Modified 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.
- last
Modified 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.
- last
Modified 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.
- Account string
- Account identifier associated with this notification channel.
- Channel
Central
Notification Channel Channel - Created int
- Timestamp when the notification channel was created.
- Identifier string
- Last
Modified int - Timestamp when the notification channel was last modified.
- Name string
- Notification
Channel stringType - Org string
- Project string
- Status string
- Account string
- Account identifier associated with this notification channel.
- Channel
Central
Notification Channel Channel Args - Created int
- Timestamp when the notification channel was created.
- Identifier string
- Last
Modified int - Timestamp when the notification channel was last modified.
- Name string
- Notification
Channel stringType - Org string
- Project string
- Status string
- account String
- Account identifier associated with this notification channel.
- channel
Central
Notification Channel Channel - created Integer
- Timestamp when the notification channel was created.
- identifier String
- last
Modified Integer - Timestamp when the notification channel was last modified.
- name String
- notification
Channel StringType - org String
- project String
- status String
- account string
- Account identifier associated with this notification channel.
- channel
Central
Notification Channel Channel - created number
- Timestamp when the notification channel was created.
- identifier string
- last
Modified number - Timestamp when the notification channel was last modified.
- name string
- notification
Channel stringType - org string
- project string
- status string
- account str
- Account identifier associated with this notification channel.
- channel
Central
Notification Channel Channel Args - 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_ strtype - 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
- last
Modified Number - Timestamp when the notification channel was last modified.
- name String
- notification
Channel StringType - org String
- project String
- status String
Supporting Types
CentralNotificationChannelChannel, CentralNotificationChannelChannelArgs
- Api
Key string - Datadog
Urls List<string> - Delegate
Selectors List<string> - Email
Ids List<string> - Execute
On boolDelegate - Headers
List<Central
Notification Channel Channel Header> - Ms
Team List<string>Keys - Pager
Duty List<string>Integration Keys - Slack
Webhook List<string>Urls - User
Groups List<CentralNotification Channel Channel User Group> - Webhook
Urls List<string>
- Api
Key string - Datadog
Urls []string - Delegate
Selectors []string - Email
Ids []string - Execute
On boolDelegate - Headers
[]Central
Notification Channel Channel Header - Ms
Team []stringKeys - Pager
Duty []stringIntegration Keys - Slack
Webhook []stringUrls - User
Groups []CentralNotification Channel Channel User Group - Webhook
Urls []string
- api
Key String - datadog
Urls List<String> - delegate
Selectors List<String> - email
Ids List<String> - execute
On BooleanDelegate - headers
List<Central
Notification Channel Channel Header> - ms
Team List<String>Keys - pager
Duty List<String>Integration Keys - slack
Webhook List<String>Urls - user
Groups List<CentralNotification Channel Channel User Group> - webhook
Urls List<String>
- api
Key string - datadog
Urls string[] - delegate
Selectors string[] - email
Ids string[] - execute
On booleanDelegate - headers
Central
Notification Channel Channel Header[] - ms
Team string[]Keys - pager
Duty string[]Integration Keys - slack
Webhook string[]Urls - user
Groups CentralNotification Channel Channel User Group[] - webhook
Urls string[]
- api_
key str - datadog_
urls Sequence[str] - delegate_
selectors Sequence[str] - email_
ids Sequence[str] - execute_
on_ booldelegate - headers
Sequence[Central
Notification Channel Channel Header] - ms_
team_ Sequence[str]keys - pager_
duty_ Sequence[str]integration_ keys - slack_
webhook_ Sequence[str]urls - user_
groups Sequence[CentralNotification Channel Channel User Group] - webhook_
urls Sequence[str]
- api
Key String - datadog
Urls List<String> - delegate
Selectors List<String> - email
Ids List<String> - execute
On BooleanDelegate - headers List<Property Map>
- ms
Team List<String>Keys - pager
Duty List<String>Integration Keys - slack
Webhook List<String>Urls - user
Groups List<Property Map> - webhook
Urls List<String>
CentralNotificationChannelChannelHeader, CentralNotificationChannelChannelHeaderArgs
CentralNotificationChannelChannelUserGroup, CentralNotificationChannelChannelUserGroupArgs
- Identifier string
- Identifier string
- identifier String
- identifier string
- identifier str
- identifier String
Package Details
- Repository
- harness pulumi/pulumi-harness
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
harness
Terraform Provider.