repo
stringlengths
6
47
file_url
stringlengths
77
269
file_path
stringlengths
5
186
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-07 08:35:43
2026-01-07 08:55:24
truncated
bool
2 classes
pulumi/pulumi-azure
https://github.com/pulumi/pulumi-azure/blob/b66e1472775a89cca43f5050fef806854a7c3fa3/sdk/go/azure/appservice/sourceCodeToken.go
sdk/go/azure/appservice/sourceCodeToken.go
// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package appservice import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages an App Service source control token. // // !> **NOTE:** This resource has been deprecated in version 5.0 of the provider and will be removed in version 6.0. Please use `appservice.ServicePlan` resource instead. // // > **NOTE:** Source Control Tokens are configured at the subscription level, not on each App Service - as such this can only be configured Subscription-wide // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/appservice" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { // _, err := appservice.NewSourceCodeToken(ctx, "example", &appservice.SourceCodeTokenArgs{ // Type: pulumi.String("GitHub"), // Token: pulumi.String("7e57735e77e577e57"), // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## Import // // App Service Source Control Token's can be imported using the `type`, e.g. // // ```sh // $ pulumi import azure:appservice/sourceCodeToken:SourceCodeToken example {type} // ``` type SourceCodeToken struct { pulumi.CustomResourceState // The OAuth access token. Token pulumi.StringOutput `pulumi:"token"` // The OAuth access token secret. TokenSecret pulumi.StringPtrOutput `pulumi:"tokenSecret"` // The source control type. Possible values are `BitBucket`, `Dropbox`, `GitHub` and `OneDrive`. Type pulumi.StringOutput `pulumi:"type"` } // NewSourceCodeToken registers a new resource with the given unique name, arguments, and options. func NewSourceCodeToken(ctx *pulumi.Context, name string, args *SourceCodeTokenArgs, opts ...pulumi.ResourceOption) (*SourceCodeToken, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.Token == nil { return nil, errors.New("invalid value for required argument 'Token'") } if args.Type == nil { return nil, errors.New("invalid value for required argument 'Type'") } if args.Token != nil { args.Token = pulumi.ToSecret(args.Token).(pulumi.StringInput) } if args.TokenSecret != nil { args.TokenSecret = pulumi.ToSecret(args.TokenSecret).(pulumi.StringPtrInput) } secrets := pulumi.AdditionalSecretOutputs([]string{ "token", "tokenSecret", }) opts = append(opts, secrets) opts = internal.PkgResourceDefaultOpts(opts) var resource SourceCodeToken err := ctx.RegisterResource("azure:appservice/sourceCodeToken:SourceCodeToken", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetSourceCodeToken gets an existing SourceCodeToken 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 GetSourceCodeToken(ctx *pulumi.Context, name string, id pulumi.IDInput, state *SourceCodeTokenState, opts ...pulumi.ResourceOption) (*SourceCodeToken, error) { var resource SourceCodeToken err := ctx.ReadResource("azure:appservice/sourceCodeToken:SourceCodeToken", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering SourceCodeToken resources. type sourceCodeTokenState struct { // The OAuth access token. Token *string `pulumi:"token"` // The OAuth access token secret. TokenSecret *string `pulumi:"tokenSecret"` // The source control type. Possible values are `BitBucket`, `Dropbox`, `GitHub` and `OneDrive`. Type *string `pulumi:"type"` } type SourceCodeTokenState struct { // The OAuth access token. Token pulumi.StringPtrInput // The OAuth access token secret. TokenSecret pulumi.StringPtrInput // The source control type. Possible values are `BitBucket`, `Dropbox`, `GitHub` and `OneDrive`. Type pulumi.StringPtrInput } func (SourceCodeTokenState) ElementType() reflect.Type { return reflect.TypeOf((*sourceCodeTokenState)(nil)).Elem() } type sourceCodeTokenArgs struct { // The OAuth access token. Token string `pulumi:"token"` // The OAuth access token secret. TokenSecret *string `pulumi:"tokenSecret"` // The source control type. Possible values are `BitBucket`, `Dropbox`, `GitHub` and `OneDrive`. Type string `pulumi:"type"` } // The set of arguments for constructing a SourceCodeToken resource. type SourceCodeTokenArgs struct { // The OAuth access token. Token pulumi.StringInput // The OAuth access token secret. TokenSecret pulumi.StringPtrInput // The source control type. Possible values are `BitBucket`, `Dropbox`, `GitHub` and `OneDrive`. Type pulumi.StringInput } func (SourceCodeTokenArgs) ElementType() reflect.Type { return reflect.TypeOf((*sourceCodeTokenArgs)(nil)).Elem() } type SourceCodeTokenInput interface { pulumi.Input ToSourceCodeTokenOutput() SourceCodeTokenOutput ToSourceCodeTokenOutputWithContext(ctx context.Context) SourceCodeTokenOutput } func (*SourceCodeToken) ElementType() reflect.Type { return reflect.TypeOf((**SourceCodeToken)(nil)).Elem() } func (i *SourceCodeToken) ToSourceCodeTokenOutput() SourceCodeTokenOutput { return i.ToSourceCodeTokenOutputWithContext(context.Background()) } func (i *SourceCodeToken) ToSourceCodeTokenOutputWithContext(ctx context.Context) SourceCodeTokenOutput { return pulumi.ToOutputWithContext(ctx, i).(SourceCodeTokenOutput) } // SourceCodeTokenArrayInput is an input type that accepts SourceCodeTokenArray and SourceCodeTokenArrayOutput values. // You can construct a concrete instance of `SourceCodeTokenArrayInput` via: // // SourceCodeTokenArray{ SourceCodeTokenArgs{...} } type SourceCodeTokenArrayInput interface { pulumi.Input ToSourceCodeTokenArrayOutput() SourceCodeTokenArrayOutput ToSourceCodeTokenArrayOutputWithContext(context.Context) SourceCodeTokenArrayOutput } type SourceCodeTokenArray []SourceCodeTokenInput func (SourceCodeTokenArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*SourceCodeToken)(nil)).Elem() } func (i SourceCodeTokenArray) ToSourceCodeTokenArrayOutput() SourceCodeTokenArrayOutput { return i.ToSourceCodeTokenArrayOutputWithContext(context.Background()) } func (i SourceCodeTokenArray) ToSourceCodeTokenArrayOutputWithContext(ctx context.Context) SourceCodeTokenArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(SourceCodeTokenArrayOutput) } // SourceCodeTokenMapInput is an input type that accepts SourceCodeTokenMap and SourceCodeTokenMapOutput values. // You can construct a concrete instance of `SourceCodeTokenMapInput` via: // // SourceCodeTokenMap{ "key": SourceCodeTokenArgs{...} } type SourceCodeTokenMapInput interface { pulumi.Input ToSourceCodeTokenMapOutput() SourceCodeTokenMapOutput ToSourceCodeTokenMapOutputWithContext(context.Context) SourceCodeTokenMapOutput } type SourceCodeTokenMap map[string]SourceCodeTokenInput func (SourceCodeTokenMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*SourceCodeToken)(nil)).Elem() } func (i SourceCodeTokenMap) ToSourceCodeTokenMapOutput() SourceCodeTokenMapOutput { return i.ToSourceCodeTokenMapOutputWithContext(context.Background()) } func (i SourceCodeTokenMap) ToSourceCodeTokenMapOutputWithContext(ctx context.Context) SourceCodeTokenMapOutput { return pulumi.ToOutputWithContext(ctx, i).(SourceCodeTokenMapOutput) } type SourceCodeTokenOutput struct{ *pulumi.OutputState } func (SourceCodeTokenOutput) ElementType() reflect.Type { return reflect.TypeOf((**SourceCodeToken)(nil)).Elem() } func (o SourceCodeTokenOutput) ToSourceCodeTokenOutput() SourceCodeTokenOutput { return o } func (o SourceCodeTokenOutput) ToSourceCodeTokenOutputWithContext(ctx context.Context) SourceCodeTokenOutput { return o } // The OAuth access token. func (o SourceCodeTokenOutput) Token() pulumi.StringOutput { return o.ApplyT(func(v *SourceCodeToken) pulumi.StringOutput { return v.Token }).(pulumi.StringOutput) } // The OAuth access token secret. func (o SourceCodeTokenOutput) TokenSecret() pulumi.StringPtrOutput { return o.ApplyT(func(v *SourceCodeToken) pulumi.StringPtrOutput { return v.TokenSecret }).(pulumi.StringPtrOutput) } // The source control type. Possible values are `BitBucket`, `Dropbox`, `GitHub` and `OneDrive`. func (o SourceCodeTokenOutput) Type() pulumi.StringOutput { return o.ApplyT(func(v *SourceCodeToken) pulumi.StringOutput { return v.Type }).(pulumi.StringOutput) } type SourceCodeTokenArrayOutput struct{ *pulumi.OutputState } func (SourceCodeTokenArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*SourceCodeToken)(nil)).Elem() } func (o SourceCodeTokenArrayOutput) ToSourceCodeTokenArrayOutput() SourceCodeTokenArrayOutput { return o } func (o SourceCodeTokenArrayOutput) ToSourceCodeTokenArrayOutputWithContext(ctx context.Context) SourceCodeTokenArrayOutput { return o } func (o SourceCodeTokenArrayOutput) Index(i pulumi.IntInput) SourceCodeTokenOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *SourceCodeToken { return vs[0].([]*SourceCodeToken)[vs[1].(int)] }).(SourceCodeTokenOutput) } type SourceCodeTokenMapOutput struct{ *pulumi.OutputState } func (SourceCodeTokenMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*SourceCodeToken)(nil)).Elem() } func (o SourceCodeTokenMapOutput) ToSourceCodeTokenMapOutput() SourceCodeTokenMapOutput { return o } func (o SourceCodeTokenMapOutput) ToSourceCodeTokenMapOutputWithContext(ctx context.Context) SourceCodeTokenMapOutput { return o } func (o SourceCodeTokenMapOutput) MapIndex(k pulumi.StringInput) SourceCodeTokenOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *SourceCodeToken { return vs[0].(map[string]*SourceCodeToken)[vs[1].(string)] }).(SourceCodeTokenOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*SourceCodeTokenInput)(nil)).Elem(), &SourceCodeToken{}) pulumi.RegisterInputType(reflect.TypeOf((*SourceCodeTokenArrayInput)(nil)).Elem(), SourceCodeTokenArray{}) pulumi.RegisterInputType(reflect.TypeOf((*SourceCodeTokenMapInput)(nil)).Elem(), SourceCodeTokenMap{}) pulumi.RegisterOutputType(SourceCodeTokenOutput{}) pulumi.RegisterOutputType(SourceCodeTokenArrayOutput{}) pulumi.RegisterOutputType(SourceCodeTokenMapOutput{}) }
go
Apache-2.0
b66e1472775a89cca43f5050fef806854a7c3fa3
2026-01-07T09:44:27.619514Z
false
pulumi/pulumi-azure
https://github.com/pulumi/pulumi-azure/blob/b66e1472775a89cca43f5050fef806854a7c3fa3/sdk/go/azure/appservice/staticSite.go
sdk/go/azure/appservice/staticSite.go
// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package appservice import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages an App Service Static Site. // // > **Note:** The `appservice.StaticSite` resource is deprecated in favour of `appservice.StaticWebApp` and will be removed in a future major release. // // > **Note:** After the Static Site is provisioned, you'll need to associate your target repository, which contains your web app, to the Static Site, by following the [Azure Static Site document](https://docs.microsoft.com/azure/static-web-apps/github-actions-workflow). // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/appservice" // "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-resources"), // Location: pulumi.String("West Europe"), // }) // if err != nil { // return err // } // _, err = appservice.NewStaticSite(ctx, "example", &appservice.StaticSiteArgs{ // Name: pulumi.String("example"), // ResourceGroupName: example.Name, // Location: example.Location, // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## Import // // Static Web Apps can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:appservice/staticSite:StaticSite example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Web/staticSites/my-static-site1 // ``` type StaticSite struct { pulumi.CustomResourceState // The API key of this Static Web App, which is used for later interacting with this Static Web App from other clients, e.g. GitHub Action. ApiKey pulumi.StringOutput `pulumi:"apiKey"` // A key-value pair of App Settings. AppSettings pulumi.StringMapOutput `pulumi:"appSettings"` // The default host name of the Static Web App. DefaultHostName pulumi.StringOutput `pulumi:"defaultHostName"` // An `identity` block as defined below. Identity StaticSiteIdentityPtrOutput `pulumi:"identity"` // The Azure Region where the Static Web App should exist. Changing this forces a new Static Web App to be created. Location pulumi.StringOutput `pulumi:"location"` // The name which should be used for this Static Web App. Changing this forces a new Static Web App to be created. Name pulumi.StringOutput `pulumi:"name"` // The name of the Resource Group where the Static Web App should exist. Changing this forces a new Static Web App to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // Specifies the SKU size of the Static Web App. Possible values are `Free` or `Standard`. Defaults to `Free`. SkuSize pulumi.StringPtrOutput `pulumi:"skuSize"` // Specifies the SKU tier of the Static Web App. Possible values are `Free` or `Standard`. Defaults to `Free`. SkuTier pulumi.StringPtrOutput `pulumi:"skuTier"` // A mapping of tags to assign to the resource. Tags pulumi.StringMapOutput `pulumi:"tags"` } // NewStaticSite registers a new resource with the given unique name, arguments, and options. func NewStaticSite(ctx *pulumi.Context, name string, args *StaticSiteArgs, opts ...pulumi.ResourceOption) (*StaticSite, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.ResourceGroupName == nil { return nil, errors.New("invalid value for required argument 'ResourceGroupName'") } secrets := pulumi.AdditionalSecretOutputs([]string{ "apiKey", }) opts = append(opts, secrets) opts = internal.PkgResourceDefaultOpts(opts) var resource StaticSite err := ctx.RegisterResource("azure:appservice/staticSite:StaticSite", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetStaticSite gets an existing StaticSite 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 GetStaticSite(ctx *pulumi.Context, name string, id pulumi.IDInput, state *StaticSiteState, opts ...pulumi.ResourceOption) (*StaticSite, error) { var resource StaticSite err := ctx.ReadResource("azure:appservice/staticSite:StaticSite", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering StaticSite resources. type staticSiteState struct { // The API key of this Static Web App, which is used for later interacting with this Static Web App from other clients, e.g. GitHub Action. ApiKey *string `pulumi:"apiKey"` // A key-value pair of App Settings. AppSettings map[string]string `pulumi:"appSettings"` // The default host name of the Static Web App. DefaultHostName *string `pulumi:"defaultHostName"` // An `identity` block as defined below. Identity *StaticSiteIdentity `pulumi:"identity"` // The Azure Region where the Static Web App should exist. Changing this forces a new Static Web App to be created. Location *string `pulumi:"location"` // The name which should be used for this Static Web App. Changing this forces a new Static Web App to be created. Name *string `pulumi:"name"` // The name of the Resource Group where the Static Web App should exist. Changing this forces a new Static Web App to be created. ResourceGroupName *string `pulumi:"resourceGroupName"` // Specifies the SKU size of the Static Web App. Possible values are `Free` or `Standard`. Defaults to `Free`. SkuSize *string `pulumi:"skuSize"` // Specifies the SKU tier of the Static Web App. Possible values are `Free` or `Standard`. Defaults to `Free`. SkuTier *string `pulumi:"skuTier"` // A mapping of tags to assign to the resource. Tags map[string]string `pulumi:"tags"` } type StaticSiteState struct { // The API key of this Static Web App, which is used for later interacting with this Static Web App from other clients, e.g. GitHub Action. ApiKey pulumi.StringPtrInput // A key-value pair of App Settings. AppSettings pulumi.StringMapInput // The default host name of the Static Web App. DefaultHostName pulumi.StringPtrInput // An `identity` block as defined below. Identity StaticSiteIdentityPtrInput // The Azure Region where the Static Web App should exist. Changing this forces a new Static Web App to be created. Location pulumi.StringPtrInput // The name which should be used for this Static Web App. Changing this forces a new Static Web App to be created. Name pulumi.StringPtrInput // The name of the Resource Group where the Static Web App should exist. Changing this forces a new Static Web App to be created. ResourceGroupName pulumi.StringPtrInput // Specifies the SKU size of the Static Web App. Possible values are `Free` or `Standard`. Defaults to `Free`. SkuSize pulumi.StringPtrInput // Specifies the SKU tier of the Static Web App. Possible values are `Free` or `Standard`. Defaults to `Free`. SkuTier pulumi.StringPtrInput // A mapping of tags to assign to the resource. Tags pulumi.StringMapInput } func (StaticSiteState) ElementType() reflect.Type { return reflect.TypeOf((*staticSiteState)(nil)).Elem() } type staticSiteArgs struct { // A key-value pair of App Settings. AppSettings map[string]string `pulumi:"appSettings"` // An `identity` block as defined below. Identity *StaticSiteIdentity `pulumi:"identity"` // The Azure Region where the Static Web App should exist. Changing this forces a new Static Web App to be created. Location *string `pulumi:"location"` // The name which should be used for this Static Web App. Changing this forces a new Static Web App to be created. Name *string `pulumi:"name"` // The name of the Resource Group where the Static Web App should exist. Changing this forces a new Static Web App to be created. ResourceGroupName string `pulumi:"resourceGroupName"` // Specifies the SKU size of the Static Web App. Possible values are `Free` or `Standard`. Defaults to `Free`. SkuSize *string `pulumi:"skuSize"` // Specifies the SKU tier of the Static Web App. Possible values are `Free` or `Standard`. Defaults to `Free`. SkuTier *string `pulumi:"skuTier"` // A mapping of tags to assign to the resource. Tags map[string]string `pulumi:"tags"` } // The set of arguments for constructing a StaticSite resource. type StaticSiteArgs struct { // A key-value pair of App Settings. AppSettings pulumi.StringMapInput // An `identity` block as defined below. Identity StaticSiteIdentityPtrInput // The Azure Region where the Static Web App should exist. Changing this forces a new Static Web App to be created. Location pulumi.StringPtrInput // The name which should be used for this Static Web App. Changing this forces a new Static Web App to be created. Name pulumi.StringPtrInput // The name of the Resource Group where the Static Web App should exist. Changing this forces a new Static Web App to be created. ResourceGroupName pulumi.StringInput // Specifies the SKU size of the Static Web App. Possible values are `Free` or `Standard`. Defaults to `Free`. SkuSize pulumi.StringPtrInput // Specifies the SKU tier of the Static Web App. Possible values are `Free` or `Standard`. Defaults to `Free`. SkuTier pulumi.StringPtrInput // A mapping of tags to assign to the resource. Tags pulumi.StringMapInput } func (StaticSiteArgs) ElementType() reflect.Type { return reflect.TypeOf((*staticSiteArgs)(nil)).Elem() } type StaticSiteInput interface { pulumi.Input ToStaticSiteOutput() StaticSiteOutput ToStaticSiteOutputWithContext(ctx context.Context) StaticSiteOutput } func (*StaticSite) ElementType() reflect.Type { return reflect.TypeOf((**StaticSite)(nil)).Elem() } func (i *StaticSite) ToStaticSiteOutput() StaticSiteOutput { return i.ToStaticSiteOutputWithContext(context.Background()) } func (i *StaticSite) ToStaticSiteOutputWithContext(ctx context.Context) StaticSiteOutput { return pulumi.ToOutputWithContext(ctx, i).(StaticSiteOutput) } // StaticSiteArrayInput is an input type that accepts StaticSiteArray and StaticSiteArrayOutput values. // You can construct a concrete instance of `StaticSiteArrayInput` via: // // StaticSiteArray{ StaticSiteArgs{...} } type StaticSiteArrayInput interface { pulumi.Input ToStaticSiteArrayOutput() StaticSiteArrayOutput ToStaticSiteArrayOutputWithContext(context.Context) StaticSiteArrayOutput } type StaticSiteArray []StaticSiteInput func (StaticSiteArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*StaticSite)(nil)).Elem() } func (i StaticSiteArray) ToStaticSiteArrayOutput() StaticSiteArrayOutput { return i.ToStaticSiteArrayOutputWithContext(context.Background()) } func (i StaticSiteArray) ToStaticSiteArrayOutputWithContext(ctx context.Context) StaticSiteArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(StaticSiteArrayOutput) } // StaticSiteMapInput is an input type that accepts StaticSiteMap and StaticSiteMapOutput values. // You can construct a concrete instance of `StaticSiteMapInput` via: // // StaticSiteMap{ "key": StaticSiteArgs{...} } type StaticSiteMapInput interface { pulumi.Input ToStaticSiteMapOutput() StaticSiteMapOutput ToStaticSiteMapOutputWithContext(context.Context) StaticSiteMapOutput } type StaticSiteMap map[string]StaticSiteInput func (StaticSiteMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*StaticSite)(nil)).Elem() } func (i StaticSiteMap) ToStaticSiteMapOutput() StaticSiteMapOutput { return i.ToStaticSiteMapOutputWithContext(context.Background()) } func (i StaticSiteMap) ToStaticSiteMapOutputWithContext(ctx context.Context) StaticSiteMapOutput { return pulumi.ToOutputWithContext(ctx, i).(StaticSiteMapOutput) } type StaticSiteOutput struct{ *pulumi.OutputState } func (StaticSiteOutput) ElementType() reflect.Type { return reflect.TypeOf((**StaticSite)(nil)).Elem() } func (o StaticSiteOutput) ToStaticSiteOutput() StaticSiteOutput { return o } func (o StaticSiteOutput) ToStaticSiteOutputWithContext(ctx context.Context) StaticSiteOutput { return o } // The API key of this Static Web App, which is used for later interacting with this Static Web App from other clients, e.g. GitHub Action. func (o StaticSiteOutput) ApiKey() pulumi.StringOutput { return o.ApplyT(func(v *StaticSite) pulumi.StringOutput { return v.ApiKey }).(pulumi.StringOutput) } // A key-value pair of App Settings. func (o StaticSiteOutput) AppSettings() pulumi.StringMapOutput { return o.ApplyT(func(v *StaticSite) pulumi.StringMapOutput { return v.AppSettings }).(pulumi.StringMapOutput) } // The default host name of the Static Web App. func (o StaticSiteOutput) DefaultHostName() pulumi.StringOutput { return o.ApplyT(func(v *StaticSite) pulumi.StringOutput { return v.DefaultHostName }).(pulumi.StringOutput) } // An `identity` block as defined below. func (o StaticSiteOutput) Identity() StaticSiteIdentityPtrOutput { return o.ApplyT(func(v *StaticSite) StaticSiteIdentityPtrOutput { return v.Identity }).(StaticSiteIdentityPtrOutput) } // The Azure Region where the Static Web App should exist. Changing this forces a new Static Web App to be created. func (o StaticSiteOutput) Location() pulumi.StringOutput { return o.ApplyT(func(v *StaticSite) pulumi.StringOutput { return v.Location }).(pulumi.StringOutput) } // The name which should be used for this Static Web App. Changing this forces a new Static Web App to be created. func (o StaticSiteOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *StaticSite) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // The name of the Resource Group where the Static Web App should exist. Changing this forces a new Static Web App to be created. func (o StaticSiteOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v *StaticSite) pulumi.StringOutput { return v.ResourceGroupName }).(pulumi.StringOutput) } // Specifies the SKU size of the Static Web App. Possible values are `Free` or `Standard`. Defaults to `Free`. func (o StaticSiteOutput) SkuSize() pulumi.StringPtrOutput { return o.ApplyT(func(v *StaticSite) pulumi.StringPtrOutput { return v.SkuSize }).(pulumi.StringPtrOutput) } // Specifies the SKU tier of the Static Web App. Possible values are `Free` or `Standard`. Defaults to `Free`. func (o StaticSiteOutput) SkuTier() pulumi.StringPtrOutput { return o.ApplyT(func(v *StaticSite) pulumi.StringPtrOutput { return v.SkuTier }).(pulumi.StringPtrOutput) } // A mapping of tags to assign to the resource. func (o StaticSiteOutput) Tags() pulumi.StringMapOutput { return o.ApplyT(func(v *StaticSite) pulumi.StringMapOutput { return v.Tags }).(pulumi.StringMapOutput) } type StaticSiteArrayOutput struct{ *pulumi.OutputState } func (StaticSiteArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*StaticSite)(nil)).Elem() } func (o StaticSiteArrayOutput) ToStaticSiteArrayOutput() StaticSiteArrayOutput { return o } func (o StaticSiteArrayOutput) ToStaticSiteArrayOutputWithContext(ctx context.Context) StaticSiteArrayOutput { return o } func (o StaticSiteArrayOutput) Index(i pulumi.IntInput) StaticSiteOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *StaticSite { return vs[0].([]*StaticSite)[vs[1].(int)] }).(StaticSiteOutput) } type StaticSiteMapOutput struct{ *pulumi.OutputState } func (StaticSiteMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*StaticSite)(nil)).Elem() } func (o StaticSiteMapOutput) ToStaticSiteMapOutput() StaticSiteMapOutput { return o } func (o StaticSiteMapOutput) ToStaticSiteMapOutputWithContext(ctx context.Context) StaticSiteMapOutput { return o } func (o StaticSiteMapOutput) MapIndex(k pulumi.StringInput) StaticSiteOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *StaticSite { return vs[0].(map[string]*StaticSite)[vs[1].(string)] }).(StaticSiteOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*StaticSiteInput)(nil)).Elem(), &StaticSite{}) pulumi.RegisterInputType(reflect.TypeOf((*StaticSiteArrayInput)(nil)).Elem(), StaticSiteArray{}) pulumi.RegisterInputType(reflect.TypeOf((*StaticSiteMapInput)(nil)).Elem(), StaticSiteMap{}) pulumi.RegisterOutputType(StaticSiteOutput{}) pulumi.RegisterOutputType(StaticSiteArrayOutput{}) pulumi.RegisterOutputType(StaticSiteMapOutput{}) }
go
Apache-2.0
b66e1472775a89cca43f5050fef806854a7c3fa3
2026-01-07T09:44:27.619514Z
false
pulumi/pulumi-azure
https://github.com/pulumi/pulumi-azure/blob/b66e1472775a89cca43f5050fef806854a7c3fa3/sdk/go/azure/appservice/getAppServicePlan.go
sdk/go/azure/appservice/getAppServicePlan.go
// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package appservice import ( "context" "reflect" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Use this data source to access information about an existing App Service Plan (formerly known as a `Server Farm`). // // !> **Note:** The `appservice.Plan` data source is deprecated in version 5.0 of the provider and will be removed in version 6.0. Please use the `appservice.ServicePlan` data source instead. // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/appservice" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { // example, err := appservice.GetAppServicePlan(ctx, &appservice.GetAppServicePlanArgs{ // Name: "search-app-service-plan", // ResourceGroupName: "search-service", // }, nil) // if err != nil { // return err // } // ctx.Export("appServicePlanId", example.Id) // return nil // }) // } // // ``` func GetAppServicePlan(ctx *pulumi.Context, args *GetAppServicePlanArgs, opts ...pulumi.InvokeOption) (*GetAppServicePlanResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv GetAppServicePlanResult err := ctx.Invoke("azure:appservice/getAppServicePlan:getAppServicePlan", args, &rv, opts...) if err != nil { return nil, err } return &rv, nil } // A collection of arguments for invoking getAppServicePlan. type GetAppServicePlanArgs struct { // The name of the App Service Plan. Name string `pulumi:"name"` // The Name of the Resource Group where the App Service Plan exists. ResourceGroupName string `pulumi:"resourceGroupName"` } // A collection of values returned by getAppServicePlan. type GetAppServicePlanResult struct { // The ID of the App Service Environment where the App Service Plan is located. AppServiceEnvironmentId string `pulumi:"appServiceEnvironmentId"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` // A flag that indicates if it's a xenon plan (support for Windows Container) IsXenon bool `pulumi:"isXenon"` // The Operating System type of the App Service Plan Kind string `pulumi:"kind"` // The Azure location where the App Service Plan exists Location string `pulumi:"location"` // The maximum number of total workers allowed for this ElasticScaleEnabled App Service Plan. MaximumElasticWorkerCount int `pulumi:"maximumElasticWorkerCount"` // The maximum number of workers supported with the App Service Plan's sku. MaximumNumberOfWorkers int `pulumi:"maximumNumberOfWorkers"` Name string `pulumi:"name"` // Can Apps assigned to this App Service Plan be scaled independently? PerSiteScaling bool `pulumi:"perSiteScaling"` // Is this App Service Plan `Reserved`? Reserved bool `pulumi:"reserved"` ResourceGroupName string `pulumi:"resourceGroupName"` // A `sku` block as documented below. Sku GetAppServicePlanSku `pulumi:"sku"` // A mapping of tags assigned to the resource. Tags map[string]string `pulumi:"tags"` // App Service Plan perform availability zone balancing. ZoneRedundant bool `pulumi:"zoneRedundant"` } func GetAppServicePlanOutput(ctx *pulumi.Context, args GetAppServicePlanOutputArgs, opts ...pulumi.InvokeOption) GetAppServicePlanResultOutput { return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetAppServicePlanResultOutput, error) { args := v.(GetAppServicePlanArgs) options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} return ctx.InvokeOutput("azure:appservice/getAppServicePlan:getAppServicePlan", args, GetAppServicePlanResultOutput{}, options).(GetAppServicePlanResultOutput), nil }).(GetAppServicePlanResultOutput) } // A collection of arguments for invoking getAppServicePlan. type GetAppServicePlanOutputArgs struct { // The name of the App Service Plan. Name pulumi.StringInput `pulumi:"name"` // The Name of the Resource Group where the App Service Plan exists. ResourceGroupName pulumi.StringInput `pulumi:"resourceGroupName"` } func (GetAppServicePlanOutputArgs) ElementType() reflect.Type { return reflect.TypeOf((*GetAppServicePlanArgs)(nil)).Elem() } // A collection of values returned by getAppServicePlan. type GetAppServicePlanResultOutput struct{ *pulumi.OutputState } func (GetAppServicePlanResultOutput) ElementType() reflect.Type { return reflect.TypeOf((*GetAppServicePlanResult)(nil)).Elem() } func (o GetAppServicePlanResultOutput) ToGetAppServicePlanResultOutput() GetAppServicePlanResultOutput { return o } func (o GetAppServicePlanResultOutput) ToGetAppServicePlanResultOutputWithContext(ctx context.Context) GetAppServicePlanResultOutput { return o } // The ID of the App Service Environment where the App Service Plan is located. func (o GetAppServicePlanResultOutput) AppServiceEnvironmentId() pulumi.StringOutput { return o.ApplyT(func(v GetAppServicePlanResult) string { return v.AppServiceEnvironmentId }).(pulumi.StringOutput) } // The provider-assigned unique ID for this managed resource. func (o GetAppServicePlanResultOutput) Id() pulumi.StringOutput { return o.ApplyT(func(v GetAppServicePlanResult) string { return v.Id }).(pulumi.StringOutput) } // A flag that indicates if it's a xenon plan (support for Windows Container) func (o GetAppServicePlanResultOutput) IsXenon() pulumi.BoolOutput { return o.ApplyT(func(v GetAppServicePlanResult) bool { return v.IsXenon }).(pulumi.BoolOutput) } // The Operating System type of the App Service Plan func (o GetAppServicePlanResultOutput) Kind() pulumi.StringOutput { return o.ApplyT(func(v GetAppServicePlanResult) string { return v.Kind }).(pulumi.StringOutput) } // The Azure location where the App Service Plan exists func (o GetAppServicePlanResultOutput) Location() pulumi.StringOutput { return o.ApplyT(func(v GetAppServicePlanResult) string { return v.Location }).(pulumi.StringOutput) } // The maximum number of total workers allowed for this ElasticScaleEnabled App Service Plan. func (o GetAppServicePlanResultOutput) MaximumElasticWorkerCount() pulumi.IntOutput { return o.ApplyT(func(v GetAppServicePlanResult) int { return v.MaximumElasticWorkerCount }).(pulumi.IntOutput) } // The maximum number of workers supported with the App Service Plan's sku. func (o GetAppServicePlanResultOutput) MaximumNumberOfWorkers() pulumi.IntOutput { return o.ApplyT(func(v GetAppServicePlanResult) int { return v.MaximumNumberOfWorkers }).(pulumi.IntOutput) } func (o GetAppServicePlanResultOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v GetAppServicePlanResult) string { return v.Name }).(pulumi.StringOutput) } // Can Apps assigned to this App Service Plan be scaled independently? func (o GetAppServicePlanResultOutput) PerSiteScaling() pulumi.BoolOutput { return o.ApplyT(func(v GetAppServicePlanResult) bool { return v.PerSiteScaling }).(pulumi.BoolOutput) } // Is this App Service Plan `Reserved`? func (o GetAppServicePlanResultOutput) Reserved() pulumi.BoolOutput { return o.ApplyT(func(v GetAppServicePlanResult) bool { return v.Reserved }).(pulumi.BoolOutput) } func (o GetAppServicePlanResultOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v GetAppServicePlanResult) string { return v.ResourceGroupName }).(pulumi.StringOutput) } // A `sku` block as documented below. func (o GetAppServicePlanResultOutput) Sku() GetAppServicePlanSkuOutput { return o.ApplyT(func(v GetAppServicePlanResult) GetAppServicePlanSku { return v.Sku }).(GetAppServicePlanSkuOutput) } // A mapping of tags assigned to the resource. func (o GetAppServicePlanResultOutput) Tags() pulumi.StringMapOutput { return o.ApplyT(func(v GetAppServicePlanResult) map[string]string { return v.Tags }).(pulumi.StringMapOutput) } // App Service Plan perform availability zone balancing. func (o GetAppServicePlanResultOutput) ZoneRedundant() pulumi.BoolOutput { return o.ApplyT(func(v GetAppServicePlanResult) bool { return v.ZoneRedundant }).(pulumi.BoolOutput) } func init() { pulumi.RegisterOutputType(GetAppServicePlanResultOutput{}) }
go
Apache-2.0
b66e1472775a89cca43f5050fef806854a7c3fa3
2026-01-07T09:44:27.619514Z
false
pulumi/pulumi-azure
https://github.com/pulumi/pulumi-azure/blob/b66e1472775a89cca43f5050fef806854a7c3fa3/sdk/go/azure/appservice/getFunctionApp.go
sdk/go/azure/appservice/getFunctionApp.go
// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package appservice import ( "context" "reflect" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Use this data source to access information about a Function App. // // !> **Note:** The `appservice.FunctionApp` data source is deprecated in version 5.0 of the AzureRM provider and will be removed in version 6.0. Please use the `appservice.LinuxFunctionApp` and `appservice.WindowsFunctionApp` data sources instead. // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/appservice" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { // _, err := appservice.LookupFunctionApp(ctx, &appservice.LookupFunctionAppArgs{ // Name: "test-azure-functions", // ResourceGroupName: exampleAzurermResourceGroup.Name, // }, nil) // if err != nil { // return err // } // return nil // }) // } // // ``` func LookupFunctionApp(ctx *pulumi.Context, args *LookupFunctionAppArgs, opts ...pulumi.InvokeOption) (*LookupFunctionAppResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupFunctionAppResult err := ctx.Invoke("azure:appservice/getFunctionApp:getFunctionApp", args, &rv, opts...) if err != nil { return nil, err } return &rv, nil } // A collection of arguments for invoking getFunctionApp. type LookupFunctionAppArgs struct { // The name of the Function App resource. Name string `pulumi:"name"` // The name of the Resource Group where the Function App exists. ResourceGroupName string `pulumi:"resourceGroupName"` Tags map[string]string `pulumi:"tags"` } // A collection of values returned by getFunctionApp. type LookupFunctionAppResult struct { // The ID of the App Service Plan within which to create this Function App. AppServicePlanId string `pulumi:"appServicePlanId"` // A key-value pair of App Settings. AppSettings map[string]string `pulumi:"appSettings"` // The mode of the Function App's client certificates requirement for incoming requests. ClientCertMode string `pulumi:"clientCertMode"` // An `connectionString` block as defined below. ConnectionStrings []GetFunctionAppConnectionString `pulumi:"connectionStrings"` // An identifier used by App Service to perform domain ownership verification via DNS TXT record. CustomDomainVerificationId string `pulumi:"customDomainVerificationId"` // The default hostname associated with the Function App. DefaultHostname string `pulumi:"defaultHostname"` // Is the Function App enabled? Enabled bool `pulumi:"enabled"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` // A `identity` block as defined below. Identities []GetFunctionAppIdentity `pulumi:"identities"` Location string `pulumi:"location"` // The name for this IP Restriction. Name string `pulumi:"name"` // A string indicating the Operating System type for this function app. OsType string `pulumi:"osType"` // A comma separated list of outbound IP addresses. OutboundIpAddresses string `pulumi:"outboundIpAddresses"` // A comma separated list of outbound IP addresses, not all of which are necessarily in use. Superset of `outboundIpAddresses`. PossibleOutboundIpAddresses string `pulumi:"possibleOutboundIpAddresses"` ResourceGroupName string `pulumi:"resourceGroupName"` SiteConfigs []GetFunctionAppSiteConfig `pulumi:"siteConfigs"` // A `siteCredential` block as defined below, which contains the site-level credentials used to publish to this App Service. SiteCredentials []GetFunctionAppSiteCredential `pulumi:"siteCredentials"` // A `sourceControl` block as defined below. SourceControls []GetFunctionAppSourceControl `pulumi:"sourceControls"` Tags map[string]string `pulumi:"tags"` } func LookupFunctionAppOutput(ctx *pulumi.Context, args LookupFunctionAppOutputArgs, opts ...pulumi.InvokeOption) LookupFunctionAppResultOutput { return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupFunctionAppResultOutput, error) { args := v.(LookupFunctionAppArgs) options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} return ctx.InvokeOutput("azure:appservice/getFunctionApp:getFunctionApp", args, LookupFunctionAppResultOutput{}, options).(LookupFunctionAppResultOutput), nil }).(LookupFunctionAppResultOutput) } // A collection of arguments for invoking getFunctionApp. type LookupFunctionAppOutputArgs struct { // The name of the Function App resource. Name pulumi.StringInput `pulumi:"name"` // The name of the Resource Group where the Function App exists. ResourceGroupName pulumi.StringInput `pulumi:"resourceGroupName"` Tags pulumi.StringMapInput `pulumi:"tags"` } func (LookupFunctionAppOutputArgs) ElementType() reflect.Type { return reflect.TypeOf((*LookupFunctionAppArgs)(nil)).Elem() } // A collection of values returned by getFunctionApp. type LookupFunctionAppResultOutput struct{ *pulumi.OutputState } func (LookupFunctionAppResultOutput) ElementType() reflect.Type { return reflect.TypeOf((*LookupFunctionAppResult)(nil)).Elem() } func (o LookupFunctionAppResultOutput) ToLookupFunctionAppResultOutput() LookupFunctionAppResultOutput { return o } func (o LookupFunctionAppResultOutput) ToLookupFunctionAppResultOutputWithContext(ctx context.Context) LookupFunctionAppResultOutput { return o } // The ID of the App Service Plan within which to create this Function App. func (o LookupFunctionAppResultOutput) AppServicePlanId() pulumi.StringOutput { return o.ApplyT(func(v LookupFunctionAppResult) string { return v.AppServicePlanId }).(pulumi.StringOutput) } // A key-value pair of App Settings. func (o LookupFunctionAppResultOutput) AppSettings() pulumi.StringMapOutput { return o.ApplyT(func(v LookupFunctionAppResult) map[string]string { return v.AppSettings }).(pulumi.StringMapOutput) } // The mode of the Function App's client certificates requirement for incoming requests. func (o LookupFunctionAppResultOutput) ClientCertMode() pulumi.StringOutput { return o.ApplyT(func(v LookupFunctionAppResult) string { return v.ClientCertMode }).(pulumi.StringOutput) } // An `connectionString` block as defined below. func (o LookupFunctionAppResultOutput) ConnectionStrings() GetFunctionAppConnectionStringArrayOutput { return o.ApplyT(func(v LookupFunctionAppResult) []GetFunctionAppConnectionString { return v.ConnectionStrings }).(GetFunctionAppConnectionStringArrayOutput) } // An identifier used by App Service to perform domain ownership verification via DNS TXT record. func (o LookupFunctionAppResultOutput) CustomDomainVerificationId() pulumi.StringOutput { return o.ApplyT(func(v LookupFunctionAppResult) string { return v.CustomDomainVerificationId }).(pulumi.StringOutput) } // The default hostname associated with the Function App. func (o LookupFunctionAppResultOutput) DefaultHostname() pulumi.StringOutput { return o.ApplyT(func(v LookupFunctionAppResult) string { return v.DefaultHostname }).(pulumi.StringOutput) } // Is the Function App enabled? func (o LookupFunctionAppResultOutput) Enabled() pulumi.BoolOutput { return o.ApplyT(func(v LookupFunctionAppResult) bool { return v.Enabled }).(pulumi.BoolOutput) } // The provider-assigned unique ID for this managed resource. func (o LookupFunctionAppResultOutput) Id() pulumi.StringOutput { return o.ApplyT(func(v LookupFunctionAppResult) string { return v.Id }).(pulumi.StringOutput) } // A `identity` block as defined below. func (o LookupFunctionAppResultOutput) Identities() GetFunctionAppIdentityArrayOutput { return o.ApplyT(func(v LookupFunctionAppResult) []GetFunctionAppIdentity { return v.Identities }).(GetFunctionAppIdentityArrayOutput) } func (o LookupFunctionAppResultOutput) Location() pulumi.StringOutput { return o.ApplyT(func(v LookupFunctionAppResult) string { return v.Location }).(pulumi.StringOutput) } // The name for this IP Restriction. func (o LookupFunctionAppResultOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v LookupFunctionAppResult) string { return v.Name }).(pulumi.StringOutput) } // A string indicating the Operating System type for this function app. func (o LookupFunctionAppResultOutput) OsType() pulumi.StringOutput { return o.ApplyT(func(v LookupFunctionAppResult) string { return v.OsType }).(pulumi.StringOutput) } // A comma separated list of outbound IP addresses. func (o LookupFunctionAppResultOutput) OutboundIpAddresses() pulumi.StringOutput { return o.ApplyT(func(v LookupFunctionAppResult) string { return v.OutboundIpAddresses }).(pulumi.StringOutput) } // A comma separated list of outbound IP addresses, not all of which are necessarily in use. Superset of `outboundIpAddresses`. func (o LookupFunctionAppResultOutput) PossibleOutboundIpAddresses() pulumi.StringOutput { return o.ApplyT(func(v LookupFunctionAppResult) string { return v.PossibleOutboundIpAddresses }).(pulumi.StringOutput) } func (o LookupFunctionAppResultOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v LookupFunctionAppResult) string { return v.ResourceGroupName }).(pulumi.StringOutput) } func (o LookupFunctionAppResultOutput) SiteConfigs() GetFunctionAppSiteConfigArrayOutput { return o.ApplyT(func(v LookupFunctionAppResult) []GetFunctionAppSiteConfig { return v.SiteConfigs }).(GetFunctionAppSiteConfigArrayOutput) } // A `siteCredential` block as defined below, which contains the site-level credentials used to publish to this App Service. func (o LookupFunctionAppResultOutput) SiteCredentials() GetFunctionAppSiteCredentialArrayOutput { return o.ApplyT(func(v LookupFunctionAppResult) []GetFunctionAppSiteCredential { return v.SiteCredentials }).(GetFunctionAppSiteCredentialArrayOutput) } // A `sourceControl` block as defined below. func (o LookupFunctionAppResultOutput) SourceControls() GetFunctionAppSourceControlArrayOutput { return o.ApplyT(func(v LookupFunctionAppResult) []GetFunctionAppSourceControl { return v.SourceControls }).(GetFunctionAppSourceControlArrayOutput) } func (o LookupFunctionAppResultOutput) Tags() pulumi.StringMapOutput { return o.ApplyT(func(v LookupFunctionAppResult) map[string]string { return v.Tags }).(pulumi.StringMapOutput) } func init() { pulumi.RegisterOutputType(LookupFunctionAppResultOutput{}) }
go
Apache-2.0
b66e1472775a89cca43f5050fef806854a7c3fa3
2026-01-07T09:44:27.619514Z
false
pulumi/pulumi-azure
https://github.com/pulumi/pulumi-azure/blob/b66e1472775a89cca43f5050fef806854a7c3fa3/sdk/go/azure/appservice/slot.go
sdk/go/azure/appservice/slot.go
// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package appservice import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages an App Service Slot (within an App Service). // // !> **NOTE:** This resource has been deprecated in version 5.0 of the provider and will be removed in version 6.0. Please use `appservice.LinuxWebAppSlot` and `appservice.WindowsWebAppSlot` resources instead. // // > **Note:** When using Slots - the `appSettings`, `connectionString` and `siteConfig` blocks on the `appservice.AppService` resource will be overwritten when promoting a Slot using the `appservice.ActiveSlot` resource. // // ## Example Usage // // ### NET 4.X) // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/appservice" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core" // "github.com/pulumi/pulumi-random/sdk/v4/go/random" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { // server, err := random.NewId(ctx, "server", &random.IdArgs{ // Keepers: map[string]interface{}{ // "aziId": 1, // }, // ByteLength: 8, // }) // if err != nil { // return err // } // example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{ // Name: pulumi.String("some-resource-group"), // Location: pulumi.String("West Europe"), // }) // if err != nil { // return err // } // examplePlan, err := appservice.NewPlan(ctx, "example", &appservice.PlanArgs{ // Name: pulumi.String("some-app-service-plan"), // Location: example.Location, // ResourceGroupName: example.Name, // Sku: &appservice.PlanSkuArgs{ // Tier: pulumi.String("Standard"), // Size: pulumi.String("S1"), // }, // }) // if err != nil { // return err // } // exampleAppService, err := appservice.NewAppService(ctx, "example", &appservice.AppServiceArgs{ // Name: server.Hex, // Location: example.Location, // ResourceGroupName: example.Name, // AppServicePlanId: examplePlan.ID(), // SiteConfig: &appservice.AppServiceSiteConfigArgs{ // DotnetFrameworkVersion: pulumi.String("v4.0"), // }, // AppSettings: pulumi.StringMap{ // "SOME_KEY": pulumi.String("some-value"), // }, // ConnectionStrings: appservice.AppServiceConnectionStringArray{ // &appservice.AppServiceConnectionStringArgs{ // Name: pulumi.String("Database"), // Type: pulumi.String("SQLServer"), // Value: pulumi.String("Server=some-server.mydomain.com;Integrated Security=SSPI"), // }, // }, // }) // if err != nil { // return err // } // _, err = appservice.NewSlot(ctx, "example", &appservice.SlotArgs{ // Name: server.Hex, // AppServiceName: exampleAppService.Name, // Location: example.Location, // ResourceGroupName: example.Name, // AppServicePlanId: examplePlan.ID(), // SiteConfig: &appservice.SlotSiteConfigArgs{ // DotnetFrameworkVersion: pulumi.String("v4.0"), // }, // AppSettings: pulumi.StringMap{ // "SOME_KEY": pulumi.String("some-value"), // }, // ConnectionStrings: appservice.SlotConnectionStringArray{ // &appservice.SlotConnectionStringArgs{ // Name: pulumi.String("Database"), // Type: pulumi.String("SQLServer"), // Value: pulumi.String("Server=some-server.mydomain.com;Integrated Security=SSPI"), // }, // }, // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ### Java 1.8) // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/appservice" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core" // "github.com/pulumi/pulumi-random/sdk/v4/go/random" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { // server, err := random.NewId(ctx, "server", &random.IdArgs{ // Keepers: map[string]interface{}{ // "aziId": 1, // }, // ByteLength: 8, // }) // if err != nil { // return err // } // example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{ // Name: pulumi.String("some-resource-group"), // Location: pulumi.String("West Europe"), // }) // if err != nil { // return err // } // examplePlan, err := appservice.NewPlan(ctx, "example", &appservice.PlanArgs{ // Name: pulumi.String("some-app-service-plan"), // Location: example.Location, // ResourceGroupName: example.Name, // Sku: &appservice.PlanSkuArgs{ // Tier: pulumi.String("Standard"), // Size: pulumi.String("S1"), // }, // }) // if err != nil { // return err // } // exampleAppService, err := appservice.NewAppService(ctx, "example", &appservice.AppServiceArgs{ // Name: server.Hex, // Location: example.Location, // ResourceGroupName: example.Name, // AppServicePlanId: examplePlan.ID(), // SiteConfig: &appservice.AppServiceSiteConfigArgs{ // JavaVersion: pulumi.String("1.8"), // JavaContainer: pulumi.String("JETTY"), // JavaContainerVersion: pulumi.String("9.3"), // }, // }) // if err != nil { // return err // } // _, err = appservice.NewSlot(ctx, "example", &appservice.SlotArgs{ // Name: server.Hex, // AppServiceName: exampleAppService.Name, // Location: example.Location, // ResourceGroupName: example.Name, // AppServicePlanId: examplePlan.ID(), // SiteConfig: &appservice.SlotSiteConfigArgs{ // JavaVersion: pulumi.String("1.8"), // JavaContainer: pulumi.String("JETTY"), // JavaContainerVersion: pulumi.String("9.3"), // }, // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## Import // // App Service Slots can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:appservice/slot:Slot instance1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Web/sites/website1/slots/instance1 // ``` type Slot struct { pulumi.CustomResourceState // The name of the App Service within which to create the App Service Slot. Changing this forces a new resource to be created. AppServiceName pulumi.StringOutput `pulumi:"appServiceName"` // The ID of the App Service Plan within which to create this App Service Slot. Changing this forces a new resource to be created. AppServicePlanId pulumi.StringOutput `pulumi:"appServicePlanId"` // A key-value pair of App Settings. AppSettings pulumi.StringMapOutput `pulumi:"appSettings"` // A `authSettings` block as defined below. AuthSettings SlotAuthSettingsOutput `pulumi:"authSettings"` // Should the App Service Slot send session affinity cookies, which route client requests in the same session to the same instance? ClientAffinityEnabled pulumi.BoolOutput `pulumi:"clientAffinityEnabled"` // An `connectionString` block as defined below. ConnectionStrings SlotConnectionStringArrayOutput `pulumi:"connectionStrings"` // The Default Hostname associated with the App Service Slot - such as `mysite.azurewebsites.net` DefaultSiteHostname pulumi.StringOutput `pulumi:"defaultSiteHostname"` // Is the App Service Slot Enabled? Defaults to `true`. Enabled pulumi.BoolPtrOutput `pulumi:"enabled"` // Can the App Service Slot only be accessed via HTTPS? Defaults to `false`. HttpsOnly pulumi.BoolPtrOutput `pulumi:"httpsOnly"` // An `identity` block as defined below. Identity SlotIdentityPtrOutput `pulumi:"identity"` // The User Assigned Identity Id used for looking up KeyVault secrets. The identity must be assigned to the application. See [Access vaults with a user-assigned identity](https://docs.microsoft.com/azure/app-service/app-service-key-vault-references#access-vaults-with-a-user-assigned-identity) for more information. KeyVaultReferenceIdentityId pulumi.StringOutput `pulumi:"keyVaultReferenceIdentityId"` // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location pulumi.StringOutput `pulumi:"location"` // A `logs` block as defined below. Logs SlotLogsOutput `pulumi:"logs"` // Specifies the name of the App Service Slot component. 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 App Service Slot component. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // A `siteConfig` object as defined below. SiteConfig SlotSiteConfigOutput `pulumi:"siteConfig"` // A `siteCredential` block as defined below, which contains the site-level credentials used to publish to this App Service slot. SiteCredentials SlotSiteCredentialArrayOutput `pulumi:"siteCredentials"` // One or more `storageAccount` blocks as defined below. StorageAccounts SlotStorageAccountArrayOutput `pulumi:"storageAccounts"` // A mapping of tags to assign to the resource. Tags pulumi.StringMapOutput `pulumi:"tags"` } // NewSlot registers a new resource with the given unique name, arguments, and options. func NewSlot(ctx *pulumi.Context, name string, args *SlotArgs, opts ...pulumi.ResourceOption) (*Slot, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.AppServiceName == nil { return nil, errors.New("invalid value for required argument 'AppServiceName'") } if args.AppServicePlanId == nil { return nil, errors.New("invalid value for required argument 'AppServicePlanId'") } if args.ResourceGroupName == nil { return nil, errors.New("invalid value for required argument 'ResourceGroupName'") } opts = internal.PkgResourceDefaultOpts(opts) var resource Slot err := ctx.RegisterResource("azure:appservice/slot:Slot", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetSlot gets an existing Slot 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 GetSlot(ctx *pulumi.Context, name string, id pulumi.IDInput, state *SlotState, opts ...pulumi.ResourceOption) (*Slot, error) { var resource Slot err := ctx.ReadResource("azure:appservice/slot:Slot", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering Slot resources. type slotState struct { // The name of the App Service within which to create the App Service Slot. Changing this forces a new resource to be created. AppServiceName *string `pulumi:"appServiceName"` // The ID of the App Service Plan within which to create this App Service Slot. Changing this forces a new resource to be created. AppServicePlanId *string `pulumi:"appServicePlanId"` // A key-value pair of App Settings. AppSettings map[string]string `pulumi:"appSettings"` // A `authSettings` block as defined below. AuthSettings *SlotAuthSettings `pulumi:"authSettings"` // Should the App Service Slot send session affinity cookies, which route client requests in the same session to the same instance? ClientAffinityEnabled *bool `pulumi:"clientAffinityEnabled"` // An `connectionString` block as defined below. ConnectionStrings []SlotConnectionString `pulumi:"connectionStrings"` // The Default Hostname associated with the App Service Slot - such as `mysite.azurewebsites.net` DefaultSiteHostname *string `pulumi:"defaultSiteHostname"` // Is the App Service Slot Enabled? Defaults to `true`. Enabled *bool `pulumi:"enabled"` // Can the App Service Slot only be accessed via HTTPS? Defaults to `false`. HttpsOnly *bool `pulumi:"httpsOnly"` // An `identity` block as defined below. Identity *SlotIdentity `pulumi:"identity"` // The User Assigned Identity Id used for looking up KeyVault secrets. The identity must be assigned to the application. See [Access vaults with a user-assigned identity](https://docs.microsoft.com/azure/app-service/app-service-key-vault-references#access-vaults-with-a-user-assigned-identity) for more information. KeyVaultReferenceIdentityId *string `pulumi:"keyVaultReferenceIdentityId"` // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location *string `pulumi:"location"` // A `logs` block as defined below. Logs *SlotLogs `pulumi:"logs"` // Specifies the name of the App Service Slot component. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // The name of the resource group in which to create the App Service Slot component. Changing this forces a new resource to be created. ResourceGroupName *string `pulumi:"resourceGroupName"` // A `siteConfig` object as defined below. SiteConfig *SlotSiteConfig `pulumi:"siteConfig"` // A `siteCredential` block as defined below, which contains the site-level credentials used to publish to this App Service slot. SiteCredentials []SlotSiteCredential `pulumi:"siteCredentials"` // One or more `storageAccount` blocks as defined below. StorageAccounts []SlotStorageAccount `pulumi:"storageAccounts"` // A mapping of tags to assign to the resource. Tags map[string]string `pulumi:"tags"` } type SlotState struct { // The name of the App Service within which to create the App Service Slot. Changing this forces a new resource to be created. AppServiceName pulumi.StringPtrInput // The ID of the App Service Plan within which to create this App Service Slot. Changing this forces a new resource to be created. AppServicePlanId pulumi.StringPtrInput // A key-value pair of App Settings. AppSettings pulumi.StringMapInput // A `authSettings` block as defined below. AuthSettings SlotAuthSettingsPtrInput // Should the App Service Slot send session affinity cookies, which route client requests in the same session to the same instance? ClientAffinityEnabled pulumi.BoolPtrInput // An `connectionString` block as defined below. ConnectionStrings SlotConnectionStringArrayInput // The Default Hostname associated with the App Service Slot - such as `mysite.azurewebsites.net` DefaultSiteHostname pulumi.StringPtrInput // Is the App Service Slot Enabled? Defaults to `true`. Enabled pulumi.BoolPtrInput // Can the App Service Slot only be accessed via HTTPS? Defaults to `false`. HttpsOnly pulumi.BoolPtrInput // An `identity` block as defined below. Identity SlotIdentityPtrInput // The User Assigned Identity Id used for looking up KeyVault secrets. The identity must be assigned to the application. See [Access vaults with a user-assigned identity](https://docs.microsoft.com/azure/app-service/app-service-key-vault-references#access-vaults-with-a-user-assigned-identity) for more information. KeyVaultReferenceIdentityId pulumi.StringPtrInput // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location pulumi.StringPtrInput // A `logs` block as defined below. Logs SlotLogsPtrInput // Specifies the name of the App Service Slot component. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // The name of the resource group in which to create the App Service Slot component. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringPtrInput // A `siteConfig` object as defined below. SiteConfig SlotSiteConfigPtrInput // A `siteCredential` block as defined below, which contains the site-level credentials used to publish to this App Service slot. SiteCredentials SlotSiteCredentialArrayInput // One or more `storageAccount` blocks as defined below. StorageAccounts SlotStorageAccountArrayInput // A mapping of tags to assign to the resource. Tags pulumi.StringMapInput } func (SlotState) ElementType() reflect.Type { return reflect.TypeOf((*slotState)(nil)).Elem() } type slotArgs struct { // The name of the App Service within which to create the App Service Slot. Changing this forces a new resource to be created. AppServiceName string `pulumi:"appServiceName"` // The ID of the App Service Plan within which to create this App Service Slot. Changing this forces a new resource to be created. AppServicePlanId string `pulumi:"appServicePlanId"` // A key-value pair of App Settings. AppSettings map[string]string `pulumi:"appSettings"` // A `authSettings` block as defined below. AuthSettings *SlotAuthSettings `pulumi:"authSettings"` // Should the App Service Slot send session affinity cookies, which route client requests in the same session to the same instance? ClientAffinityEnabled *bool `pulumi:"clientAffinityEnabled"` // An `connectionString` block as defined below. ConnectionStrings []SlotConnectionString `pulumi:"connectionStrings"` // Is the App Service Slot Enabled? Defaults to `true`. Enabled *bool `pulumi:"enabled"` // Can the App Service Slot only be accessed via HTTPS? Defaults to `false`. HttpsOnly *bool `pulumi:"httpsOnly"` // An `identity` block as defined below. Identity *SlotIdentity `pulumi:"identity"` // The User Assigned Identity Id used for looking up KeyVault secrets. The identity must be assigned to the application. See [Access vaults with a user-assigned identity](https://docs.microsoft.com/azure/app-service/app-service-key-vault-references#access-vaults-with-a-user-assigned-identity) for more information. KeyVaultReferenceIdentityId *string `pulumi:"keyVaultReferenceIdentityId"` // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location *string `pulumi:"location"` // A `logs` block as defined below. Logs *SlotLogs `pulumi:"logs"` // Specifies the name of the App Service Slot component. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // The name of the resource group in which to create the App Service Slot component. Changing this forces a new resource to be created. ResourceGroupName string `pulumi:"resourceGroupName"` // A `siteConfig` object as defined below. SiteConfig *SlotSiteConfig `pulumi:"siteConfig"` // One or more `storageAccount` blocks as defined below. StorageAccounts []SlotStorageAccount `pulumi:"storageAccounts"` // A mapping of tags to assign to the resource. Tags map[string]string `pulumi:"tags"` } // The set of arguments for constructing a Slot resource. type SlotArgs struct { // The name of the App Service within which to create the App Service Slot. Changing this forces a new resource to be created. AppServiceName pulumi.StringInput // The ID of the App Service Plan within which to create this App Service Slot. Changing this forces a new resource to be created. AppServicePlanId pulumi.StringInput // A key-value pair of App Settings. AppSettings pulumi.StringMapInput // A `authSettings` block as defined below. AuthSettings SlotAuthSettingsPtrInput // Should the App Service Slot send session affinity cookies, which route client requests in the same session to the same instance? ClientAffinityEnabled pulumi.BoolPtrInput // An `connectionString` block as defined below. ConnectionStrings SlotConnectionStringArrayInput // Is the App Service Slot Enabled? Defaults to `true`. Enabled pulumi.BoolPtrInput // Can the App Service Slot only be accessed via HTTPS? Defaults to `false`. HttpsOnly pulumi.BoolPtrInput // An `identity` block as defined below. Identity SlotIdentityPtrInput // The User Assigned Identity Id used for looking up KeyVault secrets. The identity must be assigned to the application. See [Access vaults with a user-assigned identity](https://docs.microsoft.com/azure/app-service/app-service-key-vault-references#access-vaults-with-a-user-assigned-identity) for more information. KeyVaultReferenceIdentityId pulumi.StringPtrInput // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location pulumi.StringPtrInput // A `logs` block as defined below. Logs SlotLogsPtrInput // Specifies the name of the App Service Slot component. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // The name of the resource group in which to create the App Service Slot component. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringInput // A `siteConfig` object as defined below. SiteConfig SlotSiteConfigPtrInput // One or more `storageAccount` blocks as defined below. StorageAccounts SlotStorageAccountArrayInput // A mapping of tags to assign to the resource. Tags pulumi.StringMapInput } func (SlotArgs) ElementType() reflect.Type { return reflect.TypeOf((*slotArgs)(nil)).Elem() } type SlotInput interface { pulumi.Input ToSlotOutput() SlotOutput ToSlotOutputWithContext(ctx context.Context) SlotOutput } func (*Slot) ElementType() reflect.Type { return reflect.TypeOf((**Slot)(nil)).Elem() } func (i *Slot) ToSlotOutput() SlotOutput { return i.ToSlotOutputWithContext(context.Background()) } func (i *Slot) ToSlotOutputWithContext(ctx context.Context) SlotOutput { return pulumi.ToOutputWithContext(ctx, i).(SlotOutput) } // SlotArrayInput is an input type that accepts SlotArray and SlotArrayOutput values. // You can construct a concrete instance of `SlotArrayInput` via: // // SlotArray{ SlotArgs{...} } type SlotArrayInput interface { pulumi.Input ToSlotArrayOutput() SlotArrayOutput ToSlotArrayOutputWithContext(context.Context) SlotArrayOutput } type SlotArray []SlotInput func (SlotArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*Slot)(nil)).Elem() } func (i SlotArray) ToSlotArrayOutput() SlotArrayOutput { return i.ToSlotArrayOutputWithContext(context.Background()) } func (i SlotArray) ToSlotArrayOutputWithContext(ctx context.Context) SlotArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(SlotArrayOutput) } // SlotMapInput is an input type that accepts SlotMap and SlotMapOutput values. // You can construct a concrete instance of `SlotMapInput` via: // // SlotMap{ "key": SlotArgs{...} } type SlotMapInput interface { pulumi.Input ToSlotMapOutput() SlotMapOutput ToSlotMapOutputWithContext(context.Context) SlotMapOutput } type SlotMap map[string]SlotInput func (SlotMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*Slot)(nil)).Elem() } func (i SlotMap) ToSlotMapOutput() SlotMapOutput { return i.ToSlotMapOutputWithContext(context.Background()) } func (i SlotMap) ToSlotMapOutputWithContext(ctx context.Context) SlotMapOutput { return pulumi.ToOutputWithContext(ctx, i).(SlotMapOutput) } type SlotOutput struct{ *pulumi.OutputState } func (SlotOutput) ElementType() reflect.Type { return reflect.TypeOf((**Slot)(nil)).Elem() } func (o SlotOutput) ToSlotOutput() SlotOutput { return o } func (o SlotOutput) ToSlotOutputWithContext(ctx context.Context) SlotOutput { return o } // The name of the App Service within which to create the App Service Slot. Changing this forces a new resource to be created. func (o SlotOutput) AppServiceName() pulumi.StringOutput { return o.ApplyT(func(v *Slot) pulumi.StringOutput { return v.AppServiceName }).(pulumi.StringOutput) } // The ID of the App Service Plan within which to create this App Service Slot. Changing this forces a new resource to be created. func (o SlotOutput) AppServicePlanId() pulumi.StringOutput { return o.ApplyT(func(v *Slot) pulumi.StringOutput { return v.AppServicePlanId }).(pulumi.StringOutput) } // A key-value pair of App Settings. func (o SlotOutput) AppSettings() pulumi.StringMapOutput { return o.ApplyT(func(v *Slot) pulumi.StringMapOutput { return v.AppSettings }).(pulumi.StringMapOutput) } // A `authSettings` block as defined below. func (o SlotOutput) AuthSettings() SlotAuthSettingsOutput { return o.ApplyT(func(v *Slot) SlotAuthSettingsOutput { return v.AuthSettings }).(SlotAuthSettingsOutput) } // Should the App Service Slot send session affinity cookies, which route client requests in the same session to the same instance? func (o SlotOutput) ClientAffinityEnabled() pulumi.BoolOutput { return o.ApplyT(func(v *Slot) pulumi.BoolOutput { return v.ClientAffinityEnabled }).(pulumi.BoolOutput) } // An `connectionString` block as defined below. func (o SlotOutput) ConnectionStrings() SlotConnectionStringArrayOutput { return o.ApplyT(func(v *Slot) SlotConnectionStringArrayOutput { return v.ConnectionStrings }).(SlotConnectionStringArrayOutput) } // The Default Hostname associated with the App Service Slot - such as `mysite.azurewebsites.net` func (o SlotOutput) DefaultSiteHostname() pulumi.StringOutput { return o.ApplyT(func(v *Slot) pulumi.StringOutput { return v.DefaultSiteHostname }).(pulumi.StringOutput) } // Is the App Service Slot Enabled? Defaults to `true`. func (o SlotOutput) Enabled() pulumi.BoolPtrOutput { return o.ApplyT(func(v *Slot) pulumi.BoolPtrOutput { return v.Enabled }).(pulumi.BoolPtrOutput) } // Can the App Service Slot only be accessed via HTTPS? Defaults to `false`. func (o SlotOutput) HttpsOnly() pulumi.BoolPtrOutput { return o.ApplyT(func(v *Slot) pulumi.BoolPtrOutput { return v.HttpsOnly }).(pulumi.BoolPtrOutput) } // An `identity` block as defined below. func (o SlotOutput) Identity() SlotIdentityPtrOutput { return o.ApplyT(func(v *Slot) SlotIdentityPtrOutput { return v.Identity }).(SlotIdentityPtrOutput) } // The User Assigned Identity Id used for looking up KeyVault secrets. The identity must be assigned to the application. See [Access vaults with a user-assigned identity](https://docs.microsoft.com/azure/app-service/app-service-key-vault-references#access-vaults-with-a-user-assigned-identity) for more information. func (o SlotOutput) KeyVaultReferenceIdentityId() pulumi.StringOutput { return o.ApplyT(func(v *Slot) pulumi.StringOutput { return v.KeyVaultReferenceIdentityId }).(pulumi.StringOutput) } // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. func (o SlotOutput) Location() pulumi.StringOutput { return o.ApplyT(func(v *Slot) pulumi.StringOutput { return v.Location }).(pulumi.StringOutput) } // A `logs` block as defined below. func (o SlotOutput) Logs() SlotLogsOutput { return o.ApplyT(func(v *Slot) SlotLogsOutput { return v.Logs }).(SlotLogsOutput) } // Specifies the name of the App Service Slot component. Changing this forces a new resource to be created. func (o SlotOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *Slot) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // The name of the resource group in which to create the App Service Slot component. Changing this forces a new resource to be created. func (o SlotOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v *Slot) pulumi.StringOutput { return v.ResourceGroupName }).(pulumi.StringOutput) } // A `siteConfig` object as defined below. func (o SlotOutput) SiteConfig() SlotSiteConfigOutput { return o.ApplyT(func(v *Slot) SlotSiteConfigOutput { return v.SiteConfig }).(SlotSiteConfigOutput) } // A `siteCredential` block as defined below, which contains the site-level credentials used to publish to this App Service slot. func (o SlotOutput) SiteCredentials() SlotSiteCredentialArrayOutput { return o.ApplyT(func(v *Slot) SlotSiteCredentialArrayOutput { return v.SiteCredentials }).(SlotSiteCredentialArrayOutput) } // One or more `storageAccount` blocks as defined below. func (o SlotOutput) StorageAccounts() SlotStorageAccountArrayOutput { return o.ApplyT(func(v *Slot) SlotStorageAccountArrayOutput { return v.StorageAccounts }).(SlotStorageAccountArrayOutput) } // A mapping of tags to assign to the resource. func (o SlotOutput) Tags() pulumi.StringMapOutput { return o.ApplyT(func(v *Slot) pulumi.StringMapOutput { return v.Tags }).(pulumi.StringMapOutput) } type SlotArrayOutput struct{ *pulumi.OutputState } func (SlotArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*Slot)(nil)).Elem() } func (o SlotArrayOutput) ToSlotArrayOutput() SlotArrayOutput { return o } func (o SlotArrayOutput) ToSlotArrayOutputWithContext(ctx context.Context) SlotArrayOutput { return o } func (o SlotArrayOutput) Index(i pulumi.IntInput) SlotOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *Slot { return vs[0].([]*Slot)[vs[1].(int)] }).(SlotOutput) } type SlotMapOutput struct{ *pulumi.OutputState } func (SlotMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*Slot)(nil)).Elem() } func (o SlotMapOutput) ToSlotMapOutput() SlotMapOutput { return o } func (o SlotMapOutput) ToSlotMapOutputWithContext(ctx context.Context) SlotMapOutput { return o } func (o SlotMapOutput) MapIndex(k pulumi.StringInput) SlotOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *Slot { return vs[0].(map[string]*Slot)[vs[1].(string)] }).(SlotOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*SlotInput)(nil)).Elem(), &Slot{}) pulumi.RegisterInputType(reflect.TypeOf((*SlotArrayInput)(nil)).Elem(), SlotArray{}) pulumi.RegisterInputType(reflect.TypeOf((*SlotMapInput)(nil)).Elem(), SlotMap{}) pulumi.RegisterOutputType(SlotOutput{}) pulumi.RegisterOutputType(SlotArrayOutput{}) pulumi.RegisterOutputType(SlotMapOutput{}) }
go
Apache-2.0
b66e1472775a89cca43f5050fef806854a7c3fa3
2026-01-07T09:44:27.619514Z
false
pulumi/pulumi-azure
https://github.com/pulumi/pulumi-azure/blob/b66e1472775a89cca43f5050fef806854a7c3fa3/sdk/go/azure/appservice/managedCertificate.go
sdk/go/azure/appservice/managedCertificate.go
// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package appservice import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // This certificate can be used to secure custom domains on App Services (Windows and Linux) hosted on an App Service Plan of Basic and above (free and shared tiers are not supported). // // > **Note:** A certificate is valid for six months, and about a month before the certificate’s expiration date, App Services renews/rotates the certificate. This is managed by Azure and doesn't require this resource to be changed or reprovisioned. It will change the `thumbprint` computed attribute the next time the resource is refreshed after rotation occurs, so keep that in mind if you have any dependencies on this attribute directly. // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/appservice" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/dns" // "github.com/pulumi/pulumi-std/sdk/go/std" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { // exampleResourceGroup, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{ // Name: pulumi.String("example-resources"), // Location: pulumi.String("West Europe"), // }) // if err != nil { // return err // } // example := dns.LookupZoneOutput(ctx, dns.GetZoneOutputArgs{ // Name: pulumi.String("mydomain.com"), // ResourceGroupName: exampleResourceGroup.Name, // }, nil) // examplePlan, err := appservice.NewPlan(ctx, "example", &appservice.PlanArgs{ // Name: pulumi.String("example-plan"), // Location: exampleResourceGroup.Location, // ResourceGroupName: exampleResourceGroup.Name, // Kind: pulumi.Any("Linux"), // Reserved: pulumi.Bool(true), // Sku: &appservice.PlanSkuArgs{ // Tier: pulumi.String("Basic"), // Size: pulumi.String("B1"), // }, // }) // if err != nil { // return err // } // exampleAppService, err := appservice.NewAppService(ctx, "example", &appservice.AppServiceArgs{ // Name: pulumi.String("example-app"), // Location: exampleResourceGroup.Location, // ResourceGroupName: exampleResourceGroup.Name, // AppServicePlanId: examplePlan.ID(), // }) // if err != nil { // return err // } // _, err = dns.NewTxtRecord(ctx, "example", &dns.TxtRecordArgs{ // Name: pulumi.String("asuid.mycustomhost.contoso.com"), // ZoneName: pulumi.String(example.ApplyT(func(example dns.GetZoneResult) (*string, error) { // return &example.Name, nil // }).(pulumi.StringPtrOutput)), // ResourceGroupName: pulumi.String(example.ApplyT(func(example dns.GetZoneResult) (*string, error) { // return &example.ResourceGroupName, nil // }).(pulumi.StringPtrOutput)), // Ttl: pulumi.Int(300), // Records: dns.TxtRecordRecordArray{ // &dns.TxtRecordRecordArgs{ // Value: exampleAppService.CustomDomainVerificationId, // }, // }, // }) // if err != nil { // return err // } // exampleCNameRecord, err := dns.NewCNameRecord(ctx, "example", &dns.CNameRecordArgs{ // Name: pulumi.String("example-adcr"), // ZoneName: pulumi.String(example.ApplyT(func(example dns.GetZoneResult) (*string, error) { // return &example.Name, nil // }).(pulumi.StringPtrOutput)), // ResourceGroupName: pulumi.String(example.ApplyT(func(example dns.GetZoneResult) (*string, error) { // return &example.ResourceGroupName, nil // }).(pulumi.StringPtrOutput)), // Ttl: pulumi.Int(300), // Record: exampleAppService.DefaultSiteHostname, // }) // if err != nil { // return err // } // exampleCustomHostnameBinding, err := appservice.NewCustomHostnameBinding(ctx, "example", &appservice.CustomHostnameBindingArgs{ // Hostname: pulumi.String(std.JoinOutput(ctx, std.JoinOutputArgs{ // Separator: pulumi.String("."), // Input: pulumi.StringArray{ // exampleCNameRecord.Name, // exampleCNameRecord.ZoneName, // }, // }, nil).ApplyT(func(invoke std.JoinResult) (*string, error) { // return invoke.Result, nil // }).(pulumi.StringPtrOutput)), // AppServiceName: exampleAppService.Name, // ResourceGroupName: exampleResourceGroup.Name, // }) // if err != nil { // return err // } // exampleManagedCertificate, err := appservice.NewManagedCertificate(ctx, "example", &appservice.ManagedCertificateArgs{ // CustomHostnameBindingId: exampleCustomHostnameBinding.ID(), // }) // if err != nil { // return err // } // _, err = appservice.NewCertificateBinding(ctx, "example", &appservice.CertificateBindingArgs{ // HostnameBindingId: exampleCustomHostnameBinding.ID(), // CertificateId: exampleManagedCertificate.ID(), // SslState: pulumi.String("SniEnabled"), // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## Import // // App Service Managed Certificates can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:appservice/managedCertificate:ManagedCertificate example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resGroup1/providers/Microsoft.Web/certificates/customhost.contoso.com // ``` type ManagedCertificate struct { pulumi.CustomResourceState // The Canonical Name of the Certificate. CanonicalName pulumi.StringOutput `pulumi:"canonicalName"` // The ID of the App Service Custom Hostname Binding for the Certificate. Changing this forces a new App Service Managed Certificate to be created. CustomHostnameBindingId pulumi.StringOutput `pulumi:"customHostnameBindingId"` // The expiration date of the Certificate. ExpirationDate pulumi.StringOutput `pulumi:"expirationDate"` // The friendly name of the Certificate. FriendlyName pulumi.StringOutput `pulumi:"friendlyName"` // The list of Host Names for the Certificate. HostNames pulumi.StringArrayOutput `pulumi:"hostNames"` // The Start date for the Certificate. IssueDate pulumi.StringOutput `pulumi:"issueDate"` // The issuer of the Certificate. Issuer pulumi.StringOutput `pulumi:"issuer"` // The Subject Name for the Certificate. SubjectName pulumi.StringOutput `pulumi:"subjectName"` // A mapping of tags which should be assigned to the App Service Managed Certificate. Tags pulumi.StringMapOutput `pulumi:"tags"` // The Certificate Thumbprint. Thumbprint pulumi.StringOutput `pulumi:"thumbprint"` } // NewManagedCertificate registers a new resource with the given unique name, arguments, and options. func NewManagedCertificate(ctx *pulumi.Context, name string, args *ManagedCertificateArgs, opts ...pulumi.ResourceOption) (*ManagedCertificate, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.CustomHostnameBindingId == nil { return nil, errors.New("invalid value for required argument 'CustomHostnameBindingId'") } opts = internal.PkgResourceDefaultOpts(opts) var resource ManagedCertificate err := ctx.RegisterResource("azure:appservice/managedCertificate:ManagedCertificate", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetManagedCertificate gets an existing ManagedCertificate 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 GetManagedCertificate(ctx *pulumi.Context, name string, id pulumi.IDInput, state *ManagedCertificateState, opts ...pulumi.ResourceOption) (*ManagedCertificate, error) { var resource ManagedCertificate err := ctx.ReadResource("azure:appservice/managedCertificate:ManagedCertificate", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering ManagedCertificate resources. type managedCertificateState struct { // The Canonical Name of the Certificate. CanonicalName *string `pulumi:"canonicalName"` // The ID of the App Service Custom Hostname Binding for the Certificate. Changing this forces a new App Service Managed Certificate to be created. CustomHostnameBindingId *string `pulumi:"customHostnameBindingId"` // The expiration date of the Certificate. ExpirationDate *string `pulumi:"expirationDate"` // The friendly name of the Certificate. FriendlyName *string `pulumi:"friendlyName"` // The list of Host Names for the Certificate. HostNames []string `pulumi:"hostNames"` // The Start date for the Certificate. IssueDate *string `pulumi:"issueDate"` // The issuer of the Certificate. Issuer *string `pulumi:"issuer"` // The Subject Name for the Certificate. SubjectName *string `pulumi:"subjectName"` // A mapping of tags which should be assigned to the App Service Managed Certificate. Tags map[string]string `pulumi:"tags"` // The Certificate Thumbprint. Thumbprint *string `pulumi:"thumbprint"` } type ManagedCertificateState struct { // The Canonical Name of the Certificate. CanonicalName pulumi.StringPtrInput // The ID of the App Service Custom Hostname Binding for the Certificate. Changing this forces a new App Service Managed Certificate to be created. CustomHostnameBindingId pulumi.StringPtrInput // The expiration date of the Certificate. ExpirationDate pulumi.StringPtrInput // The friendly name of the Certificate. FriendlyName pulumi.StringPtrInput // The list of Host Names for the Certificate. HostNames pulumi.StringArrayInput // The Start date for the Certificate. IssueDate pulumi.StringPtrInput // The issuer of the Certificate. Issuer pulumi.StringPtrInput // The Subject Name for the Certificate. SubjectName pulumi.StringPtrInput // A mapping of tags which should be assigned to the App Service Managed Certificate. Tags pulumi.StringMapInput // The Certificate Thumbprint. Thumbprint pulumi.StringPtrInput } func (ManagedCertificateState) ElementType() reflect.Type { return reflect.TypeOf((*managedCertificateState)(nil)).Elem() } type managedCertificateArgs struct { // The ID of the App Service Custom Hostname Binding for the Certificate. Changing this forces a new App Service Managed Certificate to be created. CustomHostnameBindingId string `pulumi:"customHostnameBindingId"` // A mapping of tags which should be assigned to the App Service Managed Certificate. Tags map[string]string `pulumi:"tags"` } // The set of arguments for constructing a ManagedCertificate resource. type ManagedCertificateArgs struct { // The ID of the App Service Custom Hostname Binding for the Certificate. Changing this forces a new App Service Managed Certificate to be created. CustomHostnameBindingId pulumi.StringInput // A mapping of tags which should be assigned to the App Service Managed Certificate. Tags pulumi.StringMapInput } func (ManagedCertificateArgs) ElementType() reflect.Type { return reflect.TypeOf((*managedCertificateArgs)(nil)).Elem() } type ManagedCertificateInput interface { pulumi.Input ToManagedCertificateOutput() ManagedCertificateOutput ToManagedCertificateOutputWithContext(ctx context.Context) ManagedCertificateOutput } func (*ManagedCertificate) ElementType() reflect.Type { return reflect.TypeOf((**ManagedCertificate)(nil)).Elem() } func (i *ManagedCertificate) ToManagedCertificateOutput() ManagedCertificateOutput { return i.ToManagedCertificateOutputWithContext(context.Background()) } func (i *ManagedCertificate) ToManagedCertificateOutputWithContext(ctx context.Context) ManagedCertificateOutput { return pulumi.ToOutputWithContext(ctx, i).(ManagedCertificateOutput) } // ManagedCertificateArrayInput is an input type that accepts ManagedCertificateArray and ManagedCertificateArrayOutput values. // You can construct a concrete instance of `ManagedCertificateArrayInput` via: // // ManagedCertificateArray{ ManagedCertificateArgs{...} } type ManagedCertificateArrayInput interface { pulumi.Input ToManagedCertificateArrayOutput() ManagedCertificateArrayOutput ToManagedCertificateArrayOutputWithContext(context.Context) ManagedCertificateArrayOutput } type ManagedCertificateArray []ManagedCertificateInput func (ManagedCertificateArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*ManagedCertificate)(nil)).Elem() } func (i ManagedCertificateArray) ToManagedCertificateArrayOutput() ManagedCertificateArrayOutput { return i.ToManagedCertificateArrayOutputWithContext(context.Background()) } func (i ManagedCertificateArray) ToManagedCertificateArrayOutputWithContext(ctx context.Context) ManagedCertificateArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(ManagedCertificateArrayOutput) } // ManagedCertificateMapInput is an input type that accepts ManagedCertificateMap and ManagedCertificateMapOutput values. // You can construct a concrete instance of `ManagedCertificateMapInput` via: // // ManagedCertificateMap{ "key": ManagedCertificateArgs{...} } type ManagedCertificateMapInput interface { pulumi.Input ToManagedCertificateMapOutput() ManagedCertificateMapOutput ToManagedCertificateMapOutputWithContext(context.Context) ManagedCertificateMapOutput } type ManagedCertificateMap map[string]ManagedCertificateInput func (ManagedCertificateMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*ManagedCertificate)(nil)).Elem() } func (i ManagedCertificateMap) ToManagedCertificateMapOutput() ManagedCertificateMapOutput { return i.ToManagedCertificateMapOutputWithContext(context.Background()) } func (i ManagedCertificateMap) ToManagedCertificateMapOutputWithContext(ctx context.Context) ManagedCertificateMapOutput { return pulumi.ToOutputWithContext(ctx, i).(ManagedCertificateMapOutput) } type ManagedCertificateOutput struct{ *pulumi.OutputState } func (ManagedCertificateOutput) ElementType() reflect.Type { return reflect.TypeOf((**ManagedCertificate)(nil)).Elem() } func (o ManagedCertificateOutput) ToManagedCertificateOutput() ManagedCertificateOutput { return o } func (o ManagedCertificateOutput) ToManagedCertificateOutputWithContext(ctx context.Context) ManagedCertificateOutput { return o } // The Canonical Name of the Certificate. func (o ManagedCertificateOutput) CanonicalName() pulumi.StringOutput { return o.ApplyT(func(v *ManagedCertificate) pulumi.StringOutput { return v.CanonicalName }).(pulumi.StringOutput) } // The ID of the App Service Custom Hostname Binding for the Certificate. Changing this forces a new App Service Managed Certificate to be created. func (o ManagedCertificateOutput) CustomHostnameBindingId() pulumi.StringOutput { return o.ApplyT(func(v *ManagedCertificate) pulumi.StringOutput { return v.CustomHostnameBindingId }).(pulumi.StringOutput) } // The expiration date of the Certificate. func (o ManagedCertificateOutput) ExpirationDate() pulumi.StringOutput { return o.ApplyT(func(v *ManagedCertificate) pulumi.StringOutput { return v.ExpirationDate }).(pulumi.StringOutput) } // The friendly name of the Certificate. func (o ManagedCertificateOutput) FriendlyName() pulumi.StringOutput { return o.ApplyT(func(v *ManagedCertificate) pulumi.StringOutput { return v.FriendlyName }).(pulumi.StringOutput) } // The list of Host Names for the Certificate. func (o ManagedCertificateOutput) HostNames() pulumi.StringArrayOutput { return o.ApplyT(func(v *ManagedCertificate) pulumi.StringArrayOutput { return v.HostNames }).(pulumi.StringArrayOutput) } // The Start date for the Certificate. func (o ManagedCertificateOutput) IssueDate() pulumi.StringOutput { return o.ApplyT(func(v *ManagedCertificate) pulumi.StringOutput { return v.IssueDate }).(pulumi.StringOutput) } // The issuer of the Certificate. func (o ManagedCertificateOutput) Issuer() pulumi.StringOutput { return o.ApplyT(func(v *ManagedCertificate) pulumi.StringOutput { return v.Issuer }).(pulumi.StringOutput) } // The Subject Name for the Certificate. func (o ManagedCertificateOutput) SubjectName() pulumi.StringOutput { return o.ApplyT(func(v *ManagedCertificate) pulumi.StringOutput { return v.SubjectName }).(pulumi.StringOutput) } // A mapping of tags which should be assigned to the App Service Managed Certificate. func (o ManagedCertificateOutput) Tags() pulumi.StringMapOutput { return o.ApplyT(func(v *ManagedCertificate) pulumi.StringMapOutput { return v.Tags }).(pulumi.StringMapOutput) } // The Certificate Thumbprint. func (o ManagedCertificateOutput) Thumbprint() pulumi.StringOutput { return o.ApplyT(func(v *ManagedCertificate) pulumi.StringOutput { return v.Thumbprint }).(pulumi.StringOutput) } type ManagedCertificateArrayOutput struct{ *pulumi.OutputState } func (ManagedCertificateArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*ManagedCertificate)(nil)).Elem() } func (o ManagedCertificateArrayOutput) ToManagedCertificateArrayOutput() ManagedCertificateArrayOutput { return o } func (o ManagedCertificateArrayOutput) ToManagedCertificateArrayOutputWithContext(ctx context.Context) ManagedCertificateArrayOutput { return o } func (o ManagedCertificateArrayOutput) Index(i pulumi.IntInput) ManagedCertificateOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *ManagedCertificate { return vs[0].([]*ManagedCertificate)[vs[1].(int)] }).(ManagedCertificateOutput) } type ManagedCertificateMapOutput struct{ *pulumi.OutputState } func (ManagedCertificateMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*ManagedCertificate)(nil)).Elem() } func (o ManagedCertificateMapOutput) ToManagedCertificateMapOutput() ManagedCertificateMapOutput { return o } func (o ManagedCertificateMapOutput) ToManagedCertificateMapOutputWithContext(ctx context.Context) ManagedCertificateMapOutput { return o } func (o ManagedCertificateMapOutput) MapIndex(k pulumi.StringInput) ManagedCertificateOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *ManagedCertificate { return vs[0].(map[string]*ManagedCertificate)[vs[1].(string)] }).(ManagedCertificateOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*ManagedCertificateInput)(nil)).Elem(), &ManagedCertificate{}) pulumi.RegisterInputType(reflect.TypeOf((*ManagedCertificateArrayInput)(nil)).Elem(), ManagedCertificateArray{}) pulumi.RegisterInputType(reflect.TypeOf((*ManagedCertificateMapInput)(nil)).Elem(), ManagedCertificateMap{}) pulumi.RegisterOutputType(ManagedCertificateOutput{}) pulumi.RegisterOutputType(ManagedCertificateArrayOutput{}) pulumi.RegisterOutputType(ManagedCertificateMapOutput{}) }
go
Apache-2.0
b66e1472775a89cca43f5050fef806854a7c3fa3
2026-01-07T09:44:27.619514Z
false
pulumi/pulumi-azure
https://github.com/pulumi/pulumi-azure/blob/b66e1472775a89cca43f5050fef806854a7c3fa3/sdk/go/azure/appservice/getWindowsWebApp.go
sdk/go/azure/appservice/getWindowsWebApp.go
// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package appservice import ( "context" "reflect" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Use this data source to access information about an existing Windows Web App. // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/appservice" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { // example, err := appservice.LookupWindowsWebApp(ctx, &appservice.LookupWindowsWebAppArgs{ // Name: "existing", // ResourceGroupName: "existing", // }, nil) // if err != nil { // return err // } // ctx.Export("id", example.Id) // return nil // }) // } // // ``` // // ## API Providers // // <!-- This section is generated, changes will be overwritten --> // This data source uses the following Azure API Providers: // // * `Microsoft.Web` - 2023-12-01 func LookupWindowsWebApp(ctx *pulumi.Context, args *LookupWindowsWebAppArgs, opts ...pulumi.InvokeOption) (*LookupWindowsWebAppResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupWindowsWebAppResult err := ctx.Invoke("azure:appservice/getWindowsWebApp:getWindowsWebApp", args, &rv, opts...) if err != nil { return nil, err } return &rv, nil } // A collection of arguments for invoking getWindowsWebApp. type LookupWindowsWebAppArgs struct { // The name of this Windows Web App. Name string `pulumi:"name"` // The name of the Resource Group where the Windows Web App exists. ResourceGroupName string `pulumi:"resourceGroupName"` } // A collection of values returned by getWindowsWebApp. type LookupWindowsWebAppResult struct { // A map of key-value pairs of App Settings. AppSettings map[string]string `pulumi:"appSettings"` // A `authSettings` block as defined below. AuthSettings []GetWindowsWebAppAuthSetting `pulumi:"authSettings"` // An `authSettingsV2` block as defined below. AuthSettingsV2s []GetWindowsWebAppAuthSettingsV2 `pulumi:"authSettingsV2s"` // A `backup` block as defined below. Backups []GetWindowsWebAppBackup `pulumi:"backups"` // Is Client Affinity enabled? ClientAffinityEnabled bool `pulumi:"clientAffinityEnabled"` // Are Client Certificates enabled? ClientCertificateEnabled bool `pulumi:"clientCertificateEnabled"` // Paths to exclude when using client certificates, separated by ; ClientCertificateExclusionPaths string `pulumi:"clientCertificateExclusionPaths"` // The Client Certificate mode. ClientCertificateMode string `pulumi:"clientCertificateMode"` // A `connectionString` block as defined below. ConnectionStrings []GetWindowsWebAppConnectionString `pulumi:"connectionStrings"` // The identifier used by App Service to perform domain ownership verification via DNS TXT record. CustomDomainVerificationId string `pulumi:"customDomainVerificationId"` // The Default Hostname of the Windows Web App. DefaultHostname string `pulumi:"defaultHostname"` // Is the Backup enabled? Enabled bool `pulumi:"enabled"` // Are the default FTP Basic Authentication publishing credentials enabled. FtpPublishBasicAuthenticationEnabled bool `pulumi:"ftpPublishBasicAuthenticationEnabled"` // The ID of the App Service Environment used by App Service. HostingEnvironmentId string `pulumi:"hostingEnvironmentId"` // Does the Windows Web App require HTTPS connections. HttpsOnly bool `pulumi:"httpsOnly"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` // A `identity` block as defined below. Identities []GetWindowsWebAppIdentity `pulumi:"identities"` // The string representation of the Windows Web App Kind. Kind string `pulumi:"kind"` // The Azure Region where the Windows Web App exists. Location string `pulumi:"location"` // A `logs` block as defined below. Logs []GetWindowsWebAppLog `pulumi:"logs"` // The name of this Storage Account. Name string `pulumi:"name"` // The list of Outbound IP Addresses for this Windows Web App. OutboundIpAddressLists []string `pulumi:"outboundIpAddressLists"` // A string representation of the list of Outbound IP Addresses for this Windows Web App. OutboundIpAddresses string `pulumi:"outboundIpAddresses"` // The list of Possible Outbound IP Addresses that could be used by this Windows Web App. PossibleOutboundIpAddressLists []string `pulumi:"possibleOutboundIpAddressLists"` // The string representation of the list of Possible Outbound IP Addresses that could be used by this Windows Web App. PossibleOutboundIpAddresses string `pulumi:"possibleOutboundIpAddresses"` // Is Public Network Access enabled for the Windows Web App. PublicNetworkAccessEnabled bool `pulumi:"publicNetworkAccessEnabled"` ResourceGroupName string `pulumi:"resourceGroupName"` // The ID of the Service Plan in which this Windows Web App resides. ServicePlanId string `pulumi:"servicePlanId"` // A `siteConfig` block as defined below. SiteConfigs []GetWindowsWebAppSiteConfig `pulumi:"siteConfigs"` // A `siteCredential` block as defined below. SiteCredentials []GetWindowsWebAppSiteCredential `pulumi:"siteCredentials"` // A `stickySettings` block as defined below. StickySettings []GetWindowsWebAppStickySetting `pulumi:"stickySettings"` // A `storageAccount` block as defined below. StorageAccounts []GetWindowsWebAppStorageAccount `pulumi:"storageAccounts"` // A mapping of tags assigned to the Windows Web App. Tags map[string]string `pulumi:"tags"` VirtualNetworkBackupRestoreEnabled bool `pulumi:"virtualNetworkBackupRestoreEnabled"` // The subnet id which the Windows Web App is vNet Integrated with. VirtualNetworkSubnetId string `pulumi:"virtualNetworkSubnetId"` // Are the default WebDeploy Basic Authentication publishing credentials enabled. WebdeployPublishBasicAuthenticationEnabled bool `pulumi:"webdeployPublishBasicAuthenticationEnabled"` } func LookupWindowsWebAppOutput(ctx *pulumi.Context, args LookupWindowsWebAppOutputArgs, opts ...pulumi.InvokeOption) LookupWindowsWebAppResultOutput { return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupWindowsWebAppResultOutput, error) { args := v.(LookupWindowsWebAppArgs) options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} return ctx.InvokeOutput("azure:appservice/getWindowsWebApp:getWindowsWebApp", args, LookupWindowsWebAppResultOutput{}, options).(LookupWindowsWebAppResultOutput), nil }).(LookupWindowsWebAppResultOutput) } // A collection of arguments for invoking getWindowsWebApp. type LookupWindowsWebAppOutputArgs struct { // The name of this Windows Web App. Name pulumi.StringInput `pulumi:"name"` // The name of the Resource Group where the Windows Web App exists. ResourceGroupName pulumi.StringInput `pulumi:"resourceGroupName"` } func (LookupWindowsWebAppOutputArgs) ElementType() reflect.Type { return reflect.TypeOf((*LookupWindowsWebAppArgs)(nil)).Elem() } // A collection of values returned by getWindowsWebApp. type LookupWindowsWebAppResultOutput struct{ *pulumi.OutputState } func (LookupWindowsWebAppResultOutput) ElementType() reflect.Type { return reflect.TypeOf((*LookupWindowsWebAppResult)(nil)).Elem() } func (o LookupWindowsWebAppResultOutput) ToLookupWindowsWebAppResultOutput() LookupWindowsWebAppResultOutput { return o } func (o LookupWindowsWebAppResultOutput) ToLookupWindowsWebAppResultOutputWithContext(ctx context.Context) LookupWindowsWebAppResultOutput { return o } // A map of key-value pairs of App Settings. func (o LookupWindowsWebAppResultOutput) AppSettings() pulumi.StringMapOutput { return o.ApplyT(func(v LookupWindowsWebAppResult) map[string]string { return v.AppSettings }).(pulumi.StringMapOutput) } // A `authSettings` block as defined below. func (o LookupWindowsWebAppResultOutput) AuthSettings() GetWindowsWebAppAuthSettingArrayOutput { return o.ApplyT(func(v LookupWindowsWebAppResult) []GetWindowsWebAppAuthSetting { return v.AuthSettings }).(GetWindowsWebAppAuthSettingArrayOutput) } // An `authSettingsV2` block as defined below. func (o LookupWindowsWebAppResultOutput) AuthSettingsV2s() GetWindowsWebAppAuthSettingsV2ArrayOutput { return o.ApplyT(func(v LookupWindowsWebAppResult) []GetWindowsWebAppAuthSettingsV2 { return v.AuthSettingsV2s }).(GetWindowsWebAppAuthSettingsV2ArrayOutput) } // A `backup` block as defined below. func (o LookupWindowsWebAppResultOutput) Backups() GetWindowsWebAppBackupArrayOutput { return o.ApplyT(func(v LookupWindowsWebAppResult) []GetWindowsWebAppBackup { return v.Backups }).(GetWindowsWebAppBackupArrayOutput) } // Is Client Affinity enabled? func (o LookupWindowsWebAppResultOutput) ClientAffinityEnabled() pulumi.BoolOutput { return o.ApplyT(func(v LookupWindowsWebAppResult) bool { return v.ClientAffinityEnabled }).(pulumi.BoolOutput) } // Are Client Certificates enabled? func (o LookupWindowsWebAppResultOutput) ClientCertificateEnabled() pulumi.BoolOutput { return o.ApplyT(func(v LookupWindowsWebAppResult) bool { return v.ClientCertificateEnabled }).(pulumi.BoolOutput) } // Paths to exclude when using client certificates, separated by ; func (o LookupWindowsWebAppResultOutput) ClientCertificateExclusionPaths() pulumi.StringOutput { return o.ApplyT(func(v LookupWindowsWebAppResult) string { return v.ClientCertificateExclusionPaths }).(pulumi.StringOutput) } // The Client Certificate mode. func (o LookupWindowsWebAppResultOutput) ClientCertificateMode() pulumi.StringOutput { return o.ApplyT(func(v LookupWindowsWebAppResult) string { return v.ClientCertificateMode }).(pulumi.StringOutput) } // A `connectionString` block as defined below. func (o LookupWindowsWebAppResultOutput) ConnectionStrings() GetWindowsWebAppConnectionStringArrayOutput { return o.ApplyT(func(v LookupWindowsWebAppResult) []GetWindowsWebAppConnectionString { return v.ConnectionStrings }).(GetWindowsWebAppConnectionStringArrayOutput) } // The identifier used by App Service to perform domain ownership verification via DNS TXT record. func (o LookupWindowsWebAppResultOutput) CustomDomainVerificationId() pulumi.StringOutput { return o.ApplyT(func(v LookupWindowsWebAppResult) string { return v.CustomDomainVerificationId }).(pulumi.StringOutput) } // The Default Hostname of the Windows Web App. func (o LookupWindowsWebAppResultOutput) DefaultHostname() pulumi.StringOutput { return o.ApplyT(func(v LookupWindowsWebAppResult) string { return v.DefaultHostname }).(pulumi.StringOutput) } // Is the Backup enabled? func (o LookupWindowsWebAppResultOutput) Enabled() pulumi.BoolOutput { return o.ApplyT(func(v LookupWindowsWebAppResult) bool { return v.Enabled }).(pulumi.BoolOutput) } // Are the default FTP Basic Authentication publishing credentials enabled. func (o LookupWindowsWebAppResultOutput) FtpPublishBasicAuthenticationEnabled() pulumi.BoolOutput { return o.ApplyT(func(v LookupWindowsWebAppResult) bool { return v.FtpPublishBasicAuthenticationEnabled }).(pulumi.BoolOutput) } // The ID of the App Service Environment used by App Service. func (o LookupWindowsWebAppResultOutput) HostingEnvironmentId() pulumi.StringOutput { return o.ApplyT(func(v LookupWindowsWebAppResult) string { return v.HostingEnvironmentId }).(pulumi.StringOutput) } // Does the Windows Web App require HTTPS connections. func (o LookupWindowsWebAppResultOutput) HttpsOnly() pulumi.BoolOutput { return o.ApplyT(func(v LookupWindowsWebAppResult) bool { return v.HttpsOnly }).(pulumi.BoolOutput) } // The provider-assigned unique ID for this managed resource. func (o LookupWindowsWebAppResultOutput) Id() pulumi.StringOutput { return o.ApplyT(func(v LookupWindowsWebAppResult) string { return v.Id }).(pulumi.StringOutput) } // A `identity` block as defined below. func (o LookupWindowsWebAppResultOutput) Identities() GetWindowsWebAppIdentityArrayOutput { return o.ApplyT(func(v LookupWindowsWebAppResult) []GetWindowsWebAppIdentity { return v.Identities }).(GetWindowsWebAppIdentityArrayOutput) } // The string representation of the Windows Web App Kind. func (o LookupWindowsWebAppResultOutput) Kind() pulumi.StringOutput { return o.ApplyT(func(v LookupWindowsWebAppResult) string { return v.Kind }).(pulumi.StringOutput) } // The Azure Region where the Windows Web App exists. func (o LookupWindowsWebAppResultOutput) Location() pulumi.StringOutput { return o.ApplyT(func(v LookupWindowsWebAppResult) string { return v.Location }).(pulumi.StringOutput) } // A `logs` block as defined below. func (o LookupWindowsWebAppResultOutput) Logs() GetWindowsWebAppLogArrayOutput { return o.ApplyT(func(v LookupWindowsWebAppResult) []GetWindowsWebAppLog { return v.Logs }).(GetWindowsWebAppLogArrayOutput) } // The name of this Storage Account. func (o LookupWindowsWebAppResultOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v LookupWindowsWebAppResult) string { return v.Name }).(pulumi.StringOutput) } // The list of Outbound IP Addresses for this Windows Web App. func (o LookupWindowsWebAppResultOutput) OutboundIpAddressLists() pulumi.StringArrayOutput { return o.ApplyT(func(v LookupWindowsWebAppResult) []string { return v.OutboundIpAddressLists }).(pulumi.StringArrayOutput) } // A string representation of the list of Outbound IP Addresses for this Windows Web App. func (o LookupWindowsWebAppResultOutput) OutboundIpAddresses() pulumi.StringOutput { return o.ApplyT(func(v LookupWindowsWebAppResult) string { return v.OutboundIpAddresses }).(pulumi.StringOutput) } // The list of Possible Outbound IP Addresses that could be used by this Windows Web App. func (o LookupWindowsWebAppResultOutput) PossibleOutboundIpAddressLists() pulumi.StringArrayOutput { return o.ApplyT(func(v LookupWindowsWebAppResult) []string { return v.PossibleOutboundIpAddressLists }).(pulumi.StringArrayOutput) } // The string representation of the list of Possible Outbound IP Addresses that could be used by this Windows Web App. func (o LookupWindowsWebAppResultOutput) PossibleOutboundIpAddresses() pulumi.StringOutput { return o.ApplyT(func(v LookupWindowsWebAppResult) string { return v.PossibleOutboundIpAddresses }).(pulumi.StringOutput) } // Is Public Network Access enabled for the Windows Web App. func (o LookupWindowsWebAppResultOutput) PublicNetworkAccessEnabled() pulumi.BoolOutput { return o.ApplyT(func(v LookupWindowsWebAppResult) bool { return v.PublicNetworkAccessEnabled }).(pulumi.BoolOutput) } func (o LookupWindowsWebAppResultOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v LookupWindowsWebAppResult) string { return v.ResourceGroupName }).(pulumi.StringOutput) } // The ID of the Service Plan in which this Windows Web App resides. func (o LookupWindowsWebAppResultOutput) ServicePlanId() pulumi.StringOutput { return o.ApplyT(func(v LookupWindowsWebAppResult) string { return v.ServicePlanId }).(pulumi.StringOutput) } // A `siteConfig` block as defined below. func (o LookupWindowsWebAppResultOutput) SiteConfigs() GetWindowsWebAppSiteConfigArrayOutput { return o.ApplyT(func(v LookupWindowsWebAppResult) []GetWindowsWebAppSiteConfig { return v.SiteConfigs }).(GetWindowsWebAppSiteConfigArrayOutput) } // A `siteCredential` block as defined below. func (o LookupWindowsWebAppResultOutput) SiteCredentials() GetWindowsWebAppSiteCredentialArrayOutput { return o.ApplyT(func(v LookupWindowsWebAppResult) []GetWindowsWebAppSiteCredential { return v.SiteCredentials }).(GetWindowsWebAppSiteCredentialArrayOutput) } // A `stickySettings` block as defined below. func (o LookupWindowsWebAppResultOutput) StickySettings() GetWindowsWebAppStickySettingArrayOutput { return o.ApplyT(func(v LookupWindowsWebAppResult) []GetWindowsWebAppStickySetting { return v.StickySettings }).(GetWindowsWebAppStickySettingArrayOutput) } // A `storageAccount` block as defined below. func (o LookupWindowsWebAppResultOutput) StorageAccounts() GetWindowsWebAppStorageAccountArrayOutput { return o.ApplyT(func(v LookupWindowsWebAppResult) []GetWindowsWebAppStorageAccount { return v.StorageAccounts }).(GetWindowsWebAppStorageAccountArrayOutput) } // A mapping of tags assigned to the Windows Web App. func (o LookupWindowsWebAppResultOutput) Tags() pulumi.StringMapOutput { return o.ApplyT(func(v LookupWindowsWebAppResult) map[string]string { return v.Tags }).(pulumi.StringMapOutput) } func (o LookupWindowsWebAppResultOutput) VirtualNetworkBackupRestoreEnabled() pulumi.BoolOutput { return o.ApplyT(func(v LookupWindowsWebAppResult) bool { return v.VirtualNetworkBackupRestoreEnabled }).(pulumi.BoolOutput) } // The subnet id which the Windows Web App is vNet Integrated with. func (o LookupWindowsWebAppResultOutput) VirtualNetworkSubnetId() pulumi.StringOutput { return o.ApplyT(func(v LookupWindowsWebAppResult) string { return v.VirtualNetworkSubnetId }).(pulumi.StringOutput) } // Are the default WebDeploy Basic Authentication publishing credentials enabled. func (o LookupWindowsWebAppResultOutput) WebdeployPublishBasicAuthenticationEnabled() pulumi.BoolOutput { return o.ApplyT(func(v LookupWindowsWebAppResult) bool { return v.WebdeployPublishBasicAuthenticationEnabled }).(pulumi.BoolOutput) } func init() { pulumi.RegisterOutputType(LookupWindowsWebAppResultOutput{}) }
go
Apache-2.0
b66e1472775a89cca43f5050fef806854a7c3fa3
2026-01-07T09:44:27.619514Z
false
pulumi/pulumi-azure
https://github.com/pulumi/pulumi-azure/blob/b66e1472775a89cca43f5050fef806854a7c3fa3/sdk/go/azure/appservice/functionApp.go
sdk/go/azure/appservice/functionApp.go
// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package appservice import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a Function App. // // !> **NOTE:** This resource has been deprecated in version 5.0 of the provider and will be removed in version 6.0. Please use `appservice.LinuxFunctionApp` and `appservice.WindowsFunctionApp` resources instead. // // > **Note:** To connect an Azure Function App and a subnet within the same region `appservice.VirtualNetworkSwiftConnection` can be used. // For an example, check the `appservice.VirtualNetworkSwiftConnection` documentation. // // ## Example Usage // // ### With App Service Plan) // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/appservice" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/storage" // "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("azure-functions-test-rg"), // Location: pulumi.String("West Europe"), // }) // if err != nil { // return err // } // exampleAccount, err := storage.NewAccount(ctx, "example", &storage.AccountArgs{ // Name: pulumi.String("functionsapptestsa"), // ResourceGroupName: example.Name, // Location: example.Location, // AccountTier: pulumi.String("Standard"), // AccountReplicationType: pulumi.String("LRS"), // }) // if err != nil { // return err // } // examplePlan, err := appservice.NewPlan(ctx, "example", &appservice.PlanArgs{ // Name: pulumi.String("azure-functions-test-service-plan"), // Location: example.Location, // ResourceGroupName: example.Name, // Sku: &appservice.PlanSkuArgs{ // Tier: pulumi.String("Standard"), // Size: pulumi.String("S1"), // }, // }) // if err != nil { // return err // } // _, err = appservice.NewFunctionApp(ctx, "example", &appservice.FunctionAppArgs{ // Name: pulumi.String("test-azure-functions"), // Location: example.Location, // ResourceGroupName: example.Name, // AppServicePlanId: examplePlan.ID(), // StorageAccountName: exampleAccount.Name, // StorageAccountAccessKey: exampleAccount.PrimaryAccessKey, // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ### In A Consumption Plan) // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/appservice" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/storage" // "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("azure-functions-cptest-rg"), // Location: pulumi.String("West Europe"), // }) // if err != nil { // return err // } // exampleAccount, err := storage.NewAccount(ctx, "example", &storage.AccountArgs{ // Name: pulumi.String("functionsapptestsa"), // ResourceGroupName: example.Name, // Location: example.Location, // AccountTier: pulumi.String("Standard"), // AccountReplicationType: pulumi.String("LRS"), // }) // if err != nil { // return err // } // examplePlan, err := appservice.NewPlan(ctx, "example", &appservice.PlanArgs{ // Name: pulumi.String("azure-functions-test-service-plan"), // Location: example.Location, // ResourceGroupName: example.Name, // Kind: pulumi.Any("FunctionApp"), // Sku: &appservice.PlanSkuArgs{ // Tier: pulumi.String("Dynamic"), // Size: pulumi.String("Y1"), // }, // }) // if err != nil { // return err // } // _, err = appservice.NewFunctionApp(ctx, "example", &appservice.FunctionAppArgs{ // Name: pulumi.String("test-azure-functions"), // Location: example.Location, // ResourceGroupName: example.Name, // AppServicePlanId: examplePlan.ID(), // StorageAccountName: exampleAccount.Name, // StorageAccountAccessKey: exampleAccount.PrimaryAccessKey, // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ### Linux) // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/appservice" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/storage" // "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("azure-functions-cptest-rg"), // Location: pulumi.String("West Europe"), // }) // if err != nil { // return err // } // exampleAccount, err := storage.NewAccount(ctx, "example", &storage.AccountArgs{ // Name: pulumi.String("functionsapptestsa"), // ResourceGroupName: example.Name, // Location: example.Location, // AccountTier: pulumi.String("Standard"), // AccountReplicationType: pulumi.String("LRS"), // }) // if err != nil { // return err // } // examplePlan, err := appservice.NewPlan(ctx, "example", &appservice.PlanArgs{ // Name: pulumi.String("azure-functions-test-service-plan"), // Location: example.Location, // ResourceGroupName: example.Name, // Kind: pulumi.Any("Linux"), // Reserved: pulumi.Bool(true), // Sku: &appservice.PlanSkuArgs{ // Tier: pulumi.String("Dynamic"), // Size: pulumi.String("Y1"), // }, // }) // if err != nil { // return err // } // _, err = appservice.NewFunctionApp(ctx, "example", &appservice.FunctionAppArgs{ // Name: pulumi.String("test-azure-functions"), // Location: example.Location, // ResourceGroupName: example.Name, // AppServicePlanId: examplePlan.ID(), // StorageAccountName: exampleAccount.Name, // StorageAccountAccessKey: exampleAccount.PrimaryAccessKey, // OsType: pulumi.String("linux"), // Version: pulumi.String("~3"), // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // > **Note:** Version `~3` or `~4` is required for Linux Function Apps. // // ### Python In A Consumption Plan) // // > **Note:** The Python runtime is only supported on a Linux based hosting plan. See [the documentation for additional information](https://docs.microsoft.com/azure/azure-functions/functions-reference-python). // // ## Import // // Function Apps can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:appservice/functionApp:FunctionApp functionapp1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Web/sites/functionapp1 // ``` type FunctionApp struct { pulumi.CustomResourceState // The ID of the App Service Plan within which to create this Function App. AppServicePlanId pulumi.StringOutput `pulumi:"appServicePlanId"` // A map of key-value pairs for [App Settings](https://docs.microsoft.com/azure/azure-functions/functions-app-settings) and custom values. // // > **NOTE:** The values for `AzureWebJobsStorage` and `FUNCTIONS_EXTENSION_VERSION` will be filled by other input arguments and shouldn't be configured separately. `AzureWebJobsStorage` is filled based on `storageAccountName` and `storageAccountAccessKey`. `FUNCTIONS_EXTENSION_VERSION` is filled based on `version`. AppSettings pulumi.StringMapOutput `pulumi:"appSettings"` // A `authSettings` block as defined below. AuthSettings FunctionAppAuthSettingsOutput `pulumi:"authSettings"` // The mode of the Function App's client certificates requirement for incoming requests. Possible values are `Required` and `Optional`. ClientCertMode pulumi.StringPtrOutput `pulumi:"clientCertMode"` // An `connectionString` block as defined below. ConnectionStrings FunctionAppConnectionStringArrayOutput `pulumi:"connectionStrings"` // An identifier used by App Service to perform domain ownership verification via DNS TXT record. CustomDomainVerificationId pulumi.StringOutput `pulumi:"customDomainVerificationId"` // The amount of memory in gigabyte-seconds that your application is allowed to consume per day. Setting this value only affects function apps under the consumption plan. DailyMemoryTimeQuota pulumi.IntPtrOutput `pulumi:"dailyMemoryTimeQuota"` // The default hostname associated with the Function App - such as `mysite.azurewebsites.net` DefaultHostname pulumi.StringOutput `pulumi:"defaultHostname"` // Should the built-in logging of this Function App be enabled? Defaults to `true`. EnableBuiltinLogging pulumi.BoolPtrOutput `pulumi:"enableBuiltinLogging"` // Is the Function App enabled? Defaults to `true`. Enabled pulumi.BoolPtrOutput `pulumi:"enabled"` // Can the Function App only be accessed via HTTPS? Defaults to `false`. HttpsOnly pulumi.BoolPtrOutput `pulumi:"httpsOnly"` // An `identity` block as defined below. Identity FunctionAppIdentityPtrOutput `pulumi:"identity"` // The User Assigned Identity Id used for looking up KeyVault secrets. The identity must be assigned to the application. See [Access vaults with a user-assigned identity](https://docs.microsoft.com/azure/app-service/app-service-key-vault-references#access-vaults-with-a-user-assigned-identity) for more information. KeyVaultReferenceIdentityId pulumi.StringOutput `pulumi:"keyVaultReferenceIdentityId"` // The Function App kind - such as `functionapp,linux,container` Kind pulumi.StringOutput `pulumi:"kind"` // 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 Function App. Changing this forces a new resource to be created. Limit the function name to 32 characters to avoid naming collisions. For more information about [Function App naming rule](https://docs.microsoft.com/azure/azure-resource-manager/management/resource-name-rules#microsoftweb). Name pulumi.StringOutput `pulumi:"name"` // A string indicating the Operating System type for this function app. Possible values are `linux` and ``(empty string). Changing this forces a new resource to be created. Defaults to `""`. // // > **NOTE:** This value will be `linux` for Linux derivatives, or an empty string for Windows (default). When set to `linux` you must also set `appservice.Plan` arguments as `kind = "Linux"` and `reserved = true` OsType pulumi.StringPtrOutput `pulumi:"osType"` // A comma separated list of outbound IP addresses - such as `52.23.25.3,52.143.43.12` OutboundIpAddresses pulumi.StringOutput `pulumi:"outboundIpAddresses"` // A comma separated list of outbound IP addresses - such as `52.23.25.3,52.143.43.12,52.143.43.17` - not all of which are necessarily in use. Superset of `outboundIpAddresses`. PossibleOutboundIpAddresses pulumi.StringOutput `pulumi:"possibleOutboundIpAddresses"` // The name of the resource group in which to create the Function App. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // A `siteConfig` object as defined below. SiteConfig FunctionAppSiteConfigOutput `pulumi:"siteConfig"` // A `siteCredential` block as defined below, which contains the site-level credentials used to publish to this App Service. SiteCredentials FunctionAppSiteCredentialArrayOutput `pulumi:"siteCredentials"` // A `sourceControl` block, as defined below. SourceControl FunctionAppSourceControlOutput `pulumi:"sourceControl"` // The access key which will be used to access the backend storage account for the Function App. // // > **Note:** When integrating a `CI/CD pipeline` and expecting to run from a deployed package in `Azure` you must seed your `app settings` as part of the application code for function app to be successfully deployed. `Important Default key pairs`: (`"WEBSITE_RUN_FROM_PACKAGE" = ""`, `"FUNCTIONS_WORKER_RUNTIME" = "node"` (or python, etc), `"WEBSITE_NODE_DEFAULT_VERSION" = "10.14.1"`, `"APPINSIGHTS_INSTRUMENTATIONKEY" = ""`). // // > **Note:** When using an App Service Plan in the `Free` or `Shared` Tiers `use32BitWorkerProcess` must be set to `true`. StorageAccountAccessKey pulumi.StringOutput `pulumi:"storageAccountAccessKey"` // The backend storage account name which will be used by this Function App (such as the dashboard, logs). Changing this forces a new resource to be created. StorageAccountName pulumi.StringOutput `pulumi:"storageAccountName"` // A mapping of tags to assign to the resource. Tags pulumi.StringMapOutput `pulumi:"tags"` // The runtime version associated with the Function App. Defaults to `~1`. Version pulumi.StringPtrOutput `pulumi:"version"` } // NewFunctionApp registers a new resource with the given unique name, arguments, and options. func NewFunctionApp(ctx *pulumi.Context, name string, args *FunctionAppArgs, opts ...pulumi.ResourceOption) (*FunctionApp, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.AppServicePlanId == nil { return nil, errors.New("invalid value for required argument 'AppServicePlanId'") } if args.ResourceGroupName == nil { return nil, errors.New("invalid value for required argument 'ResourceGroupName'") } if args.StorageAccountAccessKey == nil { return nil, errors.New("invalid value for required argument 'StorageAccountAccessKey'") } if args.StorageAccountName == nil { return nil, errors.New("invalid value for required argument 'StorageAccountName'") } if args.StorageAccountAccessKey != nil { args.StorageAccountAccessKey = pulumi.ToSecret(args.StorageAccountAccessKey).(pulumi.StringInput) } secrets := pulumi.AdditionalSecretOutputs([]string{ "storageAccountAccessKey", }) opts = append(opts, secrets) opts = internal.PkgResourceDefaultOpts(opts) var resource FunctionApp err := ctx.RegisterResource("azure:appservice/functionApp:FunctionApp", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetFunctionApp gets an existing FunctionApp 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 GetFunctionApp(ctx *pulumi.Context, name string, id pulumi.IDInput, state *FunctionAppState, opts ...pulumi.ResourceOption) (*FunctionApp, error) { var resource FunctionApp err := ctx.ReadResource("azure:appservice/functionApp:FunctionApp", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering FunctionApp resources. type functionAppState struct { // The ID of the App Service Plan within which to create this Function App. AppServicePlanId *string `pulumi:"appServicePlanId"` // A map of key-value pairs for [App Settings](https://docs.microsoft.com/azure/azure-functions/functions-app-settings) and custom values. // // > **NOTE:** The values for `AzureWebJobsStorage` and `FUNCTIONS_EXTENSION_VERSION` will be filled by other input arguments and shouldn't be configured separately. `AzureWebJobsStorage` is filled based on `storageAccountName` and `storageAccountAccessKey`. `FUNCTIONS_EXTENSION_VERSION` is filled based on `version`. AppSettings map[string]string `pulumi:"appSettings"` // A `authSettings` block as defined below. AuthSettings *FunctionAppAuthSettings `pulumi:"authSettings"` // The mode of the Function App's client certificates requirement for incoming requests. Possible values are `Required` and `Optional`. ClientCertMode *string `pulumi:"clientCertMode"` // An `connectionString` block as defined below. ConnectionStrings []FunctionAppConnectionString `pulumi:"connectionStrings"` // An identifier used by App Service to perform domain ownership verification via DNS TXT record. CustomDomainVerificationId *string `pulumi:"customDomainVerificationId"` // The amount of memory in gigabyte-seconds that your application is allowed to consume per day. Setting this value only affects function apps under the consumption plan. DailyMemoryTimeQuota *int `pulumi:"dailyMemoryTimeQuota"` // The default hostname associated with the Function App - such as `mysite.azurewebsites.net` DefaultHostname *string `pulumi:"defaultHostname"` // Should the built-in logging of this Function App be enabled? Defaults to `true`. EnableBuiltinLogging *bool `pulumi:"enableBuiltinLogging"` // Is the Function App enabled? Defaults to `true`. Enabled *bool `pulumi:"enabled"` // Can the Function App only be accessed via HTTPS? Defaults to `false`. HttpsOnly *bool `pulumi:"httpsOnly"` // An `identity` block as defined below. Identity *FunctionAppIdentity `pulumi:"identity"` // The User Assigned Identity Id used for looking up KeyVault secrets. The identity must be assigned to the application. See [Access vaults with a user-assigned identity](https://docs.microsoft.com/azure/app-service/app-service-key-vault-references#access-vaults-with-a-user-assigned-identity) for more information. KeyVaultReferenceIdentityId *string `pulumi:"keyVaultReferenceIdentityId"` // The Function App kind - such as `functionapp,linux,container` Kind *string `pulumi:"kind"` // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location *string `pulumi:"location"` // Specifies the name of the Function App. Changing this forces a new resource to be created. Limit the function name to 32 characters to avoid naming collisions. For more information about [Function App naming rule](https://docs.microsoft.com/azure/azure-resource-manager/management/resource-name-rules#microsoftweb). Name *string `pulumi:"name"` // A string indicating the Operating System type for this function app. Possible values are `linux` and ``(empty string). Changing this forces a new resource to be created. Defaults to `""`. // // > **NOTE:** This value will be `linux` for Linux derivatives, or an empty string for Windows (default). When set to `linux` you must also set `appservice.Plan` arguments as `kind = "Linux"` and `reserved = true` OsType *string `pulumi:"osType"` // A comma separated list of outbound IP addresses - such as `52.23.25.3,52.143.43.12` OutboundIpAddresses *string `pulumi:"outboundIpAddresses"` // A comma separated list of outbound IP addresses - such as `52.23.25.3,52.143.43.12,52.143.43.17` - not all of which are necessarily in use. Superset of `outboundIpAddresses`. PossibleOutboundIpAddresses *string `pulumi:"possibleOutboundIpAddresses"` // The name of the resource group in which to create the Function App. Changing this forces a new resource to be created. ResourceGroupName *string `pulumi:"resourceGroupName"` // A `siteConfig` object as defined below. SiteConfig *FunctionAppSiteConfig `pulumi:"siteConfig"` // A `siteCredential` block as defined below, which contains the site-level credentials used to publish to this App Service. SiteCredentials []FunctionAppSiteCredential `pulumi:"siteCredentials"` // A `sourceControl` block, as defined below. SourceControl *FunctionAppSourceControl `pulumi:"sourceControl"` // The access key which will be used to access the backend storage account for the Function App. // // > **Note:** When integrating a `CI/CD pipeline` and expecting to run from a deployed package in `Azure` you must seed your `app settings` as part of the application code for function app to be successfully deployed. `Important Default key pairs`: (`"WEBSITE_RUN_FROM_PACKAGE" = ""`, `"FUNCTIONS_WORKER_RUNTIME" = "node"` (or python, etc), `"WEBSITE_NODE_DEFAULT_VERSION" = "10.14.1"`, `"APPINSIGHTS_INSTRUMENTATIONKEY" = ""`). // // > **Note:** When using an App Service Plan in the `Free` or `Shared` Tiers `use32BitWorkerProcess` must be set to `true`. StorageAccountAccessKey *string `pulumi:"storageAccountAccessKey"` // The backend storage account name which will be used by this Function App (such as the dashboard, logs). Changing this forces a new resource to be created. StorageAccountName *string `pulumi:"storageAccountName"` // A mapping of tags to assign to the resource. Tags map[string]string `pulumi:"tags"` // The runtime version associated with the Function App. Defaults to `~1`. Version *string `pulumi:"version"` } type FunctionAppState struct { // The ID of the App Service Plan within which to create this Function App. AppServicePlanId pulumi.StringPtrInput // A map of key-value pairs for [App Settings](https://docs.microsoft.com/azure/azure-functions/functions-app-settings) and custom values. // // > **NOTE:** The values for `AzureWebJobsStorage` and `FUNCTIONS_EXTENSION_VERSION` will be filled by other input arguments and shouldn't be configured separately. `AzureWebJobsStorage` is filled based on `storageAccountName` and `storageAccountAccessKey`. `FUNCTIONS_EXTENSION_VERSION` is filled based on `version`. AppSettings pulumi.StringMapInput // A `authSettings` block as defined below. AuthSettings FunctionAppAuthSettingsPtrInput // The mode of the Function App's client certificates requirement for incoming requests. Possible values are `Required` and `Optional`. ClientCertMode pulumi.StringPtrInput // An `connectionString` block as defined below. ConnectionStrings FunctionAppConnectionStringArrayInput // An identifier used by App Service to perform domain ownership verification via DNS TXT record. CustomDomainVerificationId pulumi.StringPtrInput // The amount of memory in gigabyte-seconds that your application is allowed to consume per day. Setting this value only affects function apps under the consumption plan. DailyMemoryTimeQuota pulumi.IntPtrInput // The default hostname associated with the Function App - such as `mysite.azurewebsites.net` DefaultHostname pulumi.StringPtrInput // Should the built-in logging of this Function App be enabled? Defaults to `true`. EnableBuiltinLogging pulumi.BoolPtrInput // Is the Function App enabled? Defaults to `true`. Enabled pulumi.BoolPtrInput // Can the Function App only be accessed via HTTPS? Defaults to `false`. HttpsOnly pulumi.BoolPtrInput // An `identity` block as defined below. Identity FunctionAppIdentityPtrInput // The User Assigned Identity Id used for looking up KeyVault secrets. The identity must be assigned to the application. See [Access vaults with a user-assigned identity](https://docs.microsoft.com/azure/app-service/app-service-key-vault-references#access-vaults-with-a-user-assigned-identity) for more information. KeyVaultReferenceIdentityId pulumi.StringPtrInput // The Function App kind - such as `functionapp,linux,container` Kind pulumi.StringPtrInput // 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 Function App. Changing this forces a new resource to be created. Limit the function name to 32 characters to avoid naming collisions. For more information about [Function App naming rule](https://docs.microsoft.com/azure/azure-resource-manager/management/resource-name-rules#microsoftweb). Name pulumi.StringPtrInput // A string indicating the Operating System type for this function app. Possible values are `linux` and ``(empty string). Changing this forces a new resource to be created. Defaults to `""`. // // > **NOTE:** This value will be `linux` for Linux derivatives, or an empty string for Windows (default). When set to `linux` you must also set `appservice.Plan` arguments as `kind = "Linux"` and `reserved = true` OsType pulumi.StringPtrInput // A comma separated list of outbound IP addresses - such as `52.23.25.3,52.143.43.12` OutboundIpAddresses pulumi.StringPtrInput // A comma separated list of outbound IP addresses - such as `52.23.25.3,52.143.43.12,52.143.43.17` - not all of which are necessarily in use. Superset of `outboundIpAddresses`. PossibleOutboundIpAddresses pulumi.StringPtrInput // The name of the resource group in which to create the Function App. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringPtrInput // A `siteConfig` object as defined below. SiteConfig FunctionAppSiteConfigPtrInput // A `siteCredential` block as defined below, which contains the site-level credentials used to publish to this App Service. SiteCredentials FunctionAppSiteCredentialArrayInput // A `sourceControl` block, as defined below. SourceControl FunctionAppSourceControlPtrInput // The access key which will be used to access the backend storage account for the Function App. // // > **Note:** When integrating a `CI/CD pipeline` and expecting to run from a deployed package in `Azure` you must seed your `app settings` as part of the application code for function app to be successfully deployed. `Important Default key pairs`: (`"WEBSITE_RUN_FROM_PACKAGE" = ""`, `"FUNCTIONS_WORKER_RUNTIME" = "node"` (or python, etc), `"WEBSITE_NODE_DEFAULT_VERSION" = "10.14.1"`, `"APPINSIGHTS_INSTRUMENTATIONKEY" = ""`). // // > **Note:** When using an App Service Plan in the `Free` or `Shared` Tiers `use32BitWorkerProcess` must be set to `true`. StorageAccountAccessKey pulumi.StringPtrInput // The backend storage account name which will be used by this Function App (such as the dashboard, logs). Changing this forces a new resource to be created. StorageAccountName pulumi.StringPtrInput // A mapping of tags to assign to the resource. Tags pulumi.StringMapInput // The runtime version associated with the Function App. Defaults to `~1`. Version pulumi.StringPtrInput } func (FunctionAppState) ElementType() reflect.Type { return reflect.TypeOf((*functionAppState)(nil)).Elem() } type functionAppArgs struct { // The ID of the App Service Plan within which to create this Function App. AppServicePlanId string `pulumi:"appServicePlanId"` // A map of key-value pairs for [App Settings](https://docs.microsoft.com/azure/azure-functions/functions-app-settings) and custom values. // // > **NOTE:** The values for `AzureWebJobsStorage` and `FUNCTIONS_EXTENSION_VERSION` will be filled by other input arguments and shouldn't be configured separately. `AzureWebJobsStorage` is filled based on `storageAccountName` and `storageAccountAccessKey`. `FUNCTIONS_EXTENSION_VERSION` is filled based on `version`. AppSettings map[string]string `pulumi:"appSettings"` // A `authSettings` block as defined below. AuthSettings *FunctionAppAuthSettings `pulumi:"authSettings"` // The mode of the Function App's client certificates requirement for incoming requests. Possible values are `Required` and `Optional`. ClientCertMode *string `pulumi:"clientCertMode"` // An `connectionString` block as defined below. ConnectionStrings []FunctionAppConnectionString `pulumi:"connectionStrings"` // The amount of memory in gigabyte-seconds that your application is allowed to consume per day. Setting this value only affects function apps under the consumption plan. DailyMemoryTimeQuota *int `pulumi:"dailyMemoryTimeQuota"` // Should the built-in logging of this Function App be enabled? Defaults to `true`. EnableBuiltinLogging *bool `pulumi:"enableBuiltinLogging"` // Is the Function App enabled? Defaults to `true`. Enabled *bool `pulumi:"enabled"` // Can the Function App only be accessed via HTTPS? Defaults to `false`. HttpsOnly *bool `pulumi:"httpsOnly"` // An `identity` block as defined below. Identity *FunctionAppIdentity `pulumi:"identity"` // The User Assigned Identity Id used for looking up KeyVault secrets. The identity must be assigned to the application. See [Access vaults with a user-assigned identity](https://docs.microsoft.com/azure/app-service/app-service-key-vault-references#access-vaults-with-a-user-assigned-identity) for more information. KeyVaultReferenceIdentityId *string `pulumi:"keyVaultReferenceIdentityId"` // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location *string `pulumi:"location"` // Specifies the name of the Function App. Changing this forces a new resource to be created. Limit the function name to 32 characters to avoid naming collisions. For more information about [Function App naming rule](https://docs.microsoft.com/azure/azure-resource-manager/management/resource-name-rules#microsoftweb). Name *string `pulumi:"name"` // A string indicating the Operating System type for this function app. Possible values are `linux` and ``(empty string). Changing this forces a new resource to be created. Defaults to `""`. // // > **NOTE:** This value will be `linux` for Linux derivatives, or an empty string for Windows (default). When set to `linux` you must also set `appservice.Plan` arguments as `kind = "Linux"` and `reserved = true` OsType *string `pulumi:"osType"` // The name of the resource group in which to create the Function App. Changing this forces a new resource to be created. ResourceGroupName string `pulumi:"resourceGroupName"` // A `siteConfig` object as defined below. SiteConfig *FunctionAppSiteConfig `pulumi:"siteConfig"` // A `sourceControl` block, as defined below. SourceControl *FunctionAppSourceControl `pulumi:"sourceControl"` // The access key which will be used to access the backend storage account for the Function App. // // > **Note:** When integrating a `CI/CD pipeline` and expecting to run from a deployed package in `Azure` you must seed your `app settings` as part of the application code for function app to be successfully deployed. `Important Default key pairs`: (`"WEBSITE_RUN_FROM_PACKAGE" = ""`, `"FUNCTIONS_WORKER_RUNTIME" = "node"` (or python, etc), `"WEBSITE_NODE_DEFAULT_VERSION" = "10.14.1"`, `"APPINSIGHTS_INSTRUMENTATIONKEY" = ""`). // // > **Note:** When using an App Service Plan in the `Free` or `Shared` Tiers `use32BitWorkerProcess` must be set to `true`. StorageAccountAccessKey string `pulumi:"storageAccountAccessKey"` // The backend storage account name which will be used by this Function App (such as the dashboard, logs). Changing this forces a new resource to be created. StorageAccountName string `pulumi:"storageAccountName"` // A mapping of tags to assign to the resource. Tags map[string]string `pulumi:"tags"` // The runtime version associated with the Function App. Defaults to `~1`. Version *string `pulumi:"version"` } // The set of arguments for constructing a FunctionApp resource. type FunctionAppArgs struct { // The ID of the App Service Plan within which to create this Function App. AppServicePlanId pulumi.StringInput // A map of key-value pairs for [App Settings](https://docs.microsoft.com/azure/azure-functions/functions-app-settings) and custom values. // // > **NOTE:** The values for `AzureWebJobsStorage` and `FUNCTIONS_EXTENSION_VERSION` will be filled by other input arguments and shouldn't be configured separately. `AzureWebJobsStorage` is filled based on `storageAccountName` and `storageAccountAccessKey`. `FUNCTIONS_EXTENSION_VERSION` is filled based on `version`. AppSettings pulumi.StringMapInput // A `authSettings` block as defined below. AuthSettings FunctionAppAuthSettingsPtrInput // The mode of the Function App's client certificates requirement for incoming requests. Possible values are `Required` and `Optional`. ClientCertMode pulumi.StringPtrInput // An `connectionString` block as defined below. ConnectionStrings FunctionAppConnectionStringArrayInput // The amount of memory in gigabyte-seconds that your application is allowed to consume per day. Setting this value only affects function apps under the consumption plan. DailyMemoryTimeQuota pulumi.IntPtrInput // Should the built-in logging of this Function App be enabled? Defaults to `true`. EnableBuiltinLogging pulumi.BoolPtrInput // Is the Function App enabled? Defaults to `true`. Enabled pulumi.BoolPtrInput
go
Apache-2.0
b66e1472775a89cca43f5050fef806854a7c3fa3
2026-01-07T09:44:27.619514Z
true
pulumi/pulumi-azure
https://github.com/pulumi/pulumi-azure/blob/b66e1472775a89cca43f5050fef806854a7c3fa3/sdk/go/azure/appservice/getEnvironmentV3.go
sdk/go/azure/appservice/getEnvironmentV3.go
// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package appservice import ( "context" "reflect" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Use this data source to access information about an existing 3rd Generation (v3) App Service Environment. // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/appservice" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { // example, err := appservice.LookupEnvironmentV3(ctx, &appservice.LookupEnvironmentV3Args{ // Name: "example-ASE", // ResourceGroupName: "example-resource-group", // }, nil) // if err != nil { // return err // } // ctx.Export("id", example.Id) // return nil // }) // } // // ``` // // ## API Providers // // <!-- This section is generated, changes will be overwritten --> // This data source uses the following Azure API Providers: // // * `Microsoft.Web` - 2023-01-01 func LookupEnvironmentV3(ctx *pulumi.Context, args *LookupEnvironmentV3Args, opts ...pulumi.InvokeOption) (*LookupEnvironmentV3Result, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupEnvironmentV3Result err := ctx.Invoke("azure:appservice/getEnvironmentV3:getEnvironmentV3", args, &rv, opts...) if err != nil { return nil, err } return &rv, nil } // A collection of arguments for invoking getEnvironmentV3. type LookupEnvironmentV3Args struct { // The name of this v3 App Service Environment. Name string `pulumi:"name"` // The name of the Resource Group where the v3 App Service Environment exists. ResourceGroupName string `pulumi:"resourceGroupName"` } // A collection of values returned by getEnvironmentV3. type LookupEnvironmentV3Result struct { // Are new Private Endpoint Connections allowed. AllowNewPrivateEndpointConnections bool `pulumi:"allowNewPrivateEndpointConnections"` // A `clusterSetting` block as defined below. ClusterSettings []GetEnvironmentV3ClusterSetting `pulumi:"clusterSettings"` // The number of Dedicated Hosts used by this ASEv3. DedicatedHostCount int `pulumi:"dedicatedHostCount"` // the DNS suffix for this App Service Environment V3. DnsSuffix string `pulumi:"dnsSuffix"` // The external inbound IP addresses of the App Service Environment V3. ExternalInboundIpAddresses []string `pulumi:"externalInboundIpAddresses"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` // An Inbound Network Dependencies block as defined below. InboundNetworkDependencies []GetEnvironmentV3InboundNetworkDependency `pulumi:"inboundNetworkDependencies"` // The internal inbound IP addresses of the App Service Environment V3. InternalInboundIpAddresses []string `pulumi:"internalInboundIpAddresses"` // The Internal Load Balancing Mode of this ASEv3. InternalLoadBalancingMode string `pulumi:"internalLoadBalancingMode"` // The number of IP SSL addresses reserved for the App Service Environment V3. IpSslAddressCount int `pulumi:"ipSslAddressCount"` // The list of Outbound IP Addresses of Linux based Apps in this App Service Environment V3. LinuxOutboundIpAddresses []string `pulumi:"linuxOutboundIpAddresses"` // The location where the App Service Environment exists. Location string `pulumi:"location"` // The name of the Cluster Setting. Name string `pulumi:"name"` // Pricing tier for the front end instances. PricingTier string `pulumi:"pricingTier"` RemoteDebuggingEnabled bool `pulumi:"remoteDebuggingEnabled"` ResourceGroupName string `pulumi:"resourceGroupName"` // The ID of the v3 App Service Environment Subnet. SubnetId string `pulumi:"subnetId"` // A mapping of tags assigned to the v3 App Service Environment. Tags map[string]string `pulumi:"tags"` // Outbound addresses of Windows based Apps in this App Service Environment V3. WindowsOutboundIpAddresses []string `pulumi:"windowsOutboundIpAddresses"` ZoneRedundant bool `pulumi:"zoneRedundant"` } func LookupEnvironmentV3Output(ctx *pulumi.Context, args LookupEnvironmentV3OutputArgs, opts ...pulumi.InvokeOption) LookupEnvironmentV3ResultOutput { return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupEnvironmentV3ResultOutput, error) { args := v.(LookupEnvironmentV3Args) options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} return ctx.InvokeOutput("azure:appservice/getEnvironmentV3:getEnvironmentV3", args, LookupEnvironmentV3ResultOutput{}, options).(LookupEnvironmentV3ResultOutput), nil }).(LookupEnvironmentV3ResultOutput) } // A collection of arguments for invoking getEnvironmentV3. type LookupEnvironmentV3OutputArgs struct { // The name of this v3 App Service Environment. Name pulumi.StringInput `pulumi:"name"` // The name of the Resource Group where the v3 App Service Environment exists. ResourceGroupName pulumi.StringInput `pulumi:"resourceGroupName"` } func (LookupEnvironmentV3OutputArgs) ElementType() reflect.Type { return reflect.TypeOf((*LookupEnvironmentV3Args)(nil)).Elem() } // A collection of values returned by getEnvironmentV3. type LookupEnvironmentV3ResultOutput struct{ *pulumi.OutputState } func (LookupEnvironmentV3ResultOutput) ElementType() reflect.Type { return reflect.TypeOf((*LookupEnvironmentV3Result)(nil)).Elem() } func (o LookupEnvironmentV3ResultOutput) ToLookupEnvironmentV3ResultOutput() LookupEnvironmentV3ResultOutput { return o } func (o LookupEnvironmentV3ResultOutput) ToLookupEnvironmentV3ResultOutputWithContext(ctx context.Context) LookupEnvironmentV3ResultOutput { return o } // Are new Private Endpoint Connections allowed. func (o LookupEnvironmentV3ResultOutput) AllowNewPrivateEndpointConnections() pulumi.BoolOutput { return o.ApplyT(func(v LookupEnvironmentV3Result) bool { return v.AllowNewPrivateEndpointConnections }).(pulumi.BoolOutput) } // A `clusterSetting` block as defined below. func (o LookupEnvironmentV3ResultOutput) ClusterSettings() GetEnvironmentV3ClusterSettingArrayOutput { return o.ApplyT(func(v LookupEnvironmentV3Result) []GetEnvironmentV3ClusterSetting { return v.ClusterSettings }).(GetEnvironmentV3ClusterSettingArrayOutput) } // The number of Dedicated Hosts used by this ASEv3. func (o LookupEnvironmentV3ResultOutput) DedicatedHostCount() pulumi.IntOutput { return o.ApplyT(func(v LookupEnvironmentV3Result) int { return v.DedicatedHostCount }).(pulumi.IntOutput) } // the DNS suffix for this App Service Environment V3. func (o LookupEnvironmentV3ResultOutput) DnsSuffix() pulumi.StringOutput { return o.ApplyT(func(v LookupEnvironmentV3Result) string { return v.DnsSuffix }).(pulumi.StringOutput) } // The external inbound IP addresses of the App Service Environment V3. func (o LookupEnvironmentV3ResultOutput) ExternalInboundIpAddresses() pulumi.StringArrayOutput { return o.ApplyT(func(v LookupEnvironmentV3Result) []string { return v.ExternalInboundIpAddresses }).(pulumi.StringArrayOutput) } // The provider-assigned unique ID for this managed resource. func (o LookupEnvironmentV3ResultOutput) Id() pulumi.StringOutput { return o.ApplyT(func(v LookupEnvironmentV3Result) string { return v.Id }).(pulumi.StringOutput) } // An Inbound Network Dependencies block as defined below. func (o LookupEnvironmentV3ResultOutput) InboundNetworkDependencies() GetEnvironmentV3InboundNetworkDependencyArrayOutput { return o.ApplyT(func(v LookupEnvironmentV3Result) []GetEnvironmentV3InboundNetworkDependency { return v.InboundNetworkDependencies }).(GetEnvironmentV3InboundNetworkDependencyArrayOutput) } // The internal inbound IP addresses of the App Service Environment V3. func (o LookupEnvironmentV3ResultOutput) InternalInboundIpAddresses() pulumi.StringArrayOutput { return o.ApplyT(func(v LookupEnvironmentV3Result) []string { return v.InternalInboundIpAddresses }).(pulumi.StringArrayOutput) } // The Internal Load Balancing Mode of this ASEv3. func (o LookupEnvironmentV3ResultOutput) InternalLoadBalancingMode() pulumi.StringOutput { return o.ApplyT(func(v LookupEnvironmentV3Result) string { return v.InternalLoadBalancingMode }).(pulumi.StringOutput) } // The number of IP SSL addresses reserved for the App Service Environment V3. func (o LookupEnvironmentV3ResultOutput) IpSslAddressCount() pulumi.IntOutput { return o.ApplyT(func(v LookupEnvironmentV3Result) int { return v.IpSslAddressCount }).(pulumi.IntOutput) } // The list of Outbound IP Addresses of Linux based Apps in this App Service Environment V3. func (o LookupEnvironmentV3ResultOutput) LinuxOutboundIpAddresses() pulumi.StringArrayOutput { return o.ApplyT(func(v LookupEnvironmentV3Result) []string { return v.LinuxOutboundIpAddresses }).(pulumi.StringArrayOutput) } // The location where the App Service Environment exists. func (o LookupEnvironmentV3ResultOutput) Location() pulumi.StringOutput { return o.ApplyT(func(v LookupEnvironmentV3Result) string { return v.Location }).(pulumi.StringOutput) } // The name of the Cluster Setting. func (o LookupEnvironmentV3ResultOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v LookupEnvironmentV3Result) string { return v.Name }).(pulumi.StringOutput) } // Pricing tier for the front end instances. func (o LookupEnvironmentV3ResultOutput) PricingTier() pulumi.StringOutput { return o.ApplyT(func(v LookupEnvironmentV3Result) string { return v.PricingTier }).(pulumi.StringOutput) } func (o LookupEnvironmentV3ResultOutput) RemoteDebuggingEnabled() pulumi.BoolOutput { return o.ApplyT(func(v LookupEnvironmentV3Result) bool { return v.RemoteDebuggingEnabled }).(pulumi.BoolOutput) } func (o LookupEnvironmentV3ResultOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v LookupEnvironmentV3Result) string { return v.ResourceGroupName }).(pulumi.StringOutput) } // The ID of the v3 App Service Environment Subnet. func (o LookupEnvironmentV3ResultOutput) SubnetId() pulumi.StringOutput { return o.ApplyT(func(v LookupEnvironmentV3Result) string { return v.SubnetId }).(pulumi.StringOutput) } // A mapping of tags assigned to the v3 App Service Environment. func (o LookupEnvironmentV3ResultOutput) Tags() pulumi.StringMapOutput { return o.ApplyT(func(v LookupEnvironmentV3Result) map[string]string { return v.Tags }).(pulumi.StringMapOutput) } // Outbound addresses of Windows based Apps in this App Service Environment V3. func (o LookupEnvironmentV3ResultOutput) WindowsOutboundIpAddresses() pulumi.StringArrayOutput { return o.ApplyT(func(v LookupEnvironmentV3Result) []string { return v.WindowsOutboundIpAddresses }).(pulumi.StringArrayOutput) } func (o LookupEnvironmentV3ResultOutput) ZoneRedundant() pulumi.BoolOutput { return o.ApplyT(func(v LookupEnvironmentV3Result) bool { return v.ZoneRedundant }).(pulumi.BoolOutput) } func init() { pulumi.RegisterOutputType(LookupEnvironmentV3ResultOutput{}) }
go
Apache-2.0
b66e1472775a89cca43f5050fef806854a7c3fa3
2026-01-07T09:44:27.619514Z
false
pulumi/pulumi-azure
https://github.com/pulumi/pulumi-azure/blob/b66e1472775a89cca43f5050fef806854a7c3fa3/sdk/go/azure/appservice/functionAppActiveSlot.go
sdk/go/azure/appservice/functionAppActiveSlot.go
// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package appservice import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a Function App Active Slot. // // ## Example Usage // // ### Windows Function App // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/appservice" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/storage" // "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-resources"), // Location: pulumi.String("West Europe"), // }) // if err != nil { // return err // } // exampleAccount, err := storage.NewAccount(ctx, "example", &storage.AccountArgs{ // Name: pulumi.String("windowsfunctionappsa"), // ResourceGroupName: example.Name, // Location: example.Location, // AccountTier: pulumi.String("Standard"), // AccountReplicationType: pulumi.String("LRS"), // }) // if err != nil { // return err // } // exampleServicePlan, err := appservice.NewServicePlan(ctx, "example", &appservice.ServicePlanArgs{ // Name: pulumi.String("example-app-service-plan"), // ResourceGroupName: example.Name, // Location: example.Location, // OsType: pulumi.String("Windows"), // SkuName: pulumi.String("Y1"), // }) // if err != nil { // return err // } // exampleWindowsFunctionApp, err := appservice.NewWindowsFunctionApp(ctx, "example", &appservice.WindowsFunctionAppArgs{ // Name: pulumi.String("example-windows-function-app"), // ResourceGroupName: example.Name, // Location: example.Location, // StorageAccountName: exampleAccount.Name, // ServicePlanId: exampleServicePlan.ID(), // SiteConfig: &appservice.WindowsFunctionAppSiteConfigArgs{}, // }) // if err != nil { // return err // } // exampleWindowsFunctionAppSlot, err := appservice.NewWindowsFunctionAppSlot(ctx, "example", &appservice.WindowsFunctionAppSlotArgs{ // Name: pulumi.String("example-windows-function-app-slot"), // FunctionAppId: exampleWindowsFunctionApp.ID(), // StorageAccountName: exampleAccount.Name, // SiteConfig: &appservice.WindowsFunctionAppSlotSiteConfigArgs{}, // }) // if err != nil { // return err // } // _, err = appservice.NewFunctionAppActiveSlot(ctx, "example", &appservice.FunctionAppActiveSlotArgs{ // SlotId: exampleWindowsFunctionAppSlot.ID(), // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ### Linux Function App // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/appservice" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/storage" // "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-resources"), // Location: pulumi.String("West Europe"), // }) // if err != nil { // return err // } // exampleAccount, err := storage.NewAccount(ctx, "example", &storage.AccountArgs{ // Name: pulumi.String("linuxfunctionappsa"), // ResourceGroupName: example.Name, // Location: example.Location, // AccountTier: pulumi.String("Standard"), // AccountReplicationType: pulumi.String("LRS"), // }) // if err != nil { // return err // } // exampleServicePlan, err := appservice.NewServicePlan(ctx, "example", &appservice.ServicePlanArgs{ // Name: pulumi.String("example-app-service-plan"), // ResourceGroupName: example.Name, // Location: example.Location, // OsType: pulumi.String("Linux"), // SkuName: pulumi.String("Y1"), // }) // if err != nil { // return err // } // exampleLinuxFunctionApp, err := appservice.NewLinuxFunctionApp(ctx, "example", &appservice.LinuxFunctionAppArgs{ // Name: pulumi.String("example-linux-function-app"), // ResourceGroupName: example.Name, // Location: example.Location, // ServicePlanId: exampleServicePlan.ID(), // StorageAccountName: exampleAccount.Name, // SiteConfig: &appservice.LinuxFunctionAppSiteConfigArgs{}, // }) // if err != nil { // return err // } // exampleLinuxFunctionAppSlot, err := appservice.NewLinuxFunctionAppSlot(ctx, "example", &appservice.LinuxFunctionAppSlotArgs{ // Name: pulumi.String("example-linux-function-app-slot"), // FunctionAppId: exampleLinuxFunctionApp.Name, // StorageAccountName: exampleAccount.Name, // SiteConfig: &appservice.LinuxFunctionAppSlotSiteConfigArgs{}, // }) // if err != nil { // return err // } // _, err = appservice.NewFunctionAppActiveSlot(ctx, "example", &appservice.FunctionAppActiveSlotArgs{ // SlotId: exampleLinuxFunctionAppSlot.ID(), // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## API Providers // // <!-- This section is generated, changes will be overwritten --> // This resource uses the following Azure API Providers: // // * `Microsoft.Web` - 2023-12-01 // // ## Import // // a Function App Active Slot can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:appservice/functionAppActiveSlot:FunctionAppActiveSlot example "/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/resGroup1/providers/Microsoft.Web/sites/site1" // ``` type FunctionAppActiveSlot struct { pulumi.CustomResourceState // The timestamp of the last successful swap with `Production` LastSuccessfulSwap pulumi.StringOutput `pulumi:"lastSuccessfulSwap"` // The swap action should overwrite the Production slot's network configuration with the configuration from this slot. Defaults to `true`. Changing this forces a new resource to be created. OverwriteNetworkConfig pulumi.BoolPtrOutput `pulumi:"overwriteNetworkConfig"` // The ID of the Slot to swap with `Production`. SlotId pulumi.StringOutput `pulumi:"slotId"` } // NewFunctionAppActiveSlot registers a new resource with the given unique name, arguments, and options. func NewFunctionAppActiveSlot(ctx *pulumi.Context, name string, args *FunctionAppActiveSlotArgs, opts ...pulumi.ResourceOption) (*FunctionAppActiveSlot, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.SlotId == nil { return nil, errors.New("invalid value for required argument 'SlotId'") } opts = internal.PkgResourceDefaultOpts(opts) var resource FunctionAppActiveSlot err := ctx.RegisterResource("azure:appservice/functionAppActiveSlot:FunctionAppActiveSlot", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetFunctionAppActiveSlot gets an existing FunctionAppActiveSlot 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 GetFunctionAppActiveSlot(ctx *pulumi.Context, name string, id pulumi.IDInput, state *FunctionAppActiveSlotState, opts ...pulumi.ResourceOption) (*FunctionAppActiveSlot, error) { var resource FunctionAppActiveSlot err := ctx.ReadResource("azure:appservice/functionAppActiveSlot:FunctionAppActiveSlot", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering FunctionAppActiveSlot resources. type functionAppActiveSlotState struct { // The timestamp of the last successful swap with `Production` LastSuccessfulSwap *string `pulumi:"lastSuccessfulSwap"` // The swap action should overwrite the Production slot's network configuration with the configuration from this slot. Defaults to `true`. Changing this forces a new resource to be created. OverwriteNetworkConfig *bool `pulumi:"overwriteNetworkConfig"` // The ID of the Slot to swap with `Production`. SlotId *string `pulumi:"slotId"` } type FunctionAppActiveSlotState struct { // The timestamp of the last successful swap with `Production` LastSuccessfulSwap pulumi.StringPtrInput // The swap action should overwrite the Production slot's network configuration with the configuration from this slot. Defaults to `true`. Changing this forces a new resource to be created. OverwriteNetworkConfig pulumi.BoolPtrInput // The ID of the Slot to swap with `Production`. SlotId pulumi.StringPtrInput } func (FunctionAppActiveSlotState) ElementType() reflect.Type { return reflect.TypeOf((*functionAppActiveSlotState)(nil)).Elem() } type functionAppActiveSlotArgs struct { // The swap action should overwrite the Production slot's network configuration with the configuration from this slot. Defaults to `true`. Changing this forces a new resource to be created. OverwriteNetworkConfig *bool `pulumi:"overwriteNetworkConfig"` // The ID of the Slot to swap with `Production`. SlotId string `pulumi:"slotId"` } // The set of arguments for constructing a FunctionAppActiveSlot resource. type FunctionAppActiveSlotArgs struct { // The swap action should overwrite the Production slot's network configuration with the configuration from this slot. Defaults to `true`. Changing this forces a new resource to be created. OverwriteNetworkConfig pulumi.BoolPtrInput // The ID of the Slot to swap with `Production`. SlotId pulumi.StringInput } func (FunctionAppActiveSlotArgs) ElementType() reflect.Type { return reflect.TypeOf((*functionAppActiveSlotArgs)(nil)).Elem() } type FunctionAppActiveSlotInput interface { pulumi.Input ToFunctionAppActiveSlotOutput() FunctionAppActiveSlotOutput ToFunctionAppActiveSlotOutputWithContext(ctx context.Context) FunctionAppActiveSlotOutput } func (*FunctionAppActiveSlot) ElementType() reflect.Type { return reflect.TypeOf((**FunctionAppActiveSlot)(nil)).Elem() } func (i *FunctionAppActiveSlot) ToFunctionAppActiveSlotOutput() FunctionAppActiveSlotOutput { return i.ToFunctionAppActiveSlotOutputWithContext(context.Background()) } func (i *FunctionAppActiveSlot) ToFunctionAppActiveSlotOutputWithContext(ctx context.Context) FunctionAppActiveSlotOutput { return pulumi.ToOutputWithContext(ctx, i).(FunctionAppActiveSlotOutput) } // FunctionAppActiveSlotArrayInput is an input type that accepts FunctionAppActiveSlotArray and FunctionAppActiveSlotArrayOutput values. // You can construct a concrete instance of `FunctionAppActiveSlotArrayInput` via: // // FunctionAppActiveSlotArray{ FunctionAppActiveSlotArgs{...} } type FunctionAppActiveSlotArrayInput interface { pulumi.Input ToFunctionAppActiveSlotArrayOutput() FunctionAppActiveSlotArrayOutput ToFunctionAppActiveSlotArrayOutputWithContext(context.Context) FunctionAppActiveSlotArrayOutput } type FunctionAppActiveSlotArray []FunctionAppActiveSlotInput func (FunctionAppActiveSlotArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*FunctionAppActiveSlot)(nil)).Elem() } func (i FunctionAppActiveSlotArray) ToFunctionAppActiveSlotArrayOutput() FunctionAppActiveSlotArrayOutput { return i.ToFunctionAppActiveSlotArrayOutputWithContext(context.Background()) } func (i FunctionAppActiveSlotArray) ToFunctionAppActiveSlotArrayOutputWithContext(ctx context.Context) FunctionAppActiveSlotArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(FunctionAppActiveSlotArrayOutput) } // FunctionAppActiveSlotMapInput is an input type that accepts FunctionAppActiveSlotMap and FunctionAppActiveSlotMapOutput values. // You can construct a concrete instance of `FunctionAppActiveSlotMapInput` via: // // FunctionAppActiveSlotMap{ "key": FunctionAppActiveSlotArgs{...} } type FunctionAppActiveSlotMapInput interface { pulumi.Input ToFunctionAppActiveSlotMapOutput() FunctionAppActiveSlotMapOutput ToFunctionAppActiveSlotMapOutputWithContext(context.Context) FunctionAppActiveSlotMapOutput } type FunctionAppActiveSlotMap map[string]FunctionAppActiveSlotInput func (FunctionAppActiveSlotMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*FunctionAppActiveSlot)(nil)).Elem() } func (i FunctionAppActiveSlotMap) ToFunctionAppActiveSlotMapOutput() FunctionAppActiveSlotMapOutput { return i.ToFunctionAppActiveSlotMapOutputWithContext(context.Background()) } func (i FunctionAppActiveSlotMap) ToFunctionAppActiveSlotMapOutputWithContext(ctx context.Context) FunctionAppActiveSlotMapOutput { return pulumi.ToOutputWithContext(ctx, i).(FunctionAppActiveSlotMapOutput) } type FunctionAppActiveSlotOutput struct{ *pulumi.OutputState } func (FunctionAppActiveSlotOutput) ElementType() reflect.Type { return reflect.TypeOf((**FunctionAppActiveSlot)(nil)).Elem() } func (o FunctionAppActiveSlotOutput) ToFunctionAppActiveSlotOutput() FunctionAppActiveSlotOutput { return o } func (o FunctionAppActiveSlotOutput) ToFunctionAppActiveSlotOutputWithContext(ctx context.Context) FunctionAppActiveSlotOutput { return o } // The timestamp of the last successful swap with `Production` func (o FunctionAppActiveSlotOutput) LastSuccessfulSwap() pulumi.StringOutput { return o.ApplyT(func(v *FunctionAppActiveSlot) pulumi.StringOutput { return v.LastSuccessfulSwap }).(pulumi.StringOutput) } // The swap action should overwrite the Production slot's network configuration with the configuration from this slot. Defaults to `true`. Changing this forces a new resource to be created. func (o FunctionAppActiveSlotOutput) OverwriteNetworkConfig() pulumi.BoolPtrOutput { return o.ApplyT(func(v *FunctionAppActiveSlot) pulumi.BoolPtrOutput { return v.OverwriteNetworkConfig }).(pulumi.BoolPtrOutput) } // The ID of the Slot to swap with `Production`. func (o FunctionAppActiveSlotOutput) SlotId() pulumi.StringOutput { return o.ApplyT(func(v *FunctionAppActiveSlot) pulumi.StringOutput { return v.SlotId }).(pulumi.StringOutput) } type FunctionAppActiveSlotArrayOutput struct{ *pulumi.OutputState } func (FunctionAppActiveSlotArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*FunctionAppActiveSlot)(nil)).Elem() } func (o FunctionAppActiveSlotArrayOutput) ToFunctionAppActiveSlotArrayOutput() FunctionAppActiveSlotArrayOutput { return o } func (o FunctionAppActiveSlotArrayOutput) ToFunctionAppActiveSlotArrayOutputWithContext(ctx context.Context) FunctionAppActiveSlotArrayOutput { return o } func (o FunctionAppActiveSlotArrayOutput) Index(i pulumi.IntInput) FunctionAppActiveSlotOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *FunctionAppActiveSlot { return vs[0].([]*FunctionAppActiveSlot)[vs[1].(int)] }).(FunctionAppActiveSlotOutput) } type FunctionAppActiveSlotMapOutput struct{ *pulumi.OutputState } func (FunctionAppActiveSlotMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*FunctionAppActiveSlot)(nil)).Elem() } func (o FunctionAppActiveSlotMapOutput) ToFunctionAppActiveSlotMapOutput() FunctionAppActiveSlotMapOutput { return o } func (o FunctionAppActiveSlotMapOutput) ToFunctionAppActiveSlotMapOutputWithContext(ctx context.Context) FunctionAppActiveSlotMapOutput { return o } func (o FunctionAppActiveSlotMapOutput) MapIndex(k pulumi.StringInput) FunctionAppActiveSlotOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *FunctionAppActiveSlot { return vs[0].(map[string]*FunctionAppActiveSlot)[vs[1].(string)] }).(FunctionAppActiveSlotOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*FunctionAppActiveSlotInput)(nil)).Elem(), &FunctionAppActiveSlot{}) pulumi.RegisterInputType(reflect.TypeOf((*FunctionAppActiveSlotArrayInput)(nil)).Elem(), FunctionAppActiveSlotArray{}) pulumi.RegisterInputType(reflect.TypeOf((*FunctionAppActiveSlotMapInput)(nil)).Elem(), FunctionAppActiveSlotMap{}) pulumi.RegisterOutputType(FunctionAppActiveSlotOutput{}) pulumi.RegisterOutputType(FunctionAppActiveSlotArrayOutput{}) pulumi.RegisterOutputType(FunctionAppActiveSlotMapOutput{}) }
go
Apache-2.0
b66e1472775a89cca43f5050fef806854a7c3fa3
2026-01-07T09:44:27.619514Z
false
pulumi/pulumi-azure
https://github.com/pulumi/pulumi-azure/blob/b66e1472775a89cca43f5050fef806854a7c3fa3/sdk/go/azure/appservice/linuxFunctionApp.go
sdk/go/azure/appservice/linuxFunctionApp.go
// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package appservice import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/appservice" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/storage" // "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-resources"), // Location: pulumi.String("West Europe"), // }) // if err != nil { // return err // } // exampleAccount, err := storage.NewAccount(ctx, "example", &storage.AccountArgs{ // Name: pulumi.String("linuxfunctionappsa"), // ResourceGroupName: example.Name, // Location: example.Location, // AccountTier: pulumi.String("Standard"), // AccountReplicationType: pulumi.String("LRS"), // }) // if err != nil { // return err // } // exampleServicePlan, err := appservice.NewServicePlan(ctx, "example", &appservice.ServicePlanArgs{ // Name: pulumi.String("example-app-service-plan"), // ResourceGroupName: example.Name, // Location: example.Location, // OsType: pulumi.String("Linux"), // SkuName: pulumi.String("B1"), // }) // if err != nil { // return err // } // _, err = appservice.NewLinuxFunctionApp(ctx, "example", &appservice.LinuxFunctionAppArgs{ // Name: pulumi.String("example-linux-function-app"), // ResourceGroupName: example.Name, // Location: example.Location, // StorageAccountName: exampleAccount.Name, // StorageAccountAccessKey: exampleAccount.PrimaryAccessKey, // ServicePlanId: exampleServicePlan.ID(), // SiteConfig: &appservice.LinuxFunctionAppSiteConfigArgs{}, // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## API Providers // // <!-- This section is generated, changes will be overwritten --> // This resource uses the following Azure API Providers: // // * `Microsoft.Web` - 2023-12-01, 2023-01-01 // // ## Import // // Linux Function Apps can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:appservice/linuxFunctionApp:LinuxFunctionApp example /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/resGroup1/providers/Microsoft.Web/sites/site1 // ``` type LinuxFunctionApp struct { pulumi.CustomResourceState // A map of key-value pairs for [App Settings](https://docs.microsoft.com/en-us/azure/azure-functions/functions-app-settings) and custom values. AppSettings pulumi.StringMapOutput `pulumi:"appSettings"` // A `authSettings` block as defined below. AuthSettings LinuxFunctionAppAuthSettingsPtrOutput `pulumi:"authSettings"` // An `authSettingsV2` block as defined below. AuthSettingsV2 LinuxFunctionAppAuthSettingsV2PtrOutput `pulumi:"authSettingsV2"` // A `backup` block as defined below. Backup LinuxFunctionAppBackupPtrOutput `pulumi:"backup"` // Should built in logging be enabled. Configures `AzureWebJobsDashboard` app setting based on the configured storage setting. Defaults to `true`. // // > **Note:** `builtinLoggingEnabled` is only supported for function app whose function runtime is running on version 1.x. BuiltinLoggingEnabled pulumi.BoolPtrOutput `pulumi:"builtinLoggingEnabled"` // Should the function app use Client Certificates. ClientCertificateEnabled pulumi.BoolPtrOutput `pulumi:"clientCertificateEnabled"` // Paths to exclude when using client certificates, separated by ; ClientCertificateExclusionPaths pulumi.StringPtrOutput `pulumi:"clientCertificateExclusionPaths"` // The mode of the Function App's client certificates requirement for incoming requests. Possible values are `Required`, `Optional`, and `OptionalInteractiveUser`. Defaults to `Optional`. ClientCertificateMode pulumi.StringPtrOutput `pulumi:"clientCertificateMode"` // One or more `connectionString` blocks as defined below. ConnectionStrings LinuxFunctionAppConnectionStringArrayOutput `pulumi:"connectionStrings"` // Should the settings for linking the Function App to storage be suppressed. ContentShareForceDisabled pulumi.BoolPtrOutput `pulumi:"contentShareForceDisabled"` // The identifier used by App Service to perform domain ownership verification via DNS TXT record. CustomDomainVerificationId pulumi.StringOutput `pulumi:"customDomainVerificationId"` // The amount of memory in gigabyte-seconds that your application is allowed to consume per day. Setting this value only affects function apps under the consumption plan. Defaults to `0`. DailyMemoryTimeQuota pulumi.IntPtrOutput `pulumi:"dailyMemoryTimeQuota"` // The default hostname of the Linux Function App. DefaultHostname pulumi.StringOutput `pulumi:"defaultHostname"` // Is the Function App enabled? Defaults to `true`. Enabled pulumi.BoolPtrOutput `pulumi:"enabled"` // Should the default FTP Basic Authentication publishing profile be enabled. Defaults to `true`. FtpPublishBasicAuthenticationEnabled pulumi.BoolPtrOutput `pulumi:"ftpPublishBasicAuthenticationEnabled"` // The runtime version associated with the Function App. Defaults to `~4`. FunctionsExtensionVersion pulumi.StringPtrOutput `pulumi:"functionsExtensionVersion"` // The ID of the App Service Environment used by Function App. HostingEnvironmentId pulumi.StringOutput `pulumi:"hostingEnvironmentId"` // Can the Function App only be accessed via HTTPS? Defaults to `false`. HttpsOnly pulumi.BoolPtrOutput `pulumi:"httpsOnly"` // A `identity` block as defined below. Identity LinuxFunctionAppIdentityPtrOutput `pulumi:"identity"` // The User Assigned Identity ID used for accessing KeyVault secrets. The identity must be assigned to the application in the `identity` block. [For more information see - Access vaults with a user-assigned identity](https://docs.microsoft.com/azure/app-service/app-service-key-vault-references#access-vaults-with-a-user-assigned-identity) KeyVaultReferenceIdentityId pulumi.StringOutput `pulumi:"keyVaultReferenceIdentityId"` // The Kind value for this Linux Function App. Kind pulumi.StringOutput `pulumi:"kind"` // The Azure Region where the Linux Function App should exist. Changing this forces a new Linux Function App to be created. Location pulumi.StringOutput `pulumi:"location"` // The name which should be used for this Linux Function App. Changing this forces a new Linux Function App to be created. Limit the function name to 32 characters to avoid naming collisions. For more information about [Function App naming rule](https://docs.microsoft.com/en-us/azure/azure-resource-manager/management/resource-name-rules#microsoftweb) and [Host ID Collisions](https://github.com/Azure/azure-functions-host/wiki/Host-IDs#host-id-collisions) Name pulumi.StringOutput `pulumi:"name"` // A list of outbound IP addresses. For example `["52.23.25.3", "52.143.43.12"]` OutboundIpAddressLists pulumi.StringArrayOutput `pulumi:"outboundIpAddressLists"` // A comma separated list of outbound IP addresses as a string. For example `52.23.25.3,52.143.43.12`. OutboundIpAddresses pulumi.StringOutput `pulumi:"outboundIpAddresses"` // A list of possible outbound IP addresses, not all of which are necessarily in use. This is a superset of `outboundIpAddressList`. For example `["52.23.25.3", "52.143.43.12"]`. PossibleOutboundIpAddressLists pulumi.StringArrayOutput `pulumi:"possibleOutboundIpAddressLists"` // A comma separated list of possible outbound IP addresses as a string. For example `52.23.25.3,52.143.43.12,52.143.43.17`. This is a superset of `outboundIpAddresses`. PossibleOutboundIpAddresses pulumi.StringOutput `pulumi:"possibleOutboundIpAddresses"` // Should public network access be enabled for the Function App. Defaults to `true`. PublicNetworkAccessEnabled pulumi.BoolPtrOutput `pulumi:"publicNetworkAccessEnabled"` // The name of the Resource Group where the Linux Function App should exist. Changing this forces a new Linux Function App to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // The ID of the App Service Plan within which to create this Function App. ServicePlanId pulumi.StringOutput `pulumi:"servicePlanId"` // A `siteConfig` block as defined below. SiteConfig LinuxFunctionAppSiteConfigOutput `pulumi:"siteConfig"` // A `siteCredential` block as defined below. SiteCredentials LinuxFunctionAppSiteCredentialArrayOutput `pulumi:"siteCredentials"` // A `stickySettings` block as defined below. StickySettings LinuxFunctionAppStickySettingsPtrOutput `pulumi:"stickySettings"` // The access key which will be used to access the backend storage account for the Function App. Conflicts with `storageUsesManagedIdentity`. StorageAccountAccessKey pulumi.StringPtrOutput `pulumi:"storageAccountAccessKey"` // The backend storage account name which will be used by this Function App. StorageAccountName pulumi.StringPtrOutput `pulumi:"storageAccountName"` // One or more `storageAccount` blocks as defined below. StorageAccounts LinuxFunctionAppStorageAccountArrayOutput `pulumi:"storageAccounts"` // The Key Vault Secret ID, optionally including version, that contains the Connection String to connect to the storage account for this Function App. // // > **Note:** `storageKeyVaultSecretId` cannot be used with `storageAccountName`. // // > **Note:** `storageKeyVaultSecretId` used without a version will use the latest version of the secret, however, the service can take up to 24h to pick up a rotation of the latest version. See the [official docs](https://docs.microsoft.com/azure/app-service/app-service-key-vault-references#rotation) for more information. StorageKeyVaultSecretId pulumi.StringPtrOutput `pulumi:"storageKeyVaultSecretId"` // Should the Function App use Managed Identity to access the storage account. Conflicts with `storageAccountAccessKey`. // // > **Note:** One of `storageAccountAccessKey` or `storageUsesManagedIdentity` must be specified when using `storageAccountName`. StorageUsesManagedIdentity pulumi.BoolPtrOutput `pulumi:"storageUsesManagedIdentity"` // A mapping of tags which should be assigned to the Linux Function App. Tags pulumi.StringMapOutput `pulumi:"tags"` // Whether backup and restore operations over the linked virtual network are enabled. Defaults to `false`. VirtualNetworkBackupRestoreEnabled pulumi.BoolPtrOutput `pulumi:"virtualNetworkBackupRestoreEnabled"` VirtualNetworkSubnetId pulumi.StringPtrOutput `pulumi:"virtualNetworkSubnetId"` // Should the traffic for the image pull be routed over virtual network enabled. Defaults to `false`. // // > **Note:** The feature can also be enabled via the app setting `WEBSITE_PULL_IMAGE_OVER_VNET`. Must be set to `true` when running in an App Service Environment. VnetImagePullEnabled pulumi.BoolPtrOutput `pulumi:"vnetImagePullEnabled"` // Should the default WebDeploy Basic Authentication publishing credentials enabled. Defaults to `true`. // // > **Note:** Setting this value to true will disable the ability to use `zipDeployFile` which currently relies on the default publishing profile. WebdeployPublishBasicAuthenticationEnabled pulumi.BoolPtrOutput `pulumi:"webdeployPublishBasicAuthenticationEnabled"` // The local path and filename of the Zip packaged application to deploy to this Linux Function App. // // > **Note:** Using this value requires either `WEBSITE_RUN_FROM_PACKAGE=1` or `SCM_DO_BUILD_DURING_DEPLOYMENT=true` to be set on the App in `appSettings`. Refer to the [Azure docs](https://learn.microsoft.com/en-us/azure/azure-functions/functions-deployment-technologies) for further details. ZipDeployFile pulumi.StringOutput `pulumi:"zipDeployFile"` } // NewLinuxFunctionApp registers a new resource with the given unique name, arguments, and options. func NewLinuxFunctionApp(ctx *pulumi.Context, name string, args *LinuxFunctionAppArgs, opts ...pulumi.ResourceOption) (*LinuxFunctionApp, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.ResourceGroupName == nil { return nil, errors.New("invalid value for required argument 'ResourceGroupName'") } if args.ServicePlanId == nil { return nil, errors.New("invalid value for required argument 'ServicePlanId'") } if args.SiteConfig == nil { return nil, errors.New("invalid value for required argument 'SiteConfig'") } if args.StorageAccountAccessKey != nil { args.StorageAccountAccessKey = pulumi.ToSecret(args.StorageAccountAccessKey).(pulumi.StringPtrInput) } secrets := pulumi.AdditionalSecretOutputs([]string{ "customDomainVerificationId", "siteCredentials", "storageAccountAccessKey", }) opts = append(opts, secrets) opts = internal.PkgResourceDefaultOpts(opts) var resource LinuxFunctionApp err := ctx.RegisterResource("azure:appservice/linuxFunctionApp:LinuxFunctionApp", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetLinuxFunctionApp gets an existing LinuxFunctionApp 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 GetLinuxFunctionApp(ctx *pulumi.Context, name string, id pulumi.IDInput, state *LinuxFunctionAppState, opts ...pulumi.ResourceOption) (*LinuxFunctionApp, error) { var resource LinuxFunctionApp err := ctx.ReadResource("azure:appservice/linuxFunctionApp:LinuxFunctionApp", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering LinuxFunctionApp resources. type linuxFunctionAppState struct { // A map of key-value pairs for [App Settings](https://docs.microsoft.com/en-us/azure/azure-functions/functions-app-settings) and custom values. AppSettings map[string]string `pulumi:"appSettings"` // A `authSettings` block as defined below. AuthSettings *LinuxFunctionAppAuthSettings `pulumi:"authSettings"` // An `authSettingsV2` block as defined below. AuthSettingsV2 *LinuxFunctionAppAuthSettingsV2 `pulumi:"authSettingsV2"` // A `backup` block as defined below. Backup *LinuxFunctionAppBackup `pulumi:"backup"` // Should built in logging be enabled. Configures `AzureWebJobsDashboard` app setting based on the configured storage setting. Defaults to `true`. // // > **Note:** `builtinLoggingEnabled` is only supported for function app whose function runtime is running on version 1.x. BuiltinLoggingEnabled *bool `pulumi:"builtinLoggingEnabled"` // Should the function app use Client Certificates. ClientCertificateEnabled *bool `pulumi:"clientCertificateEnabled"` // Paths to exclude when using client certificates, separated by ; ClientCertificateExclusionPaths *string `pulumi:"clientCertificateExclusionPaths"` // The mode of the Function App's client certificates requirement for incoming requests. Possible values are `Required`, `Optional`, and `OptionalInteractiveUser`. Defaults to `Optional`. ClientCertificateMode *string `pulumi:"clientCertificateMode"` // One or more `connectionString` blocks as defined below. ConnectionStrings []LinuxFunctionAppConnectionString `pulumi:"connectionStrings"` // Should the settings for linking the Function App to storage be suppressed. ContentShareForceDisabled *bool `pulumi:"contentShareForceDisabled"` // The identifier used by App Service to perform domain ownership verification via DNS TXT record. CustomDomainVerificationId *string `pulumi:"customDomainVerificationId"` // The amount of memory in gigabyte-seconds that your application is allowed to consume per day. Setting this value only affects function apps under the consumption plan. Defaults to `0`. DailyMemoryTimeQuota *int `pulumi:"dailyMemoryTimeQuota"` // The default hostname of the Linux Function App. DefaultHostname *string `pulumi:"defaultHostname"` // Is the Function App enabled? Defaults to `true`. Enabled *bool `pulumi:"enabled"` // Should the default FTP Basic Authentication publishing profile be enabled. Defaults to `true`. FtpPublishBasicAuthenticationEnabled *bool `pulumi:"ftpPublishBasicAuthenticationEnabled"` // The runtime version associated with the Function App. Defaults to `~4`. FunctionsExtensionVersion *string `pulumi:"functionsExtensionVersion"` // The ID of the App Service Environment used by Function App. HostingEnvironmentId *string `pulumi:"hostingEnvironmentId"` // Can the Function App only be accessed via HTTPS? Defaults to `false`. HttpsOnly *bool `pulumi:"httpsOnly"` // A `identity` block as defined below. Identity *LinuxFunctionAppIdentity `pulumi:"identity"` // The User Assigned Identity ID used for accessing KeyVault secrets. The identity must be assigned to the application in the `identity` block. [For more information see - Access vaults with a user-assigned identity](https://docs.microsoft.com/azure/app-service/app-service-key-vault-references#access-vaults-with-a-user-assigned-identity) KeyVaultReferenceIdentityId *string `pulumi:"keyVaultReferenceIdentityId"` // The Kind value for this Linux Function App. Kind *string `pulumi:"kind"` // The Azure Region where the Linux Function App should exist. Changing this forces a new Linux Function App to be created. Location *string `pulumi:"location"` // The name which should be used for this Linux Function App. Changing this forces a new Linux Function App to be created. Limit the function name to 32 characters to avoid naming collisions. For more information about [Function App naming rule](https://docs.microsoft.com/en-us/azure/azure-resource-manager/management/resource-name-rules#microsoftweb) and [Host ID Collisions](https://github.com/Azure/azure-functions-host/wiki/Host-IDs#host-id-collisions) Name *string `pulumi:"name"` // A list of outbound IP addresses. For example `["52.23.25.3", "52.143.43.12"]` OutboundIpAddressLists []string `pulumi:"outboundIpAddressLists"` // A comma separated list of outbound IP addresses as a string. For example `52.23.25.3,52.143.43.12`. OutboundIpAddresses *string `pulumi:"outboundIpAddresses"` // A list of possible outbound IP addresses, not all of which are necessarily in use. This is a superset of `outboundIpAddressList`. For example `["52.23.25.3", "52.143.43.12"]`. PossibleOutboundIpAddressLists []string `pulumi:"possibleOutboundIpAddressLists"` // A comma separated list of possible outbound IP addresses as a string. For example `52.23.25.3,52.143.43.12,52.143.43.17`. This is a superset of `outboundIpAddresses`. PossibleOutboundIpAddresses *string `pulumi:"possibleOutboundIpAddresses"` // Should public network access be enabled for the Function App. Defaults to `true`. PublicNetworkAccessEnabled *bool `pulumi:"publicNetworkAccessEnabled"` // The name of the Resource Group where the Linux Function App should exist. Changing this forces a new Linux Function App to be created. ResourceGroupName *string `pulumi:"resourceGroupName"` // The ID of the App Service Plan within which to create this Function App. ServicePlanId *string `pulumi:"servicePlanId"` // A `siteConfig` block as defined below. SiteConfig *LinuxFunctionAppSiteConfig `pulumi:"siteConfig"` // A `siteCredential` block as defined below. SiteCredentials []LinuxFunctionAppSiteCredential `pulumi:"siteCredentials"` // A `stickySettings` block as defined below. StickySettings *LinuxFunctionAppStickySettings `pulumi:"stickySettings"` // The access key which will be used to access the backend storage account for the Function App. Conflicts with `storageUsesManagedIdentity`. StorageAccountAccessKey *string `pulumi:"storageAccountAccessKey"` // The backend storage account name which will be used by this Function App. StorageAccountName *string `pulumi:"storageAccountName"` // One or more `storageAccount` blocks as defined below. StorageAccounts []LinuxFunctionAppStorageAccount `pulumi:"storageAccounts"` // The Key Vault Secret ID, optionally including version, that contains the Connection String to connect to the storage account for this Function App. // // > **Note:** `storageKeyVaultSecretId` cannot be used with `storageAccountName`. // // > **Note:** `storageKeyVaultSecretId` used without a version will use the latest version of the secret, however, the service can take up to 24h to pick up a rotation of the latest version. See the [official docs](https://docs.microsoft.com/azure/app-service/app-service-key-vault-references#rotation) for more information. StorageKeyVaultSecretId *string `pulumi:"storageKeyVaultSecretId"` // Should the Function App use Managed Identity to access the storage account. Conflicts with `storageAccountAccessKey`. // // > **Note:** One of `storageAccountAccessKey` or `storageUsesManagedIdentity` must be specified when using `storageAccountName`. StorageUsesManagedIdentity *bool `pulumi:"storageUsesManagedIdentity"` // A mapping of tags which should be assigned to the Linux Function App. Tags map[string]string `pulumi:"tags"` // Whether backup and restore operations over the linked virtual network are enabled. Defaults to `false`. VirtualNetworkBackupRestoreEnabled *bool `pulumi:"virtualNetworkBackupRestoreEnabled"` VirtualNetworkSubnetId *string `pulumi:"virtualNetworkSubnetId"` // Should the traffic for the image pull be routed over virtual network enabled. Defaults to `false`. // // > **Note:** The feature can also be enabled via the app setting `WEBSITE_PULL_IMAGE_OVER_VNET`. Must be set to `true` when running in an App Service Environment. VnetImagePullEnabled *bool `pulumi:"vnetImagePullEnabled"` // Should the default WebDeploy Basic Authentication publishing credentials enabled. Defaults to `true`. // // > **Note:** Setting this value to true will disable the ability to use `zipDeployFile` which currently relies on the default publishing profile. WebdeployPublishBasicAuthenticationEnabled *bool `pulumi:"webdeployPublishBasicAuthenticationEnabled"` // The local path and filename of the Zip packaged application to deploy to this Linux Function App. // // > **Note:** Using this value requires either `WEBSITE_RUN_FROM_PACKAGE=1` or `SCM_DO_BUILD_DURING_DEPLOYMENT=true` to be set on the App in `appSettings`. Refer to the [Azure docs](https://learn.microsoft.com/en-us/azure/azure-functions/functions-deployment-technologies) for further details. ZipDeployFile *string `pulumi:"zipDeployFile"` } type LinuxFunctionAppState struct { // A map of key-value pairs for [App Settings](https://docs.microsoft.com/en-us/azure/azure-functions/functions-app-settings) and custom values. AppSettings pulumi.StringMapInput // A `authSettings` block as defined below. AuthSettings LinuxFunctionAppAuthSettingsPtrInput // An `authSettingsV2` block as defined below. AuthSettingsV2 LinuxFunctionAppAuthSettingsV2PtrInput // A `backup` block as defined below. Backup LinuxFunctionAppBackupPtrInput // Should built in logging be enabled. Configures `AzureWebJobsDashboard` app setting based on the configured storage setting. Defaults to `true`. // // > **Note:** `builtinLoggingEnabled` is only supported for function app whose function runtime is running on version 1.x. BuiltinLoggingEnabled pulumi.BoolPtrInput // Should the function app use Client Certificates. ClientCertificateEnabled pulumi.BoolPtrInput // Paths to exclude when using client certificates, separated by ; ClientCertificateExclusionPaths pulumi.StringPtrInput // The mode of the Function App's client certificates requirement for incoming requests. Possible values are `Required`, `Optional`, and `OptionalInteractiveUser`. Defaults to `Optional`. ClientCertificateMode pulumi.StringPtrInput // One or more `connectionString` blocks as defined below. ConnectionStrings LinuxFunctionAppConnectionStringArrayInput // Should the settings for linking the Function App to storage be suppressed. ContentShareForceDisabled pulumi.BoolPtrInput // The identifier used by App Service to perform domain ownership verification via DNS TXT record. CustomDomainVerificationId pulumi.StringPtrInput // The amount of memory in gigabyte-seconds that your application is allowed to consume per day. Setting this value only affects function apps under the consumption plan. Defaults to `0`. DailyMemoryTimeQuota pulumi.IntPtrInput // The default hostname of the Linux Function App. DefaultHostname pulumi.StringPtrInput // Is the Function App enabled? Defaults to `true`. Enabled pulumi.BoolPtrInput // Should the default FTP Basic Authentication publishing profile be enabled. Defaults to `true`. FtpPublishBasicAuthenticationEnabled pulumi.BoolPtrInput // The runtime version associated with the Function App. Defaults to `~4`. FunctionsExtensionVersion pulumi.StringPtrInput // The ID of the App Service Environment used by Function App. HostingEnvironmentId pulumi.StringPtrInput // Can the Function App only be accessed via HTTPS? Defaults to `false`. HttpsOnly pulumi.BoolPtrInput // A `identity` block as defined below. Identity LinuxFunctionAppIdentityPtrInput // The User Assigned Identity ID used for accessing KeyVault secrets. The identity must be assigned to the application in the `identity` block. [For more information see - Access vaults with a user-assigned identity](https://docs.microsoft.com/azure/app-service/app-service-key-vault-references#access-vaults-with-a-user-assigned-identity) KeyVaultReferenceIdentityId pulumi.StringPtrInput // The Kind value for this Linux Function App. Kind pulumi.StringPtrInput // The Azure Region where the Linux Function App should exist. Changing this forces a new Linux Function App to be created. Location pulumi.StringPtrInput // The name which should be used for this Linux Function App. Changing this forces a new Linux Function App to be created. Limit the function name to 32 characters to avoid naming collisions. For more information about [Function App naming rule](https://docs.microsoft.com/en-us/azure/azure-resource-manager/management/resource-name-rules#microsoftweb) and [Host ID Collisions](https://github.com/Azure/azure-functions-host/wiki/Host-IDs#host-id-collisions) Name pulumi.StringPtrInput // A list of outbound IP addresses. For example `["52.23.25.3", "52.143.43.12"]` OutboundIpAddressLists pulumi.StringArrayInput // A comma separated list of outbound IP addresses as a string. For example `52.23.25.3,52.143.43.12`. OutboundIpAddresses pulumi.StringPtrInput // A list of possible outbound IP addresses, not all of which are necessarily in use. This is a superset of `outboundIpAddressList`. For example `["52.23.25.3", "52.143.43.12"]`. PossibleOutboundIpAddressLists pulumi.StringArrayInput // A comma separated list of possible outbound IP addresses as a string. For example `52.23.25.3,52.143.43.12,52.143.43.17`. This is a superset of `outboundIpAddresses`. PossibleOutboundIpAddresses pulumi.StringPtrInput // Should public network access be enabled for the Function App. Defaults to `true`. PublicNetworkAccessEnabled pulumi.BoolPtrInput // The name of the Resource Group where the Linux Function App should exist. Changing this forces a new Linux Function App to be created. ResourceGroupName pulumi.StringPtrInput // The ID of the App Service Plan within which to create this Function App. ServicePlanId pulumi.StringPtrInput // A `siteConfig` block as defined below. SiteConfig LinuxFunctionAppSiteConfigPtrInput // A `siteCredential` block as defined below. SiteCredentials LinuxFunctionAppSiteCredentialArrayInput // A `stickySettings` block as defined below. StickySettings LinuxFunctionAppStickySettingsPtrInput // The access key which will be used to access the backend storage account for the Function App. Conflicts with `storageUsesManagedIdentity`. StorageAccountAccessKey pulumi.StringPtrInput // The backend storage account name which will be used by this Function App. StorageAccountName pulumi.StringPtrInput // One or more `storageAccount` blocks as defined below. StorageAccounts LinuxFunctionAppStorageAccountArrayInput // The Key Vault Secret ID, optionally including version, that contains the Connection String to connect to the storage account for this Function App. // // > **Note:** `storageKeyVaultSecretId` cannot be used with `storageAccountName`. // // > **Note:** `storageKeyVaultSecretId` used without a version will use the latest version of the secret, however, the service can take up to 24h to pick up a rotation of the latest version. See the [official docs](https://docs.microsoft.com/azure/app-service/app-service-key-vault-references#rotation) for more information. StorageKeyVaultSecretId pulumi.StringPtrInput // Should the Function App use Managed Identity to access the storage account. Conflicts with `storageAccountAccessKey`. // // > **Note:** One of `storageAccountAccessKey` or `storageUsesManagedIdentity` must be specified when using `storageAccountName`. StorageUsesManagedIdentity pulumi.BoolPtrInput // A mapping of tags which should be assigned to the Linux Function App. Tags pulumi.StringMapInput // Whether backup and restore operations over the linked virtual network are enabled. Defaults to `false`. VirtualNetworkBackupRestoreEnabled pulumi.BoolPtrInput VirtualNetworkSubnetId pulumi.StringPtrInput // Should the traffic for the image pull be routed over virtual network enabled. Defaults to `false`. // // > **Note:** The feature can also be enabled via the app setting `WEBSITE_PULL_IMAGE_OVER_VNET`. Must be set to `true` when running in an App Service Environment. VnetImagePullEnabled pulumi.BoolPtrInput // Should the default WebDeploy Basic Authentication publishing credentials enabled. Defaults to `true`. // // > **Note:** Setting this value to true will disable the ability to use `zipDeployFile` which currently relies on the default publishing profile. WebdeployPublishBasicAuthenticationEnabled pulumi.BoolPtrInput // The local path and filename of the Zip packaged application to deploy to this Linux Function App. // // > **Note:** Using this value requires either `WEBSITE_RUN_FROM_PACKAGE=1` or `SCM_DO_BUILD_DURING_DEPLOYMENT=true` to be set on the App in `appSettings`. Refer to the [Azure docs](https://learn.microsoft.com/en-us/azure/azure-functions/functions-deployment-technologies) for further details. ZipDeployFile pulumi.StringPtrInput } func (LinuxFunctionAppState) ElementType() reflect.Type { return reflect.TypeOf((*linuxFunctionAppState)(nil)).Elem() } type linuxFunctionAppArgs struct { // A map of key-value pairs for [App Settings](https://docs.microsoft.com/en-us/azure/azure-functions/functions-app-settings) and custom values. AppSettings map[string]string `pulumi:"appSettings"` // A `authSettings` block as defined below. AuthSettings *LinuxFunctionAppAuthSettings `pulumi:"authSettings"` // An `authSettingsV2` block as defined below. AuthSettingsV2 *LinuxFunctionAppAuthSettingsV2 `pulumi:"authSettingsV2"` // A `backup` block as defined below. Backup *LinuxFunctionAppBackup `pulumi:"backup"` // Should built in logging be enabled. Configures `AzureWebJobsDashboard` app setting based on the configured storage setting. Defaults to `true`. // // > **Note:** `builtinLoggingEnabled` is only supported for function app whose function runtime is running on version 1.x. BuiltinLoggingEnabled *bool `pulumi:"builtinLoggingEnabled"` // Should the function app use Client Certificates. ClientCertificateEnabled *bool `pulumi:"clientCertificateEnabled"` // Paths to exclude when using client certificates, separated by ; ClientCertificateExclusionPaths *string `pulumi:"clientCertificateExclusionPaths"` // The mode of the Function App's client certificates requirement for incoming requests. Possible values are `Required`, `Optional`, and `OptionalInteractiveUser`. Defaults to `Optional`. ClientCertificateMode *string `pulumi:"clientCertificateMode"` // One or more `connectionString` blocks as defined below. ConnectionStrings []LinuxFunctionAppConnectionString `pulumi:"connectionStrings"` // Should the settings for linking the Function App to storage be suppressed. ContentShareForceDisabled *bool `pulumi:"contentShareForceDisabled"`
go
Apache-2.0
b66e1472775a89cca43f5050fef806854a7c3fa3
2026-01-07T09:44:27.619514Z
true
pulumi/pulumi-azure
https://github.com/pulumi/pulumi-azure/blob/b66e1472775a89cca43f5050fef806854a7c3fa3/sdk/go/azure/appservice/windowsWebApp.go
sdk/go/azure/appservice/windowsWebApp.go
// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package appservice import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a Windows Web App. // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/appservice" // "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-resources"), // Location: pulumi.String("West Europe"), // }) // if err != nil { // return err // } // exampleServicePlan, err := appservice.NewServicePlan(ctx, "example", &appservice.ServicePlanArgs{ // Name: pulumi.String("example"), // ResourceGroupName: example.Name, // Location: example.Location, // SkuName: pulumi.String("P1v2"), // OsType: pulumi.String("Windows"), // }) // if err != nil { // return err // } // _, err = appservice.NewWindowsWebApp(ctx, "example", &appservice.WindowsWebAppArgs{ // Name: pulumi.String("example"), // ResourceGroupName: example.Name, // Location: exampleServicePlan.Location, // ServicePlanId: exampleServicePlan.ID(), // SiteConfig: &appservice.WindowsWebAppSiteConfigArgs{}, // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## API Providers // // <!-- This section is generated, changes will be overwritten --> // This resource uses the following Azure API Providers: // // * `Microsoft.Web` - 2023-12-01, 2023-01-01 // // ## Import // // Windows Web Apps can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:appservice/windowsWebApp:WindowsWebApp example /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/resGroup1/providers/Microsoft.Web/sites/site1 // ``` type WindowsWebApp struct { pulumi.CustomResourceState // A map of key-value pairs of App Settings. AppSettings pulumi.StringMapOutput `pulumi:"appSettings"` // An `authSettings` block as defined below. AuthSettings WindowsWebAppAuthSettingsPtrOutput `pulumi:"authSettings"` // An `authSettingsV2` block as defined below. AuthSettingsV2 WindowsWebAppAuthSettingsV2PtrOutput `pulumi:"authSettingsV2"` // A `backup` block as defined below. Backup WindowsWebAppBackupPtrOutput `pulumi:"backup"` // Should Client Affinity be enabled? ClientAffinityEnabled pulumi.BoolPtrOutput `pulumi:"clientAffinityEnabled"` // Should Client Certificates be enabled? ClientCertificateEnabled pulumi.BoolPtrOutput `pulumi:"clientCertificateEnabled"` // Paths to exclude when using client certificates, separated by ; ClientCertificateExclusionPaths pulumi.StringPtrOutput `pulumi:"clientCertificateExclusionPaths"` // The Client Certificate mode. Possible values are `Required`, `Optional`, and `OptionalInteractiveUser`. This property has no effect when `clientCertificateEnabled` is `false`. Defaults to `Required`. ClientCertificateMode pulumi.StringPtrOutput `pulumi:"clientCertificateMode"` // One or more `connectionString` blocks as defined below. ConnectionStrings WindowsWebAppConnectionStringArrayOutput `pulumi:"connectionStrings"` // The identifier used by App Service to perform domain ownership verification via DNS TXT record. CustomDomainVerificationId pulumi.StringOutput `pulumi:"customDomainVerificationId"` // The default hostname of the Windows Web App. DefaultHostname pulumi.StringOutput `pulumi:"defaultHostname"` // Should the Windows Web App be enabled? Defaults to `true`. Enabled pulumi.BoolPtrOutput `pulumi:"enabled"` // Should the default FTP Basic Authentication publishing profile be enabled. Defaults to `true`. FtpPublishBasicAuthenticationEnabled pulumi.BoolPtrOutput `pulumi:"ftpPublishBasicAuthenticationEnabled"` // The ID of the App Service Environment used by App Service. HostingEnvironmentId pulumi.StringOutput `pulumi:"hostingEnvironmentId"` // Should the Windows Web App require HTTPS connections. Defaults to `false`. HttpsOnly pulumi.BoolPtrOutput `pulumi:"httpsOnly"` // An `identity` block as defined below. Identity WindowsWebAppIdentityPtrOutput `pulumi:"identity"` // The User Assigned Identity ID used for accessing KeyVault secrets. The identity must be assigned to the application in the `identity` block. [For more information see - Access vaults with a user-assigned identity](https://docs.microsoft.com/azure/app-service/app-service-key-vault-references#access-vaults-with-a-user-assigned-identity) KeyVaultReferenceIdentityId pulumi.StringOutput `pulumi:"keyVaultReferenceIdentityId"` // The Kind value for this Windows Web App. Kind pulumi.StringOutput `pulumi:"kind"` // The Azure Region where the Windows Web App should exist. Changing this forces a new Windows Web App to be created. Location pulumi.StringOutput `pulumi:"location"` // A `logs` block as defined below. Logs WindowsWebAppLogsPtrOutput `pulumi:"logs"` // The name which should be used for this Windows Web App. Changing this forces a new Windows Web App to be created. Name pulumi.StringOutput `pulumi:"name"` // A list of outbound IP addresses - such as `["52.23.25.3", "52.143.43.12"]` OutboundIpAddressLists pulumi.StringArrayOutput `pulumi:"outboundIpAddressLists"` // A comma separated list of outbound IP addresses - such as `52.23.25.3,52.143.43.12`. OutboundIpAddresses pulumi.StringOutput `pulumi:"outboundIpAddresses"` // A list of possible outbound ip address. PossibleOutboundIpAddressLists pulumi.StringArrayOutput `pulumi:"possibleOutboundIpAddressLists"` // A comma separated list of outbound IP addresses - such as `52.23.25.3,52.143.43.12,52.143.43.17` - not all of which are necessarily in use. Superset of `outboundIpAddresses`. PossibleOutboundIpAddresses pulumi.StringOutput `pulumi:"possibleOutboundIpAddresses"` // Should public network access be enabled for the Web App. Defaults to `true`. PublicNetworkAccessEnabled pulumi.BoolPtrOutput `pulumi:"publicNetworkAccessEnabled"` // The name of the Resource Group where the Windows Web App should exist. Changing this forces a new Windows Web App to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // The ID of the Service Plan that this Windows App Service will be created in. ServicePlanId pulumi.StringOutput `pulumi:"servicePlanId"` // A `siteConfig` block as defined below. SiteConfig WindowsWebAppSiteConfigOutput `pulumi:"siteConfig"` // A `siteCredential` block as defined below. SiteCredentials WindowsWebAppSiteCredentialArrayOutput `pulumi:"siteCredentials"` // A `stickySettings` block as defined below. StickySettings WindowsWebAppStickySettingsPtrOutput `pulumi:"stickySettings"` // One or more `storageAccount` blocks as defined below. // // > **Note:** Using this value requires `WEBSITE_RUN_FROM_PACKAGE=1` to be set on the App in `appSettings`. Refer to the [Azure docs](https://docs.microsoft.com/en-us/azure/app-service/deploy-run-package) for further details. StorageAccounts WindowsWebAppStorageAccountArrayOutput `pulumi:"storageAccounts"` // A mapping of tags which should be assigned to the Windows Web App. Tags pulumi.StringMapOutput `pulumi:"tags"` // Whether backup and restore operations over the linked virtual network are enabled. Defaults to `false`. VirtualNetworkBackupRestoreEnabled pulumi.BoolPtrOutput `pulumi:"virtualNetworkBackupRestoreEnabled"` // Whether traffic for the image pull should be routed over the virtual network. // // > **Note:** `virtualNetworkImagePullEnabled` must be set to `true` when running in an App Service Environment. VirtualNetworkImagePullEnabled pulumi.BoolOutput `pulumi:"virtualNetworkImagePullEnabled"` VirtualNetworkSubnetId pulumi.StringPtrOutput `pulumi:"virtualNetworkSubnetId"` // Should the default WebDeploy Basic Authentication publishing credentials enabled. Defaults to `true`. // // > **Note:** Setting this value to true will disable the ability to use `zipDeployFile` which currently relies on the default publishing profile. WebdeployPublishBasicAuthenticationEnabled pulumi.BoolPtrOutput `pulumi:"webdeployPublishBasicAuthenticationEnabled"` // The local path and filename of the Zip packaged application to deploy to this Windows Web App. // // > **Note:** Using this value requires either `WEBSITE_RUN_FROM_PACKAGE=1` or `SCM_DO_BUILD_DURING_DEPLOYMENT=true` to be set on the App in `appSettings`. Refer to the Azure docs on [running the Web App directly from the Zip package](https://learn.microsoft.com/en-us/azure/app-service/deploy-run-package), or [automating the build for Zip deploy](https://learn.microsoft.com/en-us/azure/app-service/deploy-zip#enable-build-automation-for-zip-deploy) for further details. ZipDeployFile pulumi.StringOutput `pulumi:"zipDeployFile"` } // NewWindowsWebApp registers a new resource with the given unique name, arguments, and options. func NewWindowsWebApp(ctx *pulumi.Context, name string, args *WindowsWebAppArgs, opts ...pulumi.ResourceOption) (*WindowsWebApp, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.ResourceGroupName == nil { return nil, errors.New("invalid value for required argument 'ResourceGroupName'") } if args.ServicePlanId == nil { return nil, errors.New("invalid value for required argument 'ServicePlanId'") } if args.SiteConfig == nil { return nil, errors.New("invalid value for required argument 'SiteConfig'") } secrets := pulumi.AdditionalSecretOutputs([]string{ "customDomainVerificationId", "siteCredentials", }) opts = append(opts, secrets) opts = internal.PkgResourceDefaultOpts(opts) var resource WindowsWebApp err := ctx.RegisterResource("azure:appservice/windowsWebApp:WindowsWebApp", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetWindowsWebApp gets an existing WindowsWebApp 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 GetWindowsWebApp(ctx *pulumi.Context, name string, id pulumi.IDInput, state *WindowsWebAppState, opts ...pulumi.ResourceOption) (*WindowsWebApp, error) { var resource WindowsWebApp err := ctx.ReadResource("azure:appservice/windowsWebApp:WindowsWebApp", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering WindowsWebApp resources. type windowsWebAppState struct { // A map of key-value pairs of App Settings. AppSettings map[string]string `pulumi:"appSettings"` // An `authSettings` block as defined below. AuthSettings *WindowsWebAppAuthSettings `pulumi:"authSettings"` // An `authSettingsV2` block as defined below. AuthSettingsV2 *WindowsWebAppAuthSettingsV2 `pulumi:"authSettingsV2"` // A `backup` block as defined below. Backup *WindowsWebAppBackup `pulumi:"backup"` // Should Client Affinity be enabled? ClientAffinityEnabled *bool `pulumi:"clientAffinityEnabled"` // Should Client Certificates be enabled? ClientCertificateEnabled *bool `pulumi:"clientCertificateEnabled"` // Paths to exclude when using client certificates, separated by ; ClientCertificateExclusionPaths *string `pulumi:"clientCertificateExclusionPaths"` // The Client Certificate mode. Possible values are `Required`, `Optional`, and `OptionalInteractiveUser`. This property has no effect when `clientCertificateEnabled` is `false`. Defaults to `Required`. ClientCertificateMode *string `pulumi:"clientCertificateMode"` // One or more `connectionString` blocks as defined below. ConnectionStrings []WindowsWebAppConnectionString `pulumi:"connectionStrings"` // The identifier used by App Service to perform domain ownership verification via DNS TXT record. CustomDomainVerificationId *string `pulumi:"customDomainVerificationId"` // The default hostname of the Windows Web App. DefaultHostname *string `pulumi:"defaultHostname"` // Should the Windows Web App be enabled? Defaults to `true`. Enabled *bool `pulumi:"enabled"` // Should the default FTP Basic Authentication publishing profile be enabled. Defaults to `true`. FtpPublishBasicAuthenticationEnabled *bool `pulumi:"ftpPublishBasicAuthenticationEnabled"` // The ID of the App Service Environment used by App Service. HostingEnvironmentId *string `pulumi:"hostingEnvironmentId"` // Should the Windows Web App require HTTPS connections. Defaults to `false`. HttpsOnly *bool `pulumi:"httpsOnly"` // An `identity` block as defined below. Identity *WindowsWebAppIdentity `pulumi:"identity"` // The User Assigned Identity ID used for accessing KeyVault secrets. The identity must be assigned to the application in the `identity` block. [For more information see - Access vaults with a user-assigned identity](https://docs.microsoft.com/azure/app-service/app-service-key-vault-references#access-vaults-with-a-user-assigned-identity) KeyVaultReferenceIdentityId *string `pulumi:"keyVaultReferenceIdentityId"` // The Kind value for this Windows Web App. Kind *string `pulumi:"kind"` // The Azure Region where the Windows Web App should exist. Changing this forces a new Windows Web App to be created. Location *string `pulumi:"location"` // A `logs` block as defined below. Logs *WindowsWebAppLogs `pulumi:"logs"` // The name which should be used for this Windows Web App. Changing this forces a new Windows Web App to be created. Name *string `pulumi:"name"` // A list of outbound IP addresses - such as `["52.23.25.3", "52.143.43.12"]` OutboundIpAddressLists []string `pulumi:"outboundIpAddressLists"` // A comma separated list of outbound IP addresses - such as `52.23.25.3,52.143.43.12`. OutboundIpAddresses *string `pulumi:"outboundIpAddresses"` // A list of possible outbound ip address. PossibleOutboundIpAddressLists []string `pulumi:"possibleOutboundIpAddressLists"` // A comma separated list of outbound IP addresses - such as `52.23.25.3,52.143.43.12,52.143.43.17` - not all of which are necessarily in use. Superset of `outboundIpAddresses`. PossibleOutboundIpAddresses *string `pulumi:"possibleOutboundIpAddresses"` // Should public network access be enabled for the Web App. Defaults to `true`. PublicNetworkAccessEnabled *bool `pulumi:"publicNetworkAccessEnabled"` // The name of the Resource Group where the Windows Web App should exist. Changing this forces a new Windows Web App to be created. ResourceGroupName *string `pulumi:"resourceGroupName"` // The ID of the Service Plan that this Windows App Service will be created in. ServicePlanId *string `pulumi:"servicePlanId"` // A `siteConfig` block as defined below. SiteConfig *WindowsWebAppSiteConfig `pulumi:"siteConfig"` // A `siteCredential` block as defined below. SiteCredentials []WindowsWebAppSiteCredential `pulumi:"siteCredentials"` // A `stickySettings` block as defined below. StickySettings *WindowsWebAppStickySettings `pulumi:"stickySettings"` // One or more `storageAccount` blocks as defined below. // // > **Note:** Using this value requires `WEBSITE_RUN_FROM_PACKAGE=1` to be set on the App in `appSettings`. Refer to the [Azure docs](https://docs.microsoft.com/en-us/azure/app-service/deploy-run-package) for further details. StorageAccounts []WindowsWebAppStorageAccount `pulumi:"storageAccounts"` // A mapping of tags which should be assigned to the Windows Web App. Tags map[string]string `pulumi:"tags"` // Whether backup and restore operations over the linked virtual network are enabled. Defaults to `false`. VirtualNetworkBackupRestoreEnabled *bool `pulumi:"virtualNetworkBackupRestoreEnabled"` // Whether traffic for the image pull should be routed over the virtual network. // // > **Note:** `virtualNetworkImagePullEnabled` must be set to `true` when running in an App Service Environment. VirtualNetworkImagePullEnabled *bool `pulumi:"virtualNetworkImagePullEnabled"` VirtualNetworkSubnetId *string `pulumi:"virtualNetworkSubnetId"` // Should the default WebDeploy Basic Authentication publishing credentials enabled. Defaults to `true`. // // > **Note:** Setting this value to true will disable the ability to use `zipDeployFile` which currently relies on the default publishing profile. WebdeployPublishBasicAuthenticationEnabled *bool `pulumi:"webdeployPublishBasicAuthenticationEnabled"` // The local path and filename of the Zip packaged application to deploy to this Windows Web App. // // > **Note:** Using this value requires either `WEBSITE_RUN_FROM_PACKAGE=1` or `SCM_DO_BUILD_DURING_DEPLOYMENT=true` to be set on the App in `appSettings`. Refer to the Azure docs on [running the Web App directly from the Zip package](https://learn.microsoft.com/en-us/azure/app-service/deploy-run-package), or [automating the build for Zip deploy](https://learn.microsoft.com/en-us/azure/app-service/deploy-zip#enable-build-automation-for-zip-deploy) for further details. ZipDeployFile *string `pulumi:"zipDeployFile"` } type WindowsWebAppState struct { // A map of key-value pairs of App Settings. AppSettings pulumi.StringMapInput // An `authSettings` block as defined below. AuthSettings WindowsWebAppAuthSettingsPtrInput // An `authSettingsV2` block as defined below. AuthSettingsV2 WindowsWebAppAuthSettingsV2PtrInput // A `backup` block as defined below. Backup WindowsWebAppBackupPtrInput // Should Client Affinity be enabled? ClientAffinityEnabled pulumi.BoolPtrInput // Should Client Certificates be enabled? ClientCertificateEnabled pulumi.BoolPtrInput // Paths to exclude when using client certificates, separated by ; ClientCertificateExclusionPaths pulumi.StringPtrInput // The Client Certificate mode. Possible values are `Required`, `Optional`, and `OptionalInteractiveUser`. This property has no effect when `clientCertificateEnabled` is `false`. Defaults to `Required`. ClientCertificateMode pulumi.StringPtrInput // One or more `connectionString` blocks as defined below. ConnectionStrings WindowsWebAppConnectionStringArrayInput // The identifier used by App Service to perform domain ownership verification via DNS TXT record. CustomDomainVerificationId pulumi.StringPtrInput // The default hostname of the Windows Web App. DefaultHostname pulumi.StringPtrInput // Should the Windows Web App be enabled? Defaults to `true`. Enabled pulumi.BoolPtrInput // Should the default FTP Basic Authentication publishing profile be enabled. Defaults to `true`. FtpPublishBasicAuthenticationEnabled pulumi.BoolPtrInput // The ID of the App Service Environment used by App Service. HostingEnvironmentId pulumi.StringPtrInput // Should the Windows Web App require HTTPS connections. Defaults to `false`. HttpsOnly pulumi.BoolPtrInput // An `identity` block as defined below. Identity WindowsWebAppIdentityPtrInput // The User Assigned Identity ID used for accessing KeyVault secrets. The identity must be assigned to the application in the `identity` block. [For more information see - Access vaults with a user-assigned identity](https://docs.microsoft.com/azure/app-service/app-service-key-vault-references#access-vaults-with-a-user-assigned-identity) KeyVaultReferenceIdentityId pulumi.StringPtrInput // The Kind value for this Windows Web App. Kind pulumi.StringPtrInput // The Azure Region where the Windows Web App should exist. Changing this forces a new Windows Web App to be created. Location pulumi.StringPtrInput // A `logs` block as defined below. Logs WindowsWebAppLogsPtrInput // The name which should be used for this Windows Web App. Changing this forces a new Windows Web App to be created. Name pulumi.StringPtrInput // A list of outbound IP addresses - such as `["52.23.25.3", "52.143.43.12"]` OutboundIpAddressLists pulumi.StringArrayInput // A comma separated list of outbound IP addresses - such as `52.23.25.3,52.143.43.12`. OutboundIpAddresses pulumi.StringPtrInput // A list of possible outbound ip address. PossibleOutboundIpAddressLists pulumi.StringArrayInput // A comma separated list of outbound IP addresses - such as `52.23.25.3,52.143.43.12,52.143.43.17` - not all of which are necessarily in use. Superset of `outboundIpAddresses`. PossibleOutboundIpAddresses pulumi.StringPtrInput // Should public network access be enabled for the Web App. Defaults to `true`. PublicNetworkAccessEnabled pulumi.BoolPtrInput // The name of the Resource Group where the Windows Web App should exist. Changing this forces a new Windows Web App to be created. ResourceGroupName pulumi.StringPtrInput // The ID of the Service Plan that this Windows App Service will be created in. ServicePlanId pulumi.StringPtrInput // A `siteConfig` block as defined below. SiteConfig WindowsWebAppSiteConfigPtrInput // A `siteCredential` block as defined below. SiteCredentials WindowsWebAppSiteCredentialArrayInput // A `stickySettings` block as defined below. StickySettings WindowsWebAppStickySettingsPtrInput // One or more `storageAccount` blocks as defined below. // // > **Note:** Using this value requires `WEBSITE_RUN_FROM_PACKAGE=1` to be set on the App in `appSettings`. Refer to the [Azure docs](https://docs.microsoft.com/en-us/azure/app-service/deploy-run-package) for further details. StorageAccounts WindowsWebAppStorageAccountArrayInput // A mapping of tags which should be assigned to the Windows Web App. Tags pulumi.StringMapInput // Whether backup and restore operations over the linked virtual network are enabled. Defaults to `false`. VirtualNetworkBackupRestoreEnabled pulumi.BoolPtrInput // Whether traffic for the image pull should be routed over the virtual network. // // > **Note:** `virtualNetworkImagePullEnabled` must be set to `true` when running in an App Service Environment. VirtualNetworkImagePullEnabled pulumi.BoolPtrInput VirtualNetworkSubnetId pulumi.StringPtrInput // Should the default WebDeploy Basic Authentication publishing credentials enabled. Defaults to `true`. // // > **Note:** Setting this value to true will disable the ability to use `zipDeployFile` which currently relies on the default publishing profile. WebdeployPublishBasicAuthenticationEnabled pulumi.BoolPtrInput // The local path and filename of the Zip packaged application to deploy to this Windows Web App. // // > **Note:** Using this value requires either `WEBSITE_RUN_FROM_PACKAGE=1` or `SCM_DO_BUILD_DURING_DEPLOYMENT=true` to be set on the App in `appSettings`. Refer to the Azure docs on [running the Web App directly from the Zip package](https://learn.microsoft.com/en-us/azure/app-service/deploy-run-package), or [automating the build for Zip deploy](https://learn.microsoft.com/en-us/azure/app-service/deploy-zip#enable-build-automation-for-zip-deploy) for further details. ZipDeployFile pulumi.StringPtrInput } func (WindowsWebAppState) ElementType() reflect.Type { return reflect.TypeOf((*windowsWebAppState)(nil)).Elem() } type windowsWebAppArgs struct { // A map of key-value pairs of App Settings. AppSettings map[string]string `pulumi:"appSettings"` // An `authSettings` block as defined below. AuthSettings *WindowsWebAppAuthSettings `pulumi:"authSettings"` // An `authSettingsV2` block as defined below. AuthSettingsV2 *WindowsWebAppAuthSettingsV2 `pulumi:"authSettingsV2"` // A `backup` block as defined below. Backup *WindowsWebAppBackup `pulumi:"backup"` // Should Client Affinity be enabled? ClientAffinityEnabled *bool `pulumi:"clientAffinityEnabled"` // Should Client Certificates be enabled? ClientCertificateEnabled *bool `pulumi:"clientCertificateEnabled"` // Paths to exclude when using client certificates, separated by ; ClientCertificateExclusionPaths *string `pulumi:"clientCertificateExclusionPaths"` // The Client Certificate mode. Possible values are `Required`, `Optional`, and `OptionalInteractiveUser`. This property has no effect when `clientCertificateEnabled` is `false`. Defaults to `Required`. ClientCertificateMode *string `pulumi:"clientCertificateMode"` // One or more `connectionString` blocks as defined below. ConnectionStrings []WindowsWebAppConnectionString `pulumi:"connectionStrings"` // Should the Windows Web App be enabled? Defaults to `true`. Enabled *bool `pulumi:"enabled"` // Should the default FTP Basic Authentication publishing profile be enabled. Defaults to `true`. FtpPublishBasicAuthenticationEnabled *bool `pulumi:"ftpPublishBasicAuthenticationEnabled"` // Should the Windows Web App require HTTPS connections. Defaults to `false`. HttpsOnly *bool `pulumi:"httpsOnly"` // An `identity` block as defined below. Identity *WindowsWebAppIdentity `pulumi:"identity"` // The User Assigned Identity ID used for accessing KeyVault secrets. The identity must be assigned to the application in the `identity` block. [For more information see - Access vaults with a user-assigned identity](https://docs.microsoft.com/azure/app-service/app-service-key-vault-references#access-vaults-with-a-user-assigned-identity) KeyVaultReferenceIdentityId *string `pulumi:"keyVaultReferenceIdentityId"` // The Azure Region where the Windows Web App should exist. Changing this forces a new Windows Web App to be created. Location *string `pulumi:"location"` // A `logs` block as defined below. Logs *WindowsWebAppLogs `pulumi:"logs"` // The name which should be used for this Windows Web App. Changing this forces a new Windows Web App to be created. Name *string `pulumi:"name"` // Should public network access be enabled for the Web App. Defaults to `true`. PublicNetworkAccessEnabled *bool `pulumi:"publicNetworkAccessEnabled"` // The name of the Resource Group where the Windows Web App should exist. Changing this forces a new Windows Web App to be created. ResourceGroupName string `pulumi:"resourceGroupName"` // The ID of the Service Plan that this Windows App Service will be created in. ServicePlanId string `pulumi:"servicePlanId"` // A `siteConfig` block as defined below. SiteConfig WindowsWebAppSiteConfig `pulumi:"siteConfig"` // A `stickySettings` block as defined below. StickySettings *WindowsWebAppStickySettings `pulumi:"stickySettings"` // One or more `storageAccount` blocks as defined below. // // > **Note:** Using this value requires `WEBSITE_RUN_FROM_PACKAGE=1` to be set on the App in `appSettings`. Refer to the [Azure docs](https://docs.microsoft.com/en-us/azure/app-service/deploy-run-package) for further details. StorageAccounts []WindowsWebAppStorageAccount `pulumi:"storageAccounts"` // A mapping of tags which should be assigned to the Windows Web App. Tags map[string]string `pulumi:"tags"` // Whether backup and restore operations over the linked virtual network are enabled. Defaults to `false`. VirtualNetworkBackupRestoreEnabled *bool `pulumi:"virtualNetworkBackupRestoreEnabled"` // Whether traffic for the image pull should be routed over the virtual network. // // > **Note:** `virtualNetworkImagePullEnabled` must be set to `true` when running in an App Service Environment. VirtualNetworkImagePullEnabled *bool `pulumi:"virtualNetworkImagePullEnabled"` VirtualNetworkSubnetId *string `pulumi:"virtualNetworkSubnetId"` // Should the default WebDeploy Basic Authentication publishing credentials enabled. Defaults to `true`. // // > **Note:** Setting this value to true will disable the ability to use `zipDeployFile` which currently relies on the default publishing profile. WebdeployPublishBasicAuthenticationEnabled *bool `pulumi:"webdeployPublishBasicAuthenticationEnabled"` // The local path and filename of the Zip packaged application to deploy to this Windows Web App. // // > **Note:** Using this value requires either `WEBSITE_RUN_FROM_PACKAGE=1` or `SCM_DO_BUILD_DURING_DEPLOYMENT=true` to be set on the App in `appSettings`. Refer to the Azure docs on [running the Web App directly from the Zip package](https://learn.microsoft.com/en-us/azure/app-service/deploy-run-package), or [automating the build for Zip deploy](https://learn.microsoft.com/en-us/azure/app-service/deploy-zip#enable-build-automation-for-zip-deploy) for further details. ZipDeployFile *string `pulumi:"zipDeployFile"` } // The set of arguments for constructing a WindowsWebApp resource. type WindowsWebAppArgs struct { // A map of key-value pairs of App Settings. AppSettings pulumi.StringMapInput // An `authSettings` block as defined below. AuthSettings WindowsWebAppAuthSettingsPtrInput // An `authSettingsV2` block as defined below. AuthSettingsV2 WindowsWebAppAuthSettingsV2PtrInput // A `backup` block as defined below. Backup WindowsWebAppBackupPtrInput // Should Client Affinity be enabled? ClientAffinityEnabled pulumi.BoolPtrInput // Should Client Certificates be enabled? ClientCertificateEnabled pulumi.BoolPtrInput // Paths to exclude when using client certificates, separated by ; ClientCertificateExclusionPaths pulumi.StringPtrInput // The Client Certificate mode. Possible values are `Required`, `Optional`, and `OptionalInteractiveUser`. This property has no effect when `clientCertificateEnabled` is `false`. Defaults to `Required`. ClientCertificateMode pulumi.StringPtrInput // One or more `connectionString` blocks as defined below. ConnectionStrings WindowsWebAppConnectionStringArrayInput // Should the Windows Web App be enabled? Defaults to `true`. Enabled pulumi.BoolPtrInput // Should the default FTP Basic Authentication publishing profile be enabled. Defaults to `true`. FtpPublishBasicAuthenticationEnabled pulumi.BoolPtrInput // Should the Windows Web App require HTTPS connections. Defaults to `false`. HttpsOnly pulumi.BoolPtrInput // An `identity` block as defined below. Identity WindowsWebAppIdentityPtrInput // The User Assigned Identity ID used for accessing KeyVault secrets. The identity must be assigned to the application in the `identity` block. [For more information see - Access vaults with a user-assigned identity](https://docs.microsoft.com/azure/app-service/app-service-key-vault-references#access-vaults-with-a-user-assigned-identity) KeyVaultReferenceIdentityId pulumi.StringPtrInput // The Azure Region where the Windows Web App should exist. Changing this forces a new Windows Web App to be created. Location pulumi.StringPtrInput // A `logs` block as defined below. Logs WindowsWebAppLogsPtrInput // The name which should be used for this Windows Web App. Changing this forces a new Windows Web App to be created. Name pulumi.StringPtrInput // Should public network access be enabled for the Web App. Defaults to `true`. PublicNetworkAccessEnabled pulumi.BoolPtrInput // The name of the Resource Group where the Windows Web App should exist. Changing this forces a new Windows Web App to be created. ResourceGroupName pulumi.StringInput // The ID of the Service Plan that this Windows App Service will be created in. ServicePlanId pulumi.StringInput // A `siteConfig` block as defined below. SiteConfig WindowsWebAppSiteConfigInput // A `stickySettings` block as defined below. StickySettings WindowsWebAppStickySettingsPtrInput // One or more `storageAccount` blocks as defined below. // // > **Note:** Using this value requires `WEBSITE_RUN_FROM_PACKAGE=1` to be set on the App in `appSettings`. Refer to the [Azure docs](https://docs.microsoft.com/en-us/azure/app-service/deploy-run-package) for further details. StorageAccounts WindowsWebAppStorageAccountArrayInput // A mapping of tags which should be assigned to the Windows Web App. Tags pulumi.StringMapInput // Whether backup and restore operations over the linked virtual network are enabled. Defaults to `false`. VirtualNetworkBackupRestoreEnabled pulumi.BoolPtrInput // Whether traffic for the image pull should be routed over the virtual network. // // > **Note:** `virtualNetworkImagePullEnabled` must be set to `true` when running in an App Service Environment. VirtualNetworkImagePullEnabled pulumi.BoolPtrInput VirtualNetworkSubnetId pulumi.StringPtrInput // Should the default WebDeploy Basic Authentication publishing credentials enabled. Defaults to `true`. // // > **Note:** Setting this value to true will disable the ability to use `zipDeployFile` which currently relies on the default publishing profile. WebdeployPublishBasicAuthenticationEnabled pulumi.BoolPtrInput
go
Apache-2.0
b66e1472775a89cca43f5050fef806854a7c3fa3
2026-01-07T09:44:27.619514Z
true
pulumi/pulumi-azure
https://github.com/pulumi/pulumi-azure/blob/b66e1472775a89cca43f5050fef806854a7c3fa3/sdk/go/azure/appservice/getServicePlan.go
sdk/go/azure/appservice/getServicePlan.go
// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package appservice import ( "context" "reflect" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Use this data source to access information about an existing Service Plan. // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/appservice" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { // example, err := appservice.LookupServicePlan(ctx, &appservice.LookupServicePlanArgs{ // Name: "existing", // ResourceGroupName: "existing", // }, nil) // if err != nil { // return err // } // ctx.Export("id", example.Id) // return nil // }) // } // // ``` // // ## API Providers // // <!-- This section is generated, changes will be overwritten --> // This data source uses the following Azure API Providers: // // * `Microsoft.Web` - 2023-12-01 func LookupServicePlan(ctx *pulumi.Context, args *LookupServicePlanArgs, opts ...pulumi.InvokeOption) (*LookupServicePlanResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupServicePlanResult err := ctx.Invoke("azure:appservice/getServicePlan:getServicePlan", args, &rv, opts...) if err != nil { return nil, err } return &rv, nil } // A collection of arguments for invoking getServicePlan. type LookupServicePlanArgs struct { // The name of this Service Plan. Name string `pulumi:"name"` // The name of the Resource Group where the Service Plan exists. ResourceGroupName string `pulumi:"resourceGroupName"` } // A collection of values returned by getServicePlan. type LookupServicePlanResult struct { // The ID of the App Service Environment this Service Plan is part of. AppServiceEnvironmentId string `pulumi:"appServiceEnvironmentId"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` // A string representing the Kind of Service Plan. Kind string `pulumi:"kind"` // The Azure Region where the Service Plan exists. Location string `pulumi:"location"` // The maximum number of workers in use in an Elastic SKU Plan. MaximumElasticWorkerCount int `pulumi:"maximumElasticWorkerCount"` Name string `pulumi:"name"` // The O/S type for the App Services hosted in this plan. OsType string `pulumi:"osType"` // Is Per Site Scaling be enabled? PerSiteScalingEnabled bool `pulumi:"perSiteScalingEnabled"` // Whether this is a reserved Service Plan Type. `true` if `osType` is `Linux`, otherwise `false`. Reserved bool `pulumi:"reserved"` ResourceGroupName string `pulumi:"resourceGroupName"` // The SKU for the Service Plan. SkuName string `pulumi:"skuName"` // A mapping of tags assigned to the Service Plan. Tags map[string]string `pulumi:"tags"` // The number of Workers (instances) allocated. WorkerCount int `pulumi:"workerCount"` // Is the Service Plan balance across Availability Zones in the region? ZoneBalancingEnabled bool `pulumi:"zoneBalancingEnabled"` } func LookupServicePlanOutput(ctx *pulumi.Context, args LookupServicePlanOutputArgs, opts ...pulumi.InvokeOption) LookupServicePlanResultOutput { return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupServicePlanResultOutput, error) { args := v.(LookupServicePlanArgs) options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} return ctx.InvokeOutput("azure:appservice/getServicePlan:getServicePlan", args, LookupServicePlanResultOutput{}, options).(LookupServicePlanResultOutput), nil }).(LookupServicePlanResultOutput) } // A collection of arguments for invoking getServicePlan. type LookupServicePlanOutputArgs struct { // The name of this Service Plan. Name pulumi.StringInput `pulumi:"name"` // The name of the Resource Group where the Service Plan exists. ResourceGroupName pulumi.StringInput `pulumi:"resourceGroupName"` } func (LookupServicePlanOutputArgs) ElementType() reflect.Type { return reflect.TypeOf((*LookupServicePlanArgs)(nil)).Elem() } // A collection of values returned by getServicePlan. type LookupServicePlanResultOutput struct{ *pulumi.OutputState } func (LookupServicePlanResultOutput) ElementType() reflect.Type { return reflect.TypeOf((*LookupServicePlanResult)(nil)).Elem() } func (o LookupServicePlanResultOutput) ToLookupServicePlanResultOutput() LookupServicePlanResultOutput { return o } func (o LookupServicePlanResultOutput) ToLookupServicePlanResultOutputWithContext(ctx context.Context) LookupServicePlanResultOutput { return o } // The ID of the App Service Environment this Service Plan is part of. func (o LookupServicePlanResultOutput) AppServiceEnvironmentId() pulumi.StringOutput { return o.ApplyT(func(v LookupServicePlanResult) string { return v.AppServiceEnvironmentId }).(pulumi.StringOutput) } // The provider-assigned unique ID for this managed resource. func (o LookupServicePlanResultOutput) Id() pulumi.StringOutput { return o.ApplyT(func(v LookupServicePlanResult) string { return v.Id }).(pulumi.StringOutput) } // A string representing the Kind of Service Plan. func (o LookupServicePlanResultOutput) Kind() pulumi.StringOutput { return o.ApplyT(func(v LookupServicePlanResult) string { return v.Kind }).(pulumi.StringOutput) } // The Azure Region where the Service Plan exists. func (o LookupServicePlanResultOutput) Location() pulumi.StringOutput { return o.ApplyT(func(v LookupServicePlanResult) string { return v.Location }).(pulumi.StringOutput) } // The maximum number of workers in use in an Elastic SKU Plan. func (o LookupServicePlanResultOutput) MaximumElasticWorkerCount() pulumi.IntOutput { return o.ApplyT(func(v LookupServicePlanResult) int { return v.MaximumElasticWorkerCount }).(pulumi.IntOutput) } func (o LookupServicePlanResultOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v LookupServicePlanResult) string { return v.Name }).(pulumi.StringOutput) } // The O/S type for the App Services hosted in this plan. func (o LookupServicePlanResultOutput) OsType() pulumi.StringOutput { return o.ApplyT(func(v LookupServicePlanResult) string { return v.OsType }).(pulumi.StringOutput) } // Is Per Site Scaling be enabled? func (o LookupServicePlanResultOutput) PerSiteScalingEnabled() pulumi.BoolOutput { return o.ApplyT(func(v LookupServicePlanResult) bool { return v.PerSiteScalingEnabled }).(pulumi.BoolOutput) } // Whether this is a reserved Service Plan Type. `true` if `osType` is `Linux`, otherwise `false`. func (o LookupServicePlanResultOutput) Reserved() pulumi.BoolOutput { return o.ApplyT(func(v LookupServicePlanResult) bool { return v.Reserved }).(pulumi.BoolOutput) } func (o LookupServicePlanResultOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v LookupServicePlanResult) string { return v.ResourceGroupName }).(pulumi.StringOutput) } // The SKU for the Service Plan. func (o LookupServicePlanResultOutput) SkuName() pulumi.StringOutput { return o.ApplyT(func(v LookupServicePlanResult) string { return v.SkuName }).(pulumi.StringOutput) } // A mapping of tags assigned to the Service Plan. func (o LookupServicePlanResultOutput) Tags() pulumi.StringMapOutput { return o.ApplyT(func(v LookupServicePlanResult) map[string]string { return v.Tags }).(pulumi.StringMapOutput) } // The number of Workers (instances) allocated. func (o LookupServicePlanResultOutput) WorkerCount() pulumi.IntOutput { return o.ApplyT(func(v LookupServicePlanResult) int { return v.WorkerCount }).(pulumi.IntOutput) } // Is the Service Plan balance across Availability Zones in the region? func (o LookupServicePlanResultOutput) ZoneBalancingEnabled() pulumi.BoolOutput { return o.ApplyT(func(v LookupServicePlanResult) bool { return v.ZoneBalancingEnabled }).(pulumi.BoolOutput) } func init() { pulumi.RegisterOutputType(LookupServicePlanResultOutput{}) }
go
Apache-2.0
b66e1472775a89cca43f5050fef806854a7c3fa3
2026-01-07T09:44:27.619514Z
false
pulumi/pulumi-azure
https://github.com/pulumi/pulumi-azure/blob/b66e1472775a89cca43f5050fef806854a7c3fa3/sdk/go/azure/appservice/appService.go
sdk/go/azure/appservice/appService.go
// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package appservice import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages an App Service (within an App Service Plan). // // !> **NOTE:** This resource has been deprecated in version 5.0 of the provider and will be removed in version 6.0. Please use `appservice.LinuxWebApp` and `appservice.WindowsWebApp` resources instead. // // > **Note:** When using Slots - the `appSettings`, `connectionString` and `siteConfig` blocks on the `appservice.AppService` resource will be overwritten when promoting a Slot using the `appservice.ActiveSlot` resource. // // ## Example Usage // // This example provisions a Windows App Service. // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/appservice" // "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-resources"), // Location: pulumi.String("West Europe"), // }) // if err != nil { // return err // } // examplePlan, err := appservice.NewPlan(ctx, "example", &appservice.PlanArgs{ // Name: pulumi.String("example-appserviceplan"), // Location: example.Location, // ResourceGroupName: example.Name, // Sku: &appservice.PlanSkuArgs{ // Tier: pulumi.String("Standard"), // Size: pulumi.String("S1"), // }, // }) // if err != nil { // return err // } // _, err = appservice.NewAppService(ctx, "example", &appservice.AppServiceArgs{ // Name: pulumi.String("example-app-service"), // Location: example.Location, // ResourceGroupName: example.Name, // AppServicePlanId: examplePlan.ID(), // SiteConfig: &appservice.AppServiceSiteConfigArgs{ // DotnetFrameworkVersion: pulumi.String("v4.0"), // ScmType: pulumi.String("LocalGit"), // }, // AppSettings: pulumi.StringMap{ // "SOME_KEY": pulumi.String("some-value"), // }, // ConnectionStrings: appservice.AppServiceConnectionStringArray{ // &appservice.AppServiceConnectionStringArgs{ // Name: pulumi.String("Database"), // Type: pulumi.String("SQLServer"), // Value: pulumi.String("Server=some-server.mydomain.com;Integrated Security=SSPI"), // }, // }, // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## Import // // App Services can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:appservice/appService:AppService instance1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Web/sites/instance1 // ``` type AppService struct { pulumi.CustomResourceState // The ID of the App Service Plan within which to create this App Service. AppServicePlanId pulumi.StringOutput `pulumi:"appServicePlanId"` // A key-value pair of App Settings. AppSettings pulumi.StringMapOutput `pulumi:"appSettings"` // A `authSettings` block as defined below. AuthSettings AppServiceAuthSettingsOutput `pulumi:"authSettings"` // A `backup` block as defined below. Backup AppServiceBackupPtrOutput `pulumi:"backup"` // Should the App Service send session affinity cookies, which route client requests in the same session to the same instance? ClientAffinityEnabled pulumi.BoolPtrOutput `pulumi:"clientAffinityEnabled"` // Does the App Service require client certificates for incoming requests? Defaults to `false`. ClientCertEnabled pulumi.BoolPtrOutput `pulumi:"clientCertEnabled"` // Mode of client certificates for this App Service. Possible values are `Required`, `Optional` and `OptionalInteractiveUser`. If this parameter is set, `clientCertEnabled` must be set to `true`, otherwise this parameter is ignored. ClientCertMode pulumi.StringOutput `pulumi:"clientCertMode"` // One or more `connectionString` blocks as defined below. ConnectionStrings AppServiceConnectionStringArrayOutput `pulumi:"connectionStrings"` // An identifier used by App Service to perform domain ownership verification via DNS TXT record. CustomDomainVerificationId pulumi.StringOutput `pulumi:"customDomainVerificationId"` // The Default Hostname associated with the App Service - such as `mysite.azurewebsites.net` DefaultSiteHostname pulumi.StringOutput `pulumi:"defaultSiteHostname"` // Is the App Service Enabled? Defaults to `true`. Enabled pulumi.BoolPtrOutput `pulumi:"enabled"` // Can the App Service only be accessed via HTTPS? Defaults to `false`. HttpsOnly pulumi.BoolPtrOutput `pulumi:"httpsOnly"` // An `identity` block as defined below. Identity AppServiceIdentityPtrOutput `pulumi:"identity"` // The User Assigned Identity Id used for looking up KeyVault secrets. The identity must be assigned to the application. [For more information see - Access vaults with a user-assigned identity](https://docs.microsoft.com/azure/app-service/app-service-key-vault-references#access-vaults-with-a-user-assigned-identity) KeyVaultReferenceIdentityId pulumi.StringOutput `pulumi:"keyVaultReferenceIdentityId"` // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location pulumi.StringOutput `pulumi:"location"` // A `logs` block as defined below. Logs AppServiceLogsOutput `pulumi:"logs"` // Specifies the name of the App Service. Changing this forces a new resource to be created. Name pulumi.StringOutput `pulumi:"name"` // A list of outbound IP addresses - such as `["52.23.25.3", "52.143.43.12"]` OutboundIpAddressLists pulumi.StringArrayOutput `pulumi:"outboundIpAddressLists"` // A comma separated list of outbound IP addresses - such as `52.23.25.3,52.143.43.12` OutboundIpAddresses pulumi.StringOutput `pulumi:"outboundIpAddresses"` // A list of outbound IP addresses - such as `["52.23.25.3", "52.143.43.12", "52.143.43.17"]` - not all of which are necessarily in use. Superset of `outboundIpAddressList`. PossibleOutboundIpAddressLists pulumi.StringArrayOutput `pulumi:"possibleOutboundIpAddressLists"` // A comma separated list of outbound IP addresses - such as `52.23.25.3,52.143.43.12,52.143.43.17` - not all of which are necessarily in use. Superset of `outboundIpAddresses`. PossibleOutboundIpAddresses pulumi.StringOutput `pulumi:"possibleOutboundIpAddresses"` // The name of the resource group in which to create the App Service. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // A `siteConfig` block as defined below. SiteConfig AppServiceSiteConfigOutput `pulumi:"siteConfig"` // A `siteCredential` block as defined below, which contains the site-level credentials used to publish to this App Service. SiteCredentials AppServiceSiteCredentialArrayOutput `pulumi:"siteCredentials"` // A `sourceControl` block as defined below. SourceControl AppServiceSourceControlOutput `pulumi:"sourceControl"` // One or more `storageAccount` blocks as defined below. StorageAccounts AppServiceStorageAccountArrayOutput `pulumi:"storageAccounts"` // A mapping of tags to assign to the resource. Tags pulumi.StringMapOutput `pulumi:"tags"` } // NewAppService registers a new resource with the given unique name, arguments, and options. func NewAppService(ctx *pulumi.Context, name string, args *AppServiceArgs, opts ...pulumi.ResourceOption) (*AppService, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.AppServicePlanId == nil { return nil, errors.New("invalid value for required argument 'AppServicePlanId'") } if args.ResourceGroupName == nil { return nil, errors.New("invalid value for required argument 'ResourceGroupName'") } opts = internal.PkgResourceDefaultOpts(opts) var resource AppService err := ctx.RegisterResource("azure:appservice/appService:AppService", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetAppService gets an existing AppService 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 GetAppService(ctx *pulumi.Context, name string, id pulumi.IDInput, state *AppServiceState, opts ...pulumi.ResourceOption) (*AppService, error) { var resource AppService err := ctx.ReadResource("azure:appservice/appService:AppService", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering AppService resources. type appServiceState struct { // The ID of the App Service Plan within which to create this App Service. AppServicePlanId *string `pulumi:"appServicePlanId"` // A key-value pair of App Settings. AppSettings map[string]string `pulumi:"appSettings"` // A `authSettings` block as defined below. AuthSettings *AppServiceAuthSettings `pulumi:"authSettings"` // A `backup` block as defined below. Backup *AppServiceBackup `pulumi:"backup"` // Should the App Service send session affinity cookies, which route client requests in the same session to the same instance? ClientAffinityEnabled *bool `pulumi:"clientAffinityEnabled"` // Does the App Service require client certificates for incoming requests? Defaults to `false`. ClientCertEnabled *bool `pulumi:"clientCertEnabled"` // Mode of client certificates for this App Service. Possible values are `Required`, `Optional` and `OptionalInteractiveUser`. If this parameter is set, `clientCertEnabled` must be set to `true`, otherwise this parameter is ignored. ClientCertMode *string `pulumi:"clientCertMode"` // One or more `connectionString` blocks as defined below. ConnectionStrings []AppServiceConnectionString `pulumi:"connectionStrings"` // An identifier used by App Service to perform domain ownership verification via DNS TXT record. CustomDomainVerificationId *string `pulumi:"customDomainVerificationId"` // The Default Hostname associated with the App Service - such as `mysite.azurewebsites.net` DefaultSiteHostname *string `pulumi:"defaultSiteHostname"` // Is the App Service Enabled? Defaults to `true`. Enabled *bool `pulumi:"enabled"` // Can the App Service only be accessed via HTTPS? Defaults to `false`. HttpsOnly *bool `pulumi:"httpsOnly"` // An `identity` block as defined below. Identity *AppServiceIdentity `pulumi:"identity"` // The User Assigned Identity Id used for looking up KeyVault secrets. The identity must be assigned to the application. [For more information see - Access vaults with a user-assigned identity](https://docs.microsoft.com/azure/app-service/app-service-key-vault-references#access-vaults-with-a-user-assigned-identity) KeyVaultReferenceIdentityId *string `pulumi:"keyVaultReferenceIdentityId"` // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location *string `pulumi:"location"` // A `logs` block as defined below. Logs *AppServiceLogs `pulumi:"logs"` // Specifies the name of the App Service. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // A list of outbound IP addresses - such as `["52.23.25.3", "52.143.43.12"]` OutboundIpAddressLists []string `pulumi:"outboundIpAddressLists"` // A comma separated list of outbound IP addresses - such as `52.23.25.3,52.143.43.12` OutboundIpAddresses *string `pulumi:"outboundIpAddresses"` // A list of outbound IP addresses - such as `["52.23.25.3", "52.143.43.12", "52.143.43.17"]` - not all of which are necessarily in use. Superset of `outboundIpAddressList`. PossibleOutboundIpAddressLists []string `pulumi:"possibleOutboundIpAddressLists"` // A comma separated list of outbound IP addresses - such as `52.23.25.3,52.143.43.12,52.143.43.17` - not all of which are necessarily in use. Superset of `outboundIpAddresses`. PossibleOutboundIpAddresses *string `pulumi:"possibleOutboundIpAddresses"` // The name of the resource group in which to create the App Service. Changing this forces a new resource to be created. ResourceGroupName *string `pulumi:"resourceGroupName"` // A `siteConfig` block as defined below. SiteConfig *AppServiceSiteConfig `pulumi:"siteConfig"` // A `siteCredential` block as defined below, which contains the site-level credentials used to publish to this App Service. SiteCredentials []AppServiceSiteCredential `pulumi:"siteCredentials"` // A `sourceControl` block as defined below. SourceControl *AppServiceSourceControl `pulumi:"sourceControl"` // One or more `storageAccount` blocks as defined below. StorageAccounts []AppServiceStorageAccount `pulumi:"storageAccounts"` // A mapping of tags to assign to the resource. Tags map[string]string `pulumi:"tags"` } type AppServiceState struct { // The ID of the App Service Plan within which to create this App Service. AppServicePlanId pulumi.StringPtrInput // A key-value pair of App Settings. AppSettings pulumi.StringMapInput // A `authSettings` block as defined below. AuthSettings AppServiceAuthSettingsPtrInput // A `backup` block as defined below. Backup AppServiceBackupPtrInput // Should the App Service send session affinity cookies, which route client requests in the same session to the same instance? ClientAffinityEnabled pulumi.BoolPtrInput // Does the App Service require client certificates for incoming requests? Defaults to `false`. ClientCertEnabled pulumi.BoolPtrInput // Mode of client certificates for this App Service. Possible values are `Required`, `Optional` and `OptionalInteractiveUser`. If this parameter is set, `clientCertEnabled` must be set to `true`, otherwise this parameter is ignored. ClientCertMode pulumi.StringPtrInput // One or more `connectionString` blocks as defined below. ConnectionStrings AppServiceConnectionStringArrayInput // An identifier used by App Service to perform domain ownership verification via DNS TXT record. CustomDomainVerificationId pulumi.StringPtrInput // The Default Hostname associated with the App Service - such as `mysite.azurewebsites.net` DefaultSiteHostname pulumi.StringPtrInput // Is the App Service Enabled? Defaults to `true`. Enabled pulumi.BoolPtrInput // Can the App Service only be accessed via HTTPS? Defaults to `false`. HttpsOnly pulumi.BoolPtrInput // An `identity` block as defined below. Identity AppServiceIdentityPtrInput // The User Assigned Identity Id used for looking up KeyVault secrets. The identity must be assigned to the application. [For more information see - Access vaults with a user-assigned identity](https://docs.microsoft.com/azure/app-service/app-service-key-vault-references#access-vaults-with-a-user-assigned-identity) KeyVaultReferenceIdentityId pulumi.StringPtrInput // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location pulumi.StringPtrInput // A `logs` block as defined below. Logs AppServiceLogsPtrInput // Specifies the name of the App Service. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // A list of outbound IP addresses - such as `["52.23.25.3", "52.143.43.12"]` OutboundIpAddressLists pulumi.StringArrayInput // A comma separated list of outbound IP addresses - such as `52.23.25.3,52.143.43.12` OutboundIpAddresses pulumi.StringPtrInput // A list of outbound IP addresses - such as `["52.23.25.3", "52.143.43.12", "52.143.43.17"]` - not all of which are necessarily in use. Superset of `outboundIpAddressList`. PossibleOutboundIpAddressLists pulumi.StringArrayInput // A comma separated list of outbound IP addresses - such as `52.23.25.3,52.143.43.12,52.143.43.17` - not all of which are necessarily in use. Superset of `outboundIpAddresses`. PossibleOutboundIpAddresses pulumi.StringPtrInput // The name of the resource group in which to create the App Service. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringPtrInput // A `siteConfig` block as defined below. SiteConfig AppServiceSiteConfigPtrInput // A `siteCredential` block as defined below, which contains the site-level credentials used to publish to this App Service. SiteCredentials AppServiceSiteCredentialArrayInput // A `sourceControl` block as defined below. SourceControl AppServiceSourceControlPtrInput // One or more `storageAccount` blocks as defined below. StorageAccounts AppServiceStorageAccountArrayInput // A mapping of tags to assign to the resource. Tags pulumi.StringMapInput } func (AppServiceState) ElementType() reflect.Type { return reflect.TypeOf((*appServiceState)(nil)).Elem() } type appServiceArgs struct { // The ID of the App Service Plan within which to create this App Service. AppServicePlanId string `pulumi:"appServicePlanId"` // A key-value pair of App Settings. AppSettings map[string]string `pulumi:"appSettings"` // A `authSettings` block as defined below. AuthSettings *AppServiceAuthSettings `pulumi:"authSettings"` // A `backup` block as defined below. Backup *AppServiceBackup `pulumi:"backup"` // Should the App Service send session affinity cookies, which route client requests in the same session to the same instance? ClientAffinityEnabled *bool `pulumi:"clientAffinityEnabled"` // Does the App Service require client certificates for incoming requests? Defaults to `false`. ClientCertEnabled *bool `pulumi:"clientCertEnabled"` // Mode of client certificates for this App Service. Possible values are `Required`, `Optional` and `OptionalInteractiveUser`. If this parameter is set, `clientCertEnabled` must be set to `true`, otherwise this parameter is ignored. ClientCertMode *string `pulumi:"clientCertMode"` // One or more `connectionString` blocks as defined below. ConnectionStrings []AppServiceConnectionString `pulumi:"connectionStrings"` // Is the App Service Enabled? Defaults to `true`. Enabled *bool `pulumi:"enabled"` // Can the App Service only be accessed via HTTPS? Defaults to `false`. HttpsOnly *bool `pulumi:"httpsOnly"` // An `identity` block as defined below. Identity *AppServiceIdentity `pulumi:"identity"` // The User Assigned Identity Id used for looking up KeyVault secrets. The identity must be assigned to the application. [For more information see - Access vaults with a user-assigned identity](https://docs.microsoft.com/azure/app-service/app-service-key-vault-references#access-vaults-with-a-user-assigned-identity) KeyVaultReferenceIdentityId *string `pulumi:"keyVaultReferenceIdentityId"` // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location *string `pulumi:"location"` // A `logs` block as defined below. Logs *AppServiceLogs `pulumi:"logs"` // Specifies the name of the App Service. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // The name of the resource group in which to create the App Service. Changing this forces a new resource to be created. ResourceGroupName string `pulumi:"resourceGroupName"` // A `siteConfig` block as defined below. SiteConfig *AppServiceSiteConfig `pulumi:"siteConfig"` // A `sourceControl` block as defined below. SourceControl *AppServiceSourceControl `pulumi:"sourceControl"` // One or more `storageAccount` blocks as defined below. StorageAccounts []AppServiceStorageAccount `pulumi:"storageAccounts"` // A mapping of tags to assign to the resource. Tags map[string]string `pulumi:"tags"` } // The set of arguments for constructing a AppService resource. type AppServiceArgs struct { // The ID of the App Service Plan within which to create this App Service. AppServicePlanId pulumi.StringInput // A key-value pair of App Settings. AppSettings pulumi.StringMapInput // A `authSettings` block as defined below. AuthSettings AppServiceAuthSettingsPtrInput // A `backup` block as defined below. Backup AppServiceBackupPtrInput // Should the App Service send session affinity cookies, which route client requests in the same session to the same instance? ClientAffinityEnabled pulumi.BoolPtrInput // Does the App Service require client certificates for incoming requests? Defaults to `false`. ClientCertEnabled pulumi.BoolPtrInput // Mode of client certificates for this App Service. Possible values are `Required`, `Optional` and `OptionalInteractiveUser`. If this parameter is set, `clientCertEnabled` must be set to `true`, otherwise this parameter is ignored. ClientCertMode pulumi.StringPtrInput // One or more `connectionString` blocks as defined below. ConnectionStrings AppServiceConnectionStringArrayInput // Is the App Service Enabled? Defaults to `true`. Enabled pulumi.BoolPtrInput // Can the App Service only be accessed via HTTPS? Defaults to `false`. HttpsOnly pulumi.BoolPtrInput // An `identity` block as defined below. Identity AppServiceIdentityPtrInput // The User Assigned Identity Id used for looking up KeyVault secrets. The identity must be assigned to the application. [For more information see - Access vaults with a user-assigned identity](https://docs.microsoft.com/azure/app-service/app-service-key-vault-references#access-vaults-with-a-user-assigned-identity) KeyVaultReferenceIdentityId pulumi.StringPtrInput // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location pulumi.StringPtrInput // A `logs` block as defined below. Logs AppServiceLogsPtrInput // Specifies the name of the App Service. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // The name of the resource group in which to create the App Service. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringInput // A `siteConfig` block as defined below. SiteConfig AppServiceSiteConfigPtrInput // A `sourceControl` block as defined below. SourceControl AppServiceSourceControlPtrInput // One or more `storageAccount` blocks as defined below. StorageAccounts AppServiceStorageAccountArrayInput // A mapping of tags to assign to the resource. Tags pulumi.StringMapInput } func (AppServiceArgs) ElementType() reflect.Type { return reflect.TypeOf((*appServiceArgs)(nil)).Elem() } type AppServiceInput interface { pulumi.Input ToAppServiceOutput() AppServiceOutput ToAppServiceOutputWithContext(ctx context.Context) AppServiceOutput } func (*AppService) ElementType() reflect.Type { return reflect.TypeOf((**AppService)(nil)).Elem() } func (i *AppService) ToAppServiceOutput() AppServiceOutput { return i.ToAppServiceOutputWithContext(context.Background()) } func (i *AppService) ToAppServiceOutputWithContext(ctx context.Context) AppServiceOutput { return pulumi.ToOutputWithContext(ctx, i).(AppServiceOutput) } // AppServiceArrayInput is an input type that accepts AppServiceArray and AppServiceArrayOutput values. // You can construct a concrete instance of `AppServiceArrayInput` via: // // AppServiceArray{ AppServiceArgs{...} } type AppServiceArrayInput interface { pulumi.Input ToAppServiceArrayOutput() AppServiceArrayOutput ToAppServiceArrayOutputWithContext(context.Context) AppServiceArrayOutput } type AppServiceArray []AppServiceInput func (AppServiceArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*AppService)(nil)).Elem() } func (i AppServiceArray) ToAppServiceArrayOutput() AppServiceArrayOutput { return i.ToAppServiceArrayOutputWithContext(context.Background()) } func (i AppServiceArray) ToAppServiceArrayOutputWithContext(ctx context.Context) AppServiceArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(AppServiceArrayOutput) } // AppServiceMapInput is an input type that accepts AppServiceMap and AppServiceMapOutput values. // You can construct a concrete instance of `AppServiceMapInput` via: // // AppServiceMap{ "key": AppServiceArgs{...} } type AppServiceMapInput interface { pulumi.Input ToAppServiceMapOutput() AppServiceMapOutput ToAppServiceMapOutputWithContext(context.Context) AppServiceMapOutput } type AppServiceMap map[string]AppServiceInput func (AppServiceMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*AppService)(nil)).Elem() } func (i AppServiceMap) ToAppServiceMapOutput() AppServiceMapOutput { return i.ToAppServiceMapOutputWithContext(context.Background()) } func (i AppServiceMap) ToAppServiceMapOutputWithContext(ctx context.Context) AppServiceMapOutput { return pulumi.ToOutputWithContext(ctx, i).(AppServiceMapOutput) } type AppServiceOutput struct{ *pulumi.OutputState } func (AppServiceOutput) ElementType() reflect.Type { return reflect.TypeOf((**AppService)(nil)).Elem() } func (o AppServiceOutput) ToAppServiceOutput() AppServiceOutput { return o } func (o AppServiceOutput) ToAppServiceOutputWithContext(ctx context.Context) AppServiceOutput { return o } // The ID of the App Service Plan within which to create this App Service. func (o AppServiceOutput) AppServicePlanId() pulumi.StringOutput { return o.ApplyT(func(v *AppService) pulumi.StringOutput { return v.AppServicePlanId }).(pulumi.StringOutput) } // A key-value pair of App Settings. func (o AppServiceOutput) AppSettings() pulumi.StringMapOutput { return o.ApplyT(func(v *AppService) pulumi.StringMapOutput { return v.AppSettings }).(pulumi.StringMapOutput) } // A `authSettings` block as defined below. func (o AppServiceOutput) AuthSettings() AppServiceAuthSettingsOutput { return o.ApplyT(func(v *AppService) AppServiceAuthSettingsOutput { return v.AuthSettings }).(AppServiceAuthSettingsOutput) } // A `backup` block as defined below. func (o AppServiceOutput) Backup() AppServiceBackupPtrOutput { return o.ApplyT(func(v *AppService) AppServiceBackupPtrOutput { return v.Backup }).(AppServiceBackupPtrOutput) } // Should the App Service send session affinity cookies, which route client requests in the same session to the same instance? func (o AppServiceOutput) ClientAffinityEnabled() pulumi.BoolPtrOutput { return o.ApplyT(func(v *AppService) pulumi.BoolPtrOutput { return v.ClientAffinityEnabled }).(pulumi.BoolPtrOutput) } // Does the App Service require client certificates for incoming requests? Defaults to `false`. func (o AppServiceOutput) ClientCertEnabled() pulumi.BoolPtrOutput { return o.ApplyT(func(v *AppService) pulumi.BoolPtrOutput { return v.ClientCertEnabled }).(pulumi.BoolPtrOutput) } // Mode of client certificates for this App Service. Possible values are `Required`, `Optional` and `OptionalInteractiveUser`. If this parameter is set, `clientCertEnabled` must be set to `true`, otherwise this parameter is ignored. func (o AppServiceOutput) ClientCertMode() pulumi.StringOutput { return o.ApplyT(func(v *AppService) pulumi.StringOutput { return v.ClientCertMode }).(pulumi.StringOutput) } // One or more `connectionString` blocks as defined below. func (o AppServiceOutput) ConnectionStrings() AppServiceConnectionStringArrayOutput { return o.ApplyT(func(v *AppService) AppServiceConnectionStringArrayOutput { return v.ConnectionStrings }).(AppServiceConnectionStringArrayOutput) } // An identifier used by App Service to perform domain ownership verification via DNS TXT record. func (o AppServiceOutput) CustomDomainVerificationId() pulumi.StringOutput { return o.ApplyT(func(v *AppService) pulumi.StringOutput { return v.CustomDomainVerificationId }).(pulumi.StringOutput) } // The Default Hostname associated with the App Service - such as `mysite.azurewebsites.net` func (o AppServiceOutput) DefaultSiteHostname() pulumi.StringOutput { return o.ApplyT(func(v *AppService) pulumi.StringOutput { return v.DefaultSiteHostname }).(pulumi.StringOutput) } // Is the App Service Enabled? Defaults to `true`. func (o AppServiceOutput) Enabled() pulumi.BoolPtrOutput { return o.ApplyT(func(v *AppService) pulumi.BoolPtrOutput { return v.Enabled }).(pulumi.BoolPtrOutput) } // Can the App Service only be accessed via HTTPS? Defaults to `false`. func (o AppServiceOutput) HttpsOnly() pulumi.BoolPtrOutput { return o.ApplyT(func(v *AppService) pulumi.BoolPtrOutput { return v.HttpsOnly }).(pulumi.BoolPtrOutput) } // An `identity` block as defined below. func (o AppServiceOutput) Identity() AppServiceIdentityPtrOutput { return o.ApplyT(func(v *AppService) AppServiceIdentityPtrOutput { return v.Identity }).(AppServiceIdentityPtrOutput) } // The User Assigned Identity Id used for looking up KeyVault secrets. The identity must be assigned to the application. [For more information see - Access vaults with a user-assigned identity](https://docs.microsoft.com/azure/app-service/app-service-key-vault-references#access-vaults-with-a-user-assigned-identity) func (o AppServiceOutput) KeyVaultReferenceIdentityId() pulumi.StringOutput { return o.ApplyT(func(v *AppService) pulumi.StringOutput { return v.KeyVaultReferenceIdentityId }).(pulumi.StringOutput) } // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. func (o AppServiceOutput) Location() pulumi.StringOutput { return o.ApplyT(func(v *AppService) pulumi.StringOutput { return v.Location }).(pulumi.StringOutput) } // A `logs` block as defined below. func (o AppServiceOutput) Logs() AppServiceLogsOutput { return o.ApplyT(func(v *AppService) AppServiceLogsOutput { return v.Logs }).(AppServiceLogsOutput) } // Specifies the name of the App Service. Changing this forces a new resource to be created. func (o AppServiceOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *AppService) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // A list of outbound IP addresses - such as `["52.23.25.3", "52.143.43.12"]` func (o AppServiceOutput) OutboundIpAddressLists() pulumi.StringArrayOutput { return o.ApplyT(func(v *AppService) pulumi.StringArrayOutput { return v.OutboundIpAddressLists }).(pulumi.StringArrayOutput) } // A comma separated list of outbound IP addresses - such as `52.23.25.3,52.143.43.12` func (o AppServiceOutput) OutboundIpAddresses() pulumi.StringOutput { return o.ApplyT(func(v *AppService) pulumi.StringOutput { return v.OutboundIpAddresses }).(pulumi.StringOutput) } // A list of outbound IP addresses - such as `["52.23.25.3", "52.143.43.12", "52.143.43.17"]` - not all of which are necessarily in use. Superset of `outboundIpAddressList`. func (o AppServiceOutput) PossibleOutboundIpAddressLists() pulumi.StringArrayOutput { return o.ApplyT(func(v *AppService) pulumi.StringArrayOutput { return v.PossibleOutboundIpAddressLists }).(pulumi.StringArrayOutput) } // A comma separated list of outbound IP addresses - such as `52.23.25.3,52.143.43.12,52.143.43.17` - not all of which are necessarily in use. Superset of `outboundIpAddresses`. func (o AppServiceOutput) PossibleOutboundIpAddresses() pulumi.StringOutput { return o.ApplyT(func(v *AppService) pulumi.StringOutput { return v.PossibleOutboundIpAddresses }).(pulumi.StringOutput) } // The name of the resource group in which to create the App Service. Changing this forces a new resource to be created. func (o AppServiceOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v *AppService) pulumi.StringOutput { return v.ResourceGroupName }).(pulumi.StringOutput) } // A `siteConfig` block as defined below. func (o AppServiceOutput) SiteConfig() AppServiceSiteConfigOutput { return o.ApplyT(func(v *AppService) AppServiceSiteConfigOutput { return v.SiteConfig }).(AppServiceSiteConfigOutput) } // A `siteCredential` block as defined below, which contains the site-level credentials used to publish to this App Service. func (o AppServiceOutput) SiteCredentials() AppServiceSiteCredentialArrayOutput { return o.ApplyT(func(v *AppService) AppServiceSiteCredentialArrayOutput { return v.SiteCredentials }).(AppServiceSiteCredentialArrayOutput) } // A `sourceControl` block as defined below. func (o AppServiceOutput) SourceControl() AppServiceSourceControlOutput { return o.ApplyT(func(v *AppService) AppServiceSourceControlOutput { return v.SourceControl }).(AppServiceSourceControlOutput) } // One or more `storageAccount` blocks as defined below. func (o AppServiceOutput) StorageAccounts() AppServiceStorageAccountArrayOutput { return o.ApplyT(func(v *AppService) AppServiceStorageAccountArrayOutput { return v.StorageAccounts }).(AppServiceStorageAccountArrayOutput) } // A mapping of tags to assign to the resource.
go
Apache-2.0
b66e1472775a89cca43f5050fef806854a7c3fa3
2026-01-07T09:44:27.619514Z
true
pulumi/pulumi-azure
https://github.com/pulumi/pulumi-azure/blob/b66e1472775a89cca43f5050fef806854a7c3fa3/sdk/go/azure/appservice/getFunctionAppHostKeys.go
sdk/go/azure/appservice/getFunctionAppHostKeys.go
// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package appservice import ( "context" "reflect" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Use this data source to fetch the Host Keys of an existing Function App // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/appservice" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { // _, err := appservice.GetFunctionAppHostKeys(ctx, &appservice.GetFunctionAppHostKeysArgs{ // Name: "example-function", // ResourceGroupName: exampleAzurermResourceGroup.Name, // }, nil) // if err != nil { // return err // } // return nil // }) // } // // ``` func GetFunctionAppHostKeys(ctx *pulumi.Context, args *GetFunctionAppHostKeysArgs, opts ...pulumi.InvokeOption) (*GetFunctionAppHostKeysResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv GetFunctionAppHostKeysResult err := ctx.Invoke("azure:appservice/getFunctionAppHostKeys:getFunctionAppHostKeys", args, &rv, opts...) if err != nil { return nil, err } return &rv, nil } // A collection of arguments for invoking getFunctionAppHostKeys. type GetFunctionAppHostKeysArgs struct { // The name of the Function App. Name string `pulumi:"name"` // The name of the Resource Group where the Function App exists. ResourceGroupName string `pulumi:"resourceGroupName"` } // A collection of values returned by getFunctionAppHostKeys. type GetFunctionAppHostKeysResult struct { // Function App resource's Blobs Extension system key. BlobsExtensionKey string `pulumi:"blobsExtensionKey"` // Function App resource's default function key. DefaultFunctionKey string `pulumi:"defaultFunctionKey"` // Function App resource's Durable Task Extension system key. DurabletaskExtensionKey string `pulumi:"durabletaskExtensionKey"` // Function App resource's Event Grid Extension Config system key. EventGridExtensionConfigKey string `pulumi:"eventGridExtensionConfigKey"` EventGridExtensionKey string `pulumi:"eventGridExtensionKey"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` Name string `pulumi:"name"` // Function App resource's secret key PrimaryKey string `pulumi:"primaryKey"` ResourceGroupName string `pulumi:"resourceGroupName"` // Function App resource's SignalR Extension system key. SignalrExtensionKey string `pulumi:"signalrExtensionKey"` // Function App resource's Web PubSub Extension system key. WebpubsubExtensionKey string `pulumi:"webpubsubExtensionKey"` } func GetFunctionAppHostKeysOutput(ctx *pulumi.Context, args GetFunctionAppHostKeysOutputArgs, opts ...pulumi.InvokeOption) GetFunctionAppHostKeysResultOutput { return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetFunctionAppHostKeysResultOutput, error) { args := v.(GetFunctionAppHostKeysArgs) options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} return ctx.InvokeOutput("azure:appservice/getFunctionAppHostKeys:getFunctionAppHostKeys", args, GetFunctionAppHostKeysResultOutput{}, options).(GetFunctionAppHostKeysResultOutput), nil }).(GetFunctionAppHostKeysResultOutput) } // A collection of arguments for invoking getFunctionAppHostKeys. type GetFunctionAppHostKeysOutputArgs struct { // The name of the Function App. Name pulumi.StringInput `pulumi:"name"` // The name of the Resource Group where the Function App exists. ResourceGroupName pulumi.StringInput `pulumi:"resourceGroupName"` } func (GetFunctionAppHostKeysOutputArgs) ElementType() reflect.Type { return reflect.TypeOf((*GetFunctionAppHostKeysArgs)(nil)).Elem() } // A collection of values returned by getFunctionAppHostKeys. type GetFunctionAppHostKeysResultOutput struct{ *pulumi.OutputState } func (GetFunctionAppHostKeysResultOutput) ElementType() reflect.Type { return reflect.TypeOf((*GetFunctionAppHostKeysResult)(nil)).Elem() } func (o GetFunctionAppHostKeysResultOutput) ToGetFunctionAppHostKeysResultOutput() GetFunctionAppHostKeysResultOutput { return o } func (o GetFunctionAppHostKeysResultOutput) ToGetFunctionAppHostKeysResultOutputWithContext(ctx context.Context) GetFunctionAppHostKeysResultOutput { return o } // Function App resource's Blobs Extension system key. func (o GetFunctionAppHostKeysResultOutput) BlobsExtensionKey() pulumi.StringOutput { return o.ApplyT(func(v GetFunctionAppHostKeysResult) string { return v.BlobsExtensionKey }).(pulumi.StringOutput) } // Function App resource's default function key. func (o GetFunctionAppHostKeysResultOutput) DefaultFunctionKey() pulumi.StringOutput { return o.ApplyT(func(v GetFunctionAppHostKeysResult) string { return v.DefaultFunctionKey }).(pulumi.StringOutput) } // Function App resource's Durable Task Extension system key. func (o GetFunctionAppHostKeysResultOutput) DurabletaskExtensionKey() pulumi.StringOutput { return o.ApplyT(func(v GetFunctionAppHostKeysResult) string { return v.DurabletaskExtensionKey }).(pulumi.StringOutput) } // Function App resource's Event Grid Extension Config system key. func (o GetFunctionAppHostKeysResultOutput) EventGridExtensionConfigKey() pulumi.StringOutput { return o.ApplyT(func(v GetFunctionAppHostKeysResult) string { return v.EventGridExtensionConfigKey }).(pulumi.StringOutput) } func (o GetFunctionAppHostKeysResultOutput) EventGridExtensionKey() pulumi.StringOutput { return o.ApplyT(func(v GetFunctionAppHostKeysResult) string { return v.EventGridExtensionKey }).(pulumi.StringOutput) } // The provider-assigned unique ID for this managed resource. func (o GetFunctionAppHostKeysResultOutput) Id() pulumi.StringOutput { return o.ApplyT(func(v GetFunctionAppHostKeysResult) string { return v.Id }).(pulumi.StringOutput) } func (o GetFunctionAppHostKeysResultOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v GetFunctionAppHostKeysResult) string { return v.Name }).(pulumi.StringOutput) } // Function App resource's secret key func (o GetFunctionAppHostKeysResultOutput) PrimaryKey() pulumi.StringOutput { return o.ApplyT(func(v GetFunctionAppHostKeysResult) string { return v.PrimaryKey }).(pulumi.StringOutput) } func (o GetFunctionAppHostKeysResultOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v GetFunctionAppHostKeysResult) string { return v.ResourceGroupName }).(pulumi.StringOutput) } // Function App resource's SignalR Extension system key. func (o GetFunctionAppHostKeysResultOutput) SignalrExtensionKey() pulumi.StringOutput { return o.ApplyT(func(v GetFunctionAppHostKeysResult) string { return v.SignalrExtensionKey }).(pulumi.StringOutput) } // Function App resource's Web PubSub Extension system key. func (o GetFunctionAppHostKeysResultOutput) WebpubsubExtensionKey() pulumi.StringOutput { return o.ApplyT(func(v GetFunctionAppHostKeysResult) string { return v.WebpubsubExtensionKey }).(pulumi.StringOutput) } func init() { pulumi.RegisterOutputType(GetFunctionAppHostKeysResultOutput{}) }
go
Apache-2.0
b66e1472775a89cca43f5050fef806854a7c3fa3
2026-01-07T09:44:27.619514Z
false
pulumi/pulumi-azure
https://github.com/pulumi/pulumi-azure/blob/b66e1472775a89cca43f5050fef806854a7c3fa3/sdk/go/azure/appservice/connection.go
sdk/go/azure/appservice/connection.go
// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package appservice import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a service connector for app service. // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/appservice" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/cosmosdb" // "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-resources"), // Location: pulumi.String("West Europe"), // }) // if err != nil { // return err // } // exampleAccount, err := cosmosdb.NewAccount(ctx, "example", &cosmosdb.AccountArgs{ // Name: pulumi.String("example-cosmosdb-account"), // Location: example.Location, // ResourceGroupName: example.Name, // OfferType: pulumi.String("Standard"), // Kind: pulumi.String("GlobalDocumentDB"), // ConsistencyPolicy: &cosmosdb.AccountConsistencyPolicyArgs{ // ConsistencyLevel: pulumi.String("BoundedStaleness"), // MaxIntervalInSeconds: pulumi.Int(10), // MaxStalenessPrefix: pulumi.Int(200), // }, // GeoLocations: cosmosdb.AccountGeoLocationArray{ // &cosmosdb.AccountGeoLocationArgs{ // Location: example.Location, // FailoverPriority: pulumi.Int(0), // }, // }, // }) // if err != nil { // return err // } // exampleSqlDatabase, err := cosmosdb.NewSqlDatabase(ctx, "example", &cosmosdb.SqlDatabaseArgs{ // Name: pulumi.String("cosmos-sql-db"), // ResourceGroupName: exampleAccount.ResourceGroupName, // AccountName: exampleAccount.Name, // Throughput: pulumi.Int(400), // }) // if err != nil { // return err // } // _, err = cosmosdb.NewSqlContainer(ctx, "example", &cosmosdb.SqlContainerArgs{ // Name: pulumi.String("example-container"), // ResourceGroupName: exampleAccount.ResourceGroupName, // AccountName: exampleAccount.Name, // DatabaseName: exampleSqlDatabase.Name, // PartitionKeyPath: "/definition", // }) // if err != nil { // return err // } // exampleServicePlan, err := appservice.NewServicePlan(ctx, "example", &appservice.ServicePlanArgs{ // Location: example.Location, // Name: pulumi.String("example-serviceplan"), // ResourceGroupName: example.Name, // SkuName: pulumi.String("P1v2"), // OsType: pulumi.String("Linux"), // }) // if err != nil { // return err // } // exampleLinuxWebApp, err := appservice.NewLinuxWebApp(ctx, "example", &appservice.LinuxWebAppArgs{ // Location: example.Location, // Name: pulumi.String("example-linuxwebapp"), // ResourceGroupName: example.Name, // ServicePlanId: exampleServicePlan.ID(), // SiteConfig: &appservice.LinuxWebAppSiteConfigArgs{}, // }) // if err != nil { // return err // } // _, err = appservice.NewConnection(ctx, "example", &appservice.ConnectionArgs{ // Name: pulumi.String("example-serviceconnector"), // AppServiceId: exampleLinuxWebApp.ID(), // TargetResourceId: exampleSqlDatabase.ID(), // Authentication: &appservice.ConnectionAuthenticationArgs{ // Type: pulumi.String("systemAssignedIdentity"), // }, // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## API Providers // // <!-- This section is generated, changes will be overwritten --> // This resource uses the following Azure API Providers: // // * `Microsoft.ServiceLinker` - 2024-04-01, 2022-05-01 // // ## Import // // Service Connector for app service can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:appservice/connection:Connection example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Web/sites/webapp/providers/Microsoft.ServiceLinker/linkers/serviceconnector1 // ``` type Connection struct { pulumi.CustomResourceState // The ID of the data source web app. Changing this forces a new resource to be created. AppServiceId pulumi.StringOutput `pulumi:"appServiceId"` // The authentication info. An `authentication` block as defined below. // // > **Note:** If a Managed Identity is used, this will need to be configured on the App Service. Authentication ConnectionAuthenticationOutput `pulumi:"authentication"` ClientType pulumi.StringPtrOutput `pulumi:"clientType"` // The name of the service connection. Changing this forces a new resource to be created. Name pulumi.StringOutput `pulumi:"name"` SecretStore ConnectionSecretStorePtrOutput `pulumi:"secretStore"` // The ID of the target resource. Changing this forces a new resource to be created. Possible target resources are `Postgres`, `PostgresFlexible`, `Mysql`, `Sql`, `Redis`, `RedisEnterprise`, `CosmosCassandra`, `CosmosGremlin`, `CosmosMongo`, `CosmosSql`, `CosmosTable`, `StorageBlob`, `StorageQueue`, `StorageFile`, `StorageTable`, `AppConfig`, `EventHub`, `ServiceBus`, `SignalR`, `WebPubSub`, `ConfluentKafka`. The integration guide can be found [here](https://learn.microsoft.com/en-us/azure/service-connector/how-to-integrate-postgres). TargetResourceId pulumi.StringOutput `pulumi:"targetResourceId"` VnetSolution pulumi.StringPtrOutput `pulumi:"vnetSolution"` } // NewConnection registers a new resource with the given unique name, arguments, and options. func NewConnection(ctx *pulumi.Context, name string, args *ConnectionArgs, opts ...pulumi.ResourceOption) (*Connection, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.AppServiceId == nil { return nil, errors.New("invalid value for required argument 'AppServiceId'") } if args.Authentication == nil { return nil, errors.New("invalid value for required argument 'Authentication'") } if args.TargetResourceId == nil { return nil, errors.New("invalid value for required argument 'TargetResourceId'") } opts = internal.PkgResourceDefaultOpts(opts) var resource Connection err := ctx.RegisterResource("azure:appservice/connection:Connection", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetConnection gets an existing Connection 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 GetConnection(ctx *pulumi.Context, name string, id pulumi.IDInput, state *ConnectionState, opts ...pulumi.ResourceOption) (*Connection, error) { var resource Connection err := ctx.ReadResource("azure:appservice/connection:Connection", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering Connection resources. type connectionState struct { // The ID of the data source web app. Changing this forces a new resource to be created. AppServiceId *string `pulumi:"appServiceId"` // The authentication info. An `authentication` block as defined below. // // > **Note:** If a Managed Identity is used, this will need to be configured on the App Service. Authentication *ConnectionAuthentication `pulumi:"authentication"` ClientType *string `pulumi:"clientType"` // The name of the service connection. Changing this forces a new resource to be created. Name *string `pulumi:"name"` SecretStore *ConnectionSecretStore `pulumi:"secretStore"` // The ID of the target resource. Changing this forces a new resource to be created. Possible target resources are `Postgres`, `PostgresFlexible`, `Mysql`, `Sql`, `Redis`, `RedisEnterprise`, `CosmosCassandra`, `CosmosGremlin`, `CosmosMongo`, `CosmosSql`, `CosmosTable`, `StorageBlob`, `StorageQueue`, `StorageFile`, `StorageTable`, `AppConfig`, `EventHub`, `ServiceBus`, `SignalR`, `WebPubSub`, `ConfluentKafka`. The integration guide can be found [here](https://learn.microsoft.com/en-us/azure/service-connector/how-to-integrate-postgres). TargetResourceId *string `pulumi:"targetResourceId"` VnetSolution *string `pulumi:"vnetSolution"` } type ConnectionState struct { // The ID of the data source web app. Changing this forces a new resource to be created. AppServiceId pulumi.StringPtrInput // The authentication info. An `authentication` block as defined below. // // > **Note:** If a Managed Identity is used, this will need to be configured on the App Service. Authentication ConnectionAuthenticationPtrInput ClientType pulumi.StringPtrInput // The name of the service connection. Changing this forces a new resource to be created. Name pulumi.StringPtrInput SecretStore ConnectionSecretStorePtrInput // The ID of the target resource. Changing this forces a new resource to be created. Possible target resources are `Postgres`, `PostgresFlexible`, `Mysql`, `Sql`, `Redis`, `RedisEnterprise`, `CosmosCassandra`, `CosmosGremlin`, `CosmosMongo`, `CosmosSql`, `CosmosTable`, `StorageBlob`, `StorageQueue`, `StorageFile`, `StorageTable`, `AppConfig`, `EventHub`, `ServiceBus`, `SignalR`, `WebPubSub`, `ConfluentKafka`. The integration guide can be found [here](https://learn.microsoft.com/en-us/azure/service-connector/how-to-integrate-postgres). TargetResourceId pulumi.StringPtrInput VnetSolution pulumi.StringPtrInput } func (ConnectionState) ElementType() reflect.Type { return reflect.TypeOf((*connectionState)(nil)).Elem() } type connectionArgs struct { // The ID of the data source web app. Changing this forces a new resource to be created. AppServiceId string `pulumi:"appServiceId"` // The authentication info. An `authentication` block as defined below. // // > **Note:** If a Managed Identity is used, this will need to be configured on the App Service. Authentication ConnectionAuthentication `pulumi:"authentication"` ClientType *string `pulumi:"clientType"` // The name of the service connection. Changing this forces a new resource to be created. Name *string `pulumi:"name"` SecretStore *ConnectionSecretStore `pulumi:"secretStore"` // The ID of the target resource. Changing this forces a new resource to be created. Possible target resources are `Postgres`, `PostgresFlexible`, `Mysql`, `Sql`, `Redis`, `RedisEnterprise`, `CosmosCassandra`, `CosmosGremlin`, `CosmosMongo`, `CosmosSql`, `CosmosTable`, `StorageBlob`, `StorageQueue`, `StorageFile`, `StorageTable`, `AppConfig`, `EventHub`, `ServiceBus`, `SignalR`, `WebPubSub`, `ConfluentKafka`. The integration guide can be found [here](https://learn.microsoft.com/en-us/azure/service-connector/how-to-integrate-postgres). TargetResourceId string `pulumi:"targetResourceId"` VnetSolution *string `pulumi:"vnetSolution"` } // The set of arguments for constructing a Connection resource. type ConnectionArgs struct { // The ID of the data source web app. Changing this forces a new resource to be created. AppServiceId pulumi.StringInput // The authentication info. An `authentication` block as defined below. // // > **Note:** If a Managed Identity is used, this will need to be configured on the App Service. Authentication ConnectionAuthenticationInput ClientType pulumi.StringPtrInput // The name of the service connection. Changing this forces a new resource to be created. Name pulumi.StringPtrInput SecretStore ConnectionSecretStorePtrInput // The ID of the target resource. Changing this forces a new resource to be created. Possible target resources are `Postgres`, `PostgresFlexible`, `Mysql`, `Sql`, `Redis`, `RedisEnterprise`, `CosmosCassandra`, `CosmosGremlin`, `CosmosMongo`, `CosmosSql`, `CosmosTable`, `StorageBlob`, `StorageQueue`, `StorageFile`, `StorageTable`, `AppConfig`, `EventHub`, `ServiceBus`, `SignalR`, `WebPubSub`, `ConfluentKafka`. The integration guide can be found [here](https://learn.microsoft.com/en-us/azure/service-connector/how-to-integrate-postgres). TargetResourceId pulumi.StringInput VnetSolution pulumi.StringPtrInput } func (ConnectionArgs) ElementType() reflect.Type { return reflect.TypeOf((*connectionArgs)(nil)).Elem() } type ConnectionInput interface { pulumi.Input ToConnectionOutput() ConnectionOutput ToConnectionOutputWithContext(ctx context.Context) ConnectionOutput } func (*Connection) ElementType() reflect.Type { return reflect.TypeOf((**Connection)(nil)).Elem() } func (i *Connection) ToConnectionOutput() ConnectionOutput { return i.ToConnectionOutputWithContext(context.Background()) } func (i *Connection) ToConnectionOutputWithContext(ctx context.Context) ConnectionOutput { return pulumi.ToOutputWithContext(ctx, i).(ConnectionOutput) } // ConnectionArrayInput is an input type that accepts ConnectionArray and ConnectionArrayOutput values. // You can construct a concrete instance of `ConnectionArrayInput` via: // // ConnectionArray{ ConnectionArgs{...} } type ConnectionArrayInput interface { pulumi.Input ToConnectionArrayOutput() ConnectionArrayOutput ToConnectionArrayOutputWithContext(context.Context) ConnectionArrayOutput } type ConnectionArray []ConnectionInput func (ConnectionArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*Connection)(nil)).Elem() } func (i ConnectionArray) ToConnectionArrayOutput() ConnectionArrayOutput { return i.ToConnectionArrayOutputWithContext(context.Background()) } func (i ConnectionArray) ToConnectionArrayOutputWithContext(ctx context.Context) ConnectionArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(ConnectionArrayOutput) } // ConnectionMapInput is an input type that accepts ConnectionMap and ConnectionMapOutput values. // You can construct a concrete instance of `ConnectionMapInput` via: // // ConnectionMap{ "key": ConnectionArgs{...} } type ConnectionMapInput interface { pulumi.Input ToConnectionMapOutput() ConnectionMapOutput ToConnectionMapOutputWithContext(context.Context) ConnectionMapOutput } type ConnectionMap map[string]ConnectionInput func (ConnectionMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*Connection)(nil)).Elem() } func (i ConnectionMap) ToConnectionMapOutput() ConnectionMapOutput { return i.ToConnectionMapOutputWithContext(context.Background()) } func (i ConnectionMap) ToConnectionMapOutputWithContext(ctx context.Context) ConnectionMapOutput { return pulumi.ToOutputWithContext(ctx, i).(ConnectionMapOutput) } type ConnectionOutput struct{ *pulumi.OutputState } func (ConnectionOutput) ElementType() reflect.Type { return reflect.TypeOf((**Connection)(nil)).Elem() } func (o ConnectionOutput) ToConnectionOutput() ConnectionOutput { return o } func (o ConnectionOutput) ToConnectionOutputWithContext(ctx context.Context) ConnectionOutput { return o } // The ID of the data source web app. Changing this forces a new resource to be created. func (o ConnectionOutput) AppServiceId() pulumi.StringOutput { return o.ApplyT(func(v *Connection) pulumi.StringOutput { return v.AppServiceId }).(pulumi.StringOutput) } // The authentication info. An `authentication` block as defined below. // // > **Note:** If a Managed Identity is used, this will need to be configured on the App Service. func (o ConnectionOutput) Authentication() ConnectionAuthenticationOutput { return o.ApplyT(func(v *Connection) ConnectionAuthenticationOutput { return v.Authentication }).(ConnectionAuthenticationOutput) } func (o ConnectionOutput) ClientType() pulumi.StringPtrOutput { return o.ApplyT(func(v *Connection) pulumi.StringPtrOutput { return v.ClientType }).(pulumi.StringPtrOutput) } // The name of the service connection. Changing this forces a new resource to be created. func (o ConnectionOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *Connection) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } func (o ConnectionOutput) SecretStore() ConnectionSecretStorePtrOutput { return o.ApplyT(func(v *Connection) ConnectionSecretStorePtrOutput { return v.SecretStore }).(ConnectionSecretStorePtrOutput) } // The ID of the target resource. Changing this forces a new resource to be created. Possible target resources are `Postgres`, `PostgresFlexible`, `Mysql`, `Sql`, `Redis`, `RedisEnterprise`, `CosmosCassandra`, `CosmosGremlin`, `CosmosMongo`, `CosmosSql`, `CosmosTable`, `StorageBlob`, `StorageQueue`, `StorageFile`, `StorageTable`, `AppConfig`, `EventHub`, `ServiceBus`, `SignalR`, `WebPubSub`, `ConfluentKafka`. The integration guide can be found [here](https://learn.microsoft.com/en-us/azure/service-connector/how-to-integrate-postgres). func (o ConnectionOutput) TargetResourceId() pulumi.StringOutput { return o.ApplyT(func(v *Connection) pulumi.StringOutput { return v.TargetResourceId }).(pulumi.StringOutput) } func (o ConnectionOutput) VnetSolution() pulumi.StringPtrOutput { return o.ApplyT(func(v *Connection) pulumi.StringPtrOutput { return v.VnetSolution }).(pulumi.StringPtrOutput) } type ConnectionArrayOutput struct{ *pulumi.OutputState } func (ConnectionArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*Connection)(nil)).Elem() } func (o ConnectionArrayOutput) ToConnectionArrayOutput() ConnectionArrayOutput { return o } func (o ConnectionArrayOutput) ToConnectionArrayOutputWithContext(ctx context.Context) ConnectionArrayOutput { return o } func (o ConnectionArrayOutput) Index(i pulumi.IntInput) ConnectionOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *Connection { return vs[0].([]*Connection)[vs[1].(int)] }).(ConnectionOutput) } type ConnectionMapOutput struct{ *pulumi.OutputState } func (ConnectionMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*Connection)(nil)).Elem() } func (o ConnectionMapOutput) ToConnectionMapOutput() ConnectionMapOutput { return o } func (o ConnectionMapOutput) ToConnectionMapOutputWithContext(ctx context.Context) ConnectionMapOutput { return o } func (o ConnectionMapOutput) MapIndex(k pulumi.StringInput) ConnectionOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *Connection { return vs[0].(map[string]*Connection)[vs[1].(string)] }).(ConnectionOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*ConnectionInput)(nil)).Elem(), &Connection{}) pulumi.RegisterInputType(reflect.TypeOf((*ConnectionArrayInput)(nil)).Elem(), ConnectionArray{}) pulumi.RegisterInputType(reflect.TypeOf((*ConnectionMapInput)(nil)).Elem(), ConnectionMap{}) pulumi.RegisterOutputType(ConnectionOutput{}) pulumi.RegisterOutputType(ConnectionArrayOutput{}) pulumi.RegisterOutputType(ConnectionMapOutput{}) }
go
Apache-2.0
b66e1472775a89cca43f5050fef806854a7c3fa3
2026-01-07T09:44:27.619514Z
false
pulumi/pulumi-azure
https://github.com/pulumi/pulumi-azure/blob/b66e1472775a89cca43f5050fef806854a7c3fa3/sdk/go/azure/appservice/appConnection.go
sdk/go/azure/appservice/appConnection.go
// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package appservice import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a service connector for function app. // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/appservice" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/cosmosdb" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/storage" // "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-resources"), // Location: pulumi.String("West Europe"), // }) // if err != nil { // return err // } // exampleAccount, err := cosmosdb.NewAccount(ctx, "example", &cosmosdb.AccountArgs{ // Name: pulumi.String("example-cosmosdb-account"), // Location: example.Location, // ResourceGroupName: example.Name, // OfferType: pulumi.String("Standard"), // Kind: pulumi.String("GlobalDocumentDB"), // ConsistencyPolicy: &cosmosdb.AccountConsistencyPolicyArgs{ // ConsistencyLevel: pulumi.String("BoundedStaleness"), // MaxIntervalInSeconds: pulumi.Int(10), // MaxStalenessPrefix: pulumi.Int(200), // }, // GeoLocations: cosmosdb.AccountGeoLocationArray{ // &cosmosdb.AccountGeoLocationArgs{ // Location: example.Location, // FailoverPriority: pulumi.Int(0), // }, // }, // }) // if err != nil { // return err // } // exampleSqlDatabase, err := cosmosdb.NewSqlDatabase(ctx, "example", &cosmosdb.SqlDatabaseArgs{ // Name: pulumi.String("cosmos-sql-db"), // ResourceGroupName: exampleAccount.ResourceGroupName, // AccountName: exampleAccount.Name, // Throughput: pulumi.Int(400), // }) // if err != nil { // return err // } // _, err = cosmosdb.NewSqlContainer(ctx, "example", &cosmosdb.SqlContainerArgs{ // Name: pulumi.String("example-container"), // ResourceGroupName: exampleAccount.ResourceGroupName, // AccountName: exampleAccount.Name, // DatabaseName: exampleSqlDatabase.Name, // PartitionKeyPath: "/definition", // }) // if err != nil { // return err // } // _, err = storage.NewAccount(ctx, "example", &storage.AccountArgs{ // Name: pulumi.String("examplestorageaccount"), // ResourceGroupName: example.Name, // Location: example.Location, // AccountTier: pulumi.String("Standard"), // AccountReplicationType: pulumi.String("LRS"), // }) // if err != nil { // return err // } // _, err = appservice.NewServicePlan(ctx, "example", &appservice.ServicePlanArgs{ // Location: example.Location, // Name: pulumi.String("example-serviceplan"), // ResourceGroupName: example.Name, // SkuName: pulumi.String("P1v2"), // OsType: pulumi.String("Linux"), // }) // if err != nil { // return err // } // _, err = appservice.NewFunctionApp(ctx, "test", &appservice.FunctionAppArgs{ // Name: pulumi.String("example-function-app"), // Location: pulumi.Any(testAzurermResourceGroup.Location), // ResourceGroupName: pulumi.Any(testAzurermResourceGroup.Name), // AppServicePlanId: pulumi.Any(testAzurermAppServicePlan.Id), // StorageAccountName: pulumi.Any(testAzurermStorageAccount.Name), // StorageAccountAccessKey: pulumi.Any(testAzurermStorageAccount.PrimaryAccessKey), // }) // if err != nil { // return err // } // _, err = appservice.NewAppConnection(ctx, "example", &appservice.AppConnectionArgs{ // Name: pulumi.String("example-serviceconnector"), // FunctionAppId: pulumi.Any(exampleAzurermFunctionApp.Id), // TargetResourceId: pulumi.Any(testAzurermCosmosdbAccount.Id), // Authentication: &appservice.AppConnectionAuthenticationArgs{ // Type: pulumi.String("systemAssignedIdentity"), // }, // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## API Providers // // <!-- This section is generated, changes will be overwritten --> // This resource uses the following Azure API Providers: // // * `Microsoft.ServiceLinker` - 2024-04-01, 2022-05-01 // // ## Import // // Service Connector for app service can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:appservice/appConnection:AppConnection example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Web/sites/webapp/providers/Microsoft.ServiceLinker/linkers/serviceconnector1 // ``` type AppConnection struct { pulumi.CustomResourceState // The authentication info. An `authentication` block as defined below. // // > **Note:** If a Managed Identity is used, this will need to be configured on the App Service. Authentication AppConnectionAuthenticationOutput `pulumi:"authentication"` ClientType pulumi.StringPtrOutput `pulumi:"clientType"` // The ID of the data source function app. Changing this forces a new resource to be created. FunctionAppId pulumi.StringOutput `pulumi:"functionAppId"` // The name of the service connection. Changing this forces a new resource to be created. Name pulumi.StringOutput `pulumi:"name"` SecretStore AppConnectionSecretStorePtrOutput `pulumi:"secretStore"` // The ID of the target resource. Changing this forces a new resource to be created. Possible target resources are `Postgres`, `PostgresFlexible`, `Mysql`, `Sql`, `Redis`, `RedisEnterprise`, `CosmosCassandra`, `CosmosGremlin`, `CosmosMongo`, `CosmosSql`, `CosmosTable`, `StorageBlob`, `StorageQueue`, `StorageFile`, `StorageTable`, `AppConfig`, `EventHub`, `ServiceBus`, `SignalR`, `WebPubSub`, `ConfluentKafka`. The integration guide can be found [here](https://learn.microsoft.com/en-us/azure/service-connector/how-to-integrate-postgres). TargetResourceId pulumi.StringOutput `pulumi:"targetResourceId"` VnetSolution pulumi.StringPtrOutput `pulumi:"vnetSolution"` } // NewAppConnection registers a new resource with the given unique name, arguments, and options. func NewAppConnection(ctx *pulumi.Context, name string, args *AppConnectionArgs, opts ...pulumi.ResourceOption) (*AppConnection, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.Authentication == nil { return nil, errors.New("invalid value for required argument 'Authentication'") } if args.FunctionAppId == nil { return nil, errors.New("invalid value for required argument 'FunctionAppId'") } if args.TargetResourceId == nil { return nil, errors.New("invalid value for required argument 'TargetResourceId'") } opts = internal.PkgResourceDefaultOpts(opts) var resource AppConnection err := ctx.RegisterResource("azure:appservice/appConnection:AppConnection", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetAppConnection gets an existing AppConnection 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 GetAppConnection(ctx *pulumi.Context, name string, id pulumi.IDInput, state *AppConnectionState, opts ...pulumi.ResourceOption) (*AppConnection, error) { var resource AppConnection err := ctx.ReadResource("azure:appservice/appConnection:AppConnection", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering AppConnection resources. type appConnectionState struct { // The authentication info. An `authentication` block as defined below. // // > **Note:** If a Managed Identity is used, this will need to be configured on the App Service. Authentication *AppConnectionAuthentication `pulumi:"authentication"` ClientType *string `pulumi:"clientType"` // The ID of the data source function app. Changing this forces a new resource to be created. FunctionAppId *string `pulumi:"functionAppId"` // The name of the service connection. Changing this forces a new resource to be created. Name *string `pulumi:"name"` SecretStore *AppConnectionSecretStore `pulumi:"secretStore"` // The ID of the target resource. Changing this forces a new resource to be created. Possible target resources are `Postgres`, `PostgresFlexible`, `Mysql`, `Sql`, `Redis`, `RedisEnterprise`, `CosmosCassandra`, `CosmosGremlin`, `CosmosMongo`, `CosmosSql`, `CosmosTable`, `StorageBlob`, `StorageQueue`, `StorageFile`, `StorageTable`, `AppConfig`, `EventHub`, `ServiceBus`, `SignalR`, `WebPubSub`, `ConfluentKafka`. The integration guide can be found [here](https://learn.microsoft.com/en-us/azure/service-connector/how-to-integrate-postgres). TargetResourceId *string `pulumi:"targetResourceId"` VnetSolution *string `pulumi:"vnetSolution"` } type AppConnectionState struct { // The authentication info. An `authentication` block as defined below. // // > **Note:** If a Managed Identity is used, this will need to be configured on the App Service. Authentication AppConnectionAuthenticationPtrInput ClientType pulumi.StringPtrInput // The ID of the data source function app. Changing this forces a new resource to be created. FunctionAppId pulumi.StringPtrInput // The name of the service connection. Changing this forces a new resource to be created. Name pulumi.StringPtrInput SecretStore AppConnectionSecretStorePtrInput // The ID of the target resource. Changing this forces a new resource to be created. Possible target resources are `Postgres`, `PostgresFlexible`, `Mysql`, `Sql`, `Redis`, `RedisEnterprise`, `CosmosCassandra`, `CosmosGremlin`, `CosmosMongo`, `CosmosSql`, `CosmosTable`, `StorageBlob`, `StorageQueue`, `StorageFile`, `StorageTable`, `AppConfig`, `EventHub`, `ServiceBus`, `SignalR`, `WebPubSub`, `ConfluentKafka`. The integration guide can be found [here](https://learn.microsoft.com/en-us/azure/service-connector/how-to-integrate-postgres). TargetResourceId pulumi.StringPtrInput VnetSolution pulumi.StringPtrInput } func (AppConnectionState) ElementType() reflect.Type { return reflect.TypeOf((*appConnectionState)(nil)).Elem() } type appConnectionArgs struct { // The authentication info. An `authentication` block as defined below. // // > **Note:** If a Managed Identity is used, this will need to be configured on the App Service. Authentication AppConnectionAuthentication `pulumi:"authentication"` ClientType *string `pulumi:"clientType"` // The ID of the data source function app. Changing this forces a new resource to be created. FunctionAppId string `pulumi:"functionAppId"` // The name of the service connection. Changing this forces a new resource to be created. Name *string `pulumi:"name"` SecretStore *AppConnectionSecretStore `pulumi:"secretStore"` // The ID of the target resource. Changing this forces a new resource to be created. Possible target resources are `Postgres`, `PostgresFlexible`, `Mysql`, `Sql`, `Redis`, `RedisEnterprise`, `CosmosCassandra`, `CosmosGremlin`, `CosmosMongo`, `CosmosSql`, `CosmosTable`, `StorageBlob`, `StorageQueue`, `StorageFile`, `StorageTable`, `AppConfig`, `EventHub`, `ServiceBus`, `SignalR`, `WebPubSub`, `ConfluentKafka`. The integration guide can be found [here](https://learn.microsoft.com/en-us/azure/service-connector/how-to-integrate-postgres). TargetResourceId string `pulumi:"targetResourceId"` VnetSolution *string `pulumi:"vnetSolution"` } // The set of arguments for constructing a AppConnection resource. type AppConnectionArgs struct { // The authentication info. An `authentication` block as defined below. // // > **Note:** If a Managed Identity is used, this will need to be configured on the App Service. Authentication AppConnectionAuthenticationInput ClientType pulumi.StringPtrInput // The ID of the data source function app. Changing this forces a new resource to be created. FunctionAppId pulumi.StringInput // The name of the service connection. Changing this forces a new resource to be created. Name pulumi.StringPtrInput SecretStore AppConnectionSecretStorePtrInput // The ID of the target resource. Changing this forces a new resource to be created. Possible target resources are `Postgres`, `PostgresFlexible`, `Mysql`, `Sql`, `Redis`, `RedisEnterprise`, `CosmosCassandra`, `CosmosGremlin`, `CosmosMongo`, `CosmosSql`, `CosmosTable`, `StorageBlob`, `StorageQueue`, `StorageFile`, `StorageTable`, `AppConfig`, `EventHub`, `ServiceBus`, `SignalR`, `WebPubSub`, `ConfluentKafka`. The integration guide can be found [here](https://learn.microsoft.com/en-us/azure/service-connector/how-to-integrate-postgres). TargetResourceId pulumi.StringInput VnetSolution pulumi.StringPtrInput } func (AppConnectionArgs) ElementType() reflect.Type { return reflect.TypeOf((*appConnectionArgs)(nil)).Elem() } type AppConnectionInput interface { pulumi.Input ToAppConnectionOutput() AppConnectionOutput ToAppConnectionOutputWithContext(ctx context.Context) AppConnectionOutput } func (*AppConnection) ElementType() reflect.Type { return reflect.TypeOf((**AppConnection)(nil)).Elem() } func (i *AppConnection) ToAppConnectionOutput() AppConnectionOutput { return i.ToAppConnectionOutputWithContext(context.Background()) } func (i *AppConnection) ToAppConnectionOutputWithContext(ctx context.Context) AppConnectionOutput { return pulumi.ToOutputWithContext(ctx, i).(AppConnectionOutput) } // AppConnectionArrayInput is an input type that accepts AppConnectionArray and AppConnectionArrayOutput values. // You can construct a concrete instance of `AppConnectionArrayInput` via: // // AppConnectionArray{ AppConnectionArgs{...} } type AppConnectionArrayInput interface { pulumi.Input ToAppConnectionArrayOutput() AppConnectionArrayOutput ToAppConnectionArrayOutputWithContext(context.Context) AppConnectionArrayOutput } type AppConnectionArray []AppConnectionInput func (AppConnectionArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*AppConnection)(nil)).Elem() } func (i AppConnectionArray) ToAppConnectionArrayOutput() AppConnectionArrayOutput { return i.ToAppConnectionArrayOutputWithContext(context.Background()) } func (i AppConnectionArray) ToAppConnectionArrayOutputWithContext(ctx context.Context) AppConnectionArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(AppConnectionArrayOutput) } // AppConnectionMapInput is an input type that accepts AppConnectionMap and AppConnectionMapOutput values. // You can construct a concrete instance of `AppConnectionMapInput` via: // // AppConnectionMap{ "key": AppConnectionArgs{...} } type AppConnectionMapInput interface { pulumi.Input ToAppConnectionMapOutput() AppConnectionMapOutput ToAppConnectionMapOutputWithContext(context.Context) AppConnectionMapOutput } type AppConnectionMap map[string]AppConnectionInput func (AppConnectionMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*AppConnection)(nil)).Elem() } func (i AppConnectionMap) ToAppConnectionMapOutput() AppConnectionMapOutput { return i.ToAppConnectionMapOutputWithContext(context.Background()) } func (i AppConnectionMap) ToAppConnectionMapOutputWithContext(ctx context.Context) AppConnectionMapOutput { return pulumi.ToOutputWithContext(ctx, i).(AppConnectionMapOutput) } type AppConnectionOutput struct{ *pulumi.OutputState } func (AppConnectionOutput) ElementType() reflect.Type { return reflect.TypeOf((**AppConnection)(nil)).Elem() } func (o AppConnectionOutput) ToAppConnectionOutput() AppConnectionOutput { return o } func (o AppConnectionOutput) ToAppConnectionOutputWithContext(ctx context.Context) AppConnectionOutput { return o } // The authentication info. An `authentication` block as defined below. // // > **Note:** If a Managed Identity is used, this will need to be configured on the App Service. func (o AppConnectionOutput) Authentication() AppConnectionAuthenticationOutput { return o.ApplyT(func(v *AppConnection) AppConnectionAuthenticationOutput { return v.Authentication }).(AppConnectionAuthenticationOutput) } func (o AppConnectionOutput) ClientType() pulumi.StringPtrOutput { return o.ApplyT(func(v *AppConnection) pulumi.StringPtrOutput { return v.ClientType }).(pulumi.StringPtrOutput) } // The ID of the data source function app. Changing this forces a new resource to be created. func (o AppConnectionOutput) FunctionAppId() pulumi.StringOutput { return o.ApplyT(func(v *AppConnection) pulumi.StringOutput { return v.FunctionAppId }).(pulumi.StringOutput) } // The name of the service connection. Changing this forces a new resource to be created. func (o AppConnectionOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *AppConnection) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } func (o AppConnectionOutput) SecretStore() AppConnectionSecretStorePtrOutput { return o.ApplyT(func(v *AppConnection) AppConnectionSecretStorePtrOutput { return v.SecretStore }).(AppConnectionSecretStorePtrOutput) } // The ID of the target resource. Changing this forces a new resource to be created. Possible target resources are `Postgres`, `PostgresFlexible`, `Mysql`, `Sql`, `Redis`, `RedisEnterprise`, `CosmosCassandra`, `CosmosGremlin`, `CosmosMongo`, `CosmosSql`, `CosmosTable`, `StorageBlob`, `StorageQueue`, `StorageFile`, `StorageTable`, `AppConfig`, `EventHub`, `ServiceBus`, `SignalR`, `WebPubSub`, `ConfluentKafka`. The integration guide can be found [here](https://learn.microsoft.com/en-us/azure/service-connector/how-to-integrate-postgres). func (o AppConnectionOutput) TargetResourceId() pulumi.StringOutput { return o.ApplyT(func(v *AppConnection) pulumi.StringOutput { return v.TargetResourceId }).(pulumi.StringOutput) } func (o AppConnectionOutput) VnetSolution() pulumi.StringPtrOutput { return o.ApplyT(func(v *AppConnection) pulumi.StringPtrOutput { return v.VnetSolution }).(pulumi.StringPtrOutput) } type AppConnectionArrayOutput struct{ *pulumi.OutputState } func (AppConnectionArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*AppConnection)(nil)).Elem() } func (o AppConnectionArrayOutput) ToAppConnectionArrayOutput() AppConnectionArrayOutput { return o } func (o AppConnectionArrayOutput) ToAppConnectionArrayOutputWithContext(ctx context.Context) AppConnectionArrayOutput { return o } func (o AppConnectionArrayOutput) Index(i pulumi.IntInput) AppConnectionOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *AppConnection { return vs[0].([]*AppConnection)[vs[1].(int)] }).(AppConnectionOutput) } type AppConnectionMapOutput struct{ *pulumi.OutputState } func (AppConnectionMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*AppConnection)(nil)).Elem() } func (o AppConnectionMapOutput) ToAppConnectionMapOutput() AppConnectionMapOutput { return o } func (o AppConnectionMapOutput) ToAppConnectionMapOutputWithContext(ctx context.Context) AppConnectionMapOutput { return o } func (o AppConnectionMapOutput) MapIndex(k pulumi.StringInput) AppConnectionOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *AppConnection { return vs[0].(map[string]*AppConnection)[vs[1].(string)] }).(AppConnectionOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*AppConnectionInput)(nil)).Elem(), &AppConnection{}) pulumi.RegisterInputType(reflect.TypeOf((*AppConnectionArrayInput)(nil)).Elem(), AppConnectionArray{}) pulumi.RegisterInputType(reflect.TypeOf((*AppConnectionMapInput)(nil)).Elem(), AppConnectionMap{}) pulumi.RegisterOutputType(AppConnectionOutput{}) pulumi.RegisterOutputType(AppConnectionArrayOutput{}) pulumi.RegisterOutputType(AppConnectionMapOutput{}) }
go
Apache-2.0
b66e1472775a89cca43f5050fef806854a7c3fa3
2026-01-07T09:44:27.619514Z
false
pulumi/pulumi-azure
https://github.com/pulumi/pulumi-azure/blob/b66e1472775a89cca43f5050fef806854a7c3fa3/sdk/go/azure/appservice/activeSlot.go
sdk/go/azure/appservice/activeSlot.go
// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package appservice import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Promotes an App Service Slot to Production within an App Service. // // !> **NOTE:** This resource has been deprecated in version 5.0 of the provider and will be removed in version 6.0. Please use `appservice.WebAppActiveSlot` resource instead. // // > **Note:** When using Slots - the `appSettings`, `connectionString` and `siteConfig` blocks on the `appservice.AppService` resource will be overwritten when promoting a Slot using the `appservice.ActiveSlot` resource. // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/appservice" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core" // "github.com/pulumi/pulumi-random/sdk/v4/go/random" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { // _, err := random.NewId(ctx, "server", nil) // if err != nil { // return err // } // example, err := core.NewResourceGroup(ctx, "example", nil) // if err != nil { // return err // } // _, err = appservice.NewPlan(ctx, "example", nil) // if err != nil { // return err // } // exampleAppService, err := appservice.NewAppService(ctx, "example", nil) // if err != nil { // return err // } // exampleSlot, err := appservice.NewSlot(ctx, "example", nil) // if err != nil { // return err // } // _, err = appservice.NewActiveSlot(ctx, "example", &appservice.ActiveSlotArgs{ // ResourceGroupName: example.Name, // AppServiceName: exampleAppService.Name, // AppServiceSlotName: exampleSlot.Name, // }) // if err != nil { // return err // } // return nil // }) // } // // ``` type ActiveSlot struct { pulumi.CustomResourceState // The name of the App Service within which the Slot exists. Changing this forces a new resource to be created. AppServiceName pulumi.StringOutput `pulumi:"appServiceName"` // The name of the App Service Slot which should be promoted to the Production Slot within the App Service. AppServiceSlotName pulumi.StringOutput `pulumi:"appServiceSlotName"` // The name of the resource group in which the App Service exists. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` } // NewActiveSlot registers a new resource with the given unique name, arguments, and options. func NewActiveSlot(ctx *pulumi.Context, name string, args *ActiveSlotArgs, opts ...pulumi.ResourceOption) (*ActiveSlot, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.AppServiceName == nil { return nil, errors.New("invalid value for required argument 'AppServiceName'") } if args.AppServiceSlotName == nil { return nil, errors.New("invalid value for required argument 'AppServiceSlotName'") } if args.ResourceGroupName == nil { return nil, errors.New("invalid value for required argument 'ResourceGroupName'") } opts = internal.PkgResourceDefaultOpts(opts) var resource ActiveSlot err := ctx.RegisterResource("azure:appservice/activeSlot:ActiveSlot", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetActiveSlot gets an existing ActiveSlot 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 GetActiveSlot(ctx *pulumi.Context, name string, id pulumi.IDInput, state *ActiveSlotState, opts ...pulumi.ResourceOption) (*ActiveSlot, error) { var resource ActiveSlot err := ctx.ReadResource("azure:appservice/activeSlot:ActiveSlot", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering ActiveSlot resources. type activeSlotState struct { // The name of the App Service within which the Slot exists. Changing this forces a new resource to be created. AppServiceName *string `pulumi:"appServiceName"` // The name of the App Service Slot which should be promoted to the Production Slot within the App Service. AppServiceSlotName *string `pulumi:"appServiceSlotName"` // The name of the resource group in which the App Service exists. Changing this forces a new resource to be created. ResourceGroupName *string `pulumi:"resourceGroupName"` } type ActiveSlotState struct { // The name of the App Service within which the Slot exists. Changing this forces a new resource to be created. AppServiceName pulumi.StringPtrInput // The name of the App Service Slot which should be promoted to the Production Slot within the App Service. AppServiceSlotName pulumi.StringPtrInput // The name of the resource group in which the App Service exists. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringPtrInput } func (ActiveSlotState) ElementType() reflect.Type { return reflect.TypeOf((*activeSlotState)(nil)).Elem() } type activeSlotArgs struct { // The name of the App Service within which the Slot exists. Changing this forces a new resource to be created. AppServiceName string `pulumi:"appServiceName"` // The name of the App Service Slot which should be promoted to the Production Slot within the App Service. AppServiceSlotName string `pulumi:"appServiceSlotName"` // The name of the resource group in which the App Service exists. Changing this forces a new resource to be created. ResourceGroupName string `pulumi:"resourceGroupName"` } // The set of arguments for constructing a ActiveSlot resource. type ActiveSlotArgs struct { // The name of the App Service within which the Slot exists. Changing this forces a new resource to be created. AppServiceName pulumi.StringInput // The name of the App Service Slot which should be promoted to the Production Slot within the App Service. AppServiceSlotName pulumi.StringInput // The name of the resource group in which the App Service exists. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringInput } func (ActiveSlotArgs) ElementType() reflect.Type { return reflect.TypeOf((*activeSlotArgs)(nil)).Elem() } type ActiveSlotInput interface { pulumi.Input ToActiveSlotOutput() ActiveSlotOutput ToActiveSlotOutputWithContext(ctx context.Context) ActiveSlotOutput } func (*ActiveSlot) ElementType() reflect.Type { return reflect.TypeOf((**ActiveSlot)(nil)).Elem() } func (i *ActiveSlot) ToActiveSlotOutput() ActiveSlotOutput { return i.ToActiveSlotOutputWithContext(context.Background()) } func (i *ActiveSlot) ToActiveSlotOutputWithContext(ctx context.Context) ActiveSlotOutput { return pulumi.ToOutputWithContext(ctx, i).(ActiveSlotOutput) } // ActiveSlotArrayInput is an input type that accepts ActiveSlotArray and ActiveSlotArrayOutput values. // You can construct a concrete instance of `ActiveSlotArrayInput` via: // // ActiveSlotArray{ ActiveSlotArgs{...} } type ActiveSlotArrayInput interface { pulumi.Input ToActiveSlotArrayOutput() ActiveSlotArrayOutput ToActiveSlotArrayOutputWithContext(context.Context) ActiveSlotArrayOutput } type ActiveSlotArray []ActiveSlotInput func (ActiveSlotArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*ActiveSlot)(nil)).Elem() } func (i ActiveSlotArray) ToActiveSlotArrayOutput() ActiveSlotArrayOutput { return i.ToActiveSlotArrayOutputWithContext(context.Background()) } func (i ActiveSlotArray) ToActiveSlotArrayOutputWithContext(ctx context.Context) ActiveSlotArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(ActiveSlotArrayOutput) } // ActiveSlotMapInput is an input type that accepts ActiveSlotMap and ActiveSlotMapOutput values. // You can construct a concrete instance of `ActiveSlotMapInput` via: // // ActiveSlotMap{ "key": ActiveSlotArgs{...} } type ActiveSlotMapInput interface { pulumi.Input ToActiveSlotMapOutput() ActiveSlotMapOutput ToActiveSlotMapOutputWithContext(context.Context) ActiveSlotMapOutput } type ActiveSlotMap map[string]ActiveSlotInput func (ActiveSlotMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*ActiveSlot)(nil)).Elem() } func (i ActiveSlotMap) ToActiveSlotMapOutput() ActiveSlotMapOutput { return i.ToActiveSlotMapOutputWithContext(context.Background()) } func (i ActiveSlotMap) ToActiveSlotMapOutputWithContext(ctx context.Context) ActiveSlotMapOutput { return pulumi.ToOutputWithContext(ctx, i).(ActiveSlotMapOutput) } type ActiveSlotOutput struct{ *pulumi.OutputState } func (ActiveSlotOutput) ElementType() reflect.Type { return reflect.TypeOf((**ActiveSlot)(nil)).Elem() } func (o ActiveSlotOutput) ToActiveSlotOutput() ActiveSlotOutput { return o } func (o ActiveSlotOutput) ToActiveSlotOutputWithContext(ctx context.Context) ActiveSlotOutput { return o } // The name of the App Service within which the Slot exists. Changing this forces a new resource to be created. func (o ActiveSlotOutput) AppServiceName() pulumi.StringOutput { return o.ApplyT(func(v *ActiveSlot) pulumi.StringOutput { return v.AppServiceName }).(pulumi.StringOutput) } // The name of the App Service Slot which should be promoted to the Production Slot within the App Service. func (o ActiveSlotOutput) AppServiceSlotName() pulumi.StringOutput { return o.ApplyT(func(v *ActiveSlot) pulumi.StringOutput { return v.AppServiceSlotName }).(pulumi.StringOutput) } // The name of the resource group in which the App Service exists. Changing this forces a new resource to be created. func (o ActiveSlotOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v *ActiveSlot) pulumi.StringOutput { return v.ResourceGroupName }).(pulumi.StringOutput) } type ActiveSlotArrayOutput struct{ *pulumi.OutputState } func (ActiveSlotArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*ActiveSlot)(nil)).Elem() } func (o ActiveSlotArrayOutput) ToActiveSlotArrayOutput() ActiveSlotArrayOutput { return o } func (o ActiveSlotArrayOutput) ToActiveSlotArrayOutputWithContext(ctx context.Context) ActiveSlotArrayOutput { return o } func (o ActiveSlotArrayOutput) Index(i pulumi.IntInput) ActiveSlotOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *ActiveSlot { return vs[0].([]*ActiveSlot)[vs[1].(int)] }).(ActiveSlotOutput) } type ActiveSlotMapOutput struct{ *pulumi.OutputState } func (ActiveSlotMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*ActiveSlot)(nil)).Elem() } func (o ActiveSlotMapOutput) ToActiveSlotMapOutput() ActiveSlotMapOutput { return o } func (o ActiveSlotMapOutput) ToActiveSlotMapOutputWithContext(ctx context.Context) ActiveSlotMapOutput { return o } func (o ActiveSlotMapOutput) MapIndex(k pulumi.StringInput) ActiveSlotOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *ActiveSlot { return vs[0].(map[string]*ActiveSlot)[vs[1].(string)] }).(ActiveSlotOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*ActiveSlotInput)(nil)).Elem(), &ActiveSlot{}) pulumi.RegisterInputType(reflect.TypeOf((*ActiveSlotArrayInput)(nil)).Elem(), ActiveSlotArray{}) pulumi.RegisterInputType(reflect.TypeOf((*ActiveSlotMapInput)(nil)).Elem(), ActiveSlotMap{}) pulumi.RegisterOutputType(ActiveSlotOutput{}) pulumi.RegisterOutputType(ActiveSlotArrayOutput{}) pulumi.RegisterOutputType(ActiveSlotMapOutput{}) }
go
Apache-2.0
b66e1472775a89cca43f5050fef806854a7c3fa3
2026-01-07T09:44:27.619514Z
false
pulumi/pulumi-azure
https://github.com/pulumi/pulumi-azure/blob/b66e1472775a89cca43f5050fef806854a7c3fa3/sdk/go/azure/appservice/functionAppSlot.go
sdk/go/azure/appservice/functionAppSlot.go
// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package appservice import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a Function App deployment Slot. // // !> **NOTE:** This resource has been deprecated in version 5.0 of the provider and will be removed in version 6.0. Please use `appservice.LinuxFunctionAppSlot` and `appservice.WindowsFunctionAppSlot` resources instead. // // ## Example Usage // // ### With App Service Plan) // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/appservice" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/storage" // "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("azure-functions-test-rg"), // Location: pulumi.String("West Europe"), // }) // if err != nil { // return err // } // exampleAccount, err := storage.NewAccount(ctx, "example", &storage.AccountArgs{ // Name: pulumi.String("functionsapptestsa"), // ResourceGroupName: example.Name, // Location: example.Location, // AccountTier: pulumi.String("Standard"), // AccountReplicationType: pulumi.String("LRS"), // }) // if err != nil { // return err // } // examplePlan, err := appservice.NewPlan(ctx, "example", &appservice.PlanArgs{ // Name: pulumi.String("azure-functions-test-service-plan"), // Location: example.Location, // ResourceGroupName: example.Name, // Sku: &appservice.PlanSkuArgs{ // Tier: pulumi.String("Standard"), // Size: pulumi.String("S1"), // }, // }) // if err != nil { // return err // } // exampleFunctionApp, err := appservice.NewFunctionApp(ctx, "example", &appservice.FunctionAppArgs{ // Name: pulumi.String("test-azure-functions"), // Location: example.Location, // ResourceGroupName: example.Name, // AppServicePlanId: examplePlan.ID(), // StorageAccountName: exampleAccount.Name, // StorageAccountAccessKey: exampleAccount.PrimaryAccessKey, // }) // if err != nil { // return err // } // _, err = appservice.NewFunctionAppSlot(ctx, "example", &appservice.FunctionAppSlotArgs{ // Name: pulumi.String("test-azure-functions_slot"), // Location: example.Location, // ResourceGroupName: example.Name, // AppServicePlanId: examplePlan.ID(), // FunctionAppName: exampleFunctionApp.Name, // StorageAccountName: exampleAccount.Name, // StorageAccountAccessKey: exampleAccount.PrimaryAccessKey, // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## Import // // Function Apps Deployment Slots can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:appservice/functionAppSlot:FunctionAppSlot functionapp1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Web/sites/functionapp1/slots/staging // ``` type FunctionAppSlot struct { pulumi.CustomResourceState // The ID of the App Service Plan within which to create this Function App Slot. Changing this forces a new resource to be created. AppServicePlanId pulumi.StringOutput `pulumi:"appServicePlanId"` // A key-value pair of App Settings. // // > **Note:** When integrating a `CI/CD pipeline` and expecting to run from a deployed package in `Azure` you must seed your `app settings` as part of the application code for function app to be successfully deployed. `Important Default key pairs`: (`"WEBSITE_RUN_FROM_PACKAGE" = ""`, `"FUNCTIONS_WORKER_RUNTIME" = "node"` (or python, etc), `"WEBSITE_NODE_DEFAULT_VERSION" = "10.14.1"`, `"APPINSIGHTS_INSTRUMENTATIONKEY" = ""`). // // > **NOTE:** The values for `AzureWebJobsStorage` and `FUNCTIONS_EXTENSION_VERSION` will be filled by other input arguments and shouldn't be configured separately. `AzureWebJobsStorage` is filled based on `storageAccountName` and `storageAccountAccessKey`. `FUNCTIONS_EXTENSION_VERSION` is filled based on `version`. // // > **Note:** When using an App Service Plan in the `Free` or `Shared` Tiers `use32BitWorkerProcess` must be set to `true`. AppSettings pulumi.StringMapOutput `pulumi:"appSettings"` // An `authSettings` block as defined below. AuthSettings FunctionAppSlotAuthSettingsOutput `pulumi:"authSettings"` // A `connectionString` block as defined below. ConnectionStrings FunctionAppSlotConnectionStringArrayOutput `pulumi:"connectionStrings"` // The amount of memory in gigabyte-seconds that your application is allowed to consume per day. Setting this value only affects function apps under the consumption plan. DailyMemoryTimeQuota pulumi.IntPtrOutput `pulumi:"dailyMemoryTimeQuota"` // The default hostname associated with the Function App - such as `mysite.azurewebsites.net` DefaultHostname pulumi.StringOutput `pulumi:"defaultHostname"` // Should the built-in logging of the Function App be enabled? Defaults to `true`. EnableBuiltinLogging pulumi.BoolPtrOutput `pulumi:"enableBuiltinLogging"` // Is the Function App enabled? Defaults to `true`. Enabled pulumi.BoolPtrOutput `pulumi:"enabled"` // The name of the Function App within which to create the Function App Slot. Changing this forces a new resource to be created. FunctionAppName pulumi.StringOutput `pulumi:"functionAppName"` // Can the Function App only be accessed via HTTPS? Defaults to `false`. HttpsOnly pulumi.BoolPtrOutput `pulumi:"httpsOnly"` // An `identity` block as defined below. Identity FunctionAppSlotIdentityPtrOutput `pulumi:"identity"` // The Function App kind - such as `functionapp,linux,container` Kind pulumi.StringOutput `pulumi:"kind"` // 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 Function App. Changing this forces a new resource to be created. Name pulumi.StringOutput `pulumi:"name"` // A string indicating the Operating System type for this function app. The only possible value is `linux`. Changing this forces a new resource to be created. // // > **NOTE:** This value will be `linux` for Linux Derivatives or an empty string for Windows (default). OsType pulumi.StringPtrOutput `pulumi:"osType"` // A comma separated list of outbound IP addresses - such as `52.23.25.3,52.143.43.12` OutboundIpAddresses pulumi.StringOutput `pulumi:"outboundIpAddresses"` // A comma separated list of outbound IP addresses - such as `52.23.25.3,52.143.43.12,52.143.43.17` - not all of which are necessarily in use. Superset of `outboundIpAddresses`. PossibleOutboundIpAddresses pulumi.StringOutput `pulumi:"possibleOutboundIpAddresses"` // The name of the resource group in which to create the Function App Slot. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // A `siteConfig` object as defined below. SiteConfig FunctionAppSlotSiteConfigOutput `pulumi:"siteConfig"` // A `siteCredential` block as defined below, which contains the site-level credentials used to publish to this Function App Slot. SiteCredentials FunctionAppSlotSiteCredentialArrayOutput `pulumi:"siteCredentials"` // The access key which will be used to access the backend storage account for the Function App. StorageAccountAccessKey pulumi.StringOutput `pulumi:"storageAccountAccessKey"` // The backend storage account name which will be used by the Function App (such as the dashboard, logs). Changing this forces a new resource to be created. StorageAccountName pulumi.StringOutput `pulumi:"storageAccountName"` // A mapping of tags to assign to the resource. Tags pulumi.StringMapOutput `pulumi:"tags"` // The runtime version associated with the Function App. Defaults to `~1`. Version pulumi.StringPtrOutput `pulumi:"version"` } // NewFunctionAppSlot registers a new resource with the given unique name, arguments, and options. func NewFunctionAppSlot(ctx *pulumi.Context, name string, args *FunctionAppSlotArgs, opts ...pulumi.ResourceOption) (*FunctionAppSlot, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.AppServicePlanId == nil { return nil, errors.New("invalid value for required argument 'AppServicePlanId'") } if args.FunctionAppName == nil { return nil, errors.New("invalid value for required argument 'FunctionAppName'") } if args.ResourceGroupName == nil { return nil, errors.New("invalid value for required argument 'ResourceGroupName'") } if args.StorageAccountAccessKey == nil { return nil, errors.New("invalid value for required argument 'StorageAccountAccessKey'") } if args.StorageAccountName == nil { return nil, errors.New("invalid value for required argument 'StorageAccountName'") } if args.StorageAccountAccessKey != nil { args.StorageAccountAccessKey = pulumi.ToSecret(args.StorageAccountAccessKey).(pulumi.StringInput) } secrets := pulumi.AdditionalSecretOutputs([]string{ "storageAccountAccessKey", }) opts = append(opts, secrets) opts = internal.PkgResourceDefaultOpts(opts) var resource FunctionAppSlot err := ctx.RegisterResource("azure:appservice/functionAppSlot:FunctionAppSlot", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetFunctionAppSlot gets an existing FunctionAppSlot 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 GetFunctionAppSlot(ctx *pulumi.Context, name string, id pulumi.IDInput, state *FunctionAppSlotState, opts ...pulumi.ResourceOption) (*FunctionAppSlot, error) { var resource FunctionAppSlot err := ctx.ReadResource("azure:appservice/functionAppSlot:FunctionAppSlot", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering FunctionAppSlot resources. type functionAppSlotState struct { // The ID of the App Service Plan within which to create this Function App Slot. Changing this forces a new resource to be created. AppServicePlanId *string `pulumi:"appServicePlanId"` // A key-value pair of App Settings. // // > **Note:** When integrating a `CI/CD pipeline` and expecting to run from a deployed package in `Azure` you must seed your `app settings` as part of the application code for function app to be successfully deployed. `Important Default key pairs`: (`"WEBSITE_RUN_FROM_PACKAGE" = ""`, `"FUNCTIONS_WORKER_RUNTIME" = "node"` (or python, etc), `"WEBSITE_NODE_DEFAULT_VERSION" = "10.14.1"`, `"APPINSIGHTS_INSTRUMENTATIONKEY" = ""`). // // > **NOTE:** The values for `AzureWebJobsStorage` and `FUNCTIONS_EXTENSION_VERSION` will be filled by other input arguments and shouldn't be configured separately. `AzureWebJobsStorage` is filled based on `storageAccountName` and `storageAccountAccessKey`. `FUNCTIONS_EXTENSION_VERSION` is filled based on `version`. // // > **Note:** When using an App Service Plan in the `Free` or `Shared` Tiers `use32BitWorkerProcess` must be set to `true`. AppSettings map[string]string `pulumi:"appSettings"` // An `authSettings` block as defined below. AuthSettings *FunctionAppSlotAuthSettings `pulumi:"authSettings"` // A `connectionString` block as defined below. ConnectionStrings []FunctionAppSlotConnectionString `pulumi:"connectionStrings"` // The amount of memory in gigabyte-seconds that your application is allowed to consume per day. Setting this value only affects function apps under the consumption plan. DailyMemoryTimeQuota *int `pulumi:"dailyMemoryTimeQuota"` // The default hostname associated with the Function App - such as `mysite.azurewebsites.net` DefaultHostname *string `pulumi:"defaultHostname"` // Should the built-in logging of the Function App be enabled? Defaults to `true`. EnableBuiltinLogging *bool `pulumi:"enableBuiltinLogging"` // Is the Function App enabled? Defaults to `true`. Enabled *bool `pulumi:"enabled"` // The name of the Function App within which to create the Function App Slot. Changing this forces a new resource to be created. FunctionAppName *string `pulumi:"functionAppName"` // Can the Function App only be accessed via HTTPS? Defaults to `false`. HttpsOnly *bool `pulumi:"httpsOnly"` // An `identity` block as defined below. Identity *FunctionAppSlotIdentity `pulumi:"identity"` // The Function App kind - such as `functionapp,linux,container` Kind *string `pulumi:"kind"` // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location *string `pulumi:"location"` // Specifies the name of the Function App. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // A string indicating the Operating System type for this function app. The only possible value is `linux`. Changing this forces a new resource to be created. // // > **NOTE:** This value will be `linux` for Linux Derivatives or an empty string for Windows (default). OsType *string `pulumi:"osType"` // A comma separated list of outbound IP addresses - such as `52.23.25.3,52.143.43.12` OutboundIpAddresses *string `pulumi:"outboundIpAddresses"` // A comma separated list of outbound IP addresses - such as `52.23.25.3,52.143.43.12,52.143.43.17` - not all of which are necessarily in use. Superset of `outboundIpAddresses`. PossibleOutboundIpAddresses *string `pulumi:"possibleOutboundIpAddresses"` // The name of the resource group in which to create the Function App Slot. Changing this forces a new resource to be created. ResourceGroupName *string `pulumi:"resourceGroupName"` // A `siteConfig` object as defined below. SiteConfig *FunctionAppSlotSiteConfig `pulumi:"siteConfig"` // A `siteCredential` block as defined below, which contains the site-level credentials used to publish to this Function App Slot. SiteCredentials []FunctionAppSlotSiteCredential `pulumi:"siteCredentials"` // The access key which will be used to access the backend storage account for the Function App. StorageAccountAccessKey *string `pulumi:"storageAccountAccessKey"` // The backend storage account name which will be used by the Function App (such as the dashboard, logs). Changing this forces a new resource to be created. StorageAccountName *string `pulumi:"storageAccountName"` // A mapping of tags to assign to the resource. Tags map[string]string `pulumi:"tags"` // The runtime version associated with the Function App. Defaults to `~1`. Version *string `pulumi:"version"` } type FunctionAppSlotState struct { // The ID of the App Service Plan within which to create this Function App Slot. Changing this forces a new resource to be created. AppServicePlanId pulumi.StringPtrInput // A key-value pair of App Settings. // // > **Note:** When integrating a `CI/CD pipeline` and expecting to run from a deployed package in `Azure` you must seed your `app settings` as part of the application code for function app to be successfully deployed. `Important Default key pairs`: (`"WEBSITE_RUN_FROM_PACKAGE" = ""`, `"FUNCTIONS_WORKER_RUNTIME" = "node"` (or python, etc), `"WEBSITE_NODE_DEFAULT_VERSION" = "10.14.1"`, `"APPINSIGHTS_INSTRUMENTATIONKEY" = ""`). // // > **NOTE:** The values for `AzureWebJobsStorage` and `FUNCTIONS_EXTENSION_VERSION` will be filled by other input arguments and shouldn't be configured separately. `AzureWebJobsStorage` is filled based on `storageAccountName` and `storageAccountAccessKey`. `FUNCTIONS_EXTENSION_VERSION` is filled based on `version`. // // > **Note:** When using an App Service Plan in the `Free` or `Shared` Tiers `use32BitWorkerProcess` must be set to `true`. AppSettings pulumi.StringMapInput // An `authSettings` block as defined below. AuthSettings FunctionAppSlotAuthSettingsPtrInput // A `connectionString` block as defined below. ConnectionStrings FunctionAppSlotConnectionStringArrayInput // The amount of memory in gigabyte-seconds that your application is allowed to consume per day. Setting this value only affects function apps under the consumption plan. DailyMemoryTimeQuota pulumi.IntPtrInput // The default hostname associated with the Function App - such as `mysite.azurewebsites.net` DefaultHostname pulumi.StringPtrInput // Should the built-in logging of the Function App be enabled? Defaults to `true`. EnableBuiltinLogging pulumi.BoolPtrInput // Is the Function App enabled? Defaults to `true`. Enabled pulumi.BoolPtrInput // The name of the Function App within which to create the Function App Slot. Changing this forces a new resource to be created. FunctionAppName pulumi.StringPtrInput // Can the Function App only be accessed via HTTPS? Defaults to `false`. HttpsOnly pulumi.BoolPtrInput // An `identity` block as defined below. Identity FunctionAppSlotIdentityPtrInput // The Function App kind - such as `functionapp,linux,container` Kind pulumi.StringPtrInput // 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 Function App. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // A string indicating the Operating System type for this function app. The only possible value is `linux`. Changing this forces a new resource to be created. // // > **NOTE:** This value will be `linux` for Linux Derivatives or an empty string for Windows (default). OsType pulumi.StringPtrInput // A comma separated list of outbound IP addresses - such as `52.23.25.3,52.143.43.12` OutboundIpAddresses pulumi.StringPtrInput // A comma separated list of outbound IP addresses - such as `52.23.25.3,52.143.43.12,52.143.43.17` - not all of which are necessarily in use. Superset of `outboundIpAddresses`. PossibleOutboundIpAddresses pulumi.StringPtrInput // The name of the resource group in which to create the Function App Slot. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringPtrInput // A `siteConfig` object as defined below. SiteConfig FunctionAppSlotSiteConfigPtrInput // A `siteCredential` block as defined below, which contains the site-level credentials used to publish to this Function App Slot. SiteCredentials FunctionAppSlotSiteCredentialArrayInput // The access key which will be used to access the backend storage account for the Function App. StorageAccountAccessKey pulumi.StringPtrInput // The backend storage account name which will be used by the Function App (such as the dashboard, logs). Changing this forces a new resource to be created. StorageAccountName pulumi.StringPtrInput // A mapping of tags to assign to the resource. Tags pulumi.StringMapInput // The runtime version associated with the Function App. Defaults to `~1`. Version pulumi.StringPtrInput } func (FunctionAppSlotState) ElementType() reflect.Type { return reflect.TypeOf((*functionAppSlotState)(nil)).Elem() } type functionAppSlotArgs struct { // The ID of the App Service Plan within which to create this Function App Slot. Changing this forces a new resource to be created. AppServicePlanId string `pulumi:"appServicePlanId"` // A key-value pair of App Settings. // // > **Note:** When integrating a `CI/CD pipeline` and expecting to run from a deployed package in `Azure` you must seed your `app settings` as part of the application code for function app to be successfully deployed. `Important Default key pairs`: (`"WEBSITE_RUN_FROM_PACKAGE" = ""`, `"FUNCTIONS_WORKER_RUNTIME" = "node"` (or python, etc), `"WEBSITE_NODE_DEFAULT_VERSION" = "10.14.1"`, `"APPINSIGHTS_INSTRUMENTATIONKEY" = ""`). // // > **NOTE:** The values for `AzureWebJobsStorage` and `FUNCTIONS_EXTENSION_VERSION` will be filled by other input arguments and shouldn't be configured separately. `AzureWebJobsStorage` is filled based on `storageAccountName` and `storageAccountAccessKey`. `FUNCTIONS_EXTENSION_VERSION` is filled based on `version`. // // > **Note:** When using an App Service Plan in the `Free` or `Shared` Tiers `use32BitWorkerProcess` must be set to `true`. AppSettings map[string]string `pulumi:"appSettings"` // An `authSettings` block as defined below. AuthSettings *FunctionAppSlotAuthSettings `pulumi:"authSettings"` // A `connectionString` block as defined below. ConnectionStrings []FunctionAppSlotConnectionString `pulumi:"connectionStrings"` // The amount of memory in gigabyte-seconds that your application is allowed to consume per day. Setting this value only affects function apps under the consumption plan. DailyMemoryTimeQuota *int `pulumi:"dailyMemoryTimeQuota"` // Should the built-in logging of the Function App be enabled? Defaults to `true`. EnableBuiltinLogging *bool `pulumi:"enableBuiltinLogging"` // Is the Function App enabled? Defaults to `true`. Enabled *bool `pulumi:"enabled"` // The name of the Function App within which to create the Function App Slot. Changing this forces a new resource to be created. FunctionAppName string `pulumi:"functionAppName"` // Can the Function App only be accessed via HTTPS? Defaults to `false`. HttpsOnly *bool `pulumi:"httpsOnly"` // An `identity` block as defined below. Identity *FunctionAppSlotIdentity `pulumi:"identity"` // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location *string `pulumi:"location"` // Specifies the name of the Function App. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // A string indicating the Operating System type for this function app. The only possible value is `linux`. Changing this forces a new resource to be created. // // > **NOTE:** This value will be `linux` for Linux Derivatives or an empty string for Windows (default). OsType *string `pulumi:"osType"` // The name of the resource group in which to create the Function App Slot. Changing this forces a new resource to be created. ResourceGroupName string `pulumi:"resourceGroupName"` // A `siteConfig` object as defined below. SiteConfig *FunctionAppSlotSiteConfig `pulumi:"siteConfig"` // The access key which will be used to access the backend storage account for the Function App. StorageAccountAccessKey string `pulumi:"storageAccountAccessKey"` // The backend storage account name which will be used by the Function App (such as the dashboard, logs). Changing this forces a new resource to be created. StorageAccountName string `pulumi:"storageAccountName"` // A mapping of tags to assign to the resource. Tags map[string]string `pulumi:"tags"` // The runtime version associated with the Function App. Defaults to `~1`. Version *string `pulumi:"version"` } // The set of arguments for constructing a FunctionAppSlot resource. type FunctionAppSlotArgs struct { // The ID of the App Service Plan within which to create this Function App Slot. Changing this forces a new resource to be created. AppServicePlanId pulumi.StringInput // A key-value pair of App Settings. // // > **Note:** When integrating a `CI/CD pipeline` and expecting to run from a deployed package in `Azure` you must seed your `app settings` as part of the application code for function app to be successfully deployed. `Important Default key pairs`: (`"WEBSITE_RUN_FROM_PACKAGE" = ""`, `"FUNCTIONS_WORKER_RUNTIME" = "node"` (or python, etc), `"WEBSITE_NODE_DEFAULT_VERSION" = "10.14.1"`, `"APPINSIGHTS_INSTRUMENTATIONKEY" = ""`). // // > **NOTE:** The values for `AzureWebJobsStorage` and `FUNCTIONS_EXTENSION_VERSION` will be filled by other input arguments and shouldn't be configured separately. `AzureWebJobsStorage` is filled based on `storageAccountName` and `storageAccountAccessKey`. `FUNCTIONS_EXTENSION_VERSION` is filled based on `version`. // // > **Note:** When using an App Service Plan in the `Free` or `Shared` Tiers `use32BitWorkerProcess` must be set to `true`. AppSettings pulumi.StringMapInput // An `authSettings` block as defined below. AuthSettings FunctionAppSlotAuthSettingsPtrInput // A `connectionString` block as defined below. ConnectionStrings FunctionAppSlotConnectionStringArrayInput // The amount of memory in gigabyte-seconds that your application is allowed to consume per day. Setting this value only affects function apps under the consumption plan. DailyMemoryTimeQuota pulumi.IntPtrInput // Should the built-in logging of the Function App be enabled? Defaults to `true`. EnableBuiltinLogging pulumi.BoolPtrInput // Is the Function App enabled? Defaults to `true`. Enabled pulumi.BoolPtrInput // The name of the Function App within which to create the Function App Slot. Changing this forces a new resource to be created. FunctionAppName pulumi.StringInput // Can the Function App only be accessed via HTTPS? Defaults to `false`. HttpsOnly pulumi.BoolPtrInput // An `identity` block as defined below. Identity FunctionAppSlotIdentityPtrInput // 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 Function App. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // A string indicating the Operating System type for this function app. The only possible value is `linux`. Changing this forces a new resource to be created. // // > **NOTE:** This value will be `linux` for Linux Derivatives or an empty string for Windows (default). OsType pulumi.StringPtrInput // The name of the resource group in which to create the Function App Slot. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringInput // A `siteConfig` object as defined below. SiteConfig FunctionAppSlotSiteConfigPtrInput // The access key which will be used to access the backend storage account for the Function App. StorageAccountAccessKey pulumi.StringInput // The backend storage account name which will be used by the Function App (such as the dashboard, logs). Changing this forces a new resource to be created. StorageAccountName pulumi.StringInput // A mapping of tags to assign to the resource. Tags pulumi.StringMapInput // The runtime version associated with the Function App. Defaults to `~1`. Version pulumi.StringPtrInput } func (FunctionAppSlotArgs) ElementType() reflect.Type { return reflect.TypeOf((*functionAppSlotArgs)(nil)).Elem() } type FunctionAppSlotInput interface { pulumi.Input ToFunctionAppSlotOutput() FunctionAppSlotOutput ToFunctionAppSlotOutputWithContext(ctx context.Context) FunctionAppSlotOutput } func (*FunctionAppSlot) ElementType() reflect.Type { return reflect.TypeOf((**FunctionAppSlot)(nil)).Elem() } func (i *FunctionAppSlot) ToFunctionAppSlotOutput() FunctionAppSlotOutput { return i.ToFunctionAppSlotOutputWithContext(context.Background()) } func (i *FunctionAppSlot) ToFunctionAppSlotOutputWithContext(ctx context.Context) FunctionAppSlotOutput { return pulumi.ToOutputWithContext(ctx, i).(FunctionAppSlotOutput) } // FunctionAppSlotArrayInput is an input type that accepts FunctionAppSlotArray and FunctionAppSlotArrayOutput values. // You can construct a concrete instance of `FunctionAppSlotArrayInput` via: // // FunctionAppSlotArray{ FunctionAppSlotArgs{...} } type FunctionAppSlotArrayInput interface { pulumi.Input ToFunctionAppSlotArrayOutput() FunctionAppSlotArrayOutput ToFunctionAppSlotArrayOutputWithContext(context.Context) FunctionAppSlotArrayOutput } type FunctionAppSlotArray []FunctionAppSlotInput func (FunctionAppSlotArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*FunctionAppSlot)(nil)).Elem() } func (i FunctionAppSlotArray) ToFunctionAppSlotArrayOutput() FunctionAppSlotArrayOutput { return i.ToFunctionAppSlotArrayOutputWithContext(context.Background()) } func (i FunctionAppSlotArray) ToFunctionAppSlotArrayOutputWithContext(ctx context.Context) FunctionAppSlotArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(FunctionAppSlotArrayOutput) } // FunctionAppSlotMapInput is an input type that accepts FunctionAppSlotMap and FunctionAppSlotMapOutput values. // You can construct a concrete instance of `FunctionAppSlotMapInput` via: // // FunctionAppSlotMap{ "key": FunctionAppSlotArgs{...} } type FunctionAppSlotMapInput interface { pulumi.Input ToFunctionAppSlotMapOutput() FunctionAppSlotMapOutput ToFunctionAppSlotMapOutputWithContext(context.Context) FunctionAppSlotMapOutput } type FunctionAppSlotMap map[string]FunctionAppSlotInput func (FunctionAppSlotMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*FunctionAppSlot)(nil)).Elem() } func (i FunctionAppSlotMap) ToFunctionAppSlotMapOutput() FunctionAppSlotMapOutput { return i.ToFunctionAppSlotMapOutputWithContext(context.Background()) } func (i FunctionAppSlotMap) ToFunctionAppSlotMapOutputWithContext(ctx context.Context) FunctionAppSlotMapOutput { return pulumi.ToOutputWithContext(ctx, i).(FunctionAppSlotMapOutput) } type FunctionAppSlotOutput struct{ *pulumi.OutputState } func (FunctionAppSlotOutput) ElementType() reflect.Type { return reflect.TypeOf((**FunctionAppSlot)(nil)).Elem() } func (o FunctionAppSlotOutput) ToFunctionAppSlotOutput() FunctionAppSlotOutput { return o } func (o FunctionAppSlotOutput) ToFunctionAppSlotOutputWithContext(ctx context.Context) FunctionAppSlotOutput { return o } // The ID of the App Service Plan within which to create this Function App Slot. Changing this forces a new resource to be created. func (o FunctionAppSlotOutput) AppServicePlanId() pulumi.StringOutput { return o.ApplyT(func(v *FunctionAppSlot) pulumi.StringOutput { return v.AppServicePlanId }).(pulumi.StringOutput) } // A key-value pair of App Settings. // // > **Note:** When integrating a `CI/CD pipeline` and expecting to run from a deployed package in `Azure` you must seed your `app settings` as part of the application code for function app to be successfully deployed. `Important Default key pairs`: (`"WEBSITE_RUN_FROM_PACKAGE" = ""`, `"FUNCTIONS_WORKER_RUNTIME" = "node"` (or python, etc), `"WEBSITE_NODE_DEFAULT_VERSION" = "10.14.1"`, `"APPINSIGHTS_INSTRUMENTATIONKEY" = ""`). // // > **NOTE:** The values for `AzureWebJobsStorage` and `FUNCTIONS_EXTENSION_VERSION` will be filled by other input arguments and shouldn't be configured separately. `AzureWebJobsStorage` is filled based on `storageAccountName` and `storageAccountAccessKey`. `FUNCTIONS_EXTENSION_VERSION` is filled based on `version`. // // > **Note:** When using an App Service Plan in the `Free` or `Shared` Tiers `use32BitWorkerProcess` must be set to `true`. func (o FunctionAppSlotOutput) AppSettings() pulumi.StringMapOutput { return o.ApplyT(func(v *FunctionAppSlot) pulumi.StringMapOutput { return v.AppSettings }).(pulumi.StringMapOutput) } // An `authSettings` block as defined below. func (o FunctionAppSlotOutput) AuthSettings() FunctionAppSlotAuthSettingsOutput { return o.ApplyT(func(v *FunctionAppSlot) FunctionAppSlotAuthSettingsOutput { return v.AuthSettings }).(FunctionAppSlotAuthSettingsOutput) } // A `connectionString` block as defined below. func (o FunctionAppSlotOutput) ConnectionStrings() FunctionAppSlotConnectionStringArrayOutput { return o.ApplyT(func(v *FunctionAppSlot) FunctionAppSlotConnectionStringArrayOutput { return v.ConnectionStrings }).(FunctionAppSlotConnectionStringArrayOutput) } // The amount of memory in gigabyte-seconds that your application is allowed to consume per day. Setting this value only affects function apps under the consumption plan. func (o FunctionAppSlotOutput) DailyMemoryTimeQuota() pulumi.IntPtrOutput { return o.ApplyT(func(v *FunctionAppSlot) pulumi.IntPtrOutput { return v.DailyMemoryTimeQuota }).(pulumi.IntPtrOutput) } // The default hostname associated with the Function App - such as `mysite.azurewebsites.net` func (o FunctionAppSlotOutput) DefaultHostname() pulumi.StringOutput { return o.ApplyT(func(v *FunctionAppSlot) pulumi.StringOutput { return v.DefaultHostname }).(pulumi.StringOutput) } // Should the built-in logging of the Function App be enabled? Defaults to `true`. func (o FunctionAppSlotOutput) EnableBuiltinLogging() pulumi.BoolPtrOutput {
go
Apache-2.0
b66e1472775a89cca43f5050fef806854a7c3fa3
2026-01-07T09:44:27.619514Z
true
pulumi/pulumi-azure
https://github.com/pulumi/pulumi-azure/blob/b66e1472775a89cca43f5050fef806854a7c3fa3/sdk/go/azure/appservice/getWindowsFunctionApp.go
sdk/go/azure/appservice/getWindowsFunctionApp.go
// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package appservice import ( "context" "reflect" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Use this data source to access information about an existing Windows Function App. // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/appservice" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { // example, err := appservice.LookupWindowsFunctionApp(ctx, &appservice.LookupWindowsFunctionAppArgs{ // Name: "existing", // ResourceGroupName: "existing", // }, nil) // if err != nil { // return err // } // ctx.Export("id", example.Id) // return nil // }) // } // // ``` // // ## API Providers // // <!-- This section is generated, changes will be overwritten --> // This data source uses the following Azure API Providers: // // * `Microsoft.Web` - 2023-12-01 func LookupWindowsFunctionApp(ctx *pulumi.Context, args *LookupWindowsFunctionAppArgs, opts ...pulumi.InvokeOption) (*LookupWindowsFunctionAppResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupWindowsFunctionAppResult err := ctx.Invoke("azure:appservice/getWindowsFunctionApp:getWindowsFunctionApp", args, &rv, opts...) if err != nil { return nil, err } return &rv, nil } // A collection of arguments for invoking getWindowsFunctionApp. type LookupWindowsFunctionAppArgs struct { // The name of this Windows Function App. Name string `pulumi:"name"` // The name of the Resource Group where the Windows Function App exists. ResourceGroupName string `pulumi:"resourceGroupName"` } // A collection of values returned by getWindowsFunctionApp. type LookupWindowsFunctionAppResult struct { // A `map of key-value pairs for App Settings and custom values. AppSettings map[string]string `pulumi:"appSettings"` // A `authSettings` block as defined below. AuthSettings []GetWindowsFunctionAppAuthSetting `pulumi:"authSettings"` // A `authSettingsV2` block as defined below. AuthSettingsV2s []GetWindowsFunctionAppAuthSettingsV2 `pulumi:"authSettingsV2s"` // A `backup` block as defined below. Backups []GetWindowsFunctionAppBackup `pulumi:"backups"` // Is the built-in logging enabled? BuiltinLoggingEnabled bool `pulumi:"builtinLoggingEnabled"` // Is the use of Client Certificates enabled? ClientCertificateEnabled bool `pulumi:"clientCertificateEnabled"` // Paths to exclude when using client certificates, separated by ; ClientCertificateExclusionPaths string `pulumi:"clientCertificateExclusionPaths"` // The mode of the Function App's client certificates requirement for incoming requests. ClientCertificateMode string `pulumi:"clientCertificateMode"` // One or more `connectionString` blocks as defined below. ConnectionStrings []GetWindowsFunctionAppConnectionString `pulumi:"connectionStrings"` // Are Content Share Settings disabled? ContentShareForceDisabled bool `pulumi:"contentShareForceDisabled"` // The identifier used by App Service to perform domain ownership verification via DNS TXT record. CustomDomainVerificationId string `pulumi:"customDomainVerificationId"` // The amount of memory in gigabyte-seconds that your application is allowed to consume per day. DailyMemoryTimeQuota int `pulumi:"dailyMemoryTimeQuota"` // The default hostname of the Windows Function App. DefaultHostname string `pulumi:"defaultHostname"` // Is the Backup Job enabled? Enabled bool `pulumi:"enabled"` // Are the default FTP Basic Authentication publishing credentials enabled. FtpPublishBasicAuthenticationEnabled bool `pulumi:"ftpPublishBasicAuthenticationEnabled"` // The runtime version associated with the Function App. FunctionsExtensionVersion string `pulumi:"functionsExtensionVersion"` // The ID of the App Service Environment used by Function App. HostingEnvironmentId string `pulumi:"hostingEnvironmentId"` // Is the Function App only accessible via HTTPS? HttpsOnly bool `pulumi:"httpsOnly"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` // A `identity` block as defined below. Identities []GetWindowsFunctionAppIdentity `pulumi:"identities"` // The Kind value for this Windows Function App. Kind string `pulumi:"kind"` // The Azure Region where the Windows Function App exists. Location string `pulumi:"location"` // The Site Credentials Username used for publishing. Name string `pulumi:"name"` // A list of outbound IP addresses. For example `["52.23.25.3", "52.143.43.12"]` OutboundIpAddressLists []string `pulumi:"outboundIpAddressLists"` // A comma separated list of outbound IP addresses as a string. For example `52.23.25.3,52.143.43.12`. OutboundIpAddresses string `pulumi:"outboundIpAddresses"` // A list of possible outbound IP addresses, not all of which are necessarily in use. This is a superset of `outboundIpAddressList`. For example `["52.23.25.3", "52.143.43.12"]`. PossibleOutboundIpAddressLists []string `pulumi:"possibleOutboundIpAddressLists"` // A comma separated list of possible outbound IP addresses as a string. For example `52.23.25.3,52.143.43.12,52.143.43.17`. This is a superset of `outboundIpAddresses`. PossibleOutboundIpAddresses string `pulumi:"possibleOutboundIpAddresses"` // Is Public Network Access enabled for the Windows Function App. PublicNetworkAccessEnabled bool `pulumi:"publicNetworkAccessEnabled"` ResourceGroupName string `pulumi:"resourceGroupName"` // The ID of the App Service Plan. ServicePlanId string `pulumi:"servicePlanId"` // A `siteConfig` block as defined below. SiteConfigs []GetWindowsFunctionAppSiteConfig `pulumi:"siteConfigs"` // A `siteCredential` block as defined below. SiteCredentials []GetWindowsFunctionAppSiteCredential `pulumi:"siteCredentials"` // A `stickySettings` block as defined below. StickySettings []GetWindowsFunctionAppStickySetting `pulumi:"stickySettings"` // The access key which is used to access the backend storage account for the Function App. StorageAccountAccessKey string `pulumi:"storageAccountAccessKey"` // The backend storage account name which is used by this Function App. StorageAccountName string `pulumi:"storageAccountName"` // The Key Vault Secret ID, including version, that contains the Connection String used to connect to the storage account for this Function App. StorageKeyVaultSecretId string `pulumi:"storageKeyVaultSecretId"` // Is the Function App using a Managed Identity to access the storage account? StorageUsesManagedIdentity bool `pulumi:"storageUsesManagedIdentity"` // A mapping of tags assigned to the Windows Function App. Tags map[string]string `pulumi:"tags"` // Whether backup and restore operations over the linked virtual network are enabled. VirtualNetworkBackupRestoreEnabled bool `pulumi:"virtualNetworkBackupRestoreEnabled"` // The subnet id which the Windows Function App is vNet Integrated with. VirtualNetworkSubnetId string `pulumi:"virtualNetworkSubnetId"` // Are the default WebDeploy Basic Authentication publishing credentials enabled. WebdeployPublishBasicAuthenticationEnabled bool `pulumi:"webdeployPublishBasicAuthenticationEnabled"` } func LookupWindowsFunctionAppOutput(ctx *pulumi.Context, args LookupWindowsFunctionAppOutputArgs, opts ...pulumi.InvokeOption) LookupWindowsFunctionAppResultOutput { return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupWindowsFunctionAppResultOutput, error) { args := v.(LookupWindowsFunctionAppArgs) options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} return ctx.InvokeOutput("azure:appservice/getWindowsFunctionApp:getWindowsFunctionApp", args, LookupWindowsFunctionAppResultOutput{}, options).(LookupWindowsFunctionAppResultOutput), nil }).(LookupWindowsFunctionAppResultOutput) } // A collection of arguments for invoking getWindowsFunctionApp. type LookupWindowsFunctionAppOutputArgs struct { // The name of this Windows Function App. Name pulumi.StringInput `pulumi:"name"` // The name of the Resource Group where the Windows Function App exists. ResourceGroupName pulumi.StringInput `pulumi:"resourceGroupName"` } func (LookupWindowsFunctionAppOutputArgs) ElementType() reflect.Type { return reflect.TypeOf((*LookupWindowsFunctionAppArgs)(nil)).Elem() } // A collection of values returned by getWindowsFunctionApp. type LookupWindowsFunctionAppResultOutput struct{ *pulumi.OutputState } func (LookupWindowsFunctionAppResultOutput) ElementType() reflect.Type { return reflect.TypeOf((*LookupWindowsFunctionAppResult)(nil)).Elem() } func (o LookupWindowsFunctionAppResultOutput) ToLookupWindowsFunctionAppResultOutput() LookupWindowsFunctionAppResultOutput { return o } func (o LookupWindowsFunctionAppResultOutput) ToLookupWindowsFunctionAppResultOutputWithContext(ctx context.Context) LookupWindowsFunctionAppResultOutput { return o } // A `map of key-value pairs for App Settings and custom values. func (o LookupWindowsFunctionAppResultOutput) AppSettings() pulumi.StringMapOutput { return o.ApplyT(func(v LookupWindowsFunctionAppResult) map[string]string { return v.AppSettings }).(pulumi.StringMapOutput) } // A `authSettings` block as defined below. func (o LookupWindowsFunctionAppResultOutput) AuthSettings() GetWindowsFunctionAppAuthSettingArrayOutput { return o.ApplyT(func(v LookupWindowsFunctionAppResult) []GetWindowsFunctionAppAuthSetting { return v.AuthSettings }).(GetWindowsFunctionAppAuthSettingArrayOutput) } // A `authSettingsV2` block as defined below. func (o LookupWindowsFunctionAppResultOutput) AuthSettingsV2s() GetWindowsFunctionAppAuthSettingsV2ArrayOutput { return o.ApplyT(func(v LookupWindowsFunctionAppResult) []GetWindowsFunctionAppAuthSettingsV2 { return v.AuthSettingsV2s }).(GetWindowsFunctionAppAuthSettingsV2ArrayOutput) } // A `backup` block as defined below. func (o LookupWindowsFunctionAppResultOutput) Backups() GetWindowsFunctionAppBackupArrayOutput { return o.ApplyT(func(v LookupWindowsFunctionAppResult) []GetWindowsFunctionAppBackup { return v.Backups }).(GetWindowsFunctionAppBackupArrayOutput) } // Is the built-in logging enabled? func (o LookupWindowsFunctionAppResultOutput) BuiltinLoggingEnabled() pulumi.BoolOutput { return o.ApplyT(func(v LookupWindowsFunctionAppResult) bool { return v.BuiltinLoggingEnabled }).(pulumi.BoolOutput) } // Is the use of Client Certificates enabled? func (o LookupWindowsFunctionAppResultOutput) ClientCertificateEnabled() pulumi.BoolOutput { return o.ApplyT(func(v LookupWindowsFunctionAppResult) bool { return v.ClientCertificateEnabled }).(pulumi.BoolOutput) } // Paths to exclude when using client certificates, separated by ; func (o LookupWindowsFunctionAppResultOutput) ClientCertificateExclusionPaths() pulumi.StringOutput { return o.ApplyT(func(v LookupWindowsFunctionAppResult) string { return v.ClientCertificateExclusionPaths }).(pulumi.StringOutput) } // The mode of the Function App's client certificates requirement for incoming requests. func (o LookupWindowsFunctionAppResultOutput) ClientCertificateMode() pulumi.StringOutput { return o.ApplyT(func(v LookupWindowsFunctionAppResult) string { return v.ClientCertificateMode }).(pulumi.StringOutput) } // One or more `connectionString` blocks as defined below. func (o LookupWindowsFunctionAppResultOutput) ConnectionStrings() GetWindowsFunctionAppConnectionStringArrayOutput { return o.ApplyT(func(v LookupWindowsFunctionAppResult) []GetWindowsFunctionAppConnectionString { return v.ConnectionStrings }).(GetWindowsFunctionAppConnectionStringArrayOutput) } // Are Content Share Settings disabled? func (o LookupWindowsFunctionAppResultOutput) ContentShareForceDisabled() pulumi.BoolOutput { return o.ApplyT(func(v LookupWindowsFunctionAppResult) bool { return v.ContentShareForceDisabled }).(pulumi.BoolOutput) } // The identifier used by App Service to perform domain ownership verification via DNS TXT record. func (o LookupWindowsFunctionAppResultOutput) CustomDomainVerificationId() pulumi.StringOutput { return o.ApplyT(func(v LookupWindowsFunctionAppResult) string { return v.CustomDomainVerificationId }).(pulumi.StringOutput) } // The amount of memory in gigabyte-seconds that your application is allowed to consume per day. func (o LookupWindowsFunctionAppResultOutput) DailyMemoryTimeQuota() pulumi.IntOutput { return o.ApplyT(func(v LookupWindowsFunctionAppResult) int { return v.DailyMemoryTimeQuota }).(pulumi.IntOutput) } // The default hostname of the Windows Function App. func (o LookupWindowsFunctionAppResultOutput) DefaultHostname() pulumi.StringOutput { return o.ApplyT(func(v LookupWindowsFunctionAppResult) string { return v.DefaultHostname }).(pulumi.StringOutput) } // Is the Backup Job enabled? func (o LookupWindowsFunctionAppResultOutput) Enabled() pulumi.BoolOutput { return o.ApplyT(func(v LookupWindowsFunctionAppResult) bool { return v.Enabled }).(pulumi.BoolOutput) } // Are the default FTP Basic Authentication publishing credentials enabled. func (o LookupWindowsFunctionAppResultOutput) FtpPublishBasicAuthenticationEnabled() pulumi.BoolOutput { return o.ApplyT(func(v LookupWindowsFunctionAppResult) bool { return v.FtpPublishBasicAuthenticationEnabled }).(pulumi.BoolOutput) } // The runtime version associated with the Function App. func (o LookupWindowsFunctionAppResultOutput) FunctionsExtensionVersion() pulumi.StringOutput { return o.ApplyT(func(v LookupWindowsFunctionAppResult) string { return v.FunctionsExtensionVersion }).(pulumi.StringOutput) } // The ID of the App Service Environment used by Function App. func (o LookupWindowsFunctionAppResultOutput) HostingEnvironmentId() pulumi.StringOutput { return o.ApplyT(func(v LookupWindowsFunctionAppResult) string { return v.HostingEnvironmentId }).(pulumi.StringOutput) } // Is the Function App only accessible via HTTPS? func (o LookupWindowsFunctionAppResultOutput) HttpsOnly() pulumi.BoolOutput { return o.ApplyT(func(v LookupWindowsFunctionAppResult) bool { return v.HttpsOnly }).(pulumi.BoolOutput) } // The provider-assigned unique ID for this managed resource. func (o LookupWindowsFunctionAppResultOutput) Id() pulumi.StringOutput { return o.ApplyT(func(v LookupWindowsFunctionAppResult) string { return v.Id }).(pulumi.StringOutput) } // A `identity` block as defined below. func (o LookupWindowsFunctionAppResultOutput) Identities() GetWindowsFunctionAppIdentityArrayOutput { return o.ApplyT(func(v LookupWindowsFunctionAppResult) []GetWindowsFunctionAppIdentity { return v.Identities }).(GetWindowsFunctionAppIdentityArrayOutput) } // The Kind value for this Windows Function App. func (o LookupWindowsFunctionAppResultOutput) Kind() pulumi.StringOutput { return o.ApplyT(func(v LookupWindowsFunctionAppResult) string { return v.Kind }).(pulumi.StringOutput) } // The Azure Region where the Windows Function App exists. func (o LookupWindowsFunctionAppResultOutput) Location() pulumi.StringOutput { return o.ApplyT(func(v LookupWindowsFunctionAppResult) string { return v.Location }).(pulumi.StringOutput) } // The Site Credentials Username used for publishing. func (o LookupWindowsFunctionAppResultOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v LookupWindowsFunctionAppResult) string { return v.Name }).(pulumi.StringOutput) } // A list of outbound IP addresses. For example `["52.23.25.3", "52.143.43.12"]` func (o LookupWindowsFunctionAppResultOutput) OutboundIpAddressLists() pulumi.StringArrayOutput { return o.ApplyT(func(v LookupWindowsFunctionAppResult) []string { return v.OutboundIpAddressLists }).(pulumi.StringArrayOutput) } // A comma separated list of outbound IP addresses as a string. For example `52.23.25.3,52.143.43.12`. func (o LookupWindowsFunctionAppResultOutput) OutboundIpAddresses() pulumi.StringOutput { return o.ApplyT(func(v LookupWindowsFunctionAppResult) string { return v.OutboundIpAddresses }).(pulumi.StringOutput) } // A list of possible outbound IP addresses, not all of which are necessarily in use. This is a superset of `outboundIpAddressList`. For example `["52.23.25.3", "52.143.43.12"]`. func (o LookupWindowsFunctionAppResultOutput) PossibleOutboundIpAddressLists() pulumi.StringArrayOutput { return o.ApplyT(func(v LookupWindowsFunctionAppResult) []string { return v.PossibleOutboundIpAddressLists }).(pulumi.StringArrayOutput) } // A comma separated list of possible outbound IP addresses as a string. For example `52.23.25.3,52.143.43.12,52.143.43.17`. This is a superset of `outboundIpAddresses`. func (o LookupWindowsFunctionAppResultOutput) PossibleOutboundIpAddresses() pulumi.StringOutput { return o.ApplyT(func(v LookupWindowsFunctionAppResult) string { return v.PossibleOutboundIpAddresses }).(pulumi.StringOutput) } // Is Public Network Access enabled for the Windows Function App. func (o LookupWindowsFunctionAppResultOutput) PublicNetworkAccessEnabled() pulumi.BoolOutput { return o.ApplyT(func(v LookupWindowsFunctionAppResult) bool { return v.PublicNetworkAccessEnabled }).(pulumi.BoolOutput) } func (o LookupWindowsFunctionAppResultOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v LookupWindowsFunctionAppResult) string { return v.ResourceGroupName }).(pulumi.StringOutput) } // The ID of the App Service Plan. func (o LookupWindowsFunctionAppResultOutput) ServicePlanId() pulumi.StringOutput { return o.ApplyT(func(v LookupWindowsFunctionAppResult) string { return v.ServicePlanId }).(pulumi.StringOutput) } // A `siteConfig` block as defined below. func (o LookupWindowsFunctionAppResultOutput) SiteConfigs() GetWindowsFunctionAppSiteConfigArrayOutput { return o.ApplyT(func(v LookupWindowsFunctionAppResult) []GetWindowsFunctionAppSiteConfig { return v.SiteConfigs }).(GetWindowsFunctionAppSiteConfigArrayOutput) } // A `siteCredential` block as defined below. func (o LookupWindowsFunctionAppResultOutput) SiteCredentials() GetWindowsFunctionAppSiteCredentialArrayOutput { return o.ApplyT(func(v LookupWindowsFunctionAppResult) []GetWindowsFunctionAppSiteCredential { return v.SiteCredentials }).(GetWindowsFunctionAppSiteCredentialArrayOutput) } // A `stickySettings` block as defined below. func (o LookupWindowsFunctionAppResultOutput) StickySettings() GetWindowsFunctionAppStickySettingArrayOutput { return o.ApplyT(func(v LookupWindowsFunctionAppResult) []GetWindowsFunctionAppStickySetting { return v.StickySettings }).(GetWindowsFunctionAppStickySettingArrayOutput) } // The access key which is used to access the backend storage account for the Function App. func (o LookupWindowsFunctionAppResultOutput) StorageAccountAccessKey() pulumi.StringOutput { return o.ApplyT(func(v LookupWindowsFunctionAppResult) string { return v.StorageAccountAccessKey }).(pulumi.StringOutput) } // The backend storage account name which is used by this Function App. func (o LookupWindowsFunctionAppResultOutput) StorageAccountName() pulumi.StringOutput { return o.ApplyT(func(v LookupWindowsFunctionAppResult) string { return v.StorageAccountName }).(pulumi.StringOutput) } // The Key Vault Secret ID, including version, that contains the Connection String used to connect to the storage account for this Function App. func (o LookupWindowsFunctionAppResultOutput) StorageKeyVaultSecretId() pulumi.StringOutput { return o.ApplyT(func(v LookupWindowsFunctionAppResult) string { return v.StorageKeyVaultSecretId }).(pulumi.StringOutput) } // Is the Function App using a Managed Identity to access the storage account? func (o LookupWindowsFunctionAppResultOutput) StorageUsesManagedIdentity() pulumi.BoolOutput { return o.ApplyT(func(v LookupWindowsFunctionAppResult) bool { return v.StorageUsesManagedIdentity }).(pulumi.BoolOutput) } // A mapping of tags assigned to the Windows Function App. func (o LookupWindowsFunctionAppResultOutput) Tags() pulumi.StringMapOutput { return o.ApplyT(func(v LookupWindowsFunctionAppResult) map[string]string { return v.Tags }).(pulumi.StringMapOutput) } // Whether backup and restore operations over the linked virtual network are enabled. func (o LookupWindowsFunctionAppResultOutput) VirtualNetworkBackupRestoreEnabled() pulumi.BoolOutput { return o.ApplyT(func(v LookupWindowsFunctionAppResult) bool { return v.VirtualNetworkBackupRestoreEnabled }).(pulumi.BoolOutput) } // The subnet id which the Windows Function App is vNet Integrated with. func (o LookupWindowsFunctionAppResultOutput) VirtualNetworkSubnetId() pulumi.StringOutput { return o.ApplyT(func(v LookupWindowsFunctionAppResult) string { return v.VirtualNetworkSubnetId }).(pulumi.StringOutput) } // Are the default WebDeploy Basic Authentication publishing credentials enabled. func (o LookupWindowsFunctionAppResultOutput) WebdeployPublishBasicAuthenticationEnabled() pulumi.BoolOutput { return o.ApplyT(func(v LookupWindowsFunctionAppResult) bool { return v.WebdeployPublishBasicAuthenticationEnabled }).(pulumi.BoolOutput) } func init() { pulumi.RegisterOutputType(LookupWindowsFunctionAppResultOutput{}) }
go
Apache-2.0
b66e1472775a89cca43f5050fef806854a7c3fa3
2026-01-07T09:44:27.619514Z
false
pulumi/pulumi-azure
https://github.com/pulumi/pulumi-azure/blob/b66e1472775a89cca43f5050fef806854a7c3fa3/sdk/go/azure/appservice/sourceControl.go
sdk/go/azure/appservice/sourceControl.go
// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package appservice import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages an App Service Web App or Function App Source Control Configuration. // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/appservice" // "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-resources"), // Location: pulumi.String("West Europe"), // }) // if err != nil { // return err // } // exampleServicePlan, err := appservice.NewServicePlan(ctx, "example", &appservice.ServicePlanArgs{ // Name: pulumi.String("example"), // ResourceGroupName: example.Name, // Location: example.Location, // OsType: pulumi.String("Linux"), // SkuName: pulumi.String("P1v2"), // }) // if err != nil { // return err // } // exampleLinuxWebApp, err := appservice.NewLinuxWebApp(ctx, "example", &appservice.LinuxWebAppArgs{ // Name: pulumi.String("example"), // ResourceGroupName: example.Name, // Location: exampleServicePlan.Location, // ServicePlanId: exampleServicePlan.ID(), // SiteConfig: &appservice.LinuxWebAppSiteConfigArgs{}, // }) // if err != nil { // return err // } // _, err = appservice.NewSourceControl(ctx, "example", &appservice.SourceControlArgs{ // AppId: exampleLinuxWebApp.ID(), // RepoUrl: pulumi.String("https://github.com/Azure-Samples/python-docs-hello-world"), // Branch: pulumi.String("master"), // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## API Providers // // <!-- This section is generated, changes will be overwritten --> // This resource uses the following Azure API Providers: // // * `Microsoft.Web` - 2023-12-01 // // ## Import // // App Service Source Controls can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:appservice/sourceControl:SourceControl example /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/resGroup1/providers/Microsoft.Web/sites/site1 // ``` type SourceControl struct { pulumi.CustomResourceState // The ID of the Windows or Linux Web App. Changing this forces a new resource to be created. // // > **Note:** Function apps are not supported at this time. AppId pulumi.StringOutput `pulumi:"appId"` // The branch name to use for deployments. Changing this forces a new resource to be created. Branch pulumi.StringOutput `pulumi:"branch"` // A `githubActionConfiguration` block as defined below. Changing this forces a new resource to be created. GithubActionConfiguration SourceControlGithubActionConfigurationPtrOutput `pulumi:"githubActionConfiguration"` // The URL for the repository. Changing this forces a new resource to be created. RepoUrl pulumi.StringOutput `pulumi:"repoUrl"` // Should the Deployment Rollback be enabled? Defaults to `false`. Changing this forces a new resource to be created. // // > **Note:** Azure can typically set this value automatically based on the `repoUrl` value. RollbackEnabled pulumi.BoolPtrOutput `pulumi:"rollbackEnabled"` // The SCM Type in use. This value is decoded by the service from the repository information supplied. ScmType pulumi.StringOutput `pulumi:"scmType"` // Should the App use local Git configuration. Changing this forces a new resource to be created. UseLocalGit pulumi.BoolPtrOutput `pulumi:"useLocalGit"` // Should code be deployed manually. Set to `false` to enable continuous integration, such as webhooks into online repos such as GitHub. Defaults to `false`. Changing this forces a new resource to be created. UseManualIntegration pulumi.BoolPtrOutput `pulumi:"useManualIntegration"` // The repository specified is Mercurial. Defaults to `false`. Changing this forces a new resource to be created. UseMercurial pulumi.BoolPtrOutput `pulumi:"useMercurial"` // Indicates if the Slot uses a GitHub action for deployment. This value is decoded by the service from the repository information supplied. UsesGithubAction pulumi.BoolOutput `pulumi:"usesGithubAction"` } // NewSourceControl registers a new resource with the given unique name, arguments, and options. func NewSourceControl(ctx *pulumi.Context, name string, args *SourceControlArgs, opts ...pulumi.ResourceOption) (*SourceControl, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.AppId == nil { return nil, errors.New("invalid value for required argument 'AppId'") } opts = internal.PkgResourceDefaultOpts(opts) var resource SourceControl err := ctx.RegisterResource("azure:appservice/sourceControl:SourceControl", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetSourceControl gets an existing SourceControl 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 GetSourceControl(ctx *pulumi.Context, name string, id pulumi.IDInput, state *SourceControlState, opts ...pulumi.ResourceOption) (*SourceControl, error) { var resource SourceControl err := ctx.ReadResource("azure:appservice/sourceControl:SourceControl", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering SourceControl resources. type sourceControlState struct { // The ID of the Windows or Linux Web App. Changing this forces a new resource to be created. // // > **Note:** Function apps are not supported at this time. AppId *string `pulumi:"appId"` // The branch name to use for deployments. Changing this forces a new resource to be created. Branch *string `pulumi:"branch"` // A `githubActionConfiguration` block as defined below. Changing this forces a new resource to be created. GithubActionConfiguration *SourceControlGithubActionConfiguration `pulumi:"githubActionConfiguration"` // The URL for the repository. Changing this forces a new resource to be created. RepoUrl *string `pulumi:"repoUrl"` // Should the Deployment Rollback be enabled? Defaults to `false`. Changing this forces a new resource to be created. // // > **Note:** Azure can typically set this value automatically based on the `repoUrl` value. RollbackEnabled *bool `pulumi:"rollbackEnabled"` // The SCM Type in use. This value is decoded by the service from the repository information supplied. ScmType *string `pulumi:"scmType"` // Should the App use local Git configuration. Changing this forces a new resource to be created. UseLocalGit *bool `pulumi:"useLocalGit"` // Should code be deployed manually. Set to `false` to enable continuous integration, such as webhooks into online repos such as GitHub. Defaults to `false`. Changing this forces a new resource to be created. UseManualIntegration *bool `pulumi:"useManualIntegration"` // The repository specified is Mercurial. Defaults to `false`. Changing this forces a new resource to be created. UseMercurial *bool `pulumi:"useMercurial"` // Indicates if the Slot uses a GitHub action for deployment. This value is decoded by the service from the repository information supplied. UsesGithubAction *bool `pulumi:"usesGithubAction"` } type SourceControlState struct { // The ID of the Windows or Linux Web App. Changing this forces a new resource to be created. // // > **Note:** Function apps are not supported at this time. AppId pulumi.StringPtrInput // The branch name to use for deployments. Changing this forces a new resource to be created. Branch pulumi.StringPtrInput // A `githubActionConfiguration` block as defined below. Changing this forces a new resource to be created. GithubActionConfiguration SourceControlGithubActionConfigurationPtrInput // The URL for the repository. Changing this forces a new resource to be created. RepoUrl pulumi.StringPtrInput // Should the Deployment Rollback be enabled? Defaults to `false`. Changing this forces a new resource to be created. // // > **Note:** Azure can typically set this value automatically based on the `repoUrl` value. RollbackEnabled pulumi.BoolPtrInput // The SCM Type in use. This value is decoded by the service from the repository information supplied. ScmType pulumi.StringPtrInput // Should the App use local Git configuration. Changing this forces a new resource to be created. UseLocalGit pulumi.BoolPtrInput // Should code be deployed manually. Set to `false` to enable continuous integration, such as webhooks into online repos such as GitHub. Defaults to `false`. Changing this forces a new resource to be created. UseManualIntegration pulumi.BoolPtrInput // The repository specified is Mercurial. Defaults to `false`. Changing this forces a new resource to be created. UseMercurial pulumi.BoolPtrInput // Indicates if the Slot uses a GitHub action for deployment. This value is decoded by the service from the repository information supplied. UsesGithubAction pulumi.BoolPtrInput } func (SourceControlState) ElementType() reflect.Type { return reflect.TypeOf((*sourceControlState)(nil)).Elem() } type sourceControlArgs struct { // The ID of the Windows or Linux Web App. Changing this forces a new resource to be created. // // > **Note:** Function apps are not supported at this time. AppId string `pulumi:"appId"` // The branch name to use for deployments. Changing this forces a new resource to be created. Branch *string `pulumi:"branch"` // A `githubActionConfiguration` block as defined below. Changing this forces a new resource to be created. GithubActionConfiguration *SourceControlGithubActionConfiguration `pulumi:"githubActionConfiguration"` // The URL for the repository. Changing this forces a new resource to be created. RepoUrl *string `pulumi:"repoUrl"` // Should the Deployment Rollback be enabled? Defaults to `false`. Changing this forces a new resource to be created. // // > **Note:** Azure can typically set this value automatically based on the `repoUrl` value. RollbackEnabled *bool `pulumi:"rollbackEnabled"` // Should the App use local Git configuration. Changing this forces a new resource to be created. UseLocalGit *bool `pulumi:"useLocalGit"` // Should code be deployed manually. Set to `false` to enable continuous integration, such as webhooks into online repos such as GitHub. Defaults to `false`. Changing this forces a new resource to be created. UseManualIntegration *bool `pulumi:"useManualIntegration"` // The repository specified is Mercurial. Defaults to `false`. Changing this forces a new resource to be created. UseMercurial *bool `pulumi:"useMercurial"` } // The set of arguments for constructing a SourceControl resource. type SourceControlArgs struct { // The ID of the Windows or Linux Web App. Changing this forces a new resource to be created. // // > **Note:** Function apps are not supported at this time. AppId pulumi.StringInput // The branch name to use for deployments. Changing this forces a new resource to be created. Branch pulumi.StringPtrInput // A `githubActionConfiguration` block as defined below. Changing this forces a new resource to be created. GithubActionConfiguration SourceControlGithubActionConfigurationPtrInput // The URL for the repository. Changing this forces a new resource to be created. RepoUrl pulumi.StringPtrInput // Should the Deployment Rollback be enabled? Defaults to `false`. Changing this forces a new resource to be created. // // > **Note:** Azure can typically set this value automatically based on the `repoUrl` value. RollbackEnabled pulumi.BoolPtrInput // Should the App use local Git configuration. Changing this forces a new resource to be created. UseLocalGit pulumi.BoolPtrInput // Should code be deployed manually. Set to `false` to enable continuous integration, such as webhooks into online repos such as GitHub. Defaults to `false`. Changing this forces a new resource to be created. UseManualIntegration pulumi.BoolPtrInput // The repository specified is Mercurial. Defaults to `false`. Changing this forces a new resource to be created. UseMercurial pulumi.BoolPtrInput } func (SourceControlArgs) ElementType() reflect.Type { return reflect.TypeOf((*sourceControlArgs)(nil)).Elem() } type SourceControlInput interface { pulumi.Input ToSourceControlOutput() SourceControlOutput ToSourceControlOutputWithContext(ctx context.Context) SourceControlOutput } func (*SourceControl) ElementType() reflect.Type { return reflect.TypeOf((**SourceControl)(nil)).Elem() } func (i *SourceControl) ToSourceControlOutput() SourceControlOutput { return i.ToSourceControlOutputWithContext(context.Background()) } func (i *SourceControl) ToSourceControlOutputWithContext(ctx context.Context) SourceControlOutput { return pulumi.ToOutputWithContext(ctx, i).(SourceControlOutput) } // SourceControlArrayInput is an input type that accepts SourceControlArray and SourceControlArrayOutput values. // You can construct a concrete instance of `SourceControlArrayInput` via: // // SourceControlArray{ SourceControlArgs{...} } type SourceControlArrayInput interface { pulumi.Input ToSourceControlArrayOutput() SourceControlArrayOutput ToSourceControlArrayOutputWithContext(context.Context) SourceControlArrayOutput } type SourceControlArray []SourceControlInput func (SourceControlArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*SourceControl)(nil)).Elem() } func (i SourceControlArray) ToSourceControlArrayOutput() SourceControlArrayOutput { return i.ToSourceControlArrayOutputWithContext(context.Background()) } func (i SourceControlArray) ToSourceControlArrayOutputWithContext(ctx context.Context) SourceControlArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(SourceControlArrayOutput) } // SourceControlMapInput is an input type that accepts SourceControlMap and SourceControlMapOutput values. // You can construct a concrete instance of `SourceControlMapInput` via: // // SourceControlMap{ "key": SourceControlArgs{...} } type SourceControlMapInput interface { pulumi.Input ToSourceControlMapOutput() SourceControlMapOutput ToSourceControlMapOutputWithContext(context.Context) SourceControlMapOutput } type SourceControlMap map[string]SourceControlInput func (SourceControlMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*SourceControl)(nil)).Elem() } func (i SourceControlMap) ToSourceControlMapOutput() SourceControlMapOutput { return i.ToSourceControlMapOutputWithContext(context.Background()) } func (i SourceControlMap) ToSourceControlMapOutputWithContext(ctx context.Context) SourceControlMapOutput { return pulumi.ToOutputWithContext(ctx, i).(SourceControlMapOutput) } type SourceControlOutput struct{ *pulumi.OutputState } func (SourceControlOutput) ElementType() reflect.Type { return reflect.TypeOf((**SourceControl)(nil)).Elem() } func (o SourceControlOutput) ToSourceControlOutput() SourceControlOutput { return o } func (o SourceControlOutput) ToSourceControlOutputWithContext(ctx context.Context) SourceControlOutput { return o } // The ID of the Windows or Linux Web App. Changing this forces a new resource to be created. // // > **Note:** Function apps are not supported at this time. func (o SourceControlOutput) AppId() pulumi.StringOutput { return o.ApplyT(func(v *SourceControl) pulumi.StringOutput { return v.AppId }).(pulumi.StringOutput) } // The branch name to use for deployments. Changing this forces a new resource to be created. func (o SourceControlOutput) Branch() pulumi.StringOutput { return o.ApplyT(func(v *SourceControl) pulumi.StringOutput { return v.Branch }).(pulumi.StringOutput) } // A `githubActionConfiguration` block as defined below. Changing this forces a new resource to be created. func (o SourceControlOutput) GithubActionConfiguration() SourceControlGithubActionConfigurationPtrOutput { return o.ApplyT(func(v *SourceControl) SourceControlGithubActionConfigurationPtrOutput { return v.GithubActionConfiguration }).(SourceControlGithubActionConfigurationPtrOutput) } // The URL for the repository. Changing this forces a new resource to be created. func (o SourceControlOutput) RepoUrl() pulumi.StringOutput { return o.ApplyT(func(v *SourceControl) pulumi.StringOutput { return v.RepoUrl }).(pulumi.StringOutput) } // Should the Deployment Rollback be enabled? Defaults to `false`. Changing this forces a new resource to be created. // // > **Note:** Azure can typically set this value automatically based on the `repoUrl` value. func (o SourceControlOutput) RollbackEnabled() pulumi.BoolPtrOutput { return o.ApplyT(func(v *SourceControl) pulumi.BoolPtrOutput { return v.RollbackEnabled }).(pulumi.BoolPtrOutput) } // The SCM Type in use. This value is decoded by the service from the repository information supplied. func (o SourceControlOutput) ScmType() pulumi.StringOutput { return o.ApplyT(func(v *SourceControl) pulumi.StringOutput { return v.ScmType }).(pulumi.StringOutput) } // Should the App use local Git configuration. Changing this forces a new resource to be created. func (o SourceControlOutput) UseLocalGit() pulumi.BoolPtrOutput { return o.ApplyT(func(v *SourceControl) pulumi.BoolPtrOutput { return v.UseLocalGit }).(pulumi.BoolPtrOutput) } // Should code be deployed manually. Set to `false` to enable continuous integration, such as webhooks into online repos such as GitHub. Defaults to `false`. Changing this forces a new resource to be created. func (o SourceControlOutput) UseManualIntegration() pulumi.BoolPtrOutput { return o.ApplyT(func(v *SourceControl) pulumi.BoolPtrOutput { return v.UseManualIntegration }).(pulumi.BoolPtrOutput) } // The repository specified is Mercurial. Defaults to `false`. Changing this forces a new resource to be created. func (o SourceControlOutput) UseMercurial() pulumi.BoolPtrOutput { return o.ApplyT(func(v *SourceControl) pulumi.BoolPtrOutput { return v.UseMercurial }).(pulumi.BoolPtrOutput) } // Indicates if the Slot uses a GitHub action for deployment. This value is decoded by the service from the repository information supplied. func (o SourceControlOutput) UsesGithubAction() pulumi.BoolOutput { return o.ApplyT(func(v *SourceControl) pulumi.BoolOutput { return v.UsesGithubAction }).(pulumi.BoolOutput) } type SourceControlArrayOutput struct{ *pulumi.OutputState } func (SourceControlArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*SourceControl)(nil)).Elem() } func (o SourceControlArrayOutput) ToSourceControlArrayOutput() SourceControlArrayOutput { return o } func (o SourceControlArrayOutput) ToSourceControlArrayOutputWithContext(ctx context.Context) SourceControlArrayOutput { return o } func (o SourceControlArrayOutput) Index(i pulumi.IntInput) SourceControlOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *SourceControl { return vs[0].([]*SourceControl)[vs[1].(int)] }).(SourceControlOutput) } type SourceControlMapOutput struct{ *pulumi.OutputState } func (SourceControlMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*SourceControl)(nil)).Elem() } func (o SourceControlMapOutput) ToSourceControlMapOutput() SourceControlMapOutput { return o } func (o SourceControlMapOutput) ToSourceControlMapOutputWithContext(ctx context.Context) SourceControlMapOutput { return o } func (o SourceControlMapOutput) MapIndex(k pulumi.StringInput) SourceControlOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *SourceControl { return vs[0].(map[string]*SourceControl)[vs[1].(string)] }).(SourceControlOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*SourceControlInput)(nil)).Elem(), &SourceControl{}) pulumi.RegisterInputType(reflect.TypeOf((*SourceControlArrayInput)(nil)).Elem(), SourceControlArray{}) pulumi.RegisterInputType(reflect.TypeOf((*SourceControlMapInput)(nil)).Elem(), SourceControlMap{}) pulumi.RegisterOutputType(SourceControlOutput{}) pulumi.RegisterOutputType(SourceControlArrayOutput{}) pulumi.RegisterOutputType(SourceControlMapOutput{}) }
go
Apache-2.0
b66e1472775a89cca43f5050fef806854a7c3fa3
2026-01-07T09:44:27.619514Z
false
pulumi/pulumi-azure
https://github.com/pulumi/pulumi-azure/blob/b66e1472775a89cca43f5050fef806854a7c3fa3/sdk/go/azure/appservice/getLinuxFunctionApp.go
sdk/go/azure/appservice/getLinuxFunctionApp.go
// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package appservice import ( "context" "reflect" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Use this data source to access information about an existing Linux Function App. // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/appservice" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { // example, err := appservice.LookupLinuxFunctionApp(ctx, &appservice.LookupLinuxFunctionAppArgs{ // Name: "existing", // ResourceGroupName: "existing", // }, nil) // if err != nil { // return err // } // ctx.Export("id", example.Id) // return nil // }) // } // // ``` // // ## API Providers // // <!-- This section is generated, changes will be overwritten --> // This data source uses the following Azure API Providers: // // * `Microsoft.Web` - 2023-12-01 func LookupLinuxFunctionApp(ctx *pulumi.Context, args *LookupLinuxFunctionAppArgs, opts ...pulumi.InvokeOption) (*LookupLinuxFunctionAppResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupLinuxFunctionAppResult err := ctx.Invoke("azure:appservice/getLinuxFunctionApp:getLinuxFunctionApp", args, &rv, opts...) if err != nil { return nil, err } return &rv, nil } // A collection of arguments for invoking getLinuxFunctionApp. type LookupLinuxFunctionAppArgs struct { // The name which should be used for this Linux Function App. Name string `pulumi:"name"` // The name of the Resource Group where the Linux Function App should exist. ResourceGroupName string `pulumi:"resourceGroupName"` } // A collection of values returned by getLinuxFunctionApp. type LookupLinuxFunctionAppResult struct { // A map of key-value pairs for [App Settings](https://docs.microsoft.com/azure/azure-functions/functions-app-settings) and custom values. AppSettings map[string]string `pulumi:"appSettings"` // A `authSettings` block as defined below. AuthSettings []GetLinuxFunctionAppAuthSetting `pulumi:"authSettings"` // A `authSettingsV2` block as defined below. AuthSettingsV2s []GetLinuxFunctionAppAuthSettingsV2 `pulumi:"authSettingsV2s"` // The current availability state. Possible values are `Normal`, `Limited`, and `DisasterRecoveryMode`. Availability string `pulumi:"availability"` // A `backup` block as defined below. Backups []GetLinuxFunctionAppBackup `pulumi:"backups"` // Is built in logging enabled? BuiltinLoggingEnabled bool `pulumi:"builtinLoggingEnabled"` // Are Client Certificates enabled? ClientCertificateEnabled bool `pulumi:"clientCertificateEnabled"` // Paths to exclude when using client certificates, separated by ; ClientCertificateExclusionPaths string `pulumi:"clientCertificateExclusionPaths"` // The mode of the Function App's client certificates requirement for incoming requests. ClientCertificateMode string `pulumi:"clientCertificateMode"` // A `connectionString` blocks as defined below. ConnectionStrings []GetLinuxFunctionAppConnectionString `pulumi:"connectionStrings"` // Are the settings for linking the Function App to storage suppressed? ContentShareForceDisabled bool `pulumi:"contentShareForceDisabled"` // The identifier used by App Service to perform domain ownership verification via DNS TXT record. CustomDomainVerificationId string `pulumi:"customDomainVerificationId"` // The amount of memory in gigabyte-seconds that your application is allowed to consume per day. DailyMemoryTimeQuota int `pulumi:"dailyMemoryTimeQuota"` // The default hostname of the Linux Function App. DefaultHostname string `pulumi:"defaultHostname"` // Is this backup job enabled? Enabled bool `pulumi:"enabled"` // Are the default FTP Basic Authentication publishing credentials enabled. FtpPublishBasicAuthenticationEnabled bool `pulumi:"ftpPublishBasicAuthenticationEnabled"` // The runtime version associated with the Function App. FunctionsExtensionVersion string `pulumi:"functionsExtensionVersion"` // The ID of the App Service Environment used by Function App. HostingEnvironmentId string `pulumi:"hostingEnvironmentId"` // Can the Function App only be accessed via HTTPS? HttpsOnly bool `pulumi:"httpsOnly"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` // A `identity` block as defined below. Identities []GetLinuxFunctionAppIdentity `pulumi:"identities"` // The Kind value for this Linux Function App. Kind string `pulumi:"kind"` // The Azure Region where the Linux Function App exists. Location string `pulumi:"location"` // The Site Credentials Username used for publishing. Name string `pulumi:"name"` // A list of outbound IP addresses. For example `["52.23.25.3", "52.143.43.12"]` OutboundIpAddressLists []string `pulumi:"outboundIpAddressLists"` // A comma separated list of outbound IP addresses as a string. For example `52.23.25.3,52.143.43.12`. OutboundIpAddresses string `pulumi:"outboundIpAddresses"` // A list of possible outbound IP addresses, not all of which are necessarily in use. This is a superset of `outboundIpAddressList`. For example `["52.23.25.3", "52.143.43.12"]`. PossibleOutboundIpAddressLists []string `pulumi:"possibleOutboundIpAddressLists"` // A comma separated list of possible outbound IP addresses as a string. For example `52.23.25.3,52.143.43.12,52.143.43.17`. This is a superset of `outboundIpAddresses`. PossibleOutboundIpAddresses string `pulumi:"possibleOutboundIpAddresses"` // Is Public Network Access enabled for this Linux Function App. PublicNetworkAccessEnabled bool `pulumi:"publicNetworkAccessEnabled"` ResourceGroupName string `pulumi:"resourceGroupName"` // The ID of the App Service Plan within which this Function App has been created. ServicePlanId string `pulumi:"servicePlanId"` // A `siteConfig` block as defined below. SiteConfigs []GetLinuxFunctionAppSiteConfig `pulumi:"siteConfigs"` // A `siteCredential` block as defined below. SiteCredentials []GetLinuxFunctionAppSiteCredential `pulumi:"siteCredentials"` // A `stickySettings` block as defined below. StickySettings []GetLinuxFunctionAppStickySetting `pulumi:"stickySettings"` // The access key used to access the backend storage account for the Function App. StorageAccountAccessKey string `pulumi:"storageAccountAccessKey"` // The backend storage account name used by this Function App. StorageAccountName string `pulumi:"storageAccountName"` // The Key Vault Secret ID, including version, that contains the Connection String to connect to the storage account for this Function App. StorageKeyVaultSecretId string `pulumi:"storageKeyVaultSecretId"` // Does the Function App use Managed Identity to access the storage account? StorageUsesManagedIdentity bool `pulumi:"storageUsesManagedIdentity"` // A mapping of tags which are assigned to the Linux Function App. Tags map[string]string `pulumi:"tags"` // The current usage state. Possible values are `Normal` and `Exceeded`. Usage string `pulumi:"usage"` // Whether backup and restore operations over the linked virtual network are enabled. VirtualNetworkBackupRestoreEnabled bool `pulumi:"virtualNetworkBackupRestoreEnabled"` // The Virtual Network Subnet ID used for this IP Restriction. VirtualNetworkSubnetId string `pulumi:"virtualNetworkSubnetId"` // Are the default WebDeploy Basic Authentication publishing credentials enabled. WebdeployPublishBasicAuthenticationEnabled bool `pulumi:"webdeployPublishBasicAuthenticationEnabled"` } func LookupLinuxFunctionAppOutput(ctx *pulumi.Context, args LookupLinuxFunctionAppOutputArgs, opts ...pulumi.InvokeOption) LookupLinuxFunctionAppResultOutput { return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupLinuxFunctionAppResultOutput, error) { args := v.(LookupLinuxFunctionAppArgs) options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} return ctx.InvokeOutput("azure:appservice/getLinuxFunctionApp:getLinuxFunctionApp", args, LookupLinuxFunctionAppResultOutput{}, options).(LookupLinuxFunctionAppResultOutput), nil }).(LookupLinuxFunctionAppResultOutput) } // A collection of arguments for invoking getLinuxFunctionApp. type LookupLinuxFunctionAppOutputArgs struct { // The name which should be used for this Linux Function App. Name pulumi.StringInput `pulumi:"name"` // The name of the Resource Group where the Linux Function App should exist. ResourceGroupName pulumi.StringInput `pulumi:"resourceGroupName"` } func (LookupLinuxFunctionAppOutputArgs) ElementType() reflect.Type { return reflect.TypeOf((*LookupLinuxFunctionAppArgs)(nil)).Elem() } // A collection of values returned by getLinuxFunctionApp. type LookupLinuxFunctionAppResultOutput struct{ *pulumi.OutputState } func (LookupLinuxFunctionAppResultOutput) ElementType() reflect.Type { return reflect.TypeOf((*LookupLinuxFunctionAppResult)(nil)).Elem() } func (o LookupLinuxFunctionAppResultOutput) ToLookupLinuxFunctionAppResultOutput() LookupLinuxFunctionAppResultOutput { return o } func (o LookupLinuxFunctionAppResultOutput) ToLookupLinuxFunctionAppResultOutputWithContext(ctx context.Context) LookupLinuxFunctionAppResultOutput { return o } // A map of key-value pairs for [App Settings](https://docs.microsoft.com/azure/azure-functions/functions-app-settings) and custom values. func (o LookupLinuxFunctionAppResultOutput) AppSettings() pulumi.StringMapOutput { return o.ApplyT(func(v LookupLinuxFunctionAppResult) map[string]string { return v.AppSettings }).(pulumi.StringMapOutput) } // A `authSettings` block as defined below. func (o LookupLinuxFunctionAppResultOutput) AuthSettings() GetLinuxFunctionAppAuthSettingArrayOutput { return o.ApplyT(func(v LookupLinuxFunctionAppResult) []GetLinuxFunctionAppAuthSetting { return v.AuthSettings }).(GetLinuxFunctionAppAuthSettingArrayOutput) } // A `authSettingsV2` block as defined below. func (o LookupLinuxFunctionAppResultOutput) AuthSettingsV2s() GetLinuxFunctionAppAuthSettingsV2ArrayOutput { return o.ApplyT(func(v LookupLinuxFunctionAppResult) []GetLinuxFunctionAppAuthSettingsV2 { return v.AuthSettingsV2s }).(GetLinuxFunctionAppAuthSettingsV2ArrayOutput) } // The current availability state. Possible values are `Normal`, `Limited`, and `DisasterRecoveryMode`. func (o LookupLinuxFunctionAppResultOutput) Availability() pulumi.StringOutput { return o.ApplyT(func(v LookupLinuxFunctionAppResult) string { return v.Availability }).(pulumi.StringOutput) } // A `backup` block as defined below. func (o LookupLinuxFunctionAppResultOutput) Backups() GetLinuxFunctionAppBackupArrayOutput { return o.ApplyT(func(v LookupLinuxFunctionAppResult) []GetLinuxFunctionAppBackup { return v.Backups }).(GetLinuxFunctionAppBackupArrayOutput) } // Is built in logging enabled? func (o LookupLinuxFunctionAppResultOutput) BuiltinLoggingEnabled() pulumi.BoolOutput { return o.ApplyT(func(v LookupLinuxFunctionAppResult) bool { return v.BuiltinLoggingEnabled }).(pulumi.BoolOutput) } // Are Client Certificates enabled? func (o LookupLinuxFunctionAppResultOutput) ClientCertificateEnabled() pulumi.BoolOutput { return o.ApplyT(func(v LookupLinuxFunctionAppResult) bool { return v.ClientCertificateEnabled }).(pulumi.BoolOutput) } // Paths to exclude when using client certificates, separated by ; func (o LookupLinuxFunctionAppResultOutput) ClientCertificateExclusionPaths() pulumi.StringOutput { return o.ApplyT(func(v LookupLinuxFunctionAppResult) string { return v.ClientCertificateExclusionPaths }).(pulumi.StringOutput) } // The mode of the Function App's client certificates requirement for incoming requests. func (o LookupLinuxFunctionAppResultOutput) ClientCertificateMode() pulumi.StringOutput { return o.ApplyT(func(v LookupLinuxFunctionAppResult) string { return v.ClientCertificateMode }).(pulumi.StringOutput) } // A `connectionString` blocks as defined below. func (o LookupLinuxFunctionAppResultOutput) ConnectionStrings() GetLinuxFunctionAppConnectionStringArrayOutput { return o.ApplyT(func(v LookupLinuxFunctionAppResult) []GetLinuxFunctionAppConnectionString { return v.ConnectionStrings }).(GetLinuxFunctionAppConnectionStringArrayOutput) } // Are the settings for linking the Function App to storage suppressed? func (o LookupLinuxFunctionAppResultOutput) ContentShareForceDisabled() pulumi.BoolOutput { return o.ApplyT(func(v LookupLinuxFunctionAppResult) bool { return v.ContentShareForceDisabled }).(pulumi.BoolOutput) } // The identifier used by App Service to perform domain ownership verification via DNS TXT record. func (o LookupLinuxFunctionAppResultOutput) CustomDomainVerificationId() pulumi.StringOutput { return o.ApplyT(func(v LookupLinuxFunctionAppResult) string { return v.CustomDomainVerificationId }).(pulumi.StringOutput) } // The amount of memory in gigabyte-seconds that your application is allowed to consume per day. func (o LookupLinuxFunctionAppResultOutput) DailyMemoryTimeQuota() pulumi.IntOutput { return o.ApplyT(func(v LookupLinuxFunctionAppResult) int { return v.DailyMemoryTimeQuota }).(pulumi.IntOutput) } // The default hostname of the Linux Function App. func (o LookupLinuxFunctionAppResultOutput) DefaultHostname() pulumi.StringOutput { return o.ApplyT(func(v LookupLinuxFunctionAppResult) string { return v.DefaultHostname }).(pulumi.StringOutput) } // Is this backup job enabled? func (o LookupLinuxFunctionAppResultOutput) Enabled() pulumi.BoolOutput { return o.ApplyT(func(v LookupLinuxFunctionAppResult) bool { return v.Enabled }).(pulumi.BoolOutput) } // Are the default FTP Basic Authentication publishing credentials enabled. func (o LookupLinuxFunctionAppResultOutput) FtpPublishBasicAuthenticationEnabled() pulumi.BoolOutput { return o.ApplyT(func(v LookupLinuxFunctionAppResult) bool { return v.FtpPublishBasicAuthenticationEnabled }).(pulumi.BoolOutput) } // The runtime version associated with the Function App. func (o LookupLinuxFunctionAppResultOutput) FunctionsExtensionVersion() pulumi.StringOutput { return o.ApplyT(func(v LookupLinuxFunctionAppResult) string { return v.FunctionsExtensionVersion }).(pulumi.StringOutput) } // The ID of the App Service Environment used by Function App. func (o LookupLinuxFunctionAppResultOutput) HostingEnvironmentId() pulumi.StringOutput { return o.ApplyT(func(v LookupLinuxFunctionAppResult) string { return v.HostingEnvironmentId }).(pulumi.StringOutput) } // Can the Function App only be accessed via HTTPS? func (o LookupLinuxFunctionAppResultOutput) HttpsOnly() pulumi.BoolOutput { return o.ApplyT(func(v LookupLinuxFunctionAppResult) bool { return v.HttpsOnly }).(pulumi.BoolOutput) } // The provider-assigned unique ID for this managed resource. func (o LookupLinuxFunctionAppResultOutput) Id() pulumi.StringOutput { return o.ApplyT(func(v LookupLinuxFunctionAppResult) string { return v.Id }).(pulumi.StringOutput) } // A `identity` block as defined below. func (o LookupLinuxFunctionAppResultOutput) Identities() GetLinuxFunctionAppIdentityArrayOutput { return o.ApplyT(func(v LookupLinuxFunctionAppResult) []GetLinuxFunctionAppIdentity { return v.Identities }).(GetLinuxFunctionAppIdentityArrayOutput) } // The Kind value for this Linux Function App. func (o LookupLinuxFunctionAppResultOutput) Kind() pulumi.StringOutput { return o.ApplyT(func(v LookupLinuxFunctionAppResult) string { return v.Kind }).(pulumi.StringOutput) } // The Azure Region where the Linux Function App exists. func (o LookupLinuxFunctionAppResultOutput) Location() pulumi.StringOutput { return o.ApplyT(func(v LookupLinuxFunctionAppResult) string { return v.Location }).(pulumi.StringOutput) } // The Site Credentials Username used for publishing. func (o LookupLinuxFunctionAppResultOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v LookupLinuxFunctionAppResult) string { return v.Name }).(pulumi.StringOutput) } // A list of outbound IP addresses. For example `["52.23.25.3", "52.143.43.12"]` func (o LookupLinuxFunctionAppResultOutput) OutboundIpAddressLists() pulumi.StringArrayOutput { return o.ApplyT(func(v LookupLinuxFunctionAppResult) []string { return v.OutboundIpAddressLists }).(pulumi.StringArrayOutput) } // A comma separated list of outbound IP addresses as a string. For example `52.23.25.3,52.143.43.12`. func (o LookupLinuxFunctionAppResultOutput) OutboundIpAddresses() pulumi.StringOutput { return o.ApplyT(func(v LookupLinuxFunctionAppResult) string { return v.OutboundIpAddresses }).(pulumi.StringOutput) } // A list of possible outbound IP addresses, not all of which are necessarily in use. This is a superset of `outboundIpAddressList`. For example `["52.23.25.3", "52.143.43.12"]`. func (o LookupLinuxFunctionAppResultOutput) PossibleOutboundIpAddressLists() pulumi.StringArrayOutput { return o.ApplyT(func(v LookupLinuxFunctionAppResult) []string { return v.PossibleOutboundIpAddressLists }).(pulumi.StringArrayOutput) } // A comma separated list of possible outbound IP addresses as a string. For example `52.23.25.3,52.143.43.12,52.143.43.17`. This is a superset of `outboundIpAddresses`. func (o LookupLinuxFunctionAppResultOutput) PossibleOutboundIpAddresses() pulumi.StringOutput { return o.ApplyT(func(v LookupLinuxFunctionAppResult) string { return v.PossibleOutboundIpAddresses }).(pulumi.StringOutput) } // Is Public Network Access enabled for this Linux Function App. func (o LookupLinuxFunctionAppResultOutput) PublicNetworkAccessEnabled() pulumi.BoolOutput { return o.ApplyT(func(v LookupLinuxFunctionAppResult) bool { return v.PublicNetworkAccessEnabled }).(pulumi.BoolOutput) } func (o LookupLinuxFunctionAppResultOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v LookupLinuxFunctionAppResult) string { return v.ResourceGroupName }).(pulumi.StringOutput) } // The ID of the App Service Plan within which this Function App has been created. func (o LookupLinuxFunctionAppResultOutput) ServicePlanId() pulumi.StringOutput { return o.ApplyT(func(v LookupLinuxFunctionAppResult) string { return v.ServicePlanId }).(pulumi.StringOutput) } // A `siteConfig` block as defined below. func (o LookupLinuxFunctionAppResultOutput) SiteConfigs() GetLinuxFunctionAppSiteConfigArrayOutput { return o.ApplyT(func(v LookupLinuxFunctionAppResult) []GetLinuxFunctionAppSiteConfig { return v.SiteConfigs }).(GetLinuxFunctionAppSiteConfigArrayOutput) } // A `siteCredential` block as defined below. func (o LookupLinuxFunctionAppResultOutput) SiteCredentials() GetLinuxFunctionAppSiteCredentialArrayOutput { return o.ApplyT(func(v LookupLinuxFunctionAppResult) []GetLinuxFunctionAppSiteCredential { return v.SiteCredentials }).(GetLinuxFunctionAppSiteCredentialArrayOutput) } // A `stickySettings` block as defined below. func (o LookupLinuxFunctionAppResultOutput) StickySettings() GetLinuxFunctionAppStickySettingArrayOutput { return o.ApplyT(func(v LookupLinuxFunctionAppResult) []GetLinuxFunctionAppStickySetting { return v.StickySettings }).(GetLinuxFunctionAppStickySettingArrayOutput) } // The access key used to access the backend storage account for the Function App. func (o LookupLinuxFunctionAppResultOutput) StorageAccountAccessKey() pulumi.StringOutput { return o.ApplyT(func(v LookupLinuxFunctionAppResult) string { return v.StorageAccountAccessKey }).(pulumi.StringOutput) } // The backend storage account name used by this Function App. func (o LookupLinuxFunctionAppResultOutput) StorageAccountName() pulumi.StringOutput { return o.ApplyT(func(v LookupLinuxFunctionAppResult) string { return v.StorageAccountName }).(pulumi.StringOutput) } // The Key Vault Secret ID, including version, that contains the Connection String to connect to the storage account for this Function App. func (o LookupLinuxFunctionAppResultOutput) StorageKeyVaultSecretId() pulumi.StringOutput { return o.ApplyT(func(v LookupLinuxFunctionAppResult) string { return v.StorageKeyVaultSecretId }).(pulumi.StringOutput) } // Does the Function App use Managed Identity to access the storage account? func (o LookupLinuxFunctionAppResultOutput) StorageUsesManagedIdentity() pulumi.BoolOutput { return o.ApplyT(func(v LookupLinuxFunctionAppResult) bool { return v.StorageUsesManagedIdentity }).(pulumi.BoolOutput) } // A mapping of tags which are assigned to the Linux Function App. func (o LookupLinuxFunctionAppResultOutput) Tags() pulumi.StringMapOutput { return o.ApplyT(func(v LookupLinuxFunctionAppResult) map[string]string { return v.Tags }).(pulumi.StringMapOutput) } // The current usage state. Possible values are `Normal` and `Exceeded`. func (o LookupLinuxFunctionAppResultOutput) Usage() pulumi.StringOutput { return o.ApplyT(func(v LookupLinuxFunctionAppResult) string { return v.Usage }).(pulumi.StringOutput) } // Whether backup and restore operations over the linked virtual network are enabled. func (o LookupLinuxFunctionAppResultOutput) VirtualNetworkBackupRestoreEnabled() pulumi.BoolOutput { return o.ApplyT(func(v LookupLinuxFunctionAppResult) bool { return v.VirtualNetworkBackupRestoreEnabled }).(pulumi.BoolOutput) } // The Virtual Network Subnet ID used for this IP Restriction. func (o LookupLinuxFunctionAppResultOutput) VirtualNetworkSubnetId() pulumi.StringOutput { return o.ApplyT(func(v LookupLinuxFunctionAppResult) string { return v.VirtualNetworkSubnetId }).(pulumi.StringOutput) } // Are the default WebDeploy Basic Authentication publishing credentials enabled. func (o LookupLinuxFunctionAppResultOutput) WebdeployPublishBasicAuthenticationEnabled() pulumi.BoolOutput { return o.ApplyT(func(v LookupLinuxFunctionAppResult) bool { return v.WebdeployPublishBasicAuthenticationEnabled }).(pulumi.BoolOutput) } func init() { pulumi.RegisterOutputType(LookupLinuxFunctionAppResultOutput{}) }
go
Apache-2.0
b66e1472775a89cca43f5050fef806854a7c3fa3
2026-01-07T09:44:27.619514Z
false
pulumi/pulumi-azure
https://github.com/pulumi/pulumi-azure/blob/b66e1472775a89cca43f5050fef806854a7c3fa3/sdk/go/azure/appservice/windowsWebAppSlot.go
sdk/go/azure/appservice/windowsWebAppSlot.go
// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package appservice import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a Windows Web App Slot. // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/appservice" // "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-resources"), // Location: pulumi.String("West Europe"), // }) // if err != nil { // return err // } // exampleServicePlan, err := appservice.NewServicePlan(ctx, "example", &appservice.ServicePlanArgs{ // Name: pulumi.String("example-plan"), // ResourceGroupName: example.Name, // Location: example.Location, // OsType: pulumi.String("Windows"), // SkuName: pulumi.String("P1v2"), // }) // if err != nil { // return err // } // exampleWindowsWebApp, err := appservice.NewWindowsWebApp(ctx, "example", &appservice.WindowsWebAppArgs{ // Name: pulumi.String("example-windows-web-app"), // ResourceGroupName: example.Name, // Location: exampleServicePlan.Location, // ServicePlanId: exampleServicePlan.ID(), // SiteConfig: &appservice.WindowsWebAppSiteConfigArgs{}, // }) // if err != nil { // return err // } // _, err = appservice.NewWindowsWebAppSlot(ctx, "example", &appservice.WindowsWebAppSlotArgs{ // Name: pulumi.String("example-slot"), // AppServiceId: exampleWindowsWebApp.ID(), // SiteConfig: &appservice.WindowsWebAppSlotSiteConfigArgs{}, // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## API Providers // // <!-- This section is generated, changes will be overwritten --> // This resource uses the following Azure API Providers: // // * `Microsoft.Web` - 2023-12-01 // // ## Import // // Windows Web Apps can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:appservice/windowsWebAppSlot:WindowsWebAppSlot example /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/resGroup1/providers/Microsoft.Web/sites/site1/slots/slot1 // ``` type WindowsWebAppSlot struct { pulumi.CustomResourceState // The ID of the Windows Web App this Deployment Slot will be part of. Changing this forces a new Windows Web App to be created. AppServiceId pulumi.StringOutput `pulumi:"appServiceId"` // A map of key-value pairs of App Settings. AppSettings pulumi.StringMapOutput `pulumi:"appSettings"` // An `authSettings` block as defined below. AuthSettings WindowsWebAppSlotAuthSettingsPtrOutput `pulumi:"authSettings"` // An `authSettingsV2` block as defined below. AuthSettingsV2 WindowsWebAppSlotAuthSettingsV2PtrOutput `pulumi:"authSettingsV2"` // A `backup` block as defined below. Backup WindowsWebAppSlotBackupPtrOutput `pulumi:"backup"` // Should Client Affinity be enabled? ClientAffinityEnabled pulumi.BoolPtrOutput `pulumi:"clientAffinityEnabled"` // Should Client Certificates be enabled? ClientCertificateEnabled pulumi.BoolPtrOutput `pulumi:"clientCertificateEnabled"` // Paths to exclude when using client certificates, separated by ; ClientCertificateExclusionPaths pulumi.StringPtrOutput `pulumi:"clientCertificateExclusionPaths"` // The Client Certificate mode. Possible values are `Required`, `Optional`, and `OptionalInteractiveUser`. This property has no effect when `clientCertificateEnabled` is `false`. Defaults to `Required`. ClientCertificateMode pulumi.StringPtrOutput `pulumi:"clientCertificateMode"` // One or more `connectionString` blocks as defined below. ConnectionStrings WindowsWebAppSlotConnectionStringArrayOutput `pulumi:"connectionStrings"` // The identifier used by App Service to perform domain ownership verification via DNS TXT record. CustomDomainVerificationId pulumi.StringOutput `pulumi:"customDomainVerificationId"` // The default hostname of the Windows Web App Slot. DefaultHostname pulumi.StringOutput `pulumi:"defaultHostname"` // Should the Windows Web App Slot be enabled? Defaults to `true`. Enabled pulumi.BoolPtrOutput `pulumi:"enabled"` // Should the default FTP Basic Authentication publishing profile be enabled. Defaults to `true`. FtpPublishBasicAuthenticationEnabled pulumi.BoolPtrOutput `pulumi:"ftpPublishBasicAuthenticationEnabled"` // The ID of the App Service Environment used by App Service Slot. HostingEnvironmentId pulumi.StringOutput `pulumi:"hostingEnvironmentId"` // Should the Windows Web App Slot require HTTPS connections. Defaults to `false`. HttpsOnly pulumi.BoolPtrOutput `pulumi:"httpsOnly"` // An `identity` block as defined below. Identity WindowsWebAppSlotIdentityPtrOutput `pulumi:"identity"` // The User Assigned Identity ID used for accessing KeyVault secrets. The identity must be assigned to the application in the `identity` block. [For more information see - Access vaults with a user-assigned identity](https://docs.microsoft.com/azure/app-service/app-service-key-vault-references#access-vaults-with-a-user-assigned-identity) KeyVaultReferenceIdentityId pulumi.StringOutput `pulumi:"keyVaultReferenceIdentityId"` // The Kind value for this Windows Web App Slot. Kind pulumi.StringOutput `pulumi:"kind"` // A `logs` block as defined below. Logs WindowsWebAppSlotLogsPtrOutput `pulumi:"logs"` Name pulumi.StringOutput `pulumi:"name"` // A list of outbound IP addresses - such as `["52.23.25.3", "52.143.43.12"]` OutboundIpAddressLists pulumi.StringArrayOutput `pulumi:"outboundIpAddressLists"` // A comma separated list of outbound IP addresses - such as `52.23.25.3,52.143.43.12`. OutboundIpAddresses pulumi.StringOutput `pulumi:"outboundIpAddresses"` // A list of possible outbound ip address. PossibleOutboundIpAddressLists pulumi.StringArrayOutput `pulumi:"possibleOutboundIpAddressLists"` // A comma separated list of outbound IP addresses - such as `52.23.25.3,52.143.43.12,52.143.43.17` - not all of which are necessarily in use. Superset of `outboundIpAddresses`. PossibleOutboundIpAddresses pulumi.StringOutput `pulumi:"possibleOutboundIpAddresses"` // Should public network access be enabled for the Web App. Defaults to `true`. PublicNetworkAccessEnabled pulumi.BoolPtrOutput `pulumi:"publicNetworkAccessEnabled"` // The ID of the Service Plan in which to run this slot. If not specified the same Service Plan as the Windows Web App will be used. // // > **Note:** `servicePlanId` should only be specified if it differs from the Service Plan of the associated Windows Web App. ServicePlanId pulumi.StringPtrOutput `pulumi:"servicePlanId"` // A `siteConfig` block as defined below. SiteConfig WindowsWebAppSlotSiteConfigOutput `pulumi:"siteConfig"` // A `siteCredential` block as defined below. SiteCredentials WindowsWebAppSlotSiteCredentialArrayOutput `pulumi:"siteCredentials"` // One or more `storageAccount` blocks as defined below. // // > **Note:** Using this value requires `WEBSITE_RUN_FROM_PACKAGE=1` to be set on the App in `appSettings`. Refer to the [Azure docs](https://docs.microsoft.com/en-us/azure/app-service/deploy-run-package) for further details. StorageAccounts WindowsWebAppSlotStorageAccountArrayOutput `pulumi:"storageAccounts"` // A mapping of tags which should be assigned to the Windows Web App Slot. Tags pulumi.StringMapOutput `pulumi:"tags"` // Whether backup and restore operations over the linked virtual network are enabled. Defaults to `false`. VirtualNetworkBackupRestoreEnabled pulumi.BoolPtrOutput `pulumi:"virtualNetworkBackupRestoreEnabled"` // Whether traffic for the image pull should be routed over the virtual network. // // > **Note:** `virtualNetworkImagePullEnabled` must be set to `true` when running in an App Service Environment. VirtualNetworkImagePullEnabled pulumi.BoolOutput `pulumi:"virtualNetworkImagePullEnabled"` VirtualNetworkSubnetId pulumi.StringPtrOutput `pulumi:"virtualNetworkSubnetId"` // Should the default WebDeploy Basic Authentication publishing credentials enabled. Defaults to `true`. // // > **Note:** Setting this value to true will disable the ability to use `zipDeployFile` which currently relies on the default publishing profile. WebdeployPublishBasicAuthenticationEnabled pulumi.BoolPtrOutput `pulumi:"webdeployPublishBasicAuthenticationEnabled"` // The local path and filename of the Zip packaged application to deploy to this Windows Web App. ZipDeployFile pulumi.StringOutput `pulumi:"zipDeployFile"` } // NewWindowsWebAppSlot registers a new resource with the given unique name, arguments, and options. func NewWindowsWebAppSlot(ctx *pulumi.Context, name string, args *WindowsWebAppSlotArgs, opts ...pulumi.ResourceOption) (*WindowsWebAppSlot, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.AppServiceId == nil { return nil, errors.New("invalid value for required argument 'AppServiceId'") } if args.SiteConfig == nil { return nil, errors.New("invalid value for required argument 'SiteConfig'") } secrets := pulumi.AdditionalSecretOutputs([]string{ "customDomainVerificationId", "siteCredentials", }) opts = append(opts, secrets) opts = internal.PkgResourceDefaultOpts(opts) var resource WindowsWebAppSlot err := ctx.RegisterResource("azure:appservice/windowsWebAppSlot:WindowsWebAppSlot", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetWindowsWebAppSlot gets an existing WindowsWebAppSlot 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 GetWindowsWebAppSlot(ctx *pulumi.Context, name string, id pulumi.IDInput, state *WindowsWebAppSlotState, opts ...pulumi.ResourceOption) (*WindowsWebAppSlot, error) { var resource WindowsWebAppSlot err := ctx.ReadResource("azure:appservice/windowsWebAppSlot:WindowsWebAppSlot", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering WindowsWebAppSlot resources. type windowsWebAppSlotState struct { // The ID of the Windows Web App this Deployment Slot will be part of. Changing this forces a new Windows Web App to be created. AppServiceId *string `pulumi:"appServiceId"` // A map of key-value pairs of App Settings. AppSettings map[string]string `pulumi:"appSettings"` // An `authSettings` block as defined below. AuthSettings *WindowsWebAppSlotAuthSettings `pulumi:"authSettings"` // An `authSettingsV2` block as defined below. AuthSettingsV2 *WindowsWebAppSlotAuthSettingsV2 `pulumi:"authSettingsV2"` // A `backup` block as defined below. Backup *WindowsWebAppSlotBackup `pulumi:"backup"` // Should Client Affinity be enabled? ClientAffinityEnabled *bool `pulumi:"clientAffinityEnabled"` // Should Client Certificates be enabled? ClientCertificateEnabled *bool `pulumi:"clientCertificateEnabled"` // Paths to exclude when using client certificates, separated by ; ClientCertificateExclusionPaths *string `pulumi:"clientCertificateExclusionPaths"` // The Client Certificate mode. Possible values are `Required`, `Optional`, and `OptionalInteractiveUser`. This property has no effect when `clientCertificateEnabled` is `false`. Defaults to `Required`. ClientCertificateMode *string `pulumi:"clientCertificateMode"` // One or more `connectionString` blocks as defined below. ConnectionStrings []WindowsWebAppSlotConnectionString `pulumi:"connectionStrings"` // The identifier used by App Service to perform domain ownership verification via DNS TXT record. CustomDomainVerificationId *string `pulumi:"customDomainVerificationId"` // The default hostname of the Windows Web App Slot. DefaultHostname *string `pulumi:"defaultHostname"` // Should the Windows Web App Slot be enabled? Defaults to `true`. Enabled *bool `pulumi:"enabled"` // Should the default FTP Basic Authentication publishing profile be enabled. Defaults to `true`. FtpPublishBasicAuthenticationEnabled *bool `pulumi:"ftpPublishBasicAuthenticationEnabled"` // The ID of the App Service Environment used by App Service Slot. HostingEnvironmentId *string `pulumi:"hostingEnvironmentId"` // Should the Windows Web App Slot require HTTPS connections. Defaults to `false`. HttpsOnly *bool `pulumi:"httpsOnly"` // An `identity` block as defined below. Identity *WindowsWebAppSlotIdentity `pulumi:"identity"` // The User Assigned Identity ID used for accessing KeyVault secrets. The identity must be assigned to the application in the `identity` block. [For more information see - Access vaults with a user-assigned identity](https://docs.microsoft.com/azure/app-service/app-service-key-vault-references#access-vaults-with-a-user-assigned-identity) KeyVaultReferenceIdentityId *string `pulumi:"keyVaultReferenceIdentityId"` // The Kind value for this Windows Web App Slot. Kind *string `pulumi:"kind"` // A `logs` block as defined below. Logs *WindowsWebAppSlotLogs `pulumi:"logs"` Name *string `pulumi:"name"` // A list of outbound IP addresses - such as `["52.23.25.3", "52.143.43.12"]` OutboundIpAddressLists []string `pulumi:"outboundIpAddressLists"` // A comma separated list of outbound IP addresses - such as `52.23.25.3,52.143.43.12`. OutboundIpAddresses *string `pulumi:"outboundIpAddresses"` // A list of possible outbound ip address. PossibleOutboundIpAddressLists []string `pulumi:"possibleOutboundIpAddressLists"` // A comma separated list of outbound IP addresses - such as `52.23.25.3,52.143.43.12,52.143.43.17` - not all of which are necessarily in use. Superset of `outboundIpAddresses`. PossibleOutboundIpAddresses *string `pulumi:"possibleOutboundIpAddresses"` // Should public network access be enabled for the Web App. Defaults to `true`. PublicNetworkAccessEnabled *bool `pulumi:"publicNetworkAccessEnabled"` // The ID of the Service Plan in which to run this slot. If not specified the same Service Plan as the Windows Web App will be used. // // > **Note:** `servicePlanId` should only be specified if it differs from the Service Plan of the associated Windows Web App. ServicePlanId *string `pulumi:"servicePlanId"` // A `siteConfig` block as defined below. SiteConfig *WindowsWebAppSlotSiteConfig `pulumi:"siteConfig"` // A `siteCredential` block as defined below. SiteCredentials []WindowsWebAppSlotSiteCredential `pulumi:"siteCredentials"` // One or more `storageAccount` blocks as defined below. // // > **Note:** Using this value requires `WEBSITE_RUN_FROM_PACKAGE=1` to be set on the App in `appSettings`. Refer to the [Azure docs](https://docs.microsoft.com/en-us/azure/app-service/deploy-run-package) for further details. StorageAccounts []WindowsWebAppSlotStorageAccount `pulumi:"storageAccounts"` // A mapping of tags which should be assigned to the Windows Web App Slot. Tags map[string]string `pulumi:"tags"` // Whether backup and restore operations over the linked virtual network are enabled. Defaults to `false`. VirtualNetworkBackupRestoreEnabled *bool `pulumi:"virtualNetworkBackupRestoreEnabled"` // Whether traffic for the image pull should be routed over the virtual network. // // > **Note:** `virtualNetworkImagePullEnabled` must be set to `true` when running in an App Service Environment. VirtualNetworkImagePullEnabled *bool `pulumi:"virtualNetworkImagePullEnabled"` VirtualNetworkSubnetId *string `pulumi:"virtualNetworkSubnetId"` // Should the default WebDeploy Basic Authentication publishing credentials enabled. Defaults to `true`. // // > **Note:** Setting this value to true will disable the ability to use `zipDeployFile` which currently relies on the default publishing profile. WebdeployPublishBasicAuthenticationEnabled *bool `pulumi:"webdeployPublishBasicAuthenticationEnabled"` // The local path and filename of the Zip packaged application to deploy to this Windows Web App. ZipDeployFile *string `pulumi:"zipDeployFile"` } type WindowsWebAppSlotState struct { // The ID of the Windows Web App this Deployment Slot will be part of. Changing this forces a new Windows Web App to be created. AppServiceId pulumi.StringPtrInput // A map of key-value pairs of App Settings. AppSettings pulumi.StringMapInput // An `authSettings` block as defined below. AuthSettings WindowsWebAppSlotAuthSettingsPtrInput // An `authSettingsV2` block as defined below. AuthSettingsV2 WindowsWebAppSlotAuthSettingsV2PtrInput // A `backup` block as defined below. Backup WindowsWebAppSlotBackupPtrInput // Should Client Affinity be enabled? ClientAffinityEnabled pulumi.BoolPtrInput // Should Client Certificates be enabled? ClientCertificateEnabled pulumi.BoolPtrInput // Paths to exclude when using client certificates, separated by ; ClientCertificateExclusionPaths pulumi.StringPtrInput // The Client Certificate mode. Possible values are `Required`, `Optional`, and `OptionalInteractiveUser`. This property has no effect when `clientCertificateEnabled` is `false`. Defaults to `Required`. ClientCertificateMode pulumi.StringPtrInput // One or more `connectionString` blocks as defined below. ConnectionStrings WindowsWebAppSlotConnectionStringArrayInput // The identifier used by App Service to perform domain ownership verification via DNS TXT record. CustomDomainVerificationId pulumi.StringPtrInput // The default hostname of the Windows Web App Slot. DefaultHostname pulumi.StringPtrInput // Should the Windows Web App Slot be enabled? Defaults to `true`. Enabled pulumi.BoolPtrInput // Should the default FTP Basic Authentication publishing profile be enabled. Defaults to `true`. FtpPublishBasicAuthenticationEnabled pulumi.BoolPtrInput // The ID of the App Service Environment used by App Service Slot. HostingEnvironmentId pulumi.StringPtrInput // Should the Windows Web App Slot require HTTPS connections. Defaults to `false`. HttpsOnly pulumi.BoolPtrInput // An `identity` block as defined below. Identity WindowsWebAppSlotIdentityPtrInput // The User Assigned Identity ID used for accessing KeyVault secrets. The identity must be assigned to the application in the `identity` block. [For more information see - Access vaults with a user-assigned identity](https://docs.microsoft.com/azure/app-service/app-service-key-vault-references#access-vaults-with-a-user-assigned-identity) KeyVaultReferenceIdentityId pulumi.StringPtrInput // The Kind value for this Windows Web App Slot. Kind pulumi.StringPtrInput // A `logs` block as defined below. Logs WindowsWebAppSlotLogsPtrInput Name pulumi.StringPtrInput // A list of outbound IP addresses - such as `["52.23.25.3", "52.143.43.12"]` OutboundIpAddressLists pulumi.StringArrayInput // A comma separated list of outbound IP addresses - such as `52.23.25.3,52.143.43.12`. OutboundIpAddresses pulumi.StringPtrInput // A list of possible outbound ip address. PossibleOutboundIpAddressLists pulumi.StringArrayInput // A comma separated list of outbound IP addresses - such as `52.23.25.3,52.143.43.12,52.143.43.17` - not all of which are necessarily in use. Superset of `outboundIpAddresses`. PossibleOutboundIpAddresses pulumi.StringPtrInput // Should public network access be enabled for the Web App. Defaults to `true`. PublicNetworkAccessEnabled pulumi.BoolPtrInput // The ID of the Service Plan in which to run this slot. If not specified the same Service Plan as the Windows Web App will be used. // // > **Note:** `servicePlanId` should only be specified if it differs from the Service Plan of the associated Windows Web App. ServicePlanId pulumi.StringPtrInput // A `siteConfig` block as defined below. SiteConfig WindowsWebAppSlotSiteConfigPtrInput // A `siteCredential` block as defined below. SiteCredentials WindowsWebAppSlotSiteCredentialArrayInput // One or more `storageAccount` blocks as defined below. // // > **Note:** Using this value requires `WEBSITE_RUN_FROM_PACKAGE=1` to be set on the App in `appSettings`. Refer to the [Azure docs](https://docs.microsoft.com/en-us/azure/app-service/deploy-run-package) for further details. StorageAccounts WindowsWebAppSlotStorageAccountArrayInput // A mapping of tags which should be assigned to the Windows Web App Slot. Tags pulumi.StringMapInput // Whether backup and restore operations over the linked virtual network are enabled. Defaults to `false`. VirtualNetworkBackupRestoreEnabled pulumi.BoolPtrInput // Whether traffic for the image pull should be routed over the virtual network. // // > **Note:** `virtualNetworkImagePullEnabled` must be set to `true` when running in an App Service Environment. VirtualNetworkImagePullEnabled pulumi.BoolPtrInput VirtualNetworkSubnetId pulumi.StringPtrInput // Should the default WebDeploy Basic Authentication publishing credentials enabled. Defaults to `true`. // // > **Note:** Setting this value to true will disable the ability to use `zipDeployFile` which currently relies on the default publishing profile. WebdeployPublishBasicAuthenticationEnabled pulumi.BoolPtrInput // The local path and filename of the Zip packaged application to deploy to this Windows Web App. ZipDeployFile pulumi.StringPtrInput } func (WindowsWebAppSlotState) ElementType() reflect.Type { return reflect.TypeOf((*windowsWebAppSlotState)(nil)).Elem() } type windowsWebAppSlotArgs struct { // The ID of the Windows Web App this Deployment Slot will be part of. Changing this forces a new Windows Web App to be created. AppServiceId string `pulumi:"appServiceId"` // A map of key-value pairs of App Settings. AppSettings map[string]string `pulumi:"appSettings"` // An `authSettings` block as defined below. AuthSettings *WindowsWebAppSlotAuthSettings `pulumi:"authSettings"` // An `authSettingsV2` block as defined below. AuthSettingsV2 *WindowsWebAppSlotAuthSettingsV2 `pulumi:"authSettingsV2"` // A `backup` block as defined below. Backup *WindowsWebAppSlotBackup `pulumi:"backup"` // Should Client Affinity be enabled? ClientAffinityEnabled *bool `pulumi:"clientAffinityEnabled"` // Should Client Certificates be enabled? ClientCertificateEnabled *bool `pulumi:"clientCertificateEnabled"` // Paths to exclude when using client certificates, separated by ; ClientCertificateExclusionPaths *string `pulumi:"clientCertificateExclusionPaths"` // The Client Certificate mode. Possible values are `Required`, `Optional`, and `OptionalInteractiveUser`. This property has no effect when `clientCertificateEnabled` is `false`. Defaults to `Required`. ClientCertificateMode *string `pulumi:"clientCertificateMode"` // One or more `connectionString` blocks as defined below. ConnectionStrings []WindowsWebAppSlotConnectionString `pulumi:"connectionStrings"` // Should the Windows Web App Slot be enabled? Defaults to `true`. Enabled *bool `pulumi:"enabled"` // Should the default FTP Basic Authentication publishing profile be enabled. Defaults to `true`. FtpPublishBasicAuthenticationEnabled *bool `pulumi:"ftpPublishBasicAuthenticationEnabled"` // Should the Windows Web App Slot require HTTPS connections. Defaults to `false`. HttpsOnly *bool `pulumi:"httpsOnly"` // An `identity` block as defined below. Identity *WindowsWebAppSlotIdentity `pulumi:"identity"` // The User Assigned Identity ID used for accessing KeyVault secrets. The identity must be assigned to the application in the `identity` block. [For more information see - Access vaults with a user-assigned identity](https://docs.microsoft.com/azure/app-service/app-service-key-vault-references#access-vaults-with-a-user-assigned-identity) KeyVaultReferenceIdentityId *string `pulumi:"keyVaultReferenceIdentityId"` // A `logs` block as defined below. Logs *WindowsWebAppSlotLogs `pulumi:"logs"` Name *string `pulumi:"name"` // Should public network access be enabled for the Web App. Defaults to `true`. PublicNetworkAccessEnabled *bool `pulumi:"publicNetworkAccessEnabled"` // The ID of the Service Plan in which to run this slot. If not specified the same Service Plan as the Windows Web App will be used. // // > **Note:** `servicePlanId` should only be specified if it differs from the Service Plan of the associated Windows Web App. ServicePlanId *string `pulumi:"servicePlanId"` // A `siteConfig` block as defined below. SiteConfig WindowsWebAppSlotSiteConfig `pulumi:"siteConfig"` // One or more `storageAccount` blocks as defined below. // // > **Note:** Using this value requires `WEBSITE_RUN_FROM_PACKAGE=1` to be set on the App in `appSettings`. Refer to the [Azure docs](https://docs.microsoft.com/en-us/azure/app-service/deploy-run-package) for further details. StorageAccounts []WindowsWebAppSlotStorageAccount `pulumi:"storageAccounts"` // A mapping of tags which should be assigned to the Windows Web App Slot. Tags map[string]string `pulumi:"tags"` // Whether backup and restore operations over the linked virtual network are enabled. Defaults to `false`. VirtualNetworkBackupRestoreEnabled *bool `pulumi:"virtualNetworkBackupRestoreEnabled"` // Whether traffic for the image pull should be routed over the virtual network. // // > **Note:** `virtualNetworkImagePullEnabled` must be set to `true` when running in an App Service Environment. VirtualNetworkImagePullEnabled *bool `pulumi:"virtualNetworkImagePullEnabled"` VirtualNetworkSubnetId *string `pulumi:"virtualNetworkSubnetId"` // Should the default WebDeploy Basic Authentication publishing credentials enabled. Defaults to `true`. // // > **Note:** Setting this value to true will disable the ability to use `zipDeployFile` which currently relies on the default publishing profile. WebdeployPublishBasicAuthenticationEnabled *bool `pulumi:"webdeployPublishBasicAuthenticationEnabled"` // The local path and filename of the Zip packaged application to deploy to this Windows Web App. ZipDeployFile *string `pulumi:"zipDeployFile"` } // The set of arguments for constructing a WindowsWebAppSlot resource. type WindowsWebAppSlotArgs struct { // The ID of the Windows Web App this Deployment Slot will be part of. Changing this forces a new Windows Web App to be created. AppServiceId pulumi.StringInput // A map of key-value pairs of App Settings. AppSettings pulumi.StringMapInput // An `authSettings` block as defined below. AuthSettings WindowsWebAppSlotAuthSettingsPtrInput // An `authSettingsV2` block as defined below. AuthSettingsV2 WindowsWebAppSlotAuthSettingsV2PtrInput // A `backup` block as defined below. Backup WindowsWebAppSlotBackupPtrInput // Should Client Affinity be enabled? ClientAffinityEnabled pulumi.BoolPtrInput // Should Client Certificates be enabled? ClientCertificateEnabled pulumi.BoolPtrInput // Paths to exclude when using client certificates, separated by ; ClientCertificateExclusionPaths pulumi.StringPtrInput // The Client Certificate mode. Possible values are `Required`, `Optional`, and `OptionalInteractiveUser`. This property has no effect when `clientCertificateEnabled` is `false`. Defaults to `Required`. ClientCertificateMode pulumi.StringPtrInput // One or more `connectionString` blocks as defined below. ConnectionStrings WindowsWebAppSlotConnectionStringArrayInput // Should the Windows Web App Slot be enabled? Defaults to `true`. Enabled pulumi.BoolPtrInput // Should the default FTP Basic Authentication publishing profile be enabled. Defaults to `true`. FtpPublishBasicAuthenticationEnabled pulumi.BoolPtrInput // Should the Windows Web App Slot require HTTPS connections. Defaults to `false`. HttpsOnly pulumi.BoolPtrInput // An `identity` block as defined below. Identity WindowsWebAppSlotIdentityPtrInput // The User Assigned Identity ID used for accessing KeyVault secrets. The identity must be assigned to the application in the `identity` block. [For more information see - Access vaults with a user-assigned identity](https://docs.microsoft.com/azure/app-service/app-service-key-vault-references#access-vaults-with-a-user-assigned-identity) KeyVaultReferenceIdentityId pulumi.StringPtrInput // A `logs` block as defined below. Logs WindowsWebAppSlotLogsPtrInput Name pulumi.StringPtrInput // Should public network access be enabled for the Web App. Defaults to `true`. PublicNetworkAccessEnabled pulumi.BoolPtrInput // The ID of the Service Plan in which to run this slot. If not specified the same Service Plan as the Windows Web App will be used. // // > **Note:** `servicePlanId` should only be specified if it differs from the Service Plan of the associated Windows Web App. ServicePlanId pulumi.StringPtrInput // A `siteConfig` block as defined below. SiteConfig WindowsWebAppSlotSiteConfigInput // One or more `storageAccount` blocks as defined below. // // > **Note:** Using this value requires `WEBSITE_RUN_FROM_PACKAGE=1` to be set on the App in `appSettings`. Refer to the [Azure docs](https://docs.microsoft.com/en-us/azure/app-service/deploy-run-package) for further details. StorageAccounts WindowsWebAppSlotStorageAccountArrayInput // A mapping of tags which should be assigned to the Windows Web App Slot. Tags pulumi.StringMapInput // Whether backup and restore operations over the linked virtual network are enabled. Defaults to `false`. VirtualNetworkBackupRestoreEnabled pulumi.BoolPtrInput // Whether traffic for the image pull should be routed over the virtual network. // // > **Note:** `virtualNetworkImagePullEnabled` must be set to `true` when running in an App Service Environment. VirtualNetworkImagePullEnabled pulumi.BoolPtrInput VirtualNetworkSubnetId pulumi.StringPtrInput // Should the default WebDeploy Basic Authentication publishing credentials enabled. Defaults to `true`. // // > **Note:** Setting this value to true will disable the ability to use `zipDeployFile` which currently relies on the default publishing profile. WebdeployPublishBasicAuthenticationEnabled pulumi.BoolPtrInput // The local path and filename of the Zip packaged application to deploy to this Windows Web App. ZipDeployFile pulumi.StringPtrInput } func (WindowsWebAppSlotArgs) ElementType() reflect.Type { return reflect.TypeOf((*windowsWebAppSlotArgs)(nil)).Elem() } type WindowsWebAppSlotInput interface { pulumi.Input ToWindowsWebAppSlotOutput() WindowsWebAppSlotOutput ToWindowsWebAppSlotOutputWithContext(ctx context.Context) WindowsWebAppSlotOutput } func (*WindowsWebAppSlot) ElementType() reflect.Type { return reflect.TypeOf((**WindowsWebAppSlot)(nil)).Elem() } func (i *WindowsWebAppSlot) ToWindowsWebAppSlotOutput() WindowsWebAppSlotOutput { return i.ToWindowsWebAppSlotOutputWithContext(context.Background()) } func (i *WindowsWebAppSlot) ToWindowsWebAppSlotOutputWithContext(ctx context.Context) WindowsWebAppSlotOutput { return pulumi.ToOutputWithContext(ctx, i).(WindowsWebAppSlotOutput) } // WindowsWebAppSlotArrayInput is an input type that accepts WindowsWebAppSlotArray and WindowsWebAppSlotArrayOutput values. // You can construct a concrete instance of `WindowsWebAppSlotArrayInput` via: // // WindowsWebAppSlotArray{ WindowsWebAppSlotArgs{...} } type WindowsWebAppSlotArrayInput interface { pulumi.Input ToWindowsWebAppSlotArrayOutput() WindowsWebAppSlotArrayOutput ToWindowsWebAppSlotArrayOutputWithContext(context.Context) WindowsWebAppSlotArrayOutput } type WindowsWebAppSlotArray []WindowsWebAppSlotInput func (WindowsWebAppSlotArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*WindowsWebAppSlot)(nil)).Elem() } func (i WindowsWebAppSlotArray) ToWindowsWebAppSlotArrayOutput() WindowsWebAppSlotArrayOutput { return i.ToWindowsWebAppSlotArrayOutputWithContext(context.Background()) } func (i WindowsWebAppSlotArray) ToWindowsWebAppSlotArrayOutputWithContext(ctx context.Context) WindowsWebAppSlotArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(WindowsWebAppSlotArrayOutput) } // WindowsWebAppSlotMapInput is an input type that accepts WindowsWebAppSlotMap and WindowsWebAppSlotMapOutput values. // You can construct a concrete instance of `WindowsWebAppSlotMapInput` via: // // WindowsWebAppSlotMap{ "key": WindowsWebAppSlotArgs{...} } type WindowsWebAppSlotMapInput interface { pulumi.Input ToWindowsWebAppSlotMapOutput() WindowsWebAppSlotMapOutput
go
Apache-2.0
b66e1472775a89cca43f5050fef806854a7c3fa3
2026-01-07T09:44:27.619514Z
true
pulumi/pulumi-azure
https://github.com/pulumi/pulumi-azure/blob/b66e1472775a89cca43f5050fef806854a7c3fa3/sdk/go/azure/appservice/pulumiTypes1.go
sdk/go/azure/appservice/pulumiTypes1.go
// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package appservice import ( "context" "reflect" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) var _ = internal.GetEnvOrDefault type GetLinuxWebAppAuthSetting struct { // A `activeDirectory` block as defined above. ActiveDirectories []GetLinuxWebAppAuthSettingActiveDirectory `pulumi:"activeDirectories"` // A `additionalLoginParameters` block as defined above. AdditionalLoginParameters map[string]string `pulumi:"additionalLoginParameters"` // External URLs that can be redirected to as part of logging in or logging out of the app. AllowedExternalRedirectUrls []string `pulumi:"allowedExternalRedirectUrls"` // The Default Authentication Provider used when more than one Authentication Provider is configured and the `unauthenticatedAction` is set to `RedirectToLoginPage`. DefaultProvider string `pulumi:"defaultProvider"` // Is the Backup enabled? Enabled bool `pulumi:"enabled"` // A `facebook` block as defined below. Facebooks []GetLinuxWebAppAuthSettingFacebook `pulumi:"facebooks"` // A `github` block as defined below. Githubs []GetLinuxWebAppAuthSettingGithub `pulumi:"githubs"` // A `google` block as defined below. Googles []GetLinuxWebAppAuthSettingGoogle `pulumi:"googles"` // The OpenID Connect Issuer URI that represents the entity which issues access tokens for this Linux Web App. Issuer string `pulumi:"issuer"` // A `microsoft` block as defined below. Microsofts []GetLinuxWebAppAuthSettingMicrosoft `pulumi:"microsofts"` // The Runtime Version of the Authentication and Authorisation feature of this App. RuntimeVersion string `pulumi:"runtimeVersion"` // The number of hours after session token expiration that a session token can be used to call the token refresh API. TokenRefreshExtensionHours float64 `pulumi:"tokenRefreshExtensionHours"` // Is the Token Store configuration Enabled. TokenStoreEnabled bool `pulumi:"tokenStoreEnabled"` // A `twitter` block as defined below. Twitters []GetLinuxWebAppAuthSettingTwitter `pulumi:"twitters"` // The action to take when an unauthenticated client attempts to access the app. UnauthenticatedClientAction string `pulumi:"unauthenticatedClientAction"` } // GetLinuxWebAppAuthSettingInput is an input type that accepts GetLinuxWebAppAuthSettingArgs and GetLinuxWebAppAuthSettingOutput values. // You can construct a concrete instance of `GetLinuxWebAppAuthSettingInput` via: // // GetLinuxWebAppAuthSettingArgs{...} type GetLinuxWebAppAuthSettingInput interface { pulumi.Input ToGetLinuxWebAppAuthSettingOutput() GetLinuxWebAppAuthSettingOutput ToGetLinuxWebAppAuthSettingOutputWithContext(context.Context) GetLinuxWebAppAuthSettingOutput } type GetLinuxWebAppAuthSettingArgs struct { // A `activeDirectory` block as defined above. ActiveDirectories GetLinuxWebAppAuthSettingActiveDirectoryArrayInput `pulumi:"activeDirectories"` // A `additionalLoginParameters` block as defined above. AdditionalLoginParameters pulumi.StringMapInput `pulumi:"additionalLoginParameters"` // External URLs that can be redirected to as part of logging in or logging out of the app. AllowedExternalRedirectUrls pulumi.StringArrayInput `pulumi:"allowedExternalRedirectUrls"` // The Default Authentication Provider used when more than one Authentication Provider is configured and the `unauthenticatedAction` is set to `RedirectToLoginPage`. DefaultProvider pulumi.StringInput `pulumi:"defaultProvider"` // Is the Backup enabled? Enabled pulumi.BoolInput `pulumi:"enabled"` // A `facebook` block as defined below. Facebooks GetLinuxWebAppAuthSettingFacebookArrayInput `pulumi:"facebooks"` // A `github` block as defined below. Githubs GetLinuxWebAppAuthSettingGithubArrayInput `pulumi:"githubs"` // A `google` block as defined below. Googles GetLinuxWebAppAuthSettingGoogleArrayInput `pulumi:"googles"` // The OpenID Connect Issuer URI that represents the entity which issues access tokens for this Linux Web App. Issuer pulumi.StringInput `pulumi:"issuer"` // A `microsoft` block as defined below. Microsofts GetLinuxWebAppAuthSettingMicrosoftArrayInput `pulumi:"microsofts"` // The Runtime Version of the Authentication and Authorisation feature of this App. RuntimeVersion pulumi.StringInput `pulumi:"runtimeVersion"` // The number of hours after session token expiration that a session token can be used to call the token refresh API. TokenRefreshExtensionHours pulumi.Float64Input `pulumi:"tokenRefreshExtensionHours"` // Is the Token Store configuration Enabled. TokenStoreEnabled pulumi.BoolInput `pulumi:"tokenStoreEnabled"` // A `twitter` block as defined below. Twitters GetLinuxWebAppAuthSettingTwitterArrayInput `pulumi:"twitters"` // The action to take when an unauthenticated client attempts to access the app. UnauthenticatedClientAction pulumi.StringInput `pulumi:"unauthenticatedClientAction"` } func (GetLinuxWebAppAuthSettingArgs) ElementType() reflect.Type { return reflect.TypeOf((*GetLinuxWebAppAuthSetting)(nil)).Elem() } func (i GetLinuxWebAppAuthSettingArgs) ToGetLinuxWebAppAuthSettingOutput() GetLinuxWebAppAuthSettingOutput { return i.ToGetLinuxWebAppAuthSettingOutputWithContext(context.Background()) } func (i GetLinuxWebAppAuthSettingArgs) ToGetLinuxWebAppAuthSettingOutputWithContext(ctx context.Context) GetLinuxWebAppAuthSettingOutput { return pulumi.ToOutputWithContext(ctx, i).(GetLinuxWebAppAuthSettingOutput) } // GetLinuxWebAppAuthSettingArrayInput is an input type that accepts GetLinuxWebAppAuthSettingArray and GetLinuxWebAppAuthSettingArrayOutput values. // You can construct a concrete instance of `GetLinuxWebAppAuthSettingArrayInput` via: // // GetLinuxWebAppAuthSettingArray{ GetLinuxWebAppAuthSettingArgs{...} } type GetLinuxWebAppAuthSettingArrayInput interface { pulumi.Input ToGetLinuxWebAppAuthSettingArrayOutput() GetLinuxWebAppAuthSettingArrayOutput ToGetLinuxWebAppAuthSettingArrayOutputWithContext(context.Context) GetLinuxWebAppAuthSettingArrayOutput } type GetLinuxWebAppAuthSettingArray []GetLinuxWebAppAuthSettingInput func (GetLinuxWebAppAuthSettingArray) ElementType() reflect.Type { return reflect.TypeOf((*[]GetLinuxWebAppAuthSetting)(nil)).Elem() } func (i GetLinuxWebAppAuthSettingArray) ToGetLinuxWebAppAuthSettingArrayOutput() GetLinuxWebAppAuthSettingArrayOutput { return i.ToGetLinuxWebAppAuthSettingArrayOutputWithContext(context.Background()) } func (i GetLinuxWebAppAuthSettingArray) ToGetLinuxWebAppAuthSettingArrayOutputWithContext(ctx context.Context) GetLinuxWebAppAuthSettingArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(GetLinuxWebAppAuthSettingArrayOutput) } type GetLinuxWebAppAuthSettingOutput struct{ *pulumi.OutputState } func (GetLinuxWebAppAuthSettingOutput) ElementType() reflect.Type { return reflect.TypeOf((*GetLinuxWebAppAuthSetting)(nil)).Elem() } func (o GetLinuxWebAppAuthSettingOutput) ToGetLinuxWebAppAuthSettingOutput() GetLinuxWebAppAuthSettingOutput { return o } func (o GetLinuxWebAppAuthSettingOutput) ToGetLinuxWebAppAuthSettingOutputWithContext(ctx context.Context) GetLinuxWebAppAuthSettingOutput { return o } // A `activeDirectory` block as defined above. func (o GetLinuxWebAppAuthSettingOutput) ActiveDirectories() GetLinuxWebAppAuthSettingActiveDirectoryArrayOutput { return o.ApplyT(func(v GetLinuxWebAppAuthSetting) []GetLinuxWebAppAuthSettingActiveDirectory { return v.ActiveDirectories }).(GetLinuxWebAppAuthSettingActiveDirectoryArrayOutput) } // A `additionalLoginParameters` block as defined above. func (o GetLinuxWebAppAuthSettingOutput) AdditionalLoginParameters() pulumi.StringMapOutput { return o.ApplyT(func(v GetLinuxWebAppAuthSetting) map[string]string { return v.AdditionalLoginParameters }).(pulumi.StringMapOutput) } // External URLs that can be redirected to as part of logging in or logging out of the app. func (o GetLinuxWebAppAuthSettingOutput) AllowedExternalRedirectUrls() pulumi.StringArrayOutput { return o.ApplyT(func(v GetLinuxWebAppAuthSetting) []string { return v.AllowedExternalRedirectUrls }).(pulumi.StringArrayOutput) } // The Default Authentication Provider used when more than one Authentication Provider is configured and the `unauthenticatedAction` is set to `RedirectToLoginPage`. func (o GetLinuxWebAppAuthSettingOutput) DefaultProvider() pulumi.StringOutput { return o.ApplyT(func(v GetLinuxWebAppAuthSetting) string { return v.DefaultProvider }).(pulumi.StringOutput) } // Is the Backup enabled? func (o GetLinuxWebAppAuthSettingOutput) Enabled() pulumi.BoolOutput { return o.ApplyT(func(v GetLinuxWebAppAuthSetting) bool { return v.Enabled }).(pulumi.BoolOutput) } // A `facebook` block as defined below. func (o GetLinuxWebAppAuthSettingOutput) Facebooks() GetLinuxWebAppAuthSettingFacebookArrayOutput { return o.ApplyT(func(v GetLinuxWebAppAuthSetting) []GetLinuxWebAppAuthSettingFacebook { return v.Facebooks }).(GetLinuxWebAppAuthSettingFacebookArrayOutput) } // A `github` block as defined below. func (o GetLinuxWebAppAuthSettingOutput) Githubs() GetLinuxWebAppAuthSettingGithubArrayOutput { return o.ApplyT(func(v GetLinuxWebAppAuthSetting) []GetLinuxWebAppAuthSettingGithub { return v.Githubs }).(GetLinuxWebAppAuthSettingGithubArrayOutput) } // A `google` block as defined below. func (o GetLinuxWebAppAuthSettingOutput) Googles() GetLinuxWebAppAuthSettingGoogleArrayOutput { return o.ApplyT(func(v GetLinuxWebAppAuthSetting) []GetLinuxWebAppAuthSettingGoogle { return v.Googles }).(GetLinuxWebAppAuthSettingGoogleArrayOutput) } // The OpenID Connect Issuer URI that represents the entity which issues access tokens for this Linux Web App. func (o GetLinuxWebAppAuthSettingOutput) Issuer() pulumi.StringOutput { return o.ApplyT(func(v GetLinuxWebAppAuthSetting) string { return v.Issuer }).(pulumi.StringOutput) } // A `microsoft` block as defined below. func (o GetLinuxWebAppAuthSettingOutput) Microsofts() GetLinuxWebAppAuthSettingMicrosoftArrayOutput { return o.ApplyT(func(v GetLinuxWebAppAuthSetting) []GetLinuxWebAppAuthSettingMicrosoft { return v.Microsofts }).(GetLinuxWebAppAuthSettingMicrosoftArrayOutput) } // The Runtime Version of the Authentication and Authorisation feature of this App. func (o GetLinuxWebAppAuthSettingOutput) RuntimeVersion() pulumi.StringOutput { return o.ApplyT(func(v GetLinuxWebAppAuthSetting) string { return v.RuntimeVersion }).(pulumi.StringOutput) } // The number of hours after session token expiration that a session token can be used to call the token refresh API. func (o GetLinuxWebAppAuthSettingOutput) TokenRefreshExtensionHours() pulumi.Float64Output { return o.ApplyT(func(v GetLinuxWebAppAuthSetting) float64 { return v.TokenRefreshExtensionHours }).(pulumi.Float64Output) } // Is the Token Store configuration Enabled. func (o GetLinuxWebAppAuthSettingOutput) TokenStoreEnabled() pulumi.BoolOutput { return o.ApplyT(func(v GetLinuxWebAppAuthSetting) bool { return v.TokenStoreEnabled }).(pulumi.BoolOutput) } // A `twitter` block as defined below. func (o GetLinuxWebAppAuthSettingOutput) Twitters() GetLinuxWebAppAuthSettingTwitterArrayOutput { return o.ApplyT(func(v GetLinuxWebAppAuthSetting) []GetLinuxWebAppAuthSettingTwitter { return v.Twitters }).(GetLinuxWebAppAuthSettingTwitterArrayOutput) } // The action to take when an unauthenticated client attempts to access the app. func (o GetLinuxWebAppAuthSettingOutput) UnauthenticatedClientAction() pulumi.StringOutput { return o.ApplyT(func(v GetLinuxWebAppAuthSetting) string { return v.UnauthenticatedClientAction }).(pulumi.StringOutput) } type GetLinuxWebAppAuthSettingArrayOutput struct{ *pulumi.OutputState } func (GetLinuxWebAppAuthSettingArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]GetLinuxWebAppAuthSetting)(nil)).Elem() } func (o GetLinuxWebAppAuthSettingArrayOutput) ToGetLinuxWebAppAuthSettingArrayOutput() GetLinuxWebAppAuthSettingArrayOutput { return o } func (o GetLinuxWebAppAuthSettingArrayOutput) ToGetLinuxWebAppAuthSettingArrayOutputWithContext(ctx context.Context) GetLinuxWebAppAuthSettingArrayOutput { return o } func (o GetLinuxWebAppAuthSettingArrayOutput) Index(i pulumi.IntInput) GetLinuxWebAppAuthSettingOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) GetLinuxWebAppAuthSetting { return vs[0].([]GetLinuxWebAppAuthSetting)[vs[1].(int)] }).(GetLinuxWebAppAuthSettingOutput) } type GetLinuxWebAppAuthSettingActiveDirectory struct { // The list of Allowed Audiences that are be requested as part of Microsoft Sign-In authentication. AllowedAudiences []string `pulumi:"allowedAudiences"` // The OAuth 2.0 client ID used by the app for authentication. ClientId string `pulumi:"clientId"` // The OAuth 2.0 client secret used by the app for authentication. ClientSecret string `pulumi:"clientSecret"` // The app setting name containing the OAuth 2.0 client secret used by the app for authentication. ClientSecretSettingName string `pulumi:"clientSecretSettingName"` } // GetLinuxWebAppAuthSettingActiveDirectoryInput is an input type that accepts GetLinuxWebAppAuthSettingActiveDirectoryArgs and GetLinuxWebAppAuthSettingActiveDirectoryOutput values. // You can construct a concrete instance of `GetLinuxWebAppAuthSettingActiveDirectoryInput` via: // // GetLinuxWebAppAuthSettingActiveDirectoryArgs{...} type GetLinuxWebAppAuthSettingActiveDirectoryInput interface { pulumi.Input ToGetLinuxWebAppAuthSettingActiveDirectoryOutput() GetLinuxWebAppAuthSettingActiveDirectoryOutput ToGetLinuxWebAppAuthSettingActiveDirectoryOutputWithContext(context.Context) GetLinuxWebAppAuthSettingActiveDirectoryOutput } type GetLinuxWebAppAuthSettingActiveDirectoryArgs struct { // The list of Allowed Audiences that are be requested as part of Microsoft Sign-In authentication. AllowedAudiences pulumi.StringArrayInput `pulumi:"allowedAudiences"` // The OAuth 2.0 client ID used by the app for authentication. ClientId pulumi.StringInput `pulumi:"clientId"` // The OAuth 2.0 client secret used by the app for authentication. ClientSecret pulumi.StringInput `pulumi:"clientSecret"` // The app setting name containing the OAuth 2.0 client secret used by the app for authentication. ClientSecretSettingName pulumi.StringInput `pulumi:"clientSecretSettingName"` } func (GetLinuxWebAppAuthSettingActiveDirectoryArgs) ElementType() reflect.Type { return reflect.TypeOf((*GetLinuxWebAppAuthSettingActiveDirectory)(nil)).Elem() } func (i GetLinuxWebAppAuthSettingActiveDirectoryArgs) ToGetLinuxWebAppAuthSettingActiveDirectoryOutput() GetLinuxWebAppAuthSettingActiveDirectoryOutput { return i.ToGetLinuxWebAppAuthSettingActiveDirectoryOutputWithContext(context.Background()) } func (i GetLinuxWebAppAuthSettingActiveDirectoryArgs) ToGetLinuxWebAppAuthSettingActiveDirectoryOutputWithContext(ctx context.Context) GetLinuxWebAppAuthSettingActiveDirectoryOutput { return pulumi.ToOutputWithContext(ctx, i).(GetLinuxWebAppAuthSettingActiveDirectoryOutput) } // GetLinuxWebAppAuthSettingActiveDirectoryArrayInput is an input type that accepts GetLinuxWebAppAuthSettingActiveDirectoryArray and GetLinuxWebAppAuthSettingActiveDirectoryArrayOutput values. // You can construct a concrete instance of `GetLinuxWebAppAuthSettingActiveDirectoryArrayInput` via: // // GetLinuxWebAppAuthSettingActiveDirectoryArray{ GetLinuxWebAppAuthSettingActiveDirectoryArgs{...} } type GetLinuxWebAppAuthSettingActiveDirectoryArrayInput interface { pulumi.Input ToGetLinuxWebAppAuthSettingActiveDirectoryArrayOutput() GetLinuxWebAppAuthSettingActiveDirectoryArrayOutput ToGetLinuxWebAppAuthSettingActiveDirectoryArrayOutputWithContext(context.Context) GetLinuxWebAppAuthSettingActiveDirectoryArrayOutput } type GetLinuxWebAppAuthSettingActiveDirectoryArray []GetLinuxWebAppAuthSettingActiveDirectoryInput func (GetLinuxWebAppAuthSettingActiveDirectoryArray) ElementType() reflect.Type { return reflect.TypeOf((*[]GetLinuxWebAppAuthSettingActiveDirectory)(nil)).Elem() } func (i GetLinuxWebAppAuthSettingActiveDirectoryArray) ToGetLinuxWebAppAuthSettingActiveDirectoryArrayOutput() GetLinuxWebAppAuthSettingActiveDirectoryArrayOutput { return i.ToGetLinuxWebAppAuthSettingActiveDirectoryArrayOutputWithContext(context.Background()) } func (i GetLinuxWebAppAuthSettingActiveDirectoryArray) ToGetLinuxWebAppAuthSettingActiveDirectoryArrayOutputWithContext(ctx context.Context) GetLinuxWebAppAuthSettingActiveDirectoryArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(GetLinuxWebAppAuthSettingActiveDirectoryArrayOutput) } type GetLinuxWebAppAuthSettingActiveDirectoryOutput struct{ *pulumi.OutputState } func (GetLinuxWebAppAuthSettingActiveDirectoryOutput) ElementType() reflect.Type { return reflect.TypeOf((*GetLinuxWebAppAuthSettingActiveDirectory)(nil)).Elem() } func (o GetLinuxWebAppAuthSettingActiveDirectoryOutput) ToGetLinuxWebAppAuthSettingActiveDirectoryOutput() GetLinuxWebAppAuthSettingActiveDirectoryOutput { return o } func (o GetLinuxWebAppAuthSettingActiveDirectoryOutput) ToGetLinuxWebAppAuthSettingActiveDirectoryOutputWithContext(ctx context.Context) GetLinuxWebAppAuthSettingActiveDirectoryOutput { return o } // The list of Allowed Audiences that are be requested as part of Microsoft Sign-In authentication. func (o GetLinuxWebAppAuthSettingActiveDirectoryOutput) AllowedAudiences() pulumi.StringArrayOutput { return o.ApplyT(func(v GetLinuxWebAppAuthSettingActiveDirectory) []string { return v.AllowedAudiences }).(pulumi.StringArrayOutput) } // The OAuth 2.0 client ID used by the app for authentication. func (o GetLinuxWebAppAuthSettingActiveDirectoryOutput) ClientId() pulumi.StringOutput { return o.ApplyT(func(v GetLinuxWebAppAuthSettingActiveDirectory) string { return v.ClientId }).(pulumi.StringOutput) } // The OAuth 2.0 client secret used by the app for authentication. func (o GetLinuxWebAppAuthSettingActiveDirectoryOutput) ClientSecret() pulumi.StringOutput { return o.ApplyT(func(v GetLinuxWebAppAuthSettingActiveDirectory) string { return v.ClientSecret }).(pulumi.StringOutput) } // The app setting name containing the OAuth 2.0 client secret used by the app for authentication. func (o GetLinuxWebAppAuthSettingActiveDirectoryOutput) ClientSecretSettingName() pulumi.StringOutput { return o.ApplyT(func(v GetLinuxWebAppAuthSettingActiveDirectory) string { return v.ClientSecretSettingName }).(pulumi.StringOutput) } type GetLinuxWebAppAuthSettingActiveDirectoryArrayOutput struct{ *pulumi.OutputState } func (GetLinuxWebAppAuthSettingActiveDirectoryArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]GetLinuxWebAppAuthSettingActiveDirectory)(nil)).Elem() } func (o GetLinuxWebAppAuthSettingActiveDirectoryArrayOutput) ToGetLinuxWebAppAuthSettingActiveDirectoryArrayOutput() GetLinuxWebAppAuthSettingActiveDirectoryArrayOutput { return o } func (o GetLinuxWebAppAuthSettingActiveDirectoryArrayOutput) ToGetLinuxWebAppAuthSettingActiveDirectoryArrayOutputWithContext(ctx context.Context) GetLinuxWebAppAuthSettingActiveDirectoryArrayOutput { return o } func (o GetLinuxWebAppAuthSettingActiveDirectoryArrayOutput) Index(i pulumi.IntInput) GetLinuxWebAppAuthSettingActiveDirectoryOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) GetLinuxWebAppAuthSettingActiveDirectory { return vs[0].([]GetLinuxWebAppAuthSettingActiveDirectory)[vs[1].(int)] }).(GetLinuxWebAppAuthSettingActiveDirectoryOutput) } type GetLinuxWebAppAuthSettingFacebook struct { // The App ID of the Facebook app used for login. AppId string `pulumi:"appId"` // The App Secret of the Facebook app used for Facebook login. AppSecret string `pulumi:"appSecret"` // The app setting name that contains the `appSecret` value used for Facebook login. AppSecretSettingName string `pulumi:"appSecretSettingName"` // A list of OAuth 2.0 scopes requested as part of Microsoft Account authentication. OauthScopes []string `pulumi:"oauthScopes"` } // GetLinuxWebAppAuthSettingFacebookInput is an input type that accepts GetLinuxWebAppAuthSettingFacebookArgs and GetLinuxWebAppAuthSettingFacebookOutput values. // You can construct a concrete instance of `GetLinuxWebAppAuthSettingFacebookInput` via: // // GetLinuxWebAppAuthSettingFacebookArgs{...} type GetLinuxWebAppAuthSettingFacebookInput interface { pulumi.Input ToGetLinuxWebAppAuthSettingFacebookOutput() GetLinuxWebAppAuthSettingFacebookOutput ToGetLinuxWebAppAuthSettingFacebookOutputWithContext(context.Context) GetLinuxWebAppAuthSettingFacebookOutput } type GetLinuxWebAppAuthSettingFacebookArgs struct { // The App ID of the Facebook app used for login. AppId pulumi.StringInput `pulumi:"appId"` // The App Secret of the Facebook app used for Facebook login. AppSecret pulumi.StringInput `pulumi:"appSecret"` // The app setting name that contains the `appSecret` value used for Facebook login. AppSecretSettingName pulumi.StringInput `pulumi:"appSecretSettingName"` // A list of OAuth 2.0 scopes requested as part of Microsoft Account authentication. OauthScopes pulumi.StringArrayInput `pulumi:"oauthScopes"` } func (GetLinuxWebAppAuthSettingFacebookArgs) ElementType() reflect.Type { return reflect.TypeOf((*GetLinuxWebAppAuthSettingFacebook)(nil)).Elem() } func (i GetLinuxWebAppAuthSettingFacebookArgs) ToGetLinuxWebAppAuthSettingFacebookOutput() GetLinuxWebAppAuthSettingFacebookOutput { return i.ToGetLinuxWebAppAuthSettingFacebookOutputWithContext(context.Background()) } func (i GetLinuxWebAppAuthSettingFacebookArgs) ToGetLinuxWebAppAuthSettingFacebookOutputWithContext(ctx context.Context) GetLinuxWebAppAuthSettingFacebookOutput { return pulumi.ToOutputWithContext(ctx, i).(GetLinuxWebAppAuthSettingFacebookOutput) } // GetLinuxWebAppAuthSettingFacebookArrayInput is an input type that accepts GetLinuxWebAppAuthSettingFacebookArray and GetLinuxWebAppAuthSettingFacebookArrayOutput values. // You can construct a concrete instance of `GetLinuxWebAppAuthSettingFacebookArrayInput` via: // // GetLinuxWebAppAuthSettingFacebookArray{ GetLinuxWebAppAuthSettingFacebookArgs{...} } type GetLinuxWebAppAuthSettingFacebookArrayInput interface { pulumi.Input ToGetLinuxWebAppAuthSettingFacebookArrayOutput() GetLinuxWebAppAuthSettingFacebookArrayOutput ToGetLinuxWebAppAuthSettingFacebookArrayOutputWithContext(context.Context) GetLinuxWebAppAuthSettingFacebookArrayOutput } type GetLinuxWebAppAuthSettingFacebookArray []GetLinuxWebAppAuthSettingFacebookInput func (GetLinuxWebAppAuthSettingFacebookArray) ElementType() reflect.Type { return reflect.TypeOf((*[]GetLinuxWebAppAuthSettingFacebook)(nil)).Elem() } func (i GetLinuxWebAppAuthSettingFacebookArray) ToGetLinuxWebAppAuthSettingFacebookArrayOutput() GetLinuxWebAppAuthSettingFacebookArrayOutput { return i.ToGetLinuxWebAppAuthSettingFacebookArrayOutputWithContext(context.Background()) } func (i GetLinuxWebAppAuthSettingFacebookArray) ToGetLinuxWebAppAuthSettingFacebookArrayOutputWithContext(ctx context.Context) GetLinuxWebAppAuthSettingFacebookArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(GetLinuxWebAppAuthSettingFacebookArrayOutput) } type GetLinuxWebAppAuthSettingFacebookOutput struct{ *pulumi.OutputState } func (GetLinuxWebAppAuthSettingFacebookOutput) ElementType() reflect.Type { return reflect.TypeOf((*GetLinuxWebAppAuthSettingFacebook)(nil)).Elem() } func (o GetLinuxWebAppAuthSettingFacebookOutput) ToGetLinuxWebAppAuthSettingFacebookOutput() GetLinuxWebAppAuthSettingFacebookOutput { return o } func (o GetLinuxWebAppAuthSettingFacebookOutput) ToGetLinuxWebAppAuthSettingFacebookOutputWithContext(ctx context.Context) GetLinuxWebAppAuthSettingFacebookOutput { return o } // The App ID of the Facebook app used for login. func (o GetLinuxWebAppAuthSettingFacebookOutput) AppId() pulumi.StringOutput { return o.ApplyT(func(v GetLinuxWebAppAuthSettingFacebook) string { return v.AppId }).(pulumi.StringOutput) } // The App Secret of the Facebook app used for Facebook login. func (o GetLinuxWebAppAuthSettingFacebookOutput) AppSecret() pulumi.StringOutput { return o.ApplyT(func(v GetLinuxWebAppAuthSettingFacebook) string { return v.AppSecret }).(pulumi.StringOutput) } // The app setting name that contains the `appSecret` value used for Facebook login. func (o GetLinuxWebAppAuthSettingFacebookOutput) AppSecretSettingName() pulumi.StringOutput { return o.ApplyT(func(v GetLinuxWebAppAuthSettingFacebook) string { return v.AppSecretSettingName }).(pulumi.StringOutput) } // A list of OAuth 2.0 scopes requested as part of Microsoft Account authentication. func (o GetLinuxWebAppAuthSettingFacebookOutput) OauthScopes() pulumi.StringArrayOutput { return o.ApplyT(func(v GetLinuxWebAppAuthSettingFacebook) []string { return v.OauthScopes }).(pulumi.StringArrayOutput) } type GetLinuxWebAppAuthSettingFacebookArrayOutput struct{ *pulumi.OutputState } func (GetLinuxWebAppAuthSettingFacebookArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]GetLinuxWebAppAuthSettingFacebook)(nil)).Elem() } func (o GetLinuxWebAppAuthSettingFacebookArrayOutput) ToGetLinuxWebAppAuthSettingFacebookArrayOutput() GetLinuxWebAppAuthSettingFacebookArrayOutput { return o } func (o GetLinuxWebAppAuthSettingFacebookArrayOutput) ToGetLinuxWebAppAuthSettingFacebookArrayOutputWithContext(ctx context.Context) GetLinuxWebAppAuthSettingFacebookArrayOutput { return o } func (o GetLinuxWebAppAuthSettingFacebookArrayOutput) Index(i pulumi.IntInput) GetLinuxWebAppAuthSettingFacebookOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) GetLinuxWebAppAuthSettingFacebook { return vs[0].([]GetLinuxWebAppAuthSettingFacebook)[vs[1].(int)] }).(GetLinuxWebAppAuthSettingFacebookOutput) } type GetLinuxWebAppAuthSettingGithub struct { // The OAuth 2.0 client ID used by the app for authentication. ClientId string `pulumi:"clientId"` // The OAuth 2.0 client secret used by the app for authentication. ClientSecret string `pulumi:"clientSecret"` // The app setting name containing the OAuth 2.0 client secret used by the app for authentication. ClientSecretSettingName string `pulumi:"clientSecretSettingName"` // A list of OAuth 2.0 scopes requested as part of Microsoft Account authentication. OauthScopes []string `pulumi:"oauthScopes"` } // GetLinuxWebAppAuthSettingGithubInput is an input type that accepts GetLinuxWebAppAuthSettingGithubArgs and GetLinuxWebAppAuthSettingGithubOutput values. // You can construct a concrete instance of `GetLinuxWebAppAuthSettingGithubInput` via: // // GetLinuxWebAppAuthSettingGithubArgs{...} type GetLinuxWebAppAuthSettingGithubInput interface { pulumi.Input ToGetLinuxWebAppAuthSettingGithubOutput() GetLinuxWebAppAuthSettingGithubOutput ToGetLinuxWebAppAuthSettingGithubOutputWithContext(context.Context) GetLinuxWebAppAuthSettingGithubOutput } type GetLinuxWebAppAuthSettingGithubArgs struct { // The OAuth 2.0 client ID used by the app for authentication. ClientId pulumi.StringInput `pulumi:"clientId"` // The OAuth 2.0 client secret used by the app for authentication. ClientSecret pulumi.StringInput `pulumi:"clientSecret"` // The app setting name containing the OAuth 2.0 client secret used by the app for authentication. ClientSecretSettingName pulumi.StringInput `pulumi:"clientSecretSettingName"` // A list of OAuth 2.0 scopes requested as part of Microsoft Account authentication. OauthScopes pulumi.StringArrayInput `pulumi:"oauthScopes"` } func (GetLinuxWebAppAuthSettingGithubArgs) ElementType() reflect.Type { return reflect.TypeOf((*GetLinuxWebAppAuthSettingGithub)(nil)).Elem() } func (i GetLinuxWebAppAuthSettingGithubArgs) ToGetLinuxWebAppAuthSettingGithubOutput() GetLinuxWebAppAuthSettingGithubOutput { return i.ToGetLinuxWebAppAuthSettingGithubOutputWithContext(context.Background()) } func (i GetLinuxWebAppAuthSettingGithubArgs) ToGetLinuxWebAppAuthSettingGithubOutputWithContext(ctx context.Context) GetLinuxWebAppAuthSettingGithubOutput { return pulumi.ToOutputWithContext(ctx, i).(GetLinuxWebAppAuthSettingGithubOutput) } // GetLinuxWebAppAuthSettingGithubArrayInput is an input type that accepts GetLinuxWebAppAuthSettingGithubArray and GetLinuxWebAppAuthSettingGithubArrayOutput values. // You can construct a concrete instance of `GetLinuxWebAppAuthSettingGithubArrayInput` via: // // GetLinuxWebAppAuthSettingGithubArray{ GetLinuxWebAppAuthSettingGithubArgs{...} } type GetLinuxWebAppAuthSettingGithubArrayInput interface { pulumi.Input ToGetLinuxWebAppAuthSettingGithubArrayOutput() GetLinuxWebAppAuthSettingGithubArrayOutput ToGetLinuxWebAppAuthSettingGithubArrayOutputWithContext(context.Context) GetLinuxWebAppAuthSettingGithubArrayOutput } type GetLinuxWebAppAuthSettingGithubArray []GetLinuxWebAppAuthSettingGithubInput func (GetLinuxWebAppAuthSettingGithubArray) ElementType() reflect.Type { return reflect.TypeOf((*[]GetLinuxWebAppAuthSettingGithub)(nil)).Elem() } func (i GetLinuxWebAppAuthSettingGithubArray) ToGetLinuxWebAppAuthSettingGithubArrayOutput() GetLinuxWebAppAuthSettingGithubArrayOutput { return i.ToGetLinuxWebAppAuthSettingGithubArrayOutputWithContext(context.Background()) } func (i GetLinuxWebAppAuthSettingGithubArray) ToGetLinuxWebAppAuthSettingGithubArrayOutputWithContext(ctx context.Context) GetLinuxWebAppAuthSettingGithubArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(GetLinuxWebAppAuthSettingGithubArrayOutput) } type GetLinuxWebAppAuthSettingGithubOutput struct{ *pulumi.OutputState } func (GetLinuxWebAppAuthSettingGithubOutput) ElementType() reflect.Type { return reflect.TypeOf((*GetLinuxWebAppAuthSettingGithub)(nil)).Elem() } func (o GetLinuxWebAppAuthSettingGithubOutput) ToGetLinuxWebAppAuthSettingGithubOutput() GetLinuxWebAppAuthSettingGithubOutput { return o } func (o GetLinuxWebAppAuthSettingGithubOutput) ToGetLinuxWebAppAuthSettingGithubOutputWithContext(ctx context.Context) GetLinuxWebAppAuthSettingGithubOutput { return o } // The OAuth 2.0 client ID used by the app for authentication. func (o GetLinuxWebAppAuthSettingGithubOutput) ClientId() pulumi.StringOutput { return o.ApplyT(func(v GetLinuxWebAppAuthSettingGithub) string { return v.ClientId }).(pulumi.StringOutput) } // The OAuth 2.0 client secret used by the app for authentication. func (o GetLinuxWebAppAuthSettingGithubOutput) ClientSecret() pulumi.StringOutput { return o.ApplyT(func(v GetLinuxWebAppAuthSettingGithub) string { return v.ClientSecret }).(pulumi.StringOutput) } // The app setting name containing the OAuth 2.0 client secret used by the app for authentication. func (o GetLinuxWebAppAuthSettingGithubOutput) ClientSecretSettingName() pulumi.StringOutput { return o.ApplyT(func(v GetLinuxWebAppAuthSettingGithub) string { return v.ClientSecretSettingName }).(pulumi.StringOutput) } // A list of OAuth 2.0 scopes requested as part of Microsoft Account authentication. func (o GetLinuxWebAppAuthSettingGithubOutput) OauthScopes() pulumi.StringArrayOutput { return o.ApplyT(func(v GetLinuxWebAppAuthSettingGithub) []string { return v.OauthScopes }).(pulumi.StringArrayOutput) } type GetLinuxWebAppAuthSettingGithubArrayOutput struct{ *pulumi.OutputState } func (GetLinuxWebAppAuthSettingGithubArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]GetLinuxWebAppAuthSettingGithub)(nil)).Elem() } func (o GetLinuxWebAppAuthSettingGithubArrayOutput) ToGetLinuxWebAppAuthSettingGithubArrayOutput() GetLinuxWebAppAuthSettingGithubArrayOutput { return o } func (o GetLinuxWebAppAuthSettingGithubArrayOutput) ToGetLinuxWebAppAuthSettingGithubArrayOutputWithContext(ctx context.Context) GetLinuxWebAppAuthSettingGithubArrayOutput { return o } func (o GetLinuxWebAppAuthSettingGithubArrayOutput) Index(i pulumi.IntInput) GetLinuxWebAppAuthSettingGithubOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) GetLinuxWebAppAuthSettingGithub { return vs[0].([]GetLinuxWebAppAuthSettingGithub)[vs[1].(int)] }).(GetLinuxWebAppAuthSettingGithubOutput) } type GetLinuxWebAppAuthSettingGoogle struct { // The OAuth 2.0 client ID used by the app for authentication. ClientId string `pulumi:"clientId"` // The OAuth 2.0 client secret used by the app for authentication. ClientSecret string `pulumi:"clientSecret"` // The app setting name containing the OAuth 2.0 client secret used by the app for authentication. ClientSecretSettingName string `pulumi:"clientSecretSettingName"` // A list of OAuth 2.0 scopes requested as part of Microsoft Account authentication. OauthScopes []string `pulumi:"oauthScopes"` } // GetLinuxWebAppAuthSettingGoogleInput is an input type that accepts GetLinuxWebAppAuthSettingGoogleArgs and GetLinuxWebAppAuthSettingGoogleOutput values.
go
Apache-2.0
b66e1472775a89cca43f5050fef806854a7c3fa3
2026-01-07T09:44:27.619514Z
true
pulumi/pulumi-azure
https://github.com/pulumi/pulumi-azure/blob/b66e1472775a89cca43f5050fef806854a7c3fa3/sdk/go/azure/appservice/getLinuxWebApp.go
sdk/go/azure/appservice/getLinuxWebApp.go
// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package appservice import ( "context" "reflect" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Use this data source to access information about an existing Linux Web App. // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/appservice" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { // example, err := appservice.LookupLinuxWebApp(ctx, &appservice.LookupLinuxWebAppArgs{ // Name: "existing", // ResourceGroupName: "existing", // }, nil) // if err != nil { // return err // } // ctx.Export("id", example.Id) // return nil // }) // } // // ``` // // ## API Providers // // <!-- This section is generated, changes will be overwritten --> // This data source uses the following Azure API Providers: // // * `Microsoft.Web` - 2023-12-01 func LookupLinuxWebApp(ctx *pulumi.Context, args *LookupLinuxWebAppArgs, opts ...pulumi.InvokeOption) (*LookupLinuxWebAppResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupLinuxWebAppResult err := ctx.Invoke("azure:appservice/getLinuxWebApp:getLinuxWebApp", args, &rv, opts...) if err != nil { return nil, err } return &rv, nil } // A collection of arguments for invoking getLinuxWebApp. type LookupLinuxWebAppArgs struct { // The name of this Linux Web App. Name string `pulumi:"name"` // The name of the Resource Group where the Linux Web App exists. ResourceGroupName string `pulumi:"resourceGroupName"` } // A collection of values returned by getLinuxWebApp. type LookupLinuxWebAppResult struct { // An `appMetadata` block as defined below. AppMetadata map[string]string `pulumi:"appMetadata"` // An `appSettings` block as defined below. AppSettings map[string]string `pulumi:"appSettings"` // An `authSettings` block as defined below. AuthSettings []GetLinuxWebAppAuthSetting `pulumi:"authSettings"` // An `authSettingsV2` block as defined below. AuthSettingsV2s []GetLinuxWebAppAuthSettingsV2 `pulumi:"authSettingsV2s"` // The current availability state. Possible values are `Normal`, `Limited`, and `DisasterRecoveryMode`. Availability string `pulumi:"availability"` // A `backup` block as defined below. Backups []GetLinuxWebAppBackup `pulumi:"backups"` // Is Client Affinity enabled? ClientAffinityEnabled bool `pulumi:"clientAffinityEnabled"` // Are Client Certificates enabled? ClientCertificateEnabled bool `pulumi:"clientCertificateEnabled"` // Paths to exclude when using client certificates, separated by ; ClientCertificateExclusionPaths string `pulumi:"clientCertificateExclusionPaths"` // The Client Certificate mode. ClientCertificateMode string `pulumi:"clientCertificateMode"` // A `connectionString` block as defined below. ConnectionStrings []GetLinuxWebAppConnectionString `pulumi:"connectionStrings"` // The identifier used by App Service to perform domain ownership verification via DNS TXT record. CustomDomainVerificationId string `pulumi:"customDomainVerificationId"` // The default hostname of the Linux Web App. DefaultHostname string `pulumi:"defaultHostname"` // Is the Backup enabled? Enabled bool `pulumi:"enabled"` // Are the default FTP Basic Authentication publishing credentials enabled. FtpPublishBasicAuthenticationEnabled bool `pulumi:"ftpPublishBasicAuthenticationEnabled"` // The ID of the App Service Environment used by App Service. HostingEnvironmentId string `pulumi:"hostingEnvironmentId"` // Should the Linux Web App require HTTPS connections. HttpsOnly bool `pulumi:"httpsOnly"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` // A `identity` block as defined below. Identities []GetLinuxWebAppIdentity `pulumi:"identities"` KeyVaultReferenceIdentityId string `pulumi:"keyVaultReferenceIdentityId"` // The Kind value for this Linux Web App. Kind string `pulumi:"kind"` // The Azure Region where the Linux Web App exists. Location string `pulumi:"location"` // A `logs` block as defined below. Logs []GetLinuxWebAppLog `pulumi:"logs"` // The name of this Storage Account. Name string `pulumi:"name"` // A `outboundIpAddressList` block as defined below. OutboundIpAddressLists []string `pulumi:"outboundIpAddressLists"` // A comma separated list of outbound IP addresses - such as `52.23.25.3,52.143.43.12`. OutboundIpAddresses string `pulumi:"outboundIpAddresses"` // A `possibleOutboundIpAddressList` block as defined below. PossibleOutboundIpAddressLists []string `pulumi:"possibleOutboundIpAddressLists"` // A comma separated list of outbound IP addresses - such as `52.23.25.3,52.143.43.12,52.143.43.17` - not all of which are necessarily in use. Superset of `outboundIpAddresses`. PossibleOutboundIpAddresses string `pulumi:"possibleOutboundIpAddresses"` // Is Public Network Access enabled for this Linux Web App. PublicNetworkAccessEnabled bool `pulumi:"publicNetworkAccessEnabled"` ResourceGroupName string `pulumi:"resourceGroupName"` // The ID of the Service Plan that this Linux Web App exists in. ServicePlanId string `pulumi:"servicePlanId"` // A `siteConfig` block as defined below. SiteConfigs []GetLinuxWebAppSiteConfig `pulumi:"siteConfigs"` // A `siteCredential` block as defined below. SiteCredentials []GetLinuxWebAppSiteCredential `pulumi:"siteCredentials"` // A `stickySettings` block as defined below. StickySettings []GetLinuxWebAppStickySetting `pulumi:"stickySettings"` // A `storageAccount` block as defined below. StorageAccounts []GetLinuxWebAppStorageAccount `pulumi:"storageAccounts"` // A mapping of tags assigned to the Linux Web App. Tags map[string]string `pulumi:"tags"` // The current usage state. Possible values are `Normal` and `Exceeded`. Usage string `pulumi:"usage"` // Whether backup and restore operations over the linked virtual network are enabled. VirtualNetworkBackupRestoreEnabled bool `pulumi:"virtualNetworkBackupRestoreEnabled"` // The subnet id which the Linux Web App is vNet Integrated with. VirtualNetworkSubnetId string `pulumi:"virtualNetworkSubnetId"` // Are the default WebDeploy Basic Authentication publishing credentials enabled. WebdeployPublishBasicAuthenticationEnabled bool `pulumi:"webdeployPublishBasicAuthenticationEnabled"` } func LookupLinuxWebAppOutput(ctx *pulumi.Context, args LookupLinuxWebAppOutputArgs, opts ...pulumi.InvokeOption) LookupLinuxWebAppResultOutput { return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupLinuxWebAppResultOutput, error) { args := v.(LookupLinuxWebAppArgs) options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} return ctx.InvokeOutput("azure:appservice/getLinuxWebApp:getLinuxWebApp", args, LookupLinuxWebAppResultOutput{}, options).(LookupLinuxWebAppResultOutput), nil }).(LookupLinuxWebAppResultOutput) } // A collection of arguments for invoking getLinuxWebApp. type LookupLinuxWebAppOutputArgs struct { // The name of this Linux Web App. Name pulumi.StringInput `pulumi:"name"` // The name of the Resource Group where the Linux Web App exists. ResourceGroupName pulumi.StringInput `pulumi:"resourceGroupName"` } func (LookupLinuxWebAppOutputArgs) ElementType() reflect.Type { return reflect.TypeOf((*LookupLinuxWebAppArgs)(nil)).Elem() } // A collection of values returned by getLinuxWebApp. type LookupLinuxWebAppResultOutput struct{ *pulumi.OutputState } func (LookupLinuxWebAppResultOutput) ElementType() reflect.Type { return reflect.TypeOf((*LookupLinuxWebAppResult)(nil)).Elem() } func (o LookupLinuxWebAppResultOutput) ToLookupLinuxWebAppResultOutput() LookupLinuxWebAppResultOutput { return o } func (o LookupLinuxWebAppResultOutput) ToLookupLinuxWebAppResultOutputWithContext(ctx context.Context) LookupLinuxWebAppResultOutput { return o } // An `appMetadata` block as defined below. func (o LookupLinuxWebAppResultOutput) AppMetadata() pulumi.StringMapOutput { return o.ApplyT(func(v LookupLinuxWebAppResult) map[string]string { return v.AppMetadata }).(pulumi.StringMapOutput) } // An `appSettings` block as defined below. func (o LookupLinuxWebAppResultOutput) AppSettings() pulumi.StringMapOutput { return o.ApplyT(func(v LookupLinuxWebAppResult) map[string]string { return v.AppSettings }).(pulumi.StringMapOutput) } // An `authSettings` block as defined below. func (o LookupLinuxWebAppResultOutput) AuthSettings() GetLinuxWebAppAuthSettingArrayOutput { return o.ApplyT(func(v LookupLinuxWebAppResult) []GetLinuxWebAppAuthSetting { return v.AuthSettings }).(GetLinuxWebAppAuthSettingArrayOutput) } // An `authSettingsV2` block as defined below. func (o LookupLinuxWebAppResultOutput) AuthSettingsV2s() GetLinuxWebAppAuthSettingsV2ArrayOutput { return o.ApplyT(func(v LookupLinuxWebAppResult) []GetLinuxWebAppAuthSettingsV2 { return v.AuthSettingsV2s }).(GetLinuxWebAppAuthSettingsV2ArrayOutput) } // The current availability state. Possible values are `Normal`, `Limited`, and `DisasterRecoveryMode`. func (o LookupLinuxWebAppResultOutput) Availability() pulumi.StringOutput { return o.ApplyT(func(v LookupLinuxWebAppResult) string { return v.Availability }).(pulumi.StringOutput) } // A `backup` block as defined below. func (o LookupLinuxWebAppResultOutput) Backups() GetLinuxWebAppBackupArrayOutput { return o.ApplyT(func(v LookupLinuxWebAppResult) []GetLinuxWebAppBackup { return v.Backups }).(GetLinuxWebAppBackupArrayOutput) } // Is Client Affinity enabled? func (o LookupLinuxWebAppResultOutput) ClientAffinityEnabled() pulumi.BoolOutput { return o.ApplyT(func(v LookupLinuxWebAppResult) bool { return v.ClientAffinityEnabled }).(pulumi.BoolOutput) } // Are Client Certificates enabled? func (o LookupLinuxWebAppResultOutput) ClientCertificateEnabled() pulumi.BoolOutput { return o.ApplyT(func(v LookupLinuxWebAppResult) bool { return v.ClientCertificateEnabled }).(pulumi.BoolOutput) } // Paths to exclude when using client certificates, separated by ; func (o LookupLinuxWebAppResultOutput) ClientCertificateExclusionPaths() pulumi.StringOutput { return o.ApplyT(func(v LookupLinuxWebAppResult) string { return v.ClientCertificateExclusionPaths }).(pulumi.StringOutput) } // The Client Certificate mode. func (o LookupLinuxWebAppResultOutput) ClientCertificateMode() pulumi.StringOutput { return o.ApplyT(func(v LookupLinuxWebAppResult) string { return v.ClientCertificateMode }).(pulumi.StringOutput) } // A `connectionString` block as defined below. func (o LookupLinuxWebAppResultOutput) ConnectionStrings() GetLinuxWebAppConnectionStringArrayOutput { return o.ApplyT(func(v LookupLinuxWebAppResult) []GetLinuxWebAppConnectionString { return v.ConnectionStrings }).(GetLinuxWebAppConnectionStringArrayOutput) } // The identifier used by App Service to perform domain ownership verification via DNS TXT record. func (o LookupLinuxWebAppResultOutput) CustomDomainVerificationId() pulumi.StringOutput { return o.ApplyT(func(v LookupLinuxWebAppResult) string { return v.CustomDomainVerificationId }).(pulumi.StringOutput) } // The default hostname of the Linux Web App. func (o LookupLinuxWebAppResultOutput) DefaultHostname() pulumi.StringOutput { return o.ApplyT(func(v LookupLinuxWebAppResult) string { return v.DefaultHostname }).(pulumi.StringOutput) } // Is the Backup enabled? func (o LookupLinuxWebAppResultOutput) Enabled() pulumi.BoolOutput { return o.ApplyT(func(v LookupLinuxWebAppResult) bool { return v.Enabled }).(pulumi.BoolOutput) } // Are the default FTP Basic Authentication publishing credentials enabled. func (o LookupLinuxWebAppResultOutput) FtpPublishBasicAuthenticationEnabled() pulumi.BoolOutput { return o.ApplyT(func(v LookupLinuxWebAppResult) bool { return v.FtpPublishBasicAuthenticationEnabled }).(pulumi.BoolOutput) } // The ID of the App Service Environment used by App Service. func (o LookupLinuxWebAppResultOutput) HostingEnvironmentId() pulumi.StringOutput { return o.ApplyT(func(v LookupLinuxWebAppResult) string { return v.HostingEnvironmentId }).(pulumi.StringOutput) } // Should the Linux Web App require HTTPS connections. func (o LookupLinuxWebAppResultOutput) HttpsOnly() pulumi.BoolOutput { return o.ApplyT(func(v LookupLinuxWebAppResult) bool { return v.HttpsOnly }).(pulumi.BoolOutput) } // The provider-assigned unique ID for this managed resource. func (o LookupLinuxWebAppResultOutput) Id() pulumi.StringOutput { return o.ApplyT(func(v LookupLinuxWebAppResult) string { return v.Id }).(pulumi.StringOutput) } // A `identity` block as defined below. func (o LookupLinuxWebAppResultOutput) Identities() GetLinuxWebAppIdentityArrayOutput { return o.ApplyT(func(v LookupLinuxWebAppResult) []GetLinuxWebAppIdentity { return v.Identities }).(GetLinuxWebAppIdentityArrayOutput) } func (o LookupLinuxWebAppResultOutput) KeyVaultReferenceIdentityId() pulumi.StringOutput { return o.ApplyT(func(v LookupLinuxWebAppResult) string { return v.KeyVaultReferenceIdentityId }).(pulumi.StringOutput) } // The Kind value for this Linux Web App. func (o LookupLinuxWebAppResultOutput) Kind() pulumi.StringOutput { return o.ApplyT(func(v LookupLinuxWebAppResult) string { return v.Kind }).(pulumi.StringOutput) } // The Azure Region where the Linux Web App exists. func (o LookupLinuxWebAppResultOutput) Location() pulumi.StringOutput { return o.ApplyT(func(v LookupLinuxWebAppResult) string { return v.Location }).(pulumi.StringOutput) } // A `logs` block as defined below. func (o LookupLinuxWebAppResultOutput) Logs() GetLinuxWebAppLogArrayOutput { return o.ApplyT(func(v LookupLinuxWebAppResult) []GetLinuxWebAppLog { return v.Logs }).(GetLinuxWebAppLogArrayOutput) } // The name of this Storage Account. func (o LookupLinuxWebAppResultOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v LookupLinuxWebAppResult) string { return v.Name }).(pulumi.StringOutput) } // A `outboundIpAddressList` block as defined below. func (o LookupLinuxWebAppResultOutput) OutboundIpAddressLists() pulumi.StringArrayOutput { return o.ApplyT(func(v LookupLinuxWebAppResult) []string { return v.OutboundIpAddressLists }).(pulumi.StringArrayOutput) } // A comma separated list of outbound IP addresses - such as `52.23.25.3,52.143.43.12`. func (o LookupLinuxWebAppResultOutput) OutboundIpAddresses() pulumi.StringOutput { return o.ApplyT(func(v LookupLinuxWebAppResult) string { return v.OutboundIpAddresses }).(pulumi.StringOutput) } // A `possibleOutboundIpAddressList` block as defined below. func (o LookupLinuxWebAppResultOutput) PossibleOutboundIpAddressLists() pulumi.StringArrayOutput { return o.ApplyT(func(v LookupLinuxWebAppResult) []string { return v.PossibleOutboundIpAddressLists }).(pulumi.StringArrayOutput) } // A comma separated list of outbound IP addresses - such as `52.23.25.3,52.143.43.12,52.143.43.17` - not all of which are necessarily in use. Superset of `outboundIpAddresses`. func (o LookupLinuxWebAppResultOutput) PossibleOutboundIpAddresses() pulumi.StringOutput { return o.ApplyT(func(v LookupLinuxWebAppResult) string { return v.PossibleOutboundIpAddresses }).(pulumi.StringOutput) } // Is Public Network Access enabled for this Linux Web App. func (o LookupLinuxWebAppResultOutput) PublicNetworkAccessEnabled() pulumi.BoolOutput { return o.ApplyT(func(v LookupLinuxWebAppResult) bool { return v.PublicNetworkAccessEnabled }).(pulumi.BoolOutput) } func (o LookupLinuxWebAppResultOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v LookupLinuxWebAppResult) string { return v.ResourceGroupName }).(pulumi.StringOutput) } // The ID of the Service Plan that this Linux Web App exists in. func (o LookupLinuxWebAppResultOutput) ServicePlanId() pulumi.StringOutput { return o.ApplyT(func(v LookupLinuxWebAppResult) string { return v.ServicePlanId }).(pulumi.StringOutput) } // A `siteConfig` block as defined below. func (o LookupLinuxWebAppResultOutput) SiteConfigs() GetLinuxWebAppSiteConfigArrayOutput { return o.ApplyT(func(v LookupLinuxWebAppResult) []GetLinuxWebAppSiteConfig { return v.SiteConfigs }).(GetLinuxWebAppSiteConfigArrayOutput) } // A `siteCredential` block as defined below. func (o LookupLinuxWebAppResultOutput) SiteCredentials() GetLinuxWebAppSiteCredentialArrayOutput { return o.ApplyT(func(v LookupLinuxWebAppResult) []GetLinuxWebAppSiteCredential { return v.SiteCredentials }).(GetLinuxWebAppSiteCredentialArrayOutput) } // A `stickySettings` block as defined below. func (o LookupLinuxWebAppResultOutput) StickySettings() GetLinuxWebAppStickySettingArrayOutput { return o.ApplyT(func(v LookupLinuxWebAppResult) []GetLinuxWebAppStickySetting { return v.StickySettings }).(GetLinuxWebAppStickySettingArrayOutput) } // A `storageAccount` block as defined below. func (o LookupLinuxWebAppResultOutput) StorageAccounts() GetLinuxWebAppStorageAccountArrayOutput { return o.ApplyT(func(v LookupLinuxWebAppResult) []GetLinuxWebAppStorageAccount { return v.StorageAccounts }).(GetLinuxWebAppStorageAccountArrayOutput) } // A mapping of tags assigned to the Linux Web App. func (o LookupLinuxWebAppResultOutput) Tags() pulumi.StringMapOutput { return o.ApplyT(func(v LookupLinuxWebAppResult) map[string]string { return v.Tags }).(pulumi.StringMapOutput) } // The current usage state. Possible values are `Normal` and `Exceeded`. func (o LookupLinuxWebAppResultOutput) Usage() pulumi.StringOutput { return o.ApplyT(func(v LookupLinuxWebAppResult) string { return v.Usage }).(pulumi.StringOutput) } // Whether backup and restore operations over the linked virtual network are enabled. func (o LookupLinuxWebAppResultOutput) VirtualNetworkBackupRestoreEnabled() pulumi.BoolOutput { return o.ApplyT(func(v LookupLinuxWebAppResult) bool { return v.VirtualNetworkBackupRestoreEnabled }).(pulumi.BoolOutput) } // The subnet id which the Linux Web App is vNet Integrated with. func (o LookupLinuxWebAppResultOutput) VirtualNetworkSubnetId() pulumi.StringOutput { return o.ApplyT(func(v LookupLinuxWebAppResult) string { return v.VirtualNetworkSubnetId }).(pulumi.StringOutput) } // Are the default WebDeploy Basic Authentication publishing credentials enabled. func (o LookupLinuxWebAppResultOutput) WebdeployPublishBasicAuthenticationEnabled() pulumi.BoolOutput { return o.ApplyT(func(v LookupLinuxWebAppResult) bool { return v.WebdeployPublishBasicAuthenticationEnabled }).(pulumi.BoolOutput) } func init() { pulumi.RegisterOutputType(LookupLinuxWebAppResultOutput{}) }
go
Apache-2.0
b66e1472775a89cca43f5050fef806854a7c3fa3
2026-01-07T09:44:27.619514Z
false
pulumi/pulumi-azure
https://github.com/pulumi/pulumi-azure/blob/b66e1472775a89cca43f5050fef806854a7c3fa3/sdk/go/azure/appservice/publicCertificate.go
sdk/go/azure/appservice/publicCertificate.go
// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package appservice import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages an App Service Public Certificate. // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/appservice" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core" // "github.com/pulumi/pulumi-std/sdk/go/std" // "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-resources"), // Location: pulumi.String("West Europe"), // }) // if err != nil { // return err // } // examplePlan, err := appservice.NewPlan(ctx, "example", &appservice.PlanArgs{ // Name: pulumi.String("example-app-service-plan"), // Location: example.Location, // ResourceGroupName: example.Name, // Sku: &appservice.PlanSkuArgs{ // Tier: pulumi.String("Standard"), // Size: pulumi.String("S1"), // }, // }) // if err != nil { // return err // } // exampleAppService, err := appservice.NewAppService(ctx, "example", &appservice.AppServiceArgs{ // Name: pulumi.String("example-app-service"), // Location: example.Location, // ResourceGroupName: example.Name, // AppServicePlanId: examplePlan.ID(), // }) // if err != nil { // return err // } // invokeFilebase64, err := std.Filebase64(ctx, &std.Filebase64Args{ // Input: "app_service_public_certificate.cer", // }, nil) // if err != nil { // return err // } // _, err = appservice.NewPublicCertificate(ctx, "example", &appservice.PublicCertificateArgs{ // ResourceGroupName: example.Name, // AppServiceName: exampleAppService.Name, // CertificateName: pulumi.String("example-public-certificate"), // CertificateLocation: pulumi.String("Unknown"), // Blob: pulumi.String(invokeFilebase64.Result), // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## API Providers // // <!-- This section is generated, changes will be overwritten --> // This resource uses the following Azure API Providers: // // * `Microsoft.Web` - 2023-12-01 // // ## Import // // App Service Public Certificates can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:appservice/publicCertificate:PublicCertificate example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Web/sites/site1/publicCertificates/publicCertificate1 // ``` type PublicCertificate struct { pulumi.CustomResourceState // The name of the App Service. Changing this forces a new App Service Public Certificate to be created. AppServiceName pulumi.StringOutput `pulumi:"appServiceName"` // The base64-encoded contents of the certificate. Changing this forces a new App Service Public Certificate to be created. Blob pulumi.StringOutput `pulumi:"blob"` // The location of the certificate. Possible values are `CurrentUserMy`, `LocalMachineMy` and `Unknown`. Changing this forces a new App Service Public Certificate to be created. CertificateLocation pulumi.StringOutput `pulumi:"certificateLocation"` // The name of the public certificate. Changing this forces a new App Service Public Certificate to be created. CertificateName pulumi.StringOutput `pulumi:"certificateName"` // The name of the Resource Group where the App Service Public Certificate should exist. Changing this forces a new App Service Public Certificate to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // The thumbprint of the public certificate. Thumbprint pulumi.StringOutput `pulumi:"thumbprint"` } // NewPublicCertificate registers a new resource with the given unique name, arguments, and options. func NewPublicCertificate(ctx *pulumi.Context, name string, args *PublicCertificateArgs, opts ...pulumi.ResourceOption) (*PublicCertificate, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.AppServiceName == nil { return nil, errors.New("invalid value for required argument 'AppServiceName'") } if args.Blob == nil { return nil, errors.New("invalid value for required argument 'Blob'") } if args.CertificateLocation == nil { return nil, errors.New("invalid value for required argument 'CertificateLocation'") } if args.CertificateName == nil { return nil, errors.New("invalid value for required argument 'CertificateName'") } if args.ResourceGroupName == nil { return nil, errors.New("invalid value for required argument 'ResourceGroupName'") } opts = internal.PkgResourceDefaultOpts(opts) var resource PublicCertificate err := ctx.RegisterResource("azure:appservice/publicCertificate:PublicCertificate", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetPublicCertificate gets an existing PublicCertificate 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 GetPublicCertificate(ctx *pulumi.Context, name string, id pulumi.IDInput, state *PublicCertificateState, opts ...pulumi.ResourceOption) (*PublicCertificate, error) { var resource PublicCertificate err := ctx.ReadResource("azure:appservice/publicCertificate:PublicCertificate", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering PublicCertificate resources. type publicCertificateState struct { // The name of the App Service. Changing this forces a new App Service Public Certificate to be created. AppServiceName *string `pulumi:"appServiceName"` // The base64-encoded contents of the certificate. Changing this forces a new App Service Public Certificate to be created. Blob *string `pulumi:"blob"` // The location of the certificate. Possible values are `CurrentUserMy`, `LocalMachineMy` and `Unknown`. Changing this forces a new App Service Public Certificate to be created. CertificateLocation *string `pulumi:"certificateLocation"` // The name of the public certificate. Changing this forces a new App Service Public Certificate to be created. CertificateName *string `pulumi:"certificateName"` // The name of the Resource Group where the App Service Public Certificate should exist. Changing this forces a new App Service Public Certificate to be created. ResourceGroupName *string `pulumi:"resourceGroupName"` // The thumbprint of the public certificate. Thumbprint *string `pulumi:"thumbprint"` } type PublicCertificateState struct { // The name of the App Service. Changing this forces a new App Service Public Certificate to be created. AppServiceName pulumi.StringPtrInput // The base64-encoded contents of the certificate. Changing this forces a new App Service Public Certificate to be created. Blob pulumi.StringPtrInput // The location of the certificate. Possible values are `CurrentUserMy`, `LocalMachineMy` and `Unknown`. Changing this forces a new App Service Public Certificate to be created. CertificateLocation pulumi.StringPtrInput // The name of the public certificate. Changing this forces a new App Service Public Certificate to be created. CertificateName pulumi.StringPtrInput // The name of the Resource Group where the App Service Public Certificate should exist. Changing this forces a new App Service Public Certificate to be created. ResourceGroupName pulumi.StringPtrInput // The thumbprint of the public certificate. Thumbprint pulumi.StringPtrInput } func (PublicCertificateState) ElementType() reflect.Type { return reflect.TypeOf((*publicCertificateState)(nil)).Elem() } type publicCertificateArgs struct { // The name of the App Service. Changing this forces a new App Service Public Certificate to be created. AppServiceName string `pulumi:"appServiceName"` // The base64-encoded contents of the certificate. Changing this forces a new App Service Public Certificate to be created. Blob string `pulumi:"blob"` // The location of the certificate. Possible values are `CurrentUserMy`, `LocalMachineMy` and `Unknown`. Changing this forces a new App Service Public Certificate to be created. CertificateLocation string `pulumi:"certificateLocation"` // The name of the public certificate. Changing this forces a new App Service Public Certificate to be created. CertificateName string `pulumi:"certificateName"` // The name of the Resource Group where the App Service Public Certificate should exist. Changing this forces a new App Service Public Certificate to be created. ResourceGroupName string `pulumi:"resourceGroupName"` } // The set of arguments for constructing a PublicCertificate resource. type PublicCertificateArgs struct { // The name of the App Service. Changing this forces a new App Service Public Certificate to be created. AppServiceName pulumi.StringInput // The base64-encoded contents of the certificate. Changing this forces a new App Service Public Certificate to be created. Blob pulumi.StringInput // The location of the certificate. Possible values are `CurrentUserMy`, `LocalMachineMy` and `Unknown`. Changing this forces a new App Service Public Certificate to be created. CertificateLocation pulumi.StringInput // The name of the public certificate. Changing this forces a new App Service Public Certificate to be created. CertificateName pulumi.StringInput // The name of the Resource Group where the App Service Public Certificate should exist. Changing this forces a new App Service Public Certificate to be created. ResourceGroupName pulumi.StringInput } func (PublicCertificateArgs) ElementType() reflect.Type { return reflect.TypeOf((*publicCertificateArgs)(nil)).Elem() } type PublicCertificateInput interface { pulumi.Input ToPublicCertificateOutput() PublicCertificateOutput ToPublicCertificateOutputWithContext(ctx context.Context) PublicCertificateOutput } func (*PublicCertificate) ElementType() reflect.Type { return reflect.TypeOf((**PublicCertificate)(nil)).Elem() } func (i *PublicCertificate) ToPublicCertificateOutput() PublicCertificateOutput { return i.ToPublicCertificateOutputWithContext(context.Background()) } func (i *PublicCertificate) ToPublicCertificateOutputWithContext(ctx context.Context) PublicCertificateOutput { return pulumi.ToOutputWithContext(ctx, i).(PublicCertificateOutput) } // PublicCertificateArrayInput is an input type that accepts PublicCertificateArray and PublicCertificateArrayOutput values. // You can construct a concrete instance of `PublicCertificateArrayInput` via: // // PublicCertificateArray{ PublicCertificateArgs{...} } type PublicCertificateArrayInput interface { pulumi.Input ToPublicCertificateArrayOutput() PublicCertificateArrayOutput ToPublicCertificateArrayOutputWithContext(context.Context) PublicCertificateArrayOutput } type PublicCertificateArray []PublicCertificateInput func (PublicCertificateArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*PublicCertificate)(nil)).Elem() } func (i PublicCertificateArray) ToPublicCertificateArrayOutput() PublicCertificateArrayOutput { return i.ToPublicCertificateArrayOutputWithContext(context.Background()) } func (i PublicCertificateArray) ToPublicCertificateArrayOutputWithContext(ctx context.Context) PublicCertificateArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(PublicCertificateArrayOutput) } // PublicCertificateMapInput is an input type that accepts PublicCertificateMap and PublicCertificateMapOutput values. // You can construct a concrete instance of `PublicCertificateMapInput` via: // // PublicCertificateMap{ "key": PublicCertificateArgs{...} } type PublicCertificateMapInput interface { pulumi.Input ToPublicCertificateMapOutput() PublicCertificateMapOutput ToPublicCertificateMapOutputWithContext(context.Context) PublicCertificateMapOutput } type PublicCertificateMap map[string]PublicCertificateInput func (PublicCertificateMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*PublicCertificate)(nil)).Elem() } func (i PublicCertificateMap) ToPublicCertificateMapOutput() PublicCertificateMapOutput { return i.ToPublicCertificateMapOutputWithContext(context.Background()) } func (i PublicCertificateMap) ToPublicCertificateMapOutputWithContext(ctx context.Context) PublicCertificateMapOutput { return pulumi.ToOutputWithContext(ctx, i).(PublicCertificateMapOutput) } type PublicCertificateOutput struct{ *pulumi.OutputState } func (PublicCertificateOutput) ElementType() reflect.Type { return reflect.TypeOf((**PublicCertificate)(nil)).Elem() } func (o PublicCertificateOutput) ToPublicCertificateOutput() PublicCertificateOutput { return o } func (o PublicCertificateOutput) ToPublicCertificateOutputWithContext(ctx context.Context) PublicCertificateOutput { return o } // The name of the App Service. Changing this forces a new App Service Public Certificate to be created. func (o PublicCertificateOutput) AppServiceName() pulumi.StringOutput { return o.ApplyT(func(v *PublicCertificate) pulumi.StringOutput { return v.AppServiceName }).(pulumi.StringOutput) } // The base64-encoded contents of the certificate. Changing this forces a new App Service Public Certificate to be created. func (o PublicCertificateOutput) Blob() pulumi.StringOutput { return o.ApplyT(func(v *PublicCertificate) pulumi.StringOutput { return v.Blob }).(pulumi.StringOutput) } // The location of the certificate. Possible values are `CurrentUserMy`, `LocalMachineMy` and `Unknown`. Changing this forces a new App Service Public Certificate to be created. func (o PublicCertificateOutput) CertificateLocation() pulumi.StringOutput { return o.ApplyT(func(v *PublicCertificate) pulumi.StringOutput { return v.CertificateLocation }).(pulumi.StringOutput) } // The name of the public certificate. Changing this forces a new App Service Public Certificate to be created. func (o PublicCertificateOutput) CertificateName() pulumi.StringOutput { return o.ApplyT(func(v *PublicCertificate) pulumi.StringOutput { return v.CertificateName }).(pulumi.StringOutput) } // The name of the Resource Group where the App Service Public Certificate should exist. Changing this forces a new App Service Public Certificate to be created. func (o PublicCertificateOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v *PublicCertificate) pulumi.StringOutput { return v.ResourceGroupName }).(pulumi.StringOutput) } // The thumbprint of the public certificate. func (o PublicCertificateOutput) Thumbprint() pulumi.StringOutput { return o.ApplyT(func(v *PublicCertificate) pulumi.StringOutput { return v.Thumbprint }).(pulumi.StringOutput) } type PublicCertificateArrayOutput struct{ *pulumi.OutputState } func (PublicCertificateArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*PublicCertificate)(nil)).Elem() } func (o PublicCertificateArrayOutput) ToPublicCertificateArrayOutput() PublicCertificateArrayOutput { return o } func (o PublicCertificateArrayOutput) ToPublicCertificateArrayOutputWithContext(ctx context.Context) PublicCertificateArrayOutput { return o } func (o PublicCertificateArrayOutput) Index(i pulumi.IntInput) PublicCertificateOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *PublicCertificate { return vs[0].([]*PublicCertificate)[vs[1].(int)] }).(PublicCertificateOutput) } type PublicCertificateMapOutput struct{ *pulumi.OutputState } func (PublicCertificateMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*PublicCertificate)(nil)).Elem() } func (o PublicCertificateMapOutput) ToPublicCertificateMapOutput() PublicCertificateMapOutput { return o } func (o PublicCertificateMapOutput) ToPublicCertificateMapOutputWithContext(ctx context.Context) PublicCertificateMapOutput { return o } func (o PublicCertificateMapOutput) MapIndex(k pulumi.StringInput) PublicCertificateOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *PublicCertificate { return vs[0].(map[string]*PublicCertificate)[vs[1].(string)] }).(PublicCertificateOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*PublicCertificateInput)(nil)).Elem(), &PublicCertificate{}) pulumi.RegisterInputType(reflect.TypeOf((*PublicCertificateArrayInput)(nil)).Elem(), PublicCertificateArray{}) pulumi.RegisterInputType(reflect.TypeOf((*PublicCertificateMapInput)(nil)).Elem(), PublicCertificateMap{}) pulumi.RegisterOutputType(PublicCertificateOutput{}) pulumi.RegisterOutputType(PublicCertificateArrayOutput{}) pulumi.RegisterOutputType(PublicCertificateMapOutput{}) }
go
Apache-2.0
b66e1472775a89cca43f5050fef806854a7c3fa3
2026-01-07T09:44:27.619514Z
false
pulumi/pulumi-azure
https://github.com/pulumi/pulumi-azure/blob/b66e1472775a89cca43f5050fef806854a7c3fa3/sdk/go/azure/appservice/virtualNetworkSwiftConnection.go
sdk/go/azure/appservice/virtualNetworkSwiftConnection.go
// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package appservice import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages an App Service Virtual Network Association for [Regional VNet Integration](https://docs.microsoft.com/azure/app-service/web-sites-integrate-with-vnet#regional-vnet-integration). // // This resource can be used for both App Services and Function Apps. // // > **Note:** The following resources support associating the vNet for Regional vNet Integration directly on the resource and via the `appservice.VirtualNetworkSwiftConnection` resource. You can't use both simultaneously. // // - appservice.LinuxFunctionApp // - appservice.LinuxFunctionAppSlot // - appservice.LinuxWebApp // - appservice.LinuxWebAppSlot // - logicapps.Standard // - appservice.WindowsFunctionApp // - appservice.WindowsFunctionAppSlot // - appservice.WindowsWebApp // - appservice.WindowsWebAppSlot // // This resource requires the `Microsoft.Network/virtualNetworks/subnets/write` permission scope on the subnet. // // The resource specific vNet integration requires the `Microsoft.Network/virtualNetworks/subnets/join/action` permission scope. // // There is a hard limit of [one VNet integration per App Service Plan](https://docs.microsoft.com/azure/app-service/web-sites-integrate-with-vnet#regional-vnet-integration). // Multiple apps in the same App Service plan can use the same VNet. // // ## Example Usage // // ### With App Service) // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/appservice" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/network" // "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-resources"), // Location: pulumi.String("West Europe"), // }) // if err != nil { // return err // } // exampleVirtualNetwork, err := network.NewVirtualNetwork(ctx, "example", &network.VirtualNetworkArgs{ // Name: pulumi.String("example-virtual-network"), // AddressSpaces: pulumi.StringArray{ // pulumi.String("10.0.0.0/16"), // }, // Location: example.Location, // ResourceGroupName: example.Name, // }) // if err != nil { // return err // } // exampleSubnet, err := network.NewSubnet(ctx, "example", &network.SubnetArgs{ // Name: pulumi.String("example-subnet"), // ResourceGroupName: example.Name, // VirtualNetworkName: exampleVirtualNetwork.Name, // AddressPrefixes: pulumi.StringArray{ // pulumi.String("10.0.1.0/24"), // }, // Delegations: network.SubnetDelegationArray{ // &network.SubnetDelegationArgs{ // Name: pulumi.String("example-delegation"), // ServiceDelegation: &network.SubnetDelegationServiceDelegationArgs{ // Name: pulumi.String("Microsoft.Web/serverFarms"), // Actions: pulumi.StringArray{ // pulumi.String("Microsoft.Network/virtualNetworks/subnets/action"), // }, // }, // }, // }, // }) // if err != nil { // return err // } // examplePlan, err := appservice.NewPlan(ctx, "example", &appservice.PlanArgs{ // Name: pulumi.String("example-app-service-plan"), // Location: example.Location, // ResourceGroupName: example.Name, // Sku: &appservice.PlanSkuArgs{ // Tier: pulumi.String("Standard"), // Size: pulumi.String("S1"), // }, // }) // if err != nil { // return err // } // exampleAppService, err := appservice.NewAppService(ctx, "example", &appservice.AppServiceArgs{ // Name: pulumi.String("example-app-service"), // Location: example.Location, // ResourceGroupName: example.Name, // AppServicePlanId: examplePlan.ID(), // }) // if err != nil { // return err // } // _, err = appservice.NewVirtualNetworkSwiftConnection(ctx, "example", &appservice.VirtualNetworkSwiftConnectionArgs{ // AppServiceId: exampleAppService.ID(), // SubnetId: exampleSubnet.ID(), // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ### With Function App) // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/appservice" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/network" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/storage" // "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-resources"), // Location: pulumi.String("West Europe"), // }) // if err != nil { // return err // } // exampleVirtualNetwork, err := network.NewVirtualNetwork(ctx, "example", &network.VirtualNetworkArgs{ // Name: pulumi.String("example-virtual-network"), // AddressSpaces: pulumi.StringArray{ // pulumi.String("10.0.0.0/16"), // }, // Location: example.Location, // ResourceGroupName: example.Name, // }) // if err != nil { // return err // } // exampleSubnet, err := network.NewSubnet(ctx, "example", &network.SubnetArgs{ // Name: pulumi.String("example-subnet"), // ResourceGroupName: example.Name, // VirtualNetworkName: exampleVirtualNetwork.Name, // AddressPrefixes: pulumi.StringArray{ // pulumi.String("10.0.1.0/24"), // }, // Delegations: network.SubnetDelegationArray{ // &network.SubnetDelegationArgs{ // Name: pulumi.String("example-delegation"), // ServiceDelegation: &network.SubnetDelegationServiceDelegationArgs{ // Name: pulumi.String("Microsoft.Web/serverFarms"), // Actions: pulumi.StringArray{ // pulumi.String("Microsoft.Network/virtualNetworks/subnets/action"), // }, // }, // }, // }, // }) // if err != nil { // return err // } // examplePlan, err := appservice.NewPlan(ctx, "example", &appservice.PlanArgs{ // Name: pulumi.String("example-app-service-plan"), // Location: example.Location, // ResourceGroupName: example.Name, // Sku: &appservice.PlanSkuArgs{ // Tier: pulumi.String("Standard"), // Size: pulumi.String("S1"), // }, // }) // if err != nil { // return err // } // exampleAccount, err := storage.NewAccount(ctx, "example", &storage.AccountArgs{ // Name: pulumi.String("functionsappexamplesa"), // ResourceGroupName: example.Name, // Location: example.Location, // AccountTier: pulumi.String("Standard"), // AccountReplicationType: pulumi.String("LRS"), // }) // if err != nil { // return err // } // exampleFunctionApp, err := appservice.NewFunctionApp(ctx, "example", &appservice.FunctionAppArgs{ // Name: pulumi.String("example-function-app"), // Location: example.Location, // ResourceGroupName: example.Name, // AppServicePlanId: examplePlan.ID(), // StorageAccountName: exampleAccount.Name, // StorageAccountAccessKey: exampleAccount.PrimaryAccessKey, // }) // if err != nil { // return err // } // _, err = appservice.NewVirtualNetworkSwiftConnection(ctx, "example", &appservice.VirtualNetworkSwiftConnectionArgs{ // AppServiceId: exampleFunctionApp.ID(), // SubnetId: exampleSubnet.ID(), // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## Import // // App Service Virtual Network Associations can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:appservice/virtualNetworkSwiftConnection:VirtualNetworkSwiftConnection myassociation /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Web/sites/instance1/config/virtualNetwork // ``` type VirtualNetworkSwiftConnection struct { pulumi.CustomResourceState // The ID of the App Service or Function App to associate to the VNet. Changing this forces a new resource to be created. AppServiceId pulumi.StringOutput `pulumi:"appServiceId"` // The ID of the subnet the app service will be associated to (the subnet must have a `serviceDelegation` configured for `Microsoft.Web/serverFarms`). SubnetId pulumi.StringOutput `pulumi:"subnetId"` } // NewVirtualNetworkSwiftConnection registers a new resource with the given unique name, arguments, and options. func NewVirtualNetworkSwiftConnection(ctx *pulumi.Context, name string, args *VirtualNetworkSwiftConnectionArgs, opts ...pulumi.ResourceOption) (*VirtualNetworkSwiftConnection, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.AppServiceId == nil { return nil, errors.New("invalid value for required argument 'AppServiceId'") } if args.SubnetId == nil { return nil, errors.New("invalid value for required argument 'SubnetId'") } opts = internal.PkgResourceDefaultOpts(opts) var resource VirtualNetworkSwiftConnection err := ctx.RegisterResource("azure:appservice/virtualNetworkSwiftConnection:VirtualNetworkSwiftConnection", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetVirtualNetworkSwiftConnection gets an existing VirtualNetworkSwiftConnection 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 GetVirtualNetworkSwiftConnection(ctx *pulumi.Context, name string, id pulumi.IDInput, state *VirtualNetworkSwiftConnectionState, opts ...pulumi.ResourceOption) (*VirtualNetworkSwiftConnection, error) { var resource VirtualNetworkSwiftConnection err := ctx.ReadResource("azure:appservice/virtualNetworkSwiftConnection:VirtualNetworkSwiftConnection", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering VirtualNetworkSwiftConnection resources. type virtualNetworkSwiftConnectionState struct { // The ID of the App Service or Function App to associate to the VNet. Changing this forces a new resource to be created. AppServiceId *string `pulumi:"appServiceId"` // The ID of the subnet the app service will be associated to (the subnet must have a `serviceDelegation` configured for `Microsoft.Web/serverFarms`). SubnetId *string `pulumi:"subnetId"` } type VirtualNetworkSwiftConnectionState struct { // The ID of the App Service or Function App to associate to the VNet. Changing this forces a new resource to be created. AppServiceId pulumi.StringPtrInput // The ID of the subnet the app service will be associated to (the subnet must have a `serviceDelegation` configured for `Microsoft.Web/serverFarms`). SubnetId pulumi.StringPtrInput } func (VirtualNetworkSwiftConnectionState) ElementType() reflect.Type { return reflect.TypeOf((*virtualNetworkSwiftConnectionState)(nil)).Elem() } type virtualNetworkSwiftConnectionArgs struct { // The ID of the App Service or Function App to associate to the VNet. Changing this forces a new resource to be created. AppServiceId string `pulumi:"appServiceId"` // The ID of the subnet the app service will be associated to (the subnet must have a `serviceDelegation` configured for `Microsoft.Web/serverFarms`). SubnetId string `pulumi:"subnetId"` } // The set of arguments for constructing a VirtualNetworkSwiftConnection resource. type VirtualNetworkSwiftConnectionArgs struct { // The ID of the App Service or Function App to associate to the VNet. Changing this forces a new resource to be created. AppServiceId pulumi.StringInput // The ID of the subnet the app service will be associated to (the subnet must have a `serviceDelegation` configured for `Microsoft.Web/serverFarms`). SubnetId pulumi.StringInput } func (VirtualNetworkSwiftConnectionArgs) ElementType() reflect.Type { return reflect.TypeOf((*virtualNetworkSwiftConnectionArgs)(nil)).Elem() } type VirtualNetworkSwiftConnectionInput interface { pulumi.Input ToVirtualNetworkSwiftConnectionOutput() VirtualNetworkSwiftConnectionOutput ToVirtualNetworkSwiftConnectionOutputWithContext(ctx context.Context) VirtualNetworkSwiftConnectionOutput } func (*VirtualNetworkSwiftConnection) ElementType() reflect.Type { return reflect.TypeOf((**VirtualNetworkSwiftConnection)(nil)).Elem() } func (i *VirtualNetworkSwiftConnection) ToVirtualNetworkSwiftConnectionOutput() VirtualNetworkSwiftConnectionOutput { return i.ToVirtualNetworkSwiftConnectionOutputWithContext(context.Background()) } func (i *VirtualNetworkSwiftConnection) ToVirtualNetworkSwiftConnectionOutputWithContext(ctx context.Context) VirtualNetworkSwiftConnectionOutput { return pulumi.ToOutputWithContext(ctx, i).(VirtualNetworkSwiftConnectionOutput) } // VirtualNetworkSwiftConnectionArrayInput is an input type that accepts VirtualNetworkSwiftConnectionArray and VirtualNetworkSwiftConnectionArrayOutput values. // You can construct a concrete instance of `VirtualNetworkSwiftConnectionArrayInput` via: // // VirtualNetworkSwiftConnectionArray{ VirtualNetworkSwiftConnectionArgs{...} } type VirtualNetworkSwiftConnectionArrayInput interface { pulumi.Input ToVirtualNetworkSwiftConnectionArrayOutput() VirtualNetworkSwiftConnectionArrayOutput ToVirtualNetworkSwiftConnectionArrayOutputWithContext(context.Context) VirtualNetworkSwiftConnectionArrayOutput } type VirtualNetworkSwiftConnectionArray []VirtualNetworkSwiftConnectionInput func (VirtualNetworkSwiftConnectionArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*VirtualNetworkSwiftConnection)(nil)).Elem() } func (i VirtualNetworkSwiftConnectionArray) ToVirtualNetworkSwiftConnectionArrayOutput() VirtualNetworkSwiftConnectionArrayOutput { return i.ToVirtualNetworkSwiftConnectionArrayOutputWithContext(context.Background()) } func (i VirtualNetworkSwiftConnectionArray) ToVirtualNetworkSwiftConnectionArrayOutputWithContext(ctx context.Context) VirtualNetworkSwiftConnectionArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(VirtualNetworkSwiftConnectionArrayOutput) } // VirtualNetworkSwiftConnectionMapInput is an input type that accepts VirtualNetworkSwiftConnectionMap and VirtualNetworkSwiftConnectionMapOutput values. // You can construct a concrete instance of `VirtualNetworkSwiftConnectionMapInput` via: // // VirtualNetworkSwiftConnectionMap{ "key": VirtualNetworkSwiftConnectionArgs{...} } type VirtualNetworkSwiftConnectionMapInput interface { pulumi.Input ToVirtualNetworkSwiftConnectionMapOutput() VirtualNetworkSwiftConnectionMapOutput ToVirtualNetworkSwiftConnectionMapOutputWithContext(context.Context) VirtualNetworkSwiftConnectionMapOutput } type VirtualNetworkSwiftConnectionMap map[string]VirtualNetworkSwiftConnectionInput func (VirtualNetworkSwiftConnectionMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*VirtualNetworkSwiftConnection)(nil)).Elem() } func (i VirtualNetworkSwiftConnectionMap) ToVirtualNetworkSwiftConnectionMapOutput() VirtualNetworkSwiftConnectionMapOutput { return i.ToVirtualNetworkSwiftConnectionMapOutputWithContext(context.Background()) } func (i VirtualNetworkSwiftConnectionMap) ToVirtualNetworkSwiftConnectionMapOutputWithContext(ctx context.Context) VirtualNetworkSwiftConnectionMapOutput { return pulumi.ToOutputWithContext(ctx, i).(VirtualNetworkSwiftConnectionMapOutput) } type VirtualNetworkSwiftConnectionOutput struct{ *pulumi.OutputState } func (VirtualNetworkSwiftConnectionOutput) ElementType() reflect.Type { return reflect.TypeOf((**VirtualNetworkSwiftConnection)(nil)).Elem() } func (o VirtualNetworkSwiftConnectionOutput) ToVirtualNetworkSwiftConnectionOutput() VirtualNetworkSwiftConnectionOutput { return o } func (o VirtualNetworkSwiftConnectionOutput) ToVirtualNetworkSwiftConnectionOutputWithContext(ctx context.Context) VirtualNetworkSwiftConnectionOutput { return o } // The ID of the App Service or Function App to associate to the VNet. Changing this forces a new resource to be created. func (o VirtualNetworkSwiftConnectionOutput) AppServiceId() pulumi.StringOutput { return o.ApplyT(func(v *VirtualNetworkSwiftConnection) pulumi.StringOutput { return v.AppServiceId }).(pulumi.StringOutput) } // The ID of the subnet the app service will be associated to (the subnet must have a `serviceDelegation` configured for `Microsoft.Web/serverFarms`). func (o VirtualNetworkSwiftConnectionOutput) SubnetId() pulumi.StringOutput { return o.ApplyT(func(v *VirtualNetworkSwiftConnection) pulumi.StringOutput { return v.SubnetId }).(pulumi.StringOutput) } type VirtualNetworkSwiftConnectionArrayOutput struct{ *pulumi.OutputState } func (VirtualNetworkSwiftConnectionArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*VirtualNetworkSwiftConnection)(nil)).Elem() } func (o VirtualNetworkSwiftConnectionArrayOutput) ToVirtualNetworkSwiftConnectionArrayOutput() VirtualNetworkSwiftConnectionArrayOutput { return o } func (o VirtualNetworkSwiftConnectionArrayOutput) ToVirtualNetworkSwiftConnectionArrayOutputWithContext(ctx context.Context) VirtualNetworkSwiftConnectionArrayOutput { return o } func (o VirtualNetworkSwiftConnectionArrayOutput) Index(i pulumi.IntInput) VirtualNetworkSwiftConnectionOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *VirtualNetworkSwiftConnection { return vs[0].([]*VirtualNetworkSwiftConnection)[vs[1].(int)] }).(VirtualNetworkSwiftConnectionOutput) } type VirtualNetworkSwiftConnectionMapOutput struct{ *pulumi.OutputState } func (VirtualNetworkSwiftConnectionMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*VirtualNetworkSwiftConnection)(nil)).Elem() } func (o VirtualNetworkSwiftConnectionMapOutput) ToVirtualNetworkSwiftConnectionMapOutput() VirtualNetworkSwiftConnectionMapOutput { return o } func (o VirtualNetworkSwiftConnectionMapOutput) ToVirtualNetworkSwiftConnectionMapOutputWithContext(ctx context.Context) VirtualNetworkSwiftConnectionMapOutput { return o } func (o VirtualNetworkSwiftConnectionMapOutput) MapIndex(k pulumi.StringInput) VirtualNetworkSwiftConnectionOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *VirtualNetworkSwiftConnection { return vs[0].(map[string]*VirtualNetworkSwiftConnection)[vs[1].(string)] }).(VirtualNetworkSwiftConnectionOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*VirtualNetworkSwiftConnectionInput)(nil)).Elem(), &VirtualNetworkSwiftConnection{}) pulumi.RegisterInputType(reflect.TypeOf((*VirtualNetworkSwiftConnectionArrayInput)(nil)).Elem(), VirtualNetworkSwiftConnectionArray{}) pulumi.RegisterInputType(reflect.TypeOf((*VirtualNetworkSwiftConnectionMapInput)(nil)).Elem(), VirtualNetworkSwiftConnectionMap{}) pulumi.RegisterOutputType(VirtualNetworkSwiftConnectionOutput{}) pulumi.RegisterOutputType(VirtualNetworkSwiftConnectionArrayOutput{}) pulumi.RegisterOutputType(VirtualNetworkSwiftConnectionMapOutput{}) }
go
Apache-2.0
b66e1472775a89cca43f5050fef806854a7c3fa3
2026-01-07T09:44:27.619514Z
false
pulumi/pulumi-azure
https://github.com/pulumi/pulumi-azure/blob/b66e1472775a89cca43f5050fef806854a7c3fa3/sdk/go/azure/appservice/appFlexConsumption.go
sdk/go/azure/appservice/appFlexConsumption.go
// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package appservice import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a Function App Running on a Flex Consumption Plan. // // ## Example Usage // // ```go // package main // // import ( // // "fmt" // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/appservice" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/storage" // "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-resources"), // Location: pulumi.String("West Europe"), // }) // if err != nil { // return err // } // exampleAccount, err := storage.NewAccount(ctx, "example", &storage.AccountArgs{ // Name: pulumi.String("examplelinuxfunctionappsa"), // ResourceGroupName: example.Name, // Location: example.Location, // AccountTier: pulumi.String("Standard"), // AccountReplicationType: pulumi.String("LRS"), // }) // if err != nil { // return err // } // exampleContainer, err := storage.NewContainer(ctx, "example", &storage.ContainerArgs{ // Name: pulumi.String("example-flexcontainer"), // StorageAccountId: exampleAccount.ID(), // ContainerAccessType: pulumi.String("private"), // }) // if err != nil { // return err // } // exampleServicePlan, err := appservice.NewServicePlan(ctx, "example", &appservice.ServicePlanArgs{ // Name: pulumi.String("example-app-service-plan"), // ResourceGroupName: example.Name, // Location: example.Location, // SkuName: pulumi.String("FC1"), // OsType: pulumi.String("Linux"), // }) // if err != nil { // return err // } // _, err = appservice.NewAppFlexConsumption(ctx, "example", &appservice.AppFlexConsumptionArgs{ // Name: pulumi.String("example-linux-function-app"), // ResourceGroupName: example.Name, // Location: example.Location, // ServicePlanId: exampleServicePlan.ID(), // StorageContainerType: pulumi.String("blobContainer"), // StorageContainerEndpoint: pulumi.All(exampleAccount.PrimaryBlobEndpoint, exampleContainer.Name).ApplyT(func(_args []interface{}) (string, error) { // primaryBlobEndpoint := _args[0].(string) // name := _args[1].(string) // return fmt.Sprintf("%v%v", primaryBlobEndpoint, name), nil // }).(pulumi.StringOutput), // StorageAuthenticationType: pulumi.String("StorageAccountConnectionString"), // StorageAccessKey: exampleAccount.PrimaryAccessKey, // RuntimeName: pulumi.String("node"), // RuntimeVersion: pulumi.String("20"), // MaximumInstanceCount: pulumi.Int(50), // InstanceMemoryInMb: pulumi.Int(2048), // SiteConfig: &appservice.AppFlexConsumptionSiteConfigArgs{}, // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## API Providers // // <!-- This section is generated, changes will be overwritten --> // This resource uses the following Azure API Providers: // // * `Microsoft.Web` - 2023-12-01, 2023-01-01 // // ## Import // // The Function Apps can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:appservice/appFlexConsumption:AppFlexConsumption example /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/resGroup1/providers/Microsoft.Web/sites/site1 // ``` type AppFlexConsumption struct { pulumi.CustomResourceState // One or more `alwaysReady` blocks as defined below. AlwaysReadies AppFlexConsumptionAlwaysReadyArrayOutput `pulumi:"alwaysReadies"` // A map of key-value pairs for [App Settings](https://docs.microsoft.com/en-us/azure/azure-functions/functions-app-settings) and custom values. AppSettings pulumi.StringMapOutput `pulumi:"appSettings"` // A `authSettings` block as defined below. AuthSettings AppFlexConsumptionAuthSettingsPtrOutput `pulumi:"authSettings"` // An `authSettingsV2` block as defined below. AuthSettingsV2 AppFlexConsumptionAuthSettingsV2PtrOutput `pulumi:"authSettingsV2"` // Should the function app use Client Certificates. ClientCertificateEnabled pulumi.BoolPtrOutput `pulumi:"clientCertificateEnabled"` // Paths to exclude when using client certificates, separated by ; ClientCertificateExclusionPaths pulumi.StringPtrOutput `pulumi:"clientCertificateExclusionPaths"` // The mode of the Function App's client certificates requirement for incoming requests. Possible values are `Required`, `Optional`, and `OptionalInteractiveUser`. Defaults to `Optional`. ClientCertificateMode pulumi.StringPtrOutput `pulumi:"clientCertificateMode"` // One or more `connectionString` blocks as defined below. ConnectionStrings AppFlexConsumptionConnectionStringArrayOutput `pulumi:"connectionStrings"` // The identifier used by App Service to perform domain ownership verification via DNS TXT record. CustomDomainVerificationId pulumi.StringOutput `pulumi:"customDomainVerificationId"` // The default hostname of the Linux Function App. DefaultHostname pulumi.StringOutput `pulumi:"defaultHostname"` // Is the Function App enabled? Defaults to `true`. Enabled pulumi.BoolPtrOutput `pulumi:"enabled"` // The ID of the App Service Environment used by Function App. HostingEnvironmentId pulumi.StringOutput `pulumi:"hostingEnvironmentId"` // The Http concurrency of the instances on which your app runs. The supported value are from `1` to `1000`. // // > **Note:** A value will be assigned by the system if `httpConcurrency` is not specified. HttpConcurrency pulumi.IntPtrOutput `pulumi:"httpConcurrency"` // Is Https Connection enforced to the function app. Defaults to `false` HttpsOnly pulumi.BoolPtrOutput `pulumi:"httpsOnly"` // A `identity` block as defined below. Identity AppFlexConsumptionIdentityPtrOutput `pulumi:"identity"` // The memory size of the instances on which your app runs. Reference the Microsoft Documentation for the [currently supported values](https://learn.microsoft.com/en-us/azure/azure-functions/flex-consumption-plan#instance-memory). Defaults to `2048`. InstanceMemoryInMb pulumi.IntPtrOutput `pulumi:"instanceMemoryInMb"` // The Kind value for this Linux Function App. Kind pulumi.StringOutput `pulumi:"kind"` // The Azure Region where the Function App should exist. Changing this forces a new Function App to be created. Location pulumi.StringOutput `pulumi:"location"` // The number of workers this function app can scale out to. MaximumInstanceCount pulumi.IntPtrOutput `pulumi:"maximumInstanceCount"` // The name which should be used for this Function App. Changing this forces a new Function App to be created. Limit the function name to 32 characters to avoid naming collisions. For more information about [Function App naming rule](https://docs.microsoft.com/en-us/azure/azure-resource-manager/management/resource-name-rules#microsoftweb) and [Host ID Collisions](https://github.com/Azure/azure-functions-host/wiki/Host-IDs#host-id-collisions) Name pulumi.StringOutput `pulumi:"name"` // A list of outbound IP addresses. For example `["52.23.25.3", "52.143.43.12"]` OutboundIpAddressLists pulumi.StringArrayOutput `pulumi:"outboundIpAddressLists"` // A comma separated list of outbound IP addresses as a string. For example `52.23.25.3,52.143.43.12`. OutboundIpAddresses pulumi.StringOutput `pulumi:"outboundIpAddresses"` // A list of possible outbound IP addresses, not all of which are necessarily in use. This is a superset of `outboundIpAddressList`. For example `["52.23.25.3", "52.143.43.12"]`. PossibleOutboundIpAddressLists pulumi.StringArrayOutput `pulumi:"possibleOutboundIpAddressLists"` // A comma separated list of possible outbound IP addresses as a string. For example `52.23.25.3,52.143.43.12,52.143.43.17`. This is a superset of `outboundIpAddresses`. PossibleOutboundIpAddresses pulumi.StringOutput `pulumi:"possibleOutboundIpAddresses"` // Should public network access be enabled for the Function App. Defaults to `true`. PublicNetworkAccessEnabled pulumi.BoolPtrOutput `pulumi:"publicNetworkAccessEnabled"` // The name of the Resource Group where the Function App should exist. Changing this forces a new Linux Function App to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // The Runtime of the Linux Function App. Possible values are `node`, `dotnet-isolated`, `powershell`, `python`, `java` and `custom`. RuntimeName pulumi.StringOutput `pulumi:"runtimeName"` // The Runtime version of the Linux Function App. The values are diff from different runtime version. The supported values are `8.0`, `9.0` for `dotnet-isolated`, `20` for `node`, `3.10`, `3.11` for `python`, `11`, `17` for `java`, `7.4` for `powershell`. RuntimeVersion pulumi.StringOutput `pulumi:"runtimeVersion"` // The ID of the App Service Plan within which to create this Function App. Changing this forces a new Linux Function App to be created. ServicePlanId pulumi.StringOutput `pulumi:"servicePlanId"` // A `siteConfig` block as defined below. SiteConfig AppFlexConsumptionSiteConfigOutput `pulumi:"siteConfig"` // A `siteCredential` block as defined below. SiteCredentials AppFlexConsumptionSiteCredentialArrayOutput `pulumi:"siteCredentials"` // A `stickySettings` block as defined below. StickySettings AppFlexConsumptionStickySettingsPtrOutput `pulumi:"stickySettings"` // The access key which will be used to access the backend storage account for the Function App. // // > **Note:** The `storageAccessKey` must be specified when `storageAuthenticationType` is set to `StorageAccountConnectionString`. StorageAccessKey pulumi.StringPtrOutput `pulumi:"storageAccessKey"` // The authentication type which will be used to access the backend storage account for the Function App. Possible values are `StorageAccountConnectionString`, `SystemAssignedIdentity`, and `UserAssignedIdentity`. StorageAuthenticationType pulumi.StringOutput `pulumi:"storageAuthenticationType"` // The backend storage container endpoint which will be used by this Function App. StorageContainerEndpoint pulumi.StringOutput `pulumi:"storageContainerEndpoint"` // The storage container type used for the Function App. The current supported type is `blobContainer`. StorageContainerType pulumi.StringOutput `pulumi:"storageContainerType"` // The user assigned Managed Identity to access the storage account. Conflicts with `storageAccessKey`. // // > **Note:** The `storageUserAssignedIdentityId` must be specified when `storageAuthenticationType` is set to `UserAssignedIdentity`. StorageUserAssignedIdentityId pulumi.StringPtrOutput `pulumi:"storageUserAssignedIdentityId"` // A mapping of tags which should be assigned to the Linux Function App. Tags pulumi.StringMapOutput `pulumi:"tags"` VirtualNetworkSubnetId pulumi.StringPtrOutput `pulumi:"virtualNetworkSubnetId"` // Should the default WebDeploy Basic Authentication publishing credentials enabled. Defaults to `true`. // // > **Note:** Setting this value to true will disable the ability to use `zipDeployFile` which currently relies on the default publishing profile. WebdeployPublishBasicAuthenticationEnabled pulumi.BoolPtrOutput `pulumi:"webdeployPublishBasicAuthenticationEnabled"` // The local path and filename of the Zip packaged application to deploy to this Linux Function App. // // > **Note:** Using this value requires either `WEBSITE_RUN_FROM_PACKAGE=1` or `SCM_DO_BUILD_DURING_DEPLOYMENT=true` to be set on the App in `appSettings`. Refer to the [Azure docs](https://learn.microsoft.com/en-us/azure/azure-functions/functions-deployment-technologies) for further details. ZipDeployFile pulumi.StringOutput `pulumi:"zipDeployFile"` } // NewAppFlexConsumption registers a new resource with the given unique name, arguments, and options. func NewAppFlexConsumption(ctx *pulumi.Context, name string, args *AppFlexConsumptionArgs, opts ...pulumi.ResourceOption) (*AppFlexConsumption, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.ResourceGroupName == nil { return nil, errors.New("invalid value for required argument 'ResourceGroupName'") } if args.RuntimeName == nil { return nil, errors.New("invalid value for required argument 'RuntimeName'") } if args.RuntimeVersion == nil { return nil, errors.New("invalid value for required argument 'RuntimeVersion'") } if args.ServicePlanId == nil { return nil, errors.New("invalid value for required argument 'ServicePlanId'") } if args.SiteConfig == nil { return nil, errors.New("invalid value for required argument 'SiteConfig'") } if args.StorageAuthenticationType == nil { return nil, errors.New("invalid value for required argument 'StorageAuthenticationType'") } if args.StorageContainerEndpoint == nil { return nil, errors.New("invalid value for required argument 'StorageContainerEndpoint'") } if args.StorageContainerType == nil { return nil, errors.New("invalid value for required argument 'StorageContainerType'") } secrets := pulumi.AdditionalSecretOutputs([]string{ "customDomainVerificationId", "siteCredentials", }) opts = append(opts, secrets) opts = internal.PkgResourceDefaultOpts(opts) var resource AppFlexConsumption err := ctx.RegisterResource("azure:appservice/appFlexConsumption:AppFlexConsumption", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetAppFlexConsumption gets an existing AppFlexConsumption 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 GetAppFlexConsumption(ctx *pulumi.Context, name string, id pulumi.IDInput, state *AppFlexConsumptionState, opts ...pulumi.ResourceOption) (*AppFlexConsumption, error) { var resource AppFlexConsumption err := ctx.ReadResource("azure:appservice/appFlexConsumption:AppFlexConsumption", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering AppFlexConsumption resources. type appFlexConsumptionState struct { // One or more `alwaysReady` blocks as defined below. AlwaysReadies []AppFlexConsumptionAlwaysReady `pulumi:"alwaysReadies"` // A map of key-value pairs for [App Settings](https://docs.microsoft.com/en-us/azure/azure-functions/functions-app-settings) and custom values. AppSettings map[string]string `pulumi:"appSettings"` // A `authSettings` block as defined below. AuthSettings *AppFlexConsumptionAuthSettings `pulumi:"authSettings"` // An `authSettingsV2` block as defined below. AuthSettingsV2 *AppFlexConsumptionAuthSettingsV2 `pulumi:"authSettingsV2"` // Should the function app use Client Certificates. ClientCertificateEnabled *bool `pulumi:"clientCertificateEnabled"` // Paths to exclude when using client certificates, separated by ; ClientCertificateExclusionPaths *string `pulumi:"clientCertificateExclusionPaths"` // The mode of the Function App's client certificates requirement for incoming requests. Possible values are `Required`, `Optional`, and `OptionalInteractiveUser`. Defaults to `Optional`. ClientCertificateMode *string `pulumi:"clientCertificateMode"` // One or more `connectionString` blocks as defined below. ConnectionStrings []AppFlexConsumptionConnectionString `pulumi:"connectionStrings"` // The identifier used by App Service to perform domain ownership verification via DNS TXT record. CustomDomainVerificationId *string `pulumi:"customDomainVerificationId"` // The default hostname of the Linux Function App. DefaultHostname *string `pulumi:"defaultHostname"` // Is the Function App enabled? Defaults to `true`. Enabled *bool `pulumi:"enabled"` // The ID of the App Service Environment used by Function App. HostingEnvironmentId *string `pulumi:"hostingEnvironmentId"` // The Http concurrency of the instances on which your app runs. The supported value are from `1` to `1000`. // // > **Note:** A value will be assigned by the system if `httpConcurrency` is not specified. HttpConcurrency *int `pulumi:"httpConcurrency"` // Is Https Connection enforced to the function app. Defaults to `false` HttpsOnly *bool `pulumi:"httpsOnly"` // A `identity` block as defined below. Identity *AppFlexConsumptionIdentity `pulumi:"identity"` // The memory size of the instances on which your app runs. Reference the Microsoft Documentation for the [currently supported values](https://learn.microsoft.com/en-us/azure/azure-functions/flex-consumption-plan#instance-memory). Defaults to `2048`. InstanceMemoryInMb *int `pulumi:"instanceMemoryInMb"` // The Kind value for this Linux Function App. Kind *string `pulumi:"kind"` // The Azure Region where the Function App should exist. Changing this forces a new Function App to be created. Location *string `pulumi:"location"` // The number of workers this function app can scale out to. MaximumInstanceCount *int `pulumi:"maximumInstanceCount"` // The name which should be used for this Function App. Changing this forces a new Function App to be created. Limit the function name to 32 characters to avoid naming collisions. For more information about [Function App naming rule](https://docs.microsoft.com/en-us/azure/azure-resource-manager/management/resource-name-rules#microsoftweb) and [Host ID Collisions](https://github.com/Azure/azure-functions-host/wiki/Host-IDs#host-id-collisions) Name *string `pulumi:"name"` // A list of outbound IP addresses. For example `["52.23.25.3", "52.143.43.12"]` OutboundIpAddressLists []string `pulumi:"outboundIpAddressLists"` // A comma separated list of outbound IP addresses as a string. For example `52.23.25.3,52.143.43.12`. OutboundIpAddresses *string `pulumi:"outboundIpAddresses"` // A list of possible outbound IP addresses, not all of which are necessarily in use. This is a superset of `outboundIpAddressList`. For example `["52.23.25.3", "52.143.43.12"]`. PossibleOutboundIpAddressLists []string `pulumi:"possibleOutboundIpAddressLists"` // A comma separated list of possible outbound IP addresses as a string. For example `52.23.25.3,52.143.43.12,52.143.43.17`. This is a superset of `outboundIpAddresses`. PossibleOutboundIpAddresses *string `pulumi:"possibleOutboundIpAddresses"` // Should public network access be enabled for the Function App. Defaults to `true`. PublicNetworkAccessEnabled *bool `pulumi:"publicNetworkAccessEnabled"` // The name of the Resource Group where the Function App should exist. Changing this forces a new Linux Function App to be created. ResourceGroupName *string `pulumi:"resourceGroupName"` // The Runtime of the Linux Function App. Possible values are `node`, `dotnet-isolated`, `powershell`, `python`, `java` and `custom`. RuntimeName *string `pulumi:"runtimeName"` // The Runtime version of the Linux Function App. The values are diff from different runtime version. The supported values are `8.0`, `9.0` for `dotnet-isolated`, `20` for `node`, `3.10`, `3.11` for `python`, `11`, `17` for `java`, `7.4` for `powershell`. RuntimeVersion *string `pulumi:"runtimeVersion"` // The ID of the App Service Plan within which to create this Function App. Changing this forces a new Linux Function App to be created. ServicePlanId *string `pulumi:"servicePlanId"` // A `siteConfig` block as defined below. SiteConfig *AppFlexConsumptionSiteConfig `pulumi:"siteConfig"` // A `siteCredential` block as defined below. SiteCredentials []AppFlexConsumptionSiteCredential `pulumi:"siteCredentials"` // A `stickySettings` block as defined below. StickySettings *AppFlexConsumptionStickySettings `pulumi:"stickySettings"` // The access key which will be used to access the backend storage account for the Function App. // // > **Note:** The `storageAccessKey` must be specified when `storageAuthenticationType` is set to `StorageAccountConnectionString`. StorageAccessKey *string `pulumi:"storageAccessKey"` // The authentication type which will be used to access the backend storage account for the Function App. Possible values are `StorageAccountConnectionString`, `SystemAssignedIdentity`, and `UserAssignedIdentity`. StorageAuthenticationType *string `pulumi:"storageAuthenticationType"` // The backend storage container endpoint which will be used by this Function App. StorageContainerEndpoint *string `pulumi:"storageContainerEndpoint"` // The storage container type used for the Function App. The current supported type is `blobContainer`. StorageContainerType *string `pulumi:"storageContainerType"` // The user assigned Managed Identity to access the storage account. Conflicts with `storageAccessKey`. // // > **Note:** The `storageUserAssignedIdentityId` must be specified when `storageAuthenticationType` is set to `UserAssignedIdentity`. StorageUserAssignedIdentityId *string `pulumi:"storageUserAssignedIdentityId"` // A mapping of tags which should be assigned to the Linux Function App. Tags map[string]string `pulumi:"tags"` VirtualNetworkSubnetId *string `pulumi:"virtualNetworkSubnetId"` // Should the default WebDeploy Basic Authentication publishing credentials enabled. Defaults to `true`. // // > **Note:** Setting this value to true will disable the ability to use `zipDeployFile` which currently relies on the default publishing profile. WebdeployPublishBasicAuthenticationEnabled *bool `pulumi:"webdeployPublishBasicAuthenticationEnabled"` // The local path and filename of the Zip packaged application to deploy to this Linux Function App. // // > **Note:** Using this value requires either `WEBSITE_RUN_FROM_PACKAGE=1` or `SCM_DO_BUILD_DURING_DEPLOYMENT=true` to be set on the App in `appSettings`. Refer to the [Azure docs](https://learn.microsoft.com/en-us/azure/azure-functions/functions-deployment-technologies) for further details. ZipDeployFile *string `pulumi:"zipDeployFile"` } type AppFlexConsumptionState struct { // One or more `alwaysReady` blocks as defined below. AlwaysReadies AppFlexConsumptionAlwaysReadyArrayInput // A map of key-value pairs for [App Settings](https://docs.microsoft.com/en-us/azure/azure-functions/functions-app-settings) and custom values. AppSettings pulumi.StringMapInput // A `authSettings` block as defined below. AuthSettings AppFlexConsumptionAuthSettingsPtrInput // An `authSettingsV2` block as defined below. AuthSettingsV2 AppFlexConsumptionAuthSettingsV2PtrInput // Should the function app use Client Certificates. ClientCertificateEnabled pulumi.BoolPtrInput // Paths to exclude when using client certificates, separated by ; ClientCertificateExclusionPaths pulumi.StringPtrInput // The mode of the Function App's client certificates requirement for incoming requests. Possible values are `Required`, `Optional`, and `OptionalInteractiveUser`. Defaults to `Optional`. ClientCertificateMode pulumi.StringPtrInput // One or more `connectionString` blocks as defined below. ConnectionStrings AppFlexConsumptionConnectionStringArrayInput // The identifier used by App Service to perform domain ownership verification via DNS TXT record. CustomDomainVerificationId pulumi.StringPtrInput // The default hostname of the Linux Function App. DefaultHostname pulumi.StringPtrInput // Is the Function App enabled? Defaults to `true`. Enabled pulumi.BoolPtrInput // The ID of the App Service Environment used by Function App. HostingEnvironmentId pulumi.StringPtrInput // The Http concurrency of the instances on which your app runs. The supported value are from `1` to `1000`. // // > **Note:** A value will be assigned by the system if `httpConcurrency` is not specified. HttpConcurrency pulumi.IntPtrInput // Is Https Connection enforced to the function app. Defaults to `false` HttpsOnly pulumi.BoolPtrInput // A `identity` block as defined below. Identity AppFlexConsumptionIdentityPtrInput // The memory size of the instances on which your app runs. Reference the Microsoft Documentation for the [currently supported values](https://learn.microsoft.com/en-us/azure/azure-functions/flex-consumption-plan#instance-memory). Defaults to `2048`. InstanceMemoryInMb pulumi.IntPtrInput // The Kind value for this Linux Function App. Kind pulumi.StringPtrInput // The Azure Region where the Function App should exist. Changing this forces a new Function App to be created. Location pulumi.StringPtrInput // The number of workers this function app can scale out to. MaximumInstanceCount pulumi.IntPtrInput // The name which should be used for this Function App. Changing this forces a new Function App to be created. Limit the function name to 32 characters to avoid naming collisions. For more information about [Function App naming rule](https://docs.microsoft.com/en-us/azure/azure-resource-manager/management/resource-name-rules#microsoftweb) and [Host ID Collisions](https://github.com/Azure/azure-functions-host/wiki/Host-IDs#host-id-collisions) Name pulumi.StringPtrInput // A list of outbound IP addresses. For example `["52.23.25.3", "52.143.43.12"]` OutboundIpAddressLists pulumi.StringArrayInput // A comma separated list of outbound IP addresses as a string. For example `52.23.25.3,52.143.43.12`. OutboundIpAddresses pulumi.StringPtrInput // A list of possible outbound IP addresses, not all of which are necessarily in use. This is a superset of `outboundIpAddressList`. For example `["52.23.25.3", "52.143.43.12"]`. PossibleOutboundIpAddressLists pulumi.StringArrayInput // A comma separated list of possible outbound IP addresses as a string. For example `52.23.25.3,52.143.43.12,52.143.43.17`. This is a superset of `outboundIpAddresses`. PossibleOutboundIpAddresses pulumi.StringPtrInput // Should public network access be enabled for the Function App. Defaults to `true`. PublicNetworkAccessEnabled pulumi.BoolPtrInput // The name of the Resource Group where the Function App should exist. Changing this forces a new Linux Function App to be created. ResourceGroupName pulumi.StringPtrInput // The Runtime of the Linux Function App. Possible values are `node`, `dotnet-isolated`, `powershell`, `python`, `java` and `custom`. RuntimeName pulumi.StringPtrInput // The Runtime version of the Linux Function App. The values are diff from different runtime version. The supported values are `8.0`, `9.0` for `dotnet-isolated`, `20` for `node`, `3.10`, `3.11` for `python`, `11`, `17` for `java`, `7.4` for `powershell`. RuntimeVersion pulumi.StringPtrInput // The ID of the App Service Plan within which to create this Function App. Changing this forces a new Linux Function App to be created. ServicePlanId pulumi.StringPtrInput // A `siteConfig` block as defined below. SiteConfig AppFlexConsumptionSiteConfigPtrInput // A `siteCredential` block as defined below. SiteCredentials AppFlexConsumptionSiteCredentialArrayInput // A `stickySettings` block as defined below. StickySettings AppFlexConsumptionStickySettingsPtrInput // The access key which will be used to access the backend storage account for the Function App. // // > **Note:** The `storageAccessKey` must be specified when `storageAuthenticationType` is set to `StorageAccountConnectionString`. StorageAccessKey pulumi.StringPtrInput // The authentication type which will be used to access the backend storage account for the Function App. Possible values are `StorageAccountConnectionString`, `SystemAssignedIdentity`, and `UserAssignedIdentity`. StorageAuthenticationType pulumi.StringPtrInput // The backend storage container endpoint which will be used by this Function App. StorageContainerEndpoint pulumi.StringPtrInput // The storage container type used for the Function App. The current supported type is `blobContainer`. StorageContainerType pulumi.StringPtrInput // The user assigned Managed Identity to access the storage account. Conflicts with `storageAccessKey`. // // > **Note:** The `storageUserAssignedIdentityId` must be specified when `storageAuthenticationType` is set to `UserAssignedIdentity`. StorageUserAssignedIdentityId pulumi.StringPtrInput // A mapping of tags which should be assigned to the Linux Function App. Tags pulumi.StringMapInput VirtualNetworkSubnetId pulumi.StringPtrInput // Should the default WebDeploy Basic Authentication publishing credentials enabled. Defaults to `true`. // // > **Note:** Setting this value to true will disable the ability to use `zipDeployFile` which currently relies on the default publishing profile. WebdeployPublishBasicAuthenticationEnabled pulumi.BoolPtrInput // The local path and filename of the Zip packaged application to deploy to this Linux Function App. // // > **Note:** Using this value requires either `WEBSITE_RUN_FROM_PACKAGE=1` or `SCM_DO_BUILD_DURING_DEPLOYMENT=true` to be set on the App in `appSettings`. Refer to the [Azure docs](https://learn.microsoft.com/en-us/azure/azure-functions/functions-deployment-technologies) for further details. ZipDeployFile pulumi.StringPtrInput } func (AppFlexConsumptionState) ElementType() reflect.Type { return reflect.TypeOf((*appFlexConsumptionState)(nil)).Elem() } type appFlexConsumptionArgs struct { // One or more `alwaysReady` blocks as defined below. AlwaysReadies []AppFlexConsumptionAlwaysReady `pulumi:"alwaysReadies"` // A map of key-value pairs for [App Settings](https://docs.microsoft.com/en-us/azure/azure-functions/functions-app-settings) and custom values. AppSettings map[string]string `pulumi:"appSettings"` // A `authSettings` block as defined below. AuthSettings *AppFlexConsumptionAuthSettings `pulumi:"authSettings"` // An `authSettingsV2` block as defined below. AuthSettingsV2 *AppFlexConsumptionAuthSettingsV2 `pulumi:"authSettingsV2"` // Should the function app use Client Certificates. ClientCertificateEnabled *bool `pulumi:"clientCertificateEnabled"` // Paths to exclude when using client certificates, separated by ; ClientCertificateExclusionPaths *string `pulumi:"clientCertificateExclusionPaths"` // The mode of the Function App's client certificates requirement for incoming requests. Possible values are `Required`, `Optional`, and `OptionalInteractiveUser`. Defaults to `Optional`. ClientCertificateMode *string `pulumi:"clientCertificateMode"` // One or more `connectionString` blocks as defined below. ConnectionStrings []AppFlexConsumptionConnectionString `pulumi:"connectionStrings"` // Is the Function App enabled? Defaults to `true`. Enabled *bool `pulumi:"enabled"` // The Http concurrency of the instances on which your app runs. The supported value are from `1` to `1000`. // // > **Note:** A value will be assigned by the system if `httpConcurrency` is not specified. HttpConcurrency *int `pulumi:"httpConcurrency"` // Is Https Connection enforced to the function app. Defaults to `false` HttpsOnly *bool `pulumi:"httpsOnly"` // A `identity` block as defined below. Identity *AppFlexConsumptionIdentity `pulumi:"identity"` // The memory size of the instances on which your app runs. Reference the Microsoft Documentation for the [currently supported values](https://learn.microsoft.com/en-us/azure/azure-functions/flex-consumption-plan#instance-memory). Defaults to `2048`. InstanceMemoryInMb *int `pulumi:"instanceMemoryInMb"` // The Azure Region where the Function App should exist. Changing this forces a new Function App to be created. Location *string `pulumi:"location"` // The number of workers this function app can scale out to. MaximumInstanceCount *int `pulumi:"maximumInstanceCount"` // The name which should be used for this Function App. Changing this forces a new Function App to be created. Limit the function name to 32 characters to avoid naming collisions. For more information about [Function App naming rule](https://docs.microsoft.com/en-us/azure/azure-resource-manager/management/resource-name-rules#microsoftweb) and [Host ID Collisions](https://github.com/Azure/azure-functions-host/wiki/Host-IDs#host-id-collisions) Name *string `pulumi:"name"` // Should public network access be enabled for the Function App. Defaults to `true`. PublicNetworkAccessEnabled *bool `pulumi:"publicNetworkAccessEnabled"`
go
Apache-2.0
b66e1472775a89cca43f5050fef806854a7c3fa3
2026-01-07T09:44:27.619514Z
true
pulumi/pulumi-azure
https://github.com/pulumi/pulumi-azure/blob/b66e1472775a89cca43f5050fef806854a7c3fa3/sdk/go/azure/appservice/linuxWebAppSlot.go
sdk/go/azure/appservice/linuxWebAppSlot.go
// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package appservice import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a Linux Web App Slot. // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/appservice" // "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-resources"), // Location: pulumi.String("West Europe"), // }) // if err != nil { // return err // } // exampleServicePlan, err := appservice.NewServicePlan(ctx, "example", &appservice.ServicePlanArgs{ // Name: pulumi.String("example-plan"), // ResourceGroupName: example.Name, // Location: example.Location, // OsType: pulumi.String("Linux"), // SkuName: pulumi.String("P1v2"), // }) // if err != nil { // return err // } // exampleLinuxWebApp, err := appservice.NewLinuxWebApp(ctx, "example", &appservice.LinuxWebAppArgs{ // Name: pulumi.String("example-linux-web-app"), // ResourceGroupName: example.Name, // Location: exampleServicePlan.Location, // ServicePlanId: exampleServicePlan.ID(), // SiteConfig: &appservice.LinuxWebAppSiteConfigArgs{}, // }) // if err != nil { // return err // } // _, err = appservice.NewLinuxWebAppSlot(ctx, "example", &appservice.LinuxWebAppSlotArgs{ // Name: pulumi.String("example-slot"), // AppServiceId: exampleLinuxWebApp.ID(), // SiteConfig: &appservice.LinuxWebAppSlotSiteConfigArgs{}, // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## API Providers // // <!-- This section is generated, changes will be overwritten --> // This resource uses the following Azure API Providers: // // * `Microsoft.Web` - 2023-12-01 // // ## Import // // Linux Web Apps can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:appservice/linuxWebAppSlot:LinuxWebAppSlot example /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/resGroup1/providers/Microsoft.Web/sites/site1/slots/slot1 // ``` type LinuxWebAppSlot struct { pulumi.CustomResourceState // A `appMetadata`. AppMetadata pulumi.StringMapOutput `pulumi:"appMetadata"` // The ID of the Linux Web App this Deployment Slot will be part of. AppServiceId pulumi.StringOutput `pulumi:"appServiceId"` // A map of key-value pairs of App Settings. AppSettings pulumi.StringMapOutput `pulumi:"appSettings"` // An `authSettings` block as defined below. AuthSettings LinuxWebAppSlotAuthSettingsPtrOutput `pulumi:"authSettings"` // An `authSettingsV2` block as defined below. AuthSettingsV2 LinuxWebAppSlotAuthSettingsV2PtrOutput `pulumi:"authSettingsV2"` // A `backup` block as defined below. Backup LinuxWebAppSlotBackupPtrOutput `pulumi:"backup"` // Should Client Affinity be enabled? ClientAffinityEnabled pulumi.BoolPtrOutput `pulumi:"clientAffinityEnabled"` // Should Client Certificates be enabled? ClientCertificateEnabled pulumi.BoolPtrOutput `pulumi:"clientCertificateEnabled"` // Paths to exclude when using client certificates, separated by ; ClientCertificateExclusionPaths pulumi.StringPtrOutput `pulumi:"clientCertificateExclusionPaths"` // The Client Certificate mode. Possible values are `Required`, `Optional`, and `OptionalInteractiveUser`. This property has no effect when `clientCertEnabled` is `false`. Defaults to `Required`. ClientCertificateMode pulumi.StringPtrOutput `pulumi:"clientCertificateMode"` // One or more `connectionString` blocks as defined below. ConnectionStrings LinuxWebAppSlotConnectionStringArrayOutput `pulumi:"connectionStrings"` // The identifier used by App Service to perform domain ownership verification via DNS TXT record. CustomDomainVerificationId pulumi.StringOutput `pulumi:"customDomainVerificationId"` // The default hostname of the Linux Web App. DefaultHostname pulumi.StringOutput `pulumi:"defaultHostname"` // Should the Linux Web App be enabled? Defaults to `true`. Enabled pulumi.BoolPtrOutput `pulumi:"enabled"` // Should the default FTP Basic Authentication publishing profile be enabled. Defaults to `true`. FtpPublishBasicAuthenticationEnabled pulumi.BoolPtrOutput `pulumi:"ftpPublishBasicAuthenticationEnabled"` // The ID of the App Service Environment used by App Service Slot. HostingEnvironmentId pulumi.StringOutput `pulumi:"hostingEnvironmentId"` // Should the Linux Web App require HTTPS connections. Defaults to `false`. HttpsOnly pulumi.BoolPtrOutput `pulumi:"httpsOnly"` // An `identity` block as defined below. Identity LinuxWebAppSlotIdentityPtrOutput `pulumi:"identity"` // The User Assigned Identity ID used for accessing KeyVault secrets. The identity must be assigned to the application in the `identity` block. [For more information see - Access vaults with a user-assigned identity](https://docs.microsoft.com/azure/app-service/app-service-key-vault-references#access-vaults-with-a-user-assigned-identity). KeyVaultReferenceIdentityId pulumi.StringOutput `pulumi:"keyVaultReferenceIdentityId"` // The Kind value for this Linux Web App. Kind pulumi.StringOutput `pulumi:"kind"` // A `logs` block as defined below. Logs LinuxWebAppSlotLogsPtrOutput `pulumi:"logs"` Name pulumi.StringOutput `pulumi:"name"` // A list of outbound IP addresses - such as `["52.23.25.3", "52.143.43.12"]` OutboundIpAddressLists pulumi.StringArrayOutput `pulumi:"outboundIpAddressLists"` // A comma-separated list of outbound IP addresses - such as `52.23.25.3,52.143.43.12`. OutboundIpAddresses pulumi.StringOutput `pulumi:"outboundIpAddresses"` // A `possibleOutboundIpAddressList`. PossibleOutboundIpAddressLists pulumi.StringArrayOutput `pulumi:"possibleOutboundIpAddressLists"` // A comma-separated list of outbound IP addresses - such as `52.23.25.3,52.143.43.12,52.143.43.17` - not all of which are necessarily in use. Superset of `outboundIpAddresses`. PossibleOutboundIpAddresses pulumi.StringOutput `pulumi:"possibleOutboundIpAddresses"` // Should public network access be enabled for the Web App. Defaults to `true`. PublicNetworkAccessEnabled pulumi.BoolPtrOutput `pulumi:"publicNetworkAccessEnabled"` // The ID of the Service Plan in which to run this slot. If not specified the same Service Plan as the Linux Web App will be used. // // > **Note:** `servicePlanId` should only be specified if it differs from the Service Plan of the associated Linux Web App. ServicePlanId pulumi.StringPtrOutput `pulumi:"servicePlanId"` // A `siteConfig` block as defined below. SiteConfig LinuxWebAppSlotSiteConfigOutput `pulumi:"siteConfig"` // A `siteCredential` block as defined below. SiteCredentials LinuxWebAppSlotSiteCredentialArrayOutput `pulumi:"siteCredentials"` // One or more `storageAccount` blocks as defined below. StorageAccounts LinuxWebAppSlotStorageAccountArrayOutput `pulumi:"storageAccounts"` // A mapping of tags that should be assigned to the Linux Web App. Tags pulumi.StringMapOutput `pulumi:"tags"` // Whether backup and restore operations over the linked virtual network are enabled. Defaults to `false`. VirtualNetworkBackupRestoreEnabled pulumi.BoolPtrOutput `pulumi:"virtualNetworkBackupRestoreEnabled"` VirtualNetworkSubnetId pulumi.StringPtrOutput `pulumi:"virtualNetworkSubnetId"` // Should the traffic for the image pull be routed over virtual network enabled. Defaults to `false`. // // > **Note:** The feature can also be enabled via the app setting `WEBSITE_PULL_IMAGE_OVER_VNET`. Must be set to `true` when running in an App Service Environment. VnetImagePullEnabled pulumi.BoolPtrOutput `pulumi:"vnetImagePullEnabled"` // Should the default WebDeploy Basic Authentication publishing credentials enabled. Defaults to `true`. // // > **Note:** Setting this value to true will disable the ability to use `zipDeployFile` which currently relies on the default publishing profile. WebdeployPublishBasicAuthenticationEnabled pulumi.BoolPtrOutput `pulumi:"webdeployPublishBasicAuthenticationEnabled"` // The local path and filename of the Zip packaged application to deploy to this Linux Web App. // // > **Note:** Using this value requires `WEBSITE_RUN_FROM_PACKAGE=1` to be set on the App in `appSettings`. Refer to the [Azure docs](https://docs.microsoft.com/en-us/azure/app-service/deploy-run-package) for further details. ZipDeployFile pulumi.StringOutput `pulumi:"zipDeployFile"` } // NewLinuxWebAppSlot registers a new resource with the given unique name, arguments, and options. func NewLinuxWebAppSlot(ctx *pulumi.Context, name string, args *LinuxWebAppSlotArgs, opts ...pulumi.ResourceOption) (*LinuxWebAppSlot, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.AppServiceId == nil { return nil, errors.New("invalid value for required argument 'AppServiceId'") } if args.SiteConfig == nil { return nil, errors.New("invalid value for required argument 'SiteConfig'") } secrets := pulumi.AdditionalSecretOutputs([]string{ "customDomainVerificationId", "siteCredentials", }) opts = append(opts, secrets) opts = internal.PkgResourceDefaultOpts(opts) var resource LinuxWebAppSlot err := ctx.RegisterResource("azure:appservice/linuxWebAppSlot:LinuxWebAppSlot", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetLinuxWebAppSlot gets an existing LinuxWebAppSlot 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 GetLinuxWebAppSlot(ctx *pulumi.Context, name string, id pulumi.IDInput, state *LinuxWebAppSlotState, opts ...pulumi.ResourceOption) (*LinuxWebAppSlot, error) { var resource LinuxWebAppSlot err := ctx.ReadResource("azure:appservice/linuxWebAppSlot:LinuxWebAppSlot", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering LinuxWebAppSlot resources. type linuxWebAppSlotState struct { // A `appMetadata`. AppMetadata map[string]string `pulumi:"appMetadata"` // The ID of the Linux Web App this Deployment Slot will be part of. AppServiceId *string `pulumi:"appServiceId"` // A map of key-value pairs of App Settings. AppSettings map[string]string `pulumi:"appSettings"` // An `authSettings` block as defined below. AuthSettings *LinuxWebAppSlotAuthSettings `pulumi:"authSettings"` // An `authSettingsV2` block as defined below. AuthSettingsV2 *LinuxWebAppSlotAuthSettingsV2 `pulumi:"authSettingsV2"` // A `backup` block as defined below. Backup *LinuxWebAppSlotBackup `pulumi:"backup"` // Should Client Affinity be enabled? ClientAffinityEnabled *bool `pulumi:"clientAffinityEnabled"` // Should Client Certificates be enabled? ClientCertificateEnabled *bool `pulumi:"clientCertificateEnabled"` // Paths to exclude when using client certificates, separated by ; ClientCertificateExclusionPaths *string `pulumi:"clientCertificateExclusionPaths"` // The Client Certificate mode. Possible values are `Required`, `Optional`, and `OptionalInteractiveUser`. This property has no effect when `clientCertEnabled` is `false`. Defaults to `Required`. ClientCertificateMode *string `pulumi:"clientCertificateMode"` // One or more `connectionString` blocks as defined below. ConnectionStrings []LinuxWebAppSlotConnectionString `pulumi:"connectionStrings"` // The identifier used by App Service to perform domain ownership verification via DNS TXT record. CustomDomainVerificationId *string `pulumi:"customDomainVerificationId"` // The default hostname of the Linux Web App. DefaultHostname *string `pulumi:"defaultHostname"` // Should the Linux Web App be enabled? Defaults to `true`. Enabled *bool `pulumi:"enabled"` // Should the default FTP Basic Authentication publishing profile be enabled. Defaults to `true`. FtpPublishBasicAuthenticationEnabled *bool `pulumi:"ftpPublishBasicAuthenticationEnabled"` // The ID of the App Service Environment used by App Service Slot. HostingEnvironmentId *string `pulumi:"hostingEnvironmentId"` // Should the Linux Web App require HTTPS connections. Defaults to `false`. HttpsOnly *bool `pulumi:"httpsOnly"` // An `identity` block as defined below. Identity *LinuxWebAppSlotIdentity `pulumi:"identity"` // The User Assigned Identity ID used for accessing KeyVault secrets. The identity must be assigned to the application in the `identity` block. [For more information see - Access vaults with a user-assigned identity](https://docs.microsoft.com/azure/app-service/app-service-key-vault-references#access-vaults-with-a-user-assigned-identity). KeyVaultReferenceIdentityId *string `pulumi:"keyVaultReferenceIdentityId"` // The Kind value for this Linux Web App. Kind *string `pulumi:"kind"` // A `logs` block as defined below. Logs *LinuxWebAppSlotLogs `pulumi:"logs"` Name *string `pulumi:"name"` // A list of outbound IP addresses - such as `["52.23.25.3", "52.143.43.12"]` OutboundIpAddressLists []string `pulumi:"outboundIpAddressLists"` // A comma-separated list of outbound IP addresses - such as `52.23.25.3,52.143.43.12`. OutboundIpAddresses *string `pulumi:"outboundIpAddresses"` // A `possibleOutboundIpAddressList`. PossibleOutboundIpAddressLists []string `pulumi:"possibleOutboundIpAddressLists"` // A comma-separated list of outbound IP addresses - such as `52.23.25.3,52.143.43.12,52.143.43.17` - not all of which are necessarily in use. Superset of `outboundIpAddresses`. PossibleOutboundIpAddresses *string `pulumi:"possibleOutboundIpAddresses"` // Should public network access be enabled for the Web App. Defaults to `true`. PublicNetworkAccessEnabled *bool `pulumi:"publicNetworkAccessEnabled"` // The ID of the Service Plan in which to run this slot. If not specified the same Service Plan as the Linux Web App will be used. // // > **Note:** `servicePlanId` should only be specified if it differs from the Service Plan of the associated Linux Web App. ServicePlanId *string `pulumi:"servicePlanId"` // A `siteConfig` block as defined below. SiteConfig *LinuxWebAppSlotSiteConfig `pulumi:"siteConfig"` // A `siteCredential` block as defined below. SiteCredentials []LinuxWebAppSlotSiteCredential `pulumi:"siteCredentials"` // One or more `storageAccount` blocks as defined below. StorageAccounts []LinuxWebAppSlotStorageAccount `pulumi:"storageAccounts"` // A mapping of tags that should be assigned to the Linux Web App. Tags map[string]string `pulumi:"tags"` // Whether backup and restore operations over the linked virtual network are enabled. Defaults to `false`. VirtualNetworkBackupRestoreEnabled *bool `pulumi:"virtualNetworkBackupRestoreEnabled"` VirtualNetworkSubnetId *string `pulumi:"virtualNetworkSubnetId"` // Should the traffic for the image pull be routed over virtual network enabled. Defaults to `false`. // // > **Note:** The feature can also be enabled via the app setting `WEBSITE_PULL_IMAGE_OVER_VNET`. Must be set to `true` when running in an App Service Environment. VnetImagePullEnabled *bool `pulumi:"vnetImagePullEnabled"` // Should the default WebDeploy Basic Authentication publishing credentials enabled. Defaults to `true`. // // > **Note:** Setting this value to true will disable the ability to use `zipDeployFile` which currently relies on the default publishing profile. WebdeployPublishBasicAuthenticationEnabled *bool `pulumi:"webdeployPublishBasicAuthenticationEnabled"` // The local path and filename of the Zip packaged application to deploy to this Linux Web App. // // > **Note:** Using this value requires `WEBSITE_RUN_FROM_PACKAGE=1` to be set on the App in `appSettings`. Refer to the [Azure docs](https://docs.microsoft.com/en-us/azure/app-service/deploy-run-package) for further details. ZipDeployFile *string `pulumi:"zipDeployFile"` } type LinuxWebAppSlotState struct { // A `appMetadata`. AppMetadata pulumi.StringMapInput // The ID of the Linux Web App this Deployment Slot will be part of. AppServiceId pulumi.StringPtrInput // A map of key-value pairs of App Settings. AppSettings pulumi.StringMapInput // An `authSettings` block as defined below. AuthSettings LinuxWebAppSlotAuthSettingsPtrInput // An `authSettingsV2` block as defined below. AuthSettingsV2 LinuxWebAppSlotAuthSettingsV2PtrInput // A `backup` block as defined below. Backup LinuxWebAppSlotBackupPtrInput // Should Client Affinity be enabled? ClientAffinityEnabled pulumi.BoolPtrInput // Should Client Certificates be enabled? ClientCertificateEnabled pulumi.BoolPtrInput // Paths to exclude when using client certificates, separated by ; ClientCertificateExclusionPaths pulumi.StringPtrInput // The Client Certificate mode. Possible values are `Required`, `Optional`, and `OptionalInteractiveUser`. This property has no effect when `clientCertEnabled` is `false`. Defaults to `Required`. ClientCertificateMode pulumi.StringPtrInput // One or more `connectionString` blocks as defined below. ConnectionStrings LinuxWebAppSlotConnectionStringArrayInput // The identifier used by App Service to perform domain ownership verification via DNS TXT record. CustomDomainVerificationId pulumi.StringPtrInput // The default hostname of the Linux Web App. DefaultHostname pulumi.StringPtrInput // Should the Linux Web App be enabled? Defaults to `true`. Enabled pulumi.BoolPtrInput // Should the default FTP Basic Authentication publishing profile be enabled. Defaults to `true`. FtpPublishBasicAuthenticationEnabled pulumi.BoolPtrInput // The ID of the App Service Environment used by App Service Slot. HostingEnvironmentId pulumi.StringPtrInput // Should the Linux Web App require HTTPS connections. Defaults to `false`. HttpsOnly pulumi.BoolPtrInput // An `identity` block as defined below. Identity LinuxWebAppSlotIdentityPtrInput // The User Assigned Identity ID used for accessing KeyVault secrets. The identity must be assigned to the application in the `identity` block. [For more information see - Access vaults with a user-assigned identity](https://docs.microsoft.com/azure/app-service/app-service-key-vault-references#access-vaults-with-a-user-assigned-identity). KeyVaultReferenceIdentityId pulumi.StringPtrInput // The Kind value for this Linux Web App. Kind pulumi.StringPtrInput // A `logs` block as defined below. Logs LinuxWebAppSlotLogsPtrInput Name pulumi.StringPtrInput // A list of outbound IP addresses - such as `["52.23.25.3", "52.143.43.12"]` OutboundIpAddressLists pulumi.StringArrayInput // A comma-separated list of outbound IP addresses - such as `52.23.25.3,52.143.43.12`. OutboundIpAddresses pulumi.StringPtrInput // A `possibleOutboundIpAddressList`. PossibleOutboundIpAddressLists pulumi.StringArrayInput // A comma-separated list of outbound IP addresses - such as `52.23.25.3,52.143.43.12,52.143.43.17` - not all of which are necessarily in use. Superset of `outboundIpAddresses`. PossibleOutboundIpAddresses pulumi.StringPtrInput // Should public network access be enabled for the Web App. Defaults to `true`. PublicNetworkAccessEnabled pulumi.BoolPtrInput // The ID of the Service Plan in which to run this slot. If not specified the same Service Plan as the Linux Web App will be used. // // > **Note:** `servicePlanId` should only be specified if it differs from the Service Plan of the associated Linux Web App. ServicePlanId pulumi.StringPtrInput // A `siteConfig` block as defined below. SiteConfig LinuxWebAppSlotSiteConfigPtrInput // A `siteCredential` block as defined below. SiteCredentials LinuxWebAppSlotSiteCredentialArrayInput // One or more `storageAccount` blocks as defined below. StorageAccounts LinuxWebAppSlotStorageAccountArrayInput // A mapping of tags that should be assigned to the Linux Web App. Tags pulumi.StringMapInput // Whether backup and restore operations over the linked virtual network are enabled. Defaults to `false`. VirtualNetworkBackupRestoreEnabled pulumi.BoolPtrInput VirtualNetworkSubnetId pulumi.StringPtrInput // Should the traffic for the image pull be routed over virtual network enabled. Defaults to `false`. // // > **Note:** The feature can also be enabled via the app setting `WEBSITE_PULL_IMAGE_OVER_VNET`. Must be set to `true` when running in an App Service Environment. VnetImagePullEnabled pulumi.BoolPtrInput // Should the default WebDeploy Basic Authentication publishing credentials enabled. Defaults to `true`. // // > **Note:** Setting this value to true will disable the ability to use `zipDeployFile` which currently relies on the default publishing profile. WebdeployPublishBasicAuthenticationEnabled pulumi.BoolPtrInput // The local path and filename of the Zip packaged application to deploy to this Linux Web App. // // > **Note:** Using this value requires `WEBSITE_RUN_FROM_PACKAGE=1` to be set on the App in `appSettings`. Refer to the [Azure docs](https://docs.microsoft.com/en-us/azure/app-service/deploy-run-package) for further details. ZipDeployFile pulumi.StringPtrInput } func (LinuxWebAppSlotState) ElementType() reflect.Type { return reflect.TypeOf((*linuxWebAppSlotState)(nil)).Elem() } type linuxWebAppSlotArgs struct { // The ID of the Linux Web App this Deployment Slot will be part of. AppServiceId string `pulumi:"appServiceId"` // A map of key-value pairs of App Settings. AppSettings map[string]string `pulumi:"appSettings"` // An `authSettings` block as defined below. AuthSettings *LinuxWebAppSlotAuthSettings `pulumi:"authSettings"` // An `authSettingsV2` block as defined below. AuthSettingsV2 *LinuxWebAppSlotAuthSettingsV2 `pulumi:"authSettingsV2"` // A `backup` block as defined below. Backup *LinuxWebAppSlotBackup `pulumi:"backup"` // Should Client Affinity be enabled? ClientAffinityEnabled *bool `pulumi:"clientAffinityEnabled"` // Should Client Certificates be enabled? ClientCertificateEnabled *bool `pulumi:"clientCertificateEnabled"` // Paths to exclude when using client certificates, separated by ; ClientCertificateExclusionPaths *string `pulumi:"clientCertificateExclusionPaths"` // The Client Certificate mode. Possible values are `Required`, `Optional`, and `OptionalInteractiveUser`. This property has no effect when `clientCertEnabled` is `false`. Defaults to `Required`. ClientCertificateMode *string `pulumi:"clientCertificateMode"` // One or more `connectionString` blocks as defined below. ConnectionStrings []LinuxWebAppSlotConnectionString `pulumi:"connectionStrings"` // Should the Linux Web App be enabled? Defaults to `true`. Enabled *bool `pulumi:"enabled"` // Should the default FTP Basic Authentication publishing profile be enabled. Defaults to `true`. FtpPublishBasicAuthenticationEnabled *bool `pulumi:"ftpPublishBasicAuthenticationEnabled"` // Should the Linux Web App require HTTPS connections. Defaults to `false`. HttpsOnly *bool `pulumi:"httpsOnly"` // An `identity` block as defined below. Identity *LinuxWebAppSlotIdentity `pulumi:"identity"` // The User Assigned Identity ID used for accessing KeyVault secrets. The identity must be assigned to the application in the `identity` block. [For more information see - Access vaults with a user-assigned identity](https://docs.microsoft.com/azure/app-service/app-service-key-vault-references#access-vaults-with-a-user-assigned-identity). KeyVaultReferenceIdentityId *string `pulumi:"keyVaultReferenceIdentityId"` // A `logs` block as defined below. Logs *LinuxWebAppSlotLogs `pulumi:"logs"` Name *string `pulumi:"name"` // Should public network access be enabled for the Web App. Defaults to `true`. PublicNetworkAccessEnabled *bool `pulumi:"publicNetworkAccessEnabled"` // The ID of the Service Plan in which to run this slot. If not specified the same Service Plan as the Linux Web App will be used. // // > **Note:** `servicePlanId` should only be specified if it differs from the Service Plan of the associated Linux Web App. ServicePlanId *string `pulumi:"servicePlanId"` // A `siteConfig` block as defined below. SiteConfig LinuxWebAppSlotSiteConfig `pulumi:"siteConfig"` // One or more `storageAccount` blocks as defined below. StorageAccounts []LinuxWebAppSlotStorageAccount `pulumi:"storageAccounts"` // A mapping of tags that should be assigned to the Linux Web App. Tags map[string]string `pulumi:"tags"` // Whether backup and restore operations over the linked virtual network are enabled. Defaults to `false`. VirtualNetworkBackupRestoreEnabled *bool `pulumi:"virtualNetworkBackupRestoreEnabled"` VirtualNetworkSubnetId *string `pulumi:"virtualNetworkSubnetId"` // Should the traffic for the image pull be routed over virtual network enabled. Defaults to `false`. // // > **Note:** The feature can also be enabled via the app setting `WEBSITE_PULL_IMAGE_OVER_VNET`. Must be set to `true` when running in an App Service Environment. VnetImagePullEnabled *bool `pulumi:"vnetImagePullEnabled"` // Should the default WebDeploy Basic Authentication publishing credentials enabled. Defaults to `true`. // // > **Note:** Setting this value to true will disable the ability to use `zipDeployFile` which currently relies on the default publishing profile. WebdeployPublishBasicAuthenticationEnabled *bool `pulumi:"webdeployPublishBasicAuthenticationEnabled"` // The local path and filename of the Zip packaged application to deploy to this Linux Web App. // // > **Note:** Using this value requires `WEBSITE_RUN_FROM_PACKAGE=1` to be set on the App in `appSettings`. Refer to the [Azure docs](https://docs.microsoft.com/en-us/azure/app-service/deploy-run-package) for further details. ZipDeployFile *string `pulumi:"zipDeployFile"` } // The set of arguments for constructing a LinuxWebAppSlot resource. type LinuxWebAppSlotArgs struct { // The ID of the Linux Web App this Deployment Slot will be part of. AppServiceId pulumi.StringInput // A map of key-value pairs of App Settings. AppSettings pulumi.StringMapInput // An `authSettings` block as defined below. AuthSettings LinuxWebAppSlotAuthSettingsPtrInput // An `authSettingsV2` block as defined below. AuthSettingsV2 LinuxWebAppSlotAuthSettingsV2PtrInput // A `backup` block as defined below. Backup LinuxWebAppSlotBackupPtrInput // Should Client Affinity be enabled? ClientAffinityEnabled pulumi.BoolPtrInput // Should Client Certificates be enabled? ClientCertificateEnabled pulumi.BoolPtrInput // Paths to exclude when using client certificates, separated by ; ClientCertificateExclusionPaths pulumi.StringPtrInput // The Client Certificate mode. Possible values are `Required`, `Optional`, and `OptionalInteractiveUser`. This property has no effect when `clientCertEnabled` is `false`. Defaults to `Required`. ClientCertificateMode pulumi.StringPtrInput // One or more `connectionString` blocks as defined below. ConnectionStrings LinuxWebAppSlotConnectionStringArrayInput // Should the Linux Web App be enabled? Defaults to `true`. Enabled pulumi.BoolPtrInput // Should the default FTP Basic Authentication publishing profile be enabled. Defaults to `true`. FtpPublishBasicAuthenticationEnabled pulumi.BoolPtrInput // Should the Linux Web App require HTTPS connections. Defaults to `false`. HttpsOnly pulumi.BoolPtrInput // An `identity` block as defined below. Identity LinuxWebAppSlotIdentityPtrInput // The User Assigned Identity ID used for accessing KeyVault secrets. The identity must be assigned to the application in the `identity` block. [For more information see - Access vaults with a user-assigned identity](https://docs.microsoft.com/azure/app-service/app-service-key-vault-references#access-vaults-with-a-user-assigned-identity). KeyVaultReferenceIdentityId pulumi.StringPtrInput // A `logs` block as defined below. Logs LinuxWebAppSlotLogsPtrInput Name pulumi.StringPtrInput // Should public network access be enabled for the Web App. Defaults to `true`. PublicNetworkAccessEnabled pulumi.BoolPtrInput // The ID of the Service Plan in which to run this slot. If not specified the same Service Plan as the Linux Web App will be used. // // > **Note:** `servicePlanId` should only be specified if it differs from the Service Plan of the associated Linux Web App. ServicePlanId pulumi.StringPtrInput // A `siteConfig` block as defined below. SiteConfig LinuxWebAppSlotSiteConfigInput // One or more `storageAccount` blocks as defined below. StorageAccounts LinuxWebAppSlotStorageAccountArrayInput // A mapping of tags that should be assigned to the Linux Web App. Tags pulumi.StringMapInput // Whether backup and restore operations over the linked virtual network are enabled. Defaults to `false`. VirtualNetworkBackupRestoreEnabled pulumi.BoolPtrInput VirtualNetworkSubnetId pulumi.StringPtrInput // Should the traffic for the image pull be routed over virtual network enabled. Defaults to `false`. // // > **Note:** The feature can also be enabled via the app setting `WEBSITE_PULL_IMAGE_OVER_VNET`. Must be set to `true` when running in an App Service Environment. VnetImagePullEnabled pulumi.BoolPtrInput // Should the default WebDeploy Basic Authentication publishing credentials enabled. Defaults to `true`. // // > **Note:** Setting this value to true will disable the ability to use `zipDeployFile` which currently relies on the default publishing profile. WebdeployPublishBasicAuthenticationEnabled pulumi.BoolPtrInput // The local path and filename of the Zip packaged application to deploy to this Linux Web App. // // > **Note:** Using this value requires `WEBSITE_RUN_FROM_PACKAGE=1` to be set on the App in `appSettings`. Refer to the [Azure docs](https://docs.microsoft.com/en-us/azure/app-service/deploy-run-package) for further details. ZipDeployFile pulumi.StringPtrInput } func (LinuxWebAppSlotArgs) ElementType() reflect.Type { return reflect.TypeOf((*linuxWebAppSlotArgs)(nil)).Elem() } type LinuxWebAppSlotInput interface { pulumi.Input ToLinuxWebAppSlotOutput() LinuxWebAppSlotOutput ToLinuxWebAppSlotOutputWithContext(ctx context.Context) LinuxWebAppSlotOutput } func (*LinuxWebAppSlot) ElementType() reflect.Type { return reflect.TypeOf((**LinuxWebAppSlot)(nil)).Elem() } func (i *LinuxWebAppSlot) ToLinuxWebAppSlotOutput() LinuxWebAppSlotOutput { return i.ToLinuxWebAppSlotOutputWithContext(context.Background()) } func (i *LinuxWebAppSlot) ToLinuxWebAppSlotOutputWithContext(ctx context.Context) LinuxWebAppSlotOutput { return pulumi.ToOutputWithContext(ctx, i).(LinuxWebAppSlotOutput) } // LinuxWebAppSlotArrayInput is an input type that accepts LinuxWebAppSlotArray and LinuxWebAppSlotArrayOutput values. // You can construct a concrete instance of `LinuxWebAppSlotArrayInput` via: // // LinuxWebAppSlotArray{ LinuxWebAppSlotArgs{...} } type LinuxWebAppSlotArrayInput interface { pulumi.Input ToLinuxWebAppSlotArrayOutput() LinuxWebAppSlotArrayOutput ToLinuxWebAppSlotArrayOutputWithContext(context.Context) LinuxWebAppSlotArrayOutput } type LinuxWebAppSlotArray []LinuxWebAppSlotInput func (LinuxWebAppSlotArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*LinuxWebAppSlot)(nil)).Elem() } func (i LinuxWebAppSlotArray) ToLinuxWebAppSlotArrayOutput() LinuxWebAppSlotArrayOutput { return i.ToLinuxWebAppSlotArrayOutputWithContext(context.Background()) } func (i LinuxWebAppSlotArray) ToLinuxWebAppSlotArrayOutputWithContext(ctx context.Context) LinuxWebAppSlotArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(LinuxWebAppSlotArrayOutput) } // LinuxWebAppSlotMapInput is an input type that accepts LinuxWebAppSlotMap and LinuxWebAppSlotMapOutput values. // You can construct a concrete instance of `LinuxWebAppSlotMapInput` via: // // LinuxWebAppSlotMap{ "key": LinuxWebAppSlotArgs{...} } type LinuxWebAppSlotMapInput interface { pulumi.Input ToLinuxWebAppSlotMapOutput() LinuxWebAppSlotMapOutput ToLinuxWebAppSlotMapOutputWithContext(context.Context) LinuxWebAppSlotMapOutput } type LinuxWebAppSlotMap map[string]LinuxWebAppSlotInput func (LinuxWebAppSlotMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*LinuxWebAppSlot)(nil)).Elem() }
go
Apache-2.0
b66e1472775a89cca43f5050fef806854a7c3fa3
2026-01-07T09:44:27.619514Z
true
pulumi/pulumi-azure
https://github.com/pulumi/pulumi-azure/blob/b66e1472775a89cca43f5050fef806854a7c3fa3/sdk/go/azure/appservice/functionAppHybridConnection.go
sdk/go/azure/appservice/functionAppHybridConnection.go
// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package appservice import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a Function App Hybrid Connection. // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/appservice" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/relay" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/storage" // "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-rg"), // Location: pulumi.String("West Europe"), // }) // if err != nil { // return err // } // exampleServicePlan, err := appservice.NewServicePlan(ctx, "example", &appservice.ServicePlanArgs{ // Name: pulumi.String("example-plan"), // Location: example.Location, // ResourceGroupName: example.Name, // OsType: pulumi.String("Windows"), // SkuName: pulumi.String("S1"), // }) // if err != nil { // return err // } // exampleNamespace, err := relay.NewNamespace(ctx, "example", &relay.NamespaceArgs{ // Name: pulumi.String("example-relay"), // Location: example.Location, // ResourceGroupName: example.Name, // SkuName: pulumi.String("Standard"), // }) // if err != nil { // return err // } // exampleHybridConnection, err := relay.NewHybridConnection(ctx, "example", &relay.HybridConnectionArgs{ // Name: pulumi.String("examplerhc1"), // ResourceGroupName: example.Name, // RelayNamespaceName: exampleNamespace.Name, // }) // if err != nil { // return err // } // exampleAccount, err := storage.NewAccount(ctx, "example", &storage.AccountArgs{ // Name: pulumi.String("storageaccountname"), // ResourceGroupName: example.Name, // Location: example.Location, // AccountTier: pulumi.String("Standard"), // AccountReplicationType: pulumi.String("GRS"), // }) // if err != nil { // return err // } // exampleWindowsWebApp, err := appservice.NewWindowsWebApp(ctx, "example", &appservice.WindowsWebAppArgs{ // Name: pulumi.String("example"), // Location: example.Location, // ResourceGroupName: example.Name, // ServicePlanId: exampleServicePlan.ID(), // SiteConfig: &appservice.WindowsWebAppSiteConfigArgs{}, // }) // if err != nil { // return err // } // _, err = appservice.NewWindowsFunctionApp(ctx, "example", &appservice.WindowsFunctionAppArgs{ // Name: pulumi.String("example-function-app"), // Location: example.Location, // ResourceGroupName: example.Name, // ServicePlanId: exampleServicePlan.ID(), // StorageAccountName: exampleAccount.Name, // StorageAccountAccessKey: exampleAccount.PrimaryAccessKey, // SiteConfig: &appservice.WindowsFunctionAppSiteConfigArgs{}, // }) // if err != nil { // return err // } // _, err = appservice.NewFunctionAppHybridConnection(ctx, "example", &appservice.FunctionAppHybridConnectionArgs{ // FunctionAppId: exampleWindowsWebApp.ID(), // RelayId: exampleHybridConnection.ID(), // Hostname: pulumi.String("myhostname.example"), // Port: pulumi.Int(8081), // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## API Providers // // <!-- This section is generated, changes will be overwritten --> // This resource uses the following Azure API Providers: // // * `Microsoft.Relay` - 2021-11-01 // // * `Microsoft.Web` - 2023-12-01 // // ## Import // // a Function App Hybrid Connection can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:appservice/functionAppHybridConnection:FunctionAppHybridConnection example "/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/resGroup1/providers/Microsoft.Web/sites/site1/hybridConnectionNamespaces/hybridConnectionNamespace1/relays/relay1" // ``` type FunctionAppHybridConnection struct { pulumi.CustomResourceState // The ID of the Function App for this Hybrid Connection. Changing this forces a new resource to be created. FunctionAppId pulumi.StringOutput `pulumi:"functionAppId"` // The hostname of the endpoint. Hostname pulumi.StringOutput `pulumi:"hostname"` // The name of the Relay Namespace. NamespaceName pulumi.StringOutput `pulumi:"namespaceName"` // The port to use for the endpoint Port pulumi.IntOutput `pulumi:"port"` // The ID of the Relay Hybrid Connection to use. Changing this forces a new resource to be created. RelayId pulumi.StringOutput `pulumi:"relayId"` // The name of the Relay in use. RelayName pulumi.StringOutput `pulumi:"relayName"` // The name of the Relay key with `Send` permission to use. Defaults to `RootManageSharedAccessKey` SendKeyName pulumi.StringPtrOutput `pulumi:"sendKeyName"` // The Primary Access Key for the `sendKeyName` SendKeyValue pulumi.StringOutput `pulumi:"sendKeyValue"` // The Service Bus Namespace. ServiceBusNamespace pulumi.StringOutput `pulumi:"serviceBusNamespace"` // The suffix for the endpoint. ServiceBusSuffix pulumi.StringOutput `pulumi:"serviceBusSuffix"` } // NewFunctionAppHybridConnection registers a new resource with the given unique name, arguments, and options. func NewFunctionAppHybridConnection(ctx *pulumi.Context, name string, args *FunctionAppHybridConnectionArgs, opts ...pulumi.ResourceOption) (*FunctionAppHybridConnection, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.FunctionAppId == nil { return nil, errors.New("invalid value for required argument 'FunctionAppId'") } if args.Hostname == nil { return nil, errors.New("invalid value for required argument 'Hostname'") } if args.Port == nil { return nil, errors.New("invalid value for required argument 'Port'") } if args.RelayId == nil { return nil, errors.New("invalid value for required argument 'RelayId'") } secrets := pulumi.AdditionalSecretOutputs([]string{ "sendKeyValue", }) opts = append(opts, secrets) opts = internal.PkgResourceDefaultOpts(opts) var resource FunctionAppHybridConnection err := ctx.RegisterResource("azure:appservice/functionAppHybridConnection:FunctionAppHybridConnection", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetFunctionAppHybridConnection gets an existing FunctionAppHybridConnection 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 GetFunctionAppHybridConnection(ctx *pulumi.Context, name string, id pulumi.IDInput, state *FunctionAppHybridConnectionState, opts ...pulumi.ResourceOption) (*FunctionAppHybridConnection, error) { var resource FunctionAppHybridConnection err := ctx.ReadResource("azure:appservice/functionAppHybridConnection:FunctionAppHybridConnection", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering FunctionAppHybridConnection resources. type functionAppHybridConnectionState struct { // The ID of the Function App for this Hybrid Connection. Changing this forces a new resource to be created. FunctionAppId *string `pulumi:"functionAppId"` // The hostname of the endpoint. Hostname *string `pulumi:"hostname"` // The name of the Relay Namespace. NamespaceName *string `pulumi:"namespaceName"` // The port to use for the endpoint Port *int `pulumi:"port"` // The ID of the Relay Hybrid Connection to use. Changing this forces a new resource to be created. RelayId *string `pulumi:"relayId"` // The name of the Relay in use. RelayName *string `pulumi:"relayName"` // The name of the Relay key with `Send` permission to use. Defaults to `RootManageSharedAccessKey` SendKeyName *string `pulumi:"sendKeyName"` // The Primary Access Key for the `sendKeyName` SendKeyValue *string `pulumi:"sendKeyValue"` // The Service Bus Namespace. ServiceBusNamespace *string `pulumi:"serviceBusNamespace"` // The suffix for the endpoint. ServiceBusSuffix *string `pulumi:"serviceBusSuffix"` } type FunctionAppHybridConnectionState struct { // The ID of the Function App for this Hybrid Connection. Changing this forces a new resource to be created. FunctionAppId pulumi.StringPtrInput // The hostname of the endpoint. Hostname pulumi.StringPtrInput // The name of the Relay Namespace. NamespaceName pulumi.StringPtrInput // The port to use for the endpoint Port pulumi.IntPtrInput // The ID of the Relay Hybrid Connection to use. Changing this forces a new resource to be created. RelayId pulumi.StringPtrInput // The name of the Relay in use. RelayName pulumi.StringPtrInput // The name of the Relay key with `Send` permission to use. Defaults to `RootManageSharedAccessKey` SendKeyName pulumi.StringPtrInput // The Primary Access Key for the `sendKeyName` SendKeyValue pulumi.StringPtrInput // The Service Bus Namespace. ServiceBusNamespace pulumi.StringPtrInput // The suffix for the endpoint. ServiceBusSuffix pulumi.StringPtrInput } func (FunctionAppHybridConnectionState) ElementType() reflect.Type { return reflect.TypeOf((*functionAppHybridConnectionState)(nil)).Elem() } type functionAppHybridConnectionArgs struct { // The ID of the Function App for this Hybrid Connection. Changing this forces a new resource to be created. FunctionAppId string `pulumi:"functionAppId"` // The hostname of the endpoint. Hostname string `pulumi:"hostname"` // The port to use for the endpoint Port int `pulumi:"port"` // The ID of the Relay Hybrid Connection to use. Changing this forces a new resource to be created. RelayId string `pulumi:"relayId"` // The name of the Relay key with `Send` permission to use. Defaults to `RootManageSharedAccessKey` SendKeyName *string `pulumi:"sendKeyName"` } // The set of arguments for constructing a FunctionAppHybridConnection resource. type FunctionAppHybridConnectionArgs struct { // The ID of the Function App for this Hybrid Connection. Changing this forces a new resource to be created. FunctionAppId pulumi.StringInput // The hostname of the endpoint. Hostname pulumi.StringInput // The port to use for the endpoint Port pulumi.IntInput // The ID of the Relay Hybrid Connection to use. Changing this forces a new resource to be created. RelayId pulumi.StringInput // The name of the Relay key with `Send` permission to use. Defaults to `RootManageSharedAccessKey` SendKeyName pulumi.StringPtrInput } func (FunctionAppHybridConnectionArgs) ElementType() reflect.Type { return reflect.TypeOf((*functionAppHybridConnectionArgs)(nil)).Elem() } type FunctionAppHybridConnectionInput interface { pulumi.Input ToFunctionAppHybridConnectionOutput() FunctionAppHybridConnectionOutput ToFunctionAppHybridConnectionOutputWithContext(ctx context.Context) FunctionAppHybridConnectionOutput } func (*FunctionAppHybridConnection) ElementType() reflect.Type { return reflect.TypeOf((**FunctionAppHybridConnection)(nil)).Elem() } func (i *FunctionAppHybridConnection) ToFunctionAppHybridConnectionOutput() FunctionAppHybridConnectionOutput { return i.ToFunctionAppHybridConnectionOutputWithContext(context.Background()) } func (i *FunctionAppHybridConnection) ToFunctionAppHybridConnectionOutputWithContext(ctx context.Context) FunctionAppHybridConnectionOutput { return pulumi.ToOutputWithContext(ctx, i).(FunctionAppHybridConnectionOutput) } // FunctionAppHybridConnectionArrayInput is an input type that accepts FunctionAppHybridConnectionArray and FunctionAppHybridConnectionArrayOutput values. // You can construct a concrete instance of `FunctionAppHybridConnectionArrayInput` via: // // FunctionAppHybridConnectionArray{ FunctionAppHybridConnectionArgs{...} } type FunctionAppHybridConnectionArrayInput interface { pulumi.Input ToFunctionAppHybridConnectionArrayOutput() FunctionAppHybridConnectionArrayOutput ToFunctionAppHybridConnectionArrayOutputWithContext(context.Context) FunctionAppHybridConnectionArrayOutput } type FunctionAppHybridConnectionArray []FunctionAppHybridConnectionInput func (FunctionAppHybridConnectionArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*FunctionAppHybridConnection)(nil)).Elem() } func (i FunctionAppHybridConnectionArray) ToFunctionAppHybridConnectionArrayOutput() FunctionAppHybridConnectionArrayOutput { return i.ToFunctionAppHybridConnectionArrayOutputWithContext(context.Background()) } func (i FunctionAppHybridConnectionArray) ToFunctionAppHybridConnectionArrayOutputWithContext(ctx context.Context) FunctionAppHybridConnectionArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(FunctionAppHybridConnectionArrayOutput) } // FunctionAppHybridConnectionMapInput is an input type that accepts FunctionAppHybridConnectionMap and FunctionAppHybridConnectionMapOutput values. // You can construct a concrete instance of `FunctionAppHybridConnectionMapInput` via: // // FunctionAppHybridConnectionMap{ "key": FunctionAppHybridConnectionArgs{...} } type FunctionAppHybridConnectionMapInput interface { pulumi.Input ToFunctionAppHybridConnectionMapOutput() FunctionAppHybridConnectionMapOutput ToFunctionAppHybridConnectionMapOutputWithContext(context.Context) FunctionAppHybridConnectionMapOutput } type FunctionAppHybridConnectionMap map[string]FunctionAppHybridConnectionInput func (FunctionAppHybridConnectionMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*FunctionAppHybridConnection)(nil)).Elem() } func (i FunctionAppHybridConnectionMap) ToFunctionAppHybridConnectionMapOutput() FunctionAppHybridConnectionMapOutput { return i.ToFunctionAppHybridConnectionMapOutputWithContext(context.Background()) } func (i FunctionAppHybridConnectionMap) ToFunctionAppHybridConnectionMapOutputWithContext(ctx context.Context) FunctionAppHybridConnectionMapOutput { return pulumi.ToOutputWithContext(ctx, i).(FunctionAppHybridConnectionMapOutput) } type FunctionAppHybridConnectionOutput struct{ *pulumi.OutputState } func (FunctionAppHybridConnectionOutput) ElementType() reflect.Type { return reflect.TypeOf((**FunctionAppHybridConnection)(nil)).Elem() } func (o FunctionAppHybridConnectionOutput) ToFunctionAppHybridConnectionOutput() FunctionAppHybridConnectionOutput { return o } func (o FunctionAppHybridConnectionOutput) ToFunctionAppHybridConnectionOutputWithContext(ctx context.Context) FunctionAppHybridConnectionOutput { return o } // The ID of the Function App for this Hybrid Connection. Changing this forces a new resource to be created. func (o FunctionAppHybridConnectionOutput) FunctionAppId() pulumi.StringOutput { return o.ApplyT(func(v *FunctionAppHybridConnection) pulumi.StringOutput { return v.FunctionAppId }).(pulumi.StringOutput) } // The hostname of the endpoint. func (o FunctionAppHybridConnectionOutput) Hostname() pulumi.StringOutput { return o.ApplyT(func(v *FunctionAppHybridConnection) pulumi.StringOutput { return v.Hostname }).(pulumi.StringOutput) } // The name of the Relay Namespace. func (o FunctionAppHybridConnectionOutput) NamespaceName() pulumi.StringOutput { return o.ApplyT(func(v *FunctionAppHybridConnection) pulumi.StringOutput { return v.NamespaceName }).(pulumi.StringOutput) } // The port to use for the endpoint func (o FunctionAppHybridConnectionOutput) Port() pulumi.IntOutput { return o.ApplyT(func(v *FunctionAppHybridConnection) pulumi.IntOutput { return v.Port }).(pulumi.IntOutput) } // The ID of the Relay Hybrid Connection to use. Changing this forces a new resource to be created. func (o FunctionAppHybridConnectionOutput) RelayId() pulumi.StringOutput { return o.ApplyT(func(v *FunctionAppHybridConnection) pulumi.StringOutput { return v.RelayId }).(pulumi.StringOutput) } // The name of the Relay in use. func (o FunctionAppHybridConnectionOutput) RelayName() pulumi.StringOutput { return o.ApplyT(func(v *FunctionAppHybridConnection) pulumi.StringOutput { return v.RelayName }).(pulumi.StringOutput) } // The name of the Relay key with `Send` permission to use. Defaults to `RootManageSharedAccessKey` func (o FunctionAppHybridConnectionOutput) SendKeyName() pulumi.StringPtrOutput { return o.ApplyT(func(v *FunctionAppHybridConnection) pulumi.StringPtrOutput { return v.SendKeyName }).(pulumi.StringPtrOutput) } // The Primary Access Key for the `sendKeyName` func (o FunctionAppHybridConnectionOutput) SendKeyValue() pulumi.StringOutput { return o.ApplyT(func(v *FunctionAppHybridConnection) pulumi.StringOutput { return v.SendKeyValue }).(pulumi.StringOutput) } // The Service Bus Namespace. func (o FunctionAppHybridConnectionOutput) ServiceBusNamespace() pulumi.StringOutput { return o.ApplyT(func(v *FunctionAppHybridConnection) pulumi.StringOutput { return v.ServiceBusNamespace }).(pulumi.StringOutput) } // The suffix for the endpoint. func (o FunctionAppHybridConnectionOutput) ServiceBusSuffix() pulumi.StringOutput { return o.ApplyT(func(v *FunctionAppHybridConnection) pulumi.StringOutput { return v.ServiceBusSuffix }).(pulumi.StringOutput) } type FunctionAppHybridConnectionArrayOutput struct{ *pulumi.OutputState } func (FunctionAppHybridConnectionArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*FunctionAppHybridConnection)(nil)).Elem() } func (o FunctionAppHybridConnectionArrayOutput) ToFunctionAppHybridConnectionArrayOutput() FunctionAppHybridConnectionArrayOutput { return o } func (o FunctionAppHybridConnectionArrayOutput) ToFunctionAppHybridConnectionArrayOutputWithContext(ctx context.Context) FunctionAppHybridConnectionArrayOutput { return o } func (o FunctionAppHybridConnectionArrayOutput) Index(i pulumi.IntInput) FunctionAppHybridConnectionOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *FunctionAppHybridConnection { return vs[0].([]*FunctionAppHybridConnection)[vs[1].(int)] }).(FunctionAppHybridConnectionOutput) } type FunctionAppHybridConnectionMapOutput struct{ *pulumi.OutputState } func (FunctionAppHybridConnectionMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*FunctionAppHybridConnection)(nil)).Elem() } func (o FunctionAppHybridConnectionMapOutput) ToFunctionAppHybridConnectionMapOutput() FunctionAppHybridConnectionMapOutput { return o } func (o FunctionAppHybridConnectionMapOutput) ToFunctionAppHybridConnectionMapOutputWithContext(ctx context.Context) FunctionAppHybridConnectionMapOutput { return o } func (o FunctionAppHybridConnectionMapOutput) MapIndex(k pulumi.StringInput) FunctionAppHybridConnectionOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *FunctionAppHybridConnection { return vs[0].(map[string]*FunctionAppHybridConnection)[vs[1].(string)] }).(FunctionAppHybridConnectionOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*FunctionAppHybridConnectionInput)(nil)).Elem(), &FunctionAppHybridConnection{}) pulumi.RegisterInputType(reflect.TypeOf((*FunctionAppHybridConnectionArrayInput)(nil)).Elem(), FunctionAppHybridConnectionArray{}) pulumi.RegisterInputType(reflect.TypeOf((*FunctionAppHybridConnectionMapInput)(nil)).Elem(), FunctionAppHybridConnectionMap{}) pulumi.RegisterOutputType(FunctionAppHybridConnectionOutput{}) pulumi.RegisterOutputType(FunctionAppHybridConnectionArrayOutput{}) pulumi.RegisterOutputType(FunctionAppHybridConnectionMapOutput{}) }
go
Apache-2.0
b66e1472775a89cca43f5050fef806854a7c3fa3
2026-01-07T09:44:27.619514Z
false
pulumi/pulumi-azure
https://github.com/pulumi/pulumi-azure/blob/b66e1472775a89cca43f5050fef806854a7c3fa3/sdk/go/azure/appservice/environmentV3.go
sdk/go/azure/appservice/environmentV3.go
// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package appservice import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a 3rd Generation (v3) App Service Environment. // // ## Example Usage // // This example provisions an App Service Environment V3. Additional examples of how to use the `appservice.EnvironmentV3` resource can be found in the `./examples/app-service-environment-v3` directory within the GitHub Repository. // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/appservice" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/network" // "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("exampleRG1"), // Location: pulumi.String("West Europe"), // }) // if err != nil { // return err // } // exampleVirtualNetwork, err := network.NewVirtualNetwork(ctx, "example", &network.VirtualNetworkArgs{ // Name: pulumi.String("example-vnet"), // Location: example.Location, // ResourceGroupName: example.Name, // AddressSpaces: pulumi.StringArray{ // pulumi.String("10.0.0.0/16"), // }, // }) // if err != nil { // return err // } // exampleSubnet, err := network.NewSubnet(ctx, "example", &network.SubnetArgs{ // Name: pulumi.String("example-subnet"), // ResourceGroupName: example.Name, // VirtualNetworkName: exampleVirtualNetwork.Name, // AddressPrefixes: pulumi.StringArray{ // pulumi.String("10.0.2.0/24"), // }, // Delegations: network.SubnetDelegationArray{ // &network.SubnetDelegationArgs{ // Name: pulumi.String("Microsoft.Web.hostingEnvironments"), // ServiceDelegation: &network.SubnetDelegationServiceDelegationArgs{ // Name: pulumi.String("Microsoft.Web/hostingEnvironments"), // Actions: pulumi.StringArray{ // pulumi.String("Microsoft.Network/virtualNetworks/subnets/action"), // }, // }, // }, // }, // }) // if err != nil { // return err // } // exampleEnvironmentV3, err := appservice.NewEnvironmentV3(ctx, "example", &appservice.EnvironmentV3Args{ // Name: pulumi.String("example-asev3"), // ResourceGroupName: example.Name, // SubnetId: exampleSubnet.ID(), // InternalLoadBalancingMode: pulumi.String("Web, Publishing"), // ClusterSettings: appservice.EnvironmentV3ClusterSettingArray{ // &appservice.EnvironmentV3ClusterSettingArgs{ // Name: pulumi.String("DisableTls1.0"), // Value: pulumi.String("1"), // }, // &appservice.EnvironmentV3ClusterSettingArgs{ // Name: pulumi.String("InternalEncryption"), // Value: pulumi.String("true"), // }, // &appservice.EnvironmentV3ClusterSettingArgs{ // Name: pulumi.String("FrontEndSSLCipherSuiteOrder"), // Value: pulumi.String("TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256"), // }, // }, // Tags: pulumi.StringMap{ // "env": pulumi.String("production"), // "terraformed": pulumi.String("true"), // }, // }) // if err != nil { // return err // } // _, err = appservice.NewServicePlan(ctx, "example", &appservice.ServicePlanArgs{ // Name: pulumi.String("example"), // ResourceGroupName: example.Name, // Location: example.Location, // OsType: pulumi.String("Linux"), // SkuName: pulumi.String("I1v2"), // AppServiceEnvironmentId: exampleEnvironmentV3.ID(), // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## API Providers // // <!-- This section is generated, changes will be overwritten --> // This resource uses the following Azure API Providers: // // * `Microsoft.Network` - 2025-01-01 // // * `Microsoft.Web` - 2023-01-01 // // ## Import // // A 3rd Generation (v3) App Service Environment can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:appservice/environmentV3:EnvironmentV3 myAppServiceEnv /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Web/hostingEnvironments/myAppServiceEnv // ``` type EnvironmentV3 struct { pulumi.CustomResourceState // Should new Private Endpoint Connections be allowed. Defaults to `true`. AllowNewPrivateEndpointConnections pulumi.BoolPtrOutput `pulumi:"allowNewPrivateEndpointConnections"` // Zero or more `clusterSetting` blocks as defined below. ClusterSettings EnvironmentV3ClusterSettingArrayOutput `pulumi:"clusterSettings"` // This ASEv3 should use dedicated Hosts. Possible values are `2`. Changing this forces a new resource to be created. DedicatedHostCount pulumi.IntPtrOutput `pulumi:"dedicatedHostCount"` // the DNS suffix for this App Service Environment V3. DnsSuffix pulumi.StringOutput `pulumi:"dnsSuffix"` // The external inbound IP addresses of the App Service Environment V3. ExternalInboundIpAddresses pulumi.StringArrayOutput `pulumi:"externalInboundIpAddresses"` // An `inboundNetworkDependencies` block as defined below. InboundNetworkDependencies EnvironmentV3InboundNetworkDependencyArrayOutput `pulumi:"inboundNetworkDependencies"` // The internal inbound IP addresses of the App Service Environment V3. InternalInboundIpAddresses pulumi.StringArrayOutput `pulumi:"internalInboundIpAddresses"` // Specifies which endpoints to serve internally in the Virtual Network for the App Service Environment. Possible values are `None` (for an External VIP Type), and `"Web, Publishing"` (for an Internal VIP Type). Defaults to `None`. Changing this forces a new resource to be created. InternalLoadBalancingMode pulumi.StringPtrOutput `pulumi:"internalLoadBalancingMode"` // The number of IP SSL addresses reserved for the App Service Environment V3. IpSslAddressCount pulumi.IntOutput `pulumi:"ipSslAddressCount"` // Outbound addresses of Linux based Apps in this App Service Environment V3 LinuxOutboundIpAddresses pulumi.StringArrayOutput `pulumi:"linuxOutboundIpAddresses"` // The location where the App Service Environment exists. Location pulumi.StringOutput `pulumi:"location"` // The name of the App Service Environment. Changing this forces a new resource to be created. Name pulumi.StringOutput `pulumi:"name"` // Pricing tier for the front end instances. PricingTier pulumi.StringOutput `pulumi:"pricingTier"` // Whether to enable remote debug. Defaults to `false`. RemoteDebuggingEnabled pulumi.BoolPtrOutput `pulumi:"remoteDebuggingEnabled"` // The name of the Resource Group where the App Service Environment exists. Defaults to the Resource Group of the Subnet (specified by `subnetId`). Changing this forces a new resource to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // The ID of the Subnet which the App Service Environment should be connected to. Changing this forces a new resource to be created. // // > **Note:** a /24 or larger CIDR is required. Once associated with an ASE, this size cannot be changed. // // > **Note:** This Subnet requires a delegation to `Microsoft.Web/hostingEnvironments` as detailed in the example above. SubnetId pulumi.StringOutput `pulumi:"subnetId"` Tags pulumi.StringMapOutput `pulumi:"tags"` // Outbound addresses of Windows based Apps in this App Service Environment V3. WindowsOutboundIpAddresses pulumi.StringArrayOutput `pulumi:"windowsOutboundIpAddresses"` // Set to `true` to deploy the ASEv3 with availability zones supported. Zonal ASEs can be deployed in some regions, you can refer to [Availability Zone support for App Service Environments](https://docs.microsoft.com/azure/app-service/environment/zone-redundancy). You can only set either `dedicatedHostCount` or `zoneRedundant` but not both. Changing this forces a new resource to be created. // // > **Note:** Setting this value will provision 2 Physical Hosts for your App Service Environment V3, this is done at additional cost, please be aware of the pricing commitment in the [General Availability Notes](https://techcommunity.microsoft.com/t5/apps-on-azure/announcing-app-service-environment-v3-ga/ba-p/2517990) ZoneRedundant pulumi.BoolPtrOutput `pulumi:"zoneRedundant"` } // NewEnvironmentV3 registers a new resource with the given unique name, arguments, and options. func NewEnvironmentV3(ctx *pulumi.Context, name string, args *EnvironmentV3Args, opts ...pulumi.ResourceOption) (*EnvironmentV3, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.ResourceGroupName == nil { return nil, errors.New("invalid value for required argument 'ResourceGroupName'") } if args.SubnetId == nil { return nil, errors.New("invalid value for required argument 'SubnetId'") } opts = internal.PkgResourceDefaultOpts(opts) var resource EnvironmentV3 err := ctx.RegisterResource("azure:appservice/environmentV3:EnvironmentV3", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetEnvironmentV3 gets an existing EnvironmentV3 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 GetEnvironmentV3(ctx *pulumi.Context, name string, id pulumi.IDInput, state *EnvironmentV3State, opts ...pulumi.ResourceOption) (*EnvironmentV3, error) { var resource EnvironmentV3 err := ctx.ReadResource("azure:appservice/environmentV3:EnvironmentV3", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering EnvironmentV3 resources. type environmentV3State struct { // Should new Private Endpoint Connections be allowed. Defaults to `true`. AllowNewPrivateEndpointConnections *bool `pulumi:"allowNewPrivateEndpointConnections"` // Zero or more `clusterSetting` blocks as defined below. ClusterSettings []EnvironmentV3ClusterSetting `pulumi:"clusterSettings"` // This ASEv3 should use dedicated Hosts. Possible values are `2`. Changing this forces a new resource to be created. DedicatedHostCount *int `pulumi:"dedicatedHostCount"` // the DNS suffix for this App Service Environment V3. DnsSuffix *string `pulumi:"dnsSuffix"` // The external inbound IP addresses of the App Service Environment V3. ExternalInboundIpAddresses []string `pulumi:"externalInboundIpAddresses"` // An `inboundNetworkDependencies` block as defined below. InboundNetworkDependencies []EnvironmentV3InboundNetworkDependency `pulumi:"inboundNetworkDependencies"` // The internal inbound IP addresses of the App Service Environment V3. InternalInboundIpAddresses []string `pulumi:"internalInboundIpAddresses"` // Specifies which endpoints to serve internally in the Virtual Network for the App Service Environment. Possible values are `None` (for an External VIP Type), and `"Web, Publishing"` (for an Internal VIP Type). Defaults to `None`. Changing this forces a new resource to be created. InternalLoadBalancingMode *string `pulumi:"internalLoadBalancingMode"` // The number of IP SSL addresses reserved for the App Service Environment V3. IpSslAddressCount *int `pulumi:"ipSslAddressCount"` // Outbound addresses of Linux based Apps in this App Service Environment V3 LinuxOutboundIpAddresses []string `pulumi:"linuxOutboundIpAddresses"` // The location where the App Service Environment exists. Location *string `pulumi:"location"` // The name of the App Service Environment. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // Pricing tier for the front end instances. PricingTier *string `pulumi:"pricingTier"` // Whether to enable remote debug. Defaults to `false`. RemoteDebuggingEnabled *bool `pulumi:"remoteDebuggingEnabled"` // The name of the Resource Group where the App Service Environment exists. Defaults to the Resource Group of the Subnet (specified by `subnetId`). Changing this forces a new resource to be created. ResourceGroupName *string `pulumi:"resourceGroupName"` // The ID of the Subnet which the App Service Environment should be connected to. Changing this forces a new resource to be created. // // > **Note:** a /24 or larger CIDR is required. Once associated with an ASE, this size cannot be changed. // // > **Note:** This Subnet requires a delegation to `Microsoft.Web/hostingEnvironments` as detailed in the example above. SubnetId *string `pulumi:"subnetId"` Tags map[string]string `pulumi:"tags"` // Outbound addresses of Windows based Apps in this App Service Environment V3. WindowsOutboundIpAddresses []string `pulumi:"windowsOutboundIpAddresses"` // Set to `true` to deploy the ASEv3 with availability zones supported. Zonal ASEs can be deployed in some regions, you can refer to [Availability Zone support for App Service Environments](https://docs.microsoft.com/azure/app-service/environment/zone-redundancy). You can only set either `dedicatedHostCount` or `zoneRedundant` but not both. Changing this forces a new resource to be created. // // > **Note:** Setting this value will provision 2 Physical Hosts for your App Service Environment V3, this is done at additional cost, please be aware of the pricing commitment in the [General Availability Notes](https://techcommunity.microsoft.com/t5/apps-on-azure/announcing-app-service-environment-v3-ga/ba-p/2517990) ZoneRedundant *bool `pulumi:"zoneRedundant"` } type EnvironmentV3State struct { // Should new Private Endpoint Connections be allowed. Defaults to `true`. AllowNewPrivateEndpointConnections pulumi.BoolPtrInput // Zero or more `clusterSetting` blocks as defined below. ClusterSettings EnvironmentV3ClusterSettingArrayInput // This ASEv3 should use dedicated Hosts. Possible values are `2`. Changing this forces a new resource to be created. DedicatedHostCount pulumi.IntPtrInput // the DNS suffix for this App Service Environment V3. DnsSuffix pulumi.StringPtrInput // The external inbound IP addresses of the App Service Environment V3. ExternalInboundIpAddresses pulumi.StringArrayInput // An `inboundNetworkDependencies` block as defined below. InboundNetworkDependencies EnvironmentV3InboundNetworkDependencyArrayInput // The internal inbound IP addresses of the App Service Environment V3. InternalInboundIpAddresses pulumi.StringArrayInput // Specifies which endpoints to serve internally in the Virtual Network for the App Service Environment. Possible values are `None` (for an External VIP Type), and `"Web, Publishing"` (for an Internal VIP Type). Defaults to `None`. Changing this forces a new resource to be created. InternalLoadBalancingMode pulumi.StringPtrInput // The number of IP SSL addresses reserved for the App Service Environment V3. IpSslAddressCount pulumi.IntPtrInput // Outbound addresses of Linux based Apps in this App Service Environment V3 LinuxOutboundIpAddresses pulumi.StringArrayInput // The location where the App Service Environment exists. Location pulumi.StringPtrInput // The name of the App Service Environment. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // Pricing tier for the front end instances. PricingTier pulumi.StringPtrInput // Whether to enable remote debug. Defaults to `false`. RemoteDebuggingEnabled pulumi.BoolPtrInput // The name of the Resource Group where the App Service Environment exists. Defaults to the Resource Group of the Subnet (specified by `subnetId`). Changing this forces a new resource to be created. ResourceGroupName pulumi.StringPtrInput // The ID of the Subnet which the App Service Environment should be connected to. Changing this forces a new resource to be created. // // > **Note:** a /24 or larger CIDR is required. Once associated with an ASE, this size cannot be changed. // // > **Note:** This Subnet requires a delegation to `Microsoft.Web/hostingEnvironments` as detailed in the example above. SubnetId pulumi.StringPtrInput Tags pulumi.StringMapInput // Outbound addresses of Windows based Apps in this App Service Environment V3. WindowsOutboundIpAddresses pulumi.StringArrayInput // Set to `true` to deploy the ASEv3 with availability zones supported. Zonal ASEs can be deployed in some regions, you can refer to [Availability Zone support for App Service Environments](https://docs.microsoft.com/azure/app-service/environment/zone-redundancy). You can only set either `dedicatedHostCount` or `zoneRedundant` but not both. Changing this forces a new resource to be created. // // > **Note:** Setting this value will provision 2 Physical Hosts for your App Service Environment V3, this is done at additional cost, please be aware of the pricing commitment in the [General Availability Notes](https://techcommunity.microsoft.com/t5/apps-on-azure/announcing-app-service-environment-v3-ga/ba-p/2517990) ZoneRedundant pulumi.BoolPtrInput } func (EnvironmentV3State) ElementType() reflect.Type { return reflect.TypeOf((*environmentV3State)(nil)).Elem() } type environmentV3Args struct { // Should new Private Endpoint Connections be allowed. Defaults to `true`. AllowNewPrivateEndpointConnections *bool `pulumi:"allowNewPrivateEndpointConnections"` // Zero or more `clusterSetting` blocks as defined below. ClusterSettings []EnvironmentV3ClusterSetting `pulumi:"clusterSettings"` // This ASEv3 should use dedicated Hosts. Possible values are `2`. Changing this forces a new resource to be created. DedicatedHostCount *int `pulumi:"dedicatedHostCount"` // Specifies which endpoints to serve internally in the Virtual Network for the App Service Environment. Possible values are `None` (for an External VIP Type), and `"Web, Publishing"` (for an Internal VIP Type). Defaults to `None`. Changing this forces a new resource to be created. InternalLoadBalancingMode *string `pulumi:"internalLoadBalancingMode"` // The name of the App Service Environment. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // Whether to enable remote debug. Defaults to `false`. RemoteDebuggingEnabled *bool `pulumi:"remoteDebuggingEnabled"` // The name of the Resource Group where the App Service Environment exists. Defaults to the Resource Group of the Subnet (specified by `subnetId`). Changing this forces a new resource to be created. ResourceGroupName string `pulumi:"resourceGroupName"` // The ID of the Subnet which the App Service Environment should be connected to. Changing this forces a new resource to be created. // // > **Note:** a /24 or larger CIDR is required. Once associated with an ASE, this size cannot be changed. // // > **Note:** This Subnet requires a delegation to `Microsoft.Web/hostingEnvironments` as detailed in the example above. SubnetId string `pulumi:"subnetId"` Tags map[string]string `pulumi:"tags"` // Set to `true` to deploy the ASEv3 with availability zones supported. Zonal ASEs can be deployed in some regions, you can refer to [Availability Zone support for App Service Environments](https://docs.microsoft.com/azure/app-service/environment/zone-redundancy). You can only set either `dedicatedHostCount` or `zoneRedundant` but not both. Changing this forces a new resource to be created. // // > **Note:** Setting this value will provision 2 Physical Hosts for your App Service Environment V3, this is done at additional cost, please be aware of the pricing commitment in the [General Availability Notes](https://techcommunity.microsoft.com/t5/apps-on-azure/announcing-app-service-environment-v3-ga/ba-p/2517990) ZoneRedundant *bool `pulumi:"zoneRedundant"` } // The set of arguments for constructing a EnvironmentV3 resource. type EnvironmentV3Args struct { // Should new Private Endpoint Connections be allowed. Defaults to `true`. AllowNewPrivateEndpointConnections pulumi.BoolPtrInput // Zero or more `clusterSetting` blocks as defined below. ClusterSettings EnvironmentV3ClusterSettingArrayInput // This ASEv3 should use dedicated Hosts. Possible values are `2`. Changing this forces a new resource to be created. DedicatedHostCount pulumi.IntPtrInput // Specifies which endpoints to serve internally in the Virtual Network for the App Service Environment. Possible values are `None` (for an External VIP Type), and `"Web, Publishing"` (for an Internal VIP Type). Defaults to `None`. Changing this forces a new resource to be created. InternalLoadBalancingMode pulumi.StringPtrInput // The name of the App Service Environment. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // Whether to enable remote debug. Defaults to `false`. RemoteDebuggingEnabled pulumi.BoolPtrInput // The name of the Resource Group where the App Service Environment exists. Defaults to the Resource Group of the Subnet (specified by `subnetId`). Changing this forces a new resource to be created. ResourceGroupName pulumi.StringInput // The ID of the Subnet which the App Service Environment should be connected to. Changing this forces a new resource to be created. // // > **Note:** a /24 or larger CIDR is required. Once associated with an ASE, this size cannot be changed. // // > **Note:** This Subnet requires a delegation to `Microsoft.Web/hostingEnvironments` as detailed in the example above. SubnetId pulumi.StringInput Tags pulumi.StringMapInput // Set to `true` to deploy the ASEv3 with availability zones supported. Zonal ASEs can be deployed in some regions, you can refer to [Availability Zone support for App Service Environments](https://docs.microsoft.com/azure/app-service/environment/zone-redundancy). You can only set either `dedicatedHostCount` or `zoneRedundant` but not both. Changing this forces a new resource to be created. // // > **Note:** Setting this value will provision 2 Physical Hosts for your App Service Environment V3, this is done at additional cost, please be aware of the pricing commitment in the [General Availability Notes](https://techcommunity.microsoft.com/t5/apps-on-azure/announcing-app-service-environment-v3-ga/ba-p/2517990) ZoneRedundant pulumi.BoolPtrInput } func (EnvironmentV3Args) ElementType() reflect.Type { return reflect.TypeOf((*environmentV3Args)(nil)).Elem() } type EnvironmentV3Input interface { pulumi.Input ToEnvironmentV3Output() EnvironmentV3Output ToEnvironmentV3OutputWithContext(ctx context.Context) EnvironmentV3Output } func (*EnvironmentV3) ElementType() reflect.Type { return reflect.TypeOf((**EnvironmentV3)(nil)).Elem() } func (i *EnvironmentV3) ToEnvironmentV3Output() EnvironmentV3Output { return i.ToEnvironmentV3OutputWithContext(context.Background()) } func (i *EnvironmentV3) ToEnvironmentV3OutputWithContext(ctx context.Context) EnvironmentV3Output { return pulumi.ToOutputWithContext(ctx, i).(EnvironmentV3Output) } // EnvironmentV3ArrayInput is an input type that accepts EnvironmentV3Array and EnvironmentV3ArrayOutput values. // You can construct a concrete instance of `EnvironmentV3ArrayInput` via: // // EnvironmentV3Array{ EnvironmentV3Args{...} } type EnvironmentV3ArrayInput interface { pulumi.Input ToEnvironmentV3ArrayOutput() EnvironmentV3ArrayOutput ToEnvironmentV3ArrayOutputWithContext(context.Context) EnvironmentV3ArrayOutput } type EnvironmentV3Array []EnvironmentV3Input func (EnvironmentV3Array) ElementType() reflect.Type { return reflect.TypeOf((*[]*EnvironmentV3)(nil)).Elem() } func (i EnvironmentV3Array) ToEnvironmentV3ArrayOutput() EnvironmentV3ArrayOutput { return i.ToEnvironmentV3ArrayOutputWithContext(context.Background()) } func (i EnvironmentV3Array) ToEnvironmentV3ArrayOutputWithContext(ctx context.Context) EnvironmentV3ArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(EnvironmentV3ArrayOutput) } // EnvironmentV3MapInput is an input type that accepts EnvironmentV3Map and EnvironmentV3MapOutput values. // You can construct a concrete instance of `EnvironmentV3MapInput` via: // // EnvironmentV3Map{ "key": EnvironmentV3Args{...} } type EnvironmentV3MapInput interface { pulumi.Input ToEnvironmentV3MapOutput() EnvironmentV3MapOutput ToEnvironmentV3MapOutputWithContext(context.Context) EnvironmentV3MapOutput } type EnvironmentV3Map map[string]EnvironmentV3Input func (EnvironmentV3Map) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*EnvironmentV3)(nil)).Elem() } func (i EnvironmentV3Map) ToEnvironmentV3MapOutput() EnvironmentV3MapOutput { return i.ToEnvironmentV3MapOutputWithContext(context.Background()) } func (i EnvironmentV3Map) ToEnvironmentV3MapOutputWithContext(ctx context.Context) EnvironmentV3MapOutput { return pulumi.ToOutputWithContext(ctx, i).(EnvironmentV3MapOutput) } type EnvironmentV3Output struct{ *pulumi.OutputState } func (EnvironmentV3Output) ElementType() reflect.Type { return reflect.TypeOf((**EnvironmentV3)(nil)).Elem() } func (o EnvironmentV3Output) ToEnvironmentV3Output() EnvironmentV3Output { return o } func (o EnvironmentV3Output) ToEnvironmentV3OutputWithContext(ctx context.Context) EnvironmentV3Output { return o } // Should new Private Endpoint Connections be allowed. Defaults to `true`. func (o EnvironmentV3Output) AllowNewPrivateEndpointConnections() pulumi.BoolPtrOutput { return o.ApplyT(func(v *EnvironmentV3) pulumi.BoolPtrOutput { return v.AllowNewPrivateEndpointConnections }).(pulumi.BoolPtrOutput) } // Zero or more `clusterSetting` blocks as defined below. func (o EnvironmentV3Output) ClusterSettings() EnvironmentV3ClusterSettingArrayOutput { return o.ApplyT(func(v *EnvironmentV3) EnvironmentV3ClusterSettingArrayOutput { return v.ClusterSettings }).(EnvironmentV3ClusterSettingArrayOutput) } // This ASEv3 should use dedicated Hosts. Possible values are `2`. Changing this forces a new resource to be created. func (o EnvironmentV3Output) DedicatedHostCount() pulumi.IntPtrOutput { return o.ApplyT(func(v *EnvironmentV3) pulumi.IntPtrOutput { return v.DedicatedHostCount }).(pulumi.IntPtrOutput) } // the DNS suffix for this App Service Environment V3. func (o EnvironmentV3Output) DnsSuffix() pulumi.StringOutput { return o.ApplyT(func(v *EnvironmentV3) pulumi.StringOutput { return v.DnsSuffix }).(pulumi.StringOutput) } // The external inbound IP addresses of the App Service Environment V3. func (o EnvironmentV3Output) ExternalInboundIpAddresses() pulumi.StringArrayOutput { return o.ApplyT(func(v *EnvironmentV3) pulumi.StringArrayOutput { return v.ExternalInboundIpAddresses }).(pulumi.StringArrayOutput) } // An `inboundNetworkDependencies` block as defined below. func (o EnvironmentV3Output) InboundNetworkDependencies() EnvironmentV3InboundNetworkDependencyArrayOutput { return o.ApplyT(func(v *EnvironmentV3) EnvironmentV3InboundNetworkDependencyArrayOutput { return v.InboundNetworkDependencies }).(EnvironmentV3InboundNetworkDependencyArrayOutput) } // The internal inbound IP addresses of the App Service Environment V3. func (o EnvironmentV3Output) InternalInboundIpAddresses() pulumi.StringArrayOutput { return o.ApplyT(func(v *EnvironmentV3) pulumi.StringArrayOutput { return v.InternalInboundIpAddresses }).(pulumi.StringArrayOutput) } // Specifies which endpoints to serve internally in the Virtual Network for the App Service Environment. Possible values are `None` (for an External VIP Type), and `"Web, Publishing"` (for an Internal VIP Type). Defaults to `None`. Changing this forces a new resource to be created. func (o EnvironmentV3Output) InternalLoadBalancingMode() pulumi.StringPtrOutput { return o.ApplyT(func(v *EnvironmentV3) pulumi.StringPtrOutput { return v.InternalLoadBalancingMode }).(pulumi.StringPtrOutput) } // The number of IP SSL addresses reserved for the App Service Environment V3. func (o EnvironmentV3Output) IpSslAddressCount() pulumi.IntOutput { return o.ApplyT(func(v *EnvironmentV3) pulumi.IntOutput { return v.IpSslAddressCount }).(pulumi.IntOutput) } // Outbound addresses of Linux based Apps in this App Service Environment V3 func (o EnvironmentV3Output) LinuxOutboundIpAddresses() pulumi.StringArrayOutput { return o.ApplyT(func(v *EnvironmentV3) pulumi.StringArrayOutput { return v.LinuxOutboundIpAddresses }).(pulumi.StringArrayOutput) } // The location where the App Service Environment exists. func (o EnvironmentV3Output) Location() pulumi.StringOutput { return o.ApplyT(func(v *EnvironmentV3) pulumi.StringOutput { return v.Location }).(pulumi.StringOutput) } // The name of the App Service Environment. Changing this forces a new resource to be created. func (o EnvironmentV3Output) Name() pulumi.StringOutput { return o.ApplyT(func(v *EnvironmentV3) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // Pricing tier for the front end instances. func (o EnvironmentV3Output) PricingTier() pulumi.StringOutput { return o.ApplyT(func(v *EnvironmentV3) pulumi.StringOutput { return v.PricingTier }).(pulumi.StringOutput) } // Whether to enable remote debug. Defaults to `false`. func (o EnvironmentV3Output) RemoteDebuggingEnabled() pulumi.BoolPtrOutput { return o.ApplyT(func(v *EnvironmentV3) pulumi.BoolPtrOutput { return v.RemoteDebuggingEnabled }).(pulumi.BoolPtrOutput) } // The name of the Resource Group where the App Service Environment exists. Defaults to the Resource Group of the Subnet (specified by `subnetId`). Changing this forces a new resource to be created. func (o EnvironmentV3Output) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v *EnvironmentV3) pulumi.StringOutput { return v.ResourceGroupName }).(pulumi.StringOutput) } // The ID of the Subnet which the App Service Environment should be connected to. Changing this forces a new resource to be created. // // > **Note:** a /24 or larger CIDR is required. Once associated with an ASE, this size cannot be changed. // // > **Note:** This Subnet requires a delegation to `Microsoft.Web/hostingEnvironments` as detailed in the example above. func (o EnvironmentV3Output) SubnetId() pulumi.StringOutput { return o.ApplyT(func(v *EnvironmentV3) pulumi.StringOutput { return v.SubnetId }).(pulumi.StringOutput) } func (o EnvironmentV3Output) Tags() pulumi.StringMapOutput { return o.ApplyT(func(v *EnvironmentV3) pulumi.StringMapOutput { return v.Tags }).(pulumi.StringMapOutput) } // Outbound addresses of Windows based Apps in this App Service Environment V3. func (o EnvironmentV3Output) WindowsOutboundIpAddresses() pulumi.StringArrayOutput { return o.ApplyT(func(v *EnvironmentV3) pulumi.StringArrayOutput { return v.WindowsOutboundIpAddresses }).(pulumi.StringArrayOutput) } // Set to `true` to deploy the ASEv3 with availability zones supported. Zonal ASEs can be deployed in some regions, you can refer to [Availability Zone support for App Service Environments](https://docs.microsoft.com/azure/app-service/environment/zone-redundancy). You can only set either `dedicatedHostCount` or `zoneRedundant` but not both. Changing this forces a new resource to be created. // // > **Note:** Setting this value will provision 2 Physical Hosts for your App Service Environment V3, this is done at additional cost, please be aware of the pricing commitment in the [General Availability Notes](https://techcommunity.microsoft.com/t5/apps-on-azure/announcing-app-service-environment-v3-ga/ba-p/2517990) func (o EnvironmentV3Output) ZoneRedundant() pulumi.BoolPtrOutput { return o.ApplyT(func(v *EnvironmentV3) pulumi.BoolPtrOutput { return v.ZoneRedundant }).(pulumi.BoolPtrOutput) } type EnvironmentV3ArrayOutput struct{ *pulumi.OutputState } func (EnvironmentV3ArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*EnvironmentV3)(nil)).Elem() } func (o EnvironmentV3ArrayOutput) ToEnvironmentV3ArrayOutput() EnvironmentV3ArrayOutput { return o } func (o EnvironmentV3ArrayOutput) ToEnvironmentV3ArrayOutputWithContext(ctx context.Context) EnvironmentV3ArrayOutput { return o } func (o EnvironmentV3ArrayOutput) Index(i pulumi.IntInput) EnvironmentV3Output { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *EnvironmentV3 { return vs[0].([]*EnvironmentV3)[vs[1].(int)] }).(EnvironmentV3Output) } type EnvironmentV3MapOutput struct{ *pulumi.OutputState } func (EnvironmentV3MapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*EnvironmentV3)(nil)).Elem() }
go
Apache-2.0
b66e1472775a89cca43f5050fef806854a7c3fa3
2026-01-07T09:44:27.619514Z
true
pulumi/pulumi-azure
https://github.com/pulumi/pulumi-azure/blob/b66e1472775a89cca43f5050fef806854a7c3fa3/sdk/go/azure/appservice/linuxFunctionAppSlot.go
sdk/go/azure/appservice/linuxFunctionAppSlot.go
// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package appservice import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a Linux Function App Slot. // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/appservice" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/storage" // "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-resources"), // Location: pulumi.String("West Europe"), // }) // if err != nil { // return err // } // exampleAccount, err := storage.NewAccount(ctx, "example", &storage.AccountArgs{ // Name: pulumi.String("linuxfunctionappsa"), // ResourceGroupName: example.Name, // Location: example.Location, // AccountTier: pulumi.String("Standard"), // AccountReplicationType: pulumi.String("LRS"), // }) // if err != nil { // return err // } // exampleServicePlan, err := appservice.NewServicePlan(ctx, "example", &appservice.ServicePlanArgs{ // Name: pulumi.String("example-app-service-plan"), // ResourceGroupName: example.Name, // Location: example.Location, // OsType: pulumi.String("Linux"), // SkuName: pulumi.String("Y1"), // }) // if err != nil { // return err // } // exampleLinuxFunctionApp, err := appservice.NewLinuxFunctionApp(ctx, "example", &appservice.LinuxFunctionAppArgs{ // Name: pulumi.String("example-linux-function-app"), // ResourceGroupName: example.Name, // Location: example.Location, // ServicePlanId: exampleServicePlan.ID(), // StorageAccountName: exampleAccount.Name, // SiteConfig: &appservice.LinuxFunctionAppSiteConfigArgs{}, // }) // if err != nil { // return err // } // _, err = appservice.NewLinuxFunctionAppSlot(ctx, "example", &appservice.LinuxFunctionAppSlotArgs{ // Name: pulumi.String("example-linux-function-app-slot"), // FunctionAppId: exampleLinuxFunctionApp.ID(), // StorageAccountName: exampleAccount.Name, // SiteConfig: &appservice.LinuxFunctionAppSlotSiteConfigArgs{}, // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## API Providers // // <!-- This section is generated, changes will be overwritten --> // This resource uses the following Azure API Providers: // // * `Microsoft.Web` - 2023-12-01, 2023-01-01 // // ## Import // // A Linux Function App Slot can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:appservice/linuxFunctionAppSlot:LinuxFunctionAppSlot example "/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/resGroup1/providers/Microsoft.Web/sites/site1/slots/slot1" // ``` type LinuxFunctionAppSlot struct { pulumi.CustomResourceState // A map of key-value pairs for [App Settings](https://docs.microsoft.com/azure/azure-functions/functions-app-settings) and custom values. AppSettings pulumi.StringMapOutput `pulumi:"appSettings"` // an `authSettings` block as detailed below. AuthSettings LinuxFunctionAppSlotAuthSettingsPtrOutput `pulumi:"authSettings"` // an `authSettingsV2` block as detailed below. AuthSettingsV2 LinuxFunctionAppSlotAuthSettingsV2PtrOutput `pulumi:"authSettingsV2"` // a `backup` block as detailed below. Backup LinuxFunctionAppSlotBackupPtrOutput `pulumi:"backup"` // Should built in logging be enabled. Configures `AzureWebJobsDashboard` app setting based on the configured storage setting. Defaults to `true`. BuiltinLoggingEnabled pulumi.BoolPtrOutput `pulumi:"builtinLoggingEnabled"` // Should the Function App Slot use Client Certificates. ClientCertificateEnabled pulumi.BoolPtrOutput `pulumi:"clientCertificateEnabled"` // Paths to exclude when using client certificates, separated by ; ClientCertificateExclusionPaths pulumi.StringPtrOutput `pulumi:"clientCertificateExclusionPaths"` // The mode of the Function App Slot's client certificates requirement for incoming requests. Possible values are `Required`, `Optional`, and `OptionalInteractiveUser`. Defaults to `Optional`. ClientCertificateMode pulumi.StringPtrOutput `pulumi:"clientCertificateMode"` // a `connectionString` block as detailed below. ConnectionStrings LinuxFunctionAppSlotConnectionStringArrayOutput `pulumi:"connectionStrings"` // Force disable the content share settings. ContentShareForceDisabled pulumi.BoolPtrOutput `pulumi:"contentShareForceDisabled"` // The identifier used by App Service to perform domain ownership verification via DNS TXT record. CustomDomainVerificationId pulumi.StringOutput `pulumi:"customDomainVerificationId"` // The amount of memory in gigabyte-seconds that your application is allowed to consume per day. Setting this value only affects function apps in Consumption Plans. Defaults to `0`. DailyMemoryTimeQuota pulumi.IntPtrOutput `pulumi:"dailyMemoryTimeQuota"` // The default hostname of the Linux Function App Slot. DefaultHostname pulumi.StringOutput `pulumi:"defaultHostname"` // Is the Linux Function App Slot enabled. Defaults to `true`. Enabled pulumi.BoolPtrOutput `pulumi:"enabled"` // Are the default FTP Basic Authentication publishing credentials enabled. Defaults to `true`. FtpPublishBasicAuthenticationEnabled pulumi.BoolPtrOutput `pulumi:"ftpPublishBasicAuthenticationEnabled"` // The ID of the Linux Function App this Slot is a member of. Changing this forces a new resource to be created. FunctionAppId pulumi.StringOutput `pulumi:"functionAppId"` // The runtime version associated with the Function App Slot. Defaults to `~4`. FunctionsExtensionVersion pulumi.StringPtrOutput `pulumi:"functionsExtensionVersion"` // The ID of the App Service Environment used by Function App Slot. HostingEnvironmentId pulumi.StringOutput `pulumi:"hostingEnvironmentId"` // Can the Function App Slot only be accessed via HTTPS?. Defaults to `false`. HttpsOnly pulumi.BoolPtrOutput `pulumi:"httpsOnly"` // An `identity` block as detailed below. Identity LinuxFunctionAppSlotIdentityPtrOutput `pulumi:"identity"` // The User Assigned Identity ID used for accessing KeyVault secrets. The identity must be assigned to the application in the `identity` block. [For more information see - Access vaults with a user-assigned identity](https://docs.microsoft.com/azure/app-service/app-service-key-vault-references#access-vaults-with-a-user-assigned-identity) KeyVaultReferenceIdentityId pulumi.StringOutput `pulumi:"keyVaultReferenceIdentityId"` // The Kind value for this Linux Function App Slot. Kind pulumi.StringOutput `pulumi:"kind"` // Specifies the name of the Function App Slot. Changing this forces a new resource to be created. Name pulumi.StringOutput `pulumi:"name"` // A list of outbound IP addresses. For example `["52.23.25.3", "52.143.43.12"]` OutboundIpAddressLists pulumi.StringArrayOutput `pulumi:"outboundIpAddressLists"` // A comma separated list of outbound IP addresses as a string. For example `52.23.25.3,52.143.43.12`. OutboundIpAddresses pulumi.StringOutput `pulumi:"outboundIpAddresses"` // A list of possible outbound IP addresses, not all of which are necessarily in use. This is a superset of `outboundIpAddressList`. For example `["52.23.25.3", "52.143.43.12"]`. PossibleOutboundIpAddressLists pulumi.StringArrayOutput `pulumi:"possibleOutboundIpAddressLists"` // A comma separated list of possible outbound IP addresses as a string. For example `52.23.25.3,52.143.43.12,52.143.43.17`. This is a superset of `outboundIpAddresses`. For example `["52.23.25.3", "52.143.43.12","52.143.43.17"]`. PossibleOutboundIpAddresses pulumi.StringOutput `pulumi:"possibleOutboundIpAddresses"` // Should public network access be enabled for the Function App. Defaults to `true`. PublicNetworkAccessEnabled pulumi.BoolPtrOutput `pulumi:"publicNetworkAccessEnabled"` // The ID of the Service Plan in which to run this slot. If not specified the same Service Plan as the Linux Function App will be used. ServicePlanId pulumi.StringPtrOutput `pulumi:"servicePlanId"` // a `siteConfig` block as detailed below. SiteConfig LinuxFunctionAppSlotSiteConfigOutput `pulumi:"siteConfig"` // A `siteCredential` block as defined below. SiteCredentials LinuxFunctionAppSlotSiteCredentialArrayOutput `pulumi:"siteCredentials"` // The access key which will be used to access the storage account for the Function App Slot. StorageAccountAccessKey pulumi.StringPtrOutput `pulumi:"storageAccountAccessKey"` // The backend storage account name which will be used by this Function App Slot. StorageAccountName pulumi.StringPtrOutput `pulumi:"storageAccountName"` // One or more `storageAccount` blocks as defined below. StorageAccounts LinuxFunctionAppSlotStorageAccountArrayOutput `pulumi:"storageAccounts"` // The Key Vault Secret ID, optionally including version, that contains the Connection String to connect to the storage account for this Function App. // // > **Note:** `storageKeyVaultSecretId` cannot be used with `storageAccountName`. // // > **Note:** `storageKeyVaultSecretId` used without a version will use the latest version of the secret, however, the service can take up to 24h to pick up a rotation of the latest version. See the [official docs](https://docs.microsoft.com/azure/app-service/app-service-key-vault-references#rotation) for more information. StorageKeyVaultSecretId pulumi.StringPtrOutput `pulumi:"storageKeyVaultSecretId"` // Should the Function App Slot use its Managed Identity to access storage. // // > **Note:** One of `storageAccountAccessKey` or `storageUsesManagedIdentity` must be specified when using `storageAccountName`. StorageUsesManagedIdentity pulumi.BoolPtrOutput `pulumi:"storageUsesManagedIdentity"` // A mapping of tags which should be assigned to the Linux Function App. Tags pulumi.StringMapOutput `pulumi:"tags"` // Whether backup and restore operations over the linked virtual network are enabled. Defaults to `false`. VirtualNetworkBackupRestoreEnabled pulumi.BoolPtrOutput `pulumi:"virtualNetworkBackupRestoreEnabled"` VirtualNetworkSubnetId pulumi.StringPtrOutput `pulumi:"virtualNetworkSubnetId"` // Specifies whether traffic for the image pull should be routed over virtual network. Defaults to `false`. // // > **Note:** The feature can also be enabled via the app setting `WEBSITE_PULL_IMAGE_OVER_VNET`. The Setting is enabled by default for an app running in the App Service Environment. VnetImagePullEnabled pulumi.BoolPtrOutput `pulumi:"vnetImagePullEnabled"` // Should the default WebDeploy Basic Authentication publishing credentials enabled. Defaults to `true`. WebdeployPublishBasicAuthenticationEnabled pulumi.BoolPtrOutput `pulumi:"webdeployPublishBasicAuthenticationEnabled"` } // NewLinuxFunctionAppSlot registers a new resource with the given unique name, arguments, and options. func NewLinuxFunctionAppSlot(ctx *pulumi.Context, name string, args *LinuxFunctionAppSlotArgs, opts ...pulumi.ResourceOption) (*LinuxFunctionAppSlot, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.FunctionAppId == nil { return nil, errors.New("invalid value for required argument 'FunctionAppId'") } if args.SiteConfig == nil { return nil, errors.New("invalid value for required argument 'SiteConfig'") } if args.StorageAccountAccessKey != nil { args.StorageAccountAccessKey = pulumi.ToSecret(args.StorageAccountAccessKey).(pulumi.StringPtrInput) } secrets := pulumi.AdditionalSecretOutputs([]string{ "customDomainVerificationId", "siteCredentials", "storageAccountAccessKey", }) opts = append(opts, secrets) opts = internal.PkgResourceDefaultOpts(opts) var resource LinuxFunctionAppSlot err := ctx.RegisterResource("azure:appservice/linuxFunctionAppSlot:LinuxFunctionAppSlot", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetLinuxFunctionAppSlot gets an existing LinuxFunctionAppSlot 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 GetLinuxFunctionAppSlot(ctx *pulumi.Context, name string, id pulumi.IDInput, state *LinuxFunctionAppSlotState, opts ...pulumi.ResourceOption) (*LinuxFunctionAppSlot, error) { var resource LinuxFunctionAppSlot err := ctx.ReadResource("azure:appservice/linuxFunctionAppSlot:LinuxFunctionAppSlot", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering LinuxFunctionAppSlot resources. type linuxFunctionAppSlotState struct { // A map of key-value pairs for [App Settings](https://docs.microsoft.com/azure/azure-functions/functions-app-settings) and custom values. AppSettings map[string]string `pulumi:"appSettings"` // an `authSettings` block as detailed below. AuthSettings *LinuxFunctionAppSlotAuthSettings `pulumi:"authSettings"` // an `authSettingsV2` block as detailed below. AuthSettingsV2 *LinuxFunctionAppSlotAuthSettingsV2 `pulumi:"authSettingsV2"` // a `backup` block as detailed below. Backup *LinuxFunctionAppSlotBackup `pulumi:"backup"` // Should built in logging be enabled. Configures `AzureWebJobsDashboard` app setting based on the configured storage setting. Defaults to `true`. BuiltinLoggingEnabled *bool `pulumi:"builtinLoggingEnabled"` // Should the Function App Slot use Client Certificates. ClientCertificateEnabled *bool `pulumi:"clientCertificateEnabled"` // Paths to exclude when using client certificates, separated by ; ClientCertificateExclusionPaths *string `pulumi:"clientCertificateExclusionPaths"` // The mode of the Function App Slot's client certificates requirement for incoming requests. Possible values are `Required`, `Optional`, and `OptionalInteractiveUser`. Defaults to `Optional`. ClientCertificateMode *string `pulumi:"clientCertificateMode"` // a `connectionString` block as detailed below. ConnectionStrings []LinuxFunctionAppSlotConnectionString `pulumi:"connectionStrings"` // Force disable the content share settings. ContentShareForceDisabled *bool `pulumi:"contentShareForceDisabled"` // The identifier used by App Service to perform domain ownership verification via DNS TXT record. CustomDomainVerificationId *string `pulumi:"customDomainVerificationId"` // The amount of memory in gigabyte-seconds that your application is allowed to consume per day. Setting this value only affects function apps in Consumption Plans. Defaults to `0`. DailyMemoryTimeQuota *int `pulumi:"dailyMemoryTimeQuota"` // The default hostname of the Linux Function App Slot. DefaultHostname *string `pulumi:"defaultHostname"` // Is the Linux Function App Slot enabled. Defaults to `true`. Enabled *bool `pulumi:"enabled"` // Are the default FTP Basic Authentication publishing credentials enabled. Defaults to `true`. FtpPublishBasicAuthenticationEnabled *bool `pulumi:"ftpPublishBasicAuthenticationEnabled"` // The ID of the Linux Function App this Slot is a member of. Changing this forces a new resource to be created. FunctionAppId *string `pulumi:"functionAppId"` // The runtime version associated with the Function App Slot. Defaults to `~4`. FunctionsExtensionVersion *string `pulumi:"functionsExtensionVersion"` // The ID of the App Service Environment used by Function App Slot. HostingEnvironmentId *string `pulumi:"hostingEnvironmentId"` // Can the Function App Slot only be accessed via HTTPS?. Defaults to `false`. HttpsOnly *bool `pulumi:"httpsOnly"` // An `identity` block as detailed below. Identity *LinuxFunctionAppSlotIdentity `pulumi:"identity"` // The User Assigned Identity ID used for accessing KeyVault secrets. The identity must be assigned to the application in the `identity` block. [For more information see - Access vaults with a user-assigned identity](https://docs.microsoft.com/azure/app-service/app-service-key-vault-references#access-vaults-with-a-user-assigned-identity) KeyVaultReferenceIdentityId *string `pulumi:"keyVaultReferenceIdentityId"` // The Kind value for this Linux Function App Slot. Kind *string `pulumi:"kind"` // Specifies the name of the Function App Slot. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // A list of outbound IP addresses. For example `["52.23.25.3", "52.143.43.12"]` OutboundIpAddressLists []string `pulumi:"outboundIpAddressLists"` // A comma separated list of outbound IP addresses as a string. For example `52.23.25.3,52.143.43.12`. OutboundIpAddresses *string `pulumi:"outboundIpAddresses"` // A list of possible outbound IP addresses, not all of which are necessarily in use. This is a superset of `outboundIpAddressList`. For example `["52.23.25.3", "52.143.43.12"]`. PossibleOutboundIpAddressLists []string `pulumi:"possibleOutboundIpAddressLists"` // A comma separated list of possible outbound IP addresses as a string. For example `52.23.25.3,52.143.43.12,52.143.43.17`. This is a superset of `outboundIpAddresses`. For example `["52.23.25.3", "52.143.43.12","52.143.43.17"]`. PossibleOutboundIpAddresses *string `pulumi:"possibleOutboundIpAddresses"` // Should public network access be enabled for the Function App. Defaults to `true`. PublicNetworkAccessEnabled *bool `pulumi:"publicNetworkAccessEnabled"` // The ID of the Service Plan in which to run this slot. If not specified the same Service Plan as the Linux Function App will be used. ServicePlanId *string `pulumi:"servicePlanId"` // a `siteConfig` block as detailed below. SiteConfig *LinuxFunctionAppSlotSiteConfig `pulumi:"siteConfig"` // A `siteCredential` block as defined below. SiteCredentials []LinuxFunctionAppSlotSiteCredential `pulumi:"siteCredentials"` // The access key which will be used to access the storage account for the Function App Slot. StorageAccountAccessKey *string `pulumi:"storageAccountAccessKey"` // The backend storage account name which will be used by this Function App Slot. StorageAccountName *string `pulumi:"storageAccountName"` // One or more `storageAccount` blocks as defined below. StorageAccounts []LinuxFunctionAppSlotStorageAccount `pulumi:"storageAccounts"` // The Key Vault Secret ID, optionally including version, that contains the Connection String to connect to the storage account for this Function App. // // > **Note:** `storageKeyVaultSecretId` cannot be used with `storageAccountName`. // // > **Note:** `storageKeyVaultSecretId` used without a version will use the latest version of the secret, however, the service can take up to 24h to pick up a rotation of the latest version. See the [official docs](https://docs.microsoft.com/azure/app-service/app-service-key-vault-references#rotation) for more information. StorageKeyVaultSecretId *string `pulumi:"storageKeyVaultSecretId"` // Should the Function App Slot use its Managed Identity to access storage. // // > **Note:** One of `storageAccountAccessKey` or `storageUsesManagedIdentity` must be specified when using `storageAccountName`. StorageUsesManagedIdentity *bool `pulumi:"storageUsesManagedIdentity"` // A mapping of tags which should be assigned to the Linux Function App. Tags map[string]string `pulumi:"tags"` // Whether backup and restore operations over the linked virtual network are enabled. Defaults to `false`. VirtualNetworkBackupRestoreEnabled *bool `pulumi:"virtualNetworkBackupRestoreEnabled"` VirtualNetworkSubnetId *string `pulumi:"virtualNetworkSubnetId"` // Specifies whether traffic for the image pull should be routed over virtual network. Defaults to `false`. // // > **Note:** The feature can also be enabled via the app setting `WEBSITE_PULL_IMAGE_OVER_VNET`. The Setting is enabled by default for an app running in the App Service Environment. VnetImagePullEnabled *bool `pulumi:"vnetImagePullEnabled"` // Should the default WebDeploy Basic Authentication publishing credentials enabled. Defaults to `true`. WebdeployPublishBasicAuthenticationEnabled *bool `pulumi:"webdeployPublishBasicAuthenticationEnabled"` } type LinuxFunctionAppSlotState struct { // A map of key-value pairs for [App Settings](https://docs.microsoft.com/azure/azure-functions/functions-app-settings) and custom values. AppSettings pulumi.StringMapInput // an `authSettings` block as detailed below. AuthSettings LinuxFunctionAppSlotAuthSettingsPtrInput // an `authSettingsV2` block as detailed below. AuthSettingsV2 LinuxFunctionAppSlotAuthSettingsV2PtrInput // a `backup` block as detailed below. Backup LinuxFunctionAppSlotBackupPtrInput // Should built in logging be enabled. Configures `AzureWebJobsDashboard` app setting based on the configured storage setting. Defaults to `true`. BuiltinLoggingEnabled pulumi.BoolPtrInput // Should the Function App Slot use Client Certificates. ClientCertificateEnabled pulumi.BoolPtrInput // Paths to exclude when using client certificates, separated by ; ClientCertificateExclusionPaths pulumi.StringPtrInput // The mode of the Function App Slot's client certificates requirement for incoming requests. Possible values are `Required`, `Optional`, and `OptionalInteractiveUser`. Defaults to `Optional`. ClientCertificateMode pulumi.StringPtrInput // a `connectionString` block as detailed below. ConnectionStrings LinuxFunctionAppSlotConnectionStringArrayInput // Force disable the content share settings. ContentShareForceDisabled pulumi.BoolPtrInput // The identifier used by App Service to perform domain ownership verification via DNS TXT record. CustomDomainVerificationId pulumi.StringPtrInput // The amount of memory in gigabyte-seconds that your application is allowed to consume per day. Setting this value only affects function apps in Consumption Plans. Defaults to `0`. DailyMemoryTimeQuota pulumi.IntPtrInput // The default hostname of the Linux Function App Slot. DefaultHostname pulumi.StringPtrInput // Is the Linux Function App Slot enabled. Defaults to `true`. Enabled pulumi.BoolPtrInput // Are the default FTP Basic Authentication publishing credentials enabled. Defaults to `true`. FtpPublishBasicAuthenticationEnabled pulumi.BoolPtrInput // The ID of the Linux Function App this Slot is a member of. Changing this forces a new resource to be created. FunctionAppId pulumi.StringPtrInput // The runtime version associated with the Function App Slot. Defaults to `~4`. FunctionsExtensionVersion pulumi.StringPtrInput // The ID of the App Service Environment used by Function App Slot. HostingEnvironmentId pulumi.StringPtrInput // Can the Function App Slot only be accessed via HTTPS?. Defaults to `false`. HttpsOnly pulumi.BoolPtrInput // An `identity` block as detailed below. Identity LinuxFunctionAppSlotIdentityPtrInput // The User Assigned Identity ID used for accessing KeyVault secrets. The identity must be assigned to the application in the `identity` block. [For more information see - Access vaults with a user-assigned identity](https://docs.microsoft.com/azure/app-service/app-service-key-vault-references#access-vaults-with-a-user-assigned-identity) KeyVaultReferenceIdentityId pulumi.StringPtrInput // The Kind value for this Linux Function App Slot. Kind pulumi.StringPtrInput // Specifies the name of the Function App Slot. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // A list of outbound IP addresses. For example `["52.23.25.3", "52.143.43.12"]` OutboundIpAddressLists pulumi.StringArrayInput // A comma separated list of outbound IP addresses as a string. For example `52.23.25.3,52.143.43.12`. OutboundIpAddresses pulumi.StringPtrInput // A list of possible outbound IP addresses, not all of which are necessarily in use. This is a superset of `outboundIpAddressList`. For example `["52.23.25.3", "52.143.43.12"]`. PossibleOutboundIpAddressLists pulumi.StringArrayInput // A comma separated list of possible outbound IP addresses as a string. For example `52.23.25.3,52.143.43.12,52.143.43.17`. This is a superset of `outboundIpAddresses`. For example `["52.23.25.3", "52.143.43.12","52.143.43.17"]`. PossibleOutboundIpAddresses pulumi.StringPtrInput // Should public network access be enabled for the Function App. Defaults to `true`. PublicNetworkAccessEnabled pulumi.BoolPtrInput // The ID of the Service Plan in which to run this slot. If not specified the same Service Plan as the Linux Function App will be used. ServicePlanId pulumi.StringPtrInput // a `siteConfig` block as detailed below. SiteConfig LinuxFunctionAppSlotSiteConfigPtrInput // A `siteCredential` block as defined below. SiteCredentials LinuxFunctionAppSlotSiteCredentialArrayInput // The access key which will be used to access the storage account for the Function App Slot. StorageAccountAccessKey pulumi.StringPtrInput // The backend storage account name which will be used by this Function App Slot. StorageAccountName pulumi.StringPtrInput // One or more `storageAccount` blocks as defined below. StorageAccounts LinuxFunctionAppSlotStorageAccountArrayInput // The Key Vault Secret ID, optionally including version, that contains the Connection String to connect to the storage account for this Function App. // // > **Note:** `storageKeyVaultSecretId` cannot be used with `storageAccountName`. // // > **Note:** `storageKeyVaultSecretId` used without a version will use the latest version of the secret, however, the service can take up to 24h to pick up a rotation of the latest version. See the [official docs](https://docs.microsoft.com/azure/app-service/app-service-key-vault-references#rotation) for more information. StorageKeyVaultSecretId pulumi.StringPtrInput // Should the Function App Slot use its Managed Identity to access storage. // // > **Note:** One of `storageAccountAccessKey` or `storageUsesManagedIdentity` must be specified when using `storageAccountName`. StorageUsesManagedIdentity pulumi.BoolPtrInput // A mapping of tags which should be assigned to the Linux Function App. Tags pulumi.StringMapInput // Whether backup and restore operations over the linked virtual network are enabled. Defaults to `false`. VirtualNetworkBackupRestoreEnabled pulumi.BoolPtrInput VirtualNetworkSubnetId pulumi.StringPtrInput // Specifies whether traffic for the image pull should be routed over virtual network. Defaults to `false`. // // > **Note:** The feature can also be enabled via the app setting `WEBSITE_PULL_IMAGE_OVER_VNET`. The Setting is enabled by default for an app running in the App Service Environment. VnetImagePullEnabled pulumi.BoolPtrInput // Should the default WebDeploy Basic Authentication publishing credentials enabled. Defaults to `true`. WebdeployPublishBasicAuthenticationEnabled pulumi.BoolPtrInput } func (LinuxFunctionAppSlotState) ElementType() reflect.Type { return reflect.TypeOf((*linuxFunctionAppSlotState)(nil)).Elem() } type linuxFunctionAppSlotArgs struct { // A map of key-value pairs for [App Settings](https://docs.microsoft.com/azure/azure-functions/functions-app-settings) and custom values. AppSettings map[string]string `pulumi:"appSettings"` // an `authSettings` block as detailed below. AuthSettings *LinuxFunctionAppSlotAuthSettings `pulumi:"authSettings"` // an `authSettingsV2` block as detailed below. AuthSettingsV2 *LinuxFunctionAppSlotAuthSettingsV2 `pulumi:"authSettingsV2"` // a `backup` block as detailed below. Backup *LinuxFunctionAppSlotBackup `pulumi:"backup"` // Should built in logging be enabled. Configures `AzureWebJobsDashboard` app setting based on the configured storage setting. Defaults to `true`. BuiltinLoggingEnabled *bool `pulumi:"builtinLoggingEnabled"` // Should the Function App Slot use Client Certificates. ClientCertificateEnabled *bool `pulumi:"clientCertificateEnabled"` // Paths to exclude when using client certificates, separated by ; ClientCertificateExclusionPaths *string `pulumi:"clientCertificateExclusionPaths"` // The mode of the Function App Slot's client certificates requirement for incoming requests. Possible values are `Required`, `Optional`, and `OptionalInteractiveUser`. Defaults to `Optional`. ClientCertificateMode *string `pulumi:"clientCertificateMode"` // a `connectionString` block as detailed below. ConnectionStrings []LinuxFunctionAppSlotConnectionString `pulumi:"connectionStrings"` // Force disable the content share settings. ContentShareForceDisabled *bool `pulumi:"contentShareForceDisabled"` // The amount of memory in gigabyte-seconds that your application is allowed to consume per day. Setting this value only affects function apps in Consumption Plans. Defaults to `0`. DailyMemoryTimeQuota *int `pulumi:"dailyMemoryTimeQuota"` // Is the Linux Function App Slot enabled. Defaults to `true`. Enabled *bool `pulumi:"enabled"` // Are the default FTP Basic Authentication publishing credentials enabled. Defaults to `true`. FtpPublishBasicAuthenticationEnabled *bool `pulumi:"ftpPublishBasicAuthenticationEnabled"` // The ID of the Linux Function App this Slot is a member of. Changing this forces a new resource to be created. FunctionAppId string `pulumi:"functionAppId"` // The runtime version associated with the Function App Slot. Defaults to `~4`. FunctionsExtensionVersion *string `pulumi:"functionsExtensionVersion"` // Can the Function App Slot only be accessed via HTTPS?. Defaults to `false`. HttpsOnly *bool `pulumi:"httpsOnly"` // An `identity` block as detailed below. Identity *LinuxFunctionAppSlotIdentity `pulumi:"identity"` // The User Assigned Identity ID used for accessing KeyVault secrets. The identity must be assigned to the application in the `identity` block. [For more information see - Access vaults with a user-assigned identity](https://docs.microsoft.com/azure/app-service/app-service-key-vault-references#access-vaults-with-a-user-assigned-identity) KeyVaultReferenceIdentityId *string `pulumi:"keyVaultReferenceIdentityId"` // Specifies the name of the Function App Slot. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // Should public network access be enabled for the Function App. Defaults to `true`. PublicNetworkAccessEnabled *bool `pulumi:"publicNetworkAccessEnabled"` // The ID of the Service Plan in which to run this slot. If not specified the same Service Plan as the Linux Function App will be used. ServicePlanId *string `pulumi:"servicePlanId"` // a `siteConfig` block as detailed below. SiteConfig LinuxFunctionAppSlotSiteConfig `pulumi:"siteConfig"` // The access key which will be used to access the storage account for the Function App Slot. StorageAccountAccessKey *string `pulumi:"storageAccountAccessKey"` // The backend storage account name which will be used by this Function App Slot. StorageAccountName *string `pulumi:"storageAccountName"` // One or more `storageAccount` blocks as defined below. StorageAccounts []LinuxFunctionAppSlotStorageAccount `pulumi:"storageAccounts"` // The Key Vault Secret ID, optionally including version, that contains the Connection String to connect to the storage account for this Function App. // // > **Note:** `storageKeyVaultSecretId` cannot be used with `storageAccountName`. // // > **Note:** `storageKeyVaultSecretId` used without a version will use the latest version of the secret, however, the service can take up to 24h to pick up a rotation of the latest version. See the [official docs](https://docs.microsoft.com/azure/app-service/app-service-key-vault-references#rotation) for more information. StorageKeyVaultSecretId *string `pulumi:"storageKeyVaultSecretId"` // Should the Function App Slot use its Managed Identity to access storage. // // > **Note:** One of `storageAccountAccessKey` or `storageUsesManagedIdentity` must be specified when using `storageAccountName`. StorageUsesManagedIdentity *bool `pulumi:"storageUsesManagedIdentity"` // A mapping of tags which should be assigned to the Linux Function App. Tags map[string]string `pulumi:"tags"` // Whether backup and restore operations over the linked virtual network are enabled. Defaults to `false`. VirtualNetworkBackupRestoreEnabled *bool `pulumi:"virtualNetworkBackupRestoreEnabled"`
go
Apache-2.0
b66e1472775a89cca43f5050fef806854a7c3fa3
2026-01-07T09:44:27.619514Z
true
pulumi/pulumi-azure
https://github.com/pulumi/pulumi-azure/blob/b66e1472775a89cca43f5050fef806854a7c3fa3/sdk/go/azure/appservice/staticWebAppCustomDomain.go
sdk/go/azure/appservice/staticWebAppCustomDomain.go
// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package appservice import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // ## Example Usage // // ### CNAME validation // // ```go // package main // // import ( // // "fmt" // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/appservice" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/dns" // "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-resources"), // Location: pulumi.String("West Europe"), // }) // if err != nil { // return err // } // exampleStaticWebApp, err := appservice.NewStaticWebApp(ctx, "example", &appservice.StaticWebAppArgs{ // Name: pulumi.String("example"), // ResourceGroupName: example.Name, // Location: example.Location, // }) // if err != nil { // return err // } // exampleCNameRecord, err := dns.NewCNameRecord(ctx, "example", &dns.CNameRecordArgs{ // Name: pulumi.String("my-domain"), // ZoneName: pulumi.String("contoso.com"), // ResourceGroupName: example.Name, // Ttl: pulumi.Int(300), // Record: exampleStaticWebApp.DefaultHostName, // }) // if err != nil { // return err // } // _, err = appservice.NewStaticWebAppCustomDomain(ctx, "example", &appservice.StaticWebAppCustomDomainArgs{ // StaticWebAppId: exampleStaticWebApp.ID(), // DomainName: pulumi.All(exampleCNameRecord.Name, exampleCNameRecord.ZoneName).ApplyT(func(_args []interface{}) (string, error) { // name := _args[0].(string) // zoneName := _args[1].(string) // return fmt.Sprintf("%v.%v", name, zoneName), nil // }).(pulumi.StringOutput), // ValidationType: pulumi.String("cname-delegation"), // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ### TXT validation // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/appservice" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/dns" // "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-resources"), // Location: pulumi.String("West Europe"), // }) // if err != nil { // return err // } // exampleStaticWebApp, err := appservice.NewStaticWebApp(ctx, "example", &appservice.StaticWebAppArgs{ // Name: pulumi.String("example"), // ResourceGroupName: example.Name, // Location: example.Location, // }) // if err != nil { // return err // } // exampleStaticWebAppCustomDomain, err := appservice.NewStaticWebAppCustomDomain(ctx, "example", &appservice.StaticWebAppCustomDomainArgs{ // StaticWebAppId: exampleStaticWebApp.ID(), // DomainName: pulumi.String("my-domain.contoso.com"), // ValidationType: pulumi.String("dns-txt-token"), // }) // if err != nil { // return err // } // _, err = dns.NewTxtRecord(ctx, "example", &dns.TxtRecordArgs{ // Name: pulumi.String("_dnsauth.my-domain"), // ZoneName: pulumi.String("contoso.com"), // ResourceGroupName: example.Name, // Ttl: pulumi.Int(300), // Records: dns.TxtRecordRecordArray{ // &dns.TxtRecordRecordArgs{ // Value: exampleStaticWebAppCustomDomain.ValidationToken, // }, // }, // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## API Providers // // <!-- This section is generated, changes will be overwritten --> // This resource uses the following Azure API Providers: // // * `Microsoft.Web` - 2023-01-01 // // ## Import // // Static Site Custom Domains can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:appservice/staticWebAppCustomDomain:StaticWebAppCustomDomain example /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/group1/providers/Microsoft.Web/staticSites/my-static-site1/customDomains/name.contoso.com // ``` type StaticWebAppCustomDomain struct { pulumi.CustomResourceState // The Domain Name which should be associated with this Static Site. Changing this forces a new Static Site Custom Domain to be created. DomainName pulumi.StringOutput `pulumi:"domainName"` // The ID of the Static Site. Changing this forces a new Static Site Custom Domain to be created. StaticWebAppId pulumi.StringOutput `pulumi:"staticWebAppId"` // Token to be used with `dns-txt-token` validation. ValidationToken pulumi.StringOutput `pulumi:"validationToken"` ValidationType pulumi.StringOutput `pulumi:"validationType"` } // NewStaticWebAppCustomDomain registers a new resource with the given unique name, arguments, and options. func NewStaticWebAppCustomDomain(ctx *pulumi.Context, name string, args *StaticWebAppCustomDomainArgs, opts ...pulumi.ResourceOption) (*StaticWebAppCustomDomain, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.DomainName == nil { return nil, errors.New("invalid value for required argument 'DomainName'") } if args.StaticWebAppId == nil { return nil, errors.New("invalid value for required argument 'StaticWebAppId'") } if args.ValidationType == nil { return nil, errors.New("invalid value for required argument 'ValidationType'") } secrets := pulumi.AdditionalSecretOutputs([]string{ "validationToken", }) opts = append(opts, secrets) opts = internal.PkgResourceDefaultOpts(opts) var resource StaticWebAppCustomDomain err := ctx.RegisterResource("azure:appservice/staticWebAppCustomDomain:StaticWebAppCustomDomain", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetStaticWebAppCustomDomain gets an existing StaticWebAppCustomDomain 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 GetStaticWebAppCustomDomain(ctx *pulumi.Context, name string, id pulumi.IDInput, state *StaticWebAppCustomDomainState, opts ...pulumi.ResourceOption) (*StaticWebAppCustomDomain, error) { var resource StaticWebAppCustomDomain err := ctx.ReadResource("azure:appservice/staticWebAppCustomDomain:StaticWebAppCustomDomain", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering StaticWebAppCustomDomain resources. type staticWebAppCustomDomainState struct { // The Domain Name which should be associated with this Static Site. Changing this forces a new Static Site Custom Domain to be created. DomainName *string `pulumi:"domainName"` // The ID of the Static Site. Changing this forces a new Static Site Custom Domain to be created. StaticWebAppId *string `pulumi:"staticWebAppId"` // Token to be used with `dns-txt-token` validation. ValidationToken *string `pulumi:"validationToken"` ValidationType *string `pulumi:"validationType"` } type StaticWebAppCustomDomainState struct { // The Domain Name which should be associated with this Static Site. Changing this forces a new Static Site Custom Domain to be created. DomainName pulumi.StringPtrInput // The ID of the Static Site. Changing this forces a new Static Site Custom Domain to be created. StaticWebAppId pulumi.StringPtrInput // Token to be used with `dns-txt-token` validation. ValidationToken pulumi.StringPtrInput ValidationType pulumi.StringPtrInput } func (StaticWebAppCustomDomainState) ElementType() reflect.Type { return reflect.TypeOf((*staticWebAppCustomDomainState)(nil)).Elem() } type staticWebAppCustomDomainArgs struct { // The Domain Name which should be associated with this Static Site. Changing this forces a new Static Site Custom Domain to be created. DomainName string `pulumi:"domainName"` // The ID of the Static Site. Changing this forces a new Static Site Custom Domain to be created. StaticWebAppId string `pulumi:"staticWebAppId"` ValidationType string `pulumi:"validationType"` } // The set of arguments for constructing a StaticWebAppCustomDomain resource. type StaticWebAppCustomDomainArgs struct { // The Domain Name which should be associated with this Static Site. Changing this forces a new Static Site Custom Domain to be created. DomainName pulumi.StringInput // The ID of the Static Site. Changing this forces a new Static Site Custom Domain to be created. StaticWebAppId pulumi.StringInput ValidationType pulumi.StringInput } func (StaticWebAppCustomDomainArgs) ElementType() reflect.Type { return reflect.TypeOf((*staticWebAppCustomDomainArgs)(nil)).Elem() } type StaticWebAppCustomDomainInput interface { pulumi.Input ToStaticWebAppCustomDomainOutput() StaticWebAppCustomDomainOutput ToStaticWebAppCustomDomainOutputWithContext(ctx context.Context) StaticWebAppCustomDomainOutput } func (*StaticWebAppCustomDomain) ElementType() reflect.Type { return reflect.TypeOf((**StaticWebAppCustomDomain)(nil)).Elem() } func (i *StaticWebAppCustomDomain) ToStaticWebAppCustomDomainOutput() StaticWebAppCustomDomainOutput { return i.ToStaticWebAppCustomDomainOutputWithContext(context.Background()) } func (i *StaticWebAppCustomDomain) ToStaticWebAppCustomDomainOutputWithContext(ctx context.Context) StaticWebAppCustomDomainOutput { return pulumi.ToOutputWithContext(ctx, i).(StaticWebAppCustomDomainOutput) } // StaticWebAppCustomDomainArrayInput is an input type that accepts StaticWebAppCustomDomainArray and StaticWebAppCustomDomainArrayOutput values. // You can construct a concrete instance of `StaticWebAppCustomDomainArrayInput` via: // // StaticWebAppCustomDomainArray{ StaticWebAppCustomDomainArgs{...} } type StaticWebAppCustomDomainArrayInput interface { pulumi.Input ToStaticWebAppCustomDomainArrayOutput() StaticWebAppCustomDomainArrayOutput ToStaticWebAppCustomDomainArrayOutputWithContext(context.Context) StaticWebAppCustomDomainArrayOutput } type StaticWebAppCustomDomainArray []StaticWebAppCustomDomainInput func (StaticWebAppCustomDomainArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*StaticWebAppCustomDomain)(nil)).Elem() } func (i StaticWebAppCustomDomainArray) ToStaticWebAppCustomDomainArrayOutput() StaticWebAppCustomDomainArrayOutput { return i.ToStaticWebAppCustomDomainArrayOutputWithContext(context.Background()) } func (i StaticWebAppCustomDomainArray) ToStaticWebAppCustomDomainArrayOutputWithContext(ctx context.Context) StaticWebAppCustomDomainArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(StaticWebAppCustomDomainArrayOutput) } // StaticWebAppCustomDomainMapInput is an input type that accepts StaticWebAppCustomDomainMap and StaticWebAppCustomDomainMapOutput values. // You can construct a concrete instance of `StaticWebAppCustomDomainMapInput` via: // // StaticWebAppCustomDomainMap{ "key": StaticWebAppCustomDomainArgs{...} } type StaticWebAppCustomDomainMapInput interface { pulumi.Input ToStaticWebAppCustomDomainMapOutput() StaticWebAppCustomDomainMapOutput ToStaticWebAppCustomDomainMapOutputWithContext(context.Context) StaticWebAppCustomDomainMapOutput } type StaticWebAppCustomDomainMap map[string]StaticWebAppCustomDomainInput func (StaticWebAppCustomDomainMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*StaticWebAppCustomDomain)(nil)).Elem() } func (i StaticWebAppCustomDomainMap) ToStaticWebAppCustomDomainMapOutput() StaticWebAppCustomDomainMapOutput { return i.ToStaticWebAppCustomDomainMapOutputWithContext(context.Background()) } func (i StaticWebAppCustomDomainMap) ToStaticWebAppCustomDomainMapOutputWithContext(ctx context.Context) StaticWebAppCustomDomainMapOutput { return pulumi.ToOutputWithContext(ctx, i).(StaticWebAppCustomDomainMapOutput) } type StaticWebAppCustomDomainOutput struct{ *pulumi.OutputState } func (StaticWebAppCustomDomainOutput) ElementType() reflect.Type { return reflect.TypeOf((**StaticWebAppCustomDomain)(nil)).Elem() } func (o StaticWebAppCustomDomainOutput) ToStaticWebAppCustomDomainOutput() StaticWebAppCustomDomainOutput { return o } func (o StaticWebAppCustomDomainOutput) ToStaticWebAppCustomDomainOutputWithContext(ctx context.Context) StaticWebAppCustomDomainOutput { return o } // The Domain Name which should be associated with this Static Site. Changing this forces a new Static Site Custom Domain to be created. func (o StaticWebAppCustomDomainOutput) DomainName() pulumi.StringOutput { return o.ApplyT(func(v *StaticWebAppCustomDomain) pulumi.StringOutput { return v.DomainName }).(pulumi.StringOutput) } // The ID of the Static Site. Changing this forces a new Static Site Custom Domain to be created. func (o StaticWebAppCustomDomainOutput) StaticWebAppId() pulumi.StringOutput { return o.ApplyT(func(v *StaticWebAppCustomDomain) pulumi.StringOutput { return v.StaticWebAppId }).(pulumi.StringOutput) } // Token to be used with `dns-txt-token` validation. func (o StaticWebAppCustomDomainOutput) ValidationToken() pulumi.StringOutput { return o.ApplyT(func(v *StaticWebAppCustomDomain) pulumi.StringOutput { return v.ValidationToken }).(pulumi.StringOutput) } func (o StaticWebAppCustomDomainOutput) ValidationType() pulumi.StringOutput { return o.ApplyT(func(v *StaticWebAppCustomDomain) pulumi.StringOutput { return v.ValidationType }).(pulumi.StringOutput) } type StaticWebAppCustomDomainArrayOutput struct{ *pulumi.OutputState } func (StaticWebAppCustomDomainArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*StaticWebAppCustomDomain)(nil)).Elem() } func (o StaticWebAppCustomDomainArrayOutput) ToStaticWebAppCustomDomainArrayOutput() StaticWebAppCustomDomainArrayOutput { return o } func (o StaticWebAppCustomDomainArrayOutput) ToStaticWebAppCustomDomainArrayOutputWithContext(ctx context.Context) StaticWebAppCustomDomainArrayOutput { return o } func (o StaticWebAppCustomDomainArrayOutput) Index(i pulumi.IntInput) StaticWebAppCustomDomainOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *StaticWebAppCustomDomain { return vs[0].([]*StaticWebAppCustomDomain)[vs[1].(int)] }).(StaticWebAppCustomDomainOutput) } type StaticWebAppCustomDomainMapOutput struct{ *pulumi.OutputState } func (StaticWebAppCustomDomainMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*StaticWebAppCustomDomain)(nil)).Elem() } func (o StaticWebAppCustomDomainMapOutput) ToStaticWebAppCustomDomainMapOutput() StaticWebAppCustomDomainMapOutput { return o } func (o StaticWebAppCustomDomainMapOutput) ToStaticWebAppCustomDomainMapOutputWithContext(ctx context.Context) StaticWebAppCustomDomainMapOutput { return o } func (o StaticWebAppCustomDomainMapOutput) MapIndex(k pulumi.StringInput) StaticWebAppCustomDomainOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *StaticWebAppCustomDomain { return vs[0].(map[string]*StaticWebAppCustomDomain)[vs[1].(string)] }).(StaticWebAppCustomDomainOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*StaticWebAppCustomDomainInput)(nil)).Elem(), &StaticWebAppCustomDomain{}) pulumi.RegisterInputType(reflect.TypeOf((*StaticWebAppCustomDomainArrayInput)(nil)).Elem(), StaticWebAppCustomDomainArray{}) pulumi.RegisterInputType(reflect.TypeOf((*StaticWebAppCustomDomainMapInput)(nil)).Elem(), StaticWebAppCustomDomainMap{}) pulumi.RegisterOutputType(StaticWebAppCustomDomainOutput{}) pulumi.RegisterOutputType(StaticWebAppCustomDomainArrayOutput{}) pulumi.RegisterOutputType(StaticWebAppCustomDomainMapOutput{}) }
go
Apache-2.0
b66e1472775a89cca43f5050fef806854a7c3fa3
2026-01-07T09:44:27.619514Z
false
pulumi/pulumi-azure
https://github.com/pulumi/pulumi-azure/blob/b66e1472775a89cca43f5050fef806854a7c3fa3/sdk/go/azure/appservice/webAppActiveSlot.go
sdk/go/azure/appservice/webAppActiveSlot.go
// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package appservice import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a Web App Active Slot. // // ## Example Usage // // ### Windows Web App // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/appservice" // "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-resources"), // Location: pulumi.String("West Europe"), // }) // if err != nil { // return err // } // exampleServicePlan, err := appservice.NewServicePlan(ctx, "example", &appservice.ServicePlanArgs{ // Name: pulumi.String("example-plan"), // ResourceGroupName: example.Name, // Location: example.Location, // OsType: pulumi.String("Windows"), // SkuName: pulumi.String("P1v2"), // }) // if err != nil { // return err // } // exampleWindowsWebApp, err := appservice.NewWindowsWebApp(ctx, "example", &appservice.WindowsWebAppArgs{ // Name: pulumi.String("example-windows-web-app"), // ResourceGroupName: example.Name, // Location: exampleServicePlan.Location, // ServicePlanId: exampleServicePlan.ID(), // SiteConfig: &appservice.WindowsWebAppSiteConfigArgs{}, // }) // if err != nil { // return err // } // exampleWindowsWebAppSlot, err := appservice.NewWindowsWebAppSlot(ctx, "example", &appservice.WindowsWebAppSlotArgs{ // Name: pulumi.String("example-windows-web-app-slot"), // AppServiceId: exampleWindowsWebApp.Name, // SiteConfig: &appservice.WindowsWebAppSlotSiteConfigArgs{}, // }) // if err != nil { // return err // } // _, err = appservice.NewWebAppActiveSlot(ctx, "example", &appservice.WebAppActiveSlotArgs{ // SlotId: exampleWindowsWebAppSlot.ID(), // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ### Linux Web App // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/appservice" // "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-resources"), // Location: pulumi.String("West Europe"), // }) // if err != nil { // return err // } // exampleServicePlan, err := appservice.NewServicePlan(ctx, "example", &appservice.ServicePlanArgs{ // Name: pulumi.String("example-plan"), // ResourceGroupName: example.Name, // Location: example.Location, // OsType: pulumi.String("Linux"), // SkuName: pulumi.String("P1v2"), // }) // if err != nil { // return err // } // exampleLinuxWebApp, err := appservice.NewLinuxWebApp(ctx, "example", &appservice.LinuxWebAppArgs{ // Name: pulumi.String("example-linux-web-app"), // ResourceGroupName: example.Name, // Location: exampleServicePlan.Location, // ServicePlanId: exampleServicePlan.ID(), // SiteConfig: &appservice.LinuxWebAppSiteConfigArgs{}, // }) // if err != nil { // return err // } // exampleLinuxWebAppSlot, err := appservice.NewLinuxWebAppSlot(ctx, "example", &appservice.LinuxWebAppSlotArgs{ // Name: pulumi.String("example-linux-web-app-slot"), // AppServiceName: exampleLinuxWebApp.Name, // Location: exampleServicePlan.Location, // ServicePlanId: exampleServicePlan.ID(), // SiteConfig: &appservice.LinuxWebAppSlotSiteConfigArgs{}, // }) // if err != nil { // return err // } // _, err = appservice.NewWebAppActiveSlot(ctx, "example", &appservice.WebAppActiveSlotArgs{ // SlotId: exampleLinuxWebAppSlot.ID(), // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## API Providers // // <!-- This section is generated, changes will be overwritten --> // This resource uses the following Azure API Providers: // // * `Microsoft.Web` - 2023-12-01 // // ## Import // // a Web App Active Slot can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:appservice/webAppActiveSlot:WebAppActiveSlot example "/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/resGroup1/providers/Microsoft.Web/sites/site1" // ``` type WebAppActiveSlot struct { pulumi.CustomResourceState // The timestamp of the last successful swap with `Production`. LastSuccessfulSwap pulumi.StringOutput `pulumi:"lastSuccessfulSwap"` // The swap action should overwrite the Production slot's network configuration with the configuration from this slot. Defaults to `true`. Changing this forces a new resource to be created. OverwriteNetworkConfig pulumi.BoolPtrOutput `pulumi:"overwriteNetworkConfig"` // The ID of the Slot to swap with `Production`. SlotId pulumi.StringOutput `pulumi:"slotId"` } // NewWebAppActiveSlot registers a new resource with the given unique name, arguments, and options. func NewWebAppActiveSlot(ctx *pulumi.Context, name string, args *WebAppActiveSlotArgs, opts ...pulumi.ResourceOption) (*WebAppActiveSlot, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.SlotId == nil { return nil, errors.New("invalid value for required argument 'SlotId'") } opts = internal.PkgResourceDefaultOpts(opts) var resource WebAppActiveSlot err := ctx.RegisterResource("azure:appservice/webAppActiveSlot:WebAppActiveSlot", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetWebAppActiveSlot gets an existing WebAppActiveSlot 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 GetWebAppActiveSlot(ctx *pulumi.Context, name string, id pulumi.IDInput, state *WebAppActiveSlotState, opts ...pulumi.ResourceOption) (*WebAppActiveSlot, error) { var resource WebAppActiveSlot err := ctx.ReadResource("azure:appservice/webAppActiveSlot:WebAppActiveSlot", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering WebAppActiveSlot resources. type webAppActiveSlotState struct { // The timestamp of the last successful swap with `Production`. LastSuccessfulSwap *string `pulumi:"lastSuccessfulSwap"` // The swap action should overwrite the Production slot's network configuration with the configuration from this slot. Defaults to `true`. Changing this forces a new resource to be created. OverwriteNetworkConfig *bool `pulumi:"overwriteNetworkConfig"` // The ID of the Slot to swap with `Production`. SlotId *string `pulumi:"slotId"` } type WebAppActiveSlotState struct { // The timestamp of the last successful swap with `Production`. LastSuccessfulSwap pulumi.StringPtrInput // The swap action should overwrite the Production slot's network configuration with the configuration from this slot. Defaults to `true`. Changing this forces a new resource to be created. OverwriteNetworkConfig pulumi.BoolPtrInput // The ID of the Slot to swap with `Production`. SlotId pulumi.StringPtrInput } func (WebAppActiveSlotState) ElementType() reflect.Type { return reflect.TypeOf((*webAppActiveSlotState)(nil)).Elem() } type webAppActiveSlotArgs struct { // The swap action should overwrite the Production slot's network configuration with the configuration from this slot. Defaults to `true`. Changing this forces a new resource to be created. OverwriteNetworkConfig *bool `pulumi:"overwriteNetworkConfig"` // The ID of the Slot to swap with `Production`. SlotId string `pulumi:"slotId"` } // The set of arguments for constructing a WebAppActiveSlot resource. type WebAppActiveSlotArgs struct { // The swap action should overwrite the Production slot's network configuration with the configuration from this slot. Defaults to `true`. Changing this forces a new resource to be created. OverwriteNetworkConfig pulumi.BoolPtrInput // The ID of the Slot to swap with `Production`. SlotId pulumi.StringInput } func (WebAppActiveSlotArgs) ElementType() reflect.Type { return reflect.TypeOf((*webAppActiveSlotArgs)(nil)).Elem() } type WebAppActiveSlotInput interface { pulumi.Input ToWebAppActiveSlotOutput() WebAppActiveSlotOutput ToWebAppActiveSlotOutputWithContext(ctx context.Context) WebAppActiveSlotOutput } func (*WebAppActiveSlot) ElementType() reflect.Type { return reflect.TypeOf((**WebAppActiveSlot)(nil)).Elem() } func (i *WebAppActiveSlot) ToWebAppActiveSlotOutput() WebAppActiveSlotOutput { return i.ToWebAppActiveSlotOutputWithContext(context.Background()) } func (i *WebAppActiveSlot) ToWebAppActiveSlotOutputWithContext(ctx context.Context) WebAppActiveSlotOutput { return pulumi.ToOutputWithContext(ctx, i).(WebAppActiveSlotOutput) } // WebAppActiveSlotArrayInput is an input type that accepts WebAppActiveSlotArray and WebAppActiveSlotArrayOutput values. // You can construct a concrete instance of `WebAppActiveSlotArrayInput` via: // // WebAppActiveSlotArray{ WebAppActiveSlotArgs{...} } type WebAppActiveSlotArrayInput interface { pulumi.Input ToWebAppActiveSlotArrayOutput() WebAppActiveSlotArrayOutput ToWebAppActiveSlotArrayOutputWithContext(context.Context) WebAppActiveSlotArrayOutput } type WebAppActiveSlotArray []WebAppActiveSlotInput func (WebAppActiveSlotArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*WebAppActiveSlot)(nil)).Elem() } func (i WebAppActiveSlotArray) ToWebAppActiveSlotArrayOutput() WebAppActiveSlotArrayOutput { return i.ToWebAppActiveSlotArrayOutputWithContext(context.Background()) } func (i WebAppActiveSlotArray) ToWebAppActiveSlotArrayOutputWithContext(ctx context.Context) WebAppActiveSlotArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(WebAppActiveSlotArrayOutput) } // WebAppActiveSlotMapInput is an input type that accepts WebAppActiveSlotMap and WebAppActiveSlotMapOutput values. // You can construct a concrete instance of `WebAppActiveSlotMapInput` via: // // WebAppActiveSlotMap{ "key": WebAppActiveSlotArgs{...} } type WebAppActiveSlotMapInput interface { pulumi.Input ToWebAppActiveSlotMapOutput() WebAppActiveSlotMapOutput ToWebAppActiveSlotMapOutputWithContext(context.Context) WebAppActiveSlotMapOutput } type WebAppActiveSlotMap map[string]WebAppActiveSlotInput func (WebAppActiveSlotMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*WebAppActiveSlot)(nil)).Elem() } func (i WebAppActiveSlotMap) ToWebAppActiveSlotMapOutput() WebAppActiveSlotMapOutput { return i.ToWebAppActiveSlotMapOutputWithContext(context.Background()) } func (i WebAppActiveSlotMap) ToWebAppActiveSlotMapOutputWithContext(ctx context.Context) WebAppActiveSlotMapOutput { return pulumi.ToOutputWithContext(ctx, i).(WebAppActiveSlotMapOutput) } type WebAppActiveSlotOutput struct{ *pulumi.OutputState } func (WebAppActiveSlotOutput) ElementType() reflect.Type { return reflect.TypeOf((**WebAppActiveSlot)(nil)).Elem() } func (o WebAppActiveSlotOutput) ToWebAppActiveSlotOutput() WebAppActiveSlotOutput { return o } func (o WebAppActiveSlotOutput) ToWebAppActiveSlotOutputWithContext(ctx context.Context) WebAppActiveSlotOutput { return o } // The timestamp of the last successful swap with `Production`. func (o WebAppActiveSlotOutput) LastSuccessfulSwap() pulumi.StringOutput { return o.ApplyT(func(v *WebAppActiveSlot) pulumi.StringOutput { return v.LastSuccessfulSwap }).(pulumi.StringOutput) } // The swap action should overwrite the Production slot's network configuration with the configuration from this slot. Defaults to `true`. Changing this forces a new resource to be created. func (o WebAppActiveSlotOutput) OverwriteNetworkConfig() pulumi.BoolPtrOutput { return o.ApplyT(func(v *WebAppActiveSlot) pulumi.BoolPtrOutput { return v.OverwriteNetworkConfig }).(pulumi.BoolPtrOutput) } // The ID of the Slot to swap with `Production`. func (o WebAppActiveSlotOutput) SlotId() pulumi.StringOutput { return o.ApplyT(func(v *WebAppActiveSlot) pulumi.StringOutput { return v.SlotId }).(pulumi.StringOutput) } type WebAppActiveSlotArrayOutput struct{ *pulumi.OutputState } func (WebAppActiveSlotArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*WebAppActiveSlot)(nil)).Elem() } func (o WebAppActiveSlotArrayOutput) ToWebAppActiveSlotArrayOutput() WebAppActiveSlotArrayOutput { return o } func (o WebAppActiveSlotArrayOutput) ToWebAppActiveSlotArrayOutputWithContext(ctx context.Context) WebAppActiveSlotArrayOutput { return o } func (o WebAppActiveSlotArrayOutput) Index(i pulumi.IntInput) WebAppActiveSlotOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *WebAppActiveSlot { return vs[0].([]*WebAppActiveSlot)[vs[1].(int)] }).(WebAppActiveSlotOutput) } type WebAppActiveSlotMapOutput struct{ *pulumi.OutputState } func (WebAppActiveSlotMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*WebAppActiveSlot)(nil)).Elem() } func (o WebAppActiveSlotMapOutput) ToWebAppActiveSlotMapOutput() WebAppActiveSlotMapOutput { return o } func (o WebAppActiveSlotMapOutput) ToWebAppActiveSlotMapOutputWithContext(ctx context.Context) WebAppActiveSlotMapOutput { return o } func (o WebAppActiveSlotMapOutput) MapIndex(k pulumi.StringInput) WebAppActiveSlotOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *WebAppActiveSlot { return vs[0].(map[string]*WebAppActiveSlot)[vs[1].(string)] }).(WebAppActiveSlotOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*WebAppActiveSlotInput)(nil)).Elem(), &WebAppActiveSlot{}) pulumi.RegisterInputType(reflect.TypeOf((*WebAppActiveSlotArrayInput)(nil)).Elem(), WebAppActiveSlotArray{}) pulumi.RegisterInputType(reflect.TypeOf((*WebAppActiveSlotMapInput)(nil)).Elem(), WebAppActiveSlotMap{}) pulumi.RegisterOutputType(WebAppActiveSlotOutput{}) pulumi.RegisterOutputType(WebAppActiveSlotArrayOutput{}) pulumi.RegisterOutputType(WebAppActiveSlotMapOutput{}) }
go
Apache-2.0
b66e1472775a89cca43f5050fef806854a7c3fa3
2026-01-07T09:44:27.619514Z
false
pulumi/pulumi-azure
https://github.com/pulumi/pulumi-azure/blob/b66e1472775a89cca43f5050fef806854a7c3fa3/sdk/go/azure/appservice/getCertificateOrder.go
sdk/go/azure/appservice/getCertificateOrder.go
// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package appservice import ( "context" "reflect" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Use this data source to access information about an existing App Service Certificate Order. // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/appservice" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { // example, err := appservice.LookupCertificateOrder(ctx, &appservice.LookupCertificateOrderArgs{ // Name: "example-cert-order", // ResourceGroupName: "example-resources", // }, nil) // if err != nil { // return err // } // ctx.Export("certificateOrderId", example.Id) // return nil // }) // } // // ``` func LookupCertificateOrder(ctx *pulumi.Context, args *LookupCertificateOrderArgs, opts ...pulumi.InvokeOption) (*LookupCertificateOrderResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupCertificateOrderResult err := ctx.Invoke("azure:appservice/getCertificateOrder:getCertificateOrder", args, &rv, opts...) if err != nil { return nil, err } return &rv, nil } // A collection of arguments for invoking getCertificateOrder. type LookupCertificateOrderArgs struct { // The name of the App Service. Name string `pulumi:"name"` // The Name of the Resource Group where the App Service exists. ResourceGroupName string `pulumi:"resourceGroupName"` } // A collection of values returned by getCertificateOrder. type LookupCertificateOrderResult struct { // Reasons why App Service Certificate is not renewable at the current moment. AppServiceCertificateNotRenewableReasons []string `pulumi:"appServiceCertificateNotRenewableReasons"` // true if the certificate should be automatically renewed when it expires; otherwise, false. AutoRenew bool `pulumi:"autoRenew"` // State of the Key Vault secret. A `certificates` block as defined below. Certificates []GetCertificateOrderCertificate `pulumi:"certificates"` // Last CSR that was created for this order. Csr string `pulumi:"csr"` // The Distinguished Name for the App Service Certificate Order. DistinguishedName string `pulumi:"distinguishedName"` // Domain verification token. DomainVerificationToken string `pulumi:"domainVerificationToken"` // Certificate expiration time. ExpirationTime string `pulumi:"expirationTime"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` // Certificate thumbprint intermediate certificate. IntermediateThumbprint string `pulumi:"intermediateThumbprint"` // Whether the private key is external or not. IsPrivateKeyExternal bool `pulumi:"isPrivateKeyExternal"` // Certificate key size. KeySize int `pulumi:"keySize"` // The Azure location where the App Service exists. Location string `pulumi:"location"` Name string `pulumi:"name"` // Certificate product type, such as `Standard` or `WildCard`. ProductType string `pulumi:"productType"` ResourceGroupName string `pulumi:"resourceGroupName"` // Certificate thumbprint for root certificate. RootThumbprint string `pulumi:"rootThumbprint"` // Certificate thumbprint for signed certificate. SignedCertificateThumbprint string `pulumi:"signedCertificateThumbprint"` // Current order status. Status string `pulumi:"status"` // A mapping of tags to assign to the resource. Tags map[string]string `pulumi:"tags"` // Duration in years (must be between 1 and 3). ValidityInYears int `pulumi:"validityInYears"` } func LookupCertificateOrderOutput(ctx *pulumi.Context, args LookupCertificateOrderOutputArgs, opts ...pulumi.InvokeOption) LookupCertificateOrderResultOutput { return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupCertificateOrderResultOutput, error) { args := v.(LookupCertificateOrderArgs) options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} return ctx.InvokeOutput("azure:appservice/getCertificateOrder:getCertificateOrder", args, LookupCertificateOrderResultOutput{}, options).(LookupCertificateOrderResultOutput), nil }).(LookupCertificateOrderResultOutput) } // A collection of arguments for invoking getCertificateOrder. type LookupCertificateOrderOutputArgs struct { // The name of the App Service. Name pulumi.StringInput `pulumi:"name"` // The Name of the Resource Group where the App Service exists. ResourceGroupName pulumi.StringInput `pulumi:"resourceGroupName"` } func (LookupCertificateOrderOutputArgs) ElementType() reflect.Type { return reflect.TypeOf((*LookupCertificateOrderArgs)(nil)).Elem() } // A collection of values returned by getCertificateOrder. type LookupCertificateOrderResultOutput struct{ *pulumi.OutputState } func (LookupCertificateOrderResultOutput) ElementType() reflect.Type { return reflect.TypeOf((*LookupCertificateOrderResult)(nil)).Elem() } func (o LookupCertificateOrderResultOutput) ToLookupCertificateOrderResultOutput() LookupCertificateOrderResultOutput { return o } func (o LookupCertificateOrderResultOutput) ToLookupCertificateOrderResultOutputWithContext(ctx context.Context) LookupCertificateOrderResultOutput { return o } // Reasons why App Service Certificate is not renewable at the current moment. func (o LookupCertificateOrderResultOutput) AppServiceCertificateNotRenewableReasons() pulumi.StringArrayOutput { return o.ApplyT(func(v LookupCertificateOrderResult) []string { return v.AppServiceCertificateNotRenewableReasons }).(pulumi.StringArrayOutput) } // true if the certificate should be automatically renewed when it expires; otherwise, false. func (o LookupCertificateOrderResultOutput) AutoRenew() pulumi.BoolOutput { return o.ApplyT(func(v LookupCertificateOrderResult) bool { return v.AutoRenew }).(pulumi.BoolOutput) } // State of the Key Vault secret. A `certificates` block as defined below. func (o LookupCertificateOrderResultOutput) Certificates() GetCertificateOrderCertificateArrayOutput { return o.ApplyT(func(v LookupCertificateOrderResult) []GetCertificateOrderCertificate { return v.Certificates }).(GetCertificateOrderCertificateArrayOutput) } // Last CSR that was created for this order. func (o LookupCertificateOrderResultOutput) Csr() pulumi.StringOutput { return o.ApplyT(func(v LookupCertificateOrderResult) string { return v.Csr }).(pulumi.StringOutput) } // The Distinguished Name for the App Service Certificate Order. func (o LookupCertificateOrderResultOutput) DistinguishedName() pulumi.StringOutput { return o.ApplyT(func(v LookupCertificateOrderResult) string { return v.DistinguishedName }).(pulumi.StringOutput) } // Domain verification token. func (o LookupCertificateOrderResultOutput) DomainVerificationToken() pulumi.StringOutput { return o.ApplyT(func(v LookupCertificateOrderResult) string { return v.DomainVerificationToken }).(pulumi.StringOutput) } // Certificate expiration time. func (o LookupCertificateOrderResultOutput) ExpirationTime() pulumi.StringOutput { return o.ApplyT(func(v LookupCertificateOrderResult) string { return v.ExpirationTime }).(pulumi.StringOutput) } // The provider-assigned unique ID for this managed resource. func (o LookupCertificateOrderResultOutput) Id() pulumi.StringOutput { return o.ApplyT(func(v LookupCertificateOrderResult) string { return v.Id }).(pulumi.StringOutput) } // Certificate thumbprint intermediate certificate. func (o LookupCertificateOrderResultOutput) IntermediateThumbprint() pulumi.StringOutput { return o.ApplyT(func(v LookupCertificateOrderResult) string { return v.IntermediateThumbprint }).(pulumi.StringOutput) } // Whether the private key is external or not. func (o LookupCertificateOrderResultOutput) IsPrivateKeyExternal() pulumi.BoolOutput { return o.ApplyT(func(v LookupCertificateOrderResult) bool { return v.IsPrivateKeyExternal }).(pulumi.BoolOutput) } // Certificate key size. func (o LookupCertificateOrderResultOutput) KeySize() pulumi.IntOutput { return o.ApplyT(func(v LookupCertificateOrderResult) int { return v.KeySize }).(pulumi.IntOutput) } // The Azure location where the App Service exists. func (o LookupCertificateOrderResultOutput) Location() pulumi.StringOutput { return o.ApplyT(func(v LookupCertificateOrderResult) string { return v.Location }).(pulumi.StringOutput) } func (o LookupCertificateOrderResultOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v LookupCertificateOrderResult) string { return v.Name }).(pulumi.StringOutput) } // Certificate product type, such as `Standard` or `WildCard`. func (o LookupCertificateOrderResultOutput) ProductType() pulumi.StringOutput { return o.ApplyT(func(v LookupCertificateOrderResult) string { return v.ProductType }).(pulumi.StringOutput) } func (o LookupCertificateOrderResultOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v LookupCertificateOrderResult) string { return v.ResourceGroupName }).(pulumi.StringOutput) } // Certificate thumbprint for root certificate. func (o LookupCertificateOrderResultOutput) RootThumbprint() pulumi.StringOutput { return o.ApplyT(func(v LookupCertificateOrderResult) string { return v.RootThumbprint }).(pulumi.StringOutput) } // Certificate thumbprint for signed certificate. func (o LookupCertificateOrderResultOutput) SignedCertificateThumbprint() pulumi.StringOutput { return o.ApplyT(func(v LookupCertificateOrderResult) string { return v.SignedCertificateThumbprint }).(pulumi.StringOutput) } // Current order status. func (o LookupCertificateOrderResultOutput) Status() pulumi.StringOutput { return o.ApplyT(func(v LookupCertificateOrderResult) string { return v.Status }).(pulumi.StringOutput) } // A mapping of tags to assign to the resource. func (o LookupCertificateOrderResultOutput) Tags() pulumi.StringMapOutput { return o.ApplyT(func(v LookupCertificateOrderResult) map[string]string { return v.Tags }).(pulumi.StringMapOutput) } // Duration in years (must be between 1 and 3). func (o LookupCertificateOrderResultOutput) ValidityInYears() pulumi.IntOutput { return o.ApplyT(func(v LookupCertificateOrderResult) int { return v.ValidityInYears }).(pulumi.IntOutput) } func init() { pulumi.RegisterOutputType(LookupCertificateOrderResultOutput{}) }
go
Apache-2.0
b66e1472775a89cca43f5050fef806854a7c3fa3
2026-01-07T09:44:27.619514Z
false
pulumi/pulumi-azure
https://github.com/pulumi/pulumi-azure/blob/b66e1472775a89cca43f5050fef806854a7c3fa3/sdk/go/azure/appservice/sourceControlToken.go
sdk/go/azure/appservice/sourceControlToken.go
// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package appservice import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/appservice" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { // _, err := appservice.NewSourceControlToken(ctx, "example", &appservice.SourceControlTokenArgs{ // Type: pulumi.String("GitHub"), // Token: pulumi.String("ghp_sometokenvaluesecretsauce"), // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## API Providers // // <!-- This section is generated, changes will be overwritten --> // This resource uses the following Azure API Providers: // // * `Microsoft.Web` - 2023-01-01 // // ## Import // // App Service Source GitHub Tokens can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:appservice/sourceControlToken:SourceControlToken example /providers/Microsoft.Web/sourceControls/GitHub // ``` type SourceControlToken struct { pulumi.CustomResourceState // The Access Token. Token pulumi.StringOutput `pulumi:"token"` // The Access Token Secret. // // > **Note:** The token used for deploying App Service needs the following permissions: `repo` and `workflow`. TokenSecret pulumi.StringPtrOutput `pulumi:"tokenSecret"` // The Token type. Possible values include `Bitbucket`, `Dropbox`, `Github`, and `OneDrive`. Type pulumi.StringOutput `pulumi:"type"` } // NewSourceControlToken registers a new resource with the given unique name, arguments, and options. func NewSourceControlToken(ctx *pulumi.Context, name string, args *SourceControlTokenArgs, opts ...pulumi.ResourceOption) (*SourceControlToken, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.Token == nil { return nil, errors.New("invalid value for required argument 'Token'") } if args.Type == nil { return nil, errors.New("invalid value for required argument 'Type'") } if args.Token != nil { args.Token = pulumi.ToSecret(args.Token).(pulumi.StringInput) } if args.TokenSecret != nil { args.TokenSecret = pulumi.ToSecret(args.TokenSecret).(pulumi.StringPtrInput) } secrets := pulumi.AdditionalSecretOutputs([]string{ "token", "tokenSecret", }) opts = append(opts, secrets) opts = internal.PkgResourceDefaultOpts(opts) var resource SourceControlToken err := ctx.RegisterResource("azure:appservice/sourceControlToken:SourceControlToken", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetSourceControlToken gets an existing SourceControlToken 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 GetSourceControlToken(ctx *pulumi.Context, name string, id pulumi.IDInput, state *SourceControlTokenState, opts ...pulumi.ResourceOption) (*SourceControlToken, error) { var resource SourceControlToken err := ctx.ReadResource("azure:appservice/sourceControlToken:SourceControlToken", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering SourceControlToken resources. type sourceControlTokenState struct { // The Access Token. Token *string `pulumi:"token"` // The Access Token Secret. // // > **Note:** The token used for deploying App Service needs the following permissions: `repo` and `workflow`. TokenSecret *string `pulumi:"tokenSecret"` // The Token type. Possible values include `Bitbucket`, `Dropbox`, `Github`, and `OneDrive`. Type *string `pulumi:"type"` } type SourceControlTokenState struct { // The Access Token. Token pulumi.StringPtrInput // The Access Token Secret. // // > **Note:** The token used for deploying App Service needs the following permissions: `repo` and `workflow`. TokenSecret pulumi.StringPtrInput // The Token type. Possible values include `Bitbucket`, `Dropbox`, `Github`, and `OneDrive`. Type pulumi.StringPtrInput } func (SourceControlTokenState) ElementType() reflect.Type { return reflect.TypeOf((*sourceControlTokenState)(nil)).Elem() } type sourceControlTokenArgs struct { // The Access Token. Token string `pulumi:"token"` // The Access Token Secret. // // > **Note:** The token used for deploying App Service needs the following permissions: `repo` and `workflow`. TokenSecret *string `pulumi:"tokenSecret"` // The Token type. Possible values include `Bitbucket`, `Dropbox`, `Github`, and `OneDrive`. Type string `pulumi:"type"` } // The set of arguments for constructing a SourceControlToken resource. type SourceControlTokenArgs struct { // The Access Token. Token pulumi.StringInput // The Access Token Secret. // // > **Note:** The token used for deploying App Service needs the following permissions: `repo` and `workflow`. TokenSecret pulumi.StringPtrInput // The Token type. Possible values include `Bitbucket`, `Dropbox`, `Github`, and `OneDrive`. Type pulumi.StringInput } func (SourceControlTokenArgs) ElementType() reflect.Type { return reflect.TypeOf((*sourceControlTokenArgs)(nil)).Elem() } type SourceControlTokenInput interface { pulumi.Input ToSourceControlTokenOutput() SourceControlTokenOutput ToSourceControlTokenOutputWithContext(ctx context.Context) SourceControlTokenOutput } func (*SourceControlToken) ElementType() reflect.Type { return reflect.TypeOf((**SourceControlToken)(nil)).Elem() } func (i *SourceControlToken) ToSourceControlTokenOutput() SourceControlTokenOutput { return i.ToSourceControlTokenOutputWithContext(context.Background()) } func (i *SourceControlToken) ToSourceControlTokenOutputWithContext(ctx context.Context) SourceControlTokenOutput { return pulumi.ToOutputWithContext(ctx, i).(SourceControlTokenOutput) } // SourceControlTokenArrayInput is an input type that accepts SourceControlTokenArray and SourceControlTokenArrayOutput values. // You can construct a concrete instance of `SourceControlTokenArrayInput` via: // // SourceControlTokenArray{ SourceControlTokenArgs{...} } type SourceControlTokenArrayInput interface { pulumi.Input ToSourceControlTokenArrayOutput() SourceControlTokenArrayOutput ToSourceControlTokenArrayOutputWithContext(context.Context) SourceControlTokenArrayOutput } type SourceControlTokenArray []SourceControlTokenInput func (SourceControlTokenArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*SourceControlToken)(nil)).Elem() } func (i SourceControlTokenArray) ToSourceControlTokenArrayOutput() SourceControlTokenArrayOutput { return i.ToSourceControlTokenArrayOutputWithContext(context.Background()) } func (i SourceControlTokenArray) ToSourceControlTokenArrayOutputWithContext(ctx context.Context) SourceControlTokenArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(SourceControlTokenArrayOutput) } // SourceControlTokenMapInput is an input type that accepts SourceControlTokenMap and SourceControlTokenMapOutput values. // You can construct a concrete instance of `SourceControlTokenMapInput` via: // // SourceControlTokenMap{ "key": SourceControlTokenArgs{...} } type SourceControlTokenMapInput interface { pulumi.Input ToSourceControlTokenMapOutput() SourceControlTokenMapOutput ToSourceControlTokenMapOutputWithContext(context.Context) SourceControlTokenMapOutput } type SourceControlTokenMap map[string]SourceControlTokenInput func (SourceControlTokenMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*SourceControlToken)(nil)).Elem() } func (i SourceControlTokenMap) ToSourceControlTokenMapOutput() SourceControlTokenMapOutput { return i.ToSourceControlTokenMapOutputWithContext(context.Background()) } func (i SourceControlTokenMap) ToSourceControlTokenMapOutputWithContext(ctx context.Context) SourceControlTokenMapOutput { return pulumi.ToOutputWithContext(ctx, i).(SourceControlTokenMapOutput) } type SourceControlTokenOutput struct{ *pulumi.OutputState } func (SourceControlTokenOutput) ElementType() reflect.Type { return reflect.TypeOf((**SourceControlToken)(nil)).Elem() } func (o SourceControlTokenOutput) ToSourceControlTokenOutput() SourceControlTokenOutput { return o } func (o SourceControlTokenOutput) ToSourceControlTokenOutputWithContext(ctx context.Context) SourceControlTokenOutput { return o } // The Access Token. func (o SourceControlTokenOutput) Token() pulumi.StringOutput { return o.ApplyT(func(v *SourceControlToken) pulumi.StringOutput { return v.Token }).(pulumi.StringOutput) } // The Access Token Secret. // // > **Note:** The token used for deploying App Service needs the following permissions: `repo` and `workflow`. func (o SourceControlTokenOutput) TokenSecret() pulumi.StringPtrOutput { return o.ApplyT(func(v *SourceControlToken) pulumi.StringPtrOutput { return v.TokenSecret }).(pulumi.StringPtrOutput) } // The Token type. Possible values include `Bitbucket`, `Dropbox`, `Github`, and `OneDrive`. func (o SourceControlTokenOutput) Type() pulumi.StringOutput { return o.ApplyT(func(v *SourceControlToken) pulumi.StringOutput { return v.Type }).(pulumi.StringOutput) } type SourceControlTokenArrayOutput struct{ *pulumi.OutputState } func (SourceControlTokenArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*SourceControlToken)(nil)).Elem() } func (o SourceControlTokenArrayOutput) ToSourceControlTokenArrayOutput() SourceControlTokenArrayOutput { return o } func (o SourceControlTokenArrayOutput) ToSourceControlTokenArrayOutputWithContext(ctx context.Context) SourceControlTokenArrayOutput { return o } func (o SourceControlTokenArrayOutput) Index(i pulumi.IntInput) SourceControlTokenOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *SourceControlToken { return vs[0].([]*SourceControlToken)[vs[1].(int)] }).(SourceControlTokenOutput) } type SourceControlTokenMapOutput struct{ *pulumi.OutputState } func (SourceControlTokenMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*SourceControlToken)(nil)).Elem() } func (o SourceControlTokenMapOutput) ToSourceControlTokenMapOutput() SourceControlTokenMapOutput { return o } func (o SourceControlTokenMapOutput) ToSourceControlTokenMapOutputWithContext(ctx context.Context) SourceControlTokenMapOutput { return o } func (o SourceControlTokenMapOutput) MapIndex(k pulumi.StringInput) SourceControlTokenOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *SourceControlToken { return vs[0].(map[string]*SourceControlToken)[vs[1].(string)] }).(SourceControlTokenOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*SourceControlTokenInput)(nil)).Elem(), &SourceControlToken{}) pulumi.RegisterInputType(reflect.TypeOf((*SourceControlTokenArrayInput)(nil)).Elem(), SourceControlTokenArray{}) pulumi.RegisterInputType(reflect.TypeOf((*SourceControlTokenMapInput)(nil)).Elem(), SourceControlTokenMap{}) pulumi.RegisterOutputType(SourceControlTokenOutput{}) pulumi.RegisterOutputType(SourceControlTokenArrayOutput{}) pulumi.RegisterOutputType(SourceControlTokenMapOutput{}) }
go
Apache-2.0
b66e1472775a89cca43f5050fef806854a7c3fa3
2026-01-07T09:44:27.619514Z
false
pulumi/pulumi-azure
https://github.com/pulumi/pulumi-azure/blob/b66e1472775a89cca43f5050fef806854a7c3fa3/sdk/go/azure/appservice/servicePlan.go
sdk/go/azure/appservice/servicePlan.go
// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package appservice import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages an App Service: Service Plan. // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/appservice" // "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-resources"), // Location: pulumi.String("West Europe"), // }) // if err != nil { // return err // } // _, err = appservice.NewServicePlan(ctx, "example", &appservice.ServicePlanArgs{ // Name: pulumi.String("example"), // ResourceGroupName: example.Name, // Location: example.Location, // OsType: pulumi.String("Linux"), // SkuName: pulumi.String("P1v2"), // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## API Providers // // <!-- This section is generated, changes will be overwritten --> // This resource uses the following Azure API Providers: // // * `Microsoft.Web` - 2023-12-01 // // ## Import // // AppServices can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:appservice/servicePlan:ServicePlan example /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/resGroup1/providers/Microsoft.Web/serverFarms/farm1 // ``` type ServicePlan struct { pulumi.CustomResourceState // The ID of the App Service Environment to create this Service Plan in. // // > **Note:** Requires an Isolated SKU for `appservice.EnvironmentV3`, supported values include `I1v2`, `I1mv2`, `I2v2`, `I2mv2`, `I3v2`, `I3mv2`, `I4v2`, `I4mv2`, `I5v2`, `I5mv2`, and `I6v2`. AppServiceEnvironmentId pulumi.StringPtrOutput `pulumi:"appServiceEnvironmentId"` // A string representing the Kind of Service Plan. Kind pulumi.StringOutput `pulumi:"kind"` // The Azure Region where the Service Plan should exist. Changing this forces a new Service Plan to be created. Location pulumi.StringOutput `pulumi:"location"` // The maximum number of workers to use in an Elastic SKU Plan or Premium Plan that have `premiumPlanAutoScaleEnabled` set to `true`. Cannot be set unless using an Elastic or Premium SKU. MaximumElasticWorkerCount pulumi.IntOutput `pulumi:"maximumElasticWorkerCount"` // The name which should be used for this Service Plan. Changing this forces a new Service Plan to be created. Name pulumi.StringOutput `pulumi:"name"` // The O/S type for the App Services to be hosted in this plan. Possible values include `Windows`, `Linux`, and `WindowsContainer`. Changing this forces a new resource to be created. OsType pulumi.StringOutput `pulumi:"osType"` // Should Per Site Scaling be enabled. Defaults to `false`. PerSiteScalingEnabled pulumi.BoolPtrOutput `pulumi:"perSiteScalingEnabled"` // Should automatic scaling be enabled for the Premium SKU Plan. Defaults to `false`. Cannot be set unless using a Premium SKU. PremiumPlanAutoScaleEnabled pulumi.BoolPtrOutput `pulumi:"premiumPlanAutoScaleEnabled"` // Whether this is a reserved Service Plan Type. `true` if `osType` is `Linux`, otherwise `false`. Reserved pulumi.BoolOutput `pulumi:"reserved"` // The name of the Resource Group where the Service Plan should exist. Changing this forces a new Service Plan to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // The SKU for the plan. Possible values include `B1`, `B2`, `B3`, `D1`, `F1`, `I1`, `I2`, `I3`, `I1v2`, `I1mv2`, `I2v2`, `I2mv2`, `I3v2`, `I3mv2`, `I4v2`, `I4mv2`, `I5v2`, `I5mv2`, `I6v2`, `P1v2`, `P2v2`, `P3v2`, `P0v3`, `P1v3`, `P2v3`, `P3v3`, `P1mv3`, `P2mv3`, `P3mv3`, `P4mv3`, `P5mv3`, `P0v4`, `P1v4`, `P2v4`, `P3v4`, `P1mv4`, `P2mv4`, `P3mv4`, `P4mv4`, `P5mv4`, `S1`, `S2`, `S3`, `SHARED`, `EP1`, `EP2`, `EP3`, `FC1`, `WS1`, `WS2`, `WS3`, and `Y1`. // // > **Note:** Isolated SKUs (`I1`, `I2`, `I3`, `I1v2`, `I1mv2`, `I2v2`, `I2mv2`, `I3v2`, `I3mv2`) can only be used with App Service Environments // // > **Note:** Elastic and Consumption SKUs (`Y1`, `FC1`, `EP1`, `EP2`, and `EP3`) are for use with Function Apps. SkuName pulumi.StringOutput `pulumi:"skuName"` // A mapping of tags which should be assigned to the AppService. Tags pulumi.StringMapOutput `pulumi:"tags"` // The number of Workers (instances) to be allocated. WorkerCount pulumi.IntOutput `pulumi:"workerCount"` // Should the Service Plan balance across Availability Zones in the region. // // > **Note:** If this setting is set to `true` and the `workerCount` value is specified, it should be set to a multiple of the number of availability zones in the region. Please see the Azure documentation for the number of Availability Zones in your region. // // > **Note:** `zoneBalancingEnabled` can only be set to `true` on Consumption, Premium, Isolated, or Workflow SKUs. It can be disabled. To enable it, the `workerCount` must be greater than `1`, and the Service Plan must support more than one availability zone. In all other cases, changing this forces a new resource to be created. For more information, please see the [Availability Zone Support](https://learn.microsoft.com/en-us/azure/reliability/reliability-app-service?tabs=azurecli&pivots=free-shared-basic#availability-zone-support). ZoneBalancingEnabled pulumi.BoolPtrOutput `pulumi:"zoneBalancingEnabled"` } // NewServicePlan registers a new resource with the given unique name, arguments, and options. func NewServicePlan(ctx *pulumi.Context, name string, args *ServicePlanArgs, opts ...pulumi.ResourceOption) (*ServicePlan, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.OsType == nil { return nil, errors.New("invalid value for required argument 'OsType'") } if args.ResourceGroupName == nil { return nil, errors.New("invalid value for required argument 'ResourceGroupName'") } if args.SkuName == nil { return nil, errors.New("invalid value for required argument 'SkuName'") } opts = internal.PkgResourceDefaultOpts(opts) var resource ServicePlan err := ctx.RegisterResource("azure:appservice/servicePlan:ServicePlan", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetServicePlan gets an existing ServicePlan 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 GetServicePlan(ctx *pulumi.Context, name string, id pulumi.IDInput, state *ServicePlanState, opts ...pulumi.ResourceOption) (*ServicePlan, error) { var resource ServicePlan err := ctx.ReadResource("azure:appservice/servicePlan:ServicePlan", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering ServicePlan resources. type servicePlanState struct { // The ID of the App Service Environment to create this Service Plan in. // // > **Note:** Requires an Isolated SKU for `appservice.EnvironmentV3`, supported values include `I1v2`, `I1mv2`, `I2v2`, `I2mv2`, `I3v2`, `I3mv2`, `I4v2`, `I4mv2`, `I5v2`, `I5mv2`, and `I6v2`. AppServiceEnvironmentId *string `pulumi:"appServiceEnvironmentId"` // A string representing the Kind of Service Plan. Kind *string `pulumi:"kind"` // The Azure Region where the Service Plan should exist. Changing this forces a new Service Plan to be created. Location *string `pulumi:"location"` // The maximum number of workers to use in an Elastic SKU Plan or Premium Plan that have `premiumPlanAutoScaleEnabled` set to `true`. Cannot be set unless using an Elastic or Premium SKU. MaximumElasticWorkerCount *int `pulumi:"maximumElasticWorkerCount"` // The name which should be used for this Service Plan. Changing this forces a new Service Plan to be created. Name *string `pulumi:"name"` // The O/S type for the App Services to be hosted in this plan. Possible values include `Windows`, `Linux`, and `WindowsContainer`. Changing this forces a new resource to be created. OsType *string `pulumi:"osType"` // Should Per Site Scaling be enabled. Defaults to `false`. PerSiteScalingEnabled *bool `pulumi:"perSiteScalingEnabled"` // Should automatic scaling be enabled for the Premium SKU Plan. Defaults to `false`. Cannot be set unless using a Premium SKU. PremiumPlanAutoScaleEnabled *bool `pulumi:"premiumPlanAutoScaleEnabled"` // Whether this is a reserved Service Plan Type. `true` if `osType` is `Linux`, otherwise `false`. Reserved *bool `pulumi:"reserved"` // The name of the Resource Group where the Service Plan should exist. Changing this forces a new Service Plan to be created. ResourceGroupName *string `pulumi:"resourceGroupName"` // The SKU for the plan. Possible values include `B1`, `B2`, `B3`, `D1`, `F1`, `I1`, `I2`, `I3`, `I1v2`, `I1mv2`, `I2v2`, `I2mv2`, `I3v2`, `I3mv2`, `I4v2`, `I4mv2`, `I5v2`, `I5mv2`, `I6v2`, `P1v2`, `P2v2`, `P3v2`, `P0v3`, `P1v3`, `P2v3`, `P3v3`, `P1mv3`, `P2mv3`, `P3mv3`, `P4mv3`, `P5mv3`, `P0v4`, `P1v4`, `P2v4`, `P3v4`, `P1mv4`, `P2mv4`, `P3mv4`, `P4mv4`, `P5mv4`, `S1`, `S2`, `S3`, `SHARED`, `EP1`, `EP2`, `EP3`, `FC1`, `WS1`, `WS2`, `WS3`, and `Y1`. // // > **Note:** Isolated SKUs (`I1`, `I2`, `I3`, `I1v2`, `I1mv2`, `I2v2`, `I2mv2`, `I3v2`, `I3mv2`) can only be used with App Service Environments // // > **Note:** Elastic and Consumption SKUs (`Y1`, `FC1`, `EP1`, `EP2`, and `EP3`) are for use with Function Apps. SkuName *string `pulumi:"skuName"` // A mapping of tags which should be assigned to the AppService. Tags map[string]string `pulumi:"tags"` // The number of Workers (instances) to be allocated. WorkerCount *int `pulumi:"workerCount"` // Should the Service Plan balance across Availability Zones in the region. // // > **Note:** If this setting is set to `true` and the `workerCount` value is specified, it should be set to a multiple of the number of availability zones in the region. Please see the Azure documentation for the number of Availability Zones in your region. // // > **Note:** `zoneBalancingEnabled` can only be set to `true` on Consumption, Premium, Isolated, or Workflow SKUs. It can be disabled. To enable it, the `workerCount` must be greater than `1`, and the Service Plan must support more than one availability zone. In all other cases, changing this forces a new resource to be created. For more information, please see the [Availability Zone Support](https://learn.microsoft.com/en-us/azure/reliability/reliability-app-service?tabs=azurecli&pivots=free-shared-basic#availability-zone-support). ZoneBalancingEnabled *bool `pulumi:"zoneBalancingEnabled"` } type ServicePlanState struct { // The ID of the App Service Environment to create this Service Plan in. // // > **Note:** Requires an Isolated SKU for `appservice.EnvironmentV3`, supported values include `I1v2`, `I1mv2`, `I2v2`, `I2mv2`, `I3v2`, `I3mv2`, `I4v2`, `I4mv2`, `I5v2`, `I5mv2`, and `I6v2`. AppServiceEnvironmentId pulumi.StringPtrInput // A string representing the Kind of Service Plan. Kind pulumi.StringPtrInput // The Azure Region where the Service Plan should exist. Changing this forces a new Service Plan to be created. Location pulumi.StringPtrInput // The maximum number of workers to use in an Elastic SKU Plan or Premium Plan that have `premiumPlanAutoScaleEnabled` set to `true`. Cannot be set unless using an Elastic or Premium SKU. MaximumElasticWorkerCount pulumi.IntPtrInput // The name which should be used for this Service Plan. Changing this forces a new Service Plan to be created. Name pulumi.StringPtrInput // The O/S type for the App Services to be hosted in this plan. Possible values include `Windows`, `Linux`, and `WindowsContainer`. Changing this forces a new resource to be created. OsType pulumi.StringPtrInput // Should Per Site Scaling be enabled. Defaults to `false`. PerSiteScalingEnabled pulumi.BoolPtrInput // Should automatic scaling be enabled for the Premium SKU Plan. Defaults to `false`. Cannot be set unless using a Premium SKU. PremiumPlanAutoScaleEnabled pulumi.BoolPtrInput // Whether this is a reserved Service Plan Type. `true` if `osType` is `Linux`, otherwise `false`. Reserved pulumi.BoolPtrInput // The name of the Resource Group where the Service Plan should exist. Changing this forces a new Service Plan to be created. ResourceGroupName pulumi.StringPtrInput // The SKU for the plan. Possible values include `B1`, `B2`, `B3`, `D1`, `F1`, `I1`, `I2`, `I3`, `I1v2`, `I1mv2`, `I2v2`, `I2mv2`, `I3v2`, `I3mv2`, `I4v2`, `I4mv2`, `I5v2`, `I5mv2`, `I6v2`, `P1v2`, `P2v2`, `P3v2`, `P0v3`, `P1v3`, `P2v3`, `P3v3`, `P1mv3`, `P2mv3`, `P3mv3`, `P4mv3`, `P5mv3`, `P0v4`, `P1v4`, `P2v4`, `P3v4`, `P1mv4`, `P2mv4`, `P3mv4`, `P4mv4`, `P5mv4`, `S1`, `S2`, `S3`, `SHARED`, `EP1`, `EP2`, `EP3`, `FC1`, `WS1`, `WS2`, `WS3`, and `Y1`. // // > **Note:** Isolated SKUs (`I1`, `I2`, `I3`, `I1v2`, `I1mv2`, `I2v2`, `I2mv2`, `I3v2`, `I3mv2`) can only be used with App Service Environments // // > **Note:** Elastic and Consumption SKUs (`Y1`, `FC1`, `EP1`, `EP2`, and `EP3`) are for use with Function Apps. SkuName pulumi.StringPtrInput // A mapping of tags which should be assigned to the AppService. Tags pulumi.StringMapInput // The number of Workers (instances) to be allocated. WorkerCount pulumi.IntPtrInput // Should the Service Plan balance across Availability Zones in the region. // // > **Note:** If this setting is set to `true` and the `workerCount` value is specified, it should be set to a multiple of the number of availability zones in the region. Please see the Azure documentation for the number of Availability Zones in your region. // // > **Note:** `zoneBalancingEnabled` can only be set to `true` on Consumption, Premium, Isolated, or Workflow SKUs. It can be disabled. To enable it, the `workerCount` must be greater than `1`, and the Service Plan must support more than one availability zone. In all other cases, changing this forces a new resource to be created. For more information, please see the [Availability Zone Support](https://learn.microsoft.com/en-us/azure/reliability/reliability-app-service?tabs=azurecli&pivots=free-shared-basic#availability-zone-support). ZoneBalancingEnabled pulumi.BoolPtrInput } func (ServicePlanState) ElementType() reflect.Type { return reflect.TypeOf((*servicePlanState)(nil)).Elem() } type servicePlanArgs struct { // The ID of the App Service Environment to create this Service Plan in. // // > **Note:** Requires an Isolated SKU for `appservice.EnvironmentV3`, supported values include `I1v2`, `I1mv2`, `I2v2`, `I2mv2`, `I3v2`, `I3mv2`, `I4v2`, `I4mv2`, `I5v2`, `I5mv2`, and `I6v2`. AppServiceEnvironmentId *string `pulumi:"appServiceEnvironmentId"` // The Azure Region where the Service Plan should exist. Changing this forces a new Service Plan to be created. Location *string `pulumi:"location"` // The maximum number of workers to use in an Elastic SKU Plan or Premium Plan that have `premiumPlanAutoScaleEnabled` set to `true`. Cannot be set unless using an Elastic or Premium SKU. MaximumElasticWorkerCount *int `pulumi:"maximumElasticWorkerCount"` // The name which should be used for this Service Plan. Changing this forces a new Service Plan to be created. Name *string `pulumi:"name"` // The O/S type for the App Services to be hosted in this plan. Possible values include `Windows`, `Linux`, and `WindowsContainer`. Changing this forces a new resource to be created. OsType string `pulumi:"osType"` // Should Per Site Scaling be enabled. Defaults to `false`. PerSiteScalingEnabled *bool `pulumi:"perSiteScalingEnabled"` // Should automatic scaling be enabled for the Premium SKU Plan. Defaults to `false`. Cannot be set unless using a Premium SKU. PremiumPlanAutoScaleEnabled *bool `pulumi:"premiumPlanAutoScaleEnabled"` // The name of the Resource Group where the Service Plan should exist. Changing this forces a new Service Plan to be created. ResourceGroupName string `pulumi:"resourceGroupName"` // The SKU for the plan. Possible values include `B1`, `B2`, `B3`, `D1`, `F1`, `I1`, `I2`, `I3`, `I1v2`, `I1mv2`, `I2v2`, `I2mv2`, `I3v2`, `I3mv2`, `I4v2`, `I4mv2`, `I5v2`, `I5mv2`, `I6v2`, `P1v2`, `P2v2`, `P3v2`, `P0v3`, `P1v3`, `P2v3`, `P3v3`, `P1mv3`, `P2mv3`, `P3mv3`, `P4mv3`, `P5mv3`, `P0v4`, `P1v4`, `P2v4`, `P3v4`, `P1mv4`, `P2mv4`, `P3mv4`, `P4mv4`, `P5mv4`, `S1`, `S2`, `S3`, `SHARED`, `EP1`, `EP2`, `EP3`, `FC1`, `WS1`, `WS2`, `WS3`, and `Y1`. // // > **Note:** Isolated SKUs (`I1`, `I2`, `I3`, `I1v2`, `I1mv2`, `I2v2`, `I2mv2`, `I3v2`, `I3mv2`) can only be used with App Service Environments // // > **Note:** Elastic and Consumption SKUs (`Y1`, `FC1`, `EP1`, `EP2`, and `EP3`) are for use with Function Apps. SkuName string `pulumi:"skuName"` // A mapping of tags which should be assigned to the AppService. Tags map[string]string `pulumi:"tags"` // The number of Workers (instances) to be allocated. WorkerCount *int `pulumi:"workerCount"` // Should the Service Plan balance across Availability Zones in the region. // // > **Note:** If this setting is set to `true` and the `workerCount` value is specified, it should be set to a multiple of the number of availability zones in the region. Please see the Azure documentation for the number of Availability Zones in your region. // // > **Note:** `zoneBalancingEnabled` can only be set to `true` on Consumption, Premium, Isolated, or Workflow SKUs. It can be disabled. To enable it, the `workerCount` must be greater than `1`, and the Service Plan must support more than one availability zone. In all other cases, changing this forces a new resource to be created. For more information, please see the [Availability Zone Support](https://learn.microsoft.com/en-us/azure/reliability/reliability-app-service?tabs=azurecli&pivots=free-shared-basic#availability-zone-support). ZoneBalancingEnabled *bool `pulumi:"zoneBalancingEnabled"` } // The set of arguments for constructing a ServicePlan resource. type ServicePlanArgs struct { // The ID of the App Service Environment to create this Service Plan in. // // > **Note:** Requires an Isolated SKU for `appservice.EnvironmentV3`, supported values include `I1v2`, `I1mv2`, `I2v2`, `I2mv2`, `I3v2`, `I3mv2`, `I4v2`, `I4mv2`, `I5v2`, `I5mv2`, and `I6v2`. AppServiceEnvironmentId pulumi.StringPtrInput // The Azure Region where the Service Plan should exist. Changing this forces a new Service Plan to be created. Location pulumi.StringPtrInput // The maximum number of workers to use in an Elastic SKU Plan or Premium Plan that have `premiumPlanAutoScaleEnabled` set to `true`. Cannot be set unless using an Elastic or Premium SKU. MaximumElasticWorkerCount pulumi.IntPtrInput // The name which should be used for this Service Plan. Changing this forces a new Service Plan to be created. Name pulumi.StringPtrInput // The O/S type for the App Services to be hosted in this plan. Possible values include `Windows`, `Linux`, and `WindowsContainer`. Changing this forces a new resource to be created. OsType pulumi.StringInput // Should Per Site Scaling be enabled. Defaults to `false`. PerSiteScalingEnabled pulumi.BoolPtrInput // Should automatic scaling be enabled for the Premium SKU Plan. Defaults to `false`. Cannot be set unless using a Premium SKU. PremiumPlanAutoScaleEnabled pulumi.BoolPtrInput // The name of the Resource Group where the Service Plan should exist. Changing this forces a new Service Plan to be created. ResourceGroupName pulumi.StringInput // The SKU for the plan. Possible values include `B1`, `B2`, `B3`, `D1`, `F1`, `I1`, `I2`, `I3`, `I1v2`, `I1mv2`, `I2v2`, `I2mv2`, `I3v2`, `I3mv2`, `I4v2`, `I4mv2`, `I5v2`, `I5mv2`, `I6v2`, `P1v2`, `P2v2`, `P3v2`, `P0v3`, `P1v3`, `P2v3`, `P3v3`, `P1mv3`, `P2mv3`, `P3mv3`, `P4mv3`, `P5mv3`, `P0v4`, `P1v4`, `P2v4`, `P3v4`, `P1mv4`, `P2mv4`, `P3mv4`, `P4mv4`, `P5mv4`, `S1`, `S2`, `S3`, `SHARED`, `EP1`, `EP2`, `EP3`, `FC1`, `WS1`, `WS2`, `WS3`, and `Y1`. // // > **Note:** Isolated SKUs (`I1`, `I2`, `I3`, `I1v2`, `I1mv2`, `I2v2`, `I2mv2`, `I3v2`, `I3mv2`) can only be used with App Service Environments // // > **Note:** Elastic and Consumption SKUs (`Y1`, `FC1`, `EP1`, `EP2`, and `EP3`) are for use with Function Apps. SkuName pulumi.StringInput // A mapping of tags which should be assigned to the AppService. Tags pulumi.StringMapInput // The number of Workers (instances) to be allocated. WorkerCount pulumi.IntPtrInput // Should the Service Plan balance across Availability Zones in the region. // // > **Note:** If this setting is set to `true` and the `workerCount` value is specified, it should be set to a multiple of the number of availability zones in the region. Please see the Azure documentation for the number of Availability Zones in your region. // // > **Note:** `zoneBalancingEnabled` can only be set to `true` on Consumption, Premium, Isolated, or Workflow SKUs. It can be disabled. To enable it, the `workerCount` must be greater than `1`, and the Service Plan must support more than one availability zone. In all other cases, changing this forces a new resource to be created. For more information, please see the [Availability Zone Support](https://learn.microsoft.com/en-us/azure/reliability/reliability-app-service?tabs=azurecli&pivots=free-shared-basic#availability-zone-support). ZoneBalancingEnabled pulumi.BoolPtrInput } func (ServicePlanArgs) ElementType() reflect.Type { return reflect.TypeOf((*servicePlanArgs)(nil)).Elem() } type ServicePlanInput interface { pulumi.Input ToServicePlanOutput() ServicePlanOutput ToServicePlanOutputWithContext(ctx context.Context) ServicePlanOutput } func (*ServicePlan) ElementType() reflect.Type { return reflect.TypeOf((**ServicePlan)(nil)).Elem() } func (i *ServicePlan) ToServicePlanOutput() ServicePlanOutput { return i.ToServicePlanOutputWithContext(context.Background()) } func (i *ServicePlan) ToServicePlanOutputWithContext(ctx context.Context) ServicePlanOutput { return pulumi.ToOutputWithContext(ctx, i).(ServicePlanOutput) } // ServicePlanArrayInput is an input type that accepts ServicePlanArray and ServicePlanArrayOutput values. // You can construct a concrete instance of `ServicePlanArrayInput` via: // // ServicePlanArray{ ServicePlanArgs{...} } type ServicePlanArrayInput interface { pulumi.Input ToServicePlanArrayOutput() ServicePlanArrayOutput ToServicePlanArrayOutputWithContext(context.Context) ServicePlanArrayOutput } type ServicePlanArray []ServicePlanInput func (ServicePlanArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*ServicePlan)(nil)).Elem() } func (i ServicePlanArray) ToServicePlanArrayOutput() ServicePlanArrayOutput { return i.ToServicePlanArrayOutputWithContext(context.Background()) } func (i ServicePlanArray) ToServicePlanArrayOutputWithContext(ctx context.Context) ServicePlanArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(ServicePlanArrayOutput) } // ServicePlanMapInput is an input type that accepts ServicePlanMap and ServicePlanMapOutput values. // You can construct a concrete instance of `ServicePlanMapInput` via: // // ServicePlanMap{ "key": ServicePlanArgs{...} } type ServicePlanMapInput interface { pulumi.Input ToServicePlanMapOutput() ServicePlanMapOutput ToServicePlanMapOutputWithContext(context.Context) ServicePlanMapOutput } type ServicePlanMap map[string]ServicePlanInput func (ServicePlanMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*ServicePlan)(nil)).Elem() } func (i ServicePlanMap) ToServicePlanMapOutput() ServicePlanMapOutput { return i.ToServicePlanMapOutputWithContext(context.Background()) } func (i ServicePlanMap) ToServicePlanMapOutputWithContext(ctx context.Context) ServicePlanMapOutput { return pulumi.ToOutputWithContext(ctx, i).(ServicePlanMapOutput) } type ServicePlanOutput struct{ *pulumi.OutputState } func (ServicePlanOutput) ElementType() reflect.Type { return reflect.TypeOf((**ServicePlan)(nil)).Elem() } func (o ServicePlanOutput) ToServicePlanOutput() ServicePlanOutput { return o } func (o ServicePlanOutput) ToServicePlanOutputWithContext(ctx context.Context) ServicePlanOutput { return o } // The ID of the App Service Environment to create this Service Plan in. // // > **Note:** Requires an Isolated SKU for `appservice.EnvironmentV3`, supported values include `I1v2`, `I1mv2`, `I2v2`, `I2mv2`, `I3v2`, `I3mv2`, `I4v2`, `I4mv2`, `I5v2`, `I5mv2`, and `I6v2`. func (o ServicePlanOutput) AppServiceEnvironmentId() pulumi.StringPtrOutput { return o.ApplyT(func(v *ServicePlan) pulumi.StringPtrOutput { return v.AppServiceEnvironmentId }).(pulumi.StringPtrOutput) } // A string representing the Kind of Service Plan. func (o ServicePlanOutput) Kind() pulumi.StringOutput { return o.ApplyT(func(v *ServicePlan) pulumi.StringOutput { return v.Kind }).(pulumi.StringOutput) } // The Azure Region where the Service Plan should exist. Changing this forces a new Service Plan to be created. func (o ServicePlanOutput) Location() pulumi.StringOutput { return o.ApplyT(func(v *ServicePlan) pulumi.StringOutput { return v.Location }).(pulumi.StringOutput) } // The maximum number of workers to use in an Elastic SKU Plan or Premium Plan that have `premiumPlanAutoScaleEnabled` set to `true`. Cannot be set unless using an Elastic or Premium SKU. func (o ServicePlanOutput) MaximumElasticWorkerCount() pulumi.IntOutput { return o.ApplyT(func(v *ServicePlan) pulumi.IntOutput { return v.MaximumElasticWorkerCount }).(pulumi.IntOutput) } // The name which should be used for this Service Plan. Changing this forces a new Service Plan to be created. func (o ServicePlanOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *ServicePlan) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // The O/S type for the App Services to be hosted in this plan. Possible values include `Windows`, `Linux`, and `WindowsContainer`. Changing this forces a new resource to be created. func (o ServicePlanOutput) OsType() pulumi.StringOutput { return o.ApplyT(func(v *ServicePlan) pulumi.StringOutput { return v.OsType }).(pulumi.StringOutput) } // Should Per Site Scaling be enabled. Defaults to `false`. func (o ServicePlanOutput) PerSiteScalingEnabled() pulumi.BoolPtrOutput { return o.ApplyT(func(v *ServicePlan) pulumi.BoolPtrOutput { return v.PerSiteScalingEnabled }).(pulumi.BoolPtrOutput) } // Should automatic scaling be enabled for the Premium SKU Plan. Defaults to `false`. Cannot be set unless using a Premium SKU. func (o ServicePlanOutput) PremiumPlanAutoScaleEnabled() pulumi.BoolPtrOutput { return o.ApplyT(func(v *ServicePlan) pulumi.BoolPtrOutput { return v.PremiumPlanAutoScaleEnabled }).(pulumi.BoolPtrOutput) } // Whether this is a reserved Service Plan Type. `true` if `osType` is `Linux`, otherwise `false`. func (o ServicePlanOutput) Reserved() pulumi.BoolOutput { return o.ApplyT(func(v *ServicePlan) pulumi.BoolOutput { return v.Reserved }).(pulumi.BoolOutput) } // The name of the Resource Group where the Service Plan should exist. Changing this forces a new Service Plan to be created. func (o ServicePlanOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v *ServicePlan) pulumi.StringOutput { return v.ResourceGroupName }).(pulumi.StringOutput) } // The SKU for the plan. Possible values include `B1`, `B2`, `B3`, `D1`, `F1`, `I1`, `I2`, `I3`, `I1v2`, `I1mv2`, `I2v2`, `I2mv2`, `I3v2`, `I3mv2`, `I4v2`, `I4mv2`, `I5v2`, `I5mv2`, `I6v2`, `P1v2`, `P2v2`, `P3v2`, `P0v3`, `P1v3`, `P2v3`, `P3v3`, `P1mv3`, `P2mv3`, `P3mv3`, `P4mv3`, `P5mv3`, `P0v4`, `P1v4`, `P2v4`, `P3v4`, `P1mv4`, `P2mv4`, `P3mv4`, `P4mv4`, `P5mv4`, `S1`, `S2`, `S3`, `SHARED`, `EP1`, `EP2`, `EP3`, `FC1`, `WS1`, `WS2`, `WS3`, and `Y1`. // // > **Note:** Isolated SKUs (`I1`, `I2`, `I3`, `I1v2`, `I1mv2`, `I2v2`, `I2mv2`, `I3v2`, `I3mv2`) can only be used with App Service Environments // // > **Note:** Elastic and Consumption SKUs (`Y1`, `FC1`, `EP1`, `EP2`, and `EP3`) are for use with Function Apps. func (o ServicePlanOutput) SkuName() pulumi.StringOutput { return o.ApplyT(func(v *ServicePlan) pulumi.StringOutput { return v.SkuName }).(pulumi.StringOutput) } // A mapping of tags which should be assigned to the AppService. func (o ServicePlanOutput) Tags() pulumi.StringMapOutput { return o.ApplyT(func(v *ServicePlan) pulumi.StringMapOutput { return v.Tags }).(pulumi.StringMapOutput) } // The number of Workers (instances) to be allocated. func (o ServicePlanOutput) WorkerCount() pulumi.IntOutput { return o.ApplyT(func(v *ServicePlan) pulumi.IntOutput { return v.WorkerCount }).(pulumi.IntOutput) } // Should the Service Plan balance across Availability Zones in the region. // // > **Note:** If this setting is set to `true` and the `workerCount` value is specified, it should be set to a multiple of the number of availability zones in the region. Please see the Azure documentation for the number of Availability Zones in your region. // // > **Note:** `zoneBalancingEnabled` can only be set to `true` on Consumption, Premium, Isolated, or Workflow SKUs. It can be disabled. To enable it, the `workerCount` must be greater than `1`, and the Service Plan must support more than one availability zone. In all other cases, changing this forces a new resource to be created. For more information, please see the [Availability Zone Support](https://learn.microsoft.com/en-us/azure/reliability/reliability-app-service?tabs=azurecli&pivots=free-shared-basic#availability-zone-support). func (o ServicePlanOutput) ZoneBalancingEnabled() pulumi.BoolPtrOutput { return o.ApplyT(func(v *ServicePlan) pulumi.BoolPtrOutput { return v.ZoneBalancingEnabled }).(pulumi.BoolPtrOutput) } type ServicePlanArrayOutput struct{ *pulumi.OutputState } func (ServicePlanArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*ServicePlan)(nil)).Elem() } func (o ServicePlanArrayOutput) ToServicePlanArrayOutput() ServicePlanArrayOutput { return o } func (o ServicePlanArrayOutput) ToServicePlanArrayOutputWithContext(ctx context.Context) ServicePlanArrayOutput { return o } func (o ServicePlanArrayOutput) Index(i pulumi.IntInput) ServicePlanOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *ServicePlan { return vs[0].([]*ServicePlan)[vs[1].(int)] }).(ServicePlanOutput) } type ServicePlanMapOutput struct{ *pulumi.OutputState } func (ServicePlanMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*ServicePlan)(nil)).Elem() } func (o ServicePlanMapOutput) ToServicePlanMapOutput() ServicePlanMapOutput { return o } func (o ServicePlanMapOutput) ToServicePlanMapOutputWithContext(ctx context.Context) ServicePlanMapOutput { return o } func (o ServicePlanMapOutput) MapIndex(k pulumi.StringInput) ServicePlanOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *ServicePlan { return vs[0].(map[string]*ServicePlan)[vs[1].(string)] }).(ServicePlanOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*ServicePlanInput)(nil)).Elem(), &ServicePlan{}) pulumi.RegisterInputType(reflect.TypeOf((*ServicePlanArrayInput)(nil)).Elem(), ServicePlanArray{}) pulumi.RegisterInputType(reflect.TypeOf((*ServicePlanMapInput)(nil)).Elem(), ServicePlanMap{}) pulumi.RegisterOutputType(ServicePlanOutput{}) pulumi.RegisterOutputType(ServicePlanArrayOutput{}) pulumi.RegisterOutputType(ServicePlanMapOutput{}) }
go
Apache-2.0
b66e1472775a89cca43f5050fef806854a7c3fa3
2026-01-07T09:44:27.619514Z
false
pulumi/pulumi-azure
https://github.com/pulumi/pulumi-azure/blob/b66e1472775a89cca43f5050fef806854a7c3fa3/sdk/go/azure/appservice/getSourceControlToken.go
sdk/go/azure/appservice/getSourceControlToken.go
// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package appservice import ( "context" "reflect" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/appservice" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { // _, err := appservice.LookupSourceControlToken(ctx, &appservice.LookupSourceControlTokenArgs{ // Type: "GitHub", // }, nil) // if err != nil { // return err // } // ctx.Export("id", exampleAzurermAppServiceGithubToken.Id) // return nil // }) // } // // ``` // // ## API Providers // // <!-- This section is generated, changes will be overwritten --> // This data source uses the following Azure API Providers: // // * `Microsoft.Web` - 2023-01-01 func LookupSourceControlToken(ctx *pulumi.Context, args *LookupSourceControlTokenArgs, opts ...pulumi.InvokeOption) (*LookupSourceControlTokenResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupSourceControlTokenResult err := ctx.Invoke("azure:appservice/getSourceControlToken:getSourceControlToken", args, &rv, opts...) if err != nil { return nil, err } return &rv, nil } // A collection of arguments for invoking getSourceControlToken. type LookupSourceControlTokenArgs struct { // The Token type. Possible values include `Bitbucket`, `Dropbox`, `Github`, and `OneDrive`. Type string `pulumi:"type"` } // A collection of values returned by getSourceControlToken. type LookupSourceControlTokenResult struct { // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` // The GitHub Token value. Token string `pulumi:"token"` TokenSecret string `pulumi:"tokenSecret"` Type string `pulumi:"type"` } func LookupSourceControlTokenOutput(ctx *pulumi.Context, args LookupSourceControlTokenOutputArgs, opts ...pulumi.InvokeOption) LookupSourceControlTokenResultOutput { return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupSourceControlTokenResultOutput, error) { args := v.(LookupSourceControlTokenArgs) options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} return ctx.InvokeOutput("azure:appservice/getSourceControlToken:getSourceControlToken", args, LookupSourceControlTokenResultOutput{}, options).(LookupSourceControlTokenResultOutput), nil }).(LookupSourceControlTokenResultOutput) } // A collection of arguments for invoking getSourceControlToken. type LookupSourceControlTokenOutputArgs struct { // The Token type. Possible values include `Bitbucket`, `Dropbox`, `Github`, and `OneDrive`. Type pulumi.StringInput `pulumi:"type"` } func (LookupSourceControlTokenOutputArgs) ElementType() reflect.Type { return reflect.TypeOf((*LookupSourceControlTokenArgs)(nil)).Elem() } // A collection of values returned by getSourceControlToken. type LookupSourceControlTokenResultOutput struct{ *pulumi.OutputState } func (LookupSourceControlTokenResultOutput) ElementType() reflect.Type { return reflect.TypeOf((*LookupSourceControlTokenResult)(nil)).Elem() } func (o LookupSourceControlTokenResultOutput) ToLookupSourceControlTokenResultOutput() LookupSourceControlTokenResultOutput { return o } func (o LookupSourceControlTokenResultOutput) ToLookupSourceControlTokenResultOutputWithContext(ctx context.Context) LookupSourceControlTokenResultOutput { return o } // The provider-assigned unique ID for this managed resource. func (o LookupSourceControlTokenResultOutput) Id() pulumi.StringOutput { return o.ApplyT(func(v LookupSourceControlTokenResult) string { return v.Id }).(pulumi.StringOutput) } // The GitHub Token value. func (o LookupSourceControlTokenResultOutput) Token() pulumi.StringOutput { return o.ApplyT(func(v LookupSourceControlTokenResult) string { return v.Token }).(pulumi.StringOutput) } func (o LookupSourceControlTokenResultOutput) TokenSecret() pulumi.StringOutput { return o.ApplyT(func(v LookupSourceControlTokenResult) string { return v.TokenSecret }).(pulumi.StringOutput) } func (o LookupSourceControlTokenResultOutput) Type() pulumi.StringOutput { return o.ApplyT(func(v LookupSourceControlTokenResult) string { return v.Type }).(pulumi.StringOutput) } func init() { pulumi.RegisterOutputType(LookupSourceControlTokenResultOutput{}) }
go
Apache-2.0
b66e1472775a89cca43f5050fef806854a7c3fa3
2026-01-07T09:44:27.619514Z
false
pulumi/pulumi-azure
https://github.com/pulumi/pulumi-azure/blob/b66e1472775a89cca43f5050fef806854a7c3fa3/sdk/go/azure/appservice/slotCustomHostnameBinding.go
sdk/go/azure/appservice/slotCustomHostnameBinding.go
// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package appservice import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a Hostname Binding within an App Service Slot. // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/appservice" // "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("some-resource-group"), // Location: pulumi.String("West Europe"), // }) // if err != nil { // return err // } // examplePlan, err := appservice.NewPlan(ctx, "example", &appservice.PlanArgs{ // Name: pulumi.String("some-app-service-plan"), // Location: example.Location, // ResourceGroupName: example.Name, // Sku: &appservice.PlanSkuArgs{ // Tier: pulumi.String("Standard"), // Size: pulumi.String("S1"), // }, // }) // if err != nil { // return err // } // exampleAppService, err := appservice.NewAppService(ctx, "example", &appservice.AppServiceArgs{ // Name: pulumi.String("some-app-service"), // Location: example.Location, // ResourceGroupName: example.Name, // AppServicePlanId: examplePlan.ID(), // }) // if err != nil { // return err // } // exampleSlot, err := appservice.NewSlot(ctx, "example", &appservice.SlotArgs{ // Name: pulumi.String("staging"), // Location: example.Location, // ResourceGroupName: example.Name, // AppServiceName: exampleAppService.Name, // AppServicePlanId: examplePlan.ID(), // }) // if err != nil { // return err // } // _, err = appservice.NewSlotCustomHostnameBinding(ctx, "example", &appservice.SlotCustomHostnameBindingArgs{ // AppServiceSlotId: exampleSlot.ID(), // Hostname: pulumi.String("www.mywebsite.com"), // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## Import // // App Service Custom Hostname Bindings can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:appservice/slotCustomHostnameBinding:SlotCustomHostnameBinding mywebsite /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Web/sites/instance1/slots/staging/hostNameBindings/mywebsite.com // ``` type SlotCustomHostnameBinding struct { pulumi.CustomResourceState // The ID of the App Service Slot. Changing this forces a new resource to be created. AppServiceSlotId pulumi.StringOutput `pulumi:"appServiceSlotId"` // Specifies the Custom Hostname to use for the App Service, example `www.example.com`. Changing this forces a new resource to be created. // // > **Note:** A CNAME needs to be configured from this Hostname to the Azure Website - otherwise Azure will reject the Hostname Binding. Hostname pulumi.StringOutput `pulumi:"hostname"` // The SSL type. Possible values are `IpBasedEnabled` and `SniEnabled`. Changing this forces a new resource to be created. SslState pulumi.StringOutput `pulumi:"sslState"` // The SSL certificate thumbprint. Changing this forces a new resource to be created. // // > **Note:** `thumbprint` must be specified when `sslState` is set. Thumbprint pulumi.StringOutput `pulumi:"thumbprint"` // The virtual IP address assigned to the hostname if IP based SSL is enabled. VirtualIp pulumi.StringOutput `pulumi:"virtualIp"` } // NewSlotCustomHostnameBinding registers a new resource with the given unique name, arguments, and options. func NewSlotCustomHostnameBinding(ctx *pulumi.Context, name string, args *SlotCustomHostnameBindingArgs, opts ...pulumi.ResourceOption) (*SlotCustomHostnameBinding, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.AppServiceSlotId == nil { return nil, errors.New("invalid value for required argument 'AppServiceSlotId'") } if args.Hostname == nil { return nil, errors.New("invalid value for required argument 'Hostname'") } opts = internal.PkgResourceDefaultOpts(opts) var resource SlotCustomHostnameBinding err := ctx.RegisterResource("azure:appservice/slotCustomHostnameBinding:SlotCustomHostnameBinding", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetSlotCustomHostnameBinding gets an existing SlotCustomHostnameBinding 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 GetSlotCustomHostnameBinding(ctx *pulumi.Context, name string, id pulumi.IDInput, state *SlotCustomHostnameBindingState, opts ...pulumi.ResourceOption) (*SlotCustomHostnameBinding, error) { var resource SlotCustomHostnameBinding err := ctx.ReadResource("azure:appservice/slotCustomHostnameBinding:SlotCustomHostnameBinding", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering SlotCustomHostnameBinding resources. type slotCustomHostnameBindingState struct { // The ID of the App Service Slot. Changing this forces a new resource to be created. AppServiceSlotId *string `pulumi:"appServiceSlotId"` // Specifies the Custom Hostname to use for the App Service, example `www.example.com`. Changing this forces a new resource to be created. // // > **Note:** A CNAME needs to be configured from this Hostname to the Azure Website - otherwise Azure will reject the Hostname Binding. Hostname *string `pulumi:"hostname"` // The SSL type. Possible values are `IpBasedEnabled` and `SniEnabled`. Changing this forces a new resource to be created. SslState *string `pulumi:"sslState"` // The SSL certificate thumbprint. Changing this forces a new resource to be created. // // > **Note:** `thumbprint` must be specified when `sslState` is set. Thumbprint *string `pulumi:"thumbprint"` // The virtual IP address assigned to the hostname if IP based SSL is enabled. VirtualIp *string `pulumi:"virtualIp"` } type SlotCustomHostnameBindingState struct { // The ID of the App Service Slot. Changing this forces a new resource to be created. AppServiceSlotId pulumi.StringPtrInput // Specifies the Custom Hostname to use for the App Service, example `www.example.com`. Changing this forces a new resource to be created. // // > **Note:** A CNAME needs to be configured from this Hostname to the Azure Website - otherwise Azure will reject the Hostname Binding. Hostname pulumi.StringPtrInput // The SSL type. Possible values are `IpBasedEnabled` and `SniEnabled`. Changing this forces a new resource to be created. SslState pulumi.StringPtrInput // The SSL certificate thumbprint. Changing this forces a new resource to be created. // // > **Note:** `thumbprint` must be specified when `sslState` is set. Thumbprint pulumi.StringPtrInput // The virtual IP address assigned to the hostname if IP based SSL is enabled. VirtualIp pulumi.StringPtrInput } func (SlotCustomHostnameBindingState) ElementType() reflect.Type { return reflect.TypeOf((*slotCustomHostnameBindingState)(nil)).Elem() } type slotCustomHostnameBindingArgs struct { // The ID of the App Service Slot. Changing this forces a new resource to be created. AppServiceSlotId string `pulumi:"appServiceSlotId"` // Specifies the Custom Hostname to use for the App Service, example `www.example.com`. Changing this forces a new resource to be created. // // > **Note:** A CNAME needs to be configured from this Hostname to the Azure Website - otherwise Azure will reject the Hostname Binding. Hostname string `pulumi:"hostname"` // The SSL type. Possible values are `IpBasedEnabled` and `SniEnabled`. Changing this forces a new resource to be created. SslState *string `pulumi:"sslState"` // The SSL certificate thumbprint. Changing this forces a new resource to be created. // // > **Note:** `thumbprint` must be specified when `sslState` is set. Thumbprint *string `pulumi:"thumbprint"` } // The set of arguments for constructing a SlotCustomHostnameBinding resource. type SlotCustomHostnameBindingArgs struct { // The ID of the App Service Slot. Changing this forces a new resource to be created. AppServiceSlotId pulumi.StringInput // Specifies the Custom Hostname to use for the App Service, example `www.example.com`. Changing this forces a new resource to be created. // // > **Note:** A CNAME needs to be configured from this Hostname to the Azure Website - otherwise Azure will reject the Hostname Binding. Hostname pulumi.StringInput // The SSL type. Possible values are `IpBasedEnabled` and `SniEnabled`. Changing this forces a new resource to be created. SslState pulumi.StringPtrInput // The SSL certificate thumbprint. Changing this forces a new resource to be created. // // > **Note:** `thumbprint` must be specified when `sslState` is set. Thumbprint pulumi.StringPtrInput } func (SlotCustomHostnameBindingArgs) ElementType() reflect.Type { return reflect.TypeOf((*slotCustomHostnameBindingArgs)(nil)).Elem() } type SlotCustomHostnameBindingInput interface { pulumi.Input ToSlotCustomHostnameBindingOutput() SlotCustomHostnameBindingOutput ToSlotCustomHostnameBindingOutputWithContext(ctx context.Context) SlotCustomHostnameBindingOutput } func (*SlotCustomHostnameBinding) ElementType() reflect.Type { return reflect.TypeOf((**SlotCustomHostnameBinding)(nil)).Elem() } func (i *SlotCustomHostnameBinding) ToSlotCustomHostnameBindingOutput() SlotCustomHostnameBindingOutput { return i.ToSlotCustomHostnameBindingOutputWithContext(context.Background()) } func (i *SlotCustomHostnameBinding) ToSlotCustomHostnameBindingOutputWithContext(ctx context.Context) SlotCustomHostnameBindingOutput { return pulumi.ToOutputWithContext(ctx, i).(SlotCustomHostnameBindingOutput) } // SlotCustomHostnameBindingArrayInput is an input type that accepts SlotCustomHostnameBindingArray and SlotCustomHostnameBindingArrayOutput values. // You can construct a concrete instance of `SlotCustomHostnameBindingArrayInput` via: // // SlotCustomHostnameBindingArray{ SlotCustomHostnameBindingArgs{...} } type SlotCustomHostnameBindingArrayInput interface { pulumi.Input ToSlotCustomHostnameBindingArrayOutput() SlotCustomHostnameBindingArrayOutput ToSlotCustomHostnameBindingArrayOutputWithContext(context.Context) SlotCustomHostnameBindingArrayOutput } type SlotCustomHostnameBindingArray []SlotCustomHostnameBindingInput func (SlotCustomHostnameBindingArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*SlotCustomHostnameBinding)(nil)).Elem() } func (i SlotCustomHostnameBindingArray) ToSlotCustomHostnameBindingArrayOutput() SlotCustomHostnameBindingArrayOutput { return i.ToSlotCustomHostnameBindingArrayOutputWithContext(context.Background()) } func (i SlotCustomHostnameBindingArray) ToSlotCustomHostnameBindingArrayOutputWithContext(ctx context.Context) SlotCustomHostnameBindingArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(SlotCustomHostnameBindingArrayOutput) } // SlotCustomHostnameBindingMapInput is an input type that accepts SlotCustomHostnameBindingMap and SlotCustomHostnameBindingMapOutput values. // You can construct a concrete instance of `SlotCustomHostnameBindingMapInput` via: // // SlotCustomHostnameBindingMap{ "key": SlotCustomHostnameBindingArgs{...} } type SlotCustomHostnameBindingMapInput interface { pulumi.Input ToSlotCustomHostnameBindingMapOutput() SlotCustomHostnameBindingMapOutput ToSlotCustomHostnameBindingMapOutputWithContext(context.Context) SlotCustomHostnameBindingMapOutput } type SlotCustomHostnameBindingMap map[string]SlotCustomHostnameBindingInput func (SlotCustomHostnameBindingMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*SlotCustomHostnameBinding)(nil)).Elem() } func (i SlotCustomHostnameBindingMap) ToSlotCustomHostnameBindingMapOutput() SlotCustomHostnameBindingMapOutput { return i.ToSlotCustomHostnameBindingMapOutputWithContext(context.Background()) } func (i SlotCustomHostnameBindingMap) ToSlotCustomHostnameBindingMapOutputWithContext(ctx context.Context) SlotCustomHostnameBindingMapOutput { return pulumi.ToOutputWithContext(ctx, i).(SlotCustomHostnameBindingMapOutput) } type SlotCustomHostnameBindingOutput struct{ *pulumi.OutputState } func (SlotCustomHostnameBindingOutput) ElementType() reflect.Type { return reflect.TypeOf((**SlotCustomHostnameBinding)(nil)).Elem() } func (o SlotCustomHostnameBindingOutput) ToSlotCustomHostnameBindingOutput() SlotCustomHostnameBindingOutput { return o } func (o SlotCustomHostnameBindingOutput) ToSlotCustomHostnameBindingOutputWithContext(ctx context.Context) SlotCustomHostnameBindingOutput { return o } // The ID of the App Service Slot. Changing this forces a new resource to be created. func (o SlotCustomHostnameBindingOutput) AppServiceSlotId() pulumi.StringOutput { return o.ApplyT(func(v *SlotCustomHostnameBinding) pulumi.StringOutput { return v.AppServiceSlotId }).(pulumi.StringOutput) } // Specifies the Custom Hostname to use for the App Service, example `www.example.com`. Changing this forces a new resource to be created. // // > **Note:** A CNAME needs to be configured from this Hostname to the Azure Website - otherwise Azure will reject the Hostname Binding. func (o SlotCustomHostnameBindingOutput) Hostname() pulumi.StringOutput { return o.ApplyT(func(v *SlotCustomHostnameBinding) pulumi.StringOutput { return v.Hostname }).(pulumi.StringOutput) } // The SSL type. Possible values are `IpBasedEnabled` and `SniEnabled`. Changing this forces a new resource to be created. func (o SlotCustomHostnameBindingOutput) SslState() pulumi.StringOutput { return o.ApplyT(func(v *SlotCustomHostnameBinding) pulumi.StringOutput { return v.SslState }).(pulumi.StringOutput) } // The SSL certificate thumbprint. Changing this forces a new resource to be created. // // > **Note:** `thumbprint` must be specified when `sslState` is set. func (o SlotCustomHostnameBindingOutput) Thumbprint() pulumi.StringOutput { return o.ApplyT(func(v *SlotCustomHostnameBinding) pulumi.StringOutput { return v.Thumbprint }).(pulumi.StringOutput) } // The virtual IP address assigned to the hostname if IP based SSL is enabled. func (o SlotCustomHostnameBindingOutput) VirtualIp() pulumi.StringOutput { return o.ApplyT(func(v *SlotCustomHostnameBinding) pulumi.StringOutput { return v.VirtualIp }).(pulumi.StringOutput) } type SlotCustomHostnameBindingArrayOutput struct{ *pulumi.OutputState } func (SlotCustomHostnameBindingArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*SlotCustomHostnameBinding)(nil)).Elem() } func (o SlotCustomHostnameBindingArrayOutput) ToSlotCustomHostnameBindingArrayOutput() SlotCustomHostnameBindingArrayOutput { return o } func (o SlotCustomHostnameBindingArrayOutput) ToSlotCustomHostnameBindingArrayOutputWithContext(ctx context.Context) SlotCustomHostnameBindingArrayOutput { return o } func (o SlotCustomHostnameBindingArrayOutput) Index(i pulumi.IntInput) SlotCustomHostnameBindingOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *SlotCustomHostnameBinding { return vs[0].([]*SlotCustomHostnameBinding)[vs[1].(int)] }).(SlotCustomHostnameBindingOutput) } type SlotCustomHostnameBindingMapOutput struct{ *pulumi.OutputState } func (SlotCustomHostnameBindingMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*SlotCustomHostnameBinding)(nil)).Elem() } func (o SlotCustomHostnameBindingMapOutput) ToSlotCustomHostnameBindingMapOutput() SlotCustomHostnameBindingMapOutput { return o } func (o SlotCustomHostnameBindingMapOutput) ToSlotCustomHostnameBindingMapOutputWithContext(ctx context.Context) SlotCustomHostnameBindingMapOutput { return o } func (o SlotCustomHostnameBindingMapOutput) MapIndex(k pulumi.StringInput) SlotCustomHostnameBindingOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *SlotCustomHostnameBinding { return vs[0].(map[string]*SlotCustomHostnameBinding)[vs[1].(string)] }).(SlotCustomHostnameBindingOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*SlotCustomHostnameBindingInput)(nil)).Elem(), &SlotCustomHostnameBinding{}) pulumi.RegisterInputType(reflect.TypeOf((*SlotCustomHostnameBindingArrayInput)(nil)).Elem(), SlotCustomHostnameBindingArray{}) pulumi.RegisterInputType(reflect.TypeOf((*SlotCustomHostnameBindingMapInput)(nil)).Elem(), SlotCustomHostnameBindingMap{}) pulumi.RegisterOutputType(SlotCustomHostnameBindingOutput{}) pulumi.RegisterOutputType(SlotCustomHostnameBindingArrayOutput{}) pulumi.RegisterOutputType(SlotCustomHostnameBindingMapOutput{}) }
go
Apache-2.0
b66e1472775a89cca43f5050fef806854a7c3fa3
2026-01-07T09:44:27.619514Z
false
pulumi/pulumi-azure
https://github.com/pulumi/pulumi-azure/blob/b66e1472775a89cca43f5050fef806854a7c3fa3/sdk/go/azure/appservice/getStaticWebApp.go
sdk/go/azure/appservice/getStaticWebApp.go
// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package appservice import ( "context" "reflect" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Use this data source to access information about an existing Static Web App. // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/appservice" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { // _, err := appservice.LookupStaticWebApp(ctx, &appservice.LookupStaticWebAppArgs{ // Name: "existing", // ResourceGroupName: "existing", // }, nil) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## API Providers // // <!-- This section is generated, changes will be overwritten --> // This data source uses the following Azure API Providers: // // * `Microsoft.Web` - 2023-01-01 func LookupStaticWebApp(ctx *pulumi.Context, args *LookupStaticWebAppArgs, opts ...pulumi.InvokeOption) (*LookupStaticWebAppResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupStaticWebAppResult err := ctx.Invoke("azure:appservice/getStaticWebApp:getStaticWebApp", args, &rv, opts...) if err != nil { return nil, err } return &rv, nil } // A collection of arguments for invoking getStaticWebApp. type LookupStaticWebAppArgs struct { // The name of this Static Web App. Name string `pulumi:"name"` // The name of the Resource Group where the Static Web App exists. ResourceGroupName string `pulumi:"resourceGroupName"` } // A collection of values returned by getStaticWebApp. type LookupStaticWebAppResult struct { // The API key of this Static Web App, which is used for later interacting with this Static Web App from other clients, e.g. GitHub Action. ApiKey string `pulumi:"apiKey"` // The map of key-value pairs of App Settings for the Static Web App. AppSettings map[string]string `pulumi:"appSettings"` // A `basicAuth` block as defined below. BasicAuths []GetStaticWebAppBasicAuth `pulumi:"basicAuths"` // Are changes to the configuration file permitted. ConfigurationFileChangesEnabled bool `pulumi:"configurationFileChangesEnabled"` // The default host name of the Static Web App. DefaultHostName string `pulumi:"defaultHostName"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` // An `identity` block as defined below. Identities []GetStaticWebAppIdentity `pulumi:"identities"` // The Azure region in which this Static Web App exists. Location string `pulumi:"location"` Name string `pulumi:"name"` // Are Preview (Staging) environments enabled. PreviewEnvironmentsEnabled bool `pulumi:"previewEnvironmentsEnabled"` // Should public network access be enabled for the Static Web App. PublicNetworkAccessEnabled bool `pulumi:"publicNetworkAccessEnabled"` // Repository branch of the Static Web App. RepositoryBranch string `pulumi:"repositoryBranch"` // Repository URL of the Static Web App. RepositoryUrl string `pulumi:"repositoryUrl"` ResourceGroupName string `pulumi:"resourceGroupName"` // The SKU size of the Static Web App. SkuSize string `pulumi:"skuSize"` // The SKU tier of the Static Web App. SkuTier string `pulumi:"skuTier"` // The mapping of tags assigned to the resource. Tags map[string]string `pulumi:"tags"` } func LookupStaticWebAppOutput(ctx *pulumi.Context, args LookupStaticWebAppOutputArgs, opts ...pulumi.InvokeOption) LookupStaticWebAppResultOutput { return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupStaticWebAppResultOutput, error) { args := v.(LookupStaticWebAppArgs) options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} return ctx.InvokeOutput("azure:appservice/getStaticWebApp:getStaticWebApp", args, LookupStaticWebAppResultOutput{}, options).(LookupStaticWebAppResultOutput), nil }).(LookupStaticWebAppResultOutput) } // A collection of arguments for invoking getStaticWebApp. type LookupStaticWebAppOutputArgs struct { // The name of this Static Web App. Name pulumi.StringInput `pulumi:"name"` // The name of the Resource Group where the Static Web App exists. ResourceGroupName pulumi.StringInput `pulumi:"resourceGroupName"` } func (LookupStaticWebAppOutputArgs) ElementType() reflect.Type { return reflect.TypeOf((*LookupStaticWebAppArgs)(nil)).Elem() } // A collection of values returned by getStaticWebApp. type LookupStaticWebAppResultOutput struct{ *pulumi.OutputState } func (LookupStaticWebAppResultOutput) ElementType() reflect.Type { return reflect.TypeOf((*LookupStaticWebAppResult)(nil)).Elem() } func (o LookupStaticWebAppResultOutput) ToLookupStaticWebAppResultOutput() LookupStaticWebAppResultOutput { return o } func (o LookupStaticWebAppResultOutput) ToLookupStaticWebAppResultOutputWithContext(ctx context.Context) LookupStaticWebAppResultOutput { return o } // The API key of this Static Web App, which is used for later interacting with this Static Web App from other clients, e.g. GitHub Action. func (o LookupStaticWebAppResultOutput) ApiKey() pulumi.StringOutput { return o.ApplyT(func(v LookupStaticWebAppResult) string { return v.ApiKey }).(pulumi.StringOutput) } // The map of key-value pairs of App Settings for the Static Web App. func (o LookupStaticWebAppResultOutput) AppSettings() pulumi.StringMapOutput { return o.ApplyT(func(v LookupStaticWebAppResult) map[string]string { return v.AppSettings }).(pulumi.StringMapOutput) } // A `basicAuth` block as defined below. func (o LookupStaticWebAppResultOutput) BasicAuths() GetStaticWebAppBasicAuthArrayOutput { return o.ApplyT(func(v LookupStaticWebAppResult) []GetStaticWebAppBasicAuth { return v.BasicAuths }).(GetStaticWebAppBasicAuthArrayOutput) } // Are changes to the configuration file permitted. func (o LookupStaticWebAppResultOutput) ConfigurationFileChangesEnabled() pulumi.BoolOutput { return o.ApplyT(func(v LookupStaticWebAppResult) bool { return v.ConfigurationFileChangesEnabled }).(pulumi.BoolOutput) } // The default host name of the Static Web App. func (o LookupStaticWebAppResultOutput) DefaultHostName() pulumi.StringOutput { return o.ApplyT(func(v LookupStaticWebAppResult) string { return v.DefaultHostName }).(pulumi.StringOutput) } // The provider-assigned unique ID for this managed resource. func (o LookupStaticWebAppResultOutput) Id() pulumi.StringOutput { return o.ApplyT(func(v LookupStaticWebAppResult) string { return v.Id }).(pulumi.StringOutput) } // An `identity` block as defined below. func (o LookupStaticWebAppResultOutput) Identities() GetStaticWebAppIdentityArrayOutput { return o.ApplyT(func(v LookupStaticWebAppResult) []GetStaticWebAppIdentity { return v.Identities }).(GetStaticWebAppIdentityArrayOutput) } // The Azure region in which this Static Web App exists. func (o LookupStaticWebAppResultOutput) Location() pulumi.StringOutput { return o.ApplyT(func(v LookupStaticWebAppResult) string { return v.Location }).(pulumi.StringOutput) } func (o LookupStaticWebAppResultOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v LookupStaticWebAppResult) string { return v.Name }).(pulumi.StringOutput) } // Are Preview (Staging) environments enabled. func (o LookupStaticWebAppResultOutput) PreviewEnvironmentsEnabled() pulumi.BoolOutput { return o.ApplyT(func(v LookupStaticWebAppResult) bool { return v.PreviewEnvironmentsEnabled }).(pulumi.BoolOutput) } // Should public network access be enabled for the Static Web App. func (o LookupStaticWebAppResultOutput) PublicNetworkAccessEnabled() pulumi.BoolOutput { return o.ApplyT(func(v LookupStaticWebAppResult) bool { return v.PublicNetworkAccessEnabled }).(pulumi.BoolOutput) } // Repository branch of the Static Web App. func (o LookupStaticWebAppResultOutput) RepositoryBranch() pulumi.StringOutput { return o.ApplyT(func(v LookupStaticWebAppResult) string { return v.RepositoryBranch }).(pulumi.StringOutput) } // Repository URL of the Static Web App. func (o LookupStaticWebAppResultOutput) RepositoryUrl() pulumi.StringOutput { return o.ApplyT(func(v LookupStaticWebAppResult) string { return v.RepositoryUrl }).(pulumi.StringOutput) } func (o LookupStaticWebAppResultOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v LookupStaticWebAppResult) string { return v.ResourceGroupName }).(pulumi.StringOutput) } // The SKU size of the Static Web App. func (o LookupStaticWebAppResultOutput) SkuSize() pulumi.StringOutput { return o.ApplyT(func(v LookupStaticWebAppResult) string { return v.SkuSize }).(pulumi.StringOutput) } // The SKU tier of the Static Web App. func (o LookupStaticWebAppResultOutput) SkuTier() pulumi.StringOutput { return o.ApplyT(func(v LookupStaticWebAppResult) string { return v.SkuTier }).(pulumi.StringOutput) } // The mapping of tags assigned to the resource. func (o LookupStaticWebAppResultOutput) Tags() pulumi.StringMapOutput { return o.ApplyT(func(v LookupStaticWebAppResult) map[string]string { return v.Tags }).(pulumi.StringMapOutput) } func init() { pulumi.RegisterOutputType(LookupStaticWebAppResultOutput{}) }
go
Apache-2.0
b66e1472775a89cca43f5050fef806854a7c3fa3
2026-01-07T09:44:27.619514Z
false
pulumi/pulumi-azure
https://github.com/pulumi/pulumi-azure/blob/b66e1472775a89cca43f5050fef806854a7c3fa3/sdk/go/azure/appservice/customHostnameBinding.go
sdk/go/azure/appservice/customHostnameBinding.go
// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package appservice import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a Hostname Binding within an App Service (or Function App). // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/appservice" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core" // "github.com/pulumi/pulumi-random/sdk/v4/go/random" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { // server, err := random.NewId(ctx, "server", &random.IdArgs{ // Keepers: map[string]interface{}{ // "aziId": 1, // }, // ByteLength: 8, // }) // if err != nil { // return err // } // example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{ // Name: pulumi.String("some-resource-group"), // Location: pulumi.String("West Europe"), // }) // if err != nil { // return err // } // examplePlan, err := appservice.NewPlan(ctx, "example", &appservice.PlanArgs{ // Name: pulumi.String("some-app-service-plan"), // Location: example.Location, // ResourceGroupName: example.Name, // Sku: &appservice.PlanSkuArgs{ // Tier: pulumi.String("Standard"), // Size: pulumi.String("S1"), // }, // }) // if err != nil { // return err // } // exampleAppService, err := appservice.NewAppService(ctx, "example", &appservice.AppServiceArgs{ // Name: server.Hex, // Location: example.Location, // ResourceGroupName: example.Name, // AppServicePlanId: examplePlan.ID(), // }) // if err != nil { // return err // } // _, err = appservice.NewCustomHostnameBinding(ctx, "example", &appservice.CustomHostnameBindingArgs{ // Hostname: pulumi.String("www.mywebsite.com"), // AppServiceName: exampleAppService.Name, // ResourceGroupName: example.Name, // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## Import // // App Service Custom Hostname Bindings can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:appservice/customHostnameBinding:CustomHostnameBinding mywebsite /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Web/sites/instance1/hostNameBindings/mywebsite.com // ``` type CustomHostnameBinding struct { pulumi.CustomResourceState // The name of the App Service in which to add the Custom Hostname Binding. Changing this forces a new resource to be created. AppServiceName pulumi.StringOutput `pulumi:"appServiceName"` // Specifies the Custom Hostname to use for the App Service, example `www.example.com`. Changing this forces a new resource to be created. // // > **Note:** A CNAME needs to be configured from this Hostname to the Azure Website - otherwise Azure will reject the Hostname Binding. Hostname pulumi.StringOutput `pulumi:"hostname"` // The name of the resource group in which the App Service exists. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // The SSL type. Possible values are `IpBasedEnabled` and `SniEnabled`. Changing this forces a new resource to be created. SslState pulumi.StringOutput `pulumi:"sslState"` // The SSL certificate thumbprint. Changing this forces a new resource to be created. // // > **Note:** `thumbprint` must be specified when `sslState` is set. Thumbprint pulumi.StringOutput `pulumi:"thumbprint"` // The virtual IP address assigned to the hostname if IP based SSL is enabled. VirtualIp pulumi.StringOutput `pulumi:"virtualIp"` } // NewCustomHostnameBinding registers a new resource with the given unique name, arguments, and options. func NewCustomHostnameBinding(ctx *pulumi.Context, name string, args *CustomHostnameBindingArgs, opts ...pulumi.ResourceOption) (*CustomHostnameBinding, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.AppServiceName == nil { return nil, errors.New("invalid value for required argument 'AppServiceName'") } if args.Hostname == nil { return nil, errors.New("invalid value for required argument 'Hostname'") } if args.ResourceGroupName == nil { return nil, errors.New("invalid value for required argument 'ResourceGroupName'") } opts = internal.PkgResourceDefaultOpts(opts) var resource CustomHostnameBinding err := ctx.RegisterResource("azure:appservice/customHostnameBinding:CustomHostnameBinding", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetCustomHostnameBinding gets an existing CustomHostnameBinding 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 GetCustomHostnameBinding(ctx *pulumi.Context, name string, id pulumi.IDInput, state *CustomHostnameBindingState, opts ...pulumi.ResourceOption) (*CustomHostnameBinding, error) { var resource CustomHostnameBinding err := ctx.ReadResource("azure:appservice/customHostnameBinding:CustomHostnameBinding", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering CustomHostnameBinding resources. type customHostnameBindingState struct { // The name of the App Service in which to add the Custom Hostname Binding. Changing this forces a new resource to be created. AppServiceName *string `pulumi:"appServiceName"` // Specifies the Custom Hostname to use for the App Service, example `www.example.com`. Changing this forces a new resource to be created. // // > **Note:** A CNAME needs to be configured from this Hostname to the Azure Website - otherwise Azure will reject the Hostname Binding. Hostname *string `pulumi:"hostname"` // The name of the resource group in which the App Service exists. Changing this forces a new resource to be created. ResourceGroupName *string `pulumi:"resourceGroupName"` // The SSL type. Possible values are `IpBasedEnabled` and `SniEnabled`. Changing this forces a new resource to be created. SslState *string `pulumi:"sslState"` // The SSL certificate thumbprint. Changing this forces a new resource to be created. // // > **Note:** `thumbprint` must be specified when `sslState` is set. Thumbprint *string `pulumi:"thumbprint"` // The virtual IP address assigned to the hostname if IP based SSL is enabled. VirtualIp *string `pulumi:"virtualIp"` } type CustomHostnameBindingState struct { // The name of the App Service in which to add the Custom Hostname Binding. Changing this forces a new resource to be created. AppServiceName pulumi.StringPtrInput // Specifies the Custom Hostname to use for the App Service, example `www.example.com`. Changing this forces a new resource to be created. // // > **Note:** A CNAME needs to be configured from this Hostname to the Azure Website - otherwise Azure will reject the Hostname Binding. Hostname pulumi.StringPtrInput // The name of the resource group in which the App Service exists. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringPtrInput // The SSL type. Possible values are `IpBasedEnabled` and `SniEnabled`. Changing this forces a new resource to be created. SslState pulumi.StringPtrInput // The SSL certificate thumbprint. Changing this forces a new resource to be created. // // > **Note:** `thumbprint` must be specified when `sslState` is set. Thumbprint pulumi.StringPtrInput // The virtual IP address assigned to the hostname if IP based SSL is enabled. VirtualIp pulumi.StringPtrInput } func (CustomHostnameBindingState) ElementType() reflect.Type { return reflect.TypeOf((*customHostnameBindingState)(nil)).Elem() } type customHostnameBindingArgs struct { // The name of the App Service in which to add the Custom Hostname Binding. Changing this forces a new resource to be created. AppServiceName string `pulumi:"appServiceName"` // Specifies the Custom Hostname to use for the App Service, example `www.example.com`. Changing this forces a new resource to be created. // // > **Note:** A CNAME needs to be configured from this Hostname to the Azure Website - otherwise Azure will reject the Hostname Binding. Hostname string `pulumi:"hostname"` // The name of the resource group in which the App Service exists. Changing this forces a new resource to be created. ResourceGroupName string `pulumi:"resourceGroupName"` // The SSL type. Possible values are `IpBasedEnabled` and `SniEnabled`. Changing this forces a new resource to be created. SslState *string `pulumi:"sslState"` // The SSL certificate thumbprint. Changing this forces a new resource to be created. // // > **Note:** `thumbprint` must be specified when `sslState` is set. Thumbprint *string `pulumi:"thumbprint"` } // The set of arguments for constructing a CustomHostnameBinding resource. type CustomHostnameBindingArgs struct { // The name of the App Service in which to add the Custom Hostname Binding. Changing this forces a new resource to be created. AppServiceName pulumi.StringInput // Specifies the Custom Hostname to use for the App Service, example `www.example.com`. Changing this forces a new resource to be created. // // > **Note:** A CNAME needs to be configured from this Hostname to the Azure Website - otherwise Azure will reject the Hostname Binding. Hostname pulumi.StringInput // The name of the resource group in which the App Service exists. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringInput // The SSL type. Possible values are `IpBasedEnabled` and `SniEnabled`. Changing this forces a new resource to be created. SslState pulumi.StringPtrInput // The SSL certificate thumbprint. Changing this forces a new resource to be created. // // > **Note:** `thumbprint` must be specified when `sslState` is set. Thumbprint pulumi.StringPtrInput } func (CustomHostnameBindingArgs) ElementType() reflect.Type { return reflect.TypeOf((*customHostnameBindingArgs)(nil)).Elem() } type CustomHostnameBindingInput interface { pulumi.Input ToCustomHostnameBindingOutput() CustomHostnameBindingOutput ToCustomHostnameBindingOutputWithContext(ctx context.Context) CustomHostnameBindingOutput } func (*CustomHostnameBinding) ElementType() reflect.Type { return reflect.TypeOf((**CustomHostnameBinding)(nil)).Elem() } func (i *CustomHostnameBinding) ToCustomHostnameBindingOutput() CustomHostnameBindingOutput { return i.ToCustomHostnameBindingOutputWithContext(context.Background()) } func (i *CustomHostnameBinding) ToCustomHostnameBindingOutputWithContext(ctx context.Context) CustomHostnameBindingOutput { return pulumi.ToOutputWithContext(ctx, i).(CustomHostnameBindingOutput) } // CustomHostnameBindingArrayInput is an input type that accepts CustomHostnameBindingArray and CustomHostnameBindingArrayOutput values. // You can construct a concrete instance of `CustomHostnameBindingArrayInput` via: // // CustomHostnameBindingArray{ CustomHostnameBindingArgs{...} } type CustomHostnameBindingArrayInput interface { pulumi.Input ToCustomHostnameBindingArrayOutput() CustomHostnameBindingArrayOutput ToCustomHostnameBindingArrayOutputWithContext(context.Context) CustomHostnameBindingArrayOutput } type CustomHostnameBindingArray []CustomHostnameBindingInput func (CustomHostnameBindingArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*CustomHostnameBinding)(nil)).Elem() } func (i CustomHostnameBindingArray) ToCustomHostnameBindingArrayOutput() CustomHostnameBindingArrayOutput { return i.ToCustomHostnameBindingArrayOutputWithContext(context.Background()) } func (i CustomHostnameBindingArray) ToCustomHostnameBindingArrayOutputWithContext(ctx context.Context) CustomHostnameBindingArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(CustomHostnameBindingArrayOutput) } // CustomHostnameBindingMapInput is an input type that accepts CustomHostnameBindingMap and CustomHostnameBindingMapOutput values. // You can construct a concrete instance of `CustomHostnameBindingMapInput` via: // // CustomHostnameBindingMap{ "key": CustomHostnameBindingArgs{...} } type CustomHostnameBindingMapInput interface { pulumi.Input ToCustomHostnameBindingMapOutput() CustomHostnameBindingMapOutput ToCustomHostnameBindingMapOutputWithContext(context.Context) CustomHostnameBindingMapOutput } type CustomHostnameBindingMap map[string]CustomHostnameBindingInput func (CustomHostnameBindingMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*CustomHostnameBinding)(nil)).Elem() } func (i CustomHostnameBindingMap) ToCustomHostnameBindingMapOutput() CustomHostnameBindingMapOutput { return i.ToCustomHostnameBindingMapOutputWithContext(context.Background()) } func (i CustomHostnameBindingMap) ToCustomHostnameBindingMapOutputWithContext(ctx context.Context) CustomHostnameBindingMapOutput { return pulumi.ToOutputWithContext(ctx, i).(CustomHostnameBindingMapOutput) } type CustomHostnameBindingOutput struct{ *pulumi.OutputState } func (CustomHostnameBindingOutput) ElementType() reflect.Type { return reflect.TypeOf((**CustomHostnameBinding)(nil)).Elem() } func (o CustomHostnameBindingOutput) ToCustomHostnameBindingOutput() CustomHostnameBindingOutput { return o } func (o CustomHostnameBindingOutput) ToCustomHostnameBindingOutputWithContext(ctx context.Context) CustomHostnameBindingOutput { return o } // The name of the App Service in which to add the Custom Hostname Binding. Changing this forces a new resource to be created. func (o CustomHostnameBindingOutput) AppServiceName() pulumi.StringOutput { return o.ApplyT(func(v *CustomHostnameBinding) pulumi.StringOutput { return v.AppServiceName }).(pulumi.StringOutput) } // Specifies the Custom Hostname to use for the App Service, example `www.example.com`. Changing this forces a new resource to be created. // // > **Note:** A CNAME needs to be configured from this Hostname to the Azure Website - otherwise Azure will reject the Hostname Binding. func (o CustomHostnameBindingOutput) Hostname() pulumi.StringOutput { return o.ApplyT(func(v *CustomHostnameBinding) pulumi.StringOutput { return v.Hostname }).(pulumi.StringOutput) } // The name of the resource group in which the App Service exists. Changing this forces a new resource to be created. func (o CustomHostnameBindingOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v *CustomHostnameBinding) pulumi.StringOutput { return v.ResourceGroupName }).(pulumi.StringOutput) } // The SSL type. Possible values are `IpBasedEnabled` and `SniEnabled`. Changing this forces a new resource to be created. func (o CustomHostnameBindingOutput) SslState() pulumi.StringOutput { return o.ApplyT(func(v *CustomHostnameBinding) pulumi.StringOutput { return v.SslState }).(pulumi.StringOutput) } // The SSL certificate thumbprint. Changing this forces a new resource to be created. // // > **Note:** `thumbprint` must be specified when `sslState` is set. func (o CustomHostnameBindingOutput) Thumbprint() pulumi.StringOutput { return o.ApplyT(func(v *CustomHostnameBinding) pulumi.StringOutput { return v.Thumbprint }).(pulumi.StringOutput) } // The virtual IP address assigned to the hostname if IP based SSL is enabled. func (o CustomHostnameBindingOutput) VirtualIp() pulumi.StringOutput { return o.ApplyT(func(v *CustomHostnameBinding) pulumi.StringOutput { return v.VirtualIp }).(pulumi.StringOutput) } type CustomHostnameBindingArrayOutput struct{ *pulumi.OutputState } func (CustomHostnameBindingArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*CustomHostnameBinding)(nil)).Elem() } func (o CustomHostnameBindingArrayOutput) ToCustomHostnameBindingArrayOutput() CustomHostnameBindingArrayOutput { return o } func (o CustomHostnameBindingArrayOutput) ToCustomHostnameBindingArrayOutputWithContext(ctx context.Context) CustomHostnameBindingArrayOutput { return o } func (o CustomHostnameBindingArrayOutput) Index(i pulumi.IntInput) CustomHostnameBindingOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *CustomHostnameBinding { return vs[0].([]*CustomHostnameBinding)[vs[1].(int)] }).(CustomHostnameBindingOutput) } type CustomHostnameBindingMapOutput struct{ *pulumi.OutputState } func (CustomHostnameBindingMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*CustomHostnameBinding)(nil)).Elem() } func (o CustomHostnameBindingMapOutput) ToCustomHostnameBindingMapOutput() CustomHostnameBindingMapOutput { return o } func (o CustomHostnameBindingMapOutput) ToCustomHostnameBindingMapOutputWithContext(ctx context.Context) CustomHostnameBindingMapOutput { return o } func (o CustomHostnameBindingMapOutput) MapIndex(k pulumi.StringInput) CustomHostnameBindingOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *CustomHostnameBinding { return vs[0].(map[string]*CustomHostnameBinding)[vs[1].(string)] }).(CustomHostnameBindingOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*CustomHostnameBindingInput)(nil)).Elem(), &CustomHostnameBinding{}) pulumi.RegisterInputType(reflect.TypeOf((*CustomHostnameBindingArrayInput)(nil)).Elem(), CustomHostnameBindingArray{}) pulumi.RegisterInputType(reflect.TypeOf((*CustomHostnameBindingMapInput)(nil)).Elem(), CustomHostnameBindingMap{}) pulumi.RegisterOutputType(CustomHostnameBindingOutput{}) pulumi.RegisterOutputType(CustomHostnameBindingArrayOutput{}) pulumi.RegisterOutputType(CustomHostnameBindingMapOutput{}) }
go
Apache-2.0
b66e1472775a89cca43f5050fef806854a7c3fa3
2026-01-07T09:44:27.619514Z
false
pulumi/pulumi-azure
https://github.com/pulumi/pulumi-azure/blob/b66e1472775a89cca43f5050fef806854a7c3fa3/sdk/go/azure/appservice/certificate.go
sdk/go/azure/appservice/certificate.go
// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package appservice import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages an App Service certificate. // // ## Example Usage // // This example provisions an App Service Certificate from a Local File. // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/appservice" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core" // "github.com/pulumi/pulumi-std/sdk/go/std" // "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-resources"), // Location: pulumi.String("West Europe"), // }) // if err != nil { // return err // } // invokeFilebase64, err := std.Filebase64(ctx, &std.Filebase64Args{ // Input: "certificate.pfx", // }, nil) // if err != nil { // return err // } // _, err = appservice.NewCertificate(ctx, "example", &appservice.CertificateArgs{ // Name: pulumi.String("example-cert"), // ResourceGroupName: example.Name, // Location: example.Location, // PfxBlob: pulumi.String(invokeFilebase64.Result), // Password: pulumi.String("password123!"), // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## Import // // App Service Certificates can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:appservice/certificate:Certificate example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Web/certificates/certificate1 // ``` type Certificate struct { pulumi.CustomResourceState // The ID of the associated App Service plan. Must be specified when the certificate is used inside an App Service Environment hosted App Service or with Basic and Premium App Service plans. Changing this forces a new resource to be created. AppServicePlanId pulumi.StringPtrOutput `pulumi:"appServicePlanId"` // The expiration date for the certificate. ExpirationDate pulumi.StringOutput `pulumi:"expirationDate"` // The friendly name of the certificate. FriendlyName pulumi.StringOutput `pulumi:"friendlyName"` // List of host names the certificate applies to. HostNames pulumi.StringArrayOutput `pulumi:"hostNames"` // The ID of the App Service Environment where the certificate is in use. HostingEnvironmentProfileId pulumi.StringOutput `pulumi:"hostingEnvironmentProfileId"` // The issue date for the certificate. IssueDate pulumi.StringOutput `pulumi:"issueDate"` // The name of the certificate issuer. Issuer pulumi.StringOutput `pulumi:"issuer"` KeyVaultId pulumi.StringPtrOutput `pulumi:"keyVaultId"` // The ID of the Key Vault secret. Changing this forces a new resource to be created. // // > **NOTE:** Exactly one of `keyVaultSecretId` or `pfxBlob` must be specified. KeyVaultSecretId pulumi.StringPtrOutput `pulumi:"keyVaultSecretId"` // 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 certificate. Changing this forces a new resource to be created. Name pulumi.StringOutput `pulumi:"name"` // The password to access the certificate's private key. Changing this forces a new resource to be created. Password pulumi.StringPtrOutput `pulumi:"password"` // The base64-encoded contents of the certificate. Changing this forces a new resource to be created. // // > **NOTE:** Exactly one of `keyVaultSecretId` or `pfxBlob` must be specified. PfxBlob pulumi.StringPtrOutput `pulumi:"pfxBlob"` // The name of the resource group in which to create the certificate. Changing this forces a new resource to be created. // // > **NOTE:** The resource group must be the same as that which the app service plan is defined in - otherwise the certificate will not show as available for the app services. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // The subject name of the certificate. SubjectName pulumi.StringOutput `pulumi:"subjectName"` Tags pulumi.StringMapOutput `pulumi:"tags"` // The thumbprint for the certificate. Thumbprint pulumi.StringOutput `pulumi:"thumbprint"` } // NewCertificate registers a new resource with the given unique name, arguments, and options. func NewCertificate(ctx *pulumi.Context, name string, args *CertificateArgs, opts ...pulumi.ResourceOption) (*Certificate, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.ResourceGroupName == nil { return nil, errors.New("invalid value for required argument 'ResourceGroupName'") } if args.Password != nil { args.Password = pulumi.ToSecret(args.Password).(pulumi.StringPtrInput) } if args.PfxBlob != nil { args.PfxBlob = pulumi.ToSecret(args.PfxBlob).(pulumi.StringPtrInput) } secrets := pulumi.AdditionalSecretOutputs([]string{ "password", "pfxBlob", }) opts = append(opts, secrets) opts = internal.PkgResourceDefaultOpts(opts) var resource Certificate err := ctx.RegisterResource("azure:appservice/certificate:Certificate", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetCertificate gets an existing Certificate 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 GetCertificate(ctx *pulumi.Context, name string, id pulumi.IDInput, state *CertificateState, opts ...pulumi.ResourceOption) (*Certificate, error) { var resource Certificate err := ctx.ReadResource("azure:appservice/certificate:Certificate", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering Certificate resources. type certificateState struct { // The ID of the associated App Service plan. Must be specified when the certificate is used inside an App Service Environment hosted App Service or with Basic and Premium App Service plans. Changing this forces a new resource to be created. AppServicePlanId *string `pulumi:"appServicePlanId"` // The expiration date for the certificate. ExpirationDate *string `pulumi:"expirationDate"` // The friendly name of the certificate. FriendlyName *string `pulumi:"friendlyName"` // List of host names the certificate applies to. HostNames []string `pulumi:"hostNames"` // The ID of the App Service Environment where the certificate is in use. HostingEnvironmentProfileId *string `pulumi:"hostingEnvironmentProfileId"` // The issue date for the certificate. IssueDate *string `pulumi:"issueDate"` // The name of the certificate issuer. Issuer *string `pulumi:"issuer"` KeyVaultId *string `pulumi:"keyVaultId"` // The ID of the Key Vault secret. Changing this forces a new resource to be created. // // > **NOTE:** Exactly one of `keyVaultSecretId` or `pfxBlob` must be specified. KeyVaultSecretId *string `pulumi:"keyVaultSecretId"` // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location *string `pulumi:"location"` // Specifies the name of the certificate. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // The password to access the certificate's private key. Changing this forces a new resource to be created. Password *string `pulumi:"password"` // The base64-encoded contents of the certificate. Changing this forces a new resource to be created. // // > **NOTE:** Exactly one of `keyVaultSecretId` or `pfxBlob` must be specified. PfxBlob *string `pulumi:"pfxBlob"` // The name of the resource group in which to create the certificate. Changing this forces a new resource to be created. // // > **NOTE:** The resource group must be the same as that which the app service plan is defined in - otherwise the certificate will not show as available for the app services. ResourceGroupName *string `pulumi:"resourceGroupName"` // The subject name of the certificate. SubjectName *string `pulumi:"subjectName"` Tags map[string]string `pulumi:"tags"` // The thumbprint for the certificate. Thumbprint *string `pulumi:"thumbprint"` } type CertificateState struct { // The ID of the associated App Service plan. Must be specified when the certificate is used inside an App Service Environment hosted App Service or with Basic and Premium App Service plans. Changing this forces a new resource to be created. AppServicePlanId pulumi.StringPtrInput // The expiration date for the certificate. ExpirationDate pulumi.StringPtrInput // The friendly name of the certificate. FriendlyName pulumi.StringPtrInput // List of host names the certificate applies to. HostNames pulumi.StringArrayInput // The ID of the App Service Environment where the certificate is in use. HostingEnvironmentProfileId pulumi.StringPtrInput // The issue date for the certificate. IssueDate pulumi.StringPtrInput // The name of the certificate issuer. Issuer pulumi.StringPtrInput KeyVaultId pulumi.StringPtrInput // The ID of the Key Vault secret. Changing this forces a new resource to be created. // // > **NOTE:** Exactly one of `keyVaultSecretId` or `pfxBlob` must be specified. KeyVaultSecretId pulumi.StringPtrInput // 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 certificate. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // The password to access the certificate's private key. Changing this forces a new resource to be created. Password pulumi.StringPtrInput // The base64-encoded contents of the certificate. Changing this forces a new resource to be created. // // > **NOTE:** Exactly one of `keyVaultSecretId` or `pfxBlob` must be specified. PfxBlob pulumi.StringPtrInput // The name of the resource group in which to create the certificate. Changing this forces a new resource to be created. // // > **NOTE:** The resource group must be the same as that which the app service plan is defined in - otherwise the certificate will not show as available for the app services. ResourceGroupName pulumi.StringPtrInput // The subject name of the certificate. SubjectName pulumi.StringPtrInput Tags pulumi.StringMapInput // The thumbprint for the certificate. Thumbprint pulumi.StringPtrInput } func (CertificateState) ElementType() reflect.Type { return reflect.TypeOf((*certificateState)(nil)).Elem() } type certificateArgs struct { // The ID of the associated App Service plan. Must be specified when the certificate is used inside an App Service Environment hosted App Service or with Basic and Premium App Service plans. Changing this forces a new resource to be created. AppServicePlanId *string `pulumi:"appServicePlanId"` KeyVaultId *string `pulumi:"keyVaultId"` // The ID of the Key Vault secret. Changing this forces a new resource to be created. // // > **NOTE:** Exactly one of `keyVaultSecretId` or `pfxBlob` must be specified. KeyVaultSecretId *string `pulumi:"keyVaultSecretId"` // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location *string `pulumi:"location"` // Specifies the name of the certificate. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // The password to access the certificate's private key. Changing this forces a new resource to be created. Password *string `pulumi:"password"` // The base64-encoded contents of the certificate. Changing this forces a new resource to be created. // // > **NOTE:** Exactly one of `keyVaultSecretId` or `pfxBlob` must be specified. PfxBlob *string `pulumi:"pfxBlob"` // The name of the resource group in which to create the certificate. Changing this forces a new resource to be created. // // > **NOTE:** The resource group must be the same as that which the app service plan is defined in - otherwise the certificate will not show as available for the app services. ResourceGroupName string `pulumi:"resourceGroupName"` Tags map[string]string `pulumi:"tags"` } // The set of arguments for constructing a Certificate resource. type CertificateArgs struct { // The ID of the associated App Service plan. Must be specified when the certificate is used inside an App Service Environment hosted App Service or with Basic and Premium App Service plans. Changing this forces a new resource to be created. AppServicePlanId pulumi.StringPtrInput KeyVaultId pulumi.StringPtrInput // The ID of the Key Vault secret. Changing this forces a new resource to be created. // // > **NOTE:** Exactly one of `keyVaultSecretId` or `pfxBlob` must be specified. KeyVaultSecretId pulumi.StringPtrInput // 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 certificate. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // The password to access the certificate's private key. Changing this forces a new resource to be created. Password pulumi.StringPtrInput // The base64-encoded contents of the certificate. Changing this forces a new resource to be created. // // > **NOTE:** Exactly one of `keyVaultSecretId` or `pfxBlob` must be specified. PfxBlob pulumi.StringPtrInput // The name of the resource group in which to create the certificate. Changing this forces a new resource to be created. // // > **NOTE:** The resource group must be the same as that which the app service plan is defined in - otherwise the certificate will not show as available for the app services. ResourceGroupName pulumi.StringInput Tags pulumi.StringMapInput } func (CertificateArgs) ElementType() reflect.Type { return reflect.TypeOf((*certificateArgs)(nil)).Elem() } type CertificateInput interface { pulumi.Input ToCertificateOutput() CertificateOutput ToCertificateOutputWithContext(ctx context.Context) CertificateOutput } func (*Certificate) ElementType() reflect.Type { return reflect.TypeOf((**Certificate)(nil)).Elem() } func (i *Certificate) ToCertificateOutput() CertificateOutput { return i.ToCertificateOutputWithContext(context.Background()) } func (i *Certificate) ToCertificateOutputWithContext(ctx context.Context) CertificateOutput { return pulumi.ToOutputWithContext(ctx, i).(CertificateOutput) } // CertificateArrayInput is an input type that accepts CertificateArray and CertificateArrayOutput values. // You can construct a concrete instance of `CertificateArrayInput` via: // // CertificateArray{ CertificateArgs{...} } type CertificateArrayInput interface { pulumi.Input ToCertificateArrayOutput() CertificateArrayOutput ToCertificateArrayOutputWithContext(context.Context) CertificateArrayOutput } type CertificateArray []CertificateInput func (CertificateArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*Certificate)(nil)).Elem() } func (i CertificateArray) ToCertificateArrayOutput() CertificateArrayOutput { return i.ToCertificateArrayOutputWithContext(context.Background()) } func (i CertificateArray) ToCertificateArrayOutputWithContext(ctx context.Context) CertificateArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(CertificateArrayOutput) } // CertificateMapInput is an input type that accepts CertificateMap and CertificateMapOutput values. // You can construct a concrete instance of `CertificateMapInput` via: // // CertificateMap{ "key": CertificateArgs{...} } type CertificateMapInput interface { pulumi.Input ToCertificateMapOutput() CertificateMapOutput ToCertificateMapOutputWithContext(context.Context) CertificateMapOutput } type CertificateMap map[string]CertificateInput func (CertificateMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*Certificate)(nil)).Elem() } func (i CertificateMap) ToCertificateMapOutput() CertificateMapOutput { return i.ToCertificateMapOutputWithContext(context.Background()) } func (i CertificateMap) ToCertificateMapOutputWithContext(ctx context.Context) CertificateMapOutput { return pulumi.ToOutputWithContext(ctx, i).(CertificateMapOutput) } type CertificateOutput struct{ *pulumi.OutputState } func (CertificateOutput) ElementType() reflect.Type { return reflect.TypeOf((**Certificate)(nil)).Elem() } func (o CertificateOutput) ToCertificateOutput() CertificateOutput { return o } func (o CertificateOutput) ToCertificateOutputWithContext(ctx context.Context) CertificateOutput { return o } // The ID of the associated App Service plan. Must be specified when the certificate is used inside an App Service Environment hosted App Service or with Basic and Premium App Service plans. Changing this forces a new resource to be created. func (o CertificateOutput) AppServicePlanId() pulumi.StringPtrOutput { return o.ApplyT(func(v *Certificate) pulumi.StringPtrOutput { return v.AppServicePlanId }).(pulumi.StringPtrOutput) } // The expiration date for the certificate. func (o CertificateOutput) ExpirationDate() pulumi.StringOutput { return o.ApplyT(func(v *Certificate) pulumi.StringOutput { return v.ExpirationDate }).(pulumi.StringOutput) } // The friendly name of the certificate. func (o CertificateOutput) FriendlyName() pulumi.StringOutput { return o.ApplyT(func(v *Certificate) pulumi.StringOutput { return v.FriendlyName }).(pulumi.StringOutput) } // List of host names the certificate applies to. func (o CertificateOutput) HostNames() pulumi.StringArrayOutput { return o.ApplyT(func(v *Certificate) pulumi.StringArrayOutput { return v.HostNames }).(pulumi.StringArrayOutput) } // The ID of the App Service Environment where the certificate is in use. func (o CertificateOutput) HostingEnvironmentProfileId() pulumi.StringOutput { return o.ApplyT(func(v *Certificate) pulumi.StringOutput { return v.HostingEnvironmentProfileId }).(pulumi.StringOutput) } // The issue date for the certificate. func (o CertificateOutput) IssueDate() pulumi.StringOutput { return o.ApplyT(func(v *Certificate) pulumi.StringOutput { return v.IssueDate }).(pulumi.StringOutput) } // The name of the certificate issuer. func (o CertificateOutput) Issuer() pulumi.StringOutput { return o.ApplyT(func(v *Certificate) pulumi.StringOutput { return v.Issuer }).(pulumi.StringOutput) } func (o CertificateOutput) KeyVaultId() pulumi.StringPtrOutput { return o.ApplyT(func(v *Certificate) pulumi.StringPtrOutput { return v.KeyVaultId }).(pulumi.StringPtrOutput) } // The ID of the Key Vault secret. Changing this forces a new resource to be created. // // > **NOTE:** Exactly one of `keyVaultSecretId` or `pfxBlob` must be specified. func (o CertificateOutput) KeyVaultSecretId() pulumi.StringPtrOutput { return o.ApplyT(func(v *Certificate) pulumi.StringPtrOutput { return v.KeyVaultSecretId }).(pulumi.StringPtrOutput) } // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. func (o CertificateOutput) Location() pulumi.StringOutput { return o.ApplyT(func(v *Certificate) pulumi.StringOutput { return v.Location }).(pulumi.StringOutput) } // Specifies the name of the certificate. Changing this forces a new resource to be created. func (o CertificateOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *Certificate) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // The password to access the certificate's private key. Changing this forces a new resource to be created. func (o CertificateOutput) Password() pulumi.StringPtrOutput { return o.ApplyT(func(v *Certificate) pulumi.StringPtrOutput { return v.Password }).(pulumi.StringPtrOutput) } // The base64-encoded contents of the certificate. Changing this forces a new resource to be created. // // > **NOTE:** Exactly one of `keyVaultSecretId` or `pfxBlob` must be specified. func (o CertificateOutput) PfxBlob() pulumi.StringPtrOutput { return o.ApplyT(func(v *Certificate) pulumi.StringPtrOutput { return v.PfxBlob }).(pulumi.StringPtrOutput) } // The name of the resource group in which to create the certificate. Changing this forces a new resource to be created. // // > **NOTE:** The resource group must be the same as that which the app service plan is defined in - otherwise the certificate will not show as available for the app services. func (o CertificateOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v *Certificate) pulumi.StringOutput { return v.ResourceGroupName }).(pulumi.StringOutput) } // The subject name of the certificate. func (o CertificateOutput) SubjectName() pulumi.StringOutput { return o.ApplyT(func(v *Certificate) pulumi.StringOutput { return v.SubjectName }).(pulumi.StringOutput) } func (o CertificateOutput) Tags() pulumi.StringMapOutput { return o.ApplyT(func(v *Certificate) pulumi.StringMapOutput { return v.Tags }).(pulumi.StringMapOutput) } // The thumbprint for the certificate. func (o CertificateOutput) Thumbprint() pulumi.StringOutput { return o.ApplyT(func(v *Certificate) pulumi.StringOutput { return v.Thumbprint }).(pulumi.StringOutput) } type CertificateArrayOutput struct{ *pulumi.OutputState } func (CertificateArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*Certificate)(nil)).Elem() } func (o CertificateArrayOutput) ToCertificateArrayOutput() CertificateArrayOutput { return o } func (o CertificateArrayOutput) ToCertificateArrayOutputWithContext(ctx context.Context) CertificateArrayOutput { return o } func (o CertificateArrayOutput) Index(i pulumi.IntInput) CertificateOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *Certificate { return vs[0].([]*Certificate)[vs[1].(int)] }).(CertificateOutput) } type CertificateMapOutput struct{ *pulumi.OutputState } func (CertificateMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*Certificate)(nil)).Elem() } func (o CertificateMapOutput) ToCertificateMapOutput() CertificateMapOutput { return o } func (o CertificateMapOutput) ToCertificateMapOutputWithContext(ctx context.Context) CertificateMapOutput { return o } func (o CertificateMapOutput) MapIndex(k pulumi.StringInput) CertificateOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *Certificate { return vs[0].(map[string]*Certificate)[vs[1].(string)] }).(CertificateOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*CertificateInput)(nil)).Elem(), &Certificate{}) pulumi.RegisterInputType(reflect.TypeOf((*CertificateArrayInput)(nil)).Elem(), CertificateArray{}) pulumi.RegisterInputType(reflect.TypeOf((*CertificateMapInput)(nil)).Elem(), CertificateMap{}) pulumi.RegisterOutputType(CertificateOutput{}) pulumi.RegisterOutputType(CertificateArrayOutput{}) pulumi.RegisterOutputType(CertificateMapOutput{}) }
go
Apache-2.0
b66e1472775a89cca43f5050fef806854a7c3fa3
2026-01-07T09:44:27.619514Z
false
pulumi/pulumi-azure
https://github.com/pulumi/pulumi-azure/blob/b66e1472775a89cca43f5050fef806854a7c3fa3/sdk/go/azure/appservice/getAppService.go
sdk/go/azure/appservice/getAppService.go
// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package appservice import ( "context" "reflect" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Use this data source to access information about an existing App Service. // // !> **Note:** The `appservice.AppService` data source is deprecated in version 5.0 of the provider and will be removed in version 6.0. Please use the `appservice.LinuxWebApp` and `appservice.WindowsWebApp` data sources instead. // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/appservice" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { // example, err := appservice.LookupAppService(ctx, &appservice.LookupAppServiceArgs{ // Name: "search-app-service", // ResourceGroupName: "search-service", // }, nil) // if err != nil { // return err // } // ctx.Export("appServiceId", example.Id) // return nil // }) // } // // ``` func LookupAppService(ctx *pulumi.Context, args *LookupAppServiceArgs, opts ...pulumi.InvokeOption) (*LookupAppServiceResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupAppServiceResult err := ctx.Invoke("azure:appservice/getAppService:getAppService", args, &rv, opts...) if err != nil { return nil, err } return &rv, nil } // A collection of arguments for invoking getAppService. type LookupAppServiceArgs struct { // The name of the App Service. Name string `pulumi:"name"` // The Name of the Resource Group where the App Service exists. ResourceGroupName string `pulumi:"resourceGroupName"` } // A collection of values returned by getAppService. type LookupAppServiceResult struct { // The ID of the App Service Plan within which the App Service exists. AppServicePlanId string `pulumi:"appServicePlanId"` // A key-value pair of App Settings for the App Service. AppSettings map[string]string `pulumi:"appSettings"` // Does the App Service send session affinity cookies, which route client requests in the same session to the same instance? ClientAffinityEnabled bool `pulumi:"clientAffinityEnabled"` // Does the App Service require client certificates for incoming requests? ClientCertEnabled bool `pulumi:"clientCertEnabled"` // An `connectionString` block as defined below. ConnectionStrings []GetAppServiceConnectionString `pulumi:"connectionStrings"` // An identifier used by App Service to perform domain ownership verification via DNS TXT record. CustomDomainVerificationId string `pulumi:"customDomainVerificationId"` // The Default Hostname associated with the App Service - such as `mysite.azurewebsites.net` DefaultSiteHostname string `pulumi:"defaultSiteHostname"` // Is the App Service Enabled? Enabled bool `pulumi:"enabled"` // Can the App Service only be accessed via HTTPS? HttpsOnly bool `pulumi:"httpsOnly"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` // The Azure location where the App Service exists. Location string `pulumi:"location"` // The name for this IP Restriction. Name string `pulumi:"name"` // A list of outbound IP addresses - such as `["52.23.25.3", "52.143.43.12"]` OutboundIpAddressLists []string `pulumi:"outboundIpAddressLists"` // A comma separated list of outbound IP addresses - such as `52.23.25.3,52.143.43.12` OutboundIpAddresses string `pulumi:"outboundIpAddresses"` // A list of outbound IP addresses - such as `["52.23.25.3", "52.143.43.12", "52.143.43.17"]` - not all of which are necessarily in use. Superset of `outboundIpAddressList`. PossibleOutboundIpAddressLists []string `pulumi:"possibleOutboundIpAddressLists"` // A comma separated list of outbound IP addresses - such as `52.23.25.3,52.143.43.12,52.143.43.17` - not all of which are necessarily in use. Superset of `outboundIpAddresses`. PossibleOutboundIpAddresses string `pulumi:"possibleOutboundIpAddresses"` ResourceGroupName string `pulumi:"resourceGroupName"` // A `siteConfig` block as defined below. SiteConfigs []GetAppServiceSiteConfig `pulumi:"siteConfigs"` SiteCredentials []GetAppServiceSiteCredential `pulumi:"siteCredentials"` // A `sourceControl` block as defined below. SourceControls []GetAppServiceSourceControl `pulumi:"sourceControls"` // A mapping of tags to assign to the resource. Tags map[string]string `pulumi:"tags"` } func LookupAppServiceOutput(ctx *pulumi.Context, args LookupAppServiceOutputArgs, opts ...pulumi.InvokeOption) LookupAppServiceResultOutput { return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupAppServiceResultOutput, error) { args := v.(LookupAppServiceArgs) options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} return ctx.InvokeOutput("azure:appservice/getAppService:getAppService", args, LookupAppServiceResultOutput{}, options).(LookupAppServiceResultOutput), nil }).(LookupAppServiceResultOutput) } // A collection of arguments for invoking getAppService. type LookupAppServiceOutputArgs struct { // The name of the App Service. Name pulumi.StringInput `pulumi:"name"` // The Name of the Resource Group where the App Service exists. ResourceGroupName pulumi.StringInput `pulumi:"resourceGroupName"` } func (LookupAppServiceOutputArgs) ElementType() reflect.Type { return reflect.TypeOf((*LookupAppServiceArgs)(nil)).Elem() } // A collection of values returned by getAppService. type LookupAppServiceResultOutput struct{ *pulumi.OutputState } func (LookupAppServiceResultOutput) ElementType() reflect.Type { return reflect.TypeOf((*LookupAppServiceResult)(nil)).Elem() } func (o LookupAppServiceResultOutput) ToLookupAppServiceResultOutput() LookupAppServiceResultOutput { return o } func (o LookupAppServiceResultOutput) ToLookupAppServiceResultOutputWithContext(ctx context.Context) LookupAppServiceResultOutput { return o } // The ID of the App Service Plan within which the App Service exists. func (o LookupAppServiceResultOutput) AppServicePlanId() pulumi.StringOutput { return o.ApplyT(func(v LookupAppServiceResult) string { return v.AppServicePlanId }).(pulumi.StringOutput) } // A key-value pair of App Settings for the App Service. func (o LookupAppServiceResultOutput) AppSettings() pulumi.StringMapOutput { return o.ApplyT(func(v LookupAppServiceResult) map[string]string { return v.AppSettings }).(pulumi.StringMapOutput) } // Does the App Service send session affinity cookies, which route client requests in the same session to the same instance? func (o LookupAppServiceResultOutput) ClientAffinityEnabled() pulumi.BoolOutput { return o.ApplyT(func(v LookupAppServiceResult) bool { return v.ClientAffinityEnabled }).(pulumi.BoolOutput) } // Does the App Service require client certificates for incoming requests? func (o LookupAppServiceResultOutput) ClientCertEnabled() pulumi.BoolOutput { return o.ApplyT(func(v LookupAppServiceResult) bool { return v.ClientCertEnabled }).(pulumi.BoolOutput) } // An `connectionString` block as defined below. func (o LookupAppServiceResultOutput) ConnectionStrings() GetAppServiceConnectionStringArrayOutput { return o.ApplyT(func(v LookupAppServiceResult) []GetAppServiceConnectionString { return v.ConnectionStrings }).(GetAppServiceConnectionStringArrayOutput) } // An identifier used by App Service to perform domain ownership verification via DNS TXT record. func (o LookupAppServiceResultOutput) CustomDomainVerificationId() pulumi.StringOutput { return o.ApplyT(func(v LookupAppServiceResult) string { return v.CustomDomainVerificationId }).(pulumi.StringOutput) } // The Default Hostname associated with the App Service - such as `mysite.azurewebsites.net` func (o LookupAppServiceResultOutput) DefaultSiteHostname() pulumi.StringOutput { return o.ApplyT(func(v LookupAppServiceResult) string { return v.DefaultSiteHostname }).(pulumi.StringOutput) } // Is the App Service Enabled? func (o LookupAppServiceResultOutput) Enabled() pulumi.BoolOutput { return o.ApplyT(func(v LookupAppServiceResult) bool { return v.Enabled }).(pulumi.BoolOutput) } // Can the App Service only be accessed via HTTPS? func (o LookupAppServiceResultOutput) HttpsOnly() pulumi.BoolOutput { return o.ApplyT(func(v LookupAppServiceResult) bool { return v.HttpsOnly }).(pulumi.BoolOutput) } // The provider-assigned unique ID for this managed resource. func (o LookupAppServiceResultOutput) Id() pulumi.StringOutput { return o.ApplyT(func(v LookupAppServiceResult) string { return v.Id }).(pulumi.StringOutput) } // The Azure location where the App Service exists. func (o LookupAppServiceResultOutput) Location() pulumi.StringOutput { return o.ApplyT(func(v LookupAppServiceResult) string { return v.Location }).(pulumi.StringOutput) } // The name for this IP Restriction. func (o LookupAppServiceResultOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v LookupAppServiceResult) string { return v.Name }).(pulumi.StringOutput) } // A list of outbound IP addresses - such as `["52.23.25.3", "52.143.43.12"]` func (o LookupAppServiceResultOutput) OutboundIpAddressLists() pulumi.StringArrayOutput { return o.ApplyT(func(v LookupAppServiceResult) []string { return v.OutboundIpAddressLists }).(pulumi.StringArrayOutput) } // A comma separated list of outbound IP addresses - such as `52.23.25.3,52.143.43.12` func (o LookupAppServiceResultOutput) OutboundIpAddresses() pulumi.StringOutput { return o.ApplyT(func(v LookupAppServiceResult) string { return v.OutboundIpAddresses }).(pulumi.StringOutput) } // A list of outbound IP addresses - such as `["52.23.25.3", "52.143.43.12", "52.143.43.17"]` - not all of which are necessarily in use. Superset of `outboundIpAddressList`. func (o LookupAppServiceResultOutput) PossibleOutboundIpAddressLists() pulumi.StringArrayOutput { return o.ApplyT(func(v LookupAppServiceResult) []string { return v.PossibleOutboundIpAddressLists }).(pulumi.StringArrayOutput) } // A comma separated list of outbound IP addresses - such as `52.23.25.3,52.143.43.12,52.143.43.17` - not all of which are necessarily in use. Superset of `outboundIpAddresses`. func (o LookupAppServiceResultOutput) PossibleOutboundIpAddresses() pulumi.StringOutput { return o.ApplyT(func(v LookupAppServiceResult) string { return v.PossibleOutboundIpAddresses }).(pulumi.StringOutput) } func (o LookupAppServiceResultOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v LookupAppServiceResult) string { return v.ResourceGroupName }).(pulumi.StringOutput) } // A `siteConfig` block as defined below. func (o LookupAppServiceResultOutput) SiteConfigs() GetAppServiceSiteConfigArrayOutput { return o.ApplyT(func(v LookupAppServiceResult) []GetAppServiceSiteConfig { return v.SiteConfigs }).(GetAppServiceSiteConfigArrayOutput) } func (o LookupAppServiceResultOutput) SiteCredentials() GetAppServiceSiteCredentialArrayOutput { return o.ApplyT(func(v LookupAppServiceResult) []GetAppServiceSiteCredential { return v.SiteCredentials }).(GetAppServiceSiteCredentialArrayOutput) } // A `sourceControl` block as defined below. func (o LookupAppServiceResultOutput) SourceControls() GetAppServiceSourceControlArrayOutput { return o.ApplyT(func(v LookupAppServiceResult) []GetAppServiceSourceControl { return v.SourceControls }).(GetAppServiceSourceControlArrayOutput) } // A mapping of tags to assign to the resource. func (o LookupAppServiceResultOutput) Tags() pulumi.StringMapOutput { return o.ApplyT(func(v LookupAppServiceResult) map[string]string { return v.Tags }).(pulumi.StringMapOutput) } func init() { pulumi.RegisterOutputType(LookupAppServiceResultOutput{}) }
go
Apache-2.0
b66e1472775a89cca43f5050fef806854a7c3fa3
2026-01-07T09:44:27.619514Z
false
pulumi/pulumi-azure
https://github.com/pulumi/pulumi-azure/blob/b66e1472775a89cca43f5050fef806854a7c3fa3/sdk/go/azure/appservice/linuxWebApp.go
sdk/go/azure/appservice/linuxWebApp.go
// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package appservice import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a Linux Web App. // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/appservice" // "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-resources"), // Location: pulumi.String("West Europe"), // }) // if err != nil { // return err // } // exampleServicePlan, err := appservice.NewServicePlan(ctx, "example", &appservice.ServicePlanArgs{ // Name: pulumi.String("example"), // ResourceGroupName: example.Name, // Location: example.Location, // OsType: pulumi.String("Linux"), // SkuName: pulumi.String("P1v2"), // }) // if err != nil { // return err // } // _, err = appservice.NewLinuxWebApp(ctx, "example", &appservice.LinuxWebAppArgs{ // Name: pulumi.String("example"), // ResourceGroupName: example.Name, // Location: exampleServicePlan.Location, // ServicePlanId: exampleServicePlan.ID(), // SiteConfig: &appservice.LinuxWebAppSiteConfigArgs{}, // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## API Providers // // <!-- This section is generated, changes will be overwritten --> // This resource uses the following Azure API Providers: // // * `Microsoft.Web` - 2023-12-01, 2023-01-01 // // ## Import // // Linux Web Apps can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:appservice/linuxWebApp:LinuxWebApp example /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/resGroup1/providers/Microsoft.Web/sites/site1 // ``` type LinuxWebApp struct { pulumi.CustomResourceState // A map of key-value pairs of App Settings. AppSettings pulumi.StringMapOutput `pulumi:"appSettings"` // A `authSettings` block as defined below. AuthSettings LinuxWebAppAuthSettingsPtrOutput `pulumi:"authSettings"` // An `authSettingsV2` block as defined below. AuthSettingsV2 LinuxWebAppAuthSettingsV2PtrOutput `pulumi:"authSettingsV2"` // A `backup` block as defined below. Backup LinuxWebAppBackupPtrOutput `pulumi:"backup"` // Should Client Affinity be enabled? ClientAffinityEnabled pulumi.BoolPtrOutput `pulumi:"clientAffinityEnabled"` // Should Client Certificates be enabled? ClientCertificateEnabled pulumi.BoolPtrOutput `pulumi:"clientCertificateEnabled"` // Paths to exclude when using client certificates, separated by ; ClientCertificateExclusionPaths pulumi.StringPtrOutput `pulumi:"clientCertificateExclusionPaths"` // The Client Certificate mode. Possible values are `Required`, `Optional`, and `OptionalInteractiveUser`. This property has no effect when `clientCertificateEnabled` is `false`. Defaults to `Required`. ClientCertificateMode pulumi.StringPtrOutput `pulumi:"clientCertificateMode"` // One or more `connectionString` blocks as defined below. ConnectionStrings LinuxWebAppConnectionStringArrayOutput `pulumi:"connectionStrings"` // The identifier used by App Service to perform domain ownership verification via DNS TXT record. CustomDomainVerificationId pulumi.StringOutput `pulumi:"customDomainVerificationId"` // The default hostname of the Linux Web App. DefaultHostname pulumi.StringOutput `pulumi:"defaultHostname"` // Should the Linux Web App be enabled? Defaults to `true`. Enabled pulumi.BoolPtrOutput `pulumi:"enabled"` // Should the default FTP Basic Authentication publishing profile be enabled. Defaults to `true`. FtpPublishBasicAuthenticationEnabled pulumi.BoolPtrOutput `pulumi:"ftpPublishBasicAuthenticationEnabled"` // The ID of the App Service Environment used by App Service. HostingEnvironmentId pulumi.StringOutput `pulumi:"hostingEnvironmentId"` // Should the Linux Web App require HTTPS connections. Defaults to `false`. HttpsOnly pulumi.BoolPtrOutput `pulumi:"httpsOnly"` // An `identity` block as defined below. Identity LinuxWebAppIdentityPtrOutput `pulumi:"identity"` // The User Assigned Identity ID used for accessing KeyVault secrets. The identity must be assigned to the application in the `identity` block. [For more information see - Access vaults with a user-assigned identity](https://docs.microsoft.com/azure/app-service/app-service-key-vault-references#access-vaults-with-a-user-assigned-identity). KeyVaultReferenceIdentityId pulumi.StringOutput `pulumi:"keyVaultReferenceIdentityId"` // The Kind value for this Linux Web App. Kind pulumi.StringOutput `pulumi:"kind"` // The Azure Region where the Linux Web App should exist. Changing this forces a new Linux Web App to be created. Location pulumi.StringOutput `pulumi:"location"` // A `logs` block as defined below. Logs LinuxWebAppLogsPtrOutput `pulumi:"logs"` Name pulumi.StringOutput `pulumi:"name"` // A list of outbound IP addresses - such as `["52.23.25.3", "52.143.43.12"]` OutboundIpAddressLists pulumi.StringArrayOutput `pulumi:"outboundIpAddressLists"` // A comma separated list of outbound IP addresses - such as `52.23.25.3,52.143.43.12`. OutboundIpAddresses pulumi.StringOutput `pulumi:"outboundIpAddresses"` // A list of possible outbound ip address. PossibleOutboundIpAddressLists pulumi.StringArrayOutput `pulumi:"possibleOutboundIpAddressLists"` // A comma-separated list of outbound IP addresses - such as `52.23.25.3,52.143.43.12,52.143.43.17` - not all of which are necessarily in use. Superset of `outboundIpAddresses`. PossibleOutboundIpAddresses pulumi.StringOutput `pulumi:"possibleOutboundIpAddresses"` // Should public network access be enabled for the Web App. Defaults to `true`. PublicNetworkAccessEnabled pulumi.BoolPtrOutput `pulumi:"publicNetworkAccessEnabled"` // The name of the Resource Group where the Linux Web App should exist. Changing this forces a new Linux Web App to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // The ID of the Service Plan that this Linux App Service will be created in. ServicePlanId pulumi.StringOutput `pulumi:"servicePlanId"` // A `siteConfig` block as defined below. SiteConfig LinuxWebAppSiteConfigOutput `pulumi:"siteConfig"` // A `siteCredential` block as defined below. SiteCredentials LinuxWebAppSiteCredentialArrayOutput `pulumi:"siteCredentials"` // A `stickySettings` block as defined below. StickySettings LinuxWebAppStickySettingsPtrOutput `pulumi:"stickySettings"` // One or more `storageAccount` blocks as defined below. StorageAccounts LinuxWebAppStorageAccountArrayOutput `pulumi:"storageAccounts"` // A mapping of tags which should be assigned to the Linux Web App. Tags pulumi.StringMapOutput `pulumi:"tags"` // Whether backup and restore operations over the linked virtual network are enabled. Defaults to `false`. VirtualNetworkBackupRestoreEnabled pulumi.BoolPtrOutput `pulumi:"virtualNetworkBackupRestoreEnabled"` VirtualNetworkSubnetId pulumi.StringPtrOutput `pulumi:"virtualNetworkSubnetId"` // Should the traffic for the image pull be routed over virtual network enabled. Defaults to `false`. // // > **Note:** The feature can also be enabled via the app setting `WEBSITE_PULL_IMAGE_OVER_VNET`. Must be set to `true` when running in an App Service Environment. VnetImagePullEnabled pulumi.BoolPtrOutput `pulumi:"vnetImagePullEnabled"` // Should the default WebDeploy Basic Authentication publishing credentials enabled. Defaults to `true`. // // > **Note:** Setting this value to true will disable the ability to use `zipDeployFile` which currently relies on the default publishing profile. WebdeployPublishBasicAuthenticationEnabled pulumi.BoolPtrOutput `pulumi:"webdeployPublishBasicAuthenticationEnabled"` // The local path and filename of the Zip packaged application to deploy to this Linux Web App. // // > **Note:** Using this value requires either `WEBSITE_RUN_FROM_PACKAGE=1` or `SCM_DO_BUILD_DURING_DEPLOYMENT=true` to be set on the App in `appSettings`. Refer to the Azure docs on [running the Web App directly from the Zip package](https://learn.microsoft.com/en-us/azure/app-service/deploy-run-package), or [automating the build for Zip deploy](https://learn.microsoft.com/en-us/azure/app-service/deploy-zip#enable-build-automation-for-zip-deploy) for further details. ZipDeployFile pulumi.StringOutput `pulumi:"zipDeployFile"` } // NewLinuxWebApp registers a new resource with the given unique name, arguments, and options. func NewLinuxWebApp(ctx *pulumi.Context, name string, args *LinuxWebAppArgs, opts ...pulumi.ResourceOption) (*LinuxWebApp, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.ResourceGroupName == nil { return nil, errors.New("invalid value for required argument 'ResourceGroupName'") } if args.ServicePlanId == nil { return nil, errors.New("invalid value for required argument 'ServicePlanId'") } if args.SiteConfig == nil { return nil, errors.New("invalid value for required argument 'SiteConfig'") } secrets := pulumi.AdditionalSecretOutputs([]string{ "customDomainVerificationId", "siteCredentials", }) opts = append(opts, secrets) opts = internal.PkgResourceDefaultOpts(opts) var resource LinuxWebApp err := ctx.RegisterResource("azure:appservice/linuxWebApp:LinuxWebApp", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetLinuxWebApp gets an existing LinuxWebApp 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 GetLinuxWebApp(ctx *pulumi.Context, name string, id pulumi.IDInput, state *LinuxWebAppState, opts ...pulumi.ResourceOption) (*LinuxWebApp, error) { var resource LinuxWebApp err := ctx.ReadResource("azure:appservice/linuxWebApp:LinuxWebApp", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering LinuxWebApp resources. type linuxWebAppState struct { // A map of key-value pairs of App Settings. AppSettings map[string]string `pulumi:"appSettings"` // A `authSettings` block as defined below. AuthSettings *LinuxWebAppAuthSettings `pulumi:"authSettings"` // An `authSettingsV2` block as defined below. AuthSettingsV2 *LinuxWebAppAuthSettingsV2 `pulumi:"authSettingsV2"` // A `backup` block as defined below. Backup *LinuxWebAppBackup `pulumi:"backup"` // Should Client Affinity be enabled? ClientAffinityEnabled *bool `pulumi:"clientAffinityEnabled"` // Should Client Certificates be enabled? ClientCertificateEnabled *bool `pulumi:"clientCertificateEnabled"` // Paths to exclude when using client certificates, separated by ; ClientCertificateExclusionPaths *string `pulumi:"clientCertificateExclusionPaths"` // The Client Certificate mode. Possible values are `Required`, `Optional`, and `OptionalInteractiveUser`. This property has no effect when `clientCertificateEnabled` is `false`. Defaults to `Required`. ClientCertificateMode *string `pulumi:"clientCertificateMode"` // One or more `connectionString` blocks as defined below. ConnectionStrings []LinuxWebAppConnectionString `pulumi:"connectionStrings"` // The identifier used by App Service to perform domain ownership verification via DNS TXT record. CustomDomainVerificationId *string `pulumi:"customDomainVerificationId"` // The default hostname of the Linux Web App. DefaultHostname *string `pulumi:"defaultHostname"` // Should the Linux Web App be enabled? Defaults to `true`. Enabled *bool `pulumi:"enabled"` // Should the default FTP Basic Authentication publishing profile be enabled. Defaults to `true`. FtpPublishBasicAuthenticationEnabled *bool `pulumi:"ftpPublishBasicAuthenticationEnabled"` // The ID of the App Service Environment used by App Service. HostingEnvironmentId *string `pulumi:"hostingEnvironmentId"` // Should the Linux Web App require HTTPS connections. Defaults to `false`. HttpsOnly *bool `pulumi:"httpsOnly"` // An `identity` block as defined below. Identity *LinuxWebAppIdentity `pulumi:"identity"` // The User Assigned Identity ID used for accessing KeyVault secrets. The identity must be assigned to the application in the `identity` block. [For more information see - Access vaults with a user-assigned identity](https://docs.microsoft.com/azure/app-service/app-service-key-vault-references#access-vaults-with-a-user-assigned-identity). KeyVaultReferenceIdentityId *string `pulumi:"keyVaultReferenceIdentityId"` // The Kind value for this Linux Web App. Kind *string `pulumi:"kind"` // The Azure Region where the Linux Web App should exist. Changing this forces a new Linux Web App to be created. Location *string `pulumi:"location"` // A `logs` block as defined below. Logs *LinuxWebAppLogs `pulumi:"logs"` Name *string `pulumi:"name"` // A list of outbound IP addresses - such as `["52.23.25.3", "52.143.43.12"]` OutboundIpAddressLists []string `pulumi:"outboundIpAddressLists"` // A comma separated list of outbound IP addresses - such as `52.23.25.3,52.143.43.12`. OutboundIpAddresses *string `pulumi:"outboundIpAddresses"` // A list of possible outbound ip address. PossibleOutboundIpAddressLists []string `pulumi:"possibleOutboundIpAddressLists"` // A comma-separated list of outbound IP addresses - such as `52.23.25.3,52.143.43.12,52.143.43.17` - not all of which are necessarily in use. Superset of `outboundIpAddresses`. PossibleOutboundIpAddresses *string `pulumi:"possibleOutboundIpAddresses"` // Should public network access be enabled for the Web App. Defaults to `true`. PublicNetworkAccessEnabled *bool `pulumi:"publicNetworkAccessEnabled"` // The name of the Resource Group where the Linux Web App should exist. Changing this forces a new Linux Web App to be created. ResourceGroupName *string `pulumi:"resourceGroupName"` // The ID of the Service Plan that this Linux App Service will be created in. ServicePlanId *string `pulumi:"servicePlanId"` // A `siteConfig` block as defined below. SiteConfig *LinuxWebAppSiteConfig `pulumi:"siteConfig"` // A `siteCredential` block as defined below. SiteCredentials []LinuxWebAppSiteCredential `pulumi:"siteCredentials"` // A `stickySettings` block as defined below. StickySettings *LinuxWebAppStickySettings `pulumi:"stickySettings"` // One or more `storageAccount` blocks as defined below. StorageAccounts []LinuxWebAppStorageAccount `pulumi:"storageAccounts"` // A mapping of tags which should be assigned to the Linux Web App. Tags map[string]string `pulumi:"tags"` // Whether backup and restore operations over the linked virtual network are enabled. Defaults to `false`. VirtualNetworkBackupRestoreEnabled *bool `pulumi:"virtualNetworkBackupRestoreEnabled"` VirtualNetworkSubnetId *string `pulumi:"virtualNetworkSubnetId"` // Should the traffic for the image pull be routed over virtual network enabled. Defaults to `false`. // // > **Note:** The feature can also be enabled via the app setting `WEBSITE_PULL_IMAGE_OVER_VNET`. Must be set to `true` when running in an App Service Environment. VnetImagePullEnabled *bool `pulumi:"vnetImagePullEnabled"` // Should the default WebDeploy Basic Authentication publishing credentials enabled. Defaults to `true`. // // > **Note:** Setting this value to true will disable the ability to use `zipDeployFile` which currently relies on the default publishing profile. WebdeployPublishBasicAuthenticationEnabled *bool `pulumi:"webdeployPublishBasicAuthenticationEnabled"` // The local path and filename of the Zip packaged application to deploy to this Linux Web App. // // > **Note:** Using this value requires either `WEBSITE_RUN_FROM_PACKAGE=1` or `SCM_DO_BUILD_DURING_DEPLOYMENT=true` to be set on the App in `appSettings`. Refer to the Azure docs on [running the Web App directly from the Zip package](https://learn.microsoft.com/en-us/azure/app-service/deploy-run-package), or [automating the build for Zip deploy](https://learn.microsoft.com/en-us/azure/app-service/deploy-zip#enable-build-automation-for-zip-deploy) for further details. ZipDeployFile *string `pulumi:"zipDeployFile"` } type LinuxWebAppState struct { // A map of key-value pairs of App Settings. AppSettings pulumi.StringMapInput // A `authSettings` block as defined below. AuthSettings LinuxWebAppAuthSettingsPtrInput // An `authSettingsV2` block as defined below. AuthSettingsV2 LinuxWebAppAuthSettingsV2PtrInput // A `backup` block as defined below. Backup LinuxWebAppBackupPtrInput // Should Client Affinity be enabled? ClientAffinityEnabled pulumi.BoolPtrInput // Should Client Certificates be enabled? ClientCertificateEnabled pulumi.BoolPtrInput // Paths to exclude when using client certificates, separated by ; ClientCertificateExclusionPaths pulumi.StringPtrInput // The Client Certificate mode. Possible values are `Required`, `Optional`, and `OptionalInteractiveUser`. This property has no effect when `clientCertificateEnabled` is `false`. Defaults to `Required`. ClientCertificateMode pulumi.StringPtrInput // One or more `connectionString` blocks as defined below. ConnectionStrings LinuxWebAppConnectionStringArrayInput // The identifier used by App Service to perform domain ownership verification via DNS TXT record. CustomDomainVerificationId pulumi.StringPtrInput // The default hostname of the Linux Web App. DefaultHostname pulumi.StringPtrInput // Should the Linux Web App be enabled? Defaults to `true`. Enabled pulumi.BoolPtrInput // Should the default FTP Basic Authentication publishing profile be enabled. Defaults to `true`. FtpPublishBasicAuthenticationEnabled pulumi.BoolPtrInput // The ID of the App Service Environment used by App Service. HostingEnvironmentId pulumi.StringPtrInput // Should the Linux Web App require HTTPS connections. Defaults to `false`. HttpsOnly pulumi.BoolPtrInput // An `identity` block as defined below. Identity LinuxWebAppIdentityPtrInput // The User Assigned Identity ID used for accessing KeyVault secrets. The identity must be assigned to the application in the `identity` block. [For more information see - Access vaults with a user-assigned identity](https://docs.microsoft.com/azure/app-service/app-service-key-vault-references#access-vaults-with-a-user-assigned-identity). KeyVaultReferenceIdentityId pulumi.StringPtrInput // The Kind value for this Linux Web App. Kind pulumi.StringPtrInput // The Azure Region where the Linux Web App should exist. Changing this forces a new Linux Web App to be created. Location pulumi.StringPtrInput // A `logs` block as defined below. Logs LinuxWebAppLogsPtrInput Name pulumi.StringPtrInput // A list of outbound IP addresses - such as `["52.23.25.3", "52.143.43.12"]` OutboundIpAddressLists pulumi.StringArrayInput // A comma separated list of outbound IP addresses - such as `52.23.25.3,52.143.43.12`. OutboundIpAddresses pulumi.StringPtrInput // A list of possible outbound ip address. PossibleOutboundIpAddressLists pulumi.StringArrayInput // A comma-separated list of outbound IP addresses - such as `52.23.25.3,52.143.43.12,52.143.43.17` - not all of which are necessarily in use. Superset of `outboundIpAddresses`. PossibleOutboundIpAddresses pulumi.StringPtrInput // Should public network access be enabled for the Web App. Defaults to `true`. PublicNetworkAccessEnabled pulumi.BoolPtrInput // The name of the Resource Group where the Linux Web App should exist. Changing this forces a new Linux Web App to be created. ResourceGroupName pulumi.StringPtrInput // The ID of the Service Plan that this Linux App Service will be created in. ServicePlanId pulumi.StringPtrInput // A `siteConfig` block as defined below. SiteConfig LinuxWebAppSiteConfigPtrInput // A `siteCredential` block as defined below. SiteCredentials LinuxWebAppSiteCredentialArrayInput // A `stickySettings` block as defined below. StickySettings LinuxWebAppStickySettingsPtrInput // One or more `storageAccount` blocks as defined below. StorageAccounts LinuxWebAppStorageAccountArrayInput // A mapping of tags which should be assigned to the Linux Web App. Tags pulumi.StringMapInput // Whether backup and restore operations over the linked virtual network are enabled. Defaults to `false`. VirtualNetworkBackupRestoreEnabled pulumi.BoolPtrInput VirtualNetworkSubnetId pulumi.StringPtrInput // Should the traffic for the image pull be routed over virtual network enabled. Defaults to `false`. // // > **Note:** The feature can also be enabled via the app setting `WEBSITE_PULL_IMAGE_OVER_VNET`. Must be set to `true` when running in an App Service Environment. VnetImagePullEnabled pulumi.BoolPtrInput // Should the default WebDeploy Basic Authentication publishing credentials enabled. Defaults to `true`. // // > **Note:** Setting this value to true will disable the ability to use `zipDeployFile` which currently relies on the default publishing profile. WebdeployPublishBasicAuthenticationEnabled pulumi.BoolPtrInput // The local path and filename of the Zip packaged application to deploy to this Linux Web App. // // > **Note:** Using this value requires either `WEBSITE_RUN_FROM_PACKAGE=1` or `SCM_DO_BUILD_DURING_DEPLOYMENT=true` to be set on the App in `appSettings`. Refer to the Azure docs on [running the Web App directly from the Zip package](https://learn.microsoft.com/en-us/azure/app-service/deploy-run-package), or [automating the build for Zip deploy](https://learn.microsoft.com/en-us/azure/app-service/deploy-zip#enable-build-automation-for-zip-deploy) for further details. ZipDeployFile pulumi.StringPtrInput } func (LinuxWebAppState) ElementType() reflect.Type { return reflect.TypeOf((*linuxWebAppState)(nil)).Elem() } type linuxWebAppArgs struct { // A map of key-value pairs of App Settings. AppSettings map[string]string `pulumi:"appSettings"` // A `authSettings` block as defined below. AuthSettings *LinuxWebAppAuthSettings `pulumi:"authSettings"` // An `authSettingsV2` block as defined below. AuthSettingsV2 *LinuxWebAppAuthSettingsV2 `pulumi:"authSettingsV2"` // A `backup` block as defined below. Backup *LinuxWebAppBackup `pulumi:"backup"` // Should Client Affinity be enabled? ClientAffinityEnabled *bool `pulumi:"clientAffinityEnabled"` // Should Client Certificates be enabled? ClientCertificateEnabled *bool `pulumi:"clientCertificateEnabled"` // Paths to exclude when using client certificates, separated by ; ClientCertificateExclusionPaths *string `pulumi:"clientCertificateExclusionPaths"` // The Client Certificate mode. Possible values are `Required`, `Optional`, and `OptionalInteractiveUser`. This property has no effect when `clientCertificateEnabled` is `false`. Defaults to `Required`. ClientCertificateMode *string `pulumi:"clientCertificateMode"` // One or more `connectionString` blocks as defined below. ConnectionStrings []LinuxWebAppConnectionString `pulumi:"connectionStrings"` // Should the Linux Web App be enabled? Defaults to `true`. Enabled *bool `pulumi:"enabled"` // Should the default FTP Basic Authentication publishing profile be enabled. Defaults to `true`. FtpPublishBasicAuthenticationEnabled *bool `pulumi:"ftpPublishBasicAuthenticationEnabled"` // Should the Linux Web App require HTTPS connections. Defaults to `false`. HttpsOnly *bool `pulumi:"httpsOnly"` // An `identity` block as defined below. Identity *LinuxWebAppIdentity `pulumi:"identity"` // The User Assigned Identity ID used for accessing KeyVault secrets. The identity must be assigned to the application in the `identity` block. [For more information see - Access vaults with a user-assigned identity](https://docs.microsoft.com/azure/app-service/app-service-key-vault-references#access-vaults-with-a-user-assigned-identity). KeyVaultReferenceIdentityId *string `pulumi:"keyVaultReferenceIdentityId"` // The Azure Region where the Linux Web App should exist. Changing this forces a new Linux Web App to be created. Location *string `pulumi:"location"` // A `logs` block as defined below. Logs *LinuxWebAppLogs `pulumi:"logs"` Name *string `pulumi:"name"` // Should public network access be enabled for the Web App. Defaults to `true`. PublicNetworkAccessEnabled *bool `pulumi:"publicNetworkAccessEnabled"` // The name of the Resource Group where the Linux Web App should exist. Changing this forces a new Linux Web App to be created. ResourceGroupName string `pulumi:"resourceGroupName"` // The ID of the Service Plan that this Linux App Service will be created in. ServicePlanId string `pulumi:"servicePlanId"` // A `siteConfig` block as defined below. SiteConfig LinuxWebAppSiteConfig `pulumi:"siteConfig"` // A `stickySettings` block as defined below. StickySettings *LinuxWebAppStickySettings `pulumi:"stickySettings"` // One or more `storageAccount` blocks as defined below. StorageAccounts []LinuxWebAppStorageAccount `pulumi:"storageAccounts"` // A mapping of tags which should be assigned to the Linux Web App. Tags map[string]string `pulumi:"tags"` // Whether backup and restore operations over the linked virtual network are enabled. Defaults to `false`. VirtualNetworkBackupRestoreEnabled *bool `pulumi:"virtualNetworkBackupRestoreEnabled"` VirtualNetworkSubnetId *string `pulumi:"virtualNetworkSubnetId"` // Should the traffic for the image pull be routed over virtual network enabled. Defaults to `false`. // // > **Note:** The feature can also be enabled via the app setting `WEBSITE_PULL_IMAGE_OVER_VNET`. Must be set to `true` when running in an App Service Environment. VnetImagePullEnabled *bool `pulumi:"vnetImagePullEnabled"` // Should the default WebDeploy Basic Authentication publishing credentials enabled. Defaults to `true`. // // > **Note:** Setting this value to true will disable the ability to use `zipDeployFile` which currently relies on the default publishing profile. WebdeployPublishBasicAuthenticationEnabled *bool `pulumi:"webdeployPublishBasicAuthenticationEnabled"` // The local path and filename of the Zip packaged application to deploy to this Linux Web App. // // > **Note:** Using this value requires either `WEBSITE_RUN_FROM_PACKAGE=1` or `SCM_DO_BUILD_DURING_DEPLOYMENT=true` to be set on the App in `appSettings`. Refer to the Azure docs on [running the Web App directly from the Zip package](https://learn.microsoft.com/en-us/azure/app-service/deploy-run-package), or [automating the build for Zip deploy](https://learn.microsoft.com/en-us/azure/app-service/deploy-zip#enable-build-automation-for-zip-deploy) for further details. ZipDeployFile *string `pulumi:"zipDeployFile"` } // The set of arguments for constructing a LinuxWebApp resource. type LinuxWebAppArgs struct { // A map of key-value pairs of App Settings. AppSettings pulumi.StringMapInput // A `authSettings` block as defined below. AuthSettings LinuxWebAppAuthSettingsPtrInput // An `authSettingsV2` block as defined below. AuthSettingsV2 LinuxWebAppAuthSettingsV2PtrInput // A `backup` block as defined below. Backup LinuxWebAppBackupPtrInput // Should Client Affinity be enabled? ClientAffinityEnabled pulumi.BoolPtrInput // Should Client Certificates be enabled? ClientCertificateEnabled pulumi.BoolPtrInput // Paths to exclude when using client certificates, separated by ; ClientCertificateExclusionPaths pulumi.StringPtrInput // The Client Certificate mode. Possible values are `Required`, `Optional`, and `OptionalInteractiveUser`. This property has no effect when `clientCertificateEnabled` is `false`. Defaults to `Required`. ClientCertificateMode pulumi.StringPtrInput // One or more `connectionString` blocks as defined below. ConnectionStrings LinuxWebAppConnectionStringArrayInput // Should the Linux Web App be enabled? Defaults to `true`. Enabled pulumi.BoolPtrInput // Should the default FTP Basic Authentication publishing profile be enabled. Defaults to `true`. FtpPublishBasicAuthenticationEnabled pulumi.BoolPtrInput // Should the Linux Web App require HTTPS connections. Defaults to `false`. HttpsOnly pulumi.BoolPtrInput // An `identity` block as defined below. Identity LinuxWebAppIdentityPtrInput // The User Assigned Identity ID used for accessing KeyVault secrets. The identity must be assigned to the application in the `identity` block. [For more information see - Access vaults with a user-assigned identity](https://docs.microsoft.com/azure/app-service/app-service-key-vault-references#access-vaults-with-a-user-assigned-identity). KeyVaultReferenceIdentityId pulumi.StringPtrInput // The Azure Region where the Linux Web App should exist. Changing this forces a new Linux Web App to be created. Location pulumi.StringPtrInput // A `logs` block as defined below. Logs LinuxWebAppLogsPtrInput Name pulumi.StringPtrInput // Should public network access be enabled for the Web App. Defaults to `true`. PublicNetworkAccessEnabled pulumi.BoolPtrInput // The name of the Resource Group where the Linux Web App should exist. Changing this forces a new Linux Web App to be created. ResourceGroupName pulumi.StringInput // The ID of the Service Plan that this Linux App Service will be created in. ServicePlanId pulumi.StringInput // A `siteConfig` block as defined below. SiteConfig LinuxWebAppSiteConfigInput // A `stickySettings` block as defined below. StickySettings LinuxWebAppStickySettingsPtrInput // One or more `storageAccount` blocks as defined below. StorageAccounts LinuxWebAppStorageAccountArrayInput // A mapping of tags which should be assigned to the Linux Web App. Tags pulumi.StringMapInput // Whether backup and restore operations over the linked virtual network are enabled. Defaults to `false`. VirtualNetworkBackupRestoreEnabled pulumi.BoolPtrInput VirtualNetworkSubnetId pulumi.StringPtrInput // Should the traffic for the image pull be routed over virtual network enabled. Defaults to `false`. // // > **Note:** The feature can also be enabled via the app setting `WEBSITE_PULL_IMAGE_OVER_VNET`. Must be set to `true` when running in an App Service Environment. VnetImagePullEnabled pulumi.BoolPtrInput // Should the default WebDeploy Basic Authentication publishing credentials enabled. Defaults to `true`. // // > **Note:** Setting this value to true will disable the ability to use `zipDeployFile` which currently relies on the default publishing profile. WebdeployPublishBasicAuthenticationEnabled pulumi.BoolPtrInput // The local path and filename of the Zip packaged application to deploy to this Linux Web App. // // > **Note:** Using this value requires either `WEBSITE_RUN_FROM_PACKAGE=1` or `SCM_DO_BUILD_DURING_DEPLOYMENT=true` to be set on the App in `appSettings`. Refer to the Azure docs on [running the Web App directly from the Zip package](https://learn.microsoft.com/en-us/azure/app-service/deploy-run-package), or [automating the build for Zip deploy](https://learn.microsoft.com/en-us/azure/app-service/deploy-zip#enable-build-automation-for-zip-deploy) for further details. ZipDeployFile pulumi.StringPtrInput } func (LinuxWebAppArgs) ElementType() reflect.Type { return reflect.TypeOf((*linuxWebAppArgs)(nil)).Elem() } type LinuxWebAppInput interface { pulumi.Input ToLinuxWebAppOutput() LinuxWebAppOutput ToLinuxWebAppOutputWithContext(ctx context.Context) LinuxWebAppOutput } func (*LinuxWebApp) ElementType() reflect.Type { return reflect.TypeOf((**LinuxWebApp)(nil)).Elem() } func (i *LinuxWebApp) ToLinuxWebAppOutput() LinuxWebAppOutput { return i.ToLinuxWebAppOutputWithContext(context.Background()) } func (i *LinuxWebApp) ToLinuxWebAppOutputWithContext(ctx context.Context) LinuxWebAppOutput { return pulumi.ToOutputWithContext(ctx, i).(LinuxWebAppOutput) } // LinuxWebAppArrayInput is an input type that accepts LinuxWebAppArray and LinuxWebAppArrayOutput values. // You can construct a concrete instance of `LinuxWebAppArrayInput` via: // // LinuxWebAppArray{ LinuxWebAppArgs{...} } type LinuxWebAppArrayInput interface { pulumi.Input ToLinuxWebAppArrayOutput() LinuxWebAppArrayOutput ToLinuxWebAppArrayOutputWithContext(context.Context) LinuxWebAppArrayOutput } type LinuxWebAppArray []LinuxWebAppInput
go
Apache-2.0
b66e1472775a89cca43f5050fef806854a7c3fa3
2026-01-07T09:44:27.619514Z
true
pulumi/pulumi-azure
https://github.com/pulumi/pulumi-azure/blob/b66e1472775a89cca43f5050fef806854a7c3fa3/sdk/go/azure/appservice/staticWebAppFunctionAppRegistration.go
sdk/go/azure/appservice/staticWebAppFunctionAppRegistration.go
// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package appservice import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages an App Service Static Web App Function App Registration. // // > **Note:** This resource registers the specified Function App to the `Production` build of the Static Web App. // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/appservice" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/storage" // "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-resources"), // Location: pulumi.String("West Europe"), // }) // if err != nil { // return err // } // exampleStaticWebApp, err := appservice.NewStaticWebApp(ctx, "example", &appservice.StaticWebAppArgs{ // Name: pulumi.String("example"), // ResourceGroupName: example.Name, // Location: example.Location, // }) // if err != nil { // return err // } // exampleAccount, err := storage.NewAccount(ctx, "example", &storage.AccountArgs{ // Name: pulumi.String("examplesstorageacc"), // ResourceGroupName: example.Name, // Location: example.Location, // AccountTier: pulumi.String("Standard"), // AccountReplicationType: pulumi.String("LRS"), // }) // if err != nil { // return err // } // exampleServicePlan, err := appservice.NewServicePlan(ctx, "example", &appservice.ServicePlanArgs{ // Name: pulumi.String("example-service-plan"), // Location: example.Location, // ResourceGroupName: example.Name, // OsType: pulumi.String("Linux"), // SkuName: pulumi.String("S1"), // }) // if err != nil { // return err // } // exampleLinuxFunctionApp, err := appservice.NewLinuxFunctionApp(ctx, "example", &appservice.LinuxFunctionAppArgs{ // Name: pulumi.String("example-function-app"), // Location: example.Location, // ResourceGroupName: example.Name, // ServicePlanId: exampleServicePlan.ID(), // StorageAccountName: exampleAccount.Name, // StorageAccountAccessKey: exampleAccount.PrimaryAccessKey, // SiteConfig: &appservice.LinuxFunctionAppSiteConfigArgs{}, // }) // if err != nil { // return err // } // _, err = appservice.NewStaticWebAppFunctionAppRegistration(ctx, "example", &appservice.StaticWebAppFunctionAppRegistrationArgs{ // StaticWebAppId: exampleStaticWebApp.ID(), // FunctionAppId: exampleLinuxFunctionApp.ID(), // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## API Providers // // <!-- This section is generated, changes will be overwritten --> // This resource uses the following Azure API Providers: // // * `Microsoft.Web` - 2023-12-01, 2023-01-01 // // ## Import // // Static Web App Function App Registration can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:appservice/staticWebAppFunctionAppRegistration:StaticWebAppFunctionAppRegistration example /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/group1/providers/Microsoft.Web/staticSites/my-static-site1/userProvidedFunctionApps/myFunctionApp // ``` type StaticWebAppFunctionAppRegistration struct { pulumi.CustomResourceState // The ID of a Linux or Windows Function App to connect to the Static Web App as a Backend. Changing this forces a new resource to be created. // // > **Note:** Only one Function App can be connected to a Static Web App. Multiple Function Apps are not currently supported. // // > **Note:** Connecting a Function App resource to a Static Web App resource updates the Function App to use AuthV2 and configures the `azureStaticWebAppV2` which may need to be accounted for by the use of `ignoreChanges` depending on the existing `authSettingsV2` configuration of the target Function App. FunctionAppId pulumi.StringOutput `pulumi:"functionAppId"` // The ID of the Static Web App to register the Function App to as a backend. Changing this forces a new resource to be created. StaticWebAppId pulumi.StringOutput `pulumi:"staticWebAppId"` } // NewStaticWebAppFunctionAppRegistration registers a new resource with the given unique name, arguments, and options. func NewStaticWebAppFunctionAppRegistration(ctx *pulumi.Context, name string, args *StaticWebAppFunctionAppRegistrationArgs, opts ...pulumi.ResourceOption) (*StaticWebAppFunctionAppRegistration, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.FunctionAppId == nil { return nil, errors.New("invalid value for required argument 'FunctionAppId'") } if args.StaticWebAppId == nil { return nil, errors.New("invalid value for required argument 'StaticWebAppId'") } opts = internal.PkgResourceDefaultOpts(opts) var resource StaticWebAppFunctionAppRegistration err := ctx.RegisterResource("azure:appservice/staticWebAppFunctionAppRegistration:StaticWebAppFunctionAppRegistration", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetStaticWebAppFunctionAppRegistration gets an existing StaticWebAppFunctionAppRegistration 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 GetStaticWebAppFunctionAppRegistration(ctx *pulumi.Context, name string, id pulumi.IDInput, state *StaticWebAppFunctionAppRegistrationState, opts ...pulumi.ResourceOption) (*StaticWebAppFunctionAppRegistration, error) { var resource StaticWebAppFunctionAppRegistration err := ctx.ReadResource("azure:appservice/staticWebAppFunctionAppRegistration:StaticWebAppFunctionAppRegistration", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering StaticWebAppFunctionAppRegistration resources. type staticWebAppFunctionAppRegistrationState struct { // The ID of a Linux or Windows Function App to connect to the Static Web App as a Backend. Changing this forces a new resource to be created. // // > **Note:** Only one Function App can be connected to a Static Web App. Multiple Function Apps are not currently supported. // // > **Note:** Connecting a Function App resource to a Static Web App resource updates the Function App to use AuthV2 and configures the `azureStaticWebAppV2` which may need to be accounted for by the use of `ignoreChanges` depending on the existing `authSettingsV2` configuration of the target Function App. FunctionAppId *string `pulumi:"functionAppId"` // The ID of the Static Web App to register the Function App to as a backend. Changing this forces a new resource to be created. StaticWebAppId *string `pulumi:"staticWebAppId"` } type StaticWebAppFunctionAppRegistrationState struct { // The ID of a Linux or Windows Function App to connect to the Static Web App as a Backend. Changing this forces a new resource to be created. // // > **Note:** Only one Function App can be connected to a Static Web App. Multiple Function Apps are not currently supported. // // > **Note:** Connecting a Function App resource to a Static Web App resource updates the Function App to use AuthV2 and configures the `azureStaticWebAppV2` which may need to be accounted for by the use of `ignoreChanges` depending on the existing `authSettingsV2` configuration of the target Function App. FunctionAppId pulumi.StringPtrInput // The ID of the Static Web App to register the Function App to as a backend. Changing this forces a new resource to be created. StaticWebAppId pulumi.StringPtrInput } func (StaticWebAppFunctionAppRegistrationState) ElementType() reflect.Type { return reflect.TypeOf((*staticWebAppFunctionAppRegistrationState)(nil)).Elem() } type staticWebAppFunctionAppRegistrationArgs struct { // The ID of a Linux or Windows Function App to connect to the Static Web App as a Backend. Changing this forces a new resource to be created. // // > **Note:** Only one Function App can be connected to a Static Web App. Multiple Function Apps are not currently supported. // // > **Note:** Connecting a Function App resource to a Static Web App resource updates the Function App to use AuthV2 and configures the `azureStaticWebAppV2` which may need to be accounted for by the use of `ignoreChanges` depending on the existing `authSettingsV2` configuration of the target Function App. FunctionAppId string `pulumi:"functionAppId"` // The ID of the Static Web App to register the Function App to as a backend. Changing this forces a new resource to be created. StaticWebAppId string `pulumi:"staticWebAppId"` } // The set of arguments for constructing a StaticWebAppFunctionAppRegistration resource. type StaticWebAppFunctionAppRegistrationArgs struct { // The ID of a Linux or Windows Function App to connect to the Static Web App as a Backend. Changing this forces a new resource to be created. // // > **Note:** Only one Function App can be connected to a Static Web App. Multiple Function Apps are not currently supported. // // > **Note:** Connecting a Function App resource to a Static Web App resource updates the Function App to use AuthV2 and configures the `azureStaticWebAppV2` which may need to be accounted for by the use of `ignoreChanges` depending on the existing `authSettingsV2` configuration of the target Function App. FunctionAppId pulumi.StringInput // The ID of the Static Web App to register the Function App to as a backend. Changing this forces a new resource to be created. StaticWebAppId pulumi.StringInput } func (StaticWebAppFunctionAppRegistrationArgs) ElementType() reflect.Type { return reflect.TypeOf((*staticWebAppFunctionAppRegistrationArgs)(nil)).Elem() } type StaticWebAppFunctionAppRegistrationInput interface { pulumi.Input ToStaticWebAppFunctionAppRegistrationOutput() StaticWebAppFunctionAppRegistrationOutput ToStaticWebAppFunctionAppRegistrationOutputWithContext(ctx context.Context) StaticWebAppFunctionAppRegistrationOutput } func (*StaticWebAppFunctionAppRegistration) ElementType() reflect.Type { return reflect.TypeOf((**StaticWebAppFunctionAppRegistration)(nil)).Elem() } func (i *StaticWebAppFunctionAppRegistration) ToStaticWebAppFunctionAppRegistrationOutput() StaticWebAppFunctionAppRegistrationOutput { return i.ToStaticWebAppFunctionAppRegistrationOutputWithContext(context.Background()) } func (i *StaticWebAppFunctionAppRegistration) ToStaticWebAppFunctionAppRegistrationOutputWithContext(ctx context.Context) StaticWebAppFunctionAppRegistrationOutput { return pulumi.ToOutputWithContext(ctx, i).(StaticWebAppFunctionAppRegistrationOutput) } // StaticWebAppFunctionAppRegistrationArrayInput is an input type that accepts StaticWebAppFunctionAppRegistrationArray and StaticWebAppFunctionAppRegistrationArrayOutput values. // You can construct a concrete instance of `StaticWebAppFunctionAppRegistrationArrayInput` via: // // StaticWebAppFunctionAppRegistrationArray{ StaticWebAppFunctionAppRegistrationArgs{...} } type StaticWebAppFunctionAppRegistrationArrayInput interface { pulumi.Input ToStaticWebAppFunctionAppRegistrationArrayOutput() StaticWebAppFunctionAppRegistrationArrayOutput ToStaticWebAppFunctionAppRegistrationArrayOutputWithContext(context.Context) StaticWebAppFunctionAppRegistrationArrayOutput } type StaticWebAppFunctionAppRegistrationArray []StaticWebAppFunctionAppRegistrationInput func (StaticWebAppFunctionAppRegistrationArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*StaticWebAppFunctionAppRegistration)(nil)).Elem() } func (i StaticWebAppFunctionAppRegistrationArray) ToStaticWebAppFunctionAppRegistrationArrayOutput() StaticWebAppFunctionAppRegistrationArrayOutput { return i.ToStaticWebAppFunctionAppRegistrationArrayOutputWithContext(context.Background()) } func (i StaticWebAppFunctionAppRegistrationArray) ToStaticWebAppFunctionAppRegistrationArrayOutputWithContext(ctx context.Context) StaticWebAppFunctionAppRegistrationArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(StaticWebAppFunctionAppRegistrationArrayOutput) } // StaticWebAppFunctionAppRegistrationMapInput is an input type that accepts StaticWebAppFunctionAppRegistrationMap and StaticWebAppFunctionAppRegistrationMapOutput values. // You can construct a concrete instance of `StaticWebAppFunctionAppRegistrationMapInput` via: // // StaticWebAppFunctionAppRegistrationMap{ "key": StaticWebAppFunctionAppRegistrationArgs{...} } type StaticWebAppFunctionAppRegistrationMapInput interface { pulumi.Input ToStaticWebAppFunctionAppRegistrationMapOutput() StaticWebAppFunctionAppRegistrationMapOutput ToStaticWebAppFunctionAppRegistrationMapOutputWithContext(context.Context) StaticWebAppFunctionAppRegistrationMapOutput } type StaticWebAppFunctionAppRegistrationMap map[string]StaticWebAppFunctionAppRegistrationInput func (StaticWebAppFunctionAppRegistrationMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*StaticWebAppFunctionAppRegistration)(nil)).Elem() } func (i StaticWebAppFunctionAppRegistrationMap) ToStaticWebAppFunctionAppRegistrationMapOutput() StaticWebAppFunctionAppRegistrationMapOutput { return i.ToStaticWebAppFunctionAppRegistrationMapOutputWithContext(context.Background()) } func (i StaticWebAppFunctionAppRegistrationMap) ToStaticWebAppFunctionAppRegistrationMapOutputWithContext(ctx context.Context) StaticWebAppFunctionAppRegistrationMapOutput { return pulumi.ToOutputWithContext(ctx, i).(StaticWebAppFunctionAppRegistrationMapOutput) } type StaticWebAppFunctionAppRegistrationOutput struct{ *pulumi.OutputState } func (StaticWebAppFunctionAppRegistrationOutput) ElementType() reflect.Type { return reflect.TypeOf((**StaticWebAppFunctionAppRegistration)(nil)).Elem() } func (o StaticWebAppFunctionAppRegistrationOutput) ToStaticWebAppFunctionAppRegistrationOutput() StaticWebAppFunctionAppRegistrationOutput { return o } func (o StaticWebAppFunctionAppRegistrationOutput) ToStaticWebAppFunctionAppRegistrationOutputWithContext(ctx context.Context) StaticWebAppFunctionAppRegistrationOutput { return o } // The ID of a Linux or Windows Function App to connect to the Static Web App as a Backend. Changing this forces a new resource to be created. // // > **Note:** Only one Function App can be connected to a Static Web App. Multiple Function Apps are not currently supported. // // > **Note:** Connecting a Function App resource to a Static Web App resource updates the Function App to use AuthV2 and configures the `azureStaticWebAppV2` which may need to be accounted for by the use of `ignoreChanges` depending on the existing `authSettingsV2` configuration of the target Function App. func (o StaticWebAppFunctionAppRegistrationOutput) FunctionAppId() pulumi.StringOutput { return o.ApplyT(func(v *StaticWebAppFunctionAppRegistration) pulumi.StringOutput { return v.FunctionAppId }).(pulumi.StringOutput) } // The ID of the Static Web App to register the Function App to as a backend. Changing this forces a new resource to be created. func (o StaticWebAppFunctionAppRegistrationOutput) StaticWebAppId() pulumi.StringOutput { return o.ApplyT(func(v *StaticWebAppFunctionAppRegistration) pulumi.StringOutput { return v.StaticWebAppId }).(pulumi.StringOutput) } type StaticWebAppFunctionAppRegistrationArrayOutput struct{ *pulumi.OutputState } func (StaticWebAppFunctionAppRegistrationArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*StaticWebAppFunctionAppRegistration)(nil)).Elem() } func (o StaticWebAppFunctionAppRegistrationArrayOutput) ToStaticWebAppFunctionAppRegistrationArrayOutput() StaticWebAppFunctionAppRegistrationArrayOutput { return o } func (o StaticWebAppFunctionAppRegistrationArrayOutput) ToStaticWebAppFunctionAppRegistrationArrayOutputWithContext(ctx context.Context) StaticWebAppFunctionAppRegistrationArrayOutput { return o } func (o StaticWebAppFunctionAppRegistrationArrayOutput) Index(i pulumi.IntInput) StaticWebAppFunctionAppRegistrationOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *StaticWebAppFunctionAppRegistration { return vs[0].([]*StaticWebAppFunctionAppRegistration)[vs[1].(int)] }).(StaticWebAppFunctionAppRegistrationOutput) } type StaticWebAppFunctionAppRegistrationMapOutput struct{ *pulumi.OutputState } func (StaticWebAppFunctionAppRegistrationMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*StaticWebAppFunctionAppRegistration)(nil)).Elem() } func (o StaticWebAppFunctionAppRegistrationMapOutput) ToStaticWebAppFunctionAppRegistrationMapOutput() StaticWebAppFunctionAppRegistrationMapOutput { return o } func (o StaticWebAppFunctionAppRegistrationMapOutput) ToStaticWebAppFunctionAppRegistrationMapOutputWithContext(ctx context.Context) StaticWebAppFunctionAppRegistrationMapOutput { return o } func (o StaticWebAppFunctionAppRegistrationMapOutput) MapIndex(k pulumi.StringInput) StaticWebAppFunctionAppRegistrationOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *StaticWebAppFunctionAppRegistration { return vs[0].(map[string]*StaticWebAppFunctionAppRegistration)[vs[1].(string)] }).(StaticWebAppFunctionAppRegistrationOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*StaticWebAppFunctionAppRegistrationInput)(nil)).Elem(), &StaticWebAppFunctionAppRegistration{}) pulumi.RegisterInputType(reflect.TypeOf((*StaticWebAppFunctionAppRegistrationArrayInput)(nil)).Elem(), StaticWebAppFunctionAppRegistrationArray{}) pulumi.RegisterInputType(reflect.TypeOf((*StaticWebAppFunctionAppRegistrationMapInput)(nil)).Elem(), StaticWebAppFunctionAppRegistrationMap{}) pulumi.RegisterOutputType(StaticWebAppFunctionAppRegistrationOutput{}) pulumi.RegisterOutputType(StaticWebAppFunctionAppRegistrationArrayOutput{}) pulumi.RegisterOutputType(StaticWebAppFunctionAppRegistrationMapOutput{}) }
go
Apache-2.0
b66e1472775a89cca43f5050fef806854a7c3fa3
2026-01-07T09:44:27.619514Z
false
pulumi/pulumi-azure
https://github.com/pulumi/pulumi-azure/blob/b66e1472775a89cca43f5050fef806854a7c3fa3/sdk/go/azure/appservice/staticSiteCustomDomain.go
sdk/go/azure/appservice/staticSiteCustomDomain.go
// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package appservice import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // ## Example Usage // // ### CNAME validation // // ```go // package main // // import ( // // "fmt" // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/appservice" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/dns" // "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-resources"), // Location: pulumi.String("West Europe"), // }) // if err != nil { // return err // } // exampleStaticSite, err := appservice.NewStaticSite(ctx, "example", &appservice.StaticSiteArgs{ // Name: pulumi.String("example"), // ResourceGroupName: example.Name, // Location: example.Location, // }) // if err != nil { // return err // } // exampleCNameRecord, err := dns.NewCNameRecord(ctx, "example", &dns.CNameRecordArgs{ // Name: pulumi.String("my-domain"), // ZoneName: pulumi.String("contoso.com"), // ResourceGroupName: example.Name, // Ttl: pulumi.Int(300), // Record: exampleStaticSite.DefaultHostName, // }) // if err != nil { // return err // } // _, err = appservice.NewStaticSiteCustomDomain(ctx, "example", &appservice.StaticSiteCustomDomainArgs{ // StaticSiteId: exampleStaticSite.ID(), // DomainName: pulumi.All(exampleCNameRecord.Name, exampleCNameRecord.ZoneName).ApplyT(func(_args []interface{}) (string, error) { // name := _args[0].(string) // zoneName := _args[1].(string) // return fmt.Sprintf("%v.%v", name, zoneName), nil // }).(pulumi.StringOutput), // ValidationType: pulumi.String("cname-delegation"), // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ### TXT validation // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/appservice" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/dns" // "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-resources"), // Location: pulumi.String("West Europe"), // }) // if err != nil { // return err // } // exampleStaticSite, err := appservice.NewStaticSite(ctx, "example", &appservice.StaticSiteArgs{ // Name: pulumi.String("example"), // ResourceGroupName: example.Name, // Location: example.Location, // }) // if err != nil { // return err // } // exampleStaticSiteCustomDomain, err := appservice.NewStaticSiteCustomDomain(ctx, "example", &appservice.StaticSiteCustomDomainArgs{ // StaticSiteId: exampleStaticSite.ID(), // DomainName: pulumi.String("my-domain.contoso.com"), // ValidationType: pulumi.String("dns-txt-token"), // }) // if err != nil { // return err // } // _, err = dns.NewTxtRecord(ctx, "example", &dns.TxtRecordArgs{ // Name: pulumi.String("_dnsauth.my-domain"), // ZoneName: pulumi.String("contoso.com"), // ResourceGroupName: example.Name, // Ttl: pulumi.Int(300), // Records: dns.TxtRecordRecordArray{ // &dns.TxtRecordRecordArgs{ // Value: exampleStaticSiteCustomDomain.ValidationToken, // }, // }, // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## Import // // Static Site Custom Domains can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:appservice/staticSiteCustomDomain:StaticSiteCustomDomain example /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/group1/providers/Microsoft.Web/staticSites/my-static-site1/customDomains/name.contoso.com // ``` type StaticSiteCustomDomain struct { pulumi.CustomResourceState // The Domain Name which should be associated with this Static Site. Changing this forces a new Static Site Custom Domain to be created. DomainName pulumi.StringOutput `pulumi:"domainName"` // The ID of the Static Site. Changing this forces a new Static Site Custom Domain to be created. StaticSiteId pulumi.StringOutput `pulumi:"staticSiteId"` // Token to be used with `dns-txt-token` validation. ValidationToken pulumi.StringOutput `pulumi:"validationToken"` // One of `cname-delegation` or `dns-txt-token`. Changing this forces a new Static Site Custom Domain to be created. ValidationType pulumi.StringPtrOutput `pulumi:"validationType"` } // NewStaticSiteCustomDomain registers a new resource with the given unique name, arguments, and options. func NewStaticSiteCustomDomain(ctx *pulumi.Context, name string, args *StaticSiteCustomDomainArgs, opts ...pulumi.ResourceOption) (*StaticSiteCustomDomain, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.DomainName == nil { return nil, errors.New("invalid value for required argument 'DomainName'") } if args.StaticSiteId == nil { return nil, errors.New("invalid value for required argument 'StaticSiteId'") } secrets := pulumi.AdditionalSecretOutputs([]string{ "validationToken", }) opts = append(opts, secrets) opts = internal.PkgResourceDefaultOpts(opts) var resource StaticSiteCustomDomain err := ctx.RegisterResource("azure:appservice/staticSiteCustomDomain:StaticSiteCustomDomain", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetStaticSiteCustomDomain gets an existing StaticSiteCustomDomain 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 GetStaticSiteCustomDomain(ctx *pulumi.Context, name string, id pulumi.IDInput, state *StaticSiteCustomDomainState, opts ...pulumi.ResourceOption) (*StaticSiteCustomDomain, error) { var resource StaticSiteCustomDomain err := ctx.ReadResource("azure:appservice/staticSiteCustomDomain:StaticSiteCustomDomain", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering StaticSiteCustomDomain resources. type staticSiteCustomDomainState struct { // The Domain Name which should be associated with this Static Site. Changing this forces a new Static Site Custom Domain to be created. DomainName *string `pulumi:"domainName"` // The ID of the Static Site. Changing this forces a new Static Site Custom Domain to be created. StaticSiteId *string `pulumi:"staticSiteId"` // Token to be used with `dns-txt-token` validation. ValidationToken *string `pulumi:"validationToken"` // One of `cname-delegation` or `dns-txt-token`. Changing this forces a new Static Site Custom Domain to be created. ValidationType *string `pulumi:"validationType"` } type StaticSiteCustomDomainState struct { // The Domain Name which should be associated with this Static Site. Changing this forces a new Static Site Custom Domain to be created. DomainName pulumi.StringPtrInput // The ID of the Static Site. Changing this forces a new Static Site Custom Domain to be created. StaticSiteId pulumi.StringPtrInput // Token to be used with `dns-txt-token` validation. ValidationToken pulumi.StringPtrInput // One of `cname-delegation` or `dns-txt-token`. Changing this forces a new Static Site Custom Domain to be created. ValidationType pulumi.StringPtrInput } func (StaticSiteCustomDomainState) ElementType() reflect.Type { return reflect.TypeOf((*staticSiteCustomDomainState)(nil)).Elem() } type staticSiteCustomDomainArgs struct { // The Domain Name which should be associated with this Static Site. Changing this forces a new Static Site Custom Domain to be created. DomainName string `pulumi:"domainName"` // The ID of the Static Site. Changing this forces a new Static Site Custom Domain to be created. StaticSiteId string `pulumi:"staticSiteId"` // One of `cname-delegation` or `dns-txt-token`. Changing this forces a new Static Site Custom Domain to be created. ValidationType *string `pulumi:"validationType"` } // The set of arguments for constructing a StaticSiteCustomDomain resource. type StaticSiteCustomDomainArgs struct { // The Domain Name which should be associated with this Static Site. Changing this forces a new Static Site Custom Domain to be created. DomainName pulumi.StringInput // The ID of the Static Site. Changing this forces a new Static Site Custom Domain to be created. StaticSiteId pulumi.StringInput // One of `cname-delegation` or `dns-txt-token`. Changing this forces a new Static Site Custom Domain to be created. ValidationType pulumi.StringPtrInput } func (StaticSiteCustomDomainArgs) ElementType() reflect.Type { return reflect.TypeOf((*staticSiteCustomDomainArgs)(nil)).Elem() } type StaticSiteCustomDomainInput interface { pulumi.Input ToStaticSiteCustomDomainOutput() StaticSiteCustomDomainOutput ToStaticSiteCustomDomainOutputWithContext(ctx context.Context) StaticSiteCustomDomainOutput } func (*StaticSiteCustomDomain) ElementType() reflect.Type { return reflect.TypeOf((**StaticSiteCustomDomain)(nil)).Elem() } func (i *StaticSiteCustomDomain) ToStaticSiteCustomDomainOutput() StaticSiteCustomDomainOutput { return i.ToStaticSiteCustomDomainOutputWithContext(context.Background()) } func (i *StaticSiteCustomDomain) ToStaticSiteCustomDomainOutputWithContext(ctx context.Context) StaticSiteCustomDomainOutput { return pulumi.ToOutputWithContext(ctx, i).(StaticSiteCustomDomainOutput) } // StaticSiteCustomDomainArrayInput is an input type that accepts StaticSiteCustomDomainArray and StaticSiteCustomDomainArrayOutput values. // You can construct a concrete instance of `StaticSiteCustomDomainArrayInput` via: // // StaticSiteCustomDomainArray{ StaticSiteCustomDomainArgs{...} } type StaticSiteCustomDomainArrayInput interface { pulumi.Input ToStaticSiteCustomDomainArrayOutput() StaticSiteCustomDomainArrayOutput ToStaticSiteCustomDomainArrayOutputWithContext(context.Context) StaticSiteCustomDomainArrayOutput } type StaticSiteCustomDomainArray []StaticSiteCustomDomainInput func (StaticSiteCustomDomainArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*StaticSiteCustomDomain)(nil)).Elem() } func (i StaticSiteCustomDomainArray) ToStaticSiteCustomDomainArrayOutput() StaticSiteCustomDomainArrayOutput { return i.ToStaticSiteCustomDomainArrayOutputWithContext(context.Background()) } func (i StaticSiteCustomDomainArray) ToStaticSiteCustomDomainArrayOutputWithContext(ctx context.Context) StaticSiteCustomDomainArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(StaticSiteCustomDomainArrayOutput) } // StaticSiteCustomDomainMapInput is an input type that accepts StaticSiteCustomDomainMap and StaticSiteCustomDomainMapOutput values. // You can construct a concrete instance of `StaticSiteCustomDomainMapInput` via: // // StaticSiteCustomDomainMap{ "key": StaticSiteCustomDomainArgs{...} } type StaticSiteCustomDomainMapInput interface { pulumi.Input ToStaticSiteCustomDomainMapOutput() StaticSiteCustomDomainMapOutput ToStaticSiteCustomDomainMapOutputWithContext(context.Context) StaticSiteCustomDomainMapOutput } type StaticSiteCustomDomainMap map[string]StaticSiteCustomDomainInput func (StaticSiteCustomDomainMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*StaticSiteCustomDomain)(nil)).Elem() } func (i StaticSiteCustomDomainMap) ToStaticSiteCustomDomainMapOutput() StaticSiteCustomDomainMapOutput { return i.ToStaticSiteCustomDomainMapOutputWithContext(context.Background()) } func (i StaticSiteCustomDomainMap) ToStaticSiteCustomDomainMapOutputWithContext(ctx context.Context) StaticSiteCustomDomainMapOutput { return pulumi.ToOutputWithContext(ctx, i).(StaticSiteCustomDomainMapOutput) } type StaticSiteCustomDomainOutput struct{ *pulumi.OutputState } func (StaticSiteCustomDomainOutput) ElementType() reflect.Type { return reflect.TypeOf((**StaticSiteCustomDomain)(nil)).Elem() } func (o StaticSiteCustomDomainOutput) ToStaticSiteCustomDomainOutput() StaticSiteCustomDomainOutput { return o } func (o StaticSiteCustomDomainOutput) ToStaticSiteCustomDomainOutputWithContext(ctx context.Context) StaticSiteCustomDomainOutput { return o } // The Domain Name which should be associated with this Static Site. Changing this forces a new Static Site Custom Domain to be created. func (o StaticSiteCustomDomainOutput) DomainName() pulumi.StringOutput { return o.ApplyT(func(v *StaticSiteCustomDomain) pulumi.StringOutput { return v.DomainName }).(pulumi.StringOutput) } // The ID of the Static Site. Changing this forces a new Static Site Custom Domain to be created. func (o StaticSiteCustomDomainOutput) StaticSiteId() pulumi.StringOutput { return o.ApplyT(func(v *StaticSiteCustomDomain) pulumi.StringOutput { return v.StaticSiteId }).(pulumi.StringOutput) } // Token to be used with `dns-txt-token` validation. func (o StaticSiteCustomDomainOutput) ValidationToken() pulumi.StringOutput { return o.ApplyT(func(v *StaticSiteCustomDomain) pulumi.StringOutput { return v.ValidationToken }).(pulumi.StringOutput) } // One of `cname-delegation` or `dns-txt-token`. Changing this forces a new Static Site Custom Domain to be created. func (o StaticSiteCustomDomainOutput) ValidationType() pulumi.StringPtrOutput { return o.ApplyT(func(v *StaticSiteCustomDomain) pulumi.StringPtrOutput { return v.ValidationType }).(pulumi.StringPtrOutput) } type StaticSiteCustomDomainArrayOutput struct{ *pulumi.OutputState } func (StaticSiteCustomDomainArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*StaticSiteCustomDomain)(nil)).Elem() } func (o StaticSiteCustomDomainArrayOutput) ToStaticSiteCustomDomainArrayOutput() StaticSiteCustomDomainArrayOutput { return o } func (o StaticSiteCustomDomainArrayOutput) ToStaticSiteCustomDomainArrayOutputWithContext(ctx context.Context) StaticSiteCustomDomainArrayOutput { return o } func (o StaticSiteCustomDomainArrayOutput) Index(i pulumi.IntInput) StaticSiteCustomDomainOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *StaticSiteCustomDomain { return vs[0].([]*StaticSiteCustomDomain)[vs[1].(int)] }).(StaticSiteCustomDomainOutput) } type StaticSiteCustomDomainMapOutput struct{ *pulumi.OutputState } func (StaticSiteCustomDomainMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*StaticSiteCustomDomain)(nil)).Elem() } func (o StaticSiteCustomDomainMapOutput) ToStaticSiteCustomDomainMapOutput() StaticSiteCustomDomainMapOutput { return o } func (o StaticSiteCustomDomainMapOutput) ToStaticSiteCustomDomainMapOutputWithContext(ctx context.Context) StaticSiteCustomDomainMapOutput { return o } func (o StaticSiteCustomDomainMapOutput) MapIndex(k pulumi.StringInput) StaticSiteCustomDomainOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *StaticSiteCustomDomain { return vs[0].(map[string]*StaticSiteCustomDomain)[vs[1].(string)] }).(StaticSiteCustomDomainOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*StaticSiteCustomDomainInput)(nil)).Elem(), &StaticSiteCustomDomain{}) pulumi.RegisterInputType(reflect.TypeOf((*StaticSiteCustomDomainArrayInput)(nil)).Elem(), StaticSiteCustomDomainArray{}) pulumi.RegisterInputType(reflect.TypeOf((*StaticSiteCustomDomainMapInput)(nil)).Elem(), StaticSiteCustomDomainMap{}) pulumi.RegisterOutputType(StaticSiteCustomDomainOutput{}) pulumi.RegisterOutputType(StaticSiteCustomDomainArrayOutput{}) pulumi.RegisterOutputType(StaticSiteCustomDomainMapOutput{}) }
go
Apache-2.0
b66e1472775a89cca43f5050fef806854a7c3fa3
2026-01-07T09:44:27.619514Z
false
pulumi/pulumi-azure
https://github.com/pulumi/pulumi-azure/blob/b66e1472775a89cca43f5050fef806854a7c3fa3/sdk/go/azure/appservice/certificateBinding.go
sdk/go/azure/appservice/certificateBinding.go
// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package appservice import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages an App Service Certificate Binding. // // ## Example Usage // // ```go // package main // // import ( // // "fmt" // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/appservice" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/dns" // "github.com/pulumi/pulumi-std/sdk/go/std" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { // exampleResourceGroup, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{ // Name: pulumi.String("webapp"), // Location: pulumi.String("West Europe"), // }) // if err != nil { // return err // } // examplePlan, err := appservice.NewPlan(ctx, "example", &appservice.PlanArgs{ // Name: pulumi.String("appserviceplan"), // Location: exampleResourceGroup.Location, // ResourceGroupName: exampleResourceGroup.Name, // Sku: &appservice.PlanSkuArgs{ // Tier: pulumi.String("Premium"), // Size: pulumi.String("P1"), // }, // }) // if err != nil { // return err // } // exampleAppService, err := appservice.NewAppService(ctx, "example", &appservice.AppServiceArgs{ // Name: pulumi.String("mywebapp"), // Location: exampleResourceGroup.Location, // ResourceGroupName: exampleResourceGroup.Name, // AppServicePlanId: examplePlan.ID(), // }) // if err != nil { // return err // } // example := dns.LookupZoneOutput(ctx, dns.GetZoneOutputArgs{ // Name: pulumi.String("example.com"), // ResourceGroupName: exampleResourceGroup.Name, // }, nil) // exampleCNameRecord, err := dns.NewCNameRecord(ctx, "example", &dns.CNameRecordArgs{ // Name: pulumi.String("www"), // ZoneName: pulumi.String(example.ApplyT(func(example dns.GetZoneResult) (*string, error) { // return &example.Name, nil // }).(pulumi.StringPtrOutput)), // ResourceGroupName: pulumi.String(example.ApplyT(func(example dns.GetZoneResult) (*string, error) { // return &example.ResourceGroupName, nil // }).(pulumi.StringPtrOutput)), // Ttl: pulumi.Int(300), // Record: exampleAppService.DefaultSiteHostname, // }) // if err != nil { // return err // } // exampleTxtRecord, err := dns.NewTxtRecord(ctx, "example", &dns.TxtRecordArgs{ // Name: exampleCNameRecord.Name.ApplyT(func(name string) (string, error) { // return fmt.Sprintf("asuid.%v", name), nil // }).(pulumi.StringOutput), // ZoneName: pulumi.String(example.ApplyT(func(example dns.GetZoneResult) (*string, error) { // return &example.Name, nil // }).(pulumi.StringPtrOutput)), // ResourceGroupName: pulumi.String(example.ApplyT(func(example dns.GetZoneResult) (*string, error) { // return &example.ResourceGroupName, nil // }).(pulumi.StringPtrOutput)), // Ttl: pulumi.Int(300), // Records: dns.TxtRecordRecordArray{ // &dns.TxtRecordRecordArgs{ // Value: exampleAppService.CustomDomainVerificationId, // }, // }, // }) // if err != nil { // return err // } // exampleCustomHostnameBinding, err := appservice.NewCustomHostnameBinding(ctx, "example", &appservice.CustomHostnameBindingArgs{ // Hostname: pulumi.String(std.TrimOutput(ctx, std.TrimOutputArgs{ // Input: exampleCNameRecord.Fqdn, // Cutset: pulumi.String("."), // }, nil).ApplyT(func(invoke std.TrimResult) (*string, error) { // return invoke.Result, nil // }).(pulumi.StringPtrOutput)), // AppServiceName: exampleAppService.Name, // ResourceGroupName: exampleResourceGroup.Name, // }, pulumi.DependsOn([]pulumi.Resource{ // exampleTxtRecord, // })) // if err != nil { // return err // } // exampleManagedCertificate, err := appservice.NewManagedCertificate(ctx, "example", &appservice.ManagedCertificateArgs{ // CustomHostnameBindingId: exampleCustomHostnameBinding.ID(), // }) // if err != nil { // return err // } // _, err = appservice.NewCertificateBinding(ctx, "example", &appservice.CertificateBindingArgs{ // HostnameBindingId: exampleCustomHostnameBinding.ID(), // CertificateId: exampleManagedCertificate.ID(), // SslState: pulumi.String("SniEnabled"), // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## Import // // App Service Certificate Bindings can be imported using the `hostname_binding_id` and the `app_service_certificate_id` , e.g. // // ```sh // $ pulumi import azure:appservice/certificateBinding:CertificateBinding example "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Web/sites/instance1/hostNameBindings/mywebsite.com|/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Web/certificates/mywebsite.com" // ``` type CertificateBinding struct { pulumi.CustomResourceState // The name of the App Service to which the certificate was bound. AppServiceName pulumi.StringOutput `pulumi:"appServiceName"` // The ID of the certificate to bind to the custom domain. Changing this forces a new App Service Certificate Binding to be created. CertificateId pulumi.StringOutput `pulumi:"certificateId"` // The hostname of the bound certificate. Hostname pulumi.StringOutput `pulumi:"hostname"` // The ID of the Custom Domain/Hostname Binding. Changing this forces a new App Service Certificate Binding to be created. HostnameBindingId pulumi.StringOutput `pulumi:"hostnameBindingId"` // The type of certificate binding. Allowed values are `IpBasedEnabled` or `SniEnabled`. Changing this forces a new App Service Certificate Binding to be created. SslState pulumi.StringOutput `pulumi:"sslState"` // The certificate thumbprint. Thumbprint pulumi.StringOutput `pulumi:"thumbprint"` } // NewCertificateBinding registers a new resource with the given unique name, arguments, and options. func NewCertificateBinding(ctx *pulumi.Context, name string, args *CertificateBindingArgs, opts ...pulumi.ResourceOption) (*CertificateBinding, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.CertificateId == nil { return nil, errors.New("invalid value for required argument 'CertificateId'") } if args.HostnameBindingId == nil { return nil, errors.New("invalid value for required argument 'HostnameBindingId'") } if args.SslState == nil { return nil, errors.New("invalid value for required argument 'SslState'") } opts = internal.PkgResourceDefaultOpts(opts) var resource CertificateBinding err := ctx.RegisterResource("azure:appservice/certificateBinding:CertificateBinding", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetCertificateBinding gets an existing CertificateBinding 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 GetCertificateBinding(ctx *pulumi.Context, name string, id pulumi.IDInput, state *CertificateBindingState, opts ...pulumi.ResourceOption) (*CertificateBinding, error) { var resource CertificateBinding err := ctx.ReadResource("azure:appservice/certificateBinding:CertificateBinding", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering CertificateBinding resources. type certificateBindingState struct { // The name of the App Service to which the certificate was bound. AppServiceName *string `pulumi:"appServiceName"` // The ID of the certificate to bind to the custom domain. Changing this forces a new App Service Certificate Binding to be created. CertificateId *string `pulumi:"certificateId"` // The hostname of the bound certificate. Hostname *string `pulumi:"hostname"` // The ID of the Custom Domain/Hostname Binding. Changing this forces a new App Service Certificate Binding to be created. HostnameBindingId *string `pulumi:"hostnameBindingId"` // The type of certificate binding. Allowed values are `IpBasedEnabled` or `SniEnabled`. Changing this forces a new App Service Certificate Binding to be created. SslState *string `pulumi:"sslState"` // The certificate thumbprint. Thumbprint *string `pulumi:"thumbprint"` } type CertificateBindingState struct { // The name of the App Service to which the certificate was bound. AppServiceName pulumi.StringPtrInput // The ID of the certificate to bind to the custom domain. Changing this forces a new App Service Certificate Binding to be created. CertificateId pulumi.StringPtrInput // The hostname of the bound certificate. Hostname pulumi.StringPtrInput // The ID of the Custom Domain/Hostname Binding. Changing this forces a new App Service Certificate Binding to be created. HostnameBindingId pulumi.StringPtrInput // The type of certificate binding. Allowed values are `IpBasedEnabled` or `SniEnabled`. Changing this forces a new App Service Certificate Binding to be created. SslState pulumi.StringPtrInput // The certificate thumbprint. Thumbprint pulumi.StringPtrInput } func (CertificateBindingState) ElementType() reflect.Type { return reflect.TypeOf((*certificateBindingState)(nil)).Elem() } type certificateBindingArgs struct { // The ID of the certificate to bind to the custom domain. Changing this forces a new App Service Certificate Binding to be created. CertificateId string `pulumi:"certificateId"` // The ID of the Custom Domain/Hostname Binding. Changing this forces a new App Service Certificate Binding to be created. HostnameBindingId string `pulumi:"hostnameBindingId"` // The type of certificate binding. Allowed values are `IpBasedEnabled` or `SniEnabled`. Changing this forces a new App Service Certificate Binding to be created. SslState string `pulumi:"sslState"` } // The set of arguments for constructing a CertificateBinding resource. type CertificateBindingArgs struct { // The ID of the certificate to bind to the custom domain. Changing this forces a new App Service Certificate Binding to be created. CertificateId pulumi.StringInput // The ID of the Custom Domain/Hostname Binding. Changing this forces a new App Service Certificate Binding to be created. HostnameBindingId pulumi.StringInput // The type of certificate binding. Allowed values are `IpBasedEnabled` or `SniEnabled`. Changing this forces a new App Service Certificate Binding to be created. SslState pulumi.StringInput } func (CertificateBindingArgs) ElementType() reflect.Type { return reflect.TypeOf((*certificateBindingArgs)(nil)).Elem() } type CertificateBindingInput interface { pulumi.Input ToCertificateBindingOutput() CertificateBindingOutput ToCertificateBindingOutputWithContext(ctx context.Context) CertificateBindingOutput } func (*CertificateBinding) ElementType() reflect.Type { return reflect.TypeOf((**CertificateBinding)(nil)).Elem() } func (i *CertificateBinding) ToCertificateBindingOutput() CertificateBindingOutput { return i.ToCertificateBindingOutputWithContext(context.Background()) } func (i *CertificateBinding) ToCertificateBindingOutputWithContext(ctx context.Context) CertificateBindingOutput { return pulumi.ToOutputWithContext(ctx, i).(CertificateBindingOutput) } // CertificateBindingArrayInput is an input type that accepts CertificateBindingArray and CertificateBindingArrayOutput values. // You can construct a concrete instance of `CertificateBindingArrayInput` via: // // CertificateBindingArray{ CertificateBindingArgs{...} } type CertificateBindingArrayInput interface { pulumi.Input ToCertificateBindingArrayOutput() CertificateBindingArrayOutput ToCertificateBindingArrayOutputWithContext(context.Context) CertificateBindingArrayOutput } type CertificateBindingArray []CertificateBindingInput func (CertificateBindingArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*CertificateBinding)(nil)).Elem() } func (i CertificateBindingArray) ToCertificateBindingArrayOutput() CertificateBindingArrayOutput { return i.ToCertificateBindingArrayOutputWithContext(context.Background()) } func (i CertificateBindingArray) ToCertificateBindingArrayOutputWithContext(ctx context.Context) CertificateBindingArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(CertificateBindingArrayOutput) } // CertificateBindingMapInput is an input type that accepts CertificateBindingMap and CertificateBindingMapOutput values. // You can construct a concrete instance of `CertificateBindingMapInput` via: // // CertificateBindingMap{ "key": CertificateBindingArgs{...} } type CertificateBindingMapInput interface { pulumi.Input ToCertificateBindingMapOutput() CertificateBindingMapOutput ToCertificateBindingMapOutputWithContext(context.Context) CertificateBindingMapOutput } type CertificateBindingMap map[string]CertificateBindingInput func (CertificateBindingMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*CertificateBinding)(nil)).Elem() } func (i CertificateBindingMap) ToCertificateBindingMapOutput() CertificateBindingMapOutput { return i.ToCertificateBindingMapOutputWithContext(context.Background()) } func (i CertificateBindingMap) ToCertificateBindingMapOutputWithContext(ctx context.Context) CertificateBindingMapOutput { return pulumi.ToOutputWithContext(ctx, i).(CertificateBindingMapOutput) } type CertificateBindingOutput struct{ *pulumi.OutputState } func (CertificateBindingOutput) ElementType() reflect.Type { return reflect.TypeOf((**CertificateBinding)(nil)).Elem() } func (o CertificateBindingOutput) ToCertificateBindingOutput() CertificateBindingOutput { return o } func (o CertificateBindingOutput) ToCertificateBindingOutputWithContext(ctx context.Context) CertificateBindingOutput { return o } // The name of the App Service to which the certificate was bound. func (o CertificateBindingOutput) AppServiceName() pulumi.StringOutput { return o.ApplyT(func(v *CertificateBinding) pulumi.StringOutput { return v.AppServiceName }).(pulumi.StringOutput) } // The ID of the certificate to bind to the custom domain. Changing this forces a new App Service Certificate Binding to be created. func (o CertificateBindingOutput) CertificateId() pulumi.StringOutput { return o.ApplyT(func(v *CertificateBinding) pulumi.StringOutput { return v.CertificateId }).(pulumi.StringOutput) } // The hostname of the bound certificate. func (o CertificateBindingOutput) Hostname() pulumi.StringOutput { return o.ApplyT(func(v *CertificateBinding) pulumi.StringOutput { return v.Hostname }).(pulumi.StringOutput) } // The ID of the Custom Domain/Hostname Binding. Changing this forces a new App Service Certificate Binding to be created. func (o CertificateBindingOutput) HostnameBindingId() pulumi.StringOutput { return o.ApplyT(func(v *CertificateBinding) pulumi.StringOutput { return v.HostnameBindingId }).(pulumi.StringOutput) } // The type of certificate binding. Allowed values are `IpBasedEnabled` or `SniEnabled`. Changing this forces a new App Service Certificate Binding to be created. func (o CertificateBindingOutput) SslState() pulumi.StringOutput { return o.ApplyT(func(v *CertificateBinding) pulumi.StringOutput { return v.SslState }).(pulumi.StringOutput) } // The certificate thumbprint. func (o CertificateBindingOutput) Thumbprint() pulumi.StringOutput { return o.ApplyT(func(v *CertificateBinding) pulumi.StringOutput { return v.Thumbprint }).(pulumi.StringOutput) } type CertificateBindingArrayOutput struct{ *pulumi.OutputState } func (CertificateBindingArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*CertificateBinding)(nil)).Elem() } func (o CertificateBindingArrayOutput) ToCertificateBindingArrayOutput() CertificateBindingArrayOutput { return o } func (o CertificateBindingArrayOutput) ToCertificateBindingArrayOutputWithContext(ctx context.Context) CertificateBindingArrayOutput { return o } func (o CertificateBindingArrayOutput) Index(i pulumi.IntInput) CertificateBindingOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *CertificateBinding { return vs[0].([]*CertificateBinding)[vs[1].(int)] }).(CertificateBindingOutput) } type CertificateBindingMapOutput struct{ *pulumi.OutputState } func (CertificateBindingMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*CertificateBinding)(nil)).Elem() } func (o CertificateBindingMapOutput) ToCertificateBindingMapOutput() CertificateBindingMapOutput { return o } func (o CertificateBindingMapOutput) ToCertificateBindingMapOutputWithContext(ctx context.Context) CertificateBindingMapOutput { return o } func (o CertificateBindingMapOutput) MapIndex(k pulumi.StringInput) CertificateBindingOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *CertificateBinding { return vs[0].(map[string]*CertificateBinding)[vs[1].(string)] }).(CertificateBindingOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*CertificateBindingInput)(nil)).Elem(), &CertificateBinding{}) pulumi.RegisterInputType(reflect.TypeOf((*CertificateBindingArrayInput)(nil)).Elem(), CertificateBindingArray{}) pulumi.RegisterInputType(reflect.TypeOf((*CertificateBindingMapInput)(nil)).Elem(), CertificateBindingMap{}) pulumi.RegisterOutputType(CertificateBindingOutput{}) pulumi.RegisterOutputType(CertificateBindingArrayOutput{}) pulumi.RegisterOutputType(CertificateBindingMapOutput{}) }
go
Apache-2.0
b66e1472775a89cca43f5050fef806854a7c3fa3
2026-01-07T09:44:27.619514Z
false
pulumi/pulumi-azure
https://github.com/pulumi/pulumi-azure/blob/b66e1472775a89cca43f5050fef806854a7c3fa3/sdk/go/azure/appservice/certificateOrder.go
sdk/go/azure/appservice/certificateOrder.go
// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package appservice import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages an App Service Certificate Order. // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/appservice" // "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-resources"), // Location: pulumi.String("West Europe"), // }) // if err != nil { // return err // } // _, err = appservice.NewCertificateOrder(ctx, "example", &appservice.CertificateOrderArgs{ // Name: pulumi.String("example-cert-order"), // ResourceGroupName: example.Name, // Location: pulumi.String("global"), // DistinguishedName: pulumi.String("CN=example.com"), // ProductType: pulumi.String("Standard"), // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## Import // // App Service Certificate Orders can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:appservice/certificateOrder:CertificateOrder example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.CertificateRegistration/certificateOrders/certificateorder1 // ``` type CertificateOrder struct { pulumi.CustomResourceState // Reasons why App Service Certificate is not renewable at the current moment. AppServiceCertificateNotRenewableReasons pulumi.StringArrayOutput `pulumi:"appServiceCertificateNotRenewableReasons"` // true if the certificate should be automatically renewed when it expires; otherwise, false. Defaults to `true`. AutoRenew pulumi.BoolPtrOutput `pulumi:"autoRenew"` // State of the Key Vault secret. A `certificates` block as defined below. Certificates CertificateOrderCertificateArrayOutput `pulumi:"certificates"` // Last CSR that was created for this order. Csr pulumi.StringOutput `pulumi:"csr"` // The Distinguished Name for the App Service Certificate Order. // // > **Note:** Either `csr` or `distinguishedName` must be set - but not both. DistinguishedName pulumi.StringOutput `pulumi:"distinguishedName"` // Domain verification token. DomainVerificationToken pulumi.StringOutput `pulumi:"domainVerificationToken"` // Certificate expiration time. ExpirationTime pulumi.StringOutput `pulumi:"expirationTime"` // Certificate thumbprint intermediate certificate. IntermediateThumbprint pulumi.StringOutput `pulumi:"intermediateThumbprint"` // Whether the private key is external or not. IsPrivateKeyExternal pulumi.BoolOutput `pulumi:"isPrivateKeyExternal"` // Certificate key size. Defaults to `2048`. KeySize pulumi.IntPtrOutput `pulumi:"keySize"` // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Currently the only valid value is `global`. Location pulumi.StringOutput `pulumi:"location"` // Specifies the name of the certificate. Changing this forces a new resource to be created. Name pulumi.StringOutput `pulumi:"name"` // Certificate product type, such as `Standard` or `WildCard`. Defaults to `Standard`. ProductType pulumi.StringPtrOutput `pulumi:"productType"` // The name of the resource group in which to create the certificate. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // Certificate thumbprint for root certificate. RootThumbprint pulumi.StringOutput `pulumi:"rootThumbprint"` // Certificate thumbprint for signed certificate. SignedCertificateThumbprint pulumi.StringOutput `pulumi:"signedCertificateThumbprint"` // Current order status. Status pulumi.StringOutput `pulumi:"status"` // (Optional) A mapping of tags to assign to the resource. Tags pulumi.StringMapOutput `pulumi:"tags"` // Duration in years (must be between `1` and `3`). Defaults to `1`. ValidityInYears pulumi.IntPtrOutput `pulumi:"validityInYears"` } // NewCertificateOrder registers a new resource with the given unique name, arguments, and options. func NewCertificateOrder(ctx *pulumi.Context, name string, args *CertificateOrderArgs, opts ...pulumi.ResourceOption) (*CertificateOrder, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.ResourceGroupName == nil { return nil, errors.New("invalid value for required argument 'ResourceGroupName'") } opts = internal.PkgResourceDefaultOpts(opts) var resource CertificateOrder err := ctx.RegisterResource("azure:appservice/certificateOrder:CertificateOrder", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetCertificateOrder gets an existing CertificateOrder 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 GetCertificateOrder(ctx *pulumi.Context, name string, id pulumi.IDInput, state *CertificateOrderState, opts ...pulumi.ResourceOption) (*CertificateOrder, error) { var resource CertificateOrder err := ctx.ReadResource("azure:appservice/certificateOrder:CertificateOrder", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering CertificateOrder resources. type certificateOrderState struct { // Reasons why App Service Certificate is not renewable at the current moment. AppServiceCertificateNotRenewableReasons []string `pulumi:"appServiceCertificateNotRenewableReasons"` // true if the certificate should be automatically renewed when it expires; otherwise, false. Defaults to `true`. AutoRenew *bool `pulumi:"autoRenew"` // State of the Key Vault secret. A `certificates` block as defined below. Certificates []CertificateOrderCertificate `pulumi:"certificates"` // Last CSR that was created for this order. Csr *string `pulumi:"csr"` // The Distinguished Name for the App Service Certificate Order. // // > **Note:** Either `csr` or `distinguishedName` must be set - but not both. DistinguishedName *string `pulumi:"distinguishedName"` // Domain verification token. DomainVerificationToken *string `pulumi:"domainVerificationToken"` // Certificate expiration time. ExpirationTime *string `pulumi:"expirationTime"` // Certificate thumbprint intermediate certificate. IntermediateThumbprint *string `pulumi:"intermediateThumbprint"` // Whether the private key is external or not. IsPrivateKeyExternal *bool `pulumi:"isPrivateKeyExternal"` // Certificate key size. Defaults to `2048`. KeySize *int `pulumi:"keySize"` // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Currently the only valid value is `global`. Location *string `pulumi:"location"` // Specifies the name of the certificate. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // Certificate product type, such as `Standard` or `WildCard`. Defaults to `Standard`. ProductType *string `pulumi:"productType"` // The name of the resource group in which to create the certificate. Changing this forces a new resource to be created. ResourceGroupName *string `pulumi:"resourceGroupName"` // Certificate thumbprint for root certificate. RootThumbprint *string `pulumi:"rootThumbprint"` // Certificate thumbprint for signed certificate. SignedCertificateThumbprint *string `pulumi:"signedCertificateThumbprint"` // Current order status. Status *string `pulumi:"status"` // (Optional) A mapping of tags to assign to the resource. Tags map[string]string `pulumi:"tags"` // Duration in years (must be between `1` and `3`). Defaults to `1`. ValidityInYears *int `pulumi:"validityInYears"` } type CertificateOrderState struct { // Reasons why App Service Certificate is not renewable at the current moment. AppServiceCertificateNotRenewableReasons pulumi.StringArrayInput // true if the certificate should be automatically renewed when it expires; otherwise, false. Defaults to `true`. AutoRenew pulumi.BoolPtrInput // State of the Key Vault secret. A `certificates` block as defined below. Certificates CertificateOrderCertificateArrayInput // Last CSR that was created for this order. Csr pulumi.StringPtrInput // The Distinguished Name for the App Service Certificate Order. // // > **Note:** Either `csr` or `distinguishedName` must be set - but not both. DistinguishedName pulumi.StringPtrInput // Domain verification token. DomainVerificationToken pulumi.StringPtrInput // Certificate expiration time. ExpirationTime pulumi.StringPtrInput // Certificate thumbprint intermediate certificate. IntermediateThumbprint pulumi.StringPtrInput // Whether the private key is external or not. IsPrivateKeyExternal pulumi.BoolPtrInput // Certificate key size. Defaults to `2048`. KeySize pulumi.IntPtrInput // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Currently the only valid value is `global`. Location pulumi.StringPtrInput // Specifies the name of the certificate. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // Certificate product type, such as `Standard` or `WildCard`. Defaults to `Standard`. ProductType pulumi.StringPtrInput // The name of the resource group in which to create the certificate. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringPtrInput // Certificate thumbprint for root certificate. RootThumbprint pulumi.StringPtrInput // Certificate thumbprint for signed certificate. SignedCertificateThumbprint pulumi.StringPtrInput // Current order status. Status pulumi.StringPtrInput // (Optional) A mapping of tags to assign to the resource. Tags pulumi.StringMapInput // Duration in years (must be between `1` and `3`). Defaults to `1`. ValidityInYears pulumi.IntPtrInput } func (CertificateOrderState) ElementType() reflect.Type { return reflect.TypeOf((*certificateOrderState)(nil)).Elem() } type certificateOrderArgs struct { // true if the certificate should be automatically renewed when it expires; otherwise, false. Defaults to `true`. AutoRenew *bool `pulumi:"autoRenew"` // Last CSR that was created for this order. Csr *string `pulumi:"csr"` // The Distinguished Name for the App Service Certificate Order. // // > **Note:** Either `csr` or `distinguishedName` must be set - but not both. DistinguishedName *string `pulumi:"distinguishedName"` // Certificate key size. Defaults to `2048`. KeySize *int `pulumi:"keySize"` // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Currently the only valid value is `global`. Location *string `pulumi:"location"` // Specifies the name of the certificate. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // Certificate product type, such as `Standard` or `WildCard`. Defaults to `Standard`. ProductType *string `pulumi:"productType"` // The name of the resource group in which to create the certificate. Changing this forces a new resource to be created. ResourceGroupName string `pulumi:"resourceGroupName"` // (Optional) A mapping of tags to assign to the resource. Tags map[string]string `pulumi:"tags"` // Duration in years (must be between `1` and `3`). Defaults to `1`. ValidityInYears *int `pulumi:"validityInYears"` } // The set of arguments for constructing a CertificateOrder resource. type CertificateOrderArgs struct { // true if the certificate should be automatically renewed when it expires; otherwise, false. Defaults to `true`. AutoRenew pulumi.BoolPtrInput // Last CSR that was created for this order. Csr pulumi.StringPtrInput // The Distinguished Name for the App Service Certificate Order. // // > **Note:** Either `csr` or `distinguishedName` must be set - but not both. DistinguishedName pulumi.StringPtrInput // Certificate key size. Defaults to `2048`. KeySize pulumi.IntPtrInput // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Currently the only valid value is `global`. Location pulumi.StringPtrInput // Specifies the name of the certificate. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // Certificate product type, such as `Standard` or `WildCard`. Defaults to `Standard`. ProductType pulumi.StringPtrInput // The name of the resource group in which to create the certificate. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringInput // (Optional) A mapping of tags to assign to the resource. Tags pulumi.StringMapInput // Duration in years (must be between `1` and `3`). Defaults to `1`. ValidityInYears pulumi.IntPtrInput } func (CertificateOrderArgs) ElementType() reflect.Type { return reflect.TypeOf((*certificateOrderArgs)(nil)).Elem() } type CertificateOrderInput interface { pulumi.Input ToCertificateOrderOutput() CertificateOrderOutput ToCertificateOrderOutputWithContext(ctx context.Context) CertificateOrderOutput } func (*CertificateOrder) ElementType() reflect.Type { return reflect.TypeOf((**CertificateOrder)(nil)).Elem() } func (i *CertificateOrder) ToCertificateOrderOutput() CertificateOrderOutput { return i.ToCertificateOrderOutputWithContext(context.Background()) } func (i *CertificateOrder) ToCertificateOrderOutputWithContext(ctx context.Context) CertificateOrderOutput { return pulumi.ToOutputWithContext(ctx, i).(CertificateOrderOutput) } // CertificateOrderArrayInput is an input type that accepts CertificateOrderArray and CertificateOrderArrayOutput values. // You can construct a concrete instance of `CertificateOrderArrayInput` via: // // CertificateOrderArray{ CertificateOrderArgs{...} } type CertificateOrderArrayInput interface { pulumi.Input ToCertificateOrderArrayOutput() CertificateOrderArrayOutput ToCertificateOrderArrayOutputWithContext(context.Context) CertificateOrderArrayOutput } type CertificateOrderArray []CertificateOrderInput func (CertificateOrderArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*CertificateOrder)(nil)).Elem() } func (i CertificateOrderArray) ToCertificateOrderArrayOutput() CertificateOrderArrayOutput { return i.ToCertificateOrderArrayOutputWithContext(context.Background()) } func (i CertificateOrderArray) ToCertificateOrderArrayOutputWithContext(ctx context.Context) CertificateOrderArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(CertificateOrderArrayOutput) } // CertificateOrderMapInput is an input type that accepts CertificateOrderMap and CertificateOrderMapOutput values. // You can construct a concrete instance of `CertificateOrderMapInput` via: // // CertificateOrderMap{ "key": CertificateOrderArgs{...} } type CertificateOrderMapInput interface { pulumi.Input ToCertificateOrderMapOutput() CertificateOrderMapOutput ToCertificateOrderMapOutputWithContext(context.Context) CertificateOrderMapOutput } type CertificateOrderMap map[string]CertificateOrderInput func (CertificateOrderMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*CertificateOrder)(nil)).Elem() } func (i CertificateOrderMap) ToCertificateOrderMapOutput() CertificateOrderMapOutput { return i.ToCertificateOrderMapOutputWithContext(context.Background()) } func (i CertificateOrderMap) ToCertificateOrderMapOutputWithContext(ctx context.Context) CertificateOrderMapOutput { return pulumi.ToOutputWithContext(ctx, i).(CertificateOrderMapOutput) } type CertificateOrderOutput struct{ *pulumi.OutputState } func (CertificateOrderOutput) ElementType() reflect.Type { return reflect.TypeOf((**CertificateOrder)(nil)).Elem() } func (o CertificateOrderOutput) ToCertificateOrderOutput() CertificateOrderOutput { return o } func (o CertificateOrderOutput) ToCertificateOrderOutputWithContext(ctx context.Context) CertificateOrderOutput { return o } // Reasons why App Service Certificate is not renewable at the current moment. func (o CertificateOrderOutput) AppServiceCertificateNotRenewableReasons() pulumi.StringArrayOutput { return o.ApplyT(func(v *CertificateOrder) pulumi.StringArrayOutput { return v.AppServiceCertificateNotRenewableReasons }).(pulumi.StringArrayOutput) } // true if the certificate should be automatically renewed when it expires; otherwise, false. Defaults to `true`. func (o CertificateOrderOutput) AutoRenew() pulumi.BoolPtrOutput { return o.ApplyT(func(v *CertificateOrder) pulumi.BoolPtrOutput { return v.AutoRenew }).(pulumi.BoolPtrOutput) } // State of the Key Vault secret. A `certificates` block as defined below. func (o CertificateOrderOutput) Certificates() CertificateOrderCertificateArrayOutput { return o.ApplyT(func(v *CertificateOrder) CertificateOrderCertificateArrayOutput { return v.Certificates }).(CertificateOrderCertificateArrayOutput) } // Last CSR that was created for this order. func (o CertificateOrderOutput) Csr() pulumi.StringOutput { return o.ApplyT(func(v *CertificateOrder) pulumi.StringOutput { return v.Csr }).(pulumi.StringOutput) } // The Distinguished Name for the App Service Certificate Order. // // > **Note:** Either `csr` or `distinguishedName` must be set - but not both. func (o CertificateOrderOutput) DistinguishedName() pulumi.StringOutput { return o.ApplyT(func(v *CertificateOrder) pulumi.StringOutput { return v.DistinguishedName }).(pulumi.StringOutput) } // Domain verification token. func (o CertificateOrderOutput) DomainVerificationToken() pulumi.StringOutput { return o.ApplyT(func(v *CertificateOrder) pulumi.StringOutput { return v.DomainVerificationToken }).(pulumi.StringOutput) } // Certificate expiration time. func (o CertificateOrderOutput) ExpirationTime() pulumi.StringOutput { return o.ApplyT(func(v *CertificateOrder) pulumi.StringOutput { return v.ExpirationTime }).(pulumi.StringOutput) } // Certificate thumbprint intermediate certificate. func (o CertificateOrderOutput) IntermediateThumbprint() pulumi.StringOutput { return o.ApplyT(func(v *CertificateOrder) pulumi.StringOutput { return v.IntermediateThumbprint }).(pulumi.StringOutput) } // Whether the private key is external or not. func (o CertificateOrderOutput) IsPrivateKeyExternal() pulumi.BoolOutput { return o.ApplyT(func(v *CertificateOrder) pulumi.BoolOutput { return v.IsPrivateKeyExternal }).(pulumi.BoolOutput) } // Certificate key size. Defaults to `2048`. func (o CertificateOrderOutput) KeySize() pulumi.IntPtrOutput { return o.ApplyT(func(v *CertificateOrder) pulumi.IntPtrOutput { return v.KeySize }).(pulumi.IntPtrOutput) } // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Currently the only valid value is `global`. func (o CertificateOrderOutput) Location() pulumi.StringOutput { return o.ApplyT(func(v *CertificateOrder) pulumi.StringOutput { return v.Location }).(pulumi.StringOutput) } // Specifies the name of the certificate. Changing this forces a new resource to be created. func (o CertificateOrderOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *CertificateOrder) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // Certificate product type, such as `Standard` or `WildCard`. Defaults to `Standard`. func (o CertificateOrderOutput) ProductType() pulumi.StringPtrOutput { return o.ApplyT(func(v *CertificateOrder) pulumi.StringPtrOutput { return v.ProductType }).(pulumi.StringPtrOutput) } // The name of the resource group in which to create the certificate. Changing this forces a new resource to be created. func (o CertificateOrderOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v *CertificateOrder) pulumi.StringOutput { return v.ResourceGroupName }).(pulumi.StringOutput) } // Certificate thumbprint for root certificate. func (o CertificateOrderOutput) RootThumbprint() pulumi.StringOutput { return o.ApplyT(func(v *CertificateOrder) pulumi.StringOutput { return v.RootThumbprint }).(pulumi.StringOutput) } // Certificate thumbprint for signed certificate. func (o CertificateOrderOutput) SignedCertificateThumbprint() pulumi.StringOutput { return o.ApplyT(func(v *CertificateOrder) pulumi.StringOutput { return v.SignedCertificateThumbprint }).(pulumi.StringOutput) } // Current order status. func (o CertificateOrderOutput) Status() pulumi.StringOutput { return o.ApplyT(func(v *CertificateOrder) pulumi.StringOutput { return v.Status }).(pulumi.StringOutput) } // (Optional) A mapping of tags to assign to the resource. func (o CertificateOrderOutput) Tags() pulumi.StringMapOutput { return o.ApplyT(func(v *CertificateOrder) pulumi.StringMapOutput { return v.Tags }).(pulumi.StringMapOutput) } // Duration in years (must be between `1` and `3`). Defaults to `1`. func (o CertificateOrderOutput) ValidityInYears() pulumi.IntPtrOutput { return o.ApplyT(func(v *CertificateOrder) pulumi.IntPtrOutput { return v.ValidityInYears }).(pulumi.IntPtrOutput) } type CertificateOrderArrayOutput struct{ *pulumi.OutputState } func (CertificateOrderArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*CertificateOrder)(nil)).Elem() } func (o CertificateOrderArrayOutput) ToCertificateOrderArrayOutput() CertificateOrderArrayOutput { return o } func (o CertificateOrderArrayOutput) ToCertificateOrderArrayOutputWithContext(ctx context.Context) CertificateOrderArrayOutput { return o } func (o CertificateOrderArrayOutput) Index(i pulumi.IntInput) CertificateOrderOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *CertificateOrder { return vs[0].([]*CertificateOrder)[vs[1].(int)] }).(CertificateOrderOutput) } type CertificateOrderMapOutput struct{ *pulumi.OutputState } func (CertificateOrderMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*CertificateOrder)(nil)).Elem() } func (o CertificateOrderMapOutput) ToCertificateOrderMapOutput() CertificateOrderMapOutput { return o } func (o CertificateOrderMapOutput) ToCertificateOrderMapOutputWithContext(ctx context.Context) CertificateOrderMapOutput { return o } func (o CertificateOrderMapOutput) MapIndex(k pulumi.StringInput) CertificateOrderOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *CertificateOrder { return vs[0].(map[string]*CertificateOrder)[vs[1].(string)] }).(CertificateOrderOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*CertificateOrderInput)(nil)).Elem(), &CertificateOrder{}) pulumi.RegisterInputType(reflect.TypeOf((*CertificateOrderArrayInput)(nil)).Elem(), CertificateOrderArray{}) pulumi.RegisterInputType(reflect.TypeOf((*CertificateOrderMapInput)(nil)).Elem(), CertificateOrderMap{}) pulumi.RegisterOutputType(CertificateOrderOutput{}) pulumi.RegisterOutputType(CertificateOrderArrayOutput{}) pulumi.RegisterOutputType(CertificateOrderMapOutput{}) }
go
Apache-2.0
b66e1472775a89cca43f5050fef806854a7c3fa3
2026-01-07T09:44:27.619514Z
false
pulumi/pulumi-azure
https://github.com/pulumi/pulumi-azure/blob/b66e1472775a89cca43f5050fef806854a7c3fa3/sdk/go/azure/appservice/slotVirtualNetworkSwiftConnection.go
sdk/go/azure/appservice/slotVirtualNetworkSwiftConnection.go
// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package appservice import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages an App Service Slot's Virtual Network Association (this is for the [Regional VNet Integration](https://docs.microsoft.com/azure/app-service/web-sites-integrate-with-vnet#regional-vnet-integration) which is still in preview). // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/appservice" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/network" // "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-resources"), // Location: pulumi.String("West Europe"), // }) // if err != nil { // return err // } // exampleVirtualNetwork, err := network.NewVirtualNetwork(ctx, "example", &network.VirtualNetworkArgs{ // Name: pulumi.String("example-virtual-network"), // AddressSpaces: pulumi.StringArray{ // pulumi.String("10.0.0.0/16"), // }, // Location: example.Location, // ResourceGroupName: example.Name, // }) // if err != nil { // return err // } // exampleSubnet, err := network.NewSubnet(ctx, "example", &network.SubnetArgs{ // Name: pulumi.String("example-subnet"), // ResourceGroupName: example.Name, // VirtualNetworkName: exampleVirtualNetwork.Name, // AddressPrefixes: pulumi.StringArray{ // pulumi.String("10.0.1.0/24"), // }, // Delegations: network.SubnetDelegationArray{ // &network.SubnetDelegationArgs{ // Name: pulumi.String("example-delegation"), // ServiceDelegation: &network.SubnetDelegationServiceDelegationArgs{ // Name: pulumi.String("Microsoft.Web/serverFarms"), // Actions: pulumi.StringArray{ // pulumi.String("Microsoft.Network/virtualNetworks/subnets/action"), // }, // }, // }, // }, // }) // if err != nil { // return err // } // examplePlan, err := appservice.NewPlan(ctx, "example", &appservice.PlanArgs{ // Name: pulumi.String("example-service-plan"), // Location: example.Location, // ResourceGroupName: example.Name, // Sku: &appservice.PlanSkuArgs{ // Tier: pulumi.String("Standard"), // Size: pulumi.String("S1"), // }, // }) // if err != nil { // return err // } // exampleAppService, err := appservice.NewAppService(ctx, "example", &appservice.AppServiceArgs{ // Name: pulumi.String("example-app-service"), // Location: example.Location, // ResourceGroupName: example.Name, // AppServicePlanId: examplePlan.ID(), // }) // if err != nil { // return err // } // example_staging, err := appservice.NewSlot(ctx, "example-staging", &appservice.SlotArgs{ // Name: pulumi.String("staging"), // AppServiceName: exampleAppService.Name, // Location: example.Location, // ResourceGroupName: example.Name, // AppServicePlanId: examplePlan.ID(), // }) // if err != nil { // return err // } // _, err = appservice.NewSlotVirtualNetworkSwiftConnection(ctx, "example", &appservice.SlotVirtualNetworkSwiftConnectionArgs{ // SlotName: example_staging.Name, // AppServiceId: exampleAppService.ID(), // SubnetId: exampleSubnet.ID(), // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## Import // // App Service Slot Virtual Network Associations can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:appservice/slotVirtualNetworkSwiftConnection:SlotVirtualNetworkSwiftConnection myassociation /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Web/sites/instance1/slots/staging/config/virtualNetwork // ``` type SlotVirtualNetworkSwiftConnection struct { pulumi.CustomResourceState // The ID of the App Service or Function App to associate to the VNet. Changing this forces a new resource to be created. AppServiceId pulumi.StringOutput `pulumi:"appServiceId"` // The name of the App Service Slot or Function App Slot. Changing this forces a new resource to be created. SlotName pulumi.StringOutput `pulumi:"slotName"` // The ID of the subnet the app service will be associated to (the subnet must have a `serviceDelegation` configured for `Microsoft.Web/serverFarms`). SubnetId pulumi.StringOutput `pulumi:"subnetId"` } // NewSlotVirtualNetworkSwiftConnection registers a new resource with the given unique name, arguments, and options. func NewSlotVirtualNetworkSwiftConnection(ctx *pulumi.Context, name string, args *SlotVirtualNetworkSwiftConnectionArgs, opts ...pulumi.ResourceOption) (*SlotVirtualNetworkSwiftConnection, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.AppServiceId == nil { return nil, errors.New("invalid value for required argument 'AppServiceId'") } if args.SlotName == nil { return nil, errors.New("invalid value for required argument 'SlotName'") } if args.SubnetId == nil { return nil, errors.New("invalid value for required argument 'SubnetId'") } opts = internal.PkgResourceDefaultOpts(opts) var resource SlotVirtualNetworkSwiftConnection err := ctx.RegisterResource("azure:appservice/slotVirtualNetworkSwiftConnection:SlotVirtualNetworkSwiftConnection", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetSlotVirtualNetworkSwiftConnection gets an existing SlotVirtualNetworkSwiftConnection 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 GetSlotVirtualNetworkSwiftConnection(ctx *pulumi.Context, name string, id pulumi.IDInput, state *SlotVirtualNetworkSwiftConnectionState, opts ...pulumi.ResourceOption) (*SlotVirtualNetworkSwiftConnection, error) { var resource SlotVirtualNetworkSwiftConnection err := ctx.ReadResource("azure:appservice/slotVirtualNetworkSwiftConnection:SlotVirtualNetworkSwiftConnection", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering SlotVirtualNetworkSwiftConnection resources. type slotVirtualNetworkSwiftConnectionState struct { // The ID of the App Service or Function App to associate to the VNet. Changing this forces a new resource to be created. AppServiceId *string `pulumi:"appServiceId"` // The name of the App Service Slot or Function App Slot. Changing this forces a new resource to be created. SlotName *string `pulumi:"slotName"` // The ID of the subnet the app service will be associated to (the subnet must have a `serviceDelegation` configured for `Microsoft.Web/serverFarms`). SubnetId *string `pulumi:"subnetId"` } type SlotVirtualNetworkSwiftConnectionState struct { // The ID of the App Service or Function App to associate to the VNet. Changing this forces a new resource to be created. AppServiceId pulumi.StringPtrInput // The name of the App Service Slot or Function App Slot. Changing this forces a new resource to be created. SlotName pulumi.StringPtrInput // The ID of the subnet the app service will be associated to (the subnet must have a `serviceDelegation` configured for `Microsoft.Web/serverFarms`). SubnetId pulumi.StringPtrInput } func (SlotVirtualNetworkSwiftConnectionState) ElementType() reflect.Type { return reflect.TypeOf((*slotVirtualNetworkSwiftConnectionState)(nil)).Elem() } type slotVirtualNetworkSwiftConnectionArgs struct { // The ID of the App Service or Function App to associate to the VNet. Changing this forces a new resource to be created. AppServiceId string `pulumi:"appServiceId"` // The name of the App Service Slot or Function App Slot. Changing this forces a new resource to be created. SlotName string `pulumi:"slotName"` // The ID of the subnet the app service will be associated to (the subnet must have a `serviceDelegation` configured for `Microsoft.Web/serverFarms`). SubnetId string `pulumi:"subnetId"` } // The set of arguments for constructing a SlotVirtualNetworkSwiftConnection resource. type SlotVirtualNetworkSwiftConnectionArgs struct { // The ID of the App Service or Function App to associate to the VNet. Changing this forces a new resource to be created. AppServiceId pulumi.StringInput // The name of the App Service Slot or Function App Slot. Changing this forces a new resource to be created. SlotName pulumi.StringInput // The ID of the subnet the app service will be associated to (the subnet must have a `serviceDelegation` configured for `Microsoft.Web/serverFarms`). SubnetId pulumi.StringInput } func (SlotVirtualNetworkSwiftConnectionArgs) ElementType() reflect.Type { return reflect.TypeOf((*slotVirtualNetworkSwiftConnectionArgs)(nil)).Elem() } type SlotVirtualNetworkSwiftConnectionInput interface { pulumi.Input ToSlotVirtualNetworkSwiftConnectionOutput() SlotVirtualNetworkSwiftConnectionOutput ToSlotVirtualNetworkSwiftConnectionOutputWithContext(ctx context.Context) SlotVirtualNetworkSwiftConnectionOutput } func (*SlotVirtualNetworkSwiftConnection) ElementType() reflect.Type { return reflect.TypeOf((**SlotVirtualNetworkSwiftConnection)(nil)).Elem() } func (i *SlotVirtualNetworkSwiftConnection) ToSlotVirtualNetworkSwiftConnectionOutput() SlotVirtualNetworkSwiftConnectionOutput { return i.ToSlotVirtualNetworkSwiftConnectionOutputWithContext(context.Background()) } func (i *SlotVirtualNetworkSwiftConnection) ToSlotVirtualNetworkSwiftConnectionOutputWithContext(ctx context.Context) SlotVirtualNetworkSwiftConnectionOutput { return pulumi.ToOutputWithContext(ctx, i).(SlotVirtualNetworkSwiftConnectionOutput) } // SlotVirtualNetworkSwiftConnectionArrayInput is an input type that accepts SlotVirtualNetworkSwiftConnectionArray and SlotVirtualNetworkSwiftConnectionArrayOutput values. // You can construct a concrete instance of `SlotVirtualNetworkSwiftConnectionArrayInput` via: // // SlotVirtualNetworkSwiftConnectionArray{ SlotVirtualNetworkSwiftConnectionArgs{...} } type SlotVirtualNetworkSwiftConnectionArrayInput interface { pulumi.Input ToSlotVirtualNetworkSwiftConnectionArrayOutput() SlotVirtualNetworkSwiftConnectionArrayOutput ToSlotVirtualNetworkSwiftConnectionArrayOutputWithContext(context.Context) SlotVirtualNetworkSwiftConnectionArrayOutput } type SlotVirtualNetworkSwiftConnectionArray []SlotVirtualNetworkSwiftConnectionInput func (SlotVirtualNetworkSwiftConnectionArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*SlotVirtualNetworkSwiftConnection)(nil)).Elem() } func (i SlotVirtualNetworkSwiftConnectionArray) ToSlotVirtualNetworkSwiftConnectionArrayOutput() SlotVirtualNetworkSwiftConnectionArrayOutput { return i.ToSlotVirtualNetworkSwiftConnectionArrayOutputWithContext(context.Background()) } func (i SlotVirtualNetworkSwiftConnectionArray) ToSlotVirtualNetworkSwiftConnectionArrayOutputWithContext(ctx context.Context) SlotVirtualNetworkSwiftConnectionArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(SlotVirtualNetworkSwiftConnectionArrayOutput) } // SlotVirtualNetworkSwiftConnectionMapInput is an input type that accepts SlotVirtualNetworkSwiftConnectionMap and SlotVirtualNetworkSwiftConnectionMapOutput values. // You can construct a concrete instance of `SlotVirtualNetworkSwiftConnectionMapInput` via: // // SlotVirtualNetworkSwiftConnectionMap{ "key": SlotVirtualNetworkSwiftConnectionArgs{...} } type SlotVirtualNetworkSwiftConnectionMapInput interface { pulumi.Input ToSlotVirtualNetworkSwiftConnectionMapOutput() SlotVirtualNetworkSwiftConnectionMapOutput ToSlotVirtualNetworkSwiftConnectionMapOutputWithContext(context.Context) SlotVirtualNetworkSwiftConnectionMapOutput } type SlotVirtualNetworkSwiftConnectionMap map[string]SlotVirtualNetworkSwiftConnectionInput func (SlotVirtualNetworkSwiftConnectionMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*SlotVirtualNetworkSwiftConnection)(nil)).Elem() } func (i SlotVirtualNetworkSwiftConnectionMap) ToSlotVirtualNetworkSwiftConnectionMapOutput() SlotVirtualNetworkSwiftConnectionMapOutput { return i.ToSlotVirtualNetworkSwiftConnectionMapOutputWithContext(context.Background()) } func (i SlotVirtualNetworkSwiftConnectionMap) ToSlotVirtualNetworkSwiftConnectionMapOutputWithContext(ctx context.Context) SlotVirtualNetworkSwiftConnectionMapOutput { return pulumi.ToOutputWithContext(ctx, i).(SlotVirtualNetworkSwiftConnectionMapOutput) } type SlotVirtualNetworkSwiftConnectionOutput struct{ *pulumi.OutputState } func (SlotVirtualNetworkSwiftConnectionOutput) ElementType() reflect.Type { return reflect.TypeOf((**SlotVirtualNetworkSwiftConnection)(nil)).Elem() } func (o SlotVirtualNetworkSwiftConnectionOutput) ToSlotVirtualNetworkSwiftConnectionOutput() SlotVirtualNetworkSwiftConnectionOutput { return o } func (o SlotVirtualNetworkSwiftConnectionOutput) ToSlotVirtualNetworkSwiftConnectionOutputWithContext(ctx context.Context) SlotVirtualNetworkSwiftConnectionOutput { return o } // The ID of the App Service or Function App to associate to the VNet. Changing this forces a new resource to be created. func (o SlotVirtualNetworkSwiftConnectionOutput) AppServiceId() pulumi.StringOutput { return o.ApplyT(func(v *SlotVirtualNetworkSwiftConnection) pulumi.StringOutput { return v.AppServiceId }).(pulumi.StringOutput) } // The name of the App Service Slot or Function App Slot. Changing this forces a new resource to be created. func (o SlotVirtualNetworkSwiftConnectionOutput) SlotName() pulumi.StringOutput { return o.ApplyT(func(v *SlotVirtualNetworkSwiftConnection) pulumi.StringOutput { return v.SlotName }).(pulumi.StringOutput) } // The ID of the subnet the app service will be associated to (the subnet must have a `serviceDelegation` configured for `Microsoft.Web/serverFarms`). func (o SlotVirtualNetworkSwiftConnectionOutput) SubnetId() pulumi.StringOutput { return o.ApplyT(func(v *SlotVirtualNetworkSwiftConnection) pulumi.StringOutput { return v.SubnetId }).(pulumi.StringOutput) } type SlotVirtualNetworkSwiftConnectionArrayOutput struct{ *pulumi.OutputState } func (SlotVirtualNetworkSwiftConnectionArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*SlotVirtualNetworkSwiftConnection)(nil)).Elem() } func (o SlotVirtualNetworkSwiftConnectionArrayOutput) ToSlotVirtualNetworkSwiftConnectionArrayOutput() SlotVirtualNetworkSwiftConnectionArrayOutput { return o } func (o SlotVirtualNetworkSwiftConnectionArrayOutput) ToSlotVirtualNetworkSwiftConnectionArrayOutputWithContext(ctx context.Context) SlotVirtualNetworkSwiftConnectionArrayOutput { return o } func (o SlotVirtualNetworkSwiftConnectionArrayOutput) Index(i pulumi.IntInput) SlotVirtualNetworkSwiftConnectionOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *SlotVirtualNetworkSwiftConnection { return vs[0].([]*SlotVirtualNetworkSwiftConnection)[vs[1].(int)] }).(SlotVirtualNetworkSwiftConnectionOutput) } type SlotVirtualNetworkSwiftConnectionMapOutput struct{ *pulumi.OutputState } func (SlotVirtualNetworkSwiftConnectionMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*SlotVirtualNetworkSwiftConnection)(nil)).Elem() } func (o SlotVirtualNetworkSwiftConnectionMapOutput) ToSlotVirtualNetworkSwiftConnectionMapOutput() SlotVirtualNetworkSwiftConnectionMapOutput { return o } func (o SlotVirtualNetworkSwiftConnectionMapOutput) ToSlotVirtualNetworkSwiftConnectionMapOutputWithContext(ctx context.Context) SlotVirtualNetworkSwiftConnectionMapOutput { return o } func (o SlotVirtualNetworkSwiftConnectionMapOutput) MapIndex(k pulumi.StringInput) SlotVirtualNetworkSwiftConnectionOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *SlotVirtualNetworkSwiftConnection { return vs[0].(map[string]*SlotVirtualNetworkSwiftConnection)[vs[1].(string)] }).(SlotVirtualNetworkSwiftConnectionOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*SlotVirtualNetworkSwiftConnectionInput)(nil)).Elem(), &SlotVirtualNetworkSwiftConnection{}) pulumi.RegisterInputType(reflect.TypeOf((*SlotVirtualNetworkSwiftConnectionArrayInput)(nil)).Elem(), SlotVirtualNetworkSwiftConnectionArray{}) pulumi.RegisterInputType(reflect.TypeOf((*SlotVirtualNetworkSwiftConnectionMapInput)(nil)).Elem(), SlotVirtualNetworkSwiftConnectionMap{}) pulumi.RegisterOutputType(SlotVirtualNetworkSwiftConnectionOutput{}) pulumi.RegisterOutputType(SlotVirtualNetworkSwiftConnectionArrayOutput{}) pulumi.RegisterOutputType(SlotVirtualNetworkSwiftConnectionMapOutput{}) }
go
Apache-2.0
b66e1472775a89cca43f5050fef806854a7c3fa3
2026-01-07T09:44:27.619514Z
false
pulumi/pulumi-azure
https://github.com/pulumi/pulumi-azure/blob/b66e1472775a89cca43f5050fef806854a7c3fa3/sdk/go/azure/appservice/windowsFunctionApp.go
sdk/go/azure/appservice/windowsFunctionApp.go
// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package appservice import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a Windows Function App. // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/appservice" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/storage" // "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-resources"), // Location: pulumi.String("West Europe"), // }) // if err != nil { // return err // } // exampleAccount, err := storage.NewAccount(ctx, "example", &storage.AccountArgs{ // Name: pulumi.String("windowsfunctionappsa"), // ResourceGroupName: example.Name, // Location: example.Location, // AccountTier: pulumi.String("Standard"), // AccountReplicationType: pulumi.String("LRS"), // }) // if err != nil { // return err // } // exampleServicePlan, err := appservice.NewServicePlan(ctx, "example", &appservice.ServicePlanArgs{ // Name: pulumi.String("example-app-service-plan"), // ResourceGroupName: example.Name, // Location: example.Location, // OsType: pulumi.String("Windows"), // SkuName: pulumi.String("Y1"), // }) // if err != nil { // return err // } // _, err = appservice.NewWindowsFunctionApp(ctx, "example", &appservice.WindowsFunctionAppArgs{ // Name: pulumi.String("example-windows-function-app"), // ResourceGroupName: example.Name, // Location: example.Location, // StorageAccountName: exampleAccount.Name, // StorageAccountAccessKey: exampleAccount.PrimaryAccessKey, // ServicePlanId: exampleServicePlan.ID(), // SiteConfig: &appservice.WindowsFunctionAppSiteConfigArgs{}, // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## API Providers // // <!-- This section is generated, changes will be overwritten --> // This resource uses the following Azure API Providers: // // * `Microsoft.Web` - 2023-12-01, 2023-01-01 // // ## Import // // Windows Function Apps can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:appservice/windowsFunctionApp:WindowsFunctionApp example /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/resGroup1/providers/Microsoft.Web/sites/site1 // ``` type WindowsFunctionApp struct { pulumi.CustomResourceState // A map of key-value pairs for [App Settings](https://docs.microsoft.com/en-us/azure/azure-functions/functions-app-settings) and custom values. AppSettings pulumi.StringMapOutput `pulumi:"appSettings"` // A `authSettings` block as defined below. AuthSettings WindowsFunctionAppAuthSettingsPtrOutput `pulumi:"authSettings"` // A `authSettingsV2` block as defined below. AuthSettingsV2 WindowsFunctionAppAuthSettingsV2PtrOutput `pulumi:"authSettingsV2"` // A `backup` block as defined below. Backup WindowsFunctionAppBackupPtrOutput `pulumi:"backup"` // Should built in logging be enabled. Configures `AzureWebJobsDashboard` app setting based on the configured storage setting. Defaults to `true`. BuiltinLoggingEnabled pulumi.BoolPtrOutput `pulumi:"builtinLoggingEnabled"` // Should the function app use Client Certificates. ClientCertificateEnabled pulumi.BoolPtrOutput `pulumi:"clientCertificateEnabled"` // Paths to exclude when using client certificates, separated by ; ClientCertificateExclusionPaths pulumi.StringPtrOutput `pulumi:"clientCertificateExclusionPaths"` // The mode of the Function App's client certificates requirement for incoming requests. Possible values are `Required`, `Optional`, and `OptionalInteractiveUser`. Defaults to `Optional`. ClientCertificateMode pulumi.StringPtrOutput `pulumi:"clientCertificateMode"` // One or more `connectionString` blocks as defined below. ConnectionStrings WindowsFunctionAppConnectionStringArrayOutput `pulumi:"connectionStrings"` // Should Content Share Settings be disabled. Defaults to `false`. ContentShareForceDisabled pulumi.BoolPtrOutput `pulumi:"contentShareForceDisabled"` // The identifier used by App Service to perform domain ownership verification via DNS TXT record. CustomDomainVerificationId pulumi.StringOutput `pulumi:"customDomainVerificationId"` // The amount of memory in gigabyte-seconds that your application is allowed to consume per day. Setting this value only affects function apps under the consumption plan. Defaults to `0`. DailyMemoryTimeQuota pulumi.IntPtrOutput `pulumi:"dailyMemoryTimeQuota"` // The default hostname of the Windows Function App. DefaultHostname pulumi.StringOutput `pulumi:"defaultHostname"` // Is the Function App enabled? Defaults to `true`. Enabled pulumi.BoolPtrOutput `pulumi:"enabled"` // Should the default FTP Basic Authentication publishing profile be enabled. Defaults to `true`. FtpPublishBasicAuthenticationEnabled pulumi.BoolPtrOutput `pulumi:"ftpPublishBasicAuthenticationEnabled"` // The runtime version associated with the Function App. Defaults to `~4`. FunctionsExtensionVersion pulumi.StringPtrOutput `pulumi:"functionsExtensionVersion"` // The ID of the App Service Environment used by Function App. HostingEnvironmentId pulumi.StringOutput `pulumi:"hostingEnvironmentId"` // Can the Function App only be accessed via HTTPS?. Defaults to `false`. HttpsOnly pulumi.BoolOutput `pulumi:"httpsOnly"` // A `identity` block as defined below. Identity WindowsFunctionAppIdentityPtrOutput `pulumi:"identity"` // The User Assigned Identity ID used for accessing KeyVault secrets. The identity must be assigned to the application in the `identity` block. [For more information see - Access vaults with a user-assigned identity](https://docs.microsoft.com/azure/app-service/app-service-key-vault-references#access-vaults-with-a-user-assigned-identity) KeyVaultReferenceIdentityId pulumi.StringOutput `pulumi:"keyVaultReferenceIdentityId"` // The Kind value for this Windows Function App. Kind pulumi.StringOutput `pulumi:"kind"` // The Azure Region where the Windows Function App should exist. Changing this forces a new Windows Function App to be created. Location pulumi.StringOutput `pulumi:"location"` // The name which should be used for this Windows Function App. Changing this forces a new Windows Function App to be created. Limit the function name to 32 characters to avoid naming collisions. For more information about [Function App naming rule](https://docs.microsoft.com/en-us/azure/azure-resource-manager/management/resource-name-rules#microsoftweb) and [Host ID Collisions](https://github.com/Azure/azure-functions-host/wiki/Host-IDs#host-id-collisions) Name pulumi.StringOutput `pulumi:"name"` // A list of outbound IP addresses. For example `["52.23.25.3", "52.143.43.12"]` OutboundIpAddressLists pulumi.StringArrayOutput `pulumi:"outboundIpAddressLists"` // A comma separated list of outbound IP addresses as a string. For example `52.23.25.3,52.143.43.12`. OutboundIpAddresses pulumi.StringOutput `pulumi:"outboundIpAddresses"` // A list of possible outbound IP addresses, not all of which are necessarily in use. This is a superset of `outboundIpAddressList`. For example `["52.23.25.3", "52.143.43.12"]`. PossibleOutboundIpAddressLists pulumi.StringArrayOutput `pulumi:"possibleOutboundIpAddressLists"` // A comma separated list of possible outbound IP addresses as a string. For example `52.23.25.3,52.143.43.12,52.143.43.17`. This is a superset of `outboundIpAddresses`. PossibleOutboundIpAddresses pulumi.StringOutput `pulumi:"possibleOutboundIpAddresses"` // Should public network access be enabled for the Function App. Defaults to `true`. PublicNetworkAccessEnabled pulumi.BoolPtrOutput `pulumi:"publicNetworkAccessEnabled"` // The name of the Resource Group where the Windows Function App should exist. Changing this forces a new Windows Function App to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // The ID of the App Service Plan within which to create this Function App. ServicePlanId pulumi.StringOutput `pulumi:"servicePlanId"` // A `siteConfig` block as defined below. SiteConfig WindowsFunctionAppSiteConfigOutput `pulumi:"siteConfig"` // A `siteCredential` block as defined below. SiteCredentials WindowsFunctionAppSiteCredentialArrayOutput `pulumi:"siteCredentials"` // A `stickySettings` block as defined below. StickySettings WindowsFunctionAppStickySettingsPtrOutput `pulumi:"stickySettings"` // The access key which will be used to access the backend storage account for the Function App. Conflicts with `storageUsesManagedIdentity`. StorageAccountAccessKey pulumi.StringPtrOutput `pulumi:"storageAccountAccessKey"` // The backend storage account name which will be used by this Function App. StorageAccountName pulumi.StringPtrOutput `pulumi:"storageAccountName"` // One or more `storageAccount` blocks as defined below. StorageAccounts WindowsFunctionAppStorageAccountArrayOutput `pulumi:"storageAccounts"` // The Key Vault Secret ID, optionally including version, that contains the Connection String to connect to the storage account for this Function App. // // > **Note:** `storageKeyVaultSecretId` cannot be used with `storageAccountName`. // // > **Note:** `storageKeyVaultSecretId` used without a version will use the latest version of the secret, however, the service can take up to 24h to pick up a rotation of the latest version. See the [official docs](https://docs.microsoft.com/azure/app-service/app-service-key-vault-references#rotation) for more information. StorageKeyVaultSecretId pulumi.StringPtrOutput `pulumi:"storageKeyVaultSecretId"` // Should the Function App use Managed Identity to access the storage account. Conflicts with `storageAccountAccessKey`. // // > **Note:** One of `storageAccountAccessKey` or `storageUsesManagedIdentity` must be specified when using `storageAccountName`. StorageUsesManagedIdentity pulumi.BoolPtrOutput `pulumi:"storageUsesManagedIdentity"` // A mapping of tags which should be assigned to the Windows Function App. Tags pulumi.StringMapOutput `pulumi:"tags"` // Whether backup and restore operations over the linked virtual network are enabled. Defaults to `false`. VirtualNetworkBackupRestoreEnabled pulumi.BoolPtrOutput `pulumi:"virtualNetworkBackupRestoreEnabled"` VirtualNetworkSubnetId pulumi.StringPtrOutput `pulumi:"virtualNetworkSubnetId"` // Specifies whether traffic for the image pull should be routed over virtual network. Defaults to `false`. // // > **Note:** The feature can also be enabled via the app setting `WEBSITE_PULL_IMAGE_OVER_VNET`. The Setting is enabled by default for app running in the App Service Environment. VnetImagePullEnabled pulumi.BoolPtrOutput `pulumi:"vnetImagePullEnabled"` // Should the default WebDeploy Basic Authentication publishing credentials enabled. Defaults to `true`. // // > **Note:** Setting this value to true will disable the ability to use `zipDeployFile` which currently relies on the default publishing profile. WebdeployPublishBasicAuthenticationEnabled pulumi.BoolPtrOutput `pulumi:"webdeployPublishBasicAuthenticationEnabled"` // The local path and filename of the Zip packaged application to deploy to this Windows Function App. // // > **Note:** Using this value requires `WEBSITE_RUN_FROM_PACKAGE=1` to be set on the App in `appSettings`. Refer to the [Azure docs](https://learn.microsoft.com/en-us/azure/azure-functions/functions-deployment-technologies) for further details. ZipDeployFile pulumi.StringOutput `pulumi:"zipDeployFile"` } // NewWindowsFunctionApp registers a new resource with the given unique name, arguments, and options. func NewWindowsFunctionApp(ctx *pulumi.Context, name string, args *WindowsFunctionAppArgs, opts ...pulumi.ResourceOption) (*WindowsFunctionApp, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.ResourceGroupName == nil { return nil, errors.New("invalid value for required argument 'ResourceGroupName'") } if args.ServicePlanId == nil { return nil, errors.New("invalid value for required argument 'ServicePlanId'") } if args.SiteConfig == nil { return nil, errors.New("invalid value for required argument 'SiteConfig'") } if args.StorageAccountAccessKey != nil { args.StorageAccountAccessKey = pulumi.ToSecret(args.StorageAccountAccessKey).(pulumi.StringPtrInput) } secrets := pulumi.AdditionalSecretOutputs([]string{ "customDomainVerificationId", "siteCredentials", "storageAccountAccessKey", }) opts = append(opts, secrets) opts = internal.PkgResourceDefaultOpts(opts) var resource WindowsFunctionApp err := ctx.RegisterResource("azure:appservice/windowsFunctionApp:WindowsFunctionApp", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetWindowsFunctionApp gets an existing WindowsFunctionApp 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 GetWindowsFunctionApp(ctx *pulumi.Context, name string, id pulumi.IDInput, state *WindowsFunctionAppState, opts ...pulumi.ResourceOption) (*WindowsFunctionApp, error) { var resource WindowsFunctionApp err := ctx.ReadResource("azure:appservice/windowsFunctionApp:WindowsFunctionApp", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering WindowsFunctionApp resources. type windowsFunctionAppState struct { // A map of key-value pairs for [App Settings](https://docs.microsoft.com/en-us/azure/azure-functions/functions-app-settings) and custom values. AppSettings map[string]string `pulumi:"appSettings"` // A `authSettings` block as defined below. AuthSettings *WindowsFunctionAppAuthSettings `pulumi:"authSettings"` // A `authSettingsV2` block as defined below. AuthSettingsV2 *WindowsFunctionAppAuthSettingsV2 `pulumi:"authSettingsV2"` // A `backup` block as defined below. Backup *WindowsFunctionAppBackup `pulumi:"backup"` // Should built in logging be enabled. Configures `AzureWebJobsDashboard` app setting based on the configured storage setting. Defaults to `true`. BuiltinLoggingEnabled *bool `pulumi:"builtinLoggingEnabled"` // Should the function app use Client Certificates. ClientCertificateEnabled *bool `pulumi:"clientCertificateEnabled"` // Paths to exclude when using client certificates, separated by ; ClientCertificateExclusionPaths *string `pulumi:"clientCertificateExclusionPaths"` // The mode of the Function App's client certificates requirement for incoming requests. Possible values are `Required`, `Optional`, and `OptionalInteractiveUser`. Defaults to `Optional`. ClientCertificateMode *string `pulumi:"clientCertificateMode"` // One or more `connectionString` blocks as defined below. ConnectionStrings []WindowsFunctionAppConnectionString `pulumi:"connectionStrings"` // Should Content Share Settings be disabled. Defaults to `false`. ContentShareForceDisabled *bool `pulumi:"contentShareForceDisabled"` // The identifier used by App Service to perform domain ownership verification via DNS TXT record. CustomDomainVerificationId *string `pulumi:"customDomainVerificationId"` // The amount of memory in gigabyte-seconds that your application is allowed to consume per day. Setting this value only affects function apps under the consumption plan. Defaults to `0`. DailyMemoryTimeQuota *int `pulumi:"dailyMemoryTimeQuota"` // The default hostname of the Windows Function App. DefaultHostname *string `pulumi:"defaultHostname"` // Is the Function App enabled? Defaults to `true`. Enabled *bool `pulumi:"enabled"` // Should the default FTP Basic Authentication publishing profile be enabled. Defaults to `true`. FtpPublishBasicAuthenticationEnabled *bool `pulumi:"ftpPublishBasicAuthenticationEnabled"` // The runtime version associated with the Function App. Defaults to `~4`. FunctionsExtensionVersion *string `pulumi:"functionsExtensionVersion"` // The ID of the App Service Environment used by Function App. HostingEnvironmentId *string `pulumi:"hostingEnvironmentId"` // Can the Function App only be accessed via HTTPS?. Defaults to `false`. HttpsOnly *bool `pulumi:"httpsOnly"` // A `identity` block as defined below. Identity *WindowsFunctionAppIdentity `pulumi:"identity"` // The User Assigned Identity ID used for accessing KeyVault secrets. The identity must be assigned to the application in the `identity` block. [For more information see - Access vaults with a user-assigned identity](https://docs.microsoft.com/azure/app-service/app-service-key-vault-references#access-vaults-with-a-user-assigned-identity) KeyVaultReferenceIdentityId *string `pulumi:"keyVaultReferenceIdentityId"` // The Kind value for this Windows Function App. Kind *string `pulumi:"kind"` // The Azure Region where the Windows Function App should exist. Changing this forces a new Windows Function App to be created. Location *string `pulumi:"location"` // The name which should be used for this Windows Function App. Changing this forces a new Windows Function App to be created. Limit the function name to 32 characters to avoid naming collisions. For more information about [Function App naming rule](https://docs.microsoft.com/en-us/azure/azure-resource-manager/management/resource-name-rules#microsoftweb) and [Host ID Collisions](https://github.com/Azure/azure-functions-host/wiki/Host-IDs#host-id-collisions) Name *string `pulumi:"name"` // A list of outbound IP addresses. For example `["52.23.25.3", "52.143.43.12"]` OutboundIpAddressLists []string `pulumi:"outboundIpAddressLists"` // A comma separated list of outbound IP addresses as a string. For example `52.23.25.3,52.143.43.12`. OutboundIpAddresses *string `pulumi:"outboundIpAddresses"` // A list of possible outbound IP addresses, not all of which are necessarily in use. This is a superset of `outboundIpAddressList`. For example `["52.23.25.3", "52.143.43.12"]`. PossibleOutboundIpAddressLists []string `pulumi:"possibleOutboundIpAddressLists"` // A comma separated list of possible outbound IP addresses as a string. For example `52.23.25.3,52.143.43.12,52.143.43.17`. This is a superset of `outboundIpAddresses`. PossibleOutboundIpAddresses *string `pulumi:"possibleOutboundIpAddresses"` // Should public network access be enabled for the Function App. Defaults to `true`. PublicNetworkAccessEnabled *bool `pulumi:"publicNetworkAccessEnabled"` // The name of the Resource Group where the Windows Function App should exist. Changing this forces a new Windows Function App to be created. ResourceGroupName *string `pulumi:"resourceGroupName"` // The ID of the App Service Plan within which to create this Function App. ServicePlanId *string `pulumi:"servicePlanId"` // A `siteConfig` block as defined below. SiteConfig *WindowsFunctionAppSiteConfig `pulumi:"siteConfig"` // A `siteCredential` block as defined below. SiteCredentials []WindowsFunctionAppSiteCredential `pulumi:"siteCredentials"` // A `stickySettings` block as defined below. StickySettings *WindowsFunctionAppStickySettings `pulumi:"stickySettings"` // The access key which will be used to access the backend storage account for the Function App. Conflicts with `storageUsesManagedIdentity`. StorageAccountAccessKey *string `pulumi:"storageAccountAccessKey"` // The backend storage account name which will be used by this Function App. StorageAccountName *string `pulumi:"storageAccountName"` // One or more `storageAccount` blocks as defined below. StorageAccounts []WindowsFunctionAppStorageAccount `pulumi:"storageAccounts"` // The Key Vault Secret ID, optionally including version, that contains the Connection String to connect to the storage account for this Function App. // // > **Note:** `storageKeyVaultSecretId` cannot be used with `storageAccountName`. // // > **Note:** `storageKeyVaultSecretId` used without a version will use the latest version of the secret, however, the service can take up to 24h to pick up a rotation of the latest version. See the [official docs](https://docs.microsoft.com/azure/app-service/app-service-key-vault-references#rotation) for more information. StorageKeyVaultSecretId *string `pulumi:"storageKeyVaultSecretId"` // Should the Function App use Managed Identity to access the storage account. Conflicts with `storageAccountAccessKey`. // // > **Note:** One of `storageAccountAccessKey` or `storageUsesManagedIdentity` must be specified when using `storageAccountName`. StorageUsesManagedIdentity *bool `pulumi:"storageUsesManagedIdentity"` // A mapping of tags which should be assigned to the Windows Function App. Tags map[string]string `pulumi:"tags"` // Whether backup and restore operations over the linked virtual network are enabled. Defaults to `false`. VirtualNetworkBackupRestoreEnabled *bool `pulumi:"virtualNetworkBackupRestoreEnabled"` VirtualNetworkSubnetId *string `pulumi:"virtualNetworkSubnetId"` // Specifies whether traffic for the image pull should be routed over virtual network. Defaults to `false`. // // > **Note:** The feature can also be enabled via the app setting `WEBSITE_PULL_IMAGE_OVER_VNET`. The Setting is enabled by default for app running in the App Service Environment. VnetImagePullEnabled *bool `pulumi:"vnetImagePullEnabled"` // Should the default WebDeploy Basic Authentication publishing credentials enabled. Defaults to `true`. // // > **Note:** Setting this value to true will disable the ability to use `zipDeployFile` which currently relies on the default publishing profile. WebdeployPublishBasicAuthenticationEnabled *bool `pulumi:"webdeployPublishBasicAuthenticationEnabled"` // The local path and filename of the Zip packaged application to deploy to this Windows Function App. // // > **Note:** Using this value requires `WEBSITE_RUN_FROM_PACKAGE=1` to be set on the App in `appSettings`. Refer to the [Azure docs](https://learn.microsoft.com/en-us/azure/azure-functions/functions-deployment-technologies) for further details. ZipDeployFile *string `pulumi:"zipDeployFile"` } type WindowsFunctionAppState struct { // A map of key-value pairs for [App Settings](https://docs.microsoft.com/en-us/azure/azure-functions/functions-app-settings) and custom values. AppSettings pulumi.StringMapInput // A `authSettings` block as defined below. AuthSettings WindowsFunctionAppAuthSettingsPtrInput // A `authSettingsV2` block as defined below. AuthSettingsV2 WindowsFunctionAppAuthSettingsV2PtrInput // A `backup` block as defined below. Backup WindowsFunctionAppBackupPtrInput // Should built in logging be enabled. Configures `AzureWebJobsDashboard` app setting based on the configured storage setting. Defaults to `true`. BuiltinLoggingEnabled pulumi.BoolPtrInput // Should the function app use Client Certificates. ClientCertificateEnabled pulumi.BoolPtrInput // Paths to exclude when using client certificates, separated by ; ClientCertificateExclusionPaths pulumi.StringPtrInput // The mode of the Function App's client certificates requirement for incoming requests. Possible values are `Required`, `Optional`, and `OptionalInteractiveUser`. Defaults to `Optional`. ClientCertificateMode pulumi.StringPtrInput // One or more `connectionString` blocks as defined below. ConnectionStrings WindowsFunctionAppConnectionStringArrayInput // Should Content Share Settings be disabled. Defaults to `false`. ContentShareForceDisabled pulumi.BoolPtrInput // The identifier used by App Service to perform domain ownership verification via DNS TXT record. CustomDomainVerificationId pulumi.StringPtrInput // The amount of memory in gigabyte-seconds that your application is allowed to consume per day. Setting this value only affects function apps under the consumption plan. Defaults to `0`. DailyMemoryTimeQuota pulumi.IntPtrInput // The default hostname of the Windows Function App. DefaultHostname pulumi.StringPtrInput // Is the Function App enabled? Defaults to `true`. Enabled pulumi.BoolPtrInput // Should the default FTP Basic Authentication publishing profile be enabled. Defaults to `true`. FtpPublishBasicAuthenticationEnabled pulumi.BoolPtrInput // The runtime version associated with the Function App. Defaults to `~4`. FunctionsExtensionVersion pulumi.StringPtrInput // The ID of the App Service Environment used by Function App. HostingEnvironmentId pulumi.StringPtrInput // Can the Function App only be accessed via HTTPS?. Defaults to `false`. HttpsOnly pulumi.BoolPtrInput // A `identity` block as defined below. Identity WindowsFunctionAppIdentityPtrInput // The User Assigned Identity ID used for accessing KeyVault secrets. The identity must be assigned to the application in the `identity` block. [For more information see - Access vaults with a user-assigned identity](https://docs.microsoft.com/azure/app-service/app-service-key-vault-references#access-vaults-with-a-user-assigned-identity) KeyVaultReferenceIdentityId pulumi.StringPtrInput // The Kind value for this Windows Function App. Kind pulumi.StringPtrInput // The Azure Region where the Windows Function App should exist. Changing this forces a new Windows Function App to be created. Location pulumi.StringPtrInput // The name which should be used for this Windows Function App. Changing this forces a new Windows Function App to be created. Limit the function name to 32 characters to avoid naming collisions. For more information about [Function App naming rule](https://docs.microsoft.com/en-us/azure/azure-resource-manager/management/resource-name-rules#microsoftweb) and [Host ID Collisions](https://github.com/Azure/azure-functions-host/wiki/Host-IDs#host-id-collisions) Name pulumi.StringPtrInput // A list of outbound IP addresses. For example `["52.23.25.3", "52.143.43.12"]` OutboundIpAddressLists pulumi.StringArrayInput // A comma separated list of outbound IP addresses as a string. For example `52.23.25.3,52.143.43.12`. OutboundIpAddresses pulumi.StringPtrInput // A list of possible outbound IP addresses, not all of which are necessarily in use. This is a superset of `outboundIpAddressList`. For example `["52.23.25.3", "52.143.43.12"]`. PossibleOutboundIpAddressLists pulumi.StringArrayInput // A comma separated list of possible outbound IP addresses as a string. For example `52.23.25.3,52.143.43.12,52.143.43.17`. This is a superset of `outboundIpAddresses`. PossibleOutboundIpAddresses pulumi.StringPtrInput // Should public network access be enabled for the Function App. Defaults to `true`. PublicNetworkAccessEnabled pulumi.BoolPtrInput // The name of the Resource Group where the Windows Function App should exist. Changing this forces a new Windows Function App to be created. ResourceGroupName pulumi.StringPtrInput // The ID of the App Service Plan within which to create this Function App. ServicePlanId pulumi.StringPtrInput // A `siteConfig` block as defined below. SiteConfig WindowsFunctionAppSiteConfigPtrInput // A `siteCredential` block as defined below. SiteCredentials WindowsFunctionAppSiteCredentialArrayInput // A `stickySettings` block as defined below. StickySettings WindowsFunctionAppStickySettingsPtrInput // The access key which will be used to access the backend storage account for the Function App. Conflicts with `storageUsesManagedIdentity`. StorageAccountAccessKey pulumi.StringPtrInput // The backend storage account name which will be used by this Function App. StorageAccountName pulumi.StringPtrInput // One or more `storageAccount` blocks as defined below. StorageAccounts WindowsFunctionAppStorageAccountArrayInput // The Key Vault Secret ID, optionally including version, that contains the Connection String to connect to the storage account for this Function App. // // > **Note:** `storageKeyVaultSecretId` cannot be used with `storageAccountName`. // // > **Note:** `storageKeyVaultSecretId` used without a version will use the latest version of the secret, however, the service can take up to 24h to pick up a rotation of the latest version. See the [official docs](https://docs.microsoft.com/azure/app-service/app-service-key-vault-references#rotation) for more information. StorageKeyVaultSecretId pulumi.StringPtrInput // Should the Function App use Managed Identity to access the storage account. Conflicts with `storageAccountAccessKey`. // // > **Note:** One of `storageAccountAccessKey` or `storageUsesManagedIdentity` must be specified when using `storageAccountName`. StorageUsesManagedIdentity pulumi.BoolPtrInput // A mapping of tags which should be assigned to the Windows Function App. Tags pulumi.StringMapInput // Whether backup and restore operations over the linked virtual network are enabled. Defaults to `false`. VirtualNetworkBackupRestoreEnabled pulumi.BoolPtrInput VirtualNetworkSubnetId pulumi.StringPtrInput // Specifies whether traffic for the image pull should be routed over virtual network. Defaults to `false`. // // > **Note:** The feature can also be enabled via the app setting `WEBSITE_PULL_IMAGE_OVER_VNET`. The Setting is enabled by default for app running in the App Service Environment. VnetImagePullEnabled pulumi.BoolPtrInput // Should the default WebDeploy Basic Authentication publishing credentials enabled. Defaults to `true`. // // > **Note:** Setting this value to true will disable the ability to use `zipDeployFile` which currently relies on the default publishing profile. WebdeployPublishBasicAuthenticationEnabled pulumi.BoolPtrInput // The local path and filename of the Zip packaged application to deploy to this Windows Function App. // // > **Note:** Using this value requires `WEBSITE_RUN_FROM_PACKAGE=1` to be set on the App in `appSettings`. Refer to the [Azure docs](https://learn.microsoft.com/en-us/azure/azure-functions/functions-deployment-technologies) for further details. ZipDeployFile pulumi.StringPtrInput } func (WindowsFunctionAppState) ElementType() reflect.Type { return reflect.TypeOf((*windowsFunctionAppState)(nil)).Elem() } type windowsFunctionAppArgs struct { // A map of key-value pairs for [App Settings](https://docs.microsoft.com/en-us/azure/azure-functions/functions-app-settings) and custom values. AppSettings map[string]string `pulumi:"appSettings"` // A `authSettings` block as defined below. AuthSettings *WindowsFunctionAppAuthSettings `pulumi:"authSettings"` // A `authSettingsV2` block as defined below. AuthSettingsV2 *WindowsFunctionAppAuthSettingsV2 `pulumi:"authSettingsV2"` // A `backup` block as defined below. Backup *WindowsFunctionAppBackup `pulumi:"backup"` // Should built in logging be enabled. Configures `AzureWebJobsDashboard` app setting based on the configured storage setting. Defaults to `true`. BuiltinLoggingEnabled *bool `pulumi:"builtinLoggingEnabled"` // Should the function app use Client Certificates. ClientCertificateEnabled *bool `pulumi:"clientCertificateEnabled"` // Paths to exclude when using client certificates, separated by ; ClientCertificateExclusionPaths *string `pulumi:"clientCertificateExclusionPaths"` // The mode of the Function App's client certificates requirement for incoming requests. Possible values are `Required`, `Optional`, and `OptionalInteractiveUser`. Defaults to `Optional`. ClientCertificateMode *string `pulumi:"clientCertificateMode"` // One or more `connectionString` blocks as defined below. ConnectionStrings []WindowsFunctionAppConnectionString `pulumi:"connectionStrings"` // Should Content Share Settings be disabled. Defaults to `false`. ContentShareForceDisabled *bool `pulumi:"contentShareForceDisabled"` // The amount of memory in gigabyte-seconds that your application is allowed to consume per day. Setting this value only affects function apps under the consumption plan. Defaults to `0`. DailyMemoryTimeQuota *int `pulumi:"dailyMemoryTimeQuota"` // Is the Function App enabled? Defaults to `true`. Enabled *bool `pulumi:"enabled"` // Should the default FTP Basic Authentication publishing profile be enabled. Defaults to `true`.
go
Apache-2.0
b66e1472775a89cca43f5050fef806854a7c3fa3
2026-01-07T09:44:27.619514Z
true
pulumi/pulumi-azure
https://github.com/pulumi/pulumi-azure/blob/b66e1472775a89cca43f5050fef806854a7c3fa3/sdk/go/azure/appservice/hybridConnection.go
sdk/go/azure/appservice/hybridConnection.go
// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package appservice import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages an App Service Hybrid Connection for an existing App Service, Relay and Service Bus. // // !> **NOTE:** This resource has been deprecated in version 5.0 of the provider and will be removed in version 6.0. Please use `appservice.FunctionAppHybridConnection` and `appservice.WebAppHybridConnection` resources instead. // // ## Example Usage // // This example provisions an App Service, a Relay Hybrid Connection, and a Service Bus using their outputs to create the App Service Hybrid Connection. // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/appservice" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/relay" // "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("exampleResourceGroup1"), // Location: pulumi.String("West Europe"), // }) // if err != nil { // return err // } // examplePlan, err := appservice.NewPlan(ctx, "example", &appservice.PlanArgs{ // Name: pulumi.String("exampleAppServicePlan1"), // Location: example.Location, // ResourceGroupName: example.Name, // Sku: &appservice.PlanSkuArgs{ // Tier: pulumi.String("Standard"), // Size: pulumi.String("S1"), // }, // }) // if err != nil { // return err // } // exampleAppService, err := appservice.NewAppService(ctx, "example", &appservice.AppServiceArgs{ // Name: pulumi.String("exampleAppService1"), // Location: example.Location, // ResourceGroupName: example.Name, // AppServicePlanId: examplePlan.ID(), // }) // if err != nil { // return err // } // exampleNamespace, err := relay.NewNamespace(ctx, "example", &relay.NamespaceArgs{ // Name: pulumi.String("exampleRN1"), // Location: example.Location, // ResourceGroupName: example.Name, // SkuName: pulumi.String("Standard"), // }) // if err != nil { // return err // } // exampleHybridConnection, err := relay.NewHybridConnection(ctx, "example", &relay.HybridConnectionArgs{ // Name: pulumi.String("exampleRHC1"), // ResourceGroupName: example.Name, // RelayNamespaceName: exampleNamespace.Name, // UserMetadata: pulumi.String("examplemetadata"), // }) // if err != nil { // return err // } // _, err = appservice.NewHybridConnection(ctx, "example", &appservice.HybridConnectionArgs{ // AppServiceName: exampleAppService.Name, // ResourceGroupName: example.Name, // RelayId: exampleHybridConnection.ID(), // Hostname: pulumi.String("testhostname.example"), // Port: pulumi.Int(8080), // SendKeyName: pulumi.String("exampleSharedAccessKey"), // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## API Providers // // <!-- This section is generated, changes will be overwritten --> // This resource uses the following Azure API Providers: // // * `Microsoft.Relay` - 2021-11-01 // // ## Import // // App Service Hybrid Connections can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:appservice/hybridConnection:HybridConnection example /subscriptions/00000000-0000-0000-0000-00000000000/resourceGroups/exampleResourceGroup1/providers/Microsoft.Web/sites/exampleAppService1/hybridConnectionNamespaces/exampleRN1/relays/exampleRHC1 // ``` type HybridConnection struct { pulumi.CustomResourceState // Specifies the name of the App Service. Changing this forces a new resource to be created. AppServiceName pulumi.StringOutput `pulumi:"appServiceName"` // The hostname of the endpoint. Hostname pulumi.StringOutput `pulumi:"hostname"` // The name of the Relay Namespace. NamespaceName pulumi.StringOutput `pulumi:"namespaceName"` // The port of the endpoint. Port pulumi.IntOutput `pulumi:"port"` // The ID of the Service Bus Relay. Changing this forces a new resource to be created. RelayId pulumi.StringOutput `pulumi:"relayId"` RelayName pulumi.StringOutput `pulumi:"relayName"` // The name of the resource group in which to create the App Service. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // The name of the Service Bus key which has Send permissions. Defaults to `RootManageSharedAccessKey`. SendKeyName pulumi.StringPtrOutput `pulumi:"sendKeyName"` // The value of the Service Bus Primary Access key. SendKeyValue pulumi.StringOutput `pulumi:"sendKeyValue"` // The name of the Service Bus namespace. ServiceBusNamespace pulumi.StringOutput `pulumi:"serviceBusNamespace"` // The suffix for the service bus endpoint. ServiceBusSuffix pulumi.StringOutput `pulumi:"serviceBusSuffix"` } // NewHybridConnection registers a new resource with the given unique name, arguments, and options. func NewHybridConnection(ctx *pulumi.Context, name string, args *HybridConnectionArgs, opts ...pulumi.ResourceOption) (*HybridConnection, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.AppServiceName == nil { return nil, errors.New("invalid value for required argument 'AppServiceName'") } if args.Hostname == nil { return nil, errors.New("invalid value for required argument 'Hostname'") } if args.Port == nil { return nil, errors.New("invalid value for required argument 'Port'") } if args.RelayId == nil { return nil, errors.New("invalid value for required argument 'RelayId'") } if args.ResourceGroupName == nil { return nil, errors.New("invalid value for required argument 'ResourceGroupName'") } secrets := pulumi.AdditionalSecretOutputs([]string{ "sendKeyValue", }) opts = append(opts, secrets) opts = internal.PkgResourceDefaultOpts(opts) var resource HybridConnection err := ctx.RegisterResource("azure:appservice/hybridConnection:HybridConnection", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetHybridConnection gets an existing HybridConnection 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 GetHybridConnection(ctx *pulumi.Context, name string, id pulumi.IDInput, state *HybridConnectionState, opts ...pulumi.ResourceOption) (*HybridConnection, error) { var resource HybridConnection err := ctx.ReadResource("azure:appservice/hybridConnection:HybridConnection", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering HybridConnection resources. type hybridConnectionState struct { // Specifies the name of the App Service. Changing this forces a new resource to be created. AppServiceName *string `pulumi:"appServiceName"` // The hostname of the endpoint. Hostname *string `pulumi:"hostname"` // The name of the Relay Namespace. NamespaceName *string `pulumi:"namespaceName"` // The port of the endpoint. Port *int `pulumi:"port"` // The ID of the Service Bus Relay. Changing this forces a new resource to be created. RelayId *string `pulumi:"relayId"` RelayName *string `pulumi:"relayName"` // The name of the resource group in which to create the App Service. Changing this forces a new resource to be created. ResourceGroupName *string `pulumi:"resourceGroupName"` // The name of the Service Bus key which has Send permissions. Defaults to `RootManageSharedAccessKey`. SendKeyName *string `pulumi:"sendKeyName"` // The value of the Service Bus Primary Access key. SendKeyValue *string `pulumi:"sendKeyValue"` // The name of the Service Bus namespace. ServiceBusNamespace *string `pulumi:"serviceBusNamespace"` // The suffix for the service bus endpoint. ServiceBusSuffix *string `pulumi:"serviceBusSuffix"` } type HybridConnectionState struct { // Specifies the name of the App Service. Changing this forces a new resource to be created. AppServiceName pulumi.StringPtrInput // The hostname of the endpoint. Hostname pulumi.StringPtrInput // The name of the Relay Namespace. NamespaceName pulumi.StringPtrInput // The port of the endpoint. Port pulumi.IntPtrInput // The ID of the Service Bus Relay. Changing this forces a new resource to be created. RelayId pulumi.StringPtrInput RelayName pulumi.StringPtrInput // The name of the resource group in which to create the App Service. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringPtrInput // The name of the Service Bus key which has Send permissions. Defaults to `RootManageSharedAccessKey`. SendKeyName pulumi.StringPtrInput // The value of the Service Bus Primary Access key. SendKeyValue pulumi.StringPtrInput // The name of the Service Bus namespace. ServiceBusNamespace pulumi.StringPtrInput // The suffix for the service bus endpoint. ServiceBusSuffix pulumi.StringPtrInput } func (HybridConnectionState) ElementType() reflect.Type { return reflect.TypeOf((*hybridConnectionState)(nil)).Elem() } type hybridConnectionArgs struct { // Specifies the name of the App Service. Changing this forces a new resource to be created. AppServiceName string `pulumi:"appServiceName"` // The hostname of the endpoint. Hostname string `pulumi:"hostname"` // The port of the endpoint. Port int `pulumi:"port"` // The ID of the Service Bus Relay. Changing this forces a new resource to be created. RelayId string `pulumi:"relayId"` // The name of the resource group in which to create the App Service. Changing this forces a new resource to be created. ResourceGroupName string `pulumi:"resourceGroupName"` // The name of the Service Bus key which has Send permissions. Defaults to `RootManageSharedAccessKey`. SendKeyName *string `pulumi:"sendKeyName"` } // The set of arguments for constructing a HybridConnection resource. type HybridConnectionArgs struct { // Specifies the name of the App Service. Changing this forces a new resource to be created. AppServiceName pulumi.StringInput // The hostname of the endpoint. Hostname pulumi.StringInput // The port of the endpoint. Port pulumi.IntInput // The ID of the Service Bus Relay. Changing this forces a new resource to be created. RelayId pulumi.StringInput // The name of the resource group in which to create the App Service. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringInput // The name of the Service Bus key which has Send permissions. Defaults to `RootManageSharedAccessKey`. SendKeyName pulumi.StringPtrInput } func (HybridConnectionArgs) ElementType() reflect.Type { return reflect.TypeOf((*hybridConnectionArgs)(nil)).Elem() } type HybridConnectionInput interface { pulumi.Input ToHybridConnectionOutput() HybridConnectionOutput ToHybridConnectionOutputWithContext(ctx context.Context) HybridConnectionOutput } func (*HybridConnection) ElementType() reflect.Type { return reflect.TypeOf((**HybridConnection)(nil)).Elem() } func (i *HybridConnection) ToHybridConnectionOutput() HybridConnectionOutput { return i.ToHybridConnectionOutputWithContext(context.Background()) } func (i *HybridConnection) ToHybridConnectionOutputWithContext(ctx context.Context) HybridConnectionOutput { return pulumi.ToOutputWithContext(ctx, i).(HybridConnectionOutput) } // HybridConnectionArrayInput is an input type that accepts HybridConnectionArray and HybridConnectionArrayOutput values. // You can construct a concrete instance of `HybridConnectionArrayInput` via: // // HybridConnectionArray{ HybridConnectionArgs{...} } type HybridConnectionArrayInput interface { pulumi.Input ToHybridConnectionArrayOutput() HybridConnectionArrayOutput ToHybridConnectionArrayOutputWithContext(context.Context) HybridConnectionArrayOutput } type HybridConnectionArray []HybridConnectionInput func (HybridConnectionArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*HybridConnection)(nil)).Elem() } func (i HybridConnectionArray) ToHybridConnectionArrayOutput() HybridConnectionArrayOutput { return i.ToHybridConnectionArrayOutputWithContext(context.Background()) } func (i HybridConnectionArray) ToHybridConnectionArrayOutputWithContext(ctx context.Context) HybridConnectionArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(HybridConnectionArrayOutput) } // HybridConnectionMapInput is an input type that accepts HybridConnectionMap and HybridConnectionMapOutput values. // You can construct a concrete instance of `HybridConnectionMapInput` via: // // HybridConnectionMap{ "key": HybridConnectionArgs{...} } type HybridConnectionMapInput interface { pulumi.Input ToHybridConnectionMapOutput() HybridConnectionMapOutput ToHybridConnectionMapOutputWithContext(context.Context) HybridConnectionMapOutput } type HybridConnectionMap map[string]HybridConnectionInput func (HybridConnectionMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*HybridConnection)(nil)).Elem() } func (i HybridConnectionMap) ToHybridConnectionMapOutput() HybridConnectionMapOutput { return i.ToHybridConnectionMapOutputWithContext(context.Background()) } func (i HybridConnectionMap) ToHybridConnectionMapOutputWithContext(ctx context.Context) HybridConnectionMapOutput { return pulumi.ToOutputWithContext(ctx, i).(HybridConnectionMapOutput) } type HybridConnectionOutput struct{ *pulumi.OutputState } func (HybridConnectionOutput) ElementType() reflect.Type { return reflect.TypeOf((**HybridConnection)(nil)).Elem() } func (o HybridConnectionOutput) ToHybridConnectionOutput() HybridConnectionOutput { return o } func (o HybridConnectionOutput) ToHybridConnectionOutputWithContext(ctx context.Context) HybridConnectionOutput { return o } // Specifies the name of the App Service. Changing this forces a new resource to be created. func (o HybridConnectionOutput) AppServiceName() pulumi.StringOutput { return o.ApplyT(func(v *HybridConnection) pulumi.StringOutput { return v.AppServiceName }).(pulumi.StringOutput) } // The hostname of the endpoint. func (o HybridConnectionOutput) Hostname() pulumi.StringOutput { return o.ApplyT(func(v *HybridConnection) pulumi.StringOutput { return v.Hostname }).(pulumi.StringOutput) } // The name of the Relay Namespace. func (o HybridConnectionOutput) NamespaceName() pulumi.StringOutput { return o.ApplyT(func(v *HybridConnection) pulumi.StringOutput { return v.NamespaceName }).(pulumi.StringOutput) } // The port of the endpoint. func (o HybridConnectionOutput) Port() pulumi.IntOutput { return o.ApplyT(func(v *HybridConnection) pulumi.IntOutput { return v.Port }).(pulumi.IntOutput) } // The ID of the Service Bus Relay. Changing this forces a new resource to be created. func (o HybridConnectionOutput) RelayId() pulumi.StringOutput { return o.ApplyT(func(v *HybridConnection) pulumi.StringOutput { return v.RelayId }).(pulumi.StringOutput) } func (o HybridConnectionOutput) RelayName() pulumi.StringOutput { return o.ApplyT(func(v *HybridConnection) pulumi.StringOutput { return v.RelayName }).(pulumi.StringOutput) } // The name of the resource group in which to create the App Service. Changing this forces a new resource to be created. func (o HybridConnectionOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v *HybridConnection) pulumi.StringOutput { return v.ResourceGroupName }).(pulumi.StringOutput) } // The name of the Service Bus key which has Send permissions. Defaults to `RootManageSharedAccessKey`. func (o HybridConnectionOutput) SendKeyName() pulumi.StringPtrOutput { return o.ApplyT(func(v *HybridConnection) pulumi.StringPtrOutput { return v.SendKeyName }).(pulumi.StringPtrOutput) } // The value of the Service Bus Primary Access key. func (o HybridConnectionOutput) SendKeyValue() pulumi.StringOutput { return o.ApplyT(func(v *HybridConnection) pulumi.StringOutput { return v.SendKeyValue }).(pulumi.StringOutput) } // The name of the Service Bus namespace. func (o HybridConnectionOutput) ServiceBusNamespace() pulumi.StringOutput { return o.ApplyT(func(v *HybridConnection) pulumi.StringOutput { return v.ServiceBusNamespace }).(pulumi.StringOutput) } // The suffix for the service bus endpoint. func (o HybridConnectionOutput) ServiceBusSuffix() pulumi.StringOutput { return o.ApplyT(func(v *HybridConnection) pulumi.StringOutput { return v.ServiceBusSuffix }).(pulumi.StringOutput) } type HybridConnectionArrayOutput struct{ *pulumi.OutputState } func (HybridConnectionArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*HybridConnection)(nil)).Elem() } func (o HybridConnectionArrayOutput) ToHybridConnectionArrayOutput() HybridConnectionArrayOutput { return o } func (o HybridConnectionArrayOutput) ToHybridConnectionArrayOutputWithContext(ctx context.Context) HybridConnectionArrayOutput { return o } func (o HybridConnectionArrayOutput) Index(i pulumi.IntInput) HybridConnectionOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *HybridConnection { return vs[0].([]*HybridConnection)[vs[1].(int)] }).(HybridConnectionOutput) } type HybridConnectionMapOutput struct{ *pulumi.OutputState } func (HybridConnectionMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*HybridConnection)(nil)).Elem() } func (o HybridConnectionMapOutput) ToHybridConnectionMapOutput() HybridConnectionMapOutput { return o } func (o HybridConnectionMapOutput) ToHybridConnectionMapOutputWithContext(ctx context.Context) HybridConnectionMapOutput { return o } func (o HybridConnectionMapOutput) MapIndex(k pulumi.StringInput) HybridConnectionOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *HybridConnection { return vs[0].(map[string]*HybridConnection)[vs[1].(string)] }).(HybridConnectionOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*HybridConnectionInput)(nil)).Elem(), &HybridConnection{}) pulumi.RegisterInputType(reflect.TypeOf((*HybridConnectionArrayInput)(nil)).Elem(), HybridConnectionArray{}) pulumi.RegisterInputType(reflect.TypeOf((*HybridConnectionMapInput)(nil)).Elem(), HybridConnectionMap{}) pulumi.RegisterOutputType(HybridConnectionOutput{}) pulumi.RegisterOutputType(HybridConnectionArrayOutput{}) pulumi.RegisterOutputType(HybridConnectionMapOutput{}) }
go
Apache-2.0
b66e1472775a89cca43f5050fef806854a7c3fa3
2026-01-07T09:44:27.619514Z
false
pulumi/pulumi-azure
https://github.com/pulumi/pulumi-azure/blob/b66e1472775a89cca43f5050fef806854a7c3fa3/sdk/go/azure/appservice/functionAppFunction.go
sdk/go/azure/appservice/functionAppFunction.go
// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package appservice import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a Function App Function. // // ## Example Usage // // ### Basic HTTP Trigger // // ```go // package main // // import ( // // "encoding/json" // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/appservice" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/storage" // "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-group"), // Location: pulumi.String("West Europe"), // }) // if err != nil { // return err // } // exampleAccount, err := storage.NewAccount(ctx, "example", &storage.AccountArgs{ // Name: pulumi.String("examplesa"), // ResourceGroupName: example.Name, // Location: example.Location, // AccountTier: pulumi.String("Standard"), // AccountReplicationType: pulumi.String("LRS"), // }) // if err != nil { // return err // } // exampleServicePlan, err := appservice.NewServicePlan(ctx, "example", &appservice.ServicePlanArgs{ // Name: pulumi.String("example-service-plan"), // Location: example.Location, // ResourceGroupName: example.Name, // OsType: pulumi.String("Linux"), // SkuName: pulumi.String("S1"), // }) // if err != nil { // return err // } // exampleLinuxFunctionApp, err := appservice.NewLinuxFunctionApp(ctx, "example", &appservice.LinuxFunctionAppArgs{ // Name: pulumi.String("example-function-app"), // Location: example.Location, // ResourceGroupName: example.Name, // ServicePlanId: exampleServicePlan.ID(), // StorageAccountName: exampleAccount.Name, // StorageAccountAccessKey: exampleAccount.PrimaryAccessKey, // SiteConfig: &appservice.LinuxFunctionAppSiteConfigArgs{ // ApplicationStack: &appservice.LinuxFunctionAppSiteConfigApplicationStackArgs{ // PythonVersion: pulumi.String("3.9"), // }, // }, // }) // if err != nil { // return err // } // tmpJSON0, err := json.Marshal(map[string]interface{}{ // "name": "Azure", // }) // if err != nil { // return err // } // json0 := string(tmpJSON0) // tmpJSON1, err := json.Marshal(map[string]interface{}{ // "bindings": []interface{}{ // map[string]interface{}{ // "authLevel": "function", // "direction": "in", // "methods": []string{ // "get", // "post", // }, // "name": "req", // "type": "httpTrigger", // }, // map[string]interface{}{ // "direction": "out", // "name": "$return", // "type": "http", // }, // }, // }) // if err != nil { // return err // } // json1 := string(tmpJSON1) // _, err = appservice.NewFunctionAppFunction(ctx, "example", &appservice.FunctionAppFunctionArgs{ // Name: pulumi.String("example-function-app-function"), // FunctionAppId: exampleLinuxFunctionApp.ID(), // Language: pulumi.String("Python"), // TestData: pulumi.String(json0), // ConfigJson: pulumi.String(json1), // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ### HTTP Trigger With Code Upload // // ```go // package main // // import ( // // "encoding/json" // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/appservice" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/storage" // "github.com/pulumi/pulumi-std/sdk/go/std" // "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-group"), // Location: pulumi.String("West Europe"), // }) // if err != nil { // return err // } // exampleAccount, err := storage.NewAccount(ctx, "example", &storage.AccountArgs{ // Name: pulumi.String("examplesa"), // ResourceGroupName: example.Name, // Location: example.Location, // AccountTier: pulumi.String("Standard"), // AccountReplicationType: pulumi.String("LRS"), // }) // if err != nil { // return err // } // exampleServicePlan, err := appservice.NewServicePlan(ctx, "example", &appservice.ServicePlanArgs{ // Name: pulumi.String("example-service-plan"), // Location: example.Location, // ResourceGroupName: example.Name, // OsType: pulumi.String("Windows"), // SkuName: pulumi.String("S1"), // }) // if err != nil { // return err // } // exampleWindowsFunctionApp, err := appservice.NewWindowsFunctionApp(ctx, "example", &appservice.WindowsFunctionAppArgs{ // Name: pulumi.String("example-function-app"), // Location: example.Location, // ResourceGroupName: example.Name, // ServicePlanId: exampleServicePlan.ID(), // StorageAccountName: exampleAccount.Name, // StorageAccountAccessKey: exampleAccount.PrimaryAccessKey, // SiteConfig: &appservice.WindowsFunctionAppSiteConfigArgs{ // ApplicationStack: &appservice.WindowsFunctionAppSiteConfigApplicationStackArgs{ // DotnetVersion: pulumi.String("6"), // }, // }, // }) // if err != nil { // return err // } // invokeFile, err := std.File(ctx, &std.FileArgs{ // Input: "exampledata/run.csx", // }, nil) // if err != nil { // return err // } // tmpJSON0, err := json.Marshal(map[string]interface{}{ // "name": "Azure", // }) // if err != nil { // return err // } // json0 := string(tmpJSON0) // tmpJSON1, err := json.Marshal(map[string]interface{}{ // "bindings": []interface{}{ // map[string]interface{}{ // "authLevel": "function", // "direction": "in", // "methods": []string{ // "get", // "post", // }, // "name": "req", // "type": "httpTrigger", // }, // map[string]interface{}{ // "direction": "out", // "name": "$return", // "type": "http", // }, // }, // }) // if err != nil { // return err // } // json1 := string(tmpJSON1) // _, err = appservice.NewFunctionAppFunction(ctx, "example", &appservice.FunctionAppFunctionArgs{ // Name: pulumi.String("example-function-app-function"), // FunctionAppId: exampleWindowsFunctionApp.ID(), // Language: pulumi.String("CSharp"), // Files: appservice.FunctionAppFunctionFileArray{ // &appservice.FunctionAppFunctionFileArgs{ // Name: pulumi.String("run.csx"), // Content: pulumi.String(invokeFile.Result), // }, // }, // TestData: pulumi.String(json0), // ConfigJson: pulumi.String(json1), // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## API Providers // // <!-- This section is generated, changes will be overwritten --> // This resource uses the following Azure API Providers: // // * `Microsoft.Web` - 2023-12-01 // // ## Import // // a Function App Function can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:appservice/functionAppFunction:FunctionAppFunction example "/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/resGroup1/providers/Microsoft.Web/sites/site1/functions/function1" // ``` type FunctionAppFunction struct { pulumi.CustomResourceState // The config for this Function in JSON format. ConfigJson pulumi.StringOutput `pulumi:"configJson"` // The URL of the configuration JSON. ConfigUrl pulumi.StringOutput `pulumi:"configUrl"` // Should this function be enabled. Defaults to `true`. Enabled pulumi.BoolPtrOutput `pulumi:"enabled"` // A `file` block as detailed below. Changing this forces a new resource to be created. Files FunctionAppFunctionFileArrayOutput `pulumi:"files"` // The ID of the Function App in which this function should reside. Changing this forces a new resource to be created. FunctionAppId pulumi.StringOutput `pulumi:"functionAppId"` // The invocation URL. InvocationUrl pulumi.StringOutput `pulumi:"invocationUrl"` // The language the Function is written in. Possible values are `CSharp`, `Custom`, `Java`, `Javascript`, `Python`, `PowerShell`, and `TypeScript`. // // > **Note:** when using `Custom` language, you must specify the code handler in the `host.json` file for your function. See the [official docs](https://docs.microsoft.com/azure/azure-functions/functions-custom-handlers#hostjson) for more information. Language pulumi.StringPtrOutput `pulumi:"language"` // The name of the function. Changing this forces a new resource to be created. Name pulumi.StringOutput `pulumi:"name"` // The Script root path URL. ScriptRootPathUrl pulumi.StringOutput `pulumi:"scriptRootPathUrl"` // The script URL. ScriptUrl pulumi.StringOutput `pulumi:"scriptUrl"` // The URL for the Secrets File. SecretsFileUrl pulumi.StringOutput `pulumi:"secretsFileUrl"` // The test data for the function. TestData pulumi.StringPtrOutput `pulumi:"testData"` // The Test data URL. TestDataUrl pulumi.StringOutput `pulumi:"testDataUrl"` // The function URL. Url pulumi.StringOutput `pulumi:"url"` } // NewFunctionAppFunction registers a new resource with the given unique name, arguments, and options. func NewFunctionAppFunction(ctx *pulumi.Context, name string, args *FunctionAppFunctionArgs, opts ...pulumi.ResourceOption) (*FunctionAppFunction, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.ConfigJson == nil { return nil, errors.New("invalid value for required argument 'ConfigJson'") } if args.FunctionAppId == nil { return nil, errors.New("invalid value for required argument 'FunctionAppId'") } opts = internal.PkgResourceDefaultOpts(opts) var resource FunctionAppFunction err := ctx.RegisterResource("azure:appservice/functionAppFunction:FunctionAppFunction", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetFunctionAppFunction gets an existing FunctionAppFunction 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 GetFunctionAppFunction(ctx *pulumi.Context, name string, id pulumi.IDInput, state *FunctionAppFunctionState, opts ...pulumi.ResourceOption) (*FunctionAppFunction, error) { var resource FunctionAppFunction err := ctx.ReadResource("azure:appservice/functionAppFunction:FunctionAppFunction", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering FunctionAppFunction resources. type functionAppFunctionState struct { // The config for this Function in JSON format. ConfigJson *string `pulumi:"configJson"` // The URL of the configuration JSON. ConfigUrl *string `pulumi:"configUrl"` // Should this function be enabled. Defaults to `true`. Enabled *bool `pulumi:"enabled"` // A `file` block as detailed below. Changing this forces a new resource to be created. Files []FunctionAppFunctionFile `pulumi:"files"` // The ID of the Function App in which this function should reside. Changing this forces a new resource to be created. FunctionAppId *string `pulumi:"functionAppId"` // The invocation URL. InvocationUrl *string `pulumi:"invocationUrl"` // The language the Function is written in. Possible values are `CSharp`, `Custom`, `Java`, `Javascript`, `Python`, `PowerShell`, and `TypeScript`. // // > **Note:** when using `Custom` language, you must specify the code handler in the `host.json` file for your function. See the [official docs](https://docs.microsoft.com/azure/azure-functions/functions-custom-handlers#hostjson) for more information. Language *string `pulumi:"language"` // The name of the function. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // The Script root path URL. ScriptRootPathUrl *string `pulumi:"scriptRootPathUrl"` // The script URL. ScriptUrl *string `pulumi:"scriptUrl"` // The URL for the Secrets File. SecretsFileUrl *string `pulumi:"secretsFileUrl"` // The test data for the function. TestData *string `pulumi:"testData"` // The Test data URL. TestDataUrl *string `pulumi:"testDataUrl"` // The function URL. Url *string `pulumi:"url"` } type FunctionAppFunctionState struct { // The config for this Function in JSON format. ConfigJson pulumi.StringPtrInput // The URL of the configuration JSON. ConfigUrl pulumi.StringPtrInput // Should this function be enabled. Defaults to `true`. Enabled pulumi.BoolPtrInput // A `file` block as detailed below. Changing this forces a new resource to be created. Files FunctionAppFunctionFileArrayInput // The ID of the Function App in which this function should reside. Changing this forces a new resource to be created. FunctionAppId pulumi.StringPtrInput // The invocation URL. InvocationUrl pulumi.StringPtrInput // The language the Function is written in. Possible values are `CSharp`, `Custom`, `Java`, `Javascript`, `Python`, `PowerShell`, and `TypeScript`. // // > **Note:** when using `Custom` language, you must specify the code handler in the `host.json` file for your function. See the [official docs](https://docs.microsoft.com/azure/azure-functions/functions-custom-handlers#hostjson) for more information. Language pulumi.StringPtrInput // The name of the function. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // The Script root path URL. ScriptRootPathUrl pulumi.StringPtrInput // The script URL. ScriptUrl pulumi.StringPtrInput // The URL for the Secrets File. SecretsFileUrl pulumi.StringPtrInput // The test data for the function. TestData pulumi.StringPtrInput // The Test data URL. TestDataUrl pulumi.StringPtrInput // The function URL. Url pulumi.StringPtrInput } func (FunctionAppFunctionState) ElementType() reflect.Type { return reflect.TypeOf((*functionAppFunctionState)(nil)).Elem() } type functionAppFunctionArgs struct { // The config for this Function in JSON format. ConfigJson string `pulumi:"configJson"` // Should this function be enabled. Defaults to `true`. Enabled *bool `pulumi:"enabled"` // A `file` block as detailed below. Changing this forces a new resource to be created. Files []FunctionAppFunctionFile `pulumi:"files"` // The ID of the Function App in which this function should reside. Changing this forces a new resource to be created. FunctionAppId string `pulumi:"functionAppId"` // The language the Function is written in. Possible values are `CSharp`, `Custom`, `Java`, `Javascript`, `Python`, `PowerShell`, and `TypeScript`. // // > **Note:** when using `Custom` language, you must specify the code handler in the `host.json` file for your function. See the [official docs](https://docs.microsoft.com/azure/azure-functions/functions-custom-handlers#hostjson) for more information. Language *string `pulumi:"language"` // The name of the function. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // The test data for the function. TestData *string `pulumi:"testData"` } // The set of arguments for constructing a FunctionAppFunction resource. type FunctionAppFunctionArgs struct { // The config for this Function in JSON format. ConfigJson pulumi.StringInput // Should this function be enabled. Defaults to `true`. Enabled pulumi.BoolPtrInput // A `file` block as detailed below. Changing this forces a new resource to be created. Files FunctionAppFunctionFileArrayInput // The ID of the Function App in which this function should reside. Changing this forces a new resource to be created. FunctionAppId pulumi.StringInput // The language the Function is written in. Possible values are `CSharp`, `Custom`, `Java`, `Javascript`, `Python`, `PowerShell`, and `TypeScript`. // // > **Note:** when using `Custom` language, you must specify the code handler in the `host.json` file for your function. See the [official docs](https://docs.microsoft.com/azure/azure-functions/functions-custom-handlers#hostjson) for more information. Language pulumi.StringPtrInput // The name of the function. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // The test data for the function. TestData pulumi.StringPtrInput } func (FunctionAppFunctionArgs) ElementType() reflect.Type { return reflect.TypeOf((*functionAppFunctionArgs)(nil)).Elem() } type FunctionAppFunctionInput interface { pulumi.Input ToFunctionAppFunctionOutput() FunctionAppFunctionOutput ToFunctionAppFunctionOutputWithContext(ctx context.Context) FunctionAppFunctionOutput } func (*FunctionAppFunction) ElementType() reflect.Type { return reflect.TypeOf((**FunctionAppFunction)(nil)).Elem() } func (i *FunctionAppFunction) ToFunctionAppFunctionOutput() FunctionAppFunctionOutput { return i.ToFunctionAppFunctionOutputWithContext(context.Background()) } func (i *FunctionAppFunction) ToFunctionAppFunctionOutputWithContext(ctx context.Context) FunctionAppFunctionOutput { return pulumi.ToOutputWithContext(ctx, i).(FunctionAppFunctionOutput) } // FunctionAppFunctionArrayInput is an input type that accepts FunctionAppFunctionArray and FunctionAppFunctionArrayOutput values. // You can construct a concrete instance of `FunctionAppFunctionArrayInput` via: // // FunctionAppFunctionArray{ FunctionAppFunctionArgs{...} } type FunctionAppFunctionArrayInput interface { pulumi.Input ToFunctionAppFunctionArrayOutput() FunctionAppFunctionArrayOutput ToFunctionAppFunctionArrayOutputWithContext(context.Context) FunctionAppFunctionArrayOutput } type FunctionAppFunctionArray []FunctionAppFunctionInput func (FunctionAppFunctionArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*FunctionAppFunction)(nil)).Elem() } func (i FunctionAppFunctionArray) ToFunctionAppFunctionArrayOutput() FunctionAppFunctionArrayOutput { return i.ToFunctionAppFunctionArrayOutputWithContext(context.Background()) } func (i FunctionAppFunctionArray) ToFunctionAppFunctionArrayOutputWithContext(ctx context.Context) FunctionAppFunctionArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(FunctionAppFunctionArrayOutput) } // FunctionAppFunctionMapInput is an input type that accepts FunctionAppFunctionMap and FunctionAppFunctionMapOutput values. // You can construct a concrete instance of `FunctionAppFunctionMapInput` via: // // FunctionAppFunctionMap{ "key": FunctionAppFunctionArgs{...} } type FunctionAppFunctionMapInput interface { pulumi.Input ToFunctionAppFunctionMapOutput() FunctionAppFunctionMapOutput ToFunctionAppFunctionMapOutputWithContext(context.Context) FunctionAppFunctionMapOutput } type FunctionAppFunctionMap map[string]FunctionAppFunctionInput func (FunctionAppFunctionMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*FunctionAppFunction)(nil)).Elem() } func (i FunctionAppFunctionMap) ToFunctionAppFunctionMapOutput() FunctionAppFunctionMapOutput { return i.ToFunctionAppFunctionMapOutputWithContext(context.Background()) } func (i FunctionAppFunctionMap) ToFunctionAppFunctionMapOutputWithContext(ctx context.Context) FunctionAppFunctionMapOutput { return pulumi.ToOutputWithContext(ctx, i).(FunctionAppFunctionMapOutput) } type FunctionAppFunctionOutput struct{ *pulumi.OutputState } func (FunctionAppFunctionOutput) ElementType() reflect.Type { return reflect.TypeOf((**FunctionAppFunction)(nil)).Elem() } func (o FunctionAppFunctionOutput) ToFunctionAppFunctionOutput() FunctionAppFunctionOutput { return o } func (o FunctionAppFunctionOutput) ToFunctionAppFunctionOutputWithContext(ctx context.Context) FunctionAppFunctionOutput { return o } // The config for this Function in JSON format. func (o FunctionAppFunctionOutput) ConfigJson() pulumi.StringOutput { return o.ApplyT(func(v *FunctionAppFunction) pulumi.StringOutput { return v.ConfigJson }).(pulumi.StringOutput) } // The URL of the configuration JSON. func (o FunctionAppFunctionOutput) ConfigUrl() pulumi.StringOutput { return o.ApplyT(func(v *FunctionAppFunction) pulumi.StringOutput { return v.ConfigUrl }).(pulumi.StringOutput) } // Should this function be enabled. Defaults to `true`. func (o FunctionAppFunctionOutput) Enabled() pulumi.BoolPtrOutput { return o.ApplyT(func(v *FunctionAppFunction) pulumi.BoolPtrOutput { return v.Enabled }).(pulumi.BoolPtrOutput) } // A `file` block as detailed below. Changing this forces a new resource to be created. func (o FunctionAppFunctionOutput) Files() FunctionAppFunctionFileArrayOutput { return o.ApplyT(func(v *FunctionAppFunction) FunctionAppFunctionFileArrayOutput { return v.Files }).(FunctionAppFunctionFileArrayOutput) } // The ID of the Function App in which this function should reside. Changing this forces a new resource to be created. func (o FunctionAppFunctionOutput) FunctionAppId() pulumi.StringOutput { return o.ApplyT(func(v *FunctionAppFunction) pulumi.StringOutput { return v.FunctionAppId }).(pulumi.StringOutput) } // The invocation URL. func (o FunctionAppFunctionOutput) InvocationUrl() pulumi.StringOutput { return o.ApplyT(func(v *FunctionAppFunction) pulumi.StringOutput { return v.InvocationUrl }).(pulumi.StringOutput) } // The language the Function is written in. Possible values are `CSharp`, `Custom`, `Java`, `Javascript`, `Python`, `PowerShell`, and `TypeScript`. // // > **Note:** when using `Custom` language, you must specify the code handler in the `host.json` file for your function. See the [official docs](https://docs.microsoft.com/azure/azure-functions/functions-custom-handlers#hostjson) for more information. func (o FunctionAppFunctionOutput) Language() pulumi.StringPtrOutput { return o.ApplyT(func(v *FunctionAppFunction) pulumi.StringPtrOutput { return v.Language }).(pulumi.StringPtrOutput) } // The name of the function. Changing this forces a new resource to be created. func (o FunctionAppFunctionOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *FunctionAppFunction) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // The Script root path URL. func (o FunctionAppFunctionOutput) ScriptRootPathUrl() pulumi.StringOutput { return o.ApplyT(func(v *FunctionAppFunction) pulumi.StringOutput { return v.ScriptRootPathUrl }).(pulumi.StringOutput) } // The script URL. func (o FunctionAppFunctionOutput) ScriptUrl() pulumi.StringOutput { return o.ApplyT(func(v *FunctionAppFunction) pulumi.StringOutput { return v.ScriptUrl }).(pulumi.StringOutput) } // The URL for the Secrets File. func (o FunctionAppFunctionOutput) SecretsFileUrl() pulumi.StringOutput { return o.ApplyT(func(v *FunctionAppFunction) pulumi.StringOutput { return v.SecretsFileUrl }).(pulumi.StringOutput) } // The test data for the function. func (o FunctionAppFunctionOutput) TestData() pulumi.StringPtrOutput { return o.ApplyT(func(v *FunctionAppFunction) pulumi.StringPtrOutput { return v.TestData }).(pulumi.StringPtrOutput) } // The Test data URL. func (o FunctionAppFunctionOutput) TestDataUrl() pulumi.StringOutput { return o.ApplyT(func(v *FunctionAppFunction) pulumi.StringOutput { return v.TestDataUrl }).(pulumi.StringOutput) } // The function URL. func (o FunctionAppFunctionOutput) Url() pulumi.StringOutput { return o.ApplyT(func(v *FunctionAppFunction) pulumi.StringOutput { return v.Url }).(pulumi.StringOutput) } type FunctionAppFunctionArrayOutput struct{ *pulumi.OutputState } func (FunctionAppFunctionArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*FunctionAppFunction)(nil)).Elem() } func (o FunctionAppFunctionArrayOutput) ToFunctionAppFunctionArrayOutput() FunctionAppFunctionArrayOutput { return o } func (o FunctionAppFunctionArrayOutput) ToFunctionAppFunctionArrayOutputWithContext(ctx context.Context) FunctionAppFunctionArrayOutput { return o } func (o FunctionAppFunctionArrayOutput) Index(i pulumi.IntInput) FunctionAppFunctionOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *FunctionAppFunction { return vs[0].([]*FunctionAppFunction)[vs[1].(int)] }).(FunctionAppFunctionOutput) } type FunctionAppFunctionMapOutput struct{ *pulumi.OutputState } func (FunctionAppFunctionMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*FunctionAppFunction)(nil)).Elem() } func (o FunctionAppFunctionMapOutput) ToFunctionAppFunctionMapOutput() FunctionAppFunctionMapOutput { return o } func (o FunctionAppFunctionMapOutput) ToFunctionAppFunctionMapOutputWithContext(ctx context.Context) FunctionAppFunctionMapOutput { return o } func (o FunctionAppFunctionMapOutput) MapIndex(k pulumi.StringInput) FunctionAppFunctionOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *FunctionAppFunction { return vs[0].(map[string]*FunctionAppFunction)[vs[1].(string)] }).(FunctionAppFunctionOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*FunctionAppFunctionInput)(nil)).Elem(), &FunctionAppFunction{}) pulumi.RegisterInputType(reflect.TypeOf((*FunctionAppFunctionArrayInput)(nil)).Elem(), FunctionAppFunctionArray{}) pulumi.RegisterInputType(reflect.TypeOf((*FunctionAppFunctionMapInput)(nil)).Elem(), FunctionAppFunctionMap{}) pulumi.RegisterOutputType(FunctionAppFunctionOutput{}) pulumi.RegisterOutputType(FunctionAppFunctionArrayOutput{}) pulumi.RegisterOutputType(FunctionAppFunctionMapOutput{}) }
go
Apache-2.0
b66e1472775a89cca43f5050fef806854a7c3fa3
2026-01-07T09:44:27.619514Z
false
pulumi/pulumi-azure
https://github.com/pulumi/pulumi-azure/blob/b66e1472775a89cca43f5050fef806854a7c3fa3/sdk/go/azure/appservice/sourceControlSlot.go
sdk/go/azure/appservice/sourceControlSlot.go
// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package appservice import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages an App Service Source Control Slot. // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/appservice" // "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-resources"), // Location: pulumi.String("West Europe"), // }) // if err != nil { // return err // } // exampleServicePlan, err := appservice.NewServicePlan(ctx, "example", &appservice.ServicePlanArgs{ // Name: pulumi.String("example-plan"), // ResourceGroupName: example.Name, // Location: example.Location, // OsType: pulumi.String("Linux"), // SkuName: pulumi.String("P1v2"), // }) // if err != nil { // return err // } // exampleLinuxWebApp, err := appservice.NewLinuxWebApp(ctx, "example", &appservice.LinuxWebAppArgs{ // Name: pulumi.String("example-web-app"), // ResourceGroupName: example.Name, // Location: exampleServicePlan.Location, // ServicePlanId: exampleServicePlan.ID(), // SiteConfig: &appservice.LinuxWebAppSiteConfigArgs{}, // }) // if err != nil { // return err // } // exampleLinuxWebAppSlot, err := appservice.NewLinuxWebAppSlot(ctx, "example", &appservice.LinuxWebAppSlotArgs{ // Name: pulumi.String("example-slot"), // AppServiceId: exampleLinuxWebApp.ID(), // SiteConfig: &appservice.LinuxWebAppSlotSiteConfigArgs{}, // }) // if err != nil { // return err // } // _, err = appservice.NewSourceControlSlot(ctx, "example", &appservice.SourceControlSlotArgs{ // SlotId: exampleLinuxWebAppSlot.ID(), // RepoUrl: pulumi.String("https://github.com/Azure-Samples/python-docs-hello-world"), // Branch: pulumi.String("master"), // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## API Providers // // <!-- This section is generated, changes will be overwritten --> // This resource uses the following Azure API Providers: // // * `Microsoft.Web` - 2023-12-01 // // ## Import // // an App Service Source Control Slot can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:appservice/sourceControlSlot:SourceControlSlot example "/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/resGroup1/providers/Microsoft.Web/sites/site1/slots/slot1" // ``` type SourceControlSlot struct { pulumi.CustomResourceState // The URL for the repository. Changing this forces a new resource to be created. Branch pulumi.StringOutput `pulumi:"branch"` // A `githubActionConfiguration` block as detailed below. Changing this forces a new resource to be created. GithubActionConfiguration SourceControlSlotGithubActionConfigurationPtrOutput `pulumi:"githubActionConfiguration"` // The branch name to use for deployments. Changing this forces a new resource to be created. RepoUrl pulumi.StringOutput `pulumi:"repoUrl"` // Should the Deployment Rollback be enabled? Defaults to `false` Changing this forces a new resource to be created. RollbackEnabled pulumi.BoolPtrOutput `pulumi:"rollbackEnabled"` // The SCM Type in use. This value is decoded by the service from the repository information supplied. ScmType pulumi.StringOutput `pulumi:"scmType"` // The ID of the Linux or Windows Web App Slot. Changing this forces a new resource to be created. // // > **Note:** Function App Slots are not supported at this time. SlotId pulumi.StringOutput `pulumi:"slotId"` // Should the Slot use local Git configuration. Changing this forces a new resource to be created. UseLocalGit pulumi.BoolPtrOutput `pulumi:"useLocalGit"` // Should code be deployed manually. Set to `true` to disable continuous integration, such as webhooks into online repos such as GitHub. Defaults to `false`. Changing this forces a new resource to be created. UseManualIntegration pulumi.BoolPtrOutput `pulumi:"useManualIntegration"` // The repository specified is Mercurial. Defaults to `false`. Changing this forces a new resource to be created. UseMercurial pulumi.BoolPtrOutput `pulumi:"useMercurial"` // Indicates if the Slot uses a GitHub action for deployment. This value is decoded by the service from the repository information supplied. UsesGithubAction pulumi.BoolOutput `pulumi:"usesGithubAction"` } // NewSourceControlSlot registers a new resource with the given unique name, arguments, and options. func NewSourceControlSlot(ctx *pulumi.Context, name string, args *SourceControlSlotArgs, opts ...pulumi.ResourceOption) (*SourceControlSlot, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.SlotId == nil { return nil, errors.New("invalid value for required argument 'SlotId'") } opts = internal.PkgResourceDefaultOpts(opts) var resource SourceControlSlot err := ctx.RegisterResource("azure:appservice/sourceControlSlot:SourceControlSlot", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetSourceControlSlot gets an existing SourceControlSlot 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 GetSourceControlSlot(ctx *pulumi.Context, name string, id pulumi.IDInput, state *SourceControlSlotState, opts ...pulumi.ResourceOption) (*SourceControlSlot, error) { var resource SourceControlSlot err := ctx.ReadResource("azure:appservice/sourceControlSlot:SourceControlSlot", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering SourceControlSlot resources. type sourceControlSlotState struct { // The URL for the repository. Changing this forces a new resource to be created. Branch *string `pulumi:"branch"` // A `githubActionConfiguration` block as detailed below. Changing this forces a new resource to be created. GithubActionConfiguration *SourceControlSlotGithubActionConfiguration `pulumi:"githubActionConfiguration"` // The branch name to use for deployments. Changing this forces a new resource to be created. RepoUrl *string `pulumi:"repoUrl"` // Should the Deployment Rollback be enabled? Defaults to `false` Changing this forces a new resource to be created. RollbackEnabled *bool `pulumi:"rollbackEnabled"` // The SCM Type in use. This value is decoded by the service from the repository information supplied. ScmType *string `pulumi:"scmType"` // The ID of the Linux or Windows Web App Slot. Changing this forces a new resource to be created. // // > **Note:** Function App Slots are not supported at this time. SlotId *string `pulumi:"slotId"` // Should the Slot use local Git configuration. Changing this forces a new resource to be created. UseLocalGit *bool `pulumi:"useLocalGit"` // Should code be deployed manually. Set to `true` to disable continuous integration, such as webhooks into online repos such as GitHub. Defaults to `false`. Changing this forces a new resource to be created. UseManualIntegration *bool `pulumi:"useManualIntegration"` // The repository specified is Mercurial. Defaults to `false`. Changing this forces a new resource to be created. UseMercurial *bool `pulumi:"useMercurial"` // Indicates if the Slot uses a GitHub action for deployment. This value is decoded by the service from the repository information supplied. UsesGithubAction *bool `pulumi:"usesGithubAction"` } type SourceControlSlotState struct { // The URL for the repository. Changing this forces a new resource to be created. Branch pulumi.StringPtrInput // A `githubActionConfiguration` block as detailed below. Changing this forces a new resource to be created. GithubActionConfiguration SourceControlSlotGithubActionConfigurationPtrInput // The branch name to use for deployments. Changing this forces a new resource to be created. RepoUrl pulumi.StringPtrInput // Should the Deployment Rollback be enabled? Defaults to `false` Changing this forces a new resource to be created. RollbackEnabled pulumi.BoolPtrInput // The SCM Type in use. This value is decoded by the service from the repository information supplied. ScmType pulumi.StringPtrInput // The ID of the Linux or Windows Web App Slot. Changing this forces a new resource to be created. // // > **Note:** Function App Slots are not supported at this time. SlotId pulumi.StringPtrInput // Should the Slot use local Git configuration. Changing this forces a new resource to be created. UseLocalGit pulumi.BoolPtrInput // Should code be deployed manually. Set to `true` to disable continuous integration, such as webhooks into online repos such as GitHub. Defaults to `false`. Changing this forces a new resource to be created. UseManualIntegration pulumi.BoolPtrInput // The repository specified is Mercurial. Defaults to `false`. Changing this forces a new resource to be created. UseMercurial pulumi.BoolPtrInput // Indicates if the Slot uses a GitHub action for deployment. This value is decoded by the service from the repository information supplied. UsesGithubAction pulumi.BoolPtrInput } func (SourceControlSlotState) ElementType() reflect.Type { return reflect.TypeOf((*sourceControlSlotState)(nil)).Elem() } type sourceControlSlotArgs struct { // The URL for the repository. Changing this forces a new resource to be created. Branch *string `pulumi:"branch"` // A `githubActionConfiguration` block as detailed below. Changing this forces a new resource to be created. GithubActionConfiguration *SourceControlSlotGithubActionConfiguration `pulumi:"githubActionConfiguration"` // The branch name to use for deployments. Changing this forces a new resource to be created. RepoUrl *string `pulumi:"repoUrl"` // Should the Deployment Rollback be enabled? Defaults to `false` Changing this forces a new resource to be created. RollbackEnabled *bool `pulumi:"rollbackEnabled"` // The ID of the Linux or Windows Web App Slot. Changing this forces a new resource to be created. // // > **Note:** Function App Slots are not supported at this time. SlotId string `pulumi:"slotId"` // Should the Slot use local Git configuration. Changing this forces a new resource to be created. UseLocalGit *bool `pulumi:"useLocalGit"` // Should code be deployed manually. Set to `true` to disable continuous integration, such as webhooks into online repos such as GitHub. Defaults to `false`. Changing this forces a new resource to be created. UseManualIntegration *bool `pulumi:"useManualIntegration"` // The repository specified is Mercurial. Defaults to `false`. Changing this forces a new resource to be created. UseMercurial *bool `pulumi:"useMercurial"` } // The set of arguments for constructing a SourceControlSlot resource. type SourceControlSlotArgs struct { // The URL for the repository. Changing this forces a new resource to be created. Branch pulumi.StringPtrInput // A `githubActionConfiguration` block as detailed below. Changing this forces a new resource to be created. GithubActionConfiguration SourceControlSlotGithubActionConfigurationPtrInput // The branch name to use for deployments. Changing this forces a new resource to be created. RepoUrl pulumi.StringPtrInput // Should the Deployment Rollback be enabled? Defaults to `false` Changing this forces a new resource to be created. RollbackEnabled pulumi.BoolPtrInput // The ID of the Linux or Windows Web App Slot. Changing this forces a new resource to be created. // // > **Note:** Function App Slots are not supported at this time. SlotId pulumi.StringInput // Should the Slot use local Git configuration. Changing this forces a new resource to be created. UseLocalGit pulumi.BoolPtrInput // Should code be deployed manually. Set to `true` to disable continuous integration, such as webhooks into online repos such as GitHub. Defaults to `false`. Changing this forces a new resource to be created. UseManualIntegration pulumi.BoolPtrInput // The repository specified is Mercurial. Defaults to `false`. Changing this forces a new resource to be created. UseMercurial pulumi.BoolPtrInput } func (SourceControlSlotArgs) ElementType() reflect.Type { return reflect.TypeOf((*sourceControlSlotArgs)(nil)).Elem() } type SourceControlSlotInput interface { pulumi.Input ToSourceControlSlotOutput() SourceControlSlotOutput ToSourceControlSlotOutputWithContext(ctx context.Context) SourceControlSlotOutput } func (*SourceControlSlot) ElementType() reflect.Type { return reflect.TypeOf((**SourceControlSlot)(nil)).Elem() } func (i *SourceControlSlot) ToSourceControlSlotOutput() SourceControlSlotOutput { return i.ToSourceControlSlotOutputWithContext(context.Background()) } func (i *SourceControlSlot) ToSourceControlSlotOutputWithContext(ctx context.Context) SourceControlSlotOutput { return pulumi.ToOutputWithContext(ctx, i).(SourceControlSlotOutput) } // SourceControlSlotArrayInput is an input type that accepts SourceControlSlotArray and SourceControlSlotArrayOutput values. // You can construct a concrete instance of `SourceControlSlotArrayInput` via: // // SourceControlSlotArray{ SourceControlSlotArgs{...} } type SourceControlSlotArrayInput interface { pulumi.Input ToSourceControlSlotArrayOutput() SourceControlSlotArrayOutput ToSourceControlSlotArrayOutputWithContext(context.Context) SourceControlSlotArrayOutput } type SourceControlSlotArray []SourceControlSlotInput func (SourceControlSlotArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*SourceControlSlot)(nil)).Elem() } func (i SourceControlSlotArray) ToSourceControlSlotArrayOutput() SourceControlSlotArrayOutput { return i.ToSourceControlSlotArrayOutputWithContext(context.Background()) } func (i SourceControlSlotArray) ToSourceControlSlotArrayOutputWithContext(ctx context.Context) SourceControlSlotArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(SourceControlSlotArrayOutput) } // SourceControlSlotMapInput is an input type that accepts SourceControlSlotMap and SourceControlSlotMapOutput values. // You can construct a concrete instance of `SourceControlSlotMapInput` via: // // SourceControlSlotMap{ "key": SourceControlSlotArgs{...} } type SourceControlSlotMapInput interface { pulumi.Input ToSourceControlSlotMapOutput() SourceControlSlotMapOutput ToSourceControlSlotMapOutputWithContext(context.Context) SourceControlSlotMapOutput } type SourceControlSlotMap map[string]SourceControlSlotInput func (SourceControlSlotMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*SourceControlSlot)(nil)).Elem() } func (i SourceControlSlotMap) ToSourceControlSlotMapOutput() SourceControlSlotMapOutput { return i.ToSourceControlSlotMapOutputWithContext(context.Background()) } func (i SourceControlSlotMap) ToSourceControlSlotMapOutputWithContext(ctx context.Context) SourceControlSlotMapOutput { return pulumi.ToOutputWithContext(ctx, i).(SourceControlSlotMapOutput) } type SourceControlSlotOutput struct{ *pulumi.OutputState } func (SourceControlSlotOutput) ElementType() reflect.Type { return reflect.TypeOf((**SourceControlSlot)(nil)).Elem() } func (o SourceControlSlotOutput) ToSourceControlSlotOutput() SourceControlSlotOutput { return o } func (o SourceControlSlotOutput) ToSourceControlSlotOutputWithContext(ctx context.Context) SourceControlSlotOutput { return o } // The URL for the repository. Changing this forces a new resource to be created. func (o SourceControlSlotOutput) Branch() pulumi.StringOutput { return o.ApplyT(func(v *SourceControlSlot) pulumi.StringOutput { return v.Branch }).(pulumi.StringOutput) } // A `githubActionConfiguration` block as detailed below. Changing this forces a new resource to be created. func (o SourceControlSlotOutput) GithubActionConfiguration() SourceControlSlotGithubActionConfigurationPtrOutput { return o.ApplyT(func(v *SourceControlSlot) SourceControlSlotGithubActionConfigurationPtrOutput { return v.GithubActionConfiguration }).(SourceControlSlotGithubActionConfigurationPtrOutput) } // The branch name to use for deployments. Changing this forces a new resource to be created. func (o SourceControlSlotOutput) RepoUrl() pulumi.StringOutput { return o.ApplyT(func(v *SourceControlSlot) pulumi.StringOutput { return v.RepoUrl }).(pulumi.StringOutput) } // Should the Deployment Rollback be enabled? Defaults to `false` Changing this forces a new resource to be created. func (o SourceControlSlotOutput) RollbackEnabled() pulumi.BoolPtrOutput { return o.ApplyT(func(v *SourceControlSlot) pulumi.BoolPtrOutput { return v.RollbackEnabled }).(pulumi.BoolPtrOutput) } // The SCM Type in use. This value is decoded by the service from the repository information supplied. func (o SourceControlSlotOutput) ScmType() pulumi.StringOutput { return o.ApplyT(func(v *SourceControlSlot) pulumi.StringOutput { return v.ScmType }).(pulumi.StringOutput) } // The ID of the Linux or Windows Web App Slot. Changing this forces a new resource to be created. // // > **Note:** Function App Slots are not supported at this time. func (o SourceControlSlotOutput) SlotId() pulumi.StringOutput { return o.ApplyT(func(v *SourceControlSlot) pulumi.StringOutput { return v.SlotId }).(pulumi.StringOutput) } // Should the Slot use local Git configuration. Changing this forces a new resource to be created. func (o SourceControlSlotOutput) UseLocalGit() pulumi.BoolPtrOutput { return o.ApplyT(func(v *SourceControlSlot) pulumi.BoolPtrOutput { return v.UseLocalGit }).(pulumi.BoolPtrOutput) } // Should code be deployed manually. Set to `true` to disable continuous integration, such as webhooks into online repos such as GitHub. Defaults to `false`. Changing this forces a new resource to be created. func (o SourceControlSlotOutput) UseManualIntegration() pulumi.BoolPtrOutput { return o.ApplyT(func(v *SourceControlSlot) pulumi.BoolPtrOutput { return v.UseManualIntegration }).(pulumi.BoolPtrOutput) } // The repository specified is Mercurial. Defaults to `false`. Changing this forces a new resource to be created. func (o SourceControlSlotOutput) UseMercurial() pulumi.BoolPtrOutput { return o.ApplyT(func(v *SourceControlSlot) pulumi.BoolPtrOutput { return v.UseMercurial }).(pulumi.BoolPtrOutput) } // Indicates if the Slot uses a GitHub action for deployment. This value is decoded by the service from the repository information supplied. func (o SourceControlSlotOutput) UsesGithubAction() pulumi.BoolOutput { return o.ApplyT(func(v *SourceControlSlot) pulumi.BoolOutput { return v.UsesGithubAction }).(pulumi.BoolOutput) } type SourceControlSlotArrayOutput struct{ *pulumi.OutputState } func (SourceControlSlotArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*SourceControlSlot)(nil)).Elem() } func (o SourceControlSlotArrayOutput) ToSourceControlSlotArrayOutput() SourceControlSlotArrayOutput { return o } func (o SourceControlSlotArrayOutput) ToSourceControlSlotArrayOutputWithContext(ctx context.Context) SourceControlSlotArrayOutput { return o } func (o SourceControlSlotArrayOutput) Index(i pulumi.IntInput) SourceControlSlotOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *SourceControlSlot { return vs[0].([]*SourceControlSlot)[vs[1].(int)] }).(SourceControlSlotOutput) } type SourceControlSlotMapOutput struct{ *pulumi.OutputState } func (SourceControlSlotMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*SourceControlSlot)(nil)).Elem() } func (o SourceControlSlotMapOutput) ToSourceControlSlotMapOutput() SourceControlSlotMapOutput { return o } func (o SourceControlSlotMapOutput) ToSourceControlSlotMapOutputWithContext(ctx context.Context) SourceControlSlotMapOutput { return o } func (o SourceControlSlotMapOutput) MapIndex(k pulumi.StringInput) SourceControlSlotOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *SourceControlSlot { return vs[0].(map[string]*SourceControlSlot)[vs[1].(string)] }).(SourceControlSlotOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*SourceControlSlotInput)(nil)).Elem(), &SourceControlSlot{}) pulumi.RegisterInputType(reflect.TypeOf((*SourceControlSlotArrayInput)(nil)).Elem(), SourceControlSlotArray{}) pulumi.RegisterInputType(reflect.TypeOf((*SourceControlSlotMapInput)(nil)).Elem(), SourceControlSlotMap{}) pulumi.RegisterOutputType(SourceControlSlotOutput{}) pulumi.RegisterOutputType(SourceControlSlotArrayOutput{}) pulumi.RegisterOutputType(SourceControlSlotMapOutput{}) }
go
Apache-2.0
b66e1472775a89cca43f5050fef806854a7c3fa3
2026-01-07T09:44:27.619514Z
false
pulumi/pulumi-azure
https://github.com/pulumi/pulumi-azure/blob/b66e1472775a89cca43f5050fef806854a7c3fa3/sdk/go/azure/appservice/getCertificate.go
sdk/go/azure/appservice/getCertificate.go
// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package appservice import ( "context" "reflect" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Use this data source to access information about an App Service Certificate. // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/appservice" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { // example, err := appservice.LookupCertificate(ctx, &appservice.LookupCertificateArgs{ // Name: "example-app-service-certificate", // ResourceGroupName: "example-rg", // }, nil) // if err != nil { // return err // } // ctx.Export("appServiceCertificateId", example.Id) // return nil // }) // } // // ``` func LookupCertificate(ctx *pulumi.Context, args *LookupCertificateArgs, opts ...pulumi.InvokeOption) (*LookupCertificateResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupCertificateResult err := ctx.Invoke("azure:appservice/getCertificate:getCertificate", args, &rv, opts...) if err != nil { return nil, err } return &rv, nil } // A collection of arguments for invoking getCertificate. type LookupCertificateArgs struct { // Specifies the name of the certificate. Name string `pulumi:"name"` // The name of the resource group in which to create the certificate. ResourceGroupName string `pulumi:"resourceGroupName"` Tags map[string]string `pulumi:"tags"` } // A collection of values returned by getCertificate. type LookupCertificateResult struct { // The expiration date for the certificate. ExpirationDate string `pulumi:"expirationDate"` // The friendly name of the certificate. FriendlyName string `pulumi:"friendlyName"` // List of host names the certificate applies to. HostNames []string `pulumi:"hostNames"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` // The issue date for the certificate. IssueDate string `pulumi:"issueDate"` // The name of the certificate issuer. Issuer string `pulumi:"issuer"` Location string `pulumi:"location"` Name string `pulumi:"name"` ResourceGroupName string `pulumi:"resourceGroupName"` // The subject name of the certificate. SubjectName string `pulumi:"subjectName"` Tags map[string]string `pulumi:"tags"` // The thumbprint for the certificate. Thumbprint string `pulumi:"thumbprint"` } func LookupCertificateOutput(ctx *pulumi.Context, args LookupCertificateOutputArgs, opts ...pulumi.InvokeOption) LookupCertificateResultOutput { return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupCertificateResultOutput, error) { args := v.(LookupCertificateArgs) options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} return ctx.InvokeOutput("azure:appservice/getCertificate:getCertificate", args, LookupCertificateResultOutput{}, options).(LookupCertificateResultOutput), nil }).(LookupCertificateResultOutput) } // A collection of arguments for invoking getCertificate. type LookupCertificateOutputArgs struct { // Specifies the name of the certificate. Name pulumi.StringInput `pulumi:"name"` // The name of the resource group in which to create the certificate. ResourceGroupName pulumi.StringInput `pulumi:"resourceGroupName"` Tags pulumi.StringMapInput `pulumi:"tags"` } func (LookupCertificateOutputArgs) ElementType() reflect.Type { return reflect.TypeOf((*LookupCertificateArgs)(nil)).Elem() } // A collection of values returned by getCertificate. type LookupCertificateResultOutput struct{ *pulumi.OutputState } func (LookupCertificateResultOutput) ElementType() reflect.Type { return reflect.TypeOf((*LookupCertificateResult)(nil)).Elem() } func (o LookupCertificateResultOutput) ToLookupCertificateResultOutput() LookupCertificateResultOutput { return o } func (o LookupCertificateResultOutput) ToLookupCertificateResultOutputWithContext(ctx context.Context) LookupCertificateResultOutput { return o } // The expiration date for the certificate. func (o LookupCertificateResultOutput) ExpirationDate() pulumi.StringOutput { return o.ApplyT(func(v LookupCertificateResult) string { return v.ExpirationDate }).(pulumi.StringOutput) } // The friendly name of the certificate. func (o LookupCertificateResultOutput) FriendlyName() pulumi.StringOutput { return o.ApplyT(func(v LookupCertificateResult) string { return v.FriendlyName }).(pulumi.StringOutput) } // List of host names the certificate applies to. func (o LookupCertificateResultOutput) HostNames() pulumi.StringArrayOutput { return o.ApplyT(func(v LookupCertificateResult) []string { return v.HostNames }).(pulumi.StringArrayOutput) } // The provider-assigned unique ID for this managed resource. func (o LookupCertificateResultOutput) Id() pulumi.StringOutput { return o.ApplyT(func(v LookupCertificateResult) string { return v.Id }).(pulumi.StringOutput) } // The issue date for the certificate. func (o LookupCertificateResultOutput) IssueDate() pulumi.StringOutput { return o.ApplyT(func(v LookupCertificateResult) string { return v.IssueDate }).(pulumi.StringOutput) } // The name of the certificate issuer. func (o LookupCertificateResultOutput) Issuer() pulumi.StringOutput { return o.ApplyT(func(v LookupCertificateResult) string { return v.Issuer }).(pulumi.StringOutput) } func (o LookupCertificateResultOutput) Location() pulumi.StringOutput { return o.ApplyT(func(v LookupCertificateResult) string { return v.Location }).(pulumi.StringOutput) } func (o LookupCertificateResultOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v LookupCertificateResult) string { return v.Name }).(pulumi.StringOutput) } func (o LookupCertificateResultOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v LookupCertificateResult) string { return v.ResourceGroupName }).(pulumi.StringOutput) } // The subject name of the certificate. func (o LookupCertificateResultOutput) SubjectName() pulumi.StringOutput { return o.ApplyT(func(v LookupCertificateResult) string { return v.SubjectName }).(pulumi.StringOutput) } func (o LookupCertificateResultOutput) Tags() pulumi.StringMapOutput { return o.ApplyT(func(v LookupCertificateResult) map[string]string { return v.Tags }).(pulumi.StringMapOutput) } // The thumbprint for the certificate. func (o LookupCertificateResultOutput) Thumbprint() pulumi.StringOutput { return o.ApplyT(func(v LookupCertificateResult) string { return v.Thumbprint }).(pulumi.StringOutput) } func init() { pulumi.RegisterOutputType(LookupCertificateResultOutput{}) }
go
Apache-2.0
b66e1472775a89cca43f5050fef806854a7c3fa3
2026-01-07T09:44:27.619514Z
false
pulumi/pulumi-azure
https://github.com/pulumi/pulumi-azure/blob/b66e1472775a89cca43f5050fef806854a7c3fa3/sdk/go/azure/containerservice/kubernetesClusterNodePool.go
sdk/go/azure/containerservice/kubernetesClusterNodePool.go
// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package containerservice import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a Node Pool within a Kubernetes Cluster // // > **NOTE:** Multiple Node Pools are only supported when the Kubernetes Cluster is using Virtual Machine Scale Sets. // // > **Note:** Changing certain properties is done by cycling the node pool. When cycling it, it doesn’t perform cordon and drain, and it will disrupt rescheduling pods currently running on the previous node pool. `temporaryNameForRotation` must be specified when changing any of the following properties: `fipsEnabled`, `hostEncryptionEnabled`, `kubeletConfig`, `kubeletDiskType`, `linuxOsConfig`, `maxPods`, `nodePublicIpEnabled`, `osDiskSizeGb`, `osDiskType`, `podSubnetId`, `snapshotId`, `ultraSsdEnabled`, `vmSize`, `vnetSubnetId`, `zones`. // // ## Example Usage // // This example provisions a basic Kubernetes Node Pool. // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/containerservice" // "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-resources"), // Location: pulumi.String("West Europe"), // }) // if err != nil { // return err // } // exampleKubernetesCluster, err := containerservice.NewKubernetesCluster(ctx, "example", &containerservice.KubernetesClusterArgs{ // Name: pulumi.String("example-aks1"), // Location: example.Location, // ResourceGroupName: example.Name, // DnsPrefix: pulumi.String("exampleaks1"), // DefaultNodePool: &containerservice.KubernetesClusterDefaultNodePoolArgs{ // Name: pulumi.String("default"), // NodeCount: pulumi.Int(1), // VmSize: pulumi.String("Standard_D2_v2"), // }, // ServicePrincipal: &containerservice.KubernetesClusterServicePrincipalArgs{ // ClientId: pulumi.String("00000000-0000-0000-0000-000000000000"), // ClientSecret: pulumi.String("00000000000000000000000000000000"), // }, // }) // if err != nil { // return err // } // _, err = containerservice.NewKubernetesClusterNodePool(ctx, "example", &containerservice.KubernetesClusterNodePoolArgs{ // Name: pulumi.String("internal"), // KubernetesClusterId: exampleKubernetesCluster.ID(), // VmSize: pulumi.String("Standard_DS2_v2"), // NodeCount: pulumi.Int(1), // Tags: pulumi.StringMap{ // "Environment": pulumi.String("Production"), // }, // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## API Providers // // <!-- This section is generated, changes will be overwritten --> // This resource uses the following Azure API Providers: // // * `Microsoft.ContainerService` - 2025-07-01 // // ## Import // // Kubernetes Cluster Node Pools can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:containerservice/kubernetesClusterNodePool:KubernetesClusterNodePool pool1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.ContainerService/managedClusters/cluster1/agentPools/pool1 // ``` type KubernetesClusterNodePool struct { pulumi.CustomResourceState // Whether to enable [auto-scaler](https://docs.microsoft.com/azure/aks/cluster-autoscaler). AutoScalingEnabled pulumi.BoolPtrOutput `pulumi:"autoScalingEnabled"` // Specifies the ID of the Capacity Reservation Group where this Node Pool should exist. Changing this forces a new resource to be created. CapacityReservationGroupId pulumi.StringPtrOutput `pulumi:"capacityReservationGroupId"` // The Eviction Policy which should be used for Virtual Machines within the Virtual Machine Scale Set powering this Node Pool. Possible values are `Deallocate` and `Delete`. Changing this forces a new resource to be created. // // > **Note:** An Eviction Policy can only be configured when `priority` is set to `Spot` and will default to `Delete` unless otherwise specified. EvictionPolicy pulumi.StringPtrOutput `pulumi:"evictionPolicy"` // Should the nodes in this Node Pool have Federal Information Processing Standard enabled? Changing this property requires specifying `temporaryNameForRotation`. // // > **Note:** FIPS support is in Public Preview - more information and details on how to opt into the Preview can be found in [this article](https://docs.microsoft.com/azure/aks/use-multiple-node-pools#add-a-fips-enabled-node-pool-preview). FipsEnabled pulumi.BoolPtrOutput `pulumi:"fipsEnabled"` // Specifies whether to install the GPU Driver for the nodes. Possible values are `Install` and `None`. Changing this forces a new resource to be created. GpuDriver pulumi.StringPtrOutput `pulumi:"gpuDriver"` // Specifies the GPU MIG instance profile for supported GPU VM SKU. The allowed values are `MIG1g`, `MIG2g`, `MIG3g`, `MIG4g` and `MIG7g`. Changing this forces a new resource to be created. GpuInstance pulumi.StringPtrOutput `pulumi:"gpuInstance"` // Should the nodes in this Node Pool have host encryption enabled? Changing this property requires specifying `temporaryNameForRotation`. // // > **NOTE:** Additional fields must be configured depending on the value of this field - see below. HostEncryptionEnabled pulumi.BoolPtrOutput `pulumi:"hostEncryptionEnabled"` // The fully qualified resource ID of the Dedicated Host Group to provision virtual machines from. Changing this forces a new resource to be created. HostGroupId pulumi.StringPtrOutput `pulumi:"hostGroupId"` // A `kubeletConfig` block as defined below. Changing this requires specifying `temporaryNameForRotation`. KubeletConfig KubernetesClusterNodePoolKubeletConfigPtrOutput `pulumi:"kubeletConfig"` // The type of disk used by kubelet. Possible values are `OS` and `Temporary`. Changing this property requires specifying `temporaryNameForRotation`. KubeletDiskType pulumi.StringOutput `pulumi:"kubeletDiskType"` // The ID of the Kubernetes Cluster where this Node Pool should exist. Changing this forces a new resource to be created. // // > **NOTE:** The type of Default Node Pool for the Kubernetes Cluster must be `VirtualMachineScaleSets` to attach multiple node pools. KubernetesClusterId pulumi.StringOutput `pulumi:"kubernetesClusterId"` // A `linuxOsConfig` block as defined below. Changing this requires specifying `temporaryNameForRotation`. LinuxOsConfig KubernetesClusterNodePoolLinuxOsConfigPtrOutput `pulumi:"linuxOsConfig"` MaxCount pulumi.IntPtrOutput `pulumi:"maxCount"` // The maximum number of pods that can run on each agent. Changing this property requires specifying `temporaryNameForRotation`. MaxPods pulumi.IntOutput `pulumi:"maxPods"` MinCount pulumi.IntPtrOutput `pulumi:"minCount"` // Should this Node Pool be used for System or User resources? Possible values are `System` and `User`. Defaults to `User`. Mode pulumi.StringPtrOutput `pulumi:"mode"` // The name of the Node Pool which should be created within the Kubernetes Cluster. Changing this forces a new resource to be created. // // > **NOTE:** A Windows Node Pool cannot have a `name` longer than 6 characters. Name pulumi.StringOutput `pulumi:"name"` NodeCount pulumi.IntOutput `pulumi:"nodeCount"` // A map of Kubernetes labels which should be applied to nodes in this Node Pool. NodeLabels pulumi.StringMapOutput `pulumi:"nodeLabels"` // A `nodeNetworkProfile` block as documented below. NodeNetworkProfile KubernetesClusterNodePoolNodeNetworkProfilePtrOutput `pulumi:"nodeNetworkProfile"` // Should each node have a Public IP Address? Changing this property requires specifying `temporaryNameForRotation`. NodePublicIpEnabled pulumi.BoolPtrOutput `pulumi:"nodePublicIpEnabled"` // Resource ID for the Public IP Addresses Prefix for the nodes in this Node Pool. `nodePublicIpEnabled` should be `true`. Changing this forces a new resource to be created. NodePublicIpPrefixId pulumi.StringPtrOutput `pulumi:"nodePublicIpPrefixId"` // A list of Kubernetes taints which should be applied to nodes in the agent pool (e.g `key=value:NoSchedule`). NodeTaints pulumi.StringArrayOutput `pulumi:"nodeTaints"` // Version of Kubernetes used for the Agents. If not specified, the latest recommended version will be used at provisioning time (but won't auto-upgrade). AKS does not require an exact patch version to be specified, minor version aliases such as `1.22` are also supported. - The minor version's latest GA patch is automatically chosen in that case. More details can be found in [the documentation](https://docs.microsoft.com/en-us/azure/aks/supported-kubernetes-versions?tabs=azure-cli#alias-minor-version). // // > **Note:** This version must be supported by the Kubernetes Cluster - as such the version of Kubernetes used on the Cluster/Control Plane may need to be upgraded first. OrchestratorVersion pulumi.StringOutput `pulumi:"orchestratorVersion"` // The Agent Operating System disk size in GB. Changing this property requires specifying `temporaryNameForRotation`. OsDiskSizeGb pulumi.IntOutput `pulumi:"osDiskSizeGb"` // The type of disk which should be used for the Operating System. Possible values are `Ephemeral` and `Managed`. Defaults to `Managed`. Changing this property requires specifying `temporaryNameForRotation`. OsDiskType pulumi.StringPtrOutput `pulumi:"osDiskType"` // Specifies the OS SKU used by the agent pool. Possible values are `AzureLinux`, `AzureLinux3`, `Ubuntu`, `Ubuntu2204`, `Windows2019` and `Windows2022`. If not specified, the default is `Ubuntu` if OSType=Linux or `Windows2019` if OSType=Windows. And the default Windows OSSKU will be changed to `Windows2022` after Windows2019 is deprecated. Changing this from `AzureLinux` or `Ubuntu` to `AzureLinux` or `Ubuntu` will not replace the resource, otherwise it forces a new resource to be created. OsSku pulumi.StringOutput `pulumi:"osSku"` // The Operating System which should be used for this Node Pool. Changing this forces a new resource to be created. Possible values are `Linux` and `Windows`. Defaults to `Linux`. OsType pulumi.StringPtrOutput `pulumi:"osType"` // The ID of the Subnet where the pods in the Node Pool should exist. Changing this property requires specifying `temporaryNameForRotation`. PodSubnetId pulumi.StringPtrOutput `pulumi:"podSubnetId"` // The Priority for Virtual Machines within the Virtual Machine Scale Set that powers this Node Pool. Possible values are `Regular` and `Spot`. Defaults to `Regular`. Changing this forces a new resource to be created. Priority pulumi.StringPtrOutput `pulumi:"priority"` // The ID of the Proximity Placement Group where the Virtual Machine Scale Set that powers this Node Pool will be placed. Changing this forces a new resource to be created. // // > **Note:** When setting `priority` to Spot - you must configure an `evictionPolicy`, `spotMaxPrice` and add the applicable `nodeLabels` and `nodeTaints` [as per the Azure Documentation](https://docs.microsoft.com/azure/aks/spot-node-pool). ProximityPlacementGroupId pulumi.StringPtrOutput `pulumi:"proximityPlacementGroupId"` // Specifies how the node pool should deal with scaled-down nodes. Allowed values are `Delete` and `Deallocate`. Defaults to `Delete`. ScaleDownMode pulumi.StringPtrOutput `pulumi:"scaleDownMode"` // The ID of the Snapshot which should be used to create this Node Pool. Changing this property requires specifying `temporaryNameForRotation`. SnapshotId pulumi.StringPtrOutput `pulumi:"snapshotId"` // The maximum price you're willing to pay in USD per Virtual Machine. Valid values are `-1` (the current on-demand price for a Virtual Machine) or a positive value with up to five decimal places. Changing this forces a new resource to be created. // // > **Note:** This field can only be configured when `priority` is set to `Spot`. SpotMaxPrice pulumi.Float64PtrOutput `pulumi:"spotMaxPrice"` // A mapping of tags to assign to the resource. // // > At this time there's a bug in the AKS API where Tags for a Node Pool are not stored in the correct case - you may wish to use [`ignoreChanges`](https://www.pulumi.com/docs/intro/concepts/programming-model/#ignorechanges) functionality to ignore changes to the casing until this is fixed in the AKS API. Tags pulumi.StringMapOutput `pulumi:"tags"` // Specifies the name of the temporary node pool used to cycle the node pool when one of the relevant properties are updated. TemporaryNameForRotation pulumi.StringPtrOutput `pulumi:"temporaryNameForRotation"` // Used to specify whether the UltraSSD is enabled in the Node Pool. Defaults to `false`. See [the documentation](https://docs.microsoft.com/azure/aks/use-ultra-disks) for more information. Changing this property requires specifying `temporaryNameForRotation`. UltraSsdEnabled pulumi.BoolPtrOutput `pulumi:"ultraSsdEnabled"` // A `upgradeSettings` block as documented below. UpgradeSettings KubernetesClusterNodePoolUpgradeSettingsPtrOutput `pulumi:"upgradeSettings"` // The SKU which should be used for the Virtual Machines used in this Node Pool. Changing this property requires specifying `temporaryNameForRotation`. VmSize pulumi.StringOutput `pulumi:"vmSize"` // The ID of the Subnet where this Node Pool should exist. Changing this property requires specifying `temporaryNameForRotation`. // // > **NOTE:** A route table must be configured on this Subnet. VnetSubnetId pulumi.StringPtrOutput `pulumi:"vnetSubnetId"` // A `windowsProfile` block as documented below. Changing this forces a new resource to be created. WindowsProfile KubernetesClusterNodePoolWindowsProfilePtrOutput `pulumi:"windowsProfile"` // Used to specify the workload runtime. Allowed values are `OCIContainer` and `WasmWasi`. // // > **Note:** WebAssembly System Interface node pools are in Public Preview - more information and details on how to opt into the preview can be found in [this article](https://docs.microsoft.com/azure/aks/use-wasi-node-pools) WorkloadRuntime pulumi.StringPtrOutput `pulumi:"workloadRuntime"` // Specifies a list of Availability Zones in which this Kubernetes Cluster Node Pool should be located. Changing this property requires specifying `temporaryNameForRotation`. Zones pulumi.StringArrayOutput `pulumi:"zones"` } // NewKubernetesClusterNodePool registers a new resource with the given unique name, arguments, and options. func NewKubernetesClusterNodePool(ctx *pulumi.Context, name string, args *KubernetesClusterNodePoolArgs, opts ...pulumi.ResourceOption) (*KubernetesClusterNodePool, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.KubernetesClusterId == nil { return nil, errors.New("invalid value for required argument 'KubernetesClusterId'") } opts = internal.PkgResourceDefaultOpts(opts) var resource KubernetesClusterNodePool err := ctx.RegisterResource("azure:containerservice/kubernetesClusterNodePool:KubernetesClusterNodePool", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetKubernetesClusterNodePool gets an existing KubernetesClusterNodePool 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 GetKubernetesClusterNodePool(ctx *pulumi.Context, name string, id pulumi.IDInput, state *KubernetesClusterNodePoolState, opts ...pulumi.ResourceOption) (*KubernetesClusterNodePool, error) { var resource KubernetesClusterNodePool err := ctx.ReadResource("azure:containerservice/kubernetesClusterNodePool:KubernetesClusterNodePool", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering KubernetesClusterNodePool resources. type kubernetesClusterNodePoolState struct { // Whether to enable [auto-scaler](https://docs.microsoft.com/azure/aks/cluster-autoscaler). AutoScalingEnabled *bool `pulumi:"autoScalingEnabled"` // Specifies the ID of the Capacity Reservation Group where this Node Pool should exist. Changing this forces a new resource to be created. CapacityReservationGroupId *string `pulumi:"capacityReservationGroupId"` // The Eviction Policy which should be used for Virtual Machines within the Virtual Machine Scale Set powering this Node Pool. Possible values are `Deallocate` and `Delete`. Changing this forces a new resource to be created. // // > **Note:** An Eviction Policy can only be configured when `priority` is set to `Spot` and will default to `Delete` unless otherwise specified. EvictionPolicy *string `pulumi:"evictionPolicy"` // Should the nodes in this Node Pool have Federal Information Processing Standard enabled? Changing this property requires specifying `temporaryNameForRotation`. // // > **Note:** FIPS support is in Public Preview - more information and details on how to opt into the Preview can be found in [this article](https://docs.microsoft.com/azure/aks/use-multiple-node-pools#add-a-fips-enabled-node-pool-preview). FipsEnabled *bool `pulumi:"fipsEnabled"` // Specifies whether to install the GPU Driver for the nodes. Possible values are `Install` and `None`. Changing this forces a new resource to be created. GpuDriver *string `pulumi:"gpuDriver"` // Specifies the GPU MIG instance profile for supported GPU VM SKU. The allowed values are `MIG1g`, `MIG2g`, `MIG3g`, `MIG4g` and `MIG7g`. Changing this forces a new resource to be created. GpuInstance *string `pulumi:"gpuInstance"` // Should the nodes in this Node Pool have host encryption enabled? Changing this property requires specifying `temporaryNameForRotation`. // // > **NOTE:** Additional fields must be configured depending on the value of this field - see below. HostEncryptionEnabled *bool `pulumi:"hostEncryptionEnabled"` // The fully qualified resource ID of the Dedicated Host Group to provision virtual machines from. Changing this forces a new resource to be created. HostGroupId *string `pulumi:"hostGroupId"` // A `kubeletConfig` block as defined below. Changing this requires specifying `temporaryNameForRotation`. KubeletConfig *KubernetesClusterNodePoolKubeletConfig `pulumi:"kubeletConfig"` // The type of disk used by kubelet. Possible values are `OS` and `Temporary`. Changing this property requires specifying `temporaryNameForRotation`. KubeletDiskType *string `pulumi:"kubeletDiskType"` // The ID of the Kubernetes Cluster where this Node Pool should exist. Changing this forces a new resource to be created. // // > **NOTE:** The type of Default Node Pool for the Kubernetes Cluster must be `VirtualMachineScaleSets` to attach multiple node pools. KubernetesClusterId *string `pulumi:"kubernetesClusterId"` // A `linuxOsConfig` block as defined below. Changing this requires specifying `temporaryNameForRotation`. LinuxOsConfig *KubernetesClusterNodePoolLinuxOsConfig `pulumi:"linuxOsConfig"` MaxCount *int `pulumi:"maxCount"` // The maximum number of pods that can run on each agent. Changing this property requires specifying `temporaryNameForRotation`. MaxPods *int `pulumi:"maxPods"` MinCount *int `pulumi:"minCount"` // Should this Node Pool be used for System or User resources? Possible values are `System` and `User`. Defaults to `User`. Mode *string `pulumi:"mode"` // The name of the Node Pool which should be created within the Kubernetes Cluster. Changing this forces a new resource to be created. // // > **NOTE:** A Windows Node Pool cannot have a `name` longer than 6 characters. Name *string `pulumi:"name"` NodeCount *int `pulumi:"nodeCount"` // A map of Kubernetes labels which should be applied to nodes in this Node Pool. NodeLabels map[string]string `pulumi:"nodeLabels"` // A `nodeNetworkProfile` block as documented below. NodeNetworkProfile *KubernetesClusterNodePoolNodeNetworkProfile `pulumi:"nodeNetworkProfile"` // Should each node have a Public IP Address? Changing this property requires specifying `temporaryNameForRotation`. NodePublicIpEnabled *bool `pulumi:"nodePublicIpEnabled"` // Resource ID for the Public IP Addresses Prefix for the nodes in this Node Pool. `nodePublicIpEnabled` should be `true`. Changing this forces a new resource to be created. NodePublicIpPrefixId *string `pulumi:"nodePublicIpPrefixId"` // A list of Kubernetes taints which should be applied to nodes in the agent pool (e.g `key=value:NoSchedule`). NodeTaints []string `pulumi:"nodeTaints"` // Version of Kubernetes used for the Agents. If not specified, the latest recommended version will be used at provisioning time (but won't auto-upgrade). AKS does not require an exact patch version to be specified, minor version aliases such as `1.22` are also supported. - The minor version's latest GA patch is automatically chosen in that case. More details can be found in [the documentation](https://docs.microsoft.com/en-us/azure/aks/supported-kubernetes-versions?tabs=azure-cli#alias-minor-version). // // > **Note:** This version must be supported by the Kubernetes Cluster - as such the version of Kubernetes used on the Cluster/Control Plane may need to be upgraded first. OrchestratorVersion *string `pulumi:"orchestratorVersion"` // The Agent Operating System disk size in GB. Changing this property requires specifying `temporaryNameForRotation`. OsDiskSizeGb *int `pulumi:"osDiskSizeGb"` // The type of disk which should be used for the Operating System. Possible values are `Ephemeral` and `Managed`. Defaults to `Managed`. Changing this property requires specifying `temporaryNameForRotation`. OsDiskType *string `pulumi:"osDiskType"` // Specifies the OS SKU used by the agent pool. Possible values are `AzureLinux`, `AzureLinux3`, `Ubuntu`, `Ubuntu2204`, `Windows2019` and `Windows2022`. If not specified, the default is `Ubuntu` if OSType=Linux or `Windows2019` if OSType=Windows. And the default Windows OSSKU will be changed to `Windows2022` after Windows2019 is deprecated. Changing this from `AzureLinux` or `Ubuntu` to `AzureLinux` or `Ubuntu` will not replace the resource, otherwise it forces a new resource to be created. OsSku *string `pulumi:"osSku"` // The Operating System which should be used for this Node Pool. Changing this forces a new resource to be created. Possible values are `Linux` and `Windows`. Defaults to `Linux`. OsType *string `pulumi:"osType"` // The ID of the Subnet where the pods in the Node Pool should exist. Changing this property requires specifying `temporaryNameForRotation`. PodSubnetId *string `pulumi:"podSubnetId"` // The Priority for Virtual Machines within the Virtual Machine Scale Set that powers this Node Pool. Possible values are `Regular` and `Spot`. Defaults to `Regular`. Changing this forces a new resource to be created. Priority *string `pulumi:"priority"` // The ID of the Proximity Placement Group where the Virtual Machine Scale Set that powers this Node Pool will be placed. Changing this forces a new resource to be created. // // > **Note:** When setting `priority` to Spot - you must configure an `evictionPolicy`, `spotMaxPrice` and add the applicable `nodeLabels` and `nodeTaints` [as per the Azure Documentation](https://docs.microsoft.com/azure/aks/spot-node-pool). ProximityPlacementGroupId *string `pulumi:"proximityPlacementGroupId"` // Specifies how the node pool should deal with scaled-down nodes. Allowed values are `Delete` and `Deallocate`. Defaults to `Delete`. ScaleDownMode *string `pulumi:"scaleDownMode"` // The ID of the Snapshot which should be used to create this Node Pool. Changing this property requires specifying `temporaryNameForRotation`. SnapshotId *string `pulumi:"snapshotId"` // The maximum price you're willing to pay in USD per Virtual Machine. Valid values are `-1` (the current on-demand price for a Virtual Machine) or a positive value with up to five decimal places. Changing this forces a new resource to be created. // // > **Note:** This field can only be configured when `priority` is set to `Spot`. SpotMaxPrice *float64 `pulumi:"spotMaxPrice"` // A mapping of tags to assign to the resource. // // > At this time there's a bug in the AKS API where Tags for a Node Pool are not stored in the correct case - you may wish to use [`ignoreChanges`](https://www.pulumi.com/docs/intro/concepts/programming-model/#ignorechanges) functionality to ignore changes to the casing until this is fixed in the AKS API. Tags map[string]string `pulumi:"tags"` // Specifies the name of the temporary node pool used to cycle the node pool when one of the relevant properties are updated. TemporaryNameForRotation *string `pulumi:"temporaryNameForRotation"` // Used to specify whether the UltraSSD is enabled in the Node Pool. Defaults to `false`. See [the documentation](https://docs.microsoft.com/azure/aks/use-ultra-disks) for more information. Changing this property requires specifying `temporaryNameForRotation`. UltraSsdEnabled *bool `pulumi:"ultraSsdEnabled"` // A `upgradeSettings` block as documented below. UpgradeSettings *KubernetesClusterNodePoolUpgradeSettings `pulumi:"upgradeSettings"` // The SKU which should be used for the Virtual Machines used in this Node Pool. Changing this property requires specifying `temporaryNameForRotation`. VmSize *string `pulumi:"vmSize"` // The ID of the Subnet where this Node Pool should exist. Changing this property requires specifying `temporaryNameForRotation`. // // > **NOTE:** A route table must be configured on this Subnet. VnetSubnetId *string `pulumi:"vnetSubnetId"` // A `windowsProfile` block as documented below. Changing this forces a new resource to be created. WindowsProfile *KubernetesClusterNodePoolWindowsProfile `pulumi:"windowsProfile"` // Used to specify the workload runtime. Allowed values are `OCIContainer` and `WasmWasi`. // // > **Note:** WebAssembly System Interface node pools are in Public Preview - more information and details on how to opt into the preview can be found in [this article](https://docs.microsoft.com/azure/aks/use-wasi-node-pools) WorkloadRuntime *string `pulumi:"workloadRuntime"` // Specifies a list of Availability Zones in which this Kubernetes Cluster Node Pool should be located. Changing this property requires specifying `temporaryNameForRotation`. Zones []string `pulumi:"zones"` } type KubernetesClusterNodePoolState struct { // Whether to enable [auto-scaler](https://docs.microsoft.com/azure/aks/cluster-autoscaler). AutoScalingEnabled pulumi.BoolPtrInput // Specifies the ID of the Capacity Reservation Group where this Node Pool should exist. Changing this forces a new resource to be created. CapacityReservationGroupId pulumi.StringPtrInput // The Eviction Policy which should be used for Virtual Machines within the Virtual Machine Scale Set powering this Node Pool. Possible values are `Deallocate` and `Delete`. Changing this forces a new resource to be created. // // > **Note:** An Eviction Policy can only be configured when `priority` is set to `Spot` and will default to `Delete` unless otherwise specified. EvictionPolicy pulumi.StringPtrInput // Should the nodes in this Node Pool have Federal Information Processing Standard enabled? Changing this property requires specifying `temporaryNameForRotation`. // // > **Note:** FIPS support is in Public Preview - more information and details on how to opt into the Preview can be found in [this article](https://docs.microsoft.com/azure/aks/use-multiple-node-pools#add-a-fips-enabled-node-pool-preview). FipsEnabled pulumi.BoolPtrInput // Specifies whether to install the GPU Driver for the nodes. Possible values are `Install` and `None`. Changing this forces a new resource to be created. GpuDriver pulumi.StringPtrInput // Specifies the GPU MIG instance profile for supported GPU VM SKU. The allowed values are `MIG1g`, `MIG2g`, `MIG3g`, `MIG4g` and `MIG7g`. Changing this forces a new resource to be created. GpuInstance pulumi.StringPtrInput // Should the nodes in this Node Pool have host encryption enabled? Changing this property requires specifying `temporaryNameForRotation`. // // > **NOTE:** Additional fields must be configured depending on the value of this field - see below. HostEncryptionEnabled pulumi.BoolPtrInput // The fully qualified resource ID of the Dedicated Host Group to provision virtual machines from. Changing this forces a new resource to be created. HostGroupId pulumi.StringPtrInput // A `kubeletConfig` block as defined below. Changing this requires specifying `temporaryNameForRotation`. KubeletConfig KubernetesClusterNodePoolKubeletConfigPtrInput // The type of disk used by kubelet. Possible values are `OS` and `Temporary`. Changing this property requires specifying `temporaryNameForRotation`. KubeletDiskType pulumi.StringPtrInput // The ID of the Kubernetes Cluster where this Node Pool should exist. Changing this forces a new resource to be created. // // > **NOTE:** The type of Default Node Pool for the Kubernetes Cluster must be `VirtualMachineScaleSets` to attach multiple node pools. KubernetesClusterId pulumi.StringPtrInput // A `linuxOsConfig` block as defined below. Changing this requires specifying `temporaryNameForRotation`. LinuxOsConfig KubernetesClusterNodePoolLinuxOsConfigPtrInput MaxCount pulumi.IntPtrInput // The maximum number of pods that can run on each agent. Changing this property requires specifying `temporaryNameForRotation`. MaxPods pulumi.IntPtrInput MinCount pulumi.IntPtrInput // Should this Node Pool be used for System or User resources? Possible values are `System` and `User`. Defaults to `User`. Mode pulumi.StringPtrInput // The name of the Node Pool which should be created within the Kubernetes Cluster. Changing this forces a new resource to be created. // // > **NOTE:** A Windows Node Pool cannot have a `name` longer than 6 characters. Name pulumi.StringPtrInput NodeCount pulumi.IntPtrInput // A map of Kubernetes labels which should be applied to nodes in this Node Pool. NodeLabels pulumi.StringMapInput // A `nodeNetworkProfile` block as documented below. NodeNetworkProfile KubernetesClusterNodePoolNodeNetworkProfilePtrInput // Should each node have a Public IP Address? Changing this property requires specifying `temporaryNameForRotation`. NodePublicIpEnabled pulumi.BoolPtrInput // Resource ID for the Public IP Addresses Prefix for the nodes in this Node Pool. `nodePublicIpEnabled` should be `true`. Changing this forces a new resource to be created. NodePublicIpPrefixId pulumi.StringPtrInput // A list of Kubernetes taints which should be applied to nodes in the agent pool (e.g `key=value:NoSchedule`). NodeTaints pulumi.StringArrayInput // Version of Kubernetes used for the Agents. If not specified, the latest recommended version will be used at provisioning time (but won't auto-upgrade). AKS does not require an exact patch version to be specified, minor version aliases such as `1.22` are also supported. - The minor version's latest GA patch is automatically chosen in that case. More details can be found in [the documentation](https://docs.microsoft.com/en-us/azure/aks/supported-kubernetes-versions?tabs=azure-cli#alias-minor-version). // // > **Note:** This version must be supported by the Kubernetes Cluster - as such the version of Kubernetes used on the Cluster/Control Plane may need to be upgraded first. OrchestratorVersion pulumi.StringPtrInput // The Agent Operating System disk size in GB. Changing this property requires specifying `temporaryNameForRotation`. OsDiskSizeGb pulumi.IntPtrInput // The type of disk which should be used for the Operating System. Possible values are `Ephemeral` and `Managed`. Defaults to `Managed`. Changing this property requires specifying `temporaryNameForRotation`. OsDiskType pulumi.StringPtrInput
go
Apache-2.0
b66e1472775a89cca43f5050fef806854a7c3fa3
2026-01-07T09:44:27.619514Z
true
pulumi/pulumi-azure
https://github.com/pulumi/pulumi-azure/blob/b66e1472775a89cca43f5050fef806854a7c3fa3/sdk/go/azure/containerservice/init.go
sdk/go/azure/containerservice/init.go
// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package containerservice import ( "fmt" "github.com/blang/semver" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) type module struct { version semver.Version } func (m *module) Version() semver.Version { return m.version } func (m *module) Construct(ctx *pulumi.Context, name, typ, urn string) (r pulumi.Resource, err error) { switch typ { case "azure:containerservice/clusterTrustedAccessRoleBinding:ClusterTrustedAccessRoleBinding": r = &ClusterTrustedAccessRoleBinding{} case "azure:containerservice/connectedRegistry:ConnectedRegistry": r = &ConnectedRegistry{} case "azure:containerservice/fleetMember:FleetMember": r = &FleetMember{} case "azure:containerservice/fleetUpdateRun:FleetUpdateRun": r = &FleetUpdateRun{} case "azure:containerservice/fleetUpdateStrategy:FleetUpdateStrategy": r = &FleetUpdateStrategy{} case "azure:containerservice/fluxConfiguration:FluxConfiguration": r = &FluxConfiguration{} case "azure:containerservice/group:Group": r = &Group{} case "azure:containerservice/kubernetesCluster:KubernetesCluster": r = &KubernetesCluster{} case "azure:containerservice/kubernetesClusterExtension:KubernetesClusterExtension": r = &KubernetesClusterExtension{} case "azure:containerservice/kubernetesClusterNodePool:KubernetesClusterNodePool": r = &KubernetesClusterNodePool{} case "azure:containerservice/kubernetesFleetManager:KubernetesFleetManager": r = &KubernetesFleetManager{} case "azure:containerservice/registry:Registry": r = &Registry{} case "azure:containerservice/registryAgentPool:RegistryAgentPool": r = &RegistryAgentPool{} case "azure:containerservice/registryCacheRule:RegistryCacheRule": r = &RegistryCacheRule{} case "azure:containerservice/registryCredentialSet:RegistryCredentialSet": r = &RegistryCredentialSet{} case "azure:containerservice/registryScopeMap:RegistryScopeMap": r = &RegistryScopeMap{} case "azure:containerservice/registryTask:RegistryTask": r = &RegistryTask{} case "azure:containerservice/registryTaskScheduleRunNow:RegistryTaskScheduleRunNow": r = &RegistryTaskScheduleRunNow{} case "azure:containerservice/registryToken:RegistryToken": r = &RegistryToken{} case "azure:containerservice/registryWebhook:RegistryWebhook": r = &RegistryWebhook{} case "azure:containerservice/registryWebook:RegistryWebook": r = &RegistryWebook{} case "azure:containerservice/tokenPassword:TokenPassword": r = &TokenPassword{} default: return nil, fmt.Errorf("unknown resource type: %s", typ) } err = ctx.RegisterResource(typ, name, nil, r, pulumi.URN_(urn)) return } func init() { version, err := internal.PkgVersion() if err != nil { version = semver.Version{Major: 1} } pulumi.RegisterResourceModule( "azure", "containerservice/clusterTrustedAccessRoleBinding", &module{version}, ) pulumi.RegisterResourceModule( "azure", "containerservice/connectedRegistry", &module{version}, ) pulumi.RegisterResourceModule( "azure", "containerservice/fleetMember", &module{version}, ) pulumi.RegisterResourceModule( "azure", "containerservice/fleetUpdateRun", &module{version}, ) pulumi.RegisterResourceModule( "azure", "containerservice/fleetUpdateStrategy", &module{version}, ) pulumi.RegisterResourceModule( "azure", "containerservice/fluxConfiguration", &module{version}, ) pulumi.RegisterResourceModule( "azure", "containerservice/group", &module{version}, ) pulumi.RegisterResourceModule( "azure", "containerservice/kubernetesCluster", &module{version}, ) pulumi.RegisterResourceModule( "azure", "containerservice/kubernetesClusterExtension", &module{version}, ) pulumi.RegisterResourceModule( "azure", "containerservice/kubernetesClusterNodePool", &module{version}, ) pulumi.RegisterResourceModule( "azure", "containerservice/kubernetesFleetManager", &module{version}, ) pulumi.RegisterResourceModule( "azure", "containerservice/registry", &module{version}, ) pulumi.RegisterResourceModule( "azure", "containerservice/registryAgentPool", &module{version}, ) pulumi.RegisterResourceModule( "azure", "containerservice/registryCacheRule", &module{version}, ) pulumi.RegisterResourceModule( "azure", "containerservice/registryCredentialSet", &module{version}, ) pulumi.RegisterResourceModule( "azure", "containerservice/registryScopeMap", &module{version}, ) pulumi.RegisterResourceModule( "azure", "containerservice/registryTask", &module{version}, ) pulumi.RegisterResourceModule( "azure", "containerservice/registryTaskScheduleRunNow", &module{version}, ) pulumi.RegisterResourceModule( "azure", "containerservice/registryToken", &module{version}, ) pulumi.RegisterResourceModule( "azure", "containerservice/registryWebhook", &module{version}, ) pulumi.RegisterResourceModule( "azure", "containerservice/registryWebook", &module{version}, ) pulumi.RegisterResourceModule( "azure", "containerservice/tokenPassword", &module{version}, ) }
go
Apache-2.0
b66e1472775a89cca43f5050fef806854a7c3fa3
2026-01-07T09:44:27.619514Z
false
pulumi/pulumi-azure
https://github.com/pulumi/pulumi-azure/blob/b66e1472775a89cca43f5050fef806854a7c3fa3/sdk/go/azure/containerservice/pulumiTypes.go
sdk/go/azure/containerservice/pulumiTypes.go
// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package containerservice import ( "context" "reflect" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) var _ = internal.GetEnvOrDefault type ConnectedRegistryNotification struct { // The action of the artifact that wants to be subscribed for the Connected Registry. Possible values are `push`, `delete` and `*` (i.e. any). Action string `pulumi:"action"` // The digest of the artifact that wants to be subscribed for the Connected Registry. // // > **Note:** One of either `tag` or `digest` can be specified. Digest *string `pulumi:"digest"` // The name of the artifact that wants to be subscribed for the Connected Registry. Name string `pulumi:"name"` // The tag of the artifact that wants to be subscribed for the Connected Registry. Tag *string `pulumi:"tag"` } // ConnectedRegistryNotificationInput is an input type that accepts ConnectedRegistryNotificationArgs and ConnectedRegistryNotificationOutput values. // You can construct a concrete instance of `ConnectedRegistryNotificationInput` via: // // ConnectedRegistryNotificationArgs{...} type ConnectedRegistryNotificationInput interface { pulumi.Input ToConnectedRegistryNotificationOutput() ConnectedRegistryNotificationOutput ToConnectedRegistryNotificationOutputWithContext(context.Context) ConnectedRegistryNotificationOutput } type ConnectedRegistryNotificationArgs struct { // The action of the artifact that wants to be subscribed for the Connected Registry. Possible values are `push`, `delete` and `*` (i.e. any). Action pulumi.StringInput `pulumi:"action"` // The digest of the artifact that wants to be subscribed for the Connected Registry. // // > **Note:** One of either `tag` or `digest` can be specified. Digest pulumi.StringPtrInput `pulumi:"digest"` // The name of the artifact that wants to be subscribed for the Connected Registry. Name pulumi.StringInput `pulumi:"name"` // The tag of the artifact that wants to be subscribed for the Connected Registry. Tag pulumi.StringPtrInput `pulumi:"tag"` } func (ConnectedRegistryNotificationArgs) ElementType() reflect.Type { return reflect.TypeOf((*ConnectedRegistryNotification)(nil)).Elem() } func (i ConnectedRegistryNotificationArgs) ToConnectedRegistryNotificationOutput() ConnectedRegistryNotificationOutput { return i.ToConnectedRegistryNotificationOutputWithContext(context.Background()) } func (i ConnectedRegistryNotificationArgs) ToConnectedRegistryNotificationOutputWithContext(ctx context.Context) ConnectedRegistryNotificationOutput { return pulumi.ToOutputWithContext(ctx, i).(ConnectedRegistryNotificationOutput) } // ConnectedRegistryNotificationArrayInput is an input type that accepts ConnectedRegistryNotificationArray and ConnectedRegistryNotificationArrayOutput values. // You can construct a concrete instance of `ConnectedRegistryNotificationArrayInput` via: // // ConnectedRegistryNotificationArray{ ConnectedRegistryNotificationArgs{...} } type ConnectedRegistryNotificationArrayInput interface { pulumi.Input ToConnectedRegistryNotificationArrayOutput() ConnectedRegistryNotificationArrayOutput ToConnectedRegistryNotificationArrayOutputWithContext(context.Context) ConnectedRegistryNotificationArrayOutput } type ConnectedRegistryNotificationArray []ConnectedRegistryNotificationInput func (ConnectedRegistryNotificationArray) ElementType() reflect.Type { return reflect.TypeOf((*[]ConnectedRegistryNotification)(nil)).Elem() } func (i ConnectedRegistryNotificationArray) ToConnectedRegistryNotificationArrayOutput() ConnectedRegistryNotificationArrayOutput { return i.ToConnectedRegistryNotificationArrayOutputWithContext(context.Background()) } func (i ConnectedRegistryNotificationArray) ToConnectedRegistryNotificationArrayOutputWithContext(ctx context.Context) ConnectedRegistryNotificationArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(ConnectedRegistryNotificationArrayOutput) } type ConnectedRegistryNotificationOutput struct{ *pulumi.OutputState } func (ConnectedRegistryNotificationOutput) ElementType() reflect.Type { return reflect.TypeOf((*ConnectedRegistryNotification)(nil)).Elem() } func (o ConnectedRegistryNotificationOutput) ToConnectedRegistryNotificationOutput() ConnectedRegistryNotificationOutput { return o } func (o ConnectedRegistryNotificationOutput) ToConnectedRegistryNotificationOutputWithContext(ctx context.Context) ConnectedRegistryNotificationOutput { return o } // The action of the artifact that wants to be subscribed for the Connected Registry. Possible values are `push`, `delete` and `*` (i.e. any). func (o ConnectedRegistryNotificationOutput) Action() pulumi.StringOutput { return o.ApplyT(func(v ConnectedRegistryNotification) string { return v.Action }).(pulumi.StringOutput) } // The digest of the artifact that wants to be subscribed for the Connected Registry. // // > **Note:** One of either `tag` or `digest` can be specified. func (o ConnectedRegistryNotificationOutput) Digest() pulumi.StringPtrOutput { return o.ApplyT(func(v ConnectedRegistryNotification) *string { return v.Digest }).(pulumi.StringPtrOutput) } // The name of the artifact that wants to be subscribed for the Connected Registry. func (o ConnectedRegistryNotificationOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v ConnectedRegistryNotification) string { return v.Name }).(pulumi.StringOutput) } // The tag of the artifact that wants to be subscribed for the Connected Registry. func (o ConnectedRegistryNotificationOutput) Tag() pulumi.StringPtrOutput { return o.ApplyT(func(v ConnectedRegistryNotification) *string { return v.Tag }).(pulumi.StringPtrOutput) } type ConnectedRegistryNotificationArrayOutput struct{ *pulumi.OutputState } func (ConnectedRegistryNotificationArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]ConnectedRegistryNotification)(nil)).Elem() } func (o ConnectedRegistryNotificationArrayOutput) ToConnectedRegistryNotificationArrayOutput() ConnectedRegistryNotificationArrayOutput { return o } func (o ConnectedRegistryNotificationArrayOutput) ToConnectedRegistryNotificationArrayOutputWithContext(ctx context.Context) ConnectedRegistryNotificationArrayOutput { return o } func (o ConnectedRegistryNotificationArrayOutput) Index(i pulumi.IntInput) ConnectedRegistryNotificationOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) ConnectedRegistryNotification { return vs[0].([]ConnectedRegistryNotification)[vs[1].(int)] }).(ConnectedRegistryNotificationOutput) } type FleetUpdateRunManagedClusterUpdate struct { // A `nodeImageSelection` block as defined below. NodeImageSelection *FleetUpdateRunManagedClusterUpdateNodeImageSelection `pulumi:"nodeImageSelection"` // A `upgrade` block as defined below. Upgrade FleetUpdateRunManagedClusterUpdateUpgrade `pulumi:"upgrade"` } // FleetUpdateRunManagedClusterUpdateInput is an input type that accepts FleetUpdateRunManagedClusterUpdateArgs and FleetUpdateRunManagedClusterUpdateOutput values. // You can construct a concrete instance of `FleetUpdateRunManagedClusterUpdateInput` via: // // FleetUpdateRunManagedClusterUpdateArgs{...} type FleetUpdateRunManagedClusterUpdateInput interface { pulumi.Input ToFleetUpdateRunManagedClusterUpdateOutput() FleetUpdateRunManagedClusterUpdateOutput ToFleetUpdateRunManagedClusterUpdateOutputWithContext(context.Context) FleetUpdateRunManagedClusterUpdateOutput } type FleetUpdateRunManagedClusterUpdateArgs struct { // A `nodeImageSelection` block as defined below. NodeImageSelection FleetUpdateRunManagedClusterUpdateNodeImageSelectionPtrInput `pulumi:"nodeImageSelection"` // A `upgrade` block as defined below. Upgrade FleetUpdateRunManagedClusterUpdateUpgradeInput `pulumi:"upgrade"` } func (FleetUpdateRunManagedClusterUpdateArgs) ElementType() reflect.Type { return reflect.TypeOf((*FleetUpdateRunManagedClusterUpdate)(nil)).Elem() } func (i FleetUpdateRunManagedClusterUpdateArgs) ToFleetUpdateRunManagedClusterUpdateOutput() FleetUpdateRunManagedClusterUpdateOutput { return i.ToFleetUpdateRunManagedClusterUpdateOutputWithContext(context.Background()) } func (i FleetUpdateRunManagedClusterUpdateArgs) ToFleetUpdateRunManagedClusterUpdateOutputWithContext(ctx context.Context) FleetUpdateRunManagedClusterUpdateOutput { return pulumi.ToOutputWithContext(ctx, i).(FleetUpdateRunManagedClusterUpdateOutput) } func (i FleetUpdateRunManagedClusterUpdateArgs) ToFleetUpdateRunManagedClusterUpdatePtrOutput() FleetUpdateRunManagedClusterUpdatePtrOutput { return i.ToFleetUpdateRunManagedClusterUpdatePtrOutputWithContext(context.Background()) } func (i FleetUpdateRunManagedClusterUpdateArgs) ToFleetUpdateRunManagedClusterUpdatePtrOutputWithContext(ctx context.Context) FleetUpdateRunManagedClusterUpdatePtrOutput { return pulumi.ToOutputWithContext(ctx, i).(FleetUpdateRunManagedClusterUpdateOutput).ToFleetUpdateRunManagedClusterUpdatePtrOutputWithContext(ctx) } // FleetUpdateRunManagedClusterUpdatePtrInput is an input type that accepts FleetUpdateRunManagedClusterUpdateArgs, FleetUpdateRunManagedClusterUpdatePtr and FleetUpdateRunManagedClusterUpdatePtrOutput values. // You can construct a concrete instance of `FleetUpdateRunManagedClusterUpdatePtrInput` via: // // FleetUpdateRunManagedClusterUpdateArgs{...} // // or: // // nil type FleetUpdateRunManagedClusterUpdatePtrInput interface { pulumi.Input ToFleetUpdateRunManagedClusterUpdatePtrOutput() FleetUpdateRunManagedClusterUpdatePtrOutput ToFleetUpdateRunManagedClusterUpdatePtrOutputWithContext(context.Context) FleetUpdateRunManagedClusterUpdatePtrOutput } type fleetUpdateRunManagedClusterUpdatePtrType FleetUpdateRunManagedClusterUpdateArgs func FleetUpdateRunManagedClusterUpdatePtr(v *FleetUpdateRunManagedClusterUpdateArgs) FleetUpdateRunManagedClusterUpdatePtrInput { return (*fleetUpdateRunManagedClusterUpdatePtrType)(v) } func (*fleetUpdateRunManagedClusterUpdatePtrType) ElementType() reflect.Type { return reflect.TypeOf((**FleetUpdateRunManagedClusterUpdate)(nil)).Elem() } func (i *fleetUpdateRunManagedClusterUpdatePtrType) ToFleetUpdateRunManagedClusterUpdatePtrOutput() FleetUpdateRunManagedClusterUpdatePtrOutput { return i.ToFleetUpdateRunManagedClusterUpdatePtrOutputWithContext(context.Background()) } func (i *fleetUpdateRunManagedClusterUpdatePtrType) ToFleetUpdateRunManagedClusterUpdatePtrOutputWithContext(ctx context.Context) FleetUpdateRunManagedClusterUpdatePtrOutput { return pulumi.ToOutputWithContext(ctx, i).(FleetUpdateRunManagedClusterUpdatePtrOutput) } type FleetUpdateRunManagedClusterUpdateOutput struct{ *pulumi.OutputState } func (FleetUpdateRunManagedClusterUpdateOutput) ElementType() reflect.Type { return reflect.TypeOf((*FleetUpdateRunManagedClusterUpdate)(nil)).Elem() } func (o FleetUpdateRunManagedClusterUpdateOutput) ToFleetUpdateRunManagedClusterUpdateOutput() FleetUpdateRunManagedClusterUpdateOutput { return o } func (o FleetUpdateRunManagedClusterUpdateOutput) ToFleetUpdateRunManagedClusterUpdateOutputWithContext(ctx context.Context) FleetUpdateRunManagedClusterUpdateOutput { return o } func (o FleetUpdateRunManagedClusterUpdateOutput) ToFleetUpdateRunManagedClusterUpdatePtrOutput() FleetUpdateRunManagedClusterUpdatePtrOutput { return o.ToFleetUpdateRunManagedClusterUpdatePtrOutputWithContext(context.Background()) } func (o FleetUpdateRunManagedClusterUpdateOutput) ToFleetUpdateRunManagedClusterUpdatePtrOutputWithContext(ctx context.Context) FleetUpdateRunManagedClusterUpdatePtrOutput { return o.ApplyTWithContext(ctx, func(_ context.Context, v FleetUpdateRunManagedClusterUpdate) *FleetUpdateRunManagedClusterUpdate { return &v }).(FleetUpdateRunManagedClusterUpdatePtrOutput) } // A `nodeImageSelection` block as defined below. func (o FleetUpdateRunManagedClusterUpdateOutput) NodeImageSelection() FleetUpdateRunManagedClusterUpdateNodeImageSelectionPtrOutput { return o.ApplyT(func(v FleetUpdateRunManagedClusterUpdate) *FleetUpdateRunManagedClusterUpdateNodeImageSelection { return v.NodeImageSelection }).(FleetUpdateRunManagedClusterUpdateNodeImageSelectionPtrOutput) } // A `upgrade` block as defined below. func (o FleetUpdateRunManagedClusterUpdateOutput) Upgrade() FleetUpdateRunManagedClusterUpdateUpgradeOutput { return o.ApplyT(func(v FleetUpdateRunManagedClusterUpdate) FleetUpdateRunManagedClusterUpdateUpgrade { return v.Upgrade }).(FleetUpdateRunManagedClusterUpdateUpgradeOutput) } type FleetUpdateRunManagedClusterUpdatePtrOutput struct{ *pulumi.OutputState } func (FleetUpdateRunManagedClusterUpdatePtrOutput) ElementType() reflect.Type { return reflect.TypeOf((**FleetUpdateRunManagedClusterUpdate)(nil)).Elem() } func (o FleetUpdateRunManagedClusterUpdatePtrOutput) ToFleetUpdateRunManagedClusterUpdatePtrOutput() FleetUpdateRunManagedClusterUpdatePtrOutput { return o } func (o FleetUpdateRunManagedClusterUpdatePtrOutput) ToFleetUpdateRunManagedClusterUpdatePtrOutputWithContext(ctx context.Context) FleetUpdateRunManagedClusterUpdatePtrOutput { return o } func (o FleetUpdateRunManagedClusterUpdatePtrOutput) Elem() FleetUpdateRunManagedClusterUpdateOutput { return o.ApplyT(func(v *FleetUpdateRunManagedClusterUpdate) FleetUpdateRunManagedClusterUpdate { if v != nil { return *v } var ret FleetUpdateRunManagedClusterUpdate return ret }).(FleetUpdateRunManagedClusterUpdateOutput) } // A `nodeImageSelection` block as defined below. func (o FleetUpdateRunManagedClusterUpdatePtrOutput) NodeImageSelection() FleetUpdateRunManagedClusterUpdateNodeImageSelectionPtrOutput { return o.ApplyT(func(v *FleetUpdateRunManagedClusterUpdate) *FleetUpdateRunManagedClusterUpdateNodeImageSelection { if v == nil { return nil } return v.NodeImageSelection }).(FleetUpdateRunManagedClusterUpdateNodeImageSelectionPtrOutput) } // A `upgrade` block as defined below. func (o FleetUpdateRunManagedClusterUpdatePtrOutput) Upgrade() FleetUpdateRunManagedClusterUpdateUpgradePtrOutput { return o.ApplyT(func(v *FleetUpdateRunManagedClusterUpdate) *FleetUpdateRunManagedClusterUpdateUpgrade { if v == nil { return nil } return &v.Upgrade }).(FleetUpdateRunManagedClusterUpdateUpgradePtrOutput) } type FleetUpdateRunManagedClusterUpdateNodeImageSelection struct { // Specifies the node image upgrade type. Possible values are `Latest` and `Consistent`. Type string `pulumi:"type"` } // FleetUpdateRunManagedClusterUpdateNodeImageSelectionInput is an input type that accepts FleetUpdateRunManagedClusterUpdateNodeImageSelectionArgs and FleetUpdateRunManagedClusterUpdateNodeImageSelectionOutput values. // You can construct a concrete instance of `FleetUpdateRunManagedClusterUpdateNodeImageSelectionInput` via: // // FleetUpdateRunManagedClusterUpdateNodeImageSelectionArgs{...} type FleetUpdateRunManagedClusterUpdateNodeImageSelectionInput interface { pulumi.Input ToFleetUpdateRunManagedClusterUpdateNodeImageSelectionOutput() FleetUpdateRunManagedClusterUpdateNodeImageSelectionOutput ToFleetUpdateRunManagedClusterUpdateNodeImageSelectionOutputWithContext(context.Context) FleetUpdateRunManagedClusterUpdateNodeImageSelectionOutput } type FleetUpdateRunManagedClusterUpdateNodeImageSelectionArgs struct { // Specifies the node image upgrade type. Possible values are `Latest` and `Consistent`. Type pulumi.StringInput `pulumi:"type"` } func (FleetUpdateRunManagedClusterUpdateNodeImageSelectionArgs) ElementType() reflect.Type { return reflect.TypeOf((*FleetUpdateRunManagedClusterUpdateNodeImageSelection)(nil)).Elem() } func (i FleetUpdateRunManagedClusterUpdateNodeImageSelectionArgs) ToFleetUpdateRunManagedClusterUpdateNodeImageSelectionOutput() FleetUpdateRunManagedClusterUpdateNodeImageSelectionOutput { return i.ToFleetUpdateRunManagedClusterUpdateNodeImageSelectionOutputWithContext(context.Background()) } func (i FleetUpdateRunManagedClusterUpdateNodeImageSelectionArgs) ToFleetUpdateRunManagedClusterUpdateNodeImageSelectionOutputWithContext(ctx context.Context) FleetUpdateRunManagedClusterUpdateNodeImageSelectionOutput { return pulumi.ToOutputWithContext(ctx, i).(FleetUpdateRunManagedClusterUpdateNodeImageSelectionOutput) } func (i FleetUpdateRunManagedClusterUpdateNodeImageSelectionArgs) ToFleetUpdateRunManagedClusterUpdateNodeImageSelectionPtrOutput() FleetUpdateRunManagedClusterUpdateNodeImageSelectionPtrOutput { return i.ToFleetUpdateRunManagedClusterUpdateNodeImageSelectionPtrOutputWithContext(context.Background()) } func (i FleetUpdateRunManagedClusterUpdateNodeImageSelectionArgs) ToFleetUpdateRunManagedClusterUpdateNodeImageSelectionPtrOutputWithContext(ctx context.Context) FleetUpdateRunManagedClusterUpdateNodeImageSelectionPtrOutput { return pulumi.ToOutputWithContext(ctx, i).(FleetUpdateRunManagedClusterUpdateNodeImageSelectionOutput).ToFleetUpdateRunManagedClusterUpdateNodeImageSelectionPtrOutputWithContext(ctx) } // FleetUpdateRunManagedClusterUpdateNodeImageSelectionPtrInput is an input type that accepts FleetUpdateRunManagedClusterUpdateNodeImageSelectionArgs, FleetUpdateRunManagedClusterUpdateNodeImageSelectionPtr and FleetUpdateRunManagedClusterUpdateNodeImageSelectionPtrOutput values. // You can construct a concrete instance of `FleetUpdateRunManagedClusterUpdateNodeImageSelectionPtrInput` via: // // FleetUpdateRunManagedClusterUpdateNodeImageSelectionArgs{...} // // or: // // nil type FleetUpdateRunManagedClusterUpdateNodeImageSelectionPtrInput interface { pulumi.Input ToFleetUpdateRunManagedClusterUpdateNodeImageSelectionPtrOutput() FleetUpdateRunManagedClusterUpdateNodeImageSelectionPtrOutput ToFleetUpdateRunManagedClusterUpdateNodeImageSelectionPtrOutputWithContext(context.Context) FleetUpdateRunManagedClusterUpdateNodeImageSelectionPtrOutput } type fleetUpdateRunManagedClusterUpdateNodeImageSelectionPtrType FleetUpdateRunManagedClusterUpdateNodeImageSelectionArgs func FleetUpdateRunManagedClusterUpdateNodeImageSelectionPtr(v *FleetUpdateRunManagedClusterUpdateNodeImageSelectionArgs) FleetUpdateRunManagedClusterUpdateNodeImageSelectionPtrInput { return (*fleetUpdateRunManagedClusterUpdateNodeImageSelectionPtrType)(v) } func (*fleetUpdateRunManagedClusterUpdateNodeImageSelectionPtrType) ElementType() reflect.Type { return reflect.TypeOf((**FleetUpdateRunManagedClusterUpdateNodeImageSelection)(nil)).Elem() } func (i *fleetUpdateRunManagedClusterUpdateNodeImageSelectionPtrType) ToFleetUpdateRunManagedClusterUpdateNodeImageSelectionPtrOutput() FleetUpdateRunManagedClusterUpdateNodeImageSelectionPtrOutput { return i.ToFleetUpdateRunManagedClusterUpdateNodeImageSelectionPtrOutputWithContext(context.Background()) } func (i *fleetUpdateRunManagedClusterUpdateNodeImageSelectionPtrType) ToFleetUpdateRunManagedClusterUpdateNodeImageSelectionPtrOutputWithContext(ctx context.Context) FleetUpdateRunManagedClusterUpdateNodeImageSelectionPtrOutput { return pulumi.ToOutputWithContext(ctx, i).(FleetUpdateRunManagedClusterUpdateNodeImageSelectionPtrOutput) } type FleetUpdateRunManagedClusterUpdateNodeImageSelectionOutput struct{ *pulumi.OutputState } func (FleetUpdateRunManagedClusterUpdateNodeImageSelectionOutput) ElementType() reflect.Type { return reflect.TypeOf((*FleetUpdateRunManagedClusterUpdateNodeImageSelection)(nil)).Elem() } func (o FleetUpdateRunManagedClusterUpdateNodeImageSelectionOutput) ToFleetUpdateRunManagedClusterUpdateNodeImageSelectionOutput() FleetUpdateRunManagedClusterUpdateNodeImageSelectionOutput { return o } func (o FleetUpdateRunManagedClusterUpdateNodeImageSelectionOutput) ToFleetUpdateRunManagedClusterUpdateNodeImageSelectionOutputWithContext(ctx context.Context) FleetUpdateRunManagedClusterUpdateNodeImageSelectionOutput { return o } func (o FleetUpdateRunManagedClusterUpdateNodeImageSelectionOutput) ToFleetUpdateRunManagedClusterUpdateNodeImageSelectionPtrOutput() FleetUpdateRunManagedClusterUpdateNodeImageSelectionPtrOutput { return o.ToFleetUpdateRunManagedClusterUpdateNodeImageSelectionPtrOutputWithContext(context.Background()) } func (o FleetUpdateRunManagedClusterUpdateNodeImageSelectionOutput) ToFleetUpdateRunManagedClusterUpdateNodeImageSelectionPtrOutputWithContext(ctx context.Context) FleetUpdateRunManagedClusterUpdateNodeImageSelectionPtrOutput { return o.ApplyTWithContext(ctx, func(_ context.Context, v FleetUpdateRunManagedClusterUpdateNodeImageSelection) *FleetUpdateRunManagedClusterUpdateNodeImageSelection { return &v }).(FleetUpdateRunManagedClusterUpdateNodeImageSelectionPtrOutput) } // Specifies the node image upgrade type. Possible values are `Latest` and `Consistent`. func (o FleetUpdateRunManagedClusterUpdateNodeImageSelectionOutput) Type() pulumi.StringOutput { return o.ApplyT(func(v FleetUpdateRunManagedClusterUpdateNodeImageSelection) string { return v.Type }).(pulumi.StringOutput) } type FleetUpdateRunManagedClusterUpdateNodeImageSelectionPtrOutput struct{ *pulumi.OutputState } func (FleetUpdateRunManagedClusterUpdateNodeImageSelectionPtrOutput) ElementType() reflect.Type { return reflect.TypeOf((**FleetUpdateRunManagedClusterUpdateNodeImageSelection)(nil)).Elem() } func (o FleetUpdateRunManagedClusterUpdateNodeImageSelectionPtrOutput) ToFleetUpdateRunManagedClusterUpdateNodeImageSelectionPtrOutput() FleetUpdateRunManagedClusterUpdateNodeImageSelectionPtrOutput { return o } func (o FleetUpdateRunManagedClusterUpdateNodeImageSelectionPtrOutput) ToFleetUpdateRunManagedClusterUpdateNodeImageSelectionPtrOutputWithContext(ctx context.Context) FleetUpdateRunManagedClusterUpdateNodeImageSelectionPtrOutput { return o } func (o FleetUpdateRunManagedClusterUpdateNodeImageSelectionPtrOutput) Elem() FleetUpdateRunManagedClusterUpdateNodeImageSelectionOutput { return o.ApplyT(func(v *FleetUpdateRunManagedClusterUpdateNodeImageSelection) FleetUpdateRunManagedClusterUpdateNodeImageSelection { if v != nil { return *v } var ret FleetUpdateRunManagedClusterUpdateNodeImageSelection return ret }).(FleetUpdateRunManagedClusterUpdateNodeImageSelectionOutput) } // Specifies the node image upgrade type. Possible values are `Latest` and `Consistent`. func (o FleetUpdateRunManagedClusterUpdateNodeImageSelectionPtrOutput) Type() pulumi.StringPtrOutput { return o.ApplyT(func(v *FleetUpdateRunManagedClusterUpdateNodeImageSelection) *string { if v == nil { return nil } return &v.Type }).(pulumi.StringPtrOutput) } type FleetUpdateRunManagedClusterUpdateUpgrade struct { // Specifies the Kubernetes version to upgrade the member clusters to. This is required if `type` is set to `Full`. KubernetesVersion *string `pulumi:"kubernetesVersion"` // Specifies the type of upgrade to perform. Possible values are `Full` and `NodeImageOnly`. Type string `pulumi:"type"` } // FleetUpdateRunManagedClusterUpdateUpgradeInput is an input type that accepts FleetUpdateRunManagedClusterUpdateUpgradeArgs and FleetUpdateRunManagedClusterUpdateUpgradeOutput values. // You can construct a concrete instance of `FleetUpdateRunManagedClusterUpdateUpgradeInput` via: // // FleetUpdateRunManagedClusterUpdateUpgradeArgs{...} type FleetUpdateRunManagedClusterUpdateUpgradeInput interface { pulumi.Input ToFleetUpdateRunManagedClusterUpdateUpgradeOutput() FleetUpdateRunManagedClusterUpdateUpgradeOutput ToFleetUpdateRunManagedClusterUpdateUpgradeOutputWithContext(context.Context) FleetUpdateRunManagedClusterUpdateUpgradeOutput } type FleetUpdateRunManagedClusterUpdateUpgradeArgs struct { // Specifies the Kubernetes version to upgrade the member clusters to. This is required if `type` is set to `Full`. KubernetesVersion pulumi.StringPtrInput `pulumi:"kubernetesVersion"` // Specifies the type of upgrade to perform. Possible values are `Full` and `NodeImageOnly`. Type pulumi.StringInput `pulumi:"type"` } func (FleetUpdateRunManagedClusterUpdateUpgradeArgs) ElementType() reflect.Type { return reflect.TypeOf((*FleetUpdateRunManagedClusterUpdateUpgrade)(nil)).Elem() } func (i FleetUpdateRunManagedClusterUpdateUpgradeArgs) ToFleetUpdateRunManagedClusterUpdateUpgradeOutput() FleetUpdateRunManagedClusterUpdateUpgradeOutput { return i.ToFleetUpdateRunManagedClusterUpdateUpgradeOutputWithContext(context.Background()) } func (i FleetUpdateRunManagedClusterUpdateUpgradeArgs) ToFleetUpdateRunManagedClusterUpdateUpgradeOutputWithContext(ctx context.Context) FleetUpdateRunManagedClusterUpdateUpgradeOutput { return pulumi.ToOutputWithContext(ctx, i).(FleetUpdateRunManagedClusterUpdateUpgradeOutput) } func (i FleetUpdateRunManagedClusterUpdateUpgradeArgs) ToFleetUpdateRunManagedClusterUpdateUpgradePtrOutput() FleetUpdateRunManagedClusterUpdateUpgradePtrOutput { return i.ToFleetUpdateRunManagedClusterUpdateUpgradePtrOutputWithContext(context.Background()) } func (i FleetUpdateRunManagedClusterUpdateUpgradeArgs) ToFleetUpdateRunManagedClusterUpdateUpgradePtrOutputWithContext(ctx context.Context) FleetUpdateRunManagedClusterUpdateUpgradePtrOutput { return pulumi.ToOutputWithContext(ctx, i).(FleetUpdateRunManagedClusterUpdateUpgradeOutput).ToFleetUpdateRunManagedClusterUpdateUpgradePtrOutputWithContext(ctx) } // FleetUpdateRunManagedClusterUpdateUpgradePtrInput is an input type that accepts FleetUpdateRunManagedClusterUpdateUpgradeArgs, FleetUpdateRunManagedClusterUpdateUpgradePtr and FleetUpdateRunManagedClusterUpdateUpgradePtrOutput values. // You can construct a concrete instance of `FleetUpdateRunManagedClusterUpdateUpgradePtrInput` via: // // FleetUpdateRunManagedClusterUpdateUpgradeArgs{...} // // or: // // nil type FleetUpdateRunManagedClusterUpdateUpgradePtrInput interface { pulumi.Input ToFleetUpdateRunManagedClusterUpdateUpgradePtrOutput() FleetUpdateRunManagedClusterUpdateUpgradePtrOutput ToFleetUpdateRunManagedClusterUpdateUpgradePtrOutputWithContext(context.Context) FleetUpdateRunManagedClusterUpdateUpgradePtrOutput } type fleetUpdateRunManagedClusterUpdateUpgradePtrType FleetUpdateRunManagedClusterUpdateUpgradeArgs func FleetUpdateRunManagedClusterUpdateUpgradePtr(v *FleetUpdateRunManagedClusterUpdateUpgradeArgs) FleetUpdateRunManagedClusterUpdateUpgradePtrInput { return (*fleetUpdateRunManagedClusterUpdateUpgradePtrType)(v) } func (*fleetUpdateRunManagedClusterUpdateUpgradePtrType) ElementType() reflect.Type { return reflect.TypeOf((**FleetUpdateRunManagedClusterUpdateUpgrade)(nil)).Elem() } func (i *fleetUpdateRunManagedClusterUpdateUpgradePtrType) ToFleetUpdateRunManagedClusterUpdateUpgradePtrOutput() FleetUpdateRunManagedClusterUpdateUpgradePtrOutput { return i.ToFleetUpdateRunManagedClusterUpdateUpgradePtrOutputWithContext(context.Background()) } func (i *fleetUpdateRunManagedClusterUpdateUpgradePtrType) ToFleetUpdateRunManagedClusterUpdateUpgradePtrOutputWithContext(ctx context.Context) FleetUpdateRunManagedClusterUpdateUpgradePtrOutput { return pulumi.ToOutputWithContext(ctx, i).(FleetUpdateRunManagedClusterUpdateUpgradePtrOutput) } type FleetUpdateRunManagedClusterUpdateUpgradeOutput struct{ *pulumi.OutputState } func (FleetUpdateRunManagedClusterUpdateUpgradeOutput) ElementType() reflect.Type { return reflect.TypeOf((*FleetUpdateRunManagedClusterUpdateUpgrade)(nil)).Elem() } func (o FleetUpdateRunManagedClusterUpdateUpgradeOutput) ToFleetUpdateRunManagedClusterUpdateUpgradeOutput() FleetUpdateRunManagedClusterUpdateUpgradeOutput { return o } func (o FleetUpdateRunManagedClusterUpdateUpgradeOutput) ToFleetUpdateRunManagedClusterUpdateUpgradeOutputWithContext(ctx context.Context) FleetUpdateRunManagedClusterUpdateUpgradeOutput { return o } func (o FleetUpdateRunManagedClusterUpdateUpgradeOutput) ToFleetUpdateRunManagedClusterUpdateUpgradePtrOutput() FleetUpdateRunManagedClusterUpdateUpgradePtrOutput { return o.ToFleetUpdateRunManagedClusterUpdateUpgradePtrOutputWithContext(context.Background()) } func (o FleetUpdateRunManagedClusterUpdateUpgradeOutput) ToFleetUpdateRunManagedClusterUpdateUpgradePtrOutputWithContext(ctx context.Context) FleetUpdateRunManagedClusterUpdateUpgradePtrOutput { return o.ApplyTWithContext(ctx, func(_ context.Context, v FleetUpdateRunManagedClusterUpdateUpgrade) *FleetUpdateRunManagedClusterUpdateUpgrade { return &v }).(FleetUpdateRunManagedClusterUpdateUpgradePtrOutput) } // Specifies the Kubernetes version to upgrade the member clusters to. This is required if `type` is set to `Full`. func (o FleetUpdateRunManagedClusterUpdateUpgradeOutput) KubernetesVersion() pulumi.StringPtrOutput { return o.ApplyT(func(v FleetUpdateRunManagedClusterUpdateUpgrade) *string { return v.KubernetesVersion }).(pulumi.StringPtrOutput) } // Specifies the type of upgrade to perform. Possible values are `Full` and `NodeImageOnly`. func (o FleetUpdateRunManagedClusterUpdateUpgradeOutput) Type() pulumi.StringOutput { return o.ApplyT(func(v FleetUpdateRunManagedClusterUpdateUpgrade) string { return v.Type }).(pulumi.StringOutput) } type FleetUpdateRunManagedClusterUpdateUpgradePtrOutput struct{ *pulumi.OutputState } func (FleetUpdateRunManagedClusterUpdateUpgradePtrOutput) ElementType() reflect.Type { return reflect.TypeOf((**FleetUpdateRunManagedClusterUpdateUpgrade)(nil)).Elem() } func (o FleetUpdateRunManagedClusterUpdateUpgradePtrOutput) ToFleetUpdateRunManagedClusterUpdateUpgradePtrOutput() FleetUpdateRunManagedClusterUpdateUpgradePtrOutput { return o } func (o FleetUpdateRunManagedClusterUpdateUpgradePtrOutput) ToFleetUpdateRunManagedClusterUpdateUpgradePtrOutputWithContext(ctx context.Context) FleetUpdateRunManagedClusterUpdateUpgradePtrOutput { return o } func (o FleetUpdateRunManagedClusterUpdateUpgradePtrOutput) Elem() FleetUpdateRunManagedClusterUpdateUpgradeOutput { return o.ApplyT(func(v *FleetUpdateRunManagedClusterUpdateUpgrade) FleetUpdateRunManagedClusterUpdateUpgrade { if v != nil { return *v } var ret FleetUpdateRunManagedClusterUpdateUpgrade return ret }).(FleetUpdateRunManagedClusterUpdateUpgradeOutput) } // Specifies the Kubernetes version to upgrade the member clusters to. This is required if `type` is set to `Full`. func (o FleetUpdateRunManagedClusterUpdateUpgradePtrOutput) KubernetesVersion() pulumi.StringPtrOutput { return o.ApplyT(func(v *FleetUpdateRunManagedClusterUpdateUpgrade) *string { if v == nil { return nil } return v.KubernetesVersion }).(pulumi.StringPtrOutput) } // Specifies the type of upgrade to perform. Possible values are `Full` and `NodeImageOnly`. func (o FleetUpdateRunManagedClusterUpdateUpgradePtrOutput) Type() pulumi.StringPtrOutput { return o.ApplyT(func(v *FleetUpdateRunManagedClusterUpdateUpgrade) *string { if v == nil { return nil } return &v.Type }).(pulumi.StringPtrOutput) } type FleetUpdateRunStage struct { // Specifies the time in seconds to wait at the end of this stage before starting the next one. AfterStageWaitInSeconds *int `pulumi:"afterStageWaitInSeconds"` // One or more `group` blocks as defined below. Groups []FleetUpdateRunStageGroup `pulumi:"groups"` // The name which should be used for this stage. Name string `pulumi:"name"` } // FleetUpdateRunStageInput is an input type that accepts FleetUpdateRunStageArgs and FleetUpdateRunStageOutput values. // You can construct a concrete instance of `FleetUpdateRunStageInput` via: // // FleetUpdateRunStageArgs{...} type FleetUpdateRunStageInput interface { pulumi.Input ToFleetUpdateRunStageOutput() FleetUpdateRunStageOutput ToFleetUpdateRunStageOutputWithContext(context.Context) FleetUpdateRunStageOutput } type FleetUpdateRunStageArgs struct { // Specifies the time in seconds to wait at the end of this stage before starting the next one. AfterStageWaitInSeconds pulumi.IntPtrInput `pulumi:"afterStageWaitInSeconds"` // One or more `group` blocks as defined below. Groups FleetUpdateRunStageGroupArrayInput `pulumi:"groups"` // The name which should be used for this stage. Name pulumi.StringInput `pulumi:"name"` } func (FleetUpdateRunStageArgs) ElementType() reflect.Type { return reflect.TypeOf((*FleetUpdateRunStage)(nil)).Elem() } func (i FleetUpdateRunStageArgs) ToFleetUpdateRunStageOutput() FleetUpdateRunStageOutput { return i.ToFleetUpdateRunStageOutputWithContext(context.Background()) } func (i FleetUpdateRunStageArgs) ToFleetUpdateRunStageOutputWithContext(ctx context.Context) FleetUpdateRunStageOutput { return pulumi.ToOutputWithContext(ctx, i).(FleetUpdateRunStageOutput) } // FleetUpdateRunStageArrayInput is an input type that accepts FleetUpdateRunStageArray and FleetUpdateRunStageArrayOutput values. // You can construct a concrete instance of `FleetUpdateRunStageArrayInput` via: //
go
Apache-2.0
b66e1472775a89cca43f5050fef806854a7c3fa3
2026-01-07T09:44:27.619514Z
true
pulumi/pulumi-azure
https://github.com/pulumi/pulumi-azure/blob/b66e1472775a89cca43f5050fef806854a7c3fa3/sdk/go/azure/containerservice/getRegistry.go
sdk/go/azure/containerservice/getRegistry.go
// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package containerservice import ( "context" "reflect" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Use this data source to access information about an existing Container Registry. // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/containerservice" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { // example, err := containerservice.LookupRegistry(ctx, &containerservice.LookupRegistryArgs{ // Name: "testacr", // ResourceGroupName: "test", // }, nil) // if err != nil { // return err // } // ctx.Export("loginServer", example.LoginServer) // return nil // }) // } // // ``` // // ## API Providers // // <!-- This section is generated, changes will be overwritten --> // This data source uses the following Azure API Providers: // // * `Microsoft.ContainerRegistry` - 2025-04-01 func LookupRegistry(ctx *pulumi.Context, args *LookupRegistryArgs, opts ...pulumi.InvokeOption) (*LookupRegistryResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupRegistryResult err := ctx.Invoke("azure:containerservice/getRegistry:getRegistry", args, &rv, opts...) if err != nil { return nil, err } return &rv, nil } // A collection of arguments for invoking getRegistry. type LookupRegistryArgs struct { // The name of the Container Registry. Name string `pulumi:"name"` // The Name of the Resource Group where this Container Registry exists. ResourceGroupName string `pulumi:"resourceGroupName"` } // A collection of values returned by getRegistry. type LookupRegistryResult struct { // Is the Administrator account enabled for this Container Registry. AdminEnabled bool `pulumi:"adminEnabled"` // The Password associated with the Container Registry Admin account - if the admin account is enabled. AdminPassword string `pulumi:"adminPassword"` // The Username associated with the Container Registry Admin account - if the admin account is enabled. AdminUsername string `pulumi:"adminUsername"` // Whether dedicated data endpoints for this Container Registry are enabled? DataEndpointEnabled bool `pulumi:"dataEndpointEnabled"` // A set of data endpoint hostnames associated with the container registry if data endpoints are enabled. DataEndpointHostNames []string `pulumi:"dataEndpointHostNames"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` // The Azure Region in which this Container Registry exists. Location string `pulumi:"location"` // The URL that can be used to log into the container registry. LoginServer string `pulumi:"loginServer"` Name string `pulumi:"name"` ResourceGroupName string `pulumi:"resourceGroupName"` // The SKU of this Container Registry, such as `Basic`. Sku string `pulumi:"sku"` // A map of tags assigned to the Container Registry. Tags map[string]string `pulumi:"tags"` } func LookupRegistryOutput(ctx *pulumi.Context, args LookupRegistryOutputArgs, opts ...pulumi.InvokeOption) LookupRegistryResultOutput { return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupRegistryResultOutput, error) { args := v.(LookupRegistryArgs) options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} return ctx.InvokeOutput("azure:containerservice/getRegistry:getRegistry", args, LookupRegistryResultOutput{}, options).(LookupRegistryResultOutput), nil }).(LookupRegistryResultOutput) } // A collection of arguments for invoking getRegistry. type LookupRegistryOutputArgs struct { // The name of the Container Registry. Name pulumi.StringInput `pulumi:"name"` // The Name of the Resource Group where this Container Registry exists. ResourceGroupName pulumi.StringInput `pulumi:"resourceGroupName"` } func (LookupRegistryOutputArgs) ElementType() reflect.Type { return reflect.TypeOf((*LookupRegistryArgs)(nil)).Elem() } // A collection of values returned by getRegistry. type LookupRegistryResultOutput struct{ *pulumi.OutputState } func (LookupRegistryResultOutput) ElementType() reflect.Type { return reflect.TypeOf((*LookupRegistryResult)(nil)).Elem() } func (o LookupRegistryResultOutput) ToLookupRegistryResultOutput() LookupRegistryResultOutput { return o } func (o LookupRegistryResultOutput) ToLookupRegistryResultOutputWithContext(ctx context.Context) LookupRegistryResultOutput { return o } // Is the Administrator account enabled for this Container Registry. func (o LookupRegistryResultOutput) AdminEnabled() pulumi.BoolOutput { return o.ApplyT(func(v LookupRegistryResult) bool { return v.AdminEnabled }).(pulumi.BoolOutput) } // The Password associated with the Container Registry Admin account - if the admin account is enabled. func (o LookupRegistryResultOutput) AdminPassword() pulumi.StringOutput { return o.ApplyT(func(v LookupRegistryResult) string { return v.AdminPassword }).(pulumi.StringOutput) } // The Username associated with the Container Registry Admin account - if the admin account is enabled. func (o LookupRegistryResultOutput) AdminUsername() pulumi.StringOutput { return o.ApplyT(func(v LookupRegistryResult) string { return v.AdminUsername }).(pulumi.StringOutput) } // Whether dedicated data endpoints for this Container Registry are enabled? func (o LookupRegistryResultOutput) DataEndpointEnabled() pulumi.BoolOutput { return o.ApplyT(func(v LookupRegistryResult) bool { return v.DataEndpointEnabled }).(pulumi.BoolOutput) } // A set of data endpoint hostnames associated with the container registry if data endpoints are enabled. func (o LookupRegistryResultOutput) DataEndpointHostNames() pulumi.StringArrayOutput { return o.ApplyT(func(v LookupRegistryResult) []string { return v.DataEndpointHostNames }).(pulumi.StringArrayOutput) } // The provider-assigned unique ID for this managed resource. func (o LookupRegistryResultOutput) Id() pulumi.StringOutput { return o.ApplyT(func(v LookupRegistryResult) string { return v.Id }).(pulumi.StringOutput) } // The Azure Region in which this Container Registry exists. func (o LookupRegistryResultOutput) Location() pulumi.StringOutput { return o.ApplyT(func(v LookupRegistryResult) string { return v.Location }).(pulumi.StringOutput) } // The URL that can be used to log into the container registry. func (o LookupRegistryResultOutput) LoginServer() pulumi.StringOutput { return o.ApplyT(func(v LookupRegistryResult) string { return v.LoginServer }).(pulumi.StringOutput) } func (o LookupRegistryResultOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v LookupRegistryResult) string { return v.Name }).(pulumi.StringOutput) } func (o LookupRegistryResultOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v LookupRegistryResult) string { return v.ResourceGroupName }).(pulumi.StringOutput) } // The SKU of this Container Registry, such as `Basic`. func (o LookupRegistryResultOutput) Sku() pulumi.StringOutput { return o.ApplyT(func(v LookupRegistryResult) string { return v.Sku }).(pulumi.StringOutput) } // A map of tags assigned to the Container Registry. func (o LookupRegistryResultOutput) Tags() pulumi.StringMapOutput { return o.ApplyT(func(v LookupRegistryResult) map[string]string { return v.Tags }).(pulumi.StringMapOutput) } func init() { pulumi.RegisterOutputType(LookupRegistryResultOutput{}) }
go
Apache-2.0
b66e1472775a89cca43f5050fef806854a7c3fa3
2026-01-07T09:44:27.619514Z
false
pulumi/pulumi-azure
https://github.com/pulumi/pulumi-azure/blob/b66e1472775a89cca43f5050fef806854a7c3fa3/sdk/go/azure/containerservice/registry.go
sdk/go/azure/containerservice/registry.go
// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package containerservice import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages an Azure Container Registry. // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/containerservice" // "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-resources"), // Location: pulumi.String("West Europe"), // }) // if err != nil { // return err // } // _, err = containerservice.NewRegistry(ctx, "acr", &containerservice.RegistryArgs{ // Name: pulumi.String("containerRegistry1"), // ResourceGroupName: example.Name, // Location: example.Location, // Sku: pulumi.String("Premium"), // AdminEnabled: pulumi.Bool(false), // Georeplications: containerservice.RegistryGeoreplicationArray{ // &containerservice.RegistryGeoreplicationArgs{ // Location: pulumi.String("East US"), // ZoneRedundancyEnabled: pulumi.Bool(true), // Tags: pulumi.StringMap{}, // }, // &containerservice.RegistryGeoreplicationArgs{ // Location: pulumi.String("North Europe"), // ZoneRedundancyEnabled: pulumi.Bool(true), // Tags: pulumi.StringMap{}, // }, // }, // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ### Encryption) // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/authorization" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/containerservice" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/keyvault" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { // exampleResourceGroup, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{ // Name: pulumi.String("example-resources"), // Location: pulumi.String("West Europe"), // }) // if err != nil { // return err // } // exampleUserAssignedIdentity, err := authorization.NewUserAssignedIdentity(ctx, "example", &authorization.UserAssignedIdentityArgs{ // ResourceGroupName: exampleResourceGroup.Name, // Location: exampleResourceGroup.Location, // Name: pulumi.String("registry-uai"), // }) // if err != nil { // return err // } // example, err := keyvault.LookupKey(ctx, &keyvault.LookupKeyArgs{ // Name: "super-secret", // KeyVaultId: existing.Id, // }, nil) // if err != nil { // return err // } // _, err = containerservice.NewRegistry(ctx, "acr", &containerservice.RegistryArgs{ // Name: pulumi.String("containerRegistry1"), // ResourceGroupName: exampleResourceGroup.Name, // Location: exampleResourceGroup.Location, // Sku: pulumi.String("Premium"), // Identity: &containerservice.RegistryIdentityArgs{ // Type: pulumi.String("UserAssigned"), // IdentityIds: pulumi.StringArray{ // exampleUserAssignedIdentity.ID(), // }, // }, // Encryption: &containerservice.RegistryEncryptionArgs{ // KeyVaultKeyId: pulumi.String(example.Id), // IdentityClientId: exampleUserAssignedIdentity.ClientId, // }, // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ### Attaching A Container Registry To A Kubernetes Cluster) // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/authorization" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/containerservice" // "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-resources"), // Location: pulumi.String("West Europe"), // }) // if err != nil { // return err // } // exampleRegistry, err := containerservice.NewRegistry(ctx, "example", &containerservice.RegistryArgs{ // Name: pulumi.String("containerRegistry1"), // ResourceGroupName: example.Name, // Location: example.Location, // Sku: pulumi.String("Premium"), // }) // if err != nil { // return err // } // exampleKubernetesCluster, err := containerservice.NewKubernetesCluster(ctx, "example", &containerservice.KubernetesClusterArgs{ // Name: pulumi.String("example-aks1"), // Location: example.Location, // ResourceGroupName: example.Name, // DnsPrefix: pulumi.String("exampleaks1"), // DefaultNodePool: &containerservice.KubernetesClusterDefaultNodePoolArgs{ // Name: pulumi.String("default"), // NodeCount: pulumi.Int(1), // VmSize: pulumi.String("Standard_D2_v2"), // }, // Identity: &containerservice.KubernetesClusterIdentityArgs{ // Type: pulumi.String("SystemAssigned"), // }, // Tags: pulumi.StringMap{ // "Environment": pulumi.String("Production"), // }, // }) // if err != nil { // return err // } // _, err = authorization.NewAssignment(ctx, "example", &authorization.AssignmentArgs{ // PrincipalId: pulumi.String(exampleKubernetesCluster.KubeletIdentity.ApplyT(func(kubeletIdentity containerservice.KubernetesClusterKubeletIdentity) (*string, error) { // return &kubeletIdentity.ObjectId, nil // }).(pulumi.StringPtrOutput)), // RoleDefinitionName: pulumi.String("AcrPull"), // Scope: exampleRegistry.ID(), // SkipServicePrincipalAadCheck: pulumi.Bool(true), // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## API Providers // // <!-- This section is generated, changes will be overwritten --> // This resource uses the following Azure API Providers: // // * `Microsoft.ContainerRegistry` - 2025-04-01 // // ## Import // // Container Registries can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:containerservice/registry:Registry example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.ContainerRegistry/registries/myregistry1 // ``` type Registry struct { pulumi.CustomResourceState // Specifies whether the admin user is enabled. Defaults to `false`. AdminEnabled pulumi.BoolPtrOutput `pulumi:"adminEnabled"` // The Password associated with the Container Registry Admin account - if the admin account is enabled. AdminPassword pulumi.StringOutput `pulumi:"adminPassword"` // The Username associated with the Container Registry Admin account - if the admin account is enabled. AdminUsername pulumi.StringOutput `pulumi:"adminUsername"` // Whether to allow anonymous (unauthenticated) pull access to this Container Registry. This is only supported on resources with the `Standard` or `Premium` SKU. AnonymousPullEnabled pulumi.BoolPtrOutput `pulumi:"anonymousPullEnabled"` // Whether to enable dedicated data endpoints for this Container Registry? This is only supported on resources with the `Premium` SKU. DataEndpointEnabled pulumi.BoolPtrOutput `pulumi:"dataEndpointEnabled"` // A set of data endpoint hostnames associated with the container registry if data endpoints are enabled. DataEndpointHostNames pulumi.StringArrayOutput `pulumi:"dataEndpointHostNames"` // An `encryption` block as documented below. Encryption RegistryEncryptionOutput `pulumi:"encryption"` // Boolean value that indicates whether export policy is enabled. Defaults to `true`. In order to set it to `false`, make sure the `publicNetworkAccessEnabled` is also set to `false`. // // > **Note:** `quarantinePolicyEnabled`, `retentionPolicyInDays`, `trustPolicyEnabled`, `exportPolicyEnabled` and `zoneRedundancyEnabled` are only supported on resources with the `Premium` SKU. ExportPolicyEnabled pulumi.BoolPtrOutput `pulumi:"exportPolicyEnabled"` // One or more `georeplications` blocks as documented below. // // > **Note:** The `georeplications` is only supported on new resources with the `Premium` SKU. // // > **Note:** The `georeplications` list cannot contain the location where the Container Registry exists. // // > **Note:** If more than one `georeplications` block is specified, they are expected to follow the alphabetic order on the `location` property. Georeplications RegistryGeoreplicationArrayOutput `pulumi:"georeplications"` // An `identity` block as defined below. Identity RegistryIdentityPtrOutput `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"` // The URL that can be used to log into the container registry. LoginServer pulumi.StringOutput `pulumi:"loginServer"` // Specifies the name of the Container Registry. Only Alphanumeric characters allowed. Changing this forces a new resource to be created. Name pulumi.StringOutput `pulumi:"name"` // Whether to allow trusted Azure services to access a network-restricted Container Registry? Possible values are `None` and `AzureServices`. Defaults to `AzureServices`. NetworkRuleBypassOption pulumi.StringPtrOutput `pulumi:"networkRuleBypassOption"` // A `networkRuleSet` block as documented below. NetworkRuleSet RegistryNetworkRuleSetOutput `pulumi:"networkRuleSet"` // Whether public network access is allowed for the container registry. Defaults to `true`. PublicNetworkAccessEnabled pulumi.BoolPtrOutput `pulumi:"publicNetworkAccessEnabled"` // Boolean value that indicates whether quarantine policy is enabled. QuarantinePolicyEnabled pulumi.BoolPtrOutput `pulumi:"quarantinePolicyEnabled"` // The name of the resource group in which to create the Container Registry. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // The number of days to retain and untagged manifest after which it gets purged. RetentionPolicyInDays pulumi.IntPtrOutput `pulumi:"retentionPolicyInDays"` // The SKU name of the container registry. Possible values are `Basic`, `Standard` and `Premium`. Sku pulumi.StringOutput `pulumi:"sku"` // A mapping of tags to assign to the resource. Tags pulumi.StringMapOutput `pulumi:"tags"` // Boolean value that indicated whether trust policy is enabled. Defaults to `false`. TrustPolicyEnabled pulumi.BoolPtrOutput `pulumi:"trustPolicyEnabled"` // Whether zone redundancy is enabled for this Container Registry? Changing this forces a new resource to be created. Defaults to `false`. ZoneRedundancyEnabled pulumi.BoolPtrOutput `pulumi:"zoneRedundancyEnabled"` } // NewRegistry registers a new resource with the given unique name, arguments, and options. func NewRegistry(ctx *pulumi.Context, name string, args *RegistryArgs, opts ...pulumi.ResourceOption) (*Registry, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.ResourceGroupName == nil { return nil, errors.New("invalid value for required argument 'ResourceGroupName'") } if args.Sku == nil { return nil, errors.New("invalid value for required argument 'Sku'") } secrets := pulumi.AdditionalSecretOutputs([]string{ "adminPassword", }) opts = append(opts, secrets) opts = internal.PkgResourceDefaultOpts(opts) var resource Registry err := ctx.RegisterResource("azure:containerservice/registry:Registry", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetRegistry gets an existing Registry 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 GetRegistry(ctx *pulumi.Context, name string, id pulumi.IDInput, state *RegistryState, opts ...pulumi.ResourceOption) (*Registry, error) { var resource Registry err := ctx.ReadResource("azure:containerservice/registry:Registry", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering Registry resources. type registryState struct { // Specifies whether the admin user is enabled. Defaults to `false`. AdminEnabled *bool `pulumi:"adminEnabled"` // The Password associated with the Container Registry Admin account - if the admin account is enabled. AdminPassword *string `pulumi:"adminPassword"` // The Username associated with the Container Registry Admin account - if the admin account is enabled. AdminUsername *string `pulumi:"adminUsername"` // Whether to allow anonymous (unauthenticated) pull access to this Container Registry. This is only supported on resources with the `Standard` or `Premium` SKU. AnonymousPullEnabled *bool `pulumi:"anonymousPullEnabled"` // Whether to enable dedicated data endpoints for this Container Registry? This is only supported on resources with the `Premium` SKU. DataEndpointEnabled *bool `pulumi:"dataEndpointEnabled"` // A set of data endpoint hostnames associated with the container registry if data endpoints are enabled. DataEndpointHostNames []string `pulumi:"dataEndpointHostNames"` // An `encryption` block as documented below. Encryption *RegistryEncryption `pulumi:"encryption"` // Boolean value that indicates whether export policy is enabled. Defaults to `true`. In order to set it to `false`, make sure the `publicNetworkAccessEnabled` is also set to `false`. // // > **Note:** `quarantinePolicyEnabled`, `retentionPolicyInDays`, `trustPolicyEnabled`, `exportPolicyEnabled` and `zoneRedundancyEnabled` are only supported on resources with the `Premium` SKU. ExportPolicyEnabled *bool `pulumi:"exportPolicyEnabled"` // One or more `georeplications` blocks as documented below. // // > **Note:** The `georeplications` is only supported on new resources with the `Premium` SKU. // // > **Note:** The `georeplications` list cannot contain the location where the Container Registry exists. // // > **Note:** If more than one `georeplications` block is specified, they are expected to follow the alphabetic order on the `location` property. Georeplications []RegistryGeoreplication `pulumi:"georeplications"` // An `identity` block as defined below. Identity *RegistryIdentity `pulumi:"identity"` // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location *string `pulumi:"location"` // The URL that can be used to log into the container registry. LoginServer *string `pulumi:"loginServer"` // Specifies the name of the Container Registry. Only Alphanumeric characters allowed. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // Whether to allow trusted Azure services to access a network-restricted Container Registry? Possible values are `None` and `AzureServices`. Defaults to `AzureServices`. NetworkRuleBypassOption *string `pulumi:"networkRuleBypassOption"` // A `networkRuleSet` block as documented below. NetworkRuleSet *RegistryNetworkRuleSet `pulumi:"networkRuleSet"` // Whether public network access is allowed for the container registry. Defaults to `true`. PublicNetworkAccessEnabled *bool `pulumi:"publicNetworkAccessEnabled"` // Boolean value that indicates whether quarantine policy is enabled. QuarantinePolicyEnabled *bool `pulumi:"quarantinePolicyEnabled"` // The name of the resource group in which to create the Container Registry. Changing this forces a new resource to be created. ResourceGroupName *string `pulumi:"resourceGroupName"` // The number of days to retain and untagged manifest after which it gets purged. RetentionPolicyInDays *int `pulumi:"retentionPolicyInDays"` // The SKU name of the container registry. Possible values are `Basic`, `Standard` and `Premium`. Sku *string `pulumi:"sku"` // A mapping of tags to assign to the resource. Tags map[string]string `pulumi:"tags"` // Boolean value that indicated whether trust policy is enabled. Defaults to `false`. TrustPolicyEnabled *bool `pulumi:"trustPolicyEnabled"` // Whether zone redundancy is enabled for this Container Registry? Changing this forces a new resource to be created. Defaults to `false`. ZoneRedundancyEnabled *bool `pulumi:"zoneRedundancyEnabled"` } type RegistryState struct { // Specifies whether the admin user is enabled. Defaults to `false`. AdminEnabled pulumi.BoolPtrInput // The Password associated with the Container Registry Admin account - if the admin account is enabled. AdminPassword pulumi.StringPtrInput // The Username associated with the Container Registry Admin account - if the admin account is enabled. AdminUsername pulumi.StringPtrInput // Whether to allow anonymous (unauthenticated) pull access to this Container Registry. This is only supported on resources with the `Standard` or `Premium` SKU. AnonymousPullEnabled pulumi.BoolPtrInput // Whether to enable dedicated data endpoints for this Container Registry? This is only supported on resources with the `Premium` SKU. DataEndpointEnabled pulumi.BoolPtrInput // A set of data endpoint hostnames associated with the container registry if data endpoints are enabled. DataEndpointHostNames pulumi.StringArrayInput // An `encryption` block as documented below. Encryption RegistryEncryptionPtrInput // Boolean value that indicates whether export policy is enabled. Defaults to `true`. In order to set it to `false`, make sure the `publicNetworkAccessEnabled` is also set to `false`. // // > **Note:** `quarantinePolicyEnabled`, `retentionPolicyInDays`, `trustPolicyEnabled`, `exportPolicyEnabled` and `zoneRedundancyEnabled` are only supported on resources with the `Premium` SKU. ExportPolicyEnabled pulumi.BoolPtrInput // One or more `georeplications` blocks as documented below. // // > **Note:** The `georeplications` is only supported on new resources with the `Premium` SKU. // // > **Note:** The `georeplications` list cannot contain the location where the Container Registry exists. // // > **Note:** If more than one `georeplications` block is specified, they are expected to follow the alphabetic order on the `location` property. Georeplications RegistryGeoreplicationArrayInput // An `identity` block as defined below. Identity RegistryIdentityPtrInput // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location pulumi.StringPtrInput // The URL that can be used to log into the container registry. LoginServer pulumi.StringPtrInput // Specifies the name of the Container Registry. Only Alphanumeric characters allowed. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // Whether to allow trusted Azure services to access a network-restricted Container Registry? Possible values are `None` and `AzureServices`. Defaults to `AzureServices`. NetworkRuleBypassOption pulumi.StringPtrInput // A `networkRuleSet` block as documented below. NetworkRuleSet RegistryNetworkRuleSetPtrInput // Whether public network access is allowed for the container registry. Defaults to `true`. PublicNetworkAccessEnabled pulumi.BoolPtrInput // Boolean value that indicates whether quarantine policy is enabled. QuarantinePolicyEnabled pulumi.BoolPtrInput // The name of the resource group in which to create the Container Registry. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringPtrInput // The number of days to retain and untagged manifest after which it gets purged. RetentionPolicyInDays pulumi.IntPtrInput // The SKU name of the container registry. Possible values are `Basic`, `Standard` and `Premium`. Sku pulumi.StringPtrInput // A mapping of tags to assign to the resource. Tags pulumi.StringMapInput // Boolean value that indicated whether trust policy is enabled. Defaults to `false`. TrustPolicyEnabled pulumi.BoolPtrInput // Whether zone redundancy is enabled for this Container Registry? Changing this forces a new resource to be created. Defaults to `false`. ZoneRedundancyEnabled pulumi.BoolPtrInput } func (RegistryState) ElementType() reflect.Type { return reflect.TypeOf((*registryState)(nil)).Elem() } type registryArgs struct { // Specifies whether the admin user is enabled. Defaults to `false`. AdminEnabled *bool `pulumi:"adminEnabled"` // Whether to allow anonymous (unauthenticated) pull access to this Container Registry. This is only supported on resources with the `Standard` or `Premium` SKU. AnonymousPullEnabled *bool `pulumi:"anonymousPullEnabled"` // Whether to enable dedicated data endpoints for this Container Registry? This is only supported on resources with the `Premium` SKU. DataEndpointEnabled *bool `pulumi:"dataEndpointEnabled"` // An `encryption` block as documented below. Encryption *RegistryEncryption `pulumi:"encryption"` // Boolean value that indicates whether export policy is enabled. Defaults to `true`. In order to set it to `false`, make sure the `publicNetworkAccessEnabled` is also set to `false`. // // > **Note:** `quarantinePolicyEnabled`, `retentionPolicyInDays`, `trustPolicyEnabled`, `exportPolicyEnabled` and `zoneRedundancyEnabled` are only supported on resources with the `Premium` SKU. ExportPolicyEnabled *bool `pulumi:"exportPolicyEnabled"` // One or more `georeplications` blocks as documented below. // // > **Note:** The `georeplications` is only supported on new resources with the `Premium` SKU. // // > **Note:** The `georeplications` list cannot contain the location where the Container Registry exists. // // > **Note:** If more than one `georeplications` block is specified, they are expected to follow the alphabetic order on the `location` property. Georeplications []RegistryGeoreplication `pulumi:"georeplications"` // An `identity` block as defined below. Identity *RegistryIdentity `pulumi:"identity"` // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location *string `pulumi:"location"` // Specifies the name of the Container Registry. Only Alphanumeric characters allowed. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // Whether to allow trusted Azure services to access a network-restricted Container Registry? Possible values are `None` and `AzureServices`. Defaults to `AzureServices`. NetworkRuleBypassOption *string `pulumi:"networkRuleBypassOption"` // A `networkRuleSet` block as documented below. NetworkRuleSet *RegistryNetworkRuleSet `pulumi:"networkRuleSet"` // Whether public network access is allowed for the container registry. Defaults to `true`. PublicNetworkAccessEnabled *bool `pulumi:"publicNetworkAccessEnabled"` // Boolean value that indicates whether quarantine policy is enabled. QuarantinePolicyEnabled *bool `pulumi:"quarantinePolicyEnabled"` // The name of the resource group in which to create the Container Registry. Changing this forces a new resource to be created. ResourceGroupName string `pulumi:"resourceGroupName"` // The number of days to retain and untagged manifest after which it gets purged. RetentionPolicyInDays *int `pulumi:"retentionPolicyInDays"` // The SKU name of the container registry. Possible values are `Basic`, `Standard` and `Premium`. Sku string `pulumi:"sku"` // A mapping of tags to assign to the resource. Tags map[string]string `pulumi:"tags"` // Boolean value that indicated whether trust policy is enabled. Defaults to `false`. TrustPolicyEnabled *bool `pulumi:"trustPolicyEnabled"` // Whether zone redundancy is enabled for this Container Registry? Changing this forces a new resource to be created. Defaults to `false`. ZoneRedundancyEnabled *bool `pulumi:"zoneRedundancyEnabled"` } // The set of arguments for constructing a Registry resource. type RegistryArgs struct { // Specifies whether the admin user is enabled. Defaults to `false`. AdminEnabled pulumi.BoolPtrInput // Whether to allow anonymous (unauthenticated) pull access to this Container Registry. This is only supported on resources with the `Standard` or `Premium` SKU. AnonymousPullEnabled pulumi.BoolPtrInput // Whether to enable dedicated data endpoints for this Container Registry? This is only supported on resources with the `Premium` SKU. DataEndpointEnabled pulumi.BoolPtrInput // An `encryption` block as documented below. Encryption RegistryEncryptionPtrInput // Boolean value that indicates whether export policy is enabled. Defaults to `true`. In order to set it to `false`, make sure the `publicNetworkAccessEnabled` is also set to `false`. // // > **Note:** `quarantinePolicyEnabled`, `retentionPolicyInDays`, `trustPolicyEnabled`, `exportPolicyEnabled` and `zoneRedundancyEnabled` are only supported on resources with the `Premium` SKU. ExportPolicyEnabled pulumi.BoolPtrInput // One or more `georeplications` blocks as documented below. // // > **Note:** The `georeplications` is only supported on new resources with the `Premium` SKU. // // > **Note:** The `georeplications` list cannot contain the location where the Container Registry exists. // // > **Note:** If more than one `georeplications` block is specified, they are expected to follow the alphabetic order on the `location` property. Georeplications RegistryGeoreplicationArrayInput // An `identity` block as defined below. Identity RegistryIdentityPtrInput // 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 Container Registry. Only Alphanumeric characters allowed. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // Whether to allow trusted Azure services to access a network-restricted Container Registry? Possible values are `None` and `AzureServices`. Defaults to `AzureServices`. NetworkRuleBypassOption pulumi.StringPtrInput // A `networkRuleSet` block as documented below. NetworkRuleSet RegistryNetworkRuleSetPtrInput // Whether public network access is allowed for the container registry. Defaults to `true`. PublicNetworkAccessEnabled pulumi.BoolPtrInput // Boolean value that indicates whether quarantine policy is enabled. QuarantinePolicyEnabled pulumi.BoolPtrInput // The name of the resource group in which to create the Container Registry. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringInput // The number of days to retain and untagged manifest after which it gets purged. RetentionPolicyInDays pulumi.IntPtrInput // The SKU name of the container registry. Possible values are `Basic`, `Standard` and `Premium`. Sku pulumi.StringInput // A mapping of tags to assign to the resource. Tags pulumi.StringMapInput // Boolean value that indicated whether trust policy is enabled. Defaults to `false`. TrustPolicyEnabled pulumi.BoolPtrInput // Whether zone redundancy is enabled for this Container Registry? Changing this forces a new resource to be created. Defaults to `false`. ZoneRedundancyEnabled pulumi.BoolPtrInput } func (RegistryArgs) ElementType() reflect.Type { return reflect.TypeOf((*registryArgs)(nil)).Elem() } type RegistryInput interface { pulumi.Input ToRegistryOutput() RegistryOutput ToRegistryOutputWithContext(ctx context.Context) RegistryOutput } func (*Registry) ElementType() reflect.Type { return reflect.TypeOf((**Registry)(nil)).Elem() } func (i *Registry) ToRegistryOutput() RegistryOutput { return i.ToRegistryOutputWithContext(context.Background()) } func (i *Registry) ToRegistryOutputWithContext(ctx context.Context) RegistryOutput { return pulumi.ToOutputWithContext(ctx, i).(RegistryOutput) } // RegistryArrayInput is an input type that accepts RegistryArray and RegistryArrayOutput values. // You can construct a concrete instance of `RegistryArrayInput` via: // // RegistryArray{ RegistryArgs{...} } type RegistryArrayInput interface { pulumi.Input ToRegistryArrayOutput() RegistryArrayOutput ToRegistryArrayOutputWithContext(context.Context) RegistryArrayOutput } type RegistryArray []RegistryInput func (RegistryArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*Registry)(nil)).Elem() } func (i RegistryArray) ToRegistryArrayOutput() RegistryArrayOutput { return i.ToRegistryArrayOutputWithContext(context.Background()) } func (i RegistryArray) ToRegistryArrayOutputWithContext(ctx context.Context) RegistryArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(RegistryArrayOutput) } // RegistryMapInput is an input type that accepts RegistryMap and RegistryMapOutput values. // You can construct a concrete instance of `RegistryMapInput` via: // // RegistryMap{ "key": RegistryArgs{...} } type RegistryMapInput interface { pulumi.Input ToRegistryMapOutput() RegistryMapOutput ToRegistryMapOutputWithContext(context.Context) RegistryMapOutput } type RegistryMap map[string]RegistryInput func (RegistryMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*Registry)(nil)).Elem() } func (i RegistryMap) ToRegistryMapOutput() RegistryMapOutput { return i.ToRegistryMapOutputWithContext(context.Background()) } func (i RegistryMap) ToRegistryMapOutputWithContext(ctx context.Context) RegistryMapOutput { return pulumi.ToOutputWithContext(ctx, i).(RegistryMapOutput) } type RegistryOutput struct{ *pulumi.OutputState } func (RegistryOutput) ElementType() reflect.Type { return reflect.TypeOf((**Registry)(nil)).Elem() } func (o RegistryOutput) ToRegistryOutput() RegistryOutput { return o } func (o RegistryOutput) ToRegistryOutputWithContext(ctx context.Context) RegistryOutput { return o } // Specifies whether the admin user is enabled. Defaults to `false`. func (o RegistryOutput) AdminEnabled() pulumi.BoolPtrOutput { return o.ApplyT(func(v *Registry) pulumi.BoolPtrOutput { return v.AdminEnabled }).(pulumi.BoolPtrOutput) } // The Password associated with the Container Registry Admin account - if the admin account is enabled. func (o RegistryOutput) AdminPassword() pulumi.StringOutput { return o.ApplyT(func(v *Registry) pulumi.StringOutput { return v.AdminPassword }).(pulumi.StringOutput) } // The Username associated with the Container Registry Admin account - if the admin account is enabled. func (o RegistryOutput) AdminUsername() pulumi.StringOutput { return o.ApplyT(func(v *Registry) pulumi.StringOutput { return v.AdminUsername }).(pulumi.StringOutput) } // Whether to allow anonymous (unauthenticated) pull access to this Container Registry. This is only supported on resources with the `Standard` or `Premium` SKU. func (o RegistryOutput) AnonymousPullEnabled() pulumi.BoolPtrOutput { return o.ApplyT(func(v *Registry) pulumi.BoolPtrOutput { return v.AnonymousPullEnabled }).(pulumi.BoolPtrOutput) } // Whether to enable dedicated data endpoints for this Container Registry? This is only supported on resources with the `Premium` SKU. func (o RegistryOutput) DataEndpointEnabled() pulumi.BoolPtrOutput { return o.ApplyT(func(v *Registry) pulumi.BoolPtrOutput { return v.DataEndpointEnabled }).(pulumi.BoolPtrOutput) } // A set of data endpoint hostnames associated with the container registry if data endpoints are enabled. func (o RegistryOutput) DataEndpointHostNames() pulumi.StringArrayOutput { return o.ApplyT(func(v *Registry) pulumi.StringArrayOutput { return v.DataEndpointHostNames }).(pulumi.StringArrayOutput) } // An `encryption` block as documented below. func (o RegistryOutput) Encryption() RegistryEncryptionOutput { return o.ApplyT(func(v *Registry) RegistryEncryptionOutput { return v.Encryption }).(RegistryEncryptionOutput) } // Boolean value that indicates whether export policy is enabled. Defaults to `true`. In order to set it to `false`, make sure the `publicNetworkAccessEnabled` is also set to `false`. // // > **Note:** `quarantinePolicyEnabled`, `retentionPolicyInDays`, `trustPolicyEnabled`, `exportPolicyEnabled` and `zoneRedundancyEnabled` are only supported on resources with the `Premium` SKU. func (o RegistryOutput) ExportPolicyEnabled() pulumi.BoolPtrOutput {
go
Apache-2.0
b66e1472775a89cca43f5050fef806854a7c3fa3
2026-01-07T09:44:27.619514Z
true
pulumi/pulumi-azure
https://github.com/pulumi/pulumi-azure/blob/b66e1472775a89cca43f5050fef806854a7c3fa3/sdk/go/azure/containerservice/registryToken.go
sdk/go/azure/containerservice/registryToken.go
// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package containerservice import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages an Azure Container Registry token associated to a scope map. For more information on scope maps and their tokens see the [product documentation](https://learn.microsoft.com/en-us/azure/container-registry/container-registry-repository-scoped-permissions). // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/containerservice" // "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-resource-group"), // Location: pulumi.String("West Europe"), // }) // if err != nil { // return err // } // exampleRegistry, err := containerservice.NewRegistry(ctx, "example", &containerservice.RegistryArgs{ // Name: pulumi.String("example"), // ResourceGroupName: example.Name, // Location: example.Location, // Sku: pulumi.String("Basic"), // AdminEnabled: pulumi.Bool(false), // Georeplications: containerservice.RegistryGeoreplicationArray{ // &containerservice.RegistryGeoreplicationArgs{ // Location: pulumi.String("East US"), // }, // &containerservice.RegistryGeoreplicationArgs{ // Location: pulumi.String("West Europe"), // }, // }, // }) // if err != nil { // return err // } // exampleRegistryScopeMap, err := containerservice.NewRegistryScopeMap(ctx, "example", &containerservice.RegistryScopeMapArgs{ // Name: pulumi.String("example-scope-map"), // ContainerRegistryName: exampleRegistry.Name, // ResourceGroupName: example.Name, // Actions: pulumi.StringArray{ // pulumi.String("repositories/repo1/content/read"), // pulumi.String("repositories/repo1/content/write"), // }, // }) // if err != nil { // return err // } // _, err = containerservice.NewRegistryToken(ctx, "example", &containerservice.RegistryTokenArgs{ // Name: pulumi.String("exampletoken"), // ContainerRegistryName: exampleRegistry.Name, // ResourceGroupName: example.Name, // ScopeMapId: exampleRegistryScopeMap.ID(), // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## API Providers // // <!-- This section is generated, changes will be overwritten --> // This resource uses the following Azure API Providers: // // * `Microsoft.ContainerRegistry` - 2025-04-01 // // ## Import // // Container Registries can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:containerservice/registryToken:RegistryToken example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.ContainerRegistry/registries/myregistry1/tokens/token1 // ``` type RegistryToken struct { pulumi.CustomResourceState // The name of the Container Registry. Changing this forces a new resource to be created. ContainerRegistryName pulumi.StringOutput `pulumi:"containerRegistryName"` // Should the Container Registry token be enabled? Defaults to `true`. Enabled pulumi.BoolPtrOutput `pulumi:"enabled"` // Specifies the name of the token. 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 Container Registry token. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // The ID of the Container Registry Scope Map associated with the token. ScopeMapId pulumi.StringOutput `pulumi:"scopeMapId"` } // NewRegistryToken registers a new resource with the given unique name, arguments, and options. func NewRegistryToken(ctx *pulumi.Context, name string, args *RegistryTokenArgs, opts ...pulumi.ResourceOption) (*RegistryToken, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.ContainerRegistryName == nil { return nil, errors.New("invalid value for required argument 'ContainerRegistryName'") } if args.ResourceGroupName == nil { return nil, errors.New("invalid value for required argument 'ResourceGroupName'") } if args.ScopeMapId == nil { return nil, errors.New("invalid value for required argument 'ScopeMapId'") } opts = internal.PkgResourceDefaultOpts(opts) var resource RegistryToken err := ctx.RegisterResource("azure:containerservice/registryToken:RegistryToken", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetRegistryToken gets an existing RegistryToken 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 GetRegistryToken(ctx *pulumi.Context, name string, id pulumi.IDInput, state *RegistryTokenState, opts ...pulumi.ResourceOption) (*RegistryToken, error) { var resource RegistryToken err := ctx.ReadResource("azure:containerservice/registryToken:RegistryToken", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering RegistryToken resources. type registryTokenState struct { // The name of the Container Registry. Changing this forces a new resource to be created. ContainerRegistryName *string `pulumi:"containerRegistryName"` // Should the Container Registry token be enabled? Defaults to `true`. Enabled *bool `pulumi:"enabled"` // Specifies the name of the token. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // The name of the resource group in which to create the Container Registry token. Changing this forces a new resource to be created. ResourceGroupName *string `pulumi:"resourceGroupName"` // The ID of the Container Registry Scope Map associated with the token. ScopeMapId *string `pulumi:"scopeMapId"` } type RegistryTokenState struct { // The name of the Container Registry. Changing this forces a new resource to be created. ContainerRegistryName pulumi.StringPtrInput // Should the Container Registry token be enabled? Defaults to `true`. Enabled pulumi.BoolPtrInput // Specifies the name of the token. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // The name of the resource group in which to create the Container Registry token. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringPtrInput // The ID of the Container Registry Scope Map associated with the token. ScopeMapId pulumi.StringPtrInput } func (RegistryTokenState) ElementType() reflect.Type { return reflect.TypeOf((*registryTokenState)(nil)).Elem() } type registryTokenArgs struct { // The name of the Container Registry. Changing this forces a new resource to be created. ContainerRegistryName string `pulumi:"containerRegistryName"` // Should the Container Registry token be enabled? Defaults to `true`. Enabled *bool `pulumi:"enabled"` // Specifies the name of the token. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // The name of the resource group in which to create the Container Registry token. Changing this forces a new resource to be created. ResourceGroupName string `pulumi:"resourceGroupName"` // The ID of the Container Registry Scope Map associated with the token. ScopeMapId string `pulumi:"scopeMapId"` } // The set of arguments for constructing a RegistryToken resource. type RegistryTokenArgs struct { // The name of the Container Registry. Changing this forces a new resource to be created. ContainerRegistryName pulumi.StringInput // Should the Container Registry token be enabled? Defaults to `true`. Enabled pulumi.BoolPtrInput // Specifies the name of the token. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // The name of the resource group in which to create the Container Registry token. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringInput // The ID of the Container Registry Scope Map associated with the token. ScopeMapId pulumi.StringInput } func (RegistryTokenArgs) ElementType() reflect.Type { return reflect.TypeOf((*registryTokenArgs)(nil)).Elem() } type RegistryTokenInput interface { pulumi.Input ToRegistryTokenOutput() RegistryTokenOutput ToRegistryTokenOutputWithContext(ctx context.Context) RegistryTokenOutput } func (*RegistryToken) ElementType() reflect.Type { return reflect.TypeOf((**RegistryToken)(nil)).Elem() } func (i *RegistryToken) ToRegistryTokenOutput() RegistryTokenOutput { return i.ToRegistryTokenOutputWithContext(context.Background()) } func (i *RegistryToken) ToRegistryTokenOutputWithContext(ctx context.Context) RegistryTokenOutput { return pulumi.ToOutputWithContext(ctx, i).(RegistryTokenOutput) } // RegistryTokenArrayInput is an input type that accepts RegistryTokenArray and RegistryTokenArrayOutput values. // You can construct a concrete instance of `RegistryTokenArrayInput` via: // // RegistryTokenArray{ RegistryTokenArgs{...} } type RegistryTokenArrayInput interface { pulumi.Input ToRegistryTokenArrayOutput() RegistryTokenArrayOutput ToRegistryTokenArrayOutputWithContext(context.Context) RegistryTokenArrayOutput } type RegistryTokenArray []RegistryTokenInput func (RegistryTokenArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*RegistryToken)(nil)).Elem() } func (i RegistryTokenArray) ToRegistryTokenArrayOutput() RegistryTokenArrayOutput { return i.ToRegistryTokenArrayOutputWithContext(context.Background()) } func (i RegistryTokenArray) ToRegistryTokenArrayOutputWithContext(ctx context.Context) RegistryTokenArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(RegistryTokenArrayOutput) } // RegistryTokenMapInput is an input type that accepts RegistryTokenMap and RegistryTokenMapOutput values. // You can construct a concrete instance of `RegistryTokenMapInput` via: // // RegistryTokenMap{ "key": RegistryTokenArgs{...} } type RegistryTokenMapInput interface { pulumi.Input ToRegistryTokenMapOutput() RegistryTokenMapOutput ToRegistryTokenMapOutputWithContext(context.Context) RegistryTokenMapOutput } type RegistryTokenMap map[string]RegistryTokenInput func (RegistryTokenMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*RegistryToken)(nil)).Elem() } func (i RegistryTokenMap) ToRegistryTokenMapOutput() RegistryTokenMapOutput { return i.ToRegistryTokenMapOutputWithContext(context.Background()) } func (i RegistryTokenMap) ToRegistryTokenMapOutputWithContext(ctx context.Context) RegistryTokenMapOutput { return pulumi.ToOutputWithContext(ctx, i).(RegistryTokenMapOutput) } type RegistryTokenOutput struct{ *pulumi.OutputState } func (RegistryTokenOutput) ElementType() reflect.Type { return reflect.TypeOf((**RegistryToken)(nil)).Elem() } func (o RegistryTokenOutput) ToRegistryTokenOutput() RegistryTokenOutput { return o } func (o RegistryTokenOutput) ToRegistryTokenOutputWithContext(ctx context.Context) RegistryTokenOutput { return o } // The name of the Container Registry. Changing this forces a new resource to be created. func (o RegistryTokenOutput) ContainerRegistryName() pulumi.StringOutput { return o.ApplyT(func(v *RegistryToken) pulumi.StringOutput { return v.ContainerRegistryName }).(pulumi.StringOutput) } // Should the Container Registry token be enabled? Defaults to `true`. func (o RegistryTokenOutput) Enabled() pulumi.BoolPtrOutput { return o.ApplyT(func(v *RegistryToken) pulumi.BoolPtrOutput { return v.Enabled }).(pulumi.BoolPtrOutput) } // Specifies the name of the token. Changing this forces a new resource to be created. func (o RegistryTokenOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *RegistryToken) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // The name of the resource group in which to create the Container Registry token. Changing this forces a new resource to be created. func (o RegistryTokenOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v *RegistryToken) pulumi.StringOutput { return v.ResourceGroupName }).(pulumi.StringOutput) } // The ID of the Container Registry Scope Map associated with the token. func (o RegistryTokenOutput) ScopeMapId() pulumi.StringOutput { return o.ApplyT(func(v *RegistryToken) pulumi.StringOutput { return v.ScopeMapId }).(pulumi.StringOutput) } type RegistryTokenArrayOutput struct{ *pulumi.OutputState } func (RegistryTokenArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*RegistryToken)(nil)).Elem() } func (o RegistryTokenArrayOutput) ToRegistryTokenArrayOutput() RegistryTokenArrayOutput { return o } func (o RegistryTokenArrayOutput) ToRegistryTokenArrayOutputWithContext(ctx context.Context) RegistryTokenArrayOutput { return o } func (o RegistryTokenArrayOutput) Index(i pulumi.IntInput) RegistryTokenOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *RegistryToken { return vs[0].([]*RegistryToken)[vs[1].(int)] }).(RegistryTokenOutput) } type RegistryTokenMapOutput struct{ *pulumi.OutputState } func (RegistryTokenMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*RegistryToken)(nil)).Elem() } func (o RegistryTokenMapOutput) ToRegistryTokenMapOutput() RegistryTokenMapOutput { return o } func (o RegistryTokenMapOutput) ToRegistryTokenMapOutputWithContext(ctx context.Context) RegistryTokenMapOutput { return o } func (o RegistryTokenMapOutput) MapIndex(k pulumi.StringInput) RegistryTokenOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *RegistryToken { return vs[0].(map[string]*RegistryToken)[vs[1].(string)] }).(RegistryTokenOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*RegistryTokenInput)(nil)).Elem(), &RegistryToken{}) pulumi.RegisterInputType(reflect.TypeOf((*RegistryTokenArrayInput)(nil)).Elem(), RegistryTokenArray{}) pulumi.RegisterInputType(reflect.TypeOf((*RegistryTokenMapInput)(nil)).Elem(), RegistryTokenMap{}) pulumi.RegisterOutputType(RegistryTokenOutput{}) pulumi.RegisterOutputType(RegistryTokenArrayOutput{}) pulumi.RegisterOutputType(RegistryTokenMapOutput{}) }
go
Apache-2.0
b66e1472775a89cca43f5050fef806854a7c3fa3
2026-01-07T09:44:27.619514Z
false
pulumi/pulumi-azure
https://github.com/pulumi/pulumi-azure/blob/b66e1472775a89cca43f5050fef806854a7c3fa3/sdk/go/azure/containerservice/fleetUpdateStrategy.go
sdk/go/azure/containerservice/fleetUpdateStrategy.go
// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package containerservice import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a Kubernetes Fleet Update Strategy. // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/containerservice" // "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-rg"), // Location: pulumi.String("westeurope"), // }) // if err != nil { // return err // } // exampleKubernetesFleetManager, err := containerservice.NewKubernetesFleetManager(ctx, "example", &containerservice.KubernetesFleetManagerArgs{ // Location: example.Location, // Name: pulumi.String("example"), // ResourceGroupName: example.Name, // }) // if err != nil { // return err // } // _, err = containerservice.NewFleetUpdateStrategy(ctx, "example", &containerservice.FleetUpdateStrategyArgs{ // Name: pulumi.String("example"), // KubernetesFleetManagerId: exampleKubernetesFleetManager.ID(), // Stages: containerservice.FleetUpdateStrategyStageArray{ // &containerservice.FleetUpdateStrategyStageArgs{ // Name: pulumi.String("example-stage-1"), // Groups: containerservice.FleetUpdateStrategyStageGroupArray{ // &containerservice.FleetUpdateStrategyStageGroupArgs{ // Name: pulumi.String("example-group-1"), // }, // }, // AfterStageWaitInSeconds: pulumi.Int(21), // }, // }, // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## API Providers // // <!-- This section is generated, changes will be overwritten --> // This resource uses the following Azure API Providers: // // * `Microsoft.ContainerService` - 2024-04-01 // // ## Import // // Kubernetes Fleet Update Strategies can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:containerservice/fleetUpdateStrategy:FleetUpdateStrategy example /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/resourceGroup1/providers/Microsoft.ContainerService/fleets/fleet1/updateStrategies/updateStrategy1 // ``` type FleetUpdateStrategy struct { pulumi.CustomResourceState // The ID of the Fleet Manager. Changing this forces a new Kubernetes Fleet Update Strategy to be created. KubernetesFleetManagerId pulumi.StringOutput `pulumi:"kubernetesFleetManagerId"` // The name which should be used for this Kubernetes Fleet Update Strategy. Changing this forces a new Kubernetes Fleet Update Strategy to be created. Name pulumi.StringOutput `pulumi:"name"` // One or more `stage` blocks as defined below. Stages FleetUpdateStrategyStageArrayOutput `pulumi:"stages"` } // NewFleetUpdateStrategy registers a new resource with the given unique name, arguments, and options. func NewFleetUpdateStrategy(ctx *pulumi.Context, name string, args *FleetUpdateStrategyArgs, opts ...pulumi.ResourceOption) (*FleetUpdateStrategy, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.KubernetesFleetManagerId == nil { return nil, errors.New("invalid value for required argument 'KubernetesFleetManagerId'") } if args.Stages == nil { return nil, errors.New("invalid value for required argument 'Stages'") } opts = internal.PkgResourceDefaultOpts(opts) var resource FleetUpdateStrategy err := ctx.RegisterResource("azure:containerservice/fleetUpdateStrategy:FleetUpdateStrategy", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetFleetUpdateStrategy gets an existing FleetUpdateStrategy 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 GetFleetUpdateStrategy(ctx *pulumi.Context, name string, id pulumi.IDInput, state *FleetUpdateStrategyState, opts ...pulumi.ResourceOption) (*FleetUpdateStrategy, error) { var resource FleetUpdateStrategy err := ctx.ReadResource("azure:containerservice/fleetUpdateStrategy:FleetUpdateStrategy", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering FleetUpdateStrategy resources. type fleetUpdateStrategyState struct { // The ID of the Fleet Manager. Changing this forces a new Kubernetes Fleet Update Strategy to be created. KubernetesFleetManagerId *string `pulumi:"kubernetesFleetManagerId"` // The name which should be used for this Kubernetes Fleet Update Strategy. Changing this forces a new Kubernetes Fleet Update Strategy to be created. Name *string `pulumi:"name"` // One or more `stage` blocks as defined below. Stages []FleetUpdateStrategyStage `pulumi:"stages"` } type FleetUpdateStrategyState struct { // The ID of the Fleet Manager. Changing this forces a new Kubernetes Fleet Update Strategy to be created. KubernetesFleetManagerId pulumi.StringPtrInput // The name which should be used for this Kubernetes Fleet Update Strategy. Changing this forces a new Kubernetes Fleet Update Strategy to be created. Name pulumi.StringPtrInput // One or more `stage` blocks as defined below. Stages FleetUpdateStrategyStageArrayInput } func (FleetUpdateStrategyState) ElementType() reflect.Type { return reflect.TypeOf((*fleetUpdateStrategyState)(nil)).Elem() } type fleetUpdateStrategyArgs struct { // The ID of the Fleet Manager. Changing this forces a new Kubernetes Fleet Update Strategy to be created. KubernetesFleetManagerId string `pulumi:"kubernetesFleetManagerId"` // The name which should be used for this Kubernetes Fleet Update Strategy. Changing this forces a new Kubernetes Fleet Update Strategy to be created. Name *string `pulumi:"name"` // One or more `stage` blocks as defined below. Stages []FleetUpdateStrategyStage `pulumi:"stages"` } // The set of arguments for constructing a FleetUpdateStrategy resource. type FleetUpdateStrategyArgs struct { // The ID of the Fleet Manager. Changing this forces a new Kubernetes Fleet Update Strategy to be created. KubernetesFleetManagerId pulumi.StringInput // The name which should be used for this Kubernetes Fleet Update Strategy. Changing this forces a new Kubernetes Fleet Update Strategy to be created. Name pulumi.StringPtrInput // One or more `stage` blocks as defined below. Stages FleetUpdateStrategyStageArrayInput } func (FleetUpdateStrategyArgs) ElementType() reflect.Type { return reflect.TypeOf((*fleetUpdateStrategyArgs)(nil)).Elem() } type FleetUpdateStrategyInput interface { pulumi.Input ToFleetUpdateStrategyOutput() FleetUpdateStrategyOutput ToFleetUpdateStrategyOutputWithContext(ctx context.Context) FleetUpdateStrategyOutput } func (*FleetUpdateStrategy) ElementType() reflect.Type { return reflect.TypeOf((**FleetUpdateStrategy)(nil)).Elem() } func (i *FleetUpdateStrategy) ToFleetUpdateStrategyOutput() FleetUpdateStrategyOutput { return i.ToFleetUpdateStrategyOutputWithContext(context.Background()) } func (i *FleetUpdateStrategy) ToFleetUpdateStrategyOutputWithContext(ctx context.Context) FleetUpdateStrategyOutput { return pulumi.ToOutputWithContext(ctx, i).(FleetUpdateStrategyOutput) } // FleetUpdateStrategyArrayInput is an input type that accepts FleetUpdateStrategyArray and FleetUpdateStrategyArrayOutput values. // You can construct a concrete instance of `FleetUpdateStrategyArrayInput` via: // // FleetUpdateStrategyArray{ FleetUpdateStrategyArgs{...} } type FleetUpdateStrategyArrayInput interface { pulumi.Input ToFleetUpdateStrategyArrayOutput() FleetUpdateStrategyArrayOutput ToFleetUpdateStrategyArrayOutputWithContext(context.Context) FleetUpdateStrategyArrayOutput } type FleetUpdateStrategyArray []FleetUpdateStrategyInput func (FleetUpdateStrategyArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*FleetUpdateStrategy)(nil)).Elem() } func (i FleetUpdateStrategyArray) ToFleetUpdateStrategyArrayOutput() FleetUpdateStrategyArrayOutput { return i.ToFleetUpdateStrategyArrayOutputWithContext(context.Background()) } func (i FleetUpdateStrategyArray) ToFleetUpdateStrategyArrayOutputWithContext(ctx context.Context) FleetUpdateStrategyArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(FleetUpdateStrategyArrayOutput) } // FleetUpdateStrategyMapInput is an input type that accepts FleetUpdateStrategyMap and FleetUpdateStrategyMapOutput values. // You can construct a concrete instance of `FleetUpdateStrategyMapInput` via: // // FleetUpdateStrategyMap{ "key": FleetUpdateStrategyArgs{...} } type FleetUpdateStrategyMapInput interface { pulumi.Input ToFleetUpdateStrategyMapOutput() FleetUpdateStrategyMapOutput ToFleetUpdateStrategyMapOutputWithContext(context.Context) FleetUpdateStrategyMapOutput } type FleetUpdateStrategyMap map[string]FleetUpdateStrategyInput func (FleetUpdateStrategyMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*FleetUpdateStrategy)(nil)).Elem() } func (i FleetUpdateStrategyMap) ToFleetUpdateStrategyMapOutput() FleetUpdateStrategyMapOutput { return i.ToFleetUpdateStrategyMapOutputWithContext(context.Background()) } func (i FleetUpdateStrategyMap) ToFleetUpdateStrategyMapOutputWithContext(ctx context.Context) FleetUpdateStrategyMapOutput { return pulumi.ToOutputWithContext(ctx, i).(FleetUpdateStrategyMapOutput) } type FleetUpdateStrategyOutput struct{ *pulumi.OutputState } func (FleetUpdateStrategyOutput) ElementType() reflect.Type { return reflect.TypeOf((**FleetUpdateStrategy)(nil)).Elem() } func (o FleetUpdateStrategyOutput) ToFleetUpdateStrategyOutput() FleetUpdateStrategyOutput { return o } func (o FleetUpdateStrategyOutput) ToFleetUpdateStrategyOutputWithContext(ctx context.Context) FleetUpdateStrategyOutput { return o } // The ID of the Fleet Manager. Changing this forces a new Kubernetes Fleet Update Strategy to be created. func (o FleetUpdateStrategyOutput) KubernetesFleetManagerId() pulumi.StringOutput { return o.ApplyT(func(v *FleetUpdateStrategy) pulumi.StringOutput { return v.KubernetesFleetManagerId }).(pulumi.StringOutput) } // The name which should be used for this Kubernetes Fleet Update Strategy. Changing this forces a new Kubernetes Fleet Update Strategy to be created. func (o FleetUpdateStrategyOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *FleetUpdateStrategy) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // One or more `stage` blocks as defined below. func (o FleetUpdateStrategyOutput) Stages() FleetUpdateStrategyStageArrayOutput { return o.ApplyT(func(v *FleetUpdateStrategy) FleetUpdateStrategyStageArrayOutput { return v.Stages }).(FleetUpdateStrategyStageArrayOutput) } type FleetUpdateStrategyArrayOutput struct{ *pulumi.OutputState } func (FleetUpdateStrategyArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*FleetUpdateStrategy)(nil)).Elem() } func (o FleetUpdateStrategyArrayOutput) ToFleetUpdateStrategyArrayOutput() FleetUpdateStrategyArrayOutput { return o } func (o FleetUpdateStrategyArrayOutput) ToFleetUpdateStrategyArrayOutputWithContext(ctx context.Context) FleetUpdateStrategyArrayOutput { return o } func (o FleetUpdateStrategyArrayOutput) Index(i pulumi.IntInput) FleetUpdateStrategyOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *FleetUpdateStrategy { return vs[0].([]*FleetUpdateStrategy)[vs[1].(int)] }).(FleetUpdateStrategyOutput) } type FleetUpdateStrategyMapOutput struct{ *pulumi.OutputState } func (FleetUpdateStrategyMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*FleetUpdateStrategy)(nil)).Elem() } func (o FleetUpdateStrategyMapOutput) ToFleetUpdateStrategyMapOutput() FleetUpdateStrategyMapOutput { return o } func (o FleetUpdateStrategyMapOutput) ToFleetUpdateStrategyMapOutputWithContext(ctx context.Context) FleetUpdateStrategyMapOutput { return o } func (o FleetUpdateStrategyMapOutput) MapIndex(k pulumi.StringInput) FleetUpdateStrategyOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *FleetUpdateStrategy { return vs[0].(map[string]*FleetUpdateStrategy)[vs[1].(string)] }).(FleetUpdateStrategyOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*FleetUpdateStrategyInput)(nil)).Elem(), &FleetUpdateStrategy{}) pulumi.RegisterInputType(reflect.TypeOf((*FleetUpdateStrategyArrayInput)(nil)).Elem(), FleetUpdateStrategyArray{}) pulumi.RegisterInputType(reflect.TypeOf((*FleetUpdateStrategyMapInput)(nil)).Elem(), FleetUpdateStrategyMap{}) pulumi.RegisterOutputType(FleetUpdateStrategyOutput{}) pulumi.RegisterOutputType(FleetUpdateStrategyArrayOutput{}) pulumi.RegisterOutputType(FleetUpdateStrategyMapOutput{}) }
go
Apache-2.0
b66e1472775a89cca43f5050fef806854a7c3fa3
2026-01-07T09:44:27.619514Z
false
pulumi/pulumi-azure
https://github.com/pulumi/pulumi-azure/blob/b66e1472775a89cca43f5050fef806854a7c3fa3/sdk/go/azure/containerservice/group.go
sdk/go/azure/containerservice/group.go
// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package containerservice import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages as an Azure Container Group instance. // // ## Example Usage // // This example provisions a Basic Container. // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/containerservice" // "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-resources"), // Location: pulumi.String("West Europe"), // }) // if err != nil { // return err // } // _, err = containerservice.NewGroup(ctx, "example", &containerservice.GroupArgs{ // Name: pulumi.String("example-continst"), // Location: example.Location, // ResourceGroupName: example.Name, // IpAddressType: pulumi.String("Public"), // DnsNameLabel: pulumi.String("aci-label"), // OsType: pulumi.String("Linux"), // Containers: containerservice.GroupContainerArray{ // &containerservice.GroupContainerArgs{ // Name: pulumi.String("hello-world"), // Image: pulumi.String("mcr.microsoft.com/azuredocs/aci-helloworld:latest"), // Cpu: pulumi.Float64(0.5), // Memory: pulumi.Float64(1.5), // Ports: containerservice.GroupContainerPortArray{ // &containerservice.GroupContainerPortArgs{ // Port: pulumi.Int(443), // Protocol: pulumi.String("TCP"), // }, // }, // }, // &containerservice.GroupContainerArgs{ // Name: pulumi.String("sidecar"), // Image: pulumi.String("mcr.microsoft.com/azuredocs/aci-tutorial-sidecar"), // Cpu: pulumi.Float64(0.5), // Memory: pulumi.Float64(1.5), // }, // }, // Tags: pulumi.StringMap{ // "environment": pulumi.String("testing"), // }, // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## API Providers // // <!-- This section is generated, changes will be overwritten --> // This resource uses the following Azure API Providers: // // * `Microsoft.ContainerInstance` - 2023-05-01 // // ## Import // // Container Group's can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:containerservice/group:Group containerGroup1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.ContainerInstance/containerGroups/myContainerGroup1 // ``` type Group struct { pulumi.CustomResourceState // The definition of a container that is part of the group as documented in the `container` block below. Changing this forces a new resource to be created. Containers GroupContainerArrayOutput `pulumi:"containers"` // A `diagnostics` block as documented below. Changing this forces a new resource to be created. Diagnostics GroupDiagnosticsPtrOutput `pulumi:"diagnostics"` // A `dnsConfig` block as documented below. Changing this forces a new resource to be created. DnsConfig GroupDnsConfigPtrOutput `pulumi:"dnsConfig"` // The DNS label/name for the container group's IP. Changing this forces a new resource to be created. // // > **Note:** DNS label/name is not supported when deploying to virtual networks. DnsNameLabel pulumi.StringPtrOutput `pulumi:"dnsNameLabel"` // The value representing the security enum. `Noreuse`, `ResourceGroupReuse`, `SubscriptionReuse`, `TenantReuse` or `Unsecure`. Defaults to `Unsecure`. Changing this forces a new resource to be created. DnsNameLabelReusePolicy pulumi.StringPtrOutput `pulumi:"dnsNameLabelReusePolicy"` // Zero or more `exposedPort` blocks as defined below. Changing this forces a new resource to be created. // // > **Note:** The `exposedPort` can only contain ports that are also exposed on one or more containers in the group. ExposedPorts GroupExposedPortArrayOutput `pulumi:"exposedPorts"` // The FQDN of the container group derived from `dnsNameLabel`. Fqdn pulumi.StringOutput `pulumi:"fqdn"` // An `identity` block as defined below. Identity GroupIdentityPtrOutput `pulumi:"identity"` // An `imageRegistryCredential` block as documented below. Changing this forces a new resource to be created. ImageRegistryCredentials GroupImageRegistryCredentialArrayOutput `pulumi:"imageRegistryCredentials"` // The definition of an init container that is part of the group as documented in the `initContainer` block below. Changing this forces a new resource to be created. InitContainers GroupInitContainerArrayOutput `pulumi:"initContainers"` // The IP address allocated to the container group. IpAddress pulumi.StringOutput `pulumi:"ipAddress"` // Specifies the IP address type of the container. `Public`, `Private` or `None`. Changing this forces a new resource to be created. If set to `Private`, `subnetIds` also needs to be set. Defaults to `Public`. // // > **Note:** `dnsNameLabel` and `osType` set to `windows` are not compatible with `Private` `ipAddressType` IpAddressType pulumi.StringPtrOutput `pulumi:"ipAddressType"` // The Key Vault key URI for CMK encryption. Changing this forces a new resource to be created. KeyVaultKeyId pulumi.StringPtrOutput `pulumi:"keyVaultKeyId"` // The user assigned identity that has access to the Key Vault Key. If not specified, the RP principal named "Azure Container Instance Service" will be used instead. Make sure the identity has the proper `keyPermissions` set, at least with `Get`, `UnwrapKey`, `WrapKey` and `GetRotationPolicy`. KeyVaultUserAssignedIdentityId pulumi.StringPtrOutput `pulumi:"keyVaultUserAssignedIdentityId"` // 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 Container Group. Changing this forces a new resource to be created. Name pulumi.StringOutput `pulumi:"name"` // Deprecated: the 'network_profile_id' has been removed from the latest versions of the container instance API and has been deprecated. It no longer functions and will be removed from the 4.0 AzureRM provider. Please use the 'subnet_ids' field instead NetworkProfileId pulumi.StringOutput `pulumi:"networkProfileId"` // The OS for the container group. Allowed values are `Linux` and `Windows`. Changing this forces a new resource to be created. // // > **Note:** if `osType` is set to `Windows` currently only a single `container` block is supported. Windows containers are not supported in virtual networks. OsType pulumi.StringOutput `pulumi:"osType"` // The priority of the Container Group. Possible values are `Regular` and `Spot`. Changing this forces a new resource to be created. // // > **Note:** When `priority` is set to `Spot`, the `ipAddressType` has to be `None`. Priority pulumi.StringPtrOutput `pulumi:"priority"` // The name of the resource group in which to create the Container Group. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // Restart policy for the container group. Allowed values are `Always`, `Never`, `OnFailure`. Defaults to `Always`. Changing this forces a new resource to be created. RestartPolicy pulumi.StringPtrOutput `pulumi:"restartPolicy"` // Specifies the sku of the Container Group. Possible values are `Confidential`, `Dedicated` and `Standard`. Defaults to `Standard`. Changing this forces a new resource to be created. Sku pulumi.StringPtrOutput `pulumi:"sku"` // The subnet resource IDs for a container group. Changing this forces a new resource to be created. SubnetIds pulumi.StringPtrOutput `pulumi:"subnetIds"` // A mapping of tags to assign to the resource. Tags pulumi.StringMapOutput `pulumi:"tags"` // A list of Availability Zones in which this Container Group is located. Changing this forces a new resource to be created. Zones pulumi.StringArrayOutput `pulumi:"zones"` } // NewGroup registers a new resource with the given unique name, arguments, and options. func NewGroup(ctx *pulumi.Context, name string, args *GroupArgs, opts ...pulumi.ResourceOption) (*Group, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.Containers == nil { return nil, errors.New("invalid value for required argument 'Containers'") } if args.OsType == nil { return nil, errors.New("invalid value for required argument 'OsType'") } if args.ResourceGroupName == nil { return nil, errors.New("invalid value for required argument 'ResourceGroupName'") } opts = internal.PkgResourceDefaultOpts(opts) var resource Group err := ctx.RegisterResource("azure:containerservice/group:Group", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetGroup gets an existing Group 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 GetGroup(ctx *pulumi.Context, name string, id pulumi.IDInput, state *GroupState, opts ...pulumi.ResourceOption) (*Group, error) { var resource Group err := ctx.ReadResource("azure:containerservice/group:Group", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering Group resources. type groupState struct { // The definition of a container that is part of the group as documented in the `container` block below. Changing this forces a new resource to be created. Containers []GroupContainer `pulumi:"containers"` // A `diagnostics` block as documented below. Changing this forces a new resource to be created. Diagnostics *GroupDiagnostics `pulumi:"diagnostics"` // A `dnsConfig` block as documented below. Changing this forces a new resource to be created. DnsConfig *GroupDnsConfig `pulumi:"dnsConfig"` // The DNS label/name for the container group's IP. Changing this forces a new resource to be created. // // > **Note:** DNS label/name is not supported when deploying to virtual networks. DnsNameLabel *string `pulumi:"dnsNameLabel"` // The value representing the security enum. `Noreuse`, `ResourceGroupReuse`, `SubscriptionReuse`, `TenantReuse` or `Unsecure`. Defaults to `Unsecure`. Changing this forces a new resource to be created. DnsNameLabelReusePolicy *string `pulumi:"dnsNameLabelReusePolicy"` // Zero or more `exposedPort` blocks as defined below. Changing this forces a new resource to be created. // // > **Note:** The `exposedPort` can only contain ports that are also exposed on one or more containers in the group. ExposedPorts []GroupExposedPort `pulumi:"exposedPorts"` // The FQDN of the container group derived from `dnsNameLabel`. Fqdn *string `pulumi:"fqdn"` // An `identity` block as defined below. Identity *GroupIdentity `pulumi:"identity"` // An `imageRegistryCredential` block as documented below. Changing this forces a new resource to be created. ImageRegistryCredentials []GroupImageRegistryCredential `pulumi:"imageRegistryCredentials"` // The definition of an init container that is part of the group as documented in the `initContainer` block below. Changing this forces a new resource to be created. InitContainers []GroupInitContainer `pulumi:"initContainers"` // The IP address allocated to the container group. IpAddress *string `pulumi:"ipAddress"` // Specifies the IP address type of the container. `Public`, `Private` or `None`. Changing this forces a new resource to be created. If set to `Private`, `subnetIds` also needs to be set. Defaults to `Public`. // // > **Note:** `dnsNameLabel` and `osType` set to `windows` are not compatible with `Private` `ipAddressType` IpAddressType *string `pulumi:"ipAddressType"` // The Key Vault key URI for CMK encryption. Changing this forces a new resource to be created. KeyVaultKeyId *string `pulumi:"keyVaultKeyId"` // The user assigned identity that has access to the Key Vault Key. If not specified, the RP principal named "Azure Container Instance Service" will be used instead. Make sure the identity has the proper `keyPermissions` set, at least with `Get`, `UnwrapKey`, `WrapKey` and `GetRotationPolicy`. KeyVaultUserAssignedIdentityId *string `pulumi:"keyVaultUserAssignedIdentityId"` // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location *string `pulumi:"location"` // Specifies the name of the Container Group. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // Deprecated: the 'network_profile_id' has been removed from the latest versions of the container instance API and has been deprecated. It no longer functions and will be removed from the 4.0 AzureRM provider. Please use the 'subnet_ids' field instead NetworkProfileId *string `pulumi:"networkProfileId"` // The OS for the container group. Allowed values are `Linux` and `Windows`. Changing this forces a new resource to be created. // // > **Note:** if `osType` is set to `Windows` currently only a single `container` block is supported. Windows containers are not supported in virtual networks. OsType *string `pulumi:"osType"` // The priority of the Container Group. Possible values are `Regular` and `Spot`. Changing this forces a new resource to be created. // // > **Note:** When `priority` is set to `Spot`, the `ipAddressType` has to be `None`. Priority *string `pulumi:"priority"` // The name of the resource group in which to create the Container Group. Changing this forces a new resource to be created. ResourceGroupName *string `pulumi:"resourceGroupName"` // Restart policy for the container group. Allowed values are `Always`, `Never`, `OnFailure`. Defaults to `Always`. Changing this forces a new resource to be created. RestartPolicy *string `pulumi:"restartPolicy"` // Specifies the sku of the Container Group. Possible values are `Confidential`, `Dedicated` and `Standard`. Defaults to `Standard`. Changing this forces a new resource to be created. Sku *string `pulumi:"sku"` // The subnet resource IDs for a container group. Changing this forces a new resource to be created. SubnetIds *string `pulumi:"subnetIds"` // A mapping of tags to assign to the resource. Tags map[string]string `pulumi:"tags"` // A list of Availability Zones in which this Container Group is located. Changing this forces a new resource to be created. Zones []string `pulumi:"zones"` } type GroupState struct { // The definition of a container that is part of the group as documented in the `container` block below. Changing this forces a new resource to be created. Containers GroupContainerArrayInput // A `diagnostics` block as documented below. Changing this forces a new resource to be created. Diagnostics GroupDiagnosticsPtrInput // A `dnsConfig` block as documented below. Changing this forces a new resource to be created. DnsConfig GroupDnsConfigPtrInput // The DNS label/name for the container group's IP. Changing this forces a new resource to be created. // // > **Note:** DNS label/name is not supported when deploying to virtual networks. DnsNameLabel pulumi.StringPtrInput // The value representing the security enum. `Noreuse`, `ResourceGroupReuse`, `SubscriptionReuse`, `TenantReuse` or `Unsecure`. Defaults to `Unsecure`. Changing this forces a new resource to be created. DnsNameLabelReusePolicy pulumi.StringPtrInput // Zero or more `exposedPort` blocks as defined below. Changing this forces a new resource to be created. // // > **Note:** The `exposedPort` can only contain ports that are also exposed on one or more containers in the group. ExposedPorts GroupExposedPortArrayInput // The FQDN of the container group derived from `dnsNameLabel`. Fqdn pulumi.StringPtrInput // An `identity` block as defined below. Identity GroupIdentityPtrInput // An `imageRegistryCredential` block as documented below. Changing this forces a new resource to be created. ImageRegistryCredentials GroupImageRegistryCredentialArrayInput // The definition of an init container that is part of the group as documented in the `initContainer` block below. Changing this forces a new resource to be created. InitContainers GroupInitContainerArrayInput // The IP address allocated to the container group. IpAddress pulumi.StringPtrInput // Specifies the IP address type of the container. `Public`, `Private` or `None`. Changing this forces a new resource to be created. If set to `Private`, `subnetIds` also needs to be set. Defaults to `Public`. // // > **Note:** `dnsNameLabel` and `osType` set to `windows` are not compatible with `Private` `ipAddressType` IpAddressType pulumi.StringPtrInput // The Key Vault key URI for CMK encryption. Changing this forces a new resource to be created. KeyVaultKeyId pulumi.StringPtrInput // The user assigned identity that has access to the Key Vault Key. If not specified, the RP principal named "Azure Container Instance Service" will be used instead. Make sure the identity has the proper `keyPermissions` set, at least with `Get`, `UnwrapKey`, `WrapKey` and `GetRotationPolicy`. KeyVaultUserAssignedIdentityId pulumi.StringPtrInput // 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 Container Group. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // Deprecated: the 'network_profile_id' has been removed from the latest versions of the container instance API and has been deprecated. It no longer functions and will be removed from the 4.0 AzureRM provider. Please use the 'subnet_ids' field instead NetworkProfileId pulumi.StringPtrInput // The OS for the container group. Allowed values are `Linux` and `Windows`. Changing this forces a new resource to be created. // // > **Note:** if `osType` is set to `Windows` currently only a single `container` block is supported. Windows containers are not supported in virtual networks. OsType pulumi.StringPtrInput // The priority of the Container Group. Possible values are `Regular` and `Spot`. Changing this forces a new resource to be created. // // > **Note:** When `priority` is set to `Spot`, the `ipAddressType` has to be `None`. Priority pulumi.StringPtrInput // The name of the resource group in which to create the Container Group. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringPtrInput // Restart policy for the container group. Allowed values are `Always`, `Never`, `OnFailure`. Defaults to `Always`. Changing this forces a new resource to be created. RestartPolicy pulumi.StringPtrInput // Specifies the sku of the Container Group. Possible values are `Confidential`, `Dedicated` and `Standard`. Defaults to `Standard`. Changing this forces a new resource to be created. Sku pulumi.StringPtrInput // The subnet resource IDs for a container group. Changing this forces a new resource to be created. SubnetIds pulumi.StringPtrInput // A mapping of tags to assign to the resource. Tags pulumi.StringMapInput // A list of Availability Zones in which this Container Group is located. Changing this forces a new resource to be created. Zones pulumi.StringArrayInput } func (GroupState) ElementType() reflect.Type { return reflect.TypeOf((*groupState)(nil)).Elem() } type groupArgs struct { // The definition of a container that is part of the group as documented in the `container` block below. Changing this forces a new resource to be created. Containers []GroupContainer `pulumi:"containers"` // A `diagnostics` block as documented below. Changing this forces a new resource to be created. Diagnostics *GroupDiagnostics `pulumi:"diagnostics"` // A `dnsConfig` block as documented below. Changing this forces a new resource to be created. DnsConfig *GroupDnsConfig `pulumi:"dnsConfig"` // The DNS label/name for the container group's IP. Changing this forces a new resource to be created. // // > **Note:** DNS label/name is not supported when deploying to virtual networks. DnsNameLabel *string `pulumi:"dnsNameLabel"` // The value representing the security enum. `Noreuse`, `ResourceGroupReuse`, `SubscriptionReuse`, `TenantReuse` or `Unsecure`. Defaults to `Unsecure`. Changing this forces a new resource to be created. DnsNameLabelReusePolicy *string `pulumi:"dnsNameLabelReusePolicy"` // Zero or more `exposedPort` blocks as defined below. Changing this forces a new resource to be created. // // > **Note:** The `exposedPort` can only contain ports that are also exposed on one or more containers in the group. ExposedPorts []GroupExposedPort `pulumi:"exposedPorts"` // An `identity` block as defined below. Identity *GroupIdentity `pulumi:"identity"` // An `imageRegistryCredential` block as documented below. Changing this forces a new resource to be created. ImageRegistryCredentials []GroupImageRegistryCredential `pulumi:"imageRegistryCredentials"` // The definition of an init container that is part of the group as documented in the `initContainer` block below. Changing this forces a new resource to be created. InitContainers []GroupInitContainer `pulumi:"initContainers"` // Specifies the IP address type of the container. `Public`, `Private` or `None`. Changing this forces a new resource to be created. If set to `Private`, `subnetIds` also needs to be set. Defaults to `Public`. // // > **Note:** `dnsNameLabel` and `osType` set to `windows` are not compatible with `Private` `ipAddressType` IpAddressType *string `pulumi:"ipAddressType"` // The Key Vault key URI for CMK encryption. Changing this forces a new resource to be created. KeyVaultKeyId *string `pulumi:"keyVaultKeyId"` // The user assigned identity that has access to the Key Vault Key. If not specified, the RP principal named "Azure Container Instance Service" will be used instead. Make sure the identity has the proper `keyPermissions` set, at least with `Get`, `UnwrapKey`, `WrapKey` and `GetRotationPolicy`. KeyVaultUserAssignedIdentityId *string `pulumi:"keyVaultUserAssignedIdentityId"` // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location *string `pulumi:"location"` // Specifies the name of the Container Group. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // Deprecated: the 'network_profile_id' has been removed from the latest versions of the container instance API and has been deprecated. It no longer functions and will be removed from the 4.0 AzureRM provider. Please use the 'subnet_ids' field instead NetworkProfileId *string `pulumi:"networkProfileId"` // The OS for the container group. Allowed values are `Linux` and `Windows`. Changing this forces a new resource to be created. // // > **Note:** if `osType` is set to `Windows` currently only a single `container` block is supported. Windows containers are not supported in virtual networks. OsType string `pulumi:"osType"` // The priority of the Container Group. Possible values are `Regular` and `Spot`. Changing this forces a new resource to be created. // // > **Note:** When `priority` is set to `Spot`, the `ipAddressType` has to be `None`. Priority *string `pulumi:"priority"` // The name of the resource group in which to create the Container Group. Changing this forces a new resource to be created. ResourceGroupName string `pulumi:"resourceGroupName"` // Restart policy for the container group. Allowed values are `Always`, `Never`, `OnFailure`. Defaults to `Always`. Changing this forces a new resource to be created. RestartPolicy *string `pulumi:"restartPolicy"` // Specifies the sku of the Container Group. Possible values are `Confidential`, `Dedicated` and `Standard`. Defaults to `Standard`. Changing this forces a new resource to be created. Sku *string `pulumi:"sku"` // The subnet resource IDs for a container group. Changing this forces a new resource to be created. SubnetIds *string `pulumi:"subnetIds"` // A mapping of tags to assign to the resource. Tags map[string]string `pulumi:"tags"` // A list of Availability Zones in which this Container Group is located. Changing this forces a new resource to be created. Zones []string `pulumi:"zones"` } // The set of arguments for constructing a Group resource. type GroupArgs struct { // The definition of a container that is part of the group as documented in the `container` block below. Changing this forces a new resource to be created. Containers GroupContainerArrayInput // A `diagnostics` block as documented below. Changing this forces a new resource to be created. Diagnostics GroupDiagnosticsPtrInput // A `dnsConfig` block as documented below. Changing this forces a new resource to be created. DnsConfig GroupDnsConfigPtrInput // The DNS label/name for the container group's IP. Changing this forces a new resource to be created. // // > **Note:** DNS label/name is not supported when deploying to virtual networks. DnsNameLabel pulumi.StringPtrInput // The value representing the security enum. `Noreuse`, `ResourceGroupReuse`, `SubscriptionReuse`, `TenantReuse` or `Unsecure`. Defaults to `Unsecure`. Changing this forces a new resource to be created. DnsNameLabelReusePolicy pulumi.StringPtrInput // Zero or more `exposedPort` blocks as defined below. Changing this forces a new resource to be created. // // > **Note:** The `exposedPort` can only contain ports that are also exposed on one or more containers in the group. ExposedPorts GroupExposedPortArrayInput // An `identity` block as defined below. Identity GroupIdentityPtrInput // An `imageRegistryCredential` block as documented below. Changing this forces a new resource to be created. ImageRegistryCredentials GroupImageRegistryCredentialArrayInput // The definition of an init container that is part of the group as documented in the `initContainer` block below. Changing this forces a new resource to be created. InitContainers GroupInitContainerArrayInput // Specifies the IP address type of the container. `Public`, `Private` or `None`. Changing this forces a new resource to be created. If set to `Private`, `subnetIds` also needs to be set. Defaults to `Public`. // // > **Note:** `dnsNameLabel` and `osType` set to `windows` are not compatible with `Private` `ipAddressType` IpAddressType pulumi.StringPtrInput // The Key Vault key URI for CMK encryption. Changing this forces a new resource to be created. KeyVaultKeyId pulumi.StringPtrInput // The user assigned identity that has access to the Key Vault Key. If not specified, the RP principal named "Azure Container Instance Service" will be used instead. Make sure the identity has the proper `keyPermissions` set, at least with `Get`, `UnwrapKey`, `WrapKey` and `GetRotationPolicy`. KeyVaultUserAssignedIdentityId pulumi.StringPtrInput // 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 Container Group. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // Deprecated: the 'network_profile_id' has been removed from the latest versions of the container instance API and has been deprecated. It no longer functions and will be removed from the 4.0 AzureRM provider. Please use the 'subnet_ids' field instead NetworkProfileId pulumi.StringPtrInput // The OS for the container group. Allowed values are `Linux` and `Windows`. Changing this forces a new resource to be created. // // > **Note:** if `osType` is set to `Windows` currently only a single `container` block is supported. Windows containers are not supported in virtual networks. OsType pulumi.StringInput // The priority of the Container Group. Possible values are `Regular` and `Spot`. Changing this forces a new resource to be created. // // > **Note:** When `priority` is set to `Spot`, the `ipAddressType` has to be `None`. Priority pulumi.StringPtrInput // The name of the resource group in which to create the Container Group. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringInput // Restart policy for the container group. Allowed values are `Always`, `Never`, `OnFailure`. Defaults to `Always`. Changing this forces a new resource to be created. RestartPolicy pulumi.StringPtrInput // Specifies the sku of the Container Group. Possible values are `Confidential`, `Dedicated` and `Standard`. Defaults to `Standard`. Changing this forces a new resource to be created. Sku pulumi.StringPtrInput // The subnet resource IDs for a container group. Changing this forces a new resource to be created. SubnetIds pulumi.StringPtrInput // A mapping of tags to assign to the resource. Tags pulumi.StringMapInput // A list of Availability Zones in which this Container Group is located. Changing this forces a new resource to be created. Zones pulumi.StringArrayInput } func (GroupArgs) ElementType() reflect.Type { return reflect.TypeOf((*groupArgs)(nil)).Elem() } type GroupInput interface { pulumi.Input ToGroupOutput() GroupOutput ToGroupOutputWithContext(ctx context.Context) GroupOutput } func (*Group) ElementType() reflect.Type { return reflect.TypeOf((**Group)(nil)).Elem() } func (i *Group) ToGroupOutput() GroupOutput { return i.ToGroupOutputWithContext(context.Background()) } func (i *Group) ToGroupOutputWithContext(ctx context.Context) GroupOutput { return pulumi.ToOutputWithContext(ctx, i).(GroupOutput) } // GroupArrayInput is an input type that accepts GroupArray and GroupArrayOutput values. // You can construct a concrete instance of `GroupArrayInput` via: // // GroupArray{ GroupArgs{...} } type GroupArrayInput interface { pulumi.Input ToGroupArrayOutput() GroupArrayOutput ToGroupArrayOutputWithContext(context.Context) GroupArrayOutput } type GroupArray []GroupInput func (GroupArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*Group)(nil)).Elem() } func (i GroupArray) ToGroupArrayOutput() GroupArrayOutput { return i.ToGroupArrayOutputWithContext(context.Background()) } func (i GroupArray) ToGroupArrayOutputWithContext(ctx context.Context) GroupArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(GroupArrayOutput) } // GroupMapInput is an input type that accepts GroupMap and GroupMapOutput values. // You can construct a concrete instance of `GroupMapInput` via: // // GroupMap{ "key": GroupArgs{...} } type GroupMapInput interface { pulumi.Input ToGroupMapOutput() GroupMapOutput ToGroupMapOutputWithContext(context.Context) GroupMapOutput } type GroupMap map[string]GroupInput func (GroupMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*Group)(nil)).Elem() } func (i GroupMap) ToGroupMapOutput() GroupMapOutput { return i.ToGroupMapOutputWithContext(context.Background()) } func (i GroupMap) ToGroupMapOutputWithContext(ctx context.Context) GroupMapOutput { return pulumi.ToOutputWithContext(ctx, i).(GroupMapOutput) } type GroupOutput struct{ *pulumi.OutputState } func (GroupOutput) ElementType() reflect.Type { return reflect.TypeOf((**Group)(nil)).Elem() } func (o GroupOutput) ToGroupOutput() GroupOutput { return o } func (o GroupOutput) ToGroupOutputWithContext(ctx context.Context) GroupOutput { return o } // The definition of a container that is part of the group as documented in the `container` block below. Changing this forces a new resource to be created. func (o GroupOutput) Containers() GroupContainerArrayOutput { return o.ApplyT(func(v *Group) GroupContainerArrayOutput { return v.Containers }).(GroupContainerArrayOutput) } // A `diagnostics` block as documented below. Changing this forces a new resource to be created. func (o GroupOutput) Diagnostics() GroupDiagnosticsPtrOutput { return o.ApplyT(func(v *Group) GroupDiagnosticsPtrOutput { return v.Diagnostics }).(GroupDiagnosticsPtrOutput) } // A `dnsConfig` block as documented below. Changing this forces a new resource to be created. func (o GroupOutput) DnsConfig() GroupDnsConfigPtrOutput { return o.ApplyT(func(v *Group) GroupDnsConfigPtrOutput { return v.DnsConfig }).(GroupDnsConfigPtrOutput) } // The DNS label/name for the container group's IP. Changing this forces a new resource to be created. //
go
Apache-2.0
b66e1472775a89cca43f5050fef806854a7c3fa3
2026-01-07T09:44:27.619514Z
true
pulumi/pulumi-azure
https://github.com/pulumi/pulumi-azure/blob/b66e1472775a89cca43f5050fef806854a7c3fa3/sdk/go/azure/containerservice/registryTaskScheduleRunNow.go
sdk/go/azure/containerservice/registryTaskScheduleRunNow.go
// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package containerservice import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Runs a Container Registry Task Schedule. // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/containerservice" // "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-rg"), // Location: pulumi.String("West Europe"), // }) // if err != nil { // return err // } // exampleRegistry, err := containerservice.NewRegistry(ctx, "example", &containerservice.RegistryArgs{ // Name: pulumi.String("example-acr"), // ResourceGroupName: example.Name, // Location: example.Location, // Sku: pulumi.String("Basic"), // }) // if err != nil { // return err // } // exampleRegistryTask, err := containerservice.NewRegistryTask(ctx, "example", &containerservice.RegistryTaskArgs{ // Name: pulumi.String("example-task"), // ContainerRegistryId: exampleRegistry.ID(), // Platform: &containerservice.RegistryTaskPlatformArgs{ // Os: pulumi.String("Linux"), // }, // DockerStep: &containerservice.RegistryTaskDockerStepArgs{ // DockerfilePath: pulumi.String("Dockerfile"), // ContextPath: pulumi.String("https://github.com/<user name>/acr-build-helloworld-node#main"), // ContextAccessToken: pulumi.String("<github personal access token>"), // ImageNames: pulumi.StringArray{ // pulumi.String("helloworld:{{.Run.ID}}"), // }, // }, // }) // if err != nil { // return err // } // _, err = containerservice.NewRegistryTaskScheduleRunNow(ctx, "example", &containerservice.RegistryTaskScheduleRunNowArgs{ // ContainerRegistryTaskId: exampleRegistryTask.ID(), // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## API Providers // // <!-- This section is generated, changes will be overwritten --> // This resource uses the following Azure API Providers: // // * `Microsoft.ContainerRegistry` - 2019-06-01-preview type RegistryTaskScheduleRunNow struct { pulumi.CustomResourceState // The ID of the Container Registry Task that to be scheduled. Changing this forces a new Container Registry Task Schedule to be created. ContainerRegistryTaskId pulumi.StringOutput `pulumi:"containerRegistryTaskId"` } // NewRegistryTaskScheduleRunNow registers a new resource with the given unique name, arguments, and options. func NewRegistryTaskScheduleRunNow(ctx *pulumi.Context, name string, args *RegistryTaskScheduleRunNowArgs, opts ...pulumi.ResourceOption) (*RegistryTaskScheduleRunNow, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.ContainerRegistryTaskId == nil { return nil, errors.New("invalid value for required argument 'ContainerRegistryTaskId'") } opts = internal.PkgResourceDefaultOpts(opts) var resource RegistryTaskScheduleRunNow err := ctx.RegisterResource("azure:containerservice/registryTaskScheduleRunNow:RegistryTaskScheduleRunNow", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetRegistryTaskScheduleRunNow gets an existing RegistryTaskScheduleRunNow 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 GetRegistryTaskScheduleRunNow(ctx *pulumi.Context, name string, id pulumi.IDInput, state *RegistryTaskScheduleRunNowState, opts ...pulumi.ResourceOption) (*RegistryTaskScheduleRunNow, error) { var resource RegistryTaskScheduleRunNow err := ctx.ReadResource("azure:containerservice/registryTaskScheduleRunNow:RegistryTaskScheduleRunNow", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering RegistryTaskScheduleRunNow resources. type registryTaskScheduleRunNowState struct { // The ID of the Container Registry Task that to be scheduled. Changing this forces a new Container Registry Task Schedule to be created. ContainerRegistryTaskId *string `pulumi:"containerRegistryTaskId"` } type RegistryTaskScheduleRunNowState struct { // The ID of the Container Registry Task that to be scheduled. Changing this forces a new Container Registry Task Schedule to be created. ContainerRegistryTaskId pulumi.StringPtrInput } func (RegistryTaskScheduleRunNowState) ElementType() reflect.Type { return reflect.TypeOf((*registryTaskScheduleRunNowState)(nil)).Elem() } type registryTaskScheduleRunNowArgs struct { // The ID of the Container Registry Task that to be scheduled. Changing this forces a new Container Registry Task Schedule to be created. ContainerRegistryTaskId string `pulumi:"containerRegistryTaskId"` } // The set of arguments for constructing a RegistryTaskScheduleRunNow resource. type RegistryTaskScheduleRunNowArgs struct { // The ID of the Container Registry Task that to be scheduled. Changing this forces a new Container Registry Task Schedule to be created. ContainerRegistryTaskId pulumi.StringInput } func (RegistryTaskScheduleRunNowArgs) ElementType() reflect.Type { return reflect.TypeOf((*registryTaskScheduleRunNowArgs)(nil)).Elem() } type RegistryTaskScheduleRunNowInput interface { pulumi.Input ToRegistryTaskScheduleRunNowOutput() RegistryTaskScheduleRunNowOutput ToRegistryTaskScheduleRunNowOutputWithContext(ctx context.Context) RegistryTaskScheduleRunNowOutput } func (*RegistryTaskScheduleRunNow) ElementType() reflect.Type { return reflect.TypeOf((**RegistryTaskScheduleRunNow)(nil)).Elem() } func (i *RegistryTaskScheduleRunNow) ToRegistryTaskScheduleRunNowOutput() RegistryTaskScheduleRunNowOutput { return i.ToRegistryTaskScheduleRunNowOutputWithContext(context.Background()) } func (i *RegistryTaskScheduleRunNow) ToRegistryTaskScheduleRunNowOutputWithContext(ctx context.Context) RegistryTaskScheduleRunNowOutput { return pulumi.ToOutputWithContext(ctx, i).(RegistryTaskScheduleRunNowOutput) } // RegistryTaskScheduleRunNowArrayInput is an input type that accepts RegistryTaskScheduleRunNowArray and RegistryTaskScheduleRunNowArrayOutput values. // You can construct a concrete instance of `RegistryTaskScheduleRunNowArrayInput` via: // // RegistryTaskScheduleRunNowArray{ RegistryTaskScheduleRunNowArgs{...} } type RegistryTaskScheduleRunNowArrayInput interface { pulumi.Input ToRegistryTaskScheduleRunNowArrayOutput() RegistryTaskScheduleRunNowArrayOutput ToRegistryTaskScheduleRunNowArrayOutputWithContext(context.Context) RegistryTaskScheduleRunNowArrayOutput } type RegistryTaskScheduleRunNowArray []RegistryTaskScheduleRunNowInput func (RegistryTaskScheduleRunNowArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*RegistryTaskScheduleRunNow)(nil)).Elem() } func (i RegistryTaskScheduleRunNowArray) ToRegistryTaskScheduleRunNowArrayOutput() RegistryTaskScheduleRunNowArrayOutput { return i.ToRegistryTaskScheduleRunNowArrayOutputWithContext(context.Background()) } func (i RegistryTaskScheduleRunNowArray) ToRegistryTaskScheduleRunNowArrayOutputWithContext(ctx context.Context) RegistryTaskScheduleRunNowArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(RegistryTaskScheduleRunNowArrayOutput) } // RegistryTaskScheduleRunNowMapInput is an input type that accepts RegistryTaskScheduleRunNowMap and RegistryTaskScheduleRunNowMapOutput values. // You can construct a concrete instance of `RegistryTaskScheduleRunNowMapInput` via: // // RegistryTaskScheduleRunNowMap{ "key": RegistryTaskScheduleRunNowArgs{...} } type RegistryTaskScheduleRunNowMapInput interface { pulumi.Input ToRegistryTaskScheduleRunNowMapOutput() RegistryTaskScheduleRunNowMapOutput ToRegistryTaskScheduleRunNowMapOutputWithContext(context.Context) RegistryTaskScheduleRunNowMapOutput } type RegistryTaskScheduleRunNowMap map[string]RegistryTaskScheduleRunNowInput func (RegistryTaskScheduleRunNowMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*RegistryTaskScheduleRunNow)(nil)).Elem() } func (i RegistryTaskScheduleRunNowMap) ToRegistryTaskScheduleRunNowMapOutput() RegistryTaskScheduleRunNowMapOutput { return i.ToRegistryTaskScheduleRunNowMapOutputWithContext(context.Background()) } func (i RegistryTaskScheduleRunNowMap) ToRegistryTaskScheduleRunNowMapOutputWithContext(ctx context.Context) RegistryTaskScheduleRunNowMapOutput { return pulumi.ToOutputWithContext(ctx, i).(RegistryTaskScheduleRunNowMapOutput) } type RegistryTaskScheduleRunNowOutput struct{ *pulumi.OutputState } func (RegistryTaskScheduleRunNowOutput) ElementType() reflect.Type { return reflect.TypeOf((**RegistryTaskScheduleRunNow)(nil)).Elem() } func (o RegistryTaskScheduleRunNowOutput) ToRegistryTaskScheduleRunNowOutput() RegistryTaskScheduleRunNowOutput { return o } func (o RegistryTaskScheduleRunNowOutput) ToRegistryTaskScheduleRunNowOutputWithContext(ctx context.Context) RegistryTaskScheduleRunNowOutput { return o } // The ID of the Container Registry Task that to be scheduled. Changing this forces a new Container Registry Task Schedule to be created. func (o RegistryTaskScheduleRunNowOutput) ContainerRegistryTaskId() pulumi.StringOutput { return o.ApplyT(func(v *RegistryTaskScheduleRunNow) pulumi.StringOutput { return v.ContainerRegistryTaskId }).(pulumi.StringOutput) } type RegistryTaskScheduleRunNowArrayOutput struct{ *pulumi.OutputState } func (RegistryTaskScheduleRunNowArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*RegistryTaskScheduleRunNow)(nil)).Elem() } func (o RegistryTaskScheduleRunNowArrayOutput) ToRegistryTaskScheduleRunNowArrayOutput() RegistryTaskScheduleRunNowArrayOutput { return o } func (o RegistryTaskScheduleRunNowArrayOutput) ToRegistryTaskScheduleRunNowArrayOutputWithContext(ctx context.Context) RegistryTaskScheduleRunNowArrayOutput { return o } func (o RegistryTaskScheduleRunNowArrayOutput) Index(i pulumi.IntInput) RegistryTaskScheduleRunNowOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *RegistryTaskScheduleRunNow { return vs[0].([]*RegistryTaskScheduleRunNow)[vs[1].(int)] }).(RegistryTaskScheduleRunNowOutput) } type RegistryTaskScheduleRunNowMapOutput struct{ *pulumi.OutputState } func (RegistryTaskScheduleRunNowMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*RegistryTaskScheduleRunNow)(nil)).Elem() } func (o RegistryTaskScheduleRunNowMapOutput) ToRegistryTaskScheduleRunNowMapOutput() RegistryTaskScheduleRunNowMapOutput { return o } func (o RegistryTaskScheduleRunNowMapOutput) ToRegistryTaskScheduleRunNowMapOutputWithContext(ctx context.Context) RegistryTaskScheduleRunNowMapOutput { return o } func (o RegistryTaskScheduleRunNowMapOutput) MapIndex(k pulumi.StringInput) RegistryTaskScheduleRunNowOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *RegistryTaskScheduleRunNow { return vs[0].(map[string]*RegistryTaskScheduleRunNow)[vs[1].(string)] }).(RegistryTaskScheduleRunNowOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*RegistryTaskScheduleRunNowInput)(nil)).Elem(), &RegistryTaskScheduleRunNow{}) pulumi.RegisterInputType(reflect.TypeOf((*RegistryTaskScheduleRunNowArrayInput)(nil)).Elem(), RegistryTaskScheduleRunNowArray{}) pulumi.RegisterInputType(reflect.TypeOf((*RegistryTaskScheduleRunNowMapInput)(nil)).Elem(), RegistryTaskScheduleRunNowMap{}) pulumi.RegisterOutputType(RegistryTaskScheduleRunNowOutput{}) pulumi.RegisterOutputType(RegistryTaskScheduleRunNowArrayOutput{}) pulumi.RegisterOutputType(RegistryTaskScheduleRunNowMapOutput{}) }
go
Apache-2.0
b66e1472775a89cca43f5050fef806854a7c3fa3
2026-01-07T09:44:27.619514Z
false
pulumi/pulumi-azure
https://github.com/pulumi/pulumi-azure/blob/b66e1472775a89cca43f5050fef806854a7c3fa3/sdk/go/azure/containerservice/registryAgentPool.go
sdk/go/azure/containerservice/registryAgentPool.go
// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package containerservice import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages an Azure Container Registry Agent Pool. // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/containerservice" // "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 Europ"), // }) // if err != nil { // return err // } // exampleRegistry, err := containerservice.NewRegistry(ctx, "example", &containerservice.RegistryArgs{ // Name: pulumi.String("example"), // ResourceGroupName: example.Name, // Location: example.Location, // Sku: pulumi.String("Premium"), // }) // if err != nil { // return err // } // _, err = containerservice.NewRegistryAgentPool(ctx, "example", &containerservice.RegistryAgentPoolArgs{ // Name: pulumi.String("example"), // ResourceGroupName: example.Name, // Location: example.Location, // ContainerRegistryName: exampleRegistry.Name, // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## API Providers // // <!-- This section is generated, changes will be overwritten --> // This resource uses the following Azure API Providers: // // * `Microsoft.ContainerRegistry` - 2019-06-01-preview // // ## Import // // Azure Container Registry Agent Pool can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:containerservice/registryAgentPool:RegistryAgentPool example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resGroup1/providers/Microsoft.ContainerRegistry/registries/registry1/agentPools/agentpool1 // ``` type RegistryAgentPool struct { pulumi.CustomResourceState // Name of Azure Container Registry to create an Agent Pool for. Changing this forces a new Azure Container Registry Agent Pool to be created. ContainerRegistryName pulumi.StringOutput `pulumi:"containerRegistryName"` // VMSS instance count. Defaults to `1`. InstanceCount pulumi.IntPtrOutput `pulumi:"instanceCount"` // The Azure Region where the Azure Container Registry Agent Pool should exist. Changing this forces a new Azure Container Registry Agent Pool to be created. Location pulumi.StringOutput `pulumi:"location"` // The name which should be used for this Azure Container Registry Agent Pool. Changing this forces a new Azure Container Registry Agent Pool to be created. Name pulumi.StringOutput `pulumi:"name"` // The name of the Resource Group where the Azure Container Registry Agent Pool should exist. Changing this forces a new Azure Container Registry Agent Pool to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // A mapping of tags which should be assigned to the Azure Container Registry Agent Pool. Tags pulumi.StringMapOutput `pulumi:"tags"` // Sets the VM your agent pool will run on. Valid values are: `S1` (2 vCPUs, 3 GiB RAM), `S2` (4 vCPUs, 8 GiB RAM), `S3` (8 vCPUs, 16 GiB RAM) or `I6` (64 vCPUs, 216 GiB RAM, Isolated). Defaults to `S1`. Changing this forces a new Azure Container Registry Agent Pool to be created. Tier pulumi.StringPtrOutput `pulumi:"tier"` // The ID of the Virtual Network Subnet Resource where the agent machines will be running. Changing this forces a new Azure Container Registry Agent Pool to be created. VirtualNetworkSubnetId pulumi.StringPtrOutput `pulumi:"virtualNetworkSubnetId"` } // NewRegistryAgentPool registers a new resource with the given unique name, arguments, and options. func NewRegistryAgentPool(ctx *pulumi.Context, name string, args *RegistryAgentPoolArgs, opts ...pulumi.ResourceOption) (*RegistryAgentPool, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.ContainerRegistryName == nil { return nil, errors.New("invalid value for required argument 'ContainerRegistryName'") } if args.ResourceGroupName == nil { return nil, errors.New("invalid value for required argument 'ResourceGroupName'") } opts = internal.PkgResourceDefaultOpts(opts) var resource RegistryAgentPool err := ctx.RegisterResource("azure:containerservice/registryAgentPool:RegistryAgentPool", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetRegistryAgentPool gets an existing RegistryAgentPool 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 GetRegistryAgentPool(ctx *pulumi.Context, name string, id pulumi.IDInput, state *RegistryAgentPoolState, opts ...pulumi.ResourceOption) (*RegistryAgentPool, error) { var resource RegistryAgentPool err := ctx.ReadResource("azure:containerservice/registryAgentPool:RegistryAgentPool", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering RegistryAgentPool resources. type registryAgentPoolState struct { // Name of Azure Container Registry to create an Agent Pool for. Changing this forces a new Azure Container Registry Agent Pool to be created. ContainerRegistryName *string `pulumi:"containerRegistryName"` // VMSS instance count. Defaults to `1`. InstanceCount *int `pulumi:"instanceCount"` // The Azure Region where the Azure Container Registry Agent Pool should exist. Changing this forces a new Azure Container Registry Agent Pool to be created. Location *string `pulumi:"location"` // The name which should be used for this Azure Container Registry Agent Pool. Changing this forces a new Azure Container Registry Agent Pool to be created. Name *string `pulumi:"name"` // The name of the Resource Group where the Azure Container Registry Agent Pool should exist. Changing this forces a new Azure Container Registry Agent Pool to be created. ResourceGroupName *string `pulumi:"resourceGroupName"` // A mapping of tags which should be assigned to the Azure Container Registry Agent Pool. Tags map[string]string `pulumi:"tags"` // Sets the VM your agent pool will run on. Valid values are: `S1` (2 vCPUs, 3 GiB RAM), `S2` (4 vCPUs, 8 GiB RAM), `S3` (8 vCPUs, 16 GiB RAM) or `I6` (64 vCPUs, 216 GiB RAM, Isolated). Defaults to `S1`. Changing this forces a new Azure Container Registry Agent Pool to be created. Tier *string `pulumi:"tier"` // The ID of the Virtual Network Subnet Resource where the agent machines will be running. Changing this forces a new Azure Container Registry Agent Pool to be created. VirtualNetworkSubnetId *string `pulumi:"virtualNetworkSubnetId"` } type RegistryAgentPoolState struct { // Name of Azure Container Registry to create an Agent Pool for. Changing this forces a new Azure Container Registry Agent Pool to be created. ContainerRegistryName pulumi.StringPtrInput // VMSS instance count. Defaults to `1`. InstanceCount pulumi.IntPtrInput // The Azure Region where the Azure Container Registry Agent Pool should exist. Changing this forces a new Azure Container Registry Agent Pool to be created. Location pulumi.StringPtrInput // The name which should be used for this Azure Container Registry Agent Pool. Changing this forces a new Azure Container Registry Agent Pool to be created. Name pulumi.StringPtrInput // The name of the Resource Group where the Azure Container Registry Agent Pool should exist. Changing this forces a new Azure Container Registry Agent Pool to be created. ResourceGroupName pulumi.StringPtrInput // A mapping of tags which should be assigned to the Azure Container Registry Agent Pool. Tags pulumi.StringMapInput // Sets the VM your agent pool will run on. Valid values are: `S1` (2 vCPUs, 3 GiB RAM), `S2` (4 vCPUs, 8 GiB RAM), `S3` (8 vCPUs, 16 GiB RAM) or `I6` (64 vCPUs, 216 GiB RAM, Isolated). Defaults to `S1`. Changing this forces a new Azure Container Registry Agent Pool to be created. Tier pulumi.StringPtrInput // The ID of the Virtual Network Subnet Resource where the agent machines will be running. Changing this forces a new Azure Container Registry Agent Pool to be created. VirtualNetworkSubnetId pulumi.StringPtrInput } func (RegistryAgentPoolState) ElementType() reflect.Type { return reflect.TypeOf((*registryAgentPoolState)(nil)).Elem() } type registryAgentPoolArgs struct { // Name of Azure Container Registry to create an Agent Pool for. Changing this forces a new Azure Container Registry Agent Pool to be created. ContainerRegistryName string `pulumi:"containerRegistryName"` // VMSS instance count. Defaults to `1`. InstanceCount *int `pulumi:"instanceCount"` // The Azure Region where the Azure Container Registry Agent Pool should exist. Changing this forces a new Azure Container Registry Agent Pool to be created. Location *string `pulumi:"location"` // The name which should be used for this Azure Container Registry Agent Pool. Changing this forces a new Azure Container Registry Agent Pool to be created. Name *string `pulumi:"name"` // The name of the Resource Group where the Azure Container Registry Agent Pool should exist. Changing this forces a new Azure Container Registry Agent Pool to be created. ResourceGroupName string `pulumi:"resourceGroupName"` // A mapping of tags which should be assigned to the Azure Container Registry Agent Pool. Tags map[string]string `pulumi:"tags"` // Sets the VM your agent pool will run on. Valid values are: `S1` (2 vCPUs, 3 GiB RAM), `S2` (4 vCPUs, 8 GiB RAM), `S3` (8 vCPUs, 16 GiB RAM) or `I6` (64 vCPUs, 216 GiB RAM, Isolated). Defaults to `S1`. Changing this forces a new Azure Container Registry Agent Pool to be created. Tier *string `pulumi:"tier"` // The ID of the Virtual Network Subnet Resource where the agent machines will be running. Changing this forces a new Azure Container Registry Agent Pool to be created. VirtualNetworkSubnetId *string `pulumi:"virtualNetworkSubnetId"` } // The set of arguments for constructing a RegistryAgentPool resource. type RegistryAgentPoolArgs struct { // Name of Azure Container Registry to create an Agent Pool for. Changing this forces a new Azure Container Registry Agent Pool to be created. ContainerRegistryName pulumi.StringInput // VMSS instance count. Defaults to `1`. InstanceCount pulumi.IntPtrInput // The Azure Region where the Azure Container Registry Agent Pool should exist. Changing this forces a new Azure Container Registry Agent Pool to be created. Location pulumi.StringPtrInput // The name which should be used for this Azure Container Registry Agent Pool. Changing this forces a new Azure Container Registry Agent Pool to be created. Name pulumi.StringPtrInput // The name of the Resource Group where the Azure Container Registry Agent Pool should exist. Changing this forces a new Azure Container Registry Agent Pool to be created. ResourceGroupName pulumi.StringInput // A mapping of tags which should be assigned to the Azure Container Registry Agent Pool. Tags pulumi.StringMapInput // Sets the VM your agent pool will run on. Valid values are: `S1` (2 vCPUs, 3 GiB RAM), `S2` (4 vCPUs, 8 GiB RAM), `S3` (8 vCPUs, 16 GiB RAM) or `I6` (64 vCPUs, 216 GiB RAM, Isolated). Defaults to `S1`. Changing this forces a new Azure Container Registry Agent Pool to be created. Tier pulumi.StringPtrInput // The ID of the Virtual Network Subnet Resource where the agent machines will be running. Changing this forces a new Azure Container Registry Agent Pool to be created. VirtualNetworkSubnetId pulumi.StringPtrInput } func (RegistryAgentPoolArgs) ElementType() reflect.Type { return reflect.TypeOf((*registryAgentPoolArgs)(nil)).Elem() } type RegistryAgentPoolInput interface { pulumi.Input ToRegistryAgentPoolOutput() RegistryAgentPoolOutput ToRegistryAgentPoolOutputWithContext(ctx context.Context) RegistryAgentPoolOutput } func (*RegistryAgentPool) ElementType() reflect.Type { return reflect.TypeOf((**RegistryAgentPool)(nil)).Elem() } func (i *RegistryAgentPool) ToRegistryAgentPoolOutput() RegistryAgentPoolOutput { return i.ToRegistryAgentPoolOutputWithContext(context.Background()) } func (i *RegistryAgentPool) ToRegistryAgentPoolOutputWithContext(ctx context.Context) RegistryAgentPoolOutput { return pulumi.ToOutputWithContext(ctx, i).(RegistryAgentPoolOutput) } // RegistryAgentPoolArrayInput is an input type that accepts RegistryAgentPoolArray and RegistryAgentPoolArrayOutput values. // You can construct a concrete instance of `RegistryAgentPoolArrayInput` via: // // RegistryAgentPoolArray{ RegistryAgentPoolArgs{...} } type RegistryAgentPoolArrayInput interface { pulumi.Input ToRegistryAgentPoolArrayOutput() RegistryAgentPoolArrayOutput ToRegistryAgentPoolArrayOutputWithContext(context.Context) RegistryAgentPoolArrayOutput } type RegistryAgentPoolArray []RegistryAgentPoolInput func (RegistryAgentPoolArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*RegistryAgentPool)(nil)).Elem() } func (i RegistryAgentPoolArray) ToRegistryAgentPoolArrayOutput() RegistryAgentPoolArrayOutput { return i.ToRegistryAgentPoolArrayOutputWithContext(context.Background()) } func (i RegistryAgentPoolArray) ToRegistryAgentPoolArrayOutputWithContext(ctx context.Context) RegistryAgentPoolArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(RegistryAgentPoolArrayOutput) } // RegistryAgentPoolMapInput is an input type that accepts RegistryAgentPoolMap and RegistryAgentPoolMapOutput values. // You can construct a concrete instance of `RegistryAgentPoolMapInput` via: // // RegistryAgentPoolMap{ "key": RegistryAgentPoolArgs{...} } type RegistryAgentPoolMapInput interface { pulumi.Input ToRegistryAgentPoolMapOutput() RegistryAgentPoolMapOutput ToRegistryAgentPoolMapOutputWithContext(context.Context) RegistryAgentPoolMapOutput } type RegistryAgentPoolMap map[string]RegistryAgentPoolInput func (RegistryAgentPoolMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*RegistryAgentPool)(nil)).Elem() } func (i RegistryAgentPoolMap) ToRegistryAgentPoolMapOutput() RegistryAgentPoolMapOutput { return i.ToRegistryAgentPoolMapOutputWithContext(context.Background()) } func (i RegistryAgentPoolMap) ToRegistryAgentPoolMapOutputWithContext(ctx context.Context) RegistryAgentPoolMapOutput { return pulumi.ToOutputWithContext(ctx, i).(RegistryAgentPoolMapOutput) } type RegistryAgentPoolOutput struct{ *pulumi.OutputState } func (RegistryAgentPoolOutput) ElementType() reflect.Type { return reflect.TypeOf((**RegistryAgentPool)(nil)).Elem() } func (o RegistryAgentPoolOutput) ToRegistryAgentPoolOutput() RegistryAgentPoolOutput { return o } func (o RegistryAgentPoolOutput) ToRegistryAgentPoolOutputWithContext(ctx context.Context) RegistryAgentPoolOutput { return o } // Name of Azure Container Registry to create an Agent Pool for. Changing this forces a new Azure Container Registry Agent Pool to be created. func (o RegistryAgentPoolOutput) ContainerRegistryName() pulumi.StringOutput { return o.ApplyT(func(v *RegistryAgentPool) pulumi.StringOutput { return v.ContainerRegistryName }).(pulumi.StringOutput) } // VMSS instance count. Defaults to `1`. func (o RegistryAgentPoolOutput) InstanceCount() pulumi.IntPtrOutput { return o.ApplyT(func(v *RegistryAgentPool) pulumi.IntPtrOutput { return v.InstanceCount }).(pulumi.IntPtrOutput) } // The Azure Region where the Azure Container Registry Agent Pool should exist. Changing this forces a new Azure Container Registry Agent Pool to be created. func (o RegistryAgentPoolOutput) Location() pulumi.StringOutput { return o.ApplyT(func(v *RegistryAgentPool) pulumi.StringOutput { return v.Location }).(pulumi.StringOutput) } // The name which should be used for this Azure Container Registry Agent Pool. Changing this forces a new Azure Container Registry Agent Pool to be created. func (o RegistryAgentPoolOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *RegistryAgentPool) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // The name of the Resource Group where the Azure Container Registry Agent Pool should exist. Changing this forces a new Azure Container Registry Agent Pool to be created. func (o RegistryAgentPoolOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v *RegistryAgentPool) pulumi.StringOutput { return v.ResourceGroupName }).(pulumi.StringOutput) } // A mapping of tags which should be assigned to the Azure Container Registry Agent Pool. func (o RegistryAgentPoolOutput) Tags() pulumi.StringMapOutput { return o.ApplyT(func(v *RegistryAgentPool) pulumi.StringMapOutput { return v.Tags }).(pulumi.StringMapOutput) } // Sets the VM your agent pool will run on. Valid values are: `S1` (2 vCPUs, 3 GiB RAM), `S2` (4 vCPUs, 8 GiB RAM), `S3` (8 vCPUs, 16 GiB RAM) or `I6` (64 vCPUs, 216 GiB RAM, Isolated). Defaults to `S1`. Changing this forces a new Azure Container Registry Agent Pool to be created. func (o RegistryAgentPoolOutput) Tier() pulumi.StringPtrOutput { return o.ApplyT(func(v *RegistryAgentPool) pulumi.StringPtrOutput { return v.Tier }).(pulumi.StringPtrOutput) } // The ID of the Virtual Network Subnet Resource where the agent machines will be running. Changing this forces a new Azure Container Registry Agent Pool to be created. func (o RegistryAgentPoolOutput) VirtualNetworkSubnetId() pulumi.StringPtrOutput { return o.ApplyT(func(v *RegistryAgentPool) pulumi.StringPtrOutput { return v.VirtualNetworkSubnetId }).(pulumi.StringPtrOutput) } type RegistryAgentPoolArrayOutput struct{ *pulumi.OutputState } func (RegistryAgentPoolArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*RegistryAgentPool)(nil)).Elem() } func (o RegistryAgentPoolArrayOutput) ToRegistryAgentPoolArrayOutput() RegistryAgentPoolArrayOutput { return o } func (o RegistryAgentPoolArrayOutput) ToRegistryAgentPoolArrayOutputWithContext(ctx context.Context) RegistryAgentPoolArrayOutput { return o } func (o RegistryAgentPoolArrayOutput) Index(i pulumi.IntInput) RegistryAgentPoolOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *RegistryAgentPool { return vs[0].([]*RegistryAgentPool)[vs[1].(int)] }).(RegistryAgentPoolOutput) } type RegistryAgentPoolMapOutput struct{ *pulumi.OutputState } func (RegistryAgentPoolMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*RegistryAgentPool)(nil)).Elem() } func (o RegistryAgentPoolMapOutput) ToRegistryAgentPoolMapOutput() RegistryAgentPoolMapOutput { return o } func (o RegistryAgentPoolMapOutput) ToRegistryAgentPoolMapOutputWithContext(ctx context.Context) RegistryAgentPoolMapOutput { return o } func (o RegistryAgentPoolMapOutput) MapIndex(k pulumi.StringInput) RegistryAgentPoolOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *RegistryAgentPool { return vs[0].(map[string]*RegistryAgentPool)[vs[1].(string)] }).(RegistryAgentPoolOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*RegistryAgentPoolInput)(nil)).Elem(), &RegistryAgentPool{}) pulumi.RegisterInputType(reflect.TypeOf((*RegistryAgentPoolArrayInput)(nil)).Elem(), RegistryAgentPoolArray{}) pulumi.RegisterInputType(reflect.TypeOf((*RegistryAgentPoolMapInput)(nil)).Elem(), RegistryAgentPoolMap{}) pulumi.RegisterOutputType(RegistryAgentPoolOutput{}) pulumi.RegisterOutputType(RegistryAgentPoolArrayOutput{}) pulumi.RegisterOutputType(RegistryAgentPoolMapOutput{}) }
go
Apache-2.0
b66e1472775a89cca43f5050fef806854a7c3fa3
2026-01-07T09:44:27.619514Z
false
pulumi/pulumi-azure
https://github.com/pulumi/pulumi-azure/blob/b66e1472775a89cca43f5050fef806854a7c3fa3/sdk/go/azure/containerservice/getRegistryScopeMap.go
sdk/go/azure/containerservice/getRegistryScopeMap.go
// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package containerservice import ( "context" "reflect" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Use this data source to access information about an existing Container Registry scope map. // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/containerservice" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { // example, err := containerservice.LookupRegistryScopeMap(ctx, &containerservice.LookupRegistryScopeMapArgs{ // Name: "example-scope-map", // ResourceGroupName: "example-resource-group", // ContainerRegistryName: "example-registry", // }, nil) // if err != nil { // return err // } // ctx.Export("actions", example.Actions) // return nil // }) // } // // ``` // // ## API Providers // // <!-- This section is generated, changes will be overwritten --> // This data source uses the following Azure API Providers: // // * `Microsoft.ContainerRegistry` - 2025-04-01 func LookupRegistryScopeMap(ctx *pulumi.Context, args *LookupRegistryScopeMapArgs, opts ...pulumi.InvokeOption) (*LookupRegistryScopeMapResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupRegistryScopeMapResult err := ctx.Invoke("azure:containerservice/getRegistryScopeMap:getRegistryScopeMap", args, &rv, opts...) if err != nil { return nil, err } return &rv, nil } // A collection of arguments for invoking getRegistryScopeMap. type LookupRegistryScopeMapArgs struct { // The Name of the Container Registry where the token exists. ContainerRegistryName string `pulumi:"containerRegistryName"` // The name of the Container Registry token. Name string `pulumi:"name"` // The Name of the Resource Group where this Container Registry token exists. ResourceGroupName string `pulumi:"resourceGroupName"` } // A collection of values returned by getRegistryScopeMap. type LookupRegistryScopeMapResult struct { // The actions for the Scope Map. Actions []string `pulumi:"actions"` ContainerRegistryName string `pulumi:"containerRegistryName"` Description string `pulumi:"description"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` Name string `pulumi:"name"` ResourceGroupName string `pulumi:"resourceGroupName"` } func LookupRegistryScopeMapOutput(ctx *pulumi.Context, args LookupRegistryScopeMapOutputArgs, opts ...pulumi.InvokeOption) LookupRegistryScopeMapResultOutput { return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupRegistryScopeMapResultOutput, error) { args := v.(LookupRegistryScopeMapArgs) options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} return ctx.InvokeOutput("azure:containerservice/getRegistryScopeMap:getRegistryScopeMap", args, LookupRegistryScopeMapResultOutput{}, options).(LookupRegistryScopeMapResultOutput), nil }).(LookupRegistryScopeMapResultOutput) } // A collection of arguments for invoking getRegistryScopeMap. type LookupRegistryScopeMapOutputArgs struct { // The Name of the Container Registry where the token exists. ContainerRegistryName pulumi.StringInput `pulumi:"containerRegistryName"` // The name of the Container Registry token. Name pulumi.StringInput `pulumi:"name"` // The Name of the Resource Group where this Container Registry token exists. ResourceGroupName pulumi.StringInput `pulumi:"resourceGroupName"` } func (LookupRegistryScopeMapOutputArgs) ElementType() reflect.Type { return reflect.TypeOf((*LookupRegistryScopeMapArgs)(nil)).Elem() } // A collection of values returned by getRegistryScopeMap. type LookupRegistryScopeMapResultOutput struct{ *pulumi.OutputState } func (LookupRegistryScopeMapResultOutput) ElementType() reflect.Type { return reflect.TypeOf((*LookupRegistryScopeMapResult)(nil)).Elem() } func (o LookupRegistryScopeMapResultOutput) ToLookupRegistryScopeMapResultOutput() LookupRegistryScopeMapResultOutput { return o } func (o LookupRegistryScopeMapResultOutput) ToLookupRegistryScopeMapResultOutputWithContext(ctx context.Context) LookupRegistryScopeMapResultOutput { return o } // The actions for the Scope Map. func (o LookupRegistryScopeMapResultOutput) Actions() pulumi.StringArrayOutput { return o.ApplyT(func(v LookupRegistryScopeMapResult) []string { return v.Actions }).(pulumi.StringArrayOutput) } func (o LookupRegistryScopeMapResultOutput) ContainerRegistryName() pulumi.StringOutput { return o.ApplyT(func(v LookupRegistryScopeMapResult) string { return v.ContainerRegistryName }).(pulumi.StringOutput) } func (o LookupRegistryScopeMapResultOutput) Description() pulumi.StringOutput { return o.ApplyT(func(v LookupRegistryScopeMapResult) string { return v.Description }).(pulumi.StringOutput) } // The provider-assigned unique ID for this managed resource. func (o LookupRegistryScopeMapResultOutput) Id() pulumi.StringOutput { return o.ApplyT(func(v LookupRegistryScopeMapResult) string { return v.Id }).(pulumi.StringOutput) } func (o LookupRegistryScopeMapResultOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v LookupRegistryScopeMapResult) string { return v.Name }).(pulumi.StringOutput) } func (o LookupRegistryScopeMapResultOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v LookupRegistryScopeMapResult) string { return v.ResourceGroupName }).(pulumi.StringOutput) } func init() { pulumi.RegisterOutputType(LookupRegistryScopeMapResultOutput{}) }
go
Apache-2.0
b66e1472775a89cca43f5050fef806854a7c3fa3
2026-01-07T09:44:27.619514Z
false
pulumi/pulumi-azure
https://github.com/pulumi/pulumi-azure/blob/b66e1472775a89cca43f5050fef806854a7c3fa3/sdk/go/azure/containerservice/registryTask.go
sdk/go/azure/containerservice/registryTask.go
// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package containerservice import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a Container Registry Task. // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/containerservice" // "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-rg"), // Location: pulumi.String("West Europe"), // }) // if err != nil { // return err // } // exampleRegistry, err := containerservice.NewRegistry(ctx, "example", &containerservice.RegistryArgs{ // Name: pulumi.String("example"), // ResourceGroupName: example.Name, // Location: example.Location, // Sku: pulumi.String("Basic"), // }) // if err != nil { // return err // } // _, err = containerservice.NewRegistryTask(ctx, "example", &containerservice.RegistryTaskArgs{ // Name: pulumi.String("example-task"), // ContainerRegistryId: exampleRegistry.ID(), // Platform: &containerservice.RegistryTaskPlatformArgs{ // Os: pulumi.String("Linux"), // }, // DockerStep: &containerservice.RegistryTaskDockerStepArgs{ // DockerfilePath: pulumi.String("Dockerfile"), // ContextPath: pulumi.String("https://github.com/<username>/<repository>#<branch>:<folder>"), // ContextAccessToken: pulumi.String("<github personal access token>"), // ImageNames: pulumi.StringArray{ // pulumi.String("helloworld:{{.Run.ID}}"), // }, // }, // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## API Providers // // <!-- This section is generated, changes will be overwritten --> // This resource uses the following Azure API Providers: // // * `Microsoft.ContainerRegistry` - 2025-04-01, 2019-06-01-preview // // ## Import // // Container Registry Tasks can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:containerservice/registryTask:RegistryTask example /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/group1/providers/Microsoft.ContainerRegistry/registries/registry1/tasks/task1 // ``` type RegistryTask struct { pulumi.CustomResourceState // The name of the dedicated Container Registry Agent Pool for this Container Registry Task. AgentPoolName pulumi.StringPtrOutput `pulumi:"agentPoolName"` // A `agentSetting` block as defined below. // // > **Note:** Only one of `agentPoolName` and `agentSetting` can be specified. AgentSetting RegistryTaskAgentSettingPtrOutput `pulumi:"agentSetting"` // A `baseImageTrigger` block as defined below. BaseImageTrigger RegistryTaskBaseImageTriggerPtrOutput `pulumi:"baseImageTrigger"` // The ID of the Container Registry that this Container Registry Task resides in. Changing this forces a new Container Registry Task to be created. ContainerRegistryId pulumi.StringOutput `pulumi:"containerRegistryId"` // A `dockerStep` block as defined below. DockerStep RegistryTaskDockerStepPtrOutput `pulumi:"dockerStep"` // Should this Container Registry Task be enabled? Defaults to `true`. Enabled pulumi.BoolPtrOutput `pulumi:"enabled"` // A `encodedStep` block as defined below. EncodedStep RegistryTaskEncodedStepPtrOutput `pulumi:"encodedStep"` // A `fileStep` block as defined below. // // > **Note:** For non-system task (when `isSystemTask` is set to `false`), one and only one of the `dockerStep`, `encodedStep` and `fileStep` should be specified. FileStep RegistryTaskFileStepPtrOutput `pulumi:"fileStep"` // An `identity` block as defined below. Identity RegistryTaskIdentityPtrOutput `pulumi:"identity"` // Whether this Container Registry Task is a system task. Changing this forces a new Container Registry Task to be created. Defaults to `false`. IsSystemTask pulumi.BoolPtrOutput `pulumi:"isSystemTask"` LogTemplate pulumi.StringPtrOutput `pulumi:"logTemplate"` // The name which should be used for this Container Registry Task. Changing this forces a new Container Registry Task to be created. Name pulumi.StringOutput `pulumi:"name"` // A `platform` block as defined below. // // > **Note:** The `platform` is required for non-system task (when `isSystemTask` is set to `false`). Platform RegistryTaskPlatformPtrOutput `pulumi:"platform"` RegistryCredential RegistryTaskRegistryCredentialPtrOutput `pulumi:"registryCredential"` // One or more `sourceTrigger` blocks as defined below. SourceTriggers RegistryTaskSourceTriggerArrayOutput `pulumi:"sourceTriggers"` Tags pulumi.StringMapOutput `pulumi:"tags"` TimeoutInSeconds pulumi.IntPtrOutput `pulumi:"timeoutInSeconds"` // One or more `timerTrigger` blocks as defined below. TimerTriggers RegistryTaskTimerTriggerArrayOutput `pulumi:"timerTriggers"` } // NewRegistryTask registers a new resource with the given unique name, arguments, and options. func NewRegistryTask(ctx *pulumi.Context, name string, args *RegistryTaskArgs, opts ...pulumi.ResourceOption) (*RegistryTask, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.ContainerRegistryId == nil { return nil, errors.New("invalid value for required argument 'ContainerRegistryId'") } opts = internal.PkgResourceDefaultOpts(opts) var resource RegistryTask err := ctx.RegisterResource("azure:containerservice/registryTask:RegistryTask", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetRegistryTask gets an existing RegistryTask 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 GetRegistryTask(ctx *pulumi.Context, name string, id pulumi.IDInput, state *RegistryTaskState, opts ...pulumi.ResourceOption) (*RegistryTask, error) { var resource RegistryTask err := ctx.ReadResource("azure:containerservice/registryTask:RegistryTask", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering RegistryTask resources. type registryTaskState struct { // The name of the dedicated Container Registry Agent Pool for this Container Registry Task. AgentPoolName *string `pulumi:"agentPoolName"` // A `agentSetting` block as defined below. // // > **Note:** Only one of `agentPoolName` and `agentSetting` can be specified. AgentSetting *RegistryTaskAgentSetting `pulumi:"agentSetting"` // A `baseImageTrigger` block as defined below. BaseImageTrigger *RegistryTaskBaseImageTrigger `pulumi:"baseImageTrigger"` // The ID of the Container Registry that this Container Registry Task resides in. Changing this forces a new Container Registry Task to be created. ContainerRegistryId *string `pulumi:"containerRegistryId"` // A `dockerStep` block as defined below. DockerStep *RegistryTaskDockerStep `pulumi:"dockerStep"` // Should this Container Registry Task be enabled? Defaults to `true`. Enabled *bool `pulumi:"enabled"` // A `encodedStep` block as defined below. EncodedStep *RegistryTaskEncodedStep `pulumi:"encodedStep"` // A `fileStep` block as defined below. // // > **Note:** For non-system task (when `isSystemTask` is set to `false`), one and only one of the `dockerStep`, `encodedStep` and `fileStep` should be specified. FileStep *RegistryTaskFileStep `pulumi:"fileStep"` // An `identity` block as defined below. Identity *RegistryTaskIdentity `pulumi:"identity"` // Whether this Container Registry Task is a system task. Changing this forces a new Container Registry Task to be created. Defaults to `false`. IsSystemTask *bool `pulumi:"isSystemTask"` LogTemplate *string `pulumi:"logTemplate"` // The name which should be used for this Container Registry Task. Changing this forces a new Container Registry Task to be created. Name *string `pulumi:"name"` // A `platform` block as defined below. // // > **Note:** The `platform` is required for non-system task (when `isSystemTask` is set to `false`). Platform *RegistryTaskPlatform `pulumi:"platform"` RegistryCredential *RegistryTaskRegistryCredential `pulumi:"registryCredential"` // One or more `sourceTrigger` blocks as defined below. SourceTriggers []RegistryTaskSourceTrigger `pulumi:"sourceTriggers"` Tags map[string]string `pulumi:"tags"` TimeoutInSeconds *int `pulumi:"timeoutInSeconds"` // One or more `timerTrigger` blocks as defined below. TimerTriggers []RegistryTaskTimerTrigger `pulumi:"timerTriggers"` } type RegistryTaskState struct { // The name of the dedicated Container Registry Agent Pool for this Container Registry Task. AgentPoolName pulumi.StringPtrInput // A `agentSetting` block as defined below. // // > **Note:** Only one of `agentPoolName` and `agentSetting` can be specified. AgentSetting RegistryTaskAgentSettingPtrInput // A `baseImageTrigger` block as defined below. BaseImageTrigger RegistryTaskBaseImageTriggerPtrInput // The ID of the Container Registry that this Container Registry Task resides in. Changing this forces a new Container Registry Task to be created. ContainerRegistryId pulumi.StringPtrInput // A `dockerStep` block as defined below. DockerStep RegistryTaskDockerStepPtrInput // Should this Container Registry Task be enabled? Defaults to `true`. Enabled pulumi.BoolPtrInput // A `encodedStep` block as defined below. EncodedStep RegistryTaskEncodedStepPtrInput // A `fileStep` block as defined below. // // > **Note:** For non-system task (when `isSystemTask` is set to `false`), one and only one of the `dockerStep`, `encodedStep` and `fileStep` should be specified. FileStep RegistryTaskFileStepPtrInput // An `identity` block as defined below. Identity RegistryTaskIdentityPtrInput // Whether this Container Registry Task is a system task. Changing this forces a new Container Registry Task to be created. Defaults to `false`. IsSystemTask pulumi.BoolPtrInput LogTemplate pulumi.StringPtrInput // The name which should be used for this Container Registry Task. Changing this forces a new Container Registry Task to be created. Name pulumi.StringPtrInput // A `platform` block as defined below. // // > **Note:** The `platform` is required for non-system task (when `isSystemTask` is set to `false`). Platform RegistryTaskPlatformPtrInput RegistryCredential RegistryTaskRegistryCredentialPtrInput // One or more `sourceTrigger` blocks as defined below. SourceTriggers RegistryTaskSourceTriggerArrayInput Tags pulumi.StringMapInput TimeoutInSeconds pulumi.IntPtrInput // One or more `timerTrigger` blocks as defined below. TimerTriggers RegistryTaskTimerTriggerArrayInput } func (RegistryTaskState) ElementType() reflect.Type { return reflect.TypeOf((*registryTaskState)(nil)).Elem() } type registryTaskArgs struct { // The name of the dedicated Container Registry Agent Pool for this Container Registry Task. AgentPoolName *string `pulumi:"agentPoolName"` // A `agentSetting` block as defined below. // // > **Note:** Only one of `agentPoolName` and `agentSetting` can be specified. AgentSetting *RegistryTaskAgentSetting `pulumi:"agentSetting"` // A `baseImageTrigger` block as defined below. BaseImageTrigger *RegistryTaskBaseImageTrigger `pulumi:"baseImageTrigger"` // The ID of the Container Registry that this Container Registry Task resides in. Changing this forces a new Container Registry Task to be created. ContainerRegistryId string `pulumi:"containerRegistryId"` // A `dockerStep` block as defined below. DockerStep *RegistryTaskDockerStep `pulumi:"dockerStep"` // Should this Container Registry Task be enabled? Defaults to `true`. Enabled *bool `pulumi:"enabled"` // A `encodedStep` block as defined below. EncodedStep *RegistryTaskEncodedStep `pulumi:"encodedStep"` // A `fileStep` block as defined below. // // > **Note:** For non-system task (when `isSystemTask` is set to `false`), one and only one of the `dockerStep`, `encodedStep` and `fileStep` should be specified. FileStep *RegistryTaskFileStep `pulumi:"fileStep"` // An `identity` block as defined below. Identity *RegistryTaskIdentity `pulumi:"identity"` // Whether this Container Registry Task is a system task. Changing this forces a new Container Registry Task to be created. Defaults to `false`. IsSystemTask *bool `pulumi:"isSystemTask"` LogTemplate *string `pulumi:"logTemplate"` // The name which should be used for this Container Registry Task. Changing this forces a new Container Registry Task to be created. Name *string `pulumi:"name"` // A `platform` block as defined below. // // > **Note:** The `platform` is required for non-system task (when `isSystemTask` is set to `false`). Platform *RegistryTaskPlatform `pulumi:"platform"` RegistryCredential *RegistryTaskRegistryCredential `pulumi:"registryCredential"` // One or more `sourceTrigger` blocks as defined below. SourceTriggers []RegistryTaskSourceTrigger `pulumi:"sourceTriggers"` Tags map[string]string `pulumi:"tags"` TimeoutInSeconds *int `pulumi:"timeoutInSeconds"` // One or more `timerTrigger` blocks as defined below. TimerTriggers []RegistryTaskTimerTrigger `pulumi:"timerTriggers"` } // The set of arguments for constructing a RegistryTask resource. type RegistryTaskArgs struct { // The name of the dedicated Container Registry Agent Pool for this Container Registry Task. AgentPoolName pulumi.StringPtrInput // A `agentSetting` block as defined below. // // > **Note:** Only one of `agentPoolName` and `agentSetting` can be specified. AgentSetting RegistryTaskAgentSettingPtrInput // A `baseImageTrigger` block as defined below. BaseImageTrigger RegistryTaskBaseImageTriggerPtrInput // The ID of the Container Registry that this Container Registry Task resides in. Changing this forces a new Container Registry Task to be created. ContainerRegistryId pulumi.StringInput // A `dockerStep` block as defined below. DockerStep RegistryTaskDockerStepPtrInput // Should this Container Registry Task be enabled? Defaults to `true`. Enabled pulumi.BoolPtrInput // A `encodedStep` block as defined below. EncodedStep RegistryTaskEncodedStepPtrInput // A `fileStep` block as defined below. // // > **Note:** For non-system task (when `isSystemTask` is set to `false`), one and only one of the `dockerStep`, `encodedStep` and `fileStep` should be specified. FileStep RegistryTaskFileStepPtrInput // An `identity` block as defined below. Identity RegistryTaskIdentityPtrInput // Whether this Container Registry Task is a system task. Changing this forces a new Container Registry Task to be created. Defaults to `false`. IsSystemTask pulumi.BoolPtrInput LogTemplate pulumi.StringPtrInput // The name which should be used for this Container Registry Task. Changing this forces a new Container Registry Task to be created. Name pulumi.StringPtrInput // A `platform` block as defined below. // // > **Note:** The `platform` is required for non-system task (when `isSystemTask` is set to `false`). Platform RegistryTaskPlatformPtrInput RegistryCredential RegistryTaskRegistryCredentialPtrInput // One or more `sourceTrigger` blocks as defined below. SourceTriggers RegistryTaskSourceTriggerArrayInput Tags pulumi.StringMapInput TimeoutInSeconds pulumi.IntPtrInput // One or more `timerTrigger` blocks as defined below. TimerTriggers RegistryTaskTimerTriggerArrayInput } func (RegistryTaskArgs) ElementType() reflect.Type { return reflect.TypeOf((*registryTaskArgs)(nil)).Elem() } type RegistryTaskInput interface { pulumi.Input ToRegistryTaskOutput() RegistryTaskOutput ToRegistryTaskOutputWithContext(ctx context.Context) RegistryTaskOutput } func (*RegistryTask) ElementType() reflect.Type { return reflect.TypeOf((**RegistryTask)(nil)).Elem() } func (i *RegistryTask) ToRegistryTaskOutput() RegistryTaskOutput { return i.ToRegistryTaskOutputWithContext(context.Background()) } func (i *RegistryTask) ToRegistryTaskOutputWithContext(ctx context.Context) RegistryTaskOutput { return pulumi.ToOutputWithContext(ctx, i).(RegistryTaskOutput) } // RegistryTaskArrayInput is an input type that accepts RegistryTaskArray and RegistryTaskArrayOutput values. // You can construct a concrete instance of `RegistryTaskArrayInput` via: // // RegistryTaskArray{ RegistryTaskArgs{...} } type RegistryTaskArrayInput interface { pulumi.Input ToRegistryTaskArrayOutput() RegistryTaskArrayOutput ToRegistryTaskArrayOutputWithContext(context.Context) RegistryTaskArrayOutput } type RegistryTaskArray []RegistryTaskInput func (RegistryTaskArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*RegistryTask)(nil)).Elem() } func (i RegistryTaskArray) ToRegistryTaskArrayOutput() RegistryTaskArrayOutput { return i.ToRegistryTaskArrayOutputWithContext(context.Background()) } func (i RegistryTaskArray) ToRegistryTaskArrayOutputWithContext(ctx context.Context) RegistryTaskArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(RegistryTaskArrayOutput) } // RegistryTaskMapInput is an input type that accepts RegistryTaskMap and RegistryTaskMapOutput values. // You can construct a concrete instance of `RegistryTaskMapInput` via: // // RegistryTaskMap{ "key": RegistryTaskArgs{...} } type RegistryTaskMapInput interface { pulumi.Input ToRegistryTaskMapOutput() RegistryTaskMapOutput ToRegistryTaskMapOutputWithContext(context.Context) RegistryTaskMapOutput } type RegistryTaskMap map[string]RegistryTaskInput func (RegistryTaskMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*RegistryTask)(nil)).Elem() } func (i RegistryTaskMap) ToRegistryTaskMapOutput() RegistryTaskMapOutput { return i.ToRegistryTaskMapOutputWithContext(context.Background()) } func (i RegistryTaskMap) ToRegistryTaskMapOutputWithContext(ctx context.Context) RegistryTaskMapOutput { return pulumi.ToOutputWithContext(ctx, i).(RegistryTaskMapOutput) } type RegistryTaskOutput struct{ *pulumi.OutputState } func (RegistryTaskOutput) ElementType() reflect.Type { return reflect.TypeOf((**RegistryTask)(nil)).Elem() } func (o RegistryTaskOutput) ToRegistryTaskOutput() RegistryTaskOutput { return o } func (o RegistryTaskOutput) ToRegistryTaskOutputWithContext(ctx context.Context) RegistryTaskOutput { return o } // The name of the dedicated Container Registry Agent Pool for this Container Registry Task. func (o RegistryTaskOutput) AgentPoolName() pulumi.StringPtrOutput { return o.ApplyT(func(v *RegistryTask) pulumi.StringPtrOutput { return v.AgentPoolName }).(pulumi.StringPtrOutput) } // A `agentSetting` block as defined below. // // > **Note:** Only one of `agentPoolName` and `agentSetting` can be specified. func (o RegistryTaskOutput) AgentSetting() RegistryTaskAgentSettingPtrOutput { return o.ApplyT(func(v *RegistryTask) RegistryTaskAgentSettingPtrOutput { return v.AgentSetting }).(RegistryTaskAgentSettingPtrOutput) } // A `baseImageTrigger` block as defined below. func (o RegistryTaskOutput) BaseImageTrigger() RegistryTaskBaseImageTriggerPtrOutput { return o.ApplyT(func(v *RegistryTask) RegistryTaskBaseImageTriggerPtrOutput { return v.BaseImageTrigger }).(RegistryTaskBaseImageTriggerPtrOutput) } // The ID of the Container Registry that this Container Registry Task resides in. Changing this forces a new Container Registry Task to be created. func (o RegistryTaskOutput) ContainerRegistryId() pulumi.StringOutput { return o.ApplyT(func(v *RegistryTask) pulumi.StringOutput { return v.ContainerRegistryId }).(pulumi.StringOutput) } // A `dockerStep` block as defined below. func (o RegistryTaskOutput) DockerStep() RegistryTaskDockerStepPtrOutput { return o.ApplyT(func(v *RegistryTask) RegistryTaskDockerStepPtrOutput { return v.DockerStep }).(RegistryTaskDockerStepPtrOutput) } // Should this Container Registry Task be enabled? Defaults to `true`. func (o RegistryTaskOutput) Enabled() pulumi.BoolPtrOutput { return o.ApplyT(func(v *RegistryTask) pulumi.BoolPtrOutput { return v.Enabled }).(pulumi.BoolPtrOutput) } // A `encodedStep` block as defined below. func (o RegistryTaskOutput) EncodedStep() RegistryTaskEncodedStepPtrOutput { return o.ApplyT(func(v *RegistryTask) RegistryTaskEncodedStepPtrOutput { return v.EncodedStep }).(RegistryTaskEncodedStepPtrOutput) } // A `fileStep` block as defined below. // // > **Note:** For non-system task (when `isSystemTask` is set to `false`), one and only one of the `dockerStep`, `encodedStep` and `fileStep` should be specified. func (o RegistryTaskOutput) FileStep() RegistryTaskFileStepPtrOutput { return o.ApplyT(func(v *RegistryTask) RegistryTaskFileStepPtrOutput { return v.FileStep }).(RegistryTaskFileStepPtrOutput) } // An `identity` block as defined below. func (o RegistryTaskOutput) Identity() RegistryTaskIdentityPtrOutput { return o.ApplyT(func(v *RegistryTask) RegistryTaskIdentityPtrOutput { return v.Identity }).(RegistryTaskIdentityPtrOutput) } // Whether this Container Registry Task is a system task. Changing this forces a new Container Registry Task to be created. Defaults to `false`. func (o RegistryTaskOutput) IsSystemTask() pulumi.BoolPtrOutput { return o.ApplyT(func(v *RegistryTask) pulumi.BoolPtrOutput { return v.IsSystemTask }).(pulumi.BoolPtrOutput) } func (o RegistryTaskOutput) LogTemplate() pulumi.StringPtrOutput { return o.ApplyT(func(v *RegistryTask) pulumi.StringPtrOutput { return v.LogTemplate }).(pulumi.StringPtrOutput) } // The name which should be used for this Container Registry Task. Changing this forces a new Container Registry Task to be created. func (o RegistryTaskOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *RegistryTask) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // A `platform` block as defined below. // // > **Note:** The `platform` is required for non-system task (when `isSystemTask` is set to `false`). func (o RegistryTaskOutput) Platform() RegistryTaskPlatformPtrOutput { return o.ApplyT(func(v *RegistryTask) RegistryTaskPlatformPtrOutput { return v.Platform }).(RegistryTaskPlatformPtrOutput) } func (o RegistryTaskOutput) RegistryCredential() RegistryTaskRegistryCredentialPtrOutput { return o.ApplyT(func(v *RegistryTask) RegistryTaskRegistryCredentialPtrOutput { return v.RegistryCredential }).(RegistryTaskRegistryCredentialPtrOutput) } // One or more `sourceTrigger` blocks as defined below. func (o RegistryTaskOutput) SourceTriggers() RegistryTaskSourceTriggerArrayOutput { return o.ApplyT(func(v *RegistryTask) RegistryTaskSourceTriggerArrayOutput { return v.SourceTriggers }).(RegistryTaskSourceTriggerArrayOutput) } func (o RegistryTaskOutput) Tags() pulumi.StringMapOutput { return o.ApplyT(func(v *RegistryTask) pulumi.StringMapOutput { return v.Tags }).(pulumi.StringMapOutput) } func (o RegistryTaskOutput) TimeoutInSeconds() pulumi.IntPtrOutput { return o.ApplyT(func(v *RegistryTask) pulumi.IntPtrOutput { return v.TimeoutInSeconds }).(pulumi.IntPtrOutput) } // One or more `timerTrigger` blocks as defined below. func (o RegistryTaskOutput) TimerTriggers() RegistryTaskTimerTriggerArrayOutput { return o.ApplyT(func(v *RegistryTask) RegistryTaskTimerTriggerArrayOutput { return v.TimerTriggers }).(RegistryTaskTimerTriggerArrayOutput) } type RegistryTaskArrayOutput struct{ *pulumi.OutputState } func (RegistryTaskArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*RegistryTask)(nil)).Elem() } func (o RegistryTaskArrayOutput) ToRegistryTaskArrayOutput() RegistryTaskArrayOutput { return o } func (o RegistryTaskArrayOutput) ToRegistryTaskArrayOutputWithContext(ctx context.Context) RegistryTaskArrayOutput { return o } func (o RegistryTaskArrayOutput) Index(i pulumi.IntInput) RegistryTaskOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *RegistryTask { return vs[0].([]*RegistryTask)[vs[1].(int)] }).(RegistryTaskOutput) } type RegistryTaskMapOutput struct{ *pulumi.OutputState } func (RegistryTaskMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*RegistryTask)(nil)).Elem() } func (o RegistryTaskMapOutput) ToRegistryTaskMapOutput() RegistryTaskMapOutput { return o } func (o RegistryTaskMapOutput) ToRegistryTaskMapOutputWithContext(ctx context.Context) RegistryTaskMapOutput { return o } func (o RegistryTaskMapOutput) MapIndex(k pulumi.StringInput) RegistryTaskOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *RegistryTask { return vs[0].(map[string]*RegistryTask)[vs[1].(string)] }).(RegistryTaskOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*RegistryTaskInput)(nil)).Elem(), &RegistryTask{}) pulumi.RegisterInputType(reflect.TypeOf((*RegistryTaskArrayInput)(nil)).Elem(), RegistryTaskArray{}) pulumi.RegisterInputType(reflect.TypeOf((*RegistryTaskMapInput)(nil)).Elem(), RegistryTaskMap{}) pulumi.RegisterOutputType(RegistryTaskOutput{}) pulumi.RegisterOutputType(RegistryTaskArrayOutput{}) pulumi.RegisterOutputType(RegistryTaskMapOutput{}) }
go
Apache-2.0
b66e1472775a89cca43f5050fef806854a7c3fa3
2026-01-07T09:44:27.619514Z
false
pulumi/pulumi-azure
https://github.com/pulumi/pulumi-azure/blob/b66e1472775a89cca43f5050fef806854a7c3fa3/sdk/go/azure/containerservice/getKubernetesNodePoolSnapshot.go
sdk/go/azure/containerservice/getKubernetesNodePoolSnapshot.go
// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package containerservice import ( "context" "reflect" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Use this data source to access information about an existing Kubernetes Node Pool Snapshot. // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/containerservice" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { // _, err := containerservice.GetKubernetesNodePoolSnapshot(ctx, &containerservice.GetKubernetesNodePoolSnapshotArgs{ // Name: "example", // ResourceGroupName: "example-resources", // }, nil) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## API Providers // // <!-- This section is generated, changes will be overwritten --> // This data source uses the following Azure API Providers: // // * `Microsoft.ContainerService` - 2025-07-01 func GetKubernetesNodePoolSnapshot(ctx *pulumi.Context, args *GetKubernetesNodePoolSnapshotArgs, opts ...pulumi.InvokeOption) (*GetKubernetesNodePoolSnapshotResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv GetKubernetesNodePoolSnapshotResult err := ctx.Invoke("azure:containerservice/getKubernetesNodePoolSnapshot:getKubernetesNodePoolSnapshot", args, &rv, opts...) if err != nil { return nil, err } return &rv, nil } // A collection of arguments for invoking getKubernetesNodePoolSnapshot. type GetKubernetesNodePoolSnapshotArgs struct { // The name of the Kubernetes Node Pool Snapshot. Name string `pulumi:"name"` // The name of the Resource Group in which the Kubernetes Node Pool Snapshot exists. ResourceGroupName string `pulumi:"resourceGroupName"` } // A collection of values returned by getKubernetesNodePoolSnapshot. type GetKubernetesNodePoolSnapshotResult struct { // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` Name string `pulumi:"name"` ResourceGroupName string `pulumi:"resourceGroupName"` // The ID of the source Node Pool. SourceNodePoolId string `pulumi:"sourceNodePoolId"` Tags map[string]string `pulumi:"tags"` } func GetKubernetesNodePoolSnapshotOutput(ctx *pulumi.Context, args GetKubernetesNodePoolSnapshotOutputArgs, opts ...pulumi.InvokeOption) GetKubernetesNodePoolSnapshotResultOutput { return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetKubernetesNodePoolSnapshotResultOutput, error) { args := v.(GetKubernetesNodePoolSnapshotArgs) options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} return ctx.InvokeOutput("azure:containerservice/getKubernetesNodePoolSnapshot:getKubernetesNodePoolSnapshot", args, GetKubernetesNodePoolSnapshotResultOutput{}, options).(GetKubernetesNodePoolSnapshotResultOutput), nil }).(GetKubernetesNodePoolSnapshotResultOutput) } // A collection of arguments for invoking getKubernetesNodePoolSnapshot. type GetKubernetesNodePoolSnapshotOutputArgs struct { // The name of the Kubernetes Node Pool Snapshot. Name pulumi.StringInput `pulumi:"name"` // The name of the Resource Group in which the Kubernetes Node Pool Snapshot exists. ResourceGroupName pulumi.StringInput `pulumi:"resourceGroupName"` } func (GetKubernetesNodePoolSnapshotOutputArgs) ElementType() reflect.Type { return reflect.TypeOf((*GetKubernetesNodePoolSnapshotArgs)(nil)).Elem() } // A collection of values returned by getKubernetesNodePoolSnapshot. type GetKubernetesNodePoolSnapshotResultOutput struct{ *pulumi.OutputState } func (GetKubernetesNodePoolSnapshotResultOutput) ElementType() reflect.Type { return reflect.TypeOf((*GetKubernetesNodePoolSnapshotResult)(nil)).Elem() } func (o GetKubernetesNodePoolSnapshotResultOutput) ToGetKubernetesNodePoolSnapshotResultOutput() GetKubernetesNodePoolSnapshotResultOutput { return o } func (o GetKubernetesNodePoolSnapshotResultOutput) ToGetKubernetesNodePoolSnapshotResultOutputWithContext(ctx context.Context) GetKubernetesNodePoolSnapshotResultOutput { return o } // The provider-assigned unique ID for this managed resource. func (o GetKubernetesNodePoolSnapshotResultOutput) Id() pulumi.StringOutput { return o.ApplyT(func(v GetKubernetesNodePoolSnapshotResult) string { return v.Id }).(pulumi.StringOutput) } func (o GetKubernetesNodePoolSnapshotResultOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v GetKubernetesNodePoolSnapshotResult) string { return v.Name }).(pulumi.StringOutput) } func (o GetKubernetesNodePoolSnapshotResultOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v GetKubernetesNodePoolSnapshotResult) string { return v.ResourceGroupName }).(pulumi.StringOutput) } // The ID of the source Node Pool. func (o GetKubernetesNodePoolSnapshotResultOutput) SourceNodePoolId() pulumi.StringOutput { return o.ApplyT(func(v GetKubernetesNodePoolSnapshotResult) string { return v.SourceNodePoolId }).(pulumi.StringOutput) } func (o GetKubernetesNodePoolSnapshotResultOutput) Tags() pulumi.StringMapOutput { return o.ApplyT(func(v GetKubernetesNodePoolSnapshotResult) map[string]string { return v.Tags }).(pulumi.StringMapOutput) } func init() { pulumi.RegisterOutputType(GetKubernetesNodePoolSnapshotResultOutput{}) }
go
Apache-2.0
b66e1472775a89cca43f5050fef806854a7c3fa3
2026-01-07T09:44:27.619514Z
false
pulumi/pulumi-azure
https://github.com/pulumi/pulumi-azure/blob/b66e1472775a89cca43f5050fef806854a7c3fa3/sdk/go/azure/containerservice/kubernetesFleetManager.go
sdk/go/azure/containerservice/kubernetesFleetManager.go
// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package containerservice import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a Kubernetes Fleet Manager. // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/containerservice" // "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-resources"), // Location: pulumi.String("West Europe"), // }) // if err != nil { // return err // } // _, err = containerservice.NewKubernetesFleetManager(ctx, "example", &containerservice.KubernetesFleetManagerArgs{ // Location: example.Location, // Name: pulumi.String("example"), // ResourceGroupName: example.Name, // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## API Providers // // <!-- This section is generated, changes will be overwritten --> // This resource uses the following Azure API Providers: // // * `Microsoft.ContainerService` - 2024-04-01 // // ## Import // // An existing Kubernetes Fleet Manager can be imported into Pulumi using the `resource id`, e.g. // // ```sh // $ pulumi import azure:containerservice/kubernetesFleetManager:KubernetesFleetManager example /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName} // ``` // // * Where `{subscriptionId}` is the ID of the Azure Subscription where the Kubernetes Fleet Manager exists. For example `12345678-1234-9876-4563-123456789012`. // // * Where `{resourceGroupName}` is the name of Resource Group where this Kubernetes Fleet Manager exists. For example `example-resource-group`. // // * Where `{fleetName}` is the name of the Fleet. For example `fleetValue`. type KubernetesFleetManager struct { pulumi.CustomResourceState // Deprecated: The service team has indicated this field is now deprecated and not to be used, as such we are marking it as such and no longer sending it to the API, please see url: https://learn.microsoft.com/en-us/azure/kubernetes-fleet/architectural-overview HubProfile KubernetesFleetManagerHubProfilePtrOutput `pulumi:"hubProfile"` // The Azure Region where the Kubernetes Fleet Manager should exist. Changing this forces a new Kubernetes Fleet Manager to be created. Location pulumi.StringOutput `pulumi:"location"` // Specifies the name of this Kubernetes Fleet Manager. Changing this forces a new Kubernetes Fleet Manager to be created. Name pulumi.StringOutput `pulumi:"name"` // Specifies the name of the Resource Group within which this Kubernetes Fleet Manager should exist. Changing this forces a new Kubernetes Fleet Manager to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // A mapping of tags which should be assigned to the Kubernetes Fleet Manager. Tags pulumi.StringMapOutput `pulumi:"tags"` } // NewKubernetesFleetManager registers a new resource with the given unique name, arguments, and options. func NewKubernetesFleetManager(ctx *pulumi.Context, name string, args *KubernetesFleetManagerArgs, opts ...pulumi.ResourceOption) (*KubernetesFleetManager, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.ResourceGroupName == nil { return nil, errors.New("invalid value for required argument 'ResourceGroupName'") } opts = internal.PkgResourceDefaultOpts(opts) var resource KubernetesFleetManager err := ctx.RegisterResource("azure:containerservice/kubernetesFleetManager:KubernetesFleetManager", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetKubernetesFleetManager gets an existing KubernetesFleetManager 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 GetKubernetesFleetManager(ctx *pulumi.Context, name string, id pulumi.IDInput, state *KubernetesFleetManagerState, opts ...pulumi.ResourceOption) (*KubernetesFleetManager, error) { var resource KubernetesFleetManager err := ctx.ReadResource("azure:containerservice/kubernetesFleetManager:KubernetesFleetManager", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering KubernetesFleetManager resources. type kubernetesFleetManagerState struct { // Deprecated: The service team has indicated this field is now deprecated and not to be used, as such we are marking it as such and no longer sending it to the API, please see url: https://learn.microsoft.com/en-us/azure/kubernetes-fleet/architectural-overview HubProfile *KubernetesFleetManagerHubProfile `pulumi:"hubProfile"` // The Azure Region where the Kubernetes Fleet Manager should exist. Changing this forces a new Kubernetes Fleet Manager to be created. Location *string `pulumi:"location"` // Specifies the name of this Kubernetes Fleet Manager. Changing this forces a new Kubernetes Fleet Manager to be created. Name *string `pulumi:"name"` // Specifies the name of the Resource Group within which this Kubernetes Fleet Manager should exist. Changing this forces a new Kubernetes Fleet Manager to be created. ResourceGroupName *string `pulumi:"resourceGroupName"` // A mapping of tags which should be assigned to the Kubernetes Fleet Manager. Tags map[string]string `pulumi:"tags"` } type KubernetesFleetManagerState struct { // Deprecated: The service team has indicated this field is now deprecated and not to be used, as such we are marking it as such and no longer sending it to the API, please see url: https://learn.microsoft.com/en-us/azure/kubernetes-fleet/architectural-overview HubProfile KubernetesFleetManagerHubProfilePtrInput // The Azure Region where the Kubernetes Fleet Manager should exist. Changing this forces a new Kubernetes Fleet Manager to be created. Location pulumi.StringPtrInput // Specifies the name of this Kubernetes Fleet Manager. Changing this forces a new Kubernetes Fleet Manager to be created. Name pulumi.StringPtrInput // Specifies the name of the Resource Group within which this Kubernetes Fleet Manager should exist. Changing this forces a new Kubernetes Fleet Manager to be created. ResourceGroupName pulumi.StringPtrInput // A mapping of tags which should be assigned to the Kubernetes Fleet Manager. Tags pulumi.StringMapInput } func (KubernetesFleetManagerState) ElementType() reflect.Type { return reflect.TypeOf((*kubernetesFleetManagerState)(nil)).Elem() } type kubernetesFleetManagerArgs struct { // Deprecated: The service team has indicated this field is now deprecated and not to be used, as such we are marking it as such and no longer sending it to the API, please see url: https://learn.microsoft.com/en-us/azure/kubernetes-fleet/architectural-overview HubProfile *KubernetesFleetManagerHubProfile `pulumi:"hubProfile"` // The Azure Region where the Kubernetes Fleet Manager should exist. Changing this forces a new Kubernetes Fleet Manager to be created. Location *string `pulumi:"location"` // Specifies the name of this Kubernetes Fleet Manager. Changing this forces a new Kubernetes Fleet Manager to be created. Name *string `pulumi:"name"` // Specifies the name of the Resource Group within which this Kubernetes Fleet Manager should exist. Changing this forces a new Kubernetes Fleet Manager to be created. ResourceGroupName string `pulumi:"resourceGroupName"` // A mapping of tags which should be assigned to the Kubernetes Fleet Manager. Tags map[string]string `pulumi:"tags"` } // The set of arguments for constructing a KubernetesFleetManager resource. type KubernetesFleetManagerArgs struct { // Deprecated: The service team has indicated this field is now deprecated and not to be used, as such we are marking it as such and no longer sending it to the API, please see url: https://learn.microsoft.com/en-us/azure/kubernetes-fleet/architectural-overview HubProfile KubernetesFleetManagerHubProfilePtrInput // The Azure Region where the Kubernetes Fleet Manager should exist. Changing this forces a new Kubernetes Fleet Manager to be created. Location pulumi.StringPtrInput // Specifies the name of this Kubernetes Fleet Manager. Changing this forces a new Kubernetes Fleet Manager to be created. Name pulumi.StringPtrInput // Specifies the name of the Resource Group within which this Kubernetes Fleet Manager should exist. Changing this forces a new Kubernetes Fleet Manager to be created. ResourceGroupName pulumi.StringInput // A mapping of tags which should be assigned to the Kubernetes Fleet Manager. Tags pulumi.StringMapInput } func (KubernetesFleetManagerArgs) ElementType() reflect.Type { return reflect.TypeOf((*kubernetesFleetManagerArgs)(nil)).Elem() } type KubernetesFleetManagerInput interface { pulumi.Input ToKubernetesFleetManagerOutput() KubernetesFleetManagerOutput ToKubernetesFleetManagerOutputWithContext(ctx context.Context) KubernetesFleetManagerOutput } func (*KubernetesFleetManager) ElementType() reflect.Type { return reflect.TypeOf((**KubernetesFleetManager)(nil)).Elem() } func (i *KubernetesFleetManager) ToKubernetesFleetManagerOutput() KubernetesFleetManagerOutput { return i.ToKubernetesFleetManagerOutputWithContext(context.Background()) } func (i *KubernetesFleetManager) ToKubernetesFleetManagerOutputWithContext(ctx context.Context) KubernetesFleetManagerOutput { return pulumi.ToOutputWithContext(ctx, i).(KubernetesFleetManagerOutput) } // KubernetesFleetManagerArrayInput is an input type that accepts KubernetesFleetManagerArray and KubernetesFleetManagerArrayOutput values. // You can construct a concrete instance of `KubernetesFleetManagerArrayInput` via: // // KubernetesFleetManagerArray{ KubernetesFleetManagerArgs{...} } type KubernetesFleetManagerArrayInput interface { pulumi.Input ToKubernetesFleetManagerArrayOutput() KubernetesFleetManagerArrayOutput ToKubernetesFleetManagerArrayOutputWithContext(context.Context) KubernetesFleetManagerArrayOutput } type KubernetesFleetManagerArray []KubernetesFleetManagerInput func (KubernetesFleetManagerArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*KubernetesFleetManager)(nil)).Elem() } func (i KubernetesFleetManagerArray) ToKubernetesFleetManagerArrayOutput() KubernetesFleetManagerArrayOutput { return i.ToKubernetesFleetManagerArrayOutputWithContext(context.Background()) } func (i KubernetesFleetManagerArray) ToKubernetesFleetManagerArrayOutputWithContext(ctx context.Context) KubernetesFleetManagerArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(KubernetesFleetManagerArrayOutput) } // KubernetesFleetManagerMapInput is an input type that accepts KubernetesFleetManagerMap and KubernetesFleetManagerMapOutput values. // You can construct a concrete instance of `KubernetesFleetManagerMapInput` via: // // KubernetesFleetManagerMap{ "key": KubernetesFleetManagerArgs{...} } type KubernetesFleetManagerMapInput interface { pulumi.Input ToKubernetesFleetManagerMapOutput() KubernetesFleetManagerMapOutput ToKubernetesFleetManagerMapOutputWithContext(context.Context) KubernetesFleetManagerMapOutput } type KubernetesFleetManagerMap map[string]KubernetesFleetManagerInput func (KubernetesFleetManagerMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*KubernetesFleetManager)(nil)).Elem() } func (i KubernetesFleetManagerMap) ToKubernetesFleetManagerMapOutput() KubernetesFleetManagerMapOutput { return i.ToKubernetesFleetManagerMapOutputWithContext(context.Background()) } func (i KubernetesFleetManagerMap) ToKubernetesFleetManagerMapOutputWithContext(ctx context.Context) KubernetesFleetManagerMapOutput { return pulumi.ToOutputWithContext(ctx, i).(KubernetesFleetManagerMapOutput) } type KubernetesFleetManagerOutput struct{ *pulumi.OutputState } func (KubernetesFleetManagerOutput) ElementType() reflect.Type { return reflect.TypeOf((**KubernetesFleetManager)(nil)).Elem() } func (o KubernetesFleetManagerOutput) ToKubernetesFleetManagerOutput() KubernetesFleetManagerOutput { return o } func (o KubernetesFleetManagerOutput) ToKubernetesFleetManagerOutputWithContext(ctx context.Context) KubernetesFleetManagerOutput { return o } // Deprecated: The service team has indicated this field is now deprecated and not to be used, as such we are marking it as such and no longer sending it to the API, please see url: https://learn.microsoft.com/en-us/azure/kubernetes-fleet/architectural-overview func (o KubernetesFleetManagerOutput) HubProfile() KubernetesFleetManagerHubProfilePtrOutput { return o.ApplyT(func(v *KubernetesFleetManager) KubernetesFleetManagerHubProfilePtrOutput { return v.HubProfile }).(KubernetesFleetManagerHubProfilePtrOutput) } // The Azure Region where the Kubernetes Fleet Manager should exist. Changing this forces a new Kubernetes Fleet Manager to be created. func (o KubernetesFleetManagerOutput) Location() pulumi.StringOutput { return o.ApplyT(func(v *KubernetesFleetManager) pulumi.StringOutput { return v.Location }).(pulumi.StringOutput) } // Specifies the name of this Kubernetes Fleet Manager. Changing this forces a new Kubernetes Fleet Manager to be created. func (o KubernetesFleetManagerOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *KubernetesFleetManager) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // Specifies the name of the Resource Group within which this Kubernetes Fleet Manager should exist. Changing this forces a new Kubernetes Fleet Manager to be created. func (o KubernetesFleetManagerOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v *KubernetesFleetManager) pulumi.StringOutput { return v.ResourceGroupName }).(pulumi.StringOutput) } // A mapping of tags which should be assigned to the Kubernetes Fleet Manager. func (o KubernetesFleetManagerOutput) Tags() pulumi.StringMapOutput { return o.ApplyT(func(v *KubernetesFleetManager) pulumi.StringMapOutput { return v.Tags }).(pulumi.StringMapOutput) } type KubernetesFleetManagerArrayOutput struct{ *pulumi.OutputState } func (KubernetesFleetManagerArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*KubernetesFleetManager)(nil)).Elem() } func (o KubernetesFleetManagerArrayOutput) ToKubernetesFleetManagerArrayOutput() KubernetesFleetManagerArrayOutput { return o } func (o KubernetesFleetManagerArrayOutput) ToKubernetesFleetManagerArrayOutputWithContext(ctx context.Context) KubernetesFleetManagerArrayOutput { return o } func (o KubernetesFleetManagerArrayOutput) Index(i pulumi.IntInput) KubernetesFleetManagerOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *KubernetesFleetManager { return vs[0].([]*KubernetesFleetManager)[vs[1].(int)] }).(KubernetesFleetManagerOutput) } type KubernetesFleetManagerMapOutput struct{ *pulumi.OutputState } func (KubernetesFleetManagerMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*KubernetesFleetManager)(nil)).Elem() } func (o KubernetesFleetManagerMapOutput) ToKubernetesFleetManagerMapOutput() KubernetesFleetManagerMapOutput { return o } func (o KubernetesFleetManagerMapOutput) ToKubernetesFleetManagerMapOutputWithContext(ctx context.Context) KubernetesFleetManagerMapOutput { return o } func (o KubernetesFleetManagerMapOutput) MapIndex(k pulumi.StringInput) KubernetesFleetManagerOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *KubernetesFleetManager { return vs[0].(map[string]*KubernetesFleetManager)[vs[1].(string)] }).(KubernetesFleetManagerOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*KubernetesFleetManagerInput)(nil)).Elem(), &KubernetesFleetManager{}) pulumi.RegisterInputType(reflect.TypeOf((*KubernetesFleetManagerArrayInput)(nil)).Elem(), KubernetesFleetManagerArray{}) pulumi.RegisterInputType(reflect.TypeOf((*KubernetesFleetManagerMapInput)(nil)).Elem(), KubernetesFleetManagerMap{}) pulumi.RegisterOutputType(KubernetesFleetManagerOutput{}) pulumi.RegisterOutputType(KubernetesFleetManagerArrayOutput{}) pulumi.RegisterOutputType(KubernetesFleetManagerMapOutput{}) }
go
Apache-2.0
b66e1472775a89cca43f5050fef806854a7c3fa3
2026-01-07T09:44:27.619514Z
false
pulumi/pulumi-azure
https://github.com/pulumi/pulumi-azure/blob/b66e1472775a89cca43f5050fef806854a7c3fa3/sdk/go/azure/containerservice/fluxConfiguration.go
sdk/go/azure/containerservice/fluxConfiguration.go
// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package containerservice import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a Kubernetes Flux Configuration. // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/containerservice" // "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-resources"), // Location: pulumi.String("West Europe"), // }) // if err != nil { // return err // } // _, err = containerservice.NewKubernetesCluster(ctx, "example", &containerservice.KubernetesClusterArgs{ // Name: pulumi.String("example-aks"), // Location: pulumi.String("West Europe"), // ResourceGroupName: example.Name, // DnsPrefix: pulumi.String("example-aks"), // DefaultNodePool: &containerservice.KubernetesClusterDefaultNodePoolArgs{ // Name: pulumi.String("default"), // NodeCount: pulumi.Int(1), // VmSize: pulumi.String("Standard_DS2_v2"), // }, // Identity: &containerservice.KubernetesClusterIdentityArgs{ // Type: pulumi.String("SystemAssigned"), // }, // }) // if err != nil { // return err // } // exampleKubernetesClusterExtension, err := containerservice.NewKubernetesClusterExtension(ctx, "example", &containerservice.KubernetesClusterExtensionArgs{ // Name: pulumi.String("example-ext"), // ClusterId: pulumi.Any(test.Id), // ExtensionType: pulumi.String("microsoft.flux"), // }) // if err != nil { // return err // } // _, err = containerservice.NewFluxConfiguration(ctx, "example", &containerservice.FluxConfigurationArgs{ // Name: pulumi.String("example-fc"), // ClusterId: pulumi.Any(test.Id), // Namespace: pulumi.String("flux"), // GitRepository: &containerservice.FluxConfigurationGitRepositoryArgs{ // Url: pulumi.String("https://github.com/Azure/arc-k8s-demo"), // ReferenceType: pulumi.String("branch"), // ReferenceValue: pulumi.String("main"), // }, // Kustomizations: containerservice.FluxConfigurationKustomizationArray{ // &containerservice.FluxConfigurationKustomizationArgs{ // Name: pulumi.String("kustomization-1"), // PostBuild: &containerservice.FluxConfigurationKustomizationPostBuildArgs{ // Substitute: pulumi.StringMap{ // "example_var": pulumi.String("substitute_with_this"), // }, // SubstituteFroms: containerservice.FluxConfigurationKustomizationPostBuildSubstituteFromArray{ // &containerservice.FluxConfigurationKustomizationPostBuildSubstituteFromArgs{ // Kind: pulumi.String("ConfigMap"), // Name: pulumi.String("example-configmap"), // }, // }, // }, // }, // }, // }, pulumi.DependsOn([]pulumi.Resource{ // exampleKubernetesClusterExtension, // })) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## API Providers // // <!-- This section is generated, changes will be overwritten --> // This resource uses the following Azure API Providers: // // * `Microsoft.KubernetesConfiguration` - 2024-11-01 // // ## Import // // Kubernetes Flux Configuration can be imported using the `resource id` for different `cluster_resource_name`, e.g. // // ```sh // $ pulumi import azure:containerservice/fluxConfiguration:FluxConfiguration example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/Microsoft.ContainerService/managedClusters/cluster1/providers/Microsoft.KubernetesConfiguration/fluxConfigurations/fluxConfiguration1 // ``` type FluxConfiguration struct { pulumi.CustomResourceState // An `blobStorage` block as defined below. BlobStorage FluxConfigurationBlobStoragePtrOutput `pulumi:"blobStorage"` // A `bucket` block as defined below. Bucket FluxConfigurationBucketPtrOutput `pulumi:"bucket"` // Specifies the Cluster ID. Changing this forces a new Kubernetes Cluster Extension to be created. ClusterId pulumi.StringOutput `pulumi:"clusterId"` // Whether the configuration will keep its reconciliation of its kustomizations and sources with the repository. Defaults to `true`. ContinuousReconciliationEnabled pulumi.BoolPtrOutput `pulumi:"continuousReconciliationEnabled"` // A `gitRepository` block as defined below. GitRepository FluxConfigurationGitRepositoryPtrOutput `pulumi:"gitRepository"` // A `kustomizations` block as defined below. Kustomizations FluxConfigurationKustomizationArrayOutput `pulumi:"kustomizations"` // Specifies the name which should be used for this Kubernetes Flux Configuration. Changing this forces a new Kubernetes Flux Configuration to be created. Name pulumi.StringOutput `pulumi:"name"` // Specifies the namespace to which this configuration is installed to. Changing this forces a new Kubernetes Flux Configuration to be created. Namespace pulumi.StringOutput `pulumi:"namespace"` // Specifies the scope at which the operator will be installed. Possible values are `cluster` and `namespace`. Defaults to `namespace`. Changing this forces a new Kubernetes Flux Configuration to be created. Scope pulumi.StringPtrOutput `pulumi:"scope"` } // NewFluxConfiguration registers a new resource with the given unique name, arguments, and options. func NewFluxConfiguration(ctx *pulumi.Context, name string, args *FluxConfigurationArgs, opts ...pulumi.ResourceOption) (*FluxConfiguration, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.ClusterId == nil { return nil, errors.New("invalid value for required argument 'ClusterId'") } if args.Kustomizations == nil { return nil, errors.New("invalid value for required argument 'Kustomizations'") } if args.Namespace == nil { return nil, errors.New("invalid value for required argument 'Namespace'") } opts = internal.PkgResourceDefaultOpts(opts) var resource FluxConfiguration err := ctx.RegisterResource("azure:containerservice/fluxConfiguration:FluxConfiguration", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetFluxConfiguration gets an existing FluxConfiguration 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 GetFluxConfiguration(ctx *pulumi.Context, name string, id pulumi.IDInput, state *FluxConfigurationState, opts ...pulumi.ResourceOption) (*FluxConfiguration, error) { var resource FluxConfiguration err := ctx.ReadResource("azure:containerservice/fluxConfiguration:FluxConfiguration", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering FluxConfiguration resources. type fluxConfigurationState struct { // An `blobStorage` block as defined below. BlobStorage *FluxConfigurationBlobStorage `pulumi:"blobStorage"` // A `bucket` block as defined below. Bucket *FluxConfigurationBucket `pulumi:"bucket"` // Specifies the Cluster ID. Changing this forces a new Kubernetes Cluster Extension to be created. ClusterId *string `pulumi:"clusterId"` // Whether the configuration will keep its reconciliation of its kustomizations and sources with the repository. Defaults to `true`. ContinuousReconciliationEnabled *bool `pulumi:"continuousReconciliationEnabled"` // A `gitRepository` block as defined below. GitRepository *FluxConfigurationGitRepository `pulumi:"gitRepository"` // A `kustomizations` block as defined below. Kustomizations []FluxConfigurationKustomization `pulumi:"kustomizations"` // Specifies the name which should be used for this Kubernetes Flux Configuration. Changing this forces a new Kubernetes Flux Configuration to be created. Name *string `pulumi:"name"` // Specifies the namespace to which this configuration is installed to. Changing this forces a new Kubernetes Flux Configuration to be created. Namespace *string `pulumi:"namespace"` // Specifies the scope at which the operator will be installed. Possible values are `cluster` and `namespace`. Defaults to `namespace`. Changing this forces a new Kubernetes Flux Configuration to be created. Scope *string `pulumi:"scope"` } type FluxConfigurationState struct { // An `blobStorage` block as defined below. BlobStorage FluxConfigurationBlobStoragePtrInput // A `bucket` block as defined below. Bucket FluxConfigurationBucketPtrInput // Specifies the Cluster ID. Changing this forces a new Kubernetes Cluster Extension to be created. ClusterId pulumi.StringPtrInput // Whether the configuration will keep its reconciliation of its kustomizations and sources with the repository. Defaults to `true`. ContinuousReconciliationEnabled pulumi.BoolPtrInput // A `gitRepository` block as defined below. GitRepository FluxConfigurationGitRepositoryPtrInput // A `kustomizations` block as defined below. Kustomizations FluxConfigurationKustomizationArrayInput // Specifies the name which should be used for this Kubernetes Flux Configuration. Changing this forces a new Kubernetes Flux Configuration to be created. Name pulumi.StringPtrInput // Specifies the namespace to which this configuration is installed to. Changing this forces a new Kubernetes Flux Configuration to be created. Namespace pulumi.StringPtrInput // Specifies the scope at which the operator will be installed. Possible values are `cluster` and `namespace`. Defaults to `namespace`. Changing this forces a new Kubernetes Flux Configuration to be created. Scope pulumi.StringPtrInput } func (FluxConfigurationState) ElementType() reflect.Type { return reflect.TypeOf((*fluxConfigurationState)(nil)).Elem() } type fluxConfigurationArgs struct { // An `blobStorage` block as defined below. BlobStorage *FluxConfigurationBlobStorage `pulumi:"blobStorage"` // A `bucket` block as defined below. Bucket *FluxConfigurationBucket `pulumi:"bucket"` // Specifies the Cluster ID. Changing this forces a new Kubernetes Cluster Extension to be created. ClusterId string `pulumi:"clusterId"` // Whether the configuration will keep its reconciliation of its kustomizations and sources with the repository. Defaults to `true`. ContinuousReconciliationEnabled *bool `pulumi:"continuousReconciliationEnabled"` // A `gitRepository` block as defined below. GitRepository *FluxConfigurationGitRepository `pulumi:"gitRepository"` // A `kustomizations` block as defined below. Kustomizations []FluxConfigurationKustomization `pulumi:"kustomizations"` // Specifies the name which should be used for this Kubernetes Flux Configuration. Changing this forces a new Kubernetes Flux Configuration to be created. Name *string `pulumi:"name"` // Specifies the namespace to which this configuration is installed to. Changing this forces a new Kubernetes Flux Configuration to be created. Namespace string `pulumi:"namespace"` // Specifies the scope at which the operator will be installed. Possible values are `cluster` and `namespace`. Defaults to `namespace`. Changing this forces a new Kubernetes Flux Configuration to be created. Scope *string `pulumi:"scope"` } // The set of arguments for constructing a FluxConfiguration resource. type FluxConfigurationArgs struct { // An `blobStorage` block as defined below. BlobStorage FluxConfigurationBlobStoragePtrInput // A `bucket` block as defined below. Bucket FluxConfigurationBucketPtrInput // Specifies the Cluster ID. Changing this forces a new Kubernetes Cluster Extension to be created. ClusterId pulumi.StringInput // Whether the configuration will keep its reconciliation of its kustomizations and sources with the repository. Defaults to `true`. ContinuousReconciliationEnabled pulumi.BoolPtrInput // A `gitRepository` block as defined below. GitRepository FluxConfigurationGitRepositoryPtrInput // A `kustomizations` block as defined below. Kustomizations FluxConfigurationKustomizationArrayInput // Specifies the name which should be used for this Kubernetes Flux Configuration. Changing this forces a new Kubernetes Flux Configuration to be created. Name pulumi.StringPtrInput // Specifies the namespace to which this configuration is installed to. Changing this forces a new Kubernetes Flux Configuration to be created. Namespace pulumi.StringInput // Specifies the scope at which the operator will be installed. Possible values are `cluster` and `namespace`. Defaults to `namespace`. Changing this forces a new Kubernetes Flux Configuration to be created. Scope pulumi.StringPtrInput } func (FluxConfigurationArgs) ElementType() reflect.Type { return reflect.TypeOf((*fluxConfigurationArgs)(nil)).Elem() } type FluxConfigurationInput interface { pulumi.Input ToFluxConfigurationOutput() FluxConfigurationOutput ToFluxConfigurationOutputWithContext(ctx context.Context) FluxConfigurationOutput } func (*FluxConfiguration) ElementType() reflect.Type { return reflect.TypeOf((**FluxConfiguration)(nil)).Elem() } func (i *FluxConfiguration) ToFluxConfigurationOutput() FluxConfigurationOutput { return i.ToFluxConfigurationOutputWithContext(context.Background()) } func (i *FluxConfiguration) ToFluxConfigurationOutputWithContext(ctx context.Context) FluxConfigurationOutput { return pulumi.ToOutputWithContext(ctx, i).(FluxConfigurationOutput) } // FluxConfigurationArrayInput is an input type that accepts FluxConfigurationArray and FluxConfigurationArrayOutput values. // You can construct a concrete instance of `FluxConfigurationArrayInput` via: // // FluxConfigurationArray{ FluxConfigurationArgs{...} } type FluxConfigurationArrayInput interface { pulumi.Input ToFluxConfigurationArrayOutput() FluxConfigurationArrayOutput ToFluxConfigurationArrayOutputWithContext(context.Context) FluxConfigurationArrayOutput } type FluxConfigurationArray []FluxConfigurationInput func (FluxConfigurationArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*FluxConfiguration)(nil)).Elem() } func (i FluxConfigurationArray) ToFluxConfigurationArrayOutput() FluxConfigurationArrayOutput { return i.ToFluxConfigurationArrayOutputWithContext(context.Background()) } func (i FluxConfigurationArray) ToFluxConfigurationArrayOutputWithContext(ctx context.Context) FluxConfigurationArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(FluxConfigurationArrayOutput) } // FluxConfigurationMapInput is an input type that accepts FluxConfigurationMap and FluxConfigurationMapOutput values. // You can construct a concrete instance of `FluxConfigurationMapInput` via: // // FluxConfigurationMap{ "key": FluxConfigurationArgs{...} } type FluxConfigurationMapInput interface { pulumi.Input ToFluxConfigurationMapOutput() FluxConfigurationMapOutput ToFluxConfigurationMapOutputWithContext(context.Context) FluxConfigurationMapOutput } type FluxConfigurationMap map[string]FluxConfigurationInput func (FluxConfigurationMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*FluxConfiguration)(nil)).Elem() } func (i FluxConfigurationMap) ToFluxConfigurationMapOutput() FluxConfigurationMapOutput { return i.ToFluxConfigurationMapOutputWithContext(context.Background()) } func (i FluxConfigurationMap) ToFluxConfigurationMapOutputWithContext(ctx context.Context) FluxConfigurationMapOutput { return pulumi.ToOutputWithContext(ctx, i).(FluxConfigurationMapOutput) } type FluxConfigurationOutput struct{ *pulumi.OutputState } func (FluxConfigurationOutput) ElementType() reflect.Type { return reflect.TypeOf((**FluxConfiguration)(nil)).Elem() } func (o FluxConfigurationOutput) ToFluxConfigurationOutput() FluxConfigurationOutput { return o } func (o FluxConfigurationOutput) ToFluxConfigurationOutputWithContext(ctx context.Context) FluxConfigurationOutput { return o } // An `blobStorage` block as defined below. func (o FluxConfigurationOutput) BlobStorage() FluxConfigurationBlobStoragePtrOutput { return o.ApplyT(func(v *FluxConfiguration) FluxConfigurationBlobStoragePtrOutput { return v.BlobStorage }).(FluxConfigurationBlobStoragePtrOutput) } // A `bucket` block as defined below. func (o FluxConfigurationOutput) Bucket() FluxConfigurationBucketPtrOutput { return o.ApplyT(func(v *FluxConfiguration) FluxConfigurationBucketPtrOutput { return v.Bucket }).(FluxConfigurationBucketPtrOutput) } // Specifies the Cluster ID. Changing this forces a new Kubernetes Cluster Extension to be created. func (o FluxConfigurationOutput) ClusterId() pulumi.StringOutput { return o.ApplyT(func(v *FluxConfiguration) pulumi.StringOutput { return v.ClusterId }).(pulumi.StringOutput) } // Whether the configuration will keep its reconciliation of its kustomizations and sources with the repository. Defaults to `true`. func (o FluxConfigurationOutput) ContinuousReconciliationEnabled() pulumi.BoolPtrOutput { return o.ApplyT(func(v *FluxConfiguration) pulumi.BoolPtrOutput { return v.ContinuousReconciliationEnabled }).(pulumi.BoolPtrOutput) } // A `gitRepository` block as defined below. func (o FluxConfigurationOutput) GitRepository() FluxConfigurationGitRepositoryPtrOutput { return o.ApplyT(func(v *FluxConfiguration) FluxConfigurationGitRepositoryPtrOutput { return v.GitRepository }).(FluxConfigurationGitRepositoryPtrOutput) } // A `kustomizations` block as defined below. func (o FluxConfigurationOutput) Kustomizations() FluxConfigurationKustomizationArrayOutput { return o.ApplyT(func(v *FluxConfiguration) FluxConfigurationKustomizationArrayOutput { return v.Kustomizations }).(FluxConfigurationKustomizationArrayOutput) } // Specifies the name which should be used for this Kubernetes Flux Configuration. Changing this forces a new Kubernetes Flux Configuration to be created. func (o FluxConfigurationOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *FluxConfiguration) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // Specifies the namespace to which this configuration is installed to. Changing this forces a new Kubernetes Flux Configuration to be created. func (o FluxConfigurationOutput) Namespace() pulumi.StringOutput { return o.ApplyT(func(v *FluxConfiguration) pulumi.StringOutput { return v.Namespace }).(pulumi.StringOutput) } // Specifies the scope at which the operator will be installed. Possible values are `cluster` and `namespace`. Defaults to `namespace`. Changing this forces a new Kubernetes Flux Configuration to be created. func (o FluxConfigurationOutput) Scope() pulumi.StringPtrOutput { return o.ApplyT(func(v *FluxConfiguration) pulumi.StringPtrOutput { return v.Scope }).(pulumi.StringPtrOutput) } type FluxConfigurationArrayOutput struct{ *pulumi.OutputState } func (FluxConfigurationArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*FluxConfiguration)(nil)).Elem() } func (o FluxConfigurationArrayOutput) ToFluxConfigurationArrayOutput() FluxConfigurationArrayOutput { return o } func (o FluxConfigurationArrayOutput) ToFluxConfigurationArrayOutputWithContext(ctx context.Context) FluxConfigurationArrayOutput { return o } func (o FluxConfigurationArrayOutput) Index(i pulumi.IntInput) FluxConfigurationOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *FluxConfiguration { return vs[0].([]*FluxConfiguration)[vs[1].(int)] }).(FluxConfigurationOutput) } type FluxConfigurationMapOutput struct{ *pulumi.OutputState } func (FluxConfigurationMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*FluxConfiguration)(nil)).Elem() } func (o FluxConfigurationMapOutput) ToFluxConfigurationMapOutput() FluxConfigurationMapOutput { return o } func (o FluxConfigurationMapOutput) ToFluxConfigurationMapOutputWithContext(ctx context.Context) FluxConfigurationMapOutput { return o } func (o FluxConfigurationMapOutput) MapIndex(k pulumi.StringInput) FluxConfigurationOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *FluxConfiguration { return vs[0].(map[string]*FluxConfiguration)[vs[1].(string)] }).(FluxConfigurationOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*FluxConfigurationInput)(nil)).Elem(), &FluxConfiguration{}) pulumi.RegisterInputType(reflect.TypeOf((*FluxConfigurationArrayInput)(nil)).Elem(), FluxConfigurationArray{}) pulumi.RegisterInputType(reflect.TypeOf((*FluxConfigurationMapInput)(nil)).Elem(), FluxConfigurationMap{}) pulumi.RegisterOutputType(FluxConfigurationOutput{}) pulumi.RegisterOutputType(FluxConfigurationArrayOutput{}) pulumi.RegisterOutputType(FluxConfigurationMapOutput{}) }
go
Apache-2.0
b66e1472775a89cca43f5050fef806854a7c3fa3
2026-01-07T09:44:27.619514Z
false
pulumi/pulumi-azure
https://github.com/pulumi/pulumi-azure/blob/b66e1472775a89cca43f5050fef806854a7c3fa3/sdk/go/azure/containerservice/fleetMember.go
sdk/go/azure/containerservice/fleetMember.go
// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package containerservice import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // <!-- Note: This documentation is generated. Any manual changes will be overwritten --> // // Manages a Kubernetes Fleet Member. // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/containerservice" // "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 { // exampleResourceGroup, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{ // Name: pulumi.String("example-resources"), // Location: pulumi.String("West Europe"), // }) // if err != nil { // return err // } // example, err := containerservice.NewKubernetesCluster(ctx, "example", &containerservice.KubernetesClusterArgs{ // Name: pulumi.String("example"), // Location: exampleResourceGroup.Location, // ResourceGroupName: exampleResourceGroup.Name, // DnsPrefix: pulumi.String("acctestaksexample"), // DefaultNodePool: &containerservice.KubernetesClusterDefaultNodePoolArgs{ // Name: pulumi.String("example-value"), // NodeCount: pulumi.Int("example-value"), // VmSize: pulumi.String("example-value"), // UpgradeSettings: &containerservice.KubernetesClusterDefaultNodePoolUpgradeSettingsArgs{ // MaxSurge: pulumi.String("example-value"), // }, // }, // Identity: &containerservice.KubernetesClusterIdentityArgs{ // Type: pulumi.String("example-value"), // }, // }) // if err != nil { // return err // } // exampleKubernetesFleetManager, err := containerservice.NewKubernetesFleetManager(ctx, "example", &containerservice.KubernetesFleetManagerArgs{ // Name: pulumi.String("example"), // Location: exampleResourceGroup.Location, // ResourceGroupName: exampleResourceGroup.Name, // }) // if err != nil { // return err // } // _, err = containerservice.NewFleetMember(ctx, "example", &containerservice.FleetMemberArgs{ // KubernetesClusterId: example.ID(), // KubernetesFleetId: exampleKubernetesFleetManager.ID(), // Name: pulumi.String("example"), // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## Import // // An existing Kubernetes Fleet Member can be imported into Pulumi using the `resource id`, e.g. // // ```sh // $ pulumi import azure:containerservice/fleetMember:FleetMember example /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/members/{memberName} // ``` // // * Where `{subscriptionId}` is the ID of the Azure Subscription where the Kubernetes Fleet Member exists. For example `12345678-1234-9876-4563-123456789012`. // // * Where `{resourceGroupName}` is the name of Resource Group where this Kubernetes Fleet Member exists. For example `example-resource-group`. // // * Where `{fleetName}` is the name of the Fleet. For example `fleetValue`. // // * Where `{memberName}` is the name of the Member. For example `memberValue`. type FleetMember struct { pulumi.CustomResourceState // The group this member belongs to for multi-cluster update management. Group pulumi.StringPtrOutput `pulumi:"group"` // The ARM resource ID of the cluster that joins the Fleet. Changing this forces a new Kubernetes Fleet Member to be created. KubernetesClusterId pulumi.StringOutput `pulumi:"kubernetesClusterId"` // Specifies the Kubernetes Fleet Id within which this Kubernetes Fleet Member should exist. Changing this forces a new Kubernetes Fleet Member to be created. KubernetesFleetId pulumi.StringOutput `pulumi:"kubernetesFleetId"` // Specifies the name of this Kubernetes Fleet Member. Changing this forces a new Kubernetes Fleet Member to be created. Name pulumi.StringOutput `pulumi:"name"` } // NewFleetMember registers a new resource with the given unique name, arguments, and options. func NewFleetMember(ctx *pulumi.Context, name string, args *FleetMemberArgs, opts ...pulumi.ResourceOption) (*FleetMember, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.KubernetesClusterId == nil { return nil, errors.New("invalid value for required argument 'KubernetesClusterId'") } if args.KubernetesFleetId == nil { return nil, errors.New("invalid value for required argument 'KubernetesFleetId'") } opts = internal.PkgResourceDefaultOpts(opts) var resource FleetMember err := ctx.RegisterResource("azure:containerservice/fleetMember:FleetMember", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetFleetMember gets an existing FleetMember 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 GetFleetMember(ctx *pulumi.Context, name string, id pulumi.IDInput, state *FleetMemberState, opts ...pulumi.ResourceOption) (*FleetMember, error) { var resource FleetMember err := ctx.ReadResource("azure:containerservice/fleetMember:FleetMember", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering FleetMember resources. type fleetMemberState struct { // The group this member belongs to for multi-cluster update management. Group *string `pulumi:"group"` // The ARM resource ID of the cluster that joins the Fleet. Changing this forces a new Kubernetes Fleet Member to be created. KubernetesClusterId *string `pulumi:"kubernetesClusterId"` // Specifies the Kubernetes Fleet Id within which this Kubernetes Fleet Member should exist. Changing this forces a new Kubernetes Fleet Member to be created. KubernetesFleetId *string `pulumi:"kubernetesFleetId"` // Specifies the name of this Kubernetes Fleet Member. Changing this forces a new Kubernetes Fleet Member to be created. Name *string `pulumi:"name"` } type FleetMemberState struct { // The group this member belongs to for multi-cluster update management. Group pulumi.StringPtrInput // The ARM resource ID of the cluster that joins the Fleet. Changing this forces a new Kubernetes Fleet Member to be created. KubernetesClusterId pulumi.StringPtrInput // Specifies the Kubernetes Fleet Id within which this Kubernetes Fleet Member should exist. Changing this forces a new Kubernetes Fleet Member to be created. KubernetesFleetId pulumi.StringPtrInput // Specifies the name of this Kubernetes Fleet Member. Changing this forces a new Kubernetes Fleet Member to be created. Name pulumi.StringPtrInput } func (FleetMemberState) ElementType() reflect.Type { return reflect.TypeOf((*fleetMemberState)(nil)).Elem() } type fleetMemberArgs struct { // The group this member belongs to for multi-cluster update management. Group *string `pulumi:"group"` // The ARM resource ID of the cluster that joins the Fleet. Changing this forces a new Kubernetes Fleet Member to be created. KubernetesClusterId string `pulumi:"kubernetesClusterId"` // Specifies the Kubernetes Fleet Id within which this Kubernetes Fleet Member should exist. Changing this forces a new Kubernetes Fleet Member to be created. KubernetesFleetId string `pulumi:"kubernetesFleetId"` // Specifies the name of this Kubernetes Fleet Member. Changing this forces a new Kubernetes Fleet Member to be created. Name *string `pulumi:"name"` } // The set of arguments for constructing a FleetMember resource. type FleetMemberArgs struct { // The group this member belongs to for multi-cluster update management. Group pulumi.StringPtrInput // The ARM resource ID of the cluster that joins the Fleet. Changing this forces a new Kubernetes Fleet Member to be created. KubernetesClusterId pulumi.StringInput // Specifies the Kubernetes Fleet Id within which this Kubernetes Fleet Member should exist. Changing this forces a new Kubernetes Fleet Member to be created. KubernetesFleetId pulumi.StringInput // Specifies the name of this Kubernetes Fleet Member. Changing this forces a new Kubernetes Fleet Member to be created. Name pulumi.StringPtrInput } func (FleetMemberArgs) ElementType() reflect.Type { return reflect.TypeOf((*fleetMemberArgs)(nil)).Elem() } type FleetMemberInput interface { pulumi.Input ToFleetMemberOutput() FleetMemberOutput ToFleetMemberOutputWithContext(ctx context.Context) FleetMemberOutput } func (*FleetMember) ElementType() reflect.Type { return reflect.TypeOf((**FleetMember)(nil)).Elem() } func (i *FleetMember) ToFleetMemberOutput() FleetMemberOutput { return i.ToFleetMemberOutputWithContext(context.Background()) } func (i *FleetMember) ToFleetMemberOutputWithContext(ctx context.Context) FleetMemberOutput { return pulumi.ToOutputWithContext(ctx, i).(FleetMemberOutput) } // FleetMemberArrayInput is an input type that accepts FleetMemberArray and FleetMemberArrayOutput values. // You can construct a concrete instance of `FleetMemberArrayInput` via: // // FleetMemberArray{ FleetMemberArgs{...} } type FleetMemberArrayInput interface { pulumi.Input ToFleetMemberArrayOutput() FleetMemberArrayOutput ToFleetMemberArrayOutputWithContext(context.Context) FleetMemberArrayOutput } type FleetMemberArray []FleetMemberInput func (FleetMemberArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*FleetMember)(nil)).Elem() } func (i FleetMemberArray) ToFleetMemberArrayOutput() FleetMemberArrayOutput { return i.ToFleetMemberArrayOutputWithContext(context.Background()) } func (i FleetMemberArray) ToFleetMemberArrayOutputWithContext(ctx context.Context) FleetMemberArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(FleetMemberArrayOutput) } // FleetMemberMapInput is an input type that accepts FleetMemberMap and FleetMemberMapOutput values. // You can construct a concrete instance of `FleetMemberMapInput` via: // // FleetMemberMap{ "key": FleetMemberArgs{...} } type FleetMemberMapInput interface { pulumi.Input ToFleetMemberMapOutput() FleetMemberMapOutput ToFleetMemberMapOutputWithContext(context.Context) FleetMemberMapOutput } type FleetMemberMap map[string]FleetMemberInput func (FleetMemberMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*FleetMember)(nil)).Elem() } func (i FleetMemberMap) ToFleetMemberMapOutput() FleetMemberMapOutput { return i.ToFleetMemberMapOutputWithContext(context.Background()) } func (i FleetMemberMap) ToFleetMemberMapOutputWithContext(ctx context.Context) FleetMemberMapOutput { return pulumi.ToOutputWithContext(ctx, i).(FleetMemberMapOutput) } type FleetMemberOutput struct{ *pulumi.OutputState } func (FleetMemberOutput) ElementType() reflect.Type { return reflect.TypeOf((**FleetMember)(nil)).Elem() } func (o FleetMemberOutput) ToFleetMemberOutput() FleetMemberOutput { return o } func (o FleetMemberOutput) ToFleetMemberOutputWithContext(ctx context.Context) FleetMemberOutput { return o } // The group this member belongs to for multi-cluster update management. func (o FleetMemberOutput) Group() pulumi.StringPtrOutput { return o.ApplyT(func(v *FleetMember) pulumi.StringPtrOutput { return v.Group }).(pulumi.StringPtrOutput) } // The ARM resource ID of the cluster that joins the Fleet. Changing this forces a new Kubernetes Fleet Member to be created. func (o FleetMemberOutput) KubernetesClusterId() pulumi.StringOutput { return o.ApplyT(func(v *FleetMember) pulumi.StringOutput { return v.KubernetesClusterId }).(pulumi.StringOutput) } // Specifies the Kubernetes Fleet Id within which this Kubernetes Fleet Member should exist. Changing this forces a new Kubernetes Fleet Member to be created. func (o FleetMemberOutput) KubernetesFleetId() pulumi.StringOutput { return o.ApplyT(func(v *FleetMember) pulumi.StringOutput { return v.KubernetesFleetId }).(pulumi.StringOutput) } // Specifies the name of this Kubernetes Fleet Member. Changing this forces a new Kubernetes Fleet Member to be created. func (o FleetMemberOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *FleetMember) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } type FleetMemberArrayOutput struct{ *pulumi.OutputState } func (FleetMemberArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*FleetMember)(nil)).Elem() } func (o FleetMemberArrayOutput) ToFleetMemberArrayOutput() FleetMemberArrayOutput { return o } func (o FleetMemberArrayOutput) ToFleetMemberArrayOutputWithContext(ctx context.Context) FleetMemberArrayOutput { return o } func (o FleetMemberArrayOutput) Index(i pulumi.IntInput) FleetMemberOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *FleetMember { return vs[0].([]*FleetMember)[vs[1].(int)] }).(FleetMemberOutput) } type FleetMemberMapOutput struct{ *pulumi.OutputState } func (FleetMemberMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*FleetMember)(nil)).Elem() } func (o FleetMemberMapOutput) ToFleetMemberMapOutput() FleetMemberMapOutput { return o } func (o FleetMemberMapOutput) ToFleetMemberMapOutputWithContext(ctx context.Context) FleetMemberMapOutput { return o } func (o FleetMemberMapOutput) MapIndex(k pulumi.StringInput) FleetMemberOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *FleetMember { return vs[0].(map[string]*FleetMember)[vs[1].(string)] }).(FleetMemberOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*FleetMemberInput)(nil)).Elem(), &FleetMember{}) pulumi.RegisterInputType(reflect.TypeOf((*FleetMemberArrayInput)(nil)).Elem(), FleetMemberArray{}) pulumi.RegisterInputType(reflect.TypeOf((*FleetMemberMapInput)(nil)).Elem(), FleetMemberMap{}) pulumi.RegisterOutputType(FleetMemberOutput{}) pulumi.RegisterOutputType(FleetMemberArrayOutput{}) pulumi.RegisterOutputType(FleetMemberMapOutput{}) }
go
Apache-2.0
b66e1472775a89cca43f5050fef806854a7c3fa3
2026-01-07T09:44:27.619514Z
false
pulumi/pulumi-azure
https://github.com/pulumi/pulumi-azure/blob/b66e1472775a89cca43f5050fef806854a7c3fa3/sdk/go/azure/containerservice/getClusterNodePool.go
sdk/go/azure/containerservice/getClusterNodePool.go
// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package containerservice import ( "context" "reflect" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Use this data source to access information about an existing Kubernetes Cluster Node Pool. // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/containerservice" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { // example, err := containerservice.GetClusterNodePool(ctx, &containerservice.GetClusterNodePoolArgs{ // Name: "existing", // KubernetesClusterName: "existing-cluster", // ResourceGroupName: "existing-resource-group", // }, nil) // if err != nil { // return err // } // ctx.Export("id", example.Id) // return nil // }) // } // // ``` // // ## API Providers // // <!-- This section is generated, changes will be overwritten --> // This data source uses the following Azure API Providers: // // * `Microsoft.ContainerService` - 2025-07-01 func GetClusterNodePool(ctx *pulumi.Context, args *GetClusterNodePoolArgs, opts ...pulumi.InvokeOption) (*GetClusterNodePoolResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv GetClusterNodePoolResult err := ctx.Invoke("azure:containerservice/getClusterNodePool:getClusterNodePool", args, &rv, opts...) if err != nil { return nil, err } return &rv, nil } // A collection of arguments for invoking getClusterNodePool. type GetClusterNodePoolArgs struct { // The Name of the Kubernetes Cluster where this Node Pool is located. KubernetesClusterName string `pulumi:"kubernetesClusterName"` // The name of this Kubernetes Cluster Node Pool. Name string `pulumi:"name"` // The name of the Resource Group where the Kubernetes Cluster exists. ResourceGroupName string `pulumi:"resourceGroupName"` } // A collection of values returned by getClusterNodePool. type GetClusterNodePoolResult struct { // Does this Node Pool have Auto-Scaling enabled? AutoScalingEnabled bool `pulumi:"autoScalingEnabled"` // The eviction policy used for Virtual Machines in the Virtual Machine Scale Set, when `priority` is set to `Spot`. EvictionPolicy string `pulumi:"evictionPolicy"` GpuDriver string `pulumi:"gpuDriver"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` KubernetesClusterName string `pulumi:"kubernetesClusterName"` // The maximum number of Nodes allowed when auto-scaling is enabled. MaxCount int `pulumi:"maxCount"` // The maximum number of Pods allowed on each Node in this Node Pool. MaxPods int `pulumi:"maxPods"` // The minimum number of Nodes allowed when auto-scaling is enabled. MinCount int `pulumi:"minCount"` // The Mode for this Node Pool, specifying how these Nodes should be used (for either System or User resources). Mode string `pulumi:"mode"` Name string `pulumi:"name"` // The current number of Nodes in the Node Pool. NodeCount int `pulumi:"nodeCount"` // A map of Kubernetes Labels applied to each Node in this Node Pool. NodeLabels map[string]string `pulumi:"nodeLabels"` // Do nodes in this Node Pool have a Public IP Address? NodePublicIpEnabled bool `pulumi:"nodePublicIpEnabled"` // Resource ID for the Public IP Addresses Prefix for the nodes in this Agent Pool. NodePublicIpPrefixId string `pulumi:"nodePublicIpPrefixId"` // A map of Kubernetes Taints applied to each Node in this Node Pool. NodeTaints []string `pulumi:"nodeTaints"` // The version of Kubernetes configured on each Node in this Node Pool. OrchestratorVersion string `pulumi:"orchestratorVersion"` // The size of the OS Disk on each Node in this Node Pool. OsDiskSizeGb int `pulumi:"osDiskSizeGb"` // The type of the OS Disk on each Node in this Node Pool. OsDiskType string `pulumi:"osDiskType"` // The operating system used on each Node in this Node Pool. OsType string `pulumi:"osType"` // The priority of the Virtual Machines in the Virtual Machine Scale Set backing this Node Pool. Priority string `pulumi:"priority"` // The ID of the Proximity Placement Group where the Virtual Machine Scale Set backing this Node Pool will be placed. ProximityPlacementGroupId string `pulumi:"proximityPlacementGroupId"` ResourceGroupName string `pulumi:"resourceGroupName"` // The maximum price being paid for Virtual Machines in this Scale Set. `-1` means the current on-demand price for a Virtual Machine. SpotMaxPrice float64 `pulumi:"spotMaxPrice"` // A mapping of tags assigned to the Kubernetes Cluster Node Pool. Tags map[string]string `pulumi:"tags"` // A `upgradeSettings` block as documented below. UpgradeSettings []GetClusterNodePoolUpgradeSetting `pulumi:"upgradeSettings"` // The size of the Virtual Machines used in the Virtual Machine Scale Set backing this Node Pool. VmSize string `pulumi:"vmSize"` // The ID of the Subnet in which this Node Pool exists. VnetSubnetId string `pulumi:"vnetSubnetId"` // A list of the Availability Zones where the Nodes in this Node Pool exist. Zones []string `pulumi:"zones"` } func GetClusterNodePoolOutput(ctx *pulumi.Context, args GetClusterNodePoolOutputArgs, opts ...pulumi.InvokeOption) GetClusterNodePoolResultOutput { return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetClusterNodePoolResultOutput, error) { args := v.(GetClusterNodePoolArgs) options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} return ctx.InvokeOutput("azure:containerservice/getClusterNodePool:getClusterNodePool", args, GetClusterNodePoolResultOutput{}, options).(GetClusterNodePoolResultOutput), nil }).(GetClusterNodePoolResultOutput) } // A collection of arguments for invoking getClusterNodePool. type GetClusterNodePoolOutputArgs struct { // The Name of the Kubernetes Cluster where this Node Pool is located. KubernetesClusterName pulumi.StringInput `pulumi:"kubernetesClusterName"` // The name of this Kubernetes Cluster Node Pool. Name pulumi.StringInput `pulumi:"name"` // The name of the Resource Group where the Kubernetes Cluster exists. ResourceGroupName pulumi.StringInput `pulumi:"resourceGroupName"` } func (GetClusterNodePoolOutputArgs) ElementType() reflect.Type { return reflect.TypeOf((*GetClusterNodePoolArgs)(nil)).Elem() } // A collection of values returned by getClusterNodePool. type GetClusterNodePoolResultOutput struct{ *pulumi.OutputState } func (GetClusterNodePoolResultOutput) ElementType() reflect.Type { return reflect.TypeOf((*GetClusterNodePoolResult)(nil)).Elem() } func (o GetClusterNodePoolResultOutput) ToGetClusterNodePoolResultOutput() GetClusterNodePoolResultOutput { return o } func (o GetClusterNodePoolResultOutput) ToGetClusterNodePoolResultOutputWithContext(ctx context.Context) GetClusterNodePoolResultOutput { return o } // Does this Node Pool have Auto-Scaling enabled? func (o GetClusterNodePoolResultOutput) AutoScalingEnabled() pulumi.BoolOutput { return o.ApplyT(func(v GetClusterNodePoolResult) bool { return v.AutoScalingEnabled }).(pulumi.BoolOutput) } // The eviction policy used for Virtual Machines in the Virtual Machine Scale Set, when `priority` is set to `Spot`. func (o GetClusterNodePoolResultOutput) EvictionPolicy() pulumi.StringOutput { return o.ApplyT(func(v GetClusterNodePoolResult) string { return v.EvictionPolicy }).(pulumi.StringOutput) } func (o GetClusterNodePoolResultOutput) GpuDriver() pulumi.StringOutput { return o.ApplyT(func(v GetClusterNodePoolResult) string { return v.GpuDriver }).(pulumi.StringOutput) } // The provider-assigned unique ID for this managed resource. func (o GetClusterNodePoolResultOutput) Id() pulumi.StringOutput { return o.ApplyT(func(v GetClusterNodePoolResult) string { return v.Id }).(pulumi.StringOutput) } func (o GetClusterNodePoolResultOutput) KubernetesClusterName() pulumi.StringOutput { return o.ApplyT(func(v GetClusterNodePoolResult) string { return v.KubernetesClusterName }).(pulumi.StringOutput) } // The maximum number of Nodes allowed when auto-scaling is enabled. func (o GetClusterNodePoolResultOutput) MaxCount() pulumi.IntOutput { return o.ApplyT(func(v GetClusterNodePoolResult) int { return v.MaxCount }).(pulumi.IntOutput) } // The maximum number of Pods allowed on each Node in this Node Pool. func (o GetClusterNodePoolResultOutput) MaxPods() pulumi.IntOutput { return o.ApplyT(func(v GetClusterNodePoolResult) int { return v.MaxPods }).(pulumi.IntOutput) } // The minimum number of Nodes allowed when auto-scaling is enabled. func (o GetClusterNodePoolResultOutput) MinCount() pulumi.IntOutput { return o.ApplyT(func(v GetClusterNodePoolResult) int { return v.MinCount }).(pulumi.IntOutput) } // The Mode for this Node Pool, specifying how these Nodes should be used (for either System or User resources). func (o GetClusterNodePoolResultOutput) Mode() pulumi.StringOutput { return o.ApplyT(func(v GetClusterNodePoolResult) string { return v.Mode }).(pulumi.StringOutput) } func (o GetClusterNodePoolResultOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v GetClusterNodePoolResult) string { return v.Name }).(pulumi.StringOutput) } // The current number of Nodes in the Node Pool. func (o GetClusterNodePoolResultOutput) NodeCount() pulumi.IntOutput { return o.ApplyT(func(v GetClusterNodePoolResult) int { return v.NodeCount }).(pulumi.IntOutput) } // A map of Kubernetes Labels applied to each Node in this Node Pool. func (o GetClusterNodePoolResultOutput) NodeLabels() pulumi.StringMapOutput { return o.ApplyT(func(v GetClusterNodePoolResult) map[string]string { return v.NodeLabels }).(pulumi.StringMapOutput) } // Do nodes in this Node Pool have a Public IP Address? func (o GetClusterNodePoolResultOutput) NodePublicIpEnabled() pulumi.BoolOutput { return o.ApplyT(func(v GetClusterNodePoolResult) bool { return v.NodePublicIpEnabled }).(pulumi.BoolOutput) } // Resource ID for the Public IP Addresses Prefix for the nodes in this Agent Pool. func (o GetClusterNodePoolResultOutput) NodePublicIpPrefixId() pulumi.StringOutput { return o.ApplyT(func(v GetClusterNodePoolResult) string { return v.NodePublicIpPrefixId }).(pulumi.StringOutput) } // A map of Kubernetes Taints applied to each Node in this Node Pool. func (o GetClusterNodePoolResultOutput) NodeTaints() pulumi.StringArrayOutput { return o.ApplyT(func(v GetClusterNodePoolResult) []string { return v.NodeTaints }).(pulumi.StringArrayOutput) } // The version of Kubernetes configured on each Node in this Node Pool. func (o GetClusterNodePoolResultOutput) OrchestratorVersion() pulumi.StringOutput { return o.ApplyT(func(v GetClusterNodePoolResult) string { return v.OrchestratorVersion }).(pulumi.StringOutput) } // The size of the OS Disk on each Node in this Node Pool. func (o GetClusterNodePoolResultOutput) OsDiskSizeGb() pulumi.IntOutput { return o.ApplyT(func(v GetClusterNodePoolResult) int { return v.OsDiskSizeGb }).(pulumi.IntOutput) } // The type of the OS Disk on each Node in this Node Pool. func (o GetClusterNodePoolResultOutput) OsDiskType() pulumi.StringOutput { return o.ApplyT(func(v GetClusterNodePoolResult) string { return v.OsDiskType }).(pulumi.StringOutput) } // The operating system used on each Node in this Node Pool. func (o GetClusterNodePoolResultOutput) OsType() pulumi.StringOutput { return o.ApplyT(func(v GetClusterNodePoolResult) string { return v.OsType }).(pulumi.StringOutput) } // The priority of the Virtual Machines in the Virtual Machine Scale Set backing this Node Pool. func (o GetClusterNodePoolResultOutput) Priority() pulumi.StringOutput { return o.ApplyT(func(v GetClusterNodePoolResult) string { return v.Priority }).(pulumi.StringOutput) } // The ID of the Proximity Placement Group where the Virtual Machine Scale Set backing this Node Pool will be placed. func (o GetClusterNodePoolResultOutput) ProximityPlacementGroupId() pulumi.StringOutput { return o.ApplyT(func(v GetClusterNodePoolResult) string { return v.ProximityPlacementGroupId }).(pulumi.StringOutput) } func (o GetClusterNodePoolResultOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v GetClusterNodePoolResult) string { return v.ResourceGroupName }).(pulumi.StringOutput) } // The maximum price being paid for Virtual Machines in this Scale Set. `-1` means the current on-demand price for a Virtual Machine. func (o GetClusterNodePoolResultOutput) SpotMaxPrice() pulumi.Float64Output { return o.ApplyT(func(v GetClusterNodePoolResult) float64 { return v.SpotMaxPrice }).(pulumi.Float64Output) } // A mapping of tags assigned to the Kubernetes Cluster Node Pool. func (o GetClusterNodePoolResultOutput) Tags() pulumi.StringMapOutput { return o.ApplyT(func(v GetClusterNodePoolResult) map[string]string { return v.Tags }).(pulumi.StringMapOutput) } // A `upgradeSettings` block as documented below. func (o GetClusterNodePoolResultOutput) UpgradeSettings() GetClusterNodePoolUpgradeSettingArrayOutput { return o.ApplyT(func(v GetClusterNodePoolResult) []GetClusterNodePoolUpgradeSetting { return v.UpgradeSettings }).(GetClusterNodePoolUpgradeSettingArrayOutput) } // The size of the Virtual Machines used in the Virtual Machine Scale Set backing this Node Pool. func (o GetClusterNodePoolResultOutput) VmSize() pulumi.StringOutput { return o.ApplyT(func(v GetClusterNodePoolResult) string { return v.VmSize }).(pulumi.StringOutput) } // The ID of the Subnet in which this Node Pool exists. func (o GetClusterNodePoolResultOutput) VnetSubnetId() pulumi.StringOutput { return o.ApplyT(func(v GetClusterNodePoolResult) string { return v.VnetSubnetId }).(pulumi.StringOutput) } // A list of the Availability Zones where the Nodes in this Node Pool exist. func (o GetClusterNodePoolResultOutput) Zones() pulumi.StringArrayOutput { return o.ApplyT(func(v GetClusterNodePoolResult) []string { return v.Zones }).(pulumi.StringArrayOutput) } func init() { pulumi.RegisterOutputType(GetClusterNodePoolResultOutput{}) }
go
Apache-2.0
b66e1472775a89cca43f5050fef806854a7c3fa3
2026-01-07T09:44:27.619514Z
false
pulumi/pulumi-azure
https://github.com/pulumi/pulumi-azure/blob/b66e1472775a89cca43f5050fef806854a7c3fa3/sdk/go/azure/containerservice/getGroup.go
sdk/go/azure/containerservice/getGroup.go
// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package containerservice import ( "context" "reflect" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Use this data source to access information about an existing Container Group instance. // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/containerservice" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { // example, err := containerservice.LookupGroup(ctx, &containerservice.LookupGroupArgs{ // Name: "existing", // ResourceGroupName: "existing", // }, nil) // if err != nil { // return err // } // ctx.Export("id", example.Id) // ctx.Export("ipAddress", example.IpAddress) // ctx.Export("fqdn", example.Fqdn) // return nil // }) // } // // ``` // // ## API Providers // // <!-- This section is generated, changes will be overwritten --> // This data source uses the following Azure API Providers: // // * `Microsoft.ContainerInstance` - 2023-05-01 func LookupGroup(ctx *pulumi.Context, args *LookupGroupArgs, opts ...pulumi.InvokeOption) (*LookupGroupResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupGroupResult err := ctx.Invoke("azure:containerservice/getGroup:getGroup", args, &rv, opts...) if err != nil { return nil, err } return &rv, nil } // A collection of arguments for invoking getGroup. type LookupGroupArgs struct { // The name of this Container Group instance. Name string `pulumi:"name"` // The name of the Resource Group where the Container Group instance exists. ResourceGroupName string `pulumi:"resourceGroupName"` // A list of Availability Zones in which this Container Group is located. Zones []string `pulumi:"zones"` } // A collection of values returned by getGroup. type LookupGroupResult struct { // The FQDN of the Container Group instance derived from `dnsNameLabel`. Fqdn string `pulumi:"fqdn"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` // A `identity` block as defined below. Identities []GetGroupIdentity `pulumi:"identities"` // The IP address allocated to the Container Group instance. IpAddress string `pulumi:"ipAddress"` // The Azure Region where the Container Group instance exists. Location string `pulumi:"location"` Name string `pulumi:"name"` ResourceGroupName string `pulumi:"resourceGroupName"` // The subnet resource IDs for a container group. SubnetIds []string `pulumi:"subnetIds"` // A mapping of tags assigned to the Container Group instance. Tags map[string]string `pulumi:"tags"` // A list of Availability Zones in which this Container Group is located. Zones []string `pulumi:"zones"` } func LookupGroupOutput(ctx *pulumi.Context, args LookupGroupOutputArgs, opts ...pulumi.InvokeOption) LookupGroupResultOutput { return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupGroupResultOutput, error) { args := v.(LookupGroupArgs) options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} return ctx.InvokeOutput("azure:containerservice/getGroup:getGroup", args, LookupGroupResultOutput{}, options).(LookupGroupResultOutput), nil }).(LookupGroupResultOutput) } // A collection of arguments for invoking getGroup. type LookupGroupOutputArgs struct { // The name of this Container Group instance. Name pulumi.StringInput `pulumi:"name"` // The name of the Resource Group where the Container Group instance exists. ResourceGroupName pulumi.StringInput `pulumi:"resourceGroupName"` // A list of Availability Zones in which this Container Group is located. Zones pulumi.StringArrayInput `pulumi:"zones"` } func (LookupGroupOutputArgs) ElementType() reflect.Type { return reflect.TypeOf((*LookupGroupArgs)(nil)).Elem() } // A collection of values returned by getGroup. type LookupGroupResultOutput struct{ *pulumi.OutputState } func (LookupGroupResultOutput) ElementType() reflect.Type { return reflect.TypeOf((*LookupGroupResult)(nil)).Elem() } func (o LookupGroupResultOutput) ToLookupGroupResultOutput() LookupGroupResultOutput { return o } func (o LookupGroupResultOutput) ToLookupGroupResultOutputWithContext(ctx context.Context) LookupGroupResultOutput { return o } // The FQDN of the Container Group instance derived from `dnsNameLabel`. func (o LookupGroupResultOutput) Fqdn() pulumi.StringOutput { return o.ApplyT(func(v LookupGroupResult) string { return v.Fqdn }).(pulumi.StringOutput) } // The provider-assigned unique ID for this managed resource. func (o LookupGroupResultOutput) Id() pulumi.StringOutput { return o.ApplyT(func(v LookupGroupResult) string { return v.Id }).(pulumi.StringOutput) } // A `identity` block as defined below. func (o LookupGroupResultOutput) Identities() GetGroupIdentityArrayOutput { return o.ApplyT(func(v LookupGroupResult) []GetGroupIdentity { return v.Identities }).(GetGroupIdentityArrayOutput) } // The IP address allocated to the Container Group instance. func (o LookupGroupResultOutput) IpAddress() pulumi.StringOutput { return o.ApplyT(func(v LookupGroupResult) string { return v.IpAddress }).(pulumi.StringOutput) } // The Azure Region where the Container Group instance exists. func (o LookupGroupResultOutput) Location() pulumi.StringOutput { return o.ApplyT(func(v LookupGroupResult) string { return v.Location }).(pulumi.StringOutput) } func (o LookupGroupResultOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v LookupGroupResult) string { return v.Name }).(pulumi.StringOutput) } func (o LookupGroupResultOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v LookupGroupResult) string { return v.ResourceGroupName }).(pulumi.StringOutput) } // The subnet resource IDs for a container group. func (o LookupGroupResultOutput) SubnetIds() pulumi.StringArrayOutput { return o.ApplyT(func(v LookupGroupResult) []string { return v.SubnetIds }).(pulumi.StringArrayOutput) } // A mapping of tags assigned to the Container Group instance. func (o LookupGroupResultOutput) Tags() pulumi.StringMapOutput { return o.ApplyT(func(v LookupGroupResult) map[string]string { return v.Tags }).(pulumi.StringMapOutput) } // A list of Availability Zones in which this Container Group is located. func (o LookupGroupResultOutput) Zones() pulumi.StringArrayOutput { return o.ApplyT(func(v LookupGroupResult) []string { return v.Zones }).(pulumi.StringArrayOutput) } func init() { pulumi.RegisterOutputType(LookupGroupResultOutput{}) }
go
Apache-2.0
b66e1472775a89cca43f5050fef806854a7c3fa3
2026-01-07T09:44:27.619514Z
false
pulumi/pulumi-azure
https://github.com/pulumi/pulumi-azure/blob/b66e1472775a89cca43f5050fef806854a7c3fa3/sdk/go/azure/containerservice/registryCacheRule.go
sdk/go/azure/containerservice/registryCacheRule.go
// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package containerservice import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages an Azure Container Registry Cache Rule. // // > **Note:** All arguments including the access key will be stored in the raw state as plain-text. // [Read more about sensitive data in state](https://www.terraform.io/docs/state/sensitive-data.html). // // ## Example Usage // // ```go // package main // // import ( // // "fmt" // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/containerservice" // "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-resources"), // Location: pulumi.String("West Europe"), // }) // if err != nil { // return err // } // acr, err := containerservice.NewRegistry(ctx, "acr", &containerservice.RegistryArgs{ // Name: pulumi.String("containerRegistry1"), // ResourceGroupName: example.Name, // Location: example.Location, // Sku: pulumi.String("Basic"), // }) // if err != nil { // return err // } // _, err = containerservice.NewRegistryCacheRule(ctx, "cache_rule", &containerservice.RegistryCacheRuleArgs{ // Name: pulumi.String("cacherule"), // ContainerRegistryId: acr.ID(), // TargetRepo: pulumi.String("target"), // SourceRepo: pulumi.String("docker.io/hello-world"), // CredentialSetId: acr.ID().ApplyT(func(id string) (string, error) { // return fmt.Sprintf("%v/credentialSets/example", id), nil // }).(pulumi.StringOutput), // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## API Providers // // <!-- This section is generated, changes will be overwritten --> // This resource uses the following Azure API Providers: // // * `Microsoft.ContainerRegistry` - 2023-07-01 // // ## Import // // Container Registry Cache Rules can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:containerservice/registryCacheRule:RegistryCacheRule example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/cacheRules/myCacheRule // ``` type RegistryCacheRule struct { pulumi.CustomResourceState // The ID of the Container Registry where the Cache Rule should apply. Changing this forces a new resource to be created. ContainerRegistryId pulumi.StringOutput `pulumi:"containerRegistryId"` // The ARM resource ID of the Credential Store which is associated with the Cache Rule. CredentialSetId pulumi.StringPtrOutput `pulumi:"credentialSetId"` // Specifies the name of the Container Registry Cache Rule. Only Alphanumeric characters allowed. Changing this forces a new resource to be created. Name pulumi.StringOutput `pulumi:"name"` // The name of the source repository path. Changing this forces a new resource to be created. SourceRepo pulumi.StringOutput `pulumi:"sourceRepo"` // The name of the new repository path to store artifacts. Changing this forces a new resource to be created. TargetRepo pulumi.StringOutput `pulumi:"targetRepo"` } // NewRegistryCacheRule registers a new resource with the given unique name, arguments, and options. func NewRegistryCacheRule(ctx *pulumi.Context, name string, args *RegistryCacheRuleArgs, opts ...pulumi.ResourceOption) (*RegistryCacheRule, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.ContainerRegistryId == nil { return nil, errors.New("invalid value for required argument 'ContainerRegistryId'") } if args.SourceRepo == nil { return nil, errors.New("invalid value for required argument 'SourceRepo'") } if args.TargetRepo == nil { return nil, errors.New("invalid value for required argument 'TargetRepo'") } opts = internal.PkgResourceDefaultOpts(opts) var resource RegistryCacheRule err := ctx.RegisterResource("azure:containerservice/registryCacheRule:RegistryCacheRule", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetRegistryCacheRule gets an existing RegistryCacheRule 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 GetRegistryCacheRule(ctx *pulumi.Context, name string, id pulumi.IDInput, state *RegistryCacheRuleState, opts ...pulumi.ResourceOption) (*RegistryCacheRule, error) { var resource RegistryCacheRule err := ctx.ReadResource("azure:containerservice/registryCacheRule:RegistryCacheRule", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering RegistryCacheRule resources. type registryCacheRuleState struct { // The ID of the Container Registry where the Cache Rule should apply. Changing this forces a new resource to be created. ContainerRegistryId *string `pulumi:"containerRegistryId"` // The ARM resource ID of the Credential Store which is associated with the Cache Rule. CredentialSetId *string `pulumi:"credentialSetId"` // Specifies the name of the Container Registry Cache Rule. Only Alphanumeric characters allowed. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // The name of the source repository path. Changing this forces a new resource to be created. SourceRepo *string `pulumi:"sourceRepo"` // The name of the new repository path to store artifacts. Changing this forces a new resource to be created. TargetRepo *string `pulumi:"targetRepo"` } type RegistryCacheRuleState struct { // The ID of the Container Registry where the Cache Rule should apply. Changing this forces a new resource to be created. ContainerRegistryId pulumi.StringPtrInput // The ARM resource ID of the Credential Store which is associated with the Cache Rule. CredentialSetId pulumi.StringPtrInput // Specifies the name of the Container Registry Cache Rule. Only Alphanumeric characters allowed. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // The name of the source repository path. Changing this forces a new resource to be created. SourceRepo pulumi.StringPtrInput // The name of the new repository path to store artifacts. Changing this forces a new resource to be created. TargetRepo pulumi.StringPtrInput } func (RegistryCacheRuleState) ElementType() reflect.Type { return reflect.TypeOf((*registryCacheRuleState)(nil)).Elem() } type registryCacheRuleArgs struct { // The ID of the Container Registry where the Cache Rule should apply. Changing this forces a new resource to be created. ContainerRegistryId string `pulumi:"containerRegistryId"` // The ARM resource ID of the Credential Store which is associated with the Cache Rule. CredentialSetId *string `pulumi:"credentialSetId"` // Specifies the name of the Container Registry Cache Rule. Only Alphanumeric characters allowed. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // The name of the source repository path. Changing this forces a new resource to be created. SourceRepo string `pulumi:"sourceRepo"` // The name of the new repository path to store artifacts. Changing this forces a new resource to be created. TargetRepo string `pulumi:"targetRepo"` } // The set of arguments for constructing a RegistryCacheRule resource. type RegistryCacheRuleArgs struct { // The ID of the Container Registry where the Cache Rule should apply. Changing this forces a new resource to be created. ContainerRegistryId pulumi.StringInput // The ARM resource ID of the Credential Store which is associated with the Cache Rule. CredentialSetId pulumi.StringPtrInput // Specifies the name of the Container Registry Cache Rule. Only Alphanumeric characters allowed. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // The name of the source repository path. Changing this forces a new resource to be created. SourceRepo pulumi.StringInput // The name of the new repository path to store artifacts. Changing this forces a new resource to be created. TargetRepo pulumi.StringInput } func (RegistryCacheRuleArgs) ElementType() reflect.Type { return reflect.TypeOf((*registryCacheRuleArgs)(nil)).Elem() } type RegistryCacheRuleInput interface { pulumi.Input ToRegistryCacheRuleOutput() RegistryCacheRuleOutput ToRegistryCacheRuleOutputWithContext(ctx context.Context) RegistryCacheRuleOutput } func (*RegistryCacheRule) ElementType() reflect.Type { return reflect.TypeOf((**RegistryCacheRule)(nil)).Elem() } func (i *RegistryCacheRule) ToRegistryCacheRuleOutput() RegistryCacheRuleOutput { return i.ToRegistryCacheRuleOutputWithContext(context.Background()) } func (i *RegistryCacheRule) ToRegistryCacheRuleOutputWithContext(ctx context.Context) RegistryCacheRuleOutput { return pulumi.ToOutputWithContext(ctx, i).(RegistryCacheRuleOutput) } // RegistryCacheRuleArrayInput is an input type that accepts RegistryCacheRuleArray and RegistryCacheRuleArrayOutput values. // You can construct a concrete instance of `RegistryCacheRuleArrayInput` via: // // RegistryCacheRuleArray{ RegistryCacheRuleArgs{...} } type RegistryCacheRuleArrayInput interface { pulumi.Input ToRegistryCacheRuleArrayOutput() RegistryCacheRuleArrayOutput ToRegistryCacheRuleArrayOutputWithContext(context.Context) RegistryCacheRuleArrayOutput } type RegistryCacheRuleArray []RegistryCacheRuleInput func (RegistryCacheRuleArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*RegistryCacheRule)(nil)).Elem() } func (i RegistryCacheRuleArray) ToRegistryCacheRuleArrayOutput() RegistryCacheRuleArrayOutput { return i.ToRegistryCacheRuleArrayOutputWithContext(context.Background()) } func (i RegistryCacheRuleArray) ToRegistryCacheRuleArrayOutputWithContext(ctx context.Context) RegistryCacheRuleArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(RegistryCacheRuleArrayOutput) } // RegistryCacheRuleMapInput is an input type that accepts RegistryCacheRuleMap and RegistryCacheRuleMapOutput values. // You can construct a concrete instance of `RegistryCacheRuleMapInput` via: // // RegistryCacheRuleMap{ "key": RegistryCacheRuleArgs{...} } type RegistryCacheRuleMapInput interface { pulumi.Input ToRegistryCacheRuleMapOutput() RegistryCacheRuleMapOutput ToRegistryCacheRuleMapOutputWithContext(context.Context) RegistryCacheRuleMapOutput } type RegistryCacheRuleMap map[string]RegistryCacheRuleInput func (RegistryCacheRuleMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*RegistryCacheRule)(nil)).Elem() } func (i RegistryCacheRuleMap) ToRegistryCacheRuleMapOutput() RegistryCacheRuleMapOutput { return i.ToRegistryCacheRuleMapOutputWithContext(context.Background()) } func (i RegistryCacheRuleMap) ToRegistryCacheRuleMapOutputWithContext(ctx context.Context) RegistryCacheRuleMapOutput { return pulumi.ToOutputWithContext(ctx, i).(RegistryCacheRuleMapOutput) } type RegistryCacheRuleOutput struct{ *pulumi.OutputState } func (RegistryCacheRuleOutput) ElementType() reflect.Type { return reflect.TypeOf((**RegistryCacheRule)(nil)).Elem() } func (o RegistryCacheRuleOutput) ToRegistryCacheRuleOutput() RegistryCacheRuleOutput { return o } func (o RegistryCacheRuleOutput) ToRegistryCacheRuleOutputWithContext(ctx context.Context) RegistryCacheRuleOutput { return o } // The ID of the Container Registry where the Cache Rule should apply. Changing this forces a new resource to be created. func (o RegistryCacheRuleOutput) ContainerRegistryId() pulumi.StringOutput { return o.ApplyT(func(v *RegistryCacheRule) pulumi.StringOutput { return v.ContainerRegistryId }).(pulumi.StringOutput) } // The ARM resource ID of the Credential Store which is associated with the Cache Rule. func (o RegistryCacheRuleOutput) CredentialSetId() pulumi.StringPtrOutput { return o.ApplyT(func(v *RegistryCacheRule) pulumi.StringPtrOutput { return v.CredentialSetId }).(pulumi.StringPtrOutput) } // Specifies the name of the Container Registry Cache Rule. Only Alphanumeric characters allowed. Changing this forces a new resource to be created. func (o RegistryCacheRuleOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *RegistryCacheRule) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // The name of the source repository path. Changing this forces a new resource to be created. func (o RegistryCacheRuleOutput) SourceRepo() pulumi.StringOutput { return o.ApplyT(func(v *RegistryCacheRule) pulumi.StringOutput { return v.SourceRepo }).(pulumi.StringOutput) } // The name of the new repository path to store artifacts. Changing this forces a new resource to be created. func (o RegistryCacheRuleOutput) TargetRepo() pulumi.StringOutput { return o.ApplyT(func(v *RegistryCacheRule) pulumi.StringOutput { return v.TargetRepo }).(pulumi.StringOutput) } type RegistryCacheRuleArrayOutput struct{ *pulumi.OutputState } func (RegistryCacheRuleArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*RegistryCacheRule)(nil)).Elem() } func (o RegistryCacheRuleArrayOutput) ToRegistryCacheRuleArrayOutput() RegistryCacheRuleArrayOutput { return o } func (o RegistryCacheRuleArrayOutput) ToRegistryCacheRuleArrayOutputWithContext(ctx context.Context) RegistryCacheRuleArrayOutput { return o } func (o RegistryCacheRuleArrayOutput) Index(i pulumi.IntInput) RegistryCacheRuleOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *RegistryCacheRule { return vs[0].([]*RegistryCacheRule)[vs[1].(int)] }).(RegistryCacheRuleOutput) } type RegistryCacheRuleMapOutput struct{ *pulumi.OutputState } func (RegistryCacheRuleMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*RegistryCacheRule)(nil)).Elem() } func (o RegistryCacheRuleMapOutput) ToRegistryCacheRuleMapOutput() RegistryCacheRuleMapOutput { return o } func (o RegistryCacheRuleMapOutput) ToRegistryCacheRuleMapOutputWithContext(ctx context.Context) RegistryCacheRuleMapOutput { return o } func (o RegistryCacheRuleMapOutput) MapIndex(k pulumi.StringInput) RegistryCacheRuleOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *RegistryCacheRule { return vs[0].(map[string]*RegistryCacheRule)[vs[1].(string)] }).(RegistryCacheRuleOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*RegistryCacheRuleInput)(nil)).Elem(), &RegistryCacheRule{}) pulumi.RegisterInputType(reflect.TypeOf((*RegistryCacheRuleArrayInput)(nil)).Elem(), RegistryCacheRuleArray{}) pulumi.RegisterInputType(reflect.TypeOf((*RegistryCacheRuleMapInput)(nil)).Elem(), RegistryCacheRuleMap{}) pulumi.RegisterOutputType(RegistryCacheRuleOutput{}) pulumi.RegisterOutputType(RegistryCacheRuleArrayOutput{}) pulumi.RegisterOutputType(RegistryCacheRuleMapOutput{}) }
go
Apache-2.0
b66e1472775a89cca43f5050fef806854a7c3fa3
2026-01-07T09:44:27.619514Z
false
pulumi/pulumi-azure
https://github.com/pulumi/pulumi-azure/blob/b66e1472775a89cca43f5050fef806854a7c3fa3/sdk/go/azure/containerservice/registryCredentialSet.go
sdk/go/azure/containerservice/registryCredentialSet.go
// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package containerservice import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a Container Registry Credential Set. // // ## Example Usage // // ### Minimal) // // > **Note:** Be aware that you will need to permit the Identity that is created for the Container Registry to have `get` on secrets to the Key Vault, e.g. using the `keyvault.AccessPolicy` resource. // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/containerservice" // "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-resources"), // Location: pulumi.String("West Europe"), // }) // if err != nil { // return err // } // exampleRegistry, err := containerservice.NewRegistry(ctx, "example", &containerservice.RegistryArgs{ // Name: pulumi.String("exampleContainerRegistry"), // ResourceGroupName: example.Name, // Location: example.Location, // Sku: pulumi.String("Basic"), // }) // if err != nil { // return err // } // _, err = containerservice.NewRegistryCredentialSet(ctx, "example", &containerservice.RegistryCredentialSetArgs{ // Name: pulumi.String("exampleCredentialSet"), // ContainerRegistryId: exampleRegistry.ID(), // LoginServer: pulumi.String("docker.io"), // Identity: &containerservice.RegistryCredentialSetIdentityArgs{ // Type: pulumi.String("SystemAssigned"), // }, // AuthenticationCredentials: &containerservice.RegistryCredentialSetAuthenticationCredentialsArgs{ // UsernameSecretId: pulumi.String("https://example-keyvault.vault.azure.net/secrets/example-user-name"), // PasswordSecretId: pulumi.String("https://example-keyvault.vault.azure.net/secrets/example-user-password"), // }, // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ### Full) // // This example provisions a key vault with two secrets, a container registry, a container registry credential set, and an access policy to allow the container registry to read the secrets from the key vault. // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/containerservice" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/keyvault" // "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-resources"), // Location: pulumi.String("West Europe"), // }) // if err != nil { // return err // } // current, err := core.GetClientConfig(ctx, map[string]interface{}{}, nil) // if err != nil { // return err // } // exampleKeyVault, err := keyvault.NewKeyVault(ctx, "example", &keyvault.KeyVaultArgs{ // Name: pulumi.String("examplekeyvault"), // Location: example.Location, // ResourceGroupName: example.Name, // TenantId: pulumi.String(current.TenantId), // SkuName: pulumi.String("standard"), // SoftDeleteRetentionDays: pulumi.Int(7), // AccessPolicies: keyvault.KeyVaultAccessPolicyArray{ // &keyvault.KeyVaultAccessPolicyArgs{ // TenantId: pulumi.String(current.TenantId), // ObjectId: pulumi.String(current.ObjectId), // CertificatePermissions: pulumi.StringArray{}, // KeyPermissions: pulumi.StringArray{}, // SecretPermissions: pulumi.StringArray{ // pulumi.String("Get"), // pulumi.String("Set"), // pulumi.String("Delete"), // pulumi.String("Purge"), // }, // }, // }, // }) // if err != nil { // return err // } // exampleUser, err := keyvault.NewSecret(ctx, "example_user", &keyvault.SecretArgs{ // KeyVaultId: exampleKeyVault.ID(), // Name: pulumi.String("example-user-name"), // Value: pulumi.String("name"), // }) // if err != nil { // return err // } // examplePassword, err := keyvault.NewSecret(ctx, "example_password", &keyvault.SecretArgs{ // KeyVaultId: exampleKeyVault.ID(), // Name: pulumi.String("example-user-password"), // Value: pulumi.String("password"), // }) // if err != nil { // return err // } // exampleRegistry, err := containerservice.NewRegistry(ctx, "example", &containerservice.RegistryArgs{ // Name: pulumi.String("exampleContainerRegistry"), // ResourceGroupName: example.Name, // Location: example.Location, // Sku: pulumi.String("Basic"), // }) // if err != nil { // return err // } // exampleRegistryCredentialSet, err := containerservice.NewRegistryCredentialSet(ctx, "example", &containerservice.RegistryCredentialSetArgs{ // Name: pulumi.String("exampleCredentialSet"), // ContainerRegistryId: exampleRegistry.ID(), // LoginServer: pulumi.String("docker.io"), // Identity: &containerservice.RegistryCredentialSetIdentityArgs{ // Type: pulumi.String("SystemAssigned"), // }, // AuthenticationCredentials: &containerservice.RegistryCredentialSetAuthenticationCredentialsArgs{ // UsernameSecretId: exampleUser.VersionlessId, // PasswordSecretId: examplePassword.VersionlessId, // }, // }) // if err != nil { // return err // } // _, err = keyvault.NewAccessPolicy(ctx, "read_secrets", &keyvault.AccessPolicyArgs{ // KeyVaultId: exampleKeyVault.ID(), // TenantId: pulumi.String(exampleRegistryCredentialSet.Identity.ApplyT(func(identity containerservice.RegistryCredentialSetIdentity) (*string, error) { // return &identity.TenantId, nil // }).(pulumi.StringPtrOutput)), // ObjectId: pulumi.String(exampleRegistryCredentialSet.Identity.ApplyT(func(identity containerservice.RegistryCredentialSetIdentity) (*string, error) { // return &identity.PrincipalId, nil // }).(pulumi.StringPtrOutput)), // SecretPermissions: pulumi.StringArray{ // pulumi.String("Get"), // }, // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## API Providers // // <!-- This section is generated, changes will be overwritten --> // This resource uses the following Azure API Providers: // // * `Microsoft.ContainerRegistry` - 2023-07-01 // // ## Import // // Container Registry Credential Sets can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:containerservice/registryCredentialSet:RegistryCredentialSet example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.ContainerRegistry/registries/registry1/credentialSets/credentialSet1 // ``` type RegistryCredentialSet struct { pulumi.CustomResourceState // A `authenticationCredentials` block as defined below. AuthenticationCredentials RegistryCredentialSetAuthenticationCredentialsOutput `pulumi:"authenticationCredentials"` // The ID of the Container Registry. Changing this forces a new Container Registry Credential Set to be created. ContainerRegistryId pulumi.StringOutput `pulumi:"containerRegistryId"` // An `identity` block as defined below. Identity RegistryCredentialSetIdentityOutput `pulumi:"identity"` // The login server for the Credential Set. Changing this forces a new Container Registry Credential Set to be created. LoginServer pulumi.StringOutput `pulumi:"loginServer"` // The name which should be used for this Container Registry Credential Set. Changing this forces a new Container Registry Credential Set to be created. Name pulumi.StringOutput `pulumi:"name"` } // NewRegistryCredentialSet registers a new resource with the given unique name, arguments, and options. func NewRegistryCredentialSet(ctx *pulumi.Context, name string, args *RegistryCredentialSetArgs, opts ...pulumi.ResourceOption) (*RegistryCredentialSet, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.AuthenticationCredentials == nil { return nil, errors.New("invalid value for required argument 'AuthenticationCredentials'") } if args.ContainerRegistryId == nil { return nil, errors.New("invalid value for required argument 'ContainerRegistryId'") } if args.Identity == nil { return nil, errors.New("invalid value for required argument 'Identity'") } if args.LoginServer == nil { return nil, errors.New("invalid value for required argument 'LoginServer'") } opts = internal.PkgResourceDefaultOpts(opts) var resource RegistryCredentialSet err := ctx.RegisterResource("azure:containerservice/registryCredentialSet:RegistryCredentialSet", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetRegistryCredentialSet gets an existing RegistryCredentialSet 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 GetRegistryCredentialSet(ctx *pulumi.Context, name string, id pulumi.IDInput, state *RegistryCredentialSetState, opts ...pulumi.ResourceOption) (*RegistryCredentialSet, error) { var resource RegistryCredentialSet err := ctx.ReadResource("azure:containerservice/registryCredentialSet:RegistryCredentialSet", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering RegistryCredentialSet resources. type registryCredentialSetState struct { // A `authenticationCredentials` block as defined below. AuthenticationCredentials *RegistryCredentialSetAuthenticationCredentials `pulumi:"authenticationCredentials"` // The ID of the Container Registry. Changing this forces a new Container Registry Credential Set to be created. ContainerRegistryId *string `pulumi:"containerRegistryId"` // An `identity` block as defined below. Identity *RegistryCredentialSetIdentity `pulumi:"identity"` // The login server for the Credential Set. Changing this forces a new Container Registry Credential Set to be created. LoginServer *string `pulumi:"loginServer"` // The name which should be used for this Container Registry Credential Set. Changing this forces a new Container Registry Credential Set to be created. Name *string `pulumi:"name"` } type RegistryCredentialSetState struct { // A `authenticationCredentials` block as defined below. AuthenticationCredentials RegistryCredentialSetAuthenticationCredentialsPtrInput // The ID of the Container Registry. Changing this forces a new Container Registry Credential Set to be created. ContainerRegistryId pulumi.StringPtrInput // An `identity` block as defined below. Identity RegistryCredentialSetIdentityPtrInput // The login server for the Credential Set. Changing this forces a new Container Registry Credential Set to be created. LoginServer pulumi.StringPtrInput // The name which should be used for this Container Registry Credential Set. Changing this forces a new Container Registry Credential Set to be created. Name pulumi.StringPtrInput } func (RegistryCredentialSetState) ElementType() reflect.Type { return reflect.TypeOf((*registryCredentialSetState)(nil)).Elem() } type registryCredentialSetArgs struct { // A `authenticationCredentials` block as defined below. AuthenticationCredentials RegistryCredentialSetAuthenticationCredentials `pulumi:"authenticationCredentials"` // The ID of the Container Registry. Changing this forces a new Container Registry Credential Set to be created. ContainerRegistryId string `pulumi:"containerRegistryId"` // An `identity` block as defined below. Identity RegistryCredentialSetIdentity `pulumi:"identity"` // The login server for the Credential Set. Changing this forces a new Container Registry Credential Set to be created. LoginServer string `pulumi:"loginServer"` // The name which should be used for this Container Registry Credential Set. Changing this forces a new Container Registry Credential Set to be created. Name *string `pulumi:"name"` } // The set of arguments for constructing a RegistryCredentialSet resource. type RegistryCredentialSetArgs struct { // A `authenticationCredentials` block as defined below. AuthenticationCredentials RegistryCredentialSetAuthenticationCredentialsInput // The ID of the Container Registry. Changing this forces a new Container Registry Credential Set to be created. ContainerRegistryId pulumi.StringInput // An `identity` block as defined below. Identity RegistryCredentialSetIdentityInput // The login server for the Credential Set. Changing this forces a new Container Registry Credential Set to be created. LoginServer pulumi.StringInput // The name which should be used for this Container Registry Credential Set. Changing this forces a new Container Registry Credential Set to be created. Name pulumi.StringPtrInput } func (RegistryCredentialSetArgs) ElementType() reflect.Type { return reflect.TypeOf((*registryCredentialSetArgs)(nil)).Elem() } type RegistryCredentialSetInput interface { pulumi.Input ToRegistryCredentialSetOutput() RegistryCredentialSetOutput ToRegistryCredentialSetOutputWithContext(ctx context.Context) RegistryCredentialSetOutput } func (*RegistryCredentialSet) ElementType() reflect.Type { return reflect.TypeOf((**RegistryCredentialSet)(nil)).Elem() } func (i *RegistryCredentialSet) ToRegistryCredentialSetOutput() RegistryCredentialSetOutput { return i.ToRegistryCredentialSetOutputWithContext(context.Background()) } func (i *RegistryCredentialSet) ToRegistryCredentialSetOutputWithContext(ctx context.Context) RegistryCredentialSetOutput { return pulumi.ToOutputWithContext(ctx, i).(RegistryCredentialSetOutput) } // RegistryCredentialSetArrayInput is an input type that accepts RegistryCredentialSetArray and RegistryCredentialSetArrayOutput values. // You can construct a concrete instance of `RegistryCredentialSetArrayInput` via: // // RegistryCredentialSetArray{ RegistryCredentialSetArgs{...} } type RegistryCredentialSetArrayInput interface { pulumi.Input ToRegistryCredentialSetArrayOutput() RegistryCredentialSetArrayOutput ToRegistryCredentialSetArrayOutputWithContext(context.Context) RegistryCredentialSetArrayOutput } type RegistryCredentialSetArray []RegistryCredentialSetInput func (RegistryCredentialSetArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*RegistryCredentialSet)(nil)).Elem() } func (i RegistryCredentialSetArray) ToRegistryCredentialSetArrayOutput() RegistryCredentialSetArrayOutput { return i.ToRegistryCredentialSetArrayOutputWithContext(context.Background()) } func (i RegistryCredentialSetArray) ToRegistryCredentialSetArrayOutputWithContext(ctx context.Context) RegistryCredentialSetArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(RegistryCredentialSetArrayOutput) } // RegistryCredentialSetMapInput is an input type that accepts RegistryCredentialSetMap and RegistryCredentialSetMapOutput values. // You can construct a concrete instance of `RegistryCredentialSetMapInput` via: // // RegistryCredentialSetMap{ "key": RegistryCredentialSetArgs{...} } type RegistryCredentialSetMapInput interface { pulumi.Input ToRegistryCredentialSetMapOutput() RegistryCredentialSetMapOutput ToRegistryCredentialSetMapOutputWithContext(context.Context) RegistryCredentialSetMapOutput } type RegistryCredentialSetMap map[string]RegistryCredentialSetInput func (RegistryCredentialSetMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*RegistryCredentialSet)(nil)).Elem() } func (i RegistryCredentialSetMap) ToRegistryCredentialSetMapOutput() RegistryCredentialSetMapOutput { return i.ToRegistryCredentialSetMapOutputWithContext(context.Background()) } func (i RegistryCredentialSetMap) ToRegistryCredentialSetMapOutputWithContext(ctx context.Context) RegistryCredentialSetMapOutput { return pulumi.ToOutputWithContext(ctx, i).(RegistryCredentialSetMapOutput) } type RegistryCredentialSetOutput struct{ *pulumi.OutputState } func (RegistryCredentialSetOutput) ElementType() reflect.Type { return reflect.TypeOf((**RegistryCredentialSet)(nil)).Elem() } func (o RegistryCredentialSetOutput) ToRegistryCredentialSetOutput() RegistryCredentialSetOutput { return o } func (o RegistryCredentialSetOutput) ToRegistryCredentialSetOutputWithContext(ctx context.Context) RegistryCredentialSetOutput { return o } // A `authenticationCredentials` block as defined below. func (o RegistryCredentialSetOutput) AuthenticationCredentials() RegistryCredentialSetAuthenticationCredentialsOutput { return o.ApplyT(func(v *RegistryCredentialSet) RegistryCredentialSetAuthenticationCredentialsOutput { return v.AuthenticationCredentials }).(RegistryCredentialSetAuthenticationCredentialsOutput) } // The ID of the Container Registry. Changing this forces a new Container Registry Credential Set to be created. func (o RegistryCredentialSetOutput) ContainerRegistryId() pulumi.StringOutput { return o.ApplyT(func(v *RegistryCredentialSet) pulumi.StringOutput { return v.ContainerRegistryId }).(pulumi.StringOutput) } // An `identity` block as defined below. func (o RegistryCredentialSetOutput) Identity() RegistryCredentialSetIdentityOutput { return o.ApplyT(func(v *RegistryCredentialSet) RegistryCredentialSetIdentityOutput { return v.Identity }).(RegistryCredentialSetIdentityOutput) } // The login server for the Credential Set. Changing this forces a new Container Registry Credential Set to be created. func (o RegistryCredentialSetOutput) LoginServer() pulumi.StringOutput { return o.ApplyT(func(v *RegistryCredentialSet) pulumi.StringOutput { return v.LoginServer }).(pulumi.StringOutput) } // The name which should be used for this Container Registry Credential Set. Changing this forces a new Container Registry Credential Set to be created. func (o RegistryCredentialSetOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *RegistryCredentialSet) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } type RegistryCredentialSetArrayOutput struct{ *pulumi.OutputState } func (RegistryCredentialSetArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*RegistryCredentialSet)(nil)).Elem() } func (o RegistryCredentialSetArrayOutput) ToRegistryCredentialSetArrayOutput() RegistryCredentialSetArrayOutput { return o } func (o RegistryCredentialSetArrayOutput) ToRegistryCredentialSetArrayOutputWithContext(ctx context.Context) RegistryCredentialSetArrayOutput { return o } func (o RegistryCredentialSetArrayOutput) Index(i pulumi.IntInput) RegistryCredentialSetOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *RegistryCredentialSet { return vs[0].([]*RegistryCredentialSet)[vs[1].(int)] }).(RegistryCredentialSetOutput) } type RegistryCredentialSetMapOutput struct{ *pulumi.OutputState } func (RegistryCredentialSetMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*RegistryCredentialSet)(nil)).Elem() } func (o RegistryCredentialSetMapOutput) ToRegistryCredentialSetMapOutput() RegistryCredentialSetMapOutput { return o } func (o RegistryCredentialSetMapOutput) ToRegistryCredentialSetMapOutputWithContext(ctx context.Context) RegistryCredentialSetMapOutput { return o } func (o RegistryCredentialSetMapOutput) MapIndex(k pulumi.StringInput) RegistryCredentialSetOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *RegistryCredentialSet { return vs[0].(map[string]*RegistryCredentialSet)[vs[1].(string)] }).(RegistryCredentialSetOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*RegistryCredentialSetInput)(nil)).Elem(), &RegistryCredentialSet{}) pulumi.RegisterInputType(reflect.TypeOf((*RegistryCredentialSetArrayInput)(nil)).Elem(), RegistryCredentialSetArray{}) pulumi.RegisterInputType(reflect.TypeOf((*RegistryCredentialSetMapInput)(nil)).Elem(), RegistryCredentialSetMap{}) pulumi.RegisterOutputType(RegistryCredentialSetOutput{}) pulumi.RegisterOutputType(RegistryCredentialSetArrayOutput{}) pulumi.RegisterOutputType(RegistryCredentialSetMapOutput{}) }
go
Apache-2.0
b66e1472775a89cca43f5050fef806854a7c3fa3
2026-01-07T09:44:27.619514Z
false
pulumi/pulumi-azure
https://github.com/pulumi/pulumi-azure/blob/b66e1472775a89cca43f5050fef806854a7c3fa3/sdk/go/azure/containerservice/getKubernetesCluster.go
sdk/go/azure/containerservice/getKubernetesCluster.go
// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package containerservice import ( "context" "reflect" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Use this data source to access information about an existing Managed Kubernetes Cluster (AKS). // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/containerservice" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { // _, err := containerservice.LookupKubernetesCluster(ctx, &containerservice.LookupKubernetesClusterArgs{ // Name: "myakscluster", // ResourceGroupName: "my-example-resource-group", // }, nil) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## API Providers // // <!-- This section is generated, changes will be overwritten --> // This data source uses the following Azure API Providers: // // * `Microsoft.ContainerService` - 2025-07-01 func LookupKubernetesCluster(ctx *pulumi.Context, args *LookupKubernetesClusterArgs, opts ...pulumi.InvokeOption) (*LookupKubernetesClusterResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupKubernetesClusterResult err := ctx.Invoke("azure:containerservice/getKubernetesCluster:getKubernetesCluster", args, &rv, opts...) if err != nil { return nil, err } return &rv, nil } // A collection of arguments for invoking getKubernetesCluster. type LookupKubernetesClusterArgs struct { // The name of the managed Kubernetes Cluster. Name string `pulumi:"name"` // The name of the Resource Group in which the managed Kubernetes Cluster exists. ResourceGroupName string `pulumi:"resourceGroupName"` } // A collection of values returned by getKubernetesCluster. type LookupKubernetesClusterResult struct { // An `aciConnectorLinux` block as documented below. AciConnectorLinuxes []GetKubernetesClusterAciConnectorLinux `pulumi:"aciConnectorLinuxes"` // An `agentPoolProfile` block as documented below. AgentPoolProfiles []GetKubernetesClusterAgentPoolProfile `pulumi:"agentPoolProfiles"` // The IP ranges to whitelist for incoming traffic to the primaries. ApiServerAuthorizedIpRanges []string `pulumi:"apiServerAuthorizedIpRanges"` // An `azureActiveDirectoryRoleBasedAccessControl` block as documented below. AzureActiveDirectoryRoleBasedAccessControls []GetKubernetesClusterAzureActiveDirectoryRoleBasedAccessControl `pulumi:"azureActiveDirectoryRoleBasedAccessControls"` // Is Azure Policy enabled on this managed Kubernetes Cluster? AzurePolicyEnabled bool `pulumi:"azurePolicyEnabled"` // Contains the current version of Kubernetes running on the Cluster. CurrentKubernetesVersion string `pulumi:"currentKubernetesVersion"` // The ID of the Disk Encryption Set used for the Nodes and Volumes. DiskEncryptionSetId string `pulumi:"diskEncryptionSetId"` // The DNS Prefix of the managed Kubernetes cluster. DnsPrefix string `pulumi:"dnsPrefix"` // The FQDN of the Azure Kubernetes Managed Cluster. Fqdn string `pulumi:"fqdn"` // Is HTTP Application Routing enabled for this managed Kubernetes Cluster? HttpApplicationRoutingEnabled bool `pulumi:"httpApplicationRoutingEnabled"` // The Zone Name of the HTTP Application Routing. HttpApplicationRoutingZoneName string `pulumi:"httpApplicationRoutingZoneName"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` // An `identity` block as documented below. Identities []GetKubernetesClusterIdentity `pulumi:"identities"` // An `ingressApplicationGateway` block as documented below. IngressApplicationGateways []GetKubernetesClusterIngressApplicationGateway `pulumi:"ingressApplicationGateways"` // A `keyManagementService` block as documented below. KeyManagementServices []GetKubernetesClusterKeyManagementService `pulumi:"keyManagementServices"` // A `keyVaultSecretsProvider` block as documented below. KeyVaultSecretsProviders []GetKubernetesClusterKeyVaultSecretsProvider `pulumi:"keyVaultSecretsProviders"` // Raw Kubernetes config for the admin account to be used by [kubectl](https://kubernetes.io/docs/reference/kubectl/overview/) and other compatible tools. This is only available when Role Based Access Control with Azure Active Directory is enabled and local accounts are not disabled. KubeAdminConfigRaw string `pulumi:"kubeAdminConfigRaw"` // A `kubeAdminConfig` block as defined below. This is only available when Role Based Access Control with Azure Active Directory is enabled and local accounts are not disabled. KubeAdminConfigs []GetKubernetesClusterKubeAdminConfig `pulumi:"kubeAdminConfigs"` // Base64 encoded Kubernetes configuration. KubeConfigRaw string `pulumi:"kubeConfigRaw"` // A `kubeConfig` block as defined below. KubeConfigs []GetKubernetesClusterKubeConfig `pulumi:"kubeConfigs"` // A `kubeletIdentity` block as documented below. KubeletIdentities []GetKubernetesClusterKubeletIdentity `pulumi:"kubeletIdentities"` // The version of Kubernetes used on the managed Kubernetes Cluster. KubernetesVersion string `pulumi:"kubernetesVersion"` // A `linuxProfile` block as documented below. LinuxProfiles []GetKubernetesClusterLinuxProfile `pulumi:"linuxProfiles"` // The Azure Region in which the managed Kubernetes Cluster exists. Location string `pulumi:"location"` // A `microsoftDefender` block as defined below. MicrosoftDefenders []GetKubernetesClusterMicrosoftDefender `pulumi:"microsoftDefenders"` // The name assigned to this pool of agents. Name string `pulumi:"name"` // A `networkProfile` block as documented below. NetworkProfiles []GetKubernetesClusterNetworkProfile `pulumi:"networkProfiles"` // Auto-generated Resource Group containing AKS Cluster resources. NodeResourceGroup string `pulumi:"nodeResourceGroup"` // The ID of the Resource Group containing the resources for this Managed Kubernetes Cluster. NodeResourceGroupId string `pulumi:"nodeResourceGroupId"` // Whether or not the OIDC feature is enabled or disabled. OidcIssuerEnabled bool `pulumi:"oidcIssuerEnabled"` // The OIDC issuer URL that is associated with the cluster. OidcIssuerUrl string `pulumi:"oidcIssuerUrl"` // An `omsAgent` block as documented below. OmsAgents []GetKubernetesClusterOmsAgent `pulumi:"omsAgents"` // Is Open Service Mesh enabled for this managed Kubernetes Cluster? OpenServiceMeshEnabled bool `pulumi:"openServiceMeshEnabled"` // If the cluster has the Kubernetes API only exposed on internal IP addresses. PrivateClusterEnabled bool `pulumi:"privateClusterEnabled"` // The FQDN of this Kubernetes Cluster when private link has been enabled. This name is only resolvable inside the Virtual Network where the Azure Kubernetes Service is located PrivateFqdn string `pulumi:"privateFqdn"` ResourceGroupName string `pulumi:"resourceGroupName"` // Is Role Based Access Control enabled for this managed Kubernetes Cluster? RoleBasedAccessControlEnabled bool `pulumi:"roleBasedAccessControlEnabled"` ServiceMeshProfiles []GetKubernetesClusterServiceMeshProfile `pulumi:"serviceMeshProfiles"` // A `servicePrincipal` block as documented below. ServicePrincipals []GetKubernetesClusterServicePrincipal `pulumi:"servicePrincipals"` // A `storageProfile` block as documented below. StorageProfiles []GetKubernetesClusterStorageProfile `pulumi:"storageProfiles"` // A mapping of tags to assign to the resource. Tags map[string]string `pulumi:"tags"` // A `windowsProfile` block as documented below. WindowsProfiles []GetKubernetesClusterWindowsProfile `pulumi:"windowsProfiles"` } func LookupKubernetesClusterOutput(ctx *pulumi.Context, args LookupKubernetesClusterOutputArgs, opts ...pulumi.InvokeOption) LookupKubernetesClusterResultOutput { return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupKubernetesClusterResultOutput, error) { args := v.(LookupKubernetesClusterArgs) options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} return ctx.InvokeOutput("azure:containerservice/getKubernetesCluster:getKubernetesCluster", args, LookupKubernetesClusterResultOutput{}, options).(LookupKubernetesClusterResultOutput), nil }).(LookupKubernetesClusterResultOutput) } // A collection of arguments for invoking getKubernetesCluster. type LookupKubernetesClusterOutputArgs struct { // The name of the managed Kubernetes Cluster. Name pulumi.StringInput `pulumi:"name"` // The name of the Resource Group in which the managed Kubernetes Cluster exists. ResourceGroupName pulumi.StringInput `pulumi:"resourceGroupName"` } func (LookupKubernetesClusterOutputArgs) ElementType() reflect.Type { return reflect.TypeOf((*LookupKubernetesClusterArgs)(nil)).Elem() } // A collection of values returned by getKubernetesCluster. type LookupKubernetesClusterResultOutput struct{ *pulumi.OutputState } func (LookupKubernetesClusterResultOutput) ElementType() reflect.Type { return reflect.TypeOf((*LookupKubernetesClusterResult)(nil)).Elem() } func (o LookupKubernetesClusterResultOutput) ToLookupKubernetesClusterResultOutput() LookupKubernetesClusterResultOutput { return o } func (o LookupKubernetesClusterResultOutput) ToLookupKubernetesClusterResultOutputWithContext(ctx context.Context) LookupKubernetesClusterResultOutput { return o } // An `aciConnectorLinux` block as documented below. func (o LookupKubernetesClusterResultOutput) AciConnectorLinuxes() GetKubernetesClusterAciConnectorLinuxArrayOutput { return o.ApplyT(func(v LookupKubernetesClusterResult) []GetKubernetesClusterAciConnectorLinux { return v.AciConnectorLinuxes }).(GetKubernetesClusterAciConnectorLinuxArrayOutput) } // An `agentPoolProfile` block as documented below. func (o LookupKubernetesClusterResultOutput) AgentPoolProfiles() GetKubernetesClusterAgentPoolProfileArrayOutput { return o.ApplyT(func(v LookupKubernetesClusterResult) []GetKubernetesClusterAgentPoolProfile { return v.AgentPoolProfiles }).(GetKubernetesClusterAgentPoolProfileArrayOutput) } // The IP ranges to whitelist for incoming traffic to the primaries. func (o LookupKubernetesClusterResultOutput) ApiServerAuthorizedIpRanges() pulumi.StringArrayOutput { return o.ApplyT(func(v LookupKubernetesClusterResult) []string { return v.ApiServerAuthorizedIpRanges }).(pulumi.StringArrayOutput) } // An `azureActiveDirectoryRoleBasedAccessControl` block as documented below. func (o LookupKubernetesClusterResultOutput) AzureActiveDirectoryRoleBasedAccessControls() GetKubernetesClusterAzureActiveDirectoryRoleBasedAccessControlArrayOutput { return o.ApplyT(func(v LookupKubernetesClusterResult) []GetKubernetesClusterAzureActiveDirectoryRoleBasedAccessControl { return v.AzureActiveDirectoryRoleBasedAccessControls }).(GetKubernetesClusterAzureActiveDirectoryRoleBasedAccessControlArrayOutput) } // Is Azure Policy enabled on this managed Kubernetes Cluster? func (o LookupKubernetesClusterResultOutput) AzurePolicyEnabled() pulumi.BoolOutput { return o.ApplyT(func(v LookupKubernetesClusterResult) bool { return v.AzurePolicyEnabled }).(pulumi.BoolOutput) } // Contains the current version of Kubernetes running on the Cluster. func (o LookupKubernetesClusterResultOutput) CurrentKubernetesVersion() pulumi.StringOutput { return o.ApplyT(func(v LookupKubernetesClusterResult) string { return v.CurrentKubernetesVersion }).(pulumi.StringOutput) } // The ID of the Disk Encryption Set used for the Nodes and Volumes. func (o LookupKubernetesClusterResultOutput) DiskEncryptionSetId() pulumi.StringOutput { return o.ApplyT(func(v LookupKubernetesClusterResult) string { return v.DiskEncryptionSetId }).(pulumi.StringOutput) } // The DNS Prefix of the managed Kubernetes cluster. func (o LookupKubernetesClusterResultOutput) DnsPrefix() pulumi.StringOutput { return o.ApplyT(func(v LookupKubernetesClusterResult) string { return v.DnsPrefix }).(pulumi.StringOutput) } // The FQDN of the Azure Kubernetes Managed Cluster. func (o LookupKubernetesClusterResultOutput) Fqdn() pulumi.StringOutput { return o.ApplyT(func(v LookupKubernetesClusterResult) string { return v.Fqdn }).(pulumi.StringOutput) } // Is HTTP Application Routing enabled for this managed Kubernetes Cluster? func (o LookupKubernetesClusterResultOutput) HttpApplicationRoutingEnabled() pulumi.BoolOutput { return o.ApplyT(func(v LookupKubernetesClusterResult) bool { return v.HttpApplicationRoutingEnabled }).(pulumi.BoolOutput) } // The Zone Name of the HTTP Application Routing. func (o LookupKubernetesClusterResultOutput) HttpApplicationRoutingZoneName() pulumi.StringOutput { return o.ApplyT(func(v LookupKubernetesClusterResult) string { return v.HttpApplicationRoutingZoneName }).(pulumi.StringOutput) } // The provider-assigned unique ID for this managed resource. func (o LookupKubernetesClusterResultOutput) Id() pulumi.StringOutput { return o.ApplyT(func(v LookupKubernetesClusterResult) string { return v.Id }).(pulumi.StringOutput) } // An `identity` block as documented below. func (o LookupKubernetesClusterResultOutput) Identities() GetKubernetesClusterIdentityArrayOutput { return o.ApplyT(func(v LookupKubernetesClusterResult) []GetKubernetesClusterIdentity { return v.Identities }).(GetKubernetesClusterIdentityArrayOutput) } // An `ingressApplicationGateway` block as documented below. func (o LookupKubernetesClusterResultOutput) IngressApplicationGateways() GetKubernetesClusterIngressApplicationGatewayArrayOutput { return o.ApplyT(func(v LookupKubernetesClusterResult) []GetKubernetesClusterIngressApplicationGateway { return v.IngressApplicationGateways }).(GetKubernetesClusterIngressApplicationGatewayArrayOutput) } // A `keyManagementService` block as documented below. func (o LookupKubernetesClusterResultOutput) KeyManagementServices() GetKubernetesClusterKeyManagementServiceArrayOutput { return o.ApplyT(func(v LookupKubernetesClusterResult) []GetKubernetesClusterKeyManagementService { return v.KeyManagementServices }).(GetKubernetesClusterKeyManagementServiceArrayOutput) } // A `keyVaultSecretsProvider` block as documented below. func (o LookupKubernetesClusterResultOutput) KeyVaultSecretsProviders() GetKubernetesClusterKeyVaultSecretsProviderArrayOutput { return o.ApplyT(func(v LookupKubernetesClusterResult) []GetKubernetesClusterKeyVaultSecretsProvider { return v.KeyVaultSecretsProviders }).(GetKubernetesClusterKeyVaultSecretsProviderArrayOutput) } // Raw Kubernetes config for the admin account to be used by [kubectl](https://kubernetes.io/docs/reference/kubectl/overview/) and other compatible tools. This is only available when Role Based Access Control with Azure Active Directory is enabled and local accounts are not disabled. func (o LookupKubernetesClusterResultOutput) KubeAdminConfigRaw() pulumi.StringOutput { return o.ApplyT(func(v LookupKubernetesClusterResult) string { return v.KubeAdminConfigRaw }).(pulumi.StringOutput) } // A `kubeAdminConfig` block as defined below. This is only available when Role Based Access Control with Azure Active Directory is enabled and local accounts are not disabled. func (o LookupKubernetesClusterResultOutput) KubeAdminConfigs() GetKubernetesClusterKubeAdminConfigArrayOutput { return o.ApplyT(func(v LookupKubernetesClusterResult) []GetKubernetesClusterKubeAdminConfig { return v.KubeAdminConfigs }).(GetKubernetesClusterKubeAdminConfigArrayOutput) } // Base64 encoded Kubernetes configuration. func (o LookupKubernetesClusterResultOutput) KubeConfigRaw() pulumi.StringOutput { return o.ApplyT(func(v LookupKubernetesClusterResult) string { return v.KubeConfigRaw }).(pulumi.StringOutput) } // A `kubeConfig` block as defined below. func (o LookupKubernetesClusterResultOutput) KubeConfigs() GetKubernetesClusterKubeConfigArrayOutput { return o.ApplyT(func(v LookupKubernetesClusterResult) []GetKubernetesClusterKubeConfig { return v.KubeConfigs }).(GetKubernetesClusterKubeConfigArrayOutput) } // A `kubeletIdentity` block as documented below. func (o LookupKubernetesClusterResultOutput) KubeletIdentities() GetKubernetesClusterKubeletIdentityArrayOutput { return o.ApplyT(func(v LookupKubernetesClusterResult) []GetKubernetesClusterKubeletIdentity { return v.KubeletIdentities }).(GetKubernetesClusterKubeletIdentityArrayOutput) } // The version of Kubernetes used on the managed Kubernetes Cluster. func (o LookupKubernetesClusterResultOutput) KubernetesVersion() pulumi.StringOutput { return o.ApplyT(func(v LookupKubernetesClusterResult) string { return v.KubernetesVersion }).(pulumi.StringOutput) } // A `linuxProfile` block as documented below. func (o LookupKubernetesClusterResultOutput) LinuxProfiles() GetKubernetesClusterLinuxProfileArrayOutput { return o.ApplyT(func(v LookupKubernetesClusterResult) []GetKubernetesClusterLinuxProfile { return v.LinuxProfiles }).(GetKubernetesClusterLinuxProfileArrayOutput) } // The Azure Region in which the managed Kubernetes Cluster exists. func (o LookupKubernetesClusterResultOutput) Location() pulumi.StringOutput { return o.ApplyT(func(v LookupKubernetesClusterResult) string { return v.Location }).(pulumi.StringOutput) } // A `microsoftDefender` block as defined below. func (o LookupKubernetesClusterResultOutput) MicrosoftDefenders() GetKubernetesClusterMicrosoftDefenderArrayOutput { return o.ApplyT(func(v LookupKubernetesClusterResult) []GetKubernetesClusterMicrosoftDefender { return v.MicrosoftDefenders }).(GetKubernetesClusterMicrosoftDefenderArrayOutput) } // The name assigned to this pool of agents. func (o LookupKubernetesClusterResultOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v LookupKubernetesClusterResult) string { return v.Name }).(pulumi.StringOutput) } // A `networkProfile` block as documented below. func (o LookupKubernetesClusterResultOutput) NetworkProfiles() GetKubernetesClusterNetworkProfileArrayOutput { return o.ApplyT(func(v LookupKubernetesClusterResult) []GetKubernetesClusterNetworkProfile { return v.NetworkProfiles }).(GetKubernetesClusterNetworkProfileArrayOutput) } // Auto-generated Resource Group containing AKS Cluster resources. func (o LookupKubernetesClusterResultOutput) NodeResourceGroup() pulumi.StringOutput { return o.ApplyT(func(v LookupKubernetesClusterResult) string { return v.NodeResourceGroup }).(pulumi.StringOutput) } // The ID of the Resource Group containing the resources for this Managed Kubernetes Cluster. func (o LookupKubernetesClusterResultOutput) NodeResourceGroupId() pulumi.StringOutput { return o.ApplyT(func(v LookupKubernetesClusterResult) string { return v.NodeResourceGroupId }).(pulumi.StringOutput) } // Whether or not the OIDC feature is enabled or disabled. func (o LookupKubernetesClusterResultOutput) OidcIssuerEnabled() pulumi.BoolOutput { return o.ApplyT(func(v LookupKubernetesClusterResult) bool { return v.OidcIssuerEnabled }).(pulumi.BoolOutput) } // The OIDC issuer URL that is associated with the cluster. func (o LookupKubernetesClusterResultOutput) OidcIssuerUrl() pulumi.StringOutput { return o.ApplyT(func(v LookupKubernetesClusterResult) string { return v.OidcIssuerUrl }).(pulumi.StringOutput) } // An `omsAgent` block as documented below. func (o LookupKubernetesClusterResultOutput) OmsAgents() GetKubernetesClusterOmsAgentArrayOutput { return o.ApplyT(func(v LookupKubernetesClusterResult) []GetKubernetesClusterOmsAgent { return v.OmsAgents }).(GetKubernetesClusterOmsAgentArrayOutput) } // Is Open Service Mesh enabled for this managed Kubernetes Cluster? func (o LookupKubernetesClusterResultOutput) OpenServiceMeshEnabled() pulumi.BoolOutput { return o.ApplyT(func(v LookupKubernetesClusterResult) bool { return v.OpenServiceMeshEnabled }).(pulumi.BoolOutput) } // If the cluster has the Kubernetes API only exposed on internal IP addresses. func (o LookupKubernetesClusterResultOutput) PrivateClusterEnabled() pulumi.BoolOutput { return o.ApplyT(func(v LookupKubernetesClusterResult) bool { return v.PrivateClusterEnabled }).(pulumi.BoolOutput) } // The FQDN of this Kubernetes Cluster when private link has been enabled. This name is only resolvable inside the Virtual Network where the Azure Kubernetes Service is located func (o LookupKubernetesClusterResultOutput) PrivateFqdn() pulumi.StringOutput { return o.ApplyT(func(v LookupKubernetesClusterResult) string { return v.PrivateFqdn }).(pulumi.StringOutput) } func (o LookupKubernetesClusterResultOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v LookupKubernetesClusterResult) string { return v.ResourceGroupName }).(pulumi.StringOutput) } // Is Role Based Access Control enabled for this managed Kubernetes Cluster? func (o LookupKubernetesClusterResultOutput) RoleBasedAccessControlEnabled() pulumi.BoolOutput { return o.ApplyT(func(v LookupKubernetesClusterResult) bool { return v.RoleBasedAccessControlEnabled }).(pulumi.BoolOutput) } func (o LookupKubernetesClusterResultOutput) ServiceMeshProfiles() GetKubernetesClusterServiceMeshProfileArrayOutput { return o.ApplyT(func(v LookupKubernetesClusterResult) []GetKubernetesClusterServiceMeshProfile { return v.ServiceMeshProfiles }).(GetKubernetesClusterServiceMeshProfileArrayOutput) } // A `servicePrincipal` block as documented below. func (o LookupKubernetesClusterResultOutput) ServicePrincipals() GetKubernetesClusterServicePrincipalArrayOutput { return o.ApplyT(func(v LookupKubernetesClusterResult) []GetKubernetesClusterServicePrincipal { return v.ServicePrincipals }).(GetKubernetesClusterServicePrincipalArrayOutput) } // A `storageProfile` block as documented below. func (o LookupKubernetesClusterResultOutput) StorageProfiles() GetKubernetesClusterStorageProfileArrayOutput { return o.ApplyT(func(v LookupKubernetesClusterResult) []GetKubernetesClusterStorageProfile { return v.StorageProfiles }).(GetKubernetesClusterStorageProfileArrayOutput) } // A mapping of tags to assign to the resource. func (o LookupKubernetesClusterResultOutput) Tags() pulumi.StringMapOutput { return o.ApplyT(func(v LookupKubernetesClusterResult) map[string]string { return v.Tags }).(pulumi.StringMapOutput) } // A `windowsProfile` block as documented below. func (o LookupKubernetesClusterResultOutput) WindowsProfiles() GetKubernetesClusterWindowsProfileArrayOutput { return o.ApplyT(func(v LookupKubernetesClusterResult) []GetKubernetesClusterWindowsProfile { return v.WindowsProfiles }).(GetKubernetesClusterWindowsProfileArrayOutput) } func init() { pulumi.RegisterOutputType(LookupKubernetesClusterResultOutput{}) }
go
Apache-2.0
b66e1472775a89cca43f5050fef806854a7c3fa3
2026-01-07T09:44:27.619514Z
false
pulumi/pulumi-azure
https://github.com/pulumi/pulumi-azure/blob/b66e1472775a89cca43f5050fef806854a7c3fa3/sdk/go/azure/containerservice/registryWebook.go
sdk/go/azure/containerservice/registryWebook.go
// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package containerservice import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages an Azure Container Registry Webhook. // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/containerservice" // "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-resources"), // Location: pulumi.String("West Europe"), // }) // if err != nil { // return err // } // acr, err := containerservice.NewRegistry(ctx, "acr", &containerservice.RegistryArgs{ // Name: pulumi.String("containerRegistry1"), // ResourceGroupName: example.Name, // Location: example.Location, // Sku: pulumi.String("Standard"), // AdminEnabled: pulumi.Bool(false), // }) // if err != nil { // return err // } // _, err = containerservice.NewRegistryWebhook(ctx, "webhook", &containerservice.RegistryWebhookArgs{ // Name: pulumi.String("mywebhook"), // ResourceGroupName: example.Name, // RegistryName: acr.Name, // Location: example.Location, // ServiceUri: pulumi.String("https://mywebhookreceiver.example/mytag"), // Status: pulumi.String("enabled"), // Scope: pulumi.String("mytag:*"), // Actions: pulumi.StringArray{ // pulumi.String("push"), // }, // CustomHeaders: pulumi.StringMap{ // "Content-Type": pulumi.String("application/json"), // }, // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## API Providers // // <!-- This section is generated, changes will be overwritten --> // This resource uses the following Azure API Providers: // // * `Microsoft.ContainerRegistry` - 2025-04-01 // // ## Import // // Container Registry Webhooks can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:containerservice/registryWebook:RegistryWebook example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.ContainerRegistry/registries/myregistry1/webHooks/mywebhook1 // ``` // // Deprecated: azure.containerservice.RegistryWebook has been deprecated in favor of azure.containerservice.RegistryWebhook type RegistryWebook struct { pulumi.CustomResourceState // A list of actions that trigger the Webhook to post notifications. At least one action needs to be specified. Valid values are: `push`, `delete`, `quarantine`, `chartPush`, `chartDelete` Actions pulumi.StringArrayOutput `pulumi:"actions"` // Custom headers that will be added to the webhook notifications request. CustomHeaders pulumi.StringMapOutput `pulumi:"customHeaders"` // 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 Container Registry Webhook. Only Alphanumeric characters allowed. Changing this forces a new resource to be created. Name pulumi.StringOutput `pulumi:"name"` // The Name of Container registry this Webhook belongs to. Changing this forces a new resource to be created. RegistryName pulumi.StringOutput `pulumi:"registryName"` // The name of the resource group in which to create the Container Registry Webhook. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // Specifies the scope of repositories that can trigger an event. For example, `foo:*` means events for all tags under repository `foo`. `foo:bar` means events for 'foo:bar' only. `foo` is equivalent to `foo:latest`. Empty means all events. Defaults to `""`. Scope pulumi.StringPtrOutput `pulumi:"scope"` // Specifies the service URI for the Webhook to post notifications. ServiceUri pulumi.StringOutput `pulumi:"serviceUri"` // Specifies if this Webhook triggers notifications or not. Valid values: `enabled` and `disabled`. Default is `enabled`. Status pulumi.StringPtrOutput `pulumi:"status"` // A mapping of tags to assign to the resource. Tags pulumi.StringMapOutput `pulumi:"tags"` } // NewRegistryWebook registers a new resource with the given unique name, arguments, and options. func NewRegistryWebook(ctx *pulumi.Context, name string, args *RegistryWebookArgs, opts ...pulumi.ResourceOption) (*RegistryWebook, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.Actions == nil { return nil, errors.New("invalid value for required argument 'Actions'") } if args.RegistryName == nil { return nil, errors.New("invalid value for required argument 'RegistryName'") } if args.ResourceGroupName == nil { return nil, errors.New("invalid value for required argument 'ResourceGroupName'") } if args.ServiceUri == nil { return nil, errors.New("invalid value for required argument 'ServiceUri'") } opts = internal.PkgResourceDefaultOpts(opts) var resource RegistryWebook err := ctx.RegisterResource("azure:containerservice/registryWebook:RegistryWebook", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetRegistryWebook gets an existing RegistryWebook 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 GetRegistryWebook(ctx *pulumi.Context, name string, id pulumi.IDInput, state *RegistryWebookState, opts ...pulumi.ResourceOption) (*RegistryWebook, error) { var resource RegistryWebook err := ctx.ReadResource("azure:containerservice/registryWebook:RegistryWebook", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering RegistryWebook resources. type registryWebookState struct { // A list of actions that trigger the Webhook to post notifications. At least one action needs to be specified. Valid values are: `push`, `delete`, `quarantine`, `chartPush`, `chartDelete` Actions []string `pulumi:"actions"` // Custom headers that will be added to the webhook notifications request. CustomHeaders map[string]string `pulumi:"customHeaders"` // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location *string `pulumi:"location"` // Specifies the name of the Container Registry Webhook. Only Alphanumeric characters allowed. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // The Name of Container registry this Webhook belongs to. Changing this forces a new resource to be created. RegistryName *string `pulumi:"registryName"` // The name of the resource group in which to create the Container Registry Webhook. Changing this forces a new resource to be created. ResourceGroupName *string `pulumi:"resourceGroupName"` // Specifies the scope of repositories that can trigger an event. For example, `foo:*` means events for all tags under repository `foo`. `foo:bar` means events for 'foo:bar' only. `foo` is equivalent to `foo:latest`. Empty means all events. Defaults to `""`. Scope *string `pulumi:"scope"` // Specifies the service URI for the Webhook to post notifications. ServiceUri *string `pulumi:"serviceUri"` // Specifies if this Webhook triggers notifications or not. Valid values: `enabled` and `disabled`. Default is `enabled`. Status *string `pulumi:"status"` // A mapping of tags to assign to the resource. Tags map[string]string `pulumi:"tags"` } type RegistryWebookState struct { // A list of actions that trigger the Webhook to post notifications. At least one action needs to be specified. Valid values are: `push`, `delete`, `quarantine`, `chartPush`, `chartDelete` Actions pulumi.StringArrayInput // Custom headers that will be added to the webhook notifications request. CustomHeaders pulumi.StringMapInput // 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 Container Registry Webhook. Only Alphanumeric characters allowed. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // The Name of Container registry this Webhook belongs to. Changing this forces a new resource to be created. RegistryName pulumi.StringPtrInput // The name of the resource group in which to create the Container Registry Webhook. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringPtrInput // Specifies the scope of repositories that can trigger an event. For example, `foo:*` means events for all tags under repository `foo`. `foo:bar` means events for 'foo:bar' only. `foo` is equivalent to `foo:latest`. Empty means all events. Defaults to `""`. Scope pulumi.StringPtrInput // Specifies the service URI for the Webhook to post notifications. ServiceUri pulumi.StringPtrInput // Specifies if this Webhook triggers notifications or not. Valid values: `enabled` and `disabled`. Default is `enabled`. Status pulumi.StringPtrInput // A mapping of tags to assign to the resource. Tags pulumi.StringMapInput } func (RegistryWebookState) ElementType() reflect.Type { return reflect.TypeOf((*registryWebookState)(nil)).Elem() } type registryWebookArgs struct { // A list of actions that trigger the Webhook to post notifications. At least one action needs to be specified. Valid values are: `push`, `delete`, `quarantine`, `chartPush`, `chartDelete` Actions []string `pulumi:"actions"` // Custom headers that will be added to the webhook notifications request. CustomHeaders map[string]string `pulumi:"customHeaders"` // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location *string `pulumi:"location"` // Specifies the name of the Container Registry Webhook. Only Alphanumeric characters allowed. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // The Name of Container registry this Webhook belongs to. Changing this forces a new resource to be created. RegistryName string `pulumi:"registryName"` // The name of the resource group in which to create the Container Registry Webhook. Changing this forces a new resource to be created. ResourceGroupName string `pulumi:"resourceGroupName"` // Specifies the scope of repositories that can trigger an event. For example, `foo:*` means events for all tags under repository `foo`. `foo:bar` means events for 'foo:bar' only. `foo` is equivalent to `foo:latest`. Empty means all events. Defaults to `""`. Scope *string `pulumi:"scope"` // Specifies the service URI for the Webhook to post notifications. ServiceUri string `pulumi:"serviceUri"` // Specifies if this Webhook triggers notifications or not. Valid values: `enabled` and `disabled`. Default is `enabled`. Status *string `pulumi:"status"` // A mapping of tags to assign to the resource. Tags map[string]string `pulumi:"tags"` } // The set of arguments for constructing a RegistryWebook resource. type RegistryWebookArgs struct { // A list of actions that trigger the Webhook to post notifications. At least one action needs to be specified. Valid values are: `push`, `delete`, `quarantine`, `chartPush`, `chartDelete` Actions pulumi.StringArrayInput // Custom headers that will be added to the webhook notifications request. CustomHeaders pulumi.StringMapInput // 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 Container Registry Webhook. Only Alphanumeric characters allowed. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // The Name of Container registry this Webhook belongs to. Changing this forces a new resource to be created. RegistryName pulumi.StringInput // The name of the resource group in which to create the Container Registry Webhook. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringInput // Specifies the scope of repositories that can trigger an event. For example, `foo:*` means events for all tags under repository `foo`. `foo:bar` means events for 'foo:bar' only. `foo` is equivalent to `foo:latest`. Empty means all events. Defaults to `""`. Scope pulumi.StringPtrInput // Specifies the service URI for the Webhook to post notifications. ServiceUri pulumi.StringInput // Specifies if this Webhook triggers notifications or not. Valid values: `enabled` and `disabled`. Default is `enabled`. Status pulumi.StringPtrInput // A mapping of tags to assign to the resource. Tags pulumi.StringMapInput } func (RegistryWebookArgs) ElementType() reflect.Type { return reflect.TypeOf((*registryWebookArgs)(nil)).Elem() } type RegistryWebookInput interface { pulumi.Input ToRegistryWebookOutput() RegistryWebookOutput ToRegistryWebookOutputWithContext(ctx context.Context) RegistryWebookOutput } func (*RegistryWebook) ElementType() reflect.Type { return reflect.TypeOf((**RegistryWebook)(nil)).Elem() } func (i *RegistryWebook) ToRegistryWebookOutput() RegistryWebookOutput { return i.ToRegistryWebookOutputWithContext(context.Background()) } func (i *RegistryWebook) ToRegistryWebookOutputWithContext(ctx context.Context) RegistryWebookOutput { return pulumi.ToOutputWithContext(ctx, i).(RegistryWebookOutput) } // RegistryWebookArrayInput is an input type that accepts RegistryWebookArray and RegistryWebookArrayOutput values. // You can construct a concrete instance of `RegistryWebookArrayInput` via: // // RegistryWebookArray{ RegistryWebookArgs{...} } type RegistryWebookArrayInput interface { pulumi.Input ToRegistryWebookArrayOutput() RegistryWebookArrayOutput ToRegistryWebookArrayOutputWithContext(context.Context) RegistryWebookArrayOutput } type RegistryWebookArray []RegistryWebookInput func (RegistryWebookArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*RegistryWebook)(nil)).Elem() } func (i RegistryWebookArray) ToRegistryWebookArrayOutput() RegistryWebookArrayOutput { return i.ToRegistryWebookArrayOutputWithContext(context.Background()) } func (i RegistryWebookArray) ToRegistryWebookArrayOutputWithContext(ctx context.Context) RegistryWebookArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(RegistryWebookArrayOutput) } // RegistryWebookMapInput is an input type that accepts RegistryWebookMap and RegistryWebookMapOutput values. // You can construct a concrete instance of `RegistryWebookMapInput` via: // // RegistryWebookMap{ "key": RegistryWebookArgs{...} } type RegistryWebookMapInput interface { pulumi.Input ToRegistryWebookMapOutput() RegistryWebookMapOutput ToRegistryWebookMapOutputWithContext(context.Context) RegistryWebookMapOutput } type RegistryWebookMap map[string]RegistryWebookInput func (RegistryWebookMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*RegistryWebook)(nil)).Elem() } func (i RegistryWebookMap) ToRegistryWebookMapOutput() RegistryWebookMapOutput { return i.ToRegistryWebookMapOutputWithContext(context.Background()) } func (i RegistryWebookMap) ToRegistryWebookMapOutputWithContext(ctx context.Context) RegistryWebookMapOutput { return pulumi.ToOutputWithContext(ctx, i).(RegistryWebookMapOutput) } type RegistryWebookOutput struct{ *pulumi.OutputState } func (RegistryWebookOutput) ElementType() reflect.Type { return reflect.TypeOf((**RegistryWebook)(nil)).Elem() } func (o RegistryWebookOutput) ToRegistryWebookOutput() RegistryWebookOutput { return o } func (o RegistryWebookOutput) ToRegistryWebookOutputWithContext(ctx context.Context) RegistryWebookOutput { return o } // A list of actions that trigger the Webhook to post notifications. At least one action needs to be specified. Valid values are: `push`, `delete`, `quarantine`, `chartPush`, `chartDelete` func (o RegistryWebookOutput) Actions() pulumi.StringArrayOutput { return o.ApplyT(func(v *RegistryWebook) pulumi.StringArrayOutput { return v.Actions }).(pulumi.StringArrayOutput) } // Custom headers that will be added to the webhook notifications request. func (o RegistryWebookOutput) CustomHeaders() pulumi.StringMapOutput { return o.ApplyT(func(v *RegistryWebook) pulumi.StringMapOutput { return v.CustomHeaders }).(pulumi.StringMapOutput) } // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. func (o RegistryWebookOutput) Location() pulumi.StringOutput { return o.ApplyT(func(v *RegistryWebook) pulumi.StringOutput { return v.Location }).(pulumi.StringOutput) } // Specifies the name of the Container Registry Webhook. Only Alphanumeric characters allowed. Changing this forces a new resource to be created. func (o RegistryWebookOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *RegistryWebook) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // The Name of Container registry this Webhook belongs to. Changing this forces a new resource to be created. func (o RegistryWebookOutput) RegistryName() pulumi.StringOutput { return o.ApplyT(func(v *RegistryWebook) pulumi.StringOutput { return v.RegistryName }).(pulumi.StringOutput) } // The name of the resource group in which to create the Container Registry Webhook. Changing this forces a new resource to be created. func (o RegistryWebookOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v *RegistryWebook) pulumi.StringOutput { return v.ResourceGroupName }).(pulumi.StringOutput) } // Specifies the scope of repositories that can trigger an event. For example, `foo:*` means events for all tags under repository `foo`. `foo:bar` means events for 'foo:bar' only. `foo` is equivalent to `foo:latest`. Empty means all events. Defaults to `""`. func (o RegistryWebookOutput) Scope() pulumi.StringPtrOutput { return o.ApplyT(func(v *RegistryWebook) pulumi.StringPtrOutput { return v.Scope }).(pulumi.StringPtrOutput) } // Specifies the service URI for the Webhook to post notifications. func (o RegistryWebookOutput) ServiceUri() pulumi.StringOutput { return o.ApplyT(func(v *RegistryWebook) pulumi.StringOutput { return v.ServiceUri }).(pulumi.StringOutput) } // Specifies if this Webhook triggers notifications or not. Valid values: `enabled` and `disabled`. Default is `enabled`. func (o RegistryWebookOutput) Status() pulumi.StringPtrOutput { return o.ApplyT(func(v *RegistryWebook) pulumi.StringPtrOutput { return v.Status }).(pulumi.StringPtrOutput) } // A mapping of tags to assign to the resource. func (o RegistryWebookOutput) Tags() pulumi.StringMapOutput { return o.ApplyT(func(v *RegistryWebook) pulumi.StringMapOutput { return v.Tags }).(pulumi.StringMapOutput) } type RegistryWebookArrayOutput struct{ *pulumi.OutputState } func (RegistryWebookArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*RegistryWebook)(nil)).Elem() } func (o RegistryWebookArrayOutput) ToRegistryWebookArrayOutput() RegistryWebookArrayOutput { return o } func (o RegistryWebookArrayOutput) ToRegistryWebookArrayOutputWithContext(ctx context.Context) RegistryWebookArrayOutput { return o } func (o RegistryWebookArrayOutput) Index(i pulumi.IntInput) RegistryWebookOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *RegistryWebook { return vs[0].([]*RegistryWebook)[vs[1].(int)] }).(RegistryWebookOutput) } type RegistryWebookMapOutput struct{ *pulumi.OutputState } func (RegistryWebookMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*RegistryWebook)(nil)).Elem() } func (o RegistryWebookMapOutput) ToRegistryWebookMapOutput() RegistryWebookMapOutput { return o } func (o RegistryWebookMapOutput) ToRegistryWebookMapOutputWithContext(ctx context.Context) RegistryWebookMapOutput { return o } func (o RegistryWebookMapOutput) MapIndex(k pulumi.StringInput) RegistryWebookOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *RegistryWebook { return vs[0].(map[string]*RegistryWebook)[vs[1].(string)] }).(RegistryWebookOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*RegistryWebookInput)(nil)).Elem(), &RegistryWebook{}) pulumi.RegisterInputType(reflect.TypeOf((*RegistryWebookArrayInput)(nil)).Elem(), RegistryWebookArray{}) pulumi.RegisterInputType(reflect.TypeOf((*RegistryWebookMapInput)(nil)).Elem(), RegistryWebookMap{}) pulumi.RegisterOutputType(RegistryWebookOutput{}) pulumi.RegisterOutputType(RegistryWebookArrayOutput{}) pulumi.RegisterOutputType(RegistryWebookMapOutput{}) }
go
Apache-2.0
b66e1472775a89cca43f5050fef806854a7c3fa3
2026-01-07T09:44:27.619514Z
false
pulumi/pulumi-azure
https://github.com/pulumi/pulumi-azure/blob/b66e1472775a89cca43f5050fef806854a7c3fa3/sdk/go/azure/containerservice/getFleetManager.go
sdk/go/azure/containerservice/getFleetManager.go
// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package containerservice import ( "context" "reflect" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Use this data source to access information about an existing Kubernetes Fleet Manager. // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/containerservice" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { // example, err := containerservice.GetFleetManager(ctx, &containerservice.GetFleetManagerArgs{ // Name: "example", // ResourceGroupName: "example-resource-group", // }, nil) // if err != nil { // return err // } // ctx.Export("id", example.Id) // return nil // }) // } // // ``` // // ## API Providers // // <!-- This section is generated, changes will be overwritten --> // This data source uses the following Azure API Providers: // // * `Microsoft.ContainerService` - 2024-04-01 func GetFleetManager(ctx *pulumi.Context, args *GetFleetManagerArgs, opts ...pulumi.InvokeOption) (*GetFleetManagerResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv GetFleetManagerResult err := ctx.Invoke("azure:containerservice/getFleetManager:getFleetManager", args, &rv, opts...) if err != nil { return nil, err } return &rv, nil } // A collection of arguments for invoking getFleetManager. type GetFleetManagerArgs struct { // The name of this Kubernetes Fleet Manager. Name string `pulumi:"name"` // The name of the Resource Group where the Kubernetes Fleet Manager exists. ResourceGroupName string `pulumi:"resourceGroupName"` } // A collection of values returned by getFleetManager. type GetFleetManagerResult struct { // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` // The Azure Region where the Kubernetes Fleet Manager exists. Location string `pulumi:"location"` Name string `pulumi:"name"` ResourceGroupName string `pulumi:"resourceGroupName"` // A mapping of tags assigned to the Kubernetes Fleet Manager. Tags map[string]string `pulumi:"tags"` } func GetFleetManagerOutput(ctx *pulumi.Context, args GetFleetManagerOutputArgs, opts ...pulumi.InvokeOption) GetFleetManagerResultOutput { return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetFleetManagerResultOutput, error) { args := v.(GetFleetManagerArgs) options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} return ctx.InvokeOutput("azure:containerservice/getFleetManager:getFleetManager", args, GetFleetManagerResultOutput{}, options).(GetFleetManagerResultOutput), nil }).(GetFleetManagerResultOutput) } // A collection of arguments for invoking getFleetManager. type GetFleetManagerOutputArgs struct { // The name of this Kubernetes Fleet Manager. Name pulumi.StringInput `pulumi:"name"` // The name of the Resource Group where the Kubernetes Fleet Manager exists. ResourceGroupName pulumi.StringInput `pulumi:"resourceGroupName"` } func (GetFleetManagerOutputArgs) ElementType() reflect.Type { return reflect.TypeOf((*GetFleetManagerArgs)(nil)).Elem() } // A collection of values returned by getFleetManager. type GetFleetManagerResultOutput struct{ *pulumi.OutputState } func (GetFleetManagerResultOutput) ElementType() reflect.Type { return reflect.TypeOf((*GetFleetManagerResult)(nil)).Elem() } func (o GetFleetManagerResultOutput) ToGetFleetManagerResultOutput() GetFleetManagerResultOutput { return o } func (o GetFleetManagerResultOutput) ToGetFleetManagerResultOutputWithContext(ctx context.Context) GetFleetManagerResultOutput { return o } // The provider-assigned unique ID for this managed resource. func (o GetFleetManagerResultOutput) Id() pulumi.StringOutput { return o.ApplyT(func(v GetFleetManagerResult) string { return v.Id }).(pulumi.StringOutput) } // The Azure Region where the Kubernetes Fleet Manager exists. func (o GetFleetManagerResultOutput) Location() pulumi.StringOutput { return o.ApplyT(func(v GetFleetManagerResult) string { return v.Location }).(pulumi.StringOutput) } func (o GetFleetManagerResultOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v GetFleetManagerResult) string { return v.Name }).(pulumi.StringOutput) } func (o GetFleetManagerResultOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v GetFleetManagerResult) string { return v.ResourceGroupName }).(pulumi.StringOutput) } // A mapping of tags assigned to the Kubernetes Fleet Manager. func (o GetFleetManagerResultOutput) Tags() pulumi.StringMapOutput { return o.ApplyT(func(v GetFleetManagerResult) map[string]string { return v.Tags }).(pulumi.StringMapOutput) } func init() { pulumi.RegisterOutputType(GetFleetManagerResultOutput{}) }
go
Apache-2.0
b66e1472775a89cca43f5050fef806854a7c3fa3
2026-01-07T09:44:27.619514Z
false
pulumi/pulumi-azure
https://github.com/pulumi/pulumi-azure/blob/b66e1472775a89cca43f5050fef806854a7c3fa3/sdk/go/azure/containerservice/getRegistryCacheRule.go
sdk/go/azure/containerservice/getRegistryCacheRule.go
// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package containerservice import ( "context" "reflect" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Use this data source to access information about an existing Container Registry Cache Rule. // // ## Example Usage // // ## API Providers // // <!-- This section is generated, changes will be overwritten --> // This data source uses the following Azure API Providers: // // * `Microsoft.ContainerRegistry` - 2023-07-01 func LookupRegistryCacheRule(ctx *pulumi.Context, args *LookupRegistryCacheRuleArgs, opts ...pulumi.InvokeOption) (*LookupRegistryCacheRuleResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupRegistryCacheRuleResult err := ctx.Invoke("azure:containerservice/getRegistryCacheRule:getRegistryCacheRule", args, &rv, opts...) if err != nil { return nil, err } return &rv, nil } // A collection of arguments for invoking getRegistryCacheRule. type LookupRegistryCacheRuleArgs struct { // The ID of the container registry where the cache rule should apply. Changing this forces a new resource to be created. ContainerRegistryId string `pulumi:"containerRegistryId"` // Specifies the name of the Container Registry Cache Rule. Only Alphanumeric characters allowed. Changing this forces a new resource to be created. Name string `pulumi:"name"` } // A collection of values returned by getRegistryCacheRule. type LookupRegistryCacheRuleResult struct { ContainerRegistryId string `pulumi:"containerRegistryId"` // The ARM resource ID of the credential store which is associated with the cache rule. CredentialSetId string `pulumi:"credentialSetId"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` Name string `pulumi:"name"` // The name of the source repository path. SourceRepo string `pulumi:"sourceRepo"` // The name of the new repository path to store artifacts. TargetRepo string `pulumi:"targetRepo"` } func LookupRegistryCacheRuleOutput(ctx *pulumi.Context, args LookupRegistryCacheRuleOutputArgs, opts ...pulumi.InvokeOption) LookupRegistryCacheRuleResultOutput { return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupRegistryCacheRuleResultOutput, error) { args := v.(LookupRegistryCacheRuleArgs) options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} return ctx.InvokeOutput("azure:containerservice/getRegistryCacheRule:getRegistryCacheRule", args, LookupRegistryCacheRuleResultOutput{}, options).(LookupRegistryCacheRuleResultOutput), nil }).(LookupRegistryCacheRuleResultOutput) } // A collection of arguments for invoking getRegistryCacheRule. type LookupRegistryCacheRuleOutputArgs struct { // The ID of the container registry where the cache rule should apply. Changing this forces a new resource to be created. ContainerRegistryId pulumi.StringInput `pulumi:"containerRegistryId"` // Specifies the name of the Container Registry Cache Rule. Only Alphanumeric characters allowed. Changing this forces a new resource to be created. Name pulumi.StringInput `pulumi:"name"` } func (LookupRegistryCacheRuleOutputArgs) ElementType() reflect.Type { return reflect.TypeOf((*LookupRegistryCacheRuleArgs)(nil)).Elem() } // A collection of values returned by getRegistryCacheRule. type LookupRegistryCacheRuleResultOutput struct{ *pulumi.OutputState } func (LookupRegistryCacheRuleResultOutput) ElementType() reflect.Type { return reflect.TypeOf((*LookupRegistryCacheRuleResult)(nil)).Elem() } func (o LookupRegistryCacheRuleResultOutput) ToLookupRegistryCacheRuleResultOutput() LookupRegistryCacheRuleResultOutput { return o } func (o LookupRegistryCacheRuleResultOutput) ToLookupRegistryCacheRuleResultOutputWithContext(ctx context.Context) LookupRegistryCacheRuleResultOutput { return o } func (o LookupRegistryCacheRuleResultOutput) ContainerRegistryId() pulumi.StringOutput { return o.ApplyT(func(v LookupRegistryCacheRuleResult) string { return v.ContainerRegistryId }).(pulumi.StringOutput) } // The ARM resource ID of the credential store which is associated with the cache rule. func (o LookupRegistryCacheRuleResultOutput) CredentialSetId() pulumi.StringOutput { return o.ApplyT(func(v LookupRegistryCacheRuleResult) string { return v.CredentialSetId }).(pulumi.StringOutput) } // The provider-assigned unique ID for this managed resource. func (o LookupRegistryCacheRuleResultOutput) Id() pulumi.StringOutput { return o.ApplyT(func(v LookupRegistryCacheRuleResult) string { return v.Id }).(pulumi.StringOutput) } func (o LookupRegistryCacheRuleResultOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v LookupRegistryCacheRuleResult) string { return v.Name }).(pulumi.StringOutput) } // The name of the source repository path. func (o LookupRegistryCacheRuleResultOutput) SourceRepo() pulumi.StringOutput { return o.ApplyT(func(v LookupRegistryCacheRuleResult) string { return v.SourceRepo }).(pulumi.StringOutput) } // The name of the new repository path to store artifacts. func (o LookupRegistryCacheRuleResultOutput) TargetRepo() pulumi.StringOutput { return o.ApplyT(func(v LookupRegistryCacheRuleResult) string { return v.TargetRepo }).(pulumi.StringOutput) } func init() { pulumi.RegisterOutputType(LookupRegistryCacheRuleResultOutput{}) }
go
Apache-2.0
b66e1472775a89cca43f5050fef806854a7c3fa3
2026-01-07T09:44:27.619514Z
false
pulumi/pulumi-azure
https://github.com/pulumi/pulumi-azure/blob/b66e1472775a89cca43f5050fef806854a7c3fa3/sdk/go/azure/containerservice/registryScopeMap.go
sdk/go/azure/containerservice/registryScopeMap.go
// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package containerservice import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages an Azure Container Registry scope map. For more information on scope maps see the [product documentation](https://learn.microsoft.com/en-us/azure/container-registry/container-registry-repository-scoped-permissions). // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/containerservice" // "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-resource-group"), // Location: pulumi.String("West Europe"), // }) // if err != nil { // return err // } // exampleRegistry, err := containerservice.NewRegistry(ctx, "example", &containerservice.RegistryArgs{ // Name: pulumi.String("exampleregistry"), // ResourceGroupName: example.Name, // Location: example.Location, // Sku: pulumi.String("Basic"), // AdminEnabled: pulumi.Bool(false), // Georeplications: containerservice.RegistryGeoreplicationArray{ // &containerservice.RegistryGeoreplicationArgs{ // Location: pulumi.String("East US"), // }, // &containerservice.RegistryGeoreplicationArgs{ // Location: pulumi.String("West Europe"), // }, // }, // }) // if err != nil { // return err // } // _, err = containerservice.NewRegistryScopeMap(ctx, "example", &containerservice.RegistryScopeMapArgs{ // Name: pulumi.String("example-scope-map"), // ContainerRegistryName: exampleRegistry.Name, // ResourceGroupName: example.Name, // Actions: pulumi.StringArray{ // pulumi.String("repositories/repo1/content/read"), // pulumi.String("repositories/repo1/content/write"), // }, // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## API Providers // // <!-- This section is generated, changes will be overwritten --> // This resource uses the following Azure API Providers: // // * `Microsoft.ContainerRegistry` - 2025-04-01 // // ## Import // // Container Registries can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:containerservice/registryScopeMap:RegistryScopeMap example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.ContainerRegistry/registries/myregistry1/scopeMaps/scopemap1 // ``` type RegistryScopeMap struct { pulumi.CustomResourceState // A list of actions to attach to the scope map (e.g. `repo/content/read`, `repo2/content/delete`). Actions pulumi.StringArrayOutput `pulumi:"actions"` // The name of the Container Registry. Changing this forces a new resource to be created. ContainerRegistryName pulumi.StringOutput `pulumi:"containerRegistryName"` // The description of the Container Registry. Description pulumi.StringPtrOutput `pulumi:"description"` // Specifies the name of the scope map. 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 Container Registry token. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` } // NewRegistryScopeMap registers a new resource with the given unique name, arguments, and options. func NewRegistryScopeMap(ctx *pulumi.Context, name string, args *RegistryScopeMapArgs, opts ...pulumi.ResourceOption) (*RegistryScopeMap, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.Actions == nil { return nil, errors.New("invalid value for required argument 'Actions'") } if args.ContainerRegistryName == nil { return nil, errors.New("invalid value for required argument 'ContainerRegistryName'") } if args.ResourceGroupName == nil { return nil, errors.New("invalid value for required argument 'ResourceGroupName'") } opts = internal.PkgResourceDefaultOpts(opts) var resource RegistryScopeMap err := ctx.RegisterResource("azure:containerservice/registryScopeMap:RegistryScopeMap", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetRegistryScopeMap gets an existing RegistryScopeMap 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 GetRegistryScopeMap(ctx *pulumi.Context, name string, id pulumi.IDInput, state *RegistryScopeMapState, opts ...pulumi.ResourceOption) (*RegistryScopeMap, error) { var resource RegistryScopeMap err := ctx.ReadResource("azure:containerservice/registryScopeMap:RegistryScopeMap", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering RegistryScopeMap resources. type registryScopeMapState struct { // A list of actions to attach to the scope map (e.g. `repo/content/read`, `repo2/content/delete`). Actions []string `pulumi:"actions"` // The name of the Container Registry. Changing this forces a new resource to be created. ContainerRegistryName *string `pulumi:"containerRegistryName"` // The description of the Container Registry. Description *string `pulumi:"description"` // Specifies the name of the scope map. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // The name of the resource group in which to create the Container Registry token. Changing this forces a new resource to be created. ResourceGroupName *string `pulumi:"resourceGroupName"` } type RegistryScopeMapState struct { // A list of actions to attach to the scope map (e.g. `repo/content/read`, `repo2/content/delete`). Actions pulumi.StringArrayInput // The name of the Container Registry. Changing this forces a new resource to be created. ContainerRegistryName pulumi.StringPtrInput // The description of the Container Registry. Description pulumi.StringPtrInput // Specifies the name of the scope map. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // The name of the resource group in which to create the Container Registry token. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringPtrInput } func (RegistryScopeMapState) ElementType() reflect.Type { return reflect.TypeOf((*registryScopeMapState)(nil)).Elem() } type registryScopeMapArgs struct { // A list of actions to attach to the scope map (e.g. `repo/content/read`, `repo2/content/delete`). Actions []string `pulumi:"actions"` // The name of the Container Registry. Changing this forces a new resource to be created. ContainerRegistryName string `pulumi:"containerRegistryName"` // The description of the Container Registry. Description *string `pulumi:"description"` // Specifies the name of the scope map. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // The name of the resource group in which to create the Container Registry token. Changing this forces a new resource to be created. ResourceGroupName string `pulumi:"resourceGroupName"` } // The set of arguments for constructing a RegistryScopeMap resource. type RegistryScopeMapArgs struct { // A list of actions to attach to the scope map (e.g. `repo/content/read`, `repo2/content/delete`). Actions pulumi.StringArrayInput // The name of the Container Registry. Changing this forces a new resource to be created. ContainerRegistryName pulumi.StringInput // The description of the Container Registry. Description pulumi.StringPtrInput // Specifies the name of the scope map. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // The name of the resource group in which to create the Container Registry token. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringInput } func (RegistryScopeMapArgs) ElementType() reflect.Type { return reflect.TypeOf((*registryScopeMapArgs)(nil)).Elem() } type RegistryScopeMapInput interface { pulumi.Input ToRegistryScopeMapOutput() RegistryScopeMapOutput ToRegistryScopeMapOutputWithContext(ctx context.Context) RegistryScopeMapOutput } func (*RegistryScopeMap) ElementType() reflect.Type { return reflect.TypeOf((**RegistryScopeMap)(nil)).Elem() } func (i *RegistryScopeMap) ToRegistryScopeMapOutput() RegistryScopeMapOutput { return i.ToRegistryScopeMapOutputWithContext(context.Background()) } func (i *RegistryScopeMap) ToRegistryScopeMapOutputWithContext(ctx context.Context) RegistryScopeMapOutput { return pulumi.ToOutputWithContext(ctx, i).(RegistryScopeMapOutput) } // RegistryScopeMapArrayInput is an input type that accepts RegistryScopeMapArray and RegistryScopeMapArrayOutput values. // You can construct a concrete instance of `RegistryScopeMapArrayInput` via: // // RegistryScopeMapArray{ RegistryScopeMapArgs{...} } type RegistryScopeMapArrayInput interface { pulumi.Input ToRegistryScopeMapArrayOutput() RegistryScopeMapArrayOutput ToRegistryScopeMapArrayOutputWithContext(context.Context) RegistryScopeMapArrayOutput } type RegistryScopeMapArray []RegistryScopeMapInput func (RegistryScopeMapArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*RegistryScopeMap)(nil)).Elem() } func (i RegistryScopeMapArray) ToRegistryScopeMapArrayOutput() RegistryScopeMapArrayOutput { return i.ToRegistryScopeMapArrayOutputWithContext(context.Background()) } func (i RegistryScopeMapArray) ToRegistryScopeMapArrayOutputWithContext(ctx context.Context) RegistryScopeMapArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(RegistryScopeMapArrayOutput) } // RegistryScopeMapMapInput is an input type that accepts RegistryScopeMapMap and RegistryScopeMapMapOutput values. // You can construct a concrete instance of `RegistryScopeMapMapInput` via: // // RegistryScopeMapMap{ "key": RegistryScopeMapArgs{...} } type RegistryScopeMapMapInput interface { pulumi.Input ToRegistryScopeMapMapOutput() RegistryScopeMapMapOutput ToRegistryScopeMapMapOutputWithContext(context.Context) RegistryScopeMapMapOutput } type RegistryScopeMapMap map[string]RegistryScopeMapInput func (RegistryScopeMapMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*RegistryScopeMap)(nil)).Elem() } func (i RegistryScopeMapMap) ToRegistryScopeMapMapOutput() RegistryScopeMapMapOutput { return i.ToRegistryScopeMapMapOutputWithContext(context.Background()) } func (i RegistryScopeMapMap) ToRegistryScopeMapMapOutputWithContext(ctx context.Context) RegistryScopeMapMapOutput { return pulumi.ToOutputWithContext(ctx, i).(RegistryScopeMapMapOutput) } type RegistryScopeMapOutput struct{ *pulumi.OutputState } func (RegistryScopeMapOutput) ElementType() reflect.Type { return reflect.TypeOf((**RegistryScopeMap)(nil)).Elem() } func (o RegistryScopeMapOutput) ToRegistryScopeMapOutput() RegistryScopeMapOutput { return o } func (o RegistryScopeMapOutput) ToRegistryScopeMapOutputWithContext(ctx context.Context) RegistryScopeMapOutput { return o } // A list of actions to attach to the scope map (e.g. `repo/content/read`, `repo2/content/delete`). func (o RegistryScopeMapOutput) Actions() pulumi.StringArrayOutput { return o.ApplyT(func(v *RegistryScopeMap) pulumi.StringArrayOutput { return v.Actions }).(pulumi.StringArrayOutput) } // The name of the Container Registry. Changing this forces a new resource to be created. func (o RegistryScopeMapOutput) ContainerRegistryName() pulumi.StringOutput { return o.ApplyT(func(v *RegistryScopeMap) pulumi.StringOutput { return v.ContainerRegistryName }).(pulumi.StringOutput) } // The description of the Container Registry. func (o RegistryScopeMapOutput) Description() pulumi.StringPtrOutput { return o.ApplyT(func(v *RegistryScopeMap) pulumi.StringPtrOutput { return v.Description }).(pulumi.StringPtrOutput) } // Specifies the name of the scope map. Changing this forces a new resource to be created. func (o RegistryScopeMapOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *RegistryScopeMap) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // The name of the resource group in which to create the Container Registry token. Changing this forces a new resource to be created. func (o RegistryScopeMapOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v *RegistryScopeMap) pulumi.StringOutput { return v.ResourceGroupName }).(pulumi.StringOutput) } type RegistryScopeMapArrayOutput struct{ *pulumi.OutputState } func (RegistryScopeMapArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*RegistryScopeMap)(nil)).Elem() } func (o RegistryScopeMapArrayOutput) ToRegistryScopeMapArrayOutput() RegistryScopeMapArrayOutput { return o } func (o RegistryScopeMapArrayOutput) ToRegistryScopeMapArrayOutputWithContext(ctx context.Context) RegistryScopeMapArrayOutput { return o } func (o RegistryScopeMapArrayOutput) Index(i pulumi.IntInput) RegistryScopeMapOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *RegistryScopeMap { return vs[0].([]*RegistryScopeMap)[vs[1].(int)] }).(RegistryScopeMapOutput) } type RegistryScopeMapMapOutput struct{ *pulumi.OutputState } func (RegistryScopeMapMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*RegistryScopeMap)(nil)).Elem() } func (o RegistryScopeMapMapOutput) ToRegistryScopeMapMapOutput() RegistryScopeMapMapOutput { return o } func (o RegistryScopeMapMapOutput) ToRegistryScopeMapMapOutputWithContext(ctx context.Context) RegistryScopeMapMapOutput { return o } func (o RegistryScopeMapMapOutput) MapIndex(k pulumi.StringInput) RegistryScopeMapOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *RegistryScopeMap { return vs[0].(map[string]*RegistryScopeMap)[vs[1].(string)] }).(RegistryScopeMapOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*RegistryScopeMapInput)(nil)).Elem(), &RegistryScopeMap{}) pulumi.RegisterInputType(reflect.TypeOf((*RegistryScopeMapArrayInput)(nil)).Elem(), RegistryScopeMapArray{}) pulumi.RegisterInputType(reflect.TypeOf((*RegistryScopeMapMapInput)(nil)).Elem(), RegistryScopeMapMap{}) pulumi.RegisterOutputType(RegistryScopeMapOutput{}) pulumi.RegisterOutputType(RegistryScopeMapArrayOutput{}) pulumi.RegisterOutputType(RegistryScopeMapMapOutput{}) }
go
Apache-2.0
b66e1472775a89cca43f5050fef806854a7c3fa3
2026-01-07T09:44:27.619514Z
false
pulumi/pulumi-azure
https://github.com/pulumi/pulumi-azure/blob/b66e1472775a89cca43f5050fef806854a7c3fa3/sdk/go/azure/containerservice/registryWebhook.go
sdk/go/azure/containerservice/registryWebhook.go
// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package containerservice import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages an Azure Container Registry Webhook. // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/containerservice" // "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-resources"), // Location: pulumi.String("West Europe"), // }) // if err != nil { // return err // } // acr, err := containerservice.NewRegistry(ctx, "acr", &containerservice.RegistryArgs{ // Name: pulumi.String("containerRegistry1"), // ResourceGroupName: example.Name, // Location: example.Location, // Sku: pulumi.String("Standard"), // AdminEnabled: pulumi.Bool(false), // }) // if err != nil { // return err // } // _, err = containerservice.NewRegistryWebhook(ctx, "webhook", &containerservice.RegistryWebhookArgs{ // Name: pulumi.String("mywebhook"), // ResourceGroupName: example.Name, // RegistryName: acr.Name, // Location: example.Location, // ServiceUri: pulumi.String("https://mywebhookreceiver.example/mytag"), // Status: pulumi.String("enabled"), // Scope: pulumi.String("mytag:*"), // Actions: pulumi.StringArray{ // pulumi.String("push"), // }, // CustomHeaders: pulumi.StringMap{ // "Content-Type": pulumi.String("application/json"), // }, // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## API Providers // // <!-- This section is generated, changes will be overwritten --> // This resource uses the following Azure API Providers: // // * `Microsoft.ContainerRegistry` - 2025-04-01 // // ## Import // // Container Registry Webhooks can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:containerservice/registryWebhook:RegistryWebhook example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.ContainerRegistry/registries/myregistry1/webHooks/mywebhook1 // ``` type RegistryWebhook struct { pulumi.CustomResourceState // A list of actions that trigger the Webhook to post notifications. At least one action needs to be specified. Valid values are: `push`, `delete`, `quarantine`, `chartPush`, `chartDelete` Actions pulumi.StringArrayOutput `pulumi:"actions"` // Custom headers that will be added to the webhook notifications request. CustomHeaders pulumi.StringMapOutput `pulumi:"customHeaders"` // 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 Container Registry Webhook. Only Alphanumeric characters allowed. Changing this forces a new resource to be created. Name pulumi.StringOutput `pulumi:"name"` // The Name of Container registry this Webhook belongs to. Changing this forces a new resource to be created. RegistryName pulumi.StringOutput `pulumi:"registryName"` // The name of the resource group in which to create the Container Registry Webhook. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // Specifies the scope of repositories that can trigger an event. For example, `foo:*` means events for all tags under repository `foo`. `foo:bar` means events for 'foo:bar' only. `foo` is equivalent to `foo:latest`. Empty means all events. Defaults to `""`. Scope pulumi.StringPtrOutput `pulumi:"scope"` // Specifies the service URI for the Webhook to post notifications. ServiceUri pulumi.StringOutput `pulumi:"serviceUri"` // Specifies if this Webhook triggers notifications or not. Valid values: `enabled` and `disabled`. Default is `enabled`. Status pulumi.StringPtrOutput `pulumi:"status"` // A mapping of tags to assign to the resource. Tags pulumi.StringMapOutput `pulumi:"tags"` } // NewRegistryWebhook registers a new resource with the given unique name, arguments, and options. func NewRegistryWebhook(ctx *pulumi.Context, name string, args *RegistryWebhookArgs, opts ...pulumi.ResourceOption) (*RegistryWebhook, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.Actions == nil { return nil, errors.New("invalid value for required argument 'Actions'") } if args.RegistryName == nil { return nil, errors.New("invalid value for required argument 'RegistryName'") } if args.ResourceGroupName == nil { return nil, errors.New("invalid value for required argument 'ResourceGroupName'") } if args.ServiceUri == nil { return nil, errors.New("invalid value for required argument 'ServiceUri'") } aliases := pulumi.Aliases([]pulumi.Alias{ { Type: pulumi.String("azure:containerservice/registryWebook:RegistryWebook"), }, }) opts = append(opts, aliases) opts = internal.PkgResourceDefaultOpts(opts) var resource RegistryWebhook err := ctx.RegisterResource("azure:containerservice/registryWebhook:RegistryWebhook", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetRegistryWebhook gets an existing RegistryWebhook 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 GetRegistryWebhook(ctx *pulumi.Context, name string, id pulumi.IDInput, state *RegistryWebhookState, opts ...pulumi.ResourceOption) (*RegistryWebhook, error) { var resource RegistryWebhook err := ctx.ReadResource("azure:containerservice/registryWebhook:RegistryWebhook", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering RegistryWebhook resources. type registryWebhookState struct { // A list of actions that trigger the Webhook to post notifications. At least one action needs to be specified. Valid values are: `push`, `delete`, `quarantine`, `chartPush`, `chartDelete` Actions []string `pulumi:"actions"` // Custom headers that will be added to the webhook notifications request. CustomHeaders map[string]string `pulumi:"customHeaders"` // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location *string `pulumi:"location"` // Specifies the name of the Container Registry Webhook. Only Alphanumeric characters allowed. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // The Name of Container registry this Webhook belongs to. Changing this forces a new resource to be created. RegistryName *string `pulumi:"registryName"` // The name of the resource group in which to create the Container Registry Webhook. Changing this forces a new resource to be created. ResourceGroupName *string `pulumi:"resourceGroupName"` // Specifies the scope of repositories that can trigger an event. For example, `foo:*` means events for all tags under repository `foo`. `foo:bar` means events for 'foo:bar' only. `foo` is equivalent to `foo:latest`. Empty means all events. Defaults to `""`. Scope *string `pulumi:"scope"` // Specifies the service URI for the Webhook to post notifications. ServiceUri *string `pulumi:"serviceUri"` // Specifies if this Webhook triggers notifications or not. Valid values: `enabled` and `disabled`. Default is `enabled`. Status *string `pulumi:"status"` // A mapping of tags to assign to the resource. Tags map[string]string `pulumi:"tags"` } type RegistryWebhookState struct { // A list of actions that trigger the Webhook to post notifications. At least one action needs to be specified. Valid values are: `push`, `delete`, `quarantine`, `chartPush`, `chartDelete` Actions pulumi.StringArrayInput // Custom headers that will be added to the webhook notifications request. CustomHeaders pulumi.StringMapInput // 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 Container Registry Webhook. Only Alphanumeric characters allowed. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // The Name of Container registry this Webhook belongs to. Changing this forces a new resource to be created. RegistryName pulumi.StringPtrInput // The name of the resource group in which to create the Container Registry Webhook. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringPtrInput // Specifies the scope of repositories that can trigger an event. For example, `foo:*` means events for all tags under repository `foo`. `foo:bar` means events for 'foo:bar' only. `foo` is equivalent to `foo:latest`. Empty means all events. Defaults to `""`. Scope pulumi.StringPtrInput // Specifies the service URI for the Webhook to post notifications. ServiceUri pulumi.StringPtrInput // Specifies if this Webhook triggers notifications or not. Valid values: `enabled` and `disabled`. Default is `enabled`. Status pulumi.StringPtrInput // A mapping of tags to assign to the resource. Tags pulumi.StringMapInput } func (RegistryWebhookState) ElementType() reflect.Type { return reflect.TypeOf((*registryWebhookState)(nil)).Elem() } type registryWebhookArgs struct { // A list of actions that trigger the Webhook to post notifications. At least one action needs to be specified. Valid values are: `push`, `delete`, `quarantine`, `chartPush`, `chartDelete` Actions []string `pulumi:"actions"` // Custom headers that will be added to the webhook notifications request. CustomHeaders map[string]string `pulumi:"customHeaders"` // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location *string `pulumi:"location"` // Specifies the name of the Container Registry Webhook. Only Alphanumeric characters allowed. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // The Name of Container registry this Webhook belongs to. Changing this forces a new resource to be created. RegistryName string `pulumi:"registryName"` // The name of the resource group in which to create the Container Registry Webhook. Changing this forces a new resource to be created. ResourceGroupName string `pulumi:"resourceGroupName"` // Specifies the scope of repositories that can trigger an event. For example, `foo:*` means events for all tags under repository `foo`. `foo:bar` means events for 'foo:bar' only. `foo` is equivalent to `foo:latest`. Empty means all events. Defaults to `""`. Scope *string `pulumi:"scope"` // Specifies the service URI for the Webhook to post notifications. ServiceUri string `pulumi:"serviceUri"` // Specifies if this Webhook triggers notifications or not. Valid values: `enabled` and `disabled`. Default is `enabled`. Status *string `pulumi:"status"` // A mapping of tags to assign to the resource. Tags map[string]string `pulumi:"tags"` } // The set of arguments for constructing a RegistryWebhook resource. type RegistryWebhookArgs struct { // A list of actions that trigger the Webhook to post notifications. At least one action needs to be specified. Valid values are: `push`, `delete`, `quarantine`, `chartPush`, `chartDelete` Actions pulumi.StringArrayInput // Custom headers that will be added to the webhook notifications request. CustomHeaders pulumi.StringMapInput // 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 Container Registry Webhook. Only Alphanumeric characters allowed. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // The Name of Container registry this Webhook belongs to. Changing this forces a new resource to be created. RegistryName pulumi.StringInput // The name of the resource group in which to create the Container Registry Webhook. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringInput // Specifies the scope of repositories that can trigger an event. For example, `foo:*` means events for all tags under repository `foo`. `foo:bar` means events for 'foo:bar' only. `foo` is equivalent to `foo:latest`. Empty means all events. Defaults to `""`. Scope pulumi.StringPtrInput // Specifies the service URI for the Webhook to post notifications. ServiceUri pulumi.StringInput // Specifies if this Webhook triggers notifications or not. Valid values: `enabled` and `disabled`. Default is `enabled`. Status pulumi.StringPtrInput // A mapping of tags to assign to the resource. Tags pulumi.StringMapInput } func (RegistryWebhookArgs) ElementType() reflect.Type { return reflect.TypeOf((*registryWebhookArgs)(nil)).Elem() } type RegistryWebhookInput interface { pulumi.Input ToRegistryWebhookOutput() RegistryWebhookOutput ToRegistryWebhookOutputWithContext(ctx context.Context) RegistryWebhookOutput } func (*RegistryWebhook) ElementType() reflect.Type { return reflect.TypeOf((**RegistryWebhook)(nil)).Elem() } func (i *RegistryWebhook) ToRegistryWebhookOutput() RegistryWebhookOutput { return i.ToRegistryWebhookOutputWithContext(context.Background()) } func (i *RegistryWebhook) ToRegistryWebhookOutputWithContext(ctx context.Context) RegistryWebhookOutput { return pulumi.ToOutputWithContext(ctx, i).(RegistryWebhookOutput) } // RegistryWebhookArrayInput is an input type that accepts RegistryWebhookArray and RegistryWebhookArrayOutput values. // You can construct a concrete instance of `RegistryWebhookArrayInput` via: // // RegistryWebhookArray{ RegistryWebhookArgs{...} } type RegistryWebhookArrayInput interface { pulumi.Input ToRegistryWebhookArrayOutput() RegistryWebhookArrayOutput ToRegistryWebhookArrayOutputWithContext(context.Context) RegistryWebhookArrayOutput } type RegistryWebhookArray []RegistryWebhookInput func (RegistryWebhookArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*RegistryWebhook)(nil)).Elem() } func (i RegistryWebhookArray) ToRegistryWebhookArrayOutput() RegistryWebhookArrayOutput { return i.ToRegistryWebhookArrayOutputWithContext(context.Background()) } func (i RegistryWebhookArray) ToRegistryWebhookArrayOutputWithContext(ctx context.Context) RegistryWebhookArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(RegistryWebhookArrayOutput) } // RegistryWebhookMapInput is an input type that accepts RegistryWebhookMap and RegistryWebhookMapOutput values. // You can construct a concrete instance of `RegistryWebhookMapInput` via: // // RegistryWebhookMap{ "key": RegistryWebhookArgs{...} } type RegistryWebhookMapInput interface { pulumi.Input ToRegistryWebhookMapOutput() RegistryWebhookMapOutput ToRegistryWebhookMapOutputWithContext(context.Context) RegistryWebhookMapOutput } type RegistryWebhookMap map[string]RegistryWebhookInput func (RegistryWebhookMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*RegistryWebhook)(nil)).Elem() } func (i RegistryWebhookMap) ToRegistryWebhookMapOutput() RegistryWebhookMapOutput { return i.ToRegistryWebhookMapOutputWithContext(context.Background()) } func (i RegistryWebhookMap) ToRegistryWebhookMapOutputWithContext(ctx context.Context) RegistryWebhookMapOutput { return pulumi.ToOutputWithContext(ctx, i).(RegistryWebhookMapOutput) } type RegistryWebhookOutput struct{ *pulumi.OutputState } func (RegistryWebhookOutput) ElementType() reflect.Type { return reflect.TypeOf((**RegistryWebhook)(nil)).Elem() } func (o RegistryWebhookOutput) ToRegistryWebhookOutput() RegistryWebhookOutput { return o } func (o RegistryWebhookOutput) ToRegistryWebhookOutputWithContext(ctx context.Context) RegistryWebhookOutput { return o } // A list of actions that trigger the Webhook to post notifications. At least one action needs to be specified. Valid values are: `push`, `delete`, `quarantine`, `chartPush`, `chartDelete` func (o RegistryWebhookOutput) Actions() pulumi.StringArrayOutput { return o.ApplyT(func(v *RegistryWebhook) pulumi.StringArrayOutput { return v.Actions }).(pulumi.StringArrayOutput) } // Custom headers that will be added to the webhook notifications request. func (o RegistryWebhookOutput) CustomHeaders() pulumi.StringMapOutput { return o.ApplyT(func(v *RegistryWebhook) pulumi.StringMapOutput { return v.CustomHeaders }).(pulumi.StringMapOutput) } // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. func (o RegistryWebhookOutput) Location() pulumi.StringOutput { return o.ApplyT(func(v *RegistryWebhook) pulumi.StringOutput { return v.Location }).(pulumi.StringOutput) } // Specifies the name of the Container Registry Webhook. Only Alphanumeric characters allowed. Changing this forces a new resource to be created. func (o RegistryWebhookOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *RegistryWebhook) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // The Name of Container registry this Webhook belongs to. Changing this forces a new resource to be created. func (o RegistryWebhookOutput) RegistryName() pulumi.StringOutput { return o.ApplyT(func(v *RegistryWebhook) pulumi.StringOutput { return v.RegistryName }).(pulumi.StringOutput) } // The name of the resource group in which to create the Container Registry Webhook. Changing this forces a new resource to be created. func (o RegistryWebhookOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v *RegistryWebhook) pulumi.StringOutput { return v.ResourceGroupName }).(pulumi.StringOutput) } // Specifies the scope of repositories that can trigger an event. For example, `foo:*` means events for all tags under repository `foo`. `foo:bar` means events for 'foo:bar' only. `foo` is equivalent to `foo:latest`. Empty means all events. Defaults to `""`. func (o RegistryWebhookOutput) Scope() pulumi.StringPtrOutput { return o.ApplyT(func(v *RegistryWebhook) pulumi.StringPtrOutput { return v.Scope }).(pulumi.StringPtrOutput) } // Specifies the service URI for the Webhook to post notifications. func (o RegistryWebhookOutput) ServiceUri() pulumi.StringOutput { return o.ApplyT(func(v *RegistryWebhook) pulumi.StringOutput { return v.ServiceUri }).(pulumi.StringOutput) } // Specifies if this Webhook triggers notifications or not. Valid values: `enabled` and `disabled`. Default is `enabled`. func (o RegistryWebhookOutput) Status() pulumi.StringPtrOutput { return o.ApplyT(func(v *RegistryWebhook) pulumi.StringPtrOutput { return v.Status }).(pulumi.StringPtrOutput) } // A mapping of tags to assign to the resource. func (o RegistryWebhookOutput) Tags() pulumi.StringMapOutput { return o.ApplyT(func(v *RegistryWebhook) pulumi.StringMapOutput { return v.Tags }).(pulumi.StringMapOutput) } type RegistryWebhookArrayOutput struct{ *pulumi.OutputState } func (RegistryWebhookArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*RegistryWebhook)(nil)).Elem() } func (o RegistryWebhookArrayOutput) ToRegistryWebhookArrayOutput() RegistryWebhookArrayOutput { return o } func (o RegistryWebhookArrayOutput) ToRegistryWebhookArrayOutputWithContext(ctx context.Context) RegistryWebhookArrayOutput { return o } func (o RegistryWebhookArrayOutput) Index(i pulumi.IntInput) RegistryWebhookOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *RegistryWebhook { return vs[0].([]*RegistryWebhook)[vs[1].(int)] }).(RegistryWebhookOutput) } type RegistryWebhookMapOutput struct{ *pulumi.OutputState } func (RegistryWebhookMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*RegistryWebhook)(nil)).Elem() } func (o RegistryWebhookMapOutput) ToRegistryWebhookMapOutput() RegistryWebhookMapOutput { return o } func (o RegistryWebhookMapOutput) ToRegistryWebhookMapOutputWithContext(ctx context.Context) RegistryWebhookMapOutput { return o } func (o RegistryWebhookMapOutput) MapIndex(k pulumi.StringInput) RegistryWebhookOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *RegistryWebhook { return vs[0].(map[string]*RegistryWebhook)[vs[1].(string)] }).(RegistryWebhookOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*RegistryWebhookInput)(nil)).Elem(), &RegistryWebhook{}) pulumi.RegisterInputType(reflect.TypeOf((*RegistryWebhookArrayInput)(nil)).Elem(), RegistryWebhookArray{}) pulumi.RegisterInputType(reflect.TypeOf((*RegistryWebhookMapInput)(nil)).Elem(), RegistryWebhookMap{}) pulumi.RegisterOutputType(RegistryWebhookOutput{}) pulumi.RegisterOutputType(RegistryWebhookArrayOutput{}) pulumi.RegisterOutputType(RegistryWebhookMapOutput{}) }
go
Apache-2.0
b66e1472775a89cca43f5050fef806854a7c3fa3
2026-01-07T09:44:27.619514Z
false
pulumi/pulumi-azure
https://github.com/pulumi/pulumi-azure/blob/b66e1472775a89cca43f5050fef806854a7c3fa3/sdk/go/azure/containerservice/kubernetesClusterExtension.go
sdk/go/azure/containerservice/kubernetesClusterExtension.go
// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package containerservice import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a Kubernetes Cluster Extension. // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/containerservice" // "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-resources"), // Location: pulumi.String("West Europe"), // }) // if err != nil { // return err // } // exampleKubernetesCluster, err := containerservice.NewKubernetesCluster(ctx, "example", &containerservice.KubernetesClusterArgs{ // Name: pulumi.String("example-aks"), // Location: pulumi.String("West Europe"), // ResourceGroupName: example.Name, // DnsPrefix: pulumi.String("example-aks"), // DefaultNodePool: &containerservice.KubernetesClusterDefaultNodePoolArgs{ // Name: pulumi.String("default"), // NodeCount: pulumi.Int(1), // VmSize: pulumi.String("Standard_DS2_v2"), // }, // Identity: &containerservice.KubernetesClusterIdentityArgs{ // Type: pulumi.String("SystemAssigned"), // }, // }) // if err != nil { // return err // } // _, err = containerservice.NewKubernetesClusterExtension(ctx, "example", &containerservice.KubernetesClusterExtensionArgs{ // Name: pulumi.String("example-ext"), // ClusterId: exampleKubernetesCluster.ID(), // ExtensionType: pulumi.String("microsoft.flux"), // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## API Providers // // <!-- This section is generated, changes will be overwritten --> // This resource uses the following Azure API Providers: // // * `Microsoft.KubernetesConfiguration` - 2024-11-01 // // ## Import // // Kubernetes Cluster Extension can be imported using the `resource id` for different `cluster_resource_name`, e.g. // // ```sh // $ pulumi import azure:containerservice/kubernetesClusterExtension:KubernetesClusterExtension example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/Microsoft.ContainerService/managedClusters/cluster1/providers/Microsoft.KubernetesConfiguration/extensions/extension1 // ``` type KubernetesClusterExtension struct { pulumi.CustomResourceState // An `aksAssignedIdentity` block as defined below. AksAssignedIdentities KubernetesClusterExtensionAksAssignedIdentityArrayOutput `pulumi:"aksAssignedIdentities"` // Specifies the Cluster ID. Changing this forces a new Kubernetes Cluster Extension to be created. ClusterId pulumi.StringOutput `pulumi:"clusterId"` // Configuration settings that are sensitive, as name-value pairs for configuring this extension. ConfigurationProtectedSettings pulumi.StringMapOutput `pulumi:"configurationProtectedSettings"` // Configuration settings, as name-value pairs for configuring this extension. ConfigurationSettings pulumi.StringMapOutput `pulumi:"configurationSettings"` // The current version of the extension. CurrentVersion pulumi.StringOutput `pulumi:"currentVersion"` // Specifies the type of extension. It must be one of the extension types registered with Microsoft.KubernetesConfiguration by the Extension publisher. For more information, please refer to [Available Extensions for AKS](https://learn.microsoft.com/en-us/azure/aks/cluster-extensions?tabs=azure-cli#currently-available-extensions). Changing this forces a new Kubernetes Cluster Extension to be created. ExtensionType pulumi.StringOutput `pulumi:"extensionType"` // Specifies the name which should be used for this Kubernetes Cluster Extension. Changing this forces a new Kubernetes Cluster Extension to be created. Name pulumi.StringOutput `pulumi:"name"` // A `plan` block as defined below. Changing this forces a new resource to be created. Plan KubernetesClusterExtensionPlanPtrOutput `pulumi:"plan"` // Namespace where the extension release must be placed for a cluster scoped extension. If this namespace does not exist, it will be created. Changing this forces a new Kubernetes Cluster Extension to be created. ReleaseNamespace pulumi.StringOutput `pulumi:"releaseNamespace"` // The release train used by this extension. Possible values include but are not limited to `Stable`, `Preview`. Changing this forces a new Kubernetes Cluster Extension to be created. ReleaseTrain pulumi.StringOutput `pulumi:"releaseTrain"` // Namespace where the extension will be created for a namespace scoped extension. If this namespace does not exist, it will be created. Changing this forces a new Kubernetes Cluster Extension to be created. TargetNamespace pulumi.StringOutput `pulumi:"targetNamespace"` // User-specified version that the extension should pin to. If it is not set, Azure will use the latest version and auto upgrade it. Changing this forces a new Kubernetes Cluster Extension to be created. Version pulumi.StringPtrOutput `pulumi:"version"` } // NewKubernetesClusterExtension registers a new resource with the given unique name, arguments, and options. func NewKubernetesClusterExtension(ctx *pulumi.Context, name string, args *KubernetesClusterExtensionArgs, opts ...pulumi.ResourceOption) (*KubernetesClusterExtension, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.ClusterId == nil { return nil, errors.New("invalid value for required argument 'ClusterId'") } if args.ExtensionType == nil { return nil, errors.New("invalid value for required argument 'ExtensionType'") } opts = internal.PkgResourceDefaultOpts(opts) var resource KubernetesClusterExtension err := ctx.RegisterResource("azure:containerservice/kubernetesClusterExtension:KubernetesClusterExtension", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetKubernetesClusterExtension gets an existing KubernetesClusterExtension 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 GetKubernetesClusterExtension(ctx *pulumi.Context, name string, id pulumi.IDInput, state *KubernetesClusterExtensionState, opts ...pulumi.ResourceOption) (*KubernetesClusterExtension, error) { var resource KubernetesClusterExtension err := ctx.ReadResource("azure:containerservice/kubernetesClusterExtension:KubernetesClusterExtension", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering KubernetesClusterExtension resources. type kubernetesClusterExtensionState struct { // An `aksAssignedIdentity` block as defined below. AksAssignedIdentities []KubernetesClusterExtensionAksAssignedIdentity `pulumi:"aksAssignedIdentities"` // Specifies the Cluster ID. Changing this forces a new Kubernetes Cluster Extension to be created. ClusterId *string `pulumi:"clusterId"` // Configuration settings that are sensitive, as name-value pairs for configuring this extension. ConfigurationProtectedSettings map[string]string `pulumi:"configurationProtectedSettings"` // Configuration settings, as name-value pairs for configuring this extension. ConfigurationSettings map[string]string `pulumi:"configurationSettings"` // The current version of the extension. CurrentVersion *string `pulumi:"currentVersion"` // Specifies the type of extension. It must be one of the extension types registered with Microsoft.KubernetesConfiguration by the Extension publisher. For more information, please refer to [Available Extensions for AKS](https://learn.microsoft.com/en-us/azure/aks/cluster-extensions?tabs=azure-cli#currently-available-extensions). Changing this forces a new Kubernetes Cluster Extension to be created. ExtensionType *string `pulumi:"extensionType"` // Specifies the name which should be used for this Kubernetes Cluster Extension. Changing this forces a new Kubernetes Cluster Extension to be created. Name *string `pulumi:"name"` // A `plan` block as defined below. Changing this forces a new resource to be created. Plan *KubernetesClusterExtensionPlan `pulumi:"plan"` // Namespace where the extension release must be placed for a cluster scoped extension. If this namespace does not exist, it will be created. Changing this forces a new Kubernetes Cluster Extension to be created. ReleaseNamespace *string `pulumi:"releaseNamespace"` // The release train used by this extension. Possible values include but are not limited to `Stable`, `Preview`. Changing this forces a new Kubernetes Cluster Extension to be created. ReleaseTrain *string `pulumi:"releaseTrain"` // Namespace where the extension will be created for a namespace scoped extension. If this namespace does not exist, it will be created. Changing this forces a new Kubernetes Cluster Extension to be created. TargetNamespace *string `pulumi:"targetNamespace"` // User-specified version that the extension should pin to. If it is not set, Azure will use the latest version and auto upgrade it. Changing this forces a new Kubernetes Cluster Extension to be created. Version *string `pulumi:"version"` } type KubernetesClusterExtensionState struct { // An `aksAssignedIdentity` block as defined below. AksAssignedIdentities KubernetesClusterExtensionAksAssignedIdentityArrayInput // Specifies the Cluster ID. Changing this forces a new Kubernetes Cluster Extension to be created. ClusterId pulumi.StringPtrInput // Configuration settings that are sensitive, as name-value pairs for configuring this extension. ConfigurationProtectedSettings pulumi.StringMapInput // Configuration settings, as name-value pairs for configuring this extension. ConfigurationSettings pulumi.StringMapInput // The current version of the extension. CurrentVersion pulumi.StringPtrInput // Specifies the type of extension. It must be one of the extension types registered with Microsoft.KubernetesConfiguration by the Extension publisher. For more information, please refer to [Available Extensions for AKS](https://learn.microsoft.com/en-us/azure/aks/cluster-extensions?tabs=azure-cli#currently-available-extensions). Changing this forces a new Kubernetes Cluster Extension to be created. ExtensionType pulumi.StringPtrInput // Specifies the name which should be used for this Kubernetes Cluster Extension. Changing this forces a new Kubernetes Cluster Extension to be created. Name pulumi.StringPtrInput // A `plan` block as defined below. Changing this forces a new resource to be created. Plan KubernetesClusterExtensionPlanPtrInput // Namespace where the extension release must be placed for a cluster scoped extension. If this namespace does not exist, it will be created. Changing this forces a new Kubernetes Cluster Extension to be created. ReleaseNamespace pulumi.StringPtrInput // The release train used by this extension. Possible values include but are not limited to `Stable`, `Preview`. Changing this forces a new Kubernetes Cluster Extension to be created. ReleaseTrain pulumi.StringPtrInput // Namespace where the extension will be created for a namespace scoped extension. If this namespace does not exist, it will be created. Changing this forces a new Kubernetes Cluster Extension to be created. TargetNamespace pulumi.StringPtrInput // User-specified version that the extension should pin to. If it is not set, Azure will use the latest version and auto upgrade it. Changing this forces a new Kubernetes Cluster Extension to be created. Version pulumi.StringPtrInput } func (KubernetesClusterExtensionState) ElementType() reflect.Type { return reflect.TypeOf((*kubernetesClusterExtensionState)(nil)).Elem() } type kubernetesClusterExtensionArgs struct { // Specifies the Cluster ID. Changing this forces a new Kubernetes Cluster Extension to be created. ClusterId string `pulumi:"clusterId"` // Configuration settings that are sensitive, as name-value pairs for configuring this extension. ConfigurationProtectedSettings map[string]string `pulumi:"configurationProtectedSettings"` // Configuration settings, as name-value pairs for configuring this extension. ConfigurationSettings map[string]string `pulumi:"configurationSettings"` // Specifies the type of extension. It must be one of the extension types registered with Microsoft.KubernetesConfiguration by the Extension publisher. For more information, please refer to [Available Extensions for AKS](https://learn.microsoft.com/en-us/azure/aks/cluster-extensions?tabs=azure-cli#currently-available-extensions). Changing this forces a new Kubernetes Cluster Extension to be created. ExtensionType string `pulumi:"extensionType"` // Specifies the name which should be used for this Kubernetes Cluster Extension. Changing this forces a new Kubernetes Cluster Extension to be created. Name *string `pulumi:"name"` // A `plan` block as defined below. Changing this forces a new resource to be created. Plan *KubernetesClusterExtensionPlan `pulumi:"plan"` // Namespace where the extension release must be placed for a cluster scoped extension. If this namespace does not exist, it will be created. Changing this forces a new Kubernetes Cluster Extension to be created. ReleaseNamespace *string `pulumi:"releaseNamespace"` // The release train used by this extension. Possible values include but are not limited to `Stable`, `Preview`. Changing this forces a new Kubernetes Cluster Extension to be created. ReleaseTrain *string `pulumi:"releaseTrain"` // Namespace where the extension will be created for a namespace scoped extension. If this namespace does not exist, it will be created. Changing this forces a new Kubernetes Cluster Extension to be created. TargetNamespace *string `pulumi:"targetNamespace"` // User-specified version that the extension should pin to. If it is not set, Azure will use the latest version and auto upgrade it. Changing this forces a new Kubernetes Cluster Extension to be created. Version *string `pulumi:"version"` } // The set of arguments for constructing a KubernetesClusterExtension resource. type KubernetesClusterExtensionArgs struct { // Specifies the Cluster ID. Changing this forces a new Kubernetes Cluster Extension to be created. ClusterId pulumi.StringInput // Configuration settings that are sensitive, as name-value pairs for configuring this extension. ConfigurationProtectedSettings pulumi.StringMapInput // Configuration settings, as name-value pairs for configuring this extension. ConfigurationSettings pulumi.StringMapInput // Specifies the type of extension. It must be one of the extension types registered with Microsoft.KubernetesConfiguration by the Extension publisher. For more information, please refer to [Available Extensions for AKS](https://learn.microsoft.com/en-us/azure/aks/cluster-extensions?tabs=azure-cli#currently-available-extensions). Changing this forces a new Kubernetes Cluster Extension to be created. ExtensionType pulumi.StringInput // Specifies the name which should be used for this Kubernetes Cluster Extension. Changing this forces a new Kubernetes Cluster Extension to be created. Name pulumi.StringPtrInput // A `plan` block as defined below. Changing this forces a new resource to be created. Plan KubernetesClusterExtensionPlanPtrInput // Namespace where the extension release must be placed for a cluster scoped extension. If this namespace does not exist, it will be created. Changing this forces a new Kubernetes Cluster Extension to be created. ReleaseNamespace pulumi.StringPtrInput // The release train used by this extension. Possible values include but are not limited to `Stable`, `Preview`. Changing this forces a new Kubernetes Cluster Extension to be created. ReleaseTrain pulumi.StringPtrInput // Namespace where the extension will be created for a namespace scoped extension. If this namespace does not exist, it will be created. Changing this forces a new Kubernetes Cluster Extension to be created. TargetNamespace pulumi.StringPtrInput // User-specified version that the extension should pin to. If it is not set, Azure will use the latest version and auto upgrade it. Changing this forces a new Kubernetes Cluster Extension to be created. Version pulumi.StringPtrInput } func (KubernetesClusterExtensionArgs) ElementType() reflect.Type { return reflect.TypeOf((*kubernetesClusterExtensionArgs)(nil)).Elem() } type KubernetesClusterExtensionInput interface { pulumi.Input ToKubernetesClusterExtensionOutput() KubernetesClusterExtensionOutput ToKubernetesClusterExtensionOutputWithContext(ctx context.Context) KubernetesClusterExtensionOutput } func (*KubernetesClusterExtension) ElementType() reflect.Type { return reflect.TypeOf((**KubernetesClusterExtension)(nil)).Elem() } func (i *KubernetesClusterExtension) ToKubernetesClusterExtensionOutput() KubernetesClusterExtensionOutput { return i.ToKubernetesClusterExtensionOutputWithContext(context.Background()) } func (i *KubernetesClusterExtension) ToKubernetesClusterExtensionOutputWithContext(ctx context.Context) KubernetesClusterExtensionOutput { return pulumi.ToOutputWithContext(ctx, i).(KubernetesClusterExtensionOutput) } // KubernetesClusterExtensionArrayInput is an input type that accepts KubernetesClusterExtensionArray and KubernetesClusterExtensionArrayOutput values. // You can construct a concrete instance of `KubernetesClusterExtensionArrayInput` via: // // KubernetesClusterExtensionArray{ KubernetesClusterExtensionArgs{...} } type KubernetesClusterExtensionArrayInput interface { pulumi.Input ToKubernetesClusterExtensionArrayOutput() KubernetesClusterExtensionArrayOutput ToKubernetesClusterExtensionArrayOutputWithContext(context.Context) KubernetesClusterExtensionArrayOutput } type KubernetesClusterExtensionArray []KubernetesClusterExtensionInput func (KubernetesClusterExtensionArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*KubernetesClusterExtension)(nil)).Elem() } func (i KubernetesClusterExtensionArray) ToKubernetesClusterExtensionArrayOutput() KubernetesClusterExtensionArrayOutput { return i.ToKubernetesClusterExtensionArrayOutputWithContext(context.Background()) } func (i KubernetesClusterExtensionArray) ToKubernetesClusterExtensionArrayOutputWithContext(ctx context.Context) KubernetesClusterExtensionArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(KubernetesClusterExtensionArrayOutput) } // KubernetesClusterExtensionMapInput is an input type that accepts KubernetesClusterExtensionMap and KubernetesClusterExtensionMapOutput values. // You can construct a concrete instance of `KubernetesClusterExtensionMapInput` via: // // KubernetesClusterExtensionMap{ "key": KubernetesClusterExtensionArgs{...} } type KubernetesClusterExtensionMapInput interface { pulumi.Input ToKubernetesClusterExtensionMapOutput() KubernetesClusterExtensionMapOutput ToKubernetesClusterExtensionMapOutputWithContext(context.Context) KubernetesClusterExtensionMapOutput } type KubernetesClusterExtensionMap map[string]KubernetesClusterExtensionInput func (KubernetesClusterExtensionMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*KubernetesClusterExtension)(nil)).Elem() } func (i KubernetesClusterExtensionMap) ToKubernetesClusterExtensionMapOutput() KubernetesClusterExtensionMapOutput { return i.ToKubernetesClusterExtensionMapOutputWithContext(context.Background()) } func (i KubernetesClusterExtensionMap) ToKubernetesClusterExtensionMapOutputWithContext(ctx context.Context) KubernetesClusterExtensionMapOutput { return pulumi.ToOutputWithContext(ctx, i).(KubernetesClusterExtensionMapOutput) } type KubernetesClusterExtensionOutput struct{ *pulumi.OutputState } func (KubernetesClusterExtensionOutput) ElementType() reflect.Type { return reflect.TypeOf((**KubernetesClusterExtension)(nil)).Elem() } func (o KubernetesClusterExtensionOutput) ToKubernetesClusterExtensionOutput() KubernetesClusterExtensionOutput { return o } func (o KubernetesClusterExtensionOutput) ToKubernetesClusterExtensionOutputWithContext(ctx context.Context) KubernetesClusterExtensionOutput { return o } // An `aksAssignedIdentity` block as defined below. func (o KubernetesClusterExtensionOutput) AksAssignedIdentities() KubernetesClusterExtensionAksAssignedIdentityArrayOutput { return o.ApplyT(func(v *KubernetesClusterExtension) KubernetesClusterExtensionAksAssignedIdentityArrayOutput { return v.AksAssignedIdentities }).(KubernetesClusterExtensionAksAssignedIdentityArrayOutput) } // Specifies the Cluster ID. Changing this forces a new Kubernetes Cluster Extension to be created. func (o KubernetesClusterExtensionOutput) ClusterId() pulumi.StringOutput { return o.ApplyT(func(v *KubernetesClusterExtension) pulumi.StringOutput { return v.ClusterId }).(pulumi.StringOutput) } // Configuration settings that are sensitive, as name-value pairs for configuring this extension. func (o KubernetesClusterExtensionOutput) ConfigurationProtectedSettings() pulumi.StringMapOutput { return o.ApplyT(func(v *KubernetesClusterExtension) pulumi.StringMapOutput { return v.ConfigurationProtectedSettings }).(pulumi.StringMapOutput) } // Configuration settings, as name-value pairs for configuring this extension. func (o KubernetesClusterExtensionOutput) ConfigurationSettings() pulumi.StringMapOutput { return o.ApplyT(func(v *KubernetesClusterExtension) pulumi.StringMapOutput { return v.ConfigurationSettings }).(pulumi.StringMapOutput) } // The current version of the extension. func (o KubernetesClusterExtensionOutput) CurrentVersion() pulumi.StringOutput { return o.ApplyT(func(v *KubernetesClusterExtension) pulumi.StringOutput { return v.CurrentVersion }).(pulumi.StringOutput) } // Specifies the type of extension. It must be one of the extension types registered with Microsoft.KubernetesConfiguration by the Extension publisher. For more information, please refer to [Available Extensions for AKS](https://learn.microsoft.com/en-us/azure/aks/cluster-extensions?tabs=azure-cli#currently-available-extensions). Changing this forces a new Kubernetes Cluster Extension to be created. func (o KubernetesClusterExtensionOutput) ExtensionType() pulumi.StringOutput { return o.ApplyT(func(v *KubernetesClusterExtension) pulumi.StringOutput { return v.ExtensionType }).(pulumi.StringOutput) } // Specifies the name which should be used for this Kubernetes Cluster Extension. Changing this forces a new Kubernetes Cluster Extension to be created. func (o KubernetesClusterExtensionOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *KubernetesClusterExtension) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // A `plan` block as defined below. Changing this forces a new resource to be created. func (o KubernetesClusterExtensionOutput) Plan() KubernetesClusterExtensionPlanPtrOutput { return o.ApplyT(func(v *KubernetesClusterExtension) KubernetesClusterExtensionPlanPtrOutput { return v.Plan }).(KubernetesClusterExtensionPlanPtrOutput) } // Namespace where the extension release must be placed for a cluster scoped extension. If this namespace does not exist, it will be created. Changing this forces a new Kubernetes Cluster Extension to be created. func (o KubernetesClusterExtensionOutput) ReleaseNamespace() pulumi.StringOutput { return o.ApplyT(func(v *KubernetesClusterExtension) pulumi.StringOutput { return v.ReleaseNamespace }).(pulumi.StringOutput) } // The release train used by this extension. Possible values include but are not limited to `Stable`, `Preview`. Changing this forces a new Kubernetes Cluster Extension to be created. func (o KubernetesClusterExtensionOutput) ReleaseTrain() pulumi.StringOutput { return o.ApplyT(func(v *KubernetesClusterExtension) pulumi.StringOutput { return v.ReleaseTrain }).(pulumi.StringOutput) } // Namespace where the extension will be created for a namespace scoped extension. If this namespace does not exist, it will be created. Changing this forces a new Kubernetes Cluster Extension to be created. func (o KubernetesClusterExtensionOutput) TargetNamespace() pulumi.StringOutput { return o.ApplyT(func(v *KubernetesClusterExtension) pulumi.StringOutput { return v.TargetNamespace }).(pulumi.StringOutput) } // User-specified version that the extension should pin to. If it is not set, Azure will use the latest version and auto upgrade it. Changing this forces a new Kubernetes Cluster Extension to be created. func (o KubernetesClusterExtensionOutput) Version() pulumi.StringPtrOutput { return o.ApplyT(func(v *KubernetesClusterExtension) pulumi.StringPtrOutput { return v.Version }).(pulumi.StringPtrOutput) } type KubernetesClusterExtensionArrayOutput struct{ *pulumi.OutputState } func (KubernetesClusterExtensionArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*KubernetesClusterExtension)(nil)).Elem() } func (o KubernetesClusterExtensionArrayOutput) ToKubernetesClusterExtensionArrayOutput() KubernetesClusterExtensionArrayOutput { return o } func (o KubernetesClusterExtensionArrayOutput) ToKubernetesClusterExtensionArrayOutputWithContext(ctx context.Context) KubernetesClusterExtensionArrayOutput { return o } func (o KubernetesClusterExtensionArrayOutput) Index(i pulumi.IntInput) KubernetesClusterExtensionOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *KubernetesClusterExtension { return vs[0].([]*KubernetesClusterExtension)[vs[1].(int)] }).(KubernetesClusterExtensionOutput) } type KubernetesClusterExtensionMapOutput struct{ *pulumi.OutputState } func (KubernetesClusterExtensionMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*KubernetesClusterExtension)(nil)).Elem() } func (o KubernetesClusterExtensionMapOutput) ToKubernetesClusterExtensionMapOutput() KubernetesClusterExtensionMapOutput { return o } func (o KubernetesClusterExtensionMapOutput) ToKubernetesClusterExtensionMapOutputWithContext(ctx context.Context) KubernetesClusterExtensionMapOutput { return o } func (o KubernetesClusterExtensionMapOutput) MapIndex(k pulumi.StringInput) KubernetesClusterExtensionOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *KubernetesClusterExtension { return vs[0].(map[string]*KubernetesClusterExtension)[vs[1].(string)] }).(KubernetesClusterExtensionOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*KubernetesClusterExtensionInput)(nil)).Elem(), &KubernetesClusterExtension{}) pulumi.RegisterInputType(reflect.TypeOf((*KubernetesClusterExtensionArrayInput)(nil)).Elem(), KubernetesClusterExtensionArray{}) pulumi.RegisterInputType(reflect.TypeOf((*KubernetesClusterExtensionMapInput)(nil)).Elem(), KubernetesClusterExtensionMap{}) pulumi.RegisterOutputType(KubernetesClusterExtensionOutput{}) pulumi.RegisterOutputType(KubernetesClusterExtensionArrayOutput{}) pulumi.RegisterOutputType(KubernetesClusterExtensionMapOutput{}) }
go
Apache-2.0
b66e1472775a89cca43f5050fef806854a7c3fa3
2026-01-07T09:44:27.619514Z
false
pulumi/pulumi-azure
https://github.com/pulumi/pulumi-azure/blob/b66e1472775a89cca43f5050fef806854a7c3fa3/sdk/go/azure/containerservice/tokenPassword.go
sdk/go/azure/containerservice/tokenPassword.go
// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package containerservice import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a Container Registry Token Password associated with a scope map. For more information on scope maps and their tokens see the [product documentation](https://learn.microsoft.com/en-us/azure/container-registry/container-registry-repository-scoped-permissions). // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/containerservice" // "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-resource-group"), // Location: pulumi.String("West Europe"), // }) // if err != nil { // return err // } // exampleRegistry, err := containerservice.NewRegistry(ctx, "example", &containerservice.RegistryArgs{ // Name: pulumi.String("example-registry"), // ResourceGroupName: example.Name, // Location: example.Location, // Sku: pulumi.String("Basic"), // AdminEnabled: pulumi.Bool(false), // GeoreplicationLocations: []string{ // "East US", // "West Europe", // }, // }) // if err != nil { // return err // } // exampleRegistryScopeMap, err := containerservice.NewRegistryScopeMap(ctx, "example", &containerservice.RegistryScopeMapArgs{ // Name: pulumi.String("example-scope-map"), // ContainerRegistryName: exampleRegistry.Name, // ResourceGroupName: example.Name, // Actions: pulumi.StringArray{ // pulumi.String("repositories/repo1/content/read"), // pulumi.String("repositories/repo1/content/write"), // }, // }) // if err != nil { // return err // } // exampleRegistryToken, err := containerservice.NewRegistryToken(ctx, "example", &containerservice.RegistryTokenArgs{ // Name: pulumi.String("exampletoken"), // ContainerRegistryName: exampleRegistry.Name, // ResourceGroupName: example.Name, // ScopeMapId: exampleRegistryScopeMap.ID(), // }) // if err != nil { // return err // } // _, err = containerservice.NewTokenPassword(ctx, "example", &containerservice.TokenPasswordArgs{ // ContainerRegistryTokenId: exampleRegistryToken.ID(), // Password1: &containerservice.TokenPasswordPassword1Args{ // Expiry: pulumi.String("2023-03-22T17:57:36+08:00"), // }, // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## API Providers // // <!-- This section is generated, changes will be overwritten --> // This resource uses the following Azure API Providers: // // * `Microsoft.ContainerRegistry` - 2025-04-01 // // ## Import // // Container Registry Token Passwords can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:containerservice/tokenPassword:TokenPassword example /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/group1/providers/Microsoft.ContainerRegistry/registries/registry1/tokens/token1/passwords/password // ``` type TokenPassword struct { pulumi.CustomResourceState // The ID of the Container Registry Token that this Container Registry Token Password resides in. Changing this forces a new Container Registry Token Password to be created. ContainerRegistryTokenId pulumi.StringOutput `pulumi:"containerRegistryTokenId"` // One `password` block as defined below. Password1 TokenPasswordPassword1Output `pulumi:"password1"` // One `password` block as defined below. Password2 TokenPasswordPassword2PtrOutput `pulumi:"password2"` } // NewTokenPassword registers a new resource with the given unique name, arguments, and options. func NewTokenPassword(ctx *pulumi.Context, name string, args *TokenPasswordArgs, opts ...pulumi.ResourceOption) (*TokenPassword, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.ContainerRegistryTokenId == nil { return nil, errors.New("invalid value for required argument 'ContainerRegistryTokenId'") } if args.Password1 == nil { return nil, errors.New("invalid value for required argument 'Password1'") } opts = internal.PkgResourceDefaultOpts(opts) var resource TokenPassword err := ctx.RegisterResource("azure:containerservice/tokenPassword:TokenPassword", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetTokenPassword gets an existing TokenPassword 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 GetTokenPassword(ctx *pulumi.Context, name string, id pulumi.IDInput, state *TokenPasswordState, opts ...pulumi.ResourceOption) (*TokenPassword, error) { var resource TokenPassword err := ctx.ReadResource("azure:containerservice/tokenPassword:TokenPassword", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering TokenPassword resources. type tokenPasswordState struct { // The ID of the Container Registry Token that this Container Registry Token Password resides in. Changing this forces a new Container Registry Token Password to be created. ContainerRegistryTokenId *string `pulumi:"containerRegistryTokenId"` // One `password` block as defined below. Password1 *TokenPasswordPassword1 `pulumi:"password1"` // One `password` block as defined below. Password2 *TokenPasswordPassword2 `pulumi:"password2"` } type TokenPasswordState struct { // The ID of the Container Registry Token that this Container Registry Token Password resides in. Changing this forces a new Container Registry Token Password to be created. ContainerRegistryTokenId pulumi.StringPtrInput // One `password` block as defined below. Password1 TokenPasswordPassword1PtrInput // One `password` block as defined below. Password2 TokenPasswordPassword2PtrInput } func (TokenPasswordState) ElementType() reflect.Type { return reflect.TypeOf((*tokenPasswordState)(nil)).Elem() } type tokenPasswordArgs struct { // The ID of the Container Registry Token that this Container Registry Token Password resides in. Changing this forces a new Container Registry Token Password to be created. ContainerRegistryTokenId string `pulumi:"containerRegistryTokenId"` // One `password` block as defined below. Password1 TokenPasswordPassword1 `pulumi:"password1"` // One `password` block as defined below. Password2 *TokenPasswordPassword2 `pulumi:"password2"` } // The set of arguments for constructing a TokenPassword resource. type TokenPasswordArgs struct { // The ID of the Container Registry Token that this Container Registry Token Password resides in. Changing this forces a new Container Registry Token Password to be created. ContainerRegistryTokenId pulumi.StringInput // One `password` block as defined below. Password1 TokenPasswordPassword1Input // One `password` block as defined below. Password2 TokenPasswordPassword2PtrInput } func (TokenPasswordArgs) ElementType() reflect.Type { return reflect.TypeOf((*tokenPasswordArgs)(nil)).Elem() } type TokenPasswordInput interface { pulumi.Input ToTokenPasswordOutput() TokenPasswordOutput ToTokenPasswordOutputWithContext(ctx context.Context) TokenPasswordOutput } func (*TokenPassword) ElementType() reflect.Type { return reflect.TypeOf((**TokenPassword)(nil)).Elem() } func (i *TokenPassword) ToTokenPasswordOutput() TokenPasswordOutput { return i.ToTokenPasswordOutputWithContext(context.Background()) } func (i *TokenPassword) ToTokenPasswordOutputWithContext(ctx context.Context) TokenPasswordOutput { return pulumi.ToOutputWithContext(ctx, i).(TokenPasswordOutput) } // TokenPasswordArrayInput is an input type that accepts TokenPasswordArray and TokenPasswordArrayOutput values. // You can construct a concrete instance of `TokenPasswordArrayInput` via: // // TokenPasswordArray{ TokenPasswordArgs{...} } type TokenPasswordArrayInput interface { pulumi.Input ToTokenPasswordArrayOutput() TokenPasswordArrayOutput ToTokenPasswordArrayOutputWithContext(context.Context) TokenPasswordArrayOutput } type TokenPasswordArray []TokenPasswordInput func (TokenPasswordArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*TokenPassword)(nil)).Elem() } func (i TokenPasswordArray) ToTokenPasswordArrayOutput() TokenPasswordArrayOutput { return i.ToTokenPasswordArrayOutputWithContext(context.Background()) } func (i TokenPasswordArray) ToTokenPasswordArrayOutputWithContext(ctx context.Context) TokenPasswordArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(TokenPasswordArrayOutput) } // TokenPasswordMapInput is an input type that accepts TokenPasswordMap and TokenPasswordMapOutput values. // You can construct a concrete instance of `TokenPasswordMapInput` via: // // TokenPasswordMap{ "key": TokenPasswordArgs{...} } type TokenPasswordMapInput interface { pulumi.Input ToTokenPasswordMapOutput() TokenPasswordMapOutput ToTokenPasswordMapOutputWithContext(context.Context) TokenPasswordMapOutput } type TokenPasswordMap map[string]TokenPasswordInput func (TokenPasswordMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*TokenPassword)(nil)).Elem() } func (i TokenPasswordMap) ToTokenPasswordMapOutput() TokenPasswordMapOutput { return i.ToTokenPasswordMapOutputWithContext(context.Background()) } func (i TokenPasswordMap) ToTokenPasswordMapOutputWithContext(ctx context.Context) TokenPasswordMapOutput { return pulumi.ToOutputWithContext(ctx, i).(TokenPasswordMapOutput) } type TokenPasswordOutput struct{ *pulumi.OutputState } func (TokenPasswordOutput) ElementType() reflect.Type { return reflect.TypeOf((**TokenPassword)(nil)).Elem() } func (o TokenPasswordOutput) ToTokenPasswordOutput() TokenPasswordOutput { return o } func (o TokenPasswordOutput) ToTokenPasswordOutputWithContext(ctx context.Context) TokenPasswordOutput { return o } // The ID of the Container Registry Token that this Container Registry Token Password resides in. Changing this forces a new Container Registry Token Password to be created. func (o TokenPasswordOutput) ContainerRegistryTokenId() pulumi.StringOutput { return o.ApplyT(func(v *TokenPassword) pulumi.StringOutput { return v.ContainerRegistryTokenId }).(pulumi.StringOutput) } // One `password` block as defined below. func (o TokenPasswordOutput) Password1() TokenPasswordPassword1Output { return o.ApplyT(func(v *TokenPassword) TokenPasswordPassword1Output { return v.Password1 }).(TokenPasswordPassword1Output) } // One `password` block as defined below. func (o TokenPasswordOutput) Password2() TokenPasswordPassword2PtrOutput { return o.ApplyT(func(v *TokenPassword) TokenPasswordPassword2PtrOutput { return v.Password2 }).(TokenPasswordPassword2PtrOutput) } type TokenPasswordArrayOutput struct{ *pulumi.OutputState } func (TokenPasswordArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*TokenPassword)(nil)).Elem() } func (o TokenPasswordArrayOutput) ToTokenPasswordArrayOutput() TokenPasswordArrayOutput { return o } func (o TokenPasswordArrayOutput) ToTokenPasswordArrayOutputWithContext(ctx context.Context) TokenPasswordArrayOutput { return o } func (o TokenPasswordArrayOutput) Index(i pulumi.IntInput) TokenPasswordOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *TokenPassword { return vs[0].([]*TokenPassword)[vs[1].(int)] }).(TokenPasswordOutput) } type TokenPasswordMapOutput struct{ *pulumi.OutputState } func (TokenPasswordMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*TokenPassword)(nil)).Elem() } func (o TokenPasswordMapOutput) ToTokenPasswordMapOutput() TokenPasswordMapOutput { return o } func (o TokenPasswordMapOutput) ToTokenPasswordMapOutputWithContext(ctx context.Context) TokenPasswordMapOutput { return o } func (o TokenPasswordMapOutput) MapIndex(k pulumi.StringInput) TokenPasswordOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *TokenPassword { return vs[0].(map[string]*TokenPassword)[vs[1].(string)] }).(TokenPasswordOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*TokenPasswordInput)(nil)).Elem(), &TokenPassword{}) pulumi.RegisterInputType(reflect.TypeOf((*TokenPasswordArrayInput)(nil)).Elem(), TokenPasswordArray{}) pulumi.RegisterInputType(reflect.TypeOf((*TokenPasswordMapInput)(nil)).Elem(), TokenPasswordMap{}) pulumi.RegisterOutputType(TokenPasswordOutput{}) pulumi.RegisterOutputType(TokenPasswordArrayOutput{}) pulumi.RegisterOutputType(TokenPasswordMapOutput{}) }
go
Apache-2.0
b66e1472775a89cca43f5050fef806854a7c3fa3
2026-01-07T09:44:27.619514Z
false
pulumi/pulumi-azure
https://github.com/pulumi/pulumi-azure/blob/b66e1472775a89cca43f5050fef806854a7c3fa3/sdk/go/azure/containerservice/clusterTrustedAccessRoleBinding.go
sdk/go/azure/containerservice/clusterTrustedAccessRoleBinding.go
// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package containerservice import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/appinsights" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/containerservice" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/keyvault" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/machinelearning" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/storage" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { // exampleResourceGroup, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{ // Name: pulumi.String("example-resources"), // Location: pulumi.String("West Europe"), // }) // if err != nil { // return err // } // example, err := appinsights.NewInsights(ctx, "example", &appinsights.InsightsArgs{ // Name: pulumi.String("example"), // Location: exampleResourceGroup.Location, // ResourceGroupName: exampleResourceGroup.Name, // ApplicationType: pulumi.String("example-value"), // }) // if err != nil { // return err // } // _, err = core.GetClientConfig(ctx, map[string]interface{}{}, nil) // if err != nil { // return err // } // exampleKeyVault, err := keyvault.NewKeyVault(ctx, "example", &keyvault.KeyVaultArgs{ // Name: pulumi.String("example"), // Location: exampleResourceGroup.Location, // ResourceGroupName: exampleResourceGroup.Name, // TenantId: pulumi.Any(exampleAzurermClientConfig.TenantId), // SkuName: pulumi.String("example-value"), // SoftDeleteRetentionDays: pulumi.Int("example-value"), // }) // if err != nil { // return err // } // _, err = keyvault.NewAccessPolicy(ctx, "example", &keyvault.AccessPolicyArgs{ // KeyVaultId: exampleKeyVault.ID(), // TenantId: pulumi.Any(exampleAzurermClientConfig.TenantId), // ObjectId: pulumi.Any(exampleAzurermClientConfig.ObjectId), // KeyPermissions: pulumi.StringArray("example-value"), // }) // if err != nil { // return err // } // exampleKubernetesCluster, err := containerservice.NewKubernetesCluster(ctx, "example", &containerservice.KubernetesClusterArgs{ // Name: pulumi.String("example"), // Location: exampleResourceGroup.Location, // ResourceGroupName: exampleResourceGroup.Name, // DnsPrefix: pulumi.String("acctestaksexample"), // DefaultNodePool: &containerservice.KubernetesClusterDefaultNodePoolArgs{ // Name: pulumi.String("example-value"), // NodeCount: pulumi.Int("example-value"), // VmSize: pulumi.String("example-value"), // UpgradeSettings: &containerservice.KubernetesClusterDefaultNodePoolUpgradeSettingsArgs{ // MaxSurge: pulumi.String("example-value"), // }, // }, // Identity: &containerservice.KubernetesClusterIdentityArgs{ // Type: pulumi.String("example-value"), // }, // }) // if err != nil { // return err // } // exampleAccount, err := storage.NewAccount(ctx, "example", &storage.AccountArgs{ // Name: pulumi.String("example"), // Location: exampleResourceGroup.Location, // ResourceGroupName: exampleResourceGroup.Name, // AccountTier: pulumi.String("example-value"), // AccountReplicationType: pulumi.String("example-value"), // }) // if err != nil { // return err // } // exampleWorkspace, err := machinelearning.NewWorkspace(ctx, "example", &machinelearning.WorkspaceArgs{ // Name: pulumi.String("example"), // Location: exampleResourceGroup.Location, // ResourceGroupName: exampleResourceGroup.Name, // KeyVaultId: exampleKeyVault.ID(), // StorageAccountId: exampleAccount.ID(), // ApplicationInsightsId: example.ID(), // Identity: &machinelearning.WorkspaceIdentityArgs{ // Type: pulumi.String("example-value"), // }, // }) // if err != nil { // return err // } // _, err = containerservice.NewClusterTrustedAccessRoleBinding(ctx, "example", &containerservice.ClusterTrustedAccessRoleBindingArgs{ // KubernetesClusterId: exampleKubernetesCluster.ID(), // Name: pulumi.String("example"), // Roles: pulumi.StringArray("example-value"), // SourceResourceId: exampleWorkspace.ID(), // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## API Providers // // <!-- This section is generated, changes will be overwritten --> // This resource uses the following Azure API Providers: // // * `Microsoft.ContainerService` - 2025-07-01 // // ## Import // // An existing Kubernetes Cluster Trusted Access Role Binding can be imported into Pulumi using the `resource id`, e.g. // // ```sh // $ pulumi import azure:containerservice/clusterTrustedAccessRoleBinding:ClusterTrustedAccessRoleBinding example /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{managedClusterName}/trustedAccessRoleBindings/{trustedAccessRoleBindingName} // ``` // // * Where `{subscriptionId}` is the ID of the Azure Subscription where the Kubernetes Cluster Trusted Access Role Binding exists. For example `12345678-1234-9876-4563-123456789012`. // // * Where `{resourceGroupName}` is the name of Resource Group where this Kubernetes Cluster Trusted Access Role Binding exists. For example `example-resource-group`. // // * Where `{managedClusterName}` is the name of the Managed Cluster. For example `managedClusterValue`. // // * Where `{trustedAccessRoleBindingName}` is the name of the Trusted Access Role Binding. For example `trustedAccessRoleBindingValue`. type ClusterTrustedAccessRoleBinding struct { pulumi.CustomResourceState // Specifies the Kubernetes Cluster Id within which this Kubernetes Cluster Trusted Access Role Binding should exist. Changing this forces a new Kubernetes Cluster Trusted Access Role Binding to be created. KubernetesClusterId pulumi.StringOutput `pulumi:"kubernetesClusterId"` // Specifies the name of this Kubernetes Cluster Trusted Access Role Binding. Changing this forces a new Kubernetes Cluster Trusted Access Role Binding to be created. Name pulumi.StringOutput `pulumi:"name"` // A list of roles to bind, each item is a resource type qualified role name. Roles pulumi.StringArrayOutput `pulumi:"roles"` // The ARM resource ID of source resource that trusted access is configured for. Changing this forces a new Kubernetes Cluster Trusted Access Role Binding to be created. SourceResourceId pulumi.StringOutput `pulumi:"sourceResourceId"` } // NewClusterTrustedAccessRoleBinding registers a new resource with the given unique name, arguments, and options. func NewClusterTrustedAccessRoleBinding(ctx *pulumi.Context, name string, args *ClusterTrustedAccessRoleBindingArgs, opts ...pulumi.ResourceOption) (*ClusterTrustedAccessRoleBinding, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.KubernetesClusterId == nil { return nil, errors.New("invalid value for required argument 'KubernetesClusterId'") } if args.Roles == nil { return nil, errors.New("invalid value for required argument 'Roles'") } if args.SourceResourceId == nil { return nil, errors.New("invalid value for required argument 'SourceResourceId'") } opts = internal.PkgResourceDefaultOpts(opts) var resource ClusterTrustedAccessRoleBinding err := ctx.RegisterResource("azure:containerservice/clusterTrustedAccessRoleBinding:ClusterTrustedAccessRoleBinding", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetClusterTrustedAccessRoleBinding gets an existing ClusterTrustedAccessRoleBinding 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 GetClusterTrustedAccessRoleBinding(ctx *pulumi.Context, name string, id pulumi.IDInput, state *ClusterTrustedAccessRoleBindingState, opts ...pulumi.ResourceOption) (*ClusterTrustedAccessRoleBinding, error) { var resource ClusterTrustedAccessRoleBinding err := ctx.ReadResource("azure:containerservice/clusterTrustedAccessRoleBinding:ClusterTrustedAccessRoleBinding", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering ClusterTrustedAccessRoleBinding resources. type clusterTrustedAccessRoleBindingState struct { // Specifies the Kubernetes Cluster Id within which this Kubernetes Cluster Trusted Access Role Binding should exist. Changing this forces a new Kubernetes Cluster Trusted Access Role Binding to be created. KubernetesClusterId *string `pulumi:"kubernetesClusterId"` // Specifies the name of this Kubernetes Cluster Trusted Access Role Binding. Changing this forces a new Kubernetes Cluster Trusted Access Role Binding to be created. Name *string `pulumi:"name"` // A list of roles to bind, each item is a resource type qualified role name. Roles []string `pulumi:"roles"` // The ARM resource ID of source resource that trusted access is configured for. Changing this forces a new Kubernetes Cluster Trusted Access Role Binding to be created. SourceResourceId *string `pulumi:"sourceResourceId"` } type ClusterTrustedAccessRoleBindingState struct { // Specifies the Kubernetes Cluster Id within which this Kubernetes Cluster Trusted Access Role Binding should exist. Changing this forces a new Kubernetes Cluster Trusted Access Role Binding to be created. KubernetesClusterId pulumi.StringPtrInput // Specifies the name of this Kubernetes Cluster Trusted Access Role Binding. Changing this forces a new Kubernetes Cluster Trusted Access Role Binding to be created. Name pulumi.StringPtrInput // A list of roles to bind, each item is a resource type qualified role name. Roles pulumi.StringArrayInput // The ARM resource ID of source resource that trusted access is configured for. Changing this forces a new Kubernetes Cluster Trusted Access Role Binding to be created. SourceResourceId pulumi.StringPtrInput } func (ClusterTrustedAccessRoleBindingState) ElementType() reflect.Type { return reflect.TypeOf((*clusterTrustedAccessRoleBindingState)(nil)).Elem() } type clusterTrustedAccessRoleBindingArgs struct { // Specifies the Kubernetes Cluster Id within which this Kubernetes Cluster Trusted Access Role Binding should exist. Changing this forces a new Kubernetes Cluster Trusted Access Role Binding to be created. KubernetesClusterId string `pulumi:"kubernetesClusterId"` // Specifies the name of this Kubernetes Cluster Trusted Access Role Binding. Changing this forces a new Kubernetes Cluster Trusted Access Role Binding to be created. Name *string `pulumi:"name"` // A list of roles to bind, each item is a resource type qualified role name. Roles []string `pulumi:"roles"` // The ARM resource ID of source resource that trusted access is configured for. Changing this forces a new Kubernetes Cluster Trusted Access Role Binding to be created. SourceResourceId string `pulumi:"sourceResourceId"` } // The set of arguments for constructing a ClusterTrustedAccessRoleBinding resource. type ClusterTrustedAccessRoleBindingArgs struct { // Specifies the Kubernetes Cluster Id within which this Kubernetes Cluster Trusted Access Role Binding should exist. Changing this forces a new Kubernetes Cluster Trusted Access Role Binding to be created. KubernetesClusterId pulumi.StringInput // Specifies the name of this Kubernetes Cluster Trusted Access Role Binding. Changing this forces a new Kubernetes Cluster Trusted Access Role Binding to be created. Name pulumi.StringPtrInput // A list of roles to bind, each item is a resource type qualified role name. Roles pulumi.StringArrayInput // The ARM resource ID of source resource that trusted access is configured for. Changing this forces a new Kubernetes Cluster Trusted Access Role Binding to be created. SourceResourceId pulumi.StringInput } func (ClusterTrustedAccessRoleBindingArgs) ElementType() reflect.Type { return reflect.TypeOf((*clusterTrustedAccessRoleBindingArgs)(nil)).Elem() } type ClusterTrustedAccessRoleBindingInput interface { pulumi.Input ToClusterTrustedAccessRoleBindingOutput() ClusterTrustedAccessRoleBindingOutput ToClusterTrustedAccessRoleBindingOutputWithContext(ctx context.Context) ClusterTrustedAccessRoleBindingOutput } func (*ClusterTrustedAccessRoleBinding) ElementType() reflect.Type { return reflect.TypeOf((**ClusterTrustedAccessRoleBinding)(nil)).Elem() } func (i *ClusterTrustedAccessRoleBinding) ToClusterTrustedAccessRoleBindingOutput() ClusterTrustedAccessRoleBindingOutput { return i.ToClusterTrustedAccessRoleBindingOutputWithContext(context.Background()) } func (i *ClusterTrustedAccessRoleBinding) ToClusterTrustedAccessRoleBindingOutputWithContext(ctx context.Context) ClusterTrustedAccessRoleBindingOutput { return pulumi.ToOutputWithContext(ctx, i).(ClusterTrustedAccessRoleBindingOutput) } // ClusterTrustedAccessRoleBindingArrayInput is an input type that accepts ClusterTrustedAccessRoleBindingArray and ClusterTrustedAccessRoleBindingArrayOutput values. // You can construct a concrete instance of `ClusterTrustedAccessRoleBindingArrayInput` via: // // ClusterTrustedAccessRoleBindingArray{ ClusterTrustedAccessRoleBindingArgs{...} } type ClusterTrustedAccessRoleBindingArrayInput interface { pulumi.Input ToClusterTrustedAccessRoleBindingArrayOutput() ClusterTrustedAccessRoleBindingArrayOutput ToClusterTrustedAccessRoleBindingArrayOutputWithContext(context.Context) ClusterTrustedAccessRoleBindingArrayOutput } type ClusterTrustedAccessRoleBindingArray []ClusterTrustedAccessRoleBindingInput func (ClusterTrustedAccessRoleBindingArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*ClusterTrustedAccessRoleBinding)(nil)).Elem() } func (i ClusterTrustedAccessRoleBindingArray) ToClusterTrustedAccessRoleBindingArrayOutput() ClusterTrustedAccessRoleBindingArrayOutput { return i.ToClusterTrustedAccessRoleBindingArrayOutputWithContext(context.Background()) } func (i ClusterTrustedAccessRoleBindingArray) ToClusterTrustedAccessRoleBindingArrayOutputWithContext(ctx context.Context) ClusterTrustedAccessRoleBindingArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(ClusterTrustedAccessRoleBindingArrayOutput) } // ClusterTrustedAccessRoleBindingMapInput is an input type that accepts ClusterTrustedAccessRoleBindingMap and ClusterTrustedAccessRoleBindingMapOutput values. // You can construct a concrete instance of `ClusterTrustedAccessRoleBindingMapInput` via: // // ClusterTrustedAccessRoleBindingMap{ "key": ClusterTrustedAccessRoleBindingArgs{...} } type ClusterTrustedAccessRoleBindingMapInput interface { pulumi.Input ToClusterTrustedAccessRoleBindingMapOutput() ClusterTrustedAccessRoleBindingMapOutput ToClusterTrustedAccessRoleBindingMapOutputWithContext(context.Context) ClusterTrustedAccessRoleBindingMapOutput } type ClusterTrustedAccessRoleBindingMap map[string]ClusterTrustedAccessRoleBindingInput func (ClusterTrustedAccessRoleBindingMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*ClusterTrustedAccessRoleBinding)(nil)).Elem() } func (i ClusterTrustedAccessRoleBindingMap) ToClusterTrustedAccessRoleBindingMapOutput() ClusterTrustedAccessRoleBindingMapOutput { return i.ToClusterTrustedAccessRoleBindingMapOutputWithContext(context.Background()) } func (i ClusterTrustedAccessRoleBindingMap) ToClusterTrustedAccessRoleBindingMapOutputWithContext(ctx context.Context) ClusterTrustedAccessRoleBindingMapOutput { return pulumi.ToOutputWithContext(ctx, i).(ClusterTrustedAccessRoleBindingMapOutput) } type ClusterTrustedAccessRoleBindingOutput struct{ *pulumi.OutputState } func (ClusterTrustedAccessRoleBindingOutput) ElementType() reflect.Type { return reflect.TypeOf((**ClusterTrustedAccessRoleBinding)(nil)).Elem() } func (o ClusterTrustedAccessRoleBindingOutput) ToClusterTrustedAccessRoleBindingOutput() ClusterTrustedAccessRoleBindingOutput { return o } func (o ClusterTrustedAccessRoleBindingOutput) ToClusterTrustedAccessRoleBindingOutputWithContext(ctx context.Context) ClusterTrustedAccessRoleBindingOutput { return o } // Specifies the Kubernetes Cluster Id within which this Kubernetes Cluster Trusted Access Role Binding should exist. Changing this forces a new Kubernetes Cluster Trusted Access Role Binding to be created. func (o ClusterTrustedAccessRoleBindingOutput) KubernetesClusterId() pulumi.StringOutput { return o.ApplyT(func(v *ClusterTrustedAccessRoleBinding) pulumi.StringOutput { return v.KubernetesClusterId }).(pulumi.StringOutput) } // Specifies the name of this Kubernetes Cluster Trusted Access Role Binding. Changing this forces a new Kubernetes Cluster Trusted Access Role Binding to be created. func (o ClusterTrustedAccessRoleBindingOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *ClusterTrustedAccessRoleBinding) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // A list of roles to bind, each item is a resource type qualified role name. func (o ClusterTrustedAccessRoleBindingOutput) Roles() pulumi.StringArrayOutput { return o.ApplyT(func(v *ClusterTrustedAccessRoleBinding) pulumi.StringArrayOutput { return v.Roles }).(pulumi.StringArrayOutput) } // The ARM resource ID of source resource that trusted access is configured for. Changing this forces a new Kubernetes Cluster Trusted Access Role Binding to be created. func (o ClusterTrustedAccessRoleBindingOutput) SourceResourceId() pulumi.StringOutput { return o.ApplyT(func(v *ClusterTrustedAccessRoleBinding) pulumi.StringOutput { return v.SourceResourceId }).(pulumi.StringOutput) } type ClusterTrustedAccessRoleBindingArrayOutput struct{ *pulumi.OutputState } func (ClusterTrustedAccessRoleBindingArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*ClusterTrustedAccessRoleBinding)(nil)).Elem() } func (o ClusterTrustedAccessRoleBindingArrayOutput) ToClusterTrustedAccessRoleBindingArrayOutput() ClusterTrustedAccessRoleBindingArrayOutput { return o } func (o ClusterTrustedAccessRoleBindingArrayOutput) ToClusterTrustedAccessRoleBindingArrayOutputWithContext(ctx context.Context) ClusterTrustedAccessRoleBindingArrayOutput { return o } func (o ClusterTrustedAccessRoleBindingArrayOutput) Index(i pulumi.IntInput) ClusterTrustedAccessRoleBindingOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *ClusterTrustedAccessRoleBinding { return vs[0].([]*ClusterTrustedAccessRoleBinding)[vs[1].(int)] }).(ClusterTrustedAccessRoleBindingOutput) } type ClusterTrustedAccessRoleBindingMapOutput struct{ *pulumi.OutputState } func (ClusterTrustedAccessRoleBindingMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*ClusterTrustedAccessRoleBinding)(nil)).Elem() } func (o ClusterTrustedAccessRoleBindingMapOutput) ToClusterTrustedAccessRoleBindingMapOutput() ClusterTrustedAccessRoleBindingMapOutput { return o } func (o ClusterTrustedAccessRoleBindingMapOutput) ToClusterTrustedAccessRoleBindingMapOutputWithContext(ctx context.Context) ClusterTrustedAccessRoleBindingMapOutput { return o } func (o ClusterTrustedAccessRoleBindingMapOutput) MapIndex(k pulumi.StringInput) ClusterTrustedAccessRoleBindingOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *ClusterTrustedAccessRoleBinding { return vs[0].(map[string]*ClusterTrustedAccessRoleBinding)[vs[1].(string)] }).(ClusterTrustedAccessRoleBindingOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*ClusterTrustedAccessRoleBindingInput)(nil)).Elem(), &ClusterTrustedAccessRoleBinding{}) pulumi.RegisterInputType(reflect.TypeOf((*ClusterTrustedAccessRoleBindingArrayInput)(nil)).Elem(), ClusterTrustedAccessRoleBindingArray{}) pulumi.RegisterInputType(reflect.TypeOf((*ClusterTrustedAccessRoleBindingMapInput)(nil)).Elem(), ClusterTrustedAccessRoleBindingMap{}) pulumi.RegisterOutputType(ClusterTrustedAccessRoleBindingOutput{}) pulumi.RegisterOutputType(ClusterTrustedAccessRoleBindingArrayOutput{}) pulumi.RegisterOutputType(ClusterTrustedAccessRoleBindingMapOutput{}) }
go
Apache-2.0
b66e1472775a89cca43f5050fef806854a7c3fa3
2026-01-07T09:44:27.619514Z
false
pulumi/pulumi-azure
https://github.com/pulumi/pulumi-azure/blob/b66e1472775a89cca43f5050fef806854a7c3fa3/sdk/go/azure/containerservice/getRegistryToken.go
sdk/go/azure/containerservice/getRegistryToken.go
// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package containerservice import ( "context" "reflect" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Use this data source to access information about an existing Container Registry token. // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/containerservice" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { // example, err := containerservice.LookupRegistryToken(ctx, &containerservice.LookupRegistryTokenArgs{ // Name: "exampletoken", // ResourceGroupName: "example-resource-group", // ContainerRegistryName: "example-registry", // }, nil) // if err != nil { // return err // } // ctx.Export("scopeMapId", example.ScopeMapId) // return nil // }) // } // // ``` // // ## API Providers // // <!-- This section is generated, changes will be overwritten --> // This data source uses the following Azure API Providers: // // * `Microsoft.ContainerRegistry` - 2025-04-01 func LookupRegistryToken(ctx *pulumi.Context, args *LookupRegistryTokenArgs, opts ...pulumi.InvokeOption) (*LookupRegistryTokenResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupRegistryTokenResult err := ctx.Invoke("azure:containerservice/getRegistryToken:getRegistryToken", args, &rv, opts...) if err != nil { return nil, err } return &rv, nil } // A collection of arguments for invoking getRegistryToken. type LookupRegistryTokenArgs struct { // The Name of the Container Registry where the token exists. ContainerRegistryName string `pulumi:"containerRegistryName"` // The name of the Container Registry token. Name string `pulumi:"name"` // The Name of the Resource Group where this Container Registry token exists. ResourceGroupName string `pulumi:"resourceGroupName"` } // A collection of values returned by getRegistryToken. type LookupRegistryTokenResult struct { ContainerRegistryName string `pulumi:"containerRegistryName"` // Whether this Token is enabled. Enabled bool `pulumi:"enabled"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` Name string `pulumi:"name"` ResourceGroupName string `pulumi:"resourceGroupName"` // The Scope Map ID used by the token. ScopeMapId string `pulumi:"scopeMapId"` } func LookupRegistryTokenOutput(ctx *pulumi.Context, args LookupRegistryTokenOutputArgs, opts ...pulumi.InvokeOption) LookupRegistryTokenResultOutput { return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupRegistryTokenResultOutput, error) { args := v.(LookupRegistryTokenArgs) options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} return ctx.InvokeOutput("azure:containerservice/getRegistryToken:getRegistryToken", args, LookupRegistryTokenResultOutput{}, options).(LookupRegistryTokenResultOutput), nil }).(LookupRegistryTokenResultOutput) } // A collection of arguments for invoking getRegistryToken. type LookupRegistryTokenOutputArgs struct { // The Name of the Container Registry where the token exists. ContainerRegistryName pulumi.StringInput `pulumi:"containerRegistryName"` // The name of the Container Registry token. Name pulumi.StringInput `pulumi:"name"` // The Name of the Resource Group where this Container Registry token exists. ResourceGroupName pulumi.StringInput `pulumi:"resourceGroupName"` } func (LookupRegistryTokenOutputArgs) ElementType() reflect.Type { return reflect.TypeOf((*LookupRegistryTokenArgs)(nil)).Elem() } // A collection of values returned by getRegistryToken. type LookupRegistryTokenResultOutput struct{ *pulumi.OutputState } func (LookupRegistryTokenResultOutput) ElementType() reflect.Type { return reflect.TypeOf((*LookupRegistryTokenResult)(nil)).Elem() } func (o LookupRegistryTokenResultOutput) ToLookupRegistryTokenResultOutput() LookupRegistryTokenResultOutput { return o } func (o LookupRegistryTokenResultOutput) ToLookupRegistryTokenResultOutputWithContext(ctx context.Context) LookupRegistryTokenResultOutput { return o } func (o LookupRegistryTokenResultOutput) ContainerRegistryName() pulumi.StringOutput { return o.ApplyT(func(v LookupRegistryTokenResult) string { return v.ContainerRegistryName }).(pulumi.StringOutput) } // Whether this Token is enabled. func (o LookupRegistryTokenResultOutput) Enabled() pulumi.BoolOutput { return o.ApplyT(func(v LookupRegistryTokenResult) bool { return v.Enabled }).(pulumi.BoolOutput) } // The provider-assigned unique ID for this managed resource. func (o LookupRegistryTokenResultOutput) Id() pulumi.StringOutput { return o.ApplyT(func(v LookupRegistryTokenResult) string { return v.Id }).(pulumi.StringOutput) } func (o LookupRegistryTokenResultOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v LookupRegistryTokenResult) string { return v.Name }).(pulumi.StringOutput) } func (o LookupRegistryTokenResultOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v LookupRegistryTokenResult) string { return v.ResourceGroupName }).(pulumi.StringOutput) } // The Scope Map ID used by the token. func (o LookupRegistryTokenResultOutput) ScopeMapId() pulumi.StringOutput { return o.ApplyT(func(v LookupRegistryTokenResult) string { return v.ScopeMapId }).(pulumi.StringOutput) } func init() { pulumi.RegisterOutputType(LookupRegistryTokenResultOutput{}) }
go
Apache-2.0
b66e1472775a89cca43f5050fef806854a7c3fa3
2026-01-07T09:44:27.619514Z
false
pulumi/pulumi-azure
https://github.com/pulumi/pulumi-azure/blob/b66e1472775a89cca43f5050fef806854a7c3fa3/sdk/go/azure/containerservice/connectedRegistry.go
sdk/go/azure/containerservice/connectedRegistry.go
// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package containerservice import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a Container Connected Registry. // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/containerservice" // "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-rg"), // Location: pulumi.String("West Europe"), // }) // if err != nil { // return err // } // exampleRegistry, err := containerservice.NewRegistry(ctx, "example", &containerservice.RegistryArgs{ // Name: pulumi.String("exampleacr"), // ResourceGroupName: example.Name, // Location: example.Location, // Sku: pulumi.String("Premium"), // DataEndpointEnabled: pulumi.Bool(true), // }) // if err != nil { // return err // } // exampleRegistryScopeMap, err := containerservice.NewRegistryScopeMap(ctx, "example", &containerservice.RegistryScopeMapArgs{ // Name: pulumi.String("examplescopemap"), // ContainerRegistryName: exampleRegistry.Name, // ResourceGroupName: exampleRegistry.ResourceGroupName, // Actions: pulumi.StringArray{ // pulumi.String("repositories/hello-world/content/delete"), // pulumi.String("repositories/hello-world/content/read"), // pulumi.String("repositories/hello-world/content/write"), // pulumi.String("repositories/hello-world/metadata/read"), // pulumi.String("repositories/hello-world/metadata/write"), // pulumi.String("gateway/examplecr/config/read"), // pulumi.String("gateway/examplecr/config/write"), // pulumi.String("gateway/examplecr/message/read"), // pulumi.String("gateway/examplecr/message/write"), // }, // }) // if err != nil { // return err // } // exampleRegistryToken, err := containerservice.NewRegistryToken(ctx, "example", &containerservice.RegistryTokenArgs{ // Name: pulumi.String("exampletoken"), // ContainerRegistryName: exampleRegistry.Name, // ResourceGroupName: exampleRegistry.ResourceGroupName, // ScopeMapId: exampleRegistryScopeMap.ID(), // }) // if err != nil { // return err // } // _, err = containerservice.NewConnectedRegistry(ctx, "example", &containerservice.ConnectedRegistryArgs{ // Name: pulumi.String("examplecr"), // ContainerRegistryId: exampleRegistry.ID(), // SyncTokenId: exampleRegistryToken.ID(), // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## API Providers // // <!-- This section is generated, changes will be overwritten --> // This resource uses the following Azure API Providers: // // * `Microsoft.ContainerRegistry` - 2025-04-01 // // ## Import // // Container Connected Registries can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:containerservice/connectedRegistry:ConnectedRegistry example /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/group1/providers/Microsoft.ContainerRegistry/registries/registry1/connectedRegistries/registry1 // ``` type ConnectedRegistry struct { pulumi.CustomResourceState // Should the log auditing be enabled? AuditLogEnabled pulumi.BoolPtrOutput `pulumi:"auditLogEnabled"` // Specifies a list of IDs of Container Registry Tokens, which are meant to be used by the clients to connect to the Connected Registry. ClientTokenIds pulumi.StringArrayOutput `pulumi:"clientTokenIds"` // The ID of the Container Registry that this Connected Registry will reside in. Changing this forces a new Container Connected Registry to be created. // // > **Note:** If `parentRegistryId` is not specified, the Connected Registry will be connected to the Container Registry identified by `containerRegistryId`. ContainerRegistryId pulumi.StringOutput `pulumi:"containerRegistryId"` // The verbosity of the logs. Possible values are `None`, `Debug`, `Information`, `Warning` and `Error`. Defaults to `None`. LogLevel pulumi.StringPtrOutput `pulumi:"logLevel"` // The mode of the Connected Registry. Possible values are `Mirror`, `ReadOnly`, `ReadWrite` and `Registry`. Changing this forces a new Container Connected Registry to be created. Defaults to `ReadWrite`. Mode pulumi.StringPtrOutput `pulumi:"mode"` // The name which should be used for this Container Connected Registry. Changing this forces a new Container Connected Registry to be created. Name pulumi.StringOutput `pulumi:"name"` // One or more `notification` blocks as defined below. Notifications ConnectedRegistryNotificationArrayOutput `pulumi:"notifications"` // The ID of the parent registry. This can be either a Container Registry ID or a Connected Registry ID. Changing this forces a new Container Connected Registry to be created. ParentRegistryId pulumi.StringPtrOutput `pulumi:"parentRegistryId"` // The period of time (in form of ISO8601) for which a message is available to sync before it is expired. Allowed range is from `P1D` to `P90D`. Defaults to `P1D`. SyncMessageTtl pulumi.StringPtrOutput `pulumi:"syncMessageTtl"` // The cron expression indicating the schedule that the Connected Registry will sync with its parent. Defaults to `* * * * *`. SyncSchedule pulumi.StringPtrOutput `pulumi:"syncSchedule"` // The ID of the Container Registry Token which is used for synchronizing the Connected Registry. Changing this forces a new Container Connected Registry to be created. SyncTokenId pulumi.StringOutput `pulumi:"syncTokenId"` // The time window (in form of ISO8601) during which sync is enabled for each schedule occurrence. Allowed range is from `PT3H` to `P7D`. SyncWindow pulumi.StringPtrOutput `pulumi:"syncWindow"` } // NewConnectedRegistry registers a new resource with the given unique name, arguments, and options. func NewConnectedRegistry(ctx *pulumi.Context, name string, args *ConnectedRegistryArgs, opts ...pulumi.ResourceOption) (*ConnectedRegistry, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.ContainerRegistryId == nil { return nil, errors.New("invalid value for required argument 'ContainerRegistryId'") } if args.SyncTokenId == nil { return nil, errors.New("invalid value for required argument 'SyncTokenId'") } opts = internal.PkgResourceDefaultOpts(opts) var resource ConnectedRegistry err := ctx.RegisterResource("azure:containerservice/connectedRegistry:ConnectedRegistry", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetConnectedRegistry gets an existing ConnectedRegistry 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 GetConnectedRegistry(ctx *pulumi.Context, name string, id pulumi.IDInput, state *ConnectedRegistryState, opts ...pulumi.ResourceOption) (*ConnectedRegistry, error) { var resource ConnectedRegistry err := ctx.ReadResource("azure:containerservice/connectedRegistry:ConnectedRegistry", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering ConnectedRegistry resources. type connectedRegistryState struct { // Should the log auditing be enabled? AuditLogEnabled *bool `pulumi:"auditLogEnabled"` // Specifies a list of IDs of Container Registry Tokens, which are meant to be used by the clients to connect to the Connected Registry. ClientTokenIds []string `pulumi:"clientTokenIds"` // The ID of the Container Registry that this Connected Registry will reside in. Changing this forces a new Container Connected Registry to be created. // // > **Note:** If `parentRegistryId` is not specified, the Connected Registry will be connected to the Container Registry identified by `containerRegistryId`. ContainerRegistryId *string `pulumi:"containerRegistryId"` // The verbosity of the logs. Possible values are `None`, `Debug`, `Information`, `Warning` and `Error`. Defaults to `None`. LogLevel *string `pulumi:"logLevel"` // The mode of the Connected Registry. Possible values are `Mirror`, `ReadOnly`, `ReadWrite` and `Registry`. Changing this forces a new Container Connected Registry to be created. Defaults to `ReadWrite`. Mode *string `pulumi:"mode"` // The name which should be used for this Container Connected Registry. Changing this forces a new Container Connected Registry to be created. Name *string `pulumi:"name"` // One or more `notification` blocks as defined below. Notifications []ConnectedRegistryNotification `pulumi:"notifications"` // The ID of the parent registry. This can be either a Container Registry ID or a Connected Registry ID. Changing this forces a new Container Connected Registry to be created. ParentRegistryId *string `pulumi:"parentRegistryId"` // The period of time (in form of ISO8601) for which a message is available to sync before it is expired. Allowed range is from `P1D` to `P90D`. Defaults to `P1D`. SyncMessageTtl *string `pulumi:"syncMessageTtl"` // The cron expression indicating the schedule that the Connected Registry will sync with its parent. Defaults to `* * * * *`. SyncSchedule *string `pulumi:"syncSchedule"` // The ID of the Container Registry Token which is used for synchronizing the Connected Registry. Changing this forces a new Container Connected Registry to be created. SyncTokenId *string `pulumi:"syncTokenId"` // The time window (in form of ISO8601) during which sync is enabled for each schedule occurrence. Allowed range is from `PT3H` to `P7D`. SyncWindow *string `pulumi:"syncWindow"` } type ConnectedRegistryState struct { // Should the log auditing be enabled? AuditLogEnabled pulumi.BoolPtrInput // Specifies a list of IDs of Container Registry Tokens, which are meant to be used by the clients to connect to the Connected Registry. ClientTokenIds pulumi.StringArrayInput // The ID of the Container Registry that this Connected Registry will reside in. Changing this forces a new Container Connected Registry to be created. // // > **Note:** If `parentRegistryId` is not specified, the Connected Registry will be connected to the Container Registry identified by `containerRegistryId`. ContainerRegistryId pulumi.StringPtrInput // The verbosity of the logs. Possible values are `None`, `Debug`, `Information`, `Warning` and `Error`. Defaults to `None`. LogLevel pulumi.StringPtrInput // The mode of the Connected Registry. Possible values are `Mirror`, `ReadOnly`, `ReadWrite` and `Registry`. Changing this forces a new Container Connected Registry to be created. Defaults to `ReadWrite`. Mode pulumi.StringPtrInput // The name which should be used for this Container Connected Registry. Changing this forces a new Container Connected Registry to be created. Name pulumi.StringPtrInput // One or more `notification` blocks as defined below. Notifications ConnectedRegistryNotificationArrayInput // The ID of the parent registry. This can be either a Container Registry ID or a Connected Registry ID. Changing this forces a new Container Connected Registry to be created. ParentRegistryId pulumi.StringPtrInput // The period of time (in form of ISO8601) for which a message is available to sync before it is expired. Allowed range is from `P1D` to `P90D`. Defaults to `P1D`. SyncMessageTtl pulumi.StringPtrInput // The cron expression indicating the schedule that the Connected Registry will sync with its parent. Defaults to `* * * * *`. SyncSchedule pulumi.StringPtrInput // The ID of the Container Registry Token which is used for synchronizing the Connected Registry. Changing this forces a new Container Connected Registry to be created. SyncTokenId pulumi.StringPtrInput // The time window (in form of ISO8601) during which sync is enabled for each schedule occurrence. Allowed range is from `PT3H` to `P7D`. SyncWindow pulumi.StringPtrInput } func (ConnectedRegistryState) ElementType() reflect.Type { return reflect.TypeOf((*connectedRegistryState)(nil)).Elem() } type connectedRegistryArgs struct { // Should the log auditing be enabled? AuditLogEnabled *bool `pulumi:"auditLogEnabled"` // Specifies a list of IDs of Container Registry Tokens, which are meant to be used by the clients to connect to the Connected Registry. ClientTokenIds []string `pulumi:"clientTokenIds"` // The ID of the Container Registry that this Connected Registry will reside in. Changing this forces a new Container Connected Registry to be created. // // > **Note:** If `parentRegistryId` is not specified, the Connected Registry will be connected to the Container Registry identified by `containerRegistryId`. ContainerRegistryId string `pulumi:"containerRegistryId"` // The verbosity of the logs. Possible values are `None`, `Debug`, `Information`, `Warning` and `Error`. Defaults to `None`. LogLevel *string `pulumi:"logLevel"` // The mode of the Connected Registry. Possible values are `Mirror`, `ReadOnly`, `ReadWrite` and `Registry`. Changing this forces a new Container Connected Registry to be created. Defaults to `ReadWrite`. Mode *string `pulumi:"mode"` // The name which should be used for this Container Connected Registry. Changing this forces a new Container Connected Registry to be created. Name *string `pulumi:"name"` // One or more `notification` blocks as defined below. Notifications []ConnectedRegistryNotification `pulumi:"notifications"` // The ID of the parent registry. This can be either a Container Registry ID or a Connected Registry ID. Changing this forces a new Container Connected Registry to be created. ParentRegistryId *string `pulumi:"parentRegistryId"` // The period of time (in form of ISO8601) for which a message is available to sync before it is expired. Allowed range is from `P1D` to `P90D`. Defaults to `P1D`. SyncMessageTtl *string `pulumi:"syncMessageTtl"` // The cron expression indicating the schedule that the Connected Registry will sync with its parent. Defaults to `* * * * *`. SyncSchedule *string `pulumi:"syncSchedule"` // The ID of the Container Registry Token which is used for synchronizing the Connected Registry. Changing this forces a new Container Connected Registry to be created. SyncTokenId string `pulumi:"syncTokenId"` // The time window (in form of ISO8601) during which sync is enabled for each schedule occurrence. Allowed range is from `PT3H` to `P7D`. SyncWindow *string `pulumi:"syncWindow"` } // The set of arguments for constructing a ConnectedRegistry resource. type ConnectedRegistryArgs struct { // Should the log auditing be enabled? AuditLogEnabled pulumi.BoolPtrInput // Specifies a list of IDs of Container Registry Tokens, which are meant to be used by the clients to connect to the Connected Registry. ClientTokenIds pulumi.StringArrayInput // The ID of the Container Registry that this Connected Registry will reside in. Changing this forces a new Container Connected Registry to be created. // // > **Note:** If `parentRegistryId` is not specified, the Connected Registry will be connected to the Container Registry identified by `containerRegistryId`. ContainerRegistryId pulumi.StringInput // The verbosity of the logs. Possible values are `None`, `Debug`, `Information`, `Warning` and `Error`. Defaults to `None`. LogLevel pulumi.StringPtrInput // The mode of the Connected Registry. Possible values are `Mirror`, `ReadOnly`, `ReadWrite` and `Registry`. Changing this forces a new Container Connected Registry to be created. Defaults to `ReadWrite`. Mode pulumi.StringPtrInput // The name which should be used for this Container Connected Registry. Changing this forces a new Container Connected Registry to be created. Name pulumi.StringPtrInput // One or more `notification` blocks as defined below. Notifications ConnectedRegistryNotificationArrayInput // The ID of the parent registry. This can be either a Container Registry ID or a Connected Registry ID. Changing this forces a new Container Connected Registry to be created. ParentRegistryId pulumi.StringPtrInput // The period of time (in form of ISO8601) for which a message is available to sync before it is expired. Allowed range is from `P1D` to `P90D`. Defaults to `P1D`. SyncMessageTtl pulumi.StringPtrInput // The cron expression indicating the schedule that the Connected Registry will sync with its parent. Defaults to `* * * * *`. SyncSchedule pulumi.StringPtrInput // The ID of the Container Registry Token which is used for synchronizing the Connected Registry. Changing this forces a new Container Connected Registry to be created. SyncTokenId pulumi.StringInput // The time window (in form of ISO8601) during which sync is enabled for each schedule occurrence. Allowed range is from `PT3H` to `P7D`. SyncWindow pulumi.StringPtrInput } func (ConnectedRegistryArgs) ElementType() reflect.Type { return reflect.TypeOf((*connectedRegistryArgs)(nil)).Elem() } type ConnectedRegistryInput interface { pulumi.Input ToConnectedRegistryOutput() ConnectedRegistryOutput ToConnectedRegistryOutputWithContext(ctx context.Context) ConnectedRegistryOutput } func (*ConnectedRegistry) ElementType() reflect.Type { return reflect.TypeOf((**ConnectedRegistry)(nil)).Elem() } func (i *ConnectedRegistry) ToConnectedRegistryOutput() ConnectedRegistryOutput { return i.ToConnectedRegistryOutputWithContext(context.Background()) } func (i *ConnectedRegistry) ToConnectedRegistryOutputWithContext(ctx context.Context) ConnectedRegistryOutput { return pulumi.ToOutputWithContext(ctx, i).(ConnectedRegistryOutput) } // ConnectedRegistryArrayInput is an input type that accepts ConnectedRegistryArray and ConnectedRegistryArrayOutput values. // You can construct a concrete instance of `ConnectedRegistryArrayInput` via: // // ConnectedRegistryArray{ ConnectedRegistryArgs{...} } type ConnectedRegistryArrayInput interface { pulumi.Input ToConnectedRegistryArrayOutput() ConnectedRegistryArrayOutput ToConnectedRegistryArrayOutputWithContext(context.Context) ConnectedRegistryArrayOutput } type ConnectedRegistryArray []ConnectedRegistryInput func (ConnectedRegistryArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*ConnectedRegistry)(nil)).Elem() } func (i ConnectedRegistryArray) ToConnectedRegistryArrayOutput() ConnectedRegistryArrayOutput { return i.ToConnectedRegistryArrayOutputWithContext(context.Background()) } func (i ConnectedRegistryArray) ToConnectedRegistryArrayOutputWithContext(ctx context.Context) ConnectedRegistryArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(ConnectedRegistryArrayOutput) } // ConnectedRegistryMapInput is an input type that accepts ConnectedRegistryMap and ConnectedRegistryMapOutput values. // You can construct a concrete instance of `ConnectedRegistryMapInput` via: // // ConnectedRegistryMap{ "key": ConnectedRegistryArgs{...} } type ConnectedRegistryMapInput interface { pulumi.Input ToConnectedRegistryMapOutput() ConnectedRegistryMapOutput ToConnectedRegistryMapOutputWithContext(context.Context) ConnectedRegistryMapOutput } type ConnectedRegistryMap map[string]ConnectedRegistryInput func (ConnectedRegistryMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*ConnectedRegistry)(nil)).Elem() } func (i ConnectedRegistryMap) ToConnectedRegistryMapOutput() ConnectedRegistryMapOutput { return i.ToConnectedRegistryMapOutputWithContext(context.Background()) } func (i ConnectedRegistryMap) ToConnectedRegistryMapOutputWithContext(ctx context.Context) ConnectedRegistryMapOutput { return pulumi.ToOutputWithContext(ctx, i).(ConnectedRegistryMapOutput) } type ConnectedRegistryOutput struct{ *pulumi.OutputState } func (ConnectedRegistryOutput) ElementType() reflect.Type { return reflect.TypeOf((**ConnectedRegistry)(nil)).Elem() } func (o ConnectedRegistryOutput) ToConnectedRegistryOutput() ConnectedRegistryOutput { return o } func (o ConnectedRegistryOutput) ToConnectedRegistryOutputWithContext(ctx context.Context) ConnectedRegistryOutput { return o } // Should the log auditing be enabled? func (o ConnectedRegistryOutput) AuditLogEnabled() pulumi.BoolPtrOutput { return o.ApplyT(func(v *ConnectedRegistry) pulumi.BoolPtrOutput { return v.AuditLogEnabled }).(pulumi.BoolPtrOutput) } // Specifies a list of IDs of Container Registry Tokens, which are meant to be used by the clients to connect to the Connected Registry. func (o ConnectedRegistryOutput) ClientTokenIds() pulumi.StringArrayOutput { return o.ApplyT(func(v *ConnectedRegistry) pulumi.StringArrayOutput { return v.ClientTokenIds }).(pulumi.StringArrayOutput) } // The ID of the Container Registry that this Connected Registry will reside in. Changing this forces a new Container Connected Registry to be created. // // > **Note:** If `parentRegistryId` is not specified, the Connected Registry will be connected to the Container Registry identified by `containerRegistryId`. func (o ConnectedRegistryOutput) ContainerRegistryId() pulumi.StringOutput { return o.ApplyT(func(v *ConnectedRegistry) pulumi.StringOutput { return v.ContainerRegistryId }).(pulumi.StringOutput) } // The verbosity of the logs. Possible values are `None`, `Debug`, `Information`, `Warning` and `Error`. Defaults to `None`. func (o ConnectedRegistryOutput) LogLevel() pulumi.StringPtrOutput { return o.ApplyT(func(v *ConnectedRegistry) pulumi.StringPtrOutput { return v.LogLevel }).(pulumi.StringPtrOutput) } // The mode of the Connected Registry. Possible values are `Mirror`, `ReadOnly`, `ReadWrite` and `Registry`. Changing this forces a new Container Connected Registry to be created. Defaults to `ReadWrite`. func (o ConnectedRegistryOutput) Mode() pulumi.StringPtrOutput { return o.ApplyT(func(v *ConnectedRegistry) pulumi.StringPtrOutput { return v.Mode }).(pulumi.StringPtrOutput) } // The name which should be used for this Container Connected Registry. Changing this forces a new Container Connected Registry to be created. func (o ConnectedRegistryOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *ConnectedRegistry) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // One or more `notification` blocks as defined below. func (o ConnectedRegistryOutput) Notifications() ConnectedRegistryNotificationArrayOutput { return o.ApplyT(func(v *ConnectedRegistry) ConnectedRegistryNotificationArrayOutput { return v.Notifications }).(ConnectedRegistryNotificationArrayOutput) } // The ID of the parent registry. This can be either a Container Registry ID or a Connected Registry ID. Changing this forces a new Container Connected Registry to be created. func (o ConnectedRegistryOutput) ParentRegistryId() pulumi.StringPtrOutput { return o.ApplyT(func(v *ConnectedRegistry) pulumi.StringPtrOutput { return v.ParentRegistryId }).(pulumi.StringPtrOutput) } // The period of time (in form of ISO8601) for which a message is available to sync before it is expired. Allowed range is from `P1D` to `P90D`. Defaults to `P1D`. func (o ConnectedRegistryOutput) SyncMessageTtl() pulumi.StringPtrOutput { return o.ApplyT(func(v *ConnectedRegistry) pulumi.StringPtrOutput { return v.SyncMessageTtl }).(pulumi.StringPtrOutput) } // The cron expression indicating the schedule that the Connected Registry will sync with its parent. Defaults to `* * * * *`. func (o ConnectedRegistryOutput) SyncSchedule() pulumi.StringPtrOutput { return o.ApplyT(func(v *ConnectedRegistry) pulumi.StringPtrOutput { return v.SyncSchedule }).(pulumi.StringPtrOutput) } // The ID of the Container Registry Token which is used for synchronizing the Connected Registry. Changing this forces a new Container Connected Registry to be created. func (o ConnectedRegistryOutput) SyncTokenId() pulumi.StringOutput { return o.ApplyT(func(v *ConnectedRegistry) pulumi.StringOutput { return v.SyncTokenId }).(pulumi.StringOutput) } // The time window (in form of ISO8601) during which sync is enabled for each schedule occurrence. Allowed range is from `PT3H` to `P7D`. func (o ConnectedRegistryOutput) SyncWindow() pulumi.StringPtrOutput { return o.ApplyT(func(v *ConnectedRegistry) pulumi.StringPtrOutput { return v.SyncWindow }).(pulumi.StringPtrOutput) } type ConnectedRegistryArrayOutput struct{ *pulumi.OutputState } func (ConnectedRegistryArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*ConnectedRegistry)(nil)).Elem() } func (o ConnectedRegistryArrayOutput) ToConnectedRegistryArrayOutput() ConnectedRegistryArrayOutput { return o } func (o ConnectedRegistryArrayOutput) ToConnectedRegistryArrayOutputWithContext(ctx context.Context) ConnectedRegistryArrayOutput { return o } func (o ConnectedRegistryArrayOutput) Index(i pulumi.IntInput) ConnectedRegistryOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *ConnectedRegistry { return vs[0].([]*ConnectedRegistry)[vs[1].(int)] }).(ConnectedRegistryOutput) } type ConnectedRegistryMapOutput struct{ *pulumi.OutputState } func (ConnectedRegistryMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*ConnectedRegistry)(nil)).Elem() } func (o ConnectedRegistryMapOutput) ToConnectedRegistryMapOutput() ConnectedRegistryMapOutput { return o } func (o ConnectedRegistryMapOutput) ToConnectedRegistryMapOutputWithContext(ctx context.Context) ConnectedRegistryMapOutput { return o } func (o ConnectedRegistryMapOutput) MapIndex(k pulumi.StringInput) ConnectedRegistryOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *ConnectedRegistry { return vs[0].(map[string]*ConnectedRegistry)[vs[1].(string)] }).(ConnectedRegistryOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*ConnectedRegistryInput)(nil)).Elem(), &ConnectedRegistry{}) pulumi.RegisterInputType(reflect.TypeOf((*ConnectedRegistryArrayInput)(nil)).Elem(), ConnectedRegistryArray{}) pulumi.RegisterInputType(reflect.TypeOf((*ConnectedRegistryMapInput)(nil)).Elem(), ConnectedRegistryMap{}) pulumi.RegisterOutputType(ConnectedRegistryOutput{}) pulumi.RegisterOutputType(ConnectedRegistryArrayOutput{}) pulumi.RegisterOutputType(ConnectedRegistryMapOutput{}) }
go
Apache-2.0
b66e1472775a89cca43f5050fef806854a7c3fa3
2026-01-07T09:44:27.619514Z
false
pulumi/pulumi-azure
https://github.com/pulumi/pulumi-azure/blob/b66e1472775a89cca43f5050fef806854a7c3fa3/sdk/go/azure/containerservice/kubernetesCluster.go
sdk/go/azure/containerservice/kubernetesCluster.go
// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package containerservice import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a Managed Kubernetes Cluster (also known as AKS / Azure Kubernetes Service) // // > **Note:** Due to the fast-moving nature of AKS, we recommend using the latest version of the Azure Provider when using AKS. // // ## Example Usage // // This example provisions a basic Managed Kubernetes Cluster. // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/containerservice" // "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-resources"), // Location: pulumi.String("West Europe"), // }) // if err != nil { // return err // } // exampleKubernetesCluster, err := containerservice.NewKubernetesCluster(ctx, "example", &containerservice.KubernetesClusterArgs{ // Name: pulumi.String("example-aks1"), // Location: example.Location, // ResourceGroupName: example.Name, // DnsPrefix: pulumi.String("exampleaks1"), // DefaultNodePool: &containerservice.KubernetesClusterDefaultNodePoolArgs{ // Name: pulumi.String("default"), // NodeCount: pulumi.Int(1), // VmSize: pulumi.String("Standard_D2_v2"), // }, // Identity: &containerservice.KubernetesClusterIdentityArgs{ // Type: pulumi.String("SystemAssigned"), // }, // Tags: pulumi.StringMap{ // "Environment": pulumi.String("Production"), // }, // }) // if err != nil { // return err // } // ctx.Export("clientCertificate", exampleKubernetesCluster.KubeConfigs.ApplyT(func(kubeConfigs []containerservice.KubernetesClusterKubeConfig) (*string, error) { // return &kubeConfigs[0].ClientCertificate, nil // }).(pulumi.StringPtrOutput)) // ctx.Export("kubeConfig", exampleKubernetesCluster.KubeConfigRaw) // return nil // }) // } // // ``` // // ## API Providers // // <!-- This section is generated, changes will be overwritten --> // This resource uses the following Azure API Providers: // // * `Microsoft.ContainerService` - 2025-07-01 // // ## Import // // Managed Kubernetes Clusters can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:containerservice/kubernetesCluster:KubernetesCluster cluster1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.ContainerService/managedClusters/cluster1 // ``` type KubernetesCluster struct { pulumi.CustomResourceState // A `aciConnectorLinux` block as defined below. For more details, please visit [Create and configure an AKS cluster to use virtual nodes](https://docs.microsoft.com/azure/aks/virtual-nodes-portal). AciConnectorLinux KubernetesClusterAciConnectorLinuxPtrOutput `pulumi:"aciConnectorLinux"` // Specifies whether the AI Toolchain Operator should be enabled for the Cluster. Defaults to `false`. AiToolchainOperatorEnabled pulumi.BoolPtrOutput `pulumi:"aiToolchainOperatorEnabled"` // An `apiServerAccessProfile` block as defined below. ApiServerAccessProfile KubernetesClusterApiServerAccessProfilePtrOutput `pulumi:"apiServerAccessProfile"` // A `autoScalerProfile` block as defined below. AutoScalerProfile KubernetesClusterAutoScalerProfileOutput `pulumi:"autoScalerProfile"` // The upgrade channel for this Kubernetes Cluster. Possible values are `patch`, `rapid`, `node-image` and `stable`. Omitting this field sets this value to `none`. // // !> **Note:** Cluster Auto-Upgrade will update the Kubernetes Cluster (and its Node Pools) to the latest GA version of Kubernetes automatically - please [see the Azure documentation for more information](https://docs.microsoft.com/azure/aks/upgrade-cluster#set-auto-upgrade-channel). // // > **Note:** Cluster Auto-Upgrade only updates to GA versions of Kubernetes and will not update to Preview versions. AutomaticUpgradeChannel pulumi.StringPtrOutput `pulumi:"automaticUpgradeChannel"` // A `azureActiveDirectoryRoleBasedAccessControl` block as defined below. AzureActiveDirectoryRoleBasedAccessControl KubernetesClusterAzureActiveDirectoryRoleBasedAccessControlPtrOutput `pulumi:"azureActiveDirectoryRoleBasedAccessControl"` // Should the Azure Policy Add-On be enabled? For more details please visit [Understand Azure Policy for Azure Kubernetes Service](https://docs.microsoft.com/en-ie/azure/governance/policy/concepts/rego-for-aks) AzurePolicyEnabled pulumi.BoolPtrOutput `pulumi:"azurePolicyEnabled"` // A `bootstrapProfile` block as defined below. BootstrapProfile KubernetesClusterBootstrapProfileOutput `pulumi:"bootstrapProfile"` // A `confidentialComputing` block as defined below. For more details please [the documentation](https://learn.microsoft.com/en-us/azure/confidential-computing/confidential-nodes-aks-overview) ConfidentialComputing KubernetesClusterConfidentialComputingPtrOutput `pulumi:"confidentialComputing"` // Should cost analysis be enabled for this Kubernetes Cluster? Defaults to `false`. The `skuTier` must be set to `Standard` or `Premium` to enable this feature. Enabling this will add Kubernetes Namespace and Deployment details to the Cost Analysis views in the Azure portal. CostAnalysisEnabled pulumi.BoolPtrOutput `pulumi:"costAnalysisEnabled"` // The current version running on the Azure Kubernetes Managed Cluster. CurrentKubernetesVersion pulumi.StringOutput `pulumi:"currentKubernetesVersion"` // A list of up to 10 base64 encoded CA certificates that will be added to the trust store on nodes. CustomCaTrustCertificatesBase64s pulumi.StringArrayOutput `pulumi:"customCaTrustCertificatesBase64s"` // Specifies configuration for "System" mode node pool. A `defaultNodePool` block as defined below. DefaultNodePool KubernetesClusterDefaultNodePoolOutput `pulumi:"defaultNodePool"` // The ID of the Disk Encryption Set which should be used for the Nodes and Volumes. More information [can be found in the documentation](https://docs.microsoft.com/azure/aks/azure-disk-customer-managed-keys). Changing this forces a new resource to be created. DiskEncryptionSetId pulumi.StringPtrOutput `pulumi:"diskEncryptionSetId"` // DNS prefix specified when creating the managed cluster. Possible values must begin and end with a letter or number, contain only letters, numbers, and hyphens and be between 1 and 54 characters in length. Changing this forces a new resource to be created. DnsPrefix pulumi.StringPtrOutput `pulumi:"dnsPrefix"` // Specifies the DNS prefix to use with private clusters. Changing this forces a new resource to be created. // // > **Note:** You must define either a `dnsPrefix` or a `dnsPrefixPrivateCluster` field. // // In addition, one of either `identity` or `servicePrincipal` blocks must be specified. DnsPrefixPrivateCluster pulumi.StringPtrOutput `pulumi:"dnsPrefixPrivateCluster"` // Specifies the Extended Zone (formerly called Edge Zone) within the Azure Region where this Managed Kubernetes Cluster should exist. Changing this forces a new resource to be created. EdgeZone pulumi.StringPtrOutput `pulumi:"edgeZone"` // The FQDN of the Azure Kubernetes Managed Cluster. Fqdn pulumi.StringOutput `pulumi:"fqdn"` // Should HTTP Application Routing be enabled? // // > **Note:** At this time HTTP Application Routing is not supported in Azure China or Azure US Government. HttpApplicationRoutingEnabled pulumi.BoolPtrOutput `pulumi:"httpApplicationRoutingEnabled"` // The Zone Name of the HTTP Application Routing. HttpApplicationRoutingZoneName pulumi.StringOutput `pulumi:"httpApplicationRoutingZoneName"` // A `httpProxyConfig` block as defined below. HttpProxyConfig KubernetesClusterHttpProxyConfigPtrOutput `pulumi:"httpProxyConfig"` // An `identity` block as defined below. One of either `identity` or `servicePrincipal` must be specified. // // !> **Note:** A migration scenario from `servicePrincipal` to `identity` is supported. When upgrading `servicePrincipal` to `identity`, your cluster's control plane and addon pods will switch to use managed identity, but the kubelets will keep using your configured `servicePrincipal` until you upgrade your Node Pool. Identity KubernetesClusterIdentityPtrOutput `pulumi:"identity"` // Specifies whether Image Cleaner is enabled. ImageCleanerEnabled pulumi.BoolPtrOutput `pulumi:"imageCleanerEnabled"` // Specifies the interval in hours when images should be cleaned up. ImageCleanerIntervalHours pulumi.IntPtrOutput `pulumi:"imageCleanerIntervalHours"` // A `ingressApplicationGateway` block as defined below. // // > **Note:** Since the Application Gateway is deployed inside a Virtual Network, users (and Service Principals) that are operating the Application Gateway must have the `Microsoft.Network/virtualNetworks/subnets/join/action` permission on the Virtual Network or Subnet. For more details, please visit [Virtual Network Permission](https://learn.microsoft.com/en-us/azure/application-gateway/configuration-infrastructure#virtual-network-permission). IngressApplicationGateway KubernetesClusterIngressApplicationGatewayPtrOutput `pulumi:"ingressApplicationGateway"` // A `keyManagementService` block as defined below. For more details, please visit [Key Management Service (KMS) etcd encryption to an AKS cluster](https://learn.microsoft.com/en-us/azure/aks/use-kms-etcd-encryption). KeyManagementService KubernetesClusterKeyManagementServicePtrOutput `pulumi:"keyManagementService"` // A `keyVaultSecretsProvider` block as defined below. For more details, please visit [Azure Keyvault Secrets Provider for AKS](https://docs.microsoft.com/azure/aks/csi-secrets-store-driver). KeyVaultSecretsProvider KubernetesClusterKeyVaultSecretsProviderPtrOutput `pulumi:"keyVaultSecretsProvider"` // Raw Kubernetes config for the admin account to be used by [kubectl](https://kubernetes.io/docs/reference/kubectl/overview/) and other compatible tools. This is only available when Role Based Access Control with Azure Active Directory is enabled and local accounts enabled. KubeAdminConfigRaw pulumi.StringOutput `pulumi:"kubeAdminConfigRaw"` // A `kubeAdminConfig` block as defined below. This is only available when Role Based Access Control with Azure Active Directory is enabled and local accounts enabled. KubeAdminConfigs KubernetesClusterKubeAdminConfigArrayOutput `pulumi:"kubeAdminConfigs"` // Raw Kubernetes config to be used by [kubectl](https://kubernetes.io/docs/reference/kubectl/overview/) and other compatible tools. KubeConfigRaw pulumi.StringOutput `pulumi:"kubeConfigRaw"` // A `kubeConfig` block as defined below. KubeConfigs KubernetesClusterKubeConfigArrayOutput `pulumi:"kubeConfigs"` // A `kubeletIdentity` block as defined below. KubeletIdentity KubernetesClusterKubeletIdentityOutput `pulumi:"kubeletIdentity"` // Version of Kubernetes specified when creating the AKS managed cluster. If not specified, the latest recommended version will be used at provisioning time (but won't auto-upgrade). AKS does not require an exact patch version to be specified, minor version aliases such as `1.22` are also supported. - The minor version's latest GA patch is automatically chosen in that case. More details can be found in [the documentation](https://docs.microsoft.com/en-us/azure/aks/supported-kubernetes-versions?tabs=azure-cli#alias-minor-version). // // > **Note:** Upgrading your cluster may take up to 10 minutes per node. KubernetesVersion pulumi.StringOutput `pulumi:"kubernetesVersion"` // A `linuxProfile` block as defined below. LinuxProfile KubernetesClusterLinuxProfilePtrOutput `pulumi:"linuxProfile"` // If `true` local accounts will be disabled. See [the documentation](https://docs.microsoft.com/azure/aks/managed-aad#disable-local-accounts) for more information. // // > **Note:** If `localAccountDisabled` is set to `true`, it is required to enable Kubernetes RBAC and AKS-managed Azure AD integration. See [the documentation](https://docs.microsoft.com/azure/aks/managed-aad#azure-ad-authentication-overview) for more information. LocalAccountDisabled pulumi.BoolPtrOutput `pulumi:"localAccountDisabled"` // The location where the Managed Kubernetes Cluster should be created. Changing this forces a new resource to be created. Location pulumi.StringOutput `pulumi:"location"` // A `maintenanceWindow` block as defined below. MaintenanceWindow KubernetesClusterMaintenanceWindowPtrOutput `pulumi:"maintenanceWindow"` // A `maintenanceWindowAutoUpgrade` block as defined below. MaintenanceWindowAutoUpgrade KubernetesClusterMaintenanceWindowAutoUpgradePtrOutput `pulumi:"maintenanceWindowAutoUpgrade"` // A `maintenanceWindowNodeOs` block as defined below. MaintenanceWindowNodeOs KubernetesClusterMaintenanceWindowNodeOsPtrOutput `pulumi:"maintenanceWindowNodeOs"` // A `microsoftDefender` block as defined below. MicrosoftDefender KubernetesClusterMicrosoftDefenderPtrOutput `pulumi:"microsoftDefender"` // Specifies a Prometheus add-on profile for the Kubernetes Cluster. A `monitorMetrics` block as defined below. // // > **Note:** If deploying Managed Prometheus, the `monitorMetrics` properties are required to configure the cluster for metrics collection. If no value is needed, set properties to `null`. MonitorMetrics KubernetesClusterMonitorMetricsPtrOutput `pulumi:"monitorMetrics"` // The name of the Managed Kubernetes Cluster to create. Changing this forces a new resource to be created. Name pulumi.StringOutput `pulumi:"name"` // A `networkProfile` block as defined below. Changing this forces a new resource to be created. // // > **Note:** If `networkProfile` is not defined, `kubenet` profile will be used by default. NetworkProfile KubernetesClusterNetworkProfileOutput `pulumi:"networkProfile"` // The upgrade channel for this Kubernetes Cluster Nodes' OS Image. Possible values are `Unmanaged`, `SecurityPatch`, `NodeImage` and `None`. Defaults to `NodeImage`. // // > **Note:** `nodeOsUpgradeChannel` must be set to `NodeImage` if `automaticUpgradeChannel` has been set to `node-image` NodeOsUpgradeChannel pulumi.StringPtrOutput `pulumi:"nodeOsUpgradeChannel"` // A `nodeProvisioningProfile` block as defined below. NodeProvisioningProfile KubernetesClusterNodeProvisioningProfileOutput `pulumi:"nodeProvisioningProfile"` // The name of the Resource Group where the Kubernetes Nodes should exist. Changing this forces a new resource to be created. // // > **Note:** Azure requires that a new, non-existent Resource Group is used, as otherwise, the provisioning of the Kubernetes Service will fail. NodeResourceGroup pulumi.StringOutput `pulumi:"nodeResourceGroup"` // The ID of the Resource Group containing the resources for this Managed Kubernetes Cluster. NodeResourceGroupId pulumi.StringOutput `pulumi:"nodeResourceGroupId"` // Enable or Disable the [OIDC issuer URL](https://learn.microsoft.com/en-gb/azure/aks/use-oidc-issuer) OidcIssuerEnabled pulumi.BoolPtrOutput `pulumi:"oidcIssuerEnabled"` // The OIDC issuer URL that is associated with the cluster. OidcIssuerUrl pulumi.StringOutput `pulumi:"oidcIssuerUrl"` // A `omsAgent` block as defined below. OmsAgent KubernetesClusterOmsAgentPtrOutput `pulumi:"omsAgent"` // Is Open Service Mesh enabled? For more details, please visit [Open Service Mesh for AKS](https://docs.microsoft.com/azure/aks/open-service-mesh-about). OpenServiceMeshEnabled pulumi.BoolPtrOutput `pulumi:"openServiceMeshEnabled"` // The FQDN for the Azure Portal resources when private link has been enabled, which is only resolvable inside the Virtual Network used by the Kubernetes Cluster. PortalFqdn pulumi.StringOutput `pulumi:"portalFqdn"` // Should this Kubernetes Cluster have its API server only exposed on internal IP addresses? This provides a Private IP Address for the Kubernetes API on the Virtual Network where the Kubernetes Cluster is located. Defaults to `false`. Changing this forces a new resource to be created. PrivateClusterEnabled pulumi.BoolPtrOutput `pulumi:"privateClusterEnabled"` // Specifies whether a Public FQDN for this Private Cluster should be added. Defaults to `false`. // // > **Note:** If you use BYO DNS Zone, the AKS cluster should either use a User Assigned Identity or a service principal (which is deprecated) with the `Private DNS Zone Contributor` role and access to this Private DNS Zone. If `UserAssigned` identity is used - to prevent improper resource order destruction - the cluster should depend on the role assignment, like in this example: // // ```go // package main // // import ( // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/authorization" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/containerservice" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/privatedns" // "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 // } // exampleZone, err := privatedns.NewZone(ctx, "example", &privatedns.ZoneArgs{ // Name: pulumi.String("privatelink.eastus2.azmk8s.io"), // ResourceGroupName: example.Name, // }) // if err != nil { // return err // } // exampleUserAssignedIdentity, err := authorization.NewUserAssignedIdentity(ctx, "example", &authorization.UserAssignedIdentityArgs{ // Name: pulumi.String("aks-example-identity"), // ResourceGroupName: example.Name, // Location: example.Location, // }) // if err != nil { // return err // } // exampleAssignment, err := authorization.NewAssignment(ctx, "example", &authorization.AssignmentArgs{ // Scope: exampleZone.ID(), // RoleDefinitionName: pulumi.String("Private DNS Zone Contributor"), // PrincipalId: exampleUserAssignedIdentity.PrincipalId, // }) // if err != nil { // return err // } // _, err = containerservice.NewKubernetesCluster(ctx, "example", &containerservice.KubernetesClusterArgs{ // Name: pulumi.String("aksexamplewithprivatednszone1"), // Location: example.Location, // ResourceGroupName: example.Name, // DnsPrefix: pulumi.String("aksexamplednsprefix1"), // PrivateClusterEnabled: pulumi.Bool(true), // PrivateDnsZoneId: exampleZone.ID(), // }, pulumi.DependsOn([]pulumi.Resource{ // exampleAssignment, // })) // if err != nil { // return err // } // return nil // }) // } // ``` PrivateClusterPublicFqdnEnabled pulumi.BoolPtrOutput `pulumi:"privateClusterPublicFqdnEnabled"` // Either the ID of Private DNS Zone which should be delegated to this Cluster, `System` to have AKS manage this or `None`. In case of `None` you will need to bring your own DNS server and set up resolving, otherwise, the cluster will have issues after provisioning. Changing this forces a new resource to be created. PrivateDnsZoneId pulumi.StringOutput `pulumi:"privateDnsZoneId"` // The FQDN for the Kubernetes Cluster when private link has been enabled, which is only resolvable inside the Virtual Network used by the Kubernetes Cluster. PrivateFqdn pulumi.StringOutput `pulumi:"privateFqdn"` // Specifies the Resource Group where the Managed Kubernetes Cluster should exist. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // Whether Role Based Access Control for the Kubernetes Cluster should be enabled. Defaults to `true`. Changing this forces a new resource to be created. RoleBasedAccessControlEnabled pulumi.BoolPtrOutput `pulumi:"roleBasedAccessControlEnabled"` // Whether to enable run command for the cluster or not. Defaults to `true`. RunCommandEnabled pulumi.BoolPtrOutput `pulumi:"runCommandEnabled"` // A `serviceMeshProfile` block as defined below. ServiceMeshProfile KubernetesClusterServiceMeshProfilePtrOutput `pulumi:"serviceMeshProfile"` // A `servicePrincipal` block as documented below. One of either `identity` or `servicePrincipal` must be specified. // // !> **Note:** A migration scenario from `servicePrincipal` to `identity` is supported. When upgrading `servicePrincipal` to `identity`, your cluster's control plane and addon pods will switch to use managed identity, but the kubelets will keep using your configured `servicePrincipal` until you upgrade your Node Pool. ServicePrincipal KubernetesClusterServicePrincipalPtrOutput `pulumi:"servicePrincipal"` // The SKU Tier that should be used for this Kubernetes Cluster. Possible values are `Free`, `Standard` (which includes the Uptime SLA) and `Premium`. Defaults to `Free`. // // > **Note:** Whilst the AKS API previously supported the `Paid` SKU - the AKS API introduced a breaking change in API Version `2023-02-01` (used in v3.51.0 and later) where the value `Paid` must now be set to `Standard`. SkuTier pulumi.StringPtrOutput `pulumi:"skuTier"` // A `storageProfile` block as defined below. StorageProfile KubernetesClusterStorageProfilePtrOutput `pulumi:"storageProfile"` // Specifies the support plan which should be used for this Kubernetes Cluster. Possible values are `KubernetesOfficial` and `AKSLongTermSupport`. Defaults to `KubernetesOfficial`. SupportPlan pulumi.StringPtrOutput `pulumi:"supportPlan"` // A mapping of tags to assign to the resource. Tags pulumi.StringMapOutput `pulumi:"tags"` // A `upgradeOverride` block as defined below. UpgradeOverride KubernetesClusterUpgradeOverridePtrOutput `pulumi:"upgradeOverride"` // A `webAppRouting` block as defined below. WebAppRouting KubernetesClusterWebAppRoutingPtrOutput `pulumi:"webAppRouting"` // A `windowsProfile` block as defined below. WindowsProfile KubernetesClusterWindowsProfileOutput `pulumi:"windowsProfile"` // A `workloadAutoscalerProfile` block defined below. WorkloadAutoscalerProfile KubernetesClusterWorkloadAutoscalerProfilePtrOutput `pulumi:"workloadAutoscalerProfile"` // Specifies whether Azure AD Workload Identity should be enabled for the Cluster. Defaults to `false`. // // > **Note:** To enable Azure AD Workload Identity `oidcIssuerEnabled` must be set to `true`. // // > **Note:** Enabling this option will allocate Workload Identity resources to the `kube-system` namespace in Kubernetes. If you wish to customize the deployment of Workload Identity, you can refer to [the documentation on Azure AD Workload Identity.](https://azure.github.io/azure-workload-identity/docs/installation/mutating-admission-webhook.html) The documentation provides guidance on how to install the mutating admission webhook, which allows for the customization of Workload Identity deployment. WorkloadIdentityEnabled pulumi.BoolPtrOutput `pulumi:"workloadIdentityEnabled"` } // NewKubernetesCluster registers a new resource with the given unique name, arguments, and options. func NewKubernetesCluster(ctx *pulumi.Context, name string, args *KubernetesClusterArgs, opts ...pulumi.ResourceOption) (*KubernetesCluster, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.DefaultNodePool == nil { return nil, errors.New("invalid value for required argument 'DefaultNodePool'") } if args.ResourceGroupName == nil { return nil, errors.New("invalid value for required argument 'ResourceGroupName'") } secrets := pulumi.AdditionalSecretOutputs([]string{ "kubeAdminConfigRaw", "kubeAdminConfigs", "kubeConfigRaw", "kubeConfigs", }) opts = append(opts, secrets) opts = internal.PkgResourceDefaultOpts(opts) var resource KubernetesCluster err := ctx.RegisterResource("azure:containerservice/kubernetesCluster:KubernetesCluster", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetKubernetesCluster gets an existing KubernetesCluster 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 GetKubernetesCluster(ctx *pulumi.Context, name string, id pulumi.IDInput, state *KubernetesClusterState, opts ...pulumi.ResourceOption) (*KubernetesCluster, error) { var resource KubernetesCluster err := ctx.ReadResource("azure:containerservice/kubernetesCluster:KubernetesCluster", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering KubernetesCluster resources. type kubernetesClusterState struct { // A `aciConnectorLinux` block as defined below. For more details, please visit [Create and configure an AKS cluster to use virtual nodes](https://docs.microsoft.com/azure/aks/virtual-nodes-portal). AciConnectorLinux *KubernetesClusterAciConnectorLinux `pulumi:"aciConnectorLinux"` // Specifies whether the AI Toolchain Operator should be enabled for the Cluster. Defaults to `false`. AiToolchainOperatorEnabled *bool `pulumi:"aiToolchainOperatorEnabled"` // An `apiServerAccessProfile` block as defined below. ApiServerAccessProfile *KubernetesClusterApiServerAccessProfile `pulumi:"apiServerAccessProfile"` // A `autoScalerProfile` block as defined below. AutoScalerProfile *KubernetesClusterAutoScalerProfile `pulumi:"autoScalerProfile"` // The upgrade channel for this Kubernetes Cluster. Possible values are `patch`, `rapid`, `node-image` and `stable`. Omitting this field sets this value to `none`. // // !> **Note:** Cluster Auto-Upgrade will update the Kubernetes Cluster (and its Node Pools) to the latest GA version of Kubernetes automatically - please [see the Azure documentation for more information](https://docs.microsoft.com/azure/aks/upgrade-cluster#set-auto-upgrade-channel). // // > **Note:** Cluster Auto-Upgrade only updates to GA versions of Kubernetes and will not update to Preview versions. AutomaticUpgradeChannel *string `pulumi:"automaticUpgradeChannel"` // A `azureActiveDirectoryRoleBasedAccessControl` block as defined below. AzureActiveDirectoryRoleBasedAccessControl *KubernetesClusterAzureActiveDirectoryRoleBasedAccessControl `pulumi:"azureActiveDirectoryRoleBasedAccessControl"` // Should the Azure Policy Add-On be enabled? For more details please visit [Understand Azure Policy for Azure Kubernetes Service](https://docs.microsoft.com/en-ie/azure/governance/policy/concepts/rego-for-aks) AzurePolicyEnabled *bool `pulumi:"azurePolicyEnabled"` // A `bootstrapProfile` block as defined below. BootstrapProfile *KubernetesClusterBootstrapProfile `pulumi:"bootstrapProfile"` // A `confidentialComputing` block as defined below. For more details please [the documentation](https://learn.microsoft.com/en-us/azure/confidential-computing/confidential-nodes-aks-overview) ConfidentialComputing *KubernetesClusterConfidentialComputing `pulumi:"confidentialComputing"` // Should cost analysis be enabled for this Kubernetes Cluster? Defaults to `false`. The `skuTier` must be set to `Standard` or `Premium` to enable this feature. Enabling this will add Kubernetes Namespace and Deployment details to the Cost Analysis views in the Azure portal. CostAnalysisEnabled *bool `pulumi:"costAnalysisEnabled"` // The current version running on the Azure Kubernetes Managed Cluster. CurrentKubernetesVersion *string `pulumi:"currentKubernetesVersion"` // A list of up to 10 base64 encoded CA certificates that will be added to the trust store on nodes. CustomCaTrustCertificatesBase64s []string `pulumi:"customCaTrustCertificatesBase64s"` // Specifies configuration for "System" mode node pool. A `defaultNodePool` block as defined below. DefaultNodePool *KubernetesClusterDefaultNodePool `pulumi:"defaultNodePool"` // The ID of the Disk Encryption Set which should be used for the Nodes and Volumes. More information [can be found in the documentation](https://docs.microsoft.com/azure/aks/azure-disk-customer-managed-keys). Changing this forces a new resource to be created. DiskEncryptionSetId *string `pulumi:"diskEncryptionSetId"` // DNS prefix specified when creating the managed cluster. Possible values must begin and end with a letter or number, contain only letters, numbers, and hyphens and be between 1 and 54 characters in length. Changing this forces a new resource to be created. DnsPrefix *string `pulumi:"dnsPrefix"` // Specifies the DNS prefix to use with private clusters. Changing this forces a new resource to be created. // // > **Note:** You must define either a `dnsPrefix` or a `dnsPrefixPrivateCluster` field. // // In addition, one of either `identity` or `servicePrincipal` blocks must be specified. DnsPrefixPrivateCluster *string `pulumi:"dnsPrefixPrivateCluster"` // Specifies the Extended Zone (formerly called Edge Zone) within the Azure Region where this Managed Kubernetes Cluster should exist. Changing this forces a new resource to be created. EdgeZone *string `pulumi:"edgeZone"` // The FQDN of the Azure Kubernetes Managed Cluster. Fqdn *string `pulumi:"fqdn"` // Should HTTP Application Routing be enabled? // // > **Note:** At this time HTTP Application Routing is not supported in Azure China or Azure US Government. HttpApplicationRoutingEnabled *bool `pulumi:"httpApplicationRoutingEnabled"` // The Zone Name of the HTTP Application Routing. HttpApplicationRoutingZoneName *string `pulumi:"httpApplicationRoutingZoneName"` // A `httpProxyConfig` block as defined below. HttpProxyConfig *KubernetesClusterHttpProxyConfig `pulumi:"httpProxyConfig"` // An `identity` block as defined below. One of either `identity` or `servicePrincipal` must be specified. // // !> **Note:** A migration scenario from `servicePrincipal` to `identity` is supported. When upgrading `servicePrincipal` to `identity`, your cluster's control plane and addon pods will switch to use managed identity, but the kubelets will keep using your configured `servicePrincipal` until you upgrade your Node Pool. Identity *KubernetesClusterIdentity `pulumi:"identity"` // Specifies whether Image Cleaner is enabled. ImageCleanerEnabled *bool `pulumi:"imageCleanerEnabled"` // Specifies the interval in hours when images should be cleaned up. ImageCleanerIntervalHours *int `pulumi:"imageCleanerIntervalHours"` // A `ingressApplicationGateway` block as defined below. // // > **Note:** Since the Application Gateway is deployed inside a Virtual Network, users (and Service Principals) that are operating the Application Gateway must have the `Microsoft.Network/virtualNetworks/subnets/join/action` permission on the Virtual Network or Subnet. For more details, please visit [Virtual Network Permission](https://learn.microsoft.com/en-us/azure/application-gateway/configuration-infrastructure#virtual-network-permission). IngressApplicationGateway *KubernetesClusterIngressApplicationGateway `pulumi:"ingressApplicationGateway"` // A `keyManagementService` block as defined below. For more details, please visit [Key Management Service (KMS) etcd encryption to an AKS cluster](https://learn.microsoft.com/en-us/azure/aks/use-kms-etcd-encryption). KeyManagementService *KubernetesClusterKeyManagementService `pulumi:"keyManagementService"` // A `keyVaultSecretsProvider` block as defined below. For more details, please visit [Azure Keyvault Secrets Provider for AKS](https://docs.microsoft.com/azure/aks/csi-secrets-store-driver). KeyVaultSecretsProvider *KubernetesClusterKeyVaultSecretsProvider `pulumi:"keyVaultSecretsProvider"` // Raw Kubernetes config for the admin account to be used by [kubectl](https://kubernetes.io/docs/reference/kubectl/overview/) and other compatible tools. This is only available when Role Based Access Control with Azure Active Directory is enabled and local accounts enabled. KubeAdminConfigRaw *string `pulumi:"kubeAdminConfigRaw"` // A `kubeAdminConfig` block as defined below. This is only available when Role Based Access Control with Azure Active Directory is enabled and local accounts enabled. KubeAdminConfigs []KubernetesClusterKubeAdminConfig `pulumi:"kubeAdminConfigs"` // Raw Kubernetes config to be used by [kubectl](https://kubernetes.io/docs/reference/kubectl/overview/) and other compatible tools.
go
Apache-2.0
b66e1472775a89cca43f5050fef806854a7c3fa3
2026-01-07T09:44:27.619514Z
true
pulumi/pulumi-azure
https://github.com/pulumi/pulumi-azure/blob/b66e1472775a89cca43f5050fef806854a7c3fa3/sdk/go/azure/containerservice/getKubernetesServiceVersions.go
sdk/go/azure/containerservice/getKubernetesServiceVersions.go
// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package containerservice import ( "context" "reflect" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Use this data source to retrieve the version of Kubernetes supported by Azure Kubernetes Service. // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/containerservice" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { // current, err := containerservice.GetKubernetesServiceVersions(ctx, &containerservice.GetKubernetesServiceVersionsArgs{ // Location: "West Europe", // }, nil) // if err != nil { // return err // } // ctx.Export("versions", current.Versions) // ctx.Export("latestVersion", current.LatestVersion) // return nil // }) // } // // ``` // // ## API Providers // // <!-- This section is generated, changes will be overwritten --> // This data source uses the following Azure API Providers: // // * `Microsoft.ContainerService` - 2019-08-01 func GetKubernetesServiceVersions(ctx *pulumi.Context, args *GetKubernetesServiceVersionsArgs, opts ...pulumi.InvokeOption) (*GetKubernetesServiceVersionsResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv GetKubernetesServiceVersionsResult err := ctx.Invoke("azure:containerservice/getKubernetesServiceVersions:getKubernetesServiceVersions", args, &rv, opts...) if err != nil { return nil, err } return &rv, nil } // A collection of arguments for invoking getKubernetesServiceVersions. type GetKubernetesServiceVersionsArgs struct { // Should Preview versions of Kubernetes in AKS be included? Defaults to `true` IncludePreview *bool `pulumi:"includePreview"` // Specifies the location in which to query for versions. Location string `pulumi:"location"` // A prefix filter for the versions of Kubernetes which should be returned; for example `1.` will return `1.9` to `1.14`, whereas `1.12` will return `1.12.2`. VersionPrefix *string `pulumi:"versionPrefix"` } // A collection of values returned by getKubernetesServiceVersions. type GetKubernetesServiceVersionsResult struct { // The N-1 minor non-preview version and latest patch. DefaultVersion string `pulumi:"defaultVersion"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` IncludePreview *bool `pulumi:"includePreview"` // The most recent version available. If `includePreview == false`, this is the most recent non-preview version available. LatestVersion string `pulumi:"latestVersion"` Location string `pulumi:"location"` VersionPrefix *string `pulumi:"versionPrefix"` // The list of all supported versions. Versions []string `pulumi:"versions"` } func GetKubernetesServiceVersionsOutput(ctx *pulumi.Context, args GetKubernetesServiceVersionsOutputArgs, opts ...pulumi.InvokeOption) GetKubernetesServiceVersionsResultOutput { return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetKubernetesServiceVersionsResultOutput, error) { args := v.(GetKubernetesServiceVersionsArgs) options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} return ctx.InvokeOutput("azure:containerservice/getKubernetesServiceVersions:getKubernetesServiceVersions", args, GetKubernetesServiceVersionsResultOutput{}, options).(GetKubernetesServiceVersionsResultOutput), nil }).(GetKubernetesServiceVersionsResultOutput) } // A collection of arguments for invoking getKubernetesServiceVersions. type GetKubernetesServiceVersionsOutputArgs struct { // Should Preview versions of Kubernetes in AKS be included? Defaults to `true` IncludePreview pulumi.BoolPtrInput `pulumi:"includePreview"` // Specifies the location in which to query for versions. Location pulumi.StringInput `pulumi:"location"` // A prefix filter for the versions of Kubernetes which should be returned; for example `1.` will return `1.9` to `1.14`, whereas `1.12` will return `1.12.2`. VersionPrefix pulumi.StringPtrInput `pulumi:"versionPrefix"` } func (GetKubernetesServiceVersionsOutputArgs) ElementType() reflect.Type { return reflect.TypeOf((*GetKubernetesServiceVersionsArgs)(nil)).Elem() } // A collection of values returned by getKubernetesServiceVersions. type GetKubernetesServiceVersionsResultOutput struct{ *pulumi.OutputState } func (GetKubernetesServiceVersionsResultOutput) ElementType() reflect.Type { return reflect.TypeOf((*GetKubernetesServiceVersionsResult)(nil)).Elem() } func (o GetKubernetesServiceVersionsResultOutput) ToGetKubernetesServiceVersionsResultOutput() GetKubernetesServiceVersionsResultOutput { return o } func (o GetKubernetesServiceVersionsResultOutput) ToGetKubernetesServiceVersionsResultOutputWithContext(ctx context.Context) GetKubernetesServiceVersionsResultOutput { return o } // The N-1 minor non-preview version and latest patch. func (o GetKubernetesServiceVersionsResultOutput) DefaultVersion() pulumi.StringOutput { return o.ApplyT(func(v GetKubernetesServiceVersionsResult) string { return v.DefaultVersion }).(pulumi.StringOutput) } // The provider-assigned unique ID for this managed resource. func (o GetKubernetesServiceVersionsResultOutput) Id() pulumi.StringOutput { return o.ApplyT(func(v GetKubernetesServiceVersionsResult) string { return v.Id }).(pulumi.StringOutput) } func (o GetKubernetesServiceVersionsResultOutput) IncludePreview() pulumi.BoolPtrOutput { return o.ApplyT(func(v GetKubernetesServiceVersionsResult) *bool { return v.IncludePreview }).(pulumi.BoolPtrOutput) } // The most recent version available. If `includePreview == false`, this is the most recent non-preview version available. func (o GetKubernetesServiceVersionsResultOutput) LatestVersion() pulumi.StringOutput { return o.ApplyT(func(v GetKubernetesServiceVersionsResult) string { return v.LatestVersion }).(pulumi.StringOutput) } func (o GetKubernetesServiceVersionsResultOutput) Location() pulumi.StringOutput { return o.ApplyT(func(v GetKubernetesServiceVersionsResult) string { return v.Location }).(pulumi.StringOutput) } func (o GetKubernetesServiceVersionsResultOutput) VersionPrefix() pulumi.StringPtrOutput { return o.ApplyT(func(v GetKubernetesServiceVersionsResult) *string { return v.VersionPrefix }).(pulumi.StringPtrOutput) } // The list of all supported versions. func (o GetKubernetesServiceVersionsResultOutput) Versions() pulumi.StringArrayOutput { return o.ApplyT(func(v GetKubernetesServiceVersionsResult) []string { return v.Versions }).(pulumi.StringArrayOutput) } func init() { pulumi.RegisterOutputType(GetKubernetesServiceVersionsResultOutput{}) }
go
Apache-2.0
b66e1472775a89cca43f5050fef806854a7c3fa3
2026-01-07T09:44:27.619514Z
false
pulumi/pulumi-azure
https://github.com/pulumi/pulumi-azure/blob/b66e1472775a89cca43f5050fef806854a7c3fa3/sdk/go/azure/containerservice/fleetUpdateRun.go
sdk/go/azure/containerservice/fleetUpdateRun.go
// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package containerservice import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a Kubernetes Fleet Update Run. // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/containerservice" // "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-rg"), // Location: pulumi.String("westeurope"), // }) // if err != nil { // return err // } // exampleKubernetesFleetManager, err := containerservice.NewKubernetesFleetManager(ctx, "example", &containerservice.KubernetesFleetManagerArgs{ // Location: example.Location, // Name: pulumi.String("example"), // ResourceGroupName: example.Name, // }) // if err != nil { // return err // } // exampleKubernetesCluster, err := containerservice.NewKubernetesCluster(ctx, "example", &containerservice.KubernetesClusterArgs{ // Name: pulumi.String("example"), // Location: example.Location, // ResourceGroupName: example.Name, // DnsPrefix: pulumi.String("example"), // DefaultNodePool: &containerservice.KubernetesClusterDefaultNodePoolArgs{ // Name: pulumi.String("default"), // NodeCount: pulumi.Int(1), // VmSize: pulumi.String("Standard_DS2_v2"), // }, // Identity: &containerservice.KubernetesClusterIdentityArgs{ // Type: pulumi.String("SystemAssigned"), // }, // }) // if err != nil { // return err // } // _, err = containerservice.NewFleetMember(ctx, "example", &containerservice.FleetMemberArgs{ // Name: pulumi.String("example"), // KubernetesFleetId: exampleKubernetesFleetManager.ID(), // KubernetesClusterId: exampleKubernetesCluster.ID(), // Group: pulumi.String("example-group"), // }) // if err != nil { // return err // } // _, err = containerservice.NewFleetUpdateRun(ctx, "example", &containerservice.FleetUpdateRunArgs{ // Name: pulumi.String("example"), // KubernetesFleetManagerId: exampleKubernetesFleetManager.ID(), // ManagedClusterUpdate: &containerservice.FleetUpdateRunManagedClusterUpdateArgs{ // Upgrade: &containerservice.FleetUpdateRunManagedClusterUpdateUpgradeArgs{ // Type: pulumi.String("Full"), // KubernetesVersion: pulumi.String("1.27"), // }, // NodeImageSelection: &containerservice.FleetUpdateRunManagedClusterUpdateNodeImageSelectionArgs{ // Type: pulumi.String("Latest"), // }, // }, // Stages: containerservice.FleetUpdateRunStageArray{ // &containerservice.FleetUpdateRunStageArgs{ // Name: pulumi.String("example"), // Groups: containerservice.FleetUpdateRunStageGroupArray{ // &containerservice.FleetUpdateRunStageGroupArgs{ // Name: pulumi.String("example-group"), // }, // }, // AfterStageWaitInSeconds: pulumi.Int(21), // }, // }, // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## API Providers // // <!-- This section is generated, changes will be overwritten --> // This resource uses the following Azure API Providers: // // * `Microsoft.ContainerService` - 2024-04-01 // // ## Import // // Kubernetes Fleet Update Runs can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:containerservice/fleetUpdateRun:FleetUpdateRun example /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/resourceGroup1/providers/Microsoft.ContainerService/fleets/fleet1/updateRuns/updateRun1 // ``` type FleetUpdateRun struct { pulumi.CustomResourceState // The ID of the Fleet Update Strategy. Only one of `fleetUpdateStrategyId` or `stage` can be specified. FleetUpdateStrategyId pulumi.StringPtrOutput `pulumi:"fleetUpdateStrategyId"` // The ID of the Fleet Manager. Changing this forces a new Kubernetes Fleet Update Run to be created. KubernetesFleetManagerId pulumi.StringOutput `pulumi:"kubernetesFleetManagerId"` // A `managedClusterUpdate` block as defined below. ManagedClusterUpdate FleetUpdateRunManagedClusterUpdateOutput `pulumi:"managedClusterUpdate"` // The name which should be used for this Kubernetes Fleet Update Run. Changing this forces a new Kubernetes Fleet Update Run to be created. Name pulumi.StringOutput `pulumi:"name"` // One or more `stage` blocks as defined below. Only one of `stage` or `fleetUpdateStrategyId` can be specified. Stages FleetUpdateRunStageArrayOutput `pulumi:"stages"` } // NewFleetUpdateRun registers a new resource with the given unique name, arguments, and options. func NewFleetUpdateRun(ctx *pulumi.Context, name string, args *FleetUpdateRunArgs, opts ...pulumi.ResourceOption) (*FleetUpdateRun, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.KubernetesFleetManagerId == nil { return nil, errors.New("invalid value for required argument 'KubernetesFleetManagerId'") } if args.ManagedClusterUpdate == nil { return nil, errors.New("invalid value for required argument 'ManagedClusterUpdate'") } opts = internal.PkgResourceDefaultOpts(opts) var resource FleetUpdateRun err := ctx.RegisterResource("azure:containerservice/fleetUpdateRun:FleetUpdateRun", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetFleetUpdateRun gets an existing FleetUpdateRun 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 GetFleetUpdateRun(ctx *pulumi.Context, name string, id pulumi.IDInput, state *FleetUpdateRunState, opts ...pulumi.ResourceOption) (*FleetUpdateRun, error) { var resource FleetUpdateRun err := ctx.ReadResource("azure:containerservice/fleetUpdateRun:FleetUpdateRun", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering FleetUpdateRun resources. type fleetUpdateRunState struct { // The ID of the Fleet Update Strategy. Only one of `fleetUpdateStrategyId` or `stage` can be specified. FleetUpdateStrategyId *string `pulumi:"fleetUpdateStrategyId"` // The ID of the Fleet Manager. Changing this forces a new Kubernetes Fleet Update Run to be created. KubernetesFleetManagerId *string `pulumi:"kubernetesFleetManagerId"` // A `managedClusterUpdate` block as defined below. ManagedClusterUpdate *FleetUpdateRunManagedClusterUpdate `pulumi:"managedClusterUpdate"` // The name which should be used for this Kubernetes Fleet Update Run. Changing this forces a new Kubernetes Fleet Update Run to be created. Name *string `pulumi:"name"` // One or more `stage` blocks as defined below. Only one of `stage` or `fleetUpdateStrategyId` can be specified. Stages []FleetUpdateRunStage `pulumi:"stages"` } type FleetUpdateRunState struct { // The ID of the Fleet Update Strategy. Only one of `fleetUpdateStrategyId` or `stage` can be specified. FleetUpdateStrategyId pulumi.StringPtrInput // The ID of the Fleet Manager. Changing this forces a new Kubernetes Fleet Update Run to be created. KubernetesFleetManagerId pulumi.StringPtrInput // A `managedClusterUpdate` block as defined below. ManagedClusterUpdate FleetUpdateRunManagedClusterUpdatePtrInput // The name which should be used for this Kubernetes Fleet Update Run. Changing this forces a new Kubernetes Fleet Update Run to be created. Name pulumi.StringPtrInput // One or more `stage` blocks as defined below. Only one of `stage` or `fleetUpdateStrategyId` can be specified. Stages FleetUpdateRunStageArrayInput } func (FleetUpdateRunState) ElementType() reflect.Type { return reflect.TypeOf((*fleetUpdateRunState)(nil)).Elem() } type fleetUpdateRunArgs struct { // The ID of the Fleet Update Strategy. Only one of `fleetUpdateStrategyId` or `stage` can be specified. FleetUpdateStrategyId *string `pulumi:"fleetUpdateStrategyId"` // The ID of the Fleet Manager. Changing this forces a new Kubernetes Fleet Update Run to be created. KubernetesFleetManagerId string `pulumi:"kubernetesFleetManagerId"` // A `managedClusterUpdate` block as defined below. ManagedClusterUpdate FleetUpdateRunManagedClusterUpdate `pulumi:"managedClusterUpdate"` // The name which should be used for this Kubernetes Fleet Update Run. Changing this forces a new Kubernetes Fleet Update Run to be created. Name *string `pulumi:"name"` // One or more `stage` blocks as defined below. Only one of `stage` or `fleetUpdateStrategyId` can be specified. Stages []FleetUpdateRunStage `pulumi:"stages"` } // The set of arguments for constructing a FleetUpdateRun resource. type FleetUpdateRunArgs struct { // The ID of the Fleet Update Strategy. Only one of `fleetUpdateStrategyId` or `stage` can be specified. FleetUpdateStrategyId pulumi.StringPtrInput // The ID of the Fleet Manager. Changing this forces a new Kubernetes Fleet Update Run to be created. KubernetesFleetManagerId pulumi.StringInput // A `managedClusterUpdate` block as defined below. ManagedClusterUpdate FleetUpdateRunManagedClusterUpdateInput // The name which should be used for this Kubernetes Fleet Update Run. Changing this forces a new Kubernetes Fleet Update Run to be created. Name pulumi.StringPtrInput // One or more `stage` blocks as defined below. Only one of `stage` or `fleetUpdateStrategyId` can be specified. Stages FleetUpdateRunStageArrayInput } func (FleetUpdateRunArgs) ElementType() reflect.Type { return reflect.TypeOf((*fleetUpdateRunArgs)(nil)).Elem() } type FleetUpdateRunInput interface { pulumi.Input ToFleetUpdateRunOutput() FleetUpdateRunOutput ToFleetUpdateRunOutputWithContext(ctx context.Context) FleetUpdateRunOutput } func (*FleetUpdateRun) ElementType() reflect.Type { return reflect.TypeOf((**FleetUpdateRun)(nil)).Elem() } func (i *FleetUpdateRun) ToFleetUpdateRunOutput() FleetUpdateRunOutput { return i.ToFleetUpdateRunOutputWithContext(context.Background()) } func (i *FleetUpdateRun) ToFleetUpdateRunOutputWithContext(ctx context.Context) FleetUpdateRunOutput { return pulumi.ToOutputWithContext(ctx, i).(FleetUpdateRunOutput) } // FleetUpdateRunArrayInput is an input type that accepts FleetUpdateRunArray and FleetUpdateRunArrayOutput values. // You can construct a concrete instance of `FleetUpdateRunArrayInput` via: // // FleetUpdateRunArray{ FleetUpdateRunArgs{...} } type FleetUpdateRunArrayInput interface { pulumi.Input ToFleetUpdateRunArrayOutput() FleetUpdateRunArrayOutput ToFleetUpdateRunArrayOutputWithContext(context.Context) FleetUpdateRunArrayOutput } type FleetUpdateRunArray []FleetUpdateRunInput func (FleetUpdateRunArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*FleetUpdateRun)(nil)).Elem() } func (i FleetUpdateRunArray) ToFleetUpdateRunArrayOutput() FleetUpdateRunArrayOutput { return i.ToFleetUpdateRunArrayOutputWithContext(context.Background()) } func (i FleetUpdateRunArray) ToFleetUpdateRunArrayOutputWithContext(ctx context.Context) FleetUpdateRunArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(FleetUpdateRunArrayOutput) } // FleetUpdateRunMapInput is an input type that accepts FleetUpdateRunMap and FleetUpdateRunMapOutput values. // You can construct a concrete instance of `FleetUpdateRunMapInput` via: // // FleetUpdateRunMap{ "key": FleetUpdateRunArgs{...} } type FleetUpdateRunMapInput interface { pulumi.Input ToFleetUpdateRunMapOutput() FleetUpdateRunMapOutput ToFleetUpdateRunMapOutputWithContext(context.Context) FleetUpdateRunMapOutput } type FleetUpdateRunMap map[string]FleetUpdateRunInput func (FleetUpdateRunMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*FleetUpdateRun)(nil)).Elem() } func (i FleetUpdateRunMap) ToFleetUpdateRunMapOutput() FleetUpdateRunMapOutput { return i.ToFleetUpdateRunMapOutputWithContext(context.Background()) } func (i FleetUpdateRunMap) ToFleetUpdateRunMapOutputWithContext(ctx context.Context) FleetUpdateRunMapOutput { return pulumi.ToOutputWithContext(ctx, i).(FleetUpdateRunMapOutput) } type FleetUpdateRunOutput struct{ *pulumi.OutputState } func (FleetUpdateRunOutput) ElementType() reflect.Type { return reflect.TypeOf((**FleetUpdateRun)(nil)).Elem() } func (o FleetUpdateRunOutput) ToFleetUpdateRunOutput() FleetUpdateRunOutput { return o } func (o FleetUpdateRunOutput) ToFleetUpdateRunOutputWithContext(ctx context.Context) FleetUpdateRunOutput { return o } // The ID of the Fleet Update Strategy. Only one of `fleetUpdateStrategyId` or `stage` can be specified. func (o FleetUpdateRunOutput) FleetUpdateStrategyId() pulumi.StringPtrOutput { return o.ApplyT(func(v *FleetUpdateRun) pulumi.StringPtrOutput { return v.FleetUpdateStrategyId }).(pulumi.StringPtrOutput) } // The ID of the Fleet Manager. Changing this forces a new Kubernetes Fleet Update Run to be created. func (o FleetUpdateRunOutput) KubernetesFleetManagerId() pulumi.StringOutput { return o.ApplyT(func(v *FleetUpdateRun) pulumi.StringOutput { return v.KubernetesFleetManagerId }).(pulumi.StringOutput) } // A `managedClusterUpdate` block as defined below. func (o FleetUpdateRunOutput) ManagedClusterUpdate() FleetUpdateRunManagedClusterUpdateOutput { return o.ApplyT(func(v *FleetUpdateRun) FleetUpdateRunManagedClusterUpdateOutput { return v.ManagedClusterUpdate }).(FleetUpdateRunManagedClusterUpdateOutput) } // The name which should be used for this Kubernetes Fleet Update Run. Changing this forces a new Kubernetes Fleet Update Run to be created. func (o FleetUpdateRunOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *FleetUpdateRun) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // One or more `stage` blocks as defined below. Only one of `stage` or `fleetUpdateStrategyId` can be specified. func (o FleetUpdateRunOutput) Stages() FleetUpdateRunStageArrayOutput { return o.ApplyT(func(v *FleetUpdateRun) FleetUpdateRunStageArrayOutput { return v.Stages }).(FleetUpdateRunStageArrayOutput) } type FleetUpdateRunArrayOutput struct{ *pulumi.OutputState } func (FleetUpdateRunArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*FleetUpdateRun)(nil)).Elem() } func (o FleetUpdateRunArrayOutput) ToFleetUpdateRunArrayOutput() FleetUpdateRunArrayOutput { return o } func (o FleetUpdateRunArrayOutput) ToFleetUpdateRunArrayOutputWithContext(ctx context.Context) FleetUpdateRunArrayOutput { return o } func (o FleetUpdateRunArrayOutput) Index(i pulumi.IntInput) FleetUpdateRunOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *FleetUpdateRun { return vs[0].([]*FleetUpdateRun)[vs[1].(int)] }).(FleetUpdateRunOutput) } type FleetUpdateRunMapOutput struct{ *pulumi.OutputState } func (FleetUpdateRunMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*FleetUpdateRun)(nil)).Elem() } func (o FleetUpdateRunMapOutput) ToFleetUpdateRunMapOutput() FleetUpdateRunMapOutput { return o } func (o FleetUpdateRunMapOutput) ToFleetUpdateRunMapOutputWithContext(ctx context.Context) FleetUpdateRunMapOutput { return o } func (o FleetUpdateRunMapOutput) MapIndex(k pulumi.StringInput) FleetUpdateRunOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *FleetUpdateRun { return vs[0].(map[string]*FleetUpdateRun)[vs[1].(string)] }).(FleetUpdateRunOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*FleetUpdateRunInput)(nil)).Elem(), &FleetUpdateRun{}) pulumi.RegisterInputType(reflect.TypeOf((*FleetUpdateRunArrayInput)(nil)).Elem(), FleetUpdateRunArray{}) pulumi.RegisterInputType(reflect.TypeOf((*FleetUpdateRunMapInput)(nil)).Elem(), FleetUpdateRunMap{}) pulumi.RegisterOutputType(FleetUpdateRunOutput{}) pulumi.RegisterOutputType(FleetUpdateRunArrayOutput{}) pulumi.RegisterOutputType(FleetUpdateRunMapOutput{}) }
go
Apache-2.0
b66e1472775a89cca43f5050fef806854a7c3fa3
2026-01-07T09:44:27.619514Z
false
pulumi/pulumi-azure
https://github.com/pulumi/pulumi-azure/blob/b66e1472775a89cca43f5050fef806854a7c3fa3/sdk/go/azure/hdinsight/init.go
sdk/go/azure/hdinsight/init.go
// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package hdinsight import ( "fmt" "github.com/blang/semver" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) type module struct { version semver.Version } func (m *module) Version() semver.Version { return m.version } func (m *module) Construct(ctx *pulumi.Context, name, typ, urn string) (r pulumi.Resource, err error) { switch typ { case "azure:hdinsight/hBaseCluster:HBaseCluster": r = &HBaseCluster{} case "azure:hdinsight/hadoopCluster:HadoopCluster": r = &HadoopCluster{} case "azure:hdinsight/interactiveQueryCluster:InteractiveQueryCluster": r = &InteractiveQueryCluster{} case "azure:hdinsight/kafkaCluster:KafkaCluster": r = &KafkaCluster{} case "azure:hdinsight/sparkCluster:SparkCluster": r = &SparkCluster{} default: return nil, fmt.Errorf("unknown resource type: %s", typ) } err = ctx.RegisterResource(typ, name, nil, r, pulumi.URN_(urn)) return } func init() { version, err := internal.PkgVersion() if err != nil { version = semver.Version{Major: 1} } pulumi.RegisterResourceModule( "azure", "hdinsight/hBaseCluster", &module{version}, ) pulumi.RegisterResourceModule( "azure", "hdinsight/hadoopCluster", &module{version}, ) pulumi.RegisterResourceModule( "azure", "hdinsight/interactiveQueryCluster", &module{version}, ) pulumi.RegisterResourceModule( "azure", "hdinsight/kafkaCluster", &module{version}, ) pulumi.RegisterResourceModule( "azure", "hdinsight/sparkCluster", &module{version}, ) }
go
Apache-2.0
b66e1472775a89cca43f5050fef806854a7c3fa3
2026-01-07T09:44:27.619514Z
false
pulumi/pulumi-azure
https://github.com/pulumi/pulumi-azure/blob/b66e1472775a89cca43f5050fef806854a7c3fa3/sdk/go/azure/hdinsight/pulumiTypes.go
sdk/go/azure/hdinsight/pulumiTypes.go
// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package hdinsight import ( "context" "reflect" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) var _ = internal.GetEnvOrDefault type HBaseClusterComponentVersion struct { // The version of HBase which should be used for this HDInsight HBase Cluster. Changing this forces a new resource to be created. Hbase string `pulumi:"hbase"` } // HBaseClusterComponentVersionInput is an input type that accepts HBaseClusterComponentVersionArgs and HBaseClusterComponentVersionOutput values. // You can construct a concrete instance of `HBaseClusterComponentVersionInput` via: // // HBaseClusterComponentVersionArgs{...} type HBaseClusterComponentVersionInput interface { pulumi.Input ToHBaseClusterComponentVersionOutput() HBaseClusterComponentVersionOutput ToHBaseClusterComponentVersionOutputWithContext(context.Context) HBaseClusterComponentVersionOutput } type HBaseClusterComponentVersionArgs struct { // The version of HBase which should be used for this HDInsight HBase Cluster. Changing this forces a new resource to be created. Hbase pulumi.StringInput `pulumi:"hbase"` } func (HBaseClusterComponentVersionArgs) ElementType() reflect.Type { return reflect.TypeOf((*HBaseClusterComponentVersion)(nil)).Elem() } func (i HBaseClusterComponentVersionArgs) ToHBaseClusterComponentVersionOutput() HBaseClusterComponentVersionOutput { return i.ToHBaseClusterComponentVersionOutputWithContext(context.Background()) } func (i HBaseClusterComponentVersionArgs) ToHBaseClusterComponentVersionOutputWithContext(ctx context.Context) HBaseClusterComponentVersionOutput { return pulumi.ToOutputWithContext(ctx, i).(HBaseClusterComponentVersionOutput) } func (i HBaseClusterComponentVersionArgs) ToHBaseClusterComponentVersionPtrOutput() HBaseClusterComponentVersionPtrOutput { return i.ToHBaseClusterComponentVersionPtrOutputWithContext(context.Background()) } func (i HBaseClusterComponentVersionArgs) ToHBaseClusterComponentVersionPtrOutputWithContext(ctx context.Context) HBaseClusterComponentVersionPtrOutput { return pulumi.ToOutputWithContext(ctx, i).(HBaseClusterComponentVersionOutput).ToHBaseClusterComponentVersionPtrOutputWithContext(ctx) } // HBaseClusterComponentVersionPtrInput is an input type that accepts HBaseClusterComponentVersionArgs, HBaseClusterComponentVersionPtr and HBaseClusterComponentVersionPtrOutput values. // You can construct a concrete instance of `HBaseClusterComponentVersionPtrInput` via: // // HBaseClusterComponentVersionArgs{...} // // or: // // nil type HBaseClusterComponentVersionPtrInput interface { pulumi.Input ToHBaseClusterComponentVersionPtrOutput() HBaseClusterComponentVersionPtrOutput ToHBaseClusterComponentVersionPtrOutputWithContext(context.Context) HBaseClusterComponentVersionPtrOutput } type hbaseClusterComponentVersionPtrType HBaseClusterComponentVersionArgs func HBaseClusterComponentVersionPtr(v *HBaseClusterComponentVersionArgs) HBaseClusterComponentVersionPtrInput { return (*hbaseClusterComponentVersionPtrType)(v) } func (*hbaseClusterComponentVersionPtrType) ElementType() reflect.Type { return reflect.TypeOf((**HBaseClusterComponentVersion)(nil)).Elem() } func (i *hbaseClusterComponentVersionPtrType) ToHBaseClusterComponentVersionPtrOutput() HBaseClusterComponentVersionPtrOutput { return i.ToHBaseClusterComponentVersionPtrOutputWithContext(context.Background()) } func (i *hbaseClusterComponentVersionPtrType) ToHBaseClusterComponentVersionPtrOutputWithContext(ctx context.Context) HBaseClusterComponentVersionPtrOutput { return pulumi.ToOutputWithContext(ctx, i).(HBaseClusterComponentVersionPtrOutput) } type HBaseClusterComponentVersionOutput struct{ *pulumi.OutputState } func (HBaseClusterComponentVersionOutput) ElementType() reflect.Type { return reflect.TypeOf((*HBaseClusterComponentVersion)(nil)).Elem() } func (o HBaseClusterComponentVersionOutput) ToHBaseClusterComponentVersionOutput() HBaseClusterComponentVersionOutput { return o } func (o HBaseClusterComponentVersionOutput) ToHBaseClusterComponentVersionOutputWithContext(ctx context.Context) HBaseClusterComponentVersionOutput { return o } func (o HBaseClusterComponentVersionOutput) ToHBaseClusterComponentVersionPtrOutput() HBaseClusterComponentVersionPtrOutput { return o.ToHBaseClusterComponentVersionPtrOutputWithContext(context.Background()) } func (o HBaseClusterComponentVersionOutput) ToHBaseClusterComponentVersionPtrOutputWithContext(ctx context.Context) HBaseClusterComponentVersionPtrOutput { return o.ApplyTWithContext(ctx, func(_ context.Context, v HBaseClusterComponentVersion) *HBaseClusterComponentVersion { return &v }).(HBaseClusterComponentVersionPtrOutput) } // The version of HBase which should be used for this HDInsight HBase Cluster. Changing this forces a new resource to be created. func (o HBaseClusterComponentVersionOutput) Hbase() pulumi.StringOutput { return o.ApplyT(func(v HBaseClusterComponentVersion) string { return v.Hbase }).(pulumi.StringOutput) } type HBaseClusterComponentVersionPtrOutput struct{ *pulumi.OutputState } func (HBaseClusterComponentVersionPtrOutput) ElementType() reflect.Type { return reflect.TypeOf((**HBaseClusterComponentVersion)(nil)).Elem() } func (o HBaseClusterComponentVersionPtrOutput) ToHBaseClusterComponentVersionPtrOutput() HBaseClusterComponentVersionPtrOutput { return o } func (o HBaseClusterComponentVersionPtrOutput) ToHBaseClusterComponentVersionPtrOutputWithContext(ctx context.Context) HBaseClusterComponentVersionPtrOutput { return o } func (o HBaseClusterComponentVersionPtrOutput) Elem() HBaseClusterComponentVersionOutput { return o.ApplyT(func(v *HBaseClusterComponentVersion) HBaseClusterComponentVersion { if v != nil { return *v } var ret HBaseClusterComponentVersion return ret }).(HBaseClusterComponentVersionOutput) } // The version of HBase which should be used for this HDInsight HBase Cluster. Changing this forces a new resource to be created. func (o HBaseClusterComponentVersionPtrOutput) Hbase() pulumi.StringPtrOutput { return o.ApplyT(func(v *HBaseClusterComponentVersion) *string { if v == nil { return nil } return &v.Hbase }).(pulumi.StringPtrOutput) } type HBaseClusterComputeIsolation struct { // This field indicates whether enable compute isolation or not. Possible values are `true` or `false`. ComputeIsolationEnabled *bool `pulumi:"computeIsolationEnabled"` // The name of the host SKU. HostSku *string `pulumi:"hostSku"` } // HBaseClusterComputeIsolationInput is an input type that accepts HBaseClusterComputeIsolationArgs and HBaseClusterComputeIsolationOutput values. // You can construct a concrete instance of `HBaseClusterComputeIsolationInput` via: // // HBaseClusterComputeIsolationArgs{...} type HBaseClusterComputeIsolationInput interface { pulumi.Input ToHBaseClusterComputeIsolationOutput() HBaseClusterComputeIsolationOutput ToHBaseClusterComputeIsolationOutputWithContext(context.Context) HBaseClusterComputeIsolationOutput } type HBaseClusterComputeIsolationArgs struct { // This field indicates whether enable compute isolation or not. Possible values are `true` or `false`. ComputeIsolationEnabled pulumi.BoolPtrInput `pulumi:"computeIsolationEnabled"` // The name of the host SKU. HostSku pulumi.StringPtrInput `pulumi:"hostSku"` } func (HBaseClusterComputeIsolationArgs) ElementType() reflect.Type { return reflect.TypeOf((*HBaseClusterComputeIsolation)(nil)).Elem() } func (i HBaseClusterComputeIsolationArgs) ToHBaseClusterComputeIsolationOutput() HBaseClusterComputeIsolationOutput { return i.ToHBaseClusterComputeIsolationOutputWithContext(context.Background()) } func (i HBaseClusterComputeIsolationArgs) ToHBaseClusterComputeIsolationOutputWithContext(ctx context.Context) HBaseClusterComputeIsolationOutput { return pulumi.ToOutputWithContext(ctx, i).(HBaseClusterComputeIsolationOutput) } func (i HBaseClusterComputeIsolationArgs) ToHBaseClusterComputeIsolationPtrOutput() HBaseClusterComputeIsolationPtrOutput { return i.ToHBaseClusterComputeIsolationPtrOutputWithContext(context.Background()) } func (i HBaseClusterComputeIsolationArgs) ToHBaseClusterComputeIsolationPtrOutputWithContext(ctx context.Context) HBaseClusterComputeIsolationPtrOutput { return pulumi.ToOutputWithContext(ctx, i).(HBaseClusterComputeIsolationOutput).ToHBaseClusterComputeIsolationPtrOutputWithContext(ctx) } // HBaseClusterComputeIsolationPtrInput is an input type that accepts HBaseClusterComputeIsolationArgs, HBaseClusterComputeIsolationPtr and HBaseClusterComputeIsolationPtrOutput values. // You can construct a concrete instance of `HBaseClusterComputeIsolationPtrInput` via: // // HBaseClusterComputeIsolationArgs{...} // // or: // // nil type HBaseClusterComputeIsolationPtrInput interface { pulumi.Input ToHBaseClusterComputeIsolationPtrOutput() HBaseClusterComputeIsolationPtrOutput ToHBaseClusterComputeIsolationPtrOutputWithContext(context.Context) HBaseClusterComputeIsolationPtrOutput } type hbaseClusterComputeIsolationPtrType HBaseClusterComputeIsolationArgs func HBaseClusterComputeIsolationPtr(v *HBaseClusterComputeIsolationArgs) HBaseClusterComputeIsolationPtrInput { return (*hbaseClusterComputeIsolationPtrType)(v) } func (*hbaseClusterComputeIsolationPtrType) ElementType() reflect.Type { return reflect.TypeOf((**HBaseClusterComputeIsolation)(nil)).Elem() } func (i *hbaseClusterComputeIsolationPtrType) ToHBaseClusterComputeIsolationPtrOutput() HBaseClusterComputeIsolationPtrOutput { return i.ToHBaseClusterComputeIsolationPtrOutputWithContext(context.Background()) } func (i *hbaseClusterComputeIsolationPtrType) ToHBaseClusterComputeIsolationPtrOutputWithContext(ctx context.Context) HBaseClusterComputeIsolationPtrOutput { return pulumi.ToOutputWithContext(ctx, i).(HBaseClusterComputeIsolationPtrOutput) } type HBaseClusterComputeIsolationOutput struct{ *pulumi.OutputState } func (HBaseClusterComputeIsolationOutput) ElementType() reflect.Type { return reflect.TypeOf((*HBaseClusterComputeIsolation)(nil)).Elem() } func (o HBaseClusterComputeIsolationOutput) ToHBaseClusterComputeIsolationOutput() HBaseClusterComputeIsolationOutput { return o } func (o HBaseClusterComputeIsolationOutput) ToHBaseClusterComputeIsolationOutputWithContext(ctx context.Context) HBaseClusterComputeIsolationOutput { return o } func (o HBaseClusterComputeIsolationOutput) ToHBaseClusterComputeIsolationPtrOutput() HBaseClusterComputeIsolationPtrOutput { return o.ToHBaseClusterComputeIsolationPtrOutputWithContext(context.Background()) } func (o HBaseClusterComputeIsolationOutput) ToHBaseClusterComputeIsolationPtrOutputWithContext(ctx context.Context) HBaseClusterComputeIsolationPtrOutput { return o.ApplyTWithContext(ctx, func(_ context.Context, v HBaseClusterComputeIsolation) *HBaseClusterComputeIsolation { return &v }).(HBaseClusterComputeIsolationPtrOutput) } // This field indicates whether enable compute isolation or not. Possible values are `true` or `false`. func (o HBaseClusterComputeIsolationOutput) ComputeIsolationEnabled() pulumi.BoolPtrOutput { return o.ApplyT(func(v HBaseClusterComputeIsolation) *bool { return v.ComputeIsolationEnabled }).(pulumi.BoolPtrOutput) } // The name of the host SKU. func (o HBaseClusterComputeIsolationOutput) HostSku() pulumi.StringPtrOutput { return o.ApplyT(func(v HBaseClusterComputeIsolation) *string { return v.HostSku }).(pulumi.StringPtrOutput) } type HBaseClusterComputeIsolationPtrOutput struct{ *pulumi.OutputState } func (HBaseClusterComputeIsolationPtrOutput) ElementType() reflect.Type { return reflect.TypeOf((**HBaseClusterComputeIsolation)(nil)).Elem() } func (o HBaseClusterComputeIsolationPtrOutput) ToHBaseClusterComputeIsolationPtrOutput() HBaseClusterComputeIsolationPtrOutput { return o } func (o HBaseClusterComputeIsolationPtrOutput) ToHBaseClusterComputeIsolationPtrOutputWithContext(ctx context.Context) HBaseClusterComputeIsolationPtrOutput { return o } func (o HBaseClusterComputeIsolationPtrOutput) Elem() HBaseClusterComputeIsolationOutput { return o.ApplyT(func(v *HBaseClusterComputeIsolation) HBaseClusterComputeIsolation { if v != nil { return *v } var ret HBaseClusterComputeIsolation return ret }).(HBaseClusterComputeIsolationOutput) } // This field indicates whether enable compute isolation or not. Possible values are `true` or `false`. func (o HBaseClusterComputeIsolationPtrOutput) ComputeIsolationEnabled() pulumi.BoolPtrOutput { return o.ApplyT(func(v *HBaseClusterComputeIsolation) *bool { if v == nil { return nil } return v.ComputeIsolationEnabled }).(pulumi.BoolPtrOutput) } // The name of the host SKU. func (o HBaseClusterComputeIsolationPtrOutput) HostSku() pulumi.StringPtrOutput { return o.ApplyT(func(v *HBaseClusterComputeIsolation) *string { if v == nil { return nil } return v.HostSku }).(pulumi.StringPtrOutput) } type HBaseClusterDiskEncryption struct { // This is an algorithm identifier for encryption. Possible values are `RSA1_5`, `RSA-OAEP`, `RSA-OAEP-256`. EncryptionAlgorithm *string `pulumi:"encryptionAlgorithm"` // This is indicator to show whether resource disk encryption is enabled. EncryptionAtHostEnabled *bool `pulumi:"encryptionAtHostEnabled"` // The ID of the key vault key. KeyVaultKeyId *string `pulumi:"keyVaultKeyId"` // This is the resource ID of Managed Identity used to access the key vault. KeyVaultManagedIdentityId *string `pulumi:"keyVaultManagedIdentityId"` } // HBaseClusterDiskEncryptionInput is an input type that accepts HBaseClusterDiskEncryptionArgs and HBaseClusterDiskEncryptionOutput values. // You can construct a concrete instance of `HBaseClusterDiskEncryptionInput` via: // // HBaseClusterDiskEncryptionArgs{...} type HBaseClusterDiskEncryptionInput interface { pulumi.Input ToHBaseClusterDiskEncryptionOutput() HBaseClusterDiskEncryptionOutput ToHBaseClusterDiskEncryptionOutputWithContext(context.Context) HBaseClusterDiskEncryptionOutput } type HBaseClusterDiskEncryptionArgs struct { // This is an algorithm identifier for encryption. Possible values are `RSA1_5`, `RSA-OAEP`, `RSA-OAEP-256`. EncryptionAlgorithm pulumi.StringPtrInput `pulumi:"encryptionAlgorithm"` // This is indicator to show whether resource disk encryption is enabled. EncryptionAtHostEnabled pulumi.BoolPtrInput `pulumi:"encryptionAtHostEnabled"` // The ID of the key vault key. KeyVaultKeyId pulumi.StringPtrInput `pulumi:"keyVaultKeyId"` // This is the resource ID of Managed Identity used to access the key vault. KeyVaultManagedIdentityId pulumi.StringPtrInput `pulumi:"keyVaultManagedIdentityId"` } func (HBaseClusterDiskEncryptionArgs) ElementType() reflect.Type { return reflect.TypeOf((*HBaseClusterDiskEncryption)(nil)).Elem() } func (i HBaseClusterDiskEncryptionArgs) ToHBaseClusterDiskEncryptionOutput() HBaseClusterDiskEncryptionOutput { return i.ToHBaseClusterDiskEncryptionOutputWithContext(context.Background()) } func (i HBaseClusterDiskEncryptionArgs) ToHBaseClusterDiskEncryptionOutputWithContext(ctx context.Context) HBaseClusterDiskEncryptionOutput { return pulumi.ToOutputWithContext(ctx, i).(HBaseClusterDiskEncryptionOutput) } // HBaseClusterDiskEncryptionArrayInput is an input type that accepts HBaseClusterDiskEncryptionArray and HBaseClusterDiskEncryptionArrayOutput values. // You can construct a concrete instance of `HBaseClusterDiskEncryptionArrayInput` via: // // HBaseClusterDiskEncryptionArray{ HBaseClusterDiskEncryptionArgs{...} } type HBaseClusterDiskEncryptionArrayInput interface { pulumi.Input ToHBaseClusterDiskEncryptionArrayOutput() HBaseClusterDiskEncryptionArrayOutput ToHBaseClusterDiskEncryptionArrayOutputWithContext(context.Context) HBaseClusterDiskEncryptionArrayOutput } type HBaseClusterDiskEncryptionArray []HBaseClusterDiskEncryptionInput func (HBaseClusterDiskEncryptionArray) ElementType() reflect.Type { return reflect.TypeOf((*[]HBaseClusterDiskEncryption)(nil)).Elem() } func (i HBaseClusterDiskEncryptionArray) ToHBaseClusterDiskEncryptionArrayOutput() HBaseClusterDiskEncryptionArrayOutput { return i.ToHBaseClusterDiskEncryptionArrayOutputWithContext(context.Background()) } func (i HBaseClusterDiskEncryptionArray) ToHBaseClusterDiskEncryptionArrayOutputWithContext(ctx context.Context) HBaseClusterDiskEncryptionArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(HBaseClusterDiskEncryptionArrayOutput) } type HBaseClusterDiskEncryptionOutput struct{ *pulumi.OutputState } func (HBaseClusterDiskEncryptionOutput) ElementType() reflect.Type { return reflect.TypeOf((*HBaseClusterDiskEncryption)(nil)).Elem() } func (o HBaseClusterDiskEncryptionOutput) ToHBaseClusterDiskEncryptionOutput() HBaseClusterDiskEncryptionOutput { return o } func (o HBaseClusterDiskEncryptionOutput) ToHBaseClusterDiskEncryptionOutputWithContext(ctx context.Context) HBaseClusterDiskEncryptionOutput { return o } // This is an algorithm identifier for encryption. Possible values are `RSA1_5`, `RSA-OAEP`, `RSA-OAEP-256`. func (o HBaseClusterDiskEncryptionOutput) EncryptionAlgorithm() pulumi.StringPtrOutput { return o.ApplyT(func(v HBaseClusterDiskEncryption) *string { return v.EncryptionAlgorithm }).(pulumi.StringPtrOutput) } // This is indicator to show whether resource disk encryption is enabled. func (o HBaseClusterDiskEncryptionOutput) EncryptionAtHostEnabled() pulumi.BoolPtrOutput { return o.ApplyT(func(v HBaseClusterDiskEncryption) *bool { return v.EncryptionAtHostEnabled }).(pulumi.BoolPtrOutput) } // The ID of the key vault key. func (o HBaseClusterDiskEncryptionOutput) KeyVaultKeyId() pulumi.StringPtrOutput { return o.ApplyT(func(v HBaseClusterDiskEncryption) *string { return v.KeyVaultKeyId }).(pulumi.StringPtrOutput) } // This is the resource ID of Managed Identity used to access the key vault. func (o HBaseClusterDiskEncryptionOutput) KeyVaultManagedIdentityId() pulumi.StringPtrOutput { return o.ApplyT(func(v HBaseClusterDiskEncryption) *string { return v.KeyVaultManagedIdentityId }).(pulumi.StringPtrOutput) } type HBaseClusterDiskEncryptionArrayOutput struct{ *pulumi.OutputState } func (HBaseClusterDiskEncryptionArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]HBaseClusterDiskEncryption)(nil)).Elem() } func (o HBaseClusterDiskEncryptionArrayOutput) ToHBaseClusterDiskEncryptionArrayOutput() HBaseClusterDiskEncryptionArrayOutput { return o } func (o HBaseClusterDiskEncryptionArrayOutput) ToHBaseClusterDiskEncryptionArrayOutputWithContext(ctx context.Context) HBaseClusterDiskEncryptionArrayOutput { return o } func (o HBaseClusterDiskEncryptionArrayOutput) Index(i pulumi.IntInput) HBaseClusterDiskEncryptionOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) HBaseClusterDiskEncryption { return vs[0].([]HBaseClusterDiskEncryption)[vs[1].(int)] }).(HBaseClusterDiskEncryptionOutput) } type HBaseClusterExtension struct { // The workspace ID of the log analytics extension. LogAnalyticsWorkspaceId string `pulumi:"logAnalyticsWorkspaceId"` // The workspace key of the log analytics extension. PrimaryKey string `pulumi:"primaryKey"` } // HBaseClusterExtensionInput is an input type that accepts HBaseClusterExtensionArgs and HBaseClusterExtensionOutput values. // You can construct a concrete instance of `HBaseClusterExtensionInput` via: // // HBaseClusterExtensionArgs{...} type HBaseClusterExtensionInput interface { pulumi.Input ToHBaseClusterExtensionOutput() HBaseClusterExtensionOutput ToHBaseClusterExtensionOutputWithContext(context.Context) HBaseClusterExtensionOutput } type HBaseClusterExtensionArgs struct { // The workspace ID of the log analytics extension. LogAnalyticsWorkspaceId pulumi.StringInput `pulumi:"logAnalyticsWorkspaceId"` // The workspace key of the log analytics extension. PrimaryKey pulumi.StringInput `pulumi:"primaryKey"` } func (HBaseClusterExtensionArgs) ElementType() reflect.Type { return reflect.TypeOf((*HBaseClusterExtension)(nil)).Elem() } func (i HBaseClusterExtensionArgs) ToHBaseClusterExtensionOutput() HBaseClusterExtensionOutput { return i.ToHBaseClusterExtensionOutputWithContext(context.Background()) } func (i HBaseClusterExtensionArgs) ToHBaseClusterExtensionOutputWithContext(ctx context.Context) HBaseClusterExtensionOutput { return pulumi.ToOutputWithContext(ctx, i).(HBaseClusterExtensionOutput) } func (i HBaseClusterExtensionArgs) ToHBaseClusterExtensionPtrOutput() HBaseClusterExtensionPtrOutput { return i.ToHBaseClusterExtensionPtrOutputWithContext(context.Background()) } func (i HBaseClusterExtensionArgs) ToHBaseClusterExtensionPtrOutputWithContext(ctx context.Context) HBaseClusterExtensionPtrOutput { return pulumi.ToOutputWithContext(ctx, i).(HBaseClusterExtensionOutput).ToHBaseClusterExtensionPtrOutputWithContext(ctx) } // HBaseClusterExtensionPtrInput is an input type that accepts HBaseClusterExtensionArgs, HBaseClusterExtensionPtr and HBaseClusterExtensionPtrOutput values. // You can construct a concrete instance of `HBaseClusterExtensionPtrInput` via: // // HBaseClusterExtensionArgs{...} // // or: // // nil type HBaseClusterExtensionPtrInput interface { pulumi.Input ToHBaseClusterExtensionPtrOutput() HBaseClusterExtensionPtrOutput ToHBaseClusterExtensionPtrOutputWithContext(context.Context) HBaseClusterExtensionPtrOutput } type hbaseClusterExtensionPtrType HBaseClusterExtensionArgs func HBaseClusterExtensionPtr(v *HBaseClusterExtensionArgs) HBaseClusterExtensionPtrInput { return (*hbaseClusterExtensionPtrType)(v) } func (*hbaseClusterExtensionPtrType) ElementType() reflect.Type { return reflect.TypeOf((**HBaseClusterExtension)(nil)).Elem() } func (i *hbaseClusterExtensionPtrType) ToHBaseClusterExtensionPtrOutput() HBaseClusterExtensionPtrOutput { return i.ToHBaseClusterExtensionPtrOutputWithContext(context.Background()) } func (i *hbaseClusterExtensionPtrType) ToHBaseClusterExtensionPtrOutputWithContext(ctx context.Context) HBaseClusterExtensionPtrOutput { return pulumi.ToOutputWithContext(ctx, i).(HBaseClusterExtensionPtrOutput) } type HBaseClusterExtensionOutput struct{ *pulumi.OutputState } func (HBaseClusterExtensionOutput) ElementType() reflect.Type { return reflect.TypeOf((*HBaseClusterExtension)(nil)).Elem() } func (o HBaseClusterExtensionOutput) ToHBaseClusterExtensionOutput() HBaseClusterExtensionOutput { return o } func (o HBaseClusterExtensionOutput) ToHBaseClusterExtensionOutputWithContext(ctx context.Context) HBaseClusterExtensionOutput { return o } func (o HBaseClusterExtensionOutput) ToHBaseClusterExtensionPtrOutput() HBaseClusterExtensionPtrOutput { return o.ToHBaseClusterExtensionPtrOutputWithContext(context.Background()) } func (o HBaseClusterExtensionOutput) ToHBaseClusterExtensionPtrOutputWithContext(ctx context.Context) HBaseClusterExtensionPtrOutput { return o.ApplyTWithContext(ctx, func(_ context.Context, v HBaseClusterExtension) *HBaseClusterExtension { return &v }).(HBaseClusterExtensionPtrOutput) } // The workspace ID of the log analytics extension. func (o HBaseClusterExtensionOutput) LogAnalyticsWorkspaceId() pulumi.StringOutput { return o.ApplyT(func(v HBaseClusterExtension) string { return v.LogAnalyticsWorkspaceId }).(pulumi.StringOutput) } // The workspace key of the log analytics extension. func (o HBaseClusterExtensionOutput) PrimaryKey() pulumi.StringOutput { return o.ApplyT(func(v HBaseClusterExtension) string { return v.PrimaryKey }).(pulumi.StringOutput) } type HBaseClusterExtensionPtrOutput struct{ *pulumi.OutputState } func (HBaseClusterExtensionPtrOutput) ElementType() reflect.Type { return reflect.TypeOf((**HBaseClusterExtension)(nil)).Elem() } func (o HBaseClusterExtensionPtrOutput) ToHBaseClusterExtensionPtrOutput() HBaseClusterExtensionPtrOutput { return o } func (o HBaseClusterExtensionPtrOutput) ToHBaseClusterExtensionPtrOutputWithContext(ctx context.Context) HBaseClusterExtensionPtrOutput { return o } func (o HBaseClusterExtensionPtrOutput) Elem() HBaseClusterExtensionOutput { return o.ApplyT(func(v *HBaseClusterExtension) HBaseClusterExtension { if v != nil { return *v } var ret HBaseClusterExtension return ret }).(HBaseClusterExtensionOutput) } // The workspace ID of the log analytics extension. func (o HBaseClusterExtensionPtrOutput) LogAnalyticsWorkspaceId() pulumi.StringPtrOutput { return o.ApplyT(func(v *HBaseClusterExtension) *string { if v == nil { return nil } return &v.LogAnalyticsWorkspaceId }).(pulumi.StringPtrOutput) } // The workspace key of the log analytics extension. func (o HBaseClusterExtensionPtrOutput) PrimaryKey() pulumi.StringPtrOutput { return o.ApplyT(func(v *HBaseClusterExtension) *string { if v == nil { return nil } return &v.PrimaryKey }).(pulumi.StringPtrOutput) } type HBaseClusterGateway struct { // The password used for the Ambari Portal. // // > **Note:** This password must be different from the one used for the `headNode`, `workerNode` and `zookeeperNode` roles. Password string `pulumi:"password"` // The username used for the Ambari Portal. Changing this forces a new resource to be created. Username string `pulumi:"username"` } // HBaseClusterGatewayInput is an input type that accepts HBaseClusterGatewayArgs and HBaseClusterGatewayOutput values. // You can construct a concrete instance of `HBaseClusterGatewayInput` via: // // HBaseClusterGatewayArgs{...} type HBaseClusterGatewayInput interface { pulumi.Input ToHBaseClusterGatewayOutput() HBaseClusterGatewayOutput ToHBaseClusterGatewayOutputWithContext(context.Context) HBaseClusterGatewayOutput } type HBaseClusterGatewayArgs struct { // The password used for the Ambari Portal. // // > **Note:** This password must be different from the one used for the `headNode`, `workerNode` and `zookeeperNode` roles. Password pulumi.StringInput `pulumi:"password"` // The username used for the Ambari Portal. Changing this forces a new resource to be created. Username pulumi.StringInput `pulumi:"username"` } func (HBaseClusterGatewayArgs) ElementType() reflect.Type { return reflect.TypeOf((*HBaseClusterGateway)(nil)).Elem() } func (i HBaseClusterGatewayArgs) ToHBaseClusterGatewayOutput() HBaseClusterGatewayOutput { return i.ToHBaseClusterGatewayOutputWithContext(context.Background()) } func (i HBaseClusterGatewayArgs) ToHBaseClusterGatewayOutputWithContext(ctx context.Context) HBaseClusterGatewayOutput { return pulumi.ToOutputWithContext(ctx, i).(HBaseClusterGatewayOutput) } func (i HBaseClusterGatewayArgs) ToHBaseClusterGatewayPtrOutput() HBaseClusterGatewayPtrOutput { return i.ToHBaseClusterGatewayPtrOutputWithContext(context.Background()) } func (i HBaseClusterGatewayArgs) ToHBaseClusterGatewayPtrOutputWithContext(ctx context.Context) HBaseClusterGatewayPtrOutput { return pulumi.ToOutputWithContext(ctx, i).(HBaseClusterGatewayOutput).ToHBaseClusterGatewayPtrOutputWithContext(ctx) } // HBaseClusterGatewayPtrInput is an input type that accepts HBaseClusterGatewayArgs, HBaseClusterGatewayPtr and HBaseClusterGatewayPtrOutput values. // You can construct a concrete instance of `HBaseClusterGatewayPtrInput` via: // // HBaseClusterGatewayArgs{...} // // or: // // nil type HBaseClusterGatewayPtrInput interface { pulumi.Input ToHBaseClusterGatewayPtrOutput() HBaseClusterGatewayPtrOutput ToHBaseClusterGatewayPtrOutputWithContext(context.Context) HBaseClusterGatewayPtrOutput } type hbaseClusterGatewayPtrType HBaseClusterGatewayArgs func HBaseClusterGatewayPtr(v *HBaseClusterGatewayArgs) HBaseClusterGatewayPtrInput { return (*hbaseClusterGatewayPtrType)(v) } func (*hbaseClusterGatewayPtrType) ElementType() reflect.Type { return reflect.TypeOf((**HBaseClusterGateway)(nil)).Elem() } func (i *hbaseClusterGatewayPtrType) ToHBaseClusterGatewayPtrOutput() HBaseClusterGatewayPtrOutput { return i.ToHBaseClusterGatewayPtrOutputWithContext(context.Background()) } func (i *hbaseClusterGatewayPtrType) ToHBaseClusterGatewayPtrOutputWithContext(ctx context.Context) HBaseClusterGatewayPtrOutput { return pulumi.ToOutputWithContext(ctx, i).(HBaseClusterGatewayPtrOutput) } type HBaseClusterGatewayOutput struct{ *pulumi.OutputState } func (HBaseClusterGatewayOutput) ElementType() reflect.Type { return reflect.TypeOf((*HBaseClusterGateway)(nil)).Elem() } func (o HBaseClusterGatewayOutput) ToHBaseClusterGatewayOutput() HBaseClusterGatewayOutput { return o } func (o HBaseClusterGatewayOutput) ToHBaseClusterGatewayOutputWithContext(ctx context.Context) HBaseClusterGatewayOutput { return o } func (o HBaseClusterGatewayOutput) ToHBaseClusterGatewayPtrOutput() HBaseClusterGatewayPtrOutput { return o.ToHBaseClusterGatewayPtrOutputWithContext(context.Background()) } func (o HBaseClusterGatewayOutput) ToHBaseClusterGatewayPtrOutputWithContext(ctx context.Context) HBaseClusterGatewayPtrOutput { return o.ApplyTWithContext(ctx, func(_ context.Context, v HBaseClusterGateway) *HBaseClusterGateway { return &v }).(HBaseClusterGatewayPtrOutput) } // The password used for the Ambari Portal. // // > **Note:** This password must be different from the one used for the `headNode`, `workerNode` and `zookeeperNode` roles. func (o HBaseClusterGatewayOutput) Password() pulumi.StringOutput { return o.ApplyT(func(v HBaseClusterGateway) string { return v.Password }).(pulumi.StringOutput) } // The username used for the Ambari Portal. Changing this forces a new resource to be created. func (o HBaseClusterGatewayOutput) Username() pulumi.StringOutput { return o.ApplyT(func(v HBaseClusterGateway) string { return v.Username }).(pulumi.StringOutput) } type HBaseClusterGatewayPtrOutput struct{ *pulumi.OutputState } func (HBaseClusterGatewayPtrOutput) ElementType() reflect.Type { return reflect.TypeOf((**HBaseClusterGateway)(nil)).Elem() } func (o HBaseClusterGatewayPtrOutput) ToHBaseClusterGatewayPtrOutput() HBaseClusterGatewayPtrOutput { return o } func (o HBaseClusterGatewayPtrOutput) ToHBaseClusterGatewayPtrOutputWithContext(ctx context.Context) HBaseClusterGatewayPtrOutput { return o } func (o HBaseClusterGatewayPtrOutput) Elem() HBaseClusterGatewayOutput { return o.ApplyT(func(v *HBaseClusterGateway) HBaseClusterGateway { if v != nil { return *v } var ret HBaseClusterGateway return ret }).(HBaseClusterGatewayOutput) } // The password used for the Ambari Portal. // // > **Note:** This password must be different from the one used for the `headNode`, `workerNode` and `zookeeperNode` roles. func (o HBaseClusterGatewayPtrOutput) Password() pulumi.StringPtrOutput { return o.ApplyT(func(v *HBaseClusterGateway) *string { if v == nil { return nil } return &v.Password }).(pulumi.StringPtrOutput) } // The username used for the Ambari Portal. Changing this forces a new resource to be created. func (o HBaseClusterGatewayPtrOutput) Username() pulumi.StringPtrOutput { return o.ApplyT(func(v *HBaseClusterGateway) *string { if v == nil { return nil } return &v.Username }).(pulumi.StringPtrOutput) } type HBaseClusterMetastores struct { // An `ambari` block as defined below. Ambari *HBaseClusterMetastoresAmbari `pulumi:"ambari"` // A `hive` block as defined below. Hive *HBaseClusterMetastoresHive `pulumi:"hive"` // An `oozie` block as defined below. Oozie *HBaseClusterMetastoresOozie `pulumi:"oozie"` } // HBaseClusterMetastoresInput is an input type that accepts HBaseClusterMetastoresArgs and HBaseClusterMetastoresOutput values. // You can construct a concrete instance of `HBaseClusterMetastoresInput` via: // // HBaseClusterMetastoresArgs{...} type HBaseClusterMetastoresInput interface { pulumi.Input ToHBaseClusterMetastoresOutput() HBaseClusterMetastoresOutput ToHBaseClusterMetastoresOutputWithContext(context.Context) HBaseClusterMetastoresOutput } type HBaseClusterMetastoresArgs struct { // An `ambari` block as defined below. Ambari HBaseClusterMetastoresAmbariPtrInput `pulumi:"ambari"` // A `hive` block as defined below. Hive HBaseClusterMetastoresHivePtrInput `pulumi:"hive"` // An `oozie` block as defined below. Oozie HBaseClusterMetastoresOoziePtrInput `pulumi:"oozie"` } func (HBaseClusterMetastoresArgs) ElementType() reflect.Type { return reflect.TypeOf((*HBaseClusterMetastores)(nil)).Elem() } func (i HBaseClusterMetastoresArgs) ToHBaseClusterMetastoresOutput() HBaseClusterMetastoresOutput { return i.ToHBaseClusterMetastoresOutputWithContext(context.Background()) }
go
Apache-2.0
b66e1472775a89cca43f5050fef806854a7c3fa3
2026-01-07T09:44:27.619514Z
true
pulumi/pulumi-azure
https://github.com/pulumi/pulumi-azure/blob/b66e1472775a89cca43f5050fef806854a7c3fa3/sdk/go/azure/hdinsight/kafkaCluster.go
sdk/go/azure/hdinsight/kafkaCluster.go
// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package hdinsight import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a HDInsight Kafka Cluster. // // ## 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/hdinsight" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/storage" // "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-resources"), // Location: pulumi.String("West Europe"), // }) // if err != nil { // return err // } // exampleAccount, err := storage.NewAccount(ctx, "example", &storage.AccountArgs{ // Name: pulumi.String("hdinsightstor"), // ResourceGroupName: example.Name, // Location: example.Location, // AccountTier: pulumi.String("Standard"), // AccountReplicationType: pulumi.String("LRS"), // }) // if err != nil { // return err // } // exampleContainer, err := storage.NewContainer(ctx, "example", &storage.ContainerArgs{ // Name: pulumi.String("hdinsight"), // StorageAccountName: exampleAccount.Name, // ContainerAccessType: pulumi.String("private"), // }) // if err != nil { // return err // } // _, err = hdinsight.NewKafkaCluster(ctx, "example", &hdinsight.KafkaClusterArgs{ // Name: pulumi.String("example-hdicluster"), // ResourceGroupName: example.Name, // Location: example.Location, // ClusterVersion: pulumi.String("4.0"), // Tier: pulumi.String("Standard"), // ComponentVersion: &hdinsight.KafkaClusterComponentVersionArgs{ // Kafka: pulumi.String("2.1"), // }, // Gateway: &hdinsight.KafkaClusterGatewayArgs{ // Username: pulumi.String("acctestusrgw"), // Password: pulumi.String("Password123!"), // }, // StorageAccounts: hdinsight.KafkaClusterStorageAccountArray{ // &hdinsight.KafkaClusterStorageAccountArgs{ // StorageContainerId: exampleContainer.ID(), // StorageAccountKey: exampleAccount.PrimaryAccessKey, // IsDefault: pulumi.Bool(true), // }, // }, // Roles: &hdinsight.KafkaClusterRolesArgs{ // HeadNode: &hdinsight.KafkaClusterRolesHeadNodeArgs{ // VmSize: pulumi.String("Standard_D3_V2"), // Username: pulumi.String("acctestusrvm"), // Password: pulumi.String("AccTestvdSC4daf986!"), // }, // WorkerNode: &hdinsight.KafkaClusterRolesWorkerNodeArgs{ // VmSize: pulumi.String("Standard_D3_V2"), // Username: pulumi.String("acctestusrvm"), // Password: pulumi.String("AccTestvdSC4daf986!"), // NumberOfDisksPerNode: pulumi.Int(3), // TargetInstanceCount: pulumi.Int(3), // }, // ZookeeperNode: &hdinsight.KafkaClusterRolesZookeeperNodeArgs{ // VmSize: pulumi.String("Standard_D3_V2"), // Username: pulumi.String("acctestusrvm"), // Password: pulumi.String("AccTestvdSC4daf986!"), // }, // }, // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## API Providers // // <!-- This section is generated, changes will be overwritten --> // This resource uses the following Azure API Providers: // // * `Microsoft.HDInsight` - 2021-06-01 // // ## Import // // HDInsight Kafka Clusters can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:hdinsight/kafkaCluster:KafkaCluster example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.HDInsight/clusters/cluster1 // ``` type KafkaCluster struct { pulumi.CustomResourceState // Specifies the Version of HDInsights which should be used for this Cluster. Changing this forces a new resource to be created. ClusterVersion pulumi.StringOutput `pulumi:"clusterVersion"` // A `componentVersion` block as defined below. ComponentVersion KafkaClusterComponentVersionOutput `pulumi:"componentVersion"` // A `computeIsolation` block as defined below. ComputeIsolation KafkaClusterComputeIsolationPtrOutput `pulumi:"computeIsolation"` // One or more `diskEncryption` block as defined below. // // > **Note:** Starting on June 30, 2020, Azure HDInsight will enforce TLS 1.2 or later versions for all HTTPS connections. For more information, see [Azure HDInsight TLS 1.2 Enforcement](https://azure.microsoft.com/en-us/updates/azure-hdinsight-tls-12-enforcement/). DiskEncryptions KafkaClusterDiskEncryptionArrayOutput `pulumi:"diskEncryptions"` // Whether encryption in transit is enabled for this HDInsight Kafka Cluster. Changing this forces a new resource to be created. EncryptionInTransitEnabled pulumi.BoolPtrOutput `pulumi:"encryptionInTransitEnabled"` // An `extension` block as defined below. Extension KafkaClusterExtensionPtrOutput `pulumi:"extension"` // A `gateway` block as defined below. Gateway KafkaClusterGatewayOutput `pulumi:"gateway"` // The HTTPS Connectivity Endpoint for this HDInsight Kafka Cluster. HttpsEndpoint pulumi.StringOutput `pulumi:"httpsEndpoint"` // The Kafka Rest Proxy Endpoint for this HDInsight Kafka Cluster. KafkaRestProxyEndpoint pulumi.StringOutput `pulumi:"kafkaRestProxyEndpoint"` // Specifies the Azure Region which this HDInsight Kafka Cluster should exist. Changing this forces a new resource to be created. Location pulumi.StringOutput `pulumi:"location"` // A `metastores` block as defined below. Metastores KafkaClusterMetastoresPtrOutput `pulumi:"metastores"` // A `monitor` block as defined below. Monitor KafkaClusterMonitorPtrOutput `pulumi:"monitor"` // Specifies the name for this HDInsight Kafka Cluster. Changing this forces a new resource to be created. Name pulumi.StringOutput `pulumi:"name"` // A `network` block as defined below. Network KafkaClusterNetworkPtrOutput `pulumi:"network"` // A `privateLinkConfiguration` block as defined below. PrivateLinkConfiguration KafkaClusterPrivateLinkConfigurationPtrOutput `pulumi:"privateLinkConfiguration"` // Specifies the name of the Resource Group in which this HDInsight Kafka Cluster should exist. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // A `restProxy` block as defined below. RestProxy KafkaClusterRestProxyPtrOutput `pulumi:"restProxy"` // A `roles` block as defined below. Roles KafkaClusterRolesOutput `pulumi:"roles"` // A `securityProfile` block as defined below. Changing this forces a new resource to be created. SecurityProfile KafkaClusterSecurityProfilePtrOutput `pulumi:"securityProfile"` // The SSH Connectivity Endpoint for this HDInsight Kafka Cluster. SshEndpoint pulumi.StringOutput `pulumi:"sshEndpoint"` // A `storageAccountGen2` block as defined below. StorageAccountGen2 KafkaClusterStorageAccountGen2PtrOutput `pulumi:"storageAccountGen2"` // One or more `storageAccount` block as defined below. StorageAccounts KafkaClusterStorageAccountArrayOutput `pulumi:"storageAccounts"` // A map of Tags which should be assigned to this HDInsight Kafka Cluster. Tags pulumi.StringMapOutput `pulumi:"tags"` // Specifies the Tier which should be used for this HDInsight Kafka Cluster. Possible values are `Standard` or `Premium`. Changing this forces a new resource to be created. Tier pulumi.StringOutput `pulumi:"tier"` // The minimal supported TLS version. Possible values are `1.0`, `1.1` or `1.2`. Changing this forces a new resource to be created. TlsMinVersion pulumi.StringPtrOutput `pulumi:"tlsMinVersion"` } // NewKafkaCluster registers a new resource with the given unique name, arguments, and options. func NewKafkaCluster(ctx *pulumi.Context, name string, args *KafkaClusterArgs, opts ...pulumi.ResourceOption) (*KafkaCluster, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.ClusterVersion == nil { return nil, errors.New("invalid value for required argument 'ClusterVersion'") } if args.ComponentVersion == nil { return nil, errors.New("invalid value for required argument 'ComponentVersion'") } if args.Gateway == nil { return nil, errors.New("invalid value for required argument 'Gateway'") } if args.ResourceGroupName == nil { return nil, errors.New("invalid value for required argument 'ResourceGroupName'") } if args.Roles == nil { return nil, errors.New("invalid value for required argument 'Roles'") } if args.Tier == nil { return nil, errors.New("invalid value for required argument 'Tier'") } opts = internal.PkgResourceDefaultOpts(opts) var resource KafkaCluster err := ctx.RegisterResource("azure:hdinsight/kafkaCluster:KafkaCluster", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetKafkaCluster gets an existing KafkaCluster 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 GetKafkaCluster(ctx *pulumi.Context, name string, id pulumi.IDInput, state *KafkaClusterState, opts ...pulumi.ResourceOption) (*KafkaCluster, error) { var resource KafkaCluster err := ctx.ReadResource("azure:hdinsight/kafkaCluster:KafkaCluster", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering KafkaCluster resources. type kafkaClusterState struct { // Specifies the Version of HDInsights which should be used for this Cluster. Changing this forces a new resource to be created. ClusterVersion *string `pulumi:"clusterVersion"` // A `componentVersion` block as defined below. ComponentVersion *KafkaClusterComponentVersion `pulumi:"componentVersion"` // A `computeIsolation` block as defined below. ComputeIsolation *KafkaClusterComputeIsolation `pulumi:"computeIsolation"` // One or more `diskEncryption` block as defined below. // // > **Note:** Starting on June 30, 2020, Azure HDInsight will enforce TLS 1.2 or later versions for all HTTPS connections. For more information, see [Azure HDInsight TLS 1.2 Enforcement](https://azure.microsoft.com/en-us/updates/azure-hdinsight-tls-12-enforcement/). DiskEncryptions []KafkaClusterDiskEncryption `pulumi:"diskEncryptions"` // Whether encryption in transit is enabled for this HDInsight Kafka Cluster. Changing this forces a new resource to be created. EncryptionInTransitEnabled *bool `pulumi:"encryptionInTransitEnabled"` // An `extension` block as defined below. Extension *KafkaClusterExtension `pulumi:"extension"` // A `gateway` block as defined below. Gateway *KafkaClusterGateway `pulumi:"gateway"` // The HTTPS Connectivity Endpoint for this HDInsight Kafka Cluster. HttpsEndpoint *string `pulumi:"httpsEndpoint"` // The Kafka Rest Proxy Endpoint for this HDInsight Kafka Cluster. KafkaRestProxyEndpoint *string `pulumi:"kafkaRestProxyEndpoint"` // Specifies the Azure Region which this HDInsight Kafka Cluster should exist. Changing this forces a new resource to be created. Location *string `pulumi:"location"` // A `metastores` block as defined below. Metastores *KafkaClusterMetastores `pulumi:"metastores"` // A `monitor` block as defined below. Monitor *KafkaClusterMonitor `pulumi:"monitor"` // Specifies the name for this HDInsight Kafka Cluster. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // A `network` block as defined below. Network *KafkaClusterNetwork `pulumi:"network"` // A `privateLinkConfiguration` block as defined below. PrivateLinkConfiguration *KafkaClusterPrivateLinkConfiguration `pulumi:"privateLinkConfiguration"` // Specifies the name of the Resource Group in which this HDInsight Kafka Cluster should exist. Changing this forces a new resource to be created. ResourceGroupName *string `pulumi:"resourceGroupName"` // A `restProxy` block as defined below. RestProxy *KafkaClusterRestProxy `pulumi:"restProxy"` // A `roles` block as defined below. Roles *KafkaClusterRoles `pulumi:"roles"` // A `securityProfile` block as defined below. Changing this forces a new resource to be created. SecurityProfile *KafkaClusterSecurityProfile `pulumi:"securityProfile"` // The SSH Connectivity Endpoint for this HDInsight Kafka Cluster. SshEndpoint *string `pulumi:"sshEndpoint"` // A `storageAccountGen2` block as defined below. StorageAccountGen2 *KafkaClusterStorageAccountGen2 `pulumi:"storageAccountGen2"` // One or more `storageAccount` block as defined below. StorageAccounts []KafkaClusterStorageAccount `pulumi:"storageAccounts"` // A map of Tags which should be assigned to this HDInsight Kafka Cluster. Tags map[string]string `pulumi:"tags"` // Specifies the Tier which should be used for this HDInsight Kafka Cluster. Possible values are `Standard` or `Premium`. Changing this forces a new resource to be created. Tier *string `pulumi:"tier"` // The minimal supported TLS version. Possible values are `1.0`, `1.1` or `1.2`. Changing this forces a new resource to be created. TlsMinVersion *string `pulumi:"tlsMinVersion"` } type KafkaClusterState struct { // Specifies the Version of HDInsights which should be used for this Cluster. Changing this forces a new resource to be created. ClusterVersion pulumi.StringPtrInput // A `componentVersion` block as defined below. ComponentVersion KafkaClusterComponentVersionPtrInput // A `computeIsolation` block as defined below. ComputeIsolation KafkaClusterComputeIsolationPtrInput // One or more `diskEncryption` block as defined below. // // > **Note:** Starting on June 30, 2020, Azure HDInsight will enforce TLS 1.2 or later versions for all HTTPS connections. For more information, see [Azure HDInsight TLS 1.2 Enforcement](https://azure.microsoft.com/en-us/updates/azure-hdinsight-tls-12-enforcement/). DiskEncryptions KafkaClusterDiskEncryptionArrayInput // Whether encryption in transit is enabled for this HDInsight Kafka Cluster. Changing this forces a new resource to be created. EncryptionInTransitEnabled pulumi.BoolPtrInput // An `extension` block as defined below. Extension KafkaClusterExtensionPtrInput // A `gateway` block as defined below. Gateway KafkaClusterGatewayPtrInput // The HTTPS Connectivity Endpoint for this HDInsight Kafka Cluster. HttpsEndpoint pulumi.StringPtrInput // The Kafka Rest Proxy Endpoint for this HDInsight Kafka Cluster. KafkaRestProxyEndpoint pulumi.StringPtrInput // Specifies the Azure Region which this HDInsight Kafka Cluster should exist. Changing this forces a new resource to be created. Location pulumi.StringPtrInput // A `metastores` block as defined below. Metastores KafkaClusterMetastoresPtrInput // A `monitor` block as defined below. Monitor KafkaClusterMonitorPtrInput // Specifies the name for this HDInsight Kafka Cluster. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // A `network` block as defined below. Network KafkaClusterNetworkPtrInput // A `privateLinkConfiguration` block as defined below. PrivateLinkConfiguration KafkaClusterPrivateLinkConfigurationPtrInput // Specifies the name of the Resource Group in which this HDInsight Kafka Cluster should exist. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringPtrInput // A `restProxy` block as defined below. RestProxy KafkaClusterRestProxyPtrInput // A `roles` block as defined below. Roles KafkaClusterRolesPtrInput // A `securityProfile` block as defined below. Changing this forces a new resource to be created. SecurityProfile KafkaClusterSecurityProfilePtrInput // The SSH Connectivity Endpoint for this HDInsight Kafka Cluster. SshEndpoint pulumi.StringPtrInput // A `storageAccountGen2` block as defined below. StorageAccountGen2 KafkaClusterStorageAccountGen2PtrInput // One or more `storageAccount` block as defined below. StorageAccounts KafkaClusterStorageAccountArrayInput // A map of Tags which should be assigned to this HDInsight Kafka Cluster. Tags pulumi.StringMapInput // Specifies the Tier which should be used for this HDInsight Kafka Cluster. Possible values are `Standard` or `Premium`. Changing this forces a new resource to be created. Tier pulumi.StringPtrInput // The minimal supported TLS version. Possible values are `1.0`, `1.1` or `1.2`. Changing this forces a new resource to be created. TlsMinVersion pulumi.StringPtrInput } func (KafkaClusterState) ElementType() reflect.Type { return reflect.TypeOf((*kafkaClusterState)(nil)).Elem() } type kafkaClusterArgs struct { // Specifies the Version of HDInsights which should be used for this Cluster. Changing this forces a new resource to be created. ClusterVersion string `pulumi:"clusterVersion"` // A `componentVersion` block as defined below. ComponentVersion KafkaClusterComponentVersion `pulumi:"componentVersion"` // A `computeIsolation` block as defined below. ComputeIsolation *KafkaClusterComputeIsolation `pulumi:"computeIsolation"` // One or more `diskEncryption` block as defined below. // // > **Note:** Starting on June 30, 2020, Azure HDInsight will enforce TLS 1.2 or later versions for all HTTPS connections. For more information, see [Azure HDInsight TLS 1.2 Enforcement](https://azure.microsoft.com/en-us/updates/azure-hdinsight-tls-12-enforcement/). DiskEncryptions []KafkaClusterDiskEncryption `pulumi:"diskEncryptions"` // Whether encryption in transit is enabled for this HDInsight Kafka Cluster. Changing this forces a new resource to be created. EncryptionInTransitEnabled *bool `pulumi:"encryptionInTransitEnabled"` // An `extension` block as defined below. Extension *KafkaClusterExtension `pulumi:"extension"` // A `gateway` block as defined below. Gateway KafkaClusterGateway `pulumi:"gateway"` // Specifies the Azure Region which this HDInsight Kafka Cluster should exist. Changing this forces a new resource to be created. Location *string `pulumi:"location"` // A `metastores` block as defined below. Metastores *KafkaClusterMetastores `pulumi:"metastores"` // A `monitor` block as defined below. Monitor *KafkaClusterMonitor `pulumi:"monitor"` // Specifies the name for this HDInsight Kafka Cluster. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // A `network` block as defined below. Network *KafkaClusterNetwork `pulumi:"network"` // A `privateLinkConfiguration` block as defined below. PrivateLinkConfiguration *KafkaClusterPrivateLinkConfiguration `pulumi:"privateLinkConfiguration"` // Specifies the name of the Resource Group in which this HDInsight Kafka Cluster should exist. Changing this forces a new resource to be created. ResourceGroupName string `pulumi:"resourceGroupName"` // A `restProxy` block as defined below. RestProxy *KafkaClusterRestProxy `pulumi:"restProxy"` // A `roles` block as defined below. Roles KafkaClusterRoles `pulumi:"roles"` // A `securityProfile` block as defined below. Changing this forces a new resource to be created. SecurityProfile *KafkaClusterSecurityProfile `pulumi:"securityProfile"` // A `storageAccountGen2` block as defined below. StorageAccountGen2 *KafkaClusterStorageAccountGen2 `pulumi:"storageAccountGen2"` // One or more `storageAccount` block as defined below. StorageAccounts []KafkaClusterStorageAccount `pulumi:"storageAccounts"` // A map of Tags which should be assigned to this HDInsight Kafka Cluster. Tags map[string]string `pulumi:"tags"` // Specifies the Tier which should be used for this HDInsight Kafka Cluster. Possible values are `Standard` or `Premium`. Changing this forces a new resource to be created. Tier string `pulumi:"tier"` // The minimal supported TLS version. Possible values are `1.0`, `1.1` or `1.2`. Changing this forces a new resource to be created. TlsMinVersion *string `pulumi:"tlsMinVersion"` } // The set of arguments for constructing a KafkaCluster resource. type KafkaClusterArgs struct { // Specifies the Version of HDInsights which should be used for this Cluster. Changing this forces a new resource to be created. ClusterVersion pulumi.StringInput // A `componentVersion` block as defined below. ComponentVersion KafkaClusterComponentVersionInput // A `computeIsolation` block as defined below. ComputeIsolation KafkaClusterComputeIsolationPtrInput // One or more `diskEncryption` block as defined below. // // > **Note:** Starting on June 30, 2020, Azure HDInsight will enforce TLS 1.2 or later versions for all HTTPS connections. For more information, see [Azure HDInsight TLS 1.2 Enforcement](https://azure.microsoft.com/en-us/updates/azure-hdinsight-tls-12-enforcement/). DiskEncryptions KafkaClusterDiskEncryptionArrayInput // Whether encryption in transit is enabled for this HDInsight Kafka Cluster. Changing this forces a new resource to be created. EncryptionInTransitEnabled pulumi.BoolPtrInput // An `extension` block as defined below. Extension KafkaClusterExtensionPtrInput // A `gateway` block as defined below. Gateway KafkaClusterGatewayInput // Specifies the Azure Region which this HDInsight Kafka Cluster should exist. Changing this forces a new resource to be created. Location pulumi.StringPtrInput // A `metastores` block as defined below. Metastores KafkaClusterMetastoresPtrInput // A `monitor` block as defined below. Monitor KafkaClusterMonitorPtrInput // Specifies the name for this HDInsight Kafka Cluster. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // A `network` block as defined below. Network KafkaClusterNetworkPtrInput // A `privateLinkConfiguration` block as defined below. PrivateLinkConfiguration KafkaClusterPrivateLinkConfigurationPtrInput // Specifies the name of the Resource Group in which this HDInsight Kafka Cluster should exist. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringInput // A `restProxy` block as defined below. RestProxy KafkaClusterRestProxyPtrInput // A `roles` block as defined below. Roles KafkaClusterRolesInput // A `securityProfile` block as defined below. Changing this forces a new resource to be created. SecurityProfile KafkaClusterSecurityProfilePtrInput // A `storageAccountGen2` block as defined below. StorageAccountGen2 KafkaClusterStorageAccountGen2PtrInput // One or more `storageAccount` block as defined below. StorageAccounts KafkaClusterStorageAccountArrayInput // A map of Tags which should be assigned to this HDInsight Kafka Cluster. Tags pulumi.StringMapInput // Specifies the Tier which should be used for this HDInsight Kafka Cluster. Possible values are `Standard` or `Premium`. Changing this forces a new resource to be created. Tier pulumi.StringInput // The minimal supported TLS version. Possible values are `1.0`, `1.1` or `1.2`. Changing this forces a new resource to be created. TlsMinVersion pulumi.StringPtrInput } func (KafkaClusterArgs) ElementType() reflect.Type { return reflect.TypeOf((*kafkaClusterArgs)(nil)).Elem() } type KafkaClusterInput interface { pulumi.Input ToKafkaClusterOutput() KafkaClusterOutput ToKafkaClusterOutputWithContext(ctx context.Context) KafkaClusterOutput } func (*KafkaCluster) ElementType() reflect.Type { return reflect.TypeOf((**KafkaCluster)(nil)).Elem() } func (i *KafkaCluster) ToKafkaClusterOutput() KafkaClusterOutput { return i.ToKafkaClusterOutputWithContext(context.Background()) } func (i *KafkaCluster) ToKafkaClusterOutputWithContext(ctx context.Context) KafkaClusterOutput { return pulumi.ToOutputWithContext(ctx, i).(KafkaClusterOutput) } // KafkaClusterArrayInput is an input type that accepts KafkaClusterArray and KafkaClusterArrayOutput values. // You can construct a concrete instance of `KafkaClusterArrayInput` via: // // KafkaClusterArray{ KafkaClusterArgs{...} } type KafkaClusterArrayInput interface { pulumi.Input ToKafkaClusterArrayOutput() KafkaClusterArrayOutput ToKafkaClusterArrayOutputWithContext(context.Context) KafkaClusterArrayOutput } type KafkaClusterArray []KafkaClusterInput func (KafkaClusterArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*KafkaCluster)(nil)).Elem() } func (i KafkaClusterArray) ToKafkaClusterArrayOutput() KafkaClusterArrayOutput { return i.ToKafkaClusterArrayOutputWithContext(context.Background()) } func (i KafkaClusterArray) ToKafkaClusterArrayOutputWithContext(ctx context.Context) KafkaClusterArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(KafkaClusterArrayOutput) } // KafkaClusterMapInput is an input type that accepts KafkaClusterMap and KafkaClusterMapOutput values. // You can construct a concrete instance of `KafkaClusterMapInput` via: // // KafkaClusterMap{ "key": KafkaClusterArgs{...} } type KafkaClusterMapInput interface { pulumi.Input ToKafkaClusterMapOutput() KafkaClusterMapOutput ToKafkaClusterMapOutputWithContext(context.Context) KafkaClusterMapOutput } type KafkaClusterMap map[string]KafkaClusterInput func (KafkaClusterMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*KafkaCluster)(nil)).Elem() } func (i KafkaClusterMap) ToKafkaClusterMapOutput() KafkaClusterMapOutput { return i.ToKafkaClusterMapOutputWithContext(context.Background()) } func (i KafkaClusterMap) ToKafkaClusterMapOutputWithContext(ctx context.Context) KafkaClusterMapOutput { return pulumi.ToOutputWithContext(ctx, i).(KafkaClusterMapOutput) } type KafkaClusterOutput struct{ *pulumi.OutputState } func (KafkaClusterOutput) ElementType() reflect.Type { return reflect.TypeOf((**KafkaCluster)(nil)).Elem() } func (o KafkaClusterOutput) ToKafkaClusterOutput() KafkaClusterOutput { return o } func (o KafkaClusterOutput) ToKafkaClusterOutputWithContext(ctx context.Context) KafkaClusterOutput { return o } // Specifies the Version of HDInsights which should be used for this Cluster. Changing this forces a new resource to be created. func (o KafkaClusterOutput) ClusterVersion() pulumi.StringOutput { return o.ApplyT(func(v *KafkaCluster) pulumi.StringOutput { return v.ClusterVersion }).(pulumi.StringOutput) } // A `componentVersion` block as defined below. func (o KafkaClusterOutput) ComponentVersion() KafkaClusterComponentVersionOutput { return o.ApplyT(func(v *KafkaCluster) KafkaClusterComponentVersionOutput { return v.ComponentVersion }).(KafkaClusterComponentVersionOutput) } // A `computeIsolation` block as defined below. func (o KafkaClusterOutput) ComputeIsolation() KafkaClusterComputeIsolationPtrOutput { return o.ApplyT(func(v *KafkaCluster) KafkaClusterComputeIsolationPtrOutput { return v.ComputeIsolation }).(KafkaClusterComputeIsolationPtrOutput) } // One or more `diskEncryption` block as defined below. // // > **Note:** Starting on June 30, 2020, Azure HDInsight will enforce TLS 1.2 or later versions for all HTTPS connections. For more information, see [Azure HDInsight TLS 1.2 Enforcement](https://azure.microsoft.com/en-us/updates/azure-hdinsight-tls-12-enforcement/). func (o KafkaClusterOutput) DiskEncryptions() KafkaClusterDiskEncryptionArrayOutput { return o.ApplyT(func(v *KafkaCluster) KafkaClusterDiskEncryptionArrayOutput { return v.DiskEncryptions }).(KafkaClusterDiskEncryptionArrayOutput) } // Whether encryption in transit is enabled for this HDInsight Kafka Cluster. Changing this forces a new resource to be created. func (o KafkaClusterOutput) EncryptionInTransitEnabled() pulumi.BoolPtrOutput { return o.ApplyT(func(v *KafkaCluster) pulumi.BoolPtrOutput { return v.EncryptionInTransitEnabled }).(pulumi.BoolPtrOutput) } // An `extension` block as defined below. func (o KafkaClusterOutput) Extension() KafkaClusterExtensionPtrOutput { return o.ApplyT(func(v *KafkaCluster) KafkaClusterExtensionPtrOutput { return v.Extension }).(KafkaClusterExtensionPtrOutput) } // A `gateway` block as defined below. func (o KafkaClusterOutput) Gateway() KafkaClusterGatewayOutput { return o.ApplyT(func(v *KafkaCluster) KafkaClusterGatewayOutput { return v.Gateway }).(KafkaClusterGatewayOutput) } // The HTTPS Connectivity Endpoint for this HDInsight Kafka Cluster. func (o KafkaClusterOutput) HttpsEndpoint() pulumi.StringOutput { return o.ApplyT(func(v *KafkaCluster) pulumi.StringOutput { return v.HttpsEndpoint }).(pulumi.StringOutput) } // The Kafka Rest Proxy Endpoint for this HDInsight Kafka Cluster. func (o KafkaClusterOutput) KafkaRestProxyEndpoint() pulumi.StringOutput { return o.ApplyT(func(v *KafkaCluster) pulumi.StringOutput { return v.KafkaRestProxyEndpoint }).(pulumi.StringOutput) } // Specifies the Azure Region which this HDInsight Kafka Cluster should exist. Changing this forces a new resource to be created. func (o KafkaClusterOutput) Location() pulumi.StringOutput { return o.ApplyT(func(v *KafkaCluster) pulumi.StringOutput { return v.Location }).(pulumi.StringOutput) } // A `metastores` block as defined below. func (o KafkaClusterOutput) Metastores() KafkaClusterMetastoresPtrOutput { return o.ApplyT(func(v *KafkaCluster) KafkaClusterMetastoresPtrOutput { return v.Metastores }).(KafkaClusterMetastoresPtrOutput) } // A `monitor` block as defined below. func (o KafkaClusterOutput) Monitor() KafkaClusterMonitorPtrOutput { return o.ApplyT(func(v *KafkaCluster) KafkaClusterMonitorPtrOutput { return v.Monitor }).(KafkaClusterMonitorPtrOutput) } // Specifies the name for this HDInsight Kafka Cluster. Changing this forces a new resource to be created. func (o KafkaClusterOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *KafkaCluster) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // A `network` block as defined below. func (o KafkaClusterOutput) Network() KafkaClusterNetworkPtrOutput { return o.ApplyT(func(v *KafkaCluster) KafkaClusterNetworkPtrOutput { return v.Network }).(KafkaClusterNetworkPtrOutput) } // A `privateLinkConfiguration` block as defined below. func (o KafkaClusterOutput) PrivateLinkConfiguration() KafkaClusterPrivateLinkConfigurationPtrOutput { return o.ApplyT(func(v *KafkaCluster) KafkaClusterPrivateLinkConfigurationPtrOutput { return v.PrivateLinkConfiguration }).(KafkaClusterPrivateLinkConfigurationPtrOutput) } // Specifies the name of the Resource Group in which this HDInsight Kafka Cluster should exist. Changing this forces a new resource to be created. func (o KafkaClusterOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v *KafkaCluster) pulumi.StringOutput { return v.ResourceGroupName }).(pulumi.StringOutput) } // A `restProxy` block as defined below. func (o KafkaClusterOutput) RestProxy() KafkaClusterRestProxyPtrOutput { return o.ApplyT(func(v *KafkaCluster) KafkaClusterRestProxyPtrOutput { return v.RestProxy }).(KafkaClusterRestProxyPtrOutput) } // A `roles` block as defined below. func (o KafkaClusterOutput) Roles() KafkaClusterRolesOutput { return o.ApplyT(func(v *KafkaCluster) KafkaClusterRolesOutput { return v.Roles }).(KafkaClusterRolesOutput) } // A `securityProfile` block as defined below. Changing this forces a new resource to be created. func (o KafkaClusterOutput) SecurityProfile() KafkaClusterSecurityProfilePtrOutput { return o.ApplyT(func(v *KafkaCluster) KafkaClusterSecurityProfilePtrOutput { return v.SecurityProfile }).(KafkaClusterSecurityProfilePtrOutput) } // The SSH Connectivity Endpoint for this HDInsight Kafka Cluster. func (o KafkaClusterOutput) SshEndpoint() pulumi.StringOutput { return o.ApplyT(func(v *KafkaCluster) pulumi.StringOutput { return v.SshEndpoint }).(pulumi.StringOutput) } // A `storageAccountGen2` block as defined below. func (o KafkaClusterOutput) StorageAccountGen2() KafkaClusterStorageAccountGen2PtrOutput { return o.ApplyT(func(v *KafkaCluster) KafkaClusterStorageAccountGen2PtrOutput { return v.StorageAccountGen2 }).(KafkaClusterStorageAccountGen2PtrOutput) } // One or more `storageAccount` block as defined below. func (o KafkaClusterOutput) StorageAccounts() KafkaClusterStorageAccountArrayOutput { return o.ApplyT(func(v *KafkaCluster) KafkaClusterStorageAccountArrayOutput { return v.StorageAccounts }).(KafkaClusterStorageAccountArrayOutput) } // A map of Tags which should be assigned to this HDInsight Kafka Cluster. func (o KafkaClusterOutput) Tags() pulumi.StringMapOutput { return o.ApplyT(func(v *KafkaCluster) pulumi.StringMapOutput { return v.Tags }).(pulumi.StringMapOutput) }
go
Apache-2.0
b66e1472775a89cca43f5050fef806854a7c3fa3
2026-01-07T09:44:27.619514Z
true
pulumi/pulumi-azure
https://github.com/pulumi/pulumi-azure/blob/b66e1472775a89cca43f5050fef806854a7c3fa3/sdk/go/azure/hdinsight/sparkCluster.go
sdk/go/azure/hdinsight/sparkCluster.go
// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package hdinsight import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a HDInsight Spark Cluster. // // ## 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/hdinsight" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/storage" // "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-resources"), // Location: pulumi.String("West Europe"), // }) // if err != nil { // return err // } // exampleAccount, err := storage.NewAccount(ctx, "example", &storage.AccountArgs{ // Name: pulumi.String("hdinsightstor"), // ResourceGroupName: example.Name, // Location: example.Location, // AccountTier: pulumi.String("Standard"), // AccountReplicationType: pulumi.String("LRS"), // }) // if err != nil { // return err // } // exampleContainer, err := storage.NewContainer(ctx, "example", &storage.ContainerArgs{ // Name: pulumi.String("hdinsight"), // StorageAccountName: exampleAccount.Name, // ContainerAccessType: pulumi.String("private"), // }) // if err != nil { // return err // } // _, err = hdinsight.NewSparkCluster(ctx, "example", &hdinsight.SparkClusterArgs{ // Name: pulumi.String("example-hdicluster"), // ResourceGroupName: example.Name, // Location: example.Location, // ClusterVersion: pulumi.String("3.6"), // Tier: pulumi.String("Standard"), // ComponentVersion: &hdinsight.SparkClusterComponentVersionArgs{ // Spark: pulumi.String("2.3"), // }, // Gateway: &hdinsight.SparkClusterGatewayArgs{ // Username: pulumi.String("acctestusrgw"), // Password: pulumi.String("Password123!"), // }, // StorageAccounts: hdinsight.SparkClusterStorageAccountArray{ // &hdinsight.SparkClusterStorageAccountArgs{ // StorageContainerId: exampleContainer.ID(), // StorageAccountKey: exampleAccount.PrimaryAccessKey, // IsDefault: pulumi.Bool(true), // }, // }, // Roles: &hdinsight.SparkClusterRolesArgs{ // HeadNode: &hdinsight.SparkClusterRolesHeadNodeArgs{ // VmSize: pulumi.String("Standard_A3"), // Username: pulumi.String("acctestusrvm"), // Password: pulumi.String("AccTestvdSC4daf986!"), // }, // WorkerNode: &hdinsight.SparkClusterRolesWorkerNodeArgs{ // VmSize: pulumi.String("Standard_A3"), // Username: pulumi.String("acctestusrvm"), // Password: pulumi.String("AccTestvdSC4daf986!"), // TargetInstanceCount: pulumi.Int(3), // }, // ZookeeperNode: &hdinsight.SparkClusterRolesZookeeperNodeArgs{ // VmSize: pulumi.String("Medium"), // Username: pulumi.String("acctestusrvm"), // Password: pulumi.String("AccTestvdSC4daf986!"), // }, // }, // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## API Providers // // <!-- This section is generated, changes will be overwritten --> // This resource uses the following Azure API Providers: // // * `Microsoft.HDInsight` - 2021-06-01 // // ## Import // // HDInsight Spark Clusters can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:hdinsight/sparkCluster:SparkCluster example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.HDInsight/clusters/cluster1 // ``` type SparkCluster struct { pulumi.CustomResourceState // Specifies the Version of HDInsights which should be used for this Cluster. Changing this forces a new resource to be created. ClusterVersion pulumi.StringOutput `pulumi:"clusterVersion"` // A `componentVersion` block as defined below. ComponentVersion SparkClusterComponentVersionOutput `pulumi:"componentVersion"` // A `computeIsolation` block as defined below. ComputeIsolation SparkClusterComputeIsolationPtrOutput `pulumi:"computeIsolation"` // One or more `diskEncryption` block as defined below. DiskEncryptions SparkClusterDiskEncryptionArrayOutput `pulumi:"diskEncryptions"` // Whether encryption in transit is enabled for this Cluster. Changing this forces a new resource to be created. EncryptionInTransitEnabled pulumi.BoolPtrOutput `pulumi:"encryptionInTransitEnabled"` // An `extension` block as defined below. Extension SparkClusterExtensionPtrOutput `pulumi:"extension"` // A `gateway` block as defined below. Gateway SparkClusterGatewayOutput `pulumi:"gateway"` // The HTTPS Connectivity Endpoint for this HDInsight Spark Cluster. HttpsEndpoint pulumi.StringOutput `pulumi:"httpsEndpoint"` // Specifies the Azure Region which this HDInsight Spark Cluster should exist. Changing this forces a new resource to be created. Location pulumi.StringOutput `pulumi:"location"` // A `metastores` block as defined below. Metastores SparkClusterMetastoresPtrOutput `pulumi:"metastores"` // A `monitor` block as defined below. Monitor SparkClusterMonitorPtrOutput `pulumi:"monitor"` // Specifies the name for this HDInsight Spark Cluster. Changing this forces a new resource to be created. Name pulumi.StringOutput `pulumi:"name"` // A `network` block as defined below. Network SparkClusterNetworkPtrOutput `pulumi:"network"` // A `privateLinkConfiguration` block as defined below. PrivateLinkConfiguration SparkClusterPrivateLinkConfigurationPtrOutput `pulumi:"privateLinkConfiguration"` // Specifies the name of the Resource Group in which this HDInsight Spark Cluster should exist. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // A `roles` block as defined below. Roles SparkClusterRolesOutput `pulumi:"roles"` // A `securityProfile` block as defined below. Changing this forces a new resource to be created. SecurityProfile SparkClusterSecurityProfilePtrOutput `pulumi:"securityProfile"` // The SSH Connectivity Endpoint for this HDInsight Spark Cluster. SshEndpoint pulumi.StringOutput `pulumi:"sshEndpoint"` // A `storageAccountGen2` block as defined below. StorageAccountGen2 SparkClusterStorageAccountGen2PtrOutput `pulumi:"storageAccountGen2"` // One or more `storageAccount` block as defined below. StorageAccounts SparkClusterStorageAccountArrayOutput `pulumi:"storageAccounts"` // A map of Tags which should be assigned to this HDInsight Spark Cluster. Tags pulumi.StringMapOutput `pulumi:"tags"` // Specifies the Tier which should be used for this HDInsight Spark Cluster. Possible values are `Standard` or `Premium`. Changing this forces a new resource to be created. Tier pulumi.StringOutput `pulumi:"tier"` // The minimal supported TLS version. Possible values are 1.0, 1.1 or 1.2. Changing this forces a new resource to be created. // // > **Note:** Starting on June 30, 2020, Azure HDInsight will enforce TLS 1.2 or later versions for all HTTPS connections. For more information, see [Azure HDInsight TLS 1.2 Enforcement](https://azure.microsoft.com/en-us/updates/azure-hdinsight-tls-12-enforcement/). TlsMinVersion pulumi.StringPtrOutput `pulumi:"tlsMinVersion"` // A list of Availability Zones which should be used for this HDInsight Spark Cluster. Changing this forces a new resource to be created. Zones pulumi.StringArrayOutput `pulumi:"zones"` } // NewSparkCluster registers a new resource with the given unique name, arguments, and options. func NewSparkCluster(ctx *pulumi.Context, name string, args *SparkClusterArgs, opts ...pulumi.ResourceOption) (*SparkCluster, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.ClusterVersion == nil { return nil, errors.New("invalid value for required argument 'ClusterVersion'") } if args.ComponentVersion == nil { return nil, errors.New("invalid value for required argument 'ComponentVersion'") } if args.Gateway == nil { return nil, errors.New("invalid value for required argument 'Gateway'") } if args.ResourceGroupName == nil { return nil, errors.New("invalid value for required argument 'ResourceGroupName'") } if args.Roles == nil { return nil, errors.New("invalid value for required argument 'Roles'") } if args.Tier == nil { return nil, errors.New("invalid value for required argument 'Tier'") } opts = internal.PkgResourceDefaultOpts(opts) var resource SparkCluster err := ctx.RegisterResource("azure:hdinsight/sparkCluster:SparkCluster", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetSparkCluster gets an existing SparkCluster 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 GetSparkCluster(ctx *pulumi.Context, name string, id pulumi.IDInput, state *SparkClusterState, opts ...pulumi.ResourceOption) (*SparkCluster, error) { var resource SparkCluster err := ctx.ReadResource("azure:hdinsight/sparkCluster:SparkCluster", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering SparkCluster resources. type sparkClusterState struct { // Specifies the Version of HDInsights which should be used for this Cluster. Changing this forces a new resource to be created. ClusterVersion *string `pulumi:"clusterVersion"` // A `componentVersion` block as defined below. ComponentVersion *SparkClusterComponentVersion `pulumi:"componentVersion"` // A `computeIsolation` block as defined below. ComputeIsolation *SparkClusterComputeIsolation `pulumi:"computeIsolation"` // One or more `diskEncryption` block as defined below. DiskEncryptions []SparkClusterDiskEncryption `pulumi:"diskEncryptions"` // Whether encryption in transit is enabled for this Cluster. Changing this forces a new resource to be created. EncryptionInTransitEnabled *bool `pulumi:"encryptionInTransitEnabled"` // An `extension` block as defined below. Extension *SparkClusterExtension `pulumi:"extension"` // A `gateway` block as defined below. Gateway *SparkClusterGateway `pulumi:"gateway"` // The HTTPS Connectivity Endpoint for this HDInsight Spark Cluster. HttpsEndpoint *string `pulumi:"httpsEndpoint"` // Specifies the Azure Region which this HDInsight Spark Cluster should exist. Changing this forces a new resource to be created. Location *string `pulumi:"location"` // A `metastores` block as defined below. Metastores *SparkClusterMetastores `pulumi:"metastores"` // A `monitor` block as defined below. Monitor *SparkClusterMonitor `pulumi:"monitor"` // Specifies the name for this HDInsight Spark Cluster. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // A `network` block as defined below. Network *SparkClusterNetwork `pulumi:"network"` // A `privateLinkConfiguration` block as defined below. PrivateLinkConfiguration *SparkClusterPrivateLinkConfiguration `pulumi:"privateLinkConfiguration"` // Specifies the name of the Resource Group in which this HDInsight Spark Cluster should exist. Changing this forces a new resource to be created. ResourceGroupName *string `pulumi:"resourceGroupName"` // A `roles` block as defined below. Roles *SparkClusterRoles `pulumi:"roles"` // A `securityProfile` block as defined below. Changing this forces a new resource to be created. SecurityProfile *SparkClusterSecurityProfile `pulumi:"securityProfile"` // The SSH Connectivity Endpoint for this HDInsight Spark Cluster. SshEndpoint *string `pulumi:"sshEndpoint"` // A `storageAccountGen2` block as defined below. StorageAccountGen2 *SparkClusterStorageAccountGen2 `pulumi:"storageAccountGen2"` // One or more `storageAccount` block as defined below. StorageAccounts []SparkClusterStorageAccount `pulumi:"storageAccounts"` // A map of Tags which should be assigned to this HDInsight Spark Cluster. Tags map[string]string `pulumi:"tags"` // Specifies the Tier which should be used for this HDInsight Spark Cluster. Possible values are `Standard` or `Premium`. Changing this forces a new resource to be created. Tier *string `pulumi:"tier"` // The minimal supported TLS version. Possible values are 1.0, 1.1 or 1.2. Changing this forces a new resource to be created. // // > **Note:** Starting on June 30, 2020, Azure HDInsight will enforce TLS 1.2 or later versions for all HTTPS connections. For more information, see [Azure HDInsight TLS 1.2 Enforcement](https://azure.microsoft.com/en-us/updates/azure-hdinsight-tls-12-enforcement/). TlsMinVersion *string `pulumi:"tlsMinVersion"` // A list of Availability Zones which should be used for this HDInsight Spark Cluster. Changing this forces a new resource to be created. Zones []string `pulumi:"zones"` } type SparkClusterState struct { // Specifies the Version of HDInsights which should be used for this Cluster. Changing this forces a new resource to be created. ClusterVersion pulumi.StringPtrInput // A `componentVersion` block as defined below. ComponentVersion SparkClusterComponentVersionPtrInput // A `computeIsolation` block as defined below. ComputeIsolation SparkClusterComputeIsolationPtrInput // One or more `diskEncryption` block as defined below. DiskEncryptions SparkClusterDiskEncryptionArrayInput // Whether encryption in transit is enabled for this Cluster. Changing this forces a new resource to be created. EncryptionInTransitEnabled pulumi.BoolPtrInput // An `extension` block as defined below. Extension SparkClusterExtensionPtrInput // A `gateway` block as defined below. Gateway SparkClusterGatewayPtrInput // The HTTPS Connectivity Endpoint for this HDInsight Spark Cluster. HttpsEndpoint pulumi.StringPtrInput // Specifies the Azure Region which this HDInsight Spark Cluster should exist. Changing this forces a new resource to be created. Location pulumi.StringPtrInput // A `metastores` block as defined below. Metastores SparkClusterMetastoresPtrInput // A `monitor` block as defined below. Monitor SparkClusterMonitorPtrInput // Specifies the name for this HDInsight Spark Cluster. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // A `network` block as defined below. Network SparkClusterNetworkPtrInput // A `privateLinkConfiguration` block as defined below. PrivateLinkConfiguration SparkClusterPrivateLinkConfigurationPtrInput // Specifies the name of the Resource Group in which this HDInsight Spark Cluster should exist. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringPtrInput // A `roles` block as defined below. Roles SparkClusterRolesPtrInput // A `securityProfile` block as defined below. Changing this forces a new resource to be created. SecurityProfile SparkClusterSecurityProfilePtrInput // The SSH Connectivity Endpoint for this HDInsight Spark Cluster. SshEndpoint pulumi.StringPtrInput // A `storageAccountGen2` block as defined below. StorageAccountGen2 SparkClusterStorageAccountGen2PtrInput // One or more `storageAccount` block as defined below. StorageAccounts SparkClusterStorageAccountArrayInput // A map of Tags which should be assigned to this HDInsight Spark Cluster. Tags pulumi.StringMapInput // Specifies the Tier which should be used for this HDInsight Spark Cluster. Possible values are `Standard` or `Premium`. Changing this forces a new resource to be created. Tier pulumi.StringPtrInput // The minimal supported TLS version. Possible values are 1.0, 1.1 or 1.2. Changing this forces a new resource to be created. // // > **Note:** Starting on June 30, 2020, Azure HDInsight will enforce TLS 1.2 or later versions for all HTTPS connections. For more information, see [Azure HDInsight TLS 1.2 Enforcement](https://azure.microsoft.com/en-us/updates/azure-hdinsight-tls-12-enforcement/). TlsMinVersion pulumi.StringPtrInput // A list of Availability Zones which should be used for this HDInsight Spark Cluster. Changing this forces a new resource to be created. Zones pulumi.StringArrayInput } func (SparkClusterState) ElementType() reflect.Type { return reflect.TypeOf((*sparkClusterState)(nil)).Elem() } type sparkClusterArgs struct { // Specifies the Version of HDInsights which should be used for this Cluster. Changing this forces a new resource to be created. ClusterVersion string `pulumi:"clusterVersion"` // A `componentVersion` block as defined below. ComponentVersion SparkClusterComponentVersion `pulumi:"componentVersion"` // A `computeIsolation` block as defined below. ComputeIsolation *SparkClusterComputeIsolation `pulumi:"computeIsolation"` // One or more `diskEncryption` block as defined below. DiskEncryptions []SparkClusterDiskEncryption `pulumi:"diskEncryptions"` // Whether encryption in transit is enabled for this Cluster. Changing this forces a new resource to be created. EncryptionInTransitEnabled *bool `pulumi:"encryptionInTransitEnabled"` // An `extension` block as defined below. Extension *SparkClusterExtension `pulumi:"extension"` // A `gateway` block as defined below. Gateway SparkClusterGateway `pulumi:"gateway"` // Specifies the Azure Region which this HDInsight Spark Cluster should exist. Changing this forces a new resource to be created. Location *string `pulumi:"location"` // A `metastores` block as defined below. Metastores *SparkClusterMetastores `pulumi:"metastores"` // A `monitor` block as defined below. Monitor *SparkClusterMonitor `pulumi:"monitor"` // Specifies the name for this HDInsight Spark Cluster. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // A `network` block as defined below. Network *SparkClusterNetwork `pulumi:"network"` // A `privateLinkConfiguration` block as defined below. PrivateLinkConfiguration *SparkClusterPrivateLinkConfiguration `pulumi:"privateLinkConfiguration"` // Specifies the name of the Resource Group in which this HDInsight Spark Cluster should exist. Changing this forces a new resource to be created. ResourceGroupName string `pulumi:"resourceGroupName"` // A `roles` block as defined below. Roles SparkClusterRoles `pulumi:"roles"` // A `securityProfile` block as defined below. Changing this forces a new resource to be created. SecurityProfile *SparkClusterSecurityProfile `pulumi:"securityProfile"` // A `storageAccountGen2` block as defined below. StorageAccountGen2 *SparkClusterStorageAccountGen2 `pulumi:"storageAccountGen2"` // One or more `storageAccount` block as defined below. StorageAccounts []SparkClusterStorageAccount `pulumi:"storageAccounts"` // A map of Tags which should be assigned to this HDInsight Spark Cluster. Tags map[string]string `pulumi:"tags"` // Specifies the Tier which should be used for this HDInsight Spark Cluster. Possible values are `Standard` or `Premium`. Changing this forces a new resource to be created. Tier string `pulumi:"tier"` // The minimal supported TLS version. Possible values are 1.0, 1.1 or 1.2. Changing this forces a new resource to be created. // // > **Note:** Starting on June 30, 2020, Azure HDInsight will enforce TLS 1.2 or later versions for all HTTPS connections. For more information, see [Azure HDInsight TLS 1.2 Enforcement](https://azure.microsoft.com/en-us/updates/azure-hdinsight-tls-12-enforcement/). TlsMinVersion *string `pulumi:"tlsMinVersion"` // A list of Availability Zones which should be used for this HDInsight Spark Cluster. Changing this forces a new resource to be created. Zones []string `pulumi:"zones"` } // The set of arguments for constructing a SparkCluster resource. type SparkClusterArgs struct { // Specifies the Version of HDInsights which should be used for this Cluster. Changing this forces a new resource to be created. ClusterVersion pulumi.StringInput // A `componentVersion` block as defined below. ComponentVersion SparkClusterComponentVersionInput // A `computeIsolation` block as defined below. ComputeIsolation SparkClusterComputeIsolationPtrInput // One or more `diskEncryption` block as defined below. DiskEncryptions SparkClusterDiskEncryptionArrayInput // Whether encryption in transit is enabled for this Cluster. Changing this forces a new resource to be created. EncryptionInTransitEnabled pulumi.BoolPtrInput // An `extension` block as defined below. Extension SparkClusterExtensionPtrInput // A `gateway` block as defined below. Gateway SparkClusterGatewayInput // Specifies the Azure Region which this HDInsight Spark Cluster should exist. Changing this forces a new resource to be created. Location pulumi.StringPtrInput // A `metastores` block as defined below. Metastores SparkClusterMetastoresPtrInput // A `monitor` block as defined below. Monitor SparkClusterMonitorPtrInput // Specifies the name for this HDInsight Spark Cluster. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // A `network` block as defined below. Network SparkClusterNetworkPtrInput // A `privateLinkConfiguration` block as defined below. PrivateLinkConfiguration SparkClusterPrivateLinkConfigurationPtrInput // Specifies the name of the Resource Group in which this HDInsight Spark Cluster should exist. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringInput // A `roles` block as defined below. Roles SparkClusterRolesInput // A `securityProfile` block as defined below. Changing this forces a new resource to be created. SecurityProfile SparkClusterSecurityProfilePtrInput // A `storageAccountGen2` block as defined below. StorageAccountGen2 SparkClusterStorageAccountGen2PtrInput // One or more `storageAccount` block as defined below. StorageAccounts SparkClusterStorageAccountArrayInput // A map of Tags which should be assigned to this HDInsight Spark Cluster. Tags pulumi.StringMapInput // Specifies the Tier which should be used for this HDInsight Spark Cluster. Possible values are `Standard` or `Premium`. Changing this forces a new resource to be created. Tier pulumi.StringInput // The minimal supported TLS version. Possible values are 1.0, 1.1 or 1.2. Changing this forces a new resource to be created. // // > **Note:** Starting on June 30, 2020, Azure HDInsight will enforce TLS 1.2 or later versions for all HTTPS connections. For more information, see [Azure HDInsight TLS 1.2 Enforcement](https://azure.microsoft.com/en-us/updates/azure-hdinsight-tls-12-enforcement/). TlsMinVersion pulumi.StringPtrInput // A list of Availability Zones which should be used for this HDInsight Spark Cluster. Changing this forces a new resource to be created. Zones pulumi.StringArrayInput } func (SparkClusterArgs) ElementType() reflect.Type { return reflect.TypeOf((*sparkClusterArgs)(nil)).Elem() } type SparkClusterInput interface { pulumi.Input ToSparkClusterOutput() SparkClusterOutput ToSparkClusterOutputWithContext(ctx context.Context) SparkClusterOutput } func (*SparkCluster) ElementType() reflect.Type { return reflect.TypeOf((**SparkCluster)(nil)).Elem() } func (i *SparkCluster) ToSparkClusterOutput() SparkClusterOutput { return i.ToSparkClusterOutputWithContext(context.Background()) } func (i *SparkCluster) ToSparkClusterOutputWithContext(ctx context.Context) SparkClusterOutput { return pulumi.ToOutputWithContext(ctx, i).(SparkClusterOutput) } // SparkClusterArrayInput is an input type that accepts SparkClusterArray and SparkClusterArrayOutput values. // You can construct a concrete instance of `SparkClusterArrayInput` via: // // SparkClusterArray{ SparkClusterArgs{...} } type SparkClusterArrayInput interface { pulumi.Input ToSparkClusterArrayOutput() SparkClusterArrayOutput ToSparkClusterArrayOutputWithContext(context.Context) SparkClusterArrayOutput } type SparkClusterArray []SparkClusterInput func (SparkClusterArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*SparkCluster)(nil)).Elem() } func (i SparkClusterArray) ToSparkClusterArrayOutput() SparkClusterArrayOutput { return i.ToSparkClusterArrayOutputWithContext(context.Background()) } func (i SparkClusterArray) ToSparkClusterArrayOutputWithContext(ctx context.Context) SparkClusterArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(SparkClusterArrayOutput) } // SparkClusterMapInput is an input type that accepts SparkClusterMap and SparkClusterMapOutput values. // You can construct a concrete instance of `SparkClusterMapInput` via: // // SparkClusterMap{ "key": SparkClusterArgs{...} } type SparkClusterMapInput interface { pulumi.Input ToSparkClusterMapOutput() SparkClusterMapOutput ToSparkClusterMapOutputWithContext(context.Context) SparkClusterMapOutput } type SparkClusterMap map[string]SparkClusterInput func (SparkClusterMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*SparkCluster)(nil)).Elem() } func (i SparkClusterMap) ToSparkClusterMapOutput() SparkClusterMapOutput { return i.ToSparkClusterMapOutputWithContext(context.Background()) } func (i SparkClusterMap) ToSparkClusterMapOutputWithContext(ctx context.Context) SparkClusterMapOutput { return pulumi.ToOutputWithContext(ctx, i).(SparkClusterMapOutput) } type SparkClusterOutput struct{ *pulumi.OutputState } func (SparkClusterOutput) ElementType() reflect.Type { return reflect.TypeOf((**SparkCluster)(nil)).Elem() } func (o SparkClusterOutput) ToSparkClusterOutput() SparkClusterOutput { return o } func (o SparkClusterOutput) ToSparkClusterOutputWithContext(ctx context.Context) SparkClusterOutput { return o } // Specifies the Version of HDInsights which should be used for this Cluster. Changing this forces a new resource to be created. func (o SparkClusterOutput) ClusterVersion() pulumi.StringOutput { return o.ApplyT(func(v *SparkCluster) pulumi.StringOutput { return v.ClusterVersion }).(pulumi.StringOutput) } // A `componentVersion` block as defined below. func (o SparkClusterOutput) ComponentVersion() SparkClusterComponentVersionOutput { return o.ApplyT(func(v *SparkCluster) SparkClusterComponentVersionOutput { return v.ComponentVersion }).(SparkClusterComponentVersionOutput) } // A `computeIsolation` block as defined below. func (o SparkClusterOutput) ComputeIsolation() SparkClusterComputeIsolationPtrOutput { return o.ApplyT(func(v *SparkCluster) SparkClusterComputeIsolationPtrOutput { return v.ComputeIsolation }).(SparkClusterComputeIsolationPtrOutput) } // One or more `diskEncryption` block as defined below. func (o SparkClusterOutput) DiskEncryptions() SparkClusterDiskEncryptionArrayOutput { return o.ApplyT(func(v *SparkCluster) SparkClusterDiskEncryptionArrayOutput { return v.DiskEncryptions }).(SparkClusterDiskEncryptionArrayOutput) } // Whether encryption in transit is enabled for this Cluster. Changing this forces a new resource to be created. func (o SparkClusterOutput) EncryptionInTransitEnabled() pulumi.BoolPtrOutput { return o.ApplyT(func(v *SparkCluster) pulumi.BoolPtrOutput { return v.EncryptionInTransitEnabled }).(pulumi.BoolPtrOutput) } // An `extension` block as defined below. func (o SparkClusterOutput) Extension() SparkClusterExtensionPtrOutput { return o.ApplyT(func(v *SparkCluster) SparkClusterExtensionPtrOutput { return v.Extension }).(SparkClusterExtensionPtrOutput) } // A `gateway` block as defined below. func (o SparkClusterOutput) Gateway() SparkClusterGatewayOutput { return o.ApplyT(func(v *SparkCluster) SparkClusterGatewayOutput { return v.Gateway }).(SparkClusterGatewayOutput) } // The HTTPS Connectivity Endpoint for this HDInsight Spark Cluster. func (o SparkClusterOutput) HttpsEndpoint() pulumi.StringOutput { return o.ApplyT(func(v *SparkCluster) pulumi.StringOutput { return v.HttpsEndpoint }).(pulumi.StringOutput) } // Specifies the Azure Region which this HDInsight Spark Cluster should exist. Changing this forces a new resource to be created. func (o SparkClusterOutput) Location() pulumi.StringOutput { return o.ApplyT(func(v *SparkCluster) pulumi.StringOutput { return v.Location }).(pulumi.StringOutput) } // A `metastores` block as defined below. func (o SparkClusterOutput) Metastores() SparkClusterMetastoresPtrOutput { return o.ApplyT(func(v *SparkCluster) SparkClusterMetastoresPtrOutput { return v.Metastores }).(SparkClusterMetastoresPtrOutput) } // A `monitor` block as defined below. func (o SparkClusterOutput) Monitor() SparkClusterMonitorPtrOutput { return o.ApplyT(func(v *SparkCluster) SparkClusterMonitorPtrOutput { return v.Monitor }).(SparkClusterMonitorPtrOutput) } // Specifies the name for this HDInsight Spark Cluster. Changing this forces a new resource to be created. func (o SparkClusterOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *SparkCluster) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // A `network` block as defined below. func (o SparkClusterOutput) Network() SparkClusterNetworkPtrOutput { return o.ApplyT(func(v *SparkCluster) SparkClusterNetworkPtrOutput { return v.Network }).(SparkClusterNetworkPtrOutput) } // A `privateLinkConfiguration` block as defined below. func (o SparkClusterOutput) PrivateLinkConfiguration() SparkClusterPrivateLinkConfigurationPtrOutput { return o.ApplyT(func(v *SparkCluster) SparkClusterPrivateLinkConfigurationPtrOutput { return v.PrivateLinkConfiguration }).(SparkClusterPrivateLinkConfigurationPtrOutput) } // Specifies the name of the Resource Group in which this HDInsight Spark Cluster should exist. Changing this forces a new resource to be created. func (o SparkClusterOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v *SparkCluster) pulumi.StringOutput { return v.ResourceGroupName }).(pulumi.StringOutput) } // A `roles` block as defined below. func (o SparkClusterOutput) Roles() SparkClusterRolesOutput { return o.ApplyT(func(v *SparkCluster) SparkClusterRolesOutput { return v.Roles }).(SparkClusterRolesOutput) } // A `securityProfile` block as defined below. Changing this forces a new resource to be created. func (o SparkClusterOutput) SecurityProfile() SparkClusterSecurityProfilePtrOutput { return o.ApplyT(func(v *SparkCluster) SparkClusterSecurityProfilePtrOutput { return v.SecurityProfile }).(SparkClusterSecurityProfilePtrOutput) } // The SSH Connectivity Endpoint for this HDInsight Spark Cluster. func (o SparkClusterOutput) SshEndpoint() pulumi.StringOutput { return o.ApplyT(func(v *SparkCluster) pulumi.StringOutput { return v.SshEndpoint }).(pulumi.StringOutput) } // A `storageAccountGen2` block as defined below. func (o SparkClusterOutput) StorageAccountGen2() SparkClusterStorageAccountGen2PtrOutput { return o.ApplyT(func(v *SparkCluster) SparkClusterStorageAccountGen2PtrOutput { return v.StorageAccountGen2 }).(SparkClusterStorageAccountGen2PtrOutput) } // One or more `storageAccount` block as defined below. func (o SparkClusterOutput) StorageAccounts() SparkClusterStorageAccountArrayOutput { return o.ApplyT(func(v *SparkCluster) SparkClusterStorageAccountArrayOutput { return v.StorageAccounts }).(SparkClusterStorageAccountArrayOutput) } // A map of Tags which should be assigned to this HDInsight Spark Cluster. func (o SparkClusterOutput) Tags() pulumi.StringMapOutput { return o.ApplyT(func(v *SparkCluster) pulumi.StringMapOutput { return v.Tags }).(pulumi.StringMapOutput) } // Specifies the Tier which should be used for this HDInsight Spark Cluster. Possible values are `Standard` or `Premium`. Changing this forces a new resource to be created. func (o SparkClusterOutput) Tier() pulumi.StringOutput { return o.ApplyT(func(v *SparkCluster) pulumi.StringOutput { return v.Tier }).(pulumi.StringOutput) } // The minimal supported TLS version. Possible values are 1.0, 1.1 or 1.2. Changing this forces a new resource to be created. // // > **Note:** Starting on June 30, 2020, Azure HDInsight will enforce TLS 1.2 or later versions for all HTTPS connections. For more information, see [Azure HDInsight TLS 1.2 Enforcement](https://azure.microsoft.com/en-us/updates/azure-hdinsight-tls-12-enforcement/). func (o SparkClusterOutput) TlsMinVersion() pulumi.StringPtrOutput { return o.ApplyT(func(v *SparkCluster) pulumi.StringPtrOutput { return v.TlsMinVersion }).(pulumi.StringPtrOutput) }
go
Apache-2.0
b66e1472775a89cca43f5050fef806854a7c3fa3
2026-01-07T09:44:27.619514Z
true
pulumi/pulumi-azure
https://github.com/pulumi/pulumi-azure/blob/b66e1472775a89cca43f5050fef806854a7c3fa3/sdk/go/azure/hdinsight/hadoopCluster.go
sdk/go/azure/hdinsight/hadoopCluster.go
// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package hdinsight import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a HDInsight Hadoop Cluster. // // ## 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/hdinsight" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/storage" // "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-resources"), // Location: pulumi.String("West Europe"), // }) // if err != nil { // return err // } // exampleAccount, err := storage.NewAccount(ctx, "example", &storage.AccountArgs{ // Name: pulumi.String("hdinsightstor"), // ResourceGroupName: example.Name, // Location: example.Location, // AccountTier: pulumi.String("Standard"), // AccountReplicationType: pulumi.String("LRS"), // }) // if err != nil { // return err // } // exampleContainer, err := storage.NewContainer(ctx, "example", &storage.ContainerArgs{ // Name: pulumi.String("hdinsight"), // StorageAccountName: exampleAccount.Name, // ContainerAccessType: pulumi.String("private"), // }) // if err != nil { // return err // } // _, err = hdinsight.NewHadoopCluster(ctx, "example", &hdinsight.HadoopClusterArgs{ // Name: pulumi.String("example-hdicluster"), // ResourceGroupName: example.Name, // Location: example.Location, // ClusterVersion: pulumi.String("3.6"), // Tier: pulumi.String("Standard"), // ComponentVersion: &hdinsight.HadoopClusterComponentVersionArgs{ // Hadoop: pulumi.String("2.7"), // }, // Gateway: &hdinsight.HadoopClusterGatewayArgs{ // Username: pulumi.String("acctestusrgw"), // Password: pulumi.String("PAssword123!"), // }, // StorageAccounts: hdinsight.HadoopClusterStorageAccountArray{ // &hdinsight.HadoopClusterStorageAccountArgs{ // StorageContainerId: exampleContainer.ID(), // StorageAccountKey: exampleAccount.PrimaryAccessKey, // IsDefault: pulumi.Bool(true), // }, // }, // Roles: &hdinsight.HadoopClusterRolesArgs{ // HeadNode: &hdinsight.HadoopClusterRolesHeadNodeArgs{ // VmSize: pulumi.String("Standard_D3_V2"), // Username: pulumi.String("acctestusrvm"), // Password: pulumi.String("AccTestvdSC4daf986!"), // }, // WorkerNode: &hdinsight.HadoopClusterRolesWorkerNodeArgs{ // VmSize: pulumi.String("Standard_D4_V2"), // Username: pulumi.String("acctestusrvm"), // Password: pulumi.String("AccTestvdSC4daf986!"), // TargetInstanceCount: pulumi.Int(3), // }, // ZookeeperNode: &hdinsight.HadoopClusterRolesZookeeperNodeArgs{ // VmSize: pulumi.String("Standard_D3_V2"), // Username: pulumi.String("acctestusrvm"), // Password: pulumi.String("AccTestvdSC4daf986!"), // }, // }, // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## API Providers // // <!-- This section is generated, changes will be overwritten --> // This resource uses the following Azure API Providers: // // * `Microsoft.HDInsight` - 2021-06-01 // // ## Import // // HDInsight Hadoop Clusters can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:hdinsight/hadoopCluster:HadoopCluster example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.HDInsight/clusters/cluster1 // ``` type HadoopCluster struct { pulumi.CustomResourceState // Specifies the Version of HDInsights which should be used for this Cluster. Changing this forces a new resource to be created. ClusterVersion pulumi.StringOutput `pulumi:"clusterVersion"` // A `componentVersion` block as defined below. ComponentVersion HadoopClusterComponentVersionOutput `pulumi:"componentVersion"` // A `computeIsolation` block as defined below. ComputeIsolation HadoopClusterComputeIsolationPtrOutput `pulumi:"computeIsolation"` // One or more `diskEncryption` block as defined below. DiskEncryptions HadoopClusterDiskEncryptionArrayOutput `pulumi:"diskEncryptions"` // An `extension` block as defined below. Extension HadoopClusterExtensionPtrOutput `pulumi:"extension"` // A `gateway` block as defined below. Gateway HadoopClusterGatewayOutput `pulumi:"gateway"` // The HTTPS Connectivity Endpoint for this HDInsight Hadoop Cluster. HttpsEndpoint pulumi.StringOutput `pulumi:"httpsEndpoint"` // Specifies the Azure Region which this HDInsight Hadoop Cluster should exist. Changing this forces a new resource to be created. Location pulumi.StringOutput `pulumi:"location"` // A `metastores` block as defined below. Metastores HadoopClusterMetastoresPtrOutput `pulumi:"metastores"` // A `monitor` block as defined below. Monitor HadoopClusterMonitorPtrOutput `pulumi:"monitor"` // Specifies the name for this HDInsight Hadoop Cluster. Changing this forces a new resource to be created. Name pulumi.StringOutput `pulumi:"name"` // A `network` block as defined below. Network HadoopClusterNetworkPtrOutput `pulumi:"network"` // A `privateLinkConfiguration` block as defined below. PrivateLinkConfiguration HadoopClusterPrivateLinkConfigurationPtrOutput `pulumi:"privateLinkConfiguration"` // Specifies the name of the Resource Group in which this HDInsight Hadoop Cluster should exist. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // A `roles` block as defined below. Roles HadoopClusterRolesOutput `pulumi:"roles"` // A `securityProfile` block as defined below. Changing this forces a new resource to be created. SecurityProfile HadoopClusterSecurityProfilePtrOutput `pulumi:"securityProfile"` // The SSH Connectivity Endpoint for this HDInsight Hadoop Cluster. SshEndpoint pulumi.StringOutput `pulumi:"sshEndpoint"` // A `storageAccountGen2` block as defined below. StorageAccountGen2 HadoopClusterStorageAccountGen2PtrOutput `pulumi:"storageAccountGen2"` // One or more `storageAccount` block as defined below. StorageAccounts HadoopClusterStorageAccountArrayOutput `pulumi:"storageAccounts"` // A map of Tags which should be assigned to this HDInsight Hadoop Cluster. Tags pulumi.StringMapOutput `pulumi:"tags"` // Specifies the Tier which should be used for this HDInsight Hadoop Cluster. Possible values are `Standard` or `Premium`. Changing this forces a new resource to be created. Tier pulumi.StringOutput `pulumi:"tier"` // The minimal supported TLS version. Possible values are 1.0, 1.1 or 1.2. Changing this forces a new resource to be created. // // > **Note:** Starting on June 30, 2020, Azure HDInsight will enforce TLS 1.2 or later versions for all HTTPS connections. For more information, see [Azure HDInsight TLS 1.2 Enforcement](https://azure.microsoft.com/en-us/updates/azure-hdinsight-tls-12-enforcement/). TlsMinVersion pulumi.StringPtrOutput `pulumi:"tlsMinVersion"` } // NewHadoopCluster registers a new resource with the given unique name, arguments, and options. func NewHadoopCluster(ctx *pulumi.Context, name string, args *HadoopClusterArgs, opts ...pulumi.ResourceOption) (*HadoopCluster, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.ClusterVersion == nil { return nil, errors.New("invalid value for required argument 'ClusterVersion'") } if args.ComponentVersion == nil { return nil, errors.New("invalid value for required argument 'ComponentVersion'") } if args.Gateway == nil { return nil, errors.New("invalid value for required argument 'Gateway'") } if args.ResourceGroupName == nil { return nil, errors.New("invalid value for required argument 'ResourceGroupName'") } if args.Roles == nil { return nil, errors.New("invalid value for required argument 'Roles'") } if args.Tier == nil { return nil, errors.New("invalid value for required argument 'Tier'") } opts = internal.PkgResourceDefaultOpts(opts) var resource HadoopCluster err := ctx.RegisterResource("azure:hdinsight/hadoopCluster:HadoopCluster", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetHadoopCluster gets an existing HadoopCluster 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 GetHadoopCluster(ctx *pulumi.Context, name string, id pulumi.IDInput, state *HadoopClusterState, opts ...pulumi.ResourceOption) (*HadoopCluster, error) { var resource HadoopCluster err := ctx.ReadResource("azure:hdinsight/hadoopCluster:HadoopCluster", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering HadoopCluster resources. type hadoopClusterState struct { // Specifies the Version of HDInsights which should be used for this Cluster. Changing this forces a new resource to be created. ClusterVersion *string `pulumi:"clusterVersion"` // A `componentVersion` block as defined below. ComponentVersion *HadoopClusterComponentVersion `pulumi:"componentVersion"` // A `computeIsolation` block as defined below. ComputeIsolation *HadoopClusterComputeIsolation `pulumi:"computeIsolation"` // One or more `diskEncryption` block as defined below. DiskEncryptions []HadoopClusterDiskEncryption `pulumi:"diskEncryptions"` // An `extension` block as defined below. Extension *HadoopClusterExtension `pulumi:"extension"` // A `gateway` block as defined below. Gateway *HadoopClusterGateway `pulumi:"gateway"` // The HTTPS Connectivity Endpoint for this HDInsight Hadoop Cluster. HttpsEndpoint *string `pulumi:"httpsEndpoint"` // Specifies the Azure Region which this HDInsight Hadoop Cluster should exist. Changing this forces a new resource to be created. Location *string `pulumi:"location"` // A `metastores` block as defined below. Metastores *HadoopClusterMetastores `pulumi:"metastores"` // A `monitor` block as defined below. Monitor *HadoopClusterMonitor `pulumi:"monitor"` // Specifies the name for this HDInsight Hadoop Cluster. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // A `network` block as defined below. Network *HadoopClusterNetwork `pulumi:"network"` // A `privateLinkConfiguration` block as defined below. PrivateLinkConfiguration *HadoopClusterPrivateLinkConfiguration `pulumi:"privateLinkConfiguration"` // Specifies the name of the Resource Group in which this HDInsight Hadoop Cluster should exist. Changing this forces a new resource to be created. ResourceGroupName *string `pulumi:"resourceGroupName"` // A `roles` block as defined below. Roles *HadoopClusterRoles `pulumi:"roles"` // A `securityProfile` block as defined below. Changing this forces a new resource to be created. SecurityProfile *HadoopClusterSecurityProfile `pulumi:"securityProfile"` // The SSH Connectivity Endpoint for this HDInsight Hadoop Cluster. SshEndpoint *string `pulumi:"sshEndpoint"` // A `storageAccountGen2` block as defined below. StorageAccountGen2 *HadoopClusterStorageAccountGen2 `pulumi:"storageAccountGen2"` // One or more `storageAccount` block as defined below. StorageAccounts []HadoopClusterStorageAccount `pulumi:"storageAccounts"` // A map of Tags which should be assigned to this HDInsight Hadoop Cluster. Tags map[string]string `pulumi:"tags"` // Specifies the Tier which should be used for this HDInsight Hadoop Cluster. Possible values are `Standard` or `Premium`. Changing this forces a new resource to be created. Tier *string `pulumi:"tier"` // The minimal supported TLS version. Possible values are 1.0, 1.1 or 1.2. Changing this forces a new resource to be created. // // > **Note:** Starting on June 30, 2020, Azure HDInsight will enforce TLS 1.2 or later versions for all HTTPS connections. For more information, see [Azure HDInsight TLS 1.2 Enforcement](https://azure.microsoft.com/en-us/updates/azure-hdinsight-tls-12-enforcement/). TlsMinVersion *string `pulumi:"tlsMinVersion"` } type HadoopClusterState struct { // Specifies the Version of HDInsights which should be used for this Cluster. Changing this forces a new resource to be created. ClusterVersion pulumi.StringPtrInput // A `componentVersion` block as defined below. ComponentVersion HadoopClusterComponentVersionPtrInput // A `computeIsolation` block as defined below. ComputeIsolation HadoopClusterComputeIsolationPtrInput // One or more `diskEncryption` block as defined below. DiskEncryptions HadoopClusterDiskEncryptionArrayInput // An `extension` block as defined below. Extension HadoopClusterExtensionPtrInput // A `gateway` block as defined below. Gateway HadoopClusterGatewayPtrInput // The HTTPS Connectivity Endpoint for this HDInsight Hadoop Cluster. HttpsEndpoint pulumi.StringPtrInput // Specifies the Azure Region which this HDInsight Hadoop Cluster should exist. Changing this forces a new resource to be created. Location pulumi.StringPtrInput // A `metastores` block as defined below. Metastores HadoopClusterMetastoresPtrInput // A `monitor` block as defined below. Monitor HadoopClusterMonitorPtrInput // Specifies the name for this HDInsight Hadoop Cluster. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // A `network` block as defined below. Network HadoopClusterNetworkPtrInput // A `privateLinkConfiguration` block as defined below. PrivateLinkConfiguration HadoopClusterPrivateLinkConfigurationPtrInput // Specifies the name of the Resource Group in which this HDInsight Hadoop Cluster should exist. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringPtrInput // A `roles` block as defined below. Roles HadoopClusterRolesPtrInput // A `securityProfile` block as defined below. Changing this forces a new resource to be created. SecurityProfile HadoopClusterSecurityProfilePtrInput // The SSH Connectivity Endpoint for this HDInsight Hadoop Cluster. SshEndpoint pulumi.StringPtrInput // A `storageAccountGen2` block as defined below. StorageAccountGen2 HadoopClusterStorageAccountGen2PtrInput // One or more `storageAccount` block as defined below. StorageAccounts HadoopClusterStorageAccountArrayInput // A map of Tags which should be assigned to this HDInsight Hadoop Cluster. Tags pulumi.StringMapInput // Specifies the Tier which should be used for this HDInsight Hadoop Cluster. Possible values are `Standard` or `Premium`. Changing this forces a new resource to be created. Tier pulumi.StringPtrInput // The minimal supported TLS version. Possible values are 1.0, 1.1 or 1.2. Changing this forces a new resource to be created. // // > **Note:** Starting on June 30, 2020, Azure HDInsight will enforce TLS 1.2 or later versions for all HTTPS connections. For more information, see [Azure HDInsight TLS 1.2 Enforcement](https://azure.microsoft.com/en-us/updates/azure-hdinsight-tls-12-enforcement/). TlsMinVersion pulumi.StringPtrInput } func (HadoopClusterState) ElementType() reflect.Type { return reflect.TypeOf((*hadoopClusterState)(nil)).Elem() } type hadoopClusterArgs struct { // Specifies the Version of HDInsights which should be used for this Cluster. Changing this forces a new resource to be created. ClusterVersion string `pulumi:"clusterVersion"` // A `componentVersion` block as defined below. ComponentVersion HadoopClusterComponentVersion `pulumi:"componentVersion"` // A `computeIsolation` block as defined below. ComputeIsolation *HadoopClusterComputeIsolation `pulumi:"computeIsolation"` // One or more `diskEncryption` block as defined below. DiskEncryptions []HadoopClusterDiskEncryption `pulumi:"diskEncryptions"` // An `extension` block as defined below. Extension *HadoopClusterExtension `pulumi:"extension"` // A `gateway` block as defined below. Gateway HadoopClusterGateway `pulumi:"gateway"` // Specifies the Azure Region which this HDInsight Hadoop Cluster should exist. Changing this forces a new resource to be created. Location *string `pulumi:"location"` // A `metastores` block as defined below. Metastores *HadoopClusterMetastores `pulumi:"metastores"` // A `monitor` block as defined below. Monitor *HadoopClusterMonitor `pulumi:"monitor"` // Specifies the name for this HDInsight Hadoop Cluster. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // A `network` block as defined below. Network *HadoopClusterNetwork `pulumi:"network"` // A `privateLinkConfiguration` block as defined below. PrivateLinkConfiguration *HadoopClusterPrivateLinkConfiguration `pulumi:"privateLinkConfiguration"` // Specifies the name of the Resource Group in which this HDInsight Hadoop Cluster should exist. Changing this forces a new resource to be created. ResourceGroupName string `pulumi:"resourceGroupName"` // A `roles` block as defined below. Roles HadoopClusterRoles `pulumi:"roles"` // A `securityProfile` block as defined below. Changing this forces a new resource to be created. SecurityProfile *HadoopClusterSecurityProfile `pulumi:"securityProfile"` // A `storageAccountGen2` block as defined below. StorageAccountGen2 *HadoopClusterStorageAccountGen2 `pulumi:"storageAccountGen2"` // One or more `storageAccount` block as defined below. StorageAccounts []HadoopClusterStorageAccount `pulumi:"storageAccounts"` // A map of Tags which should be assigned to this HDInsight Hadoop Cluster. Tags map[string]string `pulumi:"tags"` // Specifies the Tier which should be used for this HDInsight Hadoop Cluster. Possible values are `Standard` or `Premium`. Changing this forces a new resource to be created. Tier string `pulumi:"tier"` // The minimal supported TLS version. Possible values are 1.0, 1.1 or 1.2. Changing this forces a new resource to be created. // // > **Note:** Starting on June 30, 2020, Azure HDInsight will enforce TLS 1.2 or later versions for all HTTPS connections. For more information, see [Azure HDInsight TLS 1.2 Enforcement](https://azure.microsoft.com/en-us/updates/azure-hdinsight-tls-12-enforcement/). TlsMinVersion *string `pulumi:"tlsMinVersion"` } // The set of arguments for constructing a HadoopCluster resource. type HadoopClusterArgs struct { // Specifies the Version of HDInsights which should be used for this Cluster. Changing this forces a new resource to be created. ClusterVersion pulumi.StringInput // A `componentVersion` block as defined below. ComponentVersion HadoopClusterComponentVersionInput // A `computeIsolation` block as defined below. ComputeIsolation HadoopClusterComputeIsolationPtrInput // One or more `diskEncryption` block as defined below. DiskEncryptions HadoopClusterDiskEncryptionArrayInput // An `extension` block as defined below. Extension HadoopClusterExtensionPtrInput // A `gateway` block as defined below. Gateway HadoopClusterGatewayInput // Specifies the Azure Region which this HDInsight Hadoop Cluster should exist. Changing this forces a new resource to be created. Location pulumi.StringPtrInput // A `metastores` block as defined below. Metastores HadoopClusterMetastoresPtrInput // A `monitor` block as defined below. Monitor HadoopClusterMonitorPtrInput // Specifies the name for this HDInsight Hadoop Cluster. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // A `network` block as defined below. Network HadoopClusterNetworkPtrInput // A `privateLinkConfiguration` block as defined below. PrivateLinkConfiguration HadoopClusterPrivateLinkConfigurationPtrInput // Specifies the name of the Resource Group in which this HDInsight Hadoop Cluster should exist. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringInput // A `roles` block as defined below. Roles HadoopClusterRolesInput // A `securityProfile` block as defined below. Changing this forces a new resource to be created. SecurityProfile HadoopClusterSecurityProfilePtrInput // A `storageAccountGen2` block as defined below. StorageAccountGen2 HadoopClusterStorageAccountGen2PtrInput // One or more `storageAccount` block as defined below. StorageAccounts HadoopClusterStorageAccountArrayInput // A map of Tags which should be assigned to this HDInsight Hadoop Cluster. Tags pulumi.StringMapInput // Specifies the Tier which should be used for this HDInsight Hadoop Cluster. Possible values are `Standard` or `Premium`. Changing this forces a new resource to be created. Tier pulumi.StringInput // The minimal supported TLS version. Possible values are 1.0, 1.1 or 1.2. Changing this forces a new resource to be created. // // > **Note:** Starting on June 30, 2020, Azure HDInsight will enforce TLS 1.2 or later versions for all HTTPS connections. For more information, see [Azure HDInsight TLS 1.2 Enforcement](https://azure.microsoft.com/en-us/updates/azure-hdinsight-tls-12-enforcement/). TlsMinVersion pulumi.StringPtrInput } func (HadoopClusterArgs) ElementType() reflect.Type { return reflect.TypeOf((*hadoopClusterArgs)(nil)).Elem() } type HadoopClusterInput interface { pulumi.Input ToHadoopClusterOutput() HadoopClusterOutput ToHadoopClusterOutputWithContext(ctx context.Context) HadoopClusterOutput } func (*HadoopCluster) ElementType() reflect.Type { return reflect.TypeOf((**HadoopCluster)(nil)).Elem() } func (i *HadoopCluster) ToHadoopClusterOutput() HadoopClusterOutput { return i.ToHadoopClusterOutputWithContext(context.Background()) } func (i *HadoopCluster) ToHadoopClusterOutputWithContext(ctx context.Context) HadoopClusterOutput { return pulumi.ToOutputWithContext(ctx, i).(HadoopClusterOutput) } // HadoopClusterArrayInput is an input type that accepts HadoopClusterArray and HadoopClusterArrayOutput values. // You can construct a concrete instance of `HadoopClusterArrayInput` via: // // HadoopClusterArray{ HadoopClusterArgs{...} } type HadoopClusterArrayInput interface { pulumi.Input ToHadoopClusterArrayOutput() HadoopClusterArrayOutput ToHadoopClusterArrayOutputWithContext(context.Context) HadoopClusterArrayOutput } type HadoopClusterArray []HadoopClusterInput func (HadoopClusterArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*HadoopCluster)(nil)).Elem() } func (i HadoopClusterArray) ToHadoopClusterArrayOutput() HadoopClusterArrayOutput { return i.ToHadoopClusterArrayOutputWithContext(context.Background()) } func (i HadoopClusterArray) ToHadoopClusterArrayOutputWithContext(ctx context.Context) HadoopClusterArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(HadoopClusterArrayOutput) } // HadoopClusterMapInput is an input type that accepts HadoopClusterMap and HadoopClusterMapOutput values. // You can construct a concrete instance of `HadoopClusterMapInput` via: // // HadoopClusterMap{ "key": HadoopClusterArgs{...} } type HadoopClusterMapInput interface { pulumi.Input ToHadoopClusterMapOutput() HadoopClusterMapOutput ToHadoopClusterMapOutputWithContext(context.Context) HadoopClusterMapOutput } type HadoopClusterMap map[string]HadoopClusterInput func (HadoopClusterMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*HadoopCluster)(nil)).Elem() } func (i HadoopClusterMap) ToHadoopClusterMapOutput() HadoopClusterMapOutput { return i.ToHadoopClusterMapOutputWithContext(context.Background()) } func (i HadoopClusterMap) ToHadoopClusterMapOutputWithContext(ctx context.Context) HadoopClusterMapOutput { return pulumi.ToOutputWithContext(ctx, i).(HadoopClusterMapOutput) } type HadoopClusterOutput struct{ *pulumi.OutputState } func (HadoopClusterOutput) ElementType() reflect.Type { return reflect.TypeOf((**HadoopCluster)(nil)).Elem() } func (o HadoopClusterOutput) ToHadoopClusterOutput() HadoopClusterOutput { return o } func (o HadoopClusterOutput) ToHadoopClusterOutputWithContext(ctx context.Context) HadoopClusterOutput { return o } // Specifies the Version of HDInsights which should be used for this Cluster. Changing this forces a new resource to be created. func (o HadoopClusterOutput) ClusterVersion() pulumi.StringOutput { return o.ApplyT(func(v *HadoopCluster) pulumi.StringOutput { return v.ClusterVersion }).(pulumi.StringOutput) } // A `componentVersion` block as defined below. func (o HadoopClusterOutput) ComponentVersion() HadoopClusterComponentVersionOutput { return o.ApplyT(func(v *HadoopCluster) HadoopClusterComponentVersionOutput { return v.ComponentVersion }).(HadoopClusterComponentVersionOutput) } // A `computeIsolation` block as defined below. func (o HadoopClusterOutput) ComputeIsolation() HadoopClusterComputeIsolationPtrOutput { return o.ApplyT(func(v *HadoopCluster) HadoopClusterComputeIsolationPtrOutput { return v.ComputeIsolation }).(HadoopClusterComputeIsolationPtrOutput) } // One or more `diskEncryption` block as defined below. func (o HadoopClusterOutput) DiskEncryptions() HadoopClusterDiskEncryptionArrayOutput { return o.ApplyT(func(v *HadoopCluster) HadoopClusterDiskEncryptionArrayOutput { return v.DiskEncryptions }).(HadoopClusterDiskEncryptionArrayOutput) } // An `extension` block as defined below. func (o HadoopClusterOutput) Extension() HadoopClusterExtensionPtrOutput { return o.ApplyT(func(v *HadoopCluster) HadoopClusterExtensionPtrOutput { return v.Extension }).(HadoopClusterExtensionPtrOutput) } // A `gateway` block as defined below. func (o HadoopClusterOutput) Gateway() HadoopClusterGatewayOutput { return o.ApplyT(func(v *HadoopCluster) HadoopClusterGatewayOutput { return v.Gateway }).(HadoopClusterGatewayOutput) } // The HTTPS Connectivity Endpoint for this HDInsight Hadoop Cluster. func (o HadoopClusterOutput) HttpsEndpoint() pulumi.StringOutput { return o.ApplyT(func(v *HadoopCluster) pulumi.StringOutput { return v.HttpsEndpoint }).(pulumi.StringOutput) } // Specifies the Azure Region which this HDInsight Hadoop Cluster should exist. Changing this forces a new resource to be created. func (o HadoopClusterOutput) Location() pulumi.StringOutput { return o.ApplyT(func(v *HadoopCluster) pulumi.StringOutput { return v.Location }).(pulumi.StringOutput) } // A `metastores` block as defined below. func (o HadoopClusterOutput) Metastores() HadoopClusterMetastoresPtrOutput { return o.ApplyT(func(v *HadoopCluster) HadoopClusterMetastoresPtrOutput { return v.Metastores }).(HadoopClusterMetastoresPtrOutput) } // A `monitor` block as defined below. func (o HadoopClusterOutput) Monitor() HadoopClusterMonitorPtrOutput { return o.ApplyT(func(v *HadoopCluster) HadoopClusterMonitorPtrOutput { return v.Monitor }).(HadoopClusterMonitorPtrOutput) } // Specifies the name for this HDInsight Hadoop Cluster. Changing this forces a new resource to be created. func (o HadoopClusterOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *HadoopCluster) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // A `network` block as defined below. func (o HadoopClusterOutput) Network() HadoopClusterNetworkPtrOutput { return o.ApplyT(func(v *HadoopCluster) HadoopClusterNetworkPtrOutput { return v.Network }).(HadoopClusterNetworkPtrOutput) } // A `privateLinkConfiguration` block as defined below. func (o HadoopClusterOutput) PrivateLinkConfiguration() HadoopClusterPrivateLinkConfigurationPtrOutput { return o.ApplyT(func(v *HadoopCluster) HadoopClusterPrivateLinkConfigurationPtrOutput { return v.PrivateLinkConfiguration }).(HadoopClusterPrivateLinkConfigurationPtrOutput) } // Specifies the name of the Resource Group in which this HDInsight Hadoop Cluster should exist. Changing this forces a new resource to be created. func (o HadoopClusterOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v *HadoopCluster) pulumi.StringOutput { return v.ResourceGroupName }).(pulumi.StringOutput) } // A `roles` block as defined below. func (o HadoopClusterOutput) Roles() HadoopClusterRolesOutput { return o.ApplyT(func(v *HadoopCluster) HadoopClusterRolesOutput { return v.Roles }).(HadoopClusterRolesOutput) } // A `securityProfile` block as defined below. Changing this forces a new resource to be created. func (o HadoopClusterOutput) SecurityProfile() HadoopClusterSecurityProfilePtrOutput { return o.ApplyT(func(v *HadoopCluster) HadoopClusterSecurityProfilePtrOutput { return v.SecurityProfile }).(HadoopClusterSecurityProfilePtrOutput) } // The SSH Connectivity Endpoint for this HDInsight Hadoop Cluster. func (o HadoopClusterOutput) SshEndpoint() pulumi.StringOutput { return o.ApplyT(func(v *HadoopCluster) pulumi.StringOutput { return v.SshEndpoint }).(pulumi.StringOutput) } // A `storageAccountGen2` block as defined below. func (o HadoopClusterOutput) StorageAccountGen2() HadoopClusterStorageAccountGen2PtrOutput { return o.ApplyT(func(v *HadoopCluster) HadoopClusterStorageAccountGen2PtrOutput { return v.StorageAccountGen2 }).(HadoopClusterStorageAccountGen2PtrOutput) } // One or more `storageAccount` block as defined below. func (o HadoopClusterOutput) StorageAccounts() HadoopClusterStorageAccountArrayOutput { return o.ApplyT(func(v *HadoopCluster) HadoopClusterStorageAccountArrayOutput { return v.StorageAccounts }).(HadoopClusterStorageAccountArrayOutput) } // A map of Tags which should be assigned to this HDInsight Hadoop Cluster. func (o HadoopClusterOutput) Tags() pulumi.StringMapOutput { return o.ApplyT(func(v *HadoopCluster) pulumi.StringMapOutput { return v.Tags }).(pulumi.StringMapOutput) } // Specifies the Tier which should be used for this HDInsight Hadoop Cluster. Possible values are `Standard` or `Premium`. Changing this forces a new resource to be created. func (o HadoopClusterOutput) Tier() pulumi.StringOutput { return o.ApplyT(func(v *HadoopCluster) pulumi.StringOutput { return v.Tier }).(pulumi.StringOutput) } // The minimal supported TLS version. Possible values are 1.0, 1.1 or 1.2. Changing this forces a new resource to be created. // // > **Note:** Starting on June 30, 2020, Azure HDInsight will enforce TLS 1.2 or later versions for all HTTPS connections. For more information, see [Azure HDInsight TLS 1.2 Enforcement](https://azure.microsoft.com/en-us/updates/azure-hdinsight-tls-12-enforcement/). func (o HadoopClusterOutput) TlsMinVersion() pulumi.StringPtrOutput { return o.ApplyT(func(v *HadoopCluster) pulumi.StringPtrOutput { return v.TlsMinVersion }).(pulumi.StringPtrOutput) } type HadoopClusterArrayOutput struct{ *pulumi.OutputState } func (HadoopClusterArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*HadoopCluster)(nil)).Elem() } func (o HadoopClusterArrayOutput) ToHadoopClusterArrayOutput() HadoopClusterArrayOutput { return o } func (o HadoopClusterArrayOutput) ToHadoopClusterArrayOutputWithContext(ctx context.Context) HadoopClusterArrayOutput { return o } func (o HadoopClusterArrayOutput) Index(i pulumi.IntInput) HadoopClusterOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *HadoopCluster { return vs[0].([]*HadoopCluster)[vs[1].(int)] }).(HadoopClusterOutput) } type HadoopClusterMapOutput struct{ *pulumi.OutputState } func (HadoopClusterMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*HadoopCluster)(nil)).Elem() } func (o HadoopClusterMapOutput) ToHadoopClusterMapOutput() HadoopClusterMapOutput { return o } func (o HadoopClusterMapOutput) ToHadoopClusterMapOutputWithContext(ctx context.Context) HadoopClusterMapOutput { return o } func (o HadoopClusterMapOutput) MapIndex(k pulumi.StringInput) HadoopClusterOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *HadoopCluster { return vs[0].(map[string]*HadoopCluster)[vs[1].(string)] }).(HadoopClusterOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*HadoopClusterInput)(nil)).Elem(), &HadoopCluster{}) pulumi.RegisterInputType(reflect.TypeOf((*HadoopClusterArrayInput)(nil)).Elem(), HadoopClusterArray{}) pulumi.RegisterInputType(reflect.TypeOf((*HadoopClusterMapInput)(nil)).Elem(), HadoopClusterMap{}) pulumi.RegisterOutputType(HadoopClusterOutput{}) pulumi.RegisterOutputType(HadoopClusterArrayOutput{}) pulumi.RegisterOutputType(HadoopClusterMapOutput{}) }
go
Apache-2.0
b66e1472775a89cca43f5050fef806854a7c3fa3
2026-01-07T09:44:27.619514Z
false
pulumi/pulumi-azure
https://github.com/pulumi/pulumi-azure/blob/b66e1472775a89cca43f5050fef806854a7c3fa3/sdk/go/azure/hdinsight/getCluster.go
sdk/go/azure/hdinsight/getCluster.go
// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package hdinsight import ( "context" "reflect" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Use this data source to access information about an existing HDInsight Cluster. // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/hdinsight" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { // example, err := hdinsight.GetCluster(ctx, &hdinsight.GetClusterArgs{ // Name: "example", // ResourceGroupName: "example-resources", // }, nil) // if err != nil { // return err // } // ctx.Export("httpsEndpoint", example.HttpsEndpoint) // ctx.Export("clusterId", example.ClusterId) // return nil // }) // } // // ``` // // ## API Providers // // <!-- This section is generated, changes will be overwritten --> // This data source uses the following Azure API Providers: // // * `Microsoft.HDInsight` - 2021-06-01 func GetCluster(ctx *pulumi.Context, args *GetClusterArgs, opts ...pulumi.InvokeOption) (*GetClusterResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv GetClusterResult err := ctx.Invoke("azure:hdinsight/getCluster:getCluster", args, &rv, opts...) if err != nil { return nil, err } return &rv, nil } // A collection of arguments for invoking getCluster. type GetClusterArgs struct { // Specifies the name of this HDInsight Cluster. Name string `pulumi:"name"` // Specifies the name of the Resource Group in which this HDInsight Cluster exists. ResourceGroupName string `pulumi:"resourceGroupName"` } // A collection of values returned by getCluster. type GetClusterResult struct { // The HDInsight Cluster ID. ClusterId string `pulumi:"clusterId"` // The version of HDInsights which is used on this HDInsight Cluster. ClusterVersion string `pulumi:"clusterVersion"` // A map of versions of software used on this HDInsights Cluster. ComponentVersions map[string]string `pulumi:"componentVersions"` // The SSH Endpoint of the Edge Node for this HDInsight Cluster, if an Edge Node exists. EdgeSshEndpoint string `pulumi:"edgeSshEndpoint"` // A `gateway` block as defined below. Gateways []GetClusterGateway `pulumi:"gateways"` // The HTTPS Endpoint for this HDInsight Cluster. HttpsEndpoint string `pulumi:"httpsEndpoint"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` // The Kafka Rest Proxy Endpoint for this HDInsight Cluster. KafkaRestProxyEndpoint string `pulumi:"kafkaRestProxyEndpoint"` // The kind of HDInsight Cluster this is, such as a Spark or Storm cluster. Kind string `pulumi:"kind"` // The Azure Region in which this HDInsight Cluster exists. Location string `pulumi:"location"` // The HDInsight Cluster name. Name string `pulumi:"name"` ResourceGroupName string `pulumi:"resourceGroupName"` // The SSH Endpoint for this HDInsight Cluster. SshEndpoint string `pulumi:"sshEndpoint"` // A map of tags assigned to the HDInsight Cluster. Tags map[string]string `pulumi:"tags"` // The SKU / Tier of this HDInsight Cluster. Tier string `pulumi:"tier"` // The minimal supported TLS version. TlsMinVersion string `pulumi:"tlsMinVersion"` } func GetClusterOutput(ctx *pulumi.Context, args GetClusterOutputArgs, opts ...pulumi.InvokeOption) GetClusterResultOutput { return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetClusterResultOutput, error) { args := v.(GetClusterArgs) options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} return ctx.InvokeOutput("azure:hdinsight/getCluster:getCluster", args, GetClusterResultOutput{}, options).(GetClusterResultOutput), nil }).(GetClusterResultOutput) } // A collection of arguments for invoking getCluster. type GetClusterOutputArgs struct { // Specifies the name of this HDInsight Cluster. Name pulumi.StringInput `pulumi:"name"` // Specifies the name of the Resource Group in which this HDInsight Cluster exists. ResourceGroupName pulumi.StringInput `pulumi:"resourceGroupName"` } func (GetClusterOutputArgs) ElementType() reflect.Type { return reflect.TypeOf((*GetClusterArgs)(nil)).Elem() } // A collection of values returned by getCluster. type GetClusterResultOutput struct{ *pulumi.OutputState } func (GetClusterResultOutput) ElementType() reflect.Type { return reflect.TypeOf((*GetClusterResult)(nil)).Elem() } func (o GetClusterResultOutput) ToGetClusterResultOutput() GetClusterResultOutput { return o } func (o GetClusterResultOutput) ToGetClusterResultOutputWithContext(ctx context.Context) GetClusterResultOutput { return o } // The HDInsight Cluster ID. func (o GetClusterResultOutput) ClusterId() pulumi.StringOutput { return o.ApplyT(func(v GetClusterResult) string { return v.ClusterId }).(pulumi.StringOutput) } // The version of HDInsights which is used on this HDInsight Cluster. func (o GetClusterResultOutput) ClusterVersion() pulumi.StringOutput { return o.ApplyT(func(v GetClusterResult) string { return v.ClusterVersion }).(pulumi.StringOutput) } // A map of versions of software used on this HDInsights Cluster. func (o GetClusterResultOutput) ComponentVersions() pulumi.StringMapOutput { return o.ApplyT(func(v GetClusterResult) map[string]string { return v.ComponentVersions }).(pulumi.StringMapOutput) } // The SSH Endpoint of the Edge Node for this HDInsight Cluster, if an Edge Node exists. func (o GetClusterResultOutput) EdgeSshEndpoint() pulumi.StringOutput { return o.ApplyT(func(v GetClusterResult) string { return v.EdgeSshEndpoint }).(pulumi.StringOutput) } // A `gateway` block as defined below. func (o GetClusterResultOutput) Gateways() GetClusterGatewayArrayOutput { return o.ApplyT(func(v GetClusterResult) []GetClusterGateway { return v.Gateways }).(GetClusterGatewayArrayOutput) } // The HTTPS Endpoint for this HDInsight Cluster. func (o GetClusterResultOutput) HttpsEndpoint() pulumi.StringOutput { return o.ApplyT(func(v GetClusterResult) string { return v.HttpsEndpoint }).(pulumi.StringOutput) } // The provider-assigned unique ID for this managed resource. func (o GetClusterResultOutput) Id() pulumi.StringOutput { return o.ApplyT(func(v GetClusterResult) string { return v.Id }).(pulumi.StringOutput) } // The Kafka Rest Proxy Endpoint for this HDInsight Cluster. func (o GetClusterResultOutput) KafkaRestProxyEndpoint() pulumi.StringOutput { return o.ApplyT(func(v GetClusterResult) string { return v.KafkaRestProxyEndpoint }).(pulumi.StringOutput) } // The kind of HDInsight Cluster this is, such as a Spark or Storm cluster. func (o GetClusterResultOutput) Kind() pulumi.StringOutput { return o.ApplyT(func(v GetClusterResult) string { return v.Kind }).(pulumi.StringOutput) } // The Azure Region in which this HDInsight Cluster exists. func (o GetClusterResultOutput) Location() pulumi.StringOutput { return o.ApplyT(func(v GetClusterResult) string { return v.Location }).(pulumi.StringOutput) } // The HDInsight Cluster name. func (o GetClusterResultOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v GetClusterResult) string { return v.Name }).(pulumi.StringOutput) } func (o GetClusterResultOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v GetClusterResult) string { return v.ResourceGroupName }).(pulumi.StringOutput) } // The SSH Endpoint for this HDInsight Cluster. func (o GetClusterResultOutput) SshEndpoint() pulumi.StringOutput { return o.ApplyT(func(v GetClusterResult) string { return v.SshEndpoint }).(pulumi.StringOutput) } // A map of tags assigned to the HDInsight Cluster. func (o GetClusterResultOutput) Tags() pulumi.StringMapOutput { return o.ApplyT(func(v GetClusterResult) map[string]string { return v.Tags }).(pulumi.StringMapOutput) } // The SKU / Tier of this HDInsight Cluster. func (o GetClusterResultOutput) Tier() pulumi.StringOutput { return o.ApplyT(func(v GetClusterResult) string { return v.Tier }).(pulumi.StringOutput) } // The minimal supported TLS version. func (o GetClusterResultOutput) TlsMinVersion() pulumi.StringOutput { return o.ApplyT(func(v GetClusterResult) string { return v.TlsMinVersion }).(pulumi.StringOutput) } func init() { pulumi.RegisterOutputType(GetClusterResultOutput{}) }
go
Apache-2.0
b66e1472775a89cca43f5050fef806854a7c3fa3
2026-01-07T09:44:27.619514Z
false
pulumi/pulumi-azure
https://github.com/pulumi/pulumi-azure/blob/b66e1472775a89cca43f5050fef806854a7c3fa3/sdk/go/azure/hdinsight/interactiveQueryCluster.go
sdk/go/azure/hdinsight/interactiveQueryCluster.go
// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package hdinsight import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a HDInsight Interactive Query Cluster. // // ## 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/hdinsight" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/storage" // "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-resources"), // Location: pulumi.String("West Europe"), // }) // if err != nil { // return err // } // exampleAccount, err := storage.NewAccount(ctx, "example", &storage.AccountArgs{ // Name: pulumi.String("hdinsightstor"), // ResourceGroupName: example.Name, // Location: example.Location, // AccountTier: pulumi.String("Standard"), // AccountReplicationType: pulumi.String("LRS"), // }) // if err != nil { // return err // } // exampleContainer, err := storage.NewContainer(ctx, "example", &storage.ContainerArgs{ // Name: pulumi.String("hdinsight"), // StorageAccountName: exampleAccount.Name, // ContainerAccessType: pulumi.String("private"), // }) // if err != nil { // return err // } // _, err = hdinsight.NewInteractiveQueryCluster(ctx, "example", &hdinsight.InteractiveQueryClusterArgs{ // Name: pulumi.String("example-hdicluster"), // ResourceGroupName: example.Name, // Location: example.Location, // ClusterVersion: pulumi.String("3.6"), // Tier: pulumi.String("Standard"), // ComponentVersion: &hdinsight.InteractiveQueryClusterComponentVersionArgs{ // InteractiveHive: pulumi.String("2.1"), // }, // Gateway: &hdinsight.InteractiveQueryClusterGatewayArgs{ // Username: pulumi.String("acctestusrgw"), // Password: pulumi.String("Password!"), // }, // StorageAccounts: hdinsight.InteractiveQueryClusterStorageAccountArray{ // &hdinsight.InteractiveQueryClusterStorageAccountArgs{ // StorageContainerId: exampleContainer.ID(), // StorageAccountKey: exampleAccount.PrimaryAccessKey, // IsDefault: pulumi.Bool(true), // }, // }, // Roles: &hdinsight.InteractiveQueryClusterRolesArgs{ // HeadNode: &hdinsight.InteractiveQueryClusterRolesHeadNodeArgs{ // VmSize: pulumi.String("Standard_D13_V2"), // Username: pulumi.String("acctestusrvm"), // Password: pulumi.String("AccTestvdSC4daf986!"), // }, // WorkerNode: &hdinsight.InteractiveQueryClusterRolesWorkerNodeArgs{ // VmSize: pulumi.String("Standard_D14_V2"), // Username: pulumi.String("acctestusrvm"), // Password: pulumi.String("AccTestvdSC4daf986!"), // TargetInstanceCount: pulumi.Int(3), // }, // ZookeeperNode: &hdinsight.InteractiveQueryClusterRolesZookeeperNodeArgs{ // VmSize: pulumi.String("Standard_A4_V2"), // Username: pulumi.String("acctestusrvm"), // Password: pulumi.String("AccTestvdSC4daf986!"), // }, // }, // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## API Providers // // <!-- This section is generated, changes will be overwritten --> // This resource uses the following Azure API Providers: // // * `Microsoft.HDInsight` - 2021-06-01 // // ## Import // // HDInsight Interactive Query Clusters can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:hdinsight/interactiveQueryCluster:InteractiveQueryCluster example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.HDInsight/clusters/cluster1 // ``` type InteractiveQueryCluster struct { pulumi.CustomResourceState // Specifies the Version of HDInsights which should be used for this Cluster. Changing this forces a new resource to be created. ClusterVersion pulumi.StringOutput `pulumi:"clusterVersion"` // A `componentVersion` block as defined below. ComponentVersion InteractiveQueryClusterComponentVersionOutput `pulumi:"componentVersion"` // A `computeIsolation` block as defined below. ComputeIsolation InteractiveQueryClusterComputeIsolationPtrOutput `pulumi:"computeIsolation"` // A `diskEncryption` block as defined below. DiskEncryptions InteractiveQueryClusterDiskEncryptionArrayOutput `pulumi:"diskEncryptions"` // Whether encryption in transit is enabled for this Cluster. Changing this forces a new resource to be created. EncryptionInTransitEnabled pulumi.BoolPtrOutput `pulumi:"encryptionInTransitEnabled"` // An `extension` block as defined below. Extension InteractiveQueryClusterExtensionPtrOutput `pulumi:"extension"` // A `gateway` block as defined below. Gateway InteractiveQueryClusterGatewayOutput `pulumi:"gateway"` // The HTTPS Connectivity Endpoint for this HDInsight Interactive Query Cluster. HttpsEndpoint pulumi.StringOutput `pulumi:"httpsEndpoint"` // Specifies the Azure Region which this HDInsight Interactive Query Cluster should exist. Changing this forces a new resource to be created. Location pulumi.StringOutput `pulumi:"location"` // A `metastores` block as defined below. Metastores InteractiveQueryClusterMetastoresPtrOutput `pulumi:"metastores"` // A `monitor` block as defined below. Monitor InteractiveQueryClusterMonitorPtrOutput `pulumi:"monitor"` // Specifies the name for this HDInsight Interactive Query Cluster. Changing this forces a new resource to be created. Name pulumi.StringOutput `pulumi:"name"` // A `network` block as defined below. Network InteractiveQueryClusterNetworkPtrOutput `pulumi:"network"` // A `privateLinkConfiguration` block as defined below. PrivateLinkConfiguration InteractiveQueryClusterPrivateLinkConfigurationPtrOutput `pulumi:"privateLinkConfiguration"` // Specifies the name of the Resource Group in which this HDInsight Interactive Query Cluster should exist. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // A `roles` block as defined below. Roles InteractiveQueryClusterRolesOutput `pulumi:"roles"` // A `securityProfile` block as defined below. Changing this forces a new resource to be created. SecurityProfile InteractiveQueryClusterSecurityProfilePtrOutput `pulumi:"securityProfile"` // The SSH Connectivity Endpoint for this HDInsight Interactive Query Cluster. SshEndpoint pulumi.StringOutput `pulumi:"sshEndpoint"` // A `storageAccountGen2` block as defined below. StorageAccountGen2 InteractiveQueryClusterStorageAccountGen2PtrOutput `pulumi:"storageAccountGen2"` // One or more `storageAccount` block as defined below. StorageAccounts InteractiveQueryClusterStorageAccountArrayOutput `pulumi:"storageAccounts"` // A map of Tags which should be assigned to this HDInsight Interactive Query Cluster. Tags pulumi.StringMapOutput `pulumi:"tags"` // Specifies the Tier which should be used for this HDInsight Interactive Query Cluster. Possible values are `Standard` or `Premium`. Changing this forces a new resource to be created. Tier pulumi.StringOutput `pulumi:"tier"` // The minimal supported TLS version. Possible values are 1.0, 1.1 or 1.2. Changing this forces a new resource to be created. // // > **Note:** Starting on June 30, 2020, Azure HDInsight will enforce TLS 1.2 or later versions for all HTTPS connections. For more information, see [Azure HDInsight TLS 1.2 Enforcement](https://azure.microsoft.com/en-us/updates/azure-hdinsight-tls-12-enforcement/). TlsMinVersion pulumi.StringPtrOutput `pulumi:"tlsMinVersion"` } // NewInteractiveQueryCluster registers a new resource with the given unique name, arguments, and options. func NewInteractiveQueryCluster(ctx *pulumi.Context, name string, args *InteractiveQueryClusterArgs, opts ...pulumi.ResourceOption) (*InteractiveQueryCluster, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.ClusterVersion == nil { return nil, errors.New("invalid value for required argument 'ClusterVersion'") } if args.ComponentVersion == nil { return nil, errors.New("invalid value for required argument 'ComponentVersion'") } if args.Gateway == nil { return nil, errors.New("invalid value for required argument 'Gateway'") } if args.ResourceGroupName == nil { return nil, errors.New("invalid value for required argument 'ResourceGroupName'") } if args.Roles == nil { return nil, errors.New("invalid value for required argument 'Roles'") } if args.Tier == nil { return nil, errors.New("invalid value for required argument 'Tier'") } opts = internal.PkgResourceDefaultOpts(opts) var resource InteractiveQueryCluster err := ctx.RegisterResource("azure:hdinsight/interactiveQueryCluster:InteractiveQueryCluster", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetInteractiveQueryCluster gets an existing InteractiveQueryCluster 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 GetInteractiveQueryCluster(ctx *pulumi.Context, name string, id pulumi.IDInput, state *InteractiveQueryClusterState, opts ...pulumi.ResourceOption) (*InteractiveQueryCluster, error) { var resource InteractiveQueryCluster err := ctx.ReadResource("azure:hdinsight/interactiveQueryCluster:InteractiveQueryCluster", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering InteractiveQueryCluster resources. type interactiveQueryClusterState struct { // Specifies the Version of HDInsights which should be used for this Cluster. Changing this forces a new resource to be created. ClusterVersion *string `pulumi:"clusterVersion"` // A `componentVersion` block as defined below. ComponentVersion *InteractiveQueryClusterComponentVersion `pulumi:"componentVersion"` // A `computeIsolation` block as defined below. ComputeIsolation *InteractiveQueryClusterComputeIsolation `pulumi:"computeIsolation"` // A `diskEncryption` block as defined below. DiskEncryptions []InteractiveQueryClusterDiskEncryption `pulumi:"diskEncryptions"` // Whether encryption in transit is enabled for this Cluster. Changing this forces a new resource to be created. EncryptionInTransitEnabled *bool `pulumi:"encryptionInTransitEnabled"` // An `extension` block as defined below. Extension *InteractiveQueryClusterExtension `pulumi:"extension"` // A `gateway` block as defined below. Gateway *InteractiveQueryClusterGateway `pulumi:"gateway"` // The HTTPS Connectivity Endpoint for this HDInsight Interactive Query Cluster. HttpsEndpoint *string `pulumi:"httpsEndpoint"` // Specifies the Azure Region which this HDInsight Interactive Query Cluster should exist. Changing this forces a new resource to be created. Location *string `pulumi:"location"` // A `metastores` block as defined below. Metastores *InteractiveQueryClusterMetastores `pulumi:"metastores"` // A `monitor` block as defined below. Monitor *InteractiveQueryClusterMonitor `pulumi:"monitor"` // Specifies the name for this HDInsight Interactive Query Cluster. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // A `network` block as defined below. Network *InteractiveQueryClusterNetwork `pulumi:"network"` // A `privateLinkConfiguration` block as defined below. PrivateLinkConfiguration *InteractiveQueryClusterPrivateLinkConfiguration `pulumi:"privateLinkConfiguration"` // Specifies the name of the Resource Group in which this HDInsight Interactive Query Cluster should exist. Changing this forces a new resource to be created. ResourceGroupName *string `pulumi:"resourceGroupName"` // A `roles` block as defined below. Roles *InteractiveQueryClusterRoles `pulumi:"roles"` // A `securityProfile` block as defined below. Changing this forces a new resource to be created. SecurityProfile *InteractiveQueryClusterSecurityProfile `pulumi:"securityProfile"` // The SSH Connectivity Endpoint for this HDInsight Interactive Query Cluster. SshEndpoint *string `pulumi:"sshEndpoint"` // A `storageAccountGen2` block as defined below. StorageAccountGen2 *InteractiveQueryClusterStorageAccountGen2 `pulumi:"storageAccountGen2"` // One or more `storageAccount` block as defined below. StorageAccounts []InteractiveQueryClusterStorageAccount `pulumi:"storageAccounts"` // A map of Tags which should be assigned to this HDInsight Interactive Query Cluster. Tags map[string]string `pulumi:"tags"` // Specifies the Tier which should be used for this HDInsight Interactive Query Cluster. Possible values are `Standard` or `Premium`. Changing this forces a new resource to be created. Tier *string `pulumi:"tier"` // The minimal supported TLS version. Possible values are 1.0, 1.1 or 1.2. Changing this forces a new resource to be created. // // > **Note:** Starting on June 30, 2020, Azure HDInsight will enforce TLS 1.2 or later versions for all HTTPS connections. For more information, see [Azure HDInsight TLS 1.2 Enforcement](https://azure.microsoft.com/en-us/updates/azure-hdinsight-tls-12-enforcement/). TlsMinVersion *string `pulumi:"tlsMinVersion"` } type InteractiveQueryClusterState struct { // Specifies the Version of HDInsights which should be used for this Cluster. Changing this forces a new resource to be created. ClusterVersion pulumi.StringPtrInput // A `componentVersion` block as defined below. ComponentVersion InteractiveQueryClusterComponentVersionPtrInput // A `computeIsolation` block as defined below. ComputeIsolation InteractiveQueryClusterComputeIsolationPtrInput // A `diskEncryption` block as defined below. DiskEncryptions InteractiveQueryClusterDiskEncryptionArrayInput // Whether encryption in transit is enabled for this Cluster. Changing this forces a new resource to be created. EncryptionInTransitEnabled pulumi.BoolPtrInput // An `extension` block as defined below. Extension InteractiveQueryClusterExtensionPtrInput // A `gateway` block as defined below. Gateway InteractiveQueryClusterGatewayPtrInput // The HTTPS Connectivity Endpoint for this HDInsight Interactive Query Cluster. HttpsEndpoint pulumi.StringPtrInput // Specifies the Azure Region which this HDInsight Interactive Query Cluster should exist. Changing this forces a new resource to be created. Location pulumi.StringPtrInput // A `metastores` block as defined below. Metastores InteractiveQueryClusterMetastoresPtrInput // A `monitor` block as defined below. Monitor InteractiveQueryClusterMonitorPtrInput // Specifies the name for this HDInsight Interactive Query Cluster. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // A `network` block as defined below. Network InteractiveQueryClusterNetworkPtrInput // A `privateLinkConfiguration` block as defined below. PrivateLinkConfiguration InteractiveQueryClusterPrivateLinkConfigurationPtrInput // Specifies the name of the Resource Group in which this HDInsight Interactive Query Cluster should exist. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringPtrInput // A `roles` block as defined below. Roles InteractiveQueryClusterRolesPtrInput // A `securityProfile` block as defined below. Changing this forces a new resource to be created. SecurityProfile InteractiveQueryClusterSecurityProfilePtrInput // The SSH Connectivity Endpoint for this HDInsight Interactive Query Cluster. SshEndpoint pulumi.StringPtrInput // A `storageAccountGen2` block as defined below. StorageAccountGen2 InteractiveQueryClusterStorageAccountGen2PtrInput // One or more `storageAccount` block as defined below. StorageAccounts InteractiveQueryClusterStorageAccountArrayInput // A map of Tags which should be assigned to this HDInsight Interactive Query Cluster. Tags pulumi.StringMapInput // Specifies the Tier which should be used for this HDInsight Interactive Query Cluster. Possible values are `Standard` or `Premium`. Changing this forces a new resource to be created. Tier pulumi.StringPtrInput // The minimal supported TLS version. Possible values are 1.0, 1.1 or 1.2. Changing this forces a new resource to be created. // // > **Note:** Starting on June 30, 2020, Azure HDInsight will enforce TLS 1.2 or later versions for all HTTPS connections. For more information, see [Azure HDInsight TLS 1.2 Enforcement](https://azure.microsoft.com/en-us/updates/azure-hdinsight-tls-12-enforcement/). TlsMinVersion pulumi.StringPtrInput } func (InteractiveQueryClusterState) ElementType() reflect.Type { return reflect.TypeOf((*interactiveQueryClusterState)(nil)).Elem() } type interactiveQueryClusterArgs struct { // Specifies the Version of HDInsights which should be used for this Cluster. Changing this forces a new resource to be created. ClusterVersion string `pulumi:"clusterVersion"` // A `componentVersion` block as defined below. ComponentVersion InteractiveQueryClusterComponentVersion `pulumi:"componentVersion"` // A `computeIsolation` block as defined below. ComputeIsolation *InteractiveQueryClusterComputeIsolation `pulumi:"computeIsolation"` // A `diskEncryption` block as defined below. DiskEncryptions []InteractiveQueryClusterDiskEncryption `pulumi:"diskEncryptions"` // Whether encryption in transit is enabled for this Cluster. Changing this forces a new resource to be created. EncryptionInTransitEnabled *bool `pulumi:"encryptionInTransitEnabled"` // An `extension` block as defined below. Extension *InteractiveQueryClusterExtension `pulumi:"extension"` // A `gateway` block as defined below. Gateway InteractiveQueryClusterGateway `pulumi:"gateway"` // Specifies the Azure Region which this HDInsight Interactive Query Cluster should exist. Changing this forces a new resource to be created. Location *string `pulumi:"location"` // A `metastores` block as defined below. Metastores *InteractiveQueryClusterMetastores `pulumi:"metastores"` // A `monitor` block as defined below. Monitor *InteractiveQueryClusterMonitor `pulumi:"monitor"` // Specifies the name for this HDInsight Interactive Query Cluster. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // A `network` block as defined below. Network *InteractiveQueryClusterNetwork `pulumi:"network"` // A `privateLinkConfiguration` block as defined below. PrivateLinkConfiguration *InteractiveQueryClusterPrivateLinkConfiguration `pulumi:"privateLinkConfiguration"` // Specifies the name of the Resource Group in which this HDInsight Interactive Query Cluster should exist. Changing this forces a new resource to be created. ResourceGroupName string `pulumi:"resourceGroupName"` // A `roles` block as defined below. Roles InteractiveQueryClusterRoles `pulumi:"roles"` // A `securityProfile` block as defined below. Changing this forces a new resource to be created. SecurityProfile *InteractiveQueryClusterSecurityProfile `pulumi:"securityProfile"` // A `storageAccountGen2` block as defined below. StorageAccountGen2 *InteractiveQueryClusterStorageAccountGen2 `pulumi:"storageAccountGen2"` // One or more `storageAccount` block as defined below. StorageAccounts []InteractiveQueryClusterStorageAccount `pulumi:"storageAccounts"` // A map of Tags which should be assigned to this HDInsight Interactive Query Cluster. Tags map[string]string `pulumi:"tags"` // Specifies the Tier which should be used for this HDInsight Interactive Query Cluster. Possible values are `Standard` or `Premium`. Changing this forces a new resource to be created. Tier string `pulumi:"tier"` // The minimal supported TLS version. Possible values are 1.0, 1.1 or 1.2. Changing this forces a new resource to be created. // // > **Note:** Starting on June 30, 2020, Azure HDInsight will enforce TLS 1.2 or later versions for all HTTPS connections. For more information, see [Azure HDInsight TLS 1.2 Enforcement](https://azure.microsoft.com/en-us/updates/azure-hdinsight-tls-12-enforcement/). TlsMinVersion *string `pulumi:"tlsMinVersion"` } // The set of arguments for constructing a InteractiveQueryCluster resource. type InteractiveQueryClusterArgs struct { // Specifies the Version of HDInsights which should be used for this Cluster. Changing this forces a new resource to be created. ClusterVersion pulumi.StringInput // A `componentVersion` block as defined below. ComponentVersion InteractiveQueryClusterComponentVersionInput // A `computeIsolation` block as defined below. ComputeIsolation InteractiveQueryClusterComputeIsolationPtrInput // A `diskEncryption` block as defined below. DiskEncryptions InteractiveQueryClusterDiskEncryptionArrayInput // Whether encryption in transit is enabled for this Cluster. Changing this forces a new resource to be created. EncryptionInTransitEnabled pulumi.BoolPtrInput // An `extension` block as defined below. Extension InteractiveQueryClusterExtensionPtrInput // A `gateway` block as defined below. Gateway InteractiveQueryClusterGatewayInput // Specifies the Azure Region which this HDInsight Interactive Query Cluster should exist. Changing this forces a new resource to be created. Location pulumi.StringPtrInput // A `metastores` block as defined below. Metastores InteractiveQueryClusterMetastoresPtrInput // A `monitor` block as defined below. Monitor InteractiveQueryClusterMonitorPtrInput // Specifies the name for this HDInsight Interactive Query Cluster. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // A `network` block as defined below. Network InteractiveQueryClusterNetworkPtrInput // A `privateLinkConfiguration` block as defined below. PrivateLinkConfiguration InteractiveQueryClusterPrivateLinkConfigurationPtrInput // Specifies the name of the Resource Group in which this HDInsight Interactive Query Cluster should exist. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringInput // A `roles` block as defined below. Roles InteractiveQueryClusterRolesInput // A `securityProfile` block as defined below. Changing this forces a new resource to be created. SecurityProfile InteractiveQueryClusterSecurityProfilePtrInput // A `storageAccountGen2` block as defined below. StorageAccountGen2 InteractiveQueryClusterStorageAccountGen2PtrInput // One or more `storageAccount` block as defined below. StorageAccounts InteractiveQueryClusterStorageAccountArrayInput // A map of Tags which should be assigned to this HDInsight Interactive Query Cluster. Tags pulumi.StringMapInput // Specifies the Tier which should be used for this HDInsight Interactive Query Cluster. Possible values are `Standard` or `Premium`. Changing this forces a new resource to be created. Tier pulumi.StringInput // The minimal supported TLS version. Possible values are 1.0, 1.1 or 1.2. Changing this forces a new resource to be created. // // > **Note:** Starting on June 30, 2020, Azure HDInsight will enforce TLS 1.2 or later versions for all HTTPS connections. For more information, see [Azure HDInsight TLS 1.2 Enforcement](https://azure.microsoft.com/en-us/updates/azure-hdinsight-tls-12-enforcement/). TlsMinVersion pulumi.StringPtrInput } func (InteractiveQueryClusterArgs) ElementType() reflect.Type { return reflect.TypeOf((*interactiveQueryClusterArgs)(nil)).Elem() } type InteractiveQueryClusterInput interface { pulumi.Input ToInteractiveQueryClusterOutput() InteractiveQueryClusterOutput ToInteractiveQueryClusterOutputWithContext(ctx context.Context) InteractiveQueryClusterOutput } func (*InteractiveQueryCluster) ElementType() reflect.Type { return reflect.TypeOf((**InteractiveQueryCluster)(nil)).Elem() } func (i *InteractiveQueryCluster) ToInteractiveQueryClusterOutput() InteractiveQueryClusterOutput { return i.ToInteractiveQueryClusterOutputWithContext(context.Background()) } func (i *InteractiveQueryCluster) ToInteractiveQueryClusterOutputWithContext(ctx context.Context) InteractiveQueryClusterOutput { return pulumi.ToOutputWithContext(ctx, i).(InteractiveQueryClusterOutput) } // InteractiveQueryClusterArrayInput is an input type that accepts InteractiveQueryClusterArray and InteractiveQueryClusterArrayOutput values. // You can construct a concrete instance of `InteractiveQueryClusterArrayInput` via: // // InteractiveQueryClusterArray{ InteractiveQueryClusterArgs{...} } type InteractiveQueryClusterArrayInput interface { pulumi.Input ToInteractiveQueryClusterArrayOutput() InteractiveQueryClusterArrayOutput ToInteractiveQueryClusterArrayOutputWithContext(context.Context) InteractiveQueryClusterArrayOutput } type InteractiveQueryClusterArray []InteractiveQueryClusterInput func (InteractiveQueryClusterArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*InteractiveQueryCluster)(nil)).Elem() } func (i InteractiveQueryClusterArray) ToInteractiveQueryClusterArrayOutput() InteractiveQueryClusterArrayOutput { return i.ToInteractiveQueryClusterArrayOutputWithContext(context.Background()) } func (i InteractiveQueryClusterArray) ToInteractiveQueryClusterArrayOutputWithContext(ctx context.Context) InteractiveQueryClusterArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(InteractiveQueryClusterArrayOutput) } // InteractiveQueryClusterMapInput is an input type that accepts InteractiveQueryClusterMap and InteractiveQueryClusterMapOutput values. // You can construct a concrete instance of `InteractiveQueryClusterMapInput` via: // // InteractiveQueryClusterMap{ "key": InteractiveQueryClusterArgs{...} } type InteractiveQueryClusterMapInput interface { pulumi.Input ToInteractiveQueryClusterMapOutput() InteractiveQueryClusterMapOutput ToInteractiveQueryClusterMapOutputWithContext(context.Context) InteractiveQueryClusterMapOutput } type InteractiveQueryClusterMap map[string]InteractiveQueryClusterInput func (InteractiveQueryClusterMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*InteractiveQueryCluster)(nil)).Elem() } func (i InteractiveQueryClusterMap) ToInteractiveQueryClusterMapOutput() InteractiveQueryClusterMapOutput { return i.ToInteractiveQueryClusterMapOutputWithContext(context.Background()) } func (i InteractiveQueryClusterMap) ToInteractiveQueryClusterMapOutputWithContext(ctx context.Context) InteractiveQueryClusterMapOutput { return pulumi.ToOutputWithContext(ctx, i).(InteractiveQueryClusterMapOutput) } type InteractiveQueryClusterOutput struct{ *pulumi.OutputState } func (InteractiveQueryClusterOutput) ElementType() reflect.Type { return reflect.TypeOf((**InteractiveQueryCluster)(nil)).Elem() } func (o InteractiveQueryClusterOutput) ToInteractiveQueryClusterOutput() InteractiveQueryClusterOutput { return o } func (o InteractiveQueryClusterOutput) ToInteractiveQueryClusterOutputWithContext(ctx context.Context) InteractiveQueryClusterOutput { return o } // Specifies the Version of HDInsights which should be used for this Cluster. Changing this forces a new resource to be created. func (o InteractiveQueryClusterOutput) ClusterVersion() pulumi.StringOutput { return o.ApplyT(func(v *InteractiveQueryCluster) pulumi.StringOutput { return v.ClusterVersion }).(pulumi.StringOutput) } // A `componentVersion` block as defined below. func (o InteractiveQueryClusterOutput) ComponentVersion() InteractiveQueryClusterComponentVersionOutput { return o.ApplyT(func(v *InteractiveQueryCluster) InteractiveQueryClusterComponentVersionOutput { return v.ComponentVersion }).(InteractiveQueryClusterComponentVersionOutput) } // A `computeIsolation` block as defined below. func (o InteractiveQueryClusterOutput) ComputeIsolation() InteractiveQueryClusterComputeIsolationPtrOutput { return o.ApplyT(func(v *InteractiveQueryCluster) InteractiveQueryClusterComputeIsolationPtrOutput { return v.ComputeIsolation }).(InteractiveQueryClusterComputeIsolationPtrOutput) } // A `diskEncryption` block as defined below. func (o InteractiveQueryClusterOutput) DiskEncryptions() InteractiveQueryClusterDiskEncryptionArrayOutput { return o.ApplyT(func(v *InteractiveQueryCluster) InteractiveQueryClusterDiskEncryptionArrayOutput { return v.DiskEncryptions }).(InteractiveQueryClusterDiskEncryptionArrayOutput) } // Whether encryption in transit is enabled for this Cluster. Changing this forces a new resource to be created. func (o InteractiveQueryClusterOutput) EncryptionInTransitEnabled() pulumi.BoolPtrOutput { return o.ApplyT(func(v *InteractiveQueryCluster) pulumi.BoolPtrOutput { return v.EncryptionInTransitEnabled }).(pulumi.BoolPtrOutput) } // An `extension` block as defined below. func (o InteractiveQueryClusterOutput) Extension() InteractiveQueryClusterExtensionPtrOutput { return o.ApplyT(func(v *InteractiveQueryCluster) InteractiveQueryClusterExtensionPtrOutput { return v.Extension }).(InteractiveQueryClusterExtensionPtrOutput) } // A `gateway` block as defined below. func (o InteractiveQueryClusterOutput) Gateway() InteractiveQueryClusterGatewayOutput { return o.ApplyT(func(v *InteractiveQueryCluster) InteractiveQueryClusterGatewayOutput { return v.Gateway }).(InteractiveQueryClusterGatewayOutput) } // The HTTPS Connectivity Endpoint for this HDInsight Interactive Query Cluster. func (o InteractiveQueryClusterOutput) HttpsEndpoint() pulumi.StringOutput { return o.ApplyT(func(v *InteractiveQueryCluster) pulumi.StringOutput { return v.HttpsEndpoint }).(pulumi.StringOutput) } // Specifies the Azure Region which this HDInsight Interactive Query Cluster should exist. Changing this forces a new resource to be created. func (o InteractiveQueryClusterOutput) Location() pulumi.StringOutput { return o.ApplyT(func(v *InteractiveQueryCluster) pulumi.StringOutput { return v.Location }).(pulumi.StringOutput) } // A `metastores` block as defined below. func (o InteractiveQueryClusterOutput) Metastores() InteractiveQueryClusterMetastoresPtrOutput { return o.ApplyT(func(v *InteractiveQueryCluster) InteractiveQueryClusterMetastoresPtrOutput { return v.Metastores }).(InteractiveQueryClusterMetastoresPtrOutput) } // A `monitor` block as defined below. func (o InteractiveQueryClusterOutput) Monitor() InteractiveQueryClusterMonitorPtrOutput { return o.ApplyT(func(v *InteractiveQueryCluster) InteractiveQueryClusterMonitorPtrOutput { return v.Monitor }).(InteractiveQueryClusterMonitorPtrOutput) } // Specifies the name for this HDInsight Interactive Query Cluster. Changing this forces a new resource to be created. func (o InteractiveQueryClusterOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *InteractiveQueryCluster) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // A `network` block as defined below. func (o InteractiveQueryClusterOutput) Network() InteractiveQueryClusterNetworkPtrOutput { return o.ApplyT(func(v *InteractiveQueryCluster) InteractiveQueryClusterNetworkPtrOutput { return v.Network }).(InteractiveQueryClusterNetworkPtrOutput) } // A `privateLinkConfiguration` block as defined below. func (o InteractiveQueryClusterOutput) PrivateLinkConfiguration() InteractiveQueryClusterPrivateLinkConfigurationPtrOutput { return o.ApplyT(func(v *InteractiveQueryCluster) InteractiveQueryClusterPrivateLinkConfigurationPtrOutput { return v.PrivateLinkConfiguration }).(InteractiveQueryClusterPrivateLinkConfigurationPtrOutput) } // Specifies the name of the Resource Group in which this HDInsight Interactive Query Cluster should exist. Changing this forces a new resource to be created. func (o InteractiveQueryClusterOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v *InteractiveQueryCluster) pulumi.StringOutput { return v.ResourceGroupName }).(pulumi.StringOutput) } // A `roles` block as defined below. func (o InteractiveQueryClusterOutput) Roles() InteractiveQueryClusterRolesOutput { return o.ApplyT(func(v *InteractiveQueryCluster) InteractiveQueryClusterRolesOutput { return v.Roles }).(InteractiveQueryClusterRolesOutput) } // A `securityProfile` block as defined below. Changing this forces a new resource to be created. func (o InteractiveQueryClusterOutput) SecurityProfile() InteractiveQueryClusterSecurityProfilePtrOutput { return o.ApplyT(func(v *InteractiveQueryCluster) InteractiveQueryClusterSecurityProfilePtrOutput {
go
Apache-2.0
b66e1472775a89cca43f5050fef806854a7c3fa3
2026-01-07T09:44:27.619514Z
true
pulumi/pulumi-azure
https://github.com/pulumi/pulumi-azure/blob/b66e1472775a89cca43f5050fef806854a7c3fa3/sdk/go/azure/hdinsight/hbaseCluster.go
sdk/go/azure/hdinsight/hbaseCluster.go
// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package hdinsight import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a HDInsight HBase Cluster. // // ## 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/hdinsight" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/storage" // "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-resources"), // Location: pulumi.String("West Europe"), // }) // if err != nil { // return err // } // exampleAccount, err := storage.NewAccount(ctx, "example", &storage.AccountArgs{ // Name: pulumi.String("hdinsightstor"), // ResourceGroupName: example.Name, // Location: example.Location, // AccountTier: pulumi.String("Standard"), // AccountReplicationType: pulumi.String("LRS"), // }) // if err != nil { // return err // } // exampleContainer, err := storage.NewContainer(ctx, "example", &storage.ContainerArgs{ // Name: pulumi.String("hdinsight"), // StorageAccountName: exampleAccount.Name, // ContainerAccessType: pulumi.String("private"), // }) // if err != nil { // return err // } // _, err = hdinsight.NewHBaseCluster(ctx, "example", &hdinsight.HBaseClusterArgs{ // Name: pulumi.String("example-hdicluster"), // ResourceGroupName: example.Name, // Location: example.Location, // ClusterVersion: pulumi.String("3.6"), // Tier: pulumi.String("Standard"), // ComponentVersion: &hdinsight.HBaseClusterComponentVersionArgs{ // Hbase: pulumi.String("1.1"), // }, // Gateway: &hdinsight.HBaseClusterGatewayArgs{ // Username: pulumi.String("acctestusrgw"), // Password: pulumi.String("Password123!"), // }, // StorageAccounts: hdinsight.HBaseClusterStorageAccountArray{ // &hdinsight.HBaseClusterStorageAccountArgs{ // StorageContainerId: exampleContainer.ID(), // StorageAccountKey: exampleAccount.PrimaryAccessKey, // IsDefault: pulumi.Bool(true), // }, // }, // Roles: &hdinsight.HBaseClusterRolesArgs{ // HeadNode: &hdinsight.HBaseClusterRolesHeadNodeArgs{ // VmSize: pulumi.String("Standard_D3_V2"), // Username: pulumi.String("acctestusrvm"), // Password: pulumi.String("AccTestvdSC4daf986!"), // }, // WorkerNode: &hdinsight.HBaseClusterRolesWorkerNodeArgs{ // VmSize: pulumi.String("Standard_D3_V2"), // Username: pulumi.String("acctestusrvm"), // Password: pulumi.String("AccTestvdSC4daf986!"), // TargetInstanceCount: pulumi.Int(3), // }, // ZookeeperNode: &hdinsight.HBaseClusterRolesZookeeperNodeArgs{ // VmSize: pulumi.String("Standard_D3_V2"), // Username: pulumi.String("acctestusrvm"), // Password: pulumi.String("AccTestvdSC4daf986!"), // }, // }, // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## API Providers // // <!-- This section is generated, changes will be overwritten --> // This resource uses the following Azure API Providers: // // * `Microsoft.HDInsight` - 2021-06-01 // // ## Import // // HDInsight HBase Clusters can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:hdinsight/hBaseCluster:HBaseCluster example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.HDInsight/clusters/cluster1 // ``` type HBaseCluster struct { pulumi.CustomResourceState // Specifies the Version of HDInsights which should be used for this Cluster. Changing this forces a new resource to be created. ClusterVersion pulumi.StringOutput `pulumi:"clusterVersion"` // A `componentVersion` block as defined below. ComponentVersion HBaseClusterComponentVersionOutput `pulumi:"componentVersion"` // A `computeIsolation` block as defined below. ComputeIsolation HBaseClusterComputeIsolationPtrOutput `pulumi:"computeIsolation"` // One or more `diskEncryption` block as defined below. DiskEncryptions HBaseClusterDiskEncryptionArrayOutput `pulumi:"diskEncryptions"` // An `extension` block as defined below. Extension HBaseClusterExtensionPtrOutput `pulumi:"extension"` // A `gateway` block as defined below. Gateway HBaseClusterGatewayOutput `pulumi:"gateway"` // The HTTPS Connectivity Endpoint for this HDInsight HBase Cluster. HttpsEndpoint pulumi.StringOutput `pulumi:"httpsEndpoint"` // Specifies the Azure Region which this HDInsight HBase Cluster should exist. Changing this forces a new resource to be created. Location pulumi.StringOutput `pulumi:"location"` // A `metastores` block as defined below. Metastores HBaseClusterMetastoresPtrOutput `pulumi:"metastores"` // A `monitor` block as defined below. Monitor HBaseClusterMonitorPtrOutput `pulumi:"monitor"` // Specifies the name for this HDInsight HBase Cluster. Changing this forces a new resource to be created. Name pulumi.StringOutput `pulumi:"name"` // A `network` block as defined below. Network HBaseClusterNetworkPtrOutput `pulumi:"network"` // A `privateLinkConfiguration` block as defined below. PrivateLinkConfiguration HBaseClusterPrivateLinkConfigurationPtrOutput `pulumi:"privateLinkConfiguration"` // Specifies the name of the Resource Group in which this HDInsight HBase Cluster should exist. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // A `roles` block as defined below. Roles HBaseClusterRolesOutput `pulumi:"roles"` // A `securityProfile` block as defined below. Changing this forces a new resource to be created. SecurityProfile HBaseClusterSecurityProfilePtrOutput `pulumi:"securityProfile"` // The SSH Connectivity Endpoint for this HDInsight HBase Cluster. SshEndpoint pulumi.StringOutput `pulumi:"sshEndpoint"` // A `storageAccountGen2` block as defined below. StorageAccountGen2 HBaseClusterStorageAccountGen2PtrOutput `pulumi:"storageAccountGen2"` // One or more `storageAccount` block as defined below. StorageAccounts HBaseClusterStorageAccountArrayOutput `pulumi:"storageAccounts"` // A map of Tags which should be assigned to this HDInsight HBase Cluster. Tags pulumi.StringMapOutput `pulumi:"tags"` // Specifies the Tier which should be used for this HDInsight HBase Cluster. Possible values are `Standard` or `Premium`. Changing this forces a new resource to be created. Tier pulumi.StringOutput `pulumi:"tier"` // The minimal supported TLS version. Possible values are 1.0, 1.1 or 1.2. Changing this forces a new resource to be created. // // > **Note:** Starting on June 30, 2020, Azure HDInsight will enforce TLS 1.2 or later versions for all HTTPS connections. For more information, see [Azure HDInsight TLS 1.2 Enforcement](https://azure.microsoft.com/en-us/updates/azure-hdinsight-tls-12-enforcement/). TlsMinVersion pulumi.StringPtrOutput `pulumi:"tlsMinVersion"` } // NewHBaseCluster registers a new resource with the given unique name, arguments, and options. func NewHBaseCluster(ctx *pulumi.Context, name string, args *HBaseClusterArgs, opts ...pulumi.ResourceOption) (*HBaseCluster, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.ClusterVersion == nil { return nil, errors.New("invalid value for required argument 'ClusterVersion'") } if args.ComponentVersion == nil { return nil, errors.New("invalid value for required argument 'ComponentVersion'") } if args.Gateway == nil { return nil, errors.New("invalid value for required argument 'Gateway'") } if args.ResourceGroupName == nil { return nil, errors.New("invalid value for required argument 'ResourceGroupName'") } if args.Roles == nil { return nil, errors.New("invalid value for required argument 'Roles'") } if args.Tier == nil { return nil, errors.New("invalid value for required argument 'Tier'") } opts = internal.PkgResourceDefaultOpts(opts) var resource HBaseCluster err := ctx.RegisterResource("azure:hdinsight/hBaseCluster:HBaseCluster", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetHBaseCluster gets an existing HBaseCluster 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 GetHBaseCluster(ctx *pulumi.Context, name string, id pulumi.IDInput, state *HBaseClusterState, opts ...pulumi.ResourceOption) (*HBaseCluster, error) { var resource HBaseCluster err := ctx.ReadResource("azure:hdinsight/hBaseCluster:HBaseCluster", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering HBaseCluster resources. type hbaseClusterState struct { // Specifies the Version of HDInsights which should be used for this Cluster. Changing this forces a new resource to be created. ClusterVersion *string `pulumi:"clusterVersion"` // A `componentVersion` block as defined below. ComponentVersion *HBaseClusterComponentVersion `pulumi:"componentVersion"` // A `computeIsolation` block as defined below. ComputeIsolation *HBaseClusterComputeIsolation `pulumi:"computeIsolation"` // One or more `diskEncryption` block as defined below. DiskEncryptions []HBaseClusterDiskEncryption `pulumi:"diskEncryptions"` // An `extension` block as defined below. Extension *HBaseClusterExtension `pulumi:"extension"` // A `gateway` block as defined below. Gateway *HBaseClusterGateway `pulumi:"gateway"` // The HTTPS Connectivity Endpoint for this HDInsight HBase Cluster. HttpsEndpoint *string `pulumi:"httpsEndpoint"` // Specifies the Azure Region which this HDInsight HBase Cluster should exist. Changing this forces a new resource to be created. Location *string `pulumi:"location"` // A `metastores` block as defined below. Metastores *HBaseClusterMetastores `pulumi:"metastores"` // A `monitor` block as defined below. Monitor *HBaseClusterMonitor `pulumi:"monitor"` // Specifies the name for this HDInsight HBase Cluster. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // A `network` block as defined below. Network *HBaseClusterNetwork `pulumi:"network"` // A `privateLinkConfiguration` block as defined below. PrivateLinkConfiguration *HBaseClusterPrivateLinkConfiguration `pulumi:"privateLinkConfiguration"` // Specifies the name of the Resource Group in which this HDInsight HBase Cluster should exist. Changing this forces a new resource to be created. ResourceGroupName *string `pulumi:"resourceGroupName"` // A `roles` block as defined below. Roles *HBaseClusterRoles `pulumi:"roles"` // A `securityProfile` block as defined below. Changing this forces a new resource to be created. SecurityProfile *HBaseClusterSecurityProfile `pulumi:"securityProfile"` // The SSH Connectivity Endpoint for this HDInsight HBase Cluster. SshEndpoint *string `pulumi:"sshEndpoint"` // A `storageAccountGen2` block as defined below. StorageAccountGen2 *HBaseClusterStorageAccountGen2 `pulumi:"storageAccountGen2"` // One or more `storageAccount` block as defined below. StorageAccounts []HBaseClusterStorageAccount `pulumi:"storageAccounts"` // A map of Tags which should be assigned to this HDInsight HBase Cluster. Tags map[string]string `pulumi:"tags"` // Specifies the Tier which should be used for this HDInsight HBase Cluster. Possible values are `Standard` or `Premium`. Changing this forces a new resource to be created. Tier *string `pulumi:"tier"` // The minimal supported TLS version. Possible values are 1.0, 1.1 or 1.2. Changing this forces a new resource to be created. // // > **Note:** Starting on June 30, 2020, Azure HDInsight will enforce TLS 1.2 or later versions for all HTTPS connections. For more information, see [Azure HDInsight TLS 1.2 Enforcement](https://azure.microsoft.com/en-us/updates/azure-hdinsight-tls-12-enforcement/). TlsMinVersion *string `pulumi:"tlsMinVersion"` } type HBaseClusterState struct { // Specifies the Version of HDInsights which should be used for this Cluster. Changing this forces a new resource to be created. ClusterVersion pulumi.StringPtrInput // A `componentVersion` block as defined below. ComponentVersion HBaseClusterComponentVersionPtrInput // A `computeIsolation` block as defined below. ComputeIsolation HBaseClusterComputeIsolationPtrInput // One or more `diskEncryption` block as defined below. DiskEncryptions HBaseClusterDiskEncryptionArrayInput // An `extension` block as defined below. Extension HBaseClusterExtensionPtrInput // A `gateway` block as defined below. Gateway HBaseClusterGatewayPtrInput // The HTTPS Connectivity Endpoint for this HDInsight HBase Cluster. HttpsEndpoint pulumi.StringPtrInput // Specifies the Azure Region which this HDInsight HBase Cluster should exist. Changing this forces a new resource to be created. Location pulumi.StringPtrInput // A `metastores` block as defined below. Metastores HBaseClusterMetastoresPtrInput // A `monitor` block as defined below. Monitor HBaseClusterMonitorPtrInput // Specifies the name for this HDInsight HBase Cluster. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // A `network` block as defined below. Network HBaseClusterNetworkPtrInput // A `privateLinkConfiguration` block as defined below. PrivateLinkConfiguration HBaseClusterPrivateLinkConfigurationPtrInput // Specifies the name of the Resource Group in which this HDInsight HBase Cluster should exist. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringPtrInput // A `roles` block as defined below. Roles HBaseClusterRolesPtrInput // A `securityProfile` block as defined below. Changing this forces a new resource to be created. SecurityProfile HBaseClusterSecurityProfilePtrInput // The SSH Connectivity Endpoint for this HDInsight HBase Cluster. SshEndpoint pulumi.StringPtrInput // A `storageAccountGen2` block as defined below. StorageAccountGen2 HBaseClusterStorageAccountGen2PtrInput // One or more `storageAccount` block as defined below. StorageAccounts HBaseClusterStorageAccountArrayInput // A map of Tags which should be assigned to this HDInsight HBase Cluster. Tags pulumi.StringMapInput // Specifies the Tier which should be used for this HDInsight HBase Cluster. Possible values are `Standard` or `Premium`. Changing this forces a new resource to be created. Tier pulumi.StringPtrInput // The minimal supported TLS version. Possible values are 1.0, 1.1 or 1.2. Changing this forces a new resource to be created. // // > **Note:** Starting on June 30, 2020, Azure HDInsight will enforce TLS 1.2 or later versions for all HTTPS connections. For more information, see [Azure HDInsight TLS 1.2 Enforcement](https://azure.microsoft.com/en-us/updates/azure-hdinsight-tls-12-enforcement/). TlsMinVersion pulumi.StringPtrInput } func (HBaseClusterState) ElementType() reflect.Type { return reflect.TypeOf((*hbaseClusterState)(nil)).Elem() } type hbaseClusterArgs struct { // Specifies the Version of HDInsights which should be used for this Cluster. Changing this forces a new resource to be created. ClusterVersion string `pulumi:"clusterVersion"` // A `componentVersion` block as defined below. ComponentVersion HBaseClusterComponentVersion `pulumi:"componentVersion"` // A `computeIsolation` block as defined below. ComputeIsolation *HBaseClusterComputeIsolation `pulumi:"computeIsolation"` // One or more `diskEncryption` block as defined below. DiskEncryptions []HBaseClusterDiskEncryption `pulumi:"diskEncryptions"` // An `extension` block as defined below. Extension *HBaseClusterExtension `pulumi:"extension"` // A `gateway` block as defined below. Gateway HBaseClusterGateway `pulumi:"gateway"` // Specifies the Azure Region which this HDInsight HBase Cluster should exist. Changing this forces a new resource to be created. Location *string `pulumi:"location"` // A `metastores` block as defined below. Metastores *HBaseClusterMetastores `pulumi:"metastores"` // A `monitor` block as defined below. Monitor *HBaseClusterMonitor `pulumi:"monitor"` // Specifies the name for this HDInsight HBase Cluster. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // A `network` block as defined below. Network *HBaseClusterNetwork `pulumi:"network"` // A `privateLinkConfiguration` block as defined below. PrivateLinkConfiguration *HBaseClusterPrivateLinkConfiguration `pulumi:"privateLinkConfiguration"` // Specifies the name of the Resource Group in which this HDInsight HBase Cluster should exist. Changing this forces a new resource to be created. ResourceGroupName string `pulumi:"resourceGroupName"` // A `roles` block as defined below. Roles HBaseClusterRoles `pulumi:"roles"` // A `securityProfile` block as defined below. Changing this forces a new resource to be created. SecurityProfile *HBaseClusterSecurityProfile `pulumi:"securityProfile"` // A `storageAccountGen2` block as defined below. StorageAccountGen2 *HBaseClusterStorageAccountGen2 `pulumi:"storageAccountGen2"` // One or more `storageAccount` block as defined below. StorageAccounts []HBaseClusterStorageAccount `pulumi:"storageAccounts"` // A map of Tags which should be assigned to this HDInsight HBase Cluster. Tags map[string]string `pulumi:"tags"` // Specifies the Tier which should be used for this HDInsight HBase Cluster. Possible values are `Standard` or `Premium`. Changing this forces a new resource to be created. Tier string `pulumi:"tier"` // The minimal supported TLS version. Possible values are 1.0, 1.1 or 1.2. Changing this forces a new resource to be created. // // > **Note:** Starting on June 30, 2020, Azure HDInsight will enforce TLS 1.2 or later versions for all HTTPS connections. For more information, see [Azure HDInsight TLS 1.2 Enforcement](https://azure.microsoft.com/en-us/updates/azure-hdinsight-tls-12-enforcement/). TlsMinVersion *string `pulumi:"tlsMinVersion"` } // The set of arguments for constructing a HBaseCluster resource. type HBaseClusterArgs struct { // Specifies the Version of HDInsights which should be used for this Cluster. Changing this forces a new resource to be created. ClusterVersion pulumi.StringInput // A `componentVersion` block as defined below. ComponentVersion HBaseClusterComponentVersionInput // A `computeIsolation` block as defined below. ComputeIsolation HBaseClusterComputeIsolationPtrInput // One or more `diskEncryption` block as defined below. DiskEncryptions HBaseClusterDiskEncryptionArrayInput // An `extension` block as defined below. Extension HBaseClusterExtensionPtrInput // A `gateway` block as defined below. Gateway HBaseClusterGatewayInput // Specifies the Azure Region which this HDInsight HBase Cluster should exist. Changing this forces a new resource to be created. Location pulumi.StringPtrInput // A `metastores` block as defined below. Metastores HBaseClusterMetastoresPtrInput // A `monitor` block as defined below. Monitor HBaseClusterMonitorPtrInput // Specifies the name for this HDInsight HBase Cluster. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // A `network` block as defined below. Network HBaseClusterNetworkPtrInput // A `privateLinkConfiguration` block as defined below. PrivateLinkConfiguration HBaseClusterPrivateLinkConfigurationPtrInput // Specifies the name of the Resource Group in which this HDInsight HBase Cluster should exist. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringInput // A `roles` block as defined below. Roles HBaseClusterRolesInput // A `securityProfile` block as defined below. Changing this forces a new resource to be created. SecurityProfile HBaseClusterSecurityProfilePtrInput // A `storageAccountGen2` block as defined below. StorageAccountGen2 HBaseClusterStorageAccountGen2PtrInput // One or more `storageAccount` block as defined below. StorageAccounts HBaseClusterStorageAccountArrayInput // A map of Tags which should be assigned to this HDInsight HBase Cluster. Tags pulumi.StringMapInput // Specifies the Tier which should be used for this HDInsight HBase Cluster. Possible values are `Standard` or `Premium`. Changing this forces a new resource to be created. Tier pulumi.StringInput // The minimal supported TLS version. Possible values are 1.0, 1.1 or 1.2. Changing this forces a new resource to be created. // // > **Note:** Starting on June 30, 2020, Azure HDInsight will enforce TLS 1.2 or later versions for all HTTPS connections. For more information, see [Azure HDInsight TLS 1.2 Enforcement](https://azure.microsoft.com/en-us/updates/azure-hdinsight-tls-12-enforcement/). TlsMinVersion pulumi.StringPtrInput } func (HBaseClusterArgs) ElementType() reflect.Type { return reflect.TypeOf((*hbaseClusterArgs)(nil)).Elem() } type HBaseClusterInput interface { pulumi.Input ToHBaseClusterOutput() HBaseClusterOutput ToHBaseClusterOutputWithContext(ctx context.Context) HBaseClusterOutput } func (*HBaseCluster) ElementType() reflect.Type { return reflect.TypeOf((**HBaseCluster)(nil)).Elem() } func (i *HBaseCluster) ToHBaseClusterOutput() HBaseClusterOutput { return i.ToHBaseClusterOutputWithContext(context.Background()) } func (i *HBaseCluster) ToHBaseClusterOutputWithContext(ctx context.Context) HBaseClusterOutput { return pulumi.ToOutputWithContext(ctx, i).(HBaseClusterOutput) } // HBaseClusterArrayInput is an input type that accepts HBaseClusterArray and HBaseClusterArrayOutput values. // You can construct a concrete instance of `HBaseClusterArrayInput` via: // // HBaseClusterArray{ HBaseClusterArgs{...} } type HBaseClusterArrayInput interface { pulumi.Input ToHBaseClusterArrayOutput() HBaseClusterArrayOutput ToHBaseClusterArrayOutputWithContext(context.Context) HBaseClusterArrayOutput } type HBaseClusterArray []HBaseClusterInput func (HBaseClusterArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*HBaseCluster)(nil)).Elem() } func (i HBaseClusterArray) ToHBaseClusterArrayOutput() HBaseClusterArrayOutput { return i.ToHBaseClusterArrayOutputWithContext(context.Background()) } func (i HBaseClusterArray) ToHBaseClusterArrayOutputWithContext(ctx context.Context) HBaseClusterArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(HBaseClusterArrayOutput) } // HBaseClusterMapInput is an input type that accepts HBaseClusterMap and HBaseClusterMapOutput values. // You can construct a concrete instance of `HBaseClusterMapInput` via: // // HBaseClusterMap{ "key": HBaseClusterArgs{...} } type HBaseClusterMapInput interface { pulumi.Input ToHBaseClusterMapOutput() HBaseClusterMapOutput ToHBaseClusterMapOutputWithContext(context.Context) HBaseClusterMapOutput } type HBaseClusterMap map[string]HBaseClusterInput func (HBaseClusterMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*HBaseCluster)(nil)).Elem() } func (i HBaseClusterMap) ToHBaseClusterMapOutput() HBaseClusterMapOutput { return i.ToHBaseClusterMapOutputWithContext(context.Background()) } func (i HBaseClusterMap) ToHBaseClusterMapOutputWithContext(ctx context.Context) HBaseClusterMapOutput { return pulumi.ToOutputWithContext(ctx, i).(HBaseClusterMapOutput) } type HBaseClusterOutput struct{ *pulumi.OutputState } func (HBaseClusterOutput) ElementType() reflect.Type { return reflect.TypeOf((**HBaseCluster)(nil)).Elem() } func (o HBaseClusterOutput) ToHBaseClusterOutput() HBaseClusterOutput { return o } func (o HBaseClusterOutput) ToHBaseClusterOutputWithContext(ctx context.Context) HBaseClusterOutput { return o } // Specifies the Version of HDInsights which should be used for this Cluster. Changing this forces a new resource to be created. func (o HBaseClusterOutput) ClusterVersion() pulumi.StringOutput { return o.ApplyT(func(v *HBaseCluster) pulumi.StringOutput { return v.ClusterVersion }).(pulumi.StringOutput) } // A `componentVersion` block as defined below. func (o HBaseClusterOutput) ComponentVersion() HBaseClusterComponentVersionOutput { return o.ApplyT(func(v *HBaseCluster) HBaseClusterComponentVersionOutput { return v.ComponentVersion }).(HBaseClusterComponentVersionOutput) } // A `computeIsolation` block as defined below. func (o HBaseClusterOutput) ComputeIsolation() HBaseClusterComputeIsolationPtrOutput { return o.ApplyT(func(v *HBaseCluster) HBaseClusterComputeIsolationPtrOutput { return v.ComputeIsolation }).(HBaseClusterComputeIsolationPtrOutput) } // One or more `diskEncryption` block as defined below. func (o HBaseClusterOutput) DiskEncryptions() HBaseClusterDiskEncryptionArrayOutput { return o.ApplyT(func(v *HBaseCluster) HBaseClusterDiskEncryptionArrayOutput { return v.DiskEncryptions }).(HBaseClusterDiskEncryptionArrayOutput) } // An `extension` block as defined below. func (o HBaseClusterOutput) Extension() HBaseClusterExtensionPtrOutput { return o.ApplyT(func(v *HBaseCluster) HBaseClusterExtensionPtrOutput { return v.Extension }).(HBaseClusterExtensionPtrOutput) } // A `gateway` block as defined below. func (o HBaseClusterOutput) Gateway() HBaseClusterGatewayOutput { return o.ApplyT(func(v *HBaseCluster) HBaseClusterGatewayOutput { return v.Gateway }).(HBaseClusterGatewayOutput) } // The HTTPS Connectivity Endpoint for this HDInsight HBase Cluster. func (o HBaseClusterOutput) HttpsEndpoint() pulumi.StringOutput { return o.ApplyT(func(v *HBaseCluster) pulumi.StringOutput { return v.HttpsEndpoint }).(pulumi.StringOutput) } // Specifies the Azure Region which this HDInsight HBase Cluster should exist. Changing this forces a new resource to be created. func (o HBaseClusterOutput) Location() pulumi.StringOutput { return o.ApplyT(func(v *HBaseCluster) pulumi.StringOutput { return v.Location }).(pulumi.StringOutput) } // A `metastores` block as defined below. func (o HBaseClusterOutput) Metastores() HBaseClusterMetastoresPtrOutput { return o.ApplyT(func(v *HBaseCluster) HBaseClusterMetastoresPtrOutput { return v.Metastores }).(HBaseClusterMetastoresPtrOutput) } // A `monitor` block as defined below. func (o HBaseClusterOutput) Monitor() HBaseClusterMonitorPtrOutput { return o.ApplyT(func(v *HBaseCluster) HBaseClusterMonitorPtrOutput { return v.Monitor }).(HBaseClusterMonitorPtrOutput) } // Specifies the name for this HDInsight HBase Cluster. Changing this forces a new resource to be created. func (o HBaseClusterOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *HBaseCluster) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // A `network` block as defined below. func (o HBaseClusterOutput) Network() HBaseClusterNetworkPtrOutput { return o.ApplyT(func(v *HBaseCluster) HBaseClusterNetworkPtrOutput { return v.Network }).(HBaseClusterNetworkPtrOutput) } // A `privateLinkConfiguration` block as defined below. func (o HBaseClusterOutput) PrivateLinkConfiguration() HBaseClusterPrivateLinkConfigurationPtrOutput { return o.ApplyT(func(v *HBaseCluster) HBaseClusterPrivateLinkConfigurationPtrOutput { return v.PrivateLinkConfiguration }).(HBaseClusterPrivateLinkConfigurationPtrOutput) } // Specifies the name of the Resource Group in which this HDInsight HBase Cluster should exist. Changing this forces a new resource to be created. func (o HBaseClusterOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v *HBaseCluster) pulumi.StringOutput { return v.ResourceGroupName }).(pulumi.StringOutput) } // A `roles` block as defined below. func (o HBaseClusterOutput) Roles() HBaseClusterRolesOutput { return o.ApplyT(func(v *HBaseCluster) HBaseClusterRolesOutput { return v.Roles }).(HBaseClusterRolesOutput) } // A `securityProfile` block as defined below. Changing this forces a new resource to be created. func (o HBaseClusterOutput) SecurityProfile() HBaseClusterSecurityProfilePtrOutput { return o.ApplyT(func(v *HBaseCluster) HBaseClusterSecurityProfilePtrOutput { return v.SecurityProfile }).(HBaseClusterSecurityProfilePtrOutput) } // The SSH Connectivity Endpoint for this HDInsight HBase Cluster. func (o HBaseClusterOutput) SshEndpoint() pulumi.StringOutput { return o.ApplyT(func(v *HBaseCluster) pulumi.StringOutput { return v.SshEndpoint }).(pulumi.StringOutput) } // A `storageAccountGen2` block as defined below. func (o HBaseClusterOutput) StorageAccountGen2() HBaseClusterStorageAccountGen2PtrOutput { return o.ApplyT(func(v *HBaseCluster) HBaseClusterStorageAccountGen2PtrOutput { return v.StorageAccountGen2 }).(HBaseClusterStorageAccountGen2PtrOutput) } // One or more `storageAccount` block as defined below. func (o HBaseClusterOutput) StorageAccounts() HBaseClusterStorageAccountArrayOutput { return o.ApplyT(func(v *HBaseCluster) HBaseClusterStorageAccountArrayOutput { return v.StorageAccounts }).(HBaseClusterStorageAccountArrayOutput) } // A map of Tags which should be assigned to this HDInsight HBase Cluster. func (o HBaseClusterOutput) Tags() pulumi.StringMapOutput { return o.ApplyT(func(v *HBaseCluster) pulumi.StringMapOutput { return v.Tags }).(pulumi.StringMapOutput) } // Specifies the Tier which should be used for this HDInsight HBase Cluster. Possible values are `Standard` or `Premium`. Changing this forces a new resource to be created. func (o HBaseClusterOutput) Tier() pulumi.StringOutput { return o.ApplyT(func(v *HBaseCluster) pulumi.StringOutput { return v.Tier }).(pulumi.StringOutput) } // The minimal supported TLS version. Possible values are 1.0, 1.1 or 1.2. Changing this forces a new resource to be created. // // > **Note:** Starting on June 30, 2020, Azure HDInsight will enforce TLS 1.2 or later versions for all HTTPS connections. For more information, see [Azure HDInsight TLS 1.2 Enforcement](https://azure.microsoft.com/en-us/updates/azure-hdinsight-tls-12-enforcement/). func (o HBaseClusterOutput) TlsMinVersion() pulumi.StringPtrOutput { return o.ApplyT(func(v *HBaseCluster) pulumi.StringPtrOutput { return v.TlsMinVersion }).(pulumi.StringPtrOutput) } type HBaseClusterArrayOutput struct{ *pulumi.OutputState } func (HBaseClusterArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*HBaseCluster)(nil)).Elem() } func (o HBaseClusterArrayOutput) ToHBaseClusterArrayOutput() HBaseClusterArrayOutput { return o } func (o HBaseClusterArrayOutput) ToHBaseClusterArrayOutputWithContext(ctx context.Context) HBaseClusterArrayOutput { return o } func (o HBaseClusterArrayOutput) Index(i pulumi.IntInput) HBaseClusterOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *HBaseCluster { return vs[0].([]*HBaseCluster)[vs[1].(int)] }).(HBaseClusterOutput) } type HBaseClusterMapOutput struct{ *pulumi.OutputState } func (HBaseClusterMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*HBaseCluster)(nil)).Elem() } func (o HBaseClusterMapOutput) ToHBaseClusterMapOutput() HBaseClusterMapOutput { return o } func (o HBaseClusterMapOutput) ToHBaseClusterMapOutputWithContext(ctx context.Context) HBaseClusterMapOutput { return o } func (o HBaseClusterMapOutput) MapIndex(k pulumi.StringInput) HBaseClusterOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *HBaseCluster { return vs[0].(map[string]*HBaseCluster)[vs[1].(string)] }).(HBaseClusterOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*HBaseClusterInput)(nil)).Elem(), &HBaseCluster{}) pulumi.RegisterInputType(reflect.TypeOf((*HBaseClusterArrayInput)(nil)).Elem(), HBaseClusterArray{}) pulumi.RegisterInputType(reflect.TypeOf((*HBaseClusterMapInput)(nil)).Elem(), HBaseClusterMap{}) pulumi.RegisterOutputType(HBaseClusterOutput{}) pulumi.RegisterOutputType(HBaseClusterArrayOutput{}) pulumi.RegisterOutputType(HBaseClusterMapOutput{}) }
go
Apache-2.0
b66e1472775a89cca43f5050fef806854a7c3fa3
2026-01-07T09:44:27.619514Z
false
pulumi/pulumi-azure
https://github.com/pulumi/pulumi-azure/blob/b66e1472775a89cca43f5050fef806854a7c3fa3/sdk/go/azure/domainservices/replicaSet.go
sdk/go/azure/domainservices/replicaSet.go
// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package domainservices import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a Replica Set for an Active Directory Domain Service. // // ## 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/domainservices" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/network" // "github.com/pulumi/pulumi-azuread/sdk/v6/go/azuread" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { // primary, err := core.NewResourceGroup(ctx, "primary", &core.ResourceGroupArgs{ // Name: pulumi.String("aadds-primary-rg"), // Location: pulumi.String("West Europe"), // }) // if err != nil { // return err // } // primaryVirtualNetwork, err := network.NewVirtualNetwork(ctx, "primary", &network.VirtualNetworkArgs{ // Name: pulumi.String("aadds-primary-vnet"), // Location: primary.Location, // ResourceGroupName: primary.Name, // AddressSpaces: pulumi.StringArray{ // pulumi.String("10.0.1.0/16"), // }, // }) // if err != nil { // return err // } // primarySubnet, err := network.NewSubnet(ctx, "primary", &network.SubnetArgs{ // Name: pulumi.String("aadds-primary-subnet"), // ResourceGroupName: primary.Name, // VirtualNetworkName: primaryVirtualNetwork.Name, // AddressPrefixes: pulumi.StringArray{ // pulumi.String("10.0.1.0/24"), // }, // }) // if err != nil { // return err // } // primaryNetworkSecurityGroup, err := network.NewNetworkSecurityGroup(ctx, "primary", &network.NetworkSecurityGroupArgs{ // Name: pulumi.String("aadds-primary-nsg"), // Location: primary.Location, // ResourceGroupName: primary.Name, // SecurityRules: network.NetworkSecurityGroupSecurityRuleArray{ // &network.NetworkSecurityGroupSecurityRuleArgs{ // Name: pulumi.String("AllowSyncWithAzureAD"), // Priority: pulumi.Int(101), // Direction: pulumi.String("Inbound"), // Access: pulumi.String("Allow"), // Protocol: pulumi.String("Tcp"), // SourcePortRange: pulumi.String("*"), // DestinationPortRange: pulumi.String("443"), // SourceAddressPrefix: pulumi.String("AzureActiveDirectoryDomainServices"), // DestinationAddressPrefix: pulumi.String("*"), // }, // &network.NetworkSecurityGroupSecurityRuleArgs{ // Name: pulumi.String("AllowRD"), // Priority: pulumi.Int(201), // Direction: pulumi.String("Inbound"), // Access: pulumi.String("Allow"), // Protocol: pulumi.String("Tcp"), // SourcePortRange: pulumi.String("*"), // DestinationPortRange: pulumi.String("3389"), // SourceAddressPrefix: pulumi.String("CorpNetSaw"), // DestinationAddressPrefix: pulumi.String("*"), // }, // &network.NetworkSecurityGroupSecurityRuleArgs{ // Name: pulumi.String("AllowPSRemoting"), // Priority: pulumi.Int(301), // Direction: pulumi.String("Inbound"), // Access: pulumi.String("Allow"), // Protocol: pulumi.String("Tcp"), // SourcePortRange: pulumi.String("*"), // DestinationPortRange: pulumi.String("5986"), // SourceAddressPrefix: pulumi.String("AzureActiveDirectoryDomainServices"), // DestinationAddressPrefix: pulumi.String("*"), // }, // &network.NetworkSecurityGroupSecurityRuleArgs{ // Name: pulumi.String("AllowLDAPS"), // Priority: pulumi.Int(401), // Direction: pulumi.String("Inbound"), // Access: pulumi.String("Allow"), // Protocol: pulumi.String("Tcp"), // SourcePortRange: pulumi.String("*"), // DestinationPortRange: pulumi.String("636"), // SourceAddressPrefix: pulumi.String("*"), // DestinationAddressPrefix: pulumi.String("*"), // }, // }, // }) // if err != nil { // return err // } // primarySubnetNetworkSecurityGroupAssociation, err := network.NewSubnetNetworkSecurityGroupAssociation(ctx, "primary", &network.SubnetNetworkSecurityGroupAssociationArgs{ // SubnetId: primarySubnet.ID(), // NetworkSecurityGroupId: primaryNetworkSecurityGroup.ID(), // }) // if err != nil { // return err // } // dcAdmins, err := azuread.NewGroup(ctx, "dc_admins", &azuread.GroupArgs{ // DisplayName: pulumi.String("aad-dc-administrators"), // SecurityEnabled: pulumi.Bool(true), // }) // if err != nil { // return err // } // admin, err := azuread.NewUser(ctx, "admin", &azuread.UserArgs{ // UserPrincipalName: pulumi.String("dc-admin@hashicorp-example.net"), // DisplayName: pulumi.String("DC Administrator"), // Password: pulumi.String("Pa55w0Rd!!1"), // }) // if err != nil { // return err // } // _, err = azuread.NewGroupMember(ctx, "admin", &azuread.GroupMemberArgs{ // GroupObjectId: dcAdmins.ObjectId, // MemberObjectId: admin.ObjectId, // }) // if err != nil { // return err // } // example, err := azuread.NewServicePrincipal(ctx, "example", &azuread.ServicePrincipalArgs{ // ApplicationId: "2565bd9d-da50-47d4-8b85-4c97f669dc36", // }) // if err != nil { // return err // } // aadds, err := core.NewResourceGroup(ctx, "aadds", &core.ResourceGroupArgs{ // Name: pulumi.String("aadds-rg"), // Location: pulumi.String("westeurope"), // }) // if err != nil { // return err // } // exampleService, err := domainservices.NewService(ctx, "example", &domainservices.ServiceArgs{ // Name: pulumi.String("example-aadds"), // Location: aadds.Location, // ResourceGroupName: aadds.Name, // DomainName: pulumi.String("widgetslogin.net"), // Sku: pulumi.String("Enterprise"), // FilteredSyncEnabled: pulumi.Bool(false), // InitialReplicaSet: &domainservices.ServiceInitialReplicaSetArgs{ // Location: primaryVirtualNetwork.Location, // SubnetId: primarySubnet.ID(), // }, // Notifications: &domainservices.ServiceNotificationsArgs{ // AdditionalRecipients: pulumi.StringArray{ // pulumi.String("notifyA@example.net"), // pulumi.String("notifyB@example.org"), // }, // NotifyDcAdmins: pulumi.Bool(true), // NotifyGlobalAdmins: pulumi.Bool(true), // }, // Security: &domainservices.ServiceSecurityArgs{ // SyncKerberosPasswords: pulumi.Bool(true), // SyncNtlmPasswords: pulumi.Bool(true), // SyncOnPremPasswords: pulumi.Bool(true), // }, // Tags: pulumi.StringMap{ // "Environment": pulumi.String("prod"), // }, // }, pulumi.DependsOn([]pulumi.Resource{ // example, // primarySubnetNetworkSecurityGroupAssociation, // })) // if err != nil { // return err // } // replica, err := core.NewResourceGroup(ctx, "replica", &core.ResourceGroupArgs{ // Name: pulumi.String("aadds-replica-rg"), // Location: pulumi.String("North Europe"), // }) // if err != nil { // return err // } // replicaVirtualNetwork, err := network.NewVirtualNetwork(ctx, "replica", &network.VirtualNetworkArgs{ // Name: pulumi.String("aadds-replica-vnet"), // Location: replica.Location, // ResourceGroupName: replica.Name, // AddressSpaces: pulumi.StringArray{ // pulumi.String("10.20.0.0/16"), // }, // }) // if err != nil { // return err // } // aaddsReplica, err := network.NewSubnet(ctx, "aadds_replica", &network.SubnetArgs{ // Name: pulumi.String("aadds-replica-subnet"), // ResourceGroupName: replica.Name, // VirtualNetworkName: replicaVirtualNetwork.Name, // AddressPrefixes: pulumi.StringArray{ // pulumi.String("10.20.0.0/24"), // }, // }) // if err != nil { // return err // } // aaddsReplicaNetworkSecurityGroup, err := network.NewNetworkSecurityGroup(ctx, "aadds_replica", &network.NetworkSecurityGroupArgs{ // Name: pulumi.String("aadds-replica-nsg"), // Location: replica.Location, // ResourceGroupName: replica.Name, // SecurityRules: network.NetworkSecurityGroupSecurityRuleArray{ // &network.NetworkSecurityGroupSecurityRuleArgs{ // Name: pulumi.String("AllowSyncWithAzureAD"), // Priority: pulumi.Int(101), // Direction: pulumi.String("Inbound"), // Access: pulumi.String("Allow"), // Protocol: pulumi.String("Tcp"), // SourcePortRange: pulumi.String("*"), // DestinationPortRange: pulumi.String("443"), // SourceAddressPrefix: pulumi.String("AzureActiveDirectoryDomainServices"), // DestinationAddressPrefix: pulumi.String("*"), // }, // &network.NetworkSecurityGroupSecurityRuleArgs{ // Name: pulumi.String("AllowRD"), // Priority: pulumi.Int(201), // Direction: pulumi.String("Inbound"), // Access: pulumi.String("Allow"), // Protocol: pulumi.String("Tcp"), // SourcePortRange: pulumi.String("*"), // DestinationPortRange: pulumi.String("3389"), // SourceAddressPrefix: pulumi.String("CorpNetSaw"), // DestinationAddressPrefix: pulumi.String("*"), // }, // &network.NetworkSecurityGroupSecurityRuleArgs{ // Name: pulumi.String("AllowPSRemoting"), // Priority: pulumi.Int(301), // Direction: pulumi.String("Inbound"), // Access: pulumi.String("Allow"), // Protocol: pulumi.String("Tcp"), // SourcePortRange: pulumi.String("*"), // DestinationPortRange: pulumi.String("5986"), // SourceAddressPrefix: pulumi.String("AzureActiveDirectoryDomainServices"), // DestinationAddressPrefix: pulumi.String("*"), // }, // &network.NetworkSecurityGroupSecurityRuleArgs{ // Name: pulumi.String("AllowLDAPS"), // Priority: pulumi.Int(401), // Direction: pulumi.String("Inbound"), // Access: pulumi.String("Allow"), // Protocol: pulumi.String("Tcp"), // SourcePortRange: pulumi.String("*"), // DestinationPortRange: pulumi.String("636"), // SourceAddressPrefix: pulumi.String("*"), // DestinationAddressPrefix: pulumi.String("*"), // }, // }, // }) // if err != nil { // return err // } // replicaSubnetNetworkSecurityGroupAssociation, err := network.NewSubnetNetworkSecurityGroupAssociation(ctx, "replica", &network.SubnetNetworkSecurityGroupAssociationArgs{ // SubnetId: aaddsReplica.ID(), // NetworkSecurityGroupId: aaddsReplicaNetworkSecurityGroup.ID(), // }) // if err != nil { // return err // } // primaryReplica, err := network.NewVirtualNetworkPeering(ctx, "primary_replica", &network.VirtualNetworkPeeringArgs{ // Name: pulumi.String("aadds-primary-replica"), // ResourceGroupName: primaryVirtualNetwork.ResourceGroupName, // VirtualNetworkName: primaryVirtualNetwork.Name, // RemoteVirtualNetworkId: replicaVirtualNetwork.ID(), // AllowForwardedTraffic: pulumi.Bool(true), // AllowGatewayTransit: pulumi.Bool(false), // AllowVirtualNetworkAccess: pulumi.Bool(true), // UseRemoteGateways: pulumi.Bool(false), // }) // if err != nil { // return err // } // replicaPrimary, err := network.NewVirtualNetworkPeering(ctx, "replica_primary", &network.VirtualNetworkPeeringArgs{ // Name: pulumi.String("aadds-replica-primary"), // ResourceGroupName: replicaVirtualNetwork.ResourceGroupName, // VirtualNetworkName: replicaVirtualNetwork.Name, // RemoteVirtualNetworkId: primaryVirtualNetwork.ID(), // AllowForwardedTraffic: pulumi.Bool(true), // AllowGatewayTransit: pulumi.Bool(false), // AllowVirtualNetworkAccess: pulumi.Bool(true), // UseRemoteGateways: pulumi.Bool(false), // }) // if err != nil { // return err // } // _, err = network.NewVirtualNetworkDnsServers(ctx, "replica", &network.VirtualNetworkDnsServersArgs{ // VirtualNetworkId: replicaVirtualNetwork.ID(), // DnsServers: pulumi.StringArray(exampleService.InitialReplicaSet.ApplyT(func(initialReplicaSet domainservices.ServiceInitialReplicaSet) (interface{}, error) { // return initialReplicaSet.DomainControllerIpAddresses, nil // }).(pulumi.Interface{}Output)), // }) // if err != nil { // return err // } // _, err = domainservices.NewReplicaSet(ctx, "replica", &domainservices.ReplicaSetArgs{ // DomainServiceId: exampleService.ID(), // Location: replica.Location, // SubnetId: aaddsReplica.ID(), // }, pulumi.DependsOn([]pulumi.Resource{ // replicaSubnetNetworkSecurityGroupAssociation, // primaryReplica, // replicaPrimary, // })) // if err != nil { // return err // } // return nil // }) // } // ``` // // ## API Providers // // <!-- This section is generated, changes will be overwritten --> // This resource uses the following Azure API Providers: // // * `Microsoft.AAD` - 2021-05-01 // // ## Import // // Domain Service Replica Sets can be imported using the resource ID of the parent Domain Service and the Replica Set ID, e.g. // // ```sh // $ pulumi import azure:domainservices/replicaSet:ReplicaSet example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.AAD/domainServices/instance1/replicaSets/00000000-0000-0000-0000-000000000000 // ``` type ReplicaSet struct { pulumi.CustomResourceState // A list of subnet IP addresses for the domain controllers in this Replica Set, typically two. DomainControllerIpAddresses pulumi.StringArrayOutput `pulumi:"domainControllerIpAddresses"` // The ID of the Domain Service for which to create this Replica Set. Changing this forces a new resource to be created. DomainServiceId pulumi.StringOutput `pulumi:"domainServiceId"` // The publicly routable IP address for the domain controllers in this Replica Set. ExternalAccessIpAddress pulumi.StringOutput `pulumi:"externalAccessIpAddress"` // The Azure location where this Replica Set should exist. Changing this forces a new resource to be created. Location pulumi.StringOutput `pulumi:"location"` // The current service status for the replica set. ServiceStatus pulumi.StringOutput `pulumi:"serviceStatus"` // The ID of the subnet in which to place this Replica Set. Changing this forces a new resource to be created. SubnetId pulumi.StringOutput `pulumi:"subnetId"` } // NewReplicaSet registers a new resource with the given unique name, arguments, and options. func NewReplicaSet(ctx *pulumi.Context, name string, args *ReplicaSetArgs, opts ...pulumi.ResourceOption) (*ReplicaSet, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.DomainServiceId == nil { return nil, errors.New("invalid value for required argument 'DomainServiceId'") } if args.SubnetId == nil { return nil, errors.New("invalid value for required argument 'SubnetId'") } opts = internal.PkgResourceDefaultOpts(opts) var resource ReplicaSet err := ctx.RegisterResource("azure:domainservices/replicaSet:ReplicaSet", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetReplicaSet gets an existing ReplicaSet 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 GetReplicaSet(ctx *pulumi.Context, name string, id pulumi.IDInput, state *ReplicaSetState, opts ...pulumi.ResourceOption) (*ReplicaSet, error) { var resource ReplicaSet err := ctx.ReadResource("azure:domainservices/replicaSet:ReplicaSet", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering ReplicaSet resources. type replicaSetState struct { // A list of subnet IP addresses for the domain controllers in this Replica Set, typically two. DomainControllerIpAddresses []string `pulumi:"domainControllerIpAddresses"` // The ID of the Domain Service for which to create this Replica Set. Changing this forces a new resource to be created. DomainServiceId *string `pulumi:"domainServiceId"` // The publicly routable IP address for the domain controllers in this Replica Set. ExternalAccessIpAddress *string `pulumi:"externalAccessIpAddress"` // The Azure location where this Replica Set should exist. Changing this forces a new resource to be created. Location *string `pulumi:"location"` // The current service status for the replica set. ServiceStatus *string `pulumi:"serviceStatus"` // The ID of the subnet in which to place this Replica Set. Changing this forces a new resource to be created. SubnetId *string `pulumi:"subnetId"` } type ReplicaSetState struct { // A list of subnet IP addresses for the domain controllers in this Replica Set, typically two. DomainControllerIpAddresses pulumi.StringArrayInput // The ID of the Domain Service for which to create this Replica Set. Changing this forces a new resource to be created. DomainServiceId pulumi.StringPtrInput // The publicly routable IP address for the domain controllers in this Replica Set. ExternalAccessIpAddress pulumi.StringPtrInput // The Azure location where this Replica Set should exist. Changing this forces a new resource to be created. Location pulumi.StringPtrInput // The current service status for the replica set. ServiceStatus pulumi.StringPtrInput // The ID of the subnet in which to place this Replica Set. Changing this forces a new resource to be created. SubnetId pulumi.StringPtrInput } func (ReplicaSetState) ElementType() reflect.Type { return reflect.TypeOf((*replicaSetState)(nil)).Elem() } type replicaSetArgs struct { // The ID of the Domain Service for which to create this Replica Set. Changing this forces a new resource to be created. DomainServiceId string `pulumi:"domainServiceId"` // The Azure location where this Replica Set should exist. Changing this forces a new resource to be created. Location *string `pulumi:"location"` // The ID of the subnet in which to place this Replica Set. Changing this forces a new resource to be created. SubnetId string `pulumi:"subnetId"` } // The set of arguments for constructing a ReplicaSet resource. type ReplicaSetArgs struct { // The ID of the Domain Service for which to create this Replica Set. Changing this forces a new resource to be created. DomainServiceId pulumi.StringInput // The Azure location where this Replica Set should exist. Changing this forces a new resource to be created. Location pulumi.StringPtrInput // The ID of the subnet in which to place this Replica Set. Changing this forces a new resource to be created. SubnetId pulumi.StringInput } func (ReplicaSetArgs) ElementType() reflect.Type { return reflect.TypeOf((*replicaSetArgs)(nil)).Elem() } type ReplicaSetInput interface { pulumi.Input ToReplicaSetOutput() ReplicaSetOutput ToReplicaSetOutputWithContext(ctx context.Context) ReplicaSetOutput } func (*ReplicaSet) ElementType() reflect.Type { return reflect.TypeOf((**ReplicaSet)(nil)).Elem() } func (i *ReplicaSet) ToReplicaSetOutput() ReplicaSetOutput { return i.ToReplicaSetOutputWithContext(context.Background()) } func (i *ReplicaSet) ToReplicaSetOutputWithContext(ctx context.Context) ReplicaSetOutput { return pulumi.ToOutputWithContext(ctx, i).(ReplicaSetOutput) } // ReplicaSetArrayInput is an input type that accepts ReplicaSetArray and ReplicaSetArrayOutput values. // You can construct a concrete instance of `ReplicaSetArrayInput` via: // // ReplicaSetArray{ ReplicaSetArgs{...} } type ReplicaSetArrayInput interface { pulumi.Input ToReplicaSetArrayOutput() ReplicaSetArrayOutput ToReplicaSetArrayOutputWithContext(context.Context) ReplicaSetArrayOutput } type ReplicaSetArray []ReplicaSetInput func (ReplicaSetArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*ReplicaSet)(nil)).Elem() } func (i ReplicaSetArray) ToReplicaSetArrayOutput() ReplicaSetArrayOutput { return i.ToReplicaSetArrayOutputWithContext(context.Background()) } func (i ReplicaSetArray) ToReplicaSetArrayOutputWithContext(ctx context.Context) ReplicaSetArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(ReplicaSetArrayOutput) } // ReplicaSetMapInput is an input type that accepts ReplicaSetMap and ReplicaSetMapOutput values. // You can construct a concrete instance of `ReplicaSetMapInput` via: // // ReplicaSetMap{ "key": ReplicaSetArgs{...} } type ReplicaSetMapInput interface { pulumi.Input ToReplicaSetMapOutput() ReplicaSetMapOutput ToReplicaSetMapOutputWithContext(context.Context) ReplicaSetMapOutput } type ReplicaSetMap map[string]ReplicaSetInput func (ReplicaSetMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*ReplicaSet)(nil)).Elem() } func (i ReplicaSetMap) ToReplicaSetMapOutput() ReplicaSetMapOutput { return i.ToReplicaSetMapOutputWithContext(context.Background()) } func (i ReplicaSetMap) ToReplicaSetMapOutputWithContext(ctx context.Context) ReplicaSetMapOutput { return pulumi.ToOutputWithContext(ctx, i).(ReplicaSetMapOutput) } type ReplicaSetOutput struct{ *pulumi.OutputState } func (ReplicaSetOutput) ElementType() reflect.Type { return reflect.TypeOf((**ReplicaSet)(nil)).Elem() } func (o ReplicaSetOutput) ToReplicaSetOutput() ReplicaSetOutput { return o } func (o ReplicaSetOutput) ToReplicaSetOutputWithContext(ctx context.Context) ReplicaSetOutput { return o } // A list of subnet IP addresses for the domain controllers in this Replica Set, typically two. func (o ReplicaSetOutput) DomainControllerIpAddresses() pulumi.StringArrayOutput { return o.ApplyT(func(v *ReplicaSet) pulumi.StringArrayOutput { return v.DomainControllerIpAddresses }).(pulumi.StringArrayOutput) } // The ID of the Domain Service for which to create this Replica Set. Changing this forces a new resource to be created. func (o ReplicaSetOutput) DomainServiceId() pulumi.StringOutput { return o.ApplyT(func(v *ReplicaSet) pulumi.StringOutput { return v.DomainServiceId }).(pulumi.StringOutput) } // The publicly routable IP address for the domain controllers in this Replica Set. func (o ReplicaSetOutput) ExternalAccessIpAddress() pulumi.StringOutput { return o.ApplyT(func(v *ReplicaSet) pulumi.StringOutput { return v.ExternalAccessIpAddress }).(pulumi.StringOutput) } // The Azure location where this Replica Set should exist. Changing this forces a new resource to be created. func (o ReplicaSetOutput) Location() pulumi.StringOutput { return o.ApplyT(func(v *ReplicaSet) pulumi.StringOutput { return v.Location }).(pulumi.StringOutput) } // The current service status for the replica set. func (o ReplicaSetOutput) ServiceStatus() pulumi.StringOutput { return o.ApplyT(func(v *ReplicaSet) pulumi.StringOutput { return v.ServiceStatus }).(pulumi.StringOutput) } // The ID of the subnet in which to place this Replica Set. Changing this forces a new resource to be created. func (o ReplicaSetOutput) SubnetId() pulumi.StringOutput { return o.ApplyT(func(v *ReplicaSet) pulumi.StringOutput { return v.SubnetId }).(pulumi.StringOutput) } type ReplicaSetArrayOutput struct{ *pulumi.OutputState } func (ReplicaSetArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*ReplicaSet)(nil)).Elem() } func (o ReplicaSetArrayOutput) ToReplicaSetArrayOutput() ReplicaSetArrayOutput { return o } func (o ReplicaSetArrayOutput) ToReplicaSetArrayOutputWithContext(ctx context.Context) ReplicaSetArrayOutput { return o } func (o ReplicaSetArrayOutput) Index(i pulumi.IntInput) ReplicaSetOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *ReplicaSet { return vs[0].([]*ReplicaSet)[vs[1].(int)] }).(ReplicaSetOutput) } type ReplicaSetMapOutput struct{ *pulumi.OutputState } func (ReplicaSetMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*ReplicaSet)(nil)).Elem() } func (o ReplicaSetMapOutput) ToReplicaSetMapOutput() ReplicaSetMapOutput { return o } func (o ReplicaSetMapOutput) ToReplicaSetMapOutputWithContext(ctx context.Context) ReplicaSetMapOutput { return o } func (o ReplicaSetMapOutput) MapIndex(k pulumi.StringInput) ReplicaSetOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *ReplicaSet { return vs[0].(map[string]*ReplicaSet)[vs[1].(string)] }).(ReplicaSetOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*ReplicaSetInput)(nil)).Elem(), &ReplicaSet{}) pulumi.RegisterInputType(reflect.TypeOf((*ReplicaSetArrayInput)(nil)).Elem(), ReplicaSetArray{}) pulumi.RegisterInputType(reflect.TypeOf((*ReplicaSetMapInput)(nil)).Elem(), ReplicaSetMap{}) pulumi.RegisterOutputType(ReplicaSetOutput{}) pulumi.RegisterOutputType(ReplicaSetArrayOutput{}) pulumi.RegisterOutputType(ReplicaSetMapOutput{}) }
go
Apache-2.0
b66e1472775a89cca43f5050fef806854a7c3fa3
2026-01-07T09:44:27.619514Z
false
pulumi/pulumi-azure
https://github.com/pulumi/pulumi-azure/blob/b66e1472775a89cca43f5050fef806854a7c3fa3/sdk/go/azure/domainservices/init.go
sdk/go/azure/domainservices/init.go
// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package domainservices import ( "fmt" "github.com/blang/semver" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) type module struct { version semver.Version } func (m *module) Version() semver.Version { return m.version } func (m *module) Construct(ctx *pulumi.Context, name, typ, urn string) (r pulumi.Resource, err error) { switch typ { case "azure:domainservices/replicaSet:ReplicaSet": r = &ReplicaSet{} case "azure:domainservices/service:Service": r = &Service{} case "azure:domainservices/serviceTrust:ServiceTrust": r = &ServiceTrust{} default: return nil, fmt.Errorf("unknown resource type: %s", typ) } err = ctx.RegisterResource(typ, name, nil, r, pulumi.URN_(urn)) return } func init() { version, err := internal.PkgVersion() if err != nil { version = semver.Version{Major: 1} } pulumi.RegisterResourceModule( "azure", "domainservices/replicaSet", &module{version}, ) pulumi.RegisterResourceModule( "azure", "domainservices/service", &module{version}, ) pulumi.RegisterResourceModule( "azure", "domainservices/serviceTrust", &module{version}, ) }
go
Apache-2.0
b66e1472775a89cca43f5050fef806854a7c3fa3
2026-01-07T09:44:27.619514Z
false
pulumi/pulumi-azure
https://github.com/pulumi/pulumi-azure/blob/b66e1472775a89cca43f5050fef806854a7c3fa3/sdk/go/azure/domainservices/pulumiTypes.go
sdk/go/azure/domainservices/pulumiTypes.go
// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package domainservices import ( "context" "reflect" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) var _ = internal.GetEnvOrDefault type ServiceInitialReplicaSet struct { // A list of subnet IP addresses for the domain controllers in the initial replica set, typically two. DomainControllerIpAddresses []string `pulumi:"domainControllerIpAddresses"` // The publicly routable IP address for the domain controllers in the initial replica set. ExternalAccessIpAddress *string `pulumi:"externalAccessIpAddress"` // A unique ID for the replica set. Id *string `pulumi:"id"` // The Azure location where the Domain Service exists. Changing this forces a new resource to be created. Location *string `pulumi:"location"` // The current service status for the initial replica set. ServiceStatus *string `pulumi:"serviceStatus"` // The ID of the subnet in which to place the initial replica set. Changing this forces a new resource to be created. SubnetId string `pulumi:"subnetId"` } // ServiceInitialReplicaSetInput is an input type that accepts ServiceInitialReplicaSetArgs and ServiceInitialReplicaSetOutput values. // You can construct a concrete instance of `ServiceInitialReplicaSetInput` via: // // ServiceInitialReplicaSetArgs{...} type ServiceInitialReplicaSetInput interface { pulumi.Input ToServiceInitialReplicaSetOutput() ServiceInitialReplicaSetOutput ToServiceInitialReplicaSetOutputWithContext(context.Context) ServiceInitialReplicaSetOutput } type ServiceInitialReplicaSetArgs struct { // A list of subnet IP addresses for the domain controllers in the initial replica set, typically two. DomainControllerIpAddresses pulumi.StringArrayInput `pulumi:"domainControllerIpAddresses"` // The publicly routable IP address for the domain controllers in the initial replica set. ExternalAccessIpAddress pulumi.StringPtrInput `pulumi:"externalAccessIpAddress"` // A unique ID for the replica set. Id pulumi.StringPtrInput `pulumi:"id"` // The Azure location where the Domain Service exists. Changing this forces a new resource to be created. Location pulumi.StringPtrInput `pulumi:"location"` // The current service status for the initial replica set. ServiceStatus pulumi.StringPtrInput `pulumi:"serviceStatus"` // The ID of the subnet in which to place the initial replica set. Changing this forces a new resource to be created. SubnetId pulumi.StringInput `pulumi:"subnetId"` } func (ServiceInitialReplicaSetArgs) ElementType() reflect.Type { return reflect.TypeOf((*ServiceInitialReplicaSet)(nil)).Elem() } func (i ServiceInitialReplicaSetArgs) ToServiceInitialReplicaSetOutput() ServiceInitialReplicaSetOutput { return i.ToServiceInitialReplicaSetOutputWithContext(context.Background()) } func (i ServiceInitialReplicaSetArgs) ToServiceInitialReplicaSetOutputWithContext(ctx context.Context) ServiceInitialReplicaSetOutput { return pulumi.ToOutputWithContext(ctx, i).(ServiceInitialReplicaSetOutput) } func (i ServiceInitialReplicaSetArgs) ToServiceInitialReplicaSetPtrOutput() ServiceInitialReplicaSetPtrOutput { return i.ToServiceInitialReplicaSetPtrOutputWithContext(context.Background()) } func (i ServiceInitialReplicaSetArgs) ToServiceInitialReplicaSetPtrOutputWithContext(ctx context.Context) ServiceInitialReplicaSetPtrOutput { return pulumi.ToOutputWithContext(ctx, i).(ServiceInitialReplicaSetOutput).ToServiceInitialReplicaSetPtrOutputWithContext(ctx) } // ServiceInitialReplicaSetPtrInput is an input type that accepts ServiceInitialReplicaSetArgs, ServiceInitialReplicaSetPtr and ServiceInitialReplicaSetPtrOutput values. // You can construct a concrete instance of `ServiceInitialReplicaSetPtrInput` via: // // ServiceInitialReplicaSetArgs{...} // // or: // // nil type ServiceInitialReplicaSetPtrInput interface { pulumi.Input ToServiceInitialReplicaSetPtrOutput() ServiceInitialReplicaSetPtrOutput ToServiceInitialReplicaSetPtrOutputWithContext(context.Context) ServiceInitialReplicaSetPtrOutput } type serviceInitialReplicaSetPtrType ServiceInitialReplicaSetArgs func ServiceInitialReplicaSetPtr(v *ServiceInitialReplicaSetArgs) ServiceInitialReplicaSetPtrInput { return (*serviceInitialReplicaSetPtrType)(v) } func (*serviceInitialReplicaSetPtrType) ElementType() reflect.Type { return reflect.TypeOf((**ServiceInitialReplicaSet)(nil)).Elem() } func (i *serviceInitialReplicaSetPtrType) ToServiceInitialReplicaSetPtrOutput() ServiceInitialReplicaSetPtrOutput { return i.ToServiceInitialReplicaSetPtrOutputWithContext(context.Background()) } func (i *serviceInitialReplicaSetPtrType) ToServiceInitialReplicaSetPtrOutputWithContext(ctx context.Context) ServiceInitialReplicaSetPtrOutput { return pulumi.ToOutputWithContext(ctx, i).(ServiceInitialReplicaSetPtrOutput) } type ServiceInitialReplicaSetOutput struct{ *pulumi.OutputState } func (ServiceInitialReplicaSetOutput) ElementType() reflect.Type { return reflect.TypeOf((*ServiceInitialReplicaSet)(nil)).Elem() } func (o ServiceInitialReplicaSetOutput) ToServiceInitialReplicaSetOutput() ServiceInitialReplicaSetOutput { return o } func (o ServiceInitialReplicaSetOutput) ToServiceInitialReplicaSetOutputWithContext(ctx context.Context) ServiceInitialReplicaSetOutput { return o } func (o ServiceInitialReplicaSetOutput) ToServiceInitialReplicaSetPtrOutput() ServiceInitialReplicaSetPtrOutput { return o.ToServiceInitialReplicaSetPtrOutputWithContext(context.Background()) } func (o ServiceInitialReplicaSetOutput) ToServiceInitialReplicaSetPtrOutputWithContext(ctx context.Context) ServiceInitialReplicaSetPtrOutput { return o.ApplyTWithContext(ctx, func(_ context.Context, v ServiceInitialReplicaSet) *ServiceInitialReplicaSet { return &v }).(ServiceInitialReplicaSetPtrOutput) } // A list of subnet IP addresses for the domain controllers in the initial replica set, typically two. func (o ServiceInitialReplicaSetOutput) DomainControllerIpAddresses() pulumi.StringArrayOutput { return o.ApplyT(func(v ServiceInitialReplicaSet) []string { return v.DomainControllerIpAddresses }).(pulumi.StringArrayOutput) } // The publicly routable IP address for the domain controllers in the initial replica set. func (o ServiceInitialReplicaSetOutput) ExternalAccessIpAddress() pulumi.StringPtrOutput { return o.ApplyT(func(v ServiceInitialReplicaSet) *string { return v.ExternalAccessIpAddress }).(pulumi.StringPtrOutput) } // A unique ID for the replica set. func (o ServiceInitialReplicaSetOutput) Id() pulumi.StringPtrOutput { return o.ApplyT(func(v ServiceInitialReplicaSet) *string { return v.Id }).(pulumi.StringPtrOutput) } // The Azure location where the Domain Service exists. Changing this forces a new resource to be created. func (o ServiceInitialReplicaSetOutput) Location() pulumi.StringPtrOutput { return o.ApplyT(func(v ServiceInitialReplicaSet) *string { return v.Location }).(pulumi.StringPtrOutput) } // The current service status for the initial replica set. func (o ServiceInitialReplicaSetOutput) ServiceStatus() pulumi.StringPtrOutput { return o.ApplyT(func(v ServiceInitialReplicaSet) *string { return v.ServiceStatus }).(pulumi.StringPtrOutput) } // The ID of the subnet in which to place the initial replica set. Changing this forces a new resource to be created. func (o ServiceInitialReplicaSetOutput) SubnetId() pulumi.StringOutput { return o.ApplyT(func(v ServiceInitialReplicaSet) string { return v.SubnetId }).(pulumi.StringOutput) } type ServiceInitialReplicaSetPtrOutput struct{ *pulumi.OutputState } func (ServiceInitialReplicaSetPtrOutput) ElementType() reflect.Type { return reflect.TypeOf((**ServiceInitialReplicaSet)(nil)).Elem() } func (o ServiceInitialReplicaSetPtrOutput) ToServiceInitialReplicaSetPtrOutput() ServiceInitialReplicaSetPtrOutput { return o } func (o ServiceInitialReplicaSetPtrOutput) ToServiceInitialReplicaSetPtrOutputWithContext(ctx context.Context) ServiceInitialReplicaSetPtrOutput { return o } func (o ServiceInitialReplicaSetPtrOutput) Elem() ServiceInitialReplicaSetOutput { return o.ApplyT(func(v *ServiceInitialReplicaSet) ServiceInitialReplicaSet { if v != nil { return *v } var ret ServiceInitialReplicaSet return ret }).(ServiceInitialReplicaSetOutput) } // A list of subnet IP addresses for the domain controllers in the initial replica set, typically two. func (o ServiceInitialReplicaSetPtrOutput) DomainControllerIpAddresses() pulumi.StringArrayOutput { return o.ApplyT(func(v *ServiceInitialReplicaSet) []string { if v == nil { return nil } return v.DomainControllerIpAddresses }).(pulumi.StringArrayOutput) } // The publicly routable IP address for the domain controllers in the initial replica set. func (o ServiceInitialReplicaSetPtrOutput) ExternalAccessIpAddress() pulumi.StringPtrOutput { return o.ApplyT(func(v *ServiceInitialReplicaSet) *string { if v == nil { return nil } return v.ExternalAccessIpAddress }).(pulumi.StringPtrOutput) } // A unique ID for the replica set. func (o ServiceInitialReplicaSetPtrOutput) Id() pulumi.StringPtrOutput { return o.ApplyT(func(v *ServiceInitialReplicaSet) *string { if v == nil { return nil } return v.Id }).(pulumi.StringPtrOutput) } // The Azure location where the Domain Service exists. Changing this forces a new resource to be created. func (o ServiceInitialReplicaSetPtrOutput) Location() pulumi.StringPtrOutput { return o.ApplyT(func(v *ServiceInitialReplicaSet) *string { if v == nil { return nil } return v.Location }).(pulumi.StringPtrOutput) } // The current service status for the initial replica set. func (o ServiceInitialReplicaSetPtrOutput) ServiceStatus() pulumi.StringPtrOutput { return o.ApplyT(func(v *ServiceInitialReplicaSet) *string { if v == nil { return nil } return v.ServiceStatus }).(pulumi.StringPtrOutput) } // The ID of the subnet in which to place the initial replica set. Changing this forces a new resource to be created. func (o ServiceInitialReplicaSetPtrOutput) SubnetId() pulumi.StringPtrOutput { return o.ApplyT(func(v *ServiceInitialReplicaSet) *string { if v == nil { return nil } return &v.SubnetId }).(pulumi.StringPtrOutput) } type ServiceNotifications struct { // A list of additional email addresses to notify when there are alerts in the managed domain. AdditionalRecipients []string `pulumi:"additionalRecipients"` // Whether to notify members of the _AAD DC Administrators_ group when there are alerts in the managed domain. NotifyDcAdmins *bool `pulumi:"notifyDcAdmins"` // Whether to notify all Global Administrators when there are alerts in the managed domain. NotifyGlobalAdmins *bool `pulumi:"notifyGlobalAdmins"` } // ServiceNotificationsInput is an input type that accepts ServiceNotificationsArgs and ServiceNotificationsOutput values. // You can construct a concrete instance of `ServiceNotificationsInput` via: // // ServiceNotificationsArgs{...} type ServiceNotificationsInput interface { pulumi.Input ToServiceNotificationsOutput() ServiceNotificationsOutput ToServiceNotificationsOutputWithContext(context.Context) ServiceNotificationsOutput } type ServiceNotificationsArgs struct { // A list of additional email addresses to notify when there are alerts in the managed domain. AdditionalRecipients pulumi.StringArrayInput `pulumi:"additionalRecipients"` // Whether to notify members of the _AAD DC Administrators_ group when there are alerts in the managed domain. NotifyDcAdmins pulumi.BoolPtrInput `pulumi:"notifyDcAdmins"` // Whether to notify all Global Administrators when there are alerts in the managed domain. NotifyGlobalAdmins pulumi.BoolPtrInput `pulumi:"notifyGlobalAdmins"` } func (ServiceNotificationsArgs) ElementType() reflect.Type { return reflect.TypeOf((*ServiceNotifications)(nil)).Elem() } func (i ServiceNotificationsArgs) ToServiceNotificationsOutput() ServiceNotificationsOutput { return i.ToServiceNotificationsOutputWithContext(context.Background()) } func (i ServiceNotificationsArgs) ToServiceNotificationsOutputWithContext(ctx context.Context) ServiceNotificationsOutput { return pulumi.ToOutputWithContext(ctx, i).(ServiceNotificationsOutput) } func (i ServiceNotificationsArgs) ToServiceNotificationsPtrOutput() ServiceNotificationsPtrOutput { return i.ToServiceNotificationsPtrOutputWithContext(context.Background()) } func (i ServiceNotificationsArgs) ToServiceNotificationsPtrOutputWithContext(ctx context.Context) ServiceNotificationsPtrOutput { return pulumi.ToOutputWithContext(ctx, i).(ServiceNotificationsOutput).ToServiceNotificationsPtrOutputWithContext(ctx) } // ServiceNotificationsPtrInput is an input type that accepts ServiceNotificationsArgs, ServiceNotificationsPtr and ServiceNotificationsPtrOutput values. // You can construct a concrete instance of `ServiceNotificationsPtrInput` via: // // ServiceNotificationsArgs{...} // // or: // // nil type ServiceNotificationsPtrInput interface { pulumi.Input ToServiceNotificationsPtrOutput() ServiceNotificationsPtrOutput ToServiceNotificationsPtrOutputWithContext(context.Context) ServiceNotificationsPtrOutput } type serviceNotificationsPtrType ServiceNotificationsArgs func ServiceNotificationsPtr(v *ServiceNotificationsArgs) ServiceNotificationsPtrInput { return (*serviceNotificationsPtrType)(v) } func (*serviceNotificationsPtrType) ElementType() reflect.Type { return reflect.TypeOf((**ServiceNotifications)(nil)).Elem() } func (i *serviceNotificationsPtrType) ToServiceNotificationsPtrOutput() ServiceNotificationsPtrOutput { return i.ToServiceNotificationsPtrOutputWithContext(context.Background()) } func (i *serviceNotificationsPtrType) ToServiceNotificationsPtrOutputWithContext(ctx context.Context) ServiceNotificationsPtrOutput { return pulumi.ToOutputWithContext(ctx, i).(ServiceNotificationsPtrOutput) } type ServiceNotificationsOutput struct{ *pulumi.OutputState } func (ServiceNotificationsOutput) ElementType() reflect.Type { return reflect.TypeOf((*ServiceNotifications)(nil)).Elem() } func (o ServiceNotificationsOutput) ToServiceNotificationsOutput() ServiceNotificationsOutput { return o } func (o ServiceNotificationsOutput) ToServiceNotificationsOutputWithContext(ctx context.Context) ServiceNotificationsOutput { return o } func (o ServiceNotificationsOutput) ToServiceNotificationsPtrOutput() ServiceNotificationsPtrOutput { return o.ToServiceNotificationsPtrOutputWithContext(context.Background()) } func (o ServiceNotificationsOutput) ToServiceNotificationsPtrOutputWithContext(ctx context.Context) ServiceNotificationsPtrOutput { return o.ApplyTWithContext(ctx, func(_ context.Context, v ServiceNotifications) *ServiceNotifications { return &v }).(ServiceNotificationsPtrOutput) } // A list of additional email addresses to notify when there are alerts in the managed domain. func (o ServiceNotificationsOutput) AdditionalRecipients() pulumi.StringArrayOutput { return o.ApplyT(func(v ServiceNotifications) []string { return v.AdditionalRecipients }).(pulumi.StringArrayOutput) } // Whether to notify members of the _AAD DC Administrators_ group when there are alerts in the managed domain. func (o ServiceNotificationsOutput) NotifyDcAdmins() pulumi.BoolPtrOutput { return o.ApplyT(func(v ServiceNotifications) *bool { return v.NotifyDcAdmins }).(pulumi.BoolPtrOutput) } // Whether to notify all Global Administrators when there are alerts in the managed domain. func (o ServiceNotificationsOutput) NotifyGlobalAdmins() pulumi.BoolPtrOutput { return o.ApplyT(func(v ServiceNotifications) *bool { return v.NotifyGlobalAdmins }).(pulumi.BoolPtrOutput) } type ServiceNotificationsPtrOutput struct{ *pulumi.OutputState } func (ServiceNotificationsPtrOutput) ElementType() reflect.Type { return reflect.TypeOf((**ServiceNotifications)(nil)).Elem() } func (o ServiceNotificationsPtrOutput) ToServiceNotificationsPtrOutput() ServiceNotificationsPtrOutput { return o } func (o ServiceNotificationsPtrOutput) ToServiceNotificationsPtrOutputWithContext(ctx context.Context) ServiceNotificationsPtrOutput { return o } func (o ServiceNotificationsPtrOutput) Elem() ServiceNotificationsOutput { return o.ApplyT(func(v *ServiceNotifications) ServiceNotifications { if v != nil { return *v } var ret ServiceNotifications return ret }).(ServiceNotificationsOutput) } // A list of additional email addresses to notify when there are alerts in the managed domain. func (o ServiceNotificationsPtrOutput) AdditionalRecipients() pulumi.StringArrayOutput { return o.ApplyT(func(v *ServiceNotifications) []string { if v == nil { return nil } return v.AdditionalRecipients }).(pulumi.StringArrayOutput) } // Whether to notify members of the _AAD DC Administrators_ group when there are alerts in the managed domain. func (o ServiceNotificationsPtrOutput) NotifyDcAdmins() pulumi.BoolPtrOutput { return o.ApplyT(func(v *ServiceNotifications) *bool { if v == nil { return nil } return v.NotifyDcAdmins }).(pulumi.BoolPtrOutput) } // Whether to notify all Global Administrators when there are alerts in the managed domain. func (o ServiceNotificationsPtrOutput) NotifyGlobalAdmins() pulumi.BoolPtrOutput { return o.ApplyT(func(v *ServiceNotifications) *bool { if v == nil { return nil } return v.NotifyGlobalAdmins }).(pulumi.BoolPtrOutput) } type ServiceSecureLdap struct { // The expiry time of the certificate. CertificateExpiry *string `pulumi:"certificateExpiry"` // The thumbprint of the certificate. CertificateThumbprint *string `pulumi:"certificateThumbprint"` // Whether to enable secure LDAP for the managed domain. For more information, please see [official documentation on enabling LDAPS](https://docs.microsoft.com/azure/active-directory-domain-services/tutorial-configure-ldaps), paying particular attention to the section on network security to avoid unnecessarily exposing your service to Internet-borne bruteforce attacks. Enabled bool `pulumi:"enabled"` // Whether to enable external access to LDAPS over the Internet. Defaults to `false`. ExternalAccessEnabled *bool `pulumi:"externalAccessEnabled"` // The certificate/private key to use for LDAPS, as a base64-encoded TripleDES-SHA1 encrypted PKCS#12 bundle (PFX file). PfxCertificate string `pulumi:"pfxCertificate"` // The password to use for decrypting the PKCS#12 bundle (PFX file). PfxCertificatePassword string `pulumi:"pfxCertificatePassword"` // The public certificate. PublicCertificate *string `pulumi:"publicCertificate"` } // ServiceSecureLdapInput is an input type that accepts ServiceSecureLdapArgs and ServiceSecureLdapOutput values. // You can construct a concrete instance of `ServiceSecureLdapInput` via: // // ServiceSecureLdapArgs{...} type ServiceSecureLdapInput interface { pulumi.Input ToServiceSecureLdapOutput() ServiceSecureLdapOutput ToServiceSecureLdapOutputWithContext(context.Context) ServiceSecureLdapOutput } type ServiceSecureLdapArgs struct { // The expiry time of the certificate. CertificateExpiry pulumi.StringPtrInput `pulumi:"certificateExpiry"` // The thumbprint of the certificate. CertificateThumbprint pulumi.StringPtrInput `pulumi:"certificateThumbprint"` // Whether to enable secure LDAP for the managed domain. For more information, please see [official documentation on enabling LDAPS](https://docs.microsoft.com/azure/active-directory-domain-services/tutorial-configure-ldaps), paying particular attention to the section on network security to avoid unnecessarily exposing your service to Internet-borne bruteforce attacks. Enabled pulumi.BoolInput `pulumi:"enabled"` // Whether to enable external access to LDAPS over the Internet. Defaults to `false`. ExternalAccessEnabled pulumi.BoolPtrInput `pulumi:"externalAccessEnabled"` // The certificate/private key to use for LDAPS, as a base64-encoded TripleDES-SHA1 encrypted PKCS#12 bundle (PFX file). PfxCertificate pulumi.StringInput `pulumi:"pfxCertificate"` // The password to use for decrypting the PKCS#12 bundle (PFX file). PfxCertificatePassword pulumi.StringInput `pulumi:"pfxCertificatePassword"` // The public certificate. PublicCertificate pulumi.StringPtrInput `pulumi:"publicCertificate"` } func (ServiceSecureLdapArgs) ElementType() reflect.Type { return reflect.TypeOf((*ServiceSecureLdap)(nil)).Elem() } func (i ServiceSecureLdapArgs) ToServiceSecureLdapOutput() ServiceSecureLdapOutput { return i.ToServiceSecureLdapOutputWithContext(context.Background()) } func (i ServiceSecureLdapArgs) ToServiceSecureLdapOutputWithContext(ctx context.Context) ServiceSecureLdapOutput { return pulumi.ToOutputWithContext(ctx, i).(ServiceSecureLdapOutput) } func (i ServiceSecureLdapArgs) ToServiceSecureLdapPtrOutput() ServiceSecureLdapPtrOutput { return i.ToServiceSecureLdapPtrOutputWithContext(context.Background()) } func (i ServiceSecureLdapArgs) ToServiceSecureLdapPtrOutputWithContext(ctx context.Context) ServiceSecureLdapPtrOutput { return pulumi.ToOutputWithContext(ctx, i).(ServiceSecureLdapOutput).ToServiceSecureLdapPtrOutputWithContext(ctx) } // ServiceSecureLdapPtrInput is an input type that accepts ServiceSecureLdapArgs, ServiceSecureLdapPtr and ServiceSecureLdapPtrOutput values. // You can construct a concrete instance of `ServiceSecureLdapPtrInput` via: // // ServiceSecureLdapArgs{...} // // or: // // nil type ServiceSecureLdapPtrInput interface { pulumi.Input ToServiceSecureLdapPtrOutput() ServiceSecureLdapPtrOutput ToServiceSecureLdapPtrOutputWithContext(context.Context) ServiceSecureLdapPtrOutput } type serviceSecureLdapPtrType ServiceSecureLdapArgs func ServiceSecureLdapPtr(v *ServiceSecureLdapArgs) ServiceSecureLdapPtrInput { return (*serviceSecureLdapPtrType)(v) } func (*serviceSecureLdapPtrType) ElementType() reflect.Type { return reflect.TypeOf((**ServiceSecureLdap)(nil)).Elem() } func (i *serviceSecureLdapPtrType) ToServiceSecureLdapPtrOutput() ServiceSecureLdapPtrOutput { return i.ToServiceSecureLdapPtrOutputWithContext(context.Background()) } func (i *serviceSecureLdapPtrType) ToServiceSecureLdapPtrOutputWithContext(ctx context.Context) ServiceSecureLdapPtrOutput { return pulumi.ToOutputWithContext(ctx, i).(ServiceSecureLdapPtrOutput) } type ServiceSecureLdapOutput struct{ *pulumi.OutputState } func (ServiceSecureLdapOutput) ElementType() reflect.Type { return reflect.TypeOf((*ServiceSecureLdap)(nil)).Elem() } func (o ServiceSecureLdapOutput) ToServiceSecureLdapOutput() ServiceSecureLdapOutput { return o } func (o ServiceSecureLdapOutput) ToServiceSecureLdapOutputWithContext(ctx context.Context) ServiceSecureLdapOutput { return o } func (o ServiceSecureLdapOutput) ToServiceSecureLdapPtrOutput() ServiceSecureLdapPtrOutput { return o.ToServiceSecureLdapPtrOutputWithContext(context.Background()) } func (o ServiceSecureLdapOutput) ToServiceSecureLdapPtrOutputWithContext(ctx context.Context) ServiceSecureLdapPtrOutput { return o.ApplyTWithContext(ctx, func(_ context.Context, v ServiceSecureLdap) *ServiceSecureLdap { return &v }).(ServiceSecureLdapPtrOutput) } // The expiry time of the certificate. func (o ServiceSecureLdapOutput) CertificateExpiry() pulumi.StringPtrOutput { return o.ApplyT(func(v ServiceSecureLdap) *string { return v.CertificateExpiry }).(pulumi.StringPtrOutput) } // The thumbprint of the certificate. func (o ServiceSecureLdapOutput) CertificateThumbprint() pulumi.StringPtrOutput { return o.ApplyT(func(v ServiceSecureLdap) *string { return v.CertificateThumbprint }).(pulumi.StringPtrOutput) } // Whether to enable secure LDAP for the managed domain. For more information, please see [official documentation on enabling LDAPS](https://docs.microsoft.com/azure/active-directory-domain-services/tutorial-configure-ldaps), paying particular attention to the section on network security to avoid unnecessarily exposing your service to Internet-borne bruteforce attacks. func (o ServiceSecureLdapOutput) Enabled() pulumi.BoolOutput { return o.ApplyT(func(v ServiceSecureLdap) bool { return v.Enabled }).(pulumi.BoolOutput) } // Whether to enable external access to LDAPS over the Internet. Defaults to `false`. func (o ServiceSecureLdapOutput) ExternalAccessEnabled() pulumi.BoolPtrOutput { return o.ApplyT(func(v ServiceSecureLdap) *bool { return v.ExternalAccessEnabled }).(pulumi.BoolPtrOutput) } // The certificate/private key to use for LDAPS, as a base64-encoded TripleDES-SHA1 encrypted PKCS#12 bundle (PFX file). func (o ServiceSecureLdapOutput) PfxCertificate() pulumi.StringOutput { return o.ApplyT(func(v ServiceSecureLdap) string { return v.PfxCertificate }).(pulumi.StringOutput) } // The password to use for decrypting the PKCS#12 bundle (PFX file). func (o ServiceSecureLdapOutput) PfxCertificatePassword() pulumi.StringOutput { return o.ApplyT(func(v ServiceSecureLdap) string { return v.PfxCertificatePassword }).(pulumi.StringOutput) } // The public certificate. func (o ServiceSecureLdapOutput) PublicCertificate() pulumi.StringPtrOutput { return o.ApplyT(func(v ServiceSecureLdap) *string { return v.PublicCertificate }).(pulumi.StringPtrOutput) } type ServiceSecureLdapPtrOutput struct{ *pulumi.OutputState } func (ServiceSecureLdapPtrOutput) ElementType() reflect.Type { return reflect.TypeOf((**ServiceSecureLdap)(nil)).Elem() } func (o ServiceSecureLdapPtrOutput) ToServiceSecureLdapPtrOutput() ServiceSecureLdapPtrOutput { return o } func (o ServiceSecureLdapPtrOutput) ToServiceSecureLdapPtrOutputWithContext(ctx context.Context) ServiceSecureLdapPtrOutput { return o } func (o ServiceSecureLdapPtrOutput) Elem() ServiceSecureLdapOutput { return o.ApplyT(func(v *ServiceSecureLdap) ServiceSecureLdap { if v != nil { return *v } var ret ServiceSecureLdap return ret }).(ServiceSecureLdapOutput) } // The expiry time of the certificate. func (o ServiceSecureLdapPtrOutput) CertificateExpiry() pulumi.StringPtrOutput { return o.ApplyT(func(v *ServiceSecureLdap) *string { if v == nil { return nil } return v.CertificateExpiry }).(pulumi.StringPtrOutput) } // The thumbprint of the certificate. func (o ServiceSecureLdapPtrOutput) CertificateThumbprint() pulumi.StringPtrOutput { return o.ApplyT(func(v *ServiceSecureLdap) *string { if v == nil { return nil } return v.CertificateThumbprint }).(pulumi.StringPtrOutput) } // Whether to enable secure LDAP for the managed domain. For more information, please see [official documentation on enabling LDAPS](https://docs.microsoft.com/azure/active-directory-domain-services/tutorial-configure-ldaps), paying particular attention to the section on network security to avoid unnecessarily exposing your service to Internet-borne bruteforce attacks. func (o ServiceSecureLdapPtrOutput) Enabled() pulumi.BoolPtrOutput { return o.ApplyT(func(v *ServiceSecureLdap) *bool { if v == nil { return nil } return &v.Enabled }).(pulumi.BoolPtrOutput) } // Whether to enable external access to LDAPS over the Internet. Defaults to `false`. func (o ServiceSecureLdapPtrOutput) ExternalAccessEnabled() pulumi.BoolPtrOutput { return o.ApplyT(func(v *ServiceSecureLdap) *bool { if v == nil { return nil } return v.ExternalAccessEnabled }).(pulumi.BoolPtrOutput) } // The certificate/private key to use for LDAPS, as a base64-encoded TripleDES-SHA1 encrypted PKCS#12 bundle (PFX file). func (o ServiceSecureLdapPtrOutput) PfxCertificate() pulumi.StringPtrOutput { return o.ApplyT(func(v *ServiceSecureLdap) *string { if v == nil { return nil } return &v.PfxCertificate }).(pulumi.StringPtrOutput) } // The password to use for decrypting the PKCS#12 bundle (PFX file). func (o ServiceSecureLdapPtrOutput) PfxCertificatePassword() pulumi.StringPtrOutput { return o.ApplyT(func(v *ServiceSecureLdap) *string { if v == nil { return nil } return &v.PfxCertificatePassword }).(pulumi.StringPtrOutput) } // The public certificate. func (o ServiceSecureLdapPtrOutput) PublicCertificate() pulumi.StringPtrOutput { return o.ApplyT(func(v *ServiceSecureLdap) *string { if v == nil { return nil } return v.PublicCertificate }).(pulumi.StringPtrOutput) } type ServiceSecurity struct { // Whether to enable Kerberos Armoring. Defaults to `false`. KerberosArmoringEnabled *bool `pulumi:"kerberosArmoringEnabled"` // Whether to enable Kerberos RC4 Encryption. Defaults to `false`. KerberosRc4EncryptionEnabled *bool `pulumi:"kerberosRc4EncryptionEnabled"` // Whether to enable legacy NTLM v1 support. Defaults to `false`. NtlmV1Enabled *bool `pulumi:"ntlmV1Enabled"` // Whether to synchronize Kerberos password hashes to the managed domain. Defaults to `false`. SyncKerberosPasswords *bool `pulumi:"syncKerberosPasswords"` // Whether to synchronize NTLM password hashes to the managed domain. Defaults to `false`. SyncNtlmPasswords *bool `pulumi:"syncNtlmPasswords"` // Whether to synchronize on-premises password hashes to the managed domain. Defaults to `false`. SyncOnPremPasswords *bool `pulumi:"syncOnPremPasswords"` // Whether to enable legacy TLS v1 support. Defaults to `false`. TlsV1Enabled *bool `pulumi:"tlsV1Enabled"` } // ServiceSecurityInput is an input type that accepts ServiceSecurityArgs and ServiceSecurityOutput values. // You can construct a concrete instance of `ServiceSecurityInput` via: // // ServiceSecurityArgs{...} type ServiceSecurityInput interface { pulumi.Input ToServiceSecurityOutput() ServiceSecurityOutput ToServiceSecurityOutputWithContext(context.Context) ServiceSecurityOutput } type ServiceSecurityArgs struct { // Whether to enable Kerberos Armoring. Defaults to `false`. KerberosArmoringEnabled pulumi.BoolPtrInput `pulumi:"kerberosArmoringEnabled"` // Whether to enable Kerberos RC4 Encryption. Defaults to `false`. KerberosRc4EncryptionEnabled pulumi.BoolPtrInput `pulumi:"kerberosRc4EncryptionEnabled"` // Whether to enable legacy NTLM v1 support. Defaults to `false`. NtlmV1Enabled pulumi.BoolPtrInput `pulumi:"ntlmV1Enabled"` // Whether to synchronize Kerberos password hashes to the managed domain. Defaults to `false`. SyncKerberosPasswords pulumi.BoolPtrInput `pulumi:"syncKerberosPasswords"` // Whether to synchronize NTLM password hashes to the managed domain. Defaults to `false`. SyncNtlmPasswords pulumi.BoolPtrInput `pulumi:"syncNtlmPasswords"` // Whether to synchronize on-premises password hashes to the managed domain. Defaults to `false`. SyncOnPremPasswords pulumi.BoolPtrInput `pulumi:"syncOnPremPasswords"` // Whether to enable legacy TLS v1 support. Defaults to `false`. TlsV1Enabled pulumi.BoolPtrInput `pulumi:"tlsV1Enabled"` } func (ServiceSecurityArgs) ElementType() reflect.Type { return reflect.TypeOf((*ServiceSecurity)(nil)).Elem() } func (i ServiceSecurityArgs) ToServiceSecurityOutput() ServiceSecurityOutput { return i.ToServiceSecurityOutputWithContext(context.Background()) } func (i ServiceSecurityArgs) ToServiceSecurityOutputWithContext(ctx context.Context) ServiceSecurityOutput { return pulumi.ToOutputWithContext(ctx, i).(ServiceSecurityOutput) } func (i ServiceSecurityArgs) ToServiceSecurityPtrOutput() ServiceSecurityPtrOutput { return i.ToServiceSecurityPtrOutputWithContext(context.Background()) } func (i ServiceSecurityArgs) ToServiceSecurityPtrOutputWithContext(ctx context.Context) ServiceSecurityPtrOutput { return pulumi.ToOutputWithContext(ctx, i).(ServiceSecurityOutput).ToServiceSecurityPtrOutputWithContext(ctx) } // ServiceSecurityPtrInput is an input type that accepts ServiceSecurityArgs, ServiceSecurityPtr and ServiceSecurityPtrOutput values. // You can construct a concrete instance of `ServiceSecurityPtrInput` via: // // ServiceSecurityArgs{...} // // or: // // nil type ServiceSecurityPtrInput interface { pulumi.Input ToServiceSecurityPtrOutput() ServiceSecurityPtrOutput ToServiceSecurityPtrOutputWithContext(context.Context) ServiceSecurityPtrOutput } type serviceSecurityPtrType ServiceSecurityArgs func ServiceSecurityPtr(v *ServiceSecurityArgs) ServiceSecurityPtrInput { return (*serviceSecurityPtrType)(v) } func (*serviceSecurityPtrType) ElementType() reflect.Type { return reflect.TypeOf((**ServiceSecurity)(nil)).Elem() } func (i *serviceSecurityPtrType) ToServiceSecurityPtrOutput() ServiceSecurityPtrOutput { return i.ToServiceSecurityPtrOutputWithContext(context.Background()) } func (i *serviceSecurityPtrType) ToServiceSecurityPtrOutputWithContext(ctx context.Context) ServiceSecurityPtrOutput { return pulumi.ToOutputWithContext(ctx, i).(ServiceSecurityPtrOutput) }
go
Apache-2.0
b66e1472775a89cca43f5050fef806854a7c3fa3
2026-01-07T09:44:27.619514Z
true
pulumi/pulumi-azure
https://github.com/pulumi/pulumi-azure/blob/b66e1472775a89cca43f5050fef806854a7c3fa3/sdk/go/azure/domainservices/service.go
sdk/go/azure/domainservices/service.go
// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package domainservices import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // ## 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/domainservices" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/network" // "github.com/pulumi/pulumi-azuread/sdk/v6/go/azuread" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { // deploy, err := core.NewResourceGroup(ctx, "deploy", &core.ResourceGroupArgs{ // Name: pulumi.String("example-resources"), // Location: pulumi.String("West Europe"), // }) // if err != nil { // return err // } // deployVirtualNetwork, err := network.NewVirtualNetwork(ctx, "deploy", &network.VirtualNetworkArgs{ // Name: pulumi.String("deploy-vnet"), // Location: deploy.Location, // ResourceGroupName: deploy.Name, // AddressSpaces: pulumi.StringArray{ // pulumi.String("10.0.1.0/16"), // }, // }) // if err != nil { // return err // } // deploySubnet, err := network.NewSubnet(ctx, "deploy", &network.SubnetArgs{ // Name: pulumi.String("deploy-subnet"), // ResourceGroupName: deploy.Name, // VirtualNetworkName: deployVirtualNetwork.Name, // AddressPrefixes: pulumi.StringArray{ // pulumi.String("10.0.1.0/24"), // }, // }) // if err != nil { // return err // } // deployNetworkSecurityGroup, err := network.NewNetworkSecurityGroup(ctx, "deploy", &network.NetworkSecurityGroupArgs{ // Name: pulumi.String("deploy-nsg"), // Location: deploy.Location, // ResourceGroupName: deploy.Name, // SecurityRules: network.NetworkSecurityGroupSecurityRuleArray{ // &network.NetworkSecurityGroupSecurityRuleArgs{ // Name: pulumi.String("AllowSyncWithAzureAD"), // Priority: pulumi.Int(101), // Direction: pulumi.String("Inbound"), // Access: pulumi.String("Allow"), // Protocol: pulumi.String("Tcp"), // SourcePortRange: pulumi.String("*"), // DestinationPortRange: pulumi.String("443"), // SourceAddressPrefix: pulumi.String("AzureActiveDirectoryDomainServices"), // DestinationAddressPrefix: pulumi.String("*"), // }, // &network.NetworkSecurityGroupSecurityRuleArgs{ // Name: pulumi.String("AllowRD"), // Priority: pulumi.Int(201), // Direction: pulumi.String("Inbound"), // Access: pulumi.String("Allow"), // Protocol: pulumi.String("Tcp"), // SourcePortRange: pulumi.String("*"), // DestinationPortRange: pulumi.String("3389"), // SourceAddressPrefix: pulumi.String("CorpNetSaw"), // DestinationAddressPrefix: pulumi.String("*"), // }, // &network.NetworkSecurityGroupSecurityRuleArgs{ // Name: pulumi.String("AllowPSRemoting"), // Priority: pulumi.Int(301), // Direction: pulumi.String("Inbound"), // Access: pulumi.String("Allow"), // Protocol: pulumi.String("Tcp"), // SourcePortRange: pulumi.String("*"), // DestinationPortRange: pulumi.String("5986"), // SourceAddressPrefix: pulumi.String("AzureActiveDirectoryDomainServices"), // DestinationAddressPrefix: pulumi.String("*"), // }, // &network.NetworkSecurityGroupSecurityRuleArgs{ // Name: pulumi.String("AllowLDAPS"), // Priority: pulumi.Int(401), // Direction: pulumi.String("Inbound"), // Access: pulumi.String("Allow"), // Protocol: pulumi.String("Tcp"), // SourcePortRange: pulumi.String("*"), // DestinationPortRange: pulumi.String("636"), // SourceAddressPrefix: pulumi.String("*"), // DestinationAddressPrefix: pulumi.String("*"), // }, // }, // }) // if err != nil { // return err // } // deploySubnetNetworkSecurityGroupAssociation, err := network.NewSubnetNetworkSecurityGroupAssociation(ctx, "deploy", &network.SubnetNetworkSecurityGroupAssociationArgs{ // SubnetId: deploySubnet.ID(), // NetworkSecurityGroupId: deployNetworkSecurityGroup.ID(), // }) // if err != nil { // return err // } // dcAdmins, err := azuread.NewGroup(ctx, "dc_admins", &azuread.GroupArgs{ // DisplayName: pulumi.String("AAD DC Administrators"), // SecurityEnabled: pulumi.Bool(true), // }) // if err != nil { // return err // } // admin, err := azuread.NewUser(ctx, "admin", &azuread.UserArgs{ // UserPrincipalName: pulumi.String("dc-admin@hashicorp-example.com"), // DisplayName: pulumi.String("DC Administrator"), // Password: pulumi.String("Pa55w0Rd!!1"), // }) // if err != nil { // return err // } // _, err = azuread.NewGroupMember(ctx, "admin", &azuread.GroupMemberArgs{ // GroupObjectId: dcAdmins.ObjectId, // MemberObjectId: admin.ObjectId, // }) // if err != nil { // return err // } // example, err := azuread.NewServicePrincipal(ctx, "example", &azuread.ServicePrincipalArgs{ // ApplicationId: "2565bd9d-da50-47d4-8b85-4c97f669dc36", // }) // if err != nil { // return err // } // aadds, err := core.NewResourceGroup(ctx, "aadds", &core.ResourceGroupArgs{ // Name: pulumi.String("aadds-rg"), // Location: pulumi.String("westeurope"), // }) // if err != nil { // return err // } // _, err = domainservices.NewService(ctx, "example", &domainservices.ServiceArgs{ // Name: pulumi.String("example-aadds"), // Location: aadds.Location, // ResourceGroupName: aadds.Name, // DomainName: pulumi.String("widgetslogin.net"), // Sku: pulumi.String("Enterprise"), // FilteredSyncEnabled: pulumi.Bool(false), // InitialReplicaSet: &domainservices.ServiceInitialReplicaSetArgs{ // SubnetId: deploySubnet.ID(), // }, // Notifications: &domainservices.ServiceNotificationsArgs{ // AdditionalRecipients: pulumi.StringArray{ // pulumi.String("notifyA@example.net"), // pulumi.String("notifyB@example.org"), // }, // NotifyDcAdmins: pulumi.Bool(true), // NotifyGlobalAdmins: pulumi.Bool(true), // }, // Security: &domainservices.ServiceSecurityArgs{ // SyncKerberosPasswords: pulumi.Bool(true), // SyncNtlmPasswords: pulumi.Bool(true), // SyncOnPremPasswords: pulumi.Bool(true), // }, // Tags: pulumi.StringMap{ // "Environment": pulumi.String("prod"), // }, // }, pulumi.DependsOn([]pulumi.Resource{ // example, // deploySubnetNetworkSecurityGroupAssociation, // })) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## API Providers // // <!-- This section is generated, changes will be overwritten --> // This resource uses the following Azure API Providers: // // * `Microsoft.AAD` - 2021-05-01 // // ## Import // // Domain Services can be imported using the resource ID, together with the Replica Set ID that you wish to designate as the initial replica set, e.g. // // ```sh // $ pulumi import azure:domainservices/service:Service example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.AAD/domainServices/instance1/initialReplicaSetId/00000000-0000-0000-0000-000000000000 // ``` type Service struct { pulumi.CustomResourceState // A unique ID for the managed domain deployment. DeploymentId pulumi.StringOutput `pulumi:"deploymentId"` // The configuration type of this Active Directory Domain. Possible values are `FullySynced` and `ResourceTrusting`. Changing this forces a new resource to be created. DomainConfigurationType pulumi.StringPtrOutput `pulumi:"domainConfigurationType"` // The Active Directory domain to use. See [official documentation](https://docs.microsoft.com/azure/active-directory-domain-services/tutorial-create-instance#create-a-managed-domain) for constraints and recommendations. Changing this forces a new resource to be created. DomainName pulumi.StringOutput `pulumi:"domainName"` // Whether to enable group-based filtered sync (also called scoped synchronisation). Defaults to `false`. FilteredSyncEnabled pulumi.BoolPtrOutput `pulumi:"filteredSyncEnabled"` // An `initialReplicaSet` block as defined below. The initial replica set inherits the same location as the Domain Service resource. InitialReplicaSet ServiceInitialReplicaSetOutput `pulumi:"initialReplicaSet"` // The Azure location where the Domain Service exists. Changing this forces a new resource to be created. Location pulumi.StringOutput `pulumi:"location"` // The display name for your managed Active Directory Domain Service resource. Changing this forces a new resource to be created. Name pulumi.StringOutput `pulumi:"name"` // A `notifications` block as defined below. Notifications ServiceNotificationsOutput `pulumi:"notifications"` // The name of the Resource Group in which the Domain Service should exist. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // The Azure resource ID for the domain service. ResourceId pulumi.StringOutput `pulumi:"resourceId"` // A `secureLdap` block as defined below. SecureLdap ServiceSecureLdapOutput `pulumi:"secureLdap"` // A `security` block as defined below. Security ServiceSecurityOutput `pulumi:"security"` // The SKU to use when provisioning the Domain Service resource. One of `Standard`, `Enterprise` or `Premium`. Sku pulumi.StringOutput `pulumi:"sku"` SyncOwner pulumi.StringOutput `pulumi:"syncOwner"` // A mapping of tags assigned to the resource. Tags pulumi.StringMapOutput `pulumi:"tags"` TenantId pulumi.StringOutput `pulumi:"tenantId"` Version pulumi.IntOutput `pulumi:"version"` } // NewService registers a new resource with the given unique name, arguments, and options. func NewService(ctx *pulumi.Context, name string, args *ServiceArgs, opts ...pulumi.ResourceOption) (*Service, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.DomainName == nil { return nil, errors.New("invalid value for required argument 'DomainName'") } if args.InitialReplicaSet == nil { return nil, errors.New("invalid value for required argument 'InitialReplicaSet'") } if args.ResourceGroupName == nil { return nil, errors.New("invalid value for required argument 'ResourceGroupName'") } if args.Sku == nil { return nil, errors.New("invalid value for required argument 'Sku'") } opts = internal.PkgResourceDefaultOpts(opts) var resource Service err := ctx.RegisterResource("azure:domainservices/service:Service", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetService gets an existing Service 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 GetService(ctx *pulumi.Context, name string, id pulumi.IDInput, state *ServiceState, opts ...pulumi.ResourceOption) (*Service, error) { var resource Service err := ctx.ReadResource("azure:domainservices/service:Service", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering Service resources. type serviceState struct { // A unique ID for the managed domain deployment. DeploymentId *string `pulumi:"deploymentId"` // The configuration type of this Active Directory Domain. Possible values are `FullySynced` and `ResourceTrusting`. Changing this forces a new resource to be created. DomainConfigurationType *string `pulumi:"domainConfigurationType"` // The Active Directory domain to use. See [official documentation](https://docs.microsoft.com/azure/active-directory-domain-services/tutorial-create-instance#create-a-managed-domain) for constraints and recommendations. Changing this forces a new resource to be created. DomainName *string `pulumi:"domainName"` // Whether to enable group-based filtered sync (also called scoped synchronisation). Defaults to `false`. FilteredSyncEnabled *bool `pulumi:"filteredSyncEnabled"` // An `initialReplicaSet` block as defined below. The initial replica set inherits the same location as the Domain Service resource. InitialReplicaSet *ServiceInitialReplicaSet `pulumi:"initialReplicaSet"` // The Azure location where the Domain Service exists. Changing this forces a new resource to be created. Location *string `pulumi:"location"` // The display name for your managed Active Directory Domain Service resource. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // A `notifications` block as defined below. Notifications *ServiceNotifications `pulumi:"notifications"` // The name of the Resource Group in which the Domain Service should exist. Changing this forces a new resource to be created. ResourceGroupName *string `pulumi:"resourceGroupName"` // The Azure resource ID for the domain service. ResourceId *string `pulumi:"resourceId"` // A `secureLdap` block as defined below. SecureLdap *ServiceSecureLdap `pulumi:"secureLdap"` // A `security` block as defined below. Security *ServiceSecurity `pulumi:"security"` // The SKU to use when provisioning the Domain Service resource. One of `Standard`, `Enterprise` or `Premium`. Sku *string `pulumi:"sku"` SyncOwner *string `pulumi:"syncOwner"` // A mapping of tags assigned to the resource. Tags map[string]string `pulumi:"tags"` TenantId *string `pulumi:"tenantId"` Version *int `pulumi:"version"` } type ServiceState struct { // A unique ID for the managed domain deployment. DeploymentId pulumi.StringPtrInput // The configuration type of this Active Directory Domain. Possible values are `FullySynced` and `ResourceTrusting`. Changing this forces a new resource to be created. DomainConfigurationType pulumi.StringPtrInput // The Active Directory domain to use. See [official documentation](https://docs.microsoft.com/azure/active-directory-domain-services/tutorial-create-instance#create-a-managed-domain) for constraints and recommendations. Changing this forces a new resource to be created. DomainName pulumi.StringPtrInput // Whether to enable group-based filtered sync (also called scoped synchronisation). Defaults to `false`. FilteredSyncEnabled pulumi.BoolPtrInput // An `initialReplicaSet` block as defined below. The initial replica set inherits the same location as the Domain Service resource. InitialReplicaSet ServiceInitialReplicaSetPtrInput // The Azure location where the Domain Service exists. Changing this forces a new resource to be created. Location pulumi.StringPtrInput // The display name for your managed Active Directory Domain Service resource. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // A `notifications` block as defined below. Notifications ServiceNotificationsPtrInput // The name of the Resource Group in which the Domain Service should exist. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringPtrInput // The Azure resource ID for the domain service. ResourceId pulumi.StringPtrInput // A `secureLdap` block as defined below. SecureLdap ServiceSecureLdapPtrInput // A `security` block as defined below. Security ServiceSecurityPtrInput // The SKU to use when provisioning the Domain Service resource. One of `Standard`, `Enterprise` or `Premium`. Sku pulumi.StringPtrInput SyncOwner pulumi.StringPtrInput // A mapping of tags assigned to the resource. Tags pulumi.StringMapInput TenantId pulumi.StringPtrInput Version pulumi.IntPtrInput } func (ServiceState) ElementType() reflect.Type { return reflect.TypeOf((*serviceState)(nil)).Elem() } type serviceArgs struct { // The configuration type of this Active Directory Domain. Possible values are `FullySynced` and `ResourceTrusting`. Changing this forces a new resource to be created. DomainConfigurationType *string `pulumi:"domainConfigurationType"` // The Active Directory domain to use. See [official documentation](https://docs.microsoft.com/azure/active-directory-domain-services/tutorial-create-instance#create-a-managed-domain) for constraints and recommendations. Changing this forces a new resource to be created. DomainName string `pulumi:"domainName"` // Whether to enable group-based filtered sync (also called scoped synchronisation). Defaults to `false`. FilteredSyncEnabled *bool `pulumi:"filteredSyncEnabled"` // An `initialReplicaSet` block as defined below. The initial replica set inherits the same location as the Domain Service resource. InitialReplicaSet ServiceInitialReplicaSet `pulumi:"initialReplicaSet"` // The Azure location where the Domain Service exists. Changing this forces a new resource to be created. Location *string `pulumi:"location"` // The display name for your managed Active Directory Domain Service resource. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // A `notifications` block as defined below. Notifications *ServiceNotifications `pulumi:"notifications"` // The name of the Resource Group in which the Domain Service should exist. Changing this forces a new resource to be created. ResourceGroupName string `pulumi:"resourceGroupName"` // A `secureLdap` block as defined below. SecureLdap *ServiceSecureLdap `pulumi:"secureLdap"` // A `security` block as defined below. Security *ServiceSecurity `pulumi:"security"` // The SKU to use when provisioning the Domain Service resource. One of `Standard`, `Enterprise` or `Premium`. Sku string `pulumi:"sku"` // A mapping of tags assigned to the resource. Tags map[string]string `pulumi:"tags"` } // The set of arguments for constructing a Service resource. type ServiceArgs struct { // The configuration type of this Active Directory Domain. Possible values are `FullySynced` and `ResourceTrusting`. Changing this forces a new resource to be created. DomainConfigurationType pulumi.StringPtrInput // The Active Directory domain to use. See [official documentation](https://docs.microsoft.com/azure/active-directory-domain-services/tutorial-create-instance#create-a-managed-domain) for constraints and recommendations. Changing this forces a new resource to be created. DomainName pulumi.StringInput // Whether to enable group-based filtered sync (also called scoped synchronisation). Defaults to `false`. FilteredSyncEnabled pulumi.BoolPtrInput // An `initialReplicaSet` block as defined below. The initial replica set inherits the same location as the Domain Service resource. InitialReplicaSet ServiceInitialReplicaSetInput // The Azure location where the Domain Service exists. Changing this forces a new resource to be created. Location pulumi.StringPtrInput // The display name for your managed Active Directory Domain Service resource. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // A `notifications` block as defined below. Notifications ServiceNotificationsPtrInput // The name of the Resource Group in which the Domain Service should exist. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringInput // A `secureLdap` block as defined below. SecureLdap ServiceSecureLdapPtrInput // A `security` block as defined below. Security ServiceSecurityPtrInput // The SKU to use when provisioning the Domain Service resource. One of `Standard`, `Enterprise` or `Premium`. Sku pulumi.StringInput // A mapping of tags assigned to the resource. Tags pulumi.StringMapInput } func (ServiceArgs) ElementType() reflect.Type { return reflect.TypeOf((*serviceArgs)(nil)).Elem() } type ServiceInput interface { pulumi.Input ToServiceOutput() ServiceOutput ToServiceOutputWithContext(ctx context.Context) ServiceOutput } func (*Service) ElementType() reflect.Type { return reflect.TypeOf((**Service)(nil)).Elem() } func (i *Service) ToServiceOutput() ServiceOutput { return i.ToServiceOutputWithContext(context.Background()) } func (i *Service) ToServiceOutputWithContext(ctx context.Context) ServiceOutput { return pulumi.ToOutputWithContext(ctx, i).(ServiceOutput) } // ServiceArrayInput is an input type that accepts ServiceArray and ServiceArrayOutput values. // You can construct a concrete instance of `ServiceArrayInput` via: // // ServiceArray{ ServiceArgs{...} } type ServiceArrayInput interface { pulumi.Input ToServiceArrayOutput() ServiceArrayOutput ToServiceArrayOutputWithContext(context.Context) ServiceArrayOutput } type ServiceArray []ServiceInput func (ServiceArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*Service)(nil)).Elem() } func (i ServiceArray) ToServiceArrayOutput() ServiceArrayOutput { return i.ToServiceArrayOutputWithContext(context.Background()) } func (i ServiceArray) ToServiceArrayOutputWithContext(ctx context.Context) ServiceArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(ServiceArrayOutput) } // ServiceMapInput is an input type that accepts ServiceMap and ServiceMapOutput values. // You can construct a concrete instance of `ServiceMapInput` via: // // ServiceMap{ "key": ServiceArgs{...} } type ServiceMapInput interface { pulumi.Input ToServiceMapOutput() ServiceMapOutput ToServiceMapOutputWithContext(context.Context) ServiceMapOutput } type ServiceMap map[string]ServiceInput func (ServiceMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*Service)(nil)).Elem() } func (i ServiceMap) ToServiceMapOutput() ServiceMapOutput { return i.ToServiceMapOutputWithContext(context.Background()) } func (i ServiceMap) ToServiceMapOutputWithContext(ctx context.Context) ServiceMapOutput { return pulumi.ToOutputWithContext(ctx, i).(ServiceMapOutput) } type ServiceOutput struct{ *pulumi.OutputState } func (ServiceOutput) ElementType() reflect.Type { return reflect.TypeOf((**Service)(nil)).Elem() } func (o ServiceOutput) ToServiceOutput() ServiceOutput { return o } func (o ServiceOutput) ToServiceOutputWithContext(ctx context.Context) ServiceOutput { return o } // A unique ID for the managed domain deployment. func (o ServiceOutput) DeploymentId() pulumi.StringOutput { return o.ApplyT(func(v *Service) pulumi.StringOutput { return v.DeploymentId }).(pulumi.StringOutput) } // The configuration type of this Active Directory Domain. Possible values are `FullySynced` and `ResourceTrusting`. Changing this forces a new resource to be created. func (o ServiceOutput) DomainConfigurationType() pulumi.StringPtrOutput { return o.ApplyT(func(v *Service) pulumi.StringPtrOutput { return v.DomainConfigurationType }).(pulumi.StringPtrOutput) } // The Active Directory domain to use. See [official documentation](https://docs.microsoft.com/azure/active-directory-domain-services/tutorial-create-instance#create-a-managed-domain) for constraints and recommendations. Changing this forces a new resource to be created. func (o ServiceOutput) DomainName() pulumi.StringOutput { return o.ApplyT(func(v *Service) pulumi.StringOutput { return v.DomainName }).(pulumi.StringOutput) } // Whether to enable group-based filtered sync (also called scoped synchronisation). Defaults to `false`. func (o ServiceOutput) FilteredSyncEnabled() pulumi.BoolPtrOutput { return o.ApplyT(func(v *Service) pulumi.BoolPtrOutput { return v.FilteredSyncEnabled }).(pulumi.BoolPtrOutput) } // An `initialReplicaSet` block as defined below. The initial replica set inherits the same location as the Domain Service resource. func (o ServiceOutput) InitialReplicaSet() ServiceInitialReplicaSetOutput { return o.ApplyT(func(v *Service) ServiceInitialReplicaSetOutput { return v.InitialReplicaSet }).(ServiceInitialReplicaSetOutput) } // The Azure location where the Domain Service exists. Changing this forces a new resource to be created. func (o ServiceOutput) Location() pulumi.StringOutput { return o.ApplyT(func(v *Service) pulumi.StringOutput { return v.Location }).(pulumi.StringOutput) } // The display name for your managed Active Directory Domain Service resource. Changing this forces a new resource to be created. func (o ServiceOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *Service) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // A `notifications` block as defined below. func (o ServiceOutput) Notifications() ServiceNotificationsOutput { return o.ApplyT(func(v *Service) ServiceNotificationsOutput { return v.Notifications }).(ServiceNotificationsOutput) } // The name of the Resource Group in which the Domain Service should exist. Changing this forces a new resource to be created. func (o ServiceOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v *Service) pulumi.StringOutput { return v.ResourceGroupName }).(pulumi.StringOutput) } // The Azure resource ID for the domain service. func (o ServiceOutput) ResourceId() pulumi.StringOutput { return o.ApplyT(func(v *Service) pulumi.StringOutput { return v.ResourceId }).(pulumi.StringOutput) } // A `secureLdap` block as defined below. func (o ServiceOutput) SecureLdap() ServiceSecureLdapOutput { return o.ApplyT(func(v *Service) ServiceSecureLdapOutput { return v.SecureLdap }).(ServiceSecureLdapOutput) } // A `security` block as defined below. func (o ServiceOutput) Security() ServiceSecurityOutput { return o.ApplyT(func(v *Service) ServiceSecurityOutput { return v.Security }).(ServiceSecurityOutput) } // The SKU to use when provisioning the Domain Service resource. One of `Standard`, `Enterprise` or `Premium`. func (o ServiceOutput) Sku() pulumi.StringOutput { return o.ApplyT(func(v *Service) pulumi.StringOutput { return v.Sku }).(pulumi.StringOutput) } func (o ServiceOutput) SyncOwner() pulumi.StringOutput { return o.ApplyT(func(v *Service) pulumi.StringOutput { return v.SyncOwner }).(pulumi.StringOutput) } // A mapping of tags assigned to the resource. func (o ServiceOutput) Tags() pulumi.StringMapOutput { return o.ApplyT(func(v *Service) pulumi.StringMapOutput { return v.Tags }).(pulumi.StringMapOutput) } func (o ServiceOutput) TenantId() pulumi.StringOutput { return o.ApplyT(func(v *Service) pulumi.StringOutput { return v.TenantId }).(pulumi.StringOutput) } func (o ServiceOutput) Version() pulumi.IntOutput { return o.ApplyT(func(v *Service) pulumi.IntOutput { return v.Version }).(pulumi.IntOutput) } type ServiceArrayOutput struct{ *pulumi.OutputState } func (ServiceArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*Service)(nil)).Elem() } func (o ServiceArrayOutput) ToServiceArrayOutput() ServiceArrayOutput { return o } func (o ServiceArrayOutput) ToServiceArrayOutputWithContext(ctx context.Context) ServiceArrayOutput { return o } func (o ServiceArrayOutput) Index(i pulumi.IntInput) ServiceOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *Service { return vs[0].([]*Service)[vs[1].(int)] }).(ServiceOutput) } type ServiceMapOutput struct{ *pulumi.OutputState } func (ServiceMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*Service)(nil)).Elem() } func (o ServiceMapOutput) ToServiceMapOutput() ServiceMapOutput { return o } func (o ServiceMapOutput) ToServiceMapOutputWithContext(ctx context.Context) ServiceMapOutput { return o } func (o ServiceMapOutput) MapIndex(k pulumi.StringInput) ServiceOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *Service { return vs[0].(map[string]*Service)[vs[1].(string)] }).(ServiceOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*ServiceInput)(nil)).Elem(), &Service{}) pulumi.RegisterInputType(reflect.TypeOf((*ServiceArrayInput)(nil)).Elem(), ServiceArray{}) pulumi.RegisterInputType(reflect.TypeOf((*ServiceMapInput)(nil)).Elem(), ServiceMap{}) pulumi.RegisterOutputType(ServiceOutput{}) pulumi.RegisterOutputType(ServiceArrayOutput{}) pulumi.RegisterOutputType(ServiceMapOutput{}) }
go
Apache-2.0
b66e1472775a89cca43f5050fef806854a7c3fa3
2026-01-07T09:44:27.619514Z
false