attestation

package
v6.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2024 License: Apache-2.0 Imports: 7 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) 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"`
	// 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 (

"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
	})
}

```

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

func (o ProviderOutput) AttestationUri() pulumi.StringOutput

The URI of the Attestation Service.

func (ProviderOutput) ElementType

func (ProviderOutput) ElementType() reflect.Type

func (ProviderOutput) Location

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

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

func (ProviderOutput) OpenEnclavePolicyBase64

func (o ProviderOutput) OpenEnclavePolicyBase64() pulumi.StringPtrOutput

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

func (ProviderOutput) PolicySigningCertificateData

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

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

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

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

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

func (ProviderOutput) ToProviderOutput

func (o ProviderOutput) ToProviderOutput() ProviderOutput

func (ProviderOutput) ToProviderOutputWithContext

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

func (ProviderOutput) TpmPolicyBase64

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

func (o ProviderOutput) TrustModel() pulumi.StringOutput

Trust model used for the Attestation Service.

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