Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.attestation.kotlin
import com.pulumi.azure.attestation.ProviderArgs.builder
import com.pulumi.azure.attestation.kotlin.inputs.ProviderPolicyArgs
import com.pulumi.azure.attestation.kotlin.inputs.ProviderPolicyArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Deprecated
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName
/**
* Manages an Attestation Provider.
* ## Example Usage
*
* ```typescript
* 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),
* });
* ```
* ```python
* 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)
* ```
* ```csharp
* 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),
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/attestation"
* "github.com/pulumi/pulumi-azure/sdk/v5/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
* })
* }
* ```
* ```java
* 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());
* }
* }
* ```
* ```yaml
* 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.
* ```sh
* $ pulumi import azure:attestation/provider:Provider example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Attestation/attestationProviders/provider1
* ```
* @property location The Azure Region where the Attestation Provider should exist. Changing this forces a new resource to be created.
* @property name The name which should be used for this Attestation Provider. Changing this forces a new resource to be created.
* @property openEnclavePolicyBase64 Specifies the base64 URI Encoded RFC 7519 JWT that should be used for the Attestation Policy.
* @property policies
* @property policySigningCertificateData A valid X.509 certificate (Section 4 of [RFC4648](https://tools.ietf.org/html/rfc4648)). Changing this forces a new resource to be created.
* > **NOTE:** If the `policy_signing_certificate_data` argument contains more than one valid X.509 certificate only the first certificate will be used.
* @property resourceGroupName The name of the Resource Group where the attestation provider should exist. Changing this forces a new resource to be created.
* @property sevSnpPolicyBase64 Specifies the base64 URI Encoded RFC 7519 JWT that should be used for the Attestation Policy.
* > [More information on the JWT Policies can be found in this article on `learn.microsoft.com`](https://learn.microsoft.com/azure/attestation/author-sign-policy).
* @property sgxEnclavePolicyBase64 Specifies the base64 URI Encoded RFC 7519 JWT that should be used for the Attestation Policy.
* @property tags A mapping of tags which should be assigned to the Attestation Provider.
* @property tpmPolicyBase64 Specifies the base64 URI Encoded RFC 7519 JWT that should be used for the Attestation Policy.
*/
public data class ProviderArgs(
public val location: Output? = null,
public val name: Output? = null,
public val openEnclavePolicyBase64: Output? = null,
@Deprecated(
message = """
This field is no longer used and will be removed in v4.0 of the Azure Provider - use
`open_enclave_policy_base64`, `sgx_enclave_policy_base64`, `tpm_policy_base64` and
`sev_snp_policy_base64` instead.
""",
)
public val policies: Output>? = null,
public val policySigningCertificateData: Output? = null,
public val resourceGroupName: Output? = null,
public val sevSnpPolicyBase64: Output? = null,
public val sgxEnclavePolicyBase64: Output? = null,
public val tags: Output