com.pulumi.meraki.networks.WirelessEthernetPortsProfiles Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of meraki Show documentation
Show all versions of meraki Show documentation
A Pulumi package for creating and managing Cisco Meraki resources
// *** 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.meraki.networks;
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.meraki.Utilities;
import com.pulumi.meraki.networks.WirelessEthernetPortsProfilesArgs;
import com.pulumi.meraki.networks.inputs.WirelessEthernetPortsProfilesState;
import com.pulumi.meraki.networks.outputs.WirelessEthernetPortsProfilesPort;
import com.pulumi.meraki.networks.outputs.WirelessEthernetPortsProfilesUsbPort;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import javax.annotation.Nullable;
/**
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.meraki.networks.WirelessEthernetPortsProfiles;
* import com.pulumi.meraki.networks.WirelessEthernetPortsProfilesArgs;
* import com.pulumi.meraki.networks.inputs.WirelessEthernetPortsProfilesPortArgs;
* import com.pulumi.meraki.networks.inputs.WirelessEthernetPortsProfilesUsbPortArgs;
* 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 WirelessEthernetPortsProfiles("example", WirelessEthernetPortsProfilesArgs.builder()
* .name("string")
* .networkId("string")
* .ports(WirelessEthernetPortsProfilesPortArgs.builder()
* .enabled(false)
* .name("string")
* .psk_group_id("string")
* .ssid(1)
* .build())
* .profileId("string")
* .usbPorts(WirelessEthernetPortsProfilesUsbPortArgs.builder()
* .enabled(false)
* .name("string")
* .ssid(1)
* .build())
* .build());
*
* ctx.export("merakiNetworksWirelessEthernetPortsProfilesExample", example);
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
* ## Import
*
* ```sh
* $ pulumi import meraki:networks/wirelessEthernetPortsProfiles:WirelessEthernetPortsProfiles example "network_id,profile_id"
* ```
*
*/
@ResourceType(type="meraki:networks/wirelessEthernetPortsProfiles:WirelessEthernetPortsProfiles")
public class WirelessEthernetPortsProfiles extends com.pulumi.resources.CustomResource {
/**
* Is default profile
*
*/
@Export(name="isDefault", refs={Boolean.class}, tree="[0]")
private Output isDefault;
/**
* @return Is default profile
*
*/
public Output isDefault() {
return this.isDefault;
}
/**
* AP port profile name
*
*/
@Export(name="name", refs={String.class}, tree="[0]")
private Output name;
/**
* @return AP port profile name
*
*/
public Output name() {
return this.name;
}
/**
* networkId path parameter. Network ID
*
*/
@Export(name="networkId", refs={String.class}, tree="[0]")
private Output networkId;
/**
* @return networkId path parameter. Network ID
*
*/
public Output networkId() {
return this.networkId;
}
/**
* Ports config
*
*/
@Export(name="ports", refs={List.class,WirelessEthernetPortsProfilesPort.class}, tree="[0,1]")
private Output> ports;
/**
* @return Ports config
*
*/
public Output> ports() {
return this.ports;
}
/**
* AP port profile ID
*
*/
@Export(name="profileId", refs={String.class}, tree="[0]")
private Output profileId;
/**
* @return AP port profile ID
*
*/
public Output profileId() {
return this.profileId;
}
/**
* Usb ports config
*
*/
@Export(name="usbPorts", refs={List.class,WirelessEthernetPortsProfilesUsbPort.class}, tree="[0,1]")
private Output> usbPorts;
/**
* @return Usb ports config
*
*/
public Output> usbPorts() {
return this.usbPorts;
}
/**
*
* @param name The _unique_ name of the resulting resource.
*/
public WirelessEthernetPortsProfiles(java.lang.String name) {
this(name, WirelessEthernetPortsProfilesArgs.Empty);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
*/
public WirelessEthernetPortsProfiles(java.lang.String name, WirelessEthernetPortsProfilesArgs 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 WirelessEthernetPortsProfiles(java.lang.String name, WirelessEthernetPortsProfilesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("meraki:networks/wirelessEthernetPortsProfiles:WirelessEthernetPortsProfiles", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false);
}
private WirelessEthernetPortsProfiles(java.lang.String name, Output id, @Nullable WirelessEthernetPortsProfilesState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("meraki:networks/wirelessEthernetPortsProfiles:WirelessEthernetPortsProfiles", name, state, makeResourceOptions(options, id), false);
}
private static WirelessEthernetPortsProfilesArgs makeArgs(WirelessEthernetPortsProfilesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
if (options != null && options.getUrn().isPresent()) {
return null;
}
return args == null ? WirelessEthernetPortsProfilesArgs.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 WirelessEthernetPortsProfiles get(java.lang.String name, Output id, @Nullable WirelessEthernetPortsProfilesState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
return new WirelessEthernetPortsProfiles(name, id, state, options);
}
}