incapsula.CspSiteConfiguration
Explore with Pulumi AI
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:
- Account
Id double - Numeric identifier of the account to operate on.
- Site
Id double - Numeric identifier of the site to operate on.
- Csp
Site stringConfiguration Id - Email
Addresses 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
- Account
Id float64 - Numeric identifier of the account to operate on.
- Site
Id float64 - Numeric identifier of the site to operate on.
- Csp
Site stringConfiguration Id - Email
Addresses []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 Double - Numeric identifier of the account to operate on.
- site
Id Double - Numeric identifier of the site to operate on.
- csp
Site StringConfiguration Id - email
Addresses 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
- account
Id number - Numeric identifier of the account to operate on.
- site
Id number - Numeric identifier of the site to operate on.
- csp
Site stringConfiguration Id - email
Addresses 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_ strconfiguration_ id - 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
- account
Id Number - Numeric identifier of the account to operate on.
- site
Id Number - Numeric identifier of the site to operate on.
- csp
Site StringConfiguration Id - email
Addresses 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.
- Account
Id double - Numeric identifier of the account to operate on.
- Csp
Site stringConfiguration Id - Email
Addresses 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
- Site
Id double - Numeric identifier of the site to operate on.
- Account
Id float64 - Numeric identifier of the account to operate on.
- Csp
Site stringConfiguration Id - Email
Addresses []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
- Site
Id float64 - Numeric identifier of the site to operate on.
- account
Id Double - Numeric identifier of the account to operate on.
- csp
Site StringConfiguration Id - email
Addresses 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
- site
Id Double - Numeric identifier of the site to operate on.
- account
Id number - Numeric identifier of the account to operate on.
- csp
Site stringConfiguration Id - email
Addresses 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
- site
Id number - Numeric identifier of the site to operate on.
- account_
id float - Numeric identifier of the account to operate on.
- csp_
site_ strconfiguration_ id - 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.
- account
Id Number - Numeric identifier of the account to operate on.
- csp
Site StringConfiguration Id - email
Addresses 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
- site
Id 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.