Use the zia_bandwidth_classes_file_size resource allows the creation and management of ZIA file size bandwidth class in the Zscaler Internet Access cloud or via the API.
Example Usage
BANDWIDTH_CAT_LARGE_FILE
resource "zia_bandwidth_classes_file_size" "this1" {
file_size = "FILE_5MB"
}
Create BandwidthControlClassesFileSize Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new BandwidthControlClassesFileSize(name: string, args?: BandwidthControlClassesFileSizeArgs, opts?: CustomResourceOptions);@overload
def BandwidthControlClassesFileSize(resource_name: str,
args: Optional[BandwidthControlClassesFileSizeArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def BandwidthControlClassesFileSize(resource_name: str,
opts: Optional[ResourceOptions] = None,
file_size: Optional[str] = None,
name: Optional[str] = None,
type: Optional[str] = None)func NewBandwidthControlClassesFileSize(ctx *Context, name string, args *BandwidthControlClassesFileSizeArgs, opts ...ResourceOption) (*BandwidthControlClassesFileSize, error)public BandwidthControlClassesFileSize(string name, BandwidthControlClassesFileSizeArgs? args = null, CustomResourceOptions? opts = null)
public BandwidthControlClassesFileSize(String name, BandwidthControlClassesFileSizeArgs args)
public BandwidthControlClassesFileSize(String name, BandwidthControlClassesFileSizeArgs args, CustomResourceOptions options)
type: zia:BandwidthControlClassesFileSize
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 BandwidthControlClassesFileSizeArgs
- 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 BandwidthControlClassesFileSizeArgs
- 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 BandwidthControlClassesFileSizeArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args BandwidthControlClassesFileSizeArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args BandwidthControlClassesFileSizeArgs
- 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 bandwidthControlClassesFileSizeResource = new Zia.BandwidthControlClassesFileSize("bandwidthControlClassesFileSizeResource", new()
{
FileSize = "string",
Name = "string",
Type = "string",
});
example, err := zia.NewBandwidthControlClassesFileSize(ctx, "bandwidthControlClassesFileSizeResource", &zia.BandwidthControlClassesFileSizeArgs{
FileSize: pulumi.String("string"),
Name: pulumi.String("string"),
Type: pulumi.String("string"),
})
var bandwidthControlClassesFileSizeResource = new BandwidthControlClassesFileSize("bandwidthControlClassesFileSizeResource", BandwidthControlClassesFileSizeArgs.builder()
.fileSize("string")
.name("string")
.type("string")
.build());
bandwidth_control_classes_file_size_resource = zia.BandwidthControlClassesFileSize("bandwidthControlClassesFileSizeResource",
file_size="string",
name="string",
type="string")
const bandwidthControlClassesFileSizeResource = new zia.BandwidthControlClassesFileSize("bandwidthControlClassesFileSizeResource", {
fileSize: "string",
name: "string",
type: "string",
});
type: zia:BandwidthControlClassesFileSize
properties:
fileSize: string
name: string
type: string
BandwidthControlClassesFileSize 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 BandwidthControlClassesFileSize resource accepts the following input properties:
Outputs
All input properties are implicitly available as output properties. Additionally, the BandwidthControlClassesFileSize resource produces the following output properties:
Look up Existing BandwidthControlClassesFileSize Resource
Get an existing BandwidthControlClassesFileSize 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?: BandwidthControlClassesFileSizeState, opts?: CustomResourceOptions): BandwidthControlClassesFileSize@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
class_id: Optional[int] = None,
file_size: Optional[str] = None,
name: Optional[str] = None,
type: Optional[str] = None) -> BandwidthControlClassesFileSizefunc GetBandwidthControlClassesFileSize(ctx *Context, name string, id IDInput, state *BandwidthControlClassesFileSizeState, opts ...ResourceOption) (*BandwidthControlClassesFileSize, error)public static BandwidthControlClassesFileSize Get(string name, Input<string> id, BandwidthControlClassesFileSizeState? state, CustomResourceOptions? opts = null)public static BandwidthControlClassesFileSize get(String name, Output<String> id, BandwidthControlClassesFileSizeState state, CustomResourceOptions options)resources: _: type: zia:BandwidthControlClassesFileSize 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.
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_bandwidth_classes_file_size can be imported by using <CLASS_ID> or <CLASS_NAME> as the import ID.
For example:
$ pulumi import zia:index/bandwidthControlClassesFileSize:BandwidthControlClassesFileSize this <class_id>
$ pulumi import zia:index/bandwidthControlClassesFileSize:BandwidthControlClassesFileSize this <"class_name">
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
ziaTerraform Provider.
