1. Packages
  2. Incapsula Provider
  3. API Docs
  4. CspSiteConfiguration
incapsula 3.32.1 published on Monday, Apr 14, 2025 by imperva

incapsula.CspSiteConfiguration

Explore with Pulumi AI

incapsula logo
incapsula 3.32.1 published on Monday, Apr 14, 2025 by imperva

    Create CspSiteConfiguration Resource

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

    Constructor syntax

    new CspSiteConfiguration(name: string, args: CspSiteConfigurationArgs, opts?: CustomResourceOptions);
    @overload
    def CspSiteConfiguration(resource_name: str,
                             args: CspSiteConfigurationArgs,
                             opts: Optional[ResourceOptions] = None)
    
    @overload
    def CspSiteConfiguration(resource_name: str,
                             opts: Optional[ResourceOptions] = None,
                             account_id: Optional[float] = None,
                             site_id: Optional[float] = None,
                             csp_site_configuration_id: Optional[str] = None,
                             email_addresses: Optional[Sequence[str]] = None,
                             mode: Optional[str] = None)
    func NewCspSiteConfiguration(ctx *Context, name string, args CspSiteConfigurationArgs, opts ...ResourceOption) (*CspSiteConfiguration, error)
    public CspSiteConfiguration(string name, CspSiteConfigurationArgs args, CustomResourceOptions? opts = null)
    public CspSiteConfiguration(String name, CspSiteConfigurationArgs args)
    public CspSiteConfiguration(String name, CspSiteConfigurationArgs args, CustomResourceOptions options)
    
    type: incapsula:CspSiteConfiguration
    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 CspSiteConfigurationArgs
    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 CspSiteConfigurationArgs
    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 CspSiteConfigurationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CspSiteConfigurationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CspSiteConfigurationArgs
    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 cspSiteConfigurationResource = new Incapsula.CspSiteConfiguration("cspSiteConfigurationResource", new()
    {
        AccountId = 0,
        SiteId = 0,
        CspSiteConfigurationId = "string",
        EmailAddresses = new[]
        {
            "string",
        },
        Mode = "string",
    });
    
    example, err := incapsula.NewCspSiteConfiguration(ctx, "cspSiteConfigurationResource", &incapsula.CspSiteConfigurationArgs{
    	AccountId:              pulumi.Float64(0),
    	SiteId:                 pulumi.Float64(0),
    	CspSiteConfigurationId: pulumi.String("string"),
    	EmailAddresses: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Mode: pulumi.String("string"),
    })
    
    var cspSiteConfigurationResource = new CspSiteConfiguration("cspSiteConfigurationResource", CspSiteConfigurationArgs.builder()
        .accountId(0)
        .siteId(0)
        .cspSiteConfigurationId("string")
        .emailAddresses("string")
        .mode("string")
        .build());
    
    csp_site_configuration_resource = incapsula.CspSiteConfiguration("cspSiteConfigurationResource",
        account_id=0,
        site_id=0,
        csp_site_configuration_id="string",
        email_addresses=["string"],
        mode="string")
    
    const cspSiteConfigurationResource = new incapsula.CspSiteConfiguration("cspSiteConfigurationResource", {
        accountId: 0,
        siteId: 0,
        cspSiteConfigurationId: "string",
        emailAddresses: ["string"],
        mode: "string",
    });
    
    type: incapsula:CspSiteConfiguration
    properties:
        accountId: 0
        cspSiteConfigurationId: string
        emailAddresses:
            - string
        mode: string
        siteId: 0
    

    CspSiteConfiguration 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 CspSiteConfiguration resource accepts the following input properties:

    AccountId double
    Numeric identifier of the account to operate on.
    SiteId double
    Numeric identifier of the site to operate on.
    CspSiteConfigurationId string
    EmailAddresses List<string>
    Email address for the event notification recipient list of a specific website. Notifications are reasonably small and limited in frequency
    Mode string
    Website Protection Mode. When in "enforce" mode, blocked resources will not be available in the application and new resources will be automatically blocked. When in "monitor" mode, all resources are available in the application and the system keeps track of all new domains that are discovered. Values: monitor\enforce\off
    AccountId float64
    Numeric identifier of the account to operate on.
    SiteId float64
    Numeric identifier of the site to operate on.
    CspSiteConfigurationId string
    EmailAddresses []string
    Email address for the event notification recipient list of a specific website. Notifications are reasonably small and limited in frequency
    Mode string
    Website Protection Mode. When in "enforce" mode, blocked resources will not be available in the application and new resources will be automatically blocked. When in "monitor" mode, all resources are available in the application and the system keeps track of all new domains that are discovered. Values: monitor\enforce\off
    accountId Double
    Numeric identifier of the account to operate on.
    siteId Double
    Numeric identifier of the site to operate on.
    cspSiteConfigurationId String
    emailAddresses List<String>
    Email address for the event notification recipient list of a specific website. Notifications are reasonably small and limited in frequency
    mode String
    Website Protection Mode. When in "enforce" mode, blocked resources will not be available in the application and new resources will be automatically blocked. When in "monitor" mode, all resources are available in the application and the system keeps track of all new domains that are discovered. Values: monitor\enforce\off
    accountId number
    Numeric identifier of the account to operate on.
    siteId number
    Numeric identifier of the site to operate on.
    cspSiteConfigurationId string
    emailAddresses string[]
    Email address for the event notification recipient list of a specific website. Notifications are reasonably small and limited in frequency
    mode string
    Website Protection Mode. When in "enforce" mode, blocked resources will not be available in the application and new resources will be automatically blocked. When in "monitor" mode, all resources are available in the application and the system keeps track of all new domains that are discovered. Values: monitor\enforce\off
    account_id float
    Numeric identifier of the account to operate on.
    site_id float
    Numeric identifier of the site to operate on.
    csp_site_configuration_id str
    email_addresses Sequence[str]
    Email address for the event notification recipient list of a specific website. Notifications are reasonably small and limited in frequency
    mode str
    Website Protection Mode. When in "enforce" mode, blocked resources will not be available in the application and new resources will be automatically blocked. When in "monitor" mode, all resources are available in the application and the system keeps track of all new domains that are discovered. Values: monitor\enforce\off
    accountId Number
    Numeric identifier of the account to operate on.
    siteId Number
    Numeric identifier of the site to operate on.
    cspSiteConfigurationId String
    emailAddresses List<String>
    Email address for the event notification recipient list of a specific website. Notifications are reasonably small and limited in frequency
    mode String
    Website Protection Mode. When in "enforce" mode, blocked resources will not be available in the application and new resources will be automatically blocked. When in "monitor" mode, all resources are available in the application and the system keeps track of all new domains that are discovered. Values: monitor\enforce\off

    Outputs

    All input properties are implicitly available as output properties. Additionally, the CspSiteConfiguration 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 CspSiteConfiguration Resource

    Get an existing CspSiteConfiguration 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?: CspSiteConfigurationState, opts?: CustomResourceOptions): CspSiteConfiguration
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            account_id: Optional[float] = None,
            csp_site_configuration_id: Optional[str] = None,
            email_addresses: Optional[Sequence[str]] = None,
            mode: Optional[str] = None,
            site_id: Optional[float] = None) -> CspSiteConfiguration
    func GetCspSiteConfiguration(ctx *Context, name string, id IDInput, state *CspSiteConfigurationState, opts ...ResourceOption) (*CspSiteConfiguration, error)
    public static CspSiteConfiguration Get(string name, Input<string> id, CspSiteConfigurationState? state, CustomResourceOptions? opts = null)
    public static CspSiteConfiguration get(String name, Output<String> id, CspSiteConfigurationState state, CustomResourceOptions options)
    resources:  _:    type: incapsula:CspSiteConfiguration    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:
    AccountId double
    Numeric identifier of the account to operate on.
    CspSiteConfigurationId string
    EmailAddresses List<string>
    Email address for the event notification recipient list of a specific website. Notifications are reasonably small and limited in frequency
    Mode string
    Website Protection Mode. When in "enforce" mode, blocked resources will not be available in the application and new resources will be automatically blocked. When in "monitor" mode, all resources are available in the application and the system keeps track of all new domains that are discovered. Values: monitor\enforce\off
    SiteId double
    Numeric identifier of the site to operate on.
    AccountId float64
    Numeric identifier of the account to operate on.
    CspSiteConfigurationId string
    EmailAddresses []string
    Email address for the event notification recipient list of a specific website. Notifications are reasonably small and limited in frequency
    Mode string
    Website Protection Mode. When in "enforce" mode, blocked resources will not be available in the application and new resources will be automatically blocked. When in "monitor" mode, all resources are available in the application and the system keeps track of all new domains that are discovered. Values: monitor\enforce\off
    SiteId float64
    Numeric identifier of the site to operate on.
    accountId Double
    Numeric identifier of the account to operate on.
    cspSiteConfigurationId String
    emailAddresses List<String>
    Email address for the event notification recipient list of a specific website. Notifications are reasonably small and limited in frequency
    mode String
    Website Protection Mode. When in "enforce" mode, blocked resources will not be available in the application and new resources will be automatically blocked. When in "monitor" mode, all resources are available in the application and the system keeps track of all new domains that are discovered. Values: monitor\enforce\off
    siteId Double
    Numeric identifier of the site to operate on.
    accountId number
    Numeric identifier of the account to operate on.
    cspSiteConfigurationId string
    emailAddresses string[]
    Email address for the event notification recipient list of a specific website. Notifications are reasonably small and limited in frequency
    mode string
    Website Protection Mode. When in "enforce" mode, blocked resources will not be available in the application and new resources will be automatically blocked. When in "monitor" mode, all resources are available in the application and the system keeps track of all new domains that are discovered. Values: monitor\enforce\off
    siteId number
    Numeric identifier of the site to operate on.
    account_id float
    Numeric identifier of the account to operate on.
    csp_site_configuration_id str
    email_addresses Sequence[str]
    Email address for the event notification recipient list of a specific website. Notifications are reasonably small and limited in frequency
    mode str
    Website Protection Mode. When in "enforce" mode, blocked resources will not be available in the application and new resources will be automatically blocked. When in "monitor" mode, all resources are available in the application and the system keeps track of all new domains that are discovered. Values: monitor\enforce\off
    site_id float
    Numeric identifier of the site to operate on.
    accountId Number
    Numeric identifier of the account to operate on.
    cspSiteConfigurationId String
    emailAddresses List<String>
    Email address for the event notification recipient list of a specific website. Notifications are reasonably small and limited in frequency
    mode String
    Website Protection Mode. When in "enforce" mode, blocked resources will not be available in the application and new resources will be automatically blocked. When in "monitor" mode, all resources are available in the application and the system keeps track of all new domains that are discovered. Values: monitor\enforce\off
    siteId Number
    Numeric identifier of the site to operate on.

    Package Details

    Repository
    incapsula imperva/terraform-provider-incapsula
    License
    Notes
    This Pulumi package is based on the incapsula Terraform Provider.
    incapsula logo
    incapsula 3.32.1 published on Monday, Apr 14, 2025 by imperva