attestation

package
v5.12.0 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2022 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"`
	// A valid X.509 certificate (Section 4 of [RFC4648](https://tools.ietf.org/html/rfc4648)). Changing this forces a new resource to be created.
	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"`
	// A mapping of tags which should be assigned to the Attestation Provider.
	Tags pulumi.StringMapOutput `pulumi:"tags"`
	// Trust model used for the Attestation Service.
	TrustModel pulumi.StringOutput `pulumi:"trustModel"`
}

Manages a Attestation Provider.

## Example Usage

```go package main

import (

"io/ioutil"

"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 := ioutil.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) 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
	// A valid X.509 certificate (Section 4 of [RFC4648](https://tools.ietf.org/html/rfc4648)). Changing this forces a new resource to be created.
	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
	// A mapping of tags which should be assigned to the Attestation Provider.
	Tags pulumi.StringMapInput
}

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

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) Tags added in v5.5.0

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) TrustModel added in v5.5.0

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
	// A valid X.509 certificate (Section 4 of [RFC4648](https://tools.ietf.org/html/rfc4648)). Changing this forces a new resource to be created.
	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
	// A mapping of tags which should be assigned to the Attestation Provider.
	Tags pulumi.StringMapInput
	// 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