Documentation ¶
Index ¶
- type Analyzer
- func (*Analyzer) ElementType() reflect.Type
- func (i *Analyzer) ToAnalyzerOutput() AnalyzerOutput
- func (i *Analyzer) ToAnalyzerOutputWithContext(ctx context.Context) AnalyzerOutput
- func (i *Analyzer) ToAnalyzerPtrOutput() AnalyzerPtrOutput
- func (i *Analyzer) ToAnalyzerPtrOutputWithContext(ctx context.Context) AnalyzerPtrOutput
- type AnalyzerArgs
- type AnalyzerArray
- type AnalyzerArrayInput
- type AnalyzerArrayOutput
- type AnalyzerIdentity
- type AnalyzerIdentityArgs
- func (AnalyzerIdentityArgs) ElementType() reflect.Type
- func (i AnalyzerIdentityArgs) ToAnalyzerIdentityOutput() AnalyzerIdentityOutput
- func (i AnalyzerIdentityArgs) ToAnalyzerIdentityOutputWithContext(ctx context.Context) AnalyzerIdentityOutput
- func (i AnalyzerIdentityArgs) ToAnalyzerIdentityPtrOutput() AnalyzerIdentityPtrOutput
- func (i AnalyzerIdentityArgs) ToAnalyzerIdentityPtrOutputWithContext(ctx context.Context) AnalyzerIdentityPtrOutput
- type AnalyzerIdentityInput
- type AnalyzerIdentityOutput
- func (AnalyzerIdentityOutput) ElementType() reflect.Type
- func (o AnalyzerIdentityOutput) IdentityIds() pulumi.StringArrayOutput
- func (o AnalyzerIdentityOutput) ToAnalyzerIdentityOutput() AnalyzerIdentityOutput
- func (o AnalyzerIdentityOutput) ToAnalyzerIdentityOutputWithContext(ctx context.Context) AnalyzerIdentityOutput
- func (o AnalyzerIdentityOutput) ToAnalyzerIdentityPtrOutput() AnalyzerIdentityPtrOutput
- func (o AnalyzerIdentityOutput) ToAnalyzerIdentityPtrOutputWithContext(ctx context.Context) AnalyzerIdentityPtrOutput
- func (o AnalyzerIdentityOutput) Type() pulumi.StringOutput
- type AnalyzerIdentityPtrInput
- type AnalyzerIdentityPtrOutput
- func (o AnalyzerIdentityPtrOutput) Elem() AnalyzerIdentityOutput
- func (AnalyzerIdentityPtrOutput) ElementType() reflect.Type
- func (o AnalyzerIdentityPtrOutput) IdentityIds() pulumi.StringArrayOutput
- func (o AnalyzerIdentityPtrOutput) ToAnalyzerIdentityPtrOutput() AnalyzerIdentityPtrOutput
- func (o AnalyzerIdentityPtrOutput) ToAnalyzerIdentityPtrOutputWithContext(ctx context.Context) AnalyzerIdentityPtrOutput
- func (o AnalyzerIdentityPtrOutput) Type() pulumi.StringPtrOutput
- type AnalyzerInput
- type AnalyzerMap
- type AnalyzerMapInput
- type AnalyzerMapOutput
- type AnalyzerOutput
- func (AnalyzerOutput) ElementType() reflect.Type
- func (o AnalyzerOutput) ToAnalyzerOutput() AnalyzerOutput
- func (o AnalyzerOutput) ToAnalyzerOutputWithContext(ctx context.Context) AnalyzerOutput
- func (o AnalyzerOutput) ToAnalyzerPtrOutput() AnalyzerPtrOutput
- func (o AnalyzerOutput) ToAnalyzerPtrOutputWithContext(ctx context.Context) AnalyzerPtrOutput
- type AnalyzerPtrInput
- type AnalyzerPtrOutput
- type AnalyzerState
- type AnalyzerStorageAccount
- type AnalyzerStorageAccountArgs
- func (AnalyzerStorageAccountArgs) ElementType() reflect.Type
- func (i AnalyzerStorageAccountArgs) ToAnalyzerStorageAccountOutput() AnalyzerStorageAccountOutput
- func (i AnalyzerStorageAccountArgs) ToAnalyzerStorageAccountOutputWithContext(ctx context.Context) AnalyzerStorageAccountOutput
- func (i AnalyzerStorageAccountArgs) ToAnalyzerStorageAccountPtrOutput() AnalyzerStorageAccountPtrOutput
- func (i AnalyzerStorageAccountArgs) ToAnalyzerStorageAccountPtrOutputWithContext(ctx context.Context) AnalyzerStorageAccountPtrOutput
- type AnalyzerStorageAccountInput
- type AnalyzerStorageAccountOutput
- func (AnalyzerStorageAccountOutput) ElementType() reflect.Type
- func (o AnalyzerStorageAccountOutput) Id() pulumi.StringOutput
- func (o AnalyzerStorageAccountOutput) ToAnalyzerStorageAccountOutput() AnalyzerStorageAccountOutput
- func (o AnalyzerStorageAccountOutput) ToAnalyzerStorageAccountOutputWithContext(ctx context.Context) AnalyzerStorageAccountOutput
- func (o AnalyzerStorageAccountOutput) ToAnalyzerStorageAccountPtrOutput() AnalyzerStorageAccountPtrOutput
- func (o AnalyzerStorageAccountOutput) ToAnalyzerStorageAccountPtrOutputWithContext(ctx context.Context) AnalyzerStorageAccountPtrOutput
- func (o AnalyzerStorageAccountOutput) UserAssignedIdentityId() pulumi.StringOutput
- type AnalyzerStorageAccountPtrInput
- type AnalyzerStorageAccountPtrOutput
- func (o AnalyzerStorageAccountPtrOutput) Elem() AnalyzerStorageAccountOutput
- func (AnalyzerStorageAccountPtrOutput) ElementType() reflect.Type
- func (o AnalyzerStorageAccountPtrOutput) Id() pulumi.StringPtrOutput
- func (o AnalyzerStorageAccountPtrOutput) ToAnalyzerStorageAccountPtrOutput() AnalyzerStorageAccountPtrOutput
- func (o AnalyzerStorageAccountPtrOutput) ToAnalyzerStorageAccountPtrOutputWithContext(ctx context.Context) AnalyzerStorageAccountPtrOutput
- func (o AnalyzerStorageAccountPtrOutput) UserAssignedIdentityId() pulumi.StringPtrOutput
- type EdgeModule
- func (*EdgeModule) ElementType() reflect.Type
- func (i *EdgeModule) ToEdgeModuleOutput() EdgeModuleOutput
- func (i *EdgeModule) ToEdgeModuleOutputWithContext(ctx context.Context) EdgeModuleOutput
- func (i *EdgeModule) ToEdgeModulePtrOutput() EdgeModulePtrOutput
- func (i *EdgeModule) ToEdgeModulePtrOutputWithContext(ctx context.Context) EdgeModulePtrOutput
- type EdgeModuleArgs
- type EdgeModuleArray
- type EdgeModuleArrayInput
- type EdgeModuleArrayOutput
- func (EdgeModuleArrayOutput) ElementType() reflect.Type
- func (o EdgeModuleArrayOutput) Index(i pulumi.IntInput) EdgeModuleOutput
- func (o EdgeModuleArrayOutput) ToEdgeModuleArrayOutput() EdgeModuleArrayOutput
- func (o EdgeModuleArrayOutput) ToEdgeModuleArrayOutputWithContext(ctx context.Context) EdgeModuleArrayOutput
- type EdgeModuleInput
- type EdgeModuleMap
- type EdgeModuleMapInput
- type EdgeModuleMapOutput
- func (EdgeModuleMapOutput) ElementType() reflect.Type
- func (o EdgeModuleMapOutput) MapIndex(k pulumi.StringInput) EdgeModuleOutput
- func (o EdgeModuleMapOutput) ToEdgeModuleMapOutput() EdgeModuleMapOutput
- func (o EdgeModuleMapOutput) ToEdgeModuleMapOutputWithContext(ctx context.Context) EdgeModuleMapOutput
- type EdgeModuleOutput
- func (EdgeModuleOutput) ElementType() reflect.Type
- func (o EdgeModuleOutput) ToEdgeModuleOutput() EdgeModuleOutput
- func (o EdgeModuleOutput) ToEdgeModuleOutputWithContext(ctx context.Context) EdgeModuleOutput
- func (o EdgeModuleOutput) ToEdgeModulePtrOutput() EdgeModulePtrOutput
- func (o EdgeModuleOutput) ToEdgeModulePtrOutputWithContext(ctx context.Context) EdgeModulePtrOutput
- type EdgeModulePtrInput
- type EdgeModulePtrOutput
- type EdgeModuleState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Analyzer ¶
type Analyzer struct { pulumi.CustomResourceState // An `identity` block is defined below. Identity AnalyzerIdentityOutput `pulumi:"identity"` // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location pulumi.StringOutput `pulumi:"location"` // Specifies the name of the Video Analyzer. Changing this forces a new resource to be created. Name pulumi.StringOutput `pulumi:"name"` // The name of the resource group in which to create the Video Analyzer. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // An `storageAccount` blocks is defined below. StorageAccount AnalyzerStorageAccountOutput `pulumi:"storageAccount"` // A mapping of tags assigned to the resource. Tags pulumi.StringMapOutput `pulumi:"tags"` }
Manages a Video Analyzer.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/authorization" "github.com/pulumi/pulumi-azure/sdk/v4/go/azure/core" "github.com/pulumi/pulumi-azure/sdk/v4/go/azure/storage" "github.com/pulumi/pulumi-azure/sdk/v4/go/azure/videoanalyzer" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
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 } exampleAccount, err := storage.NewAccount(ctx, "exampleAccount", &storage.AccountArgs{ ResourceGroupName: exampleResourceGroup.Name, Location: exampleResourceGroup.Location, AccountTier: pulumi.String("Standard"), AccountReplicationType: pulumi.String("GRS"), }) if err != nil { return err } exampleUserAssignedIdentity, err := authorization.NewUserAssignedIdentity(ctx, "exampleUserAssignedIdentity", &authorization.UserAssignedIdentityArgs{ ResourceGroupName: exampleResourceGroup.Name, Location: exampleResourceGroup.Location, }) if err != nil { return err } contributor, err := authorization.NewAssignment(ctx, "contributor", &authorization.AssignmentArgs{ Scope: exampleAccount.ID(), RoleDefinitionName: pulumi.String("Storage Blob Data Contributor"), PrincipalId: exampleUserAssignedIdentity.PrincipalId, }) if err != nil { return err } reader, err := authorization.NewAssignment(ctx, "reader", &authorization.AssignmentArgs{ Scope: exampleAccount.ID(), RoleDefinitionName: pulumi.String("Reader"), PrincipalId: exampleUserAssignedIdentity.PrincipalId, }) if err != nil { return err } _, err = videoanalyzer.NewAnalyzer(ctx, "exampleAnalyzer", &videoanalyzer.AnalyzerArgs{ Location: exampleResourceGroup.Location, ResourceGroupName: exampleResourceGroup.Name, StorageAccount: &videoanalyzer.AnalyzerStorageAccountArgs{ Id: exampleAccount.ID(), UserAssignedIdentityId: exampleUserAssignedIdentity.ID(), }, Identity: &videoanalyzer.AnalyzerIdentityArgs{ Type: pulumi.String("UserAssigned"), IdentityIds: pulumi.StringArray{ exampleUserAssignedIdentity.ID(), }, }, Tags: pulumi.StringMap{ "environment": pulumi.String("staging"), }, }, pulumi.DependsOn([]pulumi.Resource{ contributor, reader, })) if err != nil { return err } return nil }) }
```
## Import
Video Analyzer can be imported using the `resource id`, e.g.
```sh
$ pulumi import azure:videoanalyzer/analyzer:Analyzer analyzer /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Media/videoAnalyzers/analyzer1
```
func GetAnalyzer ¶
func GetAnalyzer(ctx *pulumi.Context, name string, id pulumi.IDInput, state *AnalyzerState, opts ...pulumi.ResourceOption) (*Analyzer, error)
GetAnalyzer gets an existing Analyzer 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 NewAnalyzer ¶
func NewAnalyzer(ctx *pulumi.Context, name string, args *AnalyzerArgs, opts ...pulumi.ResourceOption) (*Analyzer, error)
NewAnalyzer registers a new resource with the given unique name, arguments, and options.
func (*Analyzer) ElementType ¶
func (*Analyzer) ToAnalyzerOutput ¶
func (i *Analyzer) ToAnalyzerOutput() AnalyzerOutput
func (*Analyzer) ToAnalyzerOutputWithContext ¶
func (i *Analyzer) ToAnalyzerOutputWithContext(ctx context.Context) AnalyzerOutput
func (*Analyzer) ToAnalyzerPtrOutput ¶
func (i *Analyzer) ToAnalyzerPtrOutput() AnalyzerPtrOutput
func (*Analyzer) ToAnalyzerPtrOutputWithContext ¶
func (i *Analyzer) ToAnalyzerPtrOutputWithContext(ctx context.Context) AnalyzerPtrOutput
type AnalyzerArgs ¶
type AnalyzerArgs struct { // An `identity` block is defined below. Identity AnalyzerIdentityInput // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location pulumi.StringPtrInput // Specifies the name of the Video Analyzer. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // The name of the resource group in which to create the Video Analyzer. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringInput // An `storageAccount` blocks is defined below. StorageAccount AnalyzerStorageAccountInput // A mapping of tags assigned to the resource. Tags pulumi.StringMapInput }
The set of arguments for constructing a Analyzer resource.
func (AnalyzerArgs) ElementType ¶
func (AnalyzerArgs) ElementType() reflect.Type
type AnalyzerArray ¶
type AnalyzerArray []AnalyzerInput
func (AnalyzerArray) ElementType ¶
func (AnalyzerArray) ElementType() reflect.Type
func (AnalyzerArray) ToAnalyzerArrayOutput ¶
func (i AnalyzerArray) ToAnalyzerArrayOutput() AnalyzerArrayOutput
func (AnalyzerArray) ToAnalyzerArrayOutputWithContext ¶
func (i AnalyzerArray) ToAnalyzerArrayOutputWithContext(ctx context.Context) AnalyzerArrayOutput
type AnalyzerArrayInput ¶
type AnalyzerArrayInput interface { pulumi.Input ToAnalyzerArrayOutput() AnalyzerArrayOutput ToAnalyzerArrayOutputWithContext(context.Context) AnalyzerArrayOutput }
AnalyzerArrayInput is an input type that accepts AnalyzerArray and AnalyzerArrayOutput values. You can construct a concrete instance of `AnalyzerArrayInput` via:
AnalyzerArray{ AnalyzerArgs{...} }
type AnalyzerArrayOutput ¶
type AnalyzerArrayOutput struct{ *pulumi.OutputState }
func (AnalyzerArrayOutput) ElementType ¶
func (AnalyzerArrayOutput) ElementType() reflect.Type
func (AnalyzerArrayOutput) Index ¶
func (o AnalyzerArrayOutput) Index(i pulumi.IntInput) AnalyzerOutput
func (AnalyzerArrayOutput) ToAnalyzerArrayOutput ¶
func (o AnalyzerArrayOutput) ToAnalyzerArrayOutput() AnalyzerArrayOutput
func (AnalyzerArrayOutput) ToAnalyzerArrayOutputWithContext ¶
func (o AnalyzerArrayOutput) ToAnalyzerArrayOutputWithContext(ctx context.Context) AnalyzerArrayOutput
type AnalyzerIdentity ¶
type AnalyzerIdentity struct { // A list of User Assigned Identity ID's to be assigned to this Video Analyzer. IdentityIds []string `pulumi:"identityIds"` // Specifies the type of Managed Identity that should be configured on this Video Analyzer. At this time the only possible value is `UserAssigned`. Type string `pulumi:"type"` }
type AnalyzerIdentityArgs ¶
type AnalyzerIdentityArgs struct { // A list of User Assigned Identity ID's to be assigned to this Video Analyzer. IdentityIds pulumi.StringArrayInput `pulumi:"identityIds"` // Specifies the type of Managed Identity that should be configured on this Video Analyzer. At this time the only possible value is `UserAssigned`. Type pulumi.StringInput `pulumi:"type"` }
func (AnalyzerIdentityArgs) ElementType ¶
func (AnalyzerIdentityArgs) ElementType() reflect.Type
func (AnalyzerIdentityArgs) ToAnalyzerIdentityOutput ¶
func (i AnalyzerIdentityArgs) ToAnalyzerIdentityOutput() AnalyzerIdentityOutput
func (AnalyzerIdentityArgs) ToAnalyzerIdentityOutputWithContext ¶
func (i AnalyzerIdentityArgs) ToAnalyzerIdentityOutputWithContext(ctx context.Context) AnalyzerIdentityOutput
func (AnalyzerIdentityArgs) ToAnalyzerIdentityPtrOutput ¶
func (i AnalyzerIdentityArgs) ToAnalyzerIdentityPtrOutput() AnalyzerIdentityPtrOutput
func (AnalyzerIdentityArgs) ToAnalyzerIdentityPtrOutputWithContext ¶
func (i AnalyzerIdentityArgs) ToAnalyzerIdentityPtrOutputWithContext(ctx context.Context) AnalyzerIdentityPtrOutput
type AnalyzerIdentityInput ¶
type AnalyzerIdentityInput interface { pulumi.Input ToAnalyzerIdentityOutput() AnalyzerIdentityOutput ToAnalyzerIdentityOutputWithContext(context.Context) AnalyzerIdentityOutput }
AnalyzerIdentityInput is an input type that accepts AnalyzerIdentityArgs and AnalyzerIdentityOutput values. You can construct a concrete instance of `AnalyzerIdentityInput` via:
AnalyzerIdentityArgs{...}
type AnalyzerIdentityOutput ¶
type AnalyzerIdentityOutput struct{ *pulumi.OutputState }
func (AnalyzerIdentityOutput) ElementType ¶
func (AnalyzerIdentityOutput) ElementType() reflect.Type
func (AnalyzerIdentityOutput) IdentityIds ¶
func (o AnalyzerIdentityOutput) IdentityIds() pulumi.StringArrayOutput
A list of User Assigned Identity ID's to be assigned to this Video Analyzer.
func (AnalyzerIdentityOutput) ToAnalyzerIdentityOutput ¶
func (o AnalyzerIdentityOutput) ToAnalyzerIdentityOutput() AnalyzerIdentityOutput
func (AnalyzerIdentityOutput) ToAnalyzerIdentityOutputWithContext ¶
func (o AnalyzerIdentityOutput) ToAnalyzerIdentityOutputWithContext(ctx context.Context) AnalyzerIdentityOutput
func (AnalyzerIdentityOutput) ToAnalyzerIdentityPtrOutput ¶
func (o AnalyzerIdentityOutput) ToAnalyzerIdentityPtrOutput() AnalyzerIdentityPtrOutput
func (AnalyzerIdentityOutput) ToAnalyzerIdentityPtrOutputWithContext ¶
func (o AnalyzerIdentityOutput) ToAnalyzerIdentityPtrOutputWithContext(ctx context.Context) AnalyzerIdentityPtrOutput
func (AnalyzerIdentityOutput) Type ¶
func (o AnalyzerIdentityOutput) Type() pulumi.StringOutput
Specifies the type of Managed Identity that should be configured on this Video Analyzer. At this time the only possible value is `UserAssigned`.
type AnalyzerIdentityPtrInput ¶
type AnalyzerIdentityPtrInput interface { pulumi.Input ToAnalyzerIdentityPtrOutput() AnalyzerIdentityPtrOutput ToAnalyzerIdentityPtrOutputWithContext(context.Context) AnalyzerIdentityPtrOutput }
AnalyzerIdentityPtrInput is an input type that accepts AnalyzerIdentityArgs, AnalyzerIdentityPtr and AnalyzerIdentityPtrOutput values. You can construct a concrete instance of `AnalyzerIdentityPtrInput` via:
AnalyzerIdentityArgs{...} or: nil
func AnalyzerIdentityPtr ¶
func AnalyzerIdentityPtr(v *AnalyzerIdentityArgs) AnalyzerIdentityPtrInput
type AnalyzerIdentityPtrOutput ¶
type AnalyzerIdentityPtrOutput struct{ *pulumi.OutputState }
func (AnalyzerIdentityPtrOutput) Elem ¶
func (o AnalyzerIdentityPtrOutput) Elem() AnalyzerIdentityOutput
func (AnalyzerIdentityPtrOutput) ElementType ¶
func (AnalyzerIdentityPtrOutput) ElementType() reflect.Type
func (AnalyzerIdentityPtrOutput) IdentityIds ¶
func (o AnalyzerIdentityPtrOutput) IdentityIds() pulumi.StringArrayOutput
A list of User Assigned Identity ID's to be assigned to this Video Analyzer.
func (AnalyzerIdentityPtrOutput) ToAnalyzerIdentityPtrOutput ¶
func (o AnalyzerIdentityPtrOutput) ToAnalyzerIdentityPtrOutput() AnalyzerIdentityPtrOutput
func (AnalyzerIdentityPtrOutput) ToAnalyzerIdentityPtrOutputWithContext ¶
func (o AnalyzerIdentityPtrOutput) ToAnalyzerIdentityPtrOutputWithContext(ctx context.Context) AnalyzerIdentityPtrOutput
func (AnalyzerIdentityPtrOutput) Type ¶
func (o AnalyzerIdentityPtrOutput) Type() pulumi.StringPtrOutput
Specifies the type of Managed Identity that should be configured on this Video Analyzer. At this time the only possible value is `UserAssigned`.
type AnalyzerInput ¶
type AnalyzerInput interface { pulumi.Input ToAnalyzerOutput() AnalyzerOutput ToAnalyzerOutputWithContext(ctx context.Context) AnalyzerOutput }
type AnalyzerMap ¶
type AnalyzerMap map[string]AnalyzerInput
func (AnalyzerMap) ElementType ¶
func (AnalyzerMap) ElementType() reflect.Type
func (AnalyzerMap) ToAnalyzerMapOutput ¶
func (i AnalyzerMap) ToAnalyzerMapOutput() AnalyzerMapOutput
func (AnalyzerMap) ToAnalyzerMapOutputWithContext ¶
func (i AnalyzerMap) ToAnalyzerMapOutputWithContext(ctx context.Context) AnalyzerMapOutput
type AnalyzerMapInput ¶
type AnalyzerMapInput interface { pulumi.Input ToAnalyzerMapOutput() AnalyzerMapOutput ToAnalyzerMapOutputWithContext(context.Context) AnalyzerMapOutput }
AnalyzerMapInput is an input type that accepts AnalyzerMap and AnalyzerMapOutput values. You can construct a concrete instance of `AnalyzerMapInput` via:
AnalyzerMap{ "key": AnalyzerArgs{...} }
type AnalyzerMapOutput ¶
type AnalyzerMapOutput struct{ *pulumi.OutputState }
func (AnalyzerMapOutput) ElementType ¶
func (AnalyzerMapOutput) ElementType() reflect.Type
func (AnalyzerMapOutput) MapIndex ¶
func (o AnalyzerMapOutput) MapIndex(k pulumi.StringInput) AnalyzerOutput
func (AnalyzerMapOutput) ToAnalyzerMapOutput ¶
func (o AnalyzerMapOutput) ToAnalyzerMapOutput() AnalyzerMapOutput
func (AnalyzerMapOutput) ToAnalyzerMapOutputWithContext ¶
func (o AnalyzerMapOutput) ToAnalyzerMapOutputWithContext(ctx context.Context) AnalyzerMapOutput
type AnalyzerOutput ¶
type AnalyzerOutput struct {
*pulumi.OutputState
}
func (AnalyzerOutput) ElementType ¶
func (AnalyzerOutput) ElementType() reflect.Type
func (AnalyzerOutput) ToAnalyzerOutput ¶
func (o AnalyzerOutput) ToAnalyzerOutput() AnalyzerOutput
func (AnalyzerOutput) ToAnalyzerOutputWithContext ¶
func (o AnalyzerOutput) ToAnalyzerOutputWithContext(ctx context.Context) AnalyzerOutput
func (AnalyzerOutput) ToAnalyzerPtrOutput ¶
func (o AnalyzerOutput) ToAnalyzerPtrOutput() AnalyzerPtrOutput
func (AnalyzerOutput) ToAnalyzerPtrOutputWithContext ¶
func (o AnalyzerOutput) ToAnalyzerPtrOutputWithContext(ctx context.Context) AnalyzerPtrOutput
type AnalyzerPtrInput ¶
type AnalyzerPtrInput interface { pulumi.Input ToAnalyzerPtrOutput() AnalyzerPtrOutput ToAnalyzerPtrOutputWithContext(ctx context.Context) AnalyzerPtrOutput }
type AnalyzerPtrOutput ¶
type AnalyzerPtrOutput struct {
*pulumi.OutputState
}
func (AnalyzerPtrOutput) ElementType ¶
func (AnalyzerPtrOutput) ElementType() reflect.Type
func (AnalyzerPtrOutput) ToAnalyzerPtrOutput ¶
func (o AnalyzerPtrOutput) ToAnalyzerPtrOutput() AnalyzerPtrOutput
func (AnalyzerPtrOutput) ToAnalyzerPtrOutputWithContext ¶
func (o AnalyzerPtrOutput) ToAnalyzerPtrOutputWithContext(ctx context.Context) AnalyzerPtrOutput
type AnalyzerState ¶
type AnalyzerState struct { // An `identity` block is defined below. Identity AnalyzerIdentityPtrInput // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location pulumi.StringPtrInput // Specifies the name of the Video Analyzer. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // The name of the resource group in which to create the Video Analyzer. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringPtrInput // An `storageAccount` blocks is defined below. StorageAccount AnalyzerStorageAccountPtrInput // A mapping of tags assigned to the resource. Tags pulumi.StringMapInput }
func (AnalyzerState) ElementType ¶
func (AnalyzerState) ElementType() reflect.Type
type AnalyzerStorageAccount ¶
type AnalyzerStorageAccount struct { // Specifies the ID of the Storage Account that will be associated with the Video Analyzer instance. Id string `pulumi:"id"` // Specifies the User Assigned Identity ID which should be assigned to a access this Storage Account. UserAssignedIdentityId string `pulumi:"userAssignedIdentityId"` }
type AnalyzerStorageAccountArgs ¶
type AnalyzerStorageAccountArgs struct { // Specifies the ID of the Storage Account that will be associated with the Video Analyzer instance. Id pulumi.StringInput `pulumi:"id"` // Specifies the User Assigned Identity ID which should be assigned to a access this Storage Account. UserAssignedIdentityId pulumi.StringInput `pulumi:"userAssignedIdentityId"` }
func (AnalyzerStorageAccountArgs) ElementType ¶
func (AnalyzerStorageAccountArgs) ElementType() reflect.Type
func (AnalyzerStorageAccountArgs) ToAnalyzerStorageAccountOutput ¶
func (i AnalyzerStorageAccountArgs) ToAnalyzerStorageAccountOutput() AnalyzerStorageAccountOutput
func (AnalyzerStorageAccountArgs) ToAnalyzerStorageAccountOutputWithContext ¶
func (i AnalyzerStorageAccountArgs) ToAnalyzerStorageAccountOutputWithContext(ctx context.Context) AnalyzerStorageAccountOutput
func (AnalyzerStorageAccountArgs) ToAnalyzerStorageAccountPtrOutput ¶
func (i AnalyzerStorageAccountArgs) ToAnalyzerStorageAccountPtrOutput() AnalyzerStorageAccountPtrOutput
func (AnalyzerStorageAccountArgs) ToAnalyzerStorageAccountPtrOutputWithContext ¶
func (i AnalyzerStorageAccountArgs) ToAnalyzerStorageAccountPtrOutputWithContext(ctx context.Context) AnalyzerStorageAccountPtrOutput
type AnalyzerStorageAccountInput ¶
type AnalyzerStorageAccountInput interface { pulumi.Input ToAnalyzerStorageAccountOutput() AnalyzerStorageAccountOutput ToAnalyzerStorageAccountOutputWithContext(context.Context) AnalyzerStorageAccountOutput }
AnalyzerStorageAccountInput is an input type that accepts AnalyzerStorageAccountArgs and AnalyzerStorageAccountOutput values. You can construct a concrete instance of `AnalyzerStorageAccountInput` via:
AnalyzerStorageAccountArgs{...}
type AnalyzerStorageAccountOutput ¶
type AnalyzerStorageAccountOutput struct{ *pulumi.OutputState }
func (AnalyzerStorageAccountOutput) ElementType ¶
func (AnalyzerStorageAccountOutput) ElementType() reflect.Type
func (AnalyzerStorageAccountOutput) Id ¶
func (o AnalyzerStorageAccountOutput) Id() pulumi.StringOutput
Specifies the ID of the Storage Account that will be associated with the Video Analyzer instance.
func (AnalyzerStorageAccountOutput) ToAnalyzerStorageAccountOutput ¶
func (o AnalyzerStorageAccountOutput) ToAnalyzerStorageAccountOutput() AnalyzerStorageAccountOutput
func (AnalyzerStorageAccountOutput) ToAnalyzerStorageAccountOutputWithContext ¶
func (o AnalyzerStorageAccountOutput) ToAnalyzerStorageAccountOutputWithContext(ctx context.Context) AnalyzerStorageAccountOutput
func (AnalyzerStorageAccountOutput) ToAnalyzerStorageAccountPtrOutput ¶
func (o AnalyzerStorageAccountOutput) ToAnalyzerStorageAccountPtrOutput() AnalyzerStorageAccountPtrOutput
func (AnalyzerStorageAccountOutput) ToAnalyzerStorageAccountPtrOutputWithContext ¶
func (o AnalyzerStorageAccountOutput) ToAnalyzerStorageAccountPtrOutputWithContext(ctx context.Context) AnalyzerStorageAccountPtrOutput
func (AnalyzerStorageAccountOutput) UserAssignedIdentityId ¶
func (o AnalyzerStorageAccountOutput) UserAssignedIdentityId() pulumi.StringOutput
Specifies the User Assigned Identity ID which should be assigned to a access this Storage Account.
type AnalyzerStorageAccountPtrInput ¶
type AnalyzerStorageAccountPtrInput interface { pulumi.Input ToAnalyzerStorageAccountPtrOutput() AnalyzerStorageAccountPtrOutput ToAnalyzerStorageAccountPtrOutputWithContext(context.Context) AnalyzerStorageAccountPtrOutput }
AnalyzerStorageAccountPtrInput is an input type that accepts AnalyzerStorageAccountArgs, AnalyzerStorageAccountPtr and AnalyzerStorageAccountPtrOutput values. You can construct a concrete instance of `AnalyzerStorageAccountPtrInput` via:
AnalyzerStorageAccountArgs{...} or: nil
func AnalyzerStorageAccountPtr ¶
func AnalyzerStorageAccountPtr(v *AnalyzerStorageAccountArgs) AnalyzerStorageAccountPtrInput
type AnalyzerStorageAccountPtrOutput ¶
type AnalyzerStorageAccountPtrOutput struct{ *pulumi.OutputState }
func (AnalyzerStorageAccountPtrOutput) Elem ¶
func (o AnalyzerStorageAccountPtrOutput) Elem() AnalyzerStorageAccountOutput
func (AnalyzerStorageAccountPtrOutput) ElementType ¶
func (AnalyzerStorageAccountPtrOutput) ElementType() reflect.Type
func (AnalyzerStorageAccountPtrOutput) Id ¶
func (o AnalyzerStorageAccountPtrOutput) Id() pulumi.StringPtrOutput
Specifies the ID of the Storage Account that will be associated with the Video Analyzer instance.
func (AnalyzerStorageAccountPtrOutput) ToAnalyzerStorageAccountPtrOutput ¶
func (o AnalyzerStorageAccountPtrOutput) ToAnalyzerStorageAccountPtrOutput() AnalyzerStorageAccountPtrOutput
func (AnalyzerStorageAccountPtrOutput) ToAnalyzerStorageAccountPtrOutputWithContext ¶
func (o AnalyzerStorageAccountPtrOutput) ToAnalyzerStorageAccountPtrOutputWithContext(ctx context.Context) AnalyzerStorageAccountPtrOutput
func (AnalyzerStorageAccountPtrOutput) UserAssignedIdentityId ¶
func (o AnalyzerStorageAccountPtrOutput) UserAssignedIdentityId() pulumi.StringPtrOutput
Specifies the User Assigned Identity ID which should be assigned to a access this Storage Account.
type EdgeModule ¶
type EdgeModule struct { pulumi.CustomResourceState // Specifies the name of the Video Analyzer Edge Module. Changing this forces a new resource to be created. Name pulumi.StringOutput `pulumi:"name"` // The name of the resource group in which to create the Video Analyzer Edge Module. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // The name of the Video Analyzer in which to create the Edge Module. Changing this forces a new resource to be created. VideoAnalyzerName pulumi.StringOutput `pulumi:"videoAnalyzerName"` }
Manages a Video Analyzer Edge Module.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/authorization" "github.com/pulumi/pulumi-azure/sdk/v4/go/azure/core" "github.com/pulumi/pulumi-azure/sdk/v4/go/azure/storage" "github.com/pulumi/pulumi-azure/sdk/v4/go/azure/videoanalyzer" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
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 } exampleAccount, err := storage.NewAccount(ctx, "exampleAccount", &storage.AccountArgs{ ResourceGroupName: exampleResourceGroup.Name, Location: exampleResourceGroup.Location, AccountTier: pulumi.String("Standard"), AccountReplicationType: pulumi.String("GRS"), }) if err != nil { return err } exampleUserAssignedIdentity, err := authorization.NewUserAssignedIdentity(ctx, "exampleUserAssignedIdentity", &authorization.UserAssignedIdentityArgs{ ResourceGroupName: exampleResourceGroup.Name, Location: exampleResourceGroup.Location, }) if err != nil { return err } contributor, err := authorization.NewAssignment(ctx, "contributor", &authorization.AssignmentArgs{ Scope: exampleAccount.ID(), RoleDefinitionName: pulumi.String("Storage Blob Data Contributor"), PrincipalId: exampleUserAssignedIdentity.PrincipalId, }) if err != nil { return err } reader, err := authorization.NewAssignment(ctx, "reader", &authorization.AssignmentArgs{ Scope: exampleAccount.ID(), RoleDefinitionName: pulumi.String("Reader"), PrincipalId: exampleUserAssignedIdentity.PrincipalId, }) if err != nil { return err } exampleAnalyzer, err := videoanalyzer.NewAnalyzer(ctx, "exampleAnalyzer", &videoanalyzer.AnalyzerArgs{ Location: exampleResourceGroup.Location, ResourceGroupName: exampleResourceGroup.Name, StorageAccount: &videoanalyzer.AnalyzerStorageAccountArgs{ Id: exampleAccount.ID(), UserAssignedIdentityId: exampleUserAssignedIdentity.ID(), }, Identity: &videoanalyzer.AnalyzerIdentityArgs{ Type: pulumi.String("UserAssigned"), IdentityIds: pulumi.StringArray{ exampleUserAssignedIdentity.ID(), }, }, Tags: pulumi.StringMap{ "environment": pulumi.String("staging"), }, }, pulumi.DependsOn([]pulumi.Resource{ exampleUserAssignedIdentity, contributor, reader, })) if err != nil { return err } _, err = videoanalyzer.NewEdgeModule(ctx, "exampleEdgeModule", &videoanalyzer.EdgeModuleArgs{ ResourceGroupName: exampleResourceGroup.Name, VideoAnalyzerName: exampleAnalyzer.Name, }) if err != nil { return err } return nil }) }
```
## Import
Video Analyzer Edge Module can be imported using the `resource id`, e.g.
```sh
$ pulumi import azure:videoanalyzer/edgeModule:EdgeModule edge /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Media/videoAnalyzers/analyzer1/edgeModules/edge1
```
func GetEdgeModule ¶
func GetEdgeModule(ctx *pulumi.Context, name string, id pulumi.IDInput, state *EdgeModuleState, opts ...pulumi.ResourceOption) (*EdgeModule, error)
GetEdgeModule gets an existing EdgeModule 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 NewEdgeModule ¶
func NewEdgeModule(ctx *pulumi.Context, name string, args *EdgeModuleArgs, opts ...pulumi.ResourceOption) (*EdgeModule, error)
NewEdgeModule registers a new resource with the given unique name, arguments, and options.
func (*EdgeModule) ElementType ¶
func (*EdgeModule) ElementType() reflect.Type
func (*EdgeModule) ToEdgeModuleOutput ¶
func (i *EdgeModule) ToEdgeModuleOutput() EdgeModuleOutput
func (*EdgeModule) ToEdgeModuleOutputWithContext ¶
func (i *EdgeModule) ToEdgeModuleOutputWithContext(ctx context.Context) EdgeModuleOutput
func (*EdgeModule) ToEdgeModulePtrOutput ¶
func (i *EdgeModule) ToEdgeModulePtrOutput() EdgeModulePtrOutput
func (*EdgeModule) ToEdgeModulePtrOutputWithContext ¶
func (i *EdgeModule) ToEdgeModulePtrOutputWithContext(ctx context.Context) EdgeModulePtrOutput
type EdgeModuleArgs ¶
type EdgeModuleArgs struct { // Specifies the name of the Video Analyzer Edge Module. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // The name of the resource group in which to create the Video Analyzer Edge Module. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringInput // The name of the Video Analyzer in which to create the Edge Module. Changing this forces a new resource to be created. VideoAnalyzerName pulumi.StringInput }
The set of arguments for constructing a EdgeModule resource.
func (EdgeModuleArgs) ElementType ¶
func (EdgeModuleArgs) ElementType() reflect.Type
type EdgeModuleArray ¶
type EdgeModuleArray []EdgeModuleInput
func (EdgeModuleArray) ElementType ¶
func (EdgeModuleArray) ElementType() reflect.Type
func (EdgeModuleArray) ToEdgeModuleArrayOutput ¶
func (i EdgeModuleArray) ToEdgeModuleArrayOutput() EdgeModuleArrayOutput
func (EdgeModuleArray) ToEdgeModuleArrayOutputWithContext ¶
func (i EdgeModuleArray) ToEdgeModuleArrayOutputWithContext(ctx context.Context) EdgeModuleArrayOutput
type EdgeModuleArrayInput ¶
type EdgeModuleArrayInput interface { pulumi.Input ToEdgeModuleArrayOutput() EdgeModuleArrayOutput ToEdgeModuleArrayOutputWithContext(context.Context) EdgeModuleArrayOutput }
EdgeModuleArrayInput is an input type that accepts EdgeModuleArray and EdgeModuleArrayOutput values. You can construct a concrete instance of `EdgeModuleArrayInput` via:
EdgeModuleArray{ EdgeModuleArgs{...} }
type EdgeModuleArrayOutput ¶
type EdgeModuleArrayOutput struct{ *pulumi.OutputState }
func (EdgeModuleArrayOutput) ElementType ¶
func (EdgeModuleArrayOutput) ElementType() reflect.Type
func (EdgeModuleArrayOutput) Index ¶
func (o EdgeModuleArrayOutput) Index(i pulumi.IntInput) EdgeModuleOutput
func (EdgeModuleArrayOutput) ToEdgeModuleArrayOutput ¶
func (o EdgeModuleArrayOutput) ToEdgeModuleArrayOutput() EdgeModuleArrayOutput
func (EdgeModuleArrayOutput) ToEdgeModuleArrayOutputWithContext ¶
func (o EdgeModuleArrayOutput) ToEdgeModuleArrayOutputWithContext(ctx context.Context) EdgeModuleArrayOutput
type EdgeModuleInput ¶
type EdgeModuleInput interface { pulumi.Input ToEdgeModuleOutput() EdgeModuleOutput ToEdgeModuleOutputWithContext(ctx context.Context) EdgeModuleOutput }
type EdgeModuleMap ¶
type EdgeModuleMap map[string]EdgeModuleInput
func (EdgeModuleMap) ElementType ¶
func (EdgeModuleMap) ElementType() reflect.Type
func (EdgeModuleMap) ToEdgeModuleMapOutput ¶
func (i EdgeModuleMap) ToEdgeModuleMapOutput() EdgeModuleMapOutput
func (EdgeModuleMap) ToEdgeModuleMapOutputWithContext ¶
func (i EdgeModuleMap) ToEdgeModuleMapOutputWithContext(ctx context.Context) EdgeModuleMapOutput
type EdgeModuleMapInput ¶
type EdgeModuleMapInput interface { pulumi.Input ToEdgeModuleMapOutput() EdgeModuleMapOutput ToEdgeModuleMapOutputWithContext(context.Context) EdgeModuleMapOutput }
EdgeModuleMapInput is an input type that accepts EdgeModuleMap and EdgeModuleMapOutput values. You can construct a concrete instance of `EdgeModuleMapInput` via:
EdgeModuleMap{ "key": EdgeModuleArgs{...} }
type EdgeModuleMapOutput ¶
type EdgeModuleMapOutput struct{ *pulumi.OutputState }
func (EdgeModuleMapOutput) ElementType ¶
func (EdgeModuleMapOutput) ElementType() reflect.Type
func (EdgeModuleMapOutput) MapIndex ¶
func (o EdgeModuleMapOutput) MapIndex(k pulumi.StringInput) EdgeModuleOutput
func (EdgeModuleMapOutput) ToEdgeModuleMapOutput ¶
func (o EdgeModuleMapOutput) ToEdgeModuleMapOutput() EdgeModuleMapOutput
func (EdgeModuleMapOutput) ToEdgeModuleMapOutputWithContext ¶
func (o EdgeModuleMapOutput) ToEdgeModuleMapOutputWithContext(ctx context.Context) EdgeModuleMapOutput
type EdgeModuleOutput ¶
type EdgeModuleOutput struct {
*pulumi.OutputState
}
func (EdgeModuleOutput) ElementType ¶
func (EdgeModuleOutput) ElementType() reflect.Type
func (EdgeModuleOutput) ToEdgeModuleOutput ¶
func (o EdgeModuleOutput) ToEdgeModuleOutput() EdgeModuleOutput
func (EdgeModuleOutput) ToEdgeModuleOutputWithContext ¶
func (o EdgeModuleOutput) ToEdgeModuleOutputWithContext(ctx context.Context) EdgeModuleOutput
func (EdgeModuleOutput) ToEdgeModulePtrOutput ¶
func (o EdgeModuleOutput) ToEdgeModulePtrOutput() EdgeModulePtrOutput
func (EdgeModuleOutput) ToEdgeModulePtrOutputWithContext ¶
func (o EdgeModuleOutput) ToEdgeModulePtrOutputWithContext(ctx context.Context) EdgeModulePtrOutput
type EdgeModulePtrInput ¶
type EdgeModulePtrInput interface { pulumi.Input ToEdgeModulePtrOutput() EdgeModulePtrOutput ToEdgeModulePtrOutputWithContext(ctx context.Context) EdgeModulePtrOutput }
type EdgeModulePtrOutput ¶
type EdgeModulePtrOutput struct {
*pulumi.OutputState
}
func (EdgeModulePtrOutput) ElementType ¶
func (EdgeModulePtrOutput) ElementType() reflect.Type
func (EdgeModulePtrOutput) ToEdgeModulePtrOutput ¶
func (o EdgeModulePtrOutput) ToEdgeModulePtrOutput() EdgeModulePtrOutput
func (EdgeModulePtrOutput) ToEdgeModulePtrOutputWithContext ¶
func (o EdgeModulePtrOutput) ToEdgeModulePtrOutputWithContext(ctx context.Context) EdgeModulePtrOutput
type EdgeModuleState ¶
type EdgeModuleState struct { // Specifies the name of the Video Analyzer Edge Module. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // The name of the resource group in which to create the Video Analyzer Edge Module. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringPtrInput // The name of the Video Analyzer in which to create the Edge Module. Changing this forces a new resource to be created. VideoAnalyzerName pulumi.StringPtrInput }
func (EdgeModuleState) ElementType ¶
func (EdgeModuleState) ElementType() reflect.Type