incapsula.NotificationCenterPolicy
Explore with Pulumi AI
Provides an Incapsula Notification Center Policy resource.
Example Usage
Notification center policy that applies on subaccounts
import * as pulumi from "@pulumi/pulumi";
import * as incapsula from "@pulumi/incapsula";
const notification_policy_subaccount = new incapsula.NotificationCenterPolicy("notification-policy-subaccount", {
accountId: 12345,
policyName: "Terraform policy sub account",
status: "ENABLE",
subCategory: "SITE_NOTIFICATIONS",
emailchannelUserRecipientLists: [
1111,
2222,
],
emailchannelExternalRecipientLists: [
"john.doe@company.com",
"another.email@company.com",
],
policyType: "SUB_ACCOUNT",
subAccountLists: [
123456,
incapsula_subaccount["tmp-subaccount"].id,
],
});
import pulumi
import pulumi_incapsula as incapsula
notification_policy_subaccount = incapsula.NotificationCenterPolicy("notification-policy-subaccount",
account_id=12345,
policy_name="Terraform policy sub account",
status="ENABLE",
sub_category="SITE_NOTIFICATIONS",
emailchannel_user_recipient_lists=[
1111,
2222,
],
emailchannel_external_recipient_lists=[
"john.doe@company.com",
"another.email@company.com",
],
policy_type="SUB_ACCOUNT",
sub_account_lists=[
123456,
incapsula_subaccount["tmp-subaccount"]["id"],
])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/incapsula/v3/incapsula"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := incapsula.NewNotificationCenterPolicy(ctx, "notification-policy-subaccount", &incapsula.NotificationCenterPolicyArgs{
AccountId: pulumi.Float64(12345),
PolicyName: pulumi.String("Terraform policy sub account"),
Status: pulumi.String("ENABLE"),
SubCategory: pulumi.String("SITE_NOTIFICATIONS"),
EmailchannelUserRecipientLists: pulumi.Float64Array{
pulumi.Float64(1111),
pulumi.Float64(2222),
},
EmailchannelExternalRecipientLists: pulumi.StringArray{
pulumi.String("john.doe@company.com"),
pulumi.String("another.email@company.com"),
},
PolicyType: pulumi.String("SUB_ACCOUNT"),
SubAccountLists: pulumi.Float64Array{
pulumi.Float64(123456),
incapsula_subaccount.TmpSubaccount.Id,
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Incapsula = Pulumi.Incapsula;
return await Deployment.RunAsync(() =>
{
var notification_policy_subaccount = new Incapsula.NotificationCenterPolicy("notification-policy-subaccount", new()
{
AccountId = 12345,
PolicyName = "Terraform policy sub account",
Status = "ENABLE",
SubCategory = "SITE_NOTIFICATIONS",
EmailchannelUserRecipientLists = new[]
{
1111,
2222,
},
EmailchannelExternalRecipientLists = new[]
{
"john.doe@company.com",
"another.email@company.com",
},
PolicyType = "SUB_ACCOUNT",
SubAccountLists = new[]
{
123456,
incapsula_subaccount.Tmp_subaccount.Id,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.incapsula.NotificationCenterPolicy;
import com.pulumi.incapsula.NotificationCenterPolicyArgs;
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 notification_policy_subaccount = new NotificationCenterPolicy("notification-policy-subaccount", NotificationCenterPolicyArgs.builder()
.accountId(12345)
.policyName("Terraform policy sub account")
.status("ENABLE")
.subCategory("SITE_NOTIFICATIONS")
.emailchannelUserRecipientLists(
1111,
2222)
.emailchannelExternalRecipientLists(
"john.doe@company.com",
"another.email@company.com")
.policyType("SUB_ACCOUNT")
.subAccountLists(
123456,
incapsula_subaccount.tmp-subaccount().id())
.build());
}
}
resources:
notification-policy-subaccount:
type: incapsula:NotificationCenterPolicy
properties:
accountId: 12345
policyName: Terraform policy sub account
status: ENABLE
subCategory: SITE_NOTIFICATIONS
emailchannelUserRecipientLists:
- 1111
- 2222
emailchannelExternalRecipientLists:
- john.doe@company.com
- another.email@company.com
policyType: SUB_ACCOUNT
subAccountLists:
- 123456
- ${incapsula_subaccount"tmp-subaccount"[%!s(MISSING)].id}
Notification policy that applies to assets of type “incapsula.Site”
import * as pulumi from "@pulumi/pulumi";
import * as incapsula from "@pulumi/incapsula";
const notification_policy_account_with_assets = new incapsula.NotificationCenterPolicy("notification-policy-account-with-assets", {
accountId: 12345,
policyName: "Terraform policy account with assets",
assets: [
{
assetType: "SITE",
assetId: incapsula_site["tmp-site"].id,
},
{
assetType: "SITE",
assetId: 7999203,
},
],
status: "ENABLE",
subCategory: "SITE_NOTIFICATIONS",
emailchannelUserRecipientLists: [
1111,
2222,
],
emailchannelExternalRecipientLists: [
"john.doe@company.com",
"another.exernal.email@company.com",
],
policyType: "ACCOUNT",
applyToNewAssets: "FALSE",
});
import pulumi
import pulumi_incapsula as incapsula
notification_policy_account_with_assets = incapsula.NotificationCenterPolicy("notification-policy-account-with-assets",
account_id=12345,
policy_name="Terraform policy account with assets",
assets=[
{
"asset_type": "SITE",
"asset_id": incapsula_site["tmp-site"]["id"],
},
{
"asset_type": "SITE",
"asset_id": 7999203,
},
],
status="ENABLE",
sub_category="SITE_NOTIFICATIONS",
emailchannel_user_recipient_lists=[
1111,
2222,
],
emailchannel_external_recipient_lists=[
"john.doe@company.com",
"another.exernal.email@company.com",
],
policy_type="ACCOUNT",
apply_to_new_assets="FALSE")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/incapsula/v3/incapsula"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := incapsula.NewNotificationCenterPolicy(ctx, "notification-policy-account-with-assets", &incapsula.NotificationCenterPolicyArgs{
AccountId: pulumi.Float64(12345),
PolicyName: pulumi.String("Terraform policy account with assets"),
Assets: incapsula.NotificationCenterPolicyAssetArray{
&incapsula.NotificationCenterPolicyAssetArgs{
AssetType: pulumi.String("SITE"),
AssetId: pulumi.Any(incapsula_site.TmpSite.Id),
},
&incapsula.NotificationCenterPolicyAssetArgs{
AssetType: pulumi.String("SITE"),
AssetId: pulumi.Float64(7999203),
},
},
Status: pulumi.String("ENABLE"),
SubCategory: pulumi.String("SITE_NOTIFICATIONS"),
EmailchannelUserRecipientLists: pulumi.Float64Array{
pulumi.Float64(1111),
pulumi.Float64(2222),
},
EmailchannelExternalRecipientLists: pulumi.StringArray{
pulumi.String("john.doe@company.com"),
pulumi.String("another.exernal.email@company.com"),
},
PolicyType: pulumi.String("ACCOUNT"),
ApplyToNewAssets: pulumi.String("FALSE"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Incapsula = Pulumi.Incapsula;
return await Deployment.RunAsync(() =>
{
var notification_policy_account_with_assets = new Incapsula.NotificationCenterPolicy("notification-policy-account-with-assets", new()
{
AccountId = 12345,
PolicyName = "Terraform policy account with assets",
Assets = new[]
{
new Incapsula.Inputs.NotificationCenterPolicyAssetArgs
{
AssetType = "SITE",
AssetId = incapsula_site.Tmp_site.Id,
},
new Incapsula.Inputs.NotificationCenterPolicyAssetArgs
{
AssetType = "SITE",
AssetId = 7999203,
},
},
Status = "ENABLE",
SubCategory = "SITE_NOTIFICATIONS",
EmailchannelUserRecipientLists = new[]
{
1111,
2222,
},
EmailchannelExternalRecipientLists = new[]
{
"john.doe@company.com",
"another.exernal.email@company.com",
},
PolicyType = "ACCOUNT",
ApplyToNewAssets = "FALSE",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.incapsula.NotificationCenterPolicy;
import com.pulumi.incapsula.NotificationCenterPolicyArgs;
import com.pulumi.incapsula.inputs.NotificationCenterPolicyAssetArgs;
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 notification_policy_account_with_assets = new NotificationCenterPolicy("notification-policy-account-with-assets", NotificationCenterPolicyArgs.builder()
.accountId(12345)
.policyName("Terraform policy account with assets")
.assets(
NotificationCenterPolicyAssetArgs.builder()
.assetType("SITE")
.assetId(incapsula_site.tmp-site().id())
.build(),
NotificationCenterPolicyAssetArgs.builder()
.assetType("SITE")
.assetId(7999203)
.build())
.status("ENABLE")
.subCategory("SITE_NOTIFICATIONS")
.emailchannelUserRecipientLists(
1111,
2222)
.emailchannelExternalRecipientLists(
"john.doe@company.com",
"another.exernal.email@company.com")
.policyType("ACCOUNT")
.applyToNewAssets("FALSE")
.build());
}
}
resources:
notification-policy-account-with-assets:
type: incapsula:NotificationCenterPolicy
properties:
accountId: 12345
policyName: Terraform policy account with assets
assets:
- assetType: SITE
assetId: ${incapsula_site"tmp-site"[%!s(MISSING)].id}
- assetType: SITE
assetId: 7.999203e+06
status: ENABLE
subCategory: SITE_NOTIFICATIONS
emailchannelUserRecipientLists:
- 1111
- 2222
emailchannelExternalRecipientLists:
- john.doe@company.com
- another.exernal.email@company.com
policyType: ACCOUNT
applyToNewAssets: FALSE
Notification policy on sub-category with no relevance to assets
import * as pulumi from "@pulumi/pulumi";
import * as incapsula from "@pulumi/incapsula";
const notification_policy_account_without_assets = new incapsula.NotificationCenterPolicy("notification-policy-account-without-assets", {
accountId: 12345,
emailchannelExternalRecipientLists: [
"john.doe@company.com",
"another.exernal.email@company.com",
],
emailchannelUserRecipientLists: [
1111,
2222,
],
policyName: "Terraform policy account without assets",
policyType: "ACCOUNT",
status: "ENABLE",
subCategory: "ACCOUNT_NOTIFICATIONS",
});
import pulumi
import pulumi_incapsula as incapsula
notification_policy_account_without_assets = incapsula.NotificationCenterPolicy("notification-policy-account-without-assets",
account_id=12345,
emailchannel_external_recipient_lists=[
"john.doe@company.com",
"another.exernal.email@company.com",
],
emailchannel_user_recipient_lists=[
1111,
2222,
],
policy_name="Terraform policy account without assets",
policy_type="ACCOUNT",
status="ENABLE",
sub_category="ACCOUNT_NOTIFICATIONS")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/incapsula/v3/incapsula"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := incapsula.NewNotificationCenterPolicy(ctx, "notification-policy-account-without-assets", &incapsula.NotificationCenterPolicyArgs{
AccountId: pulumi.Float64(12345),
EmailchannelExternalRecipientLists: pulumi.StringArray{
pulumi.String("john.doe@company.com"),
pulumi.String("another.exernal.email@company.com"),
},
EmailchannelUserRecipientLists: pulumi.Float64Array{
pulumi.Float64(1111),
pulumi.Float64(2222),
},
PolicyName: pulumi.String("Terraform policy account without assets"),
PolicyType: pulumi.String("ACCOUNT"),
Status: pulumi.String("ENABLE"),
SubCategory: pulumi.String("ACCOUNT_NOTIFICATIONS"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Incapsula = Pulumi.Incapsula;
return await Deployment.RunAsync(() =>
{
var notification_policy_account_without_assets = new Incapsula.NotificationCenterPolicy("notification-policy-account-without-assets", new()
{
AccountId = 12345,
EmailchannelExternalRecipientLists = new[]
{
"john.doe@company.com",
"another.exernal.email@company.com",
},
EmailchannelUserRecipientLists = new[]
{
1111,
2222,
},
PolicyName = "Terraform policy account without assets",
PolicyType = "ACCOUNT",
Status = "ENABLE",
SubCategory = "ACCOUNT_NOTIFICATIONS",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.incapsula.NotificationCenterPolicy;
import com.pulumi.incapsula.NotificationCenterPolicyArgs;
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 notification_policy_account_without_assets = new NotificationCenterPolicy("notification-policy-account-without-assets", NotificationCenterPolicyArgs.builder()
.accountId(12345)
.emailchannelExternalRecipientLists(
"john.doe@company.com",
"another.exernal.email@company.com")
.emailchannelUserRecipientLists(
1111,
2222)
.policyName("Terraform policy account without assets")
.policyType("ACCOUNT")
.status("ENABLE")
.subCategory("ACCOUNT_NOTIFICATIONS")
.build());
}
}
resources:
notification-policy-account-without-assets:
type: incapsula:NotificationCenterPolicy
properties:
accountId: 12345
emailchannelExternalRecipientLists:
- john.doe@company.com
- another.exernal.email@company.com
emailchannelUserRecipientLists:
- 1111
- 2222
policyName: Terraform policy account without assets
policyType: ACCOUNT
status: ENABLE
subCategory: ACCOUNT_NOTIFICATIONS
Create NotificationCenterPolicy Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new NotificationCenterPolicy(name: string, args: NotificationCenterPolicyArgs, opts?: CustomResourceOptions);
@overload
def NotificationCenterPolicy(resource_name: str,
args: NotificationCenterPolicyArgs,
opts: Optional[ResourceOptions] = None)
@overload
def NotificationCenterPolicy(resource_name: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[float] = None,
policy_name: Optional[str] = None,
sub_category: Optional[str] = None,
apply_to_new_assets: Optional[str] = None,
apply_to_new_sub_accounts: Optional[str] = None,
assets: Optional[Sequence[NotificationCenterPolicyAssetArgs]] = None,
emailchannel_external_recipient_lists: Optional[Sequence[str]] = None,
emailchannel_user_recipient_lists: Optional[Sequence[float]] = None,
notification_center_policy_id: Optional[str] = None,
policy_type: Optional[str] = None,
status: Optional[str] = None,
sub_account_lists: Optional[Sequence[float]] = None)
func NewNotificationCenterPolicy(ctx *Context, name string, args NotificationCenterPolicyArgs, opts ...ResourceOption) (*NotificationCenterPolicy, error)
public NotificationCenterPolicy(string name, NotificationCenterPolicyArgs args, CustomResourceOptions? opts = null)
public NotificationCenterPolicy(String name, NotificationCenterPolicyArgs args)
public NotificationCenterPolicy(String name, NotificationCenterPolicyArgs args, CustomResourceOptions options)
type: incapsula:NotificationCenterPolicy
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 NotificationCenterPolicyArgs
- 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 NotificationCenterPolicyArgs
- 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 NotificationCenterPolicyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args NotificationCenterPolicyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args NotificationCenterPolicyArgs
- 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 notificationCenterPolicyResource = new Incapsula.NotificationCenterPolicy("notificationCenterPolicyResource", new()
{
AccountId = 0,
PolicyName = "string",
SubCategory = "string",
ApplyToNewAssets = "string",
ApplyToNewSubAccounts = "string",
Assets = new[]
{
new Incapsula.Inputs.NotificationCenterPolicyAssetArgs
{
AssetType = "string",
AssetId = 0,
},
},
EmailchannelExternalRecipientLists = new[]
{
"string",
},
EmailchannelUserRecipientLists = new[]
{
0,
},
NotificationCenterPolicyId = "string",
PolicyType = "string",
Status = "string",
SubAccountLists = new[]
{
0,
},
});
example, err := incapsula.NewNotificationCenterPolicy(ctx, "notificationCenterPolicyResource", &incapsula.NotificationCenterPolicyArgs{
AccountId: pulumi.Float64(0),
PolicyName: pulumi.String("string"),
SubCategory: pulumi.String("string"),
ApplyToNewAssets: pulumi.String("string"),
ApplyToNewSubAccounts: pulumi.String("string"),
Assets: incapsula.NotificationCenterPolicyAssetArray{
&incapsula.NotificationCenterPolicyAssetArgs{
AssetType: pulumi.String("string"),
AssetId: pulumi.Float64(0),
},
},
EmailchannelExternalRecipientLists: pulumi.StringArray{
pulumi.String("string"),
},
EmailchannelUserRecipientLists: pulumi.Float64Array{
pulumi.Float64(0),
},
NotificationCenterPolicyId: pulumi.String("string"),
PolicyType: pulumi.String("string"),
Status: pulumi.String("string"),
SubAccountLists: pulumi.Float64Array{
pulumi.Float64(0),
},
})
var notificationCenterPolicyResource = new NotificationCenterPolicy("notificationCenterPolicyResource", NotificationCenterPolicyArgs.builder()
.accountId(0)
.policyName("string")
.subCategory("string")
.applyToNewAssets("string")
.applyToNewSubAccounts("string")
.assets(NotificationCenterPolicyAssetArgs.builder()
.assetType("string")
.assetId(0)
.build())
.emailchannelExternalRecipientLists("string")
.emailchannelUserRecipientLists(0)
.notificationCenterPolicyId("string")
.policyType("string")
.status("string")
.subAccountLists(0)
.build());
notification_center_policy_resource = incapsula.NotificationCenterPolicy("notificationCenterPolicyResource",
account_id=0,
policy_name="string",
sub_category="string",
apply_to_new_assets="string",
apply_to_new_sub_accounts="string",
assets=[{
"asset_type": "string",
"asset_id": 0,
}],
emailchannel_external_recipient_lists=["string"],
emailchannel_user_recipient_lists=[0],
notification_center_policy_id="string",
policy_type="string",
status="string",
sub_account_lists=[0])
const notificationCenterPolicyResource = new incapsula.NotificationCenterPolicy("notificationCenterPolicyResource", {
accountId: 0,
policyName: "string",
subCategory: "string",
applyToNewAssets: "string",
applyToNewSubAccounts: "string",
assets: [{
assetType: "string",
assetId: 0,
}],
emailchannelExternalRecipientLists: ["string"],
emailchannelUserRecipientLists: [0],
notificationCenterPolicyId: "string",
policyType: "string",
status: "string",
subAccountLists: [0],
});
type: incapsula:NotificationCenterPolicy
properties:
accountId: 0
applyToNewAssets: string
applyToNewSubAccounts: string
assets:
- assetId: 0
assetType: string
emailchannelExternalRecipientLists:
- string
emailchannelUserRecipientLists:
- 0
notificationCenterPolicyId: string
policyName: string
policyType: string
status: string
subAccountLists:
- 0
subCategory: string
NotificationCenterPolicy 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 NotificationCenterPolicy resource accepts the following input properties:
- Account
Id double - Numeric identifier of the account to work on.
- Policy
Name string - The name of the policy. Cannot contain special characters
- Sub
Category string - The sub category of notifications that the policy will apply to. The possible values are available via the API at https://api.imperva.com/notification-settings/v3/subtypes.
- Apply
To stringNew Assets - If value is
TRUE
, all newly onboarded assets are automatically added to the notification policy's assets list. Possible values:TRUE
,FALSE
(default value).
We recommend always setting this field's value toFALSE
, to disable automatic updates of assets on the policy, so you have full control over your resources. - Apply
To stringNew Sub Accounts If value is
TRUE
, all newly onboarded sub accounts are automatically added to the notification policy's sub account list. Possible values:TRUE
,FALSE
(default value)
Relevant if thepolicy_type
isSUB_ACCOUNT
.
We recommend always setting this field's value toFALSE
, to disable automatic updates of sub-accounts on the policy, so you have full control over your resources.<<<<<<< HEAD:website/docs/r/notification_policy.html.markdown Under the following conditions, you need to define at least 1 asset:
If thepolicy_type
argument isACCOUNT
, and the selectedsub_category
requires that the policy be applied to assets in the account, and theUnder the following conditions, you need to define at least 1 asset: If the
policy_type
argument isACCOUNT
, and the chosensub_category
requires configuration of assets, and thedocs-update:website/docs/r/notification_center_policy.html.markdown argument
apply_to_new_assets
isFALSE
, then at least 1 asset must be defined.
For example, when configuring a policy for theSITE_NOTIFICATIONS
sub_category
, if the argumentapply_to_new_assets
is FALSE, at least one SITE asset must be specified. The arguments that are supported inasset
sub resource are:- Assets
List<Notification
Center Policy Asset> - Assets to receive notifications (if assets are relevant to the sub category type). Object struct: assetType: the asset type. Example: websites, router connections, network prefixes, individual IPs, Flow exporters assetId: the asset id.
- Emailchannel
External List<string>Recipient Lists - List of email addresses (for recipients who are not Imperva users) to receive email notifications.
There must be at least one value in this list or in the
emailchannel_user_recipient_list
list. - Emailchannel
User List<double>Recipient Lists - List of numeric identifiers of the users from the Imperva account
to receive emails notifications. There must be at least one value in this list or in the
emailchannel_external_recipient_list
list. - Notification
Center stringPolicy Id - Unique identifier for the Notification Policy.
- Policy
Type string - If the value is
ACCOUNT
, the policy will apply only to the current account that is specified by the account_id. If the value isSUB_ACCOUNT
the policy applies to the sub accounts only. The parent account will receive notifications for activity in the sub accounts that are specified in thesub_account_list
parameter. Thissub_account_list
is available only in accounts that can contain sub accounts. Possible values:ACCOUNT
(default value),SUB_ACCOUNT
. - Status string
- Indicates whether the policy is enabled or disabled. Possible
values:
ENABLE
(default value),DISABLE
. - Sub
Account List<double>Lists - List of numeric identifiers of sub accounts of this account for which the parent account will
receive notifications. Should be set if the
policy_type
isSUB_ACCOUNT
.
- Account
Id float64 - Numeric identifier of the account to work on.
- Policy
Name string - The name of the policy. Cannot contain special characters
- Sub
Category string - The sub category of notifications that the policy will apply to. The possible values are available via the API at https://api.imperva.com/notification-settings/v3/subtypes.
- Apply
To stringNew Assets - If value is
TRUE
, all newly onboarded assets are automatically added to the notification policy's assets list. Possible values:TRUE
,FALSE
(default value).
We recommend always setting this field's value toFALSE
, to disable automatic updates of assets on the policy, so you have full control over your resources. - Apply
To stringNew Sub Accounts If value is
TRUE
, all newly onboarded sub accounts are automatically added to the notification policy's sub account list. Possible values:TRUE
,FALSE
(default value)
Relevant if thepolicy_type
isSUB_ACCOUNT
.
We recommend always setting this field's value toFALSE
, to disable automatic updates of sub-accounts on the policy, so you have full control over your resources.<<<<<<< HEAD:website/docs/r/notification_policy.html.markdown Under the following conditions, you need to define at least 1 asset:
If thepolicy_type
argument isACCOUNT
, and the selectedsub_category
requires that the policy be applied to assets in the account, and theUnder the following conditions, you need to define at least 1 asset: If the
policy_type
argument isACCOUNT
, and the chosensub_category
requires configuration of assets, and thedocs-update:website/docs/r/notification_center_policy.html.markdown argument
apply_to_new_assets
isFALSE
, then at least 1 asset must be defined.
For example, when configuring a policy for theSITE_NOTIFICATIONS
sub_category
, if the argumentapply_to_new_assets
is FALSE, at least one SITE asset must be specified. The arguments that are supported inasset
sub resource are:- Assets
[]Notification
Center Policy Asset Args - Assets to receive notifications (if assets are relevant to the sub category type). Object struct: assetType: the asset type. Example: websites, router connections, network prefixes, individual IPs, Flow exporters assetId: the asset id.
- Emailchannel
External []stringRecipient Lists - List of email addresses (for recipients who are not Imperva users) to receive email notifications.
There must be at least one value in this list or in the
emailchannel_user_recipient_list
list. - Emailchannel
User []float64Recipient Lists - List of numeric identifiers of the users from the Imperva account
to receive emails notifications. There must be at least one value in this list or in the
emailchannel_external_recipient_list
list. - Notification
Center stringPolicy Id - Unique identifier for the Notification Policy.
- Policy
Type string - If the value is
ACCOUNT
, the policy will apply only to the current account that is specified by the account_id. If the value isSUB_ACCOUNT
the policy applies to the sub accounts only. The parent account will receive notifications for activity in the sub accounts that are specified in thesub_account_list
parameter. Thissub_account_list
is available only in accounts that can contain sub accounts. Possible values:ACCOUNT
(default value),SUB_ACCOUNT
. - Status string
- Indicates whether the policy is enabled or disabled. Possible
values:
ENABLE
(default value),DISABLE
. - Sub
Account []float64Lists - List of numeric identifiers of sub accounts of this account for which the parent account will
receive notifications. Should be set if the
policy_type
isSUB_ACCOUNT
.
- account
Id Double - Numeric identifier of the account to work on.
- policy
Name String - The name of the policy. Cannot contain special characters
- sub
Category String - The sub category of notifications that the policy will apply to. The possible values are available via the API at https://api.imperva.com/notification-settings/v3/subtypes.
- apply
To StringNew Assets - If value is
TRUE
, all newly onboarded assets are automatically added to the notification policy's assets list. Possible values:TRUE
,FALSE
(default value).
We recommend always setting this field's value toFALSE
, to disable automatic updates of assets on the policy, so you have full control over your resources. - apply
To StringNew Sub Accounts If value is
TRUE
, all newly onboarded sub accounts are automatically added to the notification policy's sub account list. Possible values:TRUE
,FALSE
(default value)
Relevant if thepolicy_type
isSUB_ACCOUNT
.
We recommend always setting this field's value toFALSE
, to disable automatic updates of sub-accounts on the policy, so you have full control over your resources.<<<<<<< HEAD:website/docs/r/notification_policy.html.markdown Under the following conditions, you need to define at least 1 asset:
If thepolicy_type
argument isACCOUNT
, and the selectedsub_category
requires that the policy be applied to assets in the account, and theUnder the following conditions, you need to define at least 1 asset: If the
policy_type
argument isACCOUNT
, and the chosensub_category
requires configuration of assets, and thedocs-update:website/docs/r/notification_center_policy.html.markdown argument
apply_to_new_assets
isFALSE
, then at least 1 asset must be defined.
For example, when configuring a policy for theSITE_NOTIFICATIONS
sub_category
, if the argumentapply_to_new_assets
is FALSE, at least one SITE asset must be specified. The arguments that are supported inasset
sub resource are:- assets
List<Notification
Center Policy Asset> - Assets to receive notifications (if assets are relevant to the sub category type). Object struct: assetType: the asset type. Example: websites, router connections, network prefixes, individual IPs, Flow exporters assetId: the asset id.
- emailchannel
External List<String>Recipient Lists - List of email addresses (for recipients who are not Imperva users) to receive email notifications.
There must be at least one value in this list or in the
emailchannel_user_recipient_list
list. - emailchannel
User List<Double>Recipient Lists - List of numeric identifiers of the users from the Imperva account
to receive emails notifications. There must be at least one value in this list or in the
emailchannel_external_recipient_list
list. - notification
Center StringPolicy Id - Unique identifier for the Notification Policy.
- policy
Type String - If the value is
ACCOUNT
, the policy will apply only to the current account that is specified by the account_id. If the value isSUB_ACCOUNT
the policy applies to the sub accounts only. The parent account will receive notifications for activity in the sub accounts that are specified in thesub_account_list
parameter. Thissub_account_list
is available only in accounts that can contain sub accounts. Possible values:ACCOUNT
(default value),SUB_ACCOUNT
. - status String
- Indicates whether the policy is enabled or disabled. Possible
values:
ENABLE
(default value),DISABLE
. - sub
Account List<Double>Lists - List of numeric identifiers of sub accounts of this account for which the parent account will
receive notifications. Should be set if the
policy_type
isSUB_ACCOUNT
.
- account
Id number - Numeric identifier of the account to work on.
- policy
Name string - The name of the policy. Cannot contain special characters
- sub
Category string - The sub category of notifications that the policy will apply to. The possible values are available via the API at https://api.imperva.com/notification-settings/v3/subtypes.
- apply
To stringNew Assets - If value is
TRUE
, all newly onboarded assets are automatically added to the notification policy's assets list. Possible values:TRUE
,FALSE
(default value).
We recommend always setting this field's value toFALSE
, to disable automatic updates of assets on the policy, so you have full control over your resources. - apply
To stringNew Sub Accounts If value is
TRUE
, all newly onboarded sub accounts are automatically added to the notification policy's sub account list. Possible values:TRUE
,FALSE
(default value)
Relevant if thepolicy_type
isSUB_ACCOUNT
.
We recommend always setting this field's value toFALSE
, to disable automatic updates of sub-accounts on the policy, so you have full control over your resources.<<<<<<< HEAD:website/docs/r/notification_policy.html.markdown Under the following conditions, you need to define at least 1 asset:
If thepolicy_type
argument isACCOUNT
, and the selectedsub_category
requires that the policy be applied to assets in the account, and theUnder the following conditions, you need to define at least 1 asset: If the
policy_type
argument isACCOUNT
, and the chosensub_category
requires configuration of assets, and thedocs-update:website/docs/r/notification_center_policy.html.markdown argument
apply_to_new_assets
isFALSE
, then at least 1 asset must be defined.
For example, when configuring a policy for theSITE_NOTIFICATIONS
sub_category
, if the argumentapply_to_new_assets
is FALSE, at least one SITE asset must be specified. The arguments that are supported inasset
sub resource are:- assets
Notification
Center Policy Asset[] - Assets to receive notifications (if assets are relevant to the sub category type). Object struct: assetType: the asset type. Example: websites, router connections, network prefixes, individual IPs, Flow exporters assetId: the asset id.
- emailchannel
External string[]Recipient Lists - List of email addresses (for recipients who are not Imperva users) to receive email notifications.
There must be at least one value in this list or in the
emailchannel_user_recipient_list
list. - emailchannel
User number[]Recipient Lists - List of numeric identifiers of the users from the Imperva account
to receive emails notifications. There must be at least one value in this list or in the
emailchannel_external_recipient_list
list. - notification
Center stringPolicy Id - Unique identifier for the Notification Policy.
- policy
Type string - If the value is
ACCOUNT
, the policy will apply only to the current account that is specified by the account_id. If the value isSUB_ACCOUNT
the policy applies to the sub accounts only. The parent account will receive notifications for activity in the sub accounts that are specified in thesub_account_list
parameter. Thissub_account_list
is available only in accounts that can contain sub accounts. Possible values:ACCOUNT
(default value),SUB_ACCOUNT
. - status string
- Indicates whether the policy is enabled or disabled. Possible
values:
ENABLE
(default value),DISABLE
. - sub
Account number[]Lists - List of numeric identifiers of sub accounts of this account for which the parent account will
receive notifications. Should be set if the
policy_type
isSUB_ACCOUNT
.
- account_
id float - Numeric identifier of the account to work on.
- policy_
name str - The name of the policy. Cannot contain special characters
- sub_
category str - The sub category of notifications that the policy will apply to. The possible values are available via the API at https://api.imperva.com/notification-settings/v3/subtypes.
- apply_
to_ strnew_ assets - If value is
TRUE
, all newly onboarded assets are automatically added to the notification policy's assets list. Possible values:TRUE
,FALSE
(default value).
We recommend always setting this field's value toFALSE
, to disable automatic updates of assets on the policy, so you have full control over your resources. - apply_
to_ strnew_ sub_ accounts If value is
TRUE
, all newly onboarded sub accounts are automatically added to the notification policy's sub account list. Possible values:TRUE
,FALSE
(default value)
Relevant if thepolicy_type
isSUB_ACCOUNT
.
We recommend always setting this field's value toFALSE
, to disable automatic updates of sub-accounts on the policy, so you have full control over your resources.<<<<<<< HEAD:website/docs/r/notification_policy.html.markdown Under the following conditions, you need to define at least 1 asset:
If thepolicy_type
argument isACCOUNT
, and the selectedsub_category
requires that the policy be applied to assets in the account, and theUnder the following conditions, you need to define at least 1 asset: If the
policy_type
argument isACCOUNT
, and the chosensub_category
requires configuration of assets, and thedocs-update:website/docs/r/notification_center_policy.html.markdown argument
apply_to_new_assets
isFALSE
, then at least 1 asset must be defined.
For example, when configuring a policy for theSITE_NOTIFICATIONS
sub_category
, if the argumentapply_to_new_assets
is FALSE, at least one SITE asset must be specified. The arguments that are supported inasset
sub resource are:- assets
Sequence[Notification
Center Policy Asset Args] - Assets to receive notifications (if assets are relevant to the sub category type). Object struct: assetType: the asset type. Example: websites, router connections, network prefixes, individual IPs, Flow exporters assetId: the asset id.
- emailchannel_
external_ Sequence[str]recipient_ lists - List of email addresses (for recipients who are not Imperva users) to receive email notifications.
There must be at least one value in this list or in the
emailchannel_user_recipient_list
list. - emailchannel_
user_ Sequence[float]recipient_ lists - List of numeric identifiers of the users from the Imperva account
to receive emails notifications. There must be at least one value in this list or in the
emailchannel_external_recipient_list
list. - notification_
center_ strpolicy_ id - Unique identifier for the Notification Policy.
- policy_
type str - If the value is
ACCOUNT
, the policy will apply only to the current account that is specified by the account_id. If the value isSUB_ACCOUNT
the policy applies to the sub accounts only. The parent account will receive notifications for activity in the sub accounts that are specified in thesub_account_list
parameter. Thissub_account_list
is available only in accounts that can contain sub accounts. Possible values:ACCOUNT
(default value),SUB_ACCOUNT
. - status str
- Indicates whether the policy is enabled or disabled. Possible
values:
ENABLE
(default value),DISABLE
. - sub_
account_ Sequence[float]lists - List of numeric identifiers of sub accounts of this account for which the parent account will
receive notifications. Should be set if the
policy_type
isSUB_ACCOUNT
.
- account
Id Number - Numeric identifier of the account to work on.
- policy
Name String - The name of the policy. Cannot contain special characters
- sub
Category String - The sub category of notifications that the policy will apply to. The possible values are available via the API at https://api.imperva.com/notification-settings/v3/subtypes.
- apply
To StringNew Assets - If value is
TRUE
, all newly onboarded assets are automatically added to the notification policy's assets list. Possible values:TRUE
,FALSE
(default value).
We recommend always setting this field's value toFALSE
, to disable automatic updates of assets on the policy, so you have full control over your resources. - apply
To StringNew Sub Accounts If value is
TRUE
, all newly onboarded sub accounts are automatically added to the notification policy's sub account list. Possible values:TRUE
,FALSE
(default value)
Relevant if thepolicy_type
isSUB_ACCOUNT
.
We recommend always setting this field's value toFALSE
, to disable automatic updates of sub-accounts on the policy, so you have full control over your resources.<<<<<<< HEAD:website/docs/r/notification_policy.html.markdown Under the following conditions, you need to define at least 1 asset:
If thepolicy_type
argument isACCOUNT
, and the selectedsub_category
requires that the policy be applied to assets in the account, and theUnder the following conditions, you need to define at least 1 asset: If the
policy_type
argument isACCOUNT
, and the chosensub_category
requires configuration of assets, and thedocs-update:website/docs/r/notification_center_policy.html.markdown argument
apply_to_new_assets
isFALSE
, then at least 1 asset must be defined.
For example, when configuring a policy for theSITE_NOTIFICATIONS
sub_category
, if the argumentapply_to_new_assets
is FALSE, at least one SITE asset must be specified. The arguments that are supported inasset
sub resource are:- assets List<Property Map>
- Assets to receive notifications (if assets are relevant to the sub category type). Object struct: assetType: the asset type. Example: websites, router connections, network prefixes, individual IPs, Flow exporters assetId: the asset id.
- emailchannel
External List<String>Recipient Lists - List of email addresses (for recipients who are not Imperva users) to receive email notifications.
There must be at least one value in this list or in the
emailchannel_user_recipient_list
list. - emailchannel
User List<Number>Recipient Lists - List of numeric identifiers of the users from the Imperva account
to receive emails notifications. There must be at least one value in this list or in the
emailchannel_external_recipient_list
list. - notification
Center StringPolicy Id - Unique identifier for the Notification Policy.
- policy
Type String - If the value is
ACCOUNT
, the policy will apply only to the current account that is specified by the account_id. If the value isSUB_ACCOUNT
the policy applies to the sub accounts only. The parent account will receive notifications for activity in the sub accounts that are specified in thesub_account_list
parameter. Thissub_account_list
is available only in accounts that can contain sub accounts. Possible values:ACCOUNT
(default value),SUB_ACCOUNT
. - status String
- Indicates whether the policy is enabled or disabled. Possible
values:
ENABLE
(default value),DISABLE
. - sub
Account List<Number>Lists - List of numeric identifiers of sub accounts of this account for which the parent account will
receive notifications. Should be set if the
policy_type
isSUB_ACCOUNT
.
Outputs
All input properties are implicitly available as output properties. Additionally, the NotificationCenterPolicy resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing NotificationCenterPolicy Resource
Get an existing NotificationCenterPolicy 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?: NotificationCenterPolicyState, opts?: CustomResourceOptions): NotificationCenterPolicy
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[float] = None,
apply_to_new_assets: Optional[str] = None,
apply_to_new_sub_accounts: Optional[str] = None,
assets: Optional[Sequence[NotificationCenterPolicyAssetArgs]] = None,
emailchannel_external_recipient_lists: Optional[Sequence[str]] = None,
emailchannel_user_recipient_lists: Optional[Sequence[float]] = None,
notification_center_policy_id: Optional[str] = None,
policy_name: Optional[str] = None,
policy_type: Optional[str] = None,
status: Optional[str] = None,
sub_account_lists: Optional[Sequence[float]] = None,
sub_category: Optional[str] = None) -> NotificationCenterPolicy
func GetNotificationCenterPolicy(ctx *Context, name string, id IDInput, state *NotificationCenterPolicyState, opts ...ResourceOption) (*NotificationCenterPolicy, error)
public static NotificationCenterPolicy Get(string name, Input<string> id, NotificationCenterPolicyState? state, CustomResourceOptions? opts = null)
public static NotificationCenterPolicy get(String name, Output<String> id, NotificationCenterPolicyState state, CustomResourceOptions options)
resources: _: type: incapsula:NotificationCenterPolicy 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
Id double - Numeric identifier of the account to work on.
- Apply
To stringNew Assets - If value is
TRUE
, all newly onboarded assets are automatically added to the notification policy's assets list. Possible values:TRUE
,FALSE
(default value).
We recommend always setting this field's value toFALSE
, to disable automatic updates of assets on the policy, so you have full control over your resources. - Apply
To stringNew Sub Accounts If value is
TRUE
, all newly onboarded sub accounts are automatically added to the notification policy's sub account list. Possible values:TRUE
,FALSE
(default value)
Relevant if thepolicy_type
isSUB_ACCOUNT
.
We recommend always setting this field's value toFALSE
, to disable automatic updates of sub-accounts on the policy, so you have full control over your resources.<<<<<<< HEAD:website/docs/r/notification_policy.html.markdown Under the following conditions, you need to define at least 1 asset:
If thepolicy_type
argument isACCOUNT
, and the selectedsub_category
requires that the policy be applied to assets in the account, and theUnder the following conditions, you need to define at least 1 asset: If the
policy_type
argument isACCOUNT
, and the chosensub_category
requires configuration of assets, and thedocs-update:website/docs/r/notification_center_policy.html.markdown argument
apply_to_new_assets
isFALSE
, then at least 1 asset must be defined.
For example, when configuring a policy for theSITE_NOTIFICATIONS
sub_category
, if the argumentapply_to_new_assets
is FALSE, at least one SITE asset must be specified. The arguments that are supported inasset
sub resource are:- Assets
List<Notification
Center Policy Asset> - Assets to receive notifications (if assets are relevant to the sub category type). Object struct: assetType: the asset type. Example: websites, router connections, network prefixes, individual IPs, Flow exporters assetId: the asset id.
- Emailchannel
External List<string>Recipient Lists - List of email addresses (for recipients who are not Imperva users) to receive email notifications.
There must be at least one value in this list or in the
emailchannel_user_recipient_list
list. - Emailchannel
User List<double>Recipient Lists - List of numeric identifiers of the users from the Imperva account
to receive emails notifications. There must be at least one value in this list or in the
emailchannel_external_recipient_list
list. - Notification
Center stringPolicy Id - Unique identifier for the Notification Policy.
- Policy
Name string - The name of the policy. Cannot contain special characters
- Policy
Type string - If the value is
ACCOUNT
, the policy will apply only to the current account that is specified by the account_id. If the value isSUB_ACCOUNT
the policy applies to the sub accounts only. The parent account will receive notifications for activity in the sub accounts that are specified in thesub_account_list
parameter. Thissub_account_list
is available only in accounts that can contain sub accounts. Possible values:ACCOUNT
(default value),SUB_ACCOUNT
. - Status string
- Indicates whether the policy is enabled or disabled. Possible
values:
ENABLE
(default value),DISABLE
. - Sub
Account List<double>Lists - List of numeric identifiers of sub accounts of this account for which the parent account will
receive notifications. Should be set if the
policy_type
isSUB_ACCOUNT
. - Sub
Category string - The sub category of notifications that the policy will apply to. The possible values are available via the API at https://api.imperva.com/notification-settings/v3/subtypes.
- Account
Id float64 - Numeric identifier of the account to work on.
- Apply
To stringNew Assets - If value is
TRUE
, all newly onboarded assets are automatically added to the notification policy's assets list. Possible values:TRUE
,FALSE
(default value).
We recommend always setting this field's value toFALSE
, to disable automatic updates of assets on the policy, so you have full control over your resources. - Apply
To stringNew Sub Accounts If value is
TRUE
, all newly onboarded sub accounts are automatically added to the notification policy's sub account list. Possible values:TRUE
,FALSE
(default value)
Relevant if thepolicy_type
isSUB_ACCOUNT
.
We recommend always setting this field's value toFALSE
, to disable automatic updates of sub-accounts on the policy, so you have full control over your resources.<<<<<<< HEAD:website/docs/r/notification_policy.html.markdown Under the following conditions, you need to define at least 1 asset:
If thepolicy_type
argument isACCOUNT
, and the selectedsub_category
requires that the policy be applied to assets in the account, and theUnder the following conditions, you need to define at least 1 asset: If the
policy_type
argument isACCOUNT
, and the chosensub_category
requires configuration of assets, and thedocs-update:website/docs/r/notification_center_policy.html.markdown argument
apply_to_new_assets
isFALSE
, then at least 1 asset must be defined.
For example, when configuring a policy for theSITE_NOTIFICATIONS
sub_category
, if the argumentapply_to_new_assets
is FALSE, at least one SITE asset must be specified. The arguments that are supported inasset
sub resource are:- Assets
[]Notification
Center Policy Asset Args - Assets to receive notifications (if assets are relevant to the sub category type). Object struct: assetType: the asset type. Example: websites, router connections, network prefixes, individual IPs, Flow exporters assetId: the asset id.
- Emailchannel
External []stringRecipient Lists - List of email addresses (for recipients who are not Imperva users) to receive email notifications.
There must be at least one value in this list or in the
emailchannel_user_recipient_list
list. - Emailchannel
User []float64Recipient Lists - List of numeric identifiers of the users from the Imperva account
to receive emails notifications. There must be at least one value in this list or in the
emailchannel_external_recipient_list
list. - Notification
Center stringPolicy Id - Unique identifier for the Notification Policy.
- Policy
Name string - The name of the policy. Cannot contain special characters
- Policy
Type string - If the value is
ACCOUNT
, the policy will apply only to the current account that is specified by the account_id. If the value isSUB_ACCOUNT
the policy applies to the sub accounts only. The parent account will receive notifications for activity in the sub accounts that are specified in thesub_account_list
parameter. Thissub_account_list
is available only in accounts that can contain sub accounts. Possible values:ACCOUNT
(default value),SUB_ACCOUNT
. - Status string
- Indicates whether the policy is enabled or disabled. Possible
values:
ENABLE
(default value),DISABLE
. - Sub
Account []float64Lists - List of numeric identifiers of sub accounts of this account for which the parent account will
receive notifications. Should be set if the
policy_type
isSUB_ACCOUNT
. - Sub
Category string - The sub category of notifications that the policy will apply to. The possible values are available via the API at https://api.imperva.com/notification-settings/v3/subtypes.
- account
Id Double - Numeric identifier of the account to work on.
- apply
To StringNew Assets - If value is
TRUE
, all newly onboarded assets are automatically added to the notification policy's assets list. Possible values:TRUE
,FALSE
(default value).
We recommend always setting this field's value toFALSE
, to disable automatic updates of assets on the policy, so you have full control over your resources. - apply
To StringNew Sub Accounts If value is
TRUE
, all newly onboarded sub accounts are automatically added to the notification policy's sub account list. Possible values:TRUE
,FALSE
(default value)
Relevant if thepolicy_type
isSUB_ACCOUNT
.
We recommend always setting this field's value toFALSE
, to disable automatic updates of sub-accounts on the policy, so you have full control over your resources.<<<<<<< HEAD:website/docs/r/notification_policy.html.markdown Under the following conditions, you need to define at least 1 asset:
If thepolicy_type
argument isACCOUNT
, and the selectedsub_category
requires that the policy be applied to assets in the account, and theUnder the following conditions, you need to define at least 1 asset: If the
policy_type
argument isACCOUNT
, and the chosensub_category
requires configuration of assets, and thedocs-update:website/docs/r/notification_center_policy.html.markdown argument
apply_to_new_assets
isFALSE
, then at least 1 asset must be defined.
For example, when configuring a policy for theSITE_NOTIFICATIONS
sub_category
, if the argumentapply_to_new_assets
is FALSE, at least one SITE asset must be specified. The arguments that are supported inasset
sub resource are:- assets
List<Notification
Center Policy Asset> - Assets to receive notifications (if assets are relevant to the sub category type). Object struct: assetType: the asset type. Example: websites, router connections, network prefixes, individual IPs, Flow exporters assetId: the asset id.
- emailchannel
External List<String>Recipient Lists - List of email addresses (for recipients who are not Imperva users) to receive email notifications.
There must be at least one value in this list or in the
emailchannel_user_recipient_list
list. - emailchannel
User List<Double>Recipient Lists - List of numeric identifiers of the users from the Imperva account
to receive emails notifications. There must be at least one value in this list or in the
emailchannel_external_recipient_list
list. - notification
Center StringPolicy Id - Unique identifier for the Notification Policy.
- policy
Name String - The name of the policy. Cannot contain special characters
- policy
Type String - If the value is
ACCOUNT
, the policy will apply only to the current account that is specified by the account_id. If the value isSUB_ACCOUNT
the policy applies to the sub accounts only. The parent account will receive notifications for activity in the sub accounts that are specified in thesub_account_list
parameter. Thissub_account_list
is available only in accounts that can contain sub accounts. Possible values:ACCOUNT
(default value),SUB_ACCOUNT
. - status String
- Indicates whether the policy is enabled or disabled. Possible
values:
ENABLE
(default value),DISABLE
. - sub
Account List<Double>Lists - List of numeric identifiers of sub accounts of this account for which the parent account will
receive notifications. Should be set if the
policy_type
isSUB_ACCOUNT
. - sub
Category String - The sub category of notifications that the policy will apply to. The possible values are available via the API at https://api.imperva.com/notification-settings/v3/subtypes.
- account
Id number - Numeric identifier of the account to work on.
- apply
To stringNew Assets - If value is
TRUE
, all newly onboarded assets are automatically added to the notification policy's assets list. Possible values:TRUE
,FALSE
(default value).
We recommend always setting this field's value toFALSE
, to disable automatic updates of assets on the policy, so you have full control over your resources. - apply
To stringNew Sub Accounts If value is
TRUE
, all newly onboarded sub accounts are automatically added to the notification policy's sub account list. Possible values:TRUE
,FALSE
(default value)
Relevant if thepolicy_type
isSUB_ACCOUNT
.
We recommend always setting this field's value toFALSE
, to disable automatic updates of sub-accounts on the policy, so you have full control over your resources.<<<<<<< HEAD:website/docs/r/notification_policy.html.markdown Under the following conditions, you need to define at least 1 asset:
If thepolicy_type
argument isACCOUNT
, and the selectedsub_category
requires that the policy be applied to assets in the account, and theUnder the following conditions, you need to define at least 1 asset: If the
policy_type
argument isACCOUNT
, and the chosensub_category
requires configuration of assets, and thedocs-update:website/docs/r/notification_center_policy.html.markdown argument
apply_to_new_assets
isFALSE
, then at least 1 asset must be defined.
For example, when configuring a policy for theSITE_NOTIFICATIONS
sub_category
, if the argumentapply_to_new_assets
is FALSE, at least one SITE asset must be specified. The arguments that are supported inasset
sub resource are:- assets
Notification
Center Policy Asset[] - Assets to receive notifications (if assets are relevant to the sub category type). Object struct: assetType: the asset type. Example: websites, router connections, network prefixes, individual IPs, Flow exporters assetId: the asset id.
- emailchannel
External string[]Recipient Lists - List of email addresses (for recipients who are not Imperva users) to receive email notifications.
There must be at least one value in this list or in the
emailchannel_user_recipient_list
list. - emailchannel
User number[]Recipient Lists - List of numeric identifiers of the users from the Imperva account
to receive emails notifications. There must be at least one value in this list or in the
emailchannel_external_recipient_list
list. - notification
Center stringPolicy Id - Unique identifier for the Notification Policy.
- policy
Name string - The name of the policy. Cannot contain special characters
- policy
Type string - If the value is
ACCOUNT
, the policy will apply only to the current account that is specified by the account_id. If the value isSUB_ACCOUNT
the policy applies to the sub accounts only. The parent account will receive notifications for activity in the sub accounts that are specified in thesub_account_list
parameter. Thissub_account_list
is available only in accounts that can contain sub accounts. Possible values:ACCOUNT
(default value),SUB_ACCOUNT
. - status string
- Indicates whether the policy is enabled or disabled. Possible
values:
ENABLE
(default value),DISABLE
. - sub
Account number[]Lists - List of numeric identifiers of sub accounts of this account for which the parent account will
receive notifications. Should be set if the
policy_type
isSUB_ACCOUNT
. - sub
Category string - The sub category of notifications that the policy will apply to. The possible values are available via the API at https://api.imperva.com/notification-settings/v3/subtypes.
- account_
id float - Numeric identifier of the account to work on.
- apply_
to_ strnew_ assets - If value is
TRUE
, all newly onboarded assets are automatically added to the notification policy's assets list. Possible values:TRUE
,FALSE
(default value).
We recommend always setting this field's value toFALSE
, to disable automatic updates of assets on the policy, so you have full control over your resources. - apply_
to_ strnew_ sub_ accounts If value is
TRUE
, all newly onboarded sub accounts are automatically added to the notification policy's sub account list. Possible values:TRUE
,FALSE
(default value)
Relevant if thepolicy_type
isSUB_ACCOUNT
.
We recommend always setting this field's value toFALSE
, to disable automatic updates of sub-accounts on the policy, so you have full control over your resources.<<<<<<< HEAD:website/docs/r/notification_policy.html.markdown Under the following conditions, you need to define at least 1 asset:
If thepolicy_type
argument isACCOUNT
, and the selectedsub_category
requires that the policy be applied to assets in the account, and theUnder the following conditions, you need to define at least 1 asset: If the
policy_type
argument isACCOUNT
, and the chosensub_category
requires configuration of assets, and thedocs-update:website/docs/r/notification_center_policy.html.markdown argument
apply_to_new_assets
isFALSE
, then at least 1 asset must be defined.
For example, when configuring a policy for theSITE_NOTIFICATIONS
sub_category
, if the argumentapply_to_new_assets
is FALSE, at least one SITE asset must be specified. The arguments that are supported inasset
sub resource are:- assets
Sequence[Notification
Center Policy Asset Args] - Assets to receive notifications (if assets are relevant to the sub category type). Object struct: assetType: the asset type. Example: websites, router connections, network prefixes, individual IPs, Flow exporters assetId: the asset id.
- emailchannel_
external_ Sequence[str]recipient_ lists - List of email addresses (for recipients who are not Imperva users) to receive email notifications.
There must be at least one value in this list or in the
emailchannel_user_recipient_list
list. - emailchannel_
user_ Sequence[float]recipient_ lists - List of numeric identifiers of the users from the Imperva account
to receive emails notifications. There must be at least one value in this list or in the
emailchannel_external_recipient_list
list. - notification_
center_ strpolicy_ id - Unique identifier for the Notification Policy.
- policy_
name str - The name of the policy. Cannot contain special characters
- policy_
type str - If the value is
ACCOUNT
, the policy will apply only to the current account that is specified by the account_id. If the value isSUB_ACCOUNT
the policy applies to the sub accounts only. The parent account will receive notifications for activity in the sub accounts that are specified in thesub_account_list
parameter. Thissub_account_list
is available only in accounts that can contain sub accounts. Possible values:ACCOUNT
(default value),SUB_ACCOUNT
. - status str
- Indicates whether the policy is enabled or disabled. Possible
values:
ENABLE
(default value),DISABLE
. - sub_
account_ Sequence[float]lists - List of numeric identifiers of sub accounts of this account for which the parent account will
receive notifications. Should be set if the
policy_type
isSUB_ACCOUNT
. - sub_
category str - The sub category of notifications that the policy will apply to. The possible values are available via the API at https://api.imperva.com/notification-settings/v3/subtypes.
- account
Id Number - Numeric identifier of the account to work on.
- apply
To StringNew Assets - If value is
TRUE
, all newly onboarded assets are automatically added to the notification policy's assets list. Possible values:TRUE
,FALSE
(default value).
We recommend always setting this field's value toFALSE
, to disable automatic updates of assets on the policy, so you have full control over your resources. - apply
To StringNew Sub Accounts If value is
TRUE
, all newly onboarded sub accounts are automatically added to the notification policy's sub account list. Possible values:TRUE
,FALSE
(default value)
Relevant if thepolicy_type
isSUB_ACCOUNT
.
We recommend always setting this field's value toFALSE
, to disable automatic updates of sub-accounts on the policy, so you have full control over your resources.<<<<<<< HEAD:website/docs/r/notification_policy.html.markdown Under the following conditions, you need to define at least 1 asset:
If thepolicy_type
argument isACCOUNT
, and the selectedsub_category
requires that the policy be applied to assets in the account, and theUnder the following conditions, you need to define at least 1 asset: If the
policy_type
argument isACCOUNT
, and the chosensub_category
requires configuration of assets, and thedocs-update:website/docs/r/notification_center_policy.html.markdown argument
apply_to_new_assets
isFALSE
, then at least 1 asset must be defined.
For example, when configuring a policy for theSITE_NOTIFICATIONS
sub_category
, if the argumentapply_to_new_assets
is FALSE, at least one SITE asset must be specified. The arguments that are supported inasset
sub resource are:- assets List<Property Map>
- Assets to receive notifications (if assets are relevant to the sub category type). Object struct: assetType: the asset type. Example: websites, router connections, network prefixes, individual IPs, Flow exporters assetId: the asset id.
- emailchannel
External List<String>Recipient Lists - List of email addresses (for recipients who are not Imperva users) to receive email notifications.
There must be at least one value in this list or in the
emailchannel_user_recipient_list
list. - emailchannel
User List<Number>Recipient Lists - List of numeric identifiers of the users from the Imperva account
to receive emails notifications. There must be at least one value in this list or in the
emailchannel_external_recipient_list
list. - notification
Center StringPolicy Id - Unique identifier for the Notification Policy.
- policy
Name String - The name of the policy. Cannot contain special characters
- policy
Type String - If the value is
ACCOUNT
, the policy will apply only to the current account that is specified by the account_id. If the value isSUB_ACCOUNT
the policy applies to the sub accounts only. The parent account will receive notifications for activity in the sub accounts that are specified in thesub_account_list
parameter. Thissub_account_list
is available only in accounts that can contain sub accounts. Possible values:ACCOUNT
(default value),SUB_ACCOUNT
. - status String
- Indicates whether the policy is enabled or disabled. Possible
values:
ENABLE
(default value),DISABLE
. - sub
Account List<Number>Lists - List of numeric identifiers of sub accounts of this account for which the parent account will
receive notifications. Should be set if the
policy_type
isSUB_ACCOUNT
. - sub
Category String - The sub category of notifications that the policy will apply to. The possible values are available via the API at https://api.imperva.com/notification-settings/v3/subtypes.
Supporting Types
NotificationCenterPolicyAsset, NotificationCenterPolicyAssetArgs
- asset_
type str - Indicates the Imperva-protected entity that triggers the notification. Possible values:
SITE
,IP_RANGE
,EDGE_IP
,ORIGIN_CONNECTIVITY
,NETFLOW_EXPORTER
,DOMAIN
. - asset_
id float - Numeric identifier of the asset.
Import
Notification Policy can be imported using the account_id/policy_id
$ pulumi import incapsula:index/notificationCenterPolicy:NotificationCenterPolicy notification-policy-account-without-assets 12345/9999
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- incapsula imperva/terraform-provider-incapsula
- License
- Notes
- This Pulumi package is based on the
incapsula
Terraform Provider.