get Dps Shared Access Policy
suspend fun getDpsSharedAccessPolicy(argument: GetDpsSharedAccessPolicyPlainArgs): GetDpsSharedAccessPolicyResult
Use this data source to access information about an existing IotHub Device Provisioning Service Shared Access Policy
Example Usage
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());
}
}
Content copied to clipboard
Return
A collection of values returned by getDpsSharedAccessPolicy.
Parameters
argument
A collection of arguments for invoking getDpsSharedAccessPolicy.
suspend fun getDpsSharedAccessPolicy(iothubDpsName: String, name: String, resourceGroupName: String): GetDpsSharedAccessPolicyResult
Return
A collection of values returned by getDpsSharedAccessPolicy.
See also
Parameters
iothub Dps Name
Specifies the name of the IoT Hub Device Provisioning service to which the Shared Access Policy belongs.
name
Specifies the name of the IotHub Shared Access Policy.
resource Group Name
Specifies the name of the resource group under which the IotHub Shared Access Policy resource exists.
suspend fun getDpsSharedAccessPolicy(argument: suspend GetDpsSharedAccessPolicyPlainArgsBuilder.() -> Unit): GetDpsSharedAccessPolicyResult
Return
A collection of values returned by getDpsSharedAccessPolicy.
See also
Parameters
argument
Builder for com.pulumi.azure.iot.kotlin.inputs.GetDpsSharedAccessPolicyPlainArgs.