Documentation ¶
Index ¶
- type ServicesAccount
- type ServicesAccountArgs
- type ServicesAccountArray
- type ServicesAccountArrayInput
- type ServicesAccountArrayOutput
- func (ServicesAccountArrayOutput) ElementType() reflect.Type
- func (o ServicesAccountArrayOutput) Index(i pulumi.IntInput) ServicesAccountOutput
- func (o ServicesAccountArrayOutput) ToServicesAccountArrayOutput() ServicesAccountArrayOutput
- func (o ServicesAccountArrayOutput) ToServicesAccountArrayOutputWithContext(ctx context.Context) ServicesAccountArrayOutput
- type ServicesAccountInput
- type ServicesAccountMap
- type ServicesAccountMapInput
- type ServicesAccountMapOutput
- func (ServicesAccountMapOutput) ElementType() reflect.Type
- func (o ServicesAccountMapOutput) MapIndex(k pulumi.StringInput) ServicesAccountOutput
- func (o ServicesAccountMapOutput) ToServicesAccountMapOutput() ServicesAccountMapOutput
- func (o ServicesAccountMapOutput) ToServicesAccountMapOutputWithContext(ctx context.Context) ServicesAccountMapOutput
- type ServicesAccountOutput
- func (o ServicesAccountOutput) ApplicationId() pulumi.StringOutput
- func (o ServicesAccountOutput) BillingPlanId() pulumi.StringOutput
- func (ServicesAccountOutput) ElementType() reflect.Type
- func (o ServicesAccountOutput) Name() pulumi.StringOutput
- func (o ServicesAccountOutput) ResourceGroupName() pulumi.StringOutput
- func (o ServicesAccountOutput) Tags() pulumi.StringMapOutput
- func (o ServicesAccountOutput) ToServicesAccountOutput() ServicesAccountOutput
- func (o ServicesAccountOutput) ToServicesAccountOutputWithContext(ctx context.Context) ServicesAccountOutput
- type ServicesAccountState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ServicesAccount ¶
type ServicesAccount 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 Microsoft Graph Services Account.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core" "github.com/pulumi/pulumi-azure/sdk/v6/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 { example, err := azuread.NewApplication(ctx, "example", &azuread.ApplicationArgs{ DisplayName: pulumi.String("example-app"), }) if err != nil { return err } exampleResourceGroup, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{ Name: pulumi.String("example-resources"), Location: pulumi.String("West Europe"), }) if err != nil { return err } _, err = graph.NewServicesAccount(ctx, "example", &graph.ServicesAccountArgs{ Name: pulumi.String("example"), ResourceGroupName: exampleResourceGroup.Name, ApplicationId: example.ApplicationId, Tags: pulumi.StringMap{ "environment": pulumi.String("Production"), }, }) if err != nil { return err } return nil }) }
```
## Import
An existing Account can be imported into Pulumi using the `resource id`, e.g.
```sh $ pulumi import azure:graph/servicesAccount:ServicesAccount example /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/example-resource-group/providers/Microsoft.GraphServices/accounts/account1 ```
func GetServicesAccount ¶
func GetServicesAccount(ctx *pulumi.Context, name string, id pulumi.IDInput, state *ServicesAccountState, opts ...pulumi.ResourceOption) (*ServicesAccount, error)
GetServicesAccount gets an existing ServicesAccount 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 NewServicesAccount ¶
func NewServicesAccount(ctx *pulumi.Context, name string, args *ServicesAccountArgs, opts ...pulumi.ResourceOption) (*ServicesAccount, error)
NewServicesAccount registers a new resource with the given unique name, arguments, and options.
func (*ServicesAccount) ElementType ¶
func (*ServicesAccount) ElementType() reflect.Type
func (*ServicesAccount) ToServicesAccountOutput ¶
func (i *ServicesAccount) ToServicesAccountOutput() ServicesAccountOutput
func (*ServicesAccount) ToServicesAccountOutputWithContext ¶
func (i *ServicesAccount) ToServicesAccountOutputWithContext(ctx context.Context) ServicesAccountOutput
type ServicesAccountArgs ¶
type ServicesAccountArgs 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 ServicesAccount resource.
func (ServicesAccountArgs) ElementType ¶
func (ServicesAccountArgs) ElementType() reflect.Type
type ServicesAccountArray ¶
type ServicesAccountArray []ServicesAccountInput
func (ServicesAccountArray) ElementType ¶
func (ServicesAccountArray) ElementType() reflect.Type
func (ServicesAccountArray) ToServicesAccountArrayOutput ¶
func (i ServicesAccountArray) ToServicesAccountArrayOutput() ServicesAccountArrayOutput
func (ServicesAccountArray) ToServicesAccountArrayOutputWithContext ¶
func (i ServicesAccountArray) ToServicesAccountArrayOutputWithContext(ctx context.Context) ServicesAccountArrayOutput
type ServicesAccountArrayInput ¶
type ServicesAccountArrayInput interface { pulumi.Input ToServicesAccountArrayOutput() ServicesAccountArrayOutput ToServicesAccountArrayOutputWithContext(context.Context) ServicesAccountArrayOutput }
ServicesAccountArrayInput is an input type that accepts ServicesAccountArray and ServicesAccountArrayOutput values. You can construct a concrete instance of `ServicesAccountArrayInput` via:
ServicesAccountArray{ ServicesAccountArgs{...} }
type ServicesAccountArrayOutput ¶
type ServicesAccountArrayOutput struct{ *pulumi.OutputState }
func (ServicesAccountArrayOutput) ElementType ¶
func (ServicesAccountArrayOutput) ElementType() reflect.Type
func (ServicesAccountArrayOutput) Index ¶
func (o ServicesAccountArrayOutput) Index(i pulumi.IntInput) ServicesAccountOutput
func (ServicesAccountArrayOutput) ToServicesAccountArrayOutput ¶
func (o ServicesAccountArrayOutput) ToServicesAccountArrayOutput() ServicesAccountArrayOutput
func (ServicesAccountArrayOutput) ToServicesAccountArrayOutputWithContext ¶
func (o ServicesAccountArrayOutput) ToServicesAccountArrayOutputWithContext(ctx context.Context) ServicesAccountArrayOutput
type ServicesAccountInput ¶
type ServicesAccountInput interface { pulumi.Input ToServicesAccountOutput() ServicesAccountOutput ToServicesAccountOutputWithContext(ctx context.Context) ServicesAccountOutput }
type ServicesAccountMap ¶
type ServicesAccountMap map[string]ServicesAccountInput
func (ServicesAccountMap) ElementType ¶
func (ServicesAccountMap) ElementType() reflect.Type
func (ServicesAccountMap) ToServicesAccountMapOutput ¶
func (i ServicesAccountMap) ToServicesAccountMapOutput() ServicesAccountMapOutput
func (ServicesAccountMap) ToServicesAccountMapOutputWithContext ¶
func (i ServicesAccountMap) ToServicesAccountMapOutputWithContext(ctx context.Context) ServicesAccountMapOutput
type ServicesAccountMapInput ¶
type ServicesAccountMapInput interface { pulumi.Input ToServicesAccountMapOutput() ServicesAccountMapOutput ToServicesAccountMapOutputWithContext(context.Context) ServicesAccountMapOutput }
ServicesAccountMapInput is an input type that accepts ServicesAccountMap and ServicesAccountMapOutput values. You can construct a concrete instance of `ServicesAccountMapInput` via:
ServicesAccountMap{ "key": ServicesAccountArgs{...} }
type ServicesAccountMapOutput ¶
type ServicesAccountMapOutput struct{ *pulumi.OutputState }
func (ServicesAccountMapOutput) ElementType ¶
func (ServicesAccountMapOutput) ElementType() reflect.Type
func (ServicesAccountMapOutput) MapIndex ¶
func (o ServicesAccountMapOutput) MapIndex(k pulumi.StringInput) ServicesAccountOutput
func (ServicesAccountMapOutput) ToServicesAccountMapOutput ¶
func (o ServicesAccountMapOutput) ToServicesAccountMapOutput() ServicesAccountMapOutput
func (ServicesAccountMapOutput) ToServicesAccountMapOutputWithContext ¶
func (o ServicesAccountMapOutput) ToServicesAccountMapOutputWithContext(ctx context.Context) ServicesAccountMapOutput
type ServicesAccountOutput ¶
type ServicesAccountOutput struct{ *pulumi.OutputState }
func (ServicesAccountOutput) ApplicationId ¶
func (o ServicesAccountOutput) ApplicationId() pulumi.StringOutput
Customer owned application ID. Changing this forces a new Account to be created.
func (ServicesAccountOutput) BillingPlanId ¶
func (o ServicesAccountOutput) BillingPlanId() pulumi.StringOutput
Billing Plan Id.
func (ServicesAccountOutput) ElementType ¶
func (ServicesAccountOutput) ElementType() reflect.Type
func (ServicesAccountOutput) Name ¶
func (o ServicesAccountOutput) Name() pulumi.StringOutput
Specifies the name of this Account. Changing this forces a new Account to be created.
func (ServicesAccountOutput) ResourceGroupName ¶
func (o ServicesAccountOutput) 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 (ServicesAccountOutput) Tags ¶
func (o ServicesAccountOutput) Tags() pulumi.StringMapOutput
A mapping of tags which should be assigned to the Account.
func (ServicesAccountOutput) ToServicesAccountOutput ¶
func (o ServicesAccountOutput) ToServicesAccountOutput() ServicesAccountOutput
func (ServicesAccountOutput) ToServicesAccountOutputWithContext ¶
func (o ServicesAccountOutput) ToServicesAccountOutputWithContext(ctx context.Context) ServicesAccountOutput
type ServicesAccountState ¶
type ServicesAccountState 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 (ServicesAccountState) ElementType ¶
func (ServicesAccountState) ElementType() reflect.Type