zia.ATPMalwarePolicy
Explore with Pulumi AI
The zia_atp_malware_policy resource allows you to update security exceptions for the Malware Protection policy. To learn more see Configuring Malware Protection Policy
Example Usage
resource "zia_atp_malware_policy" "this" {
block_unscannable_files = true
block_password_protected_archive_files = true
}
Create ATPMalwarePolicy Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ATPMalwarePolicy(name: string, args?: ATPMalwarePolicyArgs, opts?: CustomResourceOptions);
@overload
def ATPMalwarePolicy(resource_name: str,
args: Optional[ATPMalwarePolicyArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def ATPMalwarePolicy(resource_name: str,
opts: Optional[ResourceOptions] = None,
block_password_protected_archive_files: Optional[bool] = None,
block_unscannable_files: Optional[bool] = None)
func NewATPMalwarePolicy(ctx *Context, name string, args *ATPMalwarePolicyArgs, opts ...ResourceOption) (*ATPMalwarePolicy, error)
public ATPMalwarePolicy(string name, ATPMalwarePolicyArgs? args = null, CustomResourceOptions? opts = null)
public ATPMalwarePolicy(String name, ATPMalwarePolicyArgs args)
public ATPMalwarePolicy(String name, ATPMalwarePolicyArgs args, CustomResourceOptions options)
type: zia:ATPMalwarePolicy
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 ATPMalwarePolicyArgs
- 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 ATPMalwarePolicyArgs
- 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 ATPMalwarePolicyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ATPMalwarePolicyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ATPMalwarePolicyArgs
- 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 atpmalwarePolicyResource = new Zia.ATPMalwarePolicy("atpmalwarePolicyResource", new()
{
BlockPasswordProtectedArchiveFiles = false,
BlockUnscannableFiles = false,
});
example, err := zia.NewATPMalwarePolicy(ctx, "atpmalwarePolicyResource", &zia.ATPMalwarePolicyArgs{
BlockPasswordProtectedArchiveFiles: pulumi.Bool(false),
BlockUnscannableFiles: pulumi.Bool(false),
})
var atpmalwarePolicyResource = new ATPMalwarePolicy("atpmalwarePolicyResource", ATPMalwarePolicyArgs.builder()
.blockPasswordProtectedArchiveFiles(false)
.blockUnscannableFiles(false)
.build());
atpmalware_policy_resource = zia.ATPMalwarePolicy("atpmalwarePolicyResource",
block_password_protected_archive_files=False,
block_unscannable_files=False)
const atpmalwarePolicyResource = new zia.ATPMalwarePolicy("atpmalwarePolicyResource", {
blockPasswordProtectedArchiveFiles: false,
blockUnscannableFiles: false,
});
type: zia:ATPMalwarePolicy
properties:
blockPasswordProtectedArchiveFiles: false
blockUnscannableFiles: false
ATPMalwarePolicy 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 ATPMalwarePolicy resource accepts the following input properties:
- Block
Password boolProtected Archive Files - A Boolean value indicating whether to allow or block users from uploading or downloading password-protected files
- Block
Unscannable boolFiles - A Boolean value indicating whether to allow or block users from uploading or downloading files that the Zscaler service is unable to scan.
- Block
Password boolProtected Archive Files - A Boolean value indicating whether to allow or block users from uploading or downloading password-protected files
- Block
Unscannable boolFiles - A Boolean value indicating whether to allow or block users from uploading or downloading files that the Zscaler service is unable to scan.
- block
Password BooleanProtected Archive Files - A Boolean value indicating whether to allow or block users from uploading or downloading password-protected files
- block
Unscannable BooleanFiles - A Boolean value indicating whether to allow or block users from uploading or downloading files that the Zscaler service is unable to scan.
- block
Password booleanProtected Archive Files - A Boolean value indicating whether to allow or block users from uploading or downloading password-protected files
- block
Unscannable booleanFiles - A Boolean value indicating whether to allow or block users from uploading or downloading files that the Zscaler service is unable to scan.
- block_
password_ boolprotected_ archive_ files - A Boolean value indicating whether to allow or block users from uploading or downloading password-protected files
- block_
unscannable_ boolfiles - A Boolean value indicating whether to allow or block users from uploading or downloading files that the Zscaler service is unable to scan.
- block
Password BooleanProtected Archive Files - A Boolean value indicating whether to allow or block users from uploading or downloading password-protected files
- block
Unscannable BooleanFiles - A Boolean value indicating whether to allow or block users from uploading or downloading files that the Zscaler service is unable to scan.
Outputs
All input properties are implicitly available as output properties. Additionally, the ATPMalwarePolicy 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 ATPMalwarePolicy Resource
Get an existing ATPMalwarePolicy 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?: ATPMalwarePolicyState, opts?: CustomResourceOptions): ATPMalwarePolicy
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
block_password_protected_archive_files: Optional[bool] = None,
block_unscannable_files: Optional[bool] = None) -> ATPMalwarePolicy
func GetATPMalwarePolicy(ctx *Context, name string, id IDInput, state *ATPMalwarePolicyState, opts ...ResourceOption) (*ATPMalwarePolicy, error)
public static ATPMalwarePolicy Get(string name, Input<string> id, ATPMalwarePolicyState? state, CustomResourceOptions? opts = null)
public static ATPMalwarePolicy get(String name, Output<String> id, ATPMalwarePolicyState state, CustomResourceOptions options)
resources: _: type: zia:ATPMalwarePolicy 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.
- Block
Password boolProtected Archive Files - A Boolean value indicating whether to allow or block users from uploading or downloading password-protected files
- Block
Unscannable boolFiles - A Boolean value indicating whether to allow or block users from uploading or downloading files that the Zscaler service is unable to scan.
- Block
Password boolProtected Archive Files - A Boolean value indicating whether to allow or block users from uploading or downloading password-protected files
- Block
Unscannable boolFiles - A Boolean value indicating whether to allow or block users from uploading or downloading files that the Zscaler service is unable to scan.
- block
Password BooleanProtected Archive Files - A Boolean value indicating whether to allow or block users from uploading or downloading password-protected files
- block
Unscannable BooleanFiles - A Boolean value indicating whether to allow or block users from uploading or downloading files that the Zscaler service is unable to scan.
- block
Password booleanProtected Archive Files - A Boolean value indicating whether to allow or block users from uploading or downloading password-protected files
- block
Unscannable booleanFiles - A Boolean value indicating whether to allow or block users from uploading or downloading files that the Zscaler service is unable to scan.
- block_
password_ boolprotected_ archive_ files - A Boolean value indicating whether to allow or block users from uploading or downloading password-protected files
- block_
unscannable_ boolfiles - A Boolean value indicating whether to allow or block users from uploading or downloading files that the Zscaler service is unable to scan.
- block
Password BooleanProtected Archive Files - A Boolean value indicating whether to allow or block users from uploading or downloading password-protected files
- block
Unscannable BooleanFiles - A Boolean value indicating whether to allow or block users from uploading or downloading files that the Zscaler service is unable to scan.
Import
Zscaler offers a dedicated tool called Zscaler-Terraformer to allow the automated import of ZIA configurations into Terraform-compliant HashiCorp Configuration Language.
Visit
zia_atp_malware_policy can be imported by using policy
as the import ID.
For example:
$ pulumi import zia:index/aTPMalwarePolicy:ATPMalwarePolicy this "policy"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- zia zscaler/pulumi-zia
- License
- MIT
- Notes
- This Pulumi package is based on the
zia
Terraform Provider.