Documentation
¶
Index ¶
- type Account
- type AccountArgs
- type AccountArray
- type AccountArrayInput
- type AccountArrayOutput
- type AccountInput
- type AccountMap
- type AccountMapInput
- type AccountMapOutput
- type AccountOutput
- func (o AccountOutput) ApplicationId() pulumi.StringOutput
- func (o AccountOutput) BillingPlanId() pulumi.StringOutput
- func (AccountOutput) ElementType() reflect.Type
- func (o AccountOutput) Name() pulumi.StringOutput
- func (o AccountOutput) ResourceGroupName() pulumi.StringOutput
- func (o AccountOutput) Tags() pulumi.StringMapOutput
- func (o AccountOutput) ToAccountOutput() AccountOutput
- func (o AccountOutput) ToAccountOutputWithContext(ctx context.Context) AccountOutput
- type AccountState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct { pulumi.CustomResourceState // Customer owned application ID. Changing this forces a new Account to be created. ApplicationId pulumi.StringOutput `pulumi:"applicationId"` // Billing Plan Id. BillingPlanId pulumi.StringOutput `pulumi:"billingPlanId"` // Specifies the name of this Account. Changing this forces a new Account to be created. Name pulumi.StringOutput `pulumi:"name"` // Specifies the name of the Resource Group within which this Account should exist. Changing this forces a new Account to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // A mapping of tags which should be assigned to the Account. Tags pulumi.StringMapOutput `pulumi:"tags"` }
Manages a Graph Account.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core" "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/graph" "github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { exampleApplication, err := azuread.NewApplication(ctx, "exampleApplication", &azuread.ApplicationArgs{ DisplayName: pulumi.String("example-app"), }) if err != nil { return err } exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{ Location: pulumi.String("West Europe"), }) if err != nil { return err } _, err = graph.NewAccount(ctx, "exampleAccount", &graph.AccountArgs{ ResourceGroupName: exampleResourceGroup.Name, ApplicationId: exampleApplication.ApplicationId, Tags: pulumi.StringMap{ "environment": pulumi.String("Production"), }, }) if err != nil { return err } return nil }) }
```
## Import
An existing Account can be imported into Terraform using the `resource id`, e.g.
```sh
$ pulumi import azure:graph/account:Account example /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/example-resource-group/providers/Microsoft.GraphServices/accounts/account1
```
func GetAccount ¶
func GetAccount(ctx *pulumi.Context, name string, id pulumi.IDInput, state *AccountState, opts ...pulumi.ResourceOption) (*Account, error)
GetAccount gets an existing Account 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 NewAccount ¶
func NewAccount(ctx *pulumi.Context, name string, args *AccountArgs, opts ...pulumi.ResourceOption) (*Account, error)
NewAccount registers a new resource with the given unique name, arguments, and options.
func (*Account) ElementType ¶
func (*Account) ToAccountOutput ¶
func (i *Account) ToAccountOutput() AccountOutput
func (*Account) ToAccountOutputWithContext ¶
func (i *Account) ToAccountOutputWithContext(ctx context.Context) AccountOutput
type AccountArgs ¶
type AccountArgs struct { // Customer owned application ID. Changing this forces a new Account to be created. ApplicationId pulumi.StringInput // Specifies the name of this Account. Changing this forces a new Account to be created. Name pulumi.StringPtrInput // Specifies the name of the Resource Group within which this Account should exist. Changing this forces a new Account to be created. ResourceGroupName pulumi.StringInput // A mapping of tags which should be assigned to the Account. Tags pulumi.StringMapInput }
The set of arguments for constructing a Account resource.
func (AccountArgs) ElementType ¶
func (AccountArgs) ElementType() reflect.Type
type AccountArray ¶
type AccountArray []AccountInput
func (AccountArray) ElementType ¶
func (AccountArray) ElementType() reflect.Type
func (AccountArray) ToAccountArrayOutput ¶
func (i AccountArray) ToAccountArrayOutput() AccountArrayOutput
func (AccountArray) ToAccountArrayOutputWithContext ¶
func (i AccountArray) ToAccountArrayOutputWithContext(ctx context.Context) AccountArrayOutput
type AccountArrayInput ¶
type AccountArrayInput interface { pulumi.Input ToAccountArrayOutput() AccountArrayOutput ToAccountArrayOutputWithContext(context.Context) AccountArrayOutput }
AccountArrayInput is an input type that accepts AccountArray and AccountArrayOutput values. You can construct a concrete instance of `AccountArrayInput` via:
AccountArray{ AccountArgs{...} }
type AccountArrayOutput ¶
type AccountArrayOutput struct{ *pulumi.OutputState }
func (AccountArrayOutput) ElementType ¶
func (AccountArrayOutput) ElementType() reflect.Type
func (AccountArrayOutput) Index ¶
func (o AccountArrayOutput) Index(i pulumi.IntInput) AccountOutput
func (AccountArrayOutput) ToAccountArrayOutput ¶
func (o AccountArrayOutput) ToAccountArrayOutput() AccountArrayOutput
func (AccountArrayOutput) ToAccountArrayOutputWithContext ¶
func (o AccountArrayOutput) ToAccountArrayOutputWithContext(ctx context.Context) AccountArrayOutput
type AccountInput ¶
type AccountInput interface { pulumi.Input ToAccountOutput() AccountOutput ToAccountOutputWithContext(ctx context.Context) AccountOutput }
type AccountMap ¶
type AccountMap map[string]AccountInput
func (AccountMap) ElementType ¶
func (AccountMap) ElementType() reflect.Type
func (AccountMap) ToAccountMapOutput ¶
func (i AccountMap) ToAccountMapOutput() AccountMapOutput
func (AccountMap) ToAccountMapOutputWithContext ¶
func (i AccountMap) ToAccountMapOutputWithContext(ctx context.Context) AccountMapOutput
type AccountMapInput ¶
type AccountMapInput interface { pulumi.Input ToAccountMapOutput() AccountMapOutput ToAccountMapOutputWithContext(context.Context) AccountMapOutput }
AccountMapInput is an input type that accepts AccountMap and AccountMapOutput values. You can construct a concrete instance of `AccountMapInput` via:
AccountMap{ "key": AccountArgs{...} }
type AccountMapOutput ¶
type AccountMapOutput struct{ *pulumi.OutputState }
func (AccountMapOutput) ElementType ¶
func (AccountMapOutput) ElementType() reflect.Type
func (AccountMapOutput) MapIndex ¶
func (o AccountMapOutput) MapIndex(k pulumi.StringInput) AccountOutput
func (AccountMapOutput) ToAccountMapOutput ¶
func (o AccountMapOutput) ToAccountMapOutput() AccountMapOutput
func (AccountMapOutput) ToAccountMapOutputWithContext ¶
func (o AccountMapOutput) ToAccountMapOutputWithContext(ctx context.Context) AccountMapOutput
type AccountOutput ¶
type AccountOutput struct{ *pulumi.OutputState }
func (AccountOutput) ApplicationId ¶
func (o AccountOutput) ApplicationId() pulumi.StringOutput
Customer owned application ID. Changing this forces a new Account to be created.
func (AccountOutput) BillingPlanId ¶
func (o AccountOutput) BillingPlanId() pulumi.StringOutput
Billing Plan Id.
func (AccountOutput) ElementType ¶
func (AccountOutput) ElementType() reflect.Type
func (AccountOutput) Name ¶
func (o AccountOutput) Name() pulumi.StringOutput
Specifies the name of this Account. Changing this forces a new Account to be created.
func (AccountOutput) ResourceGroupName ¶
func (o AccountOutput) ResourceGroupName() pulumi.StringOutput
Specifies the name of the Resource Group within which this Account should exist. Changing this forces a new Account to be created.
func (AccountOutput) Tags ¶
func (o AccountOutput) Tags() pulumi.StringMapOutput
A mapping of tags which should be assigned to the Account.
func (AccountOutput) ToAccountOutput ¶
func (o AccountOutput) ToAccountOutput() AccountOutput
func (AccountOutput) ToAccountOutputWithContext ¶
func (o AccountOutput) ToAccountOutputWithContext(ctx context.Context) AccountOutput
type AccountState ¶
type AccountState struct { // Customer owned application ID. Changing this forces a new Account to be created. ApplicationId pulumi.StringPtrInput // Billing Plan Id. BillingPlanId pulumi.StringPtrInput // Specifies the name of this Account. Changing this forces a new Account to be created. Name pulumi.StringPtrInput // Specifies the name of the Resource Group within which this Account should exist. Changing this forces a new Account to be created. ResourceGroupName pulumi.StringPtrInput // A mapping of tags which should be assigned to the Account. Tags pulumi.StringMapInput }
func (AccountState) ElementType ¶
func (AccountState) ElementType() reflect.Type