com.pulumi.ise.networkaccess.DownloadableAcl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ise Show documentation
Show all versions of ise Show documentation
A Pulumi package for managing resources on a Cisco ISE (Identity Service Engine) instance.
The newest version!
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.ise.networkaccess;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Export;
import com.pulumi.core.annotations.ResourceType;
import com.pulumi.core.internal.Codegen;
import com.pulumi.ise.Utilities;
import com.pulumi.ise.networkaccess.DownloadableAclArgs;
import com.pulumi.ise.networkaccess.inputs.DownloadableAclState;
import java.lang.String;
import java.util.Optional;
import javax.annotation.Nullable;
/**
* This resource can manage a Downloadable ACL.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.ise.networkaccess.DownloadableAcl;
* import com.pulumi.ise.networkaccess.DownloadableAclArgs;
* 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 DownloadableAcl("example", DownloadableAclArgs.builder()
* .name("MyACL")
* .description("My first downloadable ACL")
* .dacl("permit ip any any")
* .daclType("IPV4")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
* ## Import
*
* ```sh
* $ pulumi import ise:networkaccess/downloadableAcl:DownloadableAcl example "76d24097-41c4-4558-a4d0-a8c07ac08470"
* ```
*
*/
@ResourceType(type="ise:networkaccess/downloadableAcl:DownloadableAcl")
public class DownloadableAcl extends com.pulumi.resources.CustomResource {
/**
* The DACL content
*
*/
@Export(name="dacl", refs={String.class}, tree="[0]")
private Output dacl;
/**
* @return The DACL content
*
*/
public Output dacl() {
return this.dacl;
}
/**
* The type of ACL - Choices: `IPV4`, `IPV6`, `IP_AGNOSTIC` - Default value: `IPV4`
*
*/
@Export(name="daclType", refs={String.class}, tree="[0]")
private Output daclType;
/**
* @return The type of ACL - Choices: `IPV4`, `IPV6`, `IP_AGNOSTIC` - Default value: `IPV4`
*
*/
public Output daclType() {
return this.daclType;
}
/**
* Description
*
*/
@Export(name="description", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> description;
/**
* @return Description
*
*/
public Output> description() {
return Codegen.optional(this.description);
}
/**
* The name of the downloadable ACL
*
*/
@Export(name="name", refs={String.class}, tree="[0]")
private Output name;
/**
* @return The name of the downloadable ACL
*
*/
public Output name() {
return this.name;
}
/**
*
* @param name The _unique_ name of the resulting resource.
*/
public DownloadableAcl(java.lang.String name) {
this(name, DownloadableAclArgs.Empty);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
*/
public DownloadableAcl(java.lang.String name, DownloadableAclArgs args) {
this(name, args, null);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
* @param options A bag of options that control this resource's behavior.
*/
public DownloadableAcl(java.lang.String name, DownloadableAclArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("ise:networkaccess/downloadableAcl:DownloadableAcl", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false);
}
private DownloadableAcl(java.lang.String name, Output id, @Nullable DownloadableAclState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("ise:networkaccess/downloadableAcl:DownloadableAcl", name, state, makeResourceOptions(options, id), false);
}
private static DownloadableAclArgs makeArgs(DownloadableAclArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
if (options != null && options.getUrn().isPresent()) {
return null;
}
return args == null ? DownloadableAclArgs.Empty : args;
}
private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) {
var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder()
.version(Utilities.getVersion())
.build();
return com.pulumi.resources.CustomResourceOptions.merge(defaultOptions, options, id);
}
/**
* Get an existing Host resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param state
* @param options Optional settings to control the behavior of the CustomResource.
*/
public static DownloadableAcl get(java.lang.String name, Output id, @Nullable DownloadableAclState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
return new DownloadableAcl(name, id, state, options);
}
}