ProviderArgs

data class ProviderArgs(val location: Output<String>? = null, val name: Output<String>? = null, val openEnclavePolicyBase64: Output<String>? = null, val policySigningCertificateData: Output<String>? = null, val resourceGroupName: Output<String>? = null, val sevSnpPolicyBase64: Output<String>? = null, val sgxEnclavePolicyBase64: Output<String>? = null, val tags: Output<Map<String, String>>? = null, val tpmPolicyBase64: Output<String>? = null) : ConvertibleToJava<ProviderArgs>

Manages an Attestation Provider.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
import * as std from "@pulumi/std";
const example = new azure.core.ResourceGroup("example", {
name: "example-resources",
location: "West Europe",
});
const exampleProvider = new azure.attestation.Provider("example", {
name: "exampleprovider",
resourceGroupName: example.name,
location: example.location,
policySigningCertificateData: std.file({
input: "./example/cert.pem",
}).then(invoke => invoke.result),
});
import pulumi
import pulumi_azure as azure
import pulumi_std as std
example = azure.core.ResourceGroup("example",
name="example-resources",
location="West Europe")
example_provider = azure.attestation.Provider("example",
name="exampleprovider",
resource_group_name=example.name,
location=example.location,
policy_signing_certificate_data=std.file(input="./example/cert.pem").result)
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
using Std = Pulumi.Std;
return await Deployment.RunAsync(() =>
{
var example = new Azure.Core.ResourceGroup("example", new()
{
Name = "example-resources",
Location = "West Europe",
});
var exampleProvider = new Azure.Attestation.Provider("example", new()
{
Name = "exampleprovider",
ResourceGroupName = example.Name,
Location = example.Location,
PolicySigningCertificateData = Std.File.Invoke(new()
{
Input = "./example/cert.pem",
}).Apply(invoke => invoke.Result),
});
});
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/attestation"
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
"github.com/pulumi/pulumi-std/sdk/go/std"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
Name: pulumi.String("example-resources"),
Location: pulumi.String("West Europe"),
})
if err != nil {
return err
}
invokeFile, err := std.File(ctx, &std.FileArgs{
Input: "./example/cert.pem",
}, nil)
if err != nil {
return err
}
_, err = attestation.NewProvider(ctx, "example", &attestation.ProviderArgs{
Name: pulumi.String("exampleprovider"),
ResourceGroupName: example.Name,
Location: example.Location,
PolicySigningCertificateData: pulumi.String(invokeFile.Result),
})
if err != nil {
return err
}
return nil
})
}
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.attestation.Provider;
import com.pulumi.azure.attestation.ProviderArgs;
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 ResourceGroup("example", ResourceGroupArgs.builder()
.name("example-resources")
.location("West Europe")
.build());
var exampleProvider = new Provider("exampleProvider", ProviderArgs.builder()
.name("exampleprovider")
.resourceGroupName(example.name())
.location(example.location())
.policySigningCertificateData(StdFunctions.file(FileArgs.builder()
.input("./example/cert.pem")
.build()).result())
.build());
}
}
resources:
example:
type: azure:core:ResourceGroup
properties:
name: example-resources
location: West Europe
exampleProvider:
type: azure:attestation:Provider
name: example
properties:
name: exampleprovider
resourceGroupName: ${example.name}
location: ${example.location}
policySigningCertificateData:
fn::invoke:
function: std:file
arguments:
input: ./example/cert.pem
return: result

Import

Attestation Providers can be imported using the resource id, e.g.

$ pulumi import azure:attestation/provider:Provider example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Attestation/attestationProviders/provider1

Constructors

Link copied to clipboard
constructor(location: Output<String>? = null, name: Output<String>? = null, openEnclavePolicyBase64: Output<String>? = null, policySigningCertificateData: Output<String>? = null, resourceGroupName: Output<String>? = null, sevSnpPolicyBase64: Output<String>? = null, sgxEnclavePolicyBase64: Output<String>? = null, tags: Output<Map<String, String>>? = null, tpmPolicyBase64: Output<String>? = null)

Properties

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

The Azure Region where the Attestation Provider should exist. Changing this forces a new resource to be created.

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

The name which should be used for this Attestation Provider. Changing this forces a new resource to be created.

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

Specifies the base64 URI Encoded RFC 7519 JWT that should be used for the Attestation Policy.

Link copied to clipboard

A valid X.509 certificate (Section 4 of RFC4648). Changing this forces a new resource to be created.

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

The name of the Resource Group where the attestation provider should exist. Changing this forces a new resource to be created.

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

Specifies the base64 URI Encoded RFC 7519 JWT that should be used for the Attestation Policy.

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

Specifies the base64 URI Encoded RFC 7519 JWT that should be used for the Attestation Policy.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

A mapping of tags which should be assigned to the Attestation Provider.

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

Specifies the base64 URI Encoded RFC 7519 JWT that should be used for the Attestation Policy.

Functions

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