1. Packages
  2. Zscaler Internet Access (ZIA)
  3. API Docs
  4. AtpMalwarePolicy
Viewing docs for pulumi-resource-zia v1.3.8
published on Friday, Mar 13, 2026 by Zscaler
zia logo
Viewing docs for pulumi-resource-zia v1.3.8
published on Friday, Mar 13, 2026 by Zscaler

    The zia_atp_malware_policy resource manages the Advanced Threat Protection (ATP) malware policy settings in the Zscaler Internet Access (ZIA) cloud service. This singleton resource controls whether unscannable files and password-protected archive files are blocked.

    For more information, see the ZIA ATP documentation.

    Example Usage

    Basic ATP Malware Policy

    Example coming soon!

    Example coming soon!

    Example coming soon!

    import * as zia from "@bdzscaler/pulumi-zia";
    
    const example = new zia.AtpMalwarePolicy("example", {
        blockUnscannableFiles: true,
        blockPasswordProtectedArchiveFiles: true,
    });
    
    import zscaler_pulumi_zia as zia
    
    example = zia.AtpMalwarePolicy("example",
        block_unscannable_files=True,
        block_password_protected_archive_files=True,
    )
    
    resources:
      example:
        type: zia:AtpMalwarePolicy
        properties:
          blockUnscannableFiles: true
          blockPasswordProtectedArchiveFiles: 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());
    
    atp_malware_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:

    BlockPasswordProtectedArchiveFiles bool
    When set to true, password-protected archive files are blocked.
    BlockUnscannableFiles bool
    When set to true, files that cannot be scanned are blocked.
    BlockPasswordProtectedArchiveFiles bool
    When set to true, password-protected archive files are blocked.
    BlockUnscannableFiles bool
    When set to true, files that cannot be scanned are blocked.
    blockPasswordProtectedArchiveFiles Boolean
    When set to true, password-protected archive files are blocked.
    blockUnscannableFiles Boolean
    When set to true, files that cannot be scanned are blocked.
    blockPasswordProtectedArchiveFiles boolean
    When set to true, password-protected archive files are blocked.
    blockUnscannableFiles boolean
    When set to true, files that cannot be scanned are blocked.
    block_password_protected_archive_files bool
    When set to true, password-protected archive files are blocked.
    block_unscannable_files bool
    When set to true, files that cannot be scanned are blocked.
    blockPasswordProtectedArchiveFiles Boolean
    When set to true, password-protected archive files are blocked.
    blockUnscannableFiles Boolean
    When set to true, files that cannot be scanned are blocked.

    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.
    ResourceId string
    The internal resource identifier for the ATP malware policy.
    Id string
    The provider-assigned unique ID for this managed resource.
    ResourceId string
    The internal resource identifier for the ATP malware policy.
    id String
    The provider-assigned unique ID for this managed resource.
    resourceId String
    The internal resource identifier for the ATP malware policy.
    id string
    The provider-assigned unique ID for this managed resource.
    resourceId string
    The internal resource identifier for the ATP malware policy.
    id str
    The provider-assigned unique ID for this managed resource.
    resource_id str
    The internal resource identifier for the ATP malware policy.
    id String
    The provider-assigned unique ID for this managed resource.
    resourceId String
    The internal resource identifier for the ATP malware policy.

    Import

    This is a singleton resource and does not support traditional import. It is automatically managed by the provider.

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    zia zscaler/pulumi-zia
    License
    zia logo
    Viewing docs for pulumi-resource-zia v1.3.8
    published on Friday, Mar 13, 2026 by Zscaler
      Try Pulumi Cloud free. Your team will thank you.