1. Packages
  2. Cisco Meraki
  3. API Docs
  4. networks
  5. ApplianceSecurityMalware
Cisco Meraki v0.2.4 published on Friday, Jun 14, 2024 by Pulumi

meraki.networks.ApplianceSecurityMalware

Explore with Pulumi AI

meraki logo
Cisco Meraki v0.2.4 published on Friday, Jun 14, 2024 by Pulumi

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as meraki from "@pulumi/meraki";
    
    const example = new meraki.networks.ApplianceSecurityMalware("example", {
        allowedFiles: [{
            comment: "allow ZIP file",
            sha256: "e82c5f7d75004727e1f3b94426b9a11c8bc4c312a9170ac9a73abace40aef503",
        }],
        allowedUrls: [{
            comment: "allow help.com.au",
            url: "help.com.au",
        }],
        mode: "enabled",
        networkId: "string",
    });
    export const merakiNetworksApplianceSecurityMalwareExample = example;
    
    import pulumi
    import pulumi_meraki as meraki
    
    example = meraki.networks.ApplianceSecurityMalware("example",
        allowed_files=[meraki.networks.ApplianceSecurityMalwareAllowedFileArgs(
            comment="allow ZIP file",
            sha256="e82c5f7d75004727e1f3b94426b9a11c8bc4c312a9170ac9a73abace40aef503",
        )],
        allowed_urls=[meraki.networks.ApplianceSecurityMalwareAllowedUrlArgs(
            comment="allow help.com.au",
            url="help.com.au",
        )],
        mode="enabled",
        network_id="string")
    pulumi.export("merakiNetworksApplianceSecurityMalwareExample", example)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-meraki/sdk/go/meraki/networks"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := networks.NewApplianceSecurityMalware(ctx, "example", &networks.ApplianceSecurityMalwareArgs{
    			AllowedFiles: networks.ApplianceSecurityMalwareAllowedFileArray{
    				&networks.ApplianceSecurityMalwareAllowedFileArgs{
    					Comment: pulumi.String("allow ZIP file"),
    					Sha256:  pulumi.String("e82c5f7d75004727e1f3b94426b9a11c8bc4c312a9170ac9a73abace40aef503"),
    				},
    			},
    			AllowedUrls: networks.ApplianceSecurityMalwareAllowedUrlArray{
    				&networks.ApplianceSecurityMalwareAllowedUrlArgs{
    					Comment: pulumi.String("allow help.com.au"),
    					Url:     pulumi.String("help.com.au"),
    				},
    			},
    			Mode:      pulumi.String("enabled"),
    			NetworkId: pulumi.String("string"),
    		})
    		if err != nil {
    			return err
    		}
    		ctx.Export("merakiNetworksApplianceSecurityMalwareExample", example)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Meraki = Pulumi.Meraki;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Meraki.Networks.ApplianceSecurityMalware("example", new()
        {
            AllowedFiles = new[]
            {
                new Meraki.Networks.Inputs.ApplianceSecurityMalwareAllowedFileArgs
                {
                    Comment = "allow ZIP file",
                    Sha256 = "e82c5f7d75004727e1f3b94426b9a11c8bc4c312a9170ac9a73abace40aef503",
                },
            },
            AllowedUrls = new[]
            {
                new Meraki.Networks.Inputs.ApplianceSecurityMalwareAllowedUrlArgs
                {
                    Comment = "allow help.com.au",
                    Url = "help.com.au",
                },
            },
            Mode = "enabled",
            NetworkId = "string",
        });
    
        return new Dictionary<string, object?>
        {
            ["merakiNetworksApplianceSecurityMalwareExample"] = example,
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.meraki.networks.ApplianceSecurityMalware;
    import com.pulumi.meraki.networks.ApplianceSecurityMalwareArgs;
    import com.pulumi.meraki.networks.inputs.ApplianceSecurityMalwareAllowedFileArgs;
    import com.pulumi.meraki.networks.inputs.ApplianceSecurityMalwareAllowedUrlArgs;
    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 example = new ApplianceSecurityMalware("example", ApplianceSecurityMalwareArgs.builder()
                .allowedFiles(ApplianceSecurityMalwareAllowedFileArgs.builder()
                    .comment("allow ZIP file")
                    .sha256("e82c5f7d75004727e1f3b94426b9a11c8bc4c312a9170ac9a73abace40aef503")
                    .build())
                .allowedUrls(ApplianceSecurityMalwareAllowedUrlArgs.builder()
                    .comment("allow help.com.au")
                    .url("help.com.au")
                    .build())
                .mode("enabled")
                .networkId("string")
                .build());
    
            ctx.export("merakiNetworksApplianceSecurityMalwareExample", example);
        }
    }
    
    resources:
      example:
        type: meraki:networks:ApplianceSecurityMalware
        properties:
          allowedFiles:
            - comment: allow ZIP file
              sha256: e82c5f7d75004727e1f3b94426b9a11c8bc4c312a9170ac9a73abace40aef503
          allowedUrls:
            - comment: allow help.com.au
              url: help.com.au
          mode: enabled
          networkId: string
    outputs:
      merakiNetworksApplianceSecurityMalwareExample: ${example}
    

    Create ApplianceSecurityMalware Resource

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

    Constructor syntax

    new ApplianceSecurityMalware(name: string, args: ApplianceSecurityMalwareArgs, opts?: CustomResourceOptions);
    @overload
    def ApplianceSecurityMalware(resource_name: str,
                                 args: ApplianceSecurityMalwareArgs,
                                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def ApplianceSecurityMalware(resource_name: str,
                                 opts: Optional[ResourceOptions] = None,
                                 network_id: Optional[str] = None,
                                 allowed_files: Optional[Sequence[ApplianceSecurityMalwareAllowedFileArgs]] = None,
                                 allowed_urls: Optional[Sequence[ApplianceSecurityMalwareAllowedUrlArgs]] = None,
                                 mode: Optional[str] = None)
    func NewApplianceSecurityMalware(ctx *Context, name string, args ApplianceSecurityMalwareArgs, opts ...ResourceOption) (*ApplianceSecurityMalware, error)
    public ApplianceSecurityMalware(string name, ApplianceSecurityMalwareArgs args, CustomResourceOptions? opts = null)
    public ApplianceSecurityMalware(String name, ApplianceSecurityMalwareArgs args)
    public ApplianceSecurityMalware(String name, ApplianceSecurityMalwareArgs args, CustomResourceOptions options)
    
    type: meraki:networks:ApplianceSecurityMalware
    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 ApplianceSecurityMalwareArgs
    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 ApplianceSecurityMalwareArgs
    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 ApplianceSecurityMalwareArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ApplianceSecurityMalwareArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ApplianceSecurityMalwareArgs
    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 applianceSecurityMalwareResource = new Meraki.Networks.ApplianceSecurityMalware("applianceSecurityMalwareResource", new()
    {
        NetworkId = "string",
        AllowedFiles = new[]
        {
            new Meraki.Networks.Inputs.ApplianceSecurityMalwareAllowedFileArgs
            {
                Comment = "string",
                Sha256 = "string",
            },
        },
        AllowedUrls = new[]
        {
            new Meraki.Networks.Inputs.ApplianceSecurityMalwareAllowedUrlArgs
            {
                Comment = "string",
                Url = "string",
            },
        },
        Mode = "string",
    });
    
    example, err := networks.NewApplianceSecurityMalware(ctx, "applianceSecurityMalwareResource", &networks.ApplianceSecurityMalwareArgs{
    	NetworkId: pulumi.String("string"),
    	AllowedFiles: networks.ApplianceSecurityMalwareAllowedFileArray{
    		&networks.ApplianceSecurityMalwareAllowedFileArgs{
    			Comment: pulumi.String("string"),
    			Sha256:  pulumi.String("string"),
    		},
    	},
    	AllowedUrls: networks.ApplianceSecurityMalwareAllowedUrlArray{
    		&networks.ApplianceSecurityMalwareAllowedUrlArgs{
    			Comment: pulumi.String("string"),
    			Url:     pulumi.String("string"),
    		},
    	},
    	Mode: pulumi.String("string"),
    })
    
    var applianceSecurityMalwareResource = new ApplianceSecurityMalware("applianceSecurityMalwareResource", ApplianceSecurityMalwareArgs.builder()
        .networkId("string")
        .allowedFiles(ApplianceSecurityMalwareAllowedFileArgs.builder()
            .comment("string")
            .sha256("string")
            .build())
        .allowedUrls(ApplianceSecurityMalwareAllowedUrlArgs.builder()
            .comment("string")
            .url("string")
            .build())
        .mode("string")
        .build());
    
    appliance_security_malware_resource = meraki.networks.ApplianceSecurityMalware("applianceSecurityMalwareResource",
        network_id="string",
        allowed_files=[meraki.networks.ApplianceSecurityMalwareAllowedFileArgs(
            comment="string",
            sha256="string",
        )],
        allowed_urls=[meraki.networks.ApplianceSecurityMalwareAllowedUrlArgs(
            comment="string",
            url="string",
        )],
        mode="string")
    
    const applianceSecurityMalwareResource = new meraki.networks.ApplianceSecurityMalware("applianceSecurityMalwareResource", {
        networkId: "string",
        allowedFiles: [{
            comment: "string",
            sha256: "string",
        }],
        allowedUrls: [{
            comment: "string",
            url: "string",
        }],
        mode: "string",
    });
    
    type: meraki:networks:ApplianceSecurityMalware
    properties:
        allowedFiles:
            - comment: string
              sha256: string
        allowedUrls:
            - comment: string
              url: string
        mode: string
        networkId: string
    

    ApplianceSecurityMalware Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The ApplianceSecurityMalware resource accepts the following input properties:

    NetworkId string
    networkId path parameter. Network ID
    AllowedFiles List<ApplianceSecurityMalwareAllowedFile>
    Sha256 digests of files permitted by the malware detection engine
    AllowedUrls List<ApplianceSecurityMalwareAllowedUrl>
    URLs permitted by the malware detection engine
    Mode string
    Current status of malware prevention
    NetworkId string
    networkId path parameter. Network ID
    AllowedFiles []ApplianceSecurityMalwareAllowedFileArgs
    Sha256 digests of files permitted by the malware detection engine
    AllowedUrls []ApplianceSecurityMalwareAllowedUrlArgs
    URLs permitted by the malware detection engine
    Mode string
    Current status of malware prevention
    networkId String
    networkId path parameter. Network ID
    allowedFiles List<ApplianceSecurityMalwareAllowedFile>
    Sha256 digests of files permitted by the malware detection engine
    allowedUrls List<ApplianceSecurityMalwareAllowedUrl>
    URLs permitted by the malware detection engine
    mode String
    Current status of malware prevention
    networkId string
    networkId path parameter. Network ID
    allowedFiles ApplianceSecurityMalwareAllowedFile[]
    Sha256 digests of files permitted by the malware detection engine
    allowedUrls ApplianceSecurityMalwareAllowedUrl[]
    URLs permitted by the malware detection engine
    mode string
    Current status of malware prevention
    network_id str
    networkId path parameter. Network ID
    allowed_files Sequence[ApplianceSecurityMalwareAllowedFileArgs]
    Sha256 digests of files permitted by the malware detection engine
    allowed_urls Sequence[ApplianceSecurityMalwareAllowedUrlArgs]
    URLs permitted by the malware detection engine
    mode str
    Current status of malware prevention
    networkId String
    networkId path parameter. Network ID
    allowedFiles List<Property Map>
    Sha256 digests of files permitted by the malware detection engine
    allowedUrls List<Property Map>
    URLs permitted by the malware detection engine
    mode String
    Current status of malware prevention

    Outputs

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

    Get an existing ApplianceSecurityMalware 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?: ApplianceSecurityMalwareState, opts?: CustomResourceOptions): ApplianceSecurityMalware
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            allowed_files: Optional[Sequence[ApplianceSecurityMalwareAllowedFileArgs]] = None,
            allowed_urls: Optional[Sequence[ApplianceSecurityMalwareAllowedUrlArgs]] = None,
            mode: Optional[str] = None,
            network_id: Optional[str] = None) -> ApplianceSecurityMalware
    func GetApplianceSecurityMalware(ctx *Context, name string, id IDInput, state *ApplianceSecurityMalwareState, opts ...ResourceOption) (*ApplianceSecurityMalware, error)
    public static ApplianceSecurityMalware Get(string name, Input<string> id, ApplianceSecurityMalwareState? state, CustomResourceOptions? opts = null)
    public static ApplianceSecurityMalware get(String name, Output<String> id, ApplianceSecurityMalwareState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    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:
    AllowedFiles List<ApplianceSecurityMalwareAllowedFile>
    Sha256 digests of files permitted by the malware detection engine
    AllowedUrls List<ApplianceSecurityMalwareAllowedUrl>
    URLs permitted by the malware detection engine
    Mode string
    Current status of malware prevention
    NetworkId string
    networkId path parameter. Network ID
    AllowedFiles []ApplianceSecurityMalwareAllowedFileArgs
    Sha256 digests of files permitted by the malware detection engine
    AllowedUrls []ApplianceSecurityMalwareAllowedUrlArgs
    URLs permitted by the malware detection engine
    Mode string
    Current status of malware prevention
    NetworkId string
    networkId path parameter. Network ID
    allowedFiles List<ApplianceSecurityMalwareAllowedFile>
    Sha256 digests of files permitted by the malware detection engine
    allowedUrls List<ApplianceSecurityMalwareAllowedUrl>
    URLs permitted by the malware detection engine
    mode String
    Current status of malware prevention
    networkId String
    networkId path parameter. Network ID
    allowedFiles ApplianceSecurityMalwareAllowedFile[]
    Sha256 digests of files permitted by the malware detection engine
    allowedUrls ApplianceSecurityMalwareAllowedUrl[]
    URLs permitted by the malware detection engine
    mode string
    Current status of malware prevention
    networkId string
    networkId path parameter. Network ID
    allowed_files Sequence[ApplianceSecurityMalwareAllowedFileArgs]
    Sha256 digests of files permitted by the malware detection engine
    allowed_urls Sequence[ApplianceSecurityMalwareAllowedUrlArgs]
    URLs permitted by the malware detection engine
    mode str
    Current status of malware prevention
    network_id str
    networkId path parameter. Network ID
    allowedFiles List<Property Map>
    Sha256 digests of files permitted by the malware detection engine
    allowedUrls List<Property Map>
    URLs permitted by the malware detection engine
    mode String
    Current status of malware prevention
    networkId String
    networkId path parameter. Network ID

    Supporting Types

    ApplianceSecurityMalwareAllowedFile, ApplianceSecurityMalwareAllowedFileArgs

    Comment string
    Comment about the allowed file
    Sha256 string
    The sha256 digest of allowed file
    Comment string
    Comment about the allowed file
    Sha256 string
    The sha256 digest of allowed file
    comment String
    Comment about the allowed file
    sha256 String
    The sha256 digest of allowed file
    comment string
    Comment about the allowed file
    sha256 string
    The sha256 digest of allowed file
    comment str
    Comment about the allowed file
    sha256 str
    The sha256 digest of allowed file
    comment String
    Comment about the allowed file
    sha256 String
    The sha256 digest of allowed file

    ApplianceSecurityMalwareAllowedUrl, ApplianceSecurityMalwareAllowedUrlArgs

    Comment string
    Comment about the allowed URL
    Url string
    The allowed URL
    Comment string
    Comment about the allowed URL
    Url string
    The allowed URL
    comment String
    Comment about the allowed URL
    url String
    The allowed URL
    comment string
    Comment about the allowed URL
    url string
    The allowed URL
    comment str
    Comment about the allowed URL
    url str
    The allowed URL
    comment String
    Comment about the allowed URL
    url String
    The allowed URL

    Import

    $ pulumi import meraki:networks/applianceSecurityMalware:ApplianceSecurityMalware example "network_id"
    

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

    Package Details

    Repository
    meraki pulumi/pulumi-meraki
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the meraki Terraform Provider.
    meraki logo
    Cisco Meraki v0.2.4 published on Friday, Jun 14, 2024 by Pulumi