com.pulumi.azure.iot.IotFunctions Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure Show documentation
Show all versions of azure Show documentation
A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.
// *** 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.azure.iot;
import com.pulumi.azure.Utilities;
import com.pulumi.azure.iot.inputs.GetDpsArgs;
import com.pulumi.azure.iot.inputs.GetDpsPlainArgs;
import com.pulumi.azure.iot.inputs.GetDpsSharedAccessPolicyArgs;
import com.pulumi.azure.iot.inputs.GetDpsSharedAccessPolicyPlainArgs;
import com.pulumi.azure.iot.inputs.GetIotHubArgs;
import com.pulumi.azure.iot.inputs.GetIotHubPlainArgs;
import com.pulumi.azure.iot.inputs.GetSharedAccessPolicyArgs;
import com.pulumi.azure.iot.inputs.GetSharedAccessPolicyPlainArgs;
import com.pulumi.azure.iot.outputs.GetDpsResult;
import com.pulumi.azure.iot.outputs.GetDpsSharedAccessPolicyResult;
import com.pulumi.azure.iot.outputs.GetIotHubResult;
import com.pulumi.azure.iot.outputs.GetSharedAccessPolicyResult;
import com.pulumi.core.Output;
import com.pulumi.core.TypeShape;
import com.pulumi.deployment.Deployment;
import com.pulumi.deployment.InvokeOptions;
import java.util.concurrent.CompletableFuture;
public final class IotFunctions {
/**
* Use this data source to access information about an existing IotHub Device Provisioning Service.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azure.iot.IotFunctions;
* import com.pulumi.azure.iot.inputs.GetDpsArgs;
* 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) {
* final var example = IotFunctions.getDps(GetDpsArgs.builder()
* .name("iot_hub_dps_test")
* .resourceGroupName("iothub_dps_rg")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getDps(GetDpsArgs args) {
return getDps(args, InvokeOptions.Empty);
}
/**
* Use this data source to access information about an existing IotHub Device Provisioning Service.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azure.iot.IotFunctions;
* import com.pulumi.azure.iot.inputs.GetDpsArgs;
* 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) {
* final var example = IotFunctions.getDps(GetDpsArgs.builder()
* .name("iot_hub_dps_test")
* .resourceGroupName("iothub_dps_rg")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getDpsPlain(GetDpsPlainArgs args) {
return getDpsPlain(args, InvokeOptions.Empty);
}
/**
* Use this data source to access information about an existing IotHub Device Provisioning Service.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azure.iot.IotFunctions;
* import com.pulumi.azure.iot.inputs.GetDpsArgs;
* 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) {
* final var example = IotFunctions.getDps(GetDpsArgs.builder()
* .name("iot_hub_dps_test")
* .resourceGroupName("iothub_dps_rg")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getDps(GetDpsArgs args, InvokeOptions options) {
return Deployment.getInstance().invoke("azure:iot/getDps:getDps", TypeShape.of(GetDpsResult.class), args, Utilities.withVersion(options));
}
/**
* Use this data source to access information about an existing IotHub Device Provisioning Service.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azure.iot.IotFunctions;
* import com.pulumi.azure.iot.inputs.GetDpsArgs;
* 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) {
* final var example = IotFunctions.getDps(GetDpsArgs.builder()
* .name("iot_hub_dps_test")
* .resourceGroupName("iothub_dps_rg")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getDpsPlain(GetDpsPlainArgs args, InvokeOptions options) {
return Deployment.getInstance().invokeAsync("azure:iot/getDps:getDps", TypeShape.of(GetDpsResult.class), args, Utilities.withVersion(options));
}
/**
* Use this data source to access information about an existing IotHub Device Provisioning Service Shared Access Policy
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azure.iot.IotFunctions;
* import com.pulumi.azure.iot.inputs.GetDpsSharedAccessPolicyArgs;
* 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) {
* final var example = IotFunctions.getDpsSharedAccessPolicy(GetDpsSharedAccessPolicyArgs.builder()
* .name("example")
* .resourceGroupName(exampleAzurermResourceGroup.name())
* .iothubDpsName(exampleAzurermIothubDps.name())
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getDpsSharedAccessPolicy(GetDpsSharedAccessPolicyArgs args) {
return getDpsSharedAccessPolicy(args, InvokeOptions.Empty);
}
/**
* Use this data source to access information about an existing IotHub Device Provisioning Service Shared Access Policy
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azure.iot.IotFunctions;
* import com.pulumi.azure.iot.inputs.GetDpsSharedAccessPolicyArgs;
* 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) {
* final var example = IotFunctions.getDpsSharedAccessPolicy(GetDpsSharedAccessPolicyArgs.builder()
* .name("example")
* .resourceGroupName(exampleAzurermResourceGroup.name())
* .iothubDpsName(exampleAzurermIothubDps.name())
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getDpsSharedAccessPolicyPlain(GetDpsSharedAccessPolicyPlainArgs args) {
return getDpsSharedAccessPolicyPlain(args, InvokeOptions.Empty);
}
/**
* Use this data source to access information about an existing IotHub Device Provisioning Service Shared Access Policy
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azure.iot.IotFunctions;
* import com.pulumi.azure.iot.inputs.GetDpsSharedAccessPolicyArgs;
* 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) {
* final var example = IotFunctions.getDpsSharedAccessPolicy(GetDpsSharedAccessPolicyArgs.builder()
* .name("example")
* .resourceGroupName(exampleAzurermResourceGroup.name())
* .iothubDpsName(exampleAzurermIothubDps.name())
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getDpsSharedAccessPolicy(GetDpsSharedAccessPolicyArgs args, InvokeOptions options) {
return Deployment.getInstance().invoke("azure:iot/getDpsSharedAccessPolicy:getDpsSharedAccessPolicy", TypeShape.of(GetDpsSharedAccessPolicyResult.class), args, Utilities.withVersion(options));
}
/**
* Use this data source to access information about an existing IotHub Device Provisioning Service Shared Access Policy
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azure.iot.IotFunctions;
* import com.pulumi.azure.iot.inputs.GetDpsSharedAccessPolicyArgs;
* 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) {
* final var example = IotFunctions.getDpsSharedAccessPolicy(GetDpsSharedAccessPolicyArgs.builder()
* .name("example")
* .resourceGroupName(exampleAzurermResourceGroup.name())
* .iothubDpsName(exampleAzurermIothubDps.name())
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getDpsSharedAccessPolicyPlain(GetDpsSharedAccessPolicyPlainArgs args, InvokeOptions options) {
return Deployment.getInstance().invokeAsync("azure:iot/getDpsSharedAccessPolicy:getDpsSharedAccessPolicy", TypeShape.of(GetDpsSharedAccessPolicyResult.class), args, Utilities.withVersion(options));
}
/**
* Use this data source to access information about an existing IoTHub.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azure.iot.IotFunctions;
* import com.pulumi.azure.iot.inputs.GetIotHubArgs;
* 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) {
* final var example = IotFunctions.getIotHub(GetIotHubArgs.builder()
* .name("existing")
* .resourceGroupName("existing")
* .build());
*
* ctx.export("id", example.applyValue(getIotHubResult -> getIotHubResult.id()));
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getIotHub(GetIotHubArgs args) {
return getIotHub(args, InvokeOptions.Empty);
}
/**
* Use this data source to access information about an existing IoTHub.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azure.iot.IotFunctions;
* import com.pulumi.azure.iot.inputs.GetIotHubArgs;
* 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) {
* final var example = IotFunctions.getIotHub(GetIotHubArgs.builder()
* .name("existing")
* .resourceGroupName("existing")
* .build());
*
* ctx.export("id", example.applyValue(getIotHubResult -> getIotHubResult.id()));
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getIotHubPlain(GetIotHubPlainArgs args) {
return getIotHubPlain(args, InvokeOptions.Empty);
}
/**
* Use this data source to access information about an existing IoTHub.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azure.iot.IotFunctions;
* import com.pulumi.azure.iot.inputs.GetIotHubArgs;
* 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) {
* final var example = IotFunctions.getIotHub(GetIotHubArgs.builder()
* .name("existing")
* .resourceGroupName("existing")
* .build());
*
* ctx.export("id", example.applyValue(getIotHubResult -> getIotHubResult.id()));
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getIotHub(GetIotHubArgs args, InvokeOptions options) {
return Deployment.getInstance().invoke("azure:iot/getIotHub:getIotHub", TypeShape.of(GetIotHubResult.class), args, Utilities.withVersion(options));
}
/**
* Use this data source to access information about an existing IoTHub.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azure.iot.IotFunctions;
* import com.pulumi.azure.iot.inputs.GetIotHubArgs;
* 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) {
* final var example = IotFunctions.getIotHub(GetIotHubArgs.builder()
* .name("existing")
* .resourceGroupName("existing")
* .build());
*
* ctx.export("id", example.applyValue(getIotHubResult -> getIotHubResult.id()));
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getIotHubPlain(GetIotHubPlainArgs args, InvokeOptions options) {
return Deployment.getInstance().invokeAsync("azure:iot/getIotHub:getIotHub", TypeShape.of(GetIotHubResult.class), args, Utilities.withVersion(options));
}
/**
* Use this data source to access information about an existing IotHub Shared Access Policy
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azure.iot.IotFunctions;
* import com.pulumi.azure.iot.inputs.GetSharedAccessPolicyArgs;
* 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) {
* final var example = IotFunctions.getSharedAccessPolicy(GetSharedAccessPolicyArgs.builder()
* .name("example")
* .resourceGroupName(exampleAzurermResourceGroup.name())
* .iothubName(exampleAzurermIothub.name())
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getSharedAccessPolicy(GetSharedAccessPolicyArgs args) {
return getSharedAccessPolicy(args, InvokeOptions.Empty);
}
/**
* Use this data source to access information about an existing IotHub Shared Access Policy
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azure.iot.IotFunctions;
* import com.pulumi.azure.iot.inputs.GetSharedAccessPolicyArgs;
* 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) {
* final var example = IotFunctions.getSharedAccessPolicy(GetSharedAccessPolicyArgs.builder()
* .name("example")
* .resourceGroupName(exampleAzurermResourceGroup.name())
* .iothubName(exampleAzurermIothub.name())
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getSharedAccessPolicyPlain(GetSharedAccessPolicyPlainArgs args) {
return getSharedAccessPolicyPlain(args, InvokeOptions.Empty);
}
/**
* Use this data source to access information about an existing IotHub Shared Access Policy
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azure.iot.IotFunctions;
* import com.pulumi.azure.iot.inputs.GetSharedAccessPolicyArgs;
* 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) {
* final var example = IotFunctions.getSharedAccessPolicy(GetSharedAccessPolicyArgs.builder()
* .name("example")
* .resourceGroupName(exampleAzurermResourceGroup.name())
* .iothubName(exampleAzurermIothub.name())
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getSharedAccessPolicy(GetSharedAccessPolicyArgs args, InvokeOptions options) {
return Deployment.getInstance().invoke("azure:iot/getSharedAccessPolicy:getSharedAccessPolicy", TypeShape.of(GetSharedAccessPolicyResult.class), args, Utilities.withVersion(options));
}
/**
* Use this data source to access information about an existing IotHub Shared Access Policy
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azure.iot.IotFunctions;
* import com.pulumi.azure.iot.inputs.GetSharedAccessPolicyArgs;
* 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) {
* final var example = IotFunctions.getSharedAccessPolicy(GetSharedAccessPolicyArgs.builder()
* .name("example")
* .resourceGroupName(exampleAzurermResourceGroup.name())
* .iothubName(exampleAzurermIothub.name())
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getSharedAccessPolicyPlain(GetSharedAccessPolicyPlainArgs args, InvokeOptions options) {
return Deployment.getInstance().invokeAsync("azure:iot/getSharedAccessPolicy:getSharedAccessPolicy", TypeShape.of(GetSharedAccessPolicyResult.class), args, Utilities.withVersion(options));
}
}