DpsSharedAccessPolicyArgs

data class DpsSharedAccessPolicyArgs(val enrollmentRead: Output<Boolean>? = null, val enrollmentWrite: Output<Boolean>? = null, val iothubDpsName: Output<String>? = null, val name: Output<String>? = null, val registrationRead: Output<Boolean>? = null, val registrationWrite: Output<Boolean>? = null, val resourceGroupName: Output<String>? = null, val serviceConfig: Output<Boolean>? = null) : ConvertibleToJava<DpsSharedAccessPolicyArgs>

Manages an 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.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.iot.IotHubDps;
import com.pulumi.azure.iot.IotHubDpsArgs;
import com.pulumi.azure.iot.inputs.IotHubDpsSkuArgs;
import com.pulumi.azure.iot.DpsSharedAccessPolicy;
import com.pulumi.azure.iot.DpsSharedAccessPolicyArgs;
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 exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
.location("West Europe")
.build());
var exampleIotHubDps = new IotHubDps("exampleIotHubDps", IotHubDpsArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.location(exampleResourceGroup.location())
.sku(IotHubDpsSkuArgs.builder()
.name("S1")
.capacity("1")
.build())
.build());
var exampleDpsSharedAccessPolicy = new DpsSharedAccessPolicy("exampleDpsSharedAccessPolicy", DpsSharedAccessPolicyArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.iothubDpsName(exampleIotHubDps.name())
.enrollmentWrite(true)
.enrollmentRead(true)
.build());
}
}

Import

IoTHub Device Provisioning Service Shared Access Policies can be imported using the resource id, e.g.

$ pulumi import azure:iot/dpsSharedAccessPolicy:DpsSharedAccessPolicy shared_access_policy1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Devices/provisioningServices/dps1/keys/shared_access_policy1

Constructors

Link copied to clipboard
fun DpsSharedAccessPolicyArgs(enrollmentRead: Output<Boolean>? = null, enrollmentWrite: Output<Boolean>? = null, iothubDpsName: Output<String>? = null, name: Output<String>? = null, registrationRead: Output<Boolean>? = null, registrationWrite: Output<Boolean>? = null, resourceGroupName: Output<String>? = null, serviceConfig: Output<Boolean>? = null)

Functions

Link copied to clipboard
open override fun toJava(): DpsSharedAccessPolicyArgs

Properties

Link copied to clipboard
val enrollmentRead: Output<Boolean>? = null

Adds EnrollmentRead permission to this Shared Access Account. It allows read access to enrollment data.

Link copied to clipboard
val enrollmentWrite: Output<Boolean>? = null

Adds EnrollmentWrite permission to this Shared Access Account. It allows write access to enrollment data.

Link copied to clipboard
val iothubDpsName: Output<String>? = null

The name of the IoT Hub Device Provisioning service to which this Shared Access Policy belongs. Changing this forces a new resource to be created.

Link copied to clipboard
val name: Output<String>? = null

Specifies the name of the IotHub Shared Access Policy resource. Changing this forces a new resource to be created.

Link copied to clipboard
val registrationRead: Output<Boolean>? = null

Adds RegistrationStatusRead permission to this Shared Access Account. It allows read access to device registrations.

Link copied to clipboard
val registrationWrite: Output<Boolean>? = null

Adds RegistrationStatusWrite permission to this Shared Access Account. It allows write access to device registrations.

Link copied to clipboard
val resourceGroupName: Output<String>? = null

The name of the resource group under which the IotHub Shared Access Policy resource has to be created. Changing this forces a new resource to be created.

Link copied to clipboard
val serviceConfig: Output<Boolean>? = null

Adds ServiceConfig permission to this Shared Access Account. It allows configuration of the Device Provisioning Service.