armmsi

package
v6.8.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 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 FederatedIdentityCredential

type FederatedIdentityCredential struct {
	pulumi.CustomResourceState

	// Specifies the audience for this Federated Identity Credential.
	Audience pulumi.StringOutput `pulumi:"audience"`
	// Specifies the issuer of this Federated Identity Credential.
	Issuer pulumi.StringOutput `pulumi:"issuer"`
	// Specifies the name of this Federated Identity Credential. Changing this forces a new resource to be created.
	Name pulumi.StringOutput `pulumi:"name"`
	// Specifies parent ID of User Assigned Identity for this Federated Identity Credential. Changing this forces a new Federated Identity Credential to be created.
	ParentId pulumi.StringOutput `pulumi:"parentId"`
	// Specifies the name of the Resource Group within which this Federated Identity Credential should exist. Changing this forces a new Federated Identity Credential to be created.
	ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"`
	// Specifies the subject for this Federated Identity Credential.
	Subject pulumi.StringOutput `pulumi:"subject"`
}

Manages a Federated Identity Credential.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/armmsi"
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/authorization"
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
"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"),
			Location: pulumi.String("West Europe"),
		})
		if err != nil {
			return err
		}
		exampleUserAssignedIdentity, err := authorization.NewUserAssignedIdentity(ctx, "example", &authorization.UserAssignedIdentityArgs{
			Location:          example.Location,
			Name:              pulumi.String("example"),
			ResourceGroupName: example.Name,
		})
		if err != nil {
			return err
		}
		_, err = armmsi.NewFederatedIdentityCredential(ctx, "example", &armmsi.FederatedIdentityCredentialArgs{
			Name:              pulumi.String("example"),
			ResourceGroupName: example.Name,
			Audience:          pulumi.String("foo"),
			Issuer:            pulumi.String("https://foo"),
			ParentId:          exampleUserAssignedIdentity.ID(),
			Subject:           pulumi.String("foo"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

An existing Federated Identity Credential can be imported into Pulumi using the `resource id`, e.g.

```sh $ pulumi import azure:armmsi/federatedIdentityCredential:FederatedIdentityCredential example /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{parentIdentityName}/federatedIdentityCredentials/{resourceName} ```

func GetFederatedIdentityCredential

func GetFederatedIdentityCredential(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *FederatedIdentityCredentialState, opts ...pulumi.ResourceOption) (*FederatedIdentityCredential, error)

GetFederatedIdentityCredential gets an existing FederatedIdentityCredential 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 NewFederatedIdentityCredential

func NewFederatedIdentityCredential(ctx *pulumi.Context,
	name string, args *FederatedIdentityCredentialArgs, opts ...pulumi.ResourceOption) (*FederatedIdentityCredential, error)

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

func (*FederatedIdentityCredential) ElementType

func (*FederatedIdentityCredential) ElementType() reflect.Type

func (*FederatedIdentityCredential) ToFederatedIdentityCredentialOutput

func (i *FederatedIdentityCredential) ToFederatedIdentityCredentialOutput() FederatedIdentityCredentialOutput

func (*FederatedIdentityCredential) ToFederatedIdentityCredentialOutputWithContext

func (i *FederatedIdentityCredential) ToFederatedIdentityCredentialOutputWithContext(ctx context.Context) FederatedIdentityCredentialOutput

type FederatedIdentityCredentialArgs

type FederatedIdentityCredentialArgs struct {
	// Specifies the audience for this Federated Identity Credential.
	Audience pulumi.StringInput
	// Specifies the issuer of this Federated Identity Credential.
	Issuer pulumi.StringInput
	// Specifies the name of this Federated Identity Credential. Changing this forces a new resource to be created.
	Name pulumi.StringPtrInput
	// Specifies parent ID of User Assigned Identity for this Federated Identity Credential. Changing this forces a new Federated Identity Credential to be created.
	ParentId pulumi.StringInput
	// Specifies the name of the Resource Group within which this Federated Identity Credential should exist. Changing this forces a new Federated Identity Credential to be created.
	ResourceGroupName pulumi.StringInput
	// Specifies the subject for this Federated Identity Credential.
	Subject pulumi.StringInput
}

The set of arguments for constructing a FederatedIdentityCredential resource.

func (FederatedIdentityCredentialArgs) ElementType

type FederatedIdentityCredentialArray

type FederatedIdentityCredentialArray []FederatedIdentityCredentialInput

func (FederatedIdentityCredentialArray) ElementType

func (FederatedIdentityCredentialArray) ToFederatedIdentityCredentialArrayOutput

func (i FederatedIdentityCredentialArray) ToFederatedIdentityCredentialArrayOutput() FederatedIdentityCredentialArrayOutput

func (FederatedIdentityCredentialArray) ToFederatedIdentityCredentialArrayOutputWithContext

func (i FederatedIdentityCredentialArray) ToFederatedIdentityCredentialArrayOutputWithContext(ctx context.Context) FederatedIdentityCredentialArrayOutput

type FederatedIdentityCredentialArrayInput

type FederatedIdentityCredentialArrayInput interface {
	pulumi.Input

	ToFederatedIdentityCredentialArrayOutput() FederatedIdentityCredentialArrayOutput
	ToFederatedIdentityCredentialArrayOutputWithContext(context.Context) FederatedIdentityCredentialArrayOutput
}

FederatedIdentityCredentialArrayInput is an input type that accepts FederatedIdentityCredentialArray and FederatedIdentityCredentialArrayOutput values. You can construct a concrete instance of `FederatedIdentityCredentialArrayInput` via:

FederatedIdentityCredentialArray{ FederatedIdentityCredentialArgs{...} }

type FederatedIdentityCredentialArrayOutput

type FederatedIdentityCredentialArrayOutput struct{ *pulumi.OutputState }

func (FederatedIdentityCredentialArrayOutput) ElementType

func (FederatedIdentityCredentialArrayOutput) Index

func (FederatedIdentityCredentialArrayOutput) ToFederatedIdentityCredentialArrayOutput

func (o FederatedIdentityCredentialArrayOutput) ToFederatedIdentityCredentialArrayOutput() FederatedIdentityCredentialArrayOutput

func (FederatedIdentityCredentialArrayOutput) ToFederatedIdentityCredentialArrayOutputWithContext

func (o FederatedIdentityCredentialArrayOutput) ToFederatedIdentityCredentialArrayOutputWithContext(ctx context.Context) FederatedIdentityCredentialArrayOutput

type FederatedIdentityCredentialInput

type FederatedIdentityCredentialInput interface {
	pulumi.Input

	ToFederatedIdentityCredentialOutput() FederatedIdentityCredentialOutput
	ToFederatedIdentityCredentialOutputWithContext(ctx context.Context) FederatedIdentityCredentialOutput
}

type FederatedIdentityCredentialMap

type FederatedIdentityCredentialMap map[string]FederatedIdentityCredentialInput

func (FederatedIdentityCredentialMap) ElementType

func (FederatedIdentityCredentialMap) ToFederatedIdentityCredentialMapOutput

func (i FederatedIdentityCredentialMap) ToFederatedIdentityCredentialMapOutput() FederatedIdentityCredentialMapOutput

func (FederatedIdentityCredentialMap) ToFederatedIdentityCredentialMapOutputWithContext

func (i FederatedIdentityCredentialMap) ToFederatedIdentityCredentialMapOutputWithContext(ctx context.Context) FederatedIdentityCredentialMapOutput

type FederatedIdentityCredentialMapInput

type FederatedIdentityCredentialMapInput interface {
	pulumi.Input

	ToFederatedIdentityCredentialMapOutput() FederatedIdentityCredentialMapOutput
	ToFederatedIdentityCredentialMapOutputWithContext(context.Context) FederatedIdentityCredentialMapOutput
}

FederatedIdentityCredentialMapInput is an input type that accepts FederatedIdentityCredentialMap and FederatedIdentityCredentialMapOutput values. You can construct a concrete instance of `FederatedIdentityCredentialMapInput` via:

FederatedIdentityCredentialMap{ "key": FederatedIdentityCredentialArgs{...} }

type FederatedIdentityCredentialMapOutput

type FederatedIdentityCredentialMapOutput struct{ *pulumi.OutputState }

func (FederatedIdentityCredentialMapOutput) ElementType

func (FederatedIdentityCredentialMapOutput) MapIndex

func (FederatedIdentityCredentialMapOutput) ToFederatedIdentityCredentialMapOutput

func (o FederatedIdentityCredentialMapOutput) ToFederatedIdentityCredentialMapOutput() FederatedIdentityCredentialMapOutput

func (FederatedIdentityCredentialMapOutput) ToFederatedIdentityCredentialMapOutputWithContext

func (o FederatedIdentityCredentialMapOutput) ToFederatedIdentityCredentialMapOutputWithContext(ctx context.Context) FederatedIdentityCredentialMapOutput

type FederatedIdentityCredentialOutput

type FederatedIdentityCredentialOutput struct{ *pulumi.OutputState }

func (FederatedIdentityCredentialOutput) Audience

Specifies the audience for this Federated Identity Credential.

func (FederatedIdentityCredentialOutput) ElementType

func (FederatedIdentityCredentialOutput) Issuer

Specifies the issuer of this Federated Identity Credential.

func (FederatedIdentityCredentialOutput) Name

Specifies the name of this Federated Identity Credential. Changing this forces a new resource to be created.

func (FederatedIdentityCredentialOutput) ParentId

Specifies parent ID of User Assigned Identity for this Federated Identity Credential. Changing this forces a new Federated Identity Credential to be created.

func (FederatedIdentityCredentialOutput) ResourceGroupName

Specifies the name of the Resource Group within which this Federated Identity Credential should exist. Changing this forces a new Federated Identity Credential to be created.

func (FederatedIdentityCredentialOutput) Subject

Specifies the subject for this Federated Identity Credential.

func (FederatedIdentityCredentialOutput) ToFederatedIdentityCredentialOutput

func (o FederatedIdentityCredentialOutput) ToFederatedIdentityCredentialOutput() FederatedIdentityCredentialOutput

func (FederatedIdentityCredentialOutput) ToFederatedIdentityCredentialOutputWithContext

func (o FederatedIdentityCredentialOutput) ToFederatedIdentityCredentialOutputWithContext(ctx context.Context) FederatedIdentityCredentialOutput

type FederatedIdentityCredentialState

type FederatedIdentityCredentialState struct {
	// Specifies the audience for this Federated Identity Credential.
	Audience pulumi.StringPtrInput
	// Specifies the issuer of this Federated Identity Credential.
	Issuer pulumi.StringPtrInput
	// Specifies the name of this Federated Identity Credential. Changing this forces a new resource to be created.
	Name pulumi.StringPtrInput
	// Specifies parent ID of User Assigned Identity for this Federated Identity Credential. Changing this forces a new Federated Identity Credential to be created.
	ParentId pulumi.StringPtrInput
	// Specifies the name of the Resource Group within which this Federated Identity Credential should exist. Changing this forces a new Federated Identity Credential to be created.
	ResourceGroupName pulumi.StringPtrInput
	// Specifies the subject for this Federated Identity Credential.
	Subject pulumi.StringPtrInput
}

func (FederatedIdentityCredentialState) ElementType

Jump to

Keyboard shortcuts

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