attestation

package
v5.55.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 3, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LookupProviderArgs

type LookupProviderArgs struct {
	// The name of this Attestation Provider.
	Name string `pulumi:"name"`
	// The name of the Resource Group where the Attestation Provider exists.
	ResourceGroupName string `pulumi:"resourceGroupName"`
}

A collection of arguments for invoking getProvider.

type LookupProviderOutputArgs

type LookupProviderOutputArgs struct {
	// The name of this Attestation Provider.
	Name pulumi.StringInput `pulumi:"name"`
	// The name of the Resource Group where the Attestation Provider exists.
	ResourceGroupName pulumi.StringInput `pulumi:"resourceGroupName"`
}

A collection of arguments for invoking getProvider.

func (LookupProviderOutputArgs) ElementType

func (LookupProviderOutputArgs) ElementType() reflect.Type

type LookupProviderResult

type LookupProviderResult struct {
	// The (Endpoint|URI) of the Attestation Service.
	AttestationUri string `pulumi:"attestationUri"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The Azure Region where the Attestation Provider exists.
	Location          string `pulumi:"location"`
	Name              string `pulumi:"name"`
	ResourceGroupName string `pulumi:"resourceGroupName"`
	// A mapping of tags assigned to the Attestation Provider.
	Tags map[string]string `pulumi:"tags"`
	// Trust model used for the Attestation Service.
	TrustModel string `pulumi:"trustModel"`
}

A collection of values returned by getProvider.

func LookupProvider

func LookupProvider(ctx *pulumi.Context, args *LookupProviderArgs, opts ...pulumi.InvokeOption) (*LookupProviderResult, error)

Use this data source to access information about an existing Attestation Provider.

type LookupProviderResultOutput

type LookupProviderResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getProvider.

func (LookupProviderResultOutput) AttestationUri

func (o LookupProviderResultOutput) AttestationUri() pulumi.StringOutput

The (Endpoint|URI) of the Attestation Service.

func (LookupProviderResultOutput) ElementType

func (LookupProviderResultOutput) ElementType() reflect.Type

func (LookupProviderResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (LookupProviderResultOutput) Location

The Azure Region where the Attestation Provider exists.

func (LookupProviderResultOutput) Name

func (LookupProviderResultOutput) ResourceGroupName

func (o LookupProviderResultOutput) ResourceGroupName() pulumi.StringOutput

func (LookupProviderResultOutput) Tags

A mapping of tags assigned to the Attestation Provider.

func (LookupProviderResultOutput) ToLookupProviderResultOutput

func (o LookupProviderResultOutput) ToLookupProviderResultOutput() LookupProviderResultOutput

func (LookupProviderResultOutput) ToLookupProviderResultOutputWithContext

func (o LookupProviderResultOutput) ToLookupProviderResultOutputWithContext(ctx context.Context) LookupProviderResultOutput

func (LookupProviderResultOutput) ToOutput added in v5.52.0

func (LookupProviderResultOutput) TrustModel

Trust model used for the Attestation Service.

type Provider

type Provider struct {
	pulumi.CustomResourceState

	// The URI of the Attestation Service.
	AttestationUri pulumi.StringOutput `pulumi:"attestationUri"`
	// The Azure Region where the Attestation Provider should exist. Changing this forces a new resource to be created.
	Location pulumi.StringOutput `pulumi:"location"`
	// The name which should be used for this Attestation Provider. Changing this forces a new resource to be created.
	Name pulumi.StringOutput `pulumi:"name"`
	// Specifies the base64 URI Encoded RFC 7519 JWT that should be used for the Attestation Policy.
	OpenEnclavePolicyBase64 pulumi.StringPtrOutput `pulumi:"openEnclavePolicyBase64"`
	// Deprecated: 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.
	Policies ProviderPolicyArrayOutput `pulumi:"policies"`
	// 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 `policySigningCertificateData` argument contains more than one valid X.509 certificate only the first certificate will be used.
	PolicySigningCertificateData pulumi.StringPtrOutput `pulumi:"policySigningCertificateData"`
	// The name of the Resource Group where the attestation provider should exist. Changing this forces a new resource to be created.
	ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"`
	// 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).
	SevSnpPolicyBase64 pulumi.StringPtrOutput `pulumi:"sevSnpPolicyBase64"`
	// Specifies the base64 URI Encoded RFC 7519 JWT that should be used for the Attestation Policy.
	SgxEnclavePolicyBase64 pulumi.StringPtrOutput `pulumi:"sgxEnclavePolicyBase64"`
	// A mapping of tags which should be assigned to the Attestation Provider.
	Tags pulumi.StringMapOutput `pulumi:"tags"`
	// Specifies the base64 URI Encoded RFC 7519 JWT that should be used for the Attestation Policy.
	TpmPolicyBase64 pulumi.StringPtrOutput `pulumi:"tpmPolicyBase64"`
	// Trust model used for the Attestation Service.
	TrustModel pulumi.StringOutput `pulumi:"trustModel"`
}

Manages an Attestation Provider.

## Example Usage

```go package main

import (

"os"

"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/attestation"
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func readFileOrPanic(path string) pulumi.StringPtrInput {
	data, err := os.ReadFile(path)
	if err != nil {
		panic(err.Error())
	}
	return pulumi.String(string(data))
}

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
			Location: pulumi.String("West Europe"),
		})
		if err != nil {
			return err
		}
		_, err = attestation.NewProvider(ctx, "exampleProvider", &attestation.ProviderArgs{
			ResourceGroupName:            exampleResourceGroup.Name,
			Location:                     exampleResourceGroup.Location,
			PolicySigningCertificateData: readFileOrPanic("./example/cert.pem"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## 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

```

func GetProvider

func GetProvider(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ProviderState, opts ...pulumi.ResourceOption) (*Provider, error)

GetProvider gets an existing Provider resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewProvider

func NewProvider(ctx *pulumi.Context,
	name string, args *ProviderArgs, opts ...pulumi.ResourceOption) (*Provider, error)

NewProvider registers a new resource with the given unique name, arguments, and options.

func (*Provider) ElementType

func (*Provider) ElementType() reflect.Type

func (*Provider) ToOutput added in v5.52.0

func (i *Provider) ToOutput(ctx context.Context) pulumix.Output[*Provider]

func (*Provider) ToProviderOutput

func (i *Provider) ToProviderOutput() ProviderOutput

func (*Provider) ToProviderOutputWithContext

func (i *Provider) ToProviderOutputWithContext(ctx context.Context) ProviderOutput

type ProviderArgs

type ProviderArgs struct {
	// The Azure Region where the Attestation Provider should exist. Changing this forces a new resource to be created.
	Location pulumi.StringPtrInput
	// The name which should be used for this Attestation Provider. Changing this forces a new resource to be created.
	Name pulumi.StringPtrInput
	// Specifies the base64 URI Encoded RFC 7519 JWT that should be used for the Attestation Policy.
	OpenEnclavePolicyBase64 pulumi.StringPtrInput
	// Deprecated: 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.
	Policies ProviderPolicyArrayInput
	// 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 `policySigningCertificateData` argument contains more than one valid X.509 certificate only the first certificate will be used.
	PolicySigningCertificateData pulumi.StringPtrInput
	// The name of the Resource Group where the attestation provider should exist. Changing this forces a new resource to be created.
	ResourceGroupName pulumi.StringInput
	// 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).
	SevSnpPolicyBase64 pulumi.StringPtrInput
	// Specifies the base64 URI Encoded RFC 7519 JWT that should be used for the Attestation Policy.
	SgxEnclavePolicyBase64 pulumi.StringPtrInput
	// A mapping of tags which should be assigned to the Attestation Provider.
	Tags pulumi.StringMapInput
	// Specifies the base64 URI Encoded RFC 7519 JWT that should be used for the Attestation Policy.
	TpmPolicyBase64 pulumi.StringPtrInput
}

The set of arguments for constructing a Provider resource.

func (ProviderArgs) ElementType

func (ProviderArgs) ElementType() reflect.Type

type ProviderArray

type ProviderArray []ProviderInput

func (ProviderArray) ElementType

func (ProviderArray) ElementType() reflect.Type

func (ProviderArray) ToOutput added in v5.52.0

func (i ProviderArray) ToOutput(ctx context.Context) pulumix.Output[[]*Provider]

func (ProviderArray) ToProviderArrayOutput

func (i ProviderArray) ToProviderArrayOutput() ProviderArrayOutput

func (ProviderArray) ToProviderArrayOutputWithContext

func (i ProviderArray) ToProviderArrayOutputWithContext(ctx context.Context) ProviderArrayOutput

type ProviderArrayInput

type ProviderArrayInput interface {
	pulumi.Input

	ToProviderArrayOutput() ProviderArrayOutput
	ToProviderArrayOutputWithContext(context.Context) ProviderArrayOutput
}

ProviderArrayInput is an input type that accepts ProviderArray and ProviderArrayOutput values. You can construct a concrete instance of `ProviderArrayInput` via:

ProviderArray{ ProviderArgs{...} }

type ProviderArrayOutput

type ProviderArrayOutput struct{ *pulumi.OutputState }

func (ProviderArrayOutput) ElementType

func (ProviderArrayOutput) ElementType() reflect.Type

func (ProviderArrayOutput) Index

func (ProviderArrayOutput) ToOutput added in v5.52.0

func (ProviderArrayOutput) ToProviderArrayOutput

func (o ProviderArrayOutput) ToProviderArrayOutput() ProviderArrayOutput

func (ProviderArrayOutput) ToProviderArrayOutputWithContext

func (o ProviderArrayOutput) ToProviderArrayOutputWithContext(ctx context.Context) ProviderArrayOutput

type ProviderInput

type ProviderInput interface {
	pulumi.Input

	ToProviderOutput() ProviderOutput
	ToProviderOutputWithContext(ctx context.Context) ProviderOutput
}

type ProviderMap

type ProviderMap map[string]ProviderInput

func (ProviderMap) ElementType

func (ProviderMap) ElementType() reflect.Type

func (ProviderMap) ToOutput added in v5.52.0

func (i ProviderMap) ToOutput(ctx context.Context) pulumix.Output[map[string]*Provider]

func (ProviderMap) ToProviderMapOutput

func (i ProviderMap) ToProviderMapOutput() ProviderMapOutput

func (ProviderMap) ToProviderMapOutputWithContext

func (i ProviderMap) ToProviderMapOutputWithContext(ctx context.Context) ProviderMapOutput

type ProviderMapInput

type ProviderMapInput interface {
	pulumi.Input

	ToProviderMapOutput() ProviderMapOutput
	ToProviderMapOutputWithContext(context.Context) ProviderMapOutput
}

ProviderMapInput is an input type that accepts ProviderMap and ProviderMapOutput values. You can construct a concrete instance of `ProviderMapInput` via:

ProviderMap{ "key": ProviderArgs{...} }

type ProviderMapOutput

type ProviderMapOutput struct{ *pulumi.OutputState }

func (ProviderMapOutput) ElementType

func (ProviderMapOutput) ElementType() reflect.Type

func (ProviderMapOutput) MapIndex

func (ProviderMapOutput) ToOutput added in v5.52.0

func (ProviderMapOutput) ToProviderMapOutput

func (o ProviderMapOutput) ToProviderMapOutput() ProviderMapOutput

func (ProviderMapOutput) ToProviderMapOutputWithContext

func (o ProviderMapOutput) ToProviderMapOutputWithContext(ctx context.Context) ProviderMapOutput

type ProviderOutput

type ProviderOutput struct{ *pulumi.OutputState }

func (ProviderOutput) AttestationUri added in v5.5.0

func (o ProviderOutput) AttestationUri() pulumi.StringOutput

The URI of the Attestation Service.

func (ProviderOutput) ElementType

func (ProviderOutput) ElementType() reflect.Type

func (ProviderOutput) Location added in v5.5.0

func (o ProviderOutput) Location() pulumi.StringOutput

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

func (ProviderOutput) Name added in v5.5.0

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

func (ProviderOutput) OpenEnclavePolicyBase64 added in v5.43.0

func (o ProviderOutput) OpenEnclavePolicyBase64() pulumi.StringPtrOutput

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

func (ProviderOutput) Policies deprecated added in v5.42.0

Deprecated: 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.

func (ProviderOutput) PolicySigningCertificateData added in v5.5.0

func (o ProviderOutput) PolicySigningCertificateData() pulumi.StringPtrOutput

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 `policySigningCertificateData` argument contains more than one valid X.509 certificate only the first certificate will be used.

func (ProviderOutput) ResourceGroupName added in v5.5.0

func (o ProviderOutput) ResourceGroupName() pulumi.StringOutput

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

func (ProviderOutput) SevSnpPolicyBase64 added in v5.45.0

func (o ProviderOutput) SevSnpPolicyBase64() pulumi.StringPtrOutput

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).

func (ProviderOutput) SgxEnclavePolicyBase64 added in v5.43.0

func (o ProviderOutput) SgxEnclavePolicyBase64() pulumi.StringPtrOutput

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

func (ProviderOutput) Tags added in v5.5.0

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

func (ProviderOutput) ToOutput added in v5.52.0

func (ProviderOutput) ToProviderOutput

func (o ProviderOutput) ToProviderOutput() ProviderOutput

func (ProviderOutput) ToProviderOutputWithContext

func (o ProviderOutput) ToProviderOutputWithContext(ctx context.Context) ProviderOutput

func (ProviderOutput) TpmPolicyBase64 added in v5.43.0

func (o ProviderOutput) TpmPolicyBase64() pulumi.StringPtrOutput

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

func (ProviderOutput) TrustModel added in v5.5.0

func (o ProviderOutput) TrustModel() pulumi.StringOutput

Trust model used for the Attestation Service.

type ProviderPolicy added in v5.42.0

type ProviderPolicy struct {
	Data            *string `pulumi:"data"`
	EnvironmentType *string `pulumi:"environmentType"`
}

type ProviderPolicyArgs added in v5.42.0

type ProviderPolicyArgs struct {
	Data            pulumi.StringPtrInput `pulumi:"data"`
	EnvironmentType pulumi.StringPtrInput `pulumi:"environmentType"`
}

func (ProviderPolicyArgs) ElementType added in v5.42.0

func (ProviderPolicyArgs) ElementType() reflect.Type

func (ProviderPolicyArgs) ToOutput added in v5.52.0

func (ProviderPolicyArgs) ToProviderPolicyOutput added in v5.42.0

func (i ProviderPolicyArgs) ToProviderPolicyOutput() ProviderPolicyOutput

func (ProviderPolicyArgs) ToProviderPolicyOutputWithContext added in v5.42.0

func (i ProviderPolicyArgs) ToProviderPolicyOutputWithContext(ctx context.Context) ProviderPolicyOutput

type ProviderPolicyArray added in v5.42.0

type ProviderPolicyArray []ProviderPolicyInput

func (ProviderPolicyArray) ElementType added in v5.42.0

func (ProviderPolicyArray) ElementType() reflect.Type

func (ProviderPolicyArray) ToOutput added in v5.52.0

func (ProviderPolicyArray) ToProviderPolicyArrayOutput added in v5.42.0

func (i ProviderPolicyArray) ToProviderPolicyArrayOutput() ProviderPolicyArrayOutput

func (ProviderPolicyArray) ToProviderPolicyArrayOutputWithContext added in v5.42.0

func (i ProviderPolicyArray) ToProviderPolicyArrayOutputWithContext(ctx context.Context) ProviderPolicyArrayOutput

type ProviderPolicyArrayInput added in v5.42.0

type ProviderPolicyArrayInput interface {
	pulumi.Input

	ToProviderPolicyArrayOutput() ProviderPolicyArrayOutput
	ToProviderPolicyArrayOutputWithContext(context.Context) ProviderPolicyArrayOutput
}

ProviderPolicyArrayInput is an input type that accepts ProviderPolicyArray and ProviderPolicyArrayOutput values. You can construct a concrete instance of `ProviderPolicyArrayInput` via:

ProviderPolicyArray{ ProviderPolicyArgs{...} }

type ProviderPolicyArrayOutput added in v5.42.0

type ProviderPolicyArrayOutput struct{ *pulumi.OutputState }

func (ProviderPolicyArrayOutput) ElementType added in v5.42.0

func (ProviderPolicyArrayOutput) ElementType() reflect.Type

func (ProviderPolicyArrayOutput) Index added in v5.42.0

func (ProviderPolicyArrayOutput) ToOutput added in v5.52.0

func (ProviderPolicyArrayOutput) ToProviderPolicyArrayOutput added in v5.42.0

func (o ProviderPolicyArrayOutput) ToProviderPolicyArrayOutput() ProviderPolicyArrayOutput

func (ProviderPolicyArrayOutput) ToProviderPolicyArrayOutputWithContext added in v5.42.0

func (o ProviderPolicyArrayOutput) ToProviderPolicyArrayOutputWithContext(ctx context.Context) ProviderPolicyArrayOutput

type ProviderPolicyInput added in v5.42.0

type ProviderPolicyInput interface {
	pulumi.Input

	ToProviderPolicyOutput() ProviderPolicyOutput
	ToProviderPolicyOutputWithContext(context.Context) ProviderPolicyOutput
}

ProviderPolicyInput is an input type that accepts ProviderPolicyArgs and ProviderPolicyOutput values. You can construct a concrete instance of `ProviderPolicyInput` via:

ProviderPolicyArgs{...}

type ProviderPolicyOutput added in v5.42.0

type ProviderPolicyOutput struct{ *pulumi.OutputState }

func (ProviderPolicyOutput) Data added in v5.42.0

func (ProviderPolicyOutput) ElementType added in v5.42.0

func (ProviderPolicyOutput) ElementType() reflect.Type

func (ProviderPolicyOutput) EnvironmentType added in v5.42.0

func (o ProviderPolicyOutput) EnvironmentType() pulumi.StringPtrOutput

func (ProviderPolicyOutput) ToOutput added in v5.52.0

func (ProviderPolicyOutput) ToProviderPolicyOutput added in v5.42.0

func (o ProviderPolicyOutput) ToProviderPolicyOutput() ProviderPolicyOutput

func (ProviderPolicyOutput) ToProviderPolicyOutputWithContext added in v5.42.0

func (o ProviderPolicyOutput) ToProviderPolicyOutputWithContext(ctx context.Context) ProviderPolicyOutput

type ProviderState

type ProviderState struct {
	// The URI of the Attestation Service.
	AttestationUri pulumi.StringPtrInput
	// The Azure Region where the Attestation Provider should exist. Changing this forces a new resource to be created.
	Location pulumi.StringPtrInput
	// The name which should be used for this Attestation Provider. Changing this forces a new resource to be created.
	Name pulumi.StringPtrInput
	// Specifies the base64 URI Encoded RFC 7519 JWT that should be used for the Attestation Policy.
	OpenEnclavePolicyBase64 pulumi.StringPtrInput
	// Deprecated: 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.
	Policies ProviderPolicyArrayInput
	// 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 `policySigningCertificateData` argument contains more than one valid X.509 certificate only the first certificate will be used.
	PolicySigningCertificateData pulumi.StringPtrInput
	// The name of the Resource Group where the attestation provider should exist. Changing this forces a new resource to be created.
	ResourceGroupName pulumi.StringPtrInput
	// 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).
	SevSnpPolicyBase64 pulumi.StringPtrInput
	// Specifies the base64 URI Encoded RFC 7519 JWT that should be used for the Attestation Policy.
	SgxEnclavePolicyBase64 pulumi.StringPtrInput
	// A mapping of tags which should be assigned to the Attestation Provider.
	Tags pulumi.StringMapInput
	// Specifies the base64 URI Encoded RFC 7519 JWT that should be used for the Attestation Policy.
	TpmPolicyBase64 pulumi.StringPtrInput
	// Trust model used for the Attestation Service.
	TrustModel pulumi.StringPtrInput
}

func (ProviderState) ElementType

func (ProviderState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL