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/confidentialledger/init.go
sdk/go/azure/confidentialledger/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 confidentialledger 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:confidentialledger/ledger:Ledger": r = &Ledger{} 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", "confidentialledger/ledger", &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/confidentialledger/pulumiTypes.go
sdk/go/azure/confidentialledger/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 confidentialledger 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 LedgerAzureadBasedServicePrincipal struct { // Specifies the Ledger Role to grant this AzureAD Service Principal. Possible values are `Administrator`, `Contributor` and `Reader`. LedgerRoleName string `pulumi:"ledgerRoleName"` // Specifies the Principal ID of the AzureAD Service Principal. PrincipalId string `pulumi:"principalId"` // Specifies the Tenant ID for this AzureAD Service Principal. TenantId string `pulumi:"tenantId"` } // LedgerAzureadBasedServicePrincipalInput is an input type that accepts LedgerAzureadBasedServicePrincipalArgs and LedgerAzureadBasedServicePrincipalOutput values. // You can construct a concrete instance of `LedgerAzureadBasedServicePrincipalInput` via: // // LedgerAzureadBasedServicePrincipalArgs{...} type LedgerAzureadBasedServicePrincipalInput interface { pulumi.Input ToLedgerAzureadBasedServicePrincipalOutput() LedgerAzureadBasedServicePrincipalOutput ToLedgerAzureadBasedServicePrincipalOutputWithContext(context.Context) LedgerAzureadBasedServicePrincipalOutput } type LedgerAzureadBasedServicePrincipalArgs struct { // Specifies the Ledger Role to grant this AzureAD Service Principal. Possible values are `Administrator`, `Contributor` and `Reader`. LedgerRoleName pulumi.StringInput `pulumi:"ledgerRoleName"` // Specifies the Principal ID of the AzureAD Service Principal. PrincipalId pulumi.StringInput `pulumi:"principalId"` // Specifies the Tenant ID for this AzureAD Service Principal. TenantId pulumi.StringInput `pulumi:"tenantId"` } func (LedgerAzureadBasedServicePrincipalArgs) ElementType() reflect.Type { return reflect.TypeOf((*LedgerAzureadBasedServicePrincipal)(nil)).Elem() } func (i LedgerAzureadBasedServicePrincipalArgs) ToLedgerAzureadBasedServicePrincipalOutput() LedgerAzureadBasedServicePrincipalOutput { return i.ToLedgerAzureadBasedServicePrincipalOutputWithContext(context.Background()) } func (i LedgerAzureadBasedServicePrincipalArgs) ToLedgerAzureadBasedServicePrincipalOutputWithContext(ctx context.Context) LedgerAzureadBasedServicePrincipalOutput { return pulumi.ToOutputWithContext(ctx, i).(LedgerAzureadBasedServicePrincipalOutput) } // LedgerAzureadBasedServicePrincipalArrayInput is an input type that accepts LedgerAzureadBasedServicePrincipalArray and LedgerAzureadBasedServicePrincipalArrayOutput values. // You can construct a concrete instance of `LedgerAzureadBasedServicePrincipalArrayInput` via: // // LedgerAzureadBasedServicePrincipalArray{ LedgerAzureadBasedServicePrincipalArgs{...} } type LedgerAzureadBasedServicePrincipalArrayInput interface { pulumi.Input ToLedgerAzureadBasedServicePrincipalArrayOutput() LedgerAzureadBasedServicePrincipalArrayOutput ToLedgerAzureadBasedServicePrincipalArrayOutputWithContext(context.Context) LedgerAzureadBasedServicePrincipalArrayOutput } type LedgerAzureadBasedServicePrincipalArray []LedgerAzureadBasedServicePrincipalInput func (LedgerAzureadBasedServicePrincipalArray) ElementType() reflect.Type { return reflect.TypeOf((*[]LedgerAzureadBasedServicePrincipal)(nil)).Elem() } func (i LedgerAzureadBasedServicePrincipalArray) ToLedgerAzureadBasedServicePrincipalArrayOutput() LedgerAzureadBasedServicePrincipalArrayOutput { return i.ToLedgerAzureadBasedServicePrincipalArrayOutputWithContext(context.Background()) } func (i LedgerAzureadBasedServicePrincipalArray) ToLedgerAzureadBasedServicePrincipalArrayOutputWithContext(ctx context.Context) LedgerAzureadBasedServicePrincipalArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(LedgerAzureadBasedServicePrincipalArrayOutput) } type LedgerAzureadBasedServicePrincipalOutput struct{ *pulumi.OutputState } func (LedgerAzureadBasedServicePrincipalOutput) ElementType() reflect.Type { return reflect.TypeOf((*LedgerAzureadBasedServicePrincipal)(nil)).Elem() } func (o LedgerAzureadBasedServicePrincipalOutput) ToLedgerAzureadBasedServicePrincipalOutput() LedgerAzureadBasedServicePrincipalOutput { return o } func (o LedgerAzureadBasedServicePrincipalOutput) ToLedgerAzureadBasedServicePrincipalOutputWithContext(ctx context.Context) LedgerAzureadBasedServicePrincipalOutput { return o } // Specifies the Ledger Role to grant this AzureAD Service Principal. Possible values are `Administrator`, `Contributor` and `Reader`. func (o LedgerAzureadBasedServicePrincipalOutput) LedgerRoleName() pulumi.StringOutput { return o.ApplyT(func(v LedgerAzureadBasedServicePrincipal) string { return v.LedgerRoleName }).(pulumi.StringOutput) } // Specifies the Principal ID of the AzureAD Service Principal. func (o LedgerAzureadBasedServicePrincipalOutput) PrincipalId() pulumi.StringOutput { return o.ApplyT(func(v LedgerAzureadBasedServicePrincipal) string { return v.PrincipalId }).(pulumi.StringOutput) } // Specifies the Tenant ID for this AzureAD Service Principal. func (o LedgerAzureadBasedServicePrincipalOutput) TenantId() pulumi.StringOutput { return o.ApplyT(func(v LedgerAzureadBasedServicePrincipal) string { return v.TenantId }).(pulumi.StringOutput) } type LedgerAzureadBasedServicePrincipalArrayOutput struct{ *pulumi.OutputState } func (LedgerAzureadBasedServicePrincipalArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]LedgerAzureadBasedServicePrincipal)(nil)).Elem() } func (o LedgerAzureadBasedServicePrincipalArrayOutput) ToLedgerAzureadBasedServicePrincipalArrayOutput() LedgerAzureadBasedServicePrincipalArrayOutput { return o } func (o LedgerAzureadBasedServicePrincipalArrayOutput) ToLedgerAzureadBasedServicePrincipalArrayOutputWithContext(ctx context.Context) LedgerAzureadBasedServicePrincipalArrayOutput { return o } func (o LedgerAzureadBasedServicePrincipalArrayOutput) Index(i pulumi.IntInput) LedgerAzureadBasedServicePrincipalOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) LedgerAzureadBasedServicePrincipal { return vs[0].([]LedgerAzureadBasedServicePrincipal)[vs[1].(int)] }).(LedgerAzureadBasedServicePrincipalOutput) } type LedgerCertificateBasedSecurityPrincipal struct { // Specifies the Ledger Role to grant this Certificate Security Principal. Possible values are `Administrator`, `Contributor` and `Reader`. LedgerRoleName string `pulumi:"ledgerRoleName"` // The public key, in PEM format, of the certificate used by this identity to authenticate with the Confidential Ledger. PemPublicKey string `pulumi:"pemPublicKey"` } // LedgerCertificateBasedSecurityPrincipalInput is an input type that accepts LedgerCertificateBasedSecurityPrincipalArgs and LedgerCertificateBasedSecurityPrincipalOutput values. // You can construct a concrete instance of `LedgerCertificateBasedSecurityPrincipalInput` via: // // LedgerCertificateBasedSecurityPrincipalArgs{...} type LedgerCertificateBasedSecurityPrincipalInput interface { pulumi.Input ToLedgerCertificateBasedSecurityPrincipalOutput() LedgerCertificateBasedSecurityPrincipalOutput ToLedgerCertificateBasedSecurityPrincipalOutputWithContext(context.Context) LedgerCertificateBasedSecurityPrincipalOutput } type LedgerCertificateBasedSecurityPrincipalArgs struct { // Specifies the Ledger Role to grant this Certificate Security Principal. Possible values are `Administrator`, `Contributor` and `Reader`. LedgerRoleName pulumi.StringInput `pulumi:"ledgerRoleName"` // The public key, in PEM format, of the certificate used by this identity to authenticate with the Confidential Ledger. PemPublicKey pulumi.StringInput `pulumi:"pemPublicKey"` } func (LedgerCertificateBasedSecurityPrincipalArgs) ElementType() reflect.Type { return reflect.TypeOf((*LedgerCertificateBasedSecurityPrincipal)(nil)).Elem() } func (i LedgerCertificateBasedSecurityPrincipalArgs) ToLedgerCertificateBasedSecurityPrincipalOutput() LedgerCertificateBasedSecurityPrincipalOutput { return i.ToLedgerCertificateBasedSecurityPrincipalOutputWithContext(context.Background()) } func (i LedgerCertificateBasedSecurityPrincipalArgs) ToLedgerCertificateBasedSecurityPrincipalOutputWithContext(ctx context.Context) LedgerCertificateBasedSecurityPrincipalOutput { return pulumi.ToOutputWithContext(ctx, i).(LedgerCertificateBasedSecurityPrincipalOutput) } // LedgerCertificateBasedSecurityPrincipalArrayInput is an input type that accepts LedgerCertificateBasedSecurityPrincipalArray and LedgerCertificateBasedSecurityPrincipalArrayOutput values. // You can construct a concrete instance of `LedgerCertificateBasedSecurityPrincipalArrayInput` via: // // LedgerCertificateBasedSecurityPrincipalArray{ LedgerCertificateBasedSecurityPrincipalArgs{...} } type LedgerCertificateBasedSecurityPrincipalArrayInput interface { pulumi.Input ToLedgerCertificateBasedSecurityPrincipalArrayOutput() LedgerCertificateBasedSecurityPrincipalArrayOutput ToLedgerCertificateBasedSecurityPrincipalArrayOutputWithContext(context.Context) LedgerCertificateBasedSecurityPrincipalArrayOutput } type LedgerCertificateBasedSecurityPrincipalArray []LedgerCertificateBasedSecurityPrincipalInput func (LedgerCertificateBasedSecurityPrincipalArray) ElementType() reflect.Type { return reflect.TypeOf((*[]LedgerCertificateBasedSecurityPrincipal)(nil)).Elem() } func (i LedgerCertificateBasedSecurityPrincipalArray) ToLedgerCertificateBasedSecurityPrincipalArrayOutput() LedgerCertificateBasedSecurityPrincipalArrayOutput { return i.ToLedgerCertificateBasedSecurityPrincipalArrayOutputWithContext(context.Background()) } func (i LedgerCertificateBasedSecurityPrincipalArray) ToLedgerCertificateBasedSecurityPrincipalArrayOutputWithContext(ctx context.Context) LedgerCertificateBasedSecurityPrincipalArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(LedgerCertificateBasedSecurityPrincipalArrayOutput) } type LedgerCertificateBasedSecurityPrincipalOutput struct{ *pulumi.OutputState } func (LedgerCertificateBasedSecurityPrincipalOutput) ElementType() reflect.Type { return reflect.TypeOf((*LedgerCertificateBasedSecurityPrincipal)(nil)).Elem() } func (o LedgerCertificateBasedSecurityPrincipalOutput) ToLedgerCertificateBasedSecurityPrincipalOutput() LedgerCertificateBasedSecurityPrincipalOutput { return o } func (o LedgerCertificateBasedSecurityPrincipalOutput) ToLedgerCertificateBasedSecurityPrincipalOutputWithContext(ctx context.Context) LedgerCertificateBasedSecurityPrincipalOutput { return o } // Specifies the Ledger Role to grant this Certificate Security Principal. Possible values are `Administrator`, `Contributor` and `Reader`. func (o LedgerCertificateBasedSecurityPrincipalOutput) LedgerRoleName() pulumi.StringOutput { return o.ApplyT(func(v LedgerCertificateBasedSecurityPrincipal) string { return v.LedgerRoleName }).(pulumi.StringOutput) } // The public key, in PEM format, of the certificate used by this identity to authenticate with the Confidential Ledger. func (o LedgerCertificateBasedSecurityPrincipalOutput) PemPublicKey() pulumi.StringOutput { return o.ApplyT(func(v LedgerCertificateBasedSecurityPrincipal) string { return v.PemPublicKey }).(pulumi.StringOutput) } type LedgerCertificateBasedSecurityPrincipalArrayOutput struct{ *pulumi.OutputState } func (LedgerCertificateBasedSecurityPrincipalArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]LedgerCertificateBasedSecurityPrincipal)(nil)).Elem() } func (o LedgerCertificateBasedSecurityPrincipalArrayOutput) ToLedgerCertificateBasedSecurityPrincipalArrayOutput() LedgerCertificateBasedSecurityPrincipalArrayOutput { return o } func (o LedgerCertificateBasedSecurityPrincipalArrayOutput) ToLedgerCertificateBasedSecurityPrincipalArrayOutputWithContext(ctx context.Context) LedgerCertificateBasedSecurityPrincipalArrayOutput { return o } func (o LedgerCertificateBasedSecurityPrincipalArrayOutput) Index(i pulumi.IntInput) LedgerCertificateBasedSecurityPrincipalOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) LedgerCertificateBasedSecurityPrincipal { return vs[0].([]LedgerCertificateBasedSecurityPrincipal)[vs[1].(int)] }).(LedgerCertificateBasedSecurityPrincipalOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*LedgerAzureadBasedServicePrincipalInput)(nil)).Elem(), LedgerAzureadBasedServicePrincipalArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*LedgerAzureadBasedServicePrincipalArrayInput)(nil)).Elem(), LedgerAzureadBasedServicePrincipalArray{}) pulumi.RegisterInputType(reflect.TypeOf((*LedgerCertificateBasedSecurityPrincipalInput)(nil)).Elem(), LedgerCertificateBasedSecurityPrincipalArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*LedgerCertificateBasedSecurityPrincipalArrayInput)(nil)).Elem(), LedgerCertificateBasedSecurityPrincipalArray{}) pulumi.RegisterOutputType(LedgerAzureadBasedServicePrincipalOutput{}) pulumi.RegisterOutputType(LedgerAzureadBasedServicePrincipalArrayOutput{}) pulumi.RegisterOutputType(LedgerCertificateBasedSecurityPrincipalOutput{}) pulumi.RegisterOutputType(LedgerCertificateBasedSecurityPrincipalArrayOutput{}) }
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/confidentialledger/ledger.go
sdk/go/azure/confidentialledger/ledger.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 confidentialledger import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a Confidential Ledger. // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/confidentialledger" // "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 { // current, err := core.GetClientConfig(ctx, map[string]interface{}{}, nil) // if err != nil { // return err // } // example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{ // Name: pulumi.String("example-resources"), // Location: pulumi.String("West Europe"), // }) // if err != nil { // return err // } // _, err = confidentialledger.NewLedger(ctx, "ledger", &confidentialledger.LedgerArgs{ // Name: pulumi.String("example-ledger"), // ResourceGroupName: example.Name, // Location: example.Location, // LedgerType: pulumi.String("Private"), // AzureadBasedServicePrincipals: confidentialledger.LedgerAzureadBasedServicePrincipalArray{ // &confidentialledger.LedgerAzureadBasedServicePrincipalArgs{ // PrincipalId: pulumi.String(current.ObjectId), // TenantId: pulumi.String(current.TenantId), // LedgerRoleName: pulumi.String("Administrator"), // }, // }, // }) // 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.ConfidentialLedger` - 2022-05-13 // // ## Import // // Confidential Ledgers can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:confidentialledger/ledger:Ledger example /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/example-group/providers/Microsoft.ConfidentialLedger/ledgers/example-ledger // ``` type Ledger struct { pulumi.CustomResourceState // A list of `azureadBasedServicePrincipal` blocks as defined below. AzureadBasedServicePrincipals LedgerAzureadBasedServicePrincipalArrayOutput `pulumi:"azureadBasedServicePrincipals"` // A list of `certificateBasedSecurityPrincipal` blocks as defined below. CertificateBasedSecurityPrincipals LedgerCertificateBasedSecurityPrincipalArrayOutput `pulumi:"certificateBasedSecurityPrincipals"` // The Identity Service Endpoint for this Confidential Ledger. IdentityServiceEndpoint pulumi.StringOutput `pulumi:"identityServiceEndpoint"` // The Endpoint for this Confidential Ledger. LedgerEndpoint pulumi.StringOutput `pulumi:"ledgerEndpoint"` // Specifies the type of Confidential Ledger. Possible values are `Private` and `Public`. Changing this forces a new resource to be created. LedgerType pulumi.StringOutput `pulumi:"ledgerType"` // Specifies the supported Azure location where the Confidential Ledger exists. Changing this forces a new resource to be created. Location pulumi.StringOutput `pulumi:"location"` // Specifies the name of the Confidential Ledger. Changing this forces a new resource to be created. Name pulumi.StringOutput `pulumi:"name"` // The name of the Resource Group where the Confidential Ledger exists. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // A mapping of tags to assign to the Confidential Ledger. Tags pulumi.StringMapOutput `pulumi:"tags"` } // NewLedger registers a new resource with the given unique name, arguments, and options. func NewLedger(ctx *pulumi.Context, name string, args *LedgerArgs, opts ...pulumi.ResourceOption) (*Ledger, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.AzureadBasedServicePrincipals == nil { return nil, errors.New("invalid value for required argument 'AzureadBasedServicePrincipals'") } if args.LedgerType == nil { return nil, errors.New("invalid value for required argument 'LedgerType'") } if args.ResourceGroupName == nil { return nil, errors.New("invalid value for required argument 'ResourceGroupName'") } opts = internal.PkgResourceDefaultOpts(opts) var resource Ledger err := ctx.RegisterResource("azure:confidentialledger/ledger:Ledger", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetLedger gets an existing Ledger 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 GetLedger(ctx *pulumi.Context, name string, id pulumi.IDInput, state *LedgerState, opts ...pulumi.ResourceOption) (*Ledger, error) { var resource Ledger err := ctx.ReadResource("azure:confidentialledger/ledger:Ledger", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering Ledger resources. type ledgerState struct { // A list of `azureadBasedServicePrincipal` blocks as defined below. AzureadBasedServicePrincipals []LedgerAzureadBasedServicePrincipal `pulumi:"azureadBasedServicePrincipals"` // A list of `certificateBasedSecurityPrincipal` blocks as defined below. CertificateBasedSecurityPrincipals []LedgerCertificateBasedSecurityPrincipal `pulumi:"certificateBasedSecurityPrincipals"` // The Identity Service Endpoint for this Confidential Ledger. IdentityServiceEndpoint *string `pulumi:"identityServiceEndpoint"` // The Endpoint for this Confidential Ledger. LedgerEndpoint *string `pulumi:"ledgerEndpoint"` // Specifies the type of Confidential Ledger. Possible values are `Private` and `Public`. Changing this forces a new resource to be created. LedgerType *string `pulumi:"ledgerType"` // Specifies the supported Azure location where the Confidential Ledger exists. Changing this forces a new resource to be created. Location *string `pulumi:"location"` // Specifies the name of the Confidential Ledger. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // The name of the Resource Group where the Confidential Ledger exists. Changing this forces a new resource to be created. ResourceGroupName *string `pulumi:"resourceGroupName"` // A mapping of tags to assign to the Confidential Ledger. Tags map[string]string `pulumi:"tags"` } type LedgerState struct { // A list of `azureadBasedServicePrincipal` blocks as defined below. AzureadBasedServicePrincipals LedgerAzureadBasedServicePrincipalArrayInput // A list of `certificateBasedSecurityPrincipal` blocks as defined below. CertificateBasedSecurityPrincipals LedgerCertificateBasedSecurityPrincipalArrayInput // The Identity Service Endpoint for this Confidential Ledger. IdentityServiceEndpoint pulumi.StringPtrInput // The Endpoint for this Confidential Ledger. LedgerEndpoint pulumi.StringPtrInput // Specifies the type of Confidential Ledger. Possible values are `Private` and `Public`. Changing this forces a new resource to be created. LedgerType pulumi.StringPtrInput // Specifies the supported Azure location where the Confidential Ledger exists. Changing this forces a new resource to be created. Location pulumi.StringPtrInput // Specifies the name of the Confidential Ledger. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // The name of the Resource Group where the Confidential Ledger exists. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringPtrInput // A mapping of tags to assign to the Confidential Ledger. Tags pulumi.StringMapInput } func (LedgerState) ElementType() reflect.Type { return reflect.TypeOf((*ledgerState)(nil)).Elem() } type ledgerArgs struct { // A list of `azureadBasedServicePrincipal` blocks as defined below. AzureadBasedServicePrincipals []LedgerAzureadBasedServicePrincipal `pulumi:"azureadBasedServicePrincipals"` // A list of `certificateBasedSecurityPrincipal` blocks as defined below. CertificateBasedSecurityPrincipals []LedgerCertificateBasedSecurityPrincipal `pulumi:"certificateBasedSecurityPrincipals"` // Specifies the type of Confidential Ledger. Possible values are `Private` and `Public`. Changing this forces a new resource to be created. LedgerType string `pulumi:"ledgerType"` // Specifies the supported Azure location where the Confidential Ledger exists. Changing this forces a new resource to be created. Location *string `pulumi:"location"` // Specifies the name of the Confidential Ledger. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // The name of the Resource Group where the Confidential Ledger exists. Changing this forces a new resource to be created. ResourceGroupName string `pulumi:"resourceGroupName"` // A mapping of tags to assign to the Confidential Ledger. Tags map[string]string `pulumi:"tags"` } // The set of arguments for constructing a Ledger resource. type LedgerArgs struct { // A list of `azureadBasedServicePrincipal` blocks as defined below. AzureadBasedServicePrincipals LedgerAzureadBasedServicePrincipalArrayInput // A list of `certificateBasedSecurityPrincipal` blocks as defined below. CertificateBasedSecurityPrincipals LedgerCertificateBasedSecurityPrincipalArrayInput // Specifies the type of Confidential Ledger. Possible values are `Private` and `Public`. Changing this forces a new resource to be created. LedgerType pulumi.StringInput // Specifies the supported Azure location where the Confidential Ledger exists. Changing this forces a new resource to be created. Location pulumi.StringPtrInput // Specifies the name of the Confidential Ledger. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // The name of the Resource Group where the Confidential Ledger exists. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringInput // A mapping of tags to assign to the Confidential Ledger. Tags pulumi.StringMapInput } func (LedgerArgs) ElementType() reflect.Type { return reflect.TypeOf((*ledgerArgs)(nil)).Elem() } type LedgerInput interface { pulumi.Input ToLedgerOutput() LedgerOutput ToLedgerOutputWithContext(ctx context.Context) LedgerOutput } func (*Ledger) ElementType() reflect.Type { return reflect.TypeOf((**Ledger)(nil)).Elem() } func (i *Ledger) ToLedgerOutput() LedgerOutput { return i.ToLedgerOutputWithContext(context.Background()) } func (i *Ledger) ToLedgerOutputWithContext(ctx context.Context) LedgerOutput { return pulumi.ToOutputWithContext(ctx, i).(LedgerOutput) } // LedgerArrayInput is an input type that accepts LedgerArray and LedgerArrayOutput values. // You can construct a concrete instance of `LedgerArrayInput` via: // // LedgerArray{ LedgerArgs{...} } type LedgerArrayInput interface { pulumi.Input ToLedgerArrayOutput() LedgerArrayOutput ToLedgerArrayOutputWithContext(context.Context) LedgerArrayOutput } type LedgerArray []LedgerInput func (LedgerArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*Ledger)(nil)).Elem() } func (i LedgerArray) ToLedgerArrayOutput() LedgerArrayOutput { return i.ToLedgerArrayOutputWithContext(context.Background()) } func (i LedgerArray) ToLedgerArrayOutputWithContext(ctx context.Context) LedgerArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(LedgerArrayOutput) } // LedgerMapInput is an input type that accepts LedgerMap and LedgerMapOutput values. // You can construct a concrete instance of `LedgerMapInput` via: // // LedgerMap{ "key": LedgerArgs{...} } type LedgerMapInput interface { pulumi.Input ToLedgerMapOutput() LedgerMapOutput ToLedgerMapOutputWithContext(context.Context) LedgerMapOutput } type LedgerMap map[string]LedgerInput func (LedgerMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*Ledger)(nil)).Elem() } func (i LedgerMap) ToLedgerMapOutput() LedgerMapOutput { return i.ToLedgerMapOutputWithContext(context.Background()) } func (i LedgerMap) ToLedgerMapOutputWithContext(ctx context.Context) LedgerMapOutput { return pulumi.ToOutputWithContext(ctx, i).(LedgerMapOutput) } type LedgerOutput struct{ *pulumi.OutputState } func (LedgerOutput) ElementType() reflect.Type { return reflect.TypeOf((**Ledger)(nil)).Elem() } func (o LedgerOutput) ToLedgerOutput() LedgerOutput { return o } func (o LedgerOutput) ToLedgerOutputWithContext(ctx context.Context) LedgerOutput { return o } // A list of `azureadBasedServicePrincipal` blocks as defined below. func (o LedgerOutput) AzureadBasedServicePrincipals() LedgerAzureadBasedServicePrincipalArrayOutput { return o.ApplyT(func(v *Ledger) LedgerAzureadBasedServicePrincipalArrayOutput { return v.AzureadBasedServicePrincipals }).(LedgerAzureadBasedServicePrincipalArrayOutput) } // A list of `certificateBasedSecurityPrincipal` blocks as defined below. func (o LedgerOutput) CertificateBasedSecurityPrincipals() LedgerCertificateBasedSecurityPrincipalArrayOutput { return o.ApplyT(func(v *Ledger) LedgerCertificateBasedSecurityPrincipalArrayOutput { return v.CertificateBasedSecurityPrincipals }).(LedgerCertificateBasedSecurityPrincipalArrayOutput) } // The Identity Service Endpoint for this Confidential Ledger. func (o LedgerOutput) IdentityServiceEndpoint() pulumi.StringOutput { return o.ApplyT(func(v *Ledger) pulumi.StringOutput { return v.IdentityServiceEndpoint }).(pulumi.StringOutput) } // The Endpoint for this Confidential Ledger. func (o LedgerOutput) LedgerEndpoint() pulumi.StringOutput { return o.ApplyT(func(v *Ledger) pulumi.StringOutput { return v.LedgerEndpoint }).(pulumi.StringOutput) } // Specifies the type of Confidential Ledger. Possible values are `Private` and `Public`. Changing this forces a new resource to be created. func (o LedgerOutput) LedgerType() pulumi.StringOutput { return o.ApplyT(func(v *Ledger) pulumi.StringOutput { return v.LedgerType }).(pulumi.StringOutput) } // Specifies the supported Azure location where the Confidential Ledger exists. Changing this forces a new resource to be created. func (o LedgerOutput) Location() pulumi.StringOutput { return o.ApplyT(func(v *Ledger) pulumi.StringOutput { return v.Location }).(pulumi.StringOutput) } // Specifies the name of the Confidential Ledger. Changing this forces a new resource to be created. func (o LedgerOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *Ledger) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // The name of the Resource Group where the Confidential Ledger exists. Changing this forces a new resource to be created. func (o LedgerOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v *Ledger) pulumi.StringOutput { return v.ResourceGroupName }).(pulumi.StringOutput) } // A mapping of tags to assign to the Confidential Ledger. func (o LedgerOutput) Tags() pulumi.StringMapOutput { return o.ApplyT(func(v *Ledger) pulumi.StringMapOutput { return v.Tags }).(pulumi.StringMapOutput) } type LedgerArrayOutput struct{ *pulumi.OutputState } func (LedgerArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*Ledger)(nil)).Elem() } func (o LedgerArrayOutput) ToLedgerArrayOutput() LedgerArrayOutput { return o } func (o LedgerArrayOutput) ToLedgerArrayOutputWithContext(ctx context.Context) LedgerArrayOutput { return o } func (o LedgerArrayOutput) Index(i pulumi.IntInput) LedgerOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *Ledger { return vs[0].([]*Ledger)[vs[1].(int)] }).(LedgerOutput) } type LedgerMapOutput struct{ *pulumi.OutputState } func (LedgerMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*Ledger)(nil)).Elem() } func (o LedgerMapOutput) ToLedgerMapOutput() LedgerMapOutput { return o } func (o LedgerMapOutput) ToLedgerMapOutputWithContext(ctx context.Context) LedgerMapOutput { return o } func (o LedgerMapOutput) MapIndex(k pulumi.StringInput) LedgerOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *Ledger { return vs[0].(map[string]*Ledger)[vs[1].(string)] }).(LedgerOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*LedgerInput)(nil)).Elem(), &Ledger{}) pulumi.RegisterInputType(reflect.TypeOf((*LedgerArrayInput)(nil)).Elem(), LedgerArray{}) pulumi.RegisterInputType(reflect.TypeOf((*LedgerMapInput)(nil)).Elem(), LedgerMap{}) pulumi.RegisterOutputType(LedgerOutput{}) pulumi.RegisterOutputType(LedgerArrayOutput{}) pulumi.RegisterOutputType(LedgerMapOutput{}) }
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/frontdoor/init.go
sdk/go/azure/frontdoor/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 frontdoor 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:frontdoor/customHttpsConfiguration:CustomHttpsConfiguration": r = &CustomHttpsConfiguration{} case "azure:frontdoor/firewallPolicy:FirewallPolicy": r = &FirewallPolicy{} case "azure:frontdoor/frontdoor:Frontdoor": r = &Frontdoor{} case "azure:frontdoor/rulesEngine:RulesEngine": r = &RulesEngine{} 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", "frontdoor/customHttpsConfiguration", &module{version}, ) pulumi.RegisterResourceModule( "azure", "frontdoor/firewallPolicy", &module{version}, ) pulumi.RegisterResourceModule( "azure", "frontdoor/frontdoor", &module{version}, ) pulumi.RegisterResourceModule( "azure", "frontdoor/rulesEngine", &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/frontdoor/pulumiTypes.go
sdk/go/azure/frontdoor/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 frontdoor 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 CustomHttpsConfigurationCustomHttpsConfiguration struct { // The name of the Key Vault secret representing the full certificate PFX. AzureKeyVaultCertificateSecretName *string `pulumi:"azureKeyVaultCertificateSecretName"` // The version of the Key Vault secret representing the full certificate PFX. // // > **Note:** In order to enable the use of your own custom `HTTPS certificate` you must grant `Azure Front Door Service` access to your key vault. For instructions on how to configure your `Key Vault` correctly please refer to the [product documentation](https://docs.microsoft.com/azure/frontdoor/front-door-custom-domain-https#option-2-use-your-own-certificate). AzureKeyVaultCertificateSecretVersion *string `pulumi:"azureKeyVaultCertificateSecretVersion"` // The ID of the Key Vault containing the SSL certificate. AzureKeyVaultCertificateVaultId *string `pulumi:"azureKeyVaultCertificateVaultId"` // Certificate source to encrypted `HTTPS` traffic with. Allowed values are `FrontDoor` or `AzureKeyVault`. Defaults to `FrontDoor`. // // The following attributes are only valid if `certificateSource` is set to `AzureKeyVault`: CertificateSource *string `pulumi:"certificateSource"` // Minimum client TLS version supported. MinimumTlsVersion *string `pulumi:"minimumTlsVersion"` ProvisioningState *string `pulumi:"provisioningState"` ProvisioningSubstate *string `pulumi:"provisioningSubstate"` } // CustomHttpsConfigurationCustomHttpsConfigurationInput is an input type that accepts CustomHttpsConfigurationCustomHttpsConfigurationArgs and CustomHttpsConfigurationCustomHttpsConfigurationOutput values. // You can construct a concrete instance of `CustomHttpsConfigurationCustomHttpsConfigurationInput` via: // // CustomHttpsConfigurationCustomHttpsConfigurationArgs{...} type CustomHttpsConfigurationCustomHttpsConfigurationInput interface { pulumi.Input ToCustomHttpsConfigurationCustomHttpsConfigurationOutput() CustomHttpsConfigurationCustomHttpsConfigurationOutput ToCustomHttpsConfigurationCustomHttpsConfigurationOutputWithContext(context.Context) CustomHttpsConfigurationCustomHttpsConfigurationOutput } type CustomHttpsConfigurationCustomHttpsConfigurationArgs struct { // The name of the Key Vault secret representing the full certificate PFX. AzureKeyVaultCertificateSecretName pulumi.StringPtrInput `pulumi:"azureKeyVaultCertificateSecretName"` // The version of the Key Vault secret representing the full certificate PFX. // // > **Note:** In order to enable the use of your own custom `HTTPS certificate` you must grant `Azure Front Door Service` access to your key vault. For instructions on how to configure your `Key Vault` correctly please refer to the [product documentation](https://docs.microsoft.com/azure/frontdoor/front-door-custom-domain-https#option-2-use-your-own-certificate). AzureKeyVaultCertificateSecretVersion pulumi.StringPtrInput `pulumi:"azureKeyVaultCertificateSecretVersion"` // The ID of the Key Vault containing the SSL certificate. AzureKeyVaultCertificateVaultId pulumi.StringPtrInput `pulumi:"azureKeyVaultCertificateVaultId"` // Certificate source to encrypted `HTTPS` traffic with. Allowed values are `FrontDoor` or `AzureKeyVault`. Defaults to `FrontDoor`. // // The following attributes are only valid if `certificateSource` is set to `AzureKeyVault`: CertificateSource pulumi.StringPtrInput `pulumi:"certificateSource"` // Minimum client TLS version supported. MinimumTlsVersion pulumi.StringPtrInput `pulumi:"minimumTlsVersion"` ProvisioningState pulumi.StringPtrInput `pulumi:"provisioningState"` ProvisioningSubstate pulumi.StringPtrInput `pulumi:"provisioningSubstate"` } func (CustomHttpsConfigurationCustomHttpsConfigurationArgs) ElementType() reflect.Type { return reflect.TypeOf((*CustomHttpsConfigurationCustomHttpsConfiguration)(nil)).Elem() } func (i CustomHttpsConfigurationCustomHttpsConfigurationArgs) ToCustomHttpsConfigurationCustomHttpsConfigurationOutput() CustomHttpsConfigurationCustomHttpsConfigurationOutput { return i.ToCustomHttpsConfigurationCustomHttpsConfigurationOutputWithContext(context.Background()) } func (i CustomHttpsConfigurationCustomHttpsConfigurationArgs) ToCustomHttpsConfigurationCustomHttpsConfigurationOutputWithContext(ctx context.Context) CustomHttpsConfigurationCustomHttpsConfigurationOutput { return pulumi.ToOutputWithContext(ctx, i).(CustomHttpsConfigurationCustomHttpsConfigurationOutput) } func (i CustomHttpsConfigurationCustomHttpsConfigurationArgs) ToCustomHttpsConfigurationCustomHttpsConfigurationPtrOutput() CustomHttpsConfigurationCustomHttpsConfigurationPtrOutput { return i.ToCustomHttpsConfigurationCustomHttpsConfigurationPtrOutputWithContext(context.Background()) } func (i CustomHttpsConfigurationCustomHttpsConfigurationArgs) ToCustomHttpsConfigurationCustomHttpsConfigurationPtrOutputWithContext(ctx context.Context) CustomHttpsConfigurationCustomHttpsConfigurationPtrOutput { return pulumi.ToOutputWithContext(ctx, i).(CustomHttpsConfigurationCustomHttpsConfigurationOutput).ToCustomHttpsConfigurationCustomHttpsConfigurationPtrOutputWithContext(ctx) } // CustomHttpsConfigurationCustomHttpsConfigurationPtrInput is an input type that accepts CustomHttpsConfigurationCustomHttpsConfigurationArgs, CustomHttpsConfigurationCustomHttpsConfigurationPtr and CustomHttpsConfigurationCustomHttpsConfigurationPtrOutput values. // You can construct a concrete instance of `CustomHttpsConfigurationCustomHttpsConfigurationPtrInput` via: // // CustomHttpsConfigurationCustomHttpsConfigurationArgs{...} // // or: // // nil type CustomHttpsConfigurationCustomHttpsConfigurationPtrInput interface { pulumi.Input ToCustomHttpsConfigurationCustomHttpsConfigurationPtrOutput() CustomHttpsConfigurationCustomHttpsConfigurationPtrOutput ToCustomHttpsConfigurationCustomHttpsConfigurationPtrOutputWithContext(context.Context) CustomHttpsConfigurationCustomHttpsConfigurationPtrOutput } type customHttpsConfigurationCustomHttpsConfigurationPtrType CustomHttpsConfigurationCustomHttpsConfigurationArgs func CustomHttpsConfigurationCustomHttpsConfigurationPtr(v *CustomHttpsConfigurationCustomHttpsConfigurationArgs) CustomHttpsConfigurationCustomHttpsConfigurationPtrInput { return (*customHttpsConfigurationCustomHttpsConfigurationPtrType)(v) } func (*customHttpsConfigurationCustomHttpsConfigurationPtrType) ElementType() reflect.Type { return reflect.TypeOf((**CustomHttpsConfigurationCustomHttpsConfiguration)(nil)).Elem() } func (i *customHttpsConfigurationCustomHttpsConfigurationPtrType) ToCustomHttpsConfigurationCustomHttpsConfigurationPtrOutput() CustomHttpsConfigurationCustomHttpsConfigurationPtrOutput { return i.ToCustomHttpsConfigurationCustomHttpsConfigurationPtrOutputWithContext(context.Background()) } func (i *customHttpsConfigurationCustomHttpsConfigurationPtrType) ToCustomHttpsConfigurationCustomHttpsConfigurationPtrOutputWithContext(ctx context.Context) CustomHttpsConfigurationCustomHttpsConfigurationPtrOutput { return pulumi.ToOutputWithContext(ctx, i).(CustomHttpsConfigurationCustomHttpsConfigurationPtrOutput) } type CustomHttpsConfigurationCustomHttpsConfigurationOutput struct{ *pulumi.OutputState } func (CustomHttpsConfigurationCustomHttpsConfigurationOutput) ElementType() reflect.Type { return reflect.TypeOf((*CustomHttpsConfigurationCustomHttpsConfiguration)(nil)).Elem() } func (o CustomHttpsConfigurationCustomHttpsConfigurationOutput) ToCustomHttpsConfigurationCustomHttpsConfigurationOutput() CustomHttpsConfigurationCustomHttpsConfigurationOutput { return o } func (o CustomHttpsConfigurationCustomHttpsConfigurationOutput) ToCustomHttpsConfigurationCustomHttpsConfigurationOutputWithContext(ctx context.Context) CustomHttpsConfigurationCustomHttpsConfigurationOutput { return o } func (o CustomHttpsConfigurationCustomHttpsConfigurationOutput) ToCustomHttpsConfigurationCustomHttpsConfigurationPtrOutput() CustomHttpsConfigurationCustomHttpsConfigurationPtrOutput { return o.ToCustomHttpsConfigurationCustomHttpsConfigurationPtrOutputWithContext(context.Background()) } func (o CustomHttpsConfigurationCustomHttpsConfigurationOutput) ToCustomHttpsConfigurationCustomHttpsConfigurationPtrOutputWithContext(ctx context.Context) CustomHttpsConfigurationCustomHttpsConfigurationPtrOutput { return o.ApplyTWithContext(ctx, func(_ context.Context, v CustomHttpsConfigurationCustomHttpsConfiguration) *CustomHttpsConfigurationCustomHttpsConfiguration { return &v }).(CustomHttpsConfigurationCustomHttpsConfigurationPtrOutput) } // The name of the Key Vault secret representing the full certificate PFX. func (o CustomHttpsConfigurationCustomHttpsConfigurationOutput) AzureKeyVaultCertificateSecretName() pulumi.StringPtrOutput { return o.ApplyT(func(v CustomHttpsConfigurationCustomHttpsConfiguration) *string { return v.AzureKeyVaultCertificateSecretName }).(pulumi.StringPtrOutput) } // The version of the Key Vault secret representing the full certificate PFX. // // > **Note:** In order to enable the use of your own custom `HTTPS certificate` you must grant `Azure Front Door Service` access to your key vault. For instructions on how to configure your `Key Vault` correctly please refer to the [product documentation](https://docs.microsoft.com/azure/frontdoor/front-door-custom-domain-https#option-2-use-your-own-certificate). func (o CustomHttpsConfigurationCustomHttpsConfigurationOutput) AzureKeyVaultCertificateSecretVersion() pulumi.StringPtrOutput { return o.ApplyT(func(v CustomHttpsConfigurationCustomHttpsConfiguration) *string { return v.AzureKeyVaultCertificateSecretVersion }).(pulumi.StringPtrOutput) } // The ID of the Key Vault containing the SSL certificate. func (o CustomHttpsConfigurationCustomHttpsConfigurationOutput) AzureKeyVaultCertificateVaultId() pulumi.StringPtrOutput { return o.ApplyT(func(v CustomHttpsConfigurationCustomHttpsConfiguration) *string { return v.AzureKeyVaultCertificateVaultId }).(pulumi.StringPtrOutput) } // Certificate source to encrypted `HTTPS` traffic with. Allowed values are `FrontDoor` or `AzureKeyVault`. Defaults to `FrontDoor`. // // The following attributes are only valid if `certificateSource` is set to `AzureKeyVault`: func (o CustomHttpsConfigurationCustomHttpsConfigurationOutput) CertificateSource() pulumi.StringPtrOutput { return o.ApplyT(func(v CustomHttpsConfigurationCustomHttpsConfiguration) *string { return v.CertificateSource }).(pulumi.StringPtrOutput) } // Minimum client TLS version supported. func (o CustomHttpsConfigurationCustomHttpsConfigurationOutput) MinimumTlsVersion() pulumi.StringPtrOutput { return o.ApplyT(func(v CustomHttpsConfigurationCustomHttpsConfiguration) *string { return v.MinimumTlsVersion }).(pulumi.StringPtrOutput) } func (o CustomHttpsConfigurationCustomHttpsConfigurationOutput) ProvisioningState() pulumi.StringPtrOutput { return o.ApplyT(func(v CustomHttpsConfigurationCustomHttpsConfiguration) *string { return v.ProvisioningState }).(pulumi.StringPtrOutput) } func (o CustomHttpsConfigurationCustomHttpsConfigurationOutput) ProvisioningSubstate() pulumi.StringPtrOutput { return o.ApplyT(func(v CustomHttpsConfigurationCustomHttpsConfiguration) *string { return v.ProvisioningSubstate }).(pulumi.StringPtrOutput) } type CustomHttpsConfigurationCustomHttpsConfigurationPtrOutput struct{ *pulumi.OutputState } func (CustomHttpsConfigurationCustomHttpsConfigurationPtrOutput) ElementType() reflect.Type { return reflect.TypeOf((**CustomHttpsConfigurationCustomHttpsConfiguration)(nil)).Elem() } func (o CustomHttpsConfigurationCustomHttpsConfigurationPtrOutput) ToCustomHttpsConfigurationCustomHttpsConfigurationPtrOutput() CustomHttpsConfigurationCustomHttpsConfigurationPtrOutput { return o } func (o CustomHttpsConfigurationCustomHttpsConfigurationPtrOutput) ToCustomHttpsConfigurationCustomHttpsConfigurationPtrOutputWithContext(ctx context.Context) CustomHttpsConfigurationCustomHttpsConfigurationPtrOutput { return o } func (o CustomHttpsConfigurationCustomHttpsConfigurationPtrOutput) Elem() CustomHttpsConfigurationCustomHttpsConfigurationOutput { return o.ApplyT(func(v *CustomHttpsConfigurationCustomHttpsConfiguration) CustomHttpsConfigurationCustomHttpsConfiguration { if v != nil { return *v } var ret CustomHttpsConfigurationCustomHttpsConfiguration return ret }).(CustomHttpsConfigurationCustomHttpsConfigurationOutput) } // The name of the Key Vault secret representing the full certificate PFX. func (o CustomHttpsConfigurationCustomHttpsConfigurationPtrOutput) AzureKeyVaultCertificateSecretName() pulumi.StringPtrOutput { return o.ApplyT(func(v *CustomHttpsConfigurationCustomHttpsConfiguration) *string { if v == nil { return nil } return v.AzureKeyVaultCertificateSecretName }).(pulumi.StringPtrOutput) } // The version of the Key Vault secret representing the full certificate PFX. // // > **Note:** In order to enable the use of your own custom `HTTPS certificate` you must grant `Azure Front Door Service` access to your key vault. For instructions on how to configure your `Key Vault` correctly please refer to the [product documentation](https://docs.microsoft.com/azure/frontdoor/front-door-custom-domain-https#option-2-use-your-own-certificate). func (o CustomHttpsConfigurationCustomHttpsConfigurationPtrOutput) AzureKeyVaultCertificateSecretVersion() pulumi.StringPtrOutput { return o.ApplyT(func(v *CustomHttpsConfigurationCustomHttpsConfiguration) *string { if v == nil { return nil } return v.AzureKeyVaultCertificateSecretVersion }).(pulumi.StringPtrOutput) } // The ID of the Key Vault containing the SSL certificate. func (o CustomHttpsConfigurationCustomHttpsConfigurationPtrOutput) AzureKeyVaultCertificateVaultId() pulumi.StringPtrOutput { return o.ApplyT(func(v *CustomHttpsConfigurationCustomHttpsConfiguration) *string { if v == nil { return nil } return v.AzureKeyVaultCertificateVaultId }).(pulumi.StringPtrOutput) } // Certificate source to encrypted `HTTPS` traffic with. Allowed values are `FrontDoor` or `AzureKeyVault`. Defaults to `FrontDoor`. // // The following attributes are only valid if `certificateSource` is set to `AzureKeyVault`: func (o CustomHttpsConfigurationCustomHttpsConfigurationPtrOutput) CertificateSource() pulumi.StringPtrOutput { return o.ApplyT(func(v *CustomHttpsConfigurationCustomHttpsConfiguration) *string { if v == nil { return nil } return v.CertificateSource }).(pulumi.StringPtrOutput) } // Minimum client TLS version supported. func (o CustomHttpsConfigurationCustomHttpsConfigurationPtrOutput) MinimumTlsVersion() pulumi.StringPtrOutput { return o.ApplyT(func(v *CustomHttpsConfigurationCustomHttpsConfiguration) *string { if v == nil { return nil } return v.MinimumTlsVersion }).(pulumi.StringPtrOutput) } func (o CustomHttpsConfigurationCustomHttpsConfigurationPtrOutput) ProvisioningState() pulumi.StringPtrOutput { return o.ApplyT(func(v *CustomHttpsConfigurationCustomHttpsConfiguration) *string { if v == nil { return nil } return v.ProvisioningState }).(pulumi.StringPtrOutput) } func (o CustomHttpsConfigurationCustomHttpsConfigurationPtrOutput) ProvisioningSubstate() pulumi.StringPtrOutput { return o.ApplyT(func(v *CustomHttpsConfigurationCustomHttpsConfiguration) *string { if v == nil { return nil } return v.ProvisioningSubstate }).(pulumi.StringPtrOutput) } type FirewallPolicyCustomRule struct { // The action to perform when the rule is matched. Possible values are `Allow`, `Block`, `Log`, or `Redirect`. Action string `pulumi:"action"` // Is the rule is enabled or disabled? Defaults to `true`. Enabled *bool `pulumi:"enabled"` // One or more `matchCondition` block defined below. Can support up to `10` `matchCondition` blocks. MatchConditions []FirewallPolicyCustomRuleMatchCondition `pulumi:"matchConditions"` // Gets name of the resource that is unique within a policy. This name can be used to access the resource. Name string `pulumi:"name"` // The priority of the rule. Rules with a lower value will be evaluated before rules with a higher value. Defaults to `1`. Priority *int `pulumi:"priority"` // The rate limit duration in minutes. Defaults to `1`. RateLimitDurationInMinutes *int `pulumi:"rateLimitDurationInMinutes"` // The rate limit threshold. Defaults to `10`. RateLimitThreshold *int `pulumi:"rateLimitThreshold"` // The type of rule. Possible values are `MatchRule` or `RateLimitRule`. Type string `pulumi:"type"` } // FirewallPolicyCustomRuleInput is an input type that accepts FirewallPolicyCustomRuleArgs and FirewallPolicyCustomRuleOutput values. // You can construct a concrete instance of `FirewallPolicyCustomRuleInput` via: // // FirewallPolicyCustomRuleArgs{...} type FirewallPolicyCustomRuleInput interface { pulumi.Input ToFirewallPolicyCustomRuleOutput() FirewallPolicyCustomRuleOutput ToFirewallPolicyCustomRuleOutputWithContext(context.Context) FirewallPolicyCustomRuleOutput } type FirewallPolicyCustomRuleArgs struct { // The action to perform when the rule is matched. Possible values are `Allow`, `Block`, `Log`, or `Redirect`. Action pulumi.StringInput `pulumi:"action"` // Is the rule is enabled or disabled? Defaults to `true`. Enabled pulumi.BoolPtrInput `pulumi:"enabled"` // One or more `matchCondition` block defined below. Can support up to `10` `matchCondition` blocks. MatchConditions FirewallPolicyCustomRuleMatchConditionArrayInput `pulumi:"matchConditions"` // Gets name of the resource that is unique within a policy. This name can be used to access the resource. Name pulumi.StringInput `pulumi:"name"` // The priority of the rule. Rules with a lower value will be evaluated before rules with a higher value. Defaults to `1`. Priority pulumi.IntPtrInput `pulumi:"priority"` // The rate limit duration in minutes. Defaults to `1`. RateLimitDurationInMinutes pulumi.IntPtrInput `pulumi:"rateLimitDurationInMinutes"` // The rate limit threshold. Defaults to `10`. RateLimitThreshold pulumi.IntPtrInput `pulumi:"rateLimitThreshold"` // The type of rule. Possible values are `MatchRule` or `RateLimitRule`. Type pulumi.StringInput `pulumi:"type"` } func (FirewallPolicyCustomRuleArgs) ElementType() reflect.Type { return reflect.TypeOf((*FirewallPolicyCustomRule)(nil)).Elem() } func (i FirewallPolicyCustomRuleArgs) ToFirewallPolicyCustomRuleOutput() FirewallPolicyCustomRuleOutput { return i.ToFirewallPolicyCustomRuleOutputWithContext(context.Background()) } func (i FirewallPolicyCustomRuleArgs) ToFirewallPolicyCustomRuleOutputWithContext(ctx context.Context) FirewallPolicyCustomRuleOutput { return pulumi.ToOutputWithContext(ctx, i).(FirewallPolicyCustomRuleOutput) } // FirewallPolicyCustomRuleArrayInput is an input type that accepts FirewallPolicyCustomRuleArray and FirewallPolicyCustomRuleArrayOutput values. // You can construct a concrete instance of `FirewallPolicyCustomRuleArrayInput` via: // // FirewallPolicyCustomRuleArray{ FirewallPolicyCustomRuleArgs{...} } type FirewallPolicyCustomRuleArrayInput interface { pulumi.Input ToFirewallPolicyCustomRuleArrayOutput() FirewallPolicyCustomRuleArrayOutput ToFirewallPolicyCustomRuleArrayOutputWithContext(context.Context) FirewallPolicyCustomRuleArrayOutput } type FirewallPolicyCustomRuleArray []FirewallPolicyCustomRuleInput func (FirewallPolicyCustomRuleArray) ElementType() reflect.Type { return reflect.TypeOf((*[]FirewallPolicyCustomRule)(nil)).Elem() } func (i FirewallPolicyCustomRuleArray) ToFirewallPolicyCustomRuleArrayOutput() FirewallPolicyCustomRuleArrayOutput { return i.ToFirewallPolicyCustomRuleArrayOutputWithContext(context.Background()) } func (i FirewallPolicyCustomRuleArray) ToFirewallPolicyCustomRuleArrayOutputWithContext(ctx context.Context) FirewallPolicyCustomRuleArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(FirewallPolicyCustomRuleArrayOutput) } type FirewallPolicyCustomRuleOutput struct{ *pulumi.OutputState } func (FirewallPolicyCustomRuleOutput) ElementType() reflect.Type { return reflect.TypeOf((*FirewallPolicyCustomRule)(nil)).Elem() } func (o FirewallPolicyCustomRuleOutput) ToFirewallPolicyCustomRuleOutput() FirewallPolicyCustomRuleOutput { return o } func (o FirewallPolicyCustomRuleOutput) ToFirewallPolicyCustomRuleOutputWithContext(ctx context.Context) FirewallPolicyCustomRuleOutput { return o } // The action to perform when the rule is matched. Possible values are `Allow`, `Block`, `Log`, or `Redirect`. func (o FirewallPolicyCustomRuleOutput) Action() pulumi.StringOutput { return o.ApplyT(func(v FirewallPolicyCustomRule) string { return v.Action }).(pulumi.StringOutput) } // Is the rule is enabled or disabled? Defaults to `true`. func (o FirewallPolicyCustomRuleOutput) Enabled() pulumi.BoolPtrOutput { return o.ApplyT(func(v FirewallPolicyCustomRule) *bool { return v.Enabled }).(pulumi.BoolPtrOutput) } // One or more `matchCondition` block defined below. Can support up to `10` `matchCondition` blocks. func (o FirewallPolicyCustomRuleOutput) MatchConditions() FirewallPolicyCustomRuleMatchConditionArrayOutput { return o.ApplyT(func(v FirewallPolicyCustomRule) []FirewallPolicyCustomRuleMatchCondition { return v.MatchConditions }).(FirewallPolicyCustomRuleMatchConditionArrayOutput) } // Gets name of the resource that is unique within a policy. This name can be used to access the resource. func (o FirewallPolicyCustomRuleOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v FirewallPolicyCustomRule) string { return v.Name }).(pulumi.StringOutput) } // The priority of the rule. Rules with a lower value will be evaluated before rules with a higher value. Defaults to `1`. func (o FirewallPolicyCustomRuleOutput) Priority() pulumi.IntPtrOutput { return o.ApplyT(func(v FirewallPolicyCustomRule) *int { return v.Priority }).(pulumi.IntPtrOutput) } // The rate limit duration in minutes. Defaults to `1`. func (o FirewallPolicyCustomRuleOutput) RateLimitDurationInMinutes() pulumi.IntPtrOutput { return o.ApplyT(func(v FirewallPolicyCustomRule) *int { return v.RateLimitDurationInMinutes }).(pulumi.IntPtrOutput) } // The rate limit threshold. Defaults to `10`. func (o FirewallPolicyCustomRuleOutput) RateLimitThreshold() pulumi.IntPtrOutput { return o.ApplyT(func(v FirewallPolicyCustomRule) *int { return v.RateLimitThreshold }).(pulumi.IntPtrOutput) } // The type of rule. Possible values are `MatchRule` or `RateLimitRule`. func (o FirewallPolicyCustomRuleOutput) Type() pulumi.StringOutput { return o.ApplyT(func(v FirewallPolicyCustomRule) string { return v.Type }).(pulumi.StringOutput) } type FirewallPolicyCustomRuleArrayOutput struct{ *pulumi.OutputState } func (FirewallPolicyCustomRuleArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]FirewallPolicyCustomRule)(nil)).Elem() } func (o FirewallPolicyCustomRuleArrayOutput) ToFirewallPolicyCustomRuleArrayOutput() FirewallPolicyCustomRuleArrayOutput { return o } func (o FirewallPolicyCustomRuleArrayOutput) ToFirewallPolicyCustomRuleArrayOutputWithContext(ctx context.Context) FirewallPolicyCustomRuleArrayOutput { return o } func (o FirewallPolicyCustomRuleArrayOutput) Index(i pulumi.IntInput) FirewallPolicyCustomRuleOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) FirewallPolicyCustomRule { return vs[0].([]FirewallPolicyCustomRule)[vs[1].(int)] }).(FirewallPolicyCustomRuleOutput) } type FirewallPolicyCustomRuleMatchCondition struct { // Up to `600` possible values to match. Limit is in total across all `matchCondition` blocks and `matchValues` arguments. String value itself can be up to `256` characters long. MatchValues []string `pulumi:"matchValues"` // The request variable to compare with. Possible values are `Cookies`, `PostArgs`, `QueryString`, `RemoteAddr`, `RequestBody`, `RequestHeader`, `RequestMethod`, `RequestUri`, or `SocketAddr`. MatchVariable string `pulumi:"matchVariable"` // Should the result of the condition be negated. NegationCondition *bool `pulumi:"negationCondition"` // Comparison type to use for matching with the variable value. Possible values are `Any`, `BeginsWith`, `Contains`, `EndsWith`, `Equal`, `GeoMatch`, `GreaterThan`, `GreaterThanOrEqual`, `IPMatch`, `LessThan`, `LessThanOrEqual` or `RegEx`. Operator string `pulumi:"operator"` // Match against a specific key if the `matchVariable` is `QueryString`, `PostArgs`, `RequestHeader` or `Cookies`. Selector *string `pulumi:"selector"` // Up to `5` transforms to apply. Possible values are `Lowercase`, `RemoveNulls`, `Trim`, `Uppercase`, `URLDecode` or`URLEncode`. Transforms []string `pulumi:"transforms"` } // FirewallPolicyCustomRuleMatchConditionInput is an input type that accepts FirewallPolicyCustomRuleMatchConditionArgs and FirewallPolicyCustomRuleMatchConditionOutput values. // You can construct a concrete instance of `FirewallPolicyCustomRuleMatchConditionInput` via: // // FirewallPolicyCustomRuleMatchConditionArgs{...} type FirewallPolicyCustomRuleMatchConditionInput interface { pulumi.Input ToFirewallPolicyCustomRuleMatchConditionOutput() FirewallPolicyCustomRuleMatchConditionOutput ToFirewallPolicyCustomRuleMatchConditionOutputWithContext(context.Context) FirewallPolicyCustomRuleMatchConditionOutput } type FirewallPolicyCustomRuleMatchConditionArgs struct { // Up to `600` possible values to match. Limit is in total across all `matchCondition` blocks and `matchValues` arguments. String value itself can be up to `256` characters long. MatchValues pulumi.StringArrayInput `pulumi:"matchValues"` // The request variable to compare with. Possible values are `Cookies`, `PostArgs`, `QueryString`, `RemoteAddr`, `RequestBody`, `RequestHeader`, `RequestMethod`, `RequestUri`, or `SocketAddr`. MatchVariable pulumi.StringInput `pulumi:"matchVariable"` // Should the result of the condition be negated. NegationCondition pulumi.BoolPtrInput `pulumi:"negationCondition"` // Comparison type to use for matching with the variable value. Possible values are `Any`, `BeginsWith`, `Contains`, `EndsWith`, `Equal`, `GeoMatch`, `GreaterThan`, `GreaterThanOrEqual`, `IPMatch`, `LessThan`, `LessThanOrEqual` or `RegEx`. Operator pulumi.StringInput `pulumi:"operator"` // Match against a specific key if the `matchVariable` is `QueryString`, `PostArgs`, `RequestHeader` or `Cookies`. Selector pulumi.StringPtrInput `pulumi:"selector"` // Up to `5` transforms to apply. Possible values are `Lowercase`, `RemoveNulls`, `Trim`, `Uppercase`, `URLDecode` or`URLEncode`. Transforms pulumi.StringArrayInput `pulumi:"transforms"` } func (FirewallPolicyCustomRuleMatchConditionArgs) ElementType() reflect.Type { return reflect.TypeOf((*FirewallPolicyCustomRuleMatchCondition)(nil)).Elem() } func (i FirewallPolicyCustomRuleMatchConditionArgs) ToFirewallPolicyCustomRuleMatchConditionOutput() FirewallPolicyCustomRuleMatchConditionOutput { return i.ToFirewallPolicyCustomRuleMatchConditionOutputWithContext(context.Background()) } func (i FirewallPolicyCustomRuleMatchConditionArgs) ToFirewallPolicyCustomRuleMatchConditionOutputWithContext(ctx context.Context) FirewallPolicyCustomRuleMatchConditionOutput { return pulumi.ToOutputWithContext(ctx, i).(FirewallPolicyCustomRuleMatchConditionOutput) } // FirewallPolicyCustomRuleMatchConditionArrayInput is an input type that accepts FirewallPolicyCustomRuleMatchConditionArray and FirewallPolicyCustomRuleMatchConditionArrayOutput values. // You can construct a concrete instance of `FirewallPolicyCustomRuleMatchConditionArrayInput` via: // // FirewallPolicyCustomRuleMatchConditionArray{ FirewallPolicyCustomRuleMatchConditionArgs{...} } type FirewallPolicyCustomRuleMatchConditionArrayInput interface { pulumi.Input ToFirewallPolicyCustomRuleMatchConditionArrayOutput() FirewallPolicyCustomRuleMatchConditionArrayOutput ToFirewallPolicyCustomRuleMatchConditionArrayOutputWithContext(context.Context) FirewallPolicyCustomRuleMatchConditionArrayOutput } type FirewallPolicyCustomRuleMatchConditionArray []FirewallPolicyCustomRuleMatchConditionInput func (FirewallPolicyCustomRuleMatchConditionArray) ElementType() reflect.Type { return reflect.TypeOf((*[]FirewallPolicyCustomRuleMatchCondition)(nil)).Elem() } func (i FirewallPolicyCustomRuleMatchConditionArray) ToFirewallPolicyCustomRuleMatchConditionArrayOutput() FirewallPolicyCustomRuleMatchConditionArrayOutput { return i.ToFirewallPolicyCustomRuleMatchConditionArrayOutputWithContext(context.Background()) } func (i FirewallPolicyCustomRuleMatchConditionArray) ToFirewallPolicyCustomRuleMatchConditionArrayOutputWithContext(ctx context.Context) FirewallPolicyCustomRuleMatchConditionArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(FirewallPolicyCustomRuleMatchConditionArrayOutput) } type FirewallPolicyCustomRuleMatchConditionOutput struct{ *pulumi.OutputState } func (FirewallPolicyCustomRuleMatchConditionOutput) ElementType() reflect.Type { return reflect.TypeOf((*FirewallPolicyCustomRuleMatchCondition)(nil)).Elem() } func (o FirewallPolicyCustomRuleMatchConditionOutput) ToFirewallPolicyCustomRuleMatchConditionOutput() FirewallPolicyCustomRuleMatchConditionOutput { return o } func (o FirewallPolicyCustomRuleMatchConditionOutput) ToFirewallPolicyCustomRuleMatchConditionOutputWithContext(ctx context.Context) FirewallPolicyCustomRuleMatchConditionOutput { return o } // Up to `600` possible values to match. Limit is in total across all `matchCondition` blocks and `matchValues` arguments. String value itself can be up to `256` characters long. func (o FirewallPolicyCustomRuleMatchConditionOutput) MatchValues() pulumi.StringArrayOutput { return o.ApplyT(func(v FirewallPolicyCustomRuleMatchCondition) []string { return v.MatchValues }).(pulumi.StringArrayOutput) } // The request variable to compare with. Possible values are `Cookies`, `PostArgs`, `QueryString`, `RemoteAddr`, `RequestBody`, `RequestHeader`, `RequestMethod`, `RequestUri`, or `SocketAddr`. func (o FirewallPolicyCustomRuleMatchConditionOutput) MatchVariable() pulumi.StringOutput { return o.ApplyT(func(v FirewallPolicyCustomRuleMatchCondition) string { return v.MatchVariable }).(pulumi.StringOutput) } // Should the result of the condition be negated. func (o FirewallPolicyCustomRuleMatchConditionOutput) NegationCondition() pulumi.BoolPtrOutput { return o.ApplyT(func(v FirewallPolicyCustomRuleMatchCondition) *bool { return v.NegationCondition }).(pulumi.BoolPtrOutput) } // Comparison type to use for matching with the variable value. Possible values are `Any`, `BeginsWith`, `Contains`, `EndsWith`, `Equal`, `GeoMatch`, `GreaterThan`, `GreaterThanOrEqual`, `IPMatch`, `LessThan`, `LessThanOrEqual` or `RegEx`. func (o FirewallPolicyCustomRuleMatchConditionOutput) Operator() pulumi.StringOutput { return o.ApplyT(func(v FirewallPolicyCustomRuleMatchCondition) string { return v.Operator }).(pulumi.StringOutput) } // Match against a specific key if the `matchVariable` is `QueryString`, `PostArgs`, `RequestHeader` or `Cookies`. func (o FirewallPolicyCustomRuleMatchConditionOutput) Selector() pulumi.StringPtrOutput { return o.ApplyT(func(v FirewallPolicyCustomRuleMatchCondition) *string { return v.Selector }).(pulumi.StringPtrOutput) } // Up to `5` transforms to apply. Possible values are `Lowercase`, `RemoveNulls`, `Trim`, `Uppercase`, `URLDecode` or`URLEncode`. func (o FirewallPolicyCustomRuleMatchConditionOutput) Transforms() pulumi.StringArrayOutput { return o.ApplyT(func(v FirewallPolicyCustomRuleMatchCondition) []string { return v.Transforms }).(pulumi.StringArrayOutput) } type FirewallPolicyCustomRuleMatchConditionArrayOutput struct{ *pulumi.OutputState } func (FirewallPolicyCustomRuleMatchConditionArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]FirewallPolicyCustomRuleMatchCondition)(nil)).Elem() } func (o FirewallPolicyCustomRuleMatchConditionArrayOutput) ToFirewallPolicyCustomRuleMatchConditionArrayOutput() FirewallPolicyCustomRuleMatchConditionArrayOutput { return o } func (o FirewallPolicyCustomRuleMatchConditionArrayOutput) ToFirewallPolicyCustomRuleMatchConditionArrayOutputWithContext(ctx context.Context) FirewallPolicyCustomRuleMatchConditionArrayOutput { return o } func (o FirewallPolicyCustomRuleMatchConditionArrayOutput) Index(i pulumi.IntInput) FirewallPolicyCustomRuleMatchConditionOutput {
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/frontdoor/customHttpsConfiguration.go
sdk/go/azure/frontdoor/customHttpsConfiguration.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 frontdoor import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // !> **Note:** This deploys an Azure Front Door (classic) resource which has been deprecated and will receive security updates only. Please migrate your existing Azure Front Door (classic) deployments to the new Azure Front Door (standard/premium) resources. For your convenience, the service team has exposed a `Front Door Classic` to `Front Door Standard/Premium` [migration tool](https://learn.microsoft.com/azure/frontdoor/tier-migration) to allow you to migrate your existing `Front Door Classic` instances to the new `Front Door Standard/Premium` product tiers. // // Manages the Custom HTTPS Configuration for an Azure Front Door (classic) Frontend Endpoint. // // > **Note:** Defining custom HTTPS configurations using a separate `frontdoor.CustomHttpsConfiguration` resource allows for parallel creation/update. // // !> **Note:** In order to address the ordering issue we have changed the design on how to retrieve existing sub resources such as frontend endpoints. Existing design will be deprecated and will result in an incorrect configuration. Please refer to the updated documentation below for more information. // // !> **Note:** The `resourceGroupName` field has been removed as of the `v2.58.0` provider release. If the `resourceGroupName` field has been defined in your current `frontdoor.CustomHttpsConfiguration` resource configuration file please remove it else you will receive a `An argument named "resourceGroupName" is not expected here.` error. If your pre-existing Front Door instance contained inline `customHttpsConfiguration` blocks there are additional steps that will need to be completed to successfully migrate your Front Door onto the `v2.58.0` provider which can be found in this guide. // // !> **Note:** Azure rolled out a breaking change on Friday 9th April 2021 which may cause issues with the CDN/FrontDoor resources. More information is available in this GitHub issue - unfortunately this may necessitate a breaking change to the CDN and Front Door resources, more information will be posted in the GitHub issue as the necessary changes are identified. // // !> **Note:** The creation of new Azure Front Door (classic) resources is no longer supported following its deprecation on `April 1, 2025`. However, modifications to existing Azure Front Door (classic) resources will continue to be supported until the API reaches full retirement on `March 31, 2027`. // // ## 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/frontdoor" // "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("FrontDoorExampleResourceGroup"), // Location: pulumi.String("West Europe"), // }) // if err != nil { // return err // } // vault, err := keyvault.LookupKeyVault(ctx, &keyvault.LookupKeyVaultArgs{ // Name: "example-vault", // ResourceGroupName: "example-vault-rg", // }, nil) // if err != nil { // return err // } // exampleFrontdoor, err := frontdoor.NewFrontdoor(ctx, "example", &frontdoor.FrontdoorArgs{ // Name: pulumi.String("example-FrontDoor"), // ResourceGroupName: example.Name, // RoutingRules: frontdoor.FrontdoorRoutingRuleArray{ // &frontdoor.FrontdoorRoutingRuleArgs{ // Name: pulumi.String("exampleRoutingRule1"), // AcceptedProtocols: pulumi.StringArray{ // pulumi.String("Http"), // pulumi.String("Https"), // }, // PatternsToMatches: pulumi.StringArray{ // pulumi.String("/*"), // }, // FrontendEndpoints: pulumi.StringArray{ // pulumi.String("exampleFrontendEndpoint1"), // }, // ForwardingConfiguration: &frontdoor.FrontdoorRoutingRuleForwardingConfigurationArgs{ // ForwardingProtocol: pulumi.String("MatchRequest"), // BackendPoolName: pulumi.String("exampleBackendBing"), // }, // }, // }, // BackendPoolLoadBalancings: frontdoor.FrontdoorBackendPoolLoadBalancingArray{ // &frontdoor.FrontdoorBackendPoolLoadBalancingArgs{ // Name: pulumi.String("exampleLoadBalancingSettings1"), // }, // }, // BackendPoolHealthProbes: frontdoor.FrontdoorBackendPoolHealthProbeArray{ // &frontdoor.FrontdoorBackendPoolHealthProbeArgs{ // Name: pulumi.String("exampleHealthProbeSetting1"), // }, // }, // BackendPools: frontdoor.FrontdoorBackendPoolArray{ // &frontdoor.FrontdoorBackendPoolArgs{ // Name: pulumi.String("exampleBackendBing"), // Backends: frontdoor.FrontdoorBackendPoolBackendArray{ // &frontdoor.FrontdoorBackendPoolBackendArgs{ // HostHeader: pulumi.String("www.bing.com"), // Address: pulumi.String("www.bing.com"), // HttpPort: pulumi.Int(80), // HttpsPort: pulumi.Int(443), // }, // }, // LoadBalancingName: pulumi.String("exampleLoadBalancingSettings1"), // HealthProbeName: pulumi.String("exampleHealthProbeSetting1"), // }, // }, // FrontendEndpoints: frontdoor.FrontdoorFrontendEndpointArray{ // &frontdoor.FrontdoorFrontendEndpointArgs{ // Name: pulumi.String("exampleFrontendEndpoint1"), // HostName: pulumi.String("example-FrontDoor.azurefd.net"), // }, // &frontdoor.FrontdoorFrontendEndpointArgs{ // Name: pulumi.String("exampleFrontendEndpoint2"), // HostName: pulumi.String("examplefd1.examplefd.net"), // }, // }, // }) // if err != nil { // return err // } // _, err = frontdoor.NewCustomHttpsConfiguration(ctx, "example_custom_https_0", &frontdoor.CustomHttpsConfigurationArgs{ // FrontendEndpointId: exampleFrontdoor.FrontendEndpointsMap.ApplyT(func(frontendEndpointsMap map[string]string) (string, error) { // return frontendEndpointsMap.ExampleFrontendEndpoint1, nil // }).(pulumi.StringOutput), // CustomHttpsProvisioningEnabled: pulumi.Bool(false), // }) // if err != nil { // return err // } // _, err = frontdoor.NewCustomHttpsConfiguration(ctx, "example_custom_https_1", &frontdoor.CustomHttpsConfigurationArgs{ // FrontendEndpointId: exampleFrontdoor.FrontendEndpointsMap.ApplyT(func(frontendEndpointsMap map[string]string) (string, error) { // return frontendEndpointsMap.ExampleFrontendEndpoint2, nil // }).(pulumi.StringOutput), // CustomHttpsProvisioningEnabled: pulumi.Bool(true), // CustomHttpsConfiguration: &frontdoor.CustomHttpsConfigurationCustomHttpsConfigurationArgs{ // CertificateSource: pulumi.String("AzureKeyVault"), // AzureKeyVaultCertificateSecretName: pulumi.String("examplefd1"), // AzureKeyVaultCertificateVaultId: pulumi.String(vault.Id), // }, // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## Import // // Front Door Custom HTTPS Configurations can be imported using the `resource id` of the Front Door Custom HTTPS Configuration, e.g. // // ```sh // $ pulumi import azure:frontdoor/customHttpsConfiguration:CustomHttpsConfiguration example_custom_https_1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Network/frontDoors/frontdoor1/customHttpsConfiguration/endpoint1 // ``` type CustomHttpsConfiguration struct { pulumi.CustomResourceState // A `customHttpsConfiguration` block as defined above. CustomHttpsConfiguration CustomHttpsConfigurationCustomHttpsConfigurationPtrOutput `pulumi:"customHttpsConfiguration"` // Should the HTTPS protocol be enabled for this custom domain associated with the Front Door? CustomHttpsProvisioningEnabled pulumi.BoolOutput `pulumi:"customHttpsProvisioningEnabled"` // The ID of the Front Door Frontend Endpoint which this configuration refers to. Changing this forces a new resource to be created. FrontendEndpointId pulumi.StringOutput `pulumi:"frontendEndpointId"` } // NewCustomHttpsConfiguration registers a new resource with the given unique name, arguments, and options. func NewCustomHttpsConfiguration(ctx *pulumi.Context, name string, args *CustomHttpsConfigurationArgs, opts ...pulumi.ResourceOption) (*CustomHttpsConfiguration, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.CustomHttpsProvisioningEnabled == nil { return nil, errors.New("invalid value for required argument 'CustomHttpsProvisioningEnabled'") } if args.FrontendEndpointId == nil { return nil, errors.New("invalid value for required argument 'FrontendEndpointId'") } opts = internal.PkgResourceDefaultOpts(opts) var resource CustomHttpsConfiguration err := ctx.RegisterResource("azure:frontdoor/customHttpsConfiguration:CustomHttpsConfiguration", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetCustomHttpsConfiguration gets an existing CustomHttpsConfiguration 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 GetCustomHttpsConfiguration(ctx *pulumi.Context, name string, id pulumi.IDInput, state *CustomHttpsConfigurationState, opts ...pulumi.ResourceOption) (*CustomHttpsConfiguration, error) { var resource CustomHttpsConfiguration err := ctx.ReadResource("azure:frontdoor/customHttpsConfiguration:CustomHttpsConfiguration", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering CustomHttpsConfiguration resources. type customHttpsConfigurationState struct { // A `customHttpsConfiguration` block as defined above. CustomHttpsConfiguration *CustomHttpsConfigurationCustomHttpsConfiguration `pulumi:"customHttpsConfiguration"` // Should the HTTPS protocol be enabled for this custom domain associated with the Front Door? CustomHttpsProvisioningEnabled *bool `pulumi:"customHttpsProvisioningEnabled"` // The ID of the Front Door Frontend Endpoint which this configuration refers to. Changing this forces a new resource to be created. FrontendEndpointId *string `pulumi:"frontendEndpointId"` } type CustomHttpsConfigurationState struct { // A `customHttpsConfiguration` block as defined above. CustomHttpsConfiguration CustomHttpsConfigurationCustomHttpsConfigurationPtrInput // Should the HTTPS protocol be enabled for this custom domain associated with the Front Door? CustomHttpsProvisioningEnabled pulumi.BoolPtrInput // The ID of the Front Door Frontend Endpoint which this configuration refers to. Changing this forces a new resource to be created. FrontendEndpointId pulumi.StringPtrInput } func (CustomHttpsConfigurationState) ElementType() reflect.Type { return reflect.TypeOf((*customHttpsConfigurationState)(nil)).Elem() } type customHttpsConfigurationArgs struct { // A `customHttpsConfiguration` block as defined above. CustomHttpsConfiguration *CustomHttpsConfigurationCustomHttpsConfiguration `pulumi:"customHttpsConfiguration"` // Should the HTTPS protocol be enabled for this custom domain associated with the Front Door? CustomHttpsProvisioningEnabled bool `pulumi:"customHttpsProvisioningEnabled"` // The ID of the Front Door Frontend Endpoint which this configuration refers to. Changing this forces a new resource to be created. FrontendEndpointId string `pulumi:"frontendEndpointId"` } // The set of arguments for constructing a CustomHttpsConfiguration resource. type CustomHttpsConfigurationArgs struct { // A `customHttpsConfiguration` block as defined above. CustomHttpsConfiguration CustomHttpsConfigurationCustomHttpsConfigurationPtrInput // Should the HTTPS protocol be enabled for this custom domain associated with the Front Door? CustomHttpsProvisioningEnabled pulumi.BoolInput // The ID of the Front Door Frontend Endpoint which this configuration refers to. Changing this forces a new resource to be created. FrontendEndpointId pulumi.StringInput } func (CustomHttpsConfigurationArgs) ElementType() reflect.Type { return reflect.TypeOf((*customHttpsConfigurationArgs)(nil)).Elem() } type CustomHttpsConfigurationInput interface { pulumi.Input ToCustomHttpsConfigurationOutput() CustomHttpsConfigurationOutput ToCustomHttpsConfigurationOutputWithContext(ctx context.Context) CustomHttpsConfigurationOutput } func (*CustomHttpsConfiguration) ElementType() reflect.Type { return reflect.TypeOf((**CustomHttpsConfiguration)(nil)).Elem() } func (i *CustomHttpsConfiguration) ToCustomHttpsConfigurationOutput() CustomHttpsConfigurationOutput { return i.ToCustomHttpsConfigurationOutputWithContext(context.Background()) } func (i *CustomHttpsConfiguration) ToCustomHttpsConfigurationOutputWithContext(ctx context.Context) CustomHttpsConfigurationOutput { return pulumi.ToOutputWithContext(ctx, i).(CustomHttpsConfigurationOutput) } // CustomHttpsConfigurationArrayInput is an input type that accepts CustomHttpsConfigurationArray and CustomHttpsConfigurationArrayOutput values. // You can construct a concrete instance of `CustomHttpsConfigurationArrayInput` via: // // CustomHttpsConfigurationArray{ CustomHttpsConfigurationArgs{...} } type CustomHttpsConfigurationArrayInput interface { pulumi.Input ToCustomHttpsConfigurationArrayOutput() CustomHttpsConfigurationArrayOutput ToCustomHttpsConfigurationArrayOutputWithContext(context.Context) CustomHttpsConfigurationArrayOutput } type CustomHttpsConfigurationArray []CustomHttpsConfigurationInput func (CustomHttpsConfigurationArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*CustomHttpsConfiguration)(nil)).Elem() } func (i CustomHttpsConfigurationArray) ToCustomHttpsConfigurationArrayOutput() CustomHttpsConfigurationArrayOutput { return i.ToCustomHttpsConfigurationArrayOutputWithContext(context.Background()) } func (i CustomHttpsConfigurationArray) ToCustomHttpsConfigurationArrayOutputWithContext(ctx context.Context) CustomHttpsConfigurationArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(CustomHttpsConfigurationArrayOutput) } // CustomHttpsConfigurationMapInput is an input type that accepts CustomHttpsConfigurationMap and CustomHttpsConfigurationMapOutput values. // You can construct a concrete instance of `CustomHttpsConfigurationMapInput` via: // // CustomHttpsConfigurationMap{ "key": CustomHttpsConfigurationArgs{...} } type CustomHttpsConfigurationMapInput interface { pulumi.Input ToCustomHttpsConfigurationMapOutput() CustomHttpsConfigurationMapOutput ToCustomHttpsConfigurationMapOutputWithContext(context.Context) CustomHttpsConfigurationMapOutput } type CustomHttpsConfigurationMap map[string]CustomHttpsConfigurationInput func (CustomHttpsConfigurationMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*CustomHttpsConfiguration)(nil)).Elem() } func (i CustomHttpsConfigurationMap) ToCustomHttpsConfigurationMapOutput() CustomHttpsConfigurationMapOutput { return i.ToCustomHttpsConfigurationMapOutputWithContext(context.Background()) } func (i CustomHttpsConfigurationMap) ToCustomHttpsConfigurationMapOutputWithContext(ctx context.Context) CustomHttpsConfigurationMapOutput { return pulumi.ToOutputWithContext(ctx, i).(CustomHttpsConfigurationMapOutput) } type CustomHttpsConfigurationOutput struct{ *pulumi.OutputState } func (CustomHttpsConfigurationOutput) ElementType() reflect.Type { return reflect.TypeOf((**CustomHttpsConfiguration)(nil)).Elem() } func (o CustomHttpsConfigurationOutput) ToCustomHttpsConfigurationOutput() CustomHttpsConfigurationOutput { return o } func (o CustomHttpsConfigurationOutput) ToCustomHttpsConfigurationOutputWithContext(ctx context.Context) CustomHttpsConfigurationOutput { return o } // A `customHttpsConfiguration` block as defined above. func (o CustomHttpsConfigurationOutput) CustomHttpsConfiguration() CustomHttpsConfigurationCustomHttpsConfigurationPtrOutput { return o.ApplyT(func(v *CustomHttpsConfiguration) CustomHttpsConfigurationCustomHttpsConfigurationPtrOutput { return v.CustomHttpsConfiguration }).(CustomHttpsConfigurationCustomHttpsConfigurationPtrOutput) } // Should the HTTPS protocol be enabled for this custom domain associated with the Front Door? func (o CustomHttpsConfigurationOutput) CustomHttpsProvisioningEnabled() pulumi.BoolOutput { return o.ApplyT(func(v *CustomHttpsConfiguration) pulumi.BoolOutput { return v.CustomHttpsProvisioningEnabled }).(pulumi.BoolOutput) } // The ID of the Front Door Frontend Endpoint which this configuration refers to. Changing this forces a new resource to be created. func (o CustomHttpsConfigurationOutput) FrontendEndpointId() pulumi.StringOutput { return o.ApplyT(func(v *CustomHttpsConfiguration) pulumi.StringOutput { return v.FrontendEndpointId }).(pulumi.StringOutput) } type CustomHttpsConfigurationArrayOutput struct{ *pulumi.OutputState } func (CustomHttpsConfigurationArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*CustomHttpsConfiguration)(nil)).Elem() } func (o CustomHttpsConfigurationArrayOutput) ToCustomHttpsConfigurationArrayOutput() CustomHttpsConfigurationArrayOutput { return o } func (o CustomHttpsConfigurationArrayOutput) ToCustomHttpsConfigurationArrayOutputWithContext(ctx context.Context) CustomHttpsConfigurationArrayOutput { return o } func (o CustomHttpsConfigurationArrayOutput) Index(i pulumi.IntInput) CustomHttpsConfigurationOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *CustomHttpsConfiguration { return vs[0].([]*CustomHttpsConfiguration)[vs[1].(int)] }).(CustomHttpsConfigurationOutput) } type CustomHttpsConfigurationMapOutput struct{ *pulumi.OutputState } func (CustomHttpsConfigurationMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*CustomHttpsConfiguration)(nil)).Elem() } func (o CustomHttpsConfigurationMapOutput) ToCustomHttpsConfigurationMapOutput() CustomHttpsConfigurationMapOutput { return o } func (o CustomHttpsConfigurationMapOutput) ToCustomHttpsConfigurationMapOutputWithContext(ctx context.Context) CustomHttpsConfigurationMapOutput { return o } func (o CustomHttpsConfigurationMapOutput) MapIndex(k pulumi.StringInput) CustomHttpsConfigurationOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *CustomHttpsConfiguration { return vs[0].(map[string]*CustomHttpsConfiguration)[vs[1].(string)] }).(CustomHttpsConfigurationOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*CustomHttpsConfigurationInput)(nil)).Elem(), &CustomHttpsConfiguration{}) pulumi.RegisterInputType(reflect.TypeOf((*CustomHttpsConfigurationArrayInput)(nil)).Elem(), CustomHttpsConfigurationArray{}) pulumi.RegisterInputType(reflect.TypeOf((*CustomHttpsConfigurationMapInput)(nil)).Elem(), CustomHttpsConfigurationMap{}) pulumi.RegisterOutputType(CustomHttpsConfigurationOutput{}) pulumi.RegisterOutputType(CustomHttpsConfigurationArrayOutput{}) pulumi.RegisterOutputType(CustomHttpsConfigurationMapOutput{}) }
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/frontdoor/rulesEngine.go
sdk/go/azure/frontdoor/rulesEngine.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 frontdoor import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // !> **Note:** This deploys an Azure Front Door (classic) resource which has been deprecated and will receive security updates only. Please migrate your existing Azure Front Door (classic) deployments to the new Azure Front Door (standard/premium) resources. For your convenience, the service team has exposed a `Front Door Classic` to `Front Door Standard/Premium` [migration tool](https://learn.microsoft.com/azure/frontdoor/tier-migration) to allow you to migrate your existing `Front Door Classic` instances to the new `Front Door Standard/Premium` product tiers. // // !> **Note:** The creation of new Azure Front Door (classic) resources is no longer supported following its deprecation on `April 1, 2025`. However, modifications to existing Azure Front Door (classic) resources will continue to be supported until the API reaches full retirement on `March 31, 2027`. // // Manages an Azure Front Door (classic) Rules Engine configuration and rules. // // ## 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/frontdoor" // "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 // } // exampleFrontdoor, err := frontdoor.NewFrontdoor(ctx, "example", &frontdoor.FrontdoorArgs{ // Name: pulumi.String("example"), // ResourceGroupName: example.Name, // BackendPools: frontdoor.FrontdoorBackendPoolArray{ // &frontdoor.FrontdoorBackendPoolArgs{ // Name: pulumi.String("exampleBackendBing"), // LoadBalancingName: pulumi.String("exampleLoadBalancingSettings1"), // HealthProbeName: pulumi.String("exampleHealthProbeSetting1"), // Backends: frontdoor.FrontdoorBackendPoolBackendArray{ // &frontdoor.FrontdoorBackendPoolBackendArgs{ // HostHeader: pulumi.String("www.bing.com"), // Address: pulumi.String("www.bing.com"), // HttpPort: pulumi.Int(80), // HttpsPort: pulumi.Int(443), // }, // }, // }, // }, // BackendPoolHealthProbes: frontdoor.FrontdoorBackendPoolHealthProbeArray{ // &frontdoor.FrontdoorBackendPoolHealthProbeArgs{ // Name: pulumi.String("exampleHealthProbeSetting1"), // }, // }, // BackendPoolLoadBalancings: frontdoor.FrontdoorBackendPoolLoadBalancingArray{ // &frontdoor.FrontdoorBackendPoolLoadBalancingArgs{ // Name: pulumi.String("exampleLoadBalancingSettings1"), // }, // }, // FrontendEndpoints: frontdoor.FrontdoorFrontendEndpointArray{ // &frontdoor.FrontdoorFrontendEndpointArgs{ // Name: pulumi.String("exampleFrontendEndpoint1"), // HostName: pulumi.String("example-FrontDoor.azurefd.net"), // }, // }, // RoutingRules: frontdoor.FrontdoorRoutingRuleArray{ // &frontdoor.FrontdoorRoutingRuleArgs{ // Name: pulumi.String("exampleRoutingRule1"), // AcceptedProtocols: pulumi.StringArray{ // pulumi.String("Http"), // pulumi.String("Https"), // }, // PatternsToMatches: pulumi.StringArray{ // pulumi.String("/*"), // }, // FrontendEndpoints: pulumi.StringArray{ // pulumi.String("exampleFrontendEndpoint1"), // }, // }, // }, // }) // if err != nil { // return err // } // _, err = frontdoor.NewRulesEngine(ctx, "example_rules_engine", &frontdoor.RulesEngineArgs{ // Name: pulumi.String("exampleRulesEngineConfig1"), // FrontdoorName: exampleFrontdoor.Name, // ResourceGroupName: exampleFrontdoor.ResourceGroupName, // Rules: frontdoor.RulesEngineRuleArray{ // &frontdoor.RulesEngineRuleArgs{ // Name: pulumi.String("debuggingoutput"), // Priority: pulumi.Int(1), // Action: &frontdoor.RulesEngineRuleActionArgs{ // ResponseHeaders: frontdoor.RulesEngineRuleActionResponseHeaderArray{ // &frontdoor.RulesEngineRuleActionResponseHeaderArgs{ // HeaderActionType: pulumi.String("Append"), // HeaderName: pulumi.String("X-TEST-HEADER"), // Value: pulumi.String("Append Header Rule"), // }, // }, // }, // }, // &frontdoor.RulesEngineRuleArgs{ // Name: pulumi.String("overwriteorigin"), // Priority: pulumi.Int(2), // MatchConditions: frontdoor.RulesEngineRuleMatchConditionArray{ // &frontdoor.RulesEngineRuleMatchConditionArgs{ // Variable: pulumi.String("RequestMethod"), // Operator: pulumi.String("Equal"), // Values: pulumi.StringArray{ // pulumi.String("GET"), // pulumi.String("POST"), // }, // }, // }, // Action: &frontdoor.RulesEngineRuleActionArgs{ // ResponseHeaders: frontdoor.RulesEngineRuleActionResponseHeaderArray{ // &frontdoor.RulesEngineRuleActionResponseHeaderArgs{ // HeaderActionType: pulumi.String("Overwrite"), // HeaderName: pulumi.String("Access-Control-Allow-Origin"), // Value: pulumi.String("*"), // }, // &frontdoor.RulesEngineRuleActionResponseHeaderArgs{ // HeaderActionType: pulumi.String("Overwrite"), // HeaderName: pulumi.String("Access-Control-Allow-Credentials"), // Value: pulumi.String("true"), // }, // }, // }, // }, // }, // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## Import // // Azure Front Door Rules Engine's can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:frontdoor/rulesEngine:RulesEngine example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resGroup1/providers/Microsoft.Network/frontdoors/frontdoor1/rulesEngines/rule1 // ``` type RulesEngine struct { pulumi.CustomResourceState // Whether this Rules engine configuration is enabled? Defaults to `true`. Enabled pulumi.BoolPtrOutput `pulumi:"enabled"` // The name of the Front Door instance. Changing this forces a new resource to be created. FrontdoorName pulumi.StringOutput `pulumi:"frontdoorName"` // The location in which the Front Door Rules Engine exists. Location pulumi.StringOutput `pulumi:"location"` // The name of the Rules engine configuration. Changing this forces a new resource to be created. Name pulumi.StringOutput `pulumi:"name"` // The name of the resource group. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // A `rule` block as defined below. Rules RulesEngineRuleArrayOutput `pulumi:"rules"` } // NewRulesEngine registers a new resource with the given unique name, arguments, and options. func NewRulesEngine(ctx *pulumi.Context, name string, args *RulesEngineArgs, opts ...pulumi.ResourceOption) (*RulesEngine, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.FrontdoorName == nil { return nil, errors.New("invalid value for required argument 'FrontdoorName'") } if args.ResourceGroupName == nil { return nil, errors.New("invalid value for required argument 'ResourceGroupName'") } opts = internal.PkgResourceDefaultOpts(opts) var resource RulesEngine err := ctx.RegisterResource("azure:frontdoor/rulesEngine:RulesEngine", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetRulesEngine gets an existing RulesEngine 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 GetRulesEngine(ctx *pulumi.Context, name string, id pulumi.IDInput, state *RulesEngineState, opts ...pulumi.ResourceOption) (*RulesEngine, error) { var resource RulesEngine err := ctx.ReadResource("azure:frontdoor/rulesEngine:RulesEngine", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering RulesEngine resources. type rulesEngineState struct { // Whether this Rules engine configuration is enabled? Defaults to `true`. Enabled *bool `pulumi:"enabled"` // The name of the Front Door instance. Changing this forces a new resource to be created. FrontdoorName *string `pulumi:"frontdoorName"` // The location in which the Front Door Rules Engine exists. Location *string `pulumi:"location"` // The name of the Rules engine configuration. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // The name of the resource group. Changing this forces a new resource to be created. ResourceGroupName *string `pulumi:"resourceGroupName"` // A `rule` block as defined below. Rules []RulesEngineRule `pulumi:"rules"` } type RulesEngineState struct { // Whether this Rules engine configuration is enabled? Defaults to `true`. Enabled pulumi.BoolPtrInput // The name of the Front Door instance. Changing this forces a new resource to be created. FrontdoorName pulumi.StringPtrInput // The location in which the Front Door Rules Engine exists. Location pulumi.StringPtrInput // The name of the Rules engine configuration. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // The name of the resource group. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringPtrInput // A `rule` block as defined below. Rules RulesEngineRuleArrayInput } func (RulesEngineState) ElementType() reflect.Type { return reflect.TypeOf((*rulesEngineState)(nil)).Elem() } type rulesEngineArgs struct { // Whether this Rules engine configuration is enabled? Defaults to `true`. Enabled *bool `pulumi:"enabled"` // The name of the Front Door instance. Changing this forces a new resource to be created. FrontdoorName string `pulumi:"frontdoorName"` // The name of the Rules engine configuration. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // The name of the resource group. Changing this forces a new resource to be created. ResourceGroupName string `pulumi:"resourceGroupName"` // A `rule` block as defined below. Rules []RulesEngineRule `pulumi:"rules"` } // The set of arguments for constructing a RulesEngine resource. type RulesEngineArgs struct { // Whether this Rules engine configuration is enabled? Defaults to `true`. Enabled pulumi.BoolPtrInput // The name of the Front Door instance. Changing this forces a new resource to be created. FrontdoorName pulumi.StringInput // The name of the Rules engine configuration. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // The name of the resource group. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringInput // A `rule` block as defined below. Rules RulesEngineRuleArrayInput } func (RulesEngineArgs) ElementType() reflect.Type { return reflect.TypeOf((*rulesEngineArgs)(nil)).Elem() } type RulesEngineInput interface { pulumi.Input ToRulesEngineOutput() RulesEngineOutput ToRulesEngineOutputWithContext(ctx context.Context) RulesEngineOutput } func (*RulesEngine) ElementType() reflect.Type { return reflect.TypeOf((**RulesEngine)(nil)).Elem() } func (i *RulesEngine) ToRulesEngineOutput() RulesEngineOutput { return i.ToRulesEngineOutputWithContext(context.Background()) } func (i *RulesEngine) ToRulesEngineOutputWithContext(ctx context.Context) RulesEngineOutput { return pulumi.ToOutputWithContext(ctx, i).(RulesEngineOutput) } // RulesEngineArrayInput is an input type that accepts RulesEngineArray and RulesEngineArrayOutput values. // You can construct a concrete instance of `RulesEngineArrayInput` via: // // RulesEngineArray{ RulesEngineArgs{...} } type RulesEngineArrayInput interface { pulumi.Input ToRulesEngineArrayOutput() RulesEngineArrayOutput ToRulesEngineArrayOutputWithContext(context.Context) RulesEngineArrayOutput } type RulesEngineArray []RulesEngineInput func (RulesEngineArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*RulesEngine)(nil)).Elem() } func (i RulesEngineArray) ToRulesEngineArrayOutput() RulesEngineArrayOutput { return i.ToRulesEngineArrayOutputWithContext(context.Background()) } func (i RulesEngineArray) ToRulesEngineArrayOutputWithContext(ctx context.Context) RulesEngineArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(RulesEngineArrayOutput) } // RulesEngineMapInput is an input type that accepts RulesEngineMap and RulesEngineMapOutput values. // You can construct a concrete instance of `RulesEngineMapInput` via: // // RulesEngineMap{ "key": RulesEngineArgs{...} } type RulesEngineMapInput interface { pulumi.Input ToRulesEngineMapOutput() RulesEngineMapOutput ToRulesEngineMapOutputWithContext(context.Context) RulesEngineMapOutput } type RulesEngineMap map[string]RulesEngineInput func (RulesEngineMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*RulesEngine)(nil)).Elem() } func (i RulesEngineMap) ToRulesEngineMapOutput() RulesEngineMapOutput { return i.ToRulesEngineMapOutputWithContext(context.Background()) } func (i RulesEngineMap) ToRulesEngineMapOutputWithContext(ctx context.Context) RulesEngineMapOutput { return pulumi.ToOutputWithContext(ctx, i).(RulesEngineMapOutput) } type RulesEngineOutput struct{ *pulumi.OutputState } func (RulesEngineOutput) ElementType() reflect.Type { return reflect.TypeOf((**RulesEngine)(nil)).Elem() } func (o RulesEngineOutput) ToRulesEngineOutput() RulesEngineOutput { return o } func (o RulesEngineOutput) ToRulesEngineOutputWithContext(ctx context.Context) RulesEngineOutput { return o } // Whether this Rules engine configuration is enabled? Defaults to `true`. func (o RulesEngineOutput) Enabled() pulumi.BoolPtrOutput { return o.ApplyT(func(v *RulesEngine) pulumi.BoolPtrOutput { return v.Enabled }).(pulumi.BoolPtrOutput) } // The name of the Front Door instance. Changing this forces a new resource to be created. func (o RulesEngineOutput) FrontdoorName() pulumi.StringOutput { return o.ApplyT(func(v *RulesEngine) pulumi.StringOutput { return v.FrontdoorName }).(pulumi.StringOutput) } // The location in which the Front Door Rules Engine exists. func (o RulesEngineOutput) Location() pulumi.StringOutput { return o.ApplyT(func(v *RulesEngine) pulumi.StringOutput { return v.Location }).(pulumi.StringOutput) } // The name of the Rules engine configuration. Changing this forces a new resource to be created. func (o RulesEngineOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *RulesEngine) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // The name of the resource group. Changing this forces a new resource to be created. func (o RulesEngineOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v *RulesEngine) pulumi.StringOutput { return v.ResourceGroupName }).(pulumi.StringOutput) } // A `rule` block as defined below. func (o RulesEngineOutput) Rules() RulesEngineRuleArrayOutput { return o.ApplyT(func(v *RulesEngine) RulesEngineRuleArrayOutput { return v.Rules }).(RulesEngineRuleArrayOutput) } type RulesEngineArrayOutput struct{ *pulumi.OutputState } func (RulesEngineArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*RulesEngine)(nil)).Elem() } func (o RulesEngineArrayOutput) ToRulesEngineArrayOutput() RulesEngineArrayOutput { return o } func (o RulesEngineArrayOutput) ToRulesEngineArrayOutputWithContext(ctx context.Context) RulesEngineArrayOutput { return o } func (o RulesEngineArrayOutput) Index(i pulumi.IntInput) RulesEngineOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *RulesEngine { return vs[0].([]*RulesEngine)[vs[1].(int)] }).(RulesEngineOutput) } type RulesEngineMapOutput struct{ *pulumi.OutputState } func (RulesEngineMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*RulesEngine)(nil)).Elem() } func (o RulesEngineMapOutput) ToRulesEngineMapOutput() RulesEngineMapOutput { return o } func (o RulesEngineMapOutput) ToRulesEngineMapOutputWithContext(ctx context.Context) RulesEngineMapOutput { return o } func (o RulesEngineMapOutput) MapIndex(k pulumi.StringInput) RulesEngineOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *RulesEngine { return vs[0].(map[string]*RulesEngine)[vs[1].(string)] }).(RulesEngineOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*RulesEngineInput)(nil)).Elem(), &RulesEngine{}) pulumi.RegisterInputType(reflect.TypeOf((*RulesEngineArrayInput)(nil)).Elem(), RulesEngineArray{}) pulumi.RegisterInputType(reflect.TypeOf((*RulesEngineMapInput)(nil)).Elem(), RulesEngineMap{}) pulumi.RegisterOutputType(RulesEngineOutput{}) pulumi.RegisterOutputType(RulesEngineArrayOutput{}) pulumi.RegisterOutputType(RulesEngineMapOutput{}) }
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/frontdoor/frontdoor.go
sdk/go/azure/frontdoor/frontdoor.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 frontdoor 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/frontdoor" // "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("FrontDoorExampleResourceGroup"), // Location: pulumi.String("West Europe"), // }) // if err != nil { // return err // } // _, err = frontdoor.NewFrontdoor(ctx, "example", &frontdoor.FrontdoorArgs{ // Name: pulumi.String("example-FrontDoor"), // ResourceGroupName: example.Name, // RoutingRules: frontdoor.FrontdoorRoutingRuleArray{ // &frontdoor.FrontdoorRoutingRuleArgs{ // Name: pulumi.String("exampleRoutingRule1"), // AcceptedProtocols: pulumi.StringArray{ // pulumi.String("Http"), // pulumi.String("Https"), // }, // PatternsToMatches: pulumi.StringArray{ // pulumi.String("/*"), // }, // FrontendEndpoints: pulumi.StringArray{ // pulumi.String("exampleFrontendEndpoint1"), // }, // ForwardingConfiguration: &frontdoor.FrontdoorRoutingRuleForwardingConfigurationArgs{ // ForwardingProtocol: pulumi.String("MatchRequest"), // BackendPoolName: pulumi.String("exampleBackendBing"), // }, // }, // }, // BackendPoolLoadBalancings: frontdoor.FrontdoorBackendPoolLoadBalancingArray{ // &frontdoor.FrontdoorBackendPoolLoadBalancingArgs{ // Name: pulumi.String("exampleLoadBalancingSettings1"), // }, // }, // BackendPoolHealthProbes: frontdoor.FrontdoorBackendPoolHealthProbeArray{ // &frontdoor.FrontdoorBackendPoolHealthProbeArgs{ // Name: pulumi.String("exampleHealthProbeSetting1"), // }, // }, // BackendPools: frontdoor.FrontdoorBackendPoolArray{ // &frontdoor.FrontdoorBackendPoolArgs{ // Name: pulumi.String("exampleBackendBing"), // Backends: frontdoor.FrontdoorBackendPoolBackendArray{ // &frontdoor.FrontdoorBackendPoolBackendArgs{ // HostHeader: pulumi.String("www.bing.com"), // Address: pulumi.String("www.bing.com"), // HttpPort: pulumi.Int(80), // HttpsPort: pulumi.Int(443), // }, // }, // LoadBalancingName: pulumi.String("exampleLoadBalancingSettings1"), // HealthProbeName: pulumi.String("exampleHealthProbeSetting1"), // }, // }, // FrontendEndpoints: frontdoor.FrontdoorFrontendEndpointArray{ // &frontdoor.FrontdoorFrontendEndpointArgs{ // Name: pulumi.String("exampleFrontendEndpoint1"), // HostName: pulumi.String("example-FrontDoor.azurefd.net"), // }, // }, // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## Import // // Front Doors can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:frontdoor/frontdoor:Frontdoor example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Network/frontDoors/frontdoor1 // ``` type Frontdoor struct { pulumi.CustomResourceState // A `backendPoolHealthProbe` block as defined below. BackendPoolHealthProbes FrontdoorBackendPoolHealthProbeArrayOutput `pulumi:"backendPoolHealthProbes"` // A map/dictionary of Backend Pool Health Probe Names (key) to the Backend Pool Health Probe ID (value) BackendPoolHealthProbesMap pulumi.StringMapOutput `pulumi:"backendPoolHealthProbesMap"` // A map/dictionary of Backend Pool Load Balancing Setting Names (key) to the Backend Pool Load Balancing Setting ID (value) BackendPoolLoadBalancingSettingsMap pulumi.StringMapOutput `pulumi:"backendPoolLoadBalancingSettingsMap"` // A `backendPoolLoadBalancing` block as defined below. BackendPoolLoadBalancings FrontdoorBackendPoolLoadBalancingArrayOutput `pulumi:"backendPoolLoadBalancings"` // A `backendPoolSettings` block as defined below. BackendPoolSettings FrontdoorBackendPoolSettingArrayOutput `pulumi:"backendPoolSettings"` // A `backendPool` block as defined below. // // > Azure by default allows specifying up to 50 Backend Pools - but this quota can be increased via Microsoft Support. BackendPools FrontdoorBackendPoolArrayOutput `pulumi:"backendPools"` // A map/dictionary of Backend Pool Names (key) to the Backend Pool ID (value) BackendPoolsMap pulumi.StringMapOutput `pulumi:"backendPoolsMap"` // The host that each frontendEndpoint must CNAME to. Cname pulumi.StringOutput `pulumi:"cname"` ExplicitResourceOrders FrontdoorExplicitResourceOrderArrayOutput `pulumi:"explicitResourceOrders"` // A friendly name for the Front Door service. FriendlyName pulumi.StringPtrOutput `pulumi:"friendlyName"` // A `frontendEndpoint` block as defined below. FrontendEndpoints FrontdoorFrontendEndpointArrayOutput `pulumi:"frontendEndpoints"` // A map/dictionary of Frontend Endpoint Names (key) to the Frontend Endpoint ID (value) FrontendEndpointsMap pulumi.StringMapOutput `pulumi:"frontendEndpointsMap"` // The unique ID of the Front Door which is embedded into the incoming headers `X-Azure-FDID` attribute and maybe used to filter traffic sent by the Front Door to your backend. HeaderFrontdoorId pulumi.StringOutput `pulumi:"headerFrontdoorId"` // Should the Front Door Load Balancer be Enabled? Defaults to `true`. LoadBalancerEnabled pulumi.BoolPtrOutput `pulumi:"loadBalancerEnabled"` // Specifies the name of the Front Door service. Must be globally unique. Changing this forces a new resource to be created. Name pulumi.StringOutput `pulumi:"name"` // Specifies the name of the Resource Group in which the Front Door service should exist. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // A `routingRule` block as defined below. RoutingRules FrontdoorRoutingRuleArrayOutput `pulumi:"routingRules"` // A map/dictionary of Routing Rule Names (key) to the Routing Rule ID (value) RoutingRulesMap pulumi.StringMapOutput `pulumi:"routingRulesMap"` // A mapping of tags to assign to the resource. Tags pulumi.StringMapOutput `pulumi:"tags"` } // NewFrontdoor registers a new resource with the given unique name, arguments, and options. func NewFrontdoor(ctx *pulumi.Context, name string, args *FrontdoorArgs, opts ...pulumi.ResourceOption) (*Frontdoor, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.BackendPoolHealthProbes == nil { return nil, errors.New("invalid value for required argument 'BackendPoolHealthProbes'") } if args.BackendPoolLoadBalancings == nil { return nil, errors.New("invalid value for required argument 'BackendPoolLoadBalancings'") } if args.BackendPools == nil { return nil, errors.New("invalid value for required argument 'BackendPools'") } if args.FrontendEndpoints == nil { return nil, errors.New("invalid value for required argument 'FrontendEndpoints'") } if args.ResourceGroupName == nil { return nil, errors.New("invalid value for required argument 'ResourceGroupName'") } if args.RoutingRules == nil { return nil, errors.New("invalid value for required argument 'RoutingRules'") } opts = internal.PkgResourceDefaultOpts(opts) var resource Frontdoor err := ctx.RegisterResource("azure:frontdoor/frontdoor:Frontdoor", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetFrontdoor gets an existing Frontdoor 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 GetFrontdoor(ctx *pulumi.Context, name string, id pulumi.IDInput, state *FrontdoorState, opts ...pulumi.ResourceOption) (*Frontdoor, error) { var resource Frontdoor err := ctx.ReadResource("azure:frontdoor/frontdoor:Frontdoor", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering Frontdoor resources. type frontdoorState struct { // A `backendPoolHealthProbe` block as defined below. BackendPoolHealthProbes []FrontdoorBackendPoolHealthProbe `pulumi:"backendPoolHealthProbes"` // A map/dictionary of Backend Pool Health Probe Names (key) to the Backend Pool Health Probe ID (value) BackendPoolHealthProbesMap map[string]string `pulumi:"backendPoolHealthProbesMap"` // A map/dictionary of Backend Pool Load Balancing Setting Names (key) to the Backend Pool Load Balancing Setting ID (value) BackendPoolLoadBalancingSettingsMap map[string]string `pulumi:"backendPoolLoadBalancingSettingsMap"` // A `backendPoolLoadBalancing` block as defined below. BackendPoolLoadBalancings []FrontdoorBackendPoolLoadBalancing `pulumi:"backendPoolLoadBalancings"` // A `backendPoolSettings` block as defined below. BackendPoolSettings []FrontdoorBackendPoolSetting `pulumi:"backendPoolSettings"` // A `backendPool` block as defined below. // // > Azure by default allows specifying up to 50 Backend Pools - but this quota can be increased via Microsoft Support. BackendPools []FrontdoorBackendPool `pulumi:"backendPools"` // A map/dictionary of Backend Pool Names (key) to the Backend Pool ID (value) BackendPoolsMap map[string]string `pulumi:"backendPoolsMap"` // The host that each frontendEndpoint must CNAME to. Cname *string `pulumi:"cname"` ExplicitResourceOrders []FrontdoorExplicitResourceOrder `pulumi:"explicitResourceOrders"` // A friendly name for the Front Door service. FriendlyName *string `pulumi:"friendlyName"` // A `frontendEndpoint` block as defined below. FrontendEndpoints []FrontdoorFrontendEndpoint `pulumi:"frontendEndpoints"` // A map/dictionary of Frontend Endpoint Names (key) to the Frontend Endpoint ID (value) FrontendEndpointsMap map[string]string `pulumi:"frontendEndpointsMap"` // The unique ID of the Front Door which is embedded into the incoming headers `X-Azure-FDID` attribute and maybe used to filter traffic sent by the Front Door to your backend. HeaderFrontdoorId *string `pulumi:"headerFrontdoorId"` // Should the Front Door Load Balancer be Enabled? Defaults to `true`. LoadBalancerEnabled *bool `pulumi:"loadBalancerEnabled"` // Specifies the name of the Front Door service. Must be globally unique. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // Specifies the name of the Resource Group in which the Front Door service should exist. Changing this forces a new resource to be created. ResourceGroupName *string `pulumi:"resourceGroupName"` // A `routingRule` block as defined below. RoutingRules []FrontdoorRoutingRule `pulumi:"routingRules"` // A map/dictionary of Routing Rule Names (key) to the Routing Rule ID (value) RoutingRulesMap map[string]string `pulumi:"routingRulesMap"` // A mapping of tags to assign to the resource. Tags map[string]string `pulumi:"tags"` } type FrontdoorState struct { // A `backendPoolHealthProbe` block as defined below. BackendPoolHealthProbes FrontdoorBackendPoolHealthProbeArrayInput // A map/dictionary of Backend Pool Health Probe Names (key) to the Backend Pool Health Probe ID (value) BackendPoolHealthProbesMap pulumi.StringMapInput // A map/dictionary of Backend Pool Load Balancing Setting Names (key) to the Backend Pool Load Balancing Setting ID (value) BackendPoolLoadBalancingSettingsMap pulumi.StringMapInput // A `backendPoolLoadBalancing` block as defined below. BackendPoolLoadBalancings FrontdoorBackendPoolLoadBalancingArrayInput // A `backendPoolSettings` block as defined below. BackendPoolSettings FrontdoorBackendPoolSettingArrayInput // A `backendPool` block as defined below. // // > Azure by default allows specifying up to 50 Backend Pools - but this quota can be increased via Microsoft Support. BackendPools FrontdoorBackendPoolArrayInput // A map/dictionary of Backend Pool Names (key) to the Backend Pool ID (value) BackendPoolsMap pulumi.StringMapInput // The host that each frontendEndpoint must CNAME to. Cname pulumi.StringPtrInput ExplicitResourceOrders FrontdoorExplicitResourceOrderArrayInput // A friendly name for the Front Door service. FriendlyName pulumi.StringPtrInput // A `frontendEndpoint` block as defined below. FrontendEndpoints FrontdoorFrontendEndpointArrayInput // A map/dictionary of Frontend Endpoint Names (key) to the Frontend Endpoint ID (value) FrontendEndpointsMap pulumi.StringMapInput // The unique ID of the Front Door which is embedded into the incoming headers `X-Azure-FDID` attribute and maybe used to filter traffic sent by the Front Door to your backend. HeaderFrontdoorId pulumi.StringPtrInput // Should the Front Door Load Balancer be Enabled? Defaults to `true`. LoadBalancerEnabled pulumi.BoolPtrInput // Specifies the name of the Front Door service. Must be globally unique. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // Specifies the name of the Resource Group in which the Front Door service should exist. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringPtrInput // A `routingRule` block as defined below. RoutingRules FrontdoorRoutingRuleArrayInput // A map/dictionary of Routing Rule Names (key) to the Routing Rule ID (value) RoutingRulesMap pulumi.StringMapInput // A mapping of tags to assign to the resource. Tags pulumi.StringMapInput } func (FrontdoorState) ElementType() reflect.Type { return reflect.TypeOf((*frontdoorState)(nil)).Elem() } type frontdoorArgs struct { // A `backendPoolHealthProbe` block as defined below. BackendPoolHealthProbes []FrontdoorBackendPoolHealthProbe `pulumi:"backendPoolHealthProbes"` // A `backendPoolLoadBalancing` block as defined below. BackendPoolLoadBalancings []FrontdoorBackendPoolLoadBalancing `pulumi:"backendPoolLoadBalancings"` // A `backendPoolSettings` block as defined below. BackendPoolSettings []FrontdoorBackendPoolSetting `pulumi:"backendPoolSettings"` // A `backendPool` block as defined below. // // > Azure by default allows specifying up to 50 Backend Pools - but this quota can be increased via Microsoft Support. BackendPools []FrontdoorBackendPool `pulumi:"backendPools"` // A friendly name for the Front Door service. FriendlyName *string `pulumi:"friendlyName"` // A `frontendEndpoint` block as defined below. FrontendEndpoints []FrontdoorFrontendEndpoint `pulumi:"frontendEndpoints"` // Should the Front Door Load Balancer be Enabled? Defaults to `true`. LoadBalancerEnabled *bool `pulumi:"loadBalancerEnabled"` // Specifies the name of the Front Door service. Must be globally unique. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // Specifies the name of the Resource Group in which the Front Door service should exist. Changing this forces a new resource to be created. ResourceGroupName string `pulumi:"resourceGroupName"` // A `routingRule` block as defined below. RoutingRules []FrontdoorRoutingRule `pulumi:"routingRules"` // A mapping of tags to assign to the resource. Tags map[string]string `pulumi:"tags"` } // The set of arguments for constructing a Frontdoor resource. type FrontdoorArgs struct { // A `backendPoolHealthProbe` block as defined below. BackendPoolHealthProbes FrontdoorBackendPoolHealthProbeArrayInput // A `backendPoolLoadBalancing` block as defined below. BackendPoolLoadBalancings FrontdoorBackendPoolLoadBalancingArrayInput // A `backendPoolSettings` block as defined below. BackendPoolSettings FrontdoorBackendPoolSettingArrayInput // A `backendPool` block as defined below. // // > Azure by default allows specifying up to 50 Backend Pools - but this quota can be increased via Microsoft Support. BackendPools FrontdoorBackendPoolArrayInput // A friendly name for the Front Door service. FriendlyName pulumi.StringPtrInput // A `frontendEndpoint` block as defined below. FrontendEndpoints FrontdoorFrontendEndpointArrayInput // Should the Front Door Load Balancer be Enabled? Defaults to `true`. LoadBalancerEnabled pulumi.BoolPtrInput // Specifies the name of the Front Door service. Must be globally unique. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // Specifies the name of the Resource Group in which the Front Door service should exist. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringInput // A `routingRule` block as defined below. RoutingRules FrontdoorRoutingRuleArrayInput // A mapping of tags to assign to the resource. Tags pulumi.StringMapInput } func (FrontdoorArgs) ElementType() reflect.Type { return reflect.TypeOf((*frontdoorArgs)(nil)).Elem() } type FrontdoorInput interface { pulumi.Input ToFrontdoorOutput() FrontdoorOutput ToFrontdoorOutputWithContext(ctx context.Context) FrontdoorOutput } func (*Frontdoor) ElementType() reflect.Type { return reflect.TypeOf((**Frontdoor)(nil)).Elem() } func (i *Frontdoor) ToFrontdoorOutput() FrontdoorOutput { return i.ToFrontdoorOutputWithContext(context.Background()) } func (i *Frontdoor) ToFrontdoorOutputWithContext(ctx context.Context) FrontdoorOutput { return pulumi.ToOutputWithContext(ctx, i).(FrontdoorOutput) } // FrontdoorArrayInput is an input type that accepts FrontdoorArray and FrontdoorArrayOutput values. // You can construct a concrete instance of `FrontdoorArrayInput` via: // // FrontdoorArray{ FrontdoorArgs{...} } type FrontdoorArrayInput interface { pulumi.Input ToFrontdoorArrayOutput() FrontdoorArrayOutput ToFrontdoorArrayOutputWithContext(context.Context) FrontdoorArrayOutput } type FrontdoorArray []FrontdoorInput func (FrontdoorArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*Frontdoor)(nil)).Elem() } func (i FrontdoorArray) ToFrontdoorArrayOutput() FrontdoorArrayOutput { return i.ToFrontdoorArrayOutputWithContext(context.Background()) } func (i FrontdoorArray) ToFrontdoorArrayOutputWithContext(ctx context.Context) FrontdoorArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(FrontdoorArrayOutput) } // FrontdoorMapInput is an input type that accepts FrontdoorMap and FrontdoorMapOutput values. // You can construct a concrete instance of `FrontdoorMapInput` via: // // FrontdoorMap{ "key": FrontdoorArgs{...} } type FrontdoorMapInput interface { pulumi.Input ToFrontdoorMapOutput() FrontdoorMapOutput ToFrontdoorMapOutputWithContext(context.Context) FrontdoorMapOutput } type FrontdoorMap map[string]FrontdoorInput func (FrontdoorMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*Frontdoor)(nil)).Elem() } func (i FrontdoorMap) ToFrontdoorMapOutput() FrontdoorMapOutput { return i.ToFrontdoorMapOutputWithContext(context.Background()) } func (i FrontdoorMap) ToFrontdoorMapOutputWithContext(ctx context.Context) FrontdoorMapOutput { return pulumi.ToOutputWithContext(ctx, i).(FrontdoorMapOutput) } type FrontdoorOutput struct{ *pulumi.OutputState } func (FrontdoorOutput) ElementType() reflect.Type { return reflect.TypeOf((**Frontdoor)(nil)).Elem() } func (o FrontdoorOutput) ToFrontdoorOutput() FrontdoorOutput { return o } func (o FrontdoorOutput) ToFrontdoorOutputWithContext(ctx context.Context) FrontdoorOutput { return o } // A `backendPoolHealthProbe` block as defined below. func (o FrontdoorOutput) BackendPoolHealthProbes() FrontdoorBackendPoolHealthProbeArrayOutput { return o.ApplyT(func(v *Frontdoor) FrontdoorBackendPoolHealthProbeArrayOutput { return v.BackendPoolHealthProbes }).(FrontdoorBackendPoolHealthProbeArrayOutput) } // A map/dictionary of Backend Pool Health Probe Names (key) to the Backend Pool Health Probe ID (value) func (o FrontdoorOutput) BackendPoolHealthProbesMap() pulumi.StringMapOutput { return o.ApplyT(func(v *Frontdoor) pulumi.StringMapOutput { return v.BackendPoolHealthProbesMap }).(pulumi.StringMapOutput) } // A map/dictionary of Backend Pool Load Balancing Setting Names (key) to the Backend Pool Load Balancing Setting ID (value) func (o FrontdoorOutput) BackendPoolLoadBalancingSettingsMap() pulumi.StringMapOutput { return o.ApplyT(func(v *Frontdoor) pulumi.StringMapOutput { return v.BackendPoolLoadBalancingSettingsMap }).(pulumi.StringMapOutput) } // A `backendPoolLoadBalancing` block as defined below. func (o FrontdoorOutput) BackendPoolLoadBalancings() FrontdoorBackendPoolLoadBalancingArrayOutput { return o.ApplyT(func(v *Frontdoor) FrontdoorBackendPoolLoadBalancingArrayOutput { return v.BackendPoolLoadBalancings }).(FrontdoorBackendPoolLoadBalancingArrayOutput) } // A `backendPoolSettings` block as defined below. func (o FrontdoorOutput) BackendPoolSettings() FrontdoorBackendPoolSettingArrayOutput { return o.ApplyT(func(v *Frontdoor) FrontdoorBackendPoolSettingArrayOutput { return v.BackendPoolSettings }).(FrontdoorBackendPoolSettingArrayOutput) } // A `backendPool` block as defined below. // // > Azure by default allows specifying up to 50 Backend Pools - but this quota can be increased via Microsoft Support. func (o FrontdoorOutput) BackendPools() FrontdoorBackendPoolArrayOutput { return o.ApplyT(func(v *Frontdoor) FrontdoorBackendPoolArrayOutput { return v.BackendPools }).(FrontdoorBackendPoolArrayOutput) } // A map/dictionary of Backend Pool Names (key) to the Backend Pool ID (value) func (o FrontdoorOutput) BackendPoolsMap() pulumi.StringMapOutput { return o.ApplyT(func(v *Frontdoor) pulumi.StringMapOutput { return v.BackendPoolsMap }).(pulumi.StringMapOutput) } // The host that each frontendEndpoint must CNAME to. func (o FrontdoorOutput) Cname() pulumi.StringOutput { return o.ApplyT(func(v *Frontdoor) pulumi.StringOutput { return v.Cname }).(pulumi.StringOutput) } func (o FrontdoorOutput) ExplicitResourceOrders() FrontdoorExplicitResourceOrderArrayOutput { return o.ApplyT(func(v *Frontdoor) FrontdoorExplicitResourceOrderArrayOutput { return v.ExplicitResourceOrders }).(FrontdoorExplicitResourceOrderArrayOutput) } // A friendly name for the Front Door service. func (o FrontdoorOutput) FriendlyName() pulumi.StringPtrOutput { return o.ApplyT(func(v *Frontdoor) pulumi.StringPtrOutput { return v.FriendlyName }).(pulumi.StringPtrOutput) } // A `frontendEndpoint` block as defined below. func (o FrontdoorOutput) FrontendEndpoints() FrontdoorFrontendEndpointArrayOutput { return o.ApplyT(func(v *Frontdoor) FrontdoorFrontendEndpointArrayOutput { return v.FrontendEndpoints }).(FrontdoorFrontendEndpointArrayOutput) } // A map/dictionary of Frontend Endpoint Names (key) to the Frontend Endpoint ID (value) func (o FrontdoorOutput) FrontendEndpointsMap() pulumi.StringMapOutput { return o.ApplyT(func(v *Frontdoor) pulumi.StringMapOutput { return v.FrontendEndpointsMap }).(pulumi.StringMapOutput) } // The unique ID of the Front Door which is embedded into the incoming headers `X-Azure-FDID` attribute and maybe used to filter traffic sent by the Front Door to your backend. func (o FrontdoorOutput) HeaderFrontdoorId() pulumi.StringOutput { return o.ApplyT(func(v *Frontdoor) pulumi.StringOutput { return v.HeaderFrontdoorId }).(pulumi.StringOutput) } // Should the Front Door Load Balancer be Enabled? Defaults to `true`. func (o FrontdoorOutput) LoadBalancerEnabled() pulumi.BoolPtrOutput { return o.ApplyT(func(v *Frontdoor) pulumi.BoolPtrOutput { return v.LoadBalancerEnabled }).(pulumi.BoolPtrOutput) } // Specifies the name of the Front Door service. Must be globally unique. Changing this forces a new resource to be created. func (o FrontdoorOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *Frontdoor) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // Specifies the name of the Resource Group in which the Front Door service should exist. Changing this forces a new resource to be created. func (o FrontdoorOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v *Frontdoor) pulumi.StringOutput { return v.ResourceGroupName }).(pulumi.StringOutput) } // A `routingRule` block as defined below. func (o FrontdoorOutput) RoutingRules() FrontdoorRoutingRuleArrayOutput { return o.ApplyT(func(v *Frontdoor) FrontdoorRoutingRuleArrayOutput { return v.RoutingRules }).(FrontdoorRoutingRuleArrayOutput) } // A map/dictionary of Routing Rule Names (key) to the Routing Rule ID (value) func (o FrontdoorOutput) RoutingRulesMap() pulumi.StringMapOutput { return o.ApplyT(func(v *Frontdoor) pulumi.StringMapOutput { return v.RoutingRulesMap }).(pulumi.StringMapOutput) } // A mapping of tags to assign to the resource. func (o FrontdoorOutput) Tags() pulumi.StringMapOutput { return o.ApplyT(func(v *Frontdoor) pulumi.StringMapOutput { return v.Tags }).(pulumi.StringMapOutput) } type FrontdoorArrayOutput struct{ *pulumi.OutputState } func (FrontdoorArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*Frontdoor)(nil)).Elem() } func (o FrontdoorArrayOutput) ToFrontdoorArrayOutput() FrontdoorArrayOutput { return o } func (o FrontdoorArrayOutput) ToFrontdoorArrayOutputWithContext(ctx context.Context) FrontdoorArrayOutput { return o } func (o FrontdoorArrayOutput) Index(i pulumi.IntInput) FrontdoorOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *Frontdoor { return vs[0].([]*Frontdoor)[vs[1].(int)] }).(FrontdoorOutput) } type FrontdoorMapOutput struct{ *pulumi.OutputState } func (FrontdoorMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*Frontdoor)(nil)).Elem() } func (o FrontdoorMapOutput) ToFrontdoorMapOutput() FrontdoorMapOutput { return o } func (o FrontdoorMapOutput) ToFrontdoorMapOutputWithContext(ctx context.Context) FrontdoorMapOutput { return o } func (o FrontdoorMapOutput) MapIndex(k pulumi.StringInput) FrontdoorOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *Frontdoor { return vs[0].(map[string]*Frontdoor)[vs[1].(string)] }).(FrontdoorOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*FrontdoorInput)(nil)).Elem(), &Frontdoor{}) pulumi.RegisterInputType(reflect.TypeOf((*FrontdoorArrayInput)(nil)).Elem(), FrontdoorArray{}) pulumi.RegisterInputType(reflect.TypeOf((*FrontdoorMapInput)(nil)).Elem(), FrontdoorMap{}) pulumi.RegisterOutputType(FrontdoorOutput{}) pulumi.RegisterOutputType(FrontdoorArrayOutput{}) pulumi.RegisterOutputType(FrontdoorMapOutput{}) }
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/frontdoor/firewallPolicy.go
sdk/go/azure/frontdoor/firewallPolicy.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 frontdoor import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // !> **Note:** This deploys an Azure Front Door (classic) resource which has been deprecated and will receive security updates only. Please migrate your existing Azure Front Door (classic) deployments to the new Azure Front Door (standard/premium) resources. For your convenience, the service team has exposed a `Front Door Classic` to `Front Door Standard/Premium` [migration tool](https://learn.microsoft.com/azure/frontdoor/tier-migration) to allow you to migrate your existing `Front Door Classic` instances to the new `Front Door Standard/Premium` product tiers. // // Manages an Azure Front Door (classic) Web Application Firewall Policy instance. // // !> **Note:** Azure rolled out a breaking change on Friday 9th April 2021 which may cause issues with the CDN/FrontDoor resources. More information is available in this GitHub issue - unfortunately this may necessitate a breaking change to the CDN and Front Door resources, more information will be posted in the GitHub issue as the necessary changes are identified. // // !> **Note:** The creation of new Azure Front Door (classic) resources is no longer supported following its deprecation on `April 1, 2025`. However, modifications to existing Azure Front Door (classic) resources will continue to be supported until the API reaches full retirement on `March 31, 2027`. // // ## 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/frontdoor" // "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 // } // _, err = frontdoor.NewFirewallPolicy(ctx, "example", &frontdoor.FirewallPolicyArgs{ // Name: pulumi.String("examplefdwafpolicy"), // ResourceGroupName: example.Name, // Enabled: pulumi.Bool(true), // Mode: pulumi.String("Prevention"), // RedirectUrl: pulumi.String("https://www.contoso.com"), // CustomBlockResponseStatusCode: pulumi.Int(403), // CustomBlockResponseBody: pulumi.String("PGh0bWw+CjxoZWFkZXI+PHRpdGxlPkhlbGxvPC90aXRsZT48L2hlYWRlcj4KPGJvZHk+CkhlbGxvIHdvcmxkCjwvYm9keT4KPC9odG1sPg=="), // CustomRules: frontdoor.FirewallPolicyCustomRuleArray{ // &frontdoor.FirewallPolicyCustomRuleArgs{ // Name: pulumi.String("Rule1"), // Enabled: pulumi.Bool(true), // Priority: pulumi.Int(1), // RateLimitDurationInMinutes: pulumi.Int(1), // RateLimitThreshold: pulumi.Int(10), // Type: pulumi.String("MatchRule"), // Action: pulumi.String("Block"), // MatchConditions: frontdoor.FirewallPolicyCustomRuleMatchConditionArray{ // &frontdoor.FirewallPolicyCustomRuleMatchConditionArgs{ // MatchVariable: pulumi.String("RemoteAddr"), // Operator: pulumi.String("IPMatch"), // NegationCondition: pulumi.Bool(false), // MatchValues: pulumi.StringArray{ // pulumi.String("192.168.1.0/24"), // pulumi.String("10.0.0.0/24"), // }, // }, // }, // }, // &frontdoor.FirewallPolicyCustomRuleArgs{ // Name: pulumi.String("Rule2"), // Enabled: pulumi.Bool(true), // Priority: pulumi.Int(2), // RateLimitDurationInMinutes: pulumi.Int(1), // RateLimitThreshold: pulumi.Int(10), // Type: pulumi.String("MatchRule"), // Action: pulumi.String("Block"), // MatchConditions: frontdoor.FirewallPolicyCustomRuleMatchConditionArray{ // &frontdoor.FirewallPolicyCustomRuleMatchConditionArgs{ // MatchVariable: pulumi.String("RemoteAddr"), // Operator: pulumi.String("IPMatch"), // NegationCondition: pulumi.Bool(false), // MatchValues: pulumi.StringArray{ // pulumi.String("192.168.1.0/24"), // }, // }, // &frontdoor.FirewallPolicyCustomRuleMatchConditionArgs{ // MatchVariable: pulumi.String("RequestHeader"), // Selector: pulumi.String("UserAgent"), // Operator: pulumi.String("Contains"), // NegationCondition: pulumi.Bool(false), // MatchValues: pulumi.StringArray{ // pulumi.String("windows"), // }, // Transforms: pulumi.StringArray{ // pulumi.String("Lowercase"), // pulumi.String("Trim"), // }, // }, // }, // }, // }, // ManagedRules: frontdoor.FirewallPolicyManagedRuleArray{ // &frontdoor.FirewallPolicyManagedRuleArgs{ // Type: pulumi.String("DefaultRuleSet"), // Version: pulumi.String("1.0"), // Exclusions: frontdoor.FirewallPolicyManagedRuleExclusionArray{ // &frontdoor.FirewallPolicyManagedRuleExclusionArgs{ // MatchVariable: pulumi.String("QueryStringArgNames"), // Operator: pulumi.String("Equals"), // Selector: pulumi.String("not_suspicious"), // }, // }, // Overrides: frontdoor.FirewallPolicyManagedRuleOverrideArray{ // &frontdoor.FirewallPolicyManagedRuleOverrideArgs{ // RuleGroupName: pulumi.String("PHP"), // Rules: frontdoor.FirewallPolicyManagedRuleOverrideRuleArray{ // &frontdoor.FirewallPolicyManagedRuleOverrideRuleArgs{ // RuleId: pulumi.String("933100"), // Enabled: pulumi.Bool(false), // Action: pulumi.String("Block"), // }, // }, // }, // &frontdoor.FirewallPolicyManagedRuleOverrideArgs{ // RuleGroupName: pulumi.String("SQLI"), // Exclusions: frontdoor.FirewallPolicyManagedRuleOverrideExclusionArray{ // &frontdoor.FirewallPolicyManagedRuleOverrideExclusionArgs{ // MatchVariable: pulumi.String("QueryStringArgNames"), // Operator: pulumi.String("Equals"), // Selector: pulumi.String("really_not_suspicious"), // }, // }, // Rules: frontdoor.FirewallPolicyManagedRuleOverrideRuleArray{ // &frontdoor.FirewallPolicyManagedRuleOverrideRuleArgs{ // RuleId: pulumi.String("942200"), // Action: pulumi.String("Block"), // Exclusions: frontdoor.FirewallPolicyManagedRuleOverrideRuleExclusionArray{ // &frontdoor.FirewallPolicyManagedRuleOverrideRuleExclusionArgs{ // MatchVariable: pulumi.String("QueryStringArgNames"), // Operator: pulumi.String("Equals"), // Selector: pulumi.String("innocent"), // }, // }, // }, // }, // }, // }, // }, // &frontdoor.FirewallPolicyManagedRuleArgs{ // Type: pulumi.String("Microsoft_BotManagerRuleSet"), // Version: pulumi.String("1.0"), // }, // }, // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## Import // // FrontDoor Web Application Firewall Policy can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:frontdoor/firewallPolicy:FirewallPolicy example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example-rg/providers/Microsoft.Network/frontDoorWebApplicationFirewallPolicies/examplefdwafpolicy // ``` type FirewallPolicy struct { pulumi.CustomResourceState // If a `customRule` block's action type is `block`, this is the response body. The body must be specified in base64 encoding. CustomBlockResponseBody pulumi.StringPtrOutput `pulumi:"customBlockResponseBody"` // If a `customRule` block's action type is `block`, this is the response status code. Possible values are `200`, `403`, `405`, `406`, or `429`. CustomBlockResponseStatusCode pulumi.IntPtrOutput `pulumi:"customBlockResponseStatusCode"` // One or more `customRule` blocks as defined below. CustomRules FirewallPolicyCustomRuleArrayOutput `pulumi:"customRules"` // Is the policy a enabled state or disabled state. Defaults to `true`. Enabled pulumi.BoolPtrOutput `pulumi:"enabled"` // The Frontend Endpoints associated with this Front Door Web Application Firewall policy. FrontendEndpointIds pulumi.StringArrayOutput `pulumi:"frontendEndpointIds"` // The Azure Region where this Front Door Firewall Policy exists. Location pulumi.StringOutput `pulumi:"location"` // One or more `managedRule` blocks as defined below. ManagedRules FirewallPolicyManagedRuleArrayOutput `pulumi:"managedRules"` // The firewall policy mode. Possible values are `Detection`, `Prevention`. Defaults to `Prevention`. Mode pulumi.StringPtrOutput `pulumi:"mode"` // The name of the policy. Changing this forces a new resource to be created. Name pulumi.StringOutput `pulumi:"name"` // If action type is redirect, this field represents redirect URL for the client. RedirectUrl pulumi.StringPtrOutput `pulumi:"redirectUrl"` // The name of the resource group. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // A mapping of tags to assign to the Web Application Firewall Policy. Tags pulumi.StringMapOutput `pulumi:"tags"` } // NewFirewallPolicy registers a new resource with the given unique name, arguments, and options. func NewFirewallPolicy(ctx *pulumi.Context, name string, args *FirewallPolicyArgs, opts ...pulumi.ResourceOption) (*FirewallPolicy, 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 FirewallPolicy err := ctx.RegisterResource("azure:frontdoor/firewallPolicy:FirewallPolicy", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetFirewallPolicy gets an existing FirewallPolicy 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 GetFirewallPolicy(ctx *pulumi.Context, name string, id pulumi.IDInput, state *FirewallPolicyState, opts ...pulumi.ResourceOption) (*FirewallPolicy, error) { var resource FirewallPolicy err := ctx.ReadResource("azure:frontdoor/firewallPolicy:FirewallPolicy", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering FirewallPolicy resources. type firewallPolicyState struct { // If a `customRule` block's action type is `block`, this is the response body. The body must be specified in base64 encoding. CustomBlockResponseBody *string `pulumi:"customBlockResponseBody"` // If a `customRule` block's action type is `block`, this is the response status code. Possible values are `200`, `403`, `405`, `406`, or `429`. CustomBlockResponseStatusCode *int `pulumi:"customBlockResponseStatusCode"` // One or more `customRule` blocks as defined below. CustomRules []FirewallPolicyCustomRule `pulumi:"customRules"` // Is the policy a enabled state or disabled state. Defaults to `true`. Enabled *bool `pulumi:"enabled"` // The Frontend Endpoints associated with this Front Door Web Application Firewall policy. FrontendEndpointIds []string `pulumi:"frontendEndpointIds"` // The Azure Region where this Front Door Firewall Policy exists. Location *string `pulumi:"location"` // One or more `managedRule` blocks as defined below. ManagedRules []FirewallPolicyManagedRule `pulumi:"managedRules"` // The firewall policy mode. Possible values are `Detection`, `Prevention`. Defaults to `Prevention`. Mode *string `pulumi:"mode"` // The name of the policy. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // If action type is redirect, this field represents redirect URL for the client. RedirectUrl *string `pulumi:"redirectUrl"` // The name of the resource group. Changing this forces a new resource to be created. ResourceGroupName *string `pulumi:"resourceGroupName"` // A mapping of tags to assign to the Web Application Firewall Policy. Tags map[string]string `pulumi:"tags"` } type FirewallPolicyState struct { // If a `customRule` block's action type is `block`, this is the response body. The body must be specified in base64 encoding. CustomBlockResponseBody pulumi.StringPtrInput // If a `customRule` block's action type is `block`, this is the response status code. Possible values are `200`, `403`, `405`, `406`, or `429`. CustomBlockResponseStatusCode pulumi.IntPtrInput // One or more `customRule` blocks as defined below. CustomRules FirewallPolicyCustomRuleArrayInput // Is the policy a enabled state or disabled state. Defaults to `true`. Enabled pulumi.BoolPtrInput // The Frontend Endpoints associated with this Front Door Web Application Firewall policy. FrontendEndpointIds pulumi.StringArrayInput // The Azure Region where this Front Door Firewall Policy exists. Location pulumi.StringPtrInput // One or more `managedRule` blocks as defined below. ManagedRules FirewallPolicyManagedRuleArrayInput // The firewall policy mode. Possible values are `Detection`, `Prevention`. Defaults to `Prevention`. Mode pulumi.StringPtrInput // The name of the policy. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // If action type is redirect, this field represents redirect URL for the client. RedirectUrl pulumi.StringPtrInput // The name of the resource group. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringPtrInput // A mapping of tags to assign to the Web Application Firewall Policy. Tags pulumi.StringMapInput } func (FirewallPolicyState) ElementType() reflect.Type { return reflect.TypeOf((*firewallPolicyState)(nil)).Elem() } type firewallPolicyArgs struct { // If a `customRule` block's action type is `block`, this is the response body. The body must be specified in base64 encoding. CustomBlockResponseBody *string `pulumi:"customBlockResponseBody"` // If a `customRule` block's action type is `block`, this is the response status code. Possible values are `200`, `403`, `405`, `406`, or `429`. CustomBlockResponseStatusCode *int `pulumi:"customBlockResponseStatusCode"` // One or more `customRule` blocks as defined below. CustomRules []FirewallPolicyCustomRule `pulumi:"customRules"` // Is the policy a enabled state or disabled state. Defaults to `true`. Enabled *bool `pulumi:"enabled"` // One or more `managedRule` blocks as defined below. ManagedRules []FirewallPolicyManagedRule `pulumi:"managedRules"` // The firewall policy mode. Possible values are `Detection`, `Prevention`. Defaults to `Prevention`. Mode *string `pulumi:"mode"` // The name of the policy. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // If action type is redirect, this field represents redirect URL for the client. RedirectUrl *string `pulumi:"redirectUrl"` // The name of the resource group. Changing this forces a new resource to be created. ResourceGroupName string `pulumi:"resourceGroupName"` // A mapping of tags to assign to the Web Application Firewall Policy. Tags map[string]string `pulumi:"tags"` } // The set of arguments for constructing a FirewallPolicy resource. type FirewallPolicyArgs struct { // If a `customRule` block's action type is `block`, this is the response body. The body must be specified in base64 encoding. CustomBlockResponseBody pulumi.StringPtrInput // If a `customRule` block's action type is `block`, this is the response status code. Possible values are `200`, `403`, `405`, `406`, or `429`. CustomBlockResponseStatusCode pulumi.IntPtrInput // One or more `customRule` blocks as defined below. CustomRules FirewallPolicyCustomRuleArrayInput // Is the policy a enabled state or disabled state. Defaults to `true`. Enabled pulumi.BoolPtrInput // One or more `managedRule` blocks as defined below. ManagedRules FirewallPolicyManagedRuleArrayInput // The firewall policy mode. Possible values are `Detection`, `Prevention`. Defaults to `Prevention`. Mode pulumi.StringPtrInput // The name of the policy. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // If action type is redirect, this field represents redirect URL for the client. RedirectUrl pulumi.StringPtrInput // The name of the resource group. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringInput // A mapping of tags to assign to the Web Application Firewall Policy. Tags pulumi.StringMapInput } func (FirewallPolicyArgs) ElementType() reflect.Type { return reflect.TypeOf((*firewallPolicyArgs)(nil)).Elem() } type FirewallPolicyInput interface { pulumi.Input ToFirewallPolicyOutput() FirewallPolicyOutput ToFirewallPolicyOutputWithContext(ctx context.Context) FirewallPolicyOutput } func (*FirewallPolicy) ElementType() reflect.Type { return reflect.TypeOf((**FirewallPolicy)(nil)).Elem() } func (i *FirewallPolicy) ToFirewallPolicyOutput() FirewallPolicyOutput { return i.ToFirewallPolicyOutputWithContext(context.Background()) } func (i *FirewallPolicy) ToFirewallPolicyOutputWithContext(ctx context.Context) FirewallPolicyOutput { return pulumi.ToOutputWithContext(ctx, i).(FirewallPolicyOutput) } // FirewallPolicyArrayInput is an input type that accepts FirewallPolicyArray and FirewallPolicyArrayOutput values. // You can construct a concrete instance of `FirewallPolicyArrayInput` via: // // FirewallPolicyArray{ FirewallPolicyArgs{...} } type FirewallPolicyArrayInput interface { pulumi.Input ToFirewallPolicyArrayOutput() FirewallPolicyArrayOutput ToFirewallPolicyArrayOutputWithContext(context.Context) FirewallPolicyArrayOutput } type FirewallPolicyArray []FirewallPolicyInput func (FirewallPolicyArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*FirewallPolicy)(nil)).Elem() } func (i FirewallPolicyArray) ToFirewallPolicyArrayOutput() FirewallPolicyArrayOutput { return i.ToFirewallPolicyArrayOutputWithContext(context.Background()) } func (i FirewallPolicyArray) ToFirewallPolicyArrayOutputWithContext(ctx context.Context) FirewallPolicyArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(FirewallPolicyArrayOutput) } // FirewallPolicyMapInput is an input type that accepts FirewallPolicyMap and FirewallPolicyMapOutput values. // You can construct a concrete instance of `FirewallPolicyMapInput` via: // // FirewallPolicyMap{ "key": FirewallPolicyArgs{...} } type FirewallPolicyMapInput interface { pulumi.Input ToFirewallPolicyMapOutput() FirewallPolicyMapOutput ToFirewallPolicyMapOutputWithContext(context.Context) FirewallPolicyMapOutput } type FirewallPolicyMap map[string]FirewallPolicyInput func (FirewallPolicyMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*FirewallPolicy)(nil)).Elem() } func (i FirewallPolicyMap) ToFirewallPolicyMapOutput() FirewallPolicyMapOutput { return i.ToFirewallPolicyMapOutputWithContext(context.Background()) } func (i FirewallPolicyMap) ToFirewallPolicyMapOutputWithContext(ctx context.Context) FirewallPolicyMapOutput { return pulumi.ToOutputWithContext(ctx, i).(FirewallPolicyMapOutput) } type FirewallPolicyOutput struct{ *pulumi.OutputState } func (FirewallPolicyOutput) ElementType() reflect.Type { return reflect.TypeOf((**FirewallPolicy)(nil)).Elem() } func (o FirewallPolicyOutput) ToFirewallPolicyOutput() FirewallPolicyOutput { return o } func (o FirewallPolicyOutput) ToFirewallPolicyOutputWithContext(ctx context.Context) FirewallPolicyOutput { return o } // If a `customRule` block's action type is `block`, this is the response body. The body must be specified in base64 encoding. func (o FirewallPolicyOutput) CustomBlockResponseBody() pulumi.StringPtrOutput { return o.ApplyT(func(v *FirewallPolicy) pulumi.StringPtrOutput { return v.CustomBlockResponseBody }).(pulumi.StringPtrOutput) } // If a `customRule` block's action type is `block`, this is the response status code. Possible values are `200`, `403`, `405`, `406`, or `429`. func (o FirewallPolicyOutput) CustomBlockResponseStatusCode() pulumi.IntPtrOutput { return o.ApplyT(func(v *FirewallPolicy) pulumi.IntPtrOutput { return v.CustomBlockResponseStatusCode }).(pulumi.IntPtrOutput) } // One or more `customRule` blocks as defined below. func (o FirewallPolicyOutput) CustomRules() FirewallPolicyCustomRuleArrayOutput { return o.ApplyT(func(v *FirewallPolicy) FirewallPolicyCustomRuleArrayOutput { return v.CustomRules }).(FirewallPolicyCustomRuleArrayOutput) } // Is the policy a enabled state or disabled state. Defaults to `true`. func (o FirewallPolicyOutput) Enabled() pulumi.BoolPtrOutput { return o.ApplyT(func(v *FirewallPolicy) pulumi.BoolPtrOutput { return v.Enabled }).(pulumi.BoolPtrOutput) } // The Frontend Endpoints associated with this Front Door Web Application Firewall policy. func (o FirewallPolicyOutput) FrontendEndpointIds() pulumi.StringArrayOutput { return o.ApplyT(func(v *FirewallPolicy) pulumi.StringArrayOutput { return v.FrontendEndpointIds }).(pulumi.StringArrayOutput) } // The Azure Region where this Front Door Firewall Policy exists. func (o FirewallPolicyOutput) Location() pulumi.StringOutput { return o.ApplyT(func(v *FirewallPolicy) pulumi.StringOutput { return v.Location }).(pulumi.StringOutput) } // One or more `managedRule` blocks as defined below. func (o FirewallPolicyOutput) ManagedRules() FirewallPolicyManagedRuleArrayOutput { return o.ApplyT(func(v *FirewallPolicy) FirewallPolicyManagedRuleArrayOutput { return v.ManagedRules }).(FirewallPolicyManagedRuleArrayOutput) } // The firewall policy mode. Possible values are `Detection`, `Prevention`. Defaults to `Prevention`. func (o FirewallPolicyOutput) Mode() pulumi.StringPtrOutput { return o.ApplyT(func(v *FirewallPolicy) pulumi.StringPtrOutput { return v.Mode }).(pulumi.StringPtrOutput) } // The name of the policy. Changing this forces a new resource to be created. func (o FirewallPolicyOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *FirewallPolicy) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // If action type is redirect, this field represents redirect URL for the client. func (o FirewallPolicyOutput) RedirectUrl() pulumi.StringPtrOutput { return o.ApplyT(func(v *FirewallPolicy) pulumi.StringPtrOutput { return v.RedirectUrl }).(pulumi.StringPtrOutput) } // The name of the resource group. Changing this forces a new resource to be created. func (o FirewallPolicyOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v *FirewallPolicy) pulumi.StringOutput { return v.ResourceGroupName }).(pulumi.StringOutput) } // A mapping of tags to assign to the Web Application Firewall Policy. func (o FirewallPolicyOutput) Tags() pulumi.StringMapOutput { return o.ApplyT(func(v *FirewallPolicy) pulumi.StringMapOutput { return v.Tags }).(pulumi.StringMapOutput) } type FirewallPolicyArrayOutput struct{ *pulumi.OutputState } func (FirewallPolicyArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*FirewallPolicy)(nil)).Elem() } func (o FirewallPolicyArrayOutput) ToFirewallPolicyArrayOutput() FirewallPolicyArrayOutput { return o } func (o FirewallPolicyArrayOutput) ToFirewallPolicyArrayOutputWithContext(ctx context.Context) FirewallPolicyArrayOutput { return o } func (o FirewallPolicyArrayOutput) Index(i pulumi.IntInput) FirewallPolicyOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *FirewallPolicy { return vs[0].([]*FirewallPolicy)[vs[1].(int)] }).(FirewallPolicyOutput) } type FirewallPolicyMapOutput struct{ *pulumi.OutputState } func (FirewallPolicyMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*FirewallPolicy)(nil)).Elem() } func (o FirewallPolicyMapOutput) ToFirewallPolicyMapOutput() FirewallPolicyMapOutput { return o } func (o FirewallPolicyMapOutput) ToFirewallPolicyMapOutputWithContext(ctx context.Context) FirewallPolicyMapOutput { return o } func (o FirewallPolicyMapOutput) MapIndex(k pulumi.StringInput) FirewallPolicyOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *FirewallPolicy { return vs[0].(map[string]*FirewallPolicy)[vs[1].(string)] }).(FirewallPolicyOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*FirewallPolicyInput)(nil)).Elem(), &FirewallPolicy{}) pulumi.RegisterInputType(reflect.TypeOf((*FirewallPolicyArrayInput)(nil)).Elem(), FirewallPolicyArray{}) pulumi.RegisterInputType(reflect.TypeOf((*FirewallPolicyMapInput)(nil)).Elem(), FirewallPolicyMap{}) pulumi.RegisterOutputType(FirewallPolicyOutput{}) pulumi.RegisterOutputType(FirewallPolicyArrayOutput{}) pulumi.RegisterOutputType(FirewallPolicyMapOutput{}) }
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/stack/hciCluster.go
sdk/go/azure/stack/hciCluster.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 stack 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 Stack HCI Cluster. // // ## Import // // Azure Stack HCI Clusters can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:stack/hciCluster:HciCluster example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AzureStackHCI/clusters/cluster1 // ``` type HciCluster struct { pulumi.CustomResourceState // The ID of the Automanage Configuration assigned to the Azure Stack HCI Cluster. AutomanageConfigurationId pulumi.StringPtrOutput `pulumi:"automanageConfigurationId"` // The Client ID of the Azure Active Directory Application which is used by the Azure Stack HCI Cluster. Changing this forces a new resource to be created. ClientId pulumi.StringPtrOutput `pulumi:"clientId"` // An immutable UUID for the Azure Stack HCI Cluster. CloudId pulumi.StringOutput `pulumi:"cloudId"` // An `identity` block as defined below. Identity HciClusterIdentityPtrOutput `pulumi:"identity"` // The Azure Region where the Azure Stack HCI Cluster should exist. Changing this forces a new resource to be created. Location pulumi.StringOutput `pulumi:"location"` // The name which should be used for this Azure Stack HCI Cluster. Changing this forces a new resource to be created. Name pulumi.StringOutput `pulumi:"name"` // The name of the Resource Group where the Azure Stack HCI Cluster should exist. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // The object ID of the Resource Provider Service Principal. ResourceProviderObjectId pulumi.StringOutput `pulumi:"resourceProviderObjectId"` // The region specific Data Path Endpoint of the Azure Stack HCI Cluster. ServiceEndpoint pulumi.StringOutput `pulumi:"serviceEndpoint"` // A mapping of tags which should be assigned to the Azure Stack HCI Cluster. Tags pulumi.StringMapOutput `pulumi:"tags"` // The Tenant ID of the Azure Active Directory which is used by the Azure Stack HCI Cluster. Changing this forces a new resource to be created. // // > **Note:** If unspecified the Tenant ID of the Provider will be used. TenantId pulumi.StringOutput `pulumi:"tenantId"` } // NewHciCluster registers a new resource with the given unique name, arguments, and options. func NewHciCluster(ctx *pulumi.Context, name string, args *HciClusterArgs, opts ...pulumi.ResourceOption) (*HciCluster, 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 HciCluster err := ctx.RegisterResource("azure:stack/hciCluster:HciCluster", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetHciCluster gets an existing HciCluster 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 GetHciCluster(ctx *pulumi.Context, name string, id pulumi.IDInput, state *HciClusterState, opts ...pulumi.ResourceOption) (*HciCluster, error) { var resource HciCluster err := ctx.ReadResource("azure:stack/hciCluster:HciCluster", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering HciCluster resources. type hciClusterState struct { // The ID of the Automanage Configuration assigned to the Azure Stack HCI Cluster. AutomanageConfigurationId *string `pulumi:"automanageConfigurationId"` // The Client ID of the Azure Active Directory Application which is used by the Azure Stack HCI Cluster. Changing this forces a new resource to be created. ClientId *string `pulumi:"clientId"` // An immutable UUID for the Azure Stack HCI Cluster. CloudId *string `pulumi:"cloudId"` // An `identity` block as defined below. Identity *HciClusterIdentity `pulumi:"identity"` // The Azure Region where the Azure Stack HCI Cluster should exist. Changing this forces a new resource to be created. Location *string `pulumi:"location"` // The name which should be used for this Azure Stack HCI Cluster. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // The name of the Resource Group where the Azure Stack HCI Cluster should exist. Changing this forces a new resource to be created. ResourceGroupName *string `pulumi:"resourceGroupName"` // The object ID of the Resource Provider Service Principal. ResourceProviderObjectId *string `pulumi:"resourceProviderObjectId"` // The region specific Data Path Endpoint of the Azure Stack HCI Cluster. ServiceEndpoint *string `pulumi:"serviceEndpoint"` // A mapping of tags which should be assigned to the Azure Stack HCI Cluster. Tags map[string]string `pulumi:"tags"` // The Tenant ID of the Azure Active Directory which is used by the Azure Stack HCI Cluster. Changing this forces a new resource to be created. // // > **Note:** If unspecified the Tenant ID of the Provider will be used. TenantId *string `pulumi:"tenantId"` } type HciClusterState struct { // The ID of the Automanage Configuration assigned to the Azure Stack HCI Cluster. AutomanageConfigurationId pulumi.StringPtrInput // The Client ID of the Azure Active Directory Application which is used by the Azure Stack HCI Cluster. Changing this forces a new resource to be created. ClientId pulumi.StringPtrInput // An immutable UUID for the Azure Stack HCI Cluster. CloudId pulumi.StringPtrInput // An `identity` block as defined below. Identity HciClusterIdentityPtrInput // The Azure Region where the Azure Stack HCI Cluster should exist. Changing this forces a new resource to be created. Location pulumi.StringPtrInput // The name which should be used for this Azure Stack HCI Cluster. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // The name of the Resource Group where the Azure Stack HCI Cluster should exist. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringPtrInput // The object ID of the Resource Provider Service Principal. ResourceProviderObjectId pulumi.StringPtrInput // The region specific Data Path Endpoint of the Azure Stack HCI Cluster. ServiceEndpoint pulumi.StringPtrInput // A mapping of tags which should be assigned to the Azure Stack HCI Cluster. Tags pulumi.StringMapInput // The Tenant ID of the Azure Active Directory which is used by the Azure Stack HCI Cluster. Changing this forces a new resource to be created. // // > **Note:** If unspecified the Tenant ID of the Provider will be used. TenantId pulumi.StringPtrInput } func (HciClusterState) ElementType() reflect.Type { return reflect.TypeOf((*hciClusterState)(nil)).Elem() } type hciClusterArgs struct { // The ID of the Automanage Configuration assigned to the Azure Stack HCI Cluster. AutomanageConfigurationId *string `pulumi:"automanageConfigurationId"` // The Client ID of the Azure Active Directory Application which is used by the Azure Stack HCI Cluster. Changing this forces a new resource to be created. ClientId *string `pulumi:"clientId"` // An `identity` block as defined below. Identity *HciClusterIdentity `pulumi:"identity"` // The Azure Region where the Azure Stack HCI Cluster should exist. Changing this forces a new resource to be created. Location *string `pulumi:"location"` // The name which should be used for this Azure Stack HCI Cluster. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // The name of the Resource Group where the Azure Stack HCI Cluster should exist. Changing this forces a new resource to be created. ResourceGroupName string `pulumi:"resourceGroupName"` // A mapping of tags which should be assigned to the Azure Stack HCI Cluster. Tags map[string]string `pulumi:"tags"` // The Tenant ID of the Azure Active Directory which is used by the Azure Stack HCI Cluster. Changing this forces a new resource to be created. // // > **Note:** If unspecified the Tenant ID of the Provider will be used. TenantId *string `pulumi:"tenantId"` } // The set of arguments for constructing a HciCluster resource. type HciClusterArgs struct { // The ID of the Automanage Configuration assigned to the Azure Stack HCI Cluster. AutomanageConfigurationId pulumi.StringPtrInput // The Client ID of the Azure Active Directory Application which is used by the Azure Stack HCI Cluster. Changing this forces a new resource to be created. ClientId pulumi.StringPtrInput // An `identity` block as defined below. Identity HciClusterIdentityPtrInput // The Azure Region where the Azure Stack HCI Cluster should exist. Changing this forces a new resource to be created. Location pulumi.StringPtrInput // The name which should be used for this Azure Stack HCI Cluster. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // The name of the Resource Group where the Azure Stack HCI Cluster should exist. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringInput // A mapping of tags which should be assigned to the Azure Stack HCI Cluster. Tags pulumi.StringMapInput // The Tenant ID of the Azure Active Directory which is used by the Azure Stack HCI Cluster. Changing this forces a new resource to be created. // // > **Note:** If unspecified the Tenant ID of the Provider will be used. TenantId pulumi.StringPtrInput } func (HciClusterArgs) ElementType() reflect.Type { return reflect.TypeOf((*hciClusterArgs)(nil)).Elem() } type HciClusterInput interface { pulumi.Input ToHciClusterOutput() HciClusterOutput ToHciClusterOutputWithContext(ctx context.Context) HciClusterOutput } func (*HciCluster) ElementType() reflect.Type { return reflect.TypeOf((**HciCluster)(nil)).Elem() } func (i *HciCluster) ToHciClusterOutput() HciClusterOutput { return i.ToHciClusterOutputWithContext(context.Background()) } func (i *HciCluster) ToHciClusterOutputWithContext(ctx context.Context) HciClusterOutput { return pulumi.ToOutputWithContext(ctx, i).(HciClusterOutput) } // HciClusterArrayInput is an input type that accepts HciClusterArray and HciClusterArrayOutput values. // You can construct a concrete instance of `HciClusterArrayInput` via: // // HciClusterArray{ HciClusterArgs{...} } type HciClusterArrayInput interface { pulumi.Input ToHciClusterArrayOutput() HciClusterArrayOutput ToHciClusterArrayOutputWithContext(context.Context) HciClusterArrayOutput } type HciClusterArray []HciClusterInput func (HciClusterArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*HciCluster)(nil)).Elem() } func (i HciClusterArray) ToHciClusterArrayOutput() HciClusterArrayOutput { return i.ToHciClusterArrayOutputWithContext(context.Background()) } func (i HciClusterArray) ToHciClusterArrayOutputWithContext(ctx context.Context) HciClusterArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(HciClusterArrayOutput) } // HciClusterMapInput is an input type that accepts HciClusterMap and HciClusterMapOutput values. // You can construct a concrete instance of `HciClusterMapInput` via: // // HciClusterMap{ "key": HciClusterArgs{...} } type HciClusterMapInput interface { pulumi.Input ToHciClusterMapOutput() HciClusterMapOutput ToHciClusterMapOutputWithContext(context.Context) HciClusterMapOutput } type HciClusterMap map[string]HciClusterInput func (HciClusterMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*HciCluster)(nil)).Elem() } func (i HciClusterMap) ToHciClusterMapOutput() HciClusterMapOutput { return i.ToHciClusterMapOutputWithContext(context.Background()) } func (i HciClusterMap) ToHciClusterMapOutputWithContext(ctx context.Context) HciClusterMapOutput { return pulumi.ToOutputWithContext(ctx, i).(HciClusterMapOutput) } type HciClusterOutput struct{ *pulumi.OutputState } func (HciClusterOutput) ElementType() reflect.Type { return reflect.TypeOf((**HciCluster)(nil)).Elem() } func (o HciClusterOutput) ToHciClusterOutput() HciClusterOutput { return o } func (o HciClusterOutput) ToHciClusterOutputWithContext(ctx context.Context) HciClusterOutput { return o } // The ID of the Automanage Configuration assigned to the Azure Stack HCI Cluster. func (o HciClusterOutput) AutomanageConfigurationId() pulumi.StringPtrOutput { return o.ApplyT(func(v *HciCluster) pulumi.StringPtrOutput { return v.AutomanageConfigurationId }).(pulumi.StringPtrOutput) } // The Client ID of the Azure Active Directory Application which is used by the Azure Stack HCI Cluster. Changing this forces a new resource to be created. func (o HciClusterOutput) ClientId() pulumi.StringPtrOutput { return o.ApplyT(func(v *HciCluster) pulumi.StringPtrOutput { return v.ClientId }).(pulumi.StringPtrOutput) } // An immutable UUID for the Azure Stack HCI Cluster. func (o HciClusterOutput) CloudId() pulumi.StringOutput { return o.ApplyT(func(v *HciCluster) pulumi.StringOutput { return v.CloudId }).(pulumi.StringOutput) } // An `identity` block as defined below. func (o HciClusterOutput) Identity() HciClusterIdentityPtrOutput { return o.ApplyT(func(v *HciCluster) HciClusterIdentityPtrOutput { return v.Identity }).(HciClusterIdentityPtrOutput) } // The Azure Region where the Azure Stack HCI Cluster should exist. Changing this forces a new resource to be created. func (o HciClusterOutput) Location() pulumi.StringOutput { return o.ApplyT(func(v *HciCluster) pulumi.StringOutput { return v.Location }).(pulumi.StringOutput) } // The name which should be used for this Azure Stack HCI Cluster. Changing this forces a new resource to be created. func (o HciClusterOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *HciCluster) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // The name of the Resource Group where the Azure Stack HCI Cluster should exist. Changing this forces a new resource to be created. func (o HciClusterOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v *HciCluster) pulumi.StringOutput { return v.ResourceGroupName }).(pulumi.StringOutput) } // The object ID of the Resource Provider Service Principal. func (o HciClusterOutput) ResourceProviderObjectId() pulumi.StringOutput { return o.ApplyT(func(v *HciCluster) pulumi.StringOutput { return v.ResourceProviderObjectId }).(pulumi.StringOutput) } // The region specific Data Path Endpoint of the Azure Stack HCI Cluster. func (o HciClusterOutput) ServiceEndpoint() pulumi.StringOutput { return o.ApplyT(func(v *HciCluster) pulumi.StringOutput { return v.ServiceEndpoint }).(pulumi.StringOutput) } // A mapping of tags which should be assigned to the Azure Stack HCI Cluster. func (o HciClusterOutput) Tags() pulumi.StringMapOutput { return o.ApplyT(func(v *HciCluster) pulumi.StringMapOutput { return v.Tags }).(pulumi.StringMapOutput) } // The Tenant ID of the Azure Active Directory which is used by the Azure Stack HCI Cluster. Changing this forces a new resource to be created. // // > **Note:** If unspecified the Tenant ID of the Provider will be used. func (o HciClusterOutput) TenantId() pulumi.StringOutput { return o.ApplyT(func(v *HciCluster) pulumi.StringOutput { return v.TenantId }).(pulumi.StringOutput) } type HciClusterArrayOutput struct{ *pulumi.OutputState } func (HciClusterArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*HciCluster)(nil)).Elem() } func (o HciClusterArrayOutput) ToHciClusterArrayOutput() HciClusterArrayOutput { return o } func (o HciClusterArrayOutput) ToHciClusterArrayOutputWithContext(ctx context.Context) HciClusterArrayOutput { return o } func (o HciClusterArrayOutput) Index(i pulumi.IntInput) HciClusterOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *HciCluster { return vs[0].([]*HciCluster)[vs[1].(int)] }).(HciClusterOutput) } type HciClusterMapOutput struct{ *pulumi.OutputState } func (HciClusterMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*HciCluster)(nil)).Elem() } func (o HciClusterMapOutput) ToHciClusterMapOutput() HciClusterMapOutput { return o } func (o HciClusterMapOutput) ToHciClusterMapOutputWithContext(ctx context.Context) HciClusterMapOutput { return o } func (o HciClusterMapOutput) MapIndex(k pulumi.StringInput) HciClusterOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *HciCluster { return vs[0].(map[string]*HciCluster)[vs[1].(string)] }).(HciClusterOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*HciClusterInput)(nil)).Elem(), &HciCluster{}) pulumi.RegisterInputType(reflect.TypeOf((*HciClusterArrayInput)(nil)).Elem(), HciClusterArray{}) pulumi.RegisterInputType(reflect.TypeOf((*HciClusterMapInput)(nil)).Elem(), HciClusterMap{}) pulumi.RegisterOutputType(HciClusterOutput{}) pulumi.RegisterOutputType(HciClusterArrayOutput{}) pulumi.RegisterOutputType(HciClusterMapOutput{}) }
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/stack/init.go
sdk/go/azure/stack/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 stack 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:stack/hciCluster:HciCluster": r = &HciCluster{} case "azure:stack/hciDeploymentSetting:HciDeploymentSetting": r = &HciDeploymentSetting{} case "azure:stack/hciExtension:HciExtension": r = &HciExtension{} case "azure:stack/hciLogicalNetwork:HciLogicalNetwork": r = &HciLogicalNetwork{} case "azure:stack/hciMarketplaceGalleryImage:HciMarketplaceGalleryImage": r = &HciMarketplaceGalleryImage{} case "azure:stack/hciNetworkInterface:HciNetworkInterface": r = &HciNetworkInterface{} case "azure:stack/hciStoragePath:HciStoragePath": r = &HciStoragePath{} case "azure:stack/hciVirtualHardDisk:HciVirtualHardDisk": r = &HciVirtualHardDisk{} 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", "stack/hciCluster", &module{version}, ) pulumi.RegisterResourceModule( "azure", "stack/hciDeploymentSetting", &module{version}, ) pulumi.RegisterResourceModule( "azure", "stack/hciExtension", &module{version}, ) pulumi.RegisterResourceModule( "azure", "stack/hciLogicalNetwork", &module{version}, ) pulumi.RegisterResourceModule( "azure", "stack/hciMarketplaceGalleryImage", &module{version}, ) pulumi.RegisterResourceModule( "azure", "stack/hciNetworkInterface", &module{version}, ) pulumi.RegisterResourceModule( "azure", "stack/hciStoragePath", &module{version}, ) pulumi.RegisterResourceModule( "azure", "stack/hciVirtualHardDisk", &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/stack/pulumiTypes.go
sdk/go/azure/stack/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 stack 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 HciClusterIdentity struct { // The Principal ID associated with this Managed Service Identity. PrincipalId *string `pulumi:"principalId"` // The Tenant ID of the Azure Active Directory which is used by the Azure Stack HCI Cluster. Changing this forces a new resource to be created. // // > **Note:** If unspecified the Tenant ID of the Provider will be used. TenantId *string `pulumi:"tenantId"` // Specifies the type of Managed Service Identity that should be configured on the Azure Stack HCI Cluster. Possible value is `SystemAssigned`. Type string `pulumi:"type"` } // HciClusterIdentityInput is an input type that accepts HciClusterIdentityArgs and HciClusterIdentityOutput values. // You can construct a concrete instance of `HciClusterIdentityInput` via: // // HciClusterIdentityArgs{...} type HciClusterIdentityInput interface { pulumi.Input ToHciClusterIdentityOutput() HciClusterIdentityOutput ToHciClusterIdentityOutputWithContext(context.Context) HciClusterIdentityOutput } type HciClusterIdentityArgs struct { // The Principal ID associated with this Managed Service Identity. PrincipalId pulumi.StringPtrInput `pulumi:"principalId"` // The Tenant ID of the Azure Active Directory which is used by the Azure Stack HCI Cluster. Changing this forces a new resource to be created. // // > **Note:** If unspecified the Tenant ID of the Provider will be used. TenantId pulumi.StringPtrInput `pulumi:"tenantId"` // Specifies the type of Managed Service Identity that should be configured on the Azure Stack HCI Cluster. Possible value is `SystemAssigned`. Type pulumi.StringInput `pulumi:"type"` } func (HciClusterIdentityArgs) ElementType() reflect.Type { return reflect.TypeOf((*HciClusterIdentity)(nil)).Elem() } func (i HciClusterIdentityArgs) ToHciClusterIdentityOutput() HciClusterIdentityOutput { return i.ToHciClusterIdentityOutputWithContext(context.Background()) } func (i HciClusterIdentityArgs) ToHciClusterIdentityOutputWithContext(ctx context.Context) HciClusterIdentityOutput { return pulumi.ToOutputWithContext(ctx, i).(HciClusterIdentityOutput) } func (i HciClusterIdentityArgs) ToHciClusterIdentityPtrOutput() HciClusterIdentityPtrOutput { return i.ToHciClusterIdentityPtrOutputWithContext(context.Background()) } func (i HciClusterIdentityArgs) ToHciClusterIdentityPtrOutputWithContext(ctx context.Context) HciClusterIdentityPtrOutput { return pulumi.ToOutputWithContext(ctx, i).(HciClusterIdentityOutput).ToHciClusterIdentityPtrOutputWithContext(ctx) } // HciClusterIdentityPtrInput is an input type that accepts HciClusterIdentityArgs, HciClusterIdentityPtr and HciClusterIdentityPtrOutput values. // You can construct a concrete instance of `HciClusterIdentityPtrInput` via: // // HciClusterIdentityArgs{...} // // or: // // nil type HciClusterIdentityPtrInput interface { pulumi.Input ToHciClusterIdentityPtrOutput() HciClusterIdentityPtrOutput ToHciClusterIdentityPtrOutputWithContext(context.Context) HciClusterIdentityPtrOutput } type hciClusterIdentityPtrType HciClusterIdentityArgs func HciClusterIdentityPtr(v *HciClusterIdentityArgs) HciClusterIdentityPtrInput { return (*hciClusterIdentityPtrType)(v) } func (*hciClusterIdentityPtrType) ElementType() reflect.Type { return reflect.TypeOf((**HciClusterIdentity)(nil)).Elem() } func (i *hciClusterIdentityPtrType) ToHciClusterIdentityPtrOutput() HciClusterIdentityPtrOutput { return i.ToHciClusterIdentityPtrOutputWithContext(context.Background()) } func (i *hciClusterIdentityPtrType) ToHciClusterIdentityPtrOutputWithContext(ctx context.Context) HciClusterIdentityPtrOutput { return pulumi.ToOutputWithContext(ctx, i).(HciClusterIdentityPtrOutput) } type HciClusterIdentityOutput struct{ *pulumi.OutputState } func (HciClusterIdentityOutput) ElementType() reflect.Type { return reflect.TypeOf((*HciClusterIdentity)(nil)).Elem() } func (o HciClusterIdentityOutput) ToHciClusterIdentityOutput() HciClusterIdentityOutput { return o } func (o HciClusterIdentityOutput) ToHciClusterIdentityOutputWithContext(ctx context.Context) HciClusterIdentityOutput { return o } func (o HciClusterIdentityOutput) ToHciClusterIdentityPtrOutput() HciClusterIdentityPtrOutput { return o.ToHciClusterIdentityPtrOutputWithContext(context.Background()) } func (o HciClusterIdentityOutput) ToHciClusterIdentityPtrOutputWithContext(ctx context.Context) HciClusterIdentityPtrOutput { return o.ApplyTWithContext(ctx, func(_ context.Context, v HciClusterIdentity) *HciClusterIdentity { return &v }).(HciClusterIdentityPtrOutput) } // The Principal ID associated with this Managed Service Identity. func (o HciClusterIdentityOutput) PrincipalId() pulumi.StringPtrOutput { return o.ApplyT(func(v HciClusterIdentity) *string { return v.PrincipalId }).(pulumi.StringPtrOutput) } // The Tenant ID of the Azure Active Directory which is used by the Azure Stack HCI Cluster. Changing this forces a new resource to be created. // // > **Note:** If unspecified the Tenant ID of the Provider will be used. func (o HciClusterIdentityOutput) TenantId() pulumi.StringPtrOutput { return o.ApplyT(func(v HciClusterIdentity) *string { return v.TenantId }).(pulumi.StringPtrOutput) } // Specifies the type of Managed Service Identity that should be configured on the Azure Stack HCI Cluster. Possible value is `SystemAssigned`. func (o HciClusterIdentityOutput) Type() pulumi.StringOutput { return o.ApplyT(func(v HciClusterIdentity) string { return v.Type }).(pulumi.StringOutput) } type HciClusterIdentityPtrOutput struct{ *pulumi.OutputState } func (HciClusterIdentityPtrOutput) ElementType() reflect.Type { return reflect.TypeOf((**HciClusterIdentity)(nil)).Elem() } func (o HciClusterIdentityPtrOutput) ToHciClusterIdentityPtrOutput() HciClusterIdentityPtrOutput { return o } func (o HciClusterIdentityPtrOutput) ToHciClusterIdentityPtrOutputWithContext(ctx context.Context) HciClusterIdentityPtrOutput { return o } func (o HciClusterIdentityPtrOutput) Elem() HciClusterIdentityOutput { return o.ApplyT(func(v *HciClusterIdentity) HciClusterIdentity { if v != nil { return *v } var ret HciClusterIdentity return ret }).(HciClusterIdentityOutput) } // The Principal ID associated with this Managed Service Identity. func (o HciClusterIdentityPtrOutput) PrincipalId() pulumi.StringPtrOutput { return o.ApplyT(func(v *HciClusterIdentity) *string { if v == nil { return nil } return v.PrincipalId }).(pulumi.StringPtrOutput) } // The Tenant ID of the Azure Active Directory which is used by the Azure Stack HCI Cluster. Changing this forces a new resource to be created. // // > **Note:** If unspecified the Tenant ID of the Provider will be used. func (o HciClusterIdentityPtrOutput) TenantId() pulumi.StringPtrOutput { return o.ApplyT(func(v *HciClusterIdentity) *string { if v == nil { return nil } return v.TenantId }).(pulumi.StringPtrOutput) } // Specifies the type of Managed Service Identity that should be configured on the Azure Stack HCI Cluster. Possible value is `SystemAssigned`. func (o HciClusterIdentityPtrOutput) Type() pulumi.StringPtrOutput { return o.ApplyT(func(v *HciClusterIdentity) *string { if v == nil { return nil } return &v.Type }).(pulumi.StringPtrOutput) } type HciDeploymentSettingScaleUnit struct { // Specify the full name of the Active Directory Organizational Unit container object prepared for the deployment, including the domain components. For example:`OU=HCI01,DC=contoso,DC=com`. Changing this forces a new Stack HCI Deployment Setting to be created. ActiveDirectoryOrganizationalUnitPath string `pulumi:"activeDirectoryOrganizationalUnitPath"` // Whether to enable BitLocker for boot volume. Possible values are `true` and `false`. When set to `true`, BitLocker XTS_AES 256-bit encryption is enabled for all data-at-rest on the OS volume of your Azure Stack HCI cluster. This setting is TPM-hardware dependent. Defaults to `true`. Changing this forces a new Stack HCI Deployment Setting to be created. BitlockerBootVolumeEnabled *bool `pulumi:"bitlockerBootVolumeEnabled"` // Whether to enable BitLocker for data volume. Possible values are `true` and `false`. When set to `true`, BitLocker XTS-AES 256-bit encryption is enabled for all data-at-rest on your Azure Stack HCI cluster shared volumes. Defaults to `true`. Changing this forces a new Stack HCI Deployment Setting to be created. BitlockerDataVolumeEnabled *bool `pulumi:"bitlockerDataVolumeEnabled"` // A `cluster` block as defined above. Changing this forces a new Stack HCI Deployment Setting to be created. Cluster HciDeploymentSettingScaleUnitCluster `pulumi:"cluster"` // Whether to enable credential guard. Possible values are `true` and `false`. Defaults to `false`. Changing this forces a new Stack HCI Deployment Setting to be created. CredentialGuardEnabled *bool `pulumi:"credentialGuardEnabled"` // Specifies the FQDN for deploying cluster. Changing this forces a new Stack HCI Deployment Setting to be created. DomainFqdn string `pulumi:"domainFqdn"` // Whether to enable drift control. Possible values are `true` and `false`. When set to `true`, the security baseline is re-applied regularly. Defaults to `true`. Changing this forces a new Stack HCI Deployment Setting to be created. DriftControlEnabled *bool `pulumi:"driftControlEnabled"` // Whether to enable DRTM protection. Possible values are `true` and `false`. When set to `true`, Secure Boot is enabled on your Azure HCI cluster. This setting is hardware dependent. Defaults to `true`. Changing this forces a new Stack HCI Deployment Setting to be created. DrtmProtectionEnabled *bool `pulumi:"drtmProtectionEnabled"` // Whether to collect log data to facilitate quicker issue resolution. Possible values are `true` and `false`. Defaults to `true`. Changing this forces a new Stack HCI Deployment Setting to be created. EpisodicDataUploadEnabled *bool `pulumi:"episodicDataUploadEnabled"` // Whether to store data sent to Microsoft in EU. The log and diagnostic data is sent to the appropriate diagnostics servers depending upon where your cluster resides. Setting this to `false` results in all data sent to Microsoft to be stored outside of the EU. Possible values are `true` and `false`. Defaults to `false`. Changing this forces a new Stack HCI Deployment Setting to be created. EuLocationEnabled *bool `pulumi:"euLocationEnabled"` // A `hostNetwork` block as defined above. Changing this forces a new Stack HCI Deployment Setting to be created. HostNetwork HciDeploymentSettingScaleUnitHostNetwork `pulumi:"hostNetwork"` // Whether to enable HVCI protection. Possible values are `true` and `false`. When set to `true`, Hypervisor-protected Code Integrity is enabled on your Azure HCI cluster. Defaults to `true`. Changing this forces a new Stack HCI Deployment Setting to be created. HvciProtectionEnabled *bool `pulumi:"hvciProtectionEnabled"` // One or more `infrastructureNetwork` blocks as defined above. Changing this forces a new Stack HCI Deployment Setting to be created. InfrastructureNetworks []HciDeploymentSettingScaleUnitInfrastructureNetwork `pulumi:"infrastructureNetworks"` // Specifies the name prefix to deploy cluster. It must be 1-8 characters long and contain only letters, numbers and hyphens Changing this forces a new Stack HCI Deployment Setting to be created. NamePrefix string `pulumi:"namePrefix"` // A `optionalService` block as defined above. Changing this forces a new Stack HCI Deployment Setting to be created. OptionalService HciDeploymentSettingScaleUnitOptionalService `pulumi:"optionalService"` // One or more `physicalNode` blocks as defined above. Changing this forces a new Stack HCI Deployment Setting to be created. PhysicalNodes []HciDeploymentSettingScaleUnitPhysicalNode `pulumi:"physicalNodes"` // The URI to the Key Vault or secret store. Changing this forces a new Stack HCI Deployment Setting to be created. SecretsLocation string `pulumi:"secretsLocation"` // Whether to enable side channel mitigation. Possible values are `true` and `false`. When set to `true`, all side channel mitigations are enabled on your Azure HCI cluster. Defaults to `true`. Changing this forces a new Stack HCI Deployment Setting to be created. SideChannelMitigationEnabled *bool `pulumi:"sideChannelMitigationEnabled"` // Whether to enable SMB cluster encryption. Possible values are `true` and `false`. When set to `true`, cluster east-west traffic is encrypted. Defaults to `false`. Changing this forces a new Stack HCI Deployment Setting to be created. SmbClusterEncryptionEnabled *bool `pulumi:"smbClusterEncryptionEnabled"` // Whether to enable SMB signing. Possible values are `true` and `false`. When set to `true`, the SMB default instance requires sign in for the client and server services. Defaults to `true`. Changing this forces a new Stack HCI Deployment Setting to be created. SmbSigningEnabled *bool `pulumi:"smbSigningEnabled"` // A `storage` block as defined below. Changing this forces a new Stack HCI Deployment Setting to be created. Storage HciDeploymentSettingScaleUnitStorage `pulumi:"storage"` // Whether the telemetry data will be sent to Microsoft. Possible values are `true` and `false`. Defaults to `true`. Changing this forces a new Stack HCI Deployment Setting to be created. StreamingDataClientEnabled *bool `pulumi:"streamingDataClientEnabled"` // Whether to enable WDAC. Possible values are `true` and `false`. When set to `true`, applications and the code that you can run on your Azure Stack HCI cluster are limited. Defaults to `true`. Changing this forces a new Stack HCI Deployment Setting to be created. WdacEnabled *bool `pulumi:"wdacEnabled"` } // HciDeploymentSettingScaleUnitInput is an input type that accepts HciDeploymentSettingScaleUnitArgs and HciDeploymentSettingScaleUnitOutput values. // You can construct a concrete instance of `HciDeploymentSettingScaleUnitInput` via: // // HciDeploymentSettingScaleUnitArgs{...} type HciDeploymentSettingScaleUnitInput interface { pulumi.Input ToHciDeploymentSettingScaleUnitOutput() HciDeploymentSettingScaleUnitOutput ToHciDeploymentSettingScaleUnitOutputWithContext(context.Context) HciDeploymentSettingScaleUnitOutput } type HciDeploymentSettingScaleUnitArgs struct { // Specify the full name of the Active Directory Organizational Unit container object prepared for the deployment, including the domain components. For example:`OU=HCI01,DC=contoso,DC=com`. Changing this forces a new Stack HCI Deployment Setting to be created. ActiveDirectoryOrganizationalUnitPath pulumi.StringInput `pulumi:"activeDirectoryOrganizationalUnitPath"` // Whether to enable BitLocker for boot volume. Possible values are `true` and `false`. When set to `true`, BitLocker XTS_AES 256-bit encryption is enabled for all data-at-rest on the OS volume of your Azure Stack HCI cluster. This setting is TPM-hardware dependent. Defaults to `true`. Changing this forces a new Stack HCI Deployment Setting to be created. BitlockerBootVolumeEnabled pulumi.BoolPtrInput `pulumi:"bitlockerBootVolumeEnabled"` // Whether to enable BitLocker for data volume. Possible values are `true` and `false`. When set to `true`, BitLocker XTS-AES 256-bit encryption is enabled for all data-at-rest on your Azure Stack HCI cluster shared volumes. Defaults to `true`. Changing this forces a new Stack HCI Deployment Setting to be created. BitlockerDataVolumeEnabled pulumi.BoolPtrInput `pulumi:"bitlockerDataVolumeEnabled"` // A `cluster` block as defined above. Changing this forces a new Stack HCI Deployment Setting to be created. Cluster HciDeploymentSettingScaleUnitClusterInput `pulumi:"cluster"` // Whether to enable credential guard. Possible values are `true` and `false`. Defaults to `false`. Changing this forces a new Stack HCI Deployment Setting to be created. CredentialGuardEnabled pulumi.BoolPtrInput `pulumi:"credentialGuardEnabled"` // Specifies the FQDN for deploying cluster. Changing this forces a new Stack HCI Deployment Setting to be created. DomainFqdn pulumi.StringInput `pulumi:"domainFqdn"` // Whether to enable drift control. Possible values are `true` and `false`. When set to `true`, the security baseline is re-applied regularly. Defaults to `true`. Changing this forces a new Stack HCI Deployment Setting to be created. DriftControlEnabled pulumi.BoolPtrInput `pulumi:"driftControlEnabled"` // Whether to enable DRTM protection. Possible values are `true` and `false`. When set to `true`, Secure Boot is enabled on your Azure HCI cluster. This setting is hardware dependent. Defaults to `true`. Changing this forces a new Stack HCI Deployment Setting to be created. DrtmProtectionEnabled pulumi.BoolPtrInput `pulumi:"drtmProtectionEnabled"` // Whether to collect log data to facilitate quicker issue resolution. Possible values are `true` and `false`. Defaults to `true`. Changing this forces a new Stack HCI Deployment Setting to be created. EpisodicDataUploadEnabled pulumi.BoolPtrInput `pulumi:"episodicDataUploadEnabled"` // Whether to store data sent to Microsoft in EU. The log and diagnostic data is sent to the appropriate diagnostics servers depending upon where your cluster resides. Setting this to `false` results in all data sent to Microsoft to be stored outside of the EU. Possible values are `true` and `false`. Defaults to `false`. Changing this forces a new Stack HCI Deployment Setting to be created. EuLocationEnabled pulumi.BoolPtrInput `pulumi:"euLocationEnabled"` // A `hostNetwork` block as defined above. Changing this forces a new Stack HCI Deployment Setting to be created. HostNetwork HciDeploymentSettingScaleUnitHostNetworkInput `pulumi:"hostNetwork"` // Whether to enable HVCI protection. Possible values are `true` and `false`. When set to `true`, Hypervisor-protected Code Integrity is enabled on your Azure HCI cluster. Defaults to `true`. Changing this forces a new Stack HCI Deployment Setting to be created. HvciProtectionEnabled pulumi.BoolPtrInput `pulumi:"hvciProtectionEnabled"` // One or more `infrastructureNetwork` blocks as defined above. Changing this forces a new Stack HCI Deployment Setting to be created. InfrastructureNetworks HciDeploymentSettingScaleUnitInfrastructureNetworkArrayInput `pulumi:"infrastructureNetworks"` // Specifies the name prefix to deploy cluster. It must be 1-8 characters long and contain only letters, numbers and hyphens Changing this forces a new Stack HCI Deployment Setting to be created. NamePrefix pulumi.StringInput `pulumi:"namePrefix"` // A `optionalService` block as defined above. Changing this forces a new Stack HCI Deployment Setting to be created. OptionalService HciDeploymentSettingScaleUnitOptionalServiceInput `pulumi:"optionalService"` // One or more `physicalNode` blocks as defined above. Changing this forces a new Stack HCI Deployment Setting to be created. PhysicalNodes HciDeploymentSettingScaleUnitPhysicalNodeArrayInput `pulumi:"physicalNodes"` // The URI to the Key Vault or secret store. Changing this forces a new Stack HCI Deployment Setting to be created. SecretsLocation pulumi.StringInput `pulumi:"secretsLocation"` // Whether to enable side channel mitigation. Possible values are `true` and `false`. When set to `true`, all side channel mitigations are enabled on your Azure HCI cluster. Defaults to `true`. Changing this forces a new Stack HCI Deployment Setting to be created. SideChannelMitigationEnabled pulumi.BoolPtrInput `pulumi:"sideChannelMitigationEnabled"` // Whether to enable SMB cluster encryption. Possible values are `true` and `false`. When set to `true`, cluster east-west traffic is encrypted. Defaults to `false`. Changing this forces a new Stack HCI Deployment Setting to be created. SmbClusterEncryptionEnabled pulumi.BoolPtrInput `pulumi:"smbClusterEncryptionEnabled"` // Whether to enable SMB signing. Possible values are `true` and `false`. When set to `true`, the SMB default instance requires sign in for the client and server services. Defaults to `true`. Changing this forces a new Stack HCI Deployment Setting to be created. SmbSigningEnabled pulumi.BoolPtrInput `pulumi:"smbSigningEnabled"` // A `storage` block as defined below. Changing this forces a new Stack HCI Deployment Setting to be created. Storage HciDeploymentSettingScaleUnitStorageInput `pulumi:"storage"` // Whether the telemetry data will be sent to Microsoft. Possible values are `true` and `false`. Defaults to `true`. Changing this forces a new Stack HCI Deployment Setting to be created. StreamingDataClientEnabled pulumi.BoolPtrInput `pulumi:"streamingDataClientEnabled"` // Whether to enable WDAC. Possible values are `true` and `false`. When set to `true`, applications and the code that you can run on your Azure Stack HCI cluster are limited. Defaults to `true`. Changing this forces a new Stack HCI Deployment Setting to be created. WdacEnabled pulumi.BoolPtrInput `pulumi:"wdacEnabled"` } func (HciDeploymentSettingScaleUnitArgs) ElementType() reflect.Type { return reflect.TypeOf((*HciDeploymentSettingScaleUnit)(nil)).Elem() } func (i HciDeploymentSettingScaleUnitArgs) ToHciDeploymentSettingScaleUnitOutput() HciDeploymentSettingScaleUnitOutput { return i.ToHciDeploymentSettingScaleUnitOutputWithContext(context.Background()) } func (i HciDeploymentSettingScaleUnitArgs) ToHciDeploymentSettingScaleUnitOutputWithContext(ctx context.Context) HciDeploymentSettingScaleUnitOutput { return pulumi.ToOutputWithContext(ctx, i).(HciDeploymentSettingScaleUnitOutput) } // HciDeploymentSettingScaleUnitArrayInput is an input type that accepts HciDeploymentSettingScaleUnitArray and HciDeploymentSettingScaleUnitArrayOutput values. // You can construct a concrete instance of `HciDeploymentSettingScaleUnitArrayInput` via: // // HciDeploymentSettingScaleUnitArray{ HciDeploymentSettingScaleUnitArgs{...} } type HciDeploymentSettingScaleUnitArrayInput interface { pulumi.Input ToHciDeploymentSettingScaleUnitArrayOutput() HciDeploymentSettingScaleUnitArrayOutput ToHciDeploymentSettingScaleUnitArrayOutputWithContext(context.Context) HciDeploymentSettingScaleUnitArrayOutput } type HciDeploymentSettingScaleUnitArray []HciDeploymentSettingScaleUnitInput func (HciDeploymentSettingScaleUnitArray) ElementType() reflect.Type { return reflect.TypeOf((*[]HciDeploymentSettingScaleUnit)(nil)).Elem() } func (i HciDeploymentSettingScaleUnitArray) ToHciDeploymentSettingScaleUnitArrayOutput() HciDeploymentSettingScaleUnitArrayOutput { return i.ToHciDeploymentSettingScaleUnitArrayOutputWithContext(context.Background()) } func (i HciDeploymentSettingScaleUnitArray) ToHciDeploymentSettingScaleUnitArrayOutputWithContext(ctx context.Context) HciDeploymentSettingScaleUnitArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(HciDeploymentSettingScaleUnitArrayOutput) } type HciDeploymentSettingScaleUnitOutput struct{ *pulumi.OutputState } func (HciDeploymentSettingScaleUnitOutput) ElementType() reflect.Type { return reflect.TypeOf((*HciDeploymentSettingScaleUnit)(nil)).Elem() } func (o HciDeploymentSettingScaleUnitOutput) ToHciDeploymentSettingScaleUnitOutput() HciDeploymentSettingScaleUnitOutput { return o } func (o HciDeploymentSettingScaleUnitOutput) ToHciDeploymentSettingScaleUnitOutputWithContext(ctx context.Context) HciDeploymentSettingScaleUnitOutput { return o } // Specify the full name of the Active Directory Organizational Unit container object prepared for the deployment, including the domain components. For example:`OU=HCI01,DC=contoso,DC=com`. Changing this forces a new Stack HCI Deployment Setting to be created. func (o HciDeploymentSettingScaleUnitOutput) ActiveDirectoryOrganizationalUnitPath() pulumi.StringOutput { return o.ApplyT(func(v HciDeploymentSettingScaleUnit) string { return v.ActiveDirectoryOrganizationalUnitPath }).(pulumi.StringOutput) } // Whether to enable BitLocker for boot volume. Possible values are `true` and `false`. When set to `true`, BitLocker XTS_AES 256-bit encryption is enabled for all data-at-rest on the OS volume of your Azure Stack HCI cluster. This setting is TPM-hardware dependent. Defaults to `true`. Changing this forces a new Stack HCI Deployment Setting to be created. func (o HciDeploymentSettingScaleUnitOutput) BitlockerBootVolumeEnabled() pulumi.BoolPtrOutput { return o.ApplyT(func(v HciDeploymentSettingScaleUnit) *bool { return v.BitlockerBootVolumeEnabled }).(pulumi.BoolPtrOutput) } // Whether to enable BitLocker for data volume. Possible values are `true` and `false`. When set to `true`, BitLocker XTS-AES 256-bit encryption is enabled for all data-at-rest on your Azure Stack HCI cluster shared volumes. Defaults to `true`. Changing this forces a new Stack HCI Deployment Setting to be created. func (o HciDeploymentSettingScaleUnitOutput) BitlockerDataVolumeEnabled() pulumi.BoolPtrOutput { return o.ApplyT(func(v HciDeploymentSettingScaleUnit) *bool { return v.BitlockerDataVolumeEnabled }).(pulumi.BoolPtrOutput) } // A `cluster` block as defined above. Changing this forces a new Stack HCI Deployment Setting to be created. func (o HciDeploymentSettingScaleUnitOutput) Cluster() HciDeploymentSettingScaleUnitClusterOutput { return o.ApplyT(func(v HciDeploymentSettingScaleUnit) HciDeploymentSettingScaleUnitCluster { return v.Cluster }).(HciDeploymentSettingScaleUnitClusterOutput) } // Whether to enable credential guard. Possible values are `true` and `false`. Defaults to `false`. Changing this forces a new Stack HCI Deployment Setting to be created. func (o HciDeploymentSettingScaleUnitOutput) CredentialGuardEnabled() pulumi.BoolPtrOutput { return o.ApplyT(func(v HciDeploymentSettingScaleUnit) *bool { return v.CredentialGuardEnabled }).(pulumi.BoolPtrOutput) } // Specifies the FQDN for deploying cluster. Changing this forces a new Stack HCI Deployment Setting to be created. func (o HciDeploymentSettingScaleUnitOutput) DomainFqdn() pulumi.StringOutput { return o.ApplyT(func(v HciDeploymentSettingScaleUnit) string { return v.DomainFqdn }).(pulumi.StringOutput) } // Whether to enable drift control. Possible values are `true` and `false`. When set to `true`, the security baseline is re-applied regularly. Defaults to `true`. Changing this forces a new Stack HCI Deployment Setting to be created. func (o HciDeploymentSettingScaleUnitOutput) DriftControlEnabled() pulumi.BoolPtrOutput { return o.ApplyT(func(v HciDeploymentSettingScaleUnit) *bool { return v.DriftControlEnabled }).(pulumi.BoolPtrOutput) } // Whether to enable DRTM protection. Possible values are `true` and `false`. When set to `true`, Secure Boot is enabled on your Azure HCI cluster. This setting is hardware dependent. Defaults to `true`. Changing this forces a new Stack HCI Deployment Setting to be created. func (o HciDeploymentSettingScaleUnitOutput) DrtmProtectionEnabled() pulumi.BoolPtrOutput { return o.ApplyT(func(v HciDeploymentSettingScaleUnit) *bool { return v.DrtmProtectionEnabled }).(pulumi.BoolPtrOutput) } // Whether to collect log data to facilitate quicker issue resolution. Possible values are `true` and `false`. Defaults to `true`. Changing this forces a new Stack HCI Deployment Setting to be created. func (o HciDeploymentSettingScaleUnitOutput) EpisodicDataUploadEnabled() pulumi.BoolPtrOutput { return o.ApplyT(func(v HciDeploymentSettingScaleUnit) *bool { return v.EpisodicDataUploadEnabled }).(pulumi.BoolPtrOutput) } // Whether to store data sent to Microsoft in EU. The log and diagnostic data is sent to the appropriate diagnostics servers depending upon where your cluster resides. Setting this to `false` results in all data sent to Microsoft to be stored outside of the EU. Possible values are `true` and `false`. Defaults to `false`. Changing this forces a new Stack HCI Deployment Setting to be created. func (o HciDeploymentSettingScaleUnitOutput) EuLocationEnabled() pulumi.BoolPtrOutput { return o.ApplyT(func(v HciDeploymentSettingScaleUnit) *bool { return v.EuLocationEnabled }).(pulumi.BoolPtrOutput) } // A `hostNetwork` block as defined above. Changing this forces a new Stack HCI Deployment Setting to be created. func (o HciDeploymentSettingScaleUnitOutput) HostNetwork() HciDeploymentSettingScaleUnitHostNetworkOutput { return o.ApplyT(func(v HciDeploymentSettingScaleUnit) HciDeploymentSettingScaleUnitHostNetwork { return v.HostNetwork }).(HciDeploymentSettingScaleUnitHostNetworkOutput) } // Whether to enable HVCI protection. Possible values are `true` and `false`. When set to `true`, Hypervisor-protected Code Integrity is enabled on your Azure HCI cluster. Defaults to `true`. Changing this forces a new Stack HCI Deployment Setting to be created. func (o HciDeploymentSettingScaleUnitOutput) HvciProtectionEnabled() pulumi.BoolPtrOutput { return o.ApplyT(func(v HciDeploymentSettingScaleUnit) *bool { return v.HvciProtectionEnabled }).(pulumi.BoolPtrOutput) } // One or more `infrastructureNetwork` blocks as defined above. Changing this forces a new Stack HCI Deployment Setting to be created. func (o HciDeploymentSettingScaleUnitOutput) InfrastructureNetworks() HciDeploymentSettingScaleUnitInfrastructureNetworkArrayOutput { return o.ApplyT(func(v HciDeploymentSettingScaleUnit) []HciDeploymentSettingScaleUnitInfrastructureNetwork { return v.InfrastructureNetworks }).(HciDeploymentSettingScaleUnitInfrastructureNetworkArrayOutput) } // Specifies the name prefix to deploy cluster. It must be 1-8 characters long and contain only letters, numbers and hyphens Changing this forces a new Stack HCI Deployment Setting to be created. func (o HciDeploymentSettingScaleUnitOutput) NamePrefix() pulumi.StringOutput { return o.ApplyT(func(v HciDeploymentSettingScaleUnit) string { return v.NamePrefix }).(pulumi.StringOutput) } // A `optionalService` block as defined above. Changing this forces a new Stack HCI Deployment Setting to be created. func (o HciDeploymentSettingScaleUnitOutput) OptionalService() HciDeploymentSettingScaleUnitOptionalServiceOutput { return o.ApplyT(func(v HciDeploymentSettingScaleUnit) HciDeploymentSettingScaleUnitOptionalService { return v.OptionalService }).(HciDeploymentSettingScaleUnitOptionalServiceOutput) } // One or more `physicalNode` blocks as defined above. Changing this forces a new Stack HCI Deployment Setting to be created. func (o HciDeploymentSettingScaleUnitOutput) PhysicalNodes() HciDeploymentSettingScaleUnitPhysicalNodeArrayOutput { return o.ApplyT(func(v HciDeploymentSettingScaleUnit) []HciDeploymentSettingScaleUnitPhysicalNode { return v.PhysicalNodes }).(HciDeploymentSettingScaleUnitPhysicalNodeArrayOutput) } // The URI to the Key Vault or secret store. Changing this forces a new Stack HCI Deployment Setting to be created. func (o HciDeploymentSettingScaleUnitOutput) SecretsLocation() pulumi.StringOutput { return o.ApplyT(func(v HciDeploymentSettingScaleUnit) string { return v.SecretsLocation }).(pulumi.StringOutput) } // Whether to enable side channel mitigation. Possible values are `true` and `false`. When set to `true`, all side channel mitigations are enabled on your Azure HCI cluster. Defaults to `true`. Changing this forces a new Stack HCI Deployment Setting to be created. func (o HciDeploymentSettingScaleUnitOutput) SideChannelMitigationEnabled() pulumi.BoolPtrOutput { return o.ApplyT(func(v HciDeploymentSettingScaleUnit) *bool { return v.SideChannelMitigationEnabled }).(pulumi.BoolPtrOutput) } // Whether to enable SMB cluster encryption. Possible values are `true` and `false`. When set to `true`, cluster east-west traffic is encrypted. Defaults to `false`. Changing this forces a new Stack HCI Deployment Setting to be created. func (o HciDeploymentSettingScaleUnitOutput) SmbClusterEncryptionEnabled() pulumi.BoolPtrOutput { return o.ApplyT(func(v HciDeploymentSettingScaleUnit) *bool { return v.SmbClusterEncryptionEnabled }).(pulumi.BoolPtrOutput) } // Whether to enable SMB signing. Possible values are `true` and `false`. When set to `true`, the SMB default instance requires sign in for the client and server services. Defaults to `true`. Changing this forces a new Stack HCI Deployment Setting to be created. func (o HciDeploymentSettingScaleUnitOutput) SmbSigningEnabled() pulumi.BoolPtrOutput { return o.ApplyT(func(v HciDeploymentSettingScaleUnit) *bool { return v.SmbSigningEnabled }).(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/stack/hciDeploymentSetting.go
sdk/go/azure/stack/hciDeploymentSetting.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 stack import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a Stack HCI Deployment Setting. // // > **Note:** Completion of the prerequisites of deploying the Azure Stack HCI in your environment is outside the scope of this document. For more details refer to the [Azure Stack HCI deployment sequence](https://learn.microsoft.com/en-us/azure-stack/hci/deploy/deployment-introduction#deployment-sequence). If you encounter issues completing the prerequisites, we'd recommend opening a ticket with Microsoft Support. // // > **Note:** During the deployment process, the service will generate additional resources, including a new Arc Bridge Appliance and a Custom Location containing several Stack HCI Storage Paths. The provider will attempt to remove these resources on the deletion or recreation of `stack.HciDeploymentSetting`. // // ## Import // // Stack HCI Deployment Settings can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:stack/hciDeploymentSetting:HciDeploymentSetting example /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/group1/providers/Microsoft.AzureStackHCI/clusters/clus1/deploymentSettings/default // ``` type HciDeploymentSetting struct { pulumi.CustomResourceState // Specifies a list of IDs of Azure ARC machine resource to be part of cluster. Changing this forces a new Stack HCI Deployment Setting to be created. ArcResourceIds pulumi.StringArrayOutput `pulumi:"arcResourceIds"` // One or more `scaleUnit` blocks as defined below. Changing this forces a new Stack HCI Deployment Setting to be created. ScaleUnits HciDeploymentSettingScaleUnitArrayOutput `pulumi:"scaleUnits"` // The ID of the Azure Stack HCI cluster. Changing this forces a new Stack HCI Deployment Setting to be created. StackHciClusterId pulumi.StringOutput `pulumi:"stackHciClusterId"` // The deployment template version. The format must be a set of numbers separated by dots such as `10.0.0.0`. Changing this forces a new Stack HCI Deployment Setting to be created. Version pulumi.StringOutput `pulumi:"version"` } // NewHciDeploymentSetting registers a new resource with the given unique name, arguments, and options. func NewHciDeploymentSetting(ctx *pulumi.Context, name string, args *HciDeploymentSettingArgs, opts ...pulumi.ResourceOption) (*HciDeploymentSetting, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.ArcResourceIds == nil { return nil, errors.New("invalid value for required argument 'ArcResourceIds'") } if args.ScaleUnits == nil { return nil, errors.New("invalid value for required argument 'ScaleUnits'") } if args.StackHciClusterId == nil { return nil, errors.New("invalid value for required argument 'StackHciClusterId'") } if args.Version == nil { return nil, errors.New("invalid value for required argument 'Version'") } opts = internal.PkgResourceDefaultOpts(opts) var resource HciDeploymentSetting err := ctx.RegisterResource("azure:stack/hciDeploymentSetting:HciDeploymentSetting", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetHciDeploymentSetting gets an existing HciDeploymentSetting 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 GetHciDeploymentSetting(ctx *pulumi.Context, name string, id pulumi.IDInput, state *HciDeploymentSettingState, opts ...pulumi.ResourceOption) (*HciDeploymentSetting, error) { var resource HciDeploymentSetting err := ctx.ReadResource("azure:stack/hciDeploymentSetting:HciDeploymentSetting", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering HciDeploymentSetting resources. type hciDeploymentSettingState struct { // Specifies a list of IDs of Azure ARC machine resource to be part of cluster. Changing this forces a new Stack HCI Deployment Setting to be created. ArcResourceIds []string `pulumi:"arcResourceIds"` // One or more `scaleUnit` blocks as defined below. Changing this forces a new Stack HCI Deployment Setting to be created. ScaleUnits []HciDeploymentSettingScaleUnit `pulumi:"scaleUnits"` // The ID of the Azure Stack HCI cluster. Changing this forces a new Stack HCI Deployment Setting to be created. StackHciClusterId *string `pulumi:"stackHciClusterId"` // The deployment template version. The format must be a set of numbers separated by dots such as `10.0.0.0`. Changing this forces a new Stack HCI Deployment Setting to be created. Version *string `pulumi:"version"` } type HciDeploymentSettingState struct { // Specifies a list of IDs of Azure ARC machine resource to be part of cluster. Changing this forces a new Stack HCI Deployment Setting to be created. ArcResourceIds pulumi.StringArrayInput // One or more `scaleUnit` blocks as defined below. Changing this forces a new Stack HCI Deployment Setting to be created. ScaleUnits HciDeploymentSettingScaleUnitArrayInput // The ID of the Azure Stack HCI cluster. Changing this forces a new Stack HCI Deployment Setting to be created. StackHciClusterId pulumi.StringPtrInput // The deployment template version. The format must be a set of numbers separated by dots such as `10.0.0.0`. Changing this forces a new Stack HCI Deployment Setting to be created. Version pulumi.StringPtrInput } func (HciDeploymentSettingState) ElementType() reflect.Type { return reflect.TypeOf((*hciDeploymentSettingState)(nil)).Elem() } type hciDeploymentSettingArgs struct { // Specifies a list of IDs of Azure ARC machine resource to be part of cluster. Changing this forces a new Stack HCI Deployment Setting to be created. ArcResourceIds []string `pulumi:"arcResourceIds"` // One or more `scaleUnit` blocks as defined below. Changing this forces a new Stack HCI Deployment Setting to be created. ScaleUnits []HciDeploymentSettingScaleUnit `pulumi:"scaleUnits"` // The ID of the Azure Stack HCI cluster. Changing this forces a new Stack HCI Deployment Setting to be created. StackHciClusterId string `pulumi:"stackHciClusterId"` // The deployment template version. The format must be a set of numbers separated by dots such as `10.0.0.0`. Changing this forces a new Stack HCI Deployment Setting to be created. Version string `pulumi:"version"` } // The set of arguments for constructing a HciDeploymentSetting resource. type HciDeploymentSettingArgs struct { // Specifies a list of IDs of Azure ARC machine resource to be part of cluster. Changing this forces a new Stack HCI Deployment Setting to be created. ArcResourceIds pulumi.StringArrayInput // One or more `scaleUnit` blocks as defined below. Changing this forces a new Stack HCI Deployment Setting to be created. ScaleUnits HciDeploymentSettingScaleUnitArrayInput // The ID of the Azure Stack HCI cluster. Changing this forces a new Stack HCI Deployment Setting to be created. StackHciClusterId pulumi.StringInput // The deployment template version. The format must be a set of numbers separated by dots such as `10.0.0.0`. Changing this forces a new Stack HCI Deployment Setting to be created. Version pulumi.StringInput } func (HciDeploymentSettingArgs) ElementType() reflect.Type { return reflect.TypeOf((*hciDeploymentSettingArgs)(nil)).Elem() } type HciDeploymentSettingInput interface { pulumi.Input ToHciDeploymentSettingOutput() HciDeploymentSettingOutput ToHciDeploymentSettingOutputWithContext(ctx context.Context) HciDeploymentSettingOutput } func (*HciDeploymentSetting) ElementType() reflect.Type { return reflect.TypeOf((**HciDeploymentSetting)(nil)).Elem() } func (i *HciDeploymentSetting) ToHciDeploymentSettingOutput() HciDeploymentSettingOutput { return i.ToHciDeploymentSettingOutputWithContext(context.Background()) } func (i *HciDeploymentSetting) ToHciDeploymentSettingOutputWithContext(ctx context.Context) HciDeploymentSettingOutput { return pulumi.ToOutputWithContext(ctx, i).(HciDeploymentSettingOutput) } // HciDeploymentSettingArrayInput is an input type that accepts HciDeploymentSettingArray and HciDeploymentSettingArrayOutput values. // You can construct a concrete instance of `HciDeploymentSettingArrayInput` via: // // HciDeploymentSettingArray{ HciDeploymentSettingArgs{...} } type HciDeploymentSettingArrayInput interface { pulumi.Input ToHciDeploymentSettingArrayOutput() HciDeploymentSettingArrayOutput ToHciDeploymentSettingArrayOutputWithContext(context.Context) HciDeploymentSettingArrayOutput } type HciDeploymentSettingArray []HciDeploymentSettingInput func (HciDeploymentSettingArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*HciDeploymentSetting)(nil)).Elem() } func (i HciDeploymentSettingArray) ToHciDeploymentSettingArrayOutput() HciDeploymentSettingArrayOutput { return i.ToHciDeploymentSettingArrayOutputWithContext(context.Background()) } func (i HciDeploymentSettingArray) ToHciDeploymentSettingArrayOutputWithContext(ctx context.Context) HciDeploymentSettingArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(HciDeploymentSettingArrayOutput) } // HciDeploymentSettingMapInput is an input type that accepts HciDeploymentSettingMap and HciDeploymentSettingMapOutput values. // You can construct a concrete instance of `HciDeploymentSettingMapInput` via: // // HciDeploymentSettingMap{ "key": HciDeploymentSettingArgs{...} } type HciDeploymentSettingMapInput interface { pulumi.Input ToHciDeploymentSettingMapOutput() HciDeploymentSettingMapOutput ToHciDeploymentSettingMapOutputWithContext(context.Context) HciDeploymentSettingMapOutput } type HciDeploymentSettingMap map[string]HciDeploymentSettingInput func (HciDeploymentSettingMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*HciDeploymentSetting)(nil)).Elem() } func (i HciDeploymentSettingMap) ToHciDeploymentSettingMapOutput() HciDeploymentSettingMapOutput { return i.ToHciDeploymentSettingMapOutputWithContext(context.Background()) } func (i HciDeploymentSettingMap) ToHciDeploymentSettingMapOutputWithContext(ctx context.Context) HciDeploymentSettingMapOutput { return pulumi.ToOutputWithContext(ctx, i).(HciDeploymentSettingMapOutput) } type HciDeploymentSettingOutput struct{ *pulumi.OutputState } func (HciDeploymentSettingOutput) ElementType() reflect.Type { return reflect.TypeOf((**HciDeploymentSetting)(nil)).Elem() } func (o HciDeploymentSettingOutput) ToHciDeploymentSettingOutput() HciDeploymentSettingOutput { return o } func (o HciDeploymentSettingOutput) ToHciDeploymentSettingOutputWithContext(ctx context.Context) HciDeploymentSettingOutput { return o } // Specifies a list of IDs of Azure ARC machine resource to be part of cluster. Changing this forces a new Stack HCI Deployment Setting to be created. func (o HciDeploymentSettingOutput) ArcResourceIds() pulumi.StringArrayOutput { return o.ApplyT(func(v *HciDeploymentSetting) pulumi.StringArrayOutput { return v.ArcResourceIds }).(pulumi.StringArrayOutput) } // One or more `scaleUnit` blocks as defined below. Changing this forces a new Stack HCI Deployment Setting to be created. func (o HciDeploymentSettingOutput) ScaleUnits() HciDeploymentSettingScaleUnitArrayOutput { return o.ApplyT(func(v *HciDeploymentSetting) HciDeploymentSettingScaleUnitArrayOutput { return v.ScaleUnits }).(HciDeploymentSettingScaleUnitArrayOutput) } // The ID of the Azure Stack HCI cluster. Changing this forces a new Stack HCI Deployment Setting to be created. func (o HciDeploymentSettingOutput) StackHciClusterId() pulumi.StringOutput { return o.ApplyT(func(v *HciDeploymentSetting) pulumi.StringOutput { return v.StackHciClusterId }).(pulumi.StringOutput) } // The deployment template version. The format must be a set of numbers separated by dots such as `10.0.0.0`. Changing this forces a new Stack HCI Deployment Setting to be created. func (o HciDeploymentSettingOutput) Version() pulumi.StringOutput { return o.ApplyT(func(v *HciDeploymentSetting) pulumi.StringOutput { return v.Version }).(pulumi.StringOutput) } type HciDeploymentSettingArrayOutput struct{ *pulumi.OutputState } func (HciDeploymentSettingArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*HciDeploymentSetting)(nil)).Elem() } func (o HciDeploymentSettingArrayOutput) ToHciDeploymentSettingArrayOutput() HciDeploymentSettingArrayOutput { return o } func (o HciDeploymentSettingArrayOutput) ToHciDeploymentSettingArrayOutputWithContext(ctx context.Context) HciDeploymentSettingArrayOutput { return o } func (o HciDeploymentSettingArrayOutput) Index(i pulumi.IntInput) HciDeploymentSettingOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *HciDeploymentSetting { return vs[0].([]*HciDeploymentSetting)[vs[1].(int)] }).(HciDeploymentSettingOutput) } type HciDeploymentSettingMapOutput struct{ *pulumi.OutputState } func (HciDeploymentSettingMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*HciDeploymentSetting)(nil)).Elem() } func (o HciDeploymentSettingMapOutput) ToHciDeploymentSettingMapOutput() HciDeploymentSettingMapOutput { return o } func (o HciDeploymentSettingMapOutput) ToHciDeploymentSettingMapOutputWithContext(ctx context.Context) HciDeploymentSettingMapOutput { return o } func (o HciDeploymentSettingMapOutput) MapIndex(k pulumi.StringInput) HciDeploymentSettingOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *HciDeploymentSetting { return vs[0].(map[string]*HciDeploymentSetting)[vs[1].(string)] }).(HciDeploymentSettingOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*HciDeploymentSettingInput)(nil)).Elem(), &HciDeploymentSetting{}) pulumi.RegisterInputType(reflect.TypeOf((*HciDeploymentSettingArrayInput)(nil)).Elem(), HciDeploymentSettingArray{}) pulumi.RegisterInputType(reflect.TypeOf((*HciDeploymentSettingMapInput)(nil)).Elem(), HciDeploymentSettingMap{}) pulumi.RegisterOutputType(HciDeploymentSettingOutput{}) pulumi.RegisterOutputType(HciDeploymentSettingArrayOutput{}) pulumi.RegisterOutputType(HciDeploymentSettingMapOutput{}) }
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/stack/hciLogicalNetwork.go
sdk/go/azure/stack/hciLogicalNetwork.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 stack 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 Stack HCI Logical Network. // // ## 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/stack" // "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 // } // _, err = stack.NewHciLogicalNetwork(ctx, "example", &stack.HciLogicalNetworkArgs{ // Name: pulumi.String("example-hci-ln"), // ResourceGroupName: example.Name, // Location: example.Location, // CustomLocationId: pulumi.String("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ExtendedLocation/customLocations/cl1"), // VirtualSwitchName: pulumi.String("ConvergedSwitch(managementcompute)"), // DnsServers: pulumi.StringArray{ // pulumi.String("10.0.0.7"), // pulumi.String("10.0.0.8"), // }, // Subnet: &stack.HciLogicalNetworkSubnetArgs{ // IpAllocationMethod: pulumi.String("Static"), // AddressPrefix: pulumi.String("10.0.0.0/24"), // VlanId: pulumi.Int(123), // Route: map[string]interface{}{ // "addressPrefix": "0.0.0.0/0", // "nextHopIpAddress": "10.0.0.1", // }, // }, // Tags: pulumi.StringMap{ // "foo": pulumi.String("bar"), // }, // }) // 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.AzureStackHCI` - 2024-01-01 // // ## Import // // Azure Stack HCI Logical Networks can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:stack/hciLogicalNetwork:HciLogicalNetwork example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AzureStackHCI/logicalNetworks/ln1 // ``` type HciLogicalNetwork struct { pulumi.CustomResourceState // The ID of Custom Location where the Azure Stack HCI Logical Network should exist. Changing this forces a new resource to be created. CustomLocationId pulumi.StringOutput `pulumi:"customLocationId"` // A list of IPv4 addresses of DNS servers available to VMs deployed in the Logical Networks. Changing this forces a new resource to be created. DnsServers pulumi.StringArrayOutput `pulumi:"dnsServers"` // The Azure Region where the Azure Stack HCI Logical Network should exist. Changing this forces a new resource to be created. Location pulumi.StringOutput `pulumi:"location"` // The name which should be used for this Azure Stack HCI Logical Network. Changing this forces a new resource to be created. Name pulumi.StringOutput `pulumi:"name"` // The name of the Resource Group where the Azure Stack HCI Logical Network should exist. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // A `subnet` block as defined below. Changing this forces a new resource to be created. Subnet HciLogicalNetworkSubnetOutput `pulumi:"subnet"` // A mapping of tags which should be assigned to the Azure Stack HCI Logical Network. Tags pulumi.StringMapOutput `pulumi:"tags"` // The name of the virtual switch on the cluster used to associate with the Azure Stack HCI Logical Network. Possible switch names can be retrieved by following this [Azure guide](https://learn.microsoft.com/azure-stack/hci/manage/create-logical-networks?tabs=azurecli#prerequisites). Changing this forces a new resource to be created. VirtualSwitchName pulumi.StringOutput `pulumi:"virtualSwitchName"` } // NewHciLogicalNetwork registers a new resource with the given unique name, arguments, and options. func NewHciLogicalNetwork(ctx *pulumi.Context, name string, args *HciLogicalNetworkArgs, opts ...pulumi.ResourceOption) (*HciLogicalNetwork, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.CustomLocationId == nil { return nil, errors.New("invalid value for required argument 'CustomLocationId'") } if args.ResourceGroupName == nil { return nil, errors.New("invalid value for required argument 'ResourceGroupName'") } if args.Subnet == nil { return nil, errors.New("invalid value for required argument 'Subnet'") } if args.VirtualSwitchName == nil { return nil, errors.New("invalid value for required argument 'VirtualSwitchName'") } opts = internal.PkgResourceDefaultOpts(opts) var resource HciLogicalNetwork err := ctx.RegisterResource("azure:stack/hciLogicalNetwork:HciLogicalNetwork", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetHciLogicalNetwork gets an existing HciLogicalNetwork 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 GetHciLogicalNetwork(ctx *pulumi.Context, name string, id pulumi.IDInput, state *HciLogicalNetworkState, opts ...pulumi.ResourceOption) (*HciLogicalNetwork, error) { var resource HciLogicalNetwork err := ctx.ReadResource("azure:stack/hciLogicalNetwork:HciLogicalNetwork", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering HciLogicalNetwork resources. type hciLogicalNetworkState struct { // The ID of Custom Location where the Azure Stack HCI Logical Network should exist. Changing this forces a new resource to be created. CustomLocationId *string `pulumi:"customLocationId"` // A list of IPv4 addresses of DNS servers available to VMs deployed in the Logical Networks. Changing this forces a new resource to be created. DnsServers []string `pulumi:"dnsServers"` // The Azure Region where the Azure Stack HCI Logical Network should exist. Changing this forces a new resource to be created. Location *string `pulumi:"location"` // The name which should be used for this Azure Stack HCI Logical Network. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // The name of the Resource Group where the Azure Stack HCI Logical Network should exist. Changing this forces a new resource to be created. ResourceGroupName *string `pulumi:"resourceGroupName"` // A `subnet` block as defined below. Changing this forces a new resource to be created. Subnet *HciLogicalNetworkSubnet `pulumi:"subnet"` // A mapping of tags which should be assigned to the Azure Stack HCI Logical Network. Tags map[string]string `pulumi:"tags"` // The name of the virtual switch on the cluster used to associate with the Azure Stack HCI Logical Network. Possible switch names can be retrieved by following this [Azure guide](https://learn.microsoft.com/azure-stack/hci/manage/create-logical-networks?tabs=azurecli#prerequisites). Changing this forces a new resource to be created. VirtualSwitchName *string `pulumi:"virtualSwitchName"` } type HciLogicalNetworkState struct { // The ID of Custom Location where the Azure Stack HCI Logical Network should exist. Changing this forces a new resource to be created. CustomLocationId pulumi.StringPtrInput // A list of IPv4 addresses of DNS servers available to VMs deployed in the Logical Networks. Changing this forces a new resource to be created. DnsServers pulumi.StringArrayInput // The Azure Region where the Azure Stack HCI Logical Network should exist. Changing this forces a new resource to be created. Location pulumi.StringPtrInput // The name which should be used for this Azure Stack HCI Logical Network. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // The name of the Resource Group where the Azure Stack HCI Logical Network should exist. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringPtrInput // A `subnet` block as defined below. Changing this forces a new resource to be created. Subnet HciLogicalNetworkSubnetPtrInput // A mapping of tags which should be assigned to the Azure Stack HCI Logical Network. Tags pulumi.StringMapInput // The name of the virtual switch on the cluster used to associate with the Azure Stack HCI Logical Network. Possible switch names can be retrieved by following this [Azure guide](https://learn.microsoft.com/azure-stack/hci/manage/create-logical-networks?tabs=azurecli#prerequisites). Changing this forces a new resource to be created. VirtualSwitchName pulumi.StringPtrInput } func (HciLogicalNetworkState) ElementType() reflect.Type { return reflect.TypeOf((*hciLogicalNetworkState)(nil)).Elem() } type hciLogicalNetworkArgs struct { // The ID of Custom Location where the Azure Stack HCI Logical Network should exist. Changing this forces a new resource to be created. CustomLocationId string `pulumi:"customLocationId"` // A list of IPv4 addresses of DNS servers available to VMs deployed in the Logical Networks. Changing this forces a new resource to be created. DnsServers []string `pulumi:"dnsServers"` // The Azure Region where the Azure Stack HCI Logical Network should exist. Changing this forces a new resource to be created. Location *string `pulumi:"location"` // The name which should be used for this Azure Stack HCI Logical Network. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // The name of the Resource Group where the Azure Stack HCI Logical Network should exist. Changing this forces a new resource to be created. ResourceGroupName string `pulumi:"resourceGroupName"` // A `subnet` block as defined below. Changing this forces a new resource to be created. Subnet HciLogicalNetworkSubnet `pulumi:"subnet"` // A mapping of tags which should be assigned to the Azure Stack HCI Logical Network. Tags map[string]string `pulumi:"tags"` // The name of the virtual switch on the cluster used to associate with the Azure Stack HCI Logical Network. Possible switch names can be retrieved by following this [Azure guide](https://learn.microsoft.com/azure-stack/hci/manage/create-logical-networks?tabs=azurecli#prerequisites). Changing this forces a new resource to be created. VirtualSwitchName string `pulumi:"virtualSwitchName"` } // The set of arguments for constructing a HciLogicalNetwork resource. type HciLogicalNetworkArgs struct { // The ID of Custom Location where the Azure Stack HCI Logical Network should exist. Changing this forces a new resource to be created. CustomLocationId pulumi.StringInput // A list of IPv4 addresses of DNS servers available to VMs deployed in the Logical Networks. Changing this forces a new resource to be created. DnsServers pulumi.StringArrayInput // The Azure Region where the Azure Stack HCI Logical Network should exist. Changing this forces a new resource to be created. Location pulumi.StringPtrInput // The name which should be used for this Azure Stack HCI Logical Network. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // The name of the Resource Group where the Azure Stack HCI Logical Network should exist. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringInput // A `subnet` block as defined below. Changing this forces a new resource to be created. Subnet HciLogicalNetworkSubnetInput // A mapping of tags which should be assigned to the Azure Stack HCI Logical Network. Tags pulumi.StringMapInput // The name of the virtual switch on the cluster used to associate with the Azure Stack HCI Logical Network. Possible switch names can be retrieved by following this [Azure guide](https://learn.microsoft.com/azure-stack/hci/manage/create-logical-networks?tabs=azurecli#prerequisites). Changing this forces a new resource to be created. VirtualSwitchName pulumi.StringInput } func (HciLogicalNetworkArgs) ElementType() reflect.Type { return reflect.TypeOf((*hciLogicalNetworkArgs)(nil)).Elem() } type HciLogicalNetworkInput interface { pulumi.Input ToHciLogicalNetworkOutput() HciLogicalNetworkOutput ToHciLogicalNetworkOutputWithContext(ctx context.Context) HciLogicalNetworkOutput } func (*HciLogicalNetwork) ElementType() reflect.Type { return reflect.TypeOf((**HciLogicalNetwork)(nil)).Elem() } func (i *HciLogicalNetwork) ToHciLogicalNetworkOutput() HciLogicalNetworkOutput { return i.ToHciLogicalNetworkOutputWithContext(context.Background()) } func (i *HciLogicalNetwork) ToHciLogicalNetworkOutputWithContext(ctx context.Context) HciLogicalNetworkOutput { return pulumi.ToOutputWithContext(ctx, i).(HciLogicalNetworkOutput) } // HciLogicalNetworkArrayInput is an input type that accepts HciLogicalNetworkArray and HciLogicalNetworkArrayOutput values. // You can construct a concrete instance of `HciLogicalNetworkArrayInput` via: // // HciLogicalNetworkArray{ HciLogicalNetworkArgs{...} } type HciLogicalNetworkArrayInput interface { pulumi.Input ToHciLogicalNetworkArrayOutput() HciLogicalNetworkArrayOutput ToHciLogicalNetworkArrayOutputWithContext(context.Context) HciLogicalNetworkArrayOutput } type HciLogicalNetworkArray []HciLogicalNetworkInput func (HciLogicalNetworkArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*HciLogicalNetwork)(nil)).Elem() } func (i HciLogicalNetworkArray) ToHciLogicalNetworkArrayOutput() HciLogicalNetworkArrayOutput { return i.ToHciLogicalNetworkArrayOutputWithContext(context.Background()) } func (i HciLogicalNetworkArray) ToHciLogicalNetworkArrayOutputWithContext(ctx context.Context) HciLogicalNetworkArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(HciLogicalNetworkArrayOutput) } // HciLogicalNetworkMapInput is an input type that accepts HciLogicalNetworkMap and HciLogicalNetworkMapOutput values. // You can construct a concrete instance of `HciLogicalNetworkMapInput` via: // // HciLogicalNetworkMap{ "key": HciLogicalNetworkArgs{...} } type HciLogicalNetworkMapInput interface { pulumi.Input ToHciLogicalNetworkMapOutput() HciLogicalNetworkMapOutput ToHciLogicalNetworkMapOutputWithContext(context.Context) HciLogicalNetworkMapOutput } type HciLogicalNetworkMap map[string]HciLogicalNetworkInput func (HciLogicalNetworkMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*HciLogicalNetwork)(nil)).Elem() } func (i HciLogicalNetworkMap) ToHciLogicalNetworkMapOutput() HciLogicalNetworkMapOutput { return i.ToHciLogicalNetworkMapOutputWithContext(context.Background()) } func (i HciLogicalNetworkMap) ToHciLogicalNetworkMapOutputWithContext(ctx context.Context) HciLogicalNetworkMapOutput { return pulumi.ToOutputWithContext(ctx, i).(HciLogicalNetworkMapOutput) } type HciLogicalNetworkOutput struct{ *pulumi.OutputState } func (HciLogicalNetworkOutput) ElementType() reflect.Type { return reflect.TypeOf((**HciLogicalNetwork)(nil)).Elem() } func (o HciLogicalNetworkOutput) ToHciLogicalNetworkOutput() HciLogicalNetworkOutput { return o } func (o HciLogicalNetworkOutput) ToHciLogicalNetworkOutputWithContext(ctx context.Context) HciLogicalNetworkOutput { return o } // The ID of Custom Location where the Azure Stack HCI Logical Network should exist. Changing this forces a new resource to be created. func (o HciLogicalNetworkOutput) CustomLocationId() pulumi.StringOutput { return o.ApplyT(func(v *HciLogicalNetwork) pulumi.StringOutput { return v.CustomLocationId }).(pulumi.StringOutput) } // A list of IPv4 addresses of DNS servers available to VMs deployed in the Logical Networks. Changing this forces a new resource to be created. func (o HciLogicalNetworkOutput) DnsServers() pulumi.StringArrayOutput { return o.ApplyT(func(v *HciLogicalNetwork) pulumi.StringArrayOutput { return v.DnsServers }).(pulumi.StringArrayOutput) } // The Azure Region where the Azure Stack HCI Logical Network should exist. Changing this forces a new resource to be created. func (o HciLogicalNetworkOutput) Location() pulumi.StringOutput { return o.ApplyT(func(v *HciLogicalNetwork) pulumi.StringOutput { return v.Location }).(pulumi.StringOutput) } // The name which should be used for this Azure Stack HCI Logical Network. Changing this forces a new resource to be created. func (o HciLogicalNetworkOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *HciLogicalNetwork) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // The name of the Resource Group where the Azure Stack HCI Logical Network should exist. Changing this forces a new resource to be created. func (o HciLogicalNetworkOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v *HciLogicalNetwork) pulumi.StringOutput { return v.ResourceGroupName }).(pulumi.StringOutput) } // A `subnet` block as defined below. Changing this forces a new resource to be created. func (o HciLogicalNetworkOutput) Subnet() HciLogicalNetworkSubnetOutput { return o.ApplyT(func(v *HciLogicalNetwork) HciLogicalNetworkSubnetOutput { return v.Subnet }).(HciLogicalNetworkSubnetOutput) } // A mapping of tags which should be assigned to the Azure Stack HCI Logical Network. func (o HciLogicalNetworkOutput) Tags() pulumi.StringMapOutput { return o.ApplyT(func(v *HciLogicalNetwork) pulumi.StringMapOutput { return v.Tags }).(pulumi.StringMapOutput) } // The name of the virtual switch on the cluster used to associate with the Azure Stack HCI Logical Network. Possible switch names can be retrieved by following this [Azure guide](https://learn.microsoft.com/azure-stack/hci/manage/create-logical-networks?tabs=azurecli#prerequisites). Changing this forces a new resource to be created. func (o HciLogicalNetworkOutput) VirtualSwitchName() pulumi.StringOutput { return o.ApplyT(func(v *HciLogicalNetwork) pulumi.StringOutput { return v.VirtualSwitchName }).(pulumi.StringOutput) } type HciLogicalNetworkArrayOutput struct{ *pulumi.OutputState } func (HciLogicalNetworkArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*HciLogicalNetwork)(nil)).Elem() } func (o HciLogicalNetworkArrayOutput) ToHciLogicalNetworkArrayOutput() HciLogicalNetworkArrayOutput { return o } func (o HciLogicalNetworkArrayOutput) ToHciLogicalNetworkArrayOutputWithContext(ctx context.Context) HciLogicalNetworkArrayOutput { return o } func (o HciLogicalNetworkArrayOutput) Index(i pulumi.IntInput) HciLogicalNetworkOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *HciLogicalNetwork { return vs[0].([]*HciLogicalNetwork)[vs[1].(int)] }).(HciLogicalNetworkOutput) } type HciLogicalNetworkMapOutput struct{ *pulumi.OutputState } func (HciLogicalNetworkMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*HciLogicalNetwork)(nil)).Elem() } func (o HciLogicalNetworkMapOutput) ToHciLogicalNetworkMapOutput() HciLogicalNetworkMapOutput { return o } func (o HciLogicalNetworkMapOutput) ToHciLogicalNetworkMapOutputWithContext(ctx context.Context) HciLogicalNetworkMapOutput { return o } func (o HciLogicalNetworkMapOutput) MapIndex(k pulumi.StringInput) HciLogicalNetworkOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *HciLogicalNetwork { return vs[0].(map[string]*HciLogicalNetwork)[vs[1].(string)] }).(HciLogicalNetworkOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*HciLogicalNetworkInput)(nil)).Elem(), &HciLogicalNetwork{}) pulumi.RegisterInputType(reflect.TypeOf((*HciLogicalNetworkArrayInput)(nil)).Elem(), HciLogicalNetworkArray{}) pulumi.RegisterInputType(reflect.TypeOf((*HciLogicalNetworkMapInput)(nil)).Elem(), HciLogicalNetworkMap{}) pulumi.RegisterOutputType(HciLogicalNetworkOutput{}) pulumi.RegisterOutputType(HciLogicalNetworkArrayOutput{}) pulumi.RegisterOutputType(HciLogicalNetworkMapOutput{}) }
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/stack/hciStoragePath.go
sdk/go/azure/stack/hciStoragePath.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 stack 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 Stack HCI Storage Path. // // ## 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/stack" // "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 // } // _, err = stack.NewHciStoragePath(ctx, "example", &stack.HciStoragePathArgs{ // Name: pulumi.String("example-sp"), // ResourceGroupName: example.Name, // Location: example.Location, // CustomLocationId: pulumi.String("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ExtendedLocation/customLocations/cl1"), // Path: pulumi.String("C:\\ClusterStorage\\UserStorage_2\\sp-example"), // Tags: pulumi.StringMap{ // "foo": pulumi.String("bar"), // }, // }) // 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.AzureStackHCI` - 2024-01-01 // // ## Import // // Azure Stack HCI Storage Paths can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:stack/hciStoragePath:HciStoragePath example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AzureStackHCI/storageContainers/storage1 // ``` type HciStoragePath struct { pulumi.CustomResourceState // The ID of Custom Location where the Azure Stack HCI Storage Path should exist. Changing this forces a new resource to be created. CustomLocationId pulumi.StringOutput `pulumi:"customLocationId"` // The Azure Region where the Azure Stack HCI Storage Path should exist. Changing this forces a new resource to be created. Location pulumi.StringOutput `pulumi:"location"` // The name which should be used for this Azure Stack HCI Storage Path. Changing this forces a new resource to be created. Name pulumi.StringOutput `pulumi:"name"` // The file path on the disk to create the Storage Path. Changing this forces a new resource to be created. Path pulumi.StringOutput `pulumi:"path"` // The name of the Resource Group where the Azure Stack HCI Storage Path should exist. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // A mapping of tags which should be assigned to the Azure Stack HCI Storage Path. Tags pulumi.StringMapOutput `pulumi:"tags"` } // NewHciStoragePath registers a new resource with the given unique name, arguments, and options. func NewHciStoragePath(ctx *pulumi.Context, name string, args *HciStoragePathArgs, opts ...pulumi.ResourceOption) (*HciStoragePath, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.CustomLocationId == nil { return nil, errors.New("invalid value for required argument 'CustomLocationId'") } if args.Path == nil { return nil, errors.New("invalid value for required argument 'Path'") } if args.ResourceGroupName == nil { return nil, errors.New("invalid value for required argument 'ResourceGroupName'") } opts = internal.PkgResourceDefaultOpts(opts) var resource HciStoragePath err := ctx.RegisterResource("azure:stack/hciStoragePath:HciStoragePath", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetHciStoragePath gets an existing HciStoragePath 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 GetHciStoragePath(ctx *pulumi.Context, name string, id pulumi.IDInput, state *HciStoragePathState, opts ...pulumi.ResourceOption) (*HciStoragePath, error) { var resource HciStoragePath err := ctx.ReadResource("azure:stack/hciStoragePath:HciStoragePath", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering HciStoragePath resources. type hciStoragePathState struct { // The ID of Custom Location where the Azure Stack HCI Storage Path should exist. Changing this forces a new resource to be created. CustomLocationId *string `pulumi:"customLocationId"` // The Azure Region where the Azure Stack HCI Storage Path should exist. Changing this forces a new resource to be created. Location *string `pulumi:"location"` // The name which should be used for this Azure Stack HCI Storage Path. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // The file path on the disk to create the Storage Path. Changing this forces a new resource to be created. Path *string `pulumi:"path"` // The name of the Resource Group where the Azure Stack HCI Storage Path should exist. Changing this forces a new resource to be created. ResourceGroupName *string `pulumi:"resourceGroupName"` // A mapping of tags which should be assigned to the Azure Stack HCI Storage Path. Tags map[string]string `pulumi:"tags"` } type HciStoragePathState struct { // The ID of Custom Location where the Azure Stack HCI Storage Path should exist. Changing this forces a new resource to be created. CustomLocationId pulumi.StringPtrInput // The Azure Region where the Azure Stack HCI Storage Path should exist. Changing this forces a new resource to be created. Location pulumi.StringPtrInput // The name which should be used for this Azure Stack HCI Storage Path. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // The file path on the disk to create the Storage Path. Changing this forces a new resource to be created. Path pulumi.StringPtrInput // The name of the Resource Group where the Azure Stack HCI Storage Path should exist. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringPtrInput // A mapping of tags which should be assigned to the Azure Stack HCI Storage Path. Tags pulumi.StringMapInput } func (HciStoragePathState) ElementType() reflect.Type { return reflect.TypeOf((*hciStoragePathState)(nil)).Elem() } type hciStoragePathArgs struct { // The ID of Custom Location where the Azure Stack HCI Storage Path should exist. Changing this forces a new resource to be created. CustomLocationId string `pulumi:"customLocationId"` // The Azure Region where the Azure Stack HCI Storage Path should exist. Changing this forces a new resource to be created. Location *string `pulumi:"location"` // The name which should be used for this Azure Stack HCI Storage Path. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // The file path on the disk to create the Storage Path. Changing this forces a new resource to be created. Path string `pulumi:"path"` // The name of the Resource Group where the Azure Stack HCI Storage Path should exist. Changing this forces a new resource to be created. ResourceGroupName string `pulumi:"resourceGroupName"` // A mapping of tags which should be assigned to the Azure Stack HCI Storage Path. Tags map[string]string `pulumi:"tags"` } // The set of arguments for constructing a HciStoragePath resource. type HciStoragePathArgs struct { // The ID of Custom Location where the Azure Stack HCI Storage Path should exist. Changing this forces a new resource to be created. CustomLocationId pulumi.StringInput // The Azure Region where the Azure Stack HCI Storage Path should exist. Changing this forces a new resource to be created. Location pulumi.StringPtrInput // The name which should be used for this Azure Stack HCI Storage Path. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // The file path on the disk to create the Storage Path. Changing this forces a new resource to be created. Path pulumi.StringInput // The name of the Resource Group where the Azure Stack HCI Storage Path should exist. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringInput // A mapping of tags which should be assigned to the Azure Stack HCI Storage Path. Tags pulumi.StringMapInput } func (HciStoragePathArgs) ElementType() reflect.Type { return reflect.TypeOf((*hciStoragePathArgs)(nil)).Elem() } type HciStoragePathInput interface { pulumi.Input ToHciStoragePathOutput() HciStoragePathOutput ToHciStoragePathOutputWithContext(ctx context.Context) HciStoragePathOutput } func (*HciStoragePath) ElementType() reflect.Type { return reflect.TypeOf((**HciStoragePath)(nil)).Elem() } func (i *HciStoragePath) ToHciStoragePathOutput() HciStoragePathOutput { return i.ToHciStoragePathOutputWithContext(context.Background()) } func (i *HciStoragePath) ToHciStoragePathOutputWithContext(ctx context.Context) HciStoragePathOutput { return pulumi.ToOutputWithContext(ctx, i).(HciStoragePathOutput) } // HciStoragePathArrayInput is an input type that accepts HciStoragePathArray and HciStoragePathArrayOutput values. // You can construct a concrete instance of `HciStoragePathArrayInput` via: // // HciStoragePathArray{ HciStoragePathArgs{...} } type HciStoragePathArrayInput interface { pulumi.Input ToHciStoragePathArrayOutput() HciStoragePathArrayOutput ToHciStoragePathArrayOutputWithContext(context.Context) HciStoragePathArrayOutput } type HciStoragePathArray []HciStoragePathInput func (HciStoragePathArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*HciStoragePath)(nil)).Elem() } func (i HciStoragePathArray) ToHciStoragePathArrayOutput() HciStoragePathArrayOutput { return i.ToHciStoragePathArrayOutputWithContext(context.Background()) } func (i HciStoragePathArray) ToHciStoragePathArrayOutputWithContext(ctx context.Context) HciStoragePathArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(HciStoragePathArrayOutput) } // HciStoragePathMapInput is an input type that accepts HciStoragePathMap and HciStoragePathMapOutput values. // You can construct a concrete instance of `HciStoragePathMapInput` via: // // HciStoragePathMap{ "key": HciStoragePathArgs{...} } type HciStoragePathMapInput interface { pulumi.Input ToHciStoragePathMapOutput() HciStoragePathMapOutput ToHciStoragePathMapOutputWithContext(context.Context) HciStoragePathMapOutput } type HciStoragePathMap map[string]HciStoragePathInput func (HciStoragePathMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*HciStoragePath)(nil)).Elem() } func (i HciStoragePathMap) ToHciStoragePathMapOutput() HciStoragePathMapOutput { return i.ToHciStoragePathMapOutputWithContext(context.Background()) } func (i HciStoragePathMap) ToHciStoragePathMapOutputWithContext(ctx context.Context) HciStoragePathMapOutput { return pulumi.ToOutputWithContext(ctx, i).(HciStoragePathMapOutput) } type HciStoragePathOutput struct{ *pulumi.OutputState } func (HciStoragePathOutput) ElementType() reflect.Type { return reflect.TypeOf((**HciStoragePath)(nil)).Elem() } func (o HciStoragePathOutput) ToHciStoragePathOutput() HciStoragePathOutput { return o } func (o HciStoragePathOutput) ToHciStoragePathOutputWithContext(ctx context.Context) HciStoragePathOutput { return o } // The ID of Custom Location where the Azure Stack HCI Storage Path should exist. Changing this forces a new resource to be created. func (o HciStoragePathOutput) CustomLocationId() pulumi.StringOutput { return o.ApplyT(func(v *HciStoragePath) pulumi.StringOutput { return v.CustomLocationId }).(pulumi.StringOutput) } // The Azure Region where the Azure Stack HCI Storage Path should exist. Changing this forces a new resource to be created. func (o HciStoragePathOutput) Location() pulumi.StringOutput { return o.ApplyT(func(v *HciStoragePath) pulumi.StringOutput { return v.Location }).(pulumi.StringOutput) } // The name which should be used for this Azure Stack HCI Storage Path. Changing this forces a new resource to be created. func (o HciStoragePathOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *HciStoragePath) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // The file path on the disk to create the Storage Path. Changing this forces a new resource to be created. func (o HciStoragePathOutput) Path() pulumi.StringOutput { return o.ApplyT(func(v *HciStoragePath) pulumi.StringOutput { return v.Path }).(pulumi.StringOutput) } // The name of the Resource Group where the Azure Stack HCI Storage Path should exist. Changing this forces a new resource to be created. func (o HciStoragePathOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v *HciStoragePath) pulumi.StringOutput { return v.ResourceGroupName }).(pulumi.StringOutput) } // A mapping of tags which should be assigned to the Azure Stack HCI Storage Path. func (o HciStoragePathOutput) Tags() pulumi.StringMapOutput { return o.ApplyT(func(v *HciStoragePath) pulumi.StringMapOutput { return v.Tags }).(pulumi.StringMapOutput) } type HciStoragePathArrayOutput struct{ *pulumi.OutputState } func (HciStoragePathArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*HciStoragePath)(nil)).Elem() } func (o HciStoragePathArrayOutput) ToHciStoragePathArrayOutput() HciStoragePathArrayOutput { return o } func (o HciStoragePathArrayOutput) ToHciStoragePathArrayOutputWithContext(ctx context.Context) HciStoragePathArrayOutput { return o } func (o HciStoragePathArrayOutput) Index(i pulumi.IntInput) HciStoragePathOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *HciStoragePath { return vs[0].([]*HciStoragePath)[vs[1].(int)] }).(HciStoragePathOutput) } type HciStoragePathMapOutput struct{ *pulumi.OutputState } func (HciStoragePathMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*HciStoragePath)(nil)).Elem() } func (o HciStoragePathMapOutput) ToHciStoragePathMapOutput() HciStoragePathMapOutput { return o } func (o HciStoragePathMapOutput) ToHciStoragePathMapOutputWithContext(ctx context.Context) HciStoragePathMapOutput { return o } func (o HciStoragePathMapOutput) MapIndex(k pulumi.StringInput) HciStoragePathOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *HciStoragePath { return vs[0].(map[string]*HciStoragePath)[vs[1].(string)] }).(HciStoragePathOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*HciStoragePathInput)(nil)).Elem(), &HciStoragePath{}) pulumi.RegisterInputType(reflect.TypeOf((*HciStoragePathArrayInput)(nil)).Elem(), HciStoragePathArray{}) pulumi.RegisterInputType(reflect.TypeOf((*HciStoragePathMapInput)(nil)).Elem(), HciStoragePathMap{}) pulumi.RegisterOutputType(HciStoragePathOutput{}) pulumi.RegisterOutputType(HciStoragePathArrayOutput{}) pulumi.RegisterOutputType(HciStoragePathMapOutput{}) }
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/stack/hciVirtualHardDisk.go
sdk/go/azure/stack/hciVirtualHardDisk.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 stack 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 Stack HCI Virtual Hard Disk. // // ## 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/stack" // "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 // } // exampleHciStoragePath, err := stack.NewHciStoragePath(ctx, "example", &stack.HciStoragePathArgs{ // Name: pulumi.String("example-sp"), // ResourceGroupName: example.Name, // Location: example.Location, // CustomLocationId: pulumi.String("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ExtendedLocation/customLocations/cl1"), // Path: pulumi.String("C:\\ClusterStorage\\UserStorage_2\\sp-example"), // Tags: pulumi.StringMap{ // "foo": pulumi.String("bar"), // }, // }) // if err != nil { // return err // } // _, err = stack.NewHciVirtualHardDisk(ctx, "example", &stack.HciVirtualHardDiskArgs{ // Name: pulumi.String("example-vhd"), // ResourceGroupName: example.Name, // Location: example.Location, // CustomLocationId: pulumi.String("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ExtendedLocation/customLocations/cl1"), // DiskSizeInGb: pulumi.Int(2), // StoragePathId: exampleHciStoragePath.ID(), // Tags: pulumi.StringMap{ // "foo": pulumi.String("bar"), // }, // }) // 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.AzureStackHCI` - 2024-01-01 // // ## Import // // Azure Stack HCI Virtual Hard Disks can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:stack/hciVirtualHardDisk:HciVirtualHardDisk example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.AzureStackHCI/virtualHardDisks/disk1 // ``` type HciVirtualHardDisk struct { pulumi.CustomResourceState // The block size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. BlockSizeInBytes pulumi.IntPtrOutput `pulumi:"blockSizeInBytes"` // The ID of the Custom Location where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. CustomLocationId pulumi.StringOutput `pulumi:"customLocationId"` // The format of the disk file. Possible values are `vhdx` and `vhd`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. DiskFileFormat pulumi.StringPtrOutput `pulumi:"diskFileFormat"` // The size of the disk in GB. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. DiskSizeInGb pulumi.IntOutput `pulumi:"diskSizeInGb"` // Whether to enable dynamic sizing for the Azure Stack HCI Virtual Hard Disk. Defaults to `false`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. DynamicEnabled pulumi.BoolPtrOutput `pulumi:"dynamicEnabled"` // The hypervisor generation of the Azure Stack HCI Virtual Hard Disk. Possible values are `V1` and `V2`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. HypervGeneration pulumi.StringPtrOutput `pulumi:"hypervGeneration"` // The Azure Region where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. Location pulumi.StringOutput `pulumi:"location"` // The logical sector size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. LogicalSectorInBytes pulumi.IntPtrOutput `pulumi:"logicalSectorInBytes"` // The name which should be used for this Azure Stack HCI Virtual Hard Disk. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. Name pulumi.StringOutput `pulumi:"name"` // The physical sector size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. PhysicalSectorInBytes pulumi.IntPtrOutput `pulumi:"physicalSectorInBytes"` // The name of the Resource Group where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // The ID of the Azure Stack HCI Storage Path used for this Virtual Hard Disk. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. // // > **Note:** If `storagePathId` is not specified, the Virtual Hard Disk will be placed in a high availability Storage Path. If you experience a diff you may need to add this to `ignoreChanges`. StoragePathId pulumi.StringPtrOutput `pulumi:"storagePathId"` // A mapping of tags which should be assigned to the Azure Stack HCI Virtual Hard Disk. Tags pulumi.StringMapOutput `pulumi:"tags"` } // NewHciVirtualHardDisk registers a new resource with the given unique name, arguments, and options. func NewHciVirtualHardDisk(ctx *pulumi.Context, name string, args *HciVirtualHardDiskArgs, opts ...pulumi.ResourceOption) (*HciVirtualHardDisk, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.CustomLocationId == nil { return nil, errors.New("invalid value for required argument 'CustomLocationId'") } if args.DiskSizeInGb == nil { return nil, errors.New("invalid value for required argument 'DiskSizeInGb'") } if args.ResourceGroupName == nil { return nil, errors.New("invalid value for required argument 'ResourceGroupName'") } opts = internal.PkgResourceDefaultOpts(opts) var resource HciVirtualHardDisk err := ctx.RegisterResource("azure:stack/hciVirtualHardDisk:HciVirtualHardDisk", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetHciVirtualHardDisk gets an existing HciVirtualHardDisk 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 GetHciVirtualHardDisk(ctx *pulumi.Context, name string, id pulumi.IDInput, state *HciVirtualHardDiskState, opts ...pulumi.ResourceOption) (*HciVirtualHardDisk, error) { var resource HciVirtualHardDisk err := ctx.ReadResource("azure:stack/hciVirtualHardDisk:HciVirtualHardDisk", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering HciVirtualHardDisk resources. type hciVirtualHardDiskState struct { // The block size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. BlockSizeInBytes *int `pulumi:"blockSizeInBytes"` // The ID of the Custom Location where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. CustomLocationId *string `pulumi:"customLocationId"` // The format of the disk file. Possible values are `vhdx` and `vhd`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. DiskFileFormat *string `pulumi:"diskFileFormat"` // The size of the disk in GB. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. DiskSizeInGb *int `pulumi:"diskSizeInGb"` // Whether to enable dynamic sizing for the Azure Stack HCI Virtual Hard Disk. Defaults to `false`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. DynamicEnabled *bool `pulumi:"dynamicEnabled"` // The hypervisor generation of the Azure Stack HCI Virtual Hard Disk. Possible values are `V1` and `V2`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. HypervGeneration *string `pulumi:"hypervGeneration"` // The Azure Region where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. Location *string `pulumi:"location"` // The logical sector size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. LogicalSectorInBytes *int `pulumi:"logicalSectorInBytes"` // The name which should be used for this Azure Stack HCI Virtual Hard Disk. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. Name *string `pulumi:"name"` // The physical sector size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. PhysicalSectorInBytes *int `pulumi:"physicalSectorInBytes"` // The name of the Resource Group where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. ResourceGroupName *string `pulumi:"resourceGroupName"` // The ID of the Azure Stack HCI Storage Path used for this Virtual Hard Disk. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. // // > **Note:** If `storagePathId` is not specified, the Virtual Hard Disk will be placed in a high availability Storage Path. If you experience a diff you may need to add this to `ignoreChanges`. StoragePathId *string `pulumi:"storagePathId"` // A mapping of tags which should be assigned to the Azure Stack HCI Virtual Hard Disk. Tags map[string]string `pulumi:"tags"` } type HciVirtualHardDiskState struct { // The block size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. BlockSizeInBytes pulumi.IntPtrInput // The ID of the Custom Location where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. CustomLocationId pulumi.StringPtrInput // The format of the disk file. Possible values are `vhdx` and `vhd`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. DiskFileFormat pulumi.StringPtrInput // The size of the disk in GB. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. DiskSizeInGb pulumi.IntPtrInput // Whether to enable dynamic sizing for the Azure Stack HCI Virtual Hard Disk. Defaults to `false`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. DynamicEnabled pulumi.BoolPtrInput // The hypervisor generation of the Azure Stack HCI Virtual Hard Disk. Possible values are `V1` and `V2`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. HypervGeneration pulumi.StringPtrInput // The Azure Region where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. Location pulumi.StringPtrInput // The logical sector size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. LogicalSectorInBytes pulumi.IntPtrInput // The name which should be used for this Azure Stack HCI Virtual Hard Disk. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. Name pulumi.StringPtrInput // The physical sector size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. PhysicalSectorInBytes pulumi.IntPtrInput // The name of the Resource Group where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. ResourceGroupName pulumi.StringPtrInput // The ID of the Azure Stack HCI Storage Path used for this Virtual Hard Disk. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. // // > **Note:** If `storagePathId` is not specified, the Virtual Hard Disk will be placed in a high availability Storage Path. If you experience a diff you may need to add this to `ignoreChanges`. StoragePathId pulumi.StringPtrInput // A mapping of tags which should be assigned to the Azure Stack HCI Virtual Hard Disk. Tags pulumi.StringMapInput } func (HciVirtualHardDiskState) ElementType() reflect.Type { return reflect.TypeOf((*hciVirtualHardDiskState)(nil)).Elem() } type hciVirtualHardDiskArgs struct { // The block size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. BlockSizeInBytes *int `pulumi:"blockSizeInBytes"` // The ID of the Custom Location where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. CustomLocationId string `pulumi:"customLocationId"` // The format of the disk file. Possible values are `vhdx` and `vhd`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. DiskFileFormat *string `pulumi:"diskFileFormat"` // The size of the disk in GB. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. DiskSizeInGb int `pulumi:"diskSizeInGb"` // Whether to enable dynamic sizing for the Azure Stack HCI Virtual Hard Disk. Defaults to `false`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. DynamicEnabled *bool `pulumi:"dynamicEnabled"` // The hypervisor generation of the Azure Stack HCI Virtual Hard Disk. Possible values are `V1` and `V2`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. HypervGeneration *string `pulumi:"hypervGeneration"` // The Azure Region where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. Location *string `pulumi:"location"` // The logical sector size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. LogicalSectorInBytes *int `pulumi:"logicalSectorInBytes"` // The name which should be used for this Azure Stack HCI Virtual Hard Disk. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. Name *string `pulumi:"name"` // The physical sector size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. PhysicalSectorInBytes *int `pulumi:"physicalSectorInBytes"` // The name of the Resource Group where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. ResourceGroupName string `pulumi:"resourceGroupName"` // The ID of the Azure Stack HCI Storage Path used for this Virtual Hard Disk. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. // // > **Note:** If `storagePathId` is not specified, the Virtual Hard Disk will be placed in a high availability Storage Path. If you experience a diff you may need to add this to `ignoreChanges`. StoragePathId *string `pulumi:"storagePathId"` // A mapping of tags which should be assigned to the Azure Stack HCI Virtual Hard Disk. Tags map[string]string `pulumi:"tags"` } // The set of arguments for constructing a HciVirtualHardDisk resource. type HciVirtualHardDiskArgs struct { // The block size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. BlockSizeInBytes pulumi.IntPtrInput // The ID of the Custom Location where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. CustomLocationId pulumi.StringInput // The format of the disk file. Possible values are `vhdx` and `vhd`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. DiskFileFormat pulumi.StringPtrInput // The size of the disk in GB. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. DiskSizeInGb pulumi.IntInput // Whether to enable dynamic sizing for the Azure Stack HCI Virtual Hard Disk. Defaults to `false`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. DynamicEnabled pulumi.BoolPtrInput // The hypervisor generation of the Azure Stack HCI Virtual Hard Disk. Possible values are `V1` and `V2`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. HypervGeneration pulumi.StringPtrInput // The Azure Region where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. Location pulumi.StringPtrInput // The logical sector size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. LogicalSectorInBytes pulumi.IntPtrInput // The name which should be used for this Azure Stack HCI Virtual Hard Disk. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. Name pulumi.StringPtrInput // The physical sector size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. PhysicalSectorInBytes pulumi.IntPtrInput // The name of the Resource Group where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. ResourceGroupName pulumi.StringInput // The ID of the Azure Stack HCI Storage Path used for this Virtual Hard Disk. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. // // > **Note:** If `storagePathId` is not specified, the Virtual Hard Disk will be placed in a high availability Storage Path. If you experience a diff you may need to add this to `ignoreChanges`. StoragePathId pulumi.StringPtrInput // A mapping of tags which should be assigned to the Azure Stack HCI Virtual Hard Disk. Tags pulumi.StringMapInput } func (HciVirtualHardDiskArgs) ElementType() reflect.Type { return reflect.TypeOf((*hciVirtualHardDiskArgs)(nil)).Elem() } type HciVirtualHardDiskInput interface { pulumi.Input ToHciVirtualHardDiskOutput() HciVirtualHardDiskOutput ToHciVirtualHardDiskOutputWithContext(ctx context.Context) HciVirtualHardDiskOutput } func (*HciVirtualHardDisk) ElementType() reflect.Type { return reflect.TypeOf((**HciVirtualHardDisk)(nil)).Elem() } func (i *HciVirtualHardDisk) ToHciVirtualHardDiskOutput() HciVirtualHardDiskOutput { return i.ToHciVirtualHardDiskOutputWithContext(context.Background()) } func (i *HciVirtualHardDisk) ToHciVirtualHardDiskOutputWithContext(ctx context.Context) HciVirtualHardDiskOutput { return pulumi.ToOutputWithContext(ctx, i).(HciVirtualHardDiskOutput) } // HciVirtualHardDiskArrayInput is an input type that accepts HciVirtualHardDiskArray and HciVirtualHardDiskArrayOutput values. // You can construct a concrete instance of `HciVirtualHardDiskArrayInput` via: // // HciVirtualHardDiskArray{ HciVirtualHardDiskArgs{...} } type HciVirtualHardDiskArrayInput interface { pulumi.Input ToHciVirtualHardDiskArrayOutput() HciVirtualHardDiskArrayOutput ToHciVirtualHardDiskArrayOutputWithContext(context.Context) HciVirtualHardDiskArrayOutput } type HciVirtualHardDiskArray []HciVirtualHardDiskInput func (HciVirtualHardDiskArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*HciVirtualHardDisk)(nil)).Elem() } func (i HciVirtualHardDiskArray) ToHciVirtualHardDiskArrayOutput() HciVirtualHardDiskArrayOutput { return i.ToHciVirtualHardDiskArrayOutputWithContext(context.Background()) } func (i HciVirtualHardDiskArray) ToHciVirtualHardDiskArrayOutputWithContext(ctx context.Context) HciVirtualHardDiskArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(HciVirtualHardDiskArrayOutput) } // HciVirtualHardDiskMapInput is an input type that accepts HciVirtualHardDiskMap and HciVirtualHardDiskMapOutput values. // You can construct a concrete instance of `HciVirtualHardDiskMapInput` via: // // HciVirtualHardDiskMap{ "key": HciVirtualHardDiskArgs{...} } type HciVirtualHardDiskMapInput interface { pulumi.Input ToHciVirtualHardDiskMapOutput() HciVirtualHardDiskMapOutput ToHciVirtualHardDiskMapOutputWithContext(context.Context) HciVirtualHardDiskMapOutput } type HciVirtualHardDiskMap map[string]HciVirtualHardDiskInput func (HciVirtualHardDiskMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*HciVirtualHardDisk)(nil)).Elem() } func (i HciVirtualHardDiskMap) ToHciVirtualHardDiskMapOutput() HciVirtualHardDiskMapOutput { return i.ToHciVirtualHardDiskMapOutputWithContext(context.Background()) } func (i HciVirtualHardDiskMap) ToHciVirtualHardDiskMapOutputWithContext(ctx context.Context) HciVirtualHardDiskMapOutput { return pulumi.ToOutputWithContext(ctx, i).(HciVirtualHardDiskMapOutput) } type HciVirtualHardDiskOutput struct{ *pulumi.OutputState } func (HciVirtualHardDiskOutput) ElementType() reflect.Type { return reflect.TypeOf((**HciVirtualHardDisk)(nil)).Elem() } func (o HciVirtualHardDiskOutput) ToHciVirtualHardDiskOutput() HciVirtualHardDiskOutput { return o } func (o HciVirtualHardDiskOutput) ToHciVirtualHardDiskOutputWithContext(ctx context.Context) HciVirtualHardDiskOutput { return o } // The block size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. func (o HciVirtualHardDiskOutput) BlockSizeInBytes() pulumi.IntPtrOutput { return o.ApplyT(func(v *HciVirtualHardDisk) pulumi.IntPtrOutput { return v.BlockSizeInBytes }).(pulumi.IntPtrOutput) } // The ID of the Custom Location where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. func (o HciVirtualHardDiskOutput) CustomLocationId() pulumi.StringOutput { return o.ApplyT(func(v *HciVirtualHardDisk) pulumi.StringOutput { return v.CustomLocationId }).(pulumi.StringOutput) } // The format of the disk file. Possible values are `vhdx` and `vhd`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. func (o HciVirtualHardDiskOutput) DiskFileFormat() pulumi.StringPtrOutput { return o.ApplyT(func(v *HciVirtualHardDisk) pulumi.StringPtrOutput { return v.DiskFileFormat }).(pulumi.StringPtrOutput) } // The size of the disk in GB. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. func (o HciVirtualHardDiskOutput) DiskSizeInGb() pulumi.IntOutput { return o.ApplyT(func(v *HciVirtualHardDisk) pulumi.IntOutput { return v.DiskSizeInGb }).(pulumi.IntOutput) } // Whether to enable dynamic sizing for the Azure Stack HCI Virtual Hard Disk. Defaults to `false`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. func (o HciVirtualHardDiskOutput) DynamicEnabled() pulumi.BoolPtrOutput { return o.ApplyT(func(v *HciVirtualHardDisk) pulumi.BoolPtrOutput { return v.DynamicEnabled }).(pulumi.BoolPtrOutput) } // The hypervisor generation of the Azure Stack HCI Virtual Hard Disk. Possible values are `V1` and `V2`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. func (o HciVirtualHardDiskOutput) HypervGeneration() pulumi.StringPtrOutput { return o.ApplyT(func(v *HciVirtualHardDisk) pulumi.StringPtrOutput { return v.HypervGeneration }).(pulumi.StringPtrOutput) } // The Azure Region where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. func (o HciVirtualHardDiskOutput) Location() pulumi.StringOutput { return o.ApplyT(func(v *HciVirtualHardDisk) pulumi.StringOutput { return v.Location }).(pulumi.StringOutput) } // The logical sector size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. func (o HciVirtualHardDiskOutput) LogicalSectorInBytes() pulumi.IntPtrOutput { return o.ApplyT(func(v *HciVirtualHardDisk) pulumi.IntPtrOutput { return v.LogicalSectorInBytes }).(pulumi.IntPtrOutput) } // The name which should be used for this Azure Stack HCI Virtual Hard Disk. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. func (o HciVirtualHardDiskOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *HciVirtualHardDisk) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // The physical sector size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. func (o HciVirtualHardDiskOutput) PhysicalSectorInBytes() pulumi.IntPtrOutput { return o.ApplyT(func(v *HciVirtualHardDisk) pulumi.IntPtrOutput { return v.PhysicalSectorInBytes }).(pulumi.IntPtrOutput) } // The name of the Resource Group where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. func (o HciVirtualHardDiskOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v *HciVirtualHardDisk) pulumi.StringOutput { return v.ResourceGroupName }).(pulumi.StringOutput) } // The ID of the Azure Stack HCI Storage Path used for this Virtual Hard Disk. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. // // > **Note:** If `storagePathId` is not specified, the Virtual Hard Disk will be placed in a high availability Storage Path. If you experience a diff you may need to add this to `ignoreChanges`. func (o HciVirtualHardDiskOutput) StoragePathId() pulumi.StringPtrOutput { return o.ApplyT(func(v *HciVirtualHardDisk) pulumi.StringPtrOutput { return v.StoragePathId }).(pulumi.StringPtrOutput) } // A mapping of tags which should be assigned to the Azure Stack HCI Virtual Hard Disk. func (o HciVirtualHardDiskOutput) Tags() pulumi.StringMapOutput { return o.ApplyT(func(v *HciVirtualHardDisk) pulumi.StringMapOutput { return v.Tags }).(pulumi.StringMapOutput) } type HciVirtualHardDiskArrayOutput struct{ *pulumi.OutputState } func (HciVirtualHardDiskArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*HciVirtualHardDisk)(nil)).Elem() } func (o HciVirtualHardDiskArrayOutput) ToHciVirtualHardDiskArrayOutput() HciVirtualHardDiskArrayOutput { return o } func (o HciVirtualHardDiskArrayOutput) ToHciVirtualHardDiskArrayOutputWithContext(ctx context.Context) HciVirtualHardDiskArrayOutput { return o } func (o HciVirtualHardDiskArrayOutput) Index(i pulumi.IntInput) HciVirtualHardDiskOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *HciVirtualHardDisk { return vs[0].([]*HciVirtualHardDisk)[vs[1].(int)] }).(HciVirtualHardDiskOutput) } type HciVirtualHardDiskMapOutput struct{ *pulumi.OutputState } func (HciVirtualHardDiskMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*HciVirtualHardDisk)(nil)).Elem() } func (o HciVirtualHardDiskMapOutput) ToHciVirtualHardDiskMapOutput() HciVirtualHardDiskMapOutput { return o } func (o HciVirtualHardDiskMapOutput) ToHciVirtualHardDiskMapOutputWithContext(ctx context.Context) HciVirtualHardDiskMapOutput { return o } func (o HciVirtualHardDiskMapOutput) MapIndex(k pulumi.StringInput) HciVirtualHardDiskOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *HciVirtualHardDisk { return vs[0].(map[string]*HciVirtualHardDisk)[vs[1].(string)] }).(HciVirtualHardDiskOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*HciVirtualHardDiskInput)(nil)).Elem(), &HciVirtualHardDisk{}) pulumi.RegisterInputType(reflect.TypeOf((*HciVirtualHardDiskArrayInput)(nil)).Elem(), HciVirtualHardDiskArray{}) pulumi.RegisterInputType(reflect.TypeOf((*HciVirtualHardDiskMapInput)(nil)).Elem(), HciVirtualHardDiskMap{}) pulumi.RegisterOutputType(HciVirtualHardDiskOutput{}) pulumi.RegisterOutputType(HciVirtualHardDiskArrayOutput{}) pulumi.RegisterOutputType(HciVirtualHardDiskMapOutput{}) }
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/stack/getHciCluster.go
sdk/go/azure/stack/getHciCluster.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 stack 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 Azure Stack HCI Cluster instance. // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/stack" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { // example, err := stack.LookupHciCluster(ctx, &stack.LookupHciClusterArgs{ // Name: "existing", // ResourceGroupName: "existing", // }, nil) // if err != nil { // return err // } // ctx.Export("id", example.Id) // ctx.Export("location", example.Location) // ctx.Export("clientId", example.ClientId) // return nil // }) // } // // ``` // // ## API Providers // // <!-- This section is generated, changes will be overwritten --> // This data source uses the following Azure API Providers: // // * `Microsoft.AzureStackHCI` - 2024-01-01, 2022-05-04 func LookupHciCluster(ctx *pulumi.Context, args *LookupHciClusterArgs, opts ...pulumi.InvokeOption) (*LookupHciClusterResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupHciClusterResult err := ctx.Invoke("azure:stack/getHciCluster:getHciCluster", args, &rv, opts...) if err != nil { return nil, err } return &rv, nil } // A collection of arguments for invoking getHciCluster. type LookupHciClusterArgs struct { // The name of the Azure Stack HCI Cluster. Name string `pulumi:"name"` // The name of the Resource Group where the Azure Stack HCI Cluster exists. ResourceGroupName string `pulumi:"resourceGroupName"` } // A collection of values returned by getHciCluster. type LookupHciClusterResult struct { // The ID of the Automanage Configuration assigned to the Azure Stack HCI Cluster. AutomanageConfigurationId string `pulumi:"automanageConfigurationId"` // The Client ID of the Azure Active Directory used by the Azure Stack HCI Cluster. ClientId string `pulumi:"clientId"` // An immutable UUID for the Azure Stack HCI Cluster. CloudId string `pulumi:"cloudId"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` // An `identity` block as defined below. Identities []GetHciClusterIdentity `pulumi:"identities"` // The Azure Region where the Azure Stack HCI Cluster exists. Location string `pulumi:"location"` Name string `pulumi:"name"` ResourceGroupName string `pulumi:"resourceGroupName"` // The object ID of the Resource Provider Service Principal. ResourceProviderObjectId string `pulumi:"resourceProviderObjectId"` // The region specific Data Path Endpoint of the Azure Stack HCI Cluster. ServiceEndpoint string `pulumi:"serviceEndpoint"` // A mapping of tags assigned to the Azure Stack HCI Cluster. Tags map[string]string `pulumi:"tags"` // The Tenant ID associated with this Managed Service Identity. TenantId string `pulumi:"tenantId"` } func LookupHciClusterOutput(ctx *pulumi.Context, args LookupHciClusterOutputArgs, opts ...pulumi.InvokeOption) LookupHciClusterResultOutput { return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupHciClusterResultOutput, error) { args := v.(LookupHciClusterArgs) options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} return ctx.InvokeOutput("azure:stack/getHciCluster:getHciCluster", args, LookupHciClusterResultOutput{}, options).(LookupHciClusterResultOutput), nil }).(LookupHciClusterResultOutput) } // A collection of arguments for invoking getHciCluster. type LookupHciClusterOutputArgs struct { // The name of the Azure Stack HCI Cluster. Name pulumi.StringInput `pulumi:"name"` // The name of the Resource Group where the Azure Stack HCI Cluster exists. ResourceGroupName pulumi.StringInput `pulumi:"resourceGroupName"` } func (LookupHciClusterOutputArgs) ElementType() reflect.Type { return reflect.TypeOf((*LookupHciClusterArgs)(nil)).Elem() } // A collection of values returned by getHciCluster. type LookupHciClusterResultOutput struct{ *pulumi.OutputState } func (LookupHciClusterResultOutput) ElementType() reflect.Type { return reflect.TypeOf((*LookupHciClusterResult)(nil)).Elem() } func (o LookupHciClusterResultOutput) ToLookupHciClusterResultOutput() LookupHciClusterResultOutput { return o } func (o LookupHciClusterResultOutput) ToLookupHciClusterResultOutputWithContext(ctx context.Context) LookupHciClusterResultOutput { return o } // The ID of the Automanage Configuration assigned to the Azure Stack HCI Cluster. func (o LookupHciClusterResultOutput) AutomanageConfigurationId() pulumi.StringOutput { return o.ApplyT(func(v LookupHciClusterResult) string { return v.AutomanageConfigurationId }).(pulumi.StringOutput) } // The Client ID of the Azure Active Directory used by the Azure Stack HCI Cluster. func (o LookupHciClusterResultOutput) ClientId() pulumi.StringOutput { return o.ApplyT(func(v LookupHciClusterResult) string { return v.ClientId }).(pulumi.StringOutput) } // An immutable UUID for the Azure Stack HCI Cluster. func (o LookupHciClusterResultOutput) CloudId() pulumi.StringOutput { return o.ApplyT(func(v LookupHciClusterResult) string { return v.CloudId }).(pulumi.StringOutput) } // The provider-assigned unique ID for this managed resource. func (o LookupHciClusterResultOutput) Id() pulumi.StringOutput { return o.ApplyT(func(v LookupHciClusterResult) string { return v.Id }).(pulumi.StringOutput) } // An `identity` block as defined below. func (o LookupHciClusterResultOutput) Identities() GetHciClusterIdentityArrayOutput { return o.ApplyT(func(v LookupHciClusterResult) []GetHciClusterIdentity { return v.Identities }).(GetHciClusterIdentityArrayOutput) } // The Azure Region where the Azure Stack HCI Cluster exists. func (o LookupHciClusterResultOutput) Location() pulumi.StringOutput { return o.ApplyT(func(v LookupHciClusterResult) string { return v.Location }).(pulumi.StringOutput) } func (o LookupHciClusterResultOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v LookupHciClusterResult) string { return v.Name }).(pulumi.StringOutput) } func (o LookupHciClusterResultOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v LookupHciClusterResult) string { return v.ResourceGroupName }).(pulumi.StringOutput) } // The object ID of the Resource Provider Service Principal. func (o LookupHciClusterResultOutput) ResourceProviderObjectId() pulumi.StringOutput { return o.ApplyT(func(v LookupHciClusterResult) string { return v.ResourceProviderObjectId }).(pulumi.StringOutput) } // The region specific Data Path Endpoint of the Azure Stack HCI Cluster. func (o LookupHciClusterResultOutput) ServiceEndpoint() pulumi.StringOutput { return o.ApplyT(func(v LookupHciClusterResult) string { return v.ServiceEndpoint }).(pulumi.StringOutput) } // A mapping of tags assigned to the Azure Stack HCI Cluster. func (o LookupHciClusterResultOutput) Tags() pulumi.StringMapOutput { return o.ApplyT(func(v LookupHciClusterResult) map[string]string { return v.Tags }).(pulumi.StringMapOutput) } // The Tenant ID associated with this Managed Service Identity. func (o LookupHciClusterResultOutput) TenantId() pulumi.StringOutput { return o.ApplyT(func(v LookupHciClusterResult) string { return v.TenantId }).(pulumi.StringOutput) } func init() { pulumi.RegisterOutputType(LookupHciClusterResultOutput{}) }
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/stack/getHciStoragePath.go
sdk/go/azure/stack/getHciStoragePath.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 stack 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 Stack HCI Storage Path. // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/stack" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { // example, err := stack.LookupHciStoragePath(ctx, &stack.LookupHciStoragePathArgs{ // Name: "example-hci-storage-path-name", // ResourceGroupName: "example-rg", // }, 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.AzureStackHCI` - 2024-01-01 func LookupHciStoragePath(ctx *pulumi.Context, args *LookupHciStoragePathArgs, opts ...pulumi.InvokeOption) (*LookupHciStoragePathResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupHciStoragePathResult err := ctx.Invoke("azure:stack/getHciStoragePath:getHciStoragePath", args, &rv, opts...) if err != nil { return nil, err } return &rv, nil } // A collection of arguments for invoking getHciStoragePath. type LookupHciStoragePathArgs struct { // The name of this Stack HCI Storage Path. Name string `pulumi:"name"` // The name of the Resource Group where the Stack HCI Storage Path exists. ResourceGroupName string `pulumi:"resourceGroupName"` } // A collection of values returned by getHciStoragePath. type LookupHciStoragePathResult struct { // The ID of the Custom Location where the Stack HCI Storage Path exists. CustomLocationId string `pulumi:"customLocationId"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` // The Azure Region where the Stack HCI Storage Path exists. Location string `pulumi:"location"` Name string `pulumi:"name"` // The file path on the disk where the Stack HCI Storage Path was created. Path string `pulumi:"path"` ResourceGroupName string `pulumi:"resourceGroupName"` // A mapping of tags assigned to the Stack HCI Storage Path. Tags map[string]string `pulumi:"tags"` } func LookupHciStoragePathOutput(ctx *pulumi.Context, args LookupHciStoragePathOutputArgs, opts ...pulumi.InvokeOption) LookupHciStoragePathResultOutput { return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupHciStoragePathResultOutput, error) { args := v.(LookupHciStoragePathArgs) options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} return ctx.InvokeOutput("azure:stack/getHciStoragePath:getHciStoragePath", args, LookupHciStoragePathResultOutput{}, options).(LookupHciStoragePathResultOutput), nil }).(LookupHciStoragePathResultOutput) } // A collection of arguments for invoking getHciStoragePath. type LookupHciStoragePathOutputArgs struct { // The name of this Stack HCI Storage Path. Name pulumi.StringInput `pulumi:"name"` // The name of the Resource Group where the Stack HCI Storage Path exists. ResourceGroupName pulumi.StringInput `pulumi:"resourceGroupName"` } func (LookupHciStoragePathOutputArgs) ElementType() reflect.Type { return reflect.TypeOf((*LookupHciStoragePathArgs)(nil)).Elem() } // A collection of values returned by getHciStoragePath. type LookupHciStoragePathResultOutput struct{ *pulumi.OutputState } func (LookupHciStoragePathResultOutput) ElementType() reflect.Type { return reflect.TypeOf((*LookupHciStoragePathResult)(nil)).Elem() } func (o LookupHciStoragePathResultOutput) ToLookupHciStoragePathResultOutput() LookupHciStoragePathResultOutput { return o } func (o LookupHciStoragePathResultOutput) ToLookupHciStoragePathResultOutputWithContext(ctx context.Context) LookupHciStoragePathResultOutput { return o } // The ID of the Custom Location where the Stack HCI Storage Path exists. func (o LookupHciStoragePathResultOutput) CustomLocationId() pulumi.StringOutput { return o.ApplyT(func(v LookupHciStoragePathResult) string { return v.CustomLocationId }).(pulumi.StringOutput) } // The provider-assigned unique ID for this managed resource. func (o LookupHciStoragePathResultOutput) Id() pulumi.StringOutput { return o.ApplyT(func(v LookupHciStoragePathResult) string { return v.Id }).(pulumi.StringOutput) } // The Azure Region where the Stack HCI Storage Path exists. func (o LookupHciStoragePathResultOutput) Location() pulumi.StringOutput { return o.ApplyT(func(v LookupHciStoragePathResult) string { return v.Location }).(pulumi.StringOutput) } func (o LookupHciStoragePathResultOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v LookupHciStoragePathResult) string { return v.Name }).(pulumi.StringOutput) } // The file path on the disk where the Stack HCI Storage Path was created. func (o LookupHciStoragePathResultOutput) Path() pulumi.StringOutput { return o.ApplyT(func(v LookupHciStoragePathResult) string { return v.Path }).(pulumi.StringOutput) } func (o LookupHciStoragePathResultOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v LookupHciStoragePathResult) string { return v.ResourceGroupName }).(pulumi.StringOutput) } // A mapping of tags assigned to the Stack HCI Storage Path. func (o LookupHciStoragePathResultOutput) Tags() pulumi.StringMapOutput { return o.ApplyT(func(v LookupHciStoragePathResult) map[string]string { return v.Tags }).(pulumi.StringMapOutput) } func init() { pulumi.RegisterOutputType(LookupHciStoragePathResultOutput{}) }
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/stack/hciExtension.go
sdk/go/azure/stack/hciExtension.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 stack 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 Stack HCI Extension. // // ## 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/stack" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { // _, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{ // Name: pulumi.String("example-hci-ext"), // Location: pulumi.String("West Europe"), // }) // if err != nil { // return err // } // _, err = stack.NewHciExtension(ctx, "example", &stack.HciExtensionArgs{ // Name: pulumi.String("AzureMonitorWindowsAgent"), // ArcSettingId: pulumi.String("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example-hci/providers/Microsoft.AzureStackHCI/clusters/hci-cl/arcSettings/default"), // Publisher: pulumi.String("Microsoft.Azure.Monitor"), // Type: pulumi.String("MicrosoftMonitoringAgent"), // AutoUpgradeMinorVersionEnabled: pulumi.Bool(true), // AutomaticUpgradeEnabled: pulumi.Bool(true), // TypeHandlerVersion: pulumi.String("1.22.0"), // }) // 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.AzureStackHCI` - 2024-01-01 // // ## Import // // Azure Stack HCI Extension can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:stack/hciExtension:HciExtension example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AzureStackHCI/clusters/cluster1/arcSettings/default/extensions/extension1 // ``` type HciExtension struct { pulumi.CustomResourceState // The ID of the Azure Stack HCI Cluster Arc Setting. Changing this forces a new resource to be created. ArcSettingId pulumi.StringOutput `pulumi:"arcSettingId"` // Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true. Changing this forces a new resource to be created. Possible values are `true` and `false`. Defaults to `true`. AutoUpgradeMinorVersionEnabled pulumi.BoolPtrOutput `pulumi:"autoUpgradeMinorVersionEnabled"` // Indicates whether the extension should be automatically upgraded by the platform if there is a newer version available. Possible values are `true` and `false`. Defaults to `true`. AutomaticUpgradeEnabled pulumi.BoolPtrOutput `pulumi:"automaticUpgradeEnabled"` // The name which should be used for this Azure Stack HCI Extension. Changing this forces a new resource to be created. Name pulumi.StringOutput `pulumi:"name"` // The json formatted protected settings for the extension. ProtectedSettings pulumi.StringPtrOutput `pulumi:"protectedSettings"` // The name of the extension handler publisher, such as `Microsoft.Azure.Monitor`. Changing this forces a new resource to be created. Publisher pulumi.StringOutput `pulumi:"publisher"` // The json formatted public settings for the extension. Settings pulumi.StringPtrOutput `pulumi:"settings"` // Specifies the type of the extension. For example `CustomScriptExtension` or `AzureMonitorLinuxAgent`. Changing this forces a new resource to be created. Type pulumi.StringOutput `pulumi:"type"` // Specifies the version of the script handler. // // > **Note:** `typeHandlerVersion` cannot be set when `automaticUpgradeEnabled` is set to `true`. TypeHandlerVersion pulumi.StringPtrOutput `pulumi:"typeHandlerVersion"` } // NewHciExtension registers a new resource with the given unique name, arguments, and options. func NewHciExtension(ctx *pulumi.Context, name string, args *HciExtensionArgs, opts ...pulumi.ResourceOption) (*HciExtension, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.ArcSettingId == nil { return nil, errors.New("invalid value for required argument 'ArcSettingId'") } if args.Publisher == nil { return nil, errors.New("invalid value for required argument 'Publisher'") } if args.Type == nil { return nil, errors.New("invalid value for required argument 'Type'") } if args.ProtectedSettings != nil { args.ProtectedSettings = pulumi.ToSecret(args.ProtectedSettings).(pulumi.StringPtrInput) } secrets := pulumi.AdditionalSecretOutputs([]string{ "protectedSettings", }) opts = append(opts, secrets) opts = internal.PkgResourceDefaultOpts(opts) var resource HciExtension err := ctx.RegisterResource("azure:stack/hciExtension:HciExtension", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetHciExtension gets an existing HciExtension 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 GetHciExtension(ctx *pulumi.Context, name string, id pulumi.IDInput, state *HciExtensionState, opts ...pulumi.ResourceOption) (*HciExtension, error) { var resource HciExtension err := ctx.ReadResource("azure:stack/hciExtension:HciExtension", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering HciExtension resources. type hciExtensionState struct { // The ID of the Azure Stack HCI Cluster Arc Setting. Changing this forces a new resource to be created. ArcSettingId *string `pulumi:"arcSettingId"` // Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true. Changing this forces a new resource to be created. Possible values are `true` and `false`. Defaults to `true`. AutoUpgradeMinorVersionEnabled *bool `pulumi:"autoUpgradeMinorVersionEnabled"` // Indicates whether the extension should be automatically upgraded by the platform if there is a newer version available. Possible values are `true` and `false`. Defaults to `true`. AutomaticUpgradeEnabled *bool `pulumi:"automaticUpgradeEnabled"` // The name which should be used for this Azure Stack HCI Extension. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // The json formatted protected settings for the extension. ProtectedSettings *string `pulumi:"protectedSettings"` // The name of the extension handler publisher, such as `Microsoft.Azure.Monitor`. Changing this forces a new resource to be created. Publisher *string `pulumi:"publisher"` // The json formatted public settings for the extension. Settings *string `pulumi:"settings"` // Specifies the type of the extension. For example `CustomScriptExtension` or `AzureMonitorLinuxAgent`. Changing this forces a new resource to be created. Type *string `pulumi:"type"` // Specifies the version of the script handler. // // > **Note:** `typeHandlerVersion` cannot be set when `automaticUpgradeEnabled` is set to `true`. TypeHandlerVersion *string `pulumi:"typeHandlerVersion"` } type HciExtensionState struct { // The ID of the Azure Stack HCI Cluster Arc Setting. Changing this forces a new resource to be created. ArcSettingId pulumi.StringPtrInput // Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true. Changing this forces a new resource to be created. Possible values are `true` and `false`. Defaults to `true`. AutoUpgradeMinorVersionEnabled pulumi.BoolPtrInput // Indicates whether the extension should be automatically upgraded by the platform if there is a newer version available. Possible values are `true` and `false`. Defaults to `true`. AutomaticUpgradeEnabled pulumi.BoolPtrInput // The name which should be used for this Azure Stack HCI Extension. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // The json formatted protected settings for the extension. ProtectedSettings pulumi.StringPtrInput // The name of the extension handler publisher, such as `Microsoft.Azure.Monitor`. Changing this forces a new resource to be created. Publisher pulumi.StringPtrInput // The json formatted public settings for the extension. Settings pulumi.StringPtrInput // Specifies the type of the extension. For example `CustomScriptExtension` or `AzureMonitorLinuxAgent`. Changing this forces a new resource to be created. Type pulumi.StringPtrInput // Specifies the version of the script handler. // // > **Note:** `typeHandlerVersion` cannot be set when `automaticUpgradeEnabled` is set to `true`. TypeHandlerVersion pulumi.StringPtrInput } func (HciExtensionState) ElementType() reflect.Type { return reflect.TypeOf((*hciExtensionState)(nil)).Elem() } type hciExtensionArgs struct { // The ID of the Azure Stack HCI Cluster Arc Setting. Changing this forces a new resource to be created. ArcSettingId string `pulumi:"arcSettingId"` // Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true. Changing this forces a new resource to be created. Possible values are `true` and `false`. Defaults to `true`. AutoUpgradeMinorVersionEnabled *bool `pulumi:"autoUpgradeMinorVersionEnabled"` // Indicates whether the extension should be automatically upgraded by the platform if there is a newer version available. Possible values are `true` and `false`. Defaults to `true`. AutomaticUpgradeEnabled *bool `pulumi:"automaticUpgradeEnabled"` // The name which should be used for this Azure Stack HCI Extension. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // The json formatted protected settings for the extension. ProtectedSettings *string `pulumi:"protectedSettings"` // The name of the extension handler publisher, such as `Microsoft.Azure.Monitor`. Changing this forces a new resource to be created. Publisher string `pulumi:"publisher"` // The json formatted public settings for the extension. Settings *string `pulumi:"settings"` // Specifies the type of the extension. For example `CustomScriptExtension` or `AzureMonitorLinuxAgent`. Changing this forces a new resource to be created. Type string `pulumi:"type"` // Specifies the version of the script handler. // // > **Note:** `typeHandlerVersion` cannot be set when `automaticUpgradeEnabled` is set to `true`. TypeHandlerVersion *string `pulumi:"typeHandlerVersion"` } // The set of arguments for constructing a HciExtension resource. type HciExtensionArgs struct { // The ID of the Azure Stack HCI Cluster Arc Setting. Changing this forces a new resource to be created. ArcSettingId pulumi.StringInput // Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true. Changing this forces a new resource to be created. Possible values are `true` and `false`. Defaults to `true`. AutoUpgradeMinorVersionEnabled pulumi.BoolPtrInput // Indicates whether the extension should be automatically upgraded by the platform if there is a newer version available. Possible values are `true` and `false`. Defaults to `true`. AutomaticUpgradeEnabled pulumi.BoolPtrInput // The name which should be used for this Azure Stack HCI Extension. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // The json formatted protected settings for the extension. ProtectedSettings pulumi.StringPtrInput // The name of the extension handler publisher, such as `Microsoft.Azure.Monitor`. Changing this forces a new resource to be created. Publisher pulumi.StringInput // The json formatted public settings for the extension. Settings pulumi.StringPtrInput // Specifies the type of the extension. For example `CustomScriptExtension` or `AzureMonitorLinuxAgent`. Changing this forces a new resource to be created. Type pulumi.StringInput // Specifies the version of the script handler. // // > **Note:** `typeHandlerVersion` cannot be set when `automaticUpgradeEnabled` is set to `true`. TypeHandlerVersion pulumi.StringPtrInput } func (HciExtensionArgs) ElementType() reflect.Type { return reflect.TypeOf((*hciExtensionArgs)(nil)).Elem() } type HciExtensionInput interface { pulumi.Input ToHciExtensionOutput() HciExtensionOutput ToHciExtensionOutputWithContext(ctx context.Context) HciExtensionOutput } func (*HciExtension) ElementType() reflect.Type { return reflect.TypeOf((**HciExtension)(nil)).Elem() } func (i *HciExtension) ToHciExtensionOutput() HciExtensionOutput { return i.ToHciExtensionOutputWithContext(context.Background()) } func (i *HciExtension) ToHciExtensionOutputWithContext(ctx context.Context) HciExtensionOutput { return pulumi.ToOutputWithContext(ctx, i).(HciExtensionOutput) } // HciExtensionArrayInput is an input type that accepts HciExtensionArray and HciExtensionArrayOutput values. // You can construct a concrete instance of `HciExtensionArrayInput` via: // // HciExtensionArray{ HciExtensionArgs{...} } type HciExtensionArrayInput interface { pulumi.Input ToHciExtensionArrayOutput() HciExtensionArrayOutput ToHciExtensionArrayOutputWithContext(context.Context) HciExtensionArrayOutput } type HciExtensionArray []HciExtensionInput func (HciExtensionArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*HciExtension)(nil)).Elem() } func (i HciExtensionArray) ToHciExtensionArrayOutput() HciExtensionArrayOutput { return i.ToHciExtensionArrayOutputWithContext(context.Background()) } func (i HciExtensionArray) ToHciExtensionArrayOutputWithContext(ctx context.Context) HciExtensionArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(HciExtensionArrayOutput) } // HciExtensionMapInput is an input type that accepts HciExtensionMap and HciExtensionMapOutput values. // You can construct a concrete instance of `HciExtensionMapInput` via: // // HciExtensionMap{ "key": HciExtensionArgs{...} } type HciExtensionMapInput interface { pulumi.Input ToHciExtensionMapOutput() HciExtensionMapOutput ToHciExtensionMapOutputWithContext(context.Context) HciExtensionMapOutput } type HciExtensionMap map[string]HciExtensionInput func (HciExtensionMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*HciExtension)(nil)).Elem() } func (i HciExtensionMap) ToHciExtensionMapOutput() HciExtensionMapOutput { return i.ToHciExtensionMapOutputWithContext(context.Background()) } func (i HciExtensionMap) ToHciExtensionMapOutputWithContext(ctx context.Context) HciExtensionMapOutput { return pulumi.ToOutputWithContext(ctx, i).(HciExtensionMapOutput) } type HciExtensionOutput struct{ *pulumi.OutputState } func (HciExtensionOutput) ElementType() reflect.Type { return reflect.TypeOf((**HciExtension)(nil)).Elem() } func (o HciExtensionOutput) ToHciExtensionOutput() HciExtensionOutput { return o } func (o HciExtensionOutput) ToHciExtensionOutputWithContext(ctx context.Context) HciExtensionOutput { return o } // The ID of the Azure Stack HCI Cluster Arc Setting. Changing this forces a new resource to be created. func (o HciExtensionOutput) ArcSettingId() pulumi.StringOutput { return o.ApplyT(func(v *HciExtension) pulumi.StringOutput { return v.ArcSettingId }).(pulumi.StringOutput) } // Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true. Changing this forces a new resource to be created. Possible values are `true` and `false`. Defaults to `true`. func (o HciExtensionOutput) AutoUpgradeMinorVersionEnabled() pulumi.BoolPtrOutput { return o.ApplyT(func(v *HciExtension) pulumi.BoolPtrOutput { return v.AutoUpgradeMinorVersionEnabled }).(pulumi.BoolPtrOutput) } // Indicates whether the extension should be automatically upgraded by the platform if there is a newer version available. Possible values are `true` and `false`. Defaults to `true`. func (o HciExtensionOutput) AutomaticUpgradeEnabled() pulumi.BoolPtrOutput { return o.ApplyT(func(v *HciExtension) pulumi.BoolPtrOutput { return v.AutomaticUpgradeEnabled }).(pulumi.BoolPtrOutput) } // The name which should be used for this Azure Stack HCI Extension. Changing this forces a new resource to be created. func (o HciExtensionOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *HciExtension) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // The json formatted protected settings for the extension. func (o HciExtensionOutput) ProtectedSettings() pulumi.StringPtrOutput { return o.ApplyT(func(v *HciExtension) pulumi.StringPtrOutput { return v.ProtectedSettings }).(pulumi.StringPtrOutput) } // The name of the extension handler publisher, such as `Microsoft.Azure.Monitor`. Changing this forces a new resource to be created. func (o HciExtensionOutput) Publisher() pulumi.StringOutput { return o.ApplyT(func(v *HciExtension) pulumi.StringOutput { return v.Publisher }).(pulumi.StringOutput) } // The json formatted public settings for the extension. func (o HciExtensionOutput) Settings() pulumi.StringPtrOutput { return o.ApplyT(func(v *HciExtension) pulumi.StringPtrOutput { return v.Settings }).(pulumi.StringPtrOutput) } // Specifies the type of the extension. For example `CustomScriptExtension` or `AzureMonitorLinuxAgent`. Changing this forces a new resource to be created. func (o HciExtensionOutput) Type() pulumi.StringOutput { return o.ApplyT(func(v *HciExtension) pulumi.StringOutput { return v.Type }).(pulumi.StringOutput) } // Specifies the version of the script handler. // // > **Note:** `typeHandlerVersion` cannot be set when `automaticUpgradeEnabled` is set to `true`. func (o HciExtensionOutput) TypeHandlerVersion() pulumi.StringPtrOutput { return o.ApplyT(func(v *HciExtension) pulumi.StringPtrOutput { return v.TypeHandlerVersion }).(pulumi.StringPtrOutput) } type HciExtensionArrayOutput struct{ *pulumi.OutputState } func (HciExtensionArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*HciExtension)(nil)).Elem() } func (o HciExtensionArrayOutput) ToHciExtensionArrayOutput() HciExtensionArrayOutput { return o } func (o HciExtensionArrayOutput) ToHciExtensionArrayOutputWithContext(ctx context.Context) HciExtensionArrayOutput { return o } func (o HciExtensionArrayOutput) Index(i pulumi.IntInput) HciExtensionOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *HciExtension { return vs[0].([]*HciExtension)[vs[1].(int)] }).(HciExtensionOutput) } type HciExtensionMapOutput struct{ *pulumi.OutputState } func (HciExtensionMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*HciExtension)(nil)).Elem() } func (o HciExtensionMapOutput) ToHciExtensionMapOutput() HciExtensionMapOutput { return o } func (o HciExtensionMapOutput) ToHciExtensionMapOutputWithContext(ctx context.Context) HciExtensionMapOutput { return o } func (o HciExtensionMapOutput) MapIndex(k pulumi.StringInput) HciExtensionOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *HciExtension { return vs[0].(map[string]*HciExtension)[vs[1].(string)] }).(HciExtensionOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*HciExtensionInput)(nil)).Elem(), &HciExtension{}) pulumi.RegisterInputType(reflect.TypeOf((*HciExtensionArrayInput)(nil)).Elem(), HciExtensionArray{}) pulumi.RegisterInputType(reflect.TypeOf((*HciExtensionMapInput)(nil)).Elem(), HciExtensionMap{}) pulumi.RegisterOutputType(HciExtensionOutput{}) pulumi.RegisterOutputType(HciExtensionArrayOutput{}) pulumi.RegisterOutputType(HciExtensionMapOutput{}) }
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/stack/hciMarketplaceGalleryImage.go
sdk/go/azure/stack/hciMarketplaceGalleryImage.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 stack 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 Stack HCI Marketplace Gallery Image. // // ## Import // // Azure Stack HCI Marketplace Gallery Images can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:stack/hciMarketplaceGalleryImage:HciMarketplaceGalleryImage example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.AzureStackHCI/marketplaceGalleryImages/image1 // ``` type HciMarketplaceGalleryImage struct { pulumi.CustomResourceState // The ID of the Custom Location where the Azure Stack HCI Marketplace Gallery Image should exist. Changing this forces a new resource to be created. CustomLocationId pulumi.StringOutput `pulumi:"customLocationId"` // The hypervisor generation of the Azure Stack HCI Marketplace Gallery Image. Possible values are `V1` and `V2`. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created. HypervGeneration pulumi.StringOutput `pulumi:"hypervGeneration"` // An `identifier` block as defined below. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created. Identifier HciMarketplaceGalleryImageIdentifierOutput `pulumi:"identifier"` // The Azure Region where the Azure Stack HCI Marketplace Gallery Image should exist. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created. Location pulumi.StringOutput `pulumi:"location"` // The name which should be used for this Azure Stack HCI Marketplace Gallery Image. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created. Name pulumi.StringOutput `pulumi:"name"` // The Operating System type of the Azure Stack HCI Marketplace Gallery Image. Possible values are `Windows` and `Linux`. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created. OsType pulumi.StringOutput `pulumi:"osType"` // The name of the Resource Group where the Azure Stack HCI Marketplace Gallery Image should exist. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // The ID of the Azure Stack HCI Storage Path used for this Marketplace Gallery Image. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. StoragePathId pulumi.StringPtrOutput `pulumi:"storagePathId"` // A mapping of tags which should be assigned to the Azure Stack HCI Marketplace Gallery Image. Tags pulumi.StringMapOutput `pulumi:"tags"` // The version of the Azure Stack HCI Marketplace Gallery Image. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created. Version pulumi.StringOutput `pulumi:"version"` } // NewHciMarketplaceGalleryImage registers a new resource with the given unique name, arguments, and options. func NewHciMarketplaceGalleryImage(ctx *pulumi.Context, name string, args *HciMarketplaceGalleryImageArgs, opts ...pulumi.ResourceOption) (*HciMarketplaceGalleryImage, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.CustomLocationId == nil { return nil, errors.New("invalid value for required argument 'CustomLocationId'") } if args.HypervGeneration == nil { return nil, errors.New("invalid value for required argument 'HypervGeneration'") } if args.Identifier == nil { return nil, errors.New("invalid value for required argument 'Identifier'") } 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.Version == nil { return nil, errors.New("invalid value for required argument 'Version'") } opts = internal.PkgResourceDefaultOpts(opts) var resource HciMarketplaceGalleryImage err := ctx.RegisterResource("azure:stack/hciMarketplaceGalleryImage:HciMarketplaceGalleryImage", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetHciMarketplaceGalleryImage gets an existing HciMarketplaceGalleryImage 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 GetHciMarketplaceGalleryImage(ctx *pulumi.Context, name string, id pulumi.IDInput, state *HciMarketplaceGalleryImageState, opts ...pulumi.ResourceOption) (*HciMarketplaceGalleryImage, error) { var resource HciMarketplaceGalleryImage err := ctx.ReadResource("azure:stack/hciMarketplaceGalleryImage:HciMarketplaceGalleryImage", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering HciMarketplaceGalleryImage resources. type hciMarketplaceGalleryImageState struct { // The ID of the Custom Location where the Azure Stack HCI Marketplace Gallery Image should exist. Changing this forces a new resource to be created. CustomLocationId *string `pulumi:"customLocationId"` // The hypervisor generation of the Azure Stack HCI Marketplace Gallery Image. Possible values are `V1` and `V2`. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created. HypervGeneration *string `pulumi:"hypervGeneration"` // An `identifier` block as defined below. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created. Identifier *HciMarketplaceGalleryImageIdentifier `pulumi:"identifier"` // The Azure Region where the Azure Stack HCI Marketplace Gallery Image should exist. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created. Location *string `pulumi:"location"` // The name which should be used for this Azure Stack HCI Marketplace Gallery Image. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created. Name *string `pulumi:"name"` // The Operating System type of the Azure Stack HCI Marketplace Gallery Image. Possible values are `Windows` and `Linux`. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created. OsType *string `pulumi:"osType"` // The name of the Resource Group where the Azure Stack HCI Marketplace Gallery Image should exist. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created. ResourceGroupName *string `pulumi:"resourceGroupName"` // The ID of the Azure Stack HCI Storage Path used for this Marketplace Gallery Image. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. StoragePathId *string `pulumi:"storagePathId"` // A mapping of tags which should be assigned to the Azure Stack HCI Marketplace Gallery Image. Tags map[string]string `pulumi:"tags"` // The version of the Azure Stack HCI Marketplace Gallery Image. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created. Version *string `pulumi:"version"` } type HciMarketplaceGalleryImageState struct { // The ID of the Custom Location where the Azure Stack HCI Marketplace Gallery Image should exist. Changing this forces a new resource to be created. CustomLocationId pulumi.StringPtrInput // The hypervisor generation of the Azure Stack HCI Marketplace Gallery Image. Possible values are `V1` and `V2`. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created. HypervGeneration pulumi.StringPtrInput // An `identifier` block as defined below. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created. Identifier HciMarketplaceGalleryImageIdentifierPtrInput // The Azure Region where the Azure Stack HCI Marketplace Gallery Image should exist. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created. Location pulumi.StringPtrInput // The name which should be used for this Azure Stack HCI Marketplace Gallery Image. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created. Name pulumi.StringPtrInput // The Operating System type of the Azure Stack HCI Marketplace Gallery Image. Possible values are `Windows` and `Linux`. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created. OsType pulumi.StringPtrInput // The name of the Resource Group where the Azure Stack HCI Marketplace Gallery Image should exist. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created. ResourceGroupName pulumi.StringPtrInput // The ID of the Azure Stack HCI Storage Path used for this Marketplace Gallery Image. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. StoragePathId pulumi.StringPtrInput // A mapping of tags which should be assigned to the Azure Stack HCI Marketplace Gallery Image. Tags pulumi.StringMapInput // The version of the Azure Stack HCI Marketplace Gallery Image. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created. Version pulumi.StringPtrInput } func (HciMarketplaceGalleryImageState) ElementType() reflect.Type { return reflect.TypeOf((*hciMarketplaceGalleryImageState)(nil)).Elem() } type hciMarketplaceGalleryImageArgs struct { // The ID of the Custom Location where the Azure Stack HCI Marketplace Gallery Image should exist. Changing this forces a new resource to be created. CustomLocationId string `pulumi:"customLocationId"` // The hypervisor generation of the Azure Stack HCI Marketplace Gallery Image. Possible values are `V1` and `V2`. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created. HypervGeneration string `pulumi:"hypervGeneration"` // An `identifier` block as defined below. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created. Identifier HciMarketplaceGalleryImageIdentifier `pulumi:"identifier"` // The Azure Region where the Azure Stack HCI Marketplace Gallery Image should exist. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created. Location *string `pulumi:"location"` // The name which should be used for this Azure Stack HCI Marketplace Gallery Image. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created. Name *string `pulumi:"name"` // The Operating System type of the Azure Stack HCI Marketplace Gallery Image. Possible values are `Windows` and `Linux`. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created. OsType string `pulumi:"osType"` // The name of the Resource Group where the Azure Stack HCI Marketplace Gallery Image should exist. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created. ResourceGroupName string `pulumi:"resourceGroupName"` // The ID of the Azure Stack HCI Storage Path used for this Marketplace Gallery Image. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. StoragePathId *string `pulumi:"storagePathId"` // A mapping of tags which should be assigned to the Azure Stack HCI Marketplace Gallery Image. Tags map[string]string `pulumi:"tags"` // The version of the Azure Stack HCI Marketplace Gallery Image. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created. Version string `pulumi:"version"` } // The set of arguments for constructing a HciMarketplaceGalleryImage resource. type HciMarketplaceGalleryImageArgs struct { // The ID of the Custom Location where the Azure Stack HCI Marketplace Gallery Image should exist. Changing this forces a new resource to be created. CustomLocationId pulumi.StringInput // The hypervisor generation of the Azure Stack HCI Marketplace Gallery Image. Possible values are `V1` and `V2`. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created. HypervGeneration pulumi.StringInput // An `identifier` block as defined below. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created. Identifier HciMarketplaceGalleryImageIdentifierInput // The Azure Region where the Azure Stack HCI Marketplace Gallery Image should exist. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created. Location pulumi.StringPtrInput // The name which should be used for this Azure Stack HCI Marketplace Gallery Image. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created. Name pulumi.StringPtrInput // The Operating System type of the Azure Stack HCI Marketplace Gallery Image. Possible values are `Windows` and `Linux`. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created. OsType pulumi.StringInput // The name of the Resource Group where the Azure Stack HCI Marketplace Gallery Image should exist. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created. ResourceGroupName pulumi.StringInput // The ID of the Azure Stack HCI Storage Path used for this Marketplace Gallery Image. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. StoragePathId pulumi.StringPtrInput // A mapping of tags which should be assigned to the Azure Stack HCI Marketplace Gallery Image. Tags pulumi.StringMapInput // The version of the Azure Stack HCI Marketplace Gallery Image. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created. Version pulumi.StringInput } func (HciMarketplaceGalleryImageArgs) ElementType() reflect.Type { return reflect.TypeOf((*hciMarketplaceGalleryImageArgs)(nil)).Elem() } type HciMarketplaceGalleryImageInput interface { pulumi.Input ToHciMarketplaceGalleryImageOutput() HciMarketplaceGalleryImageOutput ToHciMarketplaceGalleryImageOutputWithContext(ctx context.Context) HciMarketplaceGalleryImageOutput } func (*HciMarketplaceGalleryImage) ElementType() reflect.Type { return reflect.TypeOf((**HciMarketplaceGalleryImage)(nil)).Elem() } func (i *HciMarketplaceGalleryImage) ToHciMarketplaceGalleryImageOutput() HciMarketplaceGalleryImageOutput { return i.ToHciMarketplaceGalleryImageOutputWithContext(context.Background()) } func (i *HciMarketplaceGalleryImage) ToHciMarketplaceGalleryImageOutputWithContext(ctx context.Context) HciMarketplaceGalleryImageOutput { return pulumi.ToOutputWithContext(ctx, i).(HciMarketplaceGalleryImageOutput) } // HciMarketplaceGalleryImageArrayInput is an input type that accepts HciMarketplaceGalleryImageArray and HciMarketplaceGalleryImageArrayOutput values. // You can construct a concrete instance of `HciMarketplaceGalleryImageArrayInput` via: // // HciMarketplaceGalleryImageArray{ HciMarketplaceGalleryImageArgs{...} } type HciMarketplaceGalleryImageArrayInput interface { pulumi.Input ToHciMarketplaceGalleryImageArrayOutput() HciMarketplaceGalleryImageArrayOutput ToHciMarketplaceGalleryImageArrayOutputWithContext(context.Context) HciMarketplaceGalleryImageArrayOutput } type HciMarketplaceGalleryImageArray []HciMarketplaceGalleryImageInput func (HciMarketplaceGalleryImageArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*HciMarketplaceGalleryImage)(nil)).Elem() } func (i HciMarketplaceGalleryImageArray) ToHciMarketplaceGalleryImageArrayOutput() HciMarketplaceGalleryImageArrayOutput { return i.ToHciMarketplaceGalleryImageArrayOutputWithContext(context.Background()) } func (i HciMarketplaceGalleryImageArray) ToHciMarketplaceGalleryImageArrayOutputWithContext(ctx context.Context) HciMarketplaceGalleryImageArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(HciMarketplaceGalleryImageArrayOutput) } // HciMarketplaceGalleryImageMapInput is an input type that accepts HciMarketplaceGalleryImageMap and HciMarketplaceGalleryImageMapOutput values. // You can construct a concrete instance of `HciMarketplaceGalleryImageMapInput` via: // // HciMarketplaceGalleryImageMap{ "key": HciMarketplaceGalleryImageArgs{...} } type HciMarketplaceGalleryImageMapInput interface { pulumi.Input ToHciMarketplaceGalleryImageMapOutput() HciMarketplaceGalleryImageMapOutput ToHciMarketplaceGalleryImageMapOutputWithContext(context.Context) HciMarketplaceGalleryImageMapOutput } type HciMarketplaceGalleryImageMap map[string]HciMarketplaceGalleryImageInput func (HciMarketplaceGalleryImageMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*HciMarketplaceGalleryImage)(nil)).Elem() } func (i HciMarketplaceGalleryImageMap) ToHciMarketplaceGalleryImageMapOutput() HciMarketplaceGalleryImageMapOutput { return i.ToHciMarketplaceGalleryImageMapOutputWithContext(context.Background()) } func (i HciMarketplaceGalleryImageMap) ToHciMarketplaceGalleryImageMapOutputWithContext(ctx context.Context) HciMarketplaceGalleryImageMapOutput { return pulumi.ToOutputWithContext(ctx, i).(HciMarketplaceGalleryImageMapOutput) } type HciMarketplaceGalleryImageOutput struct{ *pulumi.OutputState } func (HciMarketplaceGalleryImageOutput) ElementType() reflect.Type { return reflect.TypeOf((**HciMarketplaceGalleryImage)(nil)).Elem() } func (o HciMarketplaceGalleryImageOutput) ToHciMarketplaceGalleryImageOutput() HciMarketplaceGalleryImageOutput { return o } func (o HciMarketplaceGalleryImageOutput) ToHciMarketplaceGalleryImageOutputWithContext(ctx context.Context) HciMarketplaceGalleryImageOutput { return o } // The ID of the Custom Location where the Azure Stack HCI Marketplace Gallery Image should exist. Changing this forces a new resource to be created. func (o HciMarketplaceGalleryImageOutput) CustomLocationId() pulumi.StringOutput { return o.ApplyT(func(v *HciMarketplaceGalleryImage) pulumi.StringOutput { return v.CustomLocationId }).(pulumi.StringOutput) } // The hypervisor generation of the Azure Stack HCI Marketplace Gallery Image. Possible values are `V1` and `V2`. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created. func (o HciMarketplaceGalleryImageOutput) HypervGeneration() pulumi.StringOutput { return o.ApplyT(func(v *HciMarketplaceGalleryImage) pulumi.StringOutput { return v.HypervGeneration }).(pulumi.StringOutput) } // An `identifier` block as defined below. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created. func (o HciMarketplaceGalleryImageOutput) Identifier() HciMarketplaceGalleryImageIdentifierOutput { return o.ApplyT(func(v *HciMarketplaceGalleryImage) HciMarketplaceGalleryImageIdentifierOutput { return v.Identifier }).(HciMarketplaceGalleryImageIdentifierOutput) } // The Azure Region where the Azure Stack HCI Marketplace Gallery Image should exist. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created. func (o HciMarketplaceGalleryImageOutput) Location() pulumi.StringOutput { return o.ApplyT(func(v *HciMarketplaceGalleryImage) pulumi.StringOutput { return v.Location }).(pulumi.StringOutput) } // The name which should be used for this Azure Stack HCI Marketplace Gallery Image. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created. func (o HciMarketplaceGalleryImageOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *HciMarketplaceGalleryImage) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // The Operating System type of the Azure Stack HCI Marketplace Gallery Image. Possible values are `Windows` and `Linux`. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created. func (o HciMarketplaceGalleryImageOutput) OsType() pulumi.StringOutput { return o.ApplyT(func(v *HciMarketplaceGalleryImage) pulumi.StringOutput { return v.OsType }).(pulumi.StringOutput) } // The name of the Resource Group where the Azure Stack HCI Marketplace Gallery Image should exist. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created. func (o HciMarketplaceGalleryImageOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v *HciMarketplaceGalleryImage) pulumi.StringOutput { return v.ResourceGroupName }).(pulumi.StringOutput) } // The ID of the Azure Stack HCI Storage Path used for this Marketplace Gallery Image. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. func (o HciMarketplaceGalleryImageOutput) StoragePathId() pulumi.StringPtrOutput { return o.ApplyT(func(v *HciMarketplaceGalleryImage) pulumi.StringPtrOutput { return v.StoragePathId }).(pulumi.StringPtrOutput) } // A mapping of tags which should be assigned to the Azure Stack HCI Marketplace Gallery Image. func (o HciMarketplaceGalleryImageOutput) Tags() pulumi.StringMapOutput { return o.ApplyT(func(v *HciMarketplaceGalleryImage) pulumi.StringMapOutput { return v.Tags }).(pulumi.StringMapOutput) } // The version of the Azure Stack HCI Marketplace Gallery Image. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created. func (o HciMarketplaceGalleryImageOutput) Version() pulumi.StringOutput { return o.ApplyT(func(v *HciMarketplaceGalleryImage) pulumi.StringOutput { return v.Version }).(pulumi.StringOutput) } type HciMarketplaceGalleryImageArrayOutput struct{ *pulumi.OutputState } func (HciMarketplaceGalleryImageArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*HciMarketplaceGalleryImage)(nil)).Elem() } func (o HciMarketplaceGalleryImageArrayOutput) ToHciMarketplaceGalleryImageArrayOutput() HciMarketplaceGalleryImageArrayOutput { return o } func (o HciMarketplaceGalleryImageArrayOutput) ToHciMarketplaceGalleryImageArrayOutputWithContext(ctx context.Context) HciMarketplaceGalleryImageArrayOutput { return o } func (o HciMarketplaceGalleryImageArrayOutput) Index(i pulumi.IntInput) HciMarketplaceGalleryImageOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *HciMarketplaceGalleryImage { return vs[0].([]*HciMarketplaceGalleryImage)[vs[1].(int)] }).(HciMarketplaceGalleryImageOutput) } type HciMarketplaceGalleryImageMapOutput struct{ *pulumi.OutputState } func (HciMarketplaceGalleryImageMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*HciMarketplaceGalleryImage)(nil)).Elem() } func (o HciMarketplaceGalleryImageMapOutput) ToHciMarketplaceGalleryImageMapOutput() HciMarketplaceGalleryImageMapOutput { return o } func (o HciMarketplaceGalleryImageMapOutput) ToHciMarketplaceGalleryImageMapOutputWithContext(ctx context.Context) HciMarketplaceGalleryImageMapOutput { return o } func (o HciMarketplaceGalleryImageMapOutput) MapIndex(k pulumi.StringInput) HciMarketplaceGalleryImageOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *HciMarketplaceGalleryImage { return vs[0].(map[string]*HciMarketplaceGalleryImage)[vs[1].(string)] }).(HciMarketplaceGalleryImageOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*HciMarketplaceGalleryImageInput)(nil)).Elem(), &HciMarketplaceGalleryImage{}) pulumi.RegisterInputType(reflect.TypeOf((*HciMarketplaceGalleryImageArrayInput)(nil)).Elem(), HciMarketplaceGalleryImageArray{}) pulumi.RegisterInputType(reflect.TypeOf((*HciMarketplaceGalleryImageMapInput)(nil)).Elem(), HciMarketplaceGalleryImageMap{}) pulumi.RegisterOutputType(HciMarketplaceGalleryImageOutput{}) pulumi.RegisterOutputType(HciMarketplaceGalleryImageArrayOutput{}) pulumi.RegisterOutputType(HciMarketplaceGalleryImageMapOutput{}) }
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/stack/hciNetworkInterface.go
sdk/go/azure/stack/hciNetworkInterface.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 stack 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 Stack HCI Network Interface. // // ## 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/stack" // "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 // } // _, err = stack.NewHciLogicalNetwork(ctx, "example", &stack.HciLogicalNetworkArgs{ // Name: pulumi.String("example-hci-ln"), // ResourceGroupName: example.Name, // Location: example.Location, // CustomLocationId: pulumi.String("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ExtendedLocation/customLocations/cl1"), // VirtualSwitchName: pulumi.String("ConvergedSwitch(managementcompute)"), // DnsServers: pulumi.StringArray{ // pulumi.String("10.0.0.7"), // pulumi.String("10.0.0.8"), // }, // Subnet: &stack.HciLogicalNetworkSubnetArgs{ // IpAllocationMethod: pulumi.String("Static"), // AddressPrefix: pulumi.String("10.0.0.0/24"), // Route: map[string]interface{}{ // "name": "example-route", // "addressPrefix": "0.0.0.0/0", // "nextHopIpAddress": "10.0.20.1", // }, // VlanId: pulumi.Int(123), // }, // Tags: pulumi.StringMap{ // "foo": pulumi.String("bar"), // }, // }) // if err != nil { // return err // } // _, err = stack.NewHciNetworkInterface(ctx, "example", &stack.HciNetworkInterfaceArgs{ // Name: pulumi.String("example-ni"), // ResourceGroupName: example.Name, // Location: example.Location, // CustomLocationId: pulumi.String("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ExtendedLocation/customLocations/cl1"), // DnsServers: pulumi.StringArray{ // pulumi.String("10.0.0.8"), // }, // IpConfiguration: &stack.HciNetworkInterfaceIpConfigurationArgs{ // PrivateIpAddress: pulumi.String("10.0.0.2"), // SubnetId: pulumi.Any(test.Id), // }, // Tags: pulumi.StringMap{ // "foo": pulumi.String("bar"), // }, // }) // 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.AzureStackHCI` - 2024-01-01 // // ## Import // // Azure Stack HCI Network Interfaces can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:stack/hciNetworkInterface:HciNetworkInterface example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AzureStackHCI/networkInterfaces/ni1 // ``` type HciNetworkInterface struct { pulumi.CustomResourceState // The ID of the Custom Location where the Azure Stack HCI Network Interface should exist. Changing this forces a new resource to be created. CustomLocationId pulumi.StringOutput `pulumi:"customLocationId"` // A list of IPv4 addresses of DNS servers available to VMs deployed in the Network Interface. Changing this forces a new resource to be created. DnsServers pulumi.StringArrayOutput `pulumi:"dnsServers"` // An `ipConfiguration` block as defined below. Changing this forces a new resource to be created. IpConfiguration HciNetworkInterfaceIpConfigurationOutput `pulumi:"ipConfiguration"` // The Azure Region where the Azure Stack HCI Network Interface should exist. Changing this forces a new resource to be created. Location pulumi.StringOutput `pulumi:"location"` // The MAC address of the Network Interface. Changing this forces a new resource to be created. // // > **Note:** If `macAddress` is not specified, it will be assigned by the server. If you experience a diff you may need to add this to `ignoreChanges`. MacAddress pulumi.StringPtrOutput `pulumi:"macAddress"` // The name which should be used for this Azure Stack HCI Network Interface. Changing this forces a new resource to be created. Name pulumi.StringOutput `pulumi:"name"` // The name of the Resource Group where the Azure Stack HCI Network Interface should exist. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // A mapping of tags which should be assigned to the Azure Stack HCI Network Interface. Tags pulumi.StringMapOutput `pulumi:"tags"` } // NewHciNetworkInterface registers a new resource with the given unique name, arguments, and options. func NewHciNetworkInterface(ctx *pulumi.Context, name string, args *HciNetworkInterfaceArgs, opts ...pulumi.ResourceOption) (*HciNetworkInterface, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.CustomLocationId == nil { return nil, errors.New("invalid value for required argument 'CustomLocationId'") } if args.IpConfiguration == nil { return nil, errors.New("invalid value for required argument 'IpConfiguration'") } if args.ResourceGroupName == nil { return nil, errors.New("invalid value for required argument 'ResourceGroupName'") } opts = internal.PkgResourceDefaultOpts(opts) var resource HciNetworkInterface err := ctx.RegisterResource("azure:stack/hciNetworkInterface:HciNetworkInterface", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetHciNetworkInterface gets an existing HciNetworkInterface 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 GetHciNetworkInterface(ctx *pulumi.Context, name string, id pulumi.IDInput, state *HciNetworkInterfaceState, opts ...pulumi.ResourceOption) (*HciNetworkInterface, error) { var resource HciNetworkInterface err := ctx.ReadResource("azure:stack/hciNetworkInterface:HciNetworkInterface", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering HciNetworkInterface resources. type hciNetworkInterfaceState struct { // The ID of the Custom Location where the Azure Stack HCI Network Interface should exist. Changing this forces a new resource to be created. CustomLocationId *string `pulumi:"customLocationId"` // A list of IPv4 addresses of DNS servers available to VMs deployed in the Network Interface. Changing this forces a new resource to be created. DnsServers []string `pulumi:"dnsServers"` // An `ipConfiguration` block as defined below. Changing this forces a new resource to be created. IpConfiguration *HciNetworkInterfaceIpConfiguration `pulumi:"ipConfiguration"` // The Azure Region where the Azure Stack HCI Network Interface should exist. Changing this forces a new resource to be created. Location *string `pulumi:"location"` // The MAC address of the Network Interface. Changing this forces a new resource to be created. // // > **Note:** If `macAddress` is not specified, it will be assigned by the server. If you experience a diff you may need to add this to `ignoreChanges`. MacAddress *string `pulumi:"macAddress"` // The name which should be used for this Azure Stack HCI Network Interface. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // The name of the Resource Group where the Azure Stack HCI Network Interface should exist. Changing this forces a new resource to be created. ResourceGroupName *string `pulumi:"resourceGroupName"` // A mapping of tags which should be assigned to the Azure Stack HCI Network Interface. Tags map[string]string `pulumi:"tags"` } type HciNetworkInterfaceState struct { // The ID of the Custom Location where the Azure Stack HCI Network Interface should exist. Changing this forces a new resource to be created. CustomLocationId pulumi.StringPtrInput // A list of IPv4 addresses of DNS servers available to VMs deployed in the Network Interface. Changing this forces a new resource to be created. DnsServers pulumi.StringArrayInput // An `ipConfiguration` block as defined below. Changing this forces a new resource to be created. IpConfiguration HciNetworkInterfaceIpConfigurationPtrInput // The Azure Region where the Azure Stack HCI Network Interface should exist. Changing this forces a new resource to be created. Location pulumi.StringPtrInput // The MAC address of the Network Interface. Changing this forces a new resource to be created. // // > **Note:** If `macAddress` is not specified, it will be assigned by the server. If you experience a diff you may need to add this to `ignoreChanges`. MacAddress pulumi.StringPtrInput // The name which should be used for this Azure Stack HCI Network Interface. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // The name of the Resource Group where the Azure Stack HCI Network Interface should exist. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringPtrInput // A mapping of tags which should be assigned to the Azure Stack HCI Network Interface. Tags pulumi.StringMapInput } func (HciNetworkInterfaceState) ElementType() reflect.Type { return reflect.TypeOf((*hciNetworkInterfaceState)(nil)).Elem() } type hciNetworkInterfaceArgs struct { // The ID of the Custom Location where the Azure Stack HCI Network Interface should exist. Changing this forces a new resource to be created. CustomLocationId string `pulumi:"customLocationId"` // A list of IPv4 addresses of DNS servers available to VMs deployed in the Network Interface. Changing this forces a new resource to be created. DnsServers []string `pulumi:"dnsServers"` // An `ipConfiguration` block as defined below. Changing this forces a new resource to be created. IpConfiguration HciNetworkInterfaceIpConfiguration `pulumi:"ipConfiguration"` // The Azure Region where the Azure Stack HCI Network Interface should exist. Changing this forces a new resource to be created. Location *string `pulumi:"location"` // The MAC address of the Network Interface. Changing this forces a new resource to be created. // // > **Note:** If `macAddress` is not specified, it will be assigned by the server. If you experience a diff you may need to add this to `ignoreChanges`. MacAddress *string `pulumi:"macAddress"` // The name which should be used for this Azure Stack HCI Network Interface. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // The name of the Resource Group where the Azure Stack HCI Network Interface should exist. Changing this forces a new resource to be created. ResourceGroupName string `pulumi:"resourceGroupName"` // A mapping of tags which should be assigned to the Azure Stack HCI Network Interface. Tags map[string]string `pulumi:"tags"` } // The set of arguments for constructing a HciNetworkInterface resource. type HciNetworkInterfaceArgs struct { // The ID of the Custom Location where the Azure Stack HCI Network Interface should exist. Changing this forces a new resource to be created. CustomLocationId pulumi.StringInput // A list of IPv4 addresses of DNS servers available to VMs deployed in the Network Interface. Changing this forces a new resource to be created. DnsServers pulumi.StringArrayInput // An `ipConfiguration` block as defined below. Changing this forces a new resource to be created. IpConfiguration HciNetworkInterfaceIpConfigurationInput // The Azure Region where the Azure Stack HCI Network Interface should exist. Changing this forces a new resource to be created. Location pulumi.StringPtrInput // The MAC address of the Network Interface. Changing this forces a new resource to be created. // // > **Note:** If `macAddress` is not specified, it will be assigned by the server. If you experience a diff you may need to add this to `ignoreChanges`. MacAddress pulumi.StringPtrInput // The name which should be used for this Azure Stack HCI Network Interface. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // The name of the Resource Group where the Azure Stack HCI Network Interface should exist. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringInput // A mapping of tags which should be assigned to the Azure Stack HCI Network Interface. Tags pulumi.StringMapInput } func (HciNetworkInterfaceArgs) ElementType() reflect.Type { return reflect.TypeOf((*hciNetworkInterfaceArgs)(nil)).Elem() } type HciNetworkInterfaceInput interface { pulumi.Input ToHciNetworkInterfaceOutput() HciNetworkInterfaceOutput ToHciNetworkInterfaceOutputWithContext(ctx context.Context) HciNetworkInterfaceOutput } func (*HciNetworkInterface) ElementType() reflect.Type { return reflect.TypeOf((**HciNetworkInterface)(nil)).Elem() } func (i *HciNetworkInterface) ToHciNetworkInterfaceOutput() HciNetworkInterfaceOutput { return i.ToHciNetworkInterfaceOutputWithContext(context.Background()) } func (i *HciNetworkInterface) ToHciNetworkInterfaceOutputWithContext(ctx context.Context) HciNetworkInterfaceOutput { return pulumi.ToOutputWithContext(ctx, i).(HciNetworkInterfaceOutput) } // HciNetworkInterfaceArrayInput is an input type that accepts HciNetworkInterfaceArray and HciNetworkInterfaceArrayOutput values. // You can construct a concrete instance of `HciNetworkInterfaceArrayInput` via: // // HciNetworkInterfaceArray{ HciNetworkInterfaceArgs{...} } type HciNetworkInterfaceArrayInput interface { pulumi.Input ToHciNetworkInterfaceArrayOutput() HciNetworkInterfaceArrayOutput ToHciNetworkInterfaceArrayOutputWithContext(context.Context) HciNetworkInterfaceArrayOutput } type HciNetworkInterfaceArray []HciNetworkInterfaceInput func (HciNetworkInterfaceArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*HciNetworkInterface)(nil)).Elem() } func (i HciNetworkInterfaceArray) ToHciNetworkInterfaceArrayOutput() HciNetworkInterfaceArrayOutput { return i.ToHciNetworkInterfaceArrayOutputWithContext(context.Background()) } func (i HciNetworkInterfaceArray) ToHciNetworkInterfaceArrayOutputWithContext(ctx context.Context) HciNetworkInterfaceArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(HciNetworkInterfaceArrayOutput) } // HciNetworkInterfaceMapInput is an input type that accepts HciNetworkInterfaceMap and HciNetworkInterfaceMapOutput values. // You can construct a concrete instance of `HciNetworkInterfaceMapInput` via: // // HciNetworkInterfaceMap{ "key": HciNetworkInterfaceArgs{...} } type HciNetworkInterfaceMapInput interface { pulumi.Input ToHciNetworkInterfaceMapOutput() HciNetworkInterfaceMapOutput ToHciNetworkInterfaceMapOutputWithContext(context.Context) HciNetworkInterfaceMapOutput } type HciNetworkInterfaceMap map[string]HciNetworkInterfaceInput func (HciNetworkInterfaceMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*HciNetworkInterface)(nil)).Elem() } func (i HciNetworkInterfaceMap) ToHciNetworkInterfaceMapOutput() HciNetworkInterfaceMapOutput { return i.ToHciNetworkInterfaceMapOutputWithContext(context.Background()) } func (i HciNetworkInterfaceMap) ToHciNetworkInterfaceMapOutputWithContext(ctx context.Context) HciNetworkInterfaceMapOutput { return pulumi.ToOutputWithContext(ctx, i).(HciNetworkInterfaceMapOutput) } type HciNetworkInterfaceOutput struct{ *pulumi.OutputState } func (HciNetworkInterfaceOutput) ElementType() reflect.Type { return reflect.TypeOf((**HciNetworkInterface)(nil)).Elem() } func (o HciNetworkInterfaceOutput) ToHciNetworkInterfaceOutput() HciNetworkInterfaceOutput { return o } func (o HciNetworkInterfaceOutput) ToHciNetworkInterfaceOutputWithContext(ctx context.Context) HciNetworkInterfaceOutput { return o } // The ID of the Custom Location where the Azure Stack HCI Network Interface should exist. Changing this forces a new resource to be created. func (o HciNetworkInterfaceOutput) CustomLocationId() pulumi.StringOutput { return o.ApplyT(func(v *HciNetworkInterface) pulumi.StringOutput { return v.CustomLocationId }).(pulumi.StringOutput) } // A list of IPv4 addresses of DNS servers available to VMs deployed in the Network Interface. Changing this forces a new resource to be created. func (o HciNetworkInterfaceOutput) DnsServers() pulumi.StringArrayOutput { return o.ApplyT(func(v *HciNetworkInterface) pulumi.StringArrayOutput { return v.DnsServers }).(pulumi.StringArrayOutput) } // An `ipConfiguration` block as defined below. Changing this forces a new resource to be created. func (o HciNetworkInterfaceOutput) IpConfiguration() HciNetworkInterfaceIpConfigurationOutput { return o.ApplyT(func(v *HciNetworkInterface) HciNetworkInterfaceIpConfigurationOutput { return v.IpConfiguration }).(HciNetworkInterfaceIpConfigurationOutput) } // The Azure Region where the Azure Stack HCI Network Interface should exist. Changing this forces a new resource to be created. func (o HciNetworkInterfaceOutput) Location() pulumi.StringOutput { return o.ApplyT(func(v *HciNetworkInterface) pulumi.StringOutput { return v.Location }).(pulumi.StringOutput) } // The MAC address of the Network Interface. Changing this forces a new resource to be created. // // > **Note:** If `macAddress` is not specified, it will be assigned by the server. If you experience a diff you may need to add this to `ignoreChanges`. func (o HciNetworkInterfaceOutput) MacAddress() pulumi.StringPtrOutput { return o.ApplyT(func(v *HciNetworkInterface) pulumi.StringPtrOutput { return v.MacAddress }).(pulumi.StringPtrOutput) } // The name which should be used for this Azure Stack HCI Network Interface. Changing this forces a new resource to be created. func (o HciNetworkInterfaceOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *HciNetworkInterface) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // The name of the Resource Group where the Azure Stack HCI Network Interface should exist. Changing this forces a new resource to be created. func (o HciNetworkInterfaceOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v *HciNetworkInterface) pulumi.StringOutput { return v.ResourceGroupName }).(pulumi.StringOutput) } // A mapping of tags which should be assigned to the Azure Stack HCI Network Interface. func (o HciNetworkInterfaceOutput) Tags() pulumi.StringMapOutput { return o.ApplyT(func(v *HciNetworkInterface) pulumi.StringMapOutput { return v.Tags }).(pulumi.StringMapOutput) } type HciNetworkInterfaceArrayOutput struct{ *pulumi.OutputState } func (HciNetworkInterfaceArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*HciNetworkInterface)(nil)).Elem() } func (o HciNetworkInterfaceArrayOutput) ToHciNetworkInterfaceArrayOutput() HciNetworkInterfaceArrayOutput { return o } func (o HciNetworkInterfaceArrayOutput) ToHciNetworkInterfaceArrayOutputWithContext(ctx context.Context) HciNetworkInterfaceArrayOutput { return o } func (o HciNetworkInterfaceArrayOutput) Index(i pulumi.IntInput) HciNetworkInterfaceOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *HciNetworkInterface { return vs[0].([]*HciNetworkInterface)[vs[1].(int)] }).(HciNetworkInterfaceOutput) } type HciNetworkInterfaceMapOutput struct{ *pulumi.OutputState } func (HciNetworkInterfaceMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*HciNetworkInterface)(nil)).Elem() } func (o HciNetworkInterfaceMapOutput) ToHciNetworkInterfaceMapOutput() HciNetworkInterfaceMapOutput { return o } func (o HciNetworkInterfaceMapOutput) ToHciNetworkInterfaceMapOutputWithContext(ctx context.Context) HciNetworkInterfaceMapOutput { return o } func (o HciNetworkInterfaceMapOutput) MapIndex(k pulumi.StringInput) HciNetworkInterfaceOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *HciNetworkInterface { return vs[0].(map[string]*HciNetworkInterface)[vs[1].(string)] }).(HciNetworkInterfaceOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*HciNetworkInterfaceInput)(nil)).Elem(), &HciNetworkInterface{}) pulumi.RegisterInputType(reflect.TypeOf((*HciNetworkInterfaceArrayInput)(nil)).Elem(), HciNetworkInterfaceArray{}) pulumi.RegisterInputType(reflect.TypeOf((*HciNetworkInterfaceMapInput)(nil)).Elem(), HciNetworkInterfaceMap{}) pulumi.RegisterOutputType(HciNetworkInterfaceOutput{}) pulumi.RegisterOutputType(HciNetworkInterfaceArrayOutput{}) pulumi.RegisterOutputType(HciNetworkInterfaceMapOutput{}) }
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/netapp/init.go
sdk/go/azure/netapp/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 netapp 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:netapp/account:Account": r = &Account{} case "azure:netapp/accountEncryption:AccountEncryption": r = &AccountEncryption{} case "azure:netapp/backupPolicy:BackupPolicy": r = &BackupPolicy{} case "azure:netapp/backupVault:BackupVault": r = &BackupVault{} case "azure:netapp/pool:Pool": r = &Pool{} case "azure:netapp/snapshot:Snapshot": r = &Snapshot{} case "azure:netapp/snapshotPolicy:SnapshotPolicy": r = &SnapshotPolicy{} case "azure:netapp/volume:Volume": r = &Volume{} case "azure:netapp/volumeGroupOracle:VolumeGroupOracle": r = &VolumeGroupOracle{} case "azure:netapp/volumeGroupSapHana:VolumeGroupSapHana": r = &VolumeGroupSapHana{} case "azure:netapp/volumeQuotaRule:VolumeQuotaRule": r = &VolumeQuotaRule{} 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", "netapp/account", &module{version}, ) pulumi.RegisterResourceModule( "azure", "netapp/accountEncryption", &module{version}, ) pulumi.RegisterResourceModule( "azure", "netapp/backupPolicy", &module{version}, ) pulumi.RegisterResourceModule( "azure", "netapp/backupVault", &module{version}, ) pulumi.RegisterResourceModule( "azure", "netapp/pool", &module{version}, ) pulumi.RegisterResourceModule( "azure", "netapp/snapshot", &module{version}, ) pulumi.RegisterResourceModule( "azure", "netapp/snapshotPolicy", &module{version}, ) pulumi.RegisterResourceModule( "azure", "netapp/volume", &module{version}, ) pulumi.RegisterResourceModule( "azure", "netapp/volumeGroupOracle", &module{version}, ) pulumi.RegisterResourceModule( "azure", "netapp/volumeGroupSapHana", &module{version}, ) pulumi.RegisterResourceModule( "azure", "netapp/volumeQuotaRule", &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/netapp/pulumiTypes.go
sdk/go/azure/netapp/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 netapp 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 AccountActiveDirectory struct { // If enabled, AES encryption will be enabled for SMB communication. Defaults to `false`. AesEncryptionEnabled *bool `pulumi:"aesEncryptionEnabled"` // A list of DNS server IP addresses for the Active Directory domain. Only allows `IPv4` address. DnsServers []string `pulumi:"dnsServers"` // The name of the Active Directory domain. Domain string `pulumi:"domain"` // Name of the active directory machine. KerberosAdName *string `pulumi:"kerberosAdName"` // kdc server IP addresses for the active directory machine. // // > **Note:** If you plan on using **Kerberos** volumes, both `adName` and `kdcIp` are required in order to create the volume. KerberosKdcIp *string `pulumi:"kerberosKdcIp"` // Specifies whether or not the LDAP traffic needs to be secured via TLS. Defaults to `false`. LdapOverTlsEnabled *bool `pulumi:"ldapOverTlsEnabled"` // Specifies whether or not the LDAP traffic needs to be signed. Defaults to `false`. LdapSigningEnabled *bool `pulumi:"ldapSigningEnabled"` // If enabled, NFS client local users can also (in addition to LDAP users) access the NFS volumes. Defaults to `false`. LocalNfsUsersWithLdapAllowed *bool `pulumi:"localNfsUsersWithLdapAllowed"` // The Organizational Unit (OU) within Active Directory where machines will be created. If blank, defaults to `CN=Computers`. OrganizationalUnit *string `pulumi:"organizationalUnit"` // The password associated with the `username`. Password string `pulumi:"password"` // When LDAP over SSL/TLS is enabled, the LDAP client is required to have a *base64 encoded Active Directory Certificate Service's self-signed root CA certificate*, this optional parameter is used only for dual protocol with LDAP user-mapping volumes. Required if `ldapOverTlsEnabled` is set to `true`. ServerRootCaCertificate *string `pulumi:"serverRootCaCertificate"` // The Active Directory site the service will limit Domain Controller discovery to. If blank, defaults to `Default-First-Site-Name`. SiteName *string `pulumi:"siteName"` // The NetBIOS name which should be used for the NetApp SMB Server, which will be registered as a computer account in the AD and used to mount volumes. SmbServerName string `pulumi:"smbServerName"` // The Username of Active Directory Domain Administrator. Username string `pulumi:"username"` } // AccountActiveDirectoryInput is an input type that accepts AccountActiveDirectoryArgs and AccountActiveDirectoryOutput values. // You can construct a concrete instance of `AccountActiveDirectoryInput` via: // // AccountActiveDirectoryArgs{...} type AccountActiveDirectoryInput interface { pulumi.Input ToAccountActiveDirectoryOutput() AccountActiveDirectoryOutput ToAccountActiveDirectoryOutputWithContext(context.Context) AccountActiveDirectoryOutput } type AccountActiveDirectoryArgs struct { // If enabled, AES encryption will be enabled for SMB communication. Defaults to `false`. AesEncryptionEnabled pulumi.BoolPtrInput `pulumi:"aesEncryptionEnabled"` // A list of DNS server IP addresses for the Active Directory domain. Only allows `IPv4` address. DnsServers pulumi.StringArrayInput `pulumi:"dnsServers"` // The name of the Active Directory domain. Domain pulumi.StringInput `pulumi:"domain"` // Name of the active directory machine. KerberosAdName pulumi.StringPtrInput `pulumi:"kerberosAdName"` // kdc server IP addresses for the active directory machine. // // > **Note:** If you plan on using **Kerberos** volumes, both `adName` and `kdcIp` are required in order to create the volume. KerberosKdcIp pulumi.StringPtrInput `pulumi:"kerberosKdcIp"` // Specifies whether or not the LDAP traffic needs to be secured via TLS. Defaults to `false`. LdapOverTlsEnabled pulumi.BoolPtrInput `pulumi:"ldapOverTlsEnabled"` // Specifies whether or not the LDAP traffic needs to be signed. Defaults to `false`. LdapSigningEnabled pulumi.BoolPtrInput `pulumi:"ldapSigningEnabled"` // If enabled, NFS client local users can also (in addition to LDAP users) access the NFS volumes. Defaults to `false`. LocalNfsUsersWithLdapAllowed pulumi.BoolPtrInput `pulumi:"localNfsUsersWithLdapAllowed"` // The Organizational Unit (OU) within Active Directory where machines will be created. If blank, defaults to `CN=Computers`. OrganizationalUnit pulumi.StringPtrInput `pulumi:"organizationalUnit"` // The password associated with the `username`. Password pulumi.StringInput `pulumi:"password"` // When LDAP over SSL/TLS is enabled, the LDAP client is required to have a *base64 encoded Active Directory Certificate Service's self-signed root CA certificate*, this optional parameter is used only for dual protocol with LDAP user-mapping volumes. Required if `ldapOverTlsEnabled` is set to `true`. ServerRootCaCertificate pulumi.StringPtrInput `pulumi:"serverRootCaCertificate"` // The Active Directory site the service will limit Domain Controller discovery to. If blank, defaults to `Default-First-Site-Name`. SiteName pulumi.StringPtrInput `pulumi:"siteName"` // The NetBIOS name which should be used for the NetApp SMB Server, which will be registered as a computer account in the AD and used to mount volumes. SmbServerName pulumi.StringInput `pulumi:"smbServerName"` // The Username of Active Directory Domain Administrator. Username pulumi.StringInput `pulumi:"username"` } func (AccountActiveDirectoryArgs) ElementType() reflect.Type { return reflect.TypeOf((*AccountActiveDirectory)(nil)).Elem() } func (i AccountActiveDirectoryArgs) ToAccountActiveDirectoryOutput() AccountActiveDirectoryOutput { return i.ToAccountActiveDirectoryOutputWithContext(context.Background()) } func (i AccountActiveDirectoryArgs) ToAccountActiveDirectoryOutputWithContext(ctx context.Context) AccountActiveDirectoryOutput { return pulumi.ToOutputWithContext(ctx, i).(AccountActiveDirectoryOutput) } func (i AccountActiveDirectoryArgs) ToAccountActiveDirectoryPtrOutput() AccountActiveDirectoryPtrOutput { return i.ToAccountActiveDirectoryPtrOutputWithContext(context.Background()) } func (i AccountActiveDirectoryArgs) ToAccountActiveDirectoryPtrOutputWithContext(ctx context.Context) AccountActiveDirectoryPtrOutput { return pulumi.ToOutputWithContext(ctx, i).(AccountActiveDirectoryOutput).ToAccountActiveDirectoryPtrOutputWithContext(ctx) } // AccountActiveDirectoryPtrInput is an input type that accepts AccountActiveDirectoryArgs, AccountActiveDirectoryPtr and AccountActiveDirectoryPtrOutput values. // You can construct a concrete instance of `AccountActiveDirectoryPtrInput` via: // // AccountActiveDirectoryArgs{...} // // or: // // nil type AccountActiveDirectoryPtrInput interface { pulumi.Input ToAccountActiveDirectoryPtrOutput() AccountActiveDirectoryPtrOutput ToAccountActiveDirectoryPtrOutputWithContext(context.Context) AccountActiveDirectoryPtrOutput } type accountActiveDirectoryPtrType AccountActiveDirectoryArgs func AccountActiveDirectoryPtr(v *AccountActiveDirectoryArgs) AccountActiveDirectoryPtrInput { return (*accountActiveDirectoryPtrType)(v) } func (*accountActiveDirectoryPtrType) ElementType() reflect.Type { return reflect.TypeOf((**AccountActiveDirectory)(nil)).Elem() } func (i *accountActiveDirectoryPtrType) ToAccountActiveDirectoryPtrOutput() AccountActiveDirectoryPtrOutput { return i.ToAccountActiveDirectoryPtrOutputWithContext(context.Background()) } func (i *accountActiveDirectoryPtrType) ToAccountActiveDirectoryPtrOutputWithContext(ctx context.Context) AccountActiveDirectoryPtrOutput { return pulumi.ToOutputWithContext(ctx, i).(AccountActiveDirectoryPtrOutput) } type AccountActiveDirectoryOutput struct{ *pulumi.OutputState } func (AccountActiveDirectoryOutput) ElementType() reflect.Type { return reflect.TypeOf((*AccountActiveDirectory)(nil)).Elem() } func (o AccountActiveDirectoryOutput) ToAccountActiveDirectoryOutput() AccountActiveDirectoryOutput { return o } func (o AccountActiveDirectoryOutput) ToAccountActiveDirectoryOutputWithContext(ctx context.Context) AccountActiveDirectoryOutput { return o } func (o AccountActiveDirectoryOutput) ToAccountActiveDirectoryPtrOutput() AccountActiveDirectoryPtrOutput { return o.ToAccountActiveDirectoryPtrOutputWithContext(context.Background()) } func (o AccountActiveDirectoryOutput) ToAccountActiveDirectoryPtrOutputWithContext(ctx context.Context) AccountActiveDirectoryPtrOutput { return o.ApplyTWithContext(ctx, func(_ context.Context, v AccountActiveDirectory) *AccountActiveDirectory { return &v }).(AccountActiveDirectoryPtrOutput) } // If enabled, AES encryption will be enabled for SMB communication. Defaults to `false`. func (o AccountActiveDirectoryOutput) AesEncryptionEnabled() pulumi.BoolPtrOutput { return o.ApplyT(func(v AccountActiveDirectory) *bool { return v.AesEncryptionEnabled }).(pulumi.BoolPtrOutput) } // A list of DNS server IP addresses for the Active Directory domain. Only allows `IPv4` address. func (o AccountActiveDirectoryOutput) DnsServers() pulumi.StringArrayOutput { return o.ApplyT(func(v AccountActiveDirectory) []string { return v.DnsServers }).(pulumi.StringArrayOutput) } // The name of the Active Directory domain. func (o AccountActiveDirectoryOutput) Domain() pulumi.StringOutput { return o.ApplyT(func(v AccountActiveDirectory) string { return v.Domain }).(pulumi.StringOutput) } // Name of the active directory machine. func (o AccountActiveDirectoryOutput) KerberosAdName() pulumi.StringPtrOutput { return o.ApplyT(func(v AccountActiveDirectory) *string { return v.KerberosAdName }).(pulumi.StringPtrOutput) } // kdc server IP addresses for the active directory machine. // // > **Note:** If you plan on using **Kerberos** volumes, both `adName` and `kdcIp` are required in order to create the volume. func (o AccountActiveDirectoryOutput) KerberosKdcIp() pulumi.StringPtrOutput { return o.ApplyT(func(v AccountActiveDirectory) *string { return v.KerberosKdcIp }).(pulumi.StringPtrOutput) } // Specifies whether or not the LDAP traffic needs to be secured via TLS. Defaults to `false`. func (o AccountActiveDirectoryOutput) LdapOverTlsEnabled() pulumi.BoolPtrOutput { return o.ApplyT(func(v AccountActiveDirectory) *bool { return v.LdapOverTlsEnabled }).(pulumi.BoolPtrOutput) } // Specifies whether or not the LDAP traffic needs to be signed. Defaults to `false`. func (o AccountActiveDirectoryOutput) LdapSigningEnabled() pulumi.BoolPtrOutput { return o.ApplyT(func(v AccountActiveDirectory) *bool { return v.LdapSigningEnabled }).(pulumi.BoolPtrOutput) } // If enabled, NFS client local users can also (in addition to LDAP users) access the NFS volumes. Defaults to `false`. func (o AccountActiveDirectoryOutput) LocalNfsUsersWithLdapAllowed() pulumi.BoolPtrOutput { return o.ApplyT(func(v AccountActiveDirectory) *bool { return v.LocalNfsUsersWithLdapAllowed }).(pulumi.BoolPtrOutput) } // The Organizational Unit (OU) within Active Directory where machines will be created. If blank, defaults to `CN=Computers`. func (o AccountActiveDirectoryOutput) OrganizationalUnit() pulumi.StringPtrOutput { return o.ApplyT(func(v AccountActiveDirectory) *string { return v.OrganizationalUnit }).(pulumi.StringPtrOutput) } // The password associated with the `username`. func (o AccountActiveDirectoryOutput) Password() pulumi.StringOutput { return o.ApplyT(func(v AccountActiveDirectory) string { return v.Password }).(pulumi.StringOutput) } // When LDAP over SSL/TLS is enabled, the LDAP client is required to have a *base64 encoded Active Directory Certificate Service's self-signed root CA certificate*, this optional parameter is used only for dual protocol with LDAP user-mapping volumes. Required if `ldapOverTlsEnabled` is set to `true`. func (o AccountActiveDirectoryOutput) ServerRootCaCertificate() pulumi.StringPtrOutput { return o.ApplyT(func(v AccountActiveDirectory) *string { return v.ServerRootCaCertificate }).(pulumi.StringPtrOutput) } // The Active Directory site the service will limit Domain Controller discovery to. If blank, defaults to `Default-First-Site-Name`. func (o AccountActiveDirectoryOutput) SiteName() pulumi.StringPtrOutput { return o.ApplyT(func(v AccountActiveDirectory) *string { return v.SiteName }).(pulumi.StringPtrOutput) } // The NetBIOS name which should be used for the NetApp SMB Server, which will be registered as a computer account in the AD and used to mount volumes. func (o AccountActiveDirectoryOutput) SmbServerName() pulumi.StringOutput { return o.ApplyT(func(v AccountActiveDirectory) string { return v.SmbServerName }).(pulumi.StringOutput) } // The Username of Active Directory Domain Administrator. func (o AccountActiveDirectoryOutput) Username() pulumi.StringOutput { return o.ApplyT(func(v AccountActiveDirectory) string { return v.Username }).(pulumi.StringOutput) } type AccountActiveDirectoryPtrOutput struct{ *pulumi.OutputState } func (AccountActiveDirectoryPtrOutput) ElementType() reflect.Type { return reflect.TypeOf((**AccountActiveDirectory)(nil)).Elem() } func (o AccountActiveDirectoryPtrOutput) ToAccountActiveDirectoryPtrOutput() AccountActiveDirectoryPtrOutput { return o } func (o AccountActiveDirectoryPtrOutput) ToAccountActiveDirectoryPtrOutputWithContext(ctx context.Context) AccountActiveDirectoryPtrOutput { return o } func (o AccountActiveDirectoryPtrOutput) Elem() AccountActiveDirectoryOutput { return o.ApplyT(func(v *AccountActiveDirectory) AccountActiveDirectory { if v != nil { return *v } var ret AccountActiveDirectory return ret }).(AccountActiveDirectoryOutput) } // If enabled, AES encryption will be enabled for SMB communication. Defaults to `false`. func (o AccountActiveDirectoryPtrOutput) AesEncryptionEnabled() pulumi.BoolPtrOutput { return o.ApplyT(func(v *AccountActiveDirectory) *bool { if v == nil { return nil } return v.AesEncryptionEnabled }).(pulumi.BoolPtrOutput) } // A list of DNS server IP addresses for the Active Directory domain. Only allows `IPv4` address. func (o AccountActiveDirectoryPtrOutput) DnsServers() pulumi.StringArrayOutput { return o.ApplyT(func(v *AccountActiveDirectory) []string { if v == nil { return nil } return v.DnsServers }).(pulumi.StringArrayOutput) } // The name of the Active Directory domain. func (o AccountActiveDirectoryPtrOutput) Domain() pulumi.StringPtrOutput { return o.ApplyT(func(v *AccountActiveDirectory) *string { if v == nil { return nil } return &v.Domain }).(pulumi.StringPtrOutput) } // Name of the active directory machine. func (o AccountActiveDirectoryPtrOutput) KerberosAdName() pulumi.StringPtrOutput { return o.ApplyT(func(v *AccountActiveDirectory) *string { if v == nil { return nil } return v.KerberosAdName }).(pulumi.StringPtrOutput) } // kdc server IP addresses for the active directory machine. // // > **Note:** If you plan on using **Kerberos** volumes, both `adName` and `kdcIp` are required in order to create the volume. func (o AccountActiveDirectoryPtrOutput) KerberosKdcIp() pulumi.StringPtrOutput { return o.ApplyT(func(v *AccountActiveDirectory) *string { if v == nil { return nil } return v.KerberosKdcIp }).(pulumi.StringPtrOutput) } // Specifies whether or not the LDAP traffic needs to be secured via TLS. Defaults to `false`. func (o AccountActiveDirectoryPtrOutput) LdapOverTlsEnabled() pulumi.BoolPtrOutput { return o.ApplyT(func(v *AccountActiveDirectory) *bool { if v == nil { return nil } return v.LdapOverTlsEnabled }).(pulumi.BoolPtrOutput) } // Specifies whether or not the LDAP traffic needs to be signed. Defaults to `false`. func (o AccountActiveDirectoryPtrOutput) LdapSigningEnabled() pulumi.BoolPtrOutput { return o.ApplyT(func(v *AccountActiveDirectory) *bool { if v == nil { return nil } return v.LdapSigningEnabled }).(pulumi.BoolPtrOutput) } // If enabled, NFS client local users can also (in addition to LDAP users) access the NFS volumes. Defaults to `false`. func (o AccountActiveDirectoryPtrOutput) LocalNfsUsersWithLdapAllowed() pulumi.BoolPtrOutput { return o.ApplyT(func(v *AccountActiveDirectory) *bool { if v == nil { return nil } return v.LocalNfsUsersWithLdapAllowed }).(pulumi.BoolPtrOutput) } // The Organizational Unit (OU) within Active Directory where machines will be created. If blank, defaults to `CN=Computers`. func (o AccountActiveDirectoryPtrOutput) OrganizationalUnit() pulumi.StringPtrOutput { return o.ApplyT(func(v *AccountActiveDirectory) *string { if v == nil { return nil } return v.OrganizationalUnit }).(pulumi.StringPtrOutput) } // The password associated with the `username`. func (o AccountActiveDirectoryPtrOutput) Password() pulumi.StringPtrOutput { return o.ApplyT(func(v *AccountActiveDirectory) *string { if v == nil { return nil } return &v.Password }).(pulumi.StringPtrOutput) } // When LDAP over SSL/TLS is enabled, the LDAP client is required to have a *base64 encoded Active Directory Certificate Service's self-signed root CA certificate*, this optional parameter is used only for dual protocol with LDAP user-mapping volumes. Required if `ldapOverTlsEnabled` is set to `true`. func (o AccountActiveDirectoryPtrOutput) ServerRootCaCertificate() pulumi.StringPtrOutput { return o.ApplyT(func(v *AccountActiveDirectory) *string { if v == nil { return nil } return v.ServerRootCaCertificate }).(pulumi.StringPtrOutput) } // The Active Directory site the service will limit Domain Controller discovery to. If blank, defaults to `Default-First-Site-Name`. func (o AccountActiveDirectoryPtrOutput) SiteName() pulumi.StringPtrOutput { return o.ApplyT(func(v *AccountActiveDirectory) *string { if v == nil { return nil } return v.SiteName }).(pulumi.StringPtrOutput) } // The NetBIOS name which should be used for the NetApp SMB Server, which will be registered as a computer account in the AD and used to mount volumes. func (o AccountActiveDirectoryPtrOutput) SmbServerName() pulumi.StringPtrOutput { return o.ApplyT(func(v *AccountActiveDirectory) *string { if v == nil { return nil } return &v.SmbServerName }).(pulumi.StringPtrOutput) } // The Username of Active Directory Domain Administrator. func (o AccountActiveDirectoryPtrOutput) Username() pulumi.StringPtrOutput { return o.ApplyT(func(v *AccountActiveDirectory) *string { if v == nil { return nil } return &v.Username }).(pulumi.StringPtrOutput) } type AccountIdentity struct { // The identity id of the user assigned identity to use when type is `UserAssigned` IdentityIds []string `pulumi:"identityIds"` PrincipalId *string `pulumi:"principalId"` TenantId *string `pulumi:"tenantId"` // The identity type, which can be `SystemAssigned` or `UserAssigned`. Only one type at a time is supported by Azure NetApp Files. Type string `pulumi:"type"` } // AccountIdentityInput is an input type that accepts AccountIdentityArgs and AccountIdentityOutput values. // You can construct a concrete instance of `AccountIdentityInput` via: // // AccountIdentityArgs{...} type AccountIdentityInput interface { pulumi.Input ToAccountIdentityOutput() AccountIdentityOutput ToAccountIdentityOutputWithContext(context.Context) AccountIdentityOutput } type AccountIdentityArgs struct { // The identity id of the user assigned identity to use when type is `UserAssigned` IdentityIds pulumi.StringArrayInput `pulumi:"identityIds"` PrincipalId pulumi.StringPtrInput `pulumi:"principalId"` TenantId pulumi.StringPtrInput `pulumi:"tenantId"` // The identity type, which can be `SystemAssigned` or `UserAssigned`. Only one type at a time is supported by Azure NetApp Files. Type pulumi.StringInput `pulumi:"type"` } func (AccountIdentityArgs) ElementType() reflect.Type { return reflect.TypeOf((*AccountIdentity)(nil)).Elem() } func (i AccountIdentityArgs) ToAccountIdentityOutput() AccountIdentityOutput { return i.ToAccountIdentityOutputWithContext(context.Background()) } func (i AccountIdentityArgs) ToAccountIdentityOutputWithContext(ctx context.Context) AccountIdentityOutput { return pulumi.ToOutputWithContext(ctx, i).(AccountIdentityOutput) } func (i AccountIdentityArgs) ToAccountIdentityPtrOutput() AccountIdentityPtrOutput { return i.ToAccountIdentityPtrOutputWithContext(context.Background()) } func (i AccountIdentityArgs) ToAccountIdentityPtrOutputWithContext(ctx context.Context) AccountIdentityPtrOutput { return pulumi.ToOutputWithContext(ctx, i).(AccountIdentityOutput).ToAccountIdentityPtrOutputWithContext(ctx) } // AccountIdentityPtrInput is an input type that accepts AccountIdentityArgs, AccountIdentityPtr and AccountIdentityPtrOutput values. // You can construct a concrete instance of `AccountIdentityPtrInput` via: // // AccountIdentityArgs{...} // // or: // // nil type AccountIdentityPtrInput interface { pulumi.Input ToAccountIdentityPtrOutput() AccountIdentityPtrOutput ToAccountIdentityPtrOutputWithContext(context.Context) AccountIdentityPtrOutput } type accountIdentityPtrType AccountIdentityArgs func AccountIdentityPtr(v *AccountIdentityArgs) AccountIdentityPtrInput { return (*accountIdentityPtrType)(v) } func (*accountIdentityPtrType) ElementType() reflect.Type { return reflect.TypeOf((**AccountIdentity)(nil)).Elem() } func (i *accountIdentityPtrType) ToAccountIdentityPtrOutput() AccountIdentityPtrOutput { return i.ToAccountIdentityPtrOutputWithContext(context.Background()) } func (i *accountIdentityPtrType) ToAccountIdentityPtrOutputWithContext(ctx context.Context) AccountIdentityPtrOutput { return pulumi.ToOutputWithContext(ctx, i).(AccountIdentityPtrOutput) } type AccountIdentityOutput struct{ *pulumi.OutputState } func (AccountIdentityOutput) ElementType() reflect.Type { return reflect.TypeOf((*AccountIdentity)(nil)).Elem() } func (o AccountIdentityOutput) ToAccountIdentityOutput() AccountIdentityOutput { return o } func (o AccountIdentityOutput) ToAccountIdentityOutputWithContext(ctx context.Context) AccountIdentityOutput { return o } func (o AccountIdentityOutput) ToAccountIdentityPtrOutput() AccountIdentityPtrOutput { return o.ToAccountIdentityPtrOutputWithContext(context.Background()) } func (o AccountIdentityOutput) ToAccountIdentityPtrOutputWithContext(ctx context.Context) AccountIdentityPtrOutput { return o.ApplyTWithContext(ctx, func(_ context.Context, v AccountIdentity) *AccountIdentity { return &v }).(AccountIdentityPtrOutput) } // The identity id of the user assigned identity to use when type is `UserAssigned` func (o AccountIdentityOutput) IdentityIds() pulumi.StringArrayOutput { return o.ApplyT(func(v AccountIdentity) []string { return v.IdentityIds }).(pulumi.StringArrayOutput) } func (o AccountIdentityOutput) PrincipalId() pulumi.StringPtrOutput { return o.ApplyT(func(v AccountIdentity) *string { return v.PrincipalId }).(pulumi.StringPtrOutput) } func (o AccountIdentityOutput) TenantId() pulumi.StringPtrOutput { return o.ApplyT(func(v AccountIdentity) *string { return v.TenantId }).(pulumi.StringPtrOutput) } // The identity type, which can be `SystemAssigned` or `UserAssigned`. Only one type at a time is supported by Azure NetApp Files. func (o AccountIdentityOutput) Type() pulumi.StringOutput { return o.ApplyT(func(v AccountIdentity) string { return v.Type }).(pulumi.StringOutput) } type AccountIdentityPtrOutput struct{ *pulumi.OutputState } func (AccountIdentityPtrOutput) ElementType() reflect.Type { return reflect.TypeOf((**AccountIdentity)(nil)).Elem() } func (o AccountIdentityPtrOutput) ToAccountIdentityPtrOutput() AccountIdentityPtrOutput { return o } func (o AccountIdentityPtrOutput) ToAccountIdentityPtrOutputWithContext(ctx context.Context) AccountIdentityPtrOutput { return o } func (o AccountIdentityPtrOutput) Elem() AccountIdentityOutput { return o.ApplyT(func(v *AccountIdentity) AccountIdentity { if v != nil { return *v } var ret AccountIdentity return ret }).(AccountIdentityOutput) } // The identity id of the user assigned identity to use when type is `UserAssigned` func (o AccountIdentityPtrOutput) IdentityIds() pulumi.StringArrayOutput { return o.ApplyT(func(v *AccountIdentity) []string { if v == nil { return nil } return v.IdentityIds }).(pulumi.StringArrayOutput) } func (o AccountIdentityPtrOutput) PrincipalId() pulumi.StringPtrOutput { return o.ApplyT(func(v *AccountIdentity) *string { if v == nil { return nil } return v.PrincipalId }).(pulumi.StringPtrOutput) } func (o AccountIdentityPtrOutput) TenantId() pulumi.StringPtrOutput { return o.ApplyT(func(v *AccountIdentity) *string { if v == nil { return nil } return v.TenantId }).(pulumi.StringPtrOutput) } // The identity type, which can be `SystemAssigned` or `UserAssigned`. Only one type at a time is supported by Azure NetApp Files. func (o AccountIdentityPtrOutput) Type() pulumi.StringPtrOutput { return o.ApplyT(func(v *AccountIdentity) *string { if v == nil { return nil } return &v.Type }).(pulumi.StringPtrOutput) } type SnapshotPolicyDailySchedule struct { // Hour of the day that the snapshots will be created, valid range is from 0 to 23. Hour int `pulumi:"hour"` // Minute of the hour that the snapshots will be created, valid range is from 0 to 59. Minute int `pulumi:"minute"` // How many hourly snapshots to keep, valid range is from 0 to 255. SnapshotsToKeep int `pulumi:"snapshotsToKeep"` } // SnapshotPolicyDailyScheduleInput is an input type that accepts SnapshotPolicyDailyScheduleArgs and SnapshotPolicyDailyScheduleOutput values. // You can construct a concrete instance of `SnapshotPolicyDailyScheduleInput` via: // // SnapshotPolicyDailyScheduleArgs{...} type SnapshotPolicyDailyScheduleInput interface { pulumi.Input ToSnapshotPolicyDailyScheduleOutput() SnapshotPolicyDailyScheduleOutput ToSnapshotPolicyDailyScheduleOutputWithContext(context.Context) SnapshotPolicyDailyScheduleOutput } type SnapshotPolicyDailyScheduleArgs struct { // Hour of the day that the snapshots will be created, valid range is from 0 to 23. Hour pulumi.IntInput `pulumi:"hour"` // Minute of the hour that the snapshots will be created, valid range is from 0 to 59. Minute pulumi.IntInput `pulumi:"minute"` // How many hourly snapshots to keep, valid range is from 0 to 255. SnapshotsToKeep pulumi.IntInput `pulumi:"snapshotsToKeep"` } func (SnapshotPolicyDailyScheduleArgs) ElementType() reflect.Type { return reflect.TypeOf((*SnapshotPolicyDailySchedule)(nil)).Elem() } func (i SnapshotPolicyDailyScheduleArgs) ToSnapshotPolicyDailyScheduleOutput() SnapshotPolicyDailyScheduleOutput { return i.ToSnapshotPolicyDailyScheduleOutputWithContext(context.Background()) } func (i SnapshotPolicyDailyScheduleArgs) ToSnapshotPolicyDailyScheduleOutputWithContext(ctx context.Context) SnapshotPolicyDailyScheduleOutput { return pulumi.ToOutputWithContext(ctx, i).(SnapshotPolicyDailyScheduleOutput) } func (i SnapshotPolicyDailyScheduleArgs) ToSnapshotPolicyDailySchedulePtrOutput() SnapshotPolicyDailySchedulePtrOutput { return i.ToSnapshotPolicyDailySchedulePtrOutputWithContext(context.Background()) } func (i SnapshotPolicyDailyScheduleArgs) ToSnapshotPolicyDailySchedulePtrOutputWithContext(ctx context.Context) SnapshotPolicyDailySchedulePtrOutput { return pulumi.ToOutputWithContext(ctx, i).(SnapshotPolicyDailyScheduleOutput).ToSnapshotPolicyDailySchedulePtrOutputWithContext(ctx) } // SnapshotPolicyDailySchedulePtrInput is an input type that accepts SnapshotPolicyDailyScheduleArgs, SnapshotPolicyDailySchedulePtr and SnapshotPolicyDailySchedulePtrOutput values. // You can construct a concrete instance of `SnapshotPolicyDailySchedulePtrInput` via: // // SnapshotPolicyDailyScheduleArgs{...} // // or: // // nil type SnapshotPolicyDailySchedulePtrInput interface { pulumi.Input ToSnapshotPolicyDailySchedulePtrOutput() SnapshotPolicyDailySchedulePtrOutput ToSnapshotPolicyDailySchedulePtrOutputWithContext(context.Context) SnapshotPolicyDailySchedulePtrOutput } type snapshotPolicyDailySchedulePtrType SnapshotPolicyDailyScheduleArgs func SnapshotPolicyDailySchedulePtr(v *SnapshotPolicyDailyScheduleArgs) SnapshotPolicyDailySchedulePtrInput { return (*snapshotPolicyDailySchedulePtrType)(v) } func (*snapshotPolicyDailySchedulePtrType) ElementType() reflect.Type { return reflect.TypeOf((**SnapshotPolicyDailySchedule)(nil)).Elem() } func (i *snapshotPolicyDailySchedulePtrType) ToSnapshotPolicyDailySchedulePtrOutput() SnapshotPolicyDailySchedulePtrOutput { return i.ToSnapshotPolicyDailySchedulePtrOutputWithContext(context.Background()) } func (i *snapshotPolicyDailySchedulePtrType) ToSnapshotPolicyDailySchedulePtrOutputWithContext(ctx context.Context) SnapshotPolicyDailySchedulePtrOutput { return pulumi.ToOutputWithContext(ctx, i).(SnapshotPolicyDailySchedulePtrOutput) } type SnapshotPolicyDailyScheduleOutput struct{ *pulumi.OutputState } func (SnapshotPolicyDailyScheduleOutput) ElementType() reflect.Type { return reflect.TypeOf((*SnapshotPolicyDailySchedule)(nil)).Elem() } func (o SnapshotPolicyDailyScheduleOutput) ToSnapshotPolicyDailyScheduleOutput() SnapshotPolicyDailyScheduleOutput { return o } func (o SnapshotPolicyDailyScheduleOutput) ToSnapshotPolicyDailyScheduleOutputWithContext(ctx context.Context) SnapshotPolicyDailyScheduleOutput { return o } func (o SnapshotPolicyDailyScheduleOutput) ToSnapshotPolicyDailySchedulePtrOutput() SnapshotPolicyDailySchedulePtrOutput { return o.ToSnapshotPolicyDailySchedulePtrOutputWithContext(context.Background()) } func (o SnapshotPolicyDailyScheduleOutput) ToSnapshotPolicyDailySchedulePtrOutputWithContext(ctx context.Context) SnapshotPolicyDailySchedulePtrOutput { return o.ApplyTWithContext(ctx, func(_ context.Context, v SnapshotPolicyDailySchedule) *SnapshotPolicyDailySchedule { return &v }).(SnapshotPolicyDailySchedulePtrOutput) } // Hour of the day that the snapshots will be created, valid range is from 0 to 23. func (o SnapshotPolicyDailyScheduleOutput) Hour() pulumi.IntOutput { return o.ApplyT(func(v SnapshotPolicyDailySchedule) int { return v.Hour }).(pulumi.IntOutput) } // Minute of the hour that the snapshots will be created, valid range is from 0 to 59. func (o SnapshotPolicyDailyScheduleOutput) Minute() pulumi.IntOutput { return o.ApplyT(func(v SnapshotPolicyDailySchedule) int { return v.Minute }).(pulumi.IntOutput) } // How many hourly snapshots to keep, valid range is from 0 to 255. func (o SnapshotPolicyDailyScheduleOutput) SnapshotsToKeep() pulumi.IntOutput { return o.ApplyT(func(v SnapshotPolicyDailySchedule) int { return v.SnapshotsToKeep }).(pulumi.IntOutput) } type SnapshotPolicyDailySchedulePtrOutput struct{ *pulumi.OutputState } func (SnapshotPolicyDailySchedulePtrOutput) ElementType() reflect.Type { return reflect.TypeOf((**SnapshotPolicyDailySchedule)(nil)).Elem() } func (o SnapshotPolicyDailySchedulePtrOutput) ToSnapshotPolicyDailySchedulePtrOutput() SnapshotPolicyDailySchedulePtrOutput { return o } func (o SnapshotPolicyDailySchedulePtrOutput) ToSnapshotPolicyDailySchedulePtrOutputWithContext(ctx context.Context) SnapshotPolicyDailySchedulePtrOutput { return o } func (o SnapshotPolicyDailySchedulePtrOutput) Elem() SnapshotPolicyDailyScheduleOutput { return o.ApplyT(func(v *SnapshotPolicyDailySchedule) SnapshotPolicyDailySchedule { if v != nil { return *v } var ret SnapshotPolicyDailySchedule return ret }).(SnapshotPolicyDailyScheduleOutput) } // Hour of the day that the snapshots will be created, valid range is from 0 to 23. func (o SnapshotPolicyDailySchedulePtrOutput) Hour() pulumi.IntPtrOutput { return o.ApplyT(func(v *SnapshotPolicyDailySchedule) *int { if v == nil { return nil } return &v.Hour }).(pulumi.IntPtrOutput) } // Minute of the hour that the snapshots will be created, valid range is from 0 to 59. func (o SnapshotPolicyDailySchedulePtrOutput) Minute() pulumi.IntPtrOutput { return o.ApplyT(func(v *SnapshotPolicyDailySchedule) *int { if v == nil { return nil } return &v.Minute }).(pulumi.IntPtrOutput) } // How many hourly snapshots to keep, valid range is from 0 to 255. func (o SnapshotPolicyDailySchedulePtrOutput) SnapshotsToKeep() pulumi.IntPtrOutput { return o.ApplyT(func(v *SnapshotPolicyDailySchedule) *int { if v == nil { return nil } return &v.SnapshotsToKeep }).(pulumi.IntPtrOutput) }
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/netapp/volume.go
sdk/go/azure/netapp/volume.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 netapp import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a NetApp Volume. // // !> **Note:** This resource uses a feature to prevent deletion called `preventVolumeDestruction`, defaulting to `true`. It is intentionally set to `true` to prevent the possibility of accidental data loss. The example in this page shows all possible protection options you can apply, it is using same values as the defaults. // // ## Import // // NetApp Volumes can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:netapp/volume:Volume example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1/volumes/volume1 // ``` type Volume struct { pulumi.CustomResourceState // While auto splitting the short term clone volume, if the parent pool does not have enough space to accommodate the volume after split, it will be automatically resized, which will lead to increased billing. To accept capacity pool size auto grow and create a short term clone volume, set the property as `Accepted`. If `Declined`, the short term clone volume creation operation will fail. This property can only be used in conjunction with `createFromSnapshotResourceId`. Changing this forces a new resource to be created. // // > **Note:** Short-term clones are not supported on large volumes or volumes enabled for cool access. Short-term clones automatically convert to regular volumes after 32 days. For more information, please refer to [Create a short-term clone volume in Azure NetApp Files](https://learn.microsoft.com/en-us/azure/azure-netapp-files/create-short-term-clone) AcceptGrowCapacityPoolForShortTermCloneSplit pulumi.StringPtrOutput `pulumi:"acceptGrowCapacityPoolForShortTermCloneSplit"` // The name of the NetApp account in which the NetApp Pool should be created. Changing this forces a new resource to be created. AccountName pulumi.StringOutput `pulumi:"accountName"` // Is the NetApp Volume enabled for Azure VMware Solution (AVS) datastore purpose. Defaults to `false`. Changing this forces a new resource to be created. AzureVmwareDataStoreEnabled pulumi.BoolPtrOutput `pulumi:"azureVmwareDataStoreEnabled"` // A `coolAccess` block as defined below. CoolAccess VolumeCoolAccessPtrOutput `pulumi:"coolAccess"` // Creates volume from snapshot. Following properties must be the same as the original volume where the snapshot was taken from: `protocols`, `subnetId`, `location`, `serviceLevel`, `resourceGroupName` and `accountName`. Changing this forces a new resource to be created. CreateFromSnapshotResourceId pulumi.StringPtrOutput `pulumi:"createFromSnapshotResourceId"` // A `dataProtectionBackupPolicy` block as defined below. DataProtectionBackupPolicy VolumeDataProtectionBackupPolicyPtrOutput `pulumi:"dataProtectionBackupPolicy"` // A `dataProtectionReplication` block as defined below. Changing this forces a new resource to be created. DataProtectionReplication VolumeDataProtectionReplicationPtrOutput `pulumi:"dataProtectionReplication"` // A `dataProtectionSnapshotPolicy` block as defined below. DataProtectionSnapshotPolicy VolumeDataProtectionSnapshotPolicyPtrOutput `pulumi:"dataProtectionSnapshotPolicy"` // The encryption key source, it can be `Microsoft.NetApp` for platform managed keys or `Microsoft.KeyVault` for customer-managed keys. This is required with `keyVaultPrivateEndpointId`. Changing this forces a new resource to be created. EncryptionKeySource pulumi.StringOutput `pulumi:"encryptionKeySource"` // One or more `exportPolicyRule` block defined below. ExportPolicyRules VolumeExportPolicyRuleArrayOutput `pulumi:"exportPolicyRules"` // Enable to allow Kerberos secured volumes. Requires appropriate export rules as well as the parent `netapp.Account` having a defined AD connection. KerberosEnabled pulumi.BoolPtrOutput `pulumi:"kerberosEnabled"` // The Private Endpoint ID for Key Vault, which is required when using customer-managed keys. This is required with `encryptionKeySource`. Changing this forces a new resource to be created. KeyVaultPrivateEndpointId pulumi.StringOutput `pulumi:"keyVaultPrivateEndpointId"` // A boolean specifying if the volume is a large volume. Defaults to `false`. // // > **Note:** Large volumes must be at least 50 TiB in size and can be up to 1,024 TiB (1 PiB). For more information, please refer to [Requirements and considerations for large volumes](https://learn.microsoft.com/en-us/azure/azure-netapp-files/large-volumes-requirements-considerations) LargeVolumeEnabled pulumi.BoolPtrOutput `pulumi:"largeVolumeEnabled"` // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location pulumi.StringOutput `pulumi:"location"` // A list of IPv4 Addresses which should be used to mount the volume. MountIpAddresses pulumi.StringArrayOutput `pulumi:"mountIpAddresses"` // The name of the NetApp Volume. Changing this forces a new resource to be created. Name pulumi.StringOutput `pulumi:"name"` // Indicates which network feature to use, accepted values are `Basic` or `Standard`, it defaults to `Basic` if not defined. This is a feature in public preview and for more information about it and how to register, please refer to [Configure network features for an Azure NetApp Files volume](https://docs.microsoft.com/en-us/azure/azure-netapp-files/configure-network-features). NetworkFeatures pulumi.StringOutput `pulumi:"networkFeatures"` // The name of the NetApp pool in which the NetApp Volume should be created. PoolName pulumi.StringOutput `pulumi:"poolName"` // The target volume protocol expressed as a list. Supported single value include `CIFS`, `NFSv3`, or `NFSv4.1`. If argument is not defined it will default to `NFSv3`. Protocol conversion between `NFSv3` and `NFSv4.1` and vice-versa is supported without recreating the volume, however export policy rules must be updated accordingly to avoid configuration drift (e.g., when converting from `NFSv3` to `NFSv4.1`, set `nfsv3Enabled = false` and `nfsv41Enabled = true` in export policy rules). Dual protocol scenario is supported for CIFS and NFSv3, for more information, please refer to [Create a dual-protocol volume for Azure NetApp Files](https://docs.microsoft.com/azure/azure-netapp-files/create-volumes-dual-protocol) document. // // > **Note:** When converting protocols, ensure that export policy rules are updated to match the new protocol to avoid configuration drift. For example, when changing from NFSv3 to NFSv4.1, update the `protocol` field in export policy rules accordingly. Protocols pulumi.StringArrayOutput `pulumi:"protocols"` // The name of the resource group where the NetApp Volume should be created. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // Volume security style, accepted values are `unix` or `ntfs`. If not provided, single-protocol volume is created defaulting to `unix` if it is `NFSv3` or `NFSv4.1` volume, if `CIFS`, it will default to `ntfs`. In a dual-protocol volume, if not provided, its value will be `ntfs`. Changing this forces a new resource to be created. SecurityStyle pulumi.StringOutput `pulumi:"securityStyle"` ServiceLevel pulumi.StringOutput `pulumi:"serviceLevel"` // Enable SMB encryption. Changing this forces a new resource to be created. Smb3ProtocolEncryptionEnabled pulumi.BoolPtrOutput `pulumi:"smb3ProtocolEncryptionEnabled"` // Limits enumeration of files and folders (that is, listing the contents) in SMB only to users with allowed access on the share. For instance, if a user doesn't have access to read a file or folder in a share with access-based enumeration enabled, then the file or folder doesn't show up in directory listings. Defaults to `false`. For more information, please refer to [Understand NAS share permissions in Azure NetApp Files](https://learn.microsoft.com/en-us/azure/azure-netapp-files/network-attached-storage-permissions#:~:text=security%20for%20administrators.-,Access%2Dbased%20enumeration,in%20an%20Azure%20NetApp%20Files%20SMB%20volume.%20Only%20contosoadmin%20has%20access.,-In%20the%20below) SmbAccessBasedEnumerationEnabled pulumi.BoolPtrOutput `pulumi:"smbAccessBasedEnumerationEnabled"` // Enable SMB Continuous Availability. Changing this forces a new resource to be created. SmbContinuousAvailabilityEnabled pulumi.BoolPtrOutput `pulumi:"smbContinuousAvailabilityEnabled"` // Limits clients from browsing for an SMB share by hiding the share from view in Windows Explorer or when listing shares in "net view." Only end users that know the absolute paths to the share are able to find the share. Defaults to `false`. For more information, please refer to [Understand NAS share permissions in Azure NetApp Files](https://learn.microsoft.com/en-us/azure/azure-netapp-files/network-attached-storage-permissions#:~:text=Non%2Dbrowsable%20shares,find%20the%20share.) SmbNonBrowsableEnabled pulumi.BoolPtrOutput `pulumi:"smbNonBrowsableEnabled"` // Specifies whether the .snapshot (NFS clients) or ~snapshot (SMB clients) path of a volume is visible. Defaults to `true`. SnapshotDirectoryVisible pulumi.BoolPtrOutput `pulumi:"snapshotDirectoryVisible"` // The maximum Storage Quota allowed for a file system in Gigabytes. StorageQuotaInGb pulumi.IntOutput `pulumi:"storageQuotaInGb"` // The ID of the Subnet the NetApp Volume resides in, which must have the `Microsoft.NetApp/volumes` delegation. Changing this forces a new resource to be created. SubnetId pulumi.StringOutput `pulumi:"subnetId"` // A mapping of tags to assign to the resource. // // > **Note:** It is highly recommended to use the **lifecycle** property as noted in the example since it will prevent an accidental deletion of the volume if the `protocols` argument changes to a different protocol type. Tags pulumi.StringMapOutput `pulumi:"tags"` // Throughput of this volume in Mibps. ThroughputInMibps pulumi.Float64Output `pulumi:"throughputInMibps"` // A unique file path for the volume. Used when creating mount targets. Changing this forces a new resource to be created. VolumePath pulumi.StringOutput `pulumi:"volumePath"` // Specifies the Availability Zone in which the Volume should be located. Possible values are `1`, `2` and `3`. Changing this forces a new resource to be created. This feature is currently in preview, for more information on how to enable it, please refer to [Manage availability zone volume placement for Azure NetApp Files](https://learn.microsoft.com/en-us/azure/azure-netapp-files/manage-availability-zone-volume-placement#register-the-feature). Zone pulumi.StringPtrOutput `pulumi:"zone"` } // NewVolume registers a new resource with the given unique name, arguments, and options. func NewVolume(ctx *pulumi.Context, name string, args *VolumeArgs, opts ...pulumi.ResourceOption) (*Volume, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.AccountName == nil { return nil, errors.New("invalid value for required argument 'AccountName'") } if args.PoolName == nil { return nil, errors.New("invalid value for required argument 'PoolName'") } if args.ResourceGroupName == nil { return nil, errors.New("invalid value for required argument 'ResourceGroupName'") } if args.ServiceLevel == nil { return nil, errors.New("invalid value for required argument 'ServiceLevel'") } if args.StorageQuotaInGb == nil { return nil, errors.New("invalid value for required argument 'StorageQuotaInGb'") } if args.SubnetId == nil { return nil, errors.New("invalid value for required argument 'SubnetId'") } if args.VolumePath == nil { return nil, errors.New("invalid value for required argument 'VolumePath'") } opts = internal.PkgResourceDefaultOpts(opts) var resource Volume err := ctx.RegisterResource("azure:netapp/volume:Volume", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetVolume gets an existing Volume 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 GetVolume(ctx *pulumi.Context, name string, id pulumi.IDInput, state *VolumeState, opts ...pulumi.ResourceOption) (*Volume, error) { var resource Volume err := ctx.ReadResource("azure:netapp/volume:Volume", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering Volume resources. type volumeState struct { // While auto splitting the short term clone volume, if the parent pool does not have enough space to accommodate the volume after split, it will be automatically resized, which will lead to increased billing. To accept capacity pool size auto grow and create a short term clone volume, set the property as `Accepted`. If `Declined`, the short term clone volume creation operation will fail. This property can only be used in conjunction with `createFromSnapshotResourceId`. Changing this forces a new resource to be created. // // > **Note:** Short-term clones are not supported on large volumes or volumes enabled for cool access. Short-term clones automatically convert to regular volumes after 32 days. For more information, please refer to [Create a short-term clone volume in Azure NetApp Files](https://learn.microsoft.com/en-us/azure/azure-netapp-files/create-short-term-clone) AcceptGrowCapacityPoolForShortTermCloneSplit *string `pulumi:"acceptGrowCapacityPoolForShortTermCloneSplit"` // The name of the NetApp account in which the NetApp Pool should be created. Changing this forces a new resource to be created. AccountName *string `pulumi:"accountName"` // Is the NetApp Volume enabled for Azure VMware Solution (AVS) datastore purpose. Defaults to `false`. Changing this forces a new resource to be created. AzureVmwareDataStoreEnabled *bool `pulumi:"azureVmwareDataStoreEnabled"` // A `coolAccess` block as defined below. CoolAccess *VolumeCoolAccess `pulumi:"coolAccess"` // Creates volume from snapshot. Following properties must be the same as the original volume where the snapshot was taken from: `protocols`, `subnetId`, `location`, `serviceLevel`, `resourceGroupName` and `accountName`. Changing this forces a new resource to be created. CreateFromSnapshotResourceId *string `pulumi:"createFromSnapshotResourceId"` // A `dataProtectionBackupPolicy` block as defined below. DataProtectionBackupPolicy *VolumeDataProtectionBackupPolicy `pulumi:"dataProtectionBackupPolicy"` // A `dataProtectionReplication` block as defined below. Changing this forces a new resource to be created. DataProtectionReplication *VolumeDataProtectionReplication `pulumi:"dataProtectionReplication"` // A `dataProtectionSnapshotPolicy` block as defined below. DataProtectionSnapshotPolicy *VolumeDataProtectionSnapshotPolicy `pulumi:"dataProtectionSnapshotPolicy"` // The encryption key source, it can be `Microsoft.NetApp` for platform managed keys or `Microsoft.KeyVault` for customer-managed keys. This is required with `keyVaultPrivateEndpointId`. Changing this forces a new resource to be created. EncryptionKeySource *string `pulumi:"encryptionKeySource"` // One or more `exportPolicyRule` block defined below. ExportPolicyRules []VolumeExportPolicyRule `pulumi:"exportPolicyRules"` // Enable to allow Kerberos secured volumes. Requires appropriate export rules as well as the parent `netapp.Account` having a defined AD connection. KerberosEnabled *bool `pulumi:"kerberosEnabled"` // The Private Endpoint ID for Key Vault, which is required when using customer-managed keys. This is required with `encryptionKeySource`. Changing this forces a new resource to be created. KeyVaultPrivateEndpointId *string `pulumi:"keyVaultPrivateEndpointId"` // A boolean specifying if the volume is a large volume. Defaults to `false`. // // > **Note:** Large volumes must be at least 50 TiB in size and can be up to 1,024 TiB (1 PiB). For more information, please refer to [Requirements and considerations for large volumes](https://learn.microsoft.com/en-us/azure/azure-netapp-files/large-volumes-requirements-considerations) LargeVolumeEnabled *bool `pulumi:"largeVolumeEnabled"` // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location *string `pulumi:"location"` // A list of IPv4 Addresses which should be used to mount the volume. MountIpAddresses []string `pulumi:"mountIpAddresses"` // The name of the NetApp Volume. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // Indicates which network feature to use, accepted values are `Basic` or `Standard`, it defaults to `Basic` if not defined. This is a feature in public preview and for more information about it and how to register, please refer to [Configure network features for an Azure NetApp Files volume](https://docs.microsoft.com/en-us/azure/azure-netapp-files/configure-network-features). NetworkFeatures *string `pulumi:"networkFeatures"` // The name of the NetApp pool in which the NetApp Volume should be created. PoolName *string `pulumi:"poolName"` // The target volume protocol expressed as a list. Supported single value include `CIFS`, `NFSv3`, or `NFSv4.1`. If argument is not defined it will default to `NFSv3`. Protocol conversion between `NFSv3` and `NFSv4.1` and vice-versa is supported without recreating the volume, however export policy rules must be updated accordingly to avoid configuration drift (e.g., when converting from `NFSv3` to `NFSv4.1`, set `nfsv3Enabled = false` and `nfsv41Enabled = true` in export policy rules). Dual protocol scenario is supported for CIFS and NFSv3, for more information, please refer to [Create a dual-protocol volume for Azure NetApp Files](https://docs.microsoft.com/azure/azure-netapp-files/create-volumes-dual-protocol) document. // // > **Note:** When converting protocols, ensure that export policy rules are updated to match the new protocol to avoid configuration drift. For example, when changing from NFSv3 to NFSv4.1, update the `protocol` field in export policy rules accordingly. Protocols []string `pulumi:"protocols"` // The name of the resource group where the NetApp Volume should be created. Changing this forces a new resource to be created. ResourceGroupName *string `pulumi:"resourceGroupName"` // Volume security style, accepted values are `unix` or `ntfs`. If not provided, single-protocol volume is created defaulting to `unix` if it is `NFSv3` or `NFSv4.1` volume, if `CIFS`, it will default to `ntfs`. In a dual-protocol volume, if not provided, its value will be `ntfs`. Changing this forces a new resource to be created. SecurityStyle *string `pulumi:"securityStyle"` ServiceLevel *string `pulumi:"serviceLevel"` // Enable SMB encryption. Changing this forces a new resource to be created. Smb3ProtocolEncryptionEnabled *bool `pulumi:"smb3ProtocolEncryptionEnabled"` // Limits enumeration of files and folders (that is, listing the contents) in SMB only to users with allowed access on the share. For instance, if a user doesn't have access to read a file or folder in a share with access-based enumeration enabled, then the file or folder doesn't show up in directory listings. Defaults to `false`. For more information, please refer to [Understand NAS share permissions in Azure NetApp Files](https://learn.microsoft.com/en-us/azure/azure-netapp-files/network-attached-storage-permissions#:~:text=security%20for%20administrators.-,Access%2Dbased%20enumeration,in%20an%20Azure%20NetApp%20Files%20SMB%20volume.%20Only%20contosoadmin%20has%20access.,-In%20the%20below) SmbAccessBasedEnumerationEnabled *bool `pulumi:"smbAccessBasedEnumerationEnabled"` // Enable SMB Continuous Availability. Changing this forces a new resource to be created. SmbContinuousAvailabilityEnabled *bool `pulumi:"smbContinuousAvailabilityEnabled"` // Limits clients from browsing for an SMB share by hiding the share from view in Windows Explorer or when listing shares in "net view." Only end users that know the absolute paths to the share are able to find the share. Defaults to `false`. For more information, please refer to [Understand NAS share permissions in Azure NetApp Files](https://learn.microsoft.com/en-us/azure/azure-netapp-files/network-attached-storage-permissions#:~:text=Non%2Dbrowsable%20shares,find%20the%20share.) SmbNonBrowsableEnabled *bool `pulumi:"smbNonBrowsableEnabled"` // Specifies whether the .snapshot (NFS clients) or ~snapshot (SMB clients) path of a volume is visible. Defaults to `true`. SnapshotDirectoryVisible *bool `pulumi:"snapshotDirectoryVisible"` // The maximum Storage Quota allowed for a file system in Gigabytes. StorageQuotaInGb *int `pulumi:"storageQuotaInGb"` // The ID of the Subnet the NetApp Volume resides in, which must have the `Microsoft.NetApp/volumes` delegation. Changing this forces a new resource to be created. SubnetId *string `pulumi:"subnetId"` // A mapping of tags to assign to the resource. // // > **Note:** It is highly recommended to use the **lifecycle** property as noted in the example since it will prevent an accidental deletion of the volume if the `protocols` argument changes to a different protocol type. Tags map[string]string `pulumi:"tags"` // Throughput of this volume in Mibps. ThroughputInMibps *float64 `pulumi:"throughputInMibps"` // A unique file path for the volume. Used when creating mount targets. Changing this forces a new resource to be created. VolumePath *string `pulumi:"volumePath"` // Specifies the Availability Zone in which the Volume should be located. Possible values are `1`, `2` and `3`. Changing this forces a new resource to be created. This feature is currently in preview, for more information on how to enable it, please refer to [Manage availability zone volume placement for Azure NetApp Files](https://learn.microsoft.com/en-us/azure/azure-netapp-files/manage-availability-zone-volume-placement#register-the-feature). Zone *string `pulumi:"zone"` } type VolumeState struct { // While auto splitting the short term clone volume, if the parent pool does not have enough space to accommodate the volume after split, it will be automatically resized, which will lead to increased billing. To accept capacity pool size auto grow and create a short term clone volume, set the property as `Accepted`. If `Declined`, the short term clone volume creation operation will fail. This property can only be used in conjunction with `createFromSnapshotResourceId`. Changing this forces a new resource to be created. // // > **Note:** Short-term clones are not supported on large volumes or volumes enabled for cool access. Short-term clones automatically convert to regular volumes after 32 days. For more information, please refer to [Create a short-term clone volume in Azure NetApp Files](https://learn.microsoft.com/en-us/azure/azure-netapp-files/create-short-term-clone) AcceptGrowCapacityPoolForShortTermCloneSplit pulumi.StringPtrInput // The name of the NetApp account in which the NetApp Pool should be created. Changing this forces a new resource to be created. AccountName pulumi.StringPtrInput // Is the NetApp Volume enabled for Azure VMware Solution (AVS) datastore purpose. Defaults to `false`. Changing this forces a new resource to be created. AzureVmwareDataStoreEnabled pulumi.BoolPtrInput // A `coolAccess` block as defined below. CoolAccess VolumeCoolAccessPtrInput // Creates volume from snapshot. Following properties must be the same as the original volume where the snapshot was taken from: `protocols`, `subnetId`, `location`, `serviceLevel`, `resourceGroupName` and `accountName`. Changing this forces a new resource to be created. CreateFromSnapshotResourceId pulumi.StringPtrInput // A `dataProtectionBackupPolicy` block as defined below. DataProtectionBackupPolicy VolumeDataProtectionBackupPolicyPtrInput // A `dataProtectionReplication` block as defined below. Changing this forces a new resource to be created. DataProtectionReplication VolumeDataProtectionReplicationPtrInput // A `dataProtectionSnapshotPolicy` block as defined below. DataProtectionSnapshotPolicy VolumeDataProtectionSnapshotPolicyPtrInput // The encryption key source, it can be `Microsoft.NetApp` for platform managed keys or `Microsoft.KeyVault` for customer-managed keys. This is required with `keyVaultPrivateEndpointId`. Changing this forces a new resource to be created. EncryptionKeySource pulumi.StringPtrInput // One or more `exportPolicyRule` block defined below. ExportPolicyRules VolumeExportPolicyRuleArrayInput // Enable to allow Kerberos secured volumes. Requires appropriate export rules as well as the parent `netapp.Account` having a defined AD connection. KerberosEnabled pulumi.BoolPtrInput // The Private Endpoint ID for Key Vault, which is required when using customer-managed keys. This is required with `encryptionKeySource`. Changing this forces a new resource to be created. KeyVaultPrivateEndpointId pulumi.StringPtrInput // A boolean specifying if the volume is a large volume. Defaults to `false`. // // > **Note:** Large volumes must be at least 50 TiB in size and can be up to 1,024 TiB (1 PiB). For more information, please refer to [Requirements and considerations for large volumes](https://learn.microsoft.com/en-us/azure/azure-netapp-files/large-volumes-requirements-considerations) LargeVolumeEnabled pulumi.BoolPtrInput // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location pulumi.StringPtrInput // A list of IPv4 Addresses which should be used to mount the volume. MountIpAddresses pulumi.StringArrayInput // The name of the NetApp Volume. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // Indicates which network feature to use, accepted values are `Basic` or `Standard`, it defaults to `Basic` if not defined. This is a feature in public preview and for more information about it and how to register, please refer to [Configure network features for an Azure NetApp Files volume](https://docs.microsoft.com/en-us/azure/azure-netapp-files/configure-network-features). NetworkFeatures pulumi.StringPtrInput // The name of the NetApp pool in which the NetApp Volume should be created. PoolName pulumi.StringPtrInput // The target volume protocol expressed as a list. Supported single value include `CIFS`, `NFSv3`, or `NFSv4.1`. If argument is not defined it will default to `NFSv3`. Protocol conversion between `NFSv3` and `NFSv4.1` and vice-versa is supported without recreating the volume, however export policy rules must be updated accordingly to avoid configuration drift (e.g., when converting from `NFSv3` to `NFSv4.1`, set `nfsv3Enabled = false` and `nfsv41Enabled = true` in export policy rules). Dual protocol scenario is supported for CIFS and NFSv3, for more information, please refer to [Create a dual-protocol volume for Azure NetApp Files](https://docs.microsoft.com/azure/azure-netapp-files/create-volumes-dual-protocol) document. // // > **Note:** When converting protocols, ensure that export policy rules are updated to match the new protocol to avoid configuration drift. For example, when changing from NFSv3 to NFSv4.1, update the `protocol` field in export policy rules accordingly. Protocols pulumi.StringArrayInput // The name of the resource group where the NetApp Volume should be created. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringPtrInput // Volume security style, accepted values are `unix` or `ntfs`. If not provided, single-protocol volume is created defaulting to `unix` if it is `NFSv3` or `NFSv4.1` volume, if `CIFS`, it will default to `ntfs`. In a dual-protocol volume, if not provided, its value will be `ntfs`. Changing this forces a new resource to be created. SecurityStyle pulumi.StringPtrInput ServiceLevel pulumi.StringPtrInput // Enable SMB encryption. Changing this forces a new resource to be created. Smb3ProtocolEncryptionEnabled pulumi.BoolPtrInput // Limits enumeration of files and folders (that is, listing the contents) in SMB only to users with allowed access on the share. For instance, if a user doesn't have access to read a file or folder in a share with access-based enumeration enabled, then the file or folder doesn't show up in directory listings. Defaults to `false`. For more information, please refer to [Understand NAS share permissions in Azure NetApp Files](https://learn.microsoft.com/en-us/azure/azure-netapp-files/network-attached-storage-permissions#:~:text=security%20for%20administrators.-,Access%2Dbased%20enumeration,in%20an%20Azure%20NetApp%20Files%20SMB%20volume.%20Only%20contosoadmin%20has%20access.,-In%20the%20below) SmbAccessBasedEnumerationEnabled pulumi.BoolPtrInput // Enable SMB Continuous Availability. Changing this forces a new resource to be created. SmbContinuousAvailabilityEnabled pulumi.BoolPtrInput // Limits clients from browsing for an SMB share by hiding the share from view in Windows Explorer or when listing shares in "net view." Only end users that know the absolute paths to the share are able to find the share. Defaults to `false`. For more information, please refer to [Understand NAS share permissions in Azure NetApp Files](https://learn.microsoft.com/en-us/azure/azure-netapp-files/network-attached-storage-permissions#:~:text=Non%2Dbrowsable%20shares,find%20the%20share.) SmbNonBrowsableEnabled pulumi.BoolPtrInput // Specifies whether the .snapshot (NFS clients) or ~snapshot (SMB clients) path of a volume is visible. Defaults to `true`. SnapshotDirectoryVisible pulumi.BoolPtrInput // The maximum Storage Quota allowed for a file system in Gigabytes. StorageQuotaInGb pulumi.IntPtrInput // The ID of the Subnet the NetApp Volume resides in, which must have the `Microsoft.NetApp/volumes` delegation. Changing this forces a new resource to be created. SubnetId pulumi.StringPtrInput // A mapping of tags to assign to the resource. // // > **Note:** It is highly recommended to use the **lifecycle** property as noted in the example since it will prevent an accidental deletion of the volume if the `protocols` argument changes to a different protocol type. Tags pulumi.StringMapInput // Throughput of this volume in Mibps. ThroughputInMibps pulumi.Float64PtrInput // A unique file path for the volume. Used when creating mount targets. Changing this forces a new resource to be created. VolumePath pulumi.StringPtrInput // Specifies the Availability Zone in which the Volume should be located. Possible values are `1`, `2` and `3`. Changing this forces a new resource to be created. This feature is currently in preview, for more information on how to enable it, please refer to [Manage availability zone volume placement for Azure NetApp Files](https://learn.microsoft.com/en-us/azure/azure-netapp-files/manage-availability-zone-volume-placement#register-the-feature). Zone pulumi.StringPtrInput } func (VolumeState) ElementType() reflect.Type { return reflect.TypeOf((*volumeState)(nil)).Elem() } type volumeArgs struct { // While auto splitting the short term clone volume, if the parent pool does not have enough space to accommodate the volume after split, it will be automatically resized, which will lead to increased billing. To accept capacity pool size auto grow and create a short term clone volume, set the property as `Accepted`. If `Declined`, the short term clone volume creation operation will fail. This property can only be used in conjunction with `createFromSnapshotResourceId`. Changing this forces a new resource to be created. // // > **Note:** Short-term clones are not supported on large volumes or volumes enabled for cool access. Short-term clones automatically convert to regular volumes after 32 days. For more information, please refer to [Create a short-term clone volume in Azure NetApp Files](https://learn.microsoft.com/en-us/azure/azure-netapp-files/create-short-term-clone) AcceptGrowCapacityPoolForShortTermCloneSplit *string `pulumi:"acceptGrowCapacityPoolForShortTermCloneSplit"` // The name of the NetApp account in which the NetApp Pool should be created. Changing this forces a new resource to be created. AccountName string `pulumi:"accountName"`
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/netapp/getBackupPolicy.go
sdk/go/azure/netapp/getBackupPolicy.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 netapp 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 NetApp Backup Vault. // // ## NetApp Backup Policy Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/netapp" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { // example, err := netapp.LookupBackupPolicy(ctx, &netapp.LookupBackupPolicyArgs{ // ResourceGroupName: "example-resource-group", // AccountName: "example-netappaccount", // Name: "example-backuppolicy", // }, nil) // if err != nil { // return err // } // ctx.Export("backupPolicyId", example.Id) // return nil // }) // } // // ``` // // ## API Providers // // <!-- This section is generated, changes will be overwritten --> // This data source uses the following Azure API Providers: // // * `Microsoft.NetApp` - 2025-06-01 func LookupBackupPolicy(ctx *pulumi.Context, args *LookupBackupPolicyArgs, opts ...pulumi.InvokeOption) (*LookupBackupPolicyResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupBackupPolicyResult err := ctx.Invoke("azure:netapp/getBackupPolicy:getBackupPolicy", args, &rv, opts...) if err != nil { return nil, err } return &rv, nil } // A collection of arguments for invoking getBackupPolicy. type LookupBackupPolicyArgs struct { // The name of the NetApp Account in which the NetApp Policy exists. AccountName string `pulumi:"accountName"` // The name of the NetApp Backup Policy. Name string `pulumi:"name"` // The name of the resource group where the NetApp Backup Policy exists. ResourceGroupName string `pulumi:"resourceGroupName"` } // A collection of values returned by getBackupPolicy. type LookupBackupPolicyResult struct { // The name of the NetApp account in which the NetApp Policy exists. AccountName string `pulumi:"accountName"` // The number of daily backups to keep. DailyBackupsToKeep int `pulumi:"dailyBackupsToKeep"` // Whether the Backup Policy is enabled. Enabled bool `pulumi:"enabled"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` // NetApp Backup Policy location. Location string `pulumi:"location"` // The number of monthly backups to keep. MonthlyBackupsToKeep int `pulumi:"monthlyBackupsToKeep"` Name string `pulumi:"name"` ResourceGroupName string `pulumi:"resourceGroupName"` // List of tags assigned to the resource. Tags map[string]string `pulumi:"tags"` // The number of weekly backups to keep. WeeklyBackupsToKeep int `pulumi:"weeklyBackupsToKeep"` } func LookupBackupPolicyOutput(ctx *pulumi.Context, args LookupBackupPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupBackupPolicyResultOutput { return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupBackupPolicyResultOutput, error) { args := v.(LookupBackupPolicyArgs) options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} return ctx.InvokeOutput("azure:netapp/getBackupPolicy:getBackupPolicy", args, LookupBackupPolicyResultOutput{}, options).(LookupBackupPolicyResultOutput), nil }).(LookupBackupPolicyResultOutput) } // A collection of arguments for invoking getBackupPolicy. type LookupBackupPolicyOutputArgs struct { // The name of the NetApp Account in which the NetApp Policy exists. AccountName pulumi.StringInput `pulumi:"accountName"` // The name of the NetApp Backup Policy. Name pulumi.StringInput `pulumi:"name"` // The name of the resource group where the NetApp Backup Policy exists. ResourceGroupName pulumi.StringInput `pulumi:"resourceGroupName"` } func (LookupBackupPolicyOutputArgs) ElementType() reflect.Type { return reflect.TypeOf((*LookupBackupPolicyArgs)(nil)).Elem() } // A collection of values returned by getBackupPolicy. type LookupBackupPolicyResultOutput struct{ *pulumi.OutputState } func (LookupBackupPolicyResultOutput) ElementType() reflect.Type { return reflect.TypeOf((*LookupBackupPolicyResult)(nil)).Elem() } func (o LookupBackupPolicyResultOutput) ToLookupBackupPolicyResultOutput() LookupBackupPolicyResultOutput { return o } func (o LookupBackupPolicyResultOutput) ToLookupBackupPolicyResultOutputWithContext(ctx context.Context) LookupBackupPolicyResultOutput { return o } // The name of the NetApp account in which the NetApp Policy exists. func (o LookupBackupPolicyResultOutput) AccountName() pulumi.StringOutput { return o.ApplyT(func(v LookupBackupPolicyResult) string { return v.AccountName }).(pulumi.StringOutput) } // The number of daily backups to keep. func (o LookupBackupPolicyResultOutput) DailyBackupsToKeep() pulumi.IntOutput { return o.ApplyT(func(v LookupBackupPolicyResult) int { return v.DailyBackupsToKeep }).(pulumi.IntOutput) } // Whether the Backup Policy is enabled. func (o LookupBackupPolicyResultOutput) Enabled() pulumi.BoolOutput { return o.ApplyT(func(v LookupBackupPolicyResult) bool { return v.Enabled }).(pulumi.BoolOutput) } // The provider-assigned unique ID for this managed resource. func (o LookupBackupPolicyResultOutput) Id() pulumi.StringOutput { return o.ApplyT(func(v LookupBackupPolicyResult) string { return v.Id }).(pulumi.StringOutput) } // NetApp Backup Policy location. func (o LookupBackupPolicyResultOutput) Location() pulumi.StringOutput { return o.ApplyT(func(v LookupBackupPolicyResult) string { return v.Location }).(pulumi.StringOutput) } // The number of monthly backups to keep. func (o LookupBackupPolicyResultOutput) MonthlyBackupsToKeep() pulumi.IntOutput { return o.ApplyT(func(v LookupBackupPolicyResult) int { return v.MonthlyBackupsToKeep }).(pulumi.IntOutput) } func (o LookupBackupPolicyResultOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v LookupBackupPolicyResult) string { return v.Name }).(pulumi.StringOutput) } func (o LookupBackupPolicyResultOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v LookupBackupPolicyResult) string { return v.ResourceGroupName }).(pulumi.StringOutput) } // List of tags assigned to the resource. func (o LookupBackupPolicyResultOutput) Tags() pulumi.StringMapOutput { return o.ApplyT(func(v LookupBackupPolicyResult) map[string]string { return v.Tags }).(pulumi.StringMapOutput) } // The number of weekly backups to keep. func (o LookupBackupPolicyResultOutput) WeeklyBackupsToKeep() pulumi.IntOutput { return o.ApplyT(func(v LookupBackupPolicyResult) int { return v.WeeklyBackupsToKeep }).(pulumi.IntOutput) } func init() { pulumi.RegisterOutputType(LookupBackupPolicyResultOutput{}) }
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/netapp/getPool.go
sdk/go/azure/netapp/getPool.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 netapp import ( "context" "reflect" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Uses this data source to access information about an existing NetApp Pool. // // ## NetApp Pool Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/netapp" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { // example, err := netapp.LookupPool(ctx, &netapp.LookupPoolArgs{ // ResourceGroupName: "acctestRG", // AccountName: "acctestnetappaccount", // Name: "acctestnetapppool", // }, nil) // if err != nil { // return err // } // ctx.Export("netappPoolId", example.Id) // return nil // }) // } // // ``` // // ## API Providers // // <!-- This section is generated, changes will be overwritten --> // This data source uses the following Azure API Providers: // // * `Microsoft.NetApp` - 2025-06-01 func LookupPool(ctx *pulumi.Context, args *LookupPoolArgs, opts ...pulumi.InvokeOption) (*LookupPoolResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupPoolResult err := ctx.Invoke("azure:netapp/getPool:getPool", args, &rv, opts...) if err != nil { return nil, err } return &rv, nil } // A collection of arguments for invoking getPool. type LookupPoolArgs struct { // The name of the NetApp account where the NetApp pool exists. AccountName string `pulumi:"accountName"` // The name of the NetApp Pool. Name string `pulumi:"name"` // The Name of the Resource Group where the NetApp Pool exists. ResourceGroupName string `pulumi:"resourceGroupName"` } // A collection of values returned by getPool. type LookupPoolResult struct { AccountName string `pulumi:"accountName"` // Whether the NetApp Pool can hold cool access enabled volumes. CoolAccessEnabled bool `pulumi:"coolAccessEnabled"` // The custom throughput for the pool in MiB/s. CustomThroughputMibps int `pulumi:"customThroughputMibps"` // The encryption type of the pool. EncryptionType string `pulumi:"encryptionType"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` // The Azure Region where the NetApp Pool exists. Location string `pulumi:"location"` Name string `pulumi:"name"` ResourceGroupName string `pulumi:"resourceGroupName"` // The service level of the file system. ServiceLevel string `pulumi:"serviceLevel"` // Provisioned size of the pool in TB. SizeInTb int `pulumi:"sizeInTb"` } func LookupPoolOutput(ctx *pulumi.Context, args LookupPoolOutputArgs, opts ...pulumi.InvokeOption) LookupPoolResultOutput { return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupPoolResultOutput, error) { args := v.(LookupPoolArgs) options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} return ctx.InvokeOutput("azure:netapp/getPool:getPool", args, LookupPoolResultOutput{}, options).(LookupPoolResultOutput), nil }).(LookupPoolResultOutput) } // A collection of arguments for invoking getPool. type LookupPoolOutputArgs struct { // The name of the NetApp account where the NetApp pool exists. AccountName pulumi.StringInput `pulumi:"accountName"` // The name of the NetApp Pool. Name pulumi.StringInput `pulumi:"name"` // The Name of the Resource Group where the NetApp Pool exists. ResourceGroupName pulumi.StringInput `pulumi:"resourceGroupName"` } func (LookupPoolOutputArgs) ElementType() reflect.Type { return reflect.TypeOf((*LookupPoolArgs)(nil)).Elem() } // A collection of values returned by getPool. type LookupPoolResultOutput struct{ *pulumi.OutputState } func (LookupPoolResultOutput) ElementType() reflect.Type { return reflect.TypeOf((*LookupPoolResult)(nil)).Elem() } func (o LookupPoolResultOutput) ToLookupPoolResultOutput() LookupPoolResultOutput { return o } func (o LookupPoolResultOutput) ToLookupPoolResultOutputWithContext(ctx context.Context) LookupPoolResultOutput { return o } func (o LookupPoolResultOutput) AccountName() pulumi.StringOutput { return o.ApplyT(func(v LookupPoolResult) string { return v.AccountName }).(pulumi.StringOutput) } // Whether the NetApp Pool can hold cool access enabled volumes. func (o LookupPoolResultOutput) CoolAccessEnabled() pulumi.BoolOutput { return o.ApplyT(func(v LookupPoolResult) bool { return v.CoolAccessEnabled }).(pulumi.BoolOutput) } // The custom throughput for the pool in MiB/s. func (o LookupPoolResultOutput) CustomThroughputMibps() pulumi.IntOutput { return o.ApplyT(func(v LookupPoolResult) int { return v.CustomThroughputMibps }).(pulumi.IntOutput) } // The encryption type of the pool. func (o LookupPoolResultOutput) EncryptionType() pulumi.StringOutput { return o.ApplyT(func(v LookupPoolResult) string { return v.EncryptionType }).(pulumi.StringOutput) } // The provider-assigned unique ID for this managed resource. func (o LookupPoolResultOutput) Id() pulumi.StringOutput { return o.ApplyT(func(v LookupPoolResult) string { return v.Id }).(pulumi.StringOutput) } // The Azure Region where the NetApp Pool exists. func (o LookupPoolResultOutput) Location() pulumi.StringOutput { return o.ApplyT(func(v LookupPoolResult) string { return v.Location }).(pulumi.StringOutput) } func (o LookupPoolResultOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v LookupPoolResult) string { return v.Name }).(pulumi.StringOutput) } func (o LookupPoolResultOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v LookupPoolResult) string { return v.ResourceGroupName }).(pulumi.StringOutput) } // The service level of the file system. func (o LookupPoolResultOutput) ServiceLevel() pulumi.StringOutput { return o.ApplyT(func(v LookupPoolResult) string { return v.ServiceLevel }).(pulumi.StringOutput) } // Provisioned size of the pool in TB. func (o LookupPoolResultOutput) SizeInTb() pulumi.IntOutput { return o.ApplyT(func(v LookupPoolResult) int { return v.SizeInTb }).(pulumi.IntOutput) } func init() { pulumi.RegisterOutputType(LookupPoolResultOutput{}) }
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/netapp/snapshot.go
sdk/go/azure/netapp/snapshot.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 netapp import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a NetApp Snapshot. // // ## NetApp Snapshot Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/netapp" // "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-virtualnetwork"), // 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.2.0/24"), // }, // Delegations: network.SubnetDelegationArray{ // &network.SubnetDelegationArgs{ // Name: pulumi.String("netapp"), // ServiceDelegation: &network.SubnetDelegationServiceDelegationArgs{ // Name: pulumi.String("Microsoft.Netapp/volumes"), // Actions: pulumi.StringArray{ // pulumi.String("Microsoft.Network/networkinterfaces/*"), // pulumi.String("Microsoft.Network/virtualNetworks/subnets/join/action"), // }, // }, // }, // }, // }) // if err != nil { // return err // } // exampleAccount, err := netapp.NewAccount(ctx, "example", &netapp.AccountArgs{ // Name: pulumi.String("example-netappaccount"), // Location: example.Location, // ResourceGroupName: example.Name, // }) // if err != nil { // return err // } // examplePool, err := netapp.NewPool(ctx, "example", &netapp.PoolArgs{ // Name: pulumi.String("example-netapppool"), // AccountName: exampleAccount.Name, // Location: example.Location, // ResourceGroupName: example.Name, // ServiceLevel: pulumi.String("Premium"), // SizeInTb: pulumi.Int(4), // }) // if err != nil { // return err // } // exampleVolume, err := netapp.NewVolume(ctx, "example", &netapp.VolumeArgs{ // Name: pulumi.String("example-netappvolume"), // Location: example.Location, // ResourceGroupName: example.Name, // AccountName: exampleAccount.Name, // PoolName: examplePool.Name, // VolumePath: pulumi.String("my-unique-file-path"), // ServiceLevel: pulumi.String("Premium"), // SubnetId: exampleSubnet.ID(), // StorageQuotaInGb: pulumi.Int(100), // }) // if err != nil { // return err // } // _, err = netapp.NewSnapshot(ctx, "example", &netapp.SnapshotArgs{ // Name: pulumi.String("example-netappsnapshot"), // AccountName: exampleAccount.Name, // PoolName: examplePool.Name, // VolumeName: exampleVolume.Name, // Location: example.Location, // 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.NetApp` - 2025-06-01 // // ## Import // // NetApp Snapshot can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:netapp/snapshot:Snapshot example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1/volumes/volume1/snapshots/snapshot1 // ``` type Snapshot struct { pulumi.CustomResourceState // The name of the NetApp account in which the NetApp Pool should be created. Changing this forces a new resource to be created. AccountName pulumi.StringOutput `pulumi:"accountName"` // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location pulumi.StringOutput `pulumi:"location"` // The name of the NetApp Snapshot. Changing this forces a new resource to be created. Name pulumi.StringOutput `pulumi:"name"` // The name of the NetApp pool in which the NetApp Volume should be created. Changing this forces a new resource to be created. PoolName pulumi.StringOutput `pulumi:"poolName"` // The name of the resource group where the NetApp Snapshot should be created. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // The name of the NetApp volume in which the NetApp Snapshot should be created. Changing this forces a new resource to be created. VolumeName pulumi.StringOutput `pulumi:"volumeName"` } // NewSnapshot registers a new resource with the given unique name, arguments, and options. func NewSnapshot(ctx *pulumi.Context, name string, args *SnapshotArgs, opts ...pulumi.ResourceOption) (*Snapshot, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.AccountName == nil { return nil, errors.New("invalid value for required argument 'AccountName'") } if args.PoolName == nil { return nil, errors.New("invalid value for required argument 'PoolName'") } if args.ResourceGroupName == nil { return nil, errors.New("invalid value for required argument 'ResourceGroupName'") } if args.VolumeName == nil { return nil, errors.New("invalid value for required argument 'VolumeName'") } opts = internal.PkgResourceDefaultOpts(opts) var resource Snapshot err := ctx.RegisterResource("azure:netapp/snapshot:Snapshot", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetSnapshot gets an existing Snapshot 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 GetSnapshot(ctx *pulumi.Context, name string, id pulumi.IDInput, state *SnapshotState, opts ...pulumi.ResourceOption) (*Snapshot, error) { var resource Snapshot err := ctx.ReadResource("azure:netapp/snapshot:Snapshot", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering Snapshot resources. type snapshotState struct { // The name of the NetApp account in which the NetApp Pool should be created. Changing this forces a new resource to be created. AccountName *string `pulumi:"accountName"` // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location *string `pulumi:"location"` // The name of the NetApp Snapshot. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // The name of the NetApp pool in which the NetApp Volume should be created. Changing this forces a new resource to be created. PoolName *string `pulumi:"poolName"` // The name of the resource group where the NetApp Snapshot should be created. Changing this forces a new resource to be created. ResourceGroupName *string `pulumi:"resourceGroupName"` // The name of the NetApp volume in which the NetApp Snapshot should be created. Changing this forces a new resource to be created. VolumeName *string `pulumi:"volumeName"` } type SnapshotState struct { // The name of the NetApp account in which the NetApp Pool should be created. Changing this forces a new resource to be created. AccountName pulumi.StringPtrInput // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location pulumi.StringPtrInput // The name of the NetApp Snapshot. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // The name of the NetApp pool in which the NetApp Volume should be created. Changing this forces a new resource to be created. PoolName pulumi.StringPtrInput // The name of the resource group where the NetApp Snapshot should be created. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringPtrInput // The name of the NetApp volume in which the NetApp Snapshot should be created. Changing this forces a new resource to be created. VolumeName pulumi.StringPtrInput } func (SnapshotState) ElementType() reflect.Type { return reflect.TypeOf((*snapshotState)(nil)).Elem() } type snapshotArgs struct { // The name of the NetApp account in which the NetApp Pool should be created. Changing this forces a new resource to be created. AccountName string `pulumi:"accountName"` // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location *string `pulumi:"location"` // The name of the NetApp Snapshot. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // The name of the NetApp pool in which the NetApp Volume should be created. Changing this forces a new resource to be created. PoolName string `pulumi:"poolName"` // The name of the resource group where the NetApp Snapshot should be created. Changing this forces a new resource to be created. ResourceGroupName string `pulumi:"resourceGroupName"` // The name of the NetApp volume in which the NetApp Snapshot should be created. Changing this forces a new resource to be created. VolumeName string `pulumi:"volumeName"` } // The set of arguments for constructing a Snapshot resource. type SnapshotArgs struct { // The name of the NetApp account in which the NetApp Pool should be created. Changing this forces a new resource to be created. AccountName pulumi.StringInput // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location pulumi.StringPtrInput // The name of the NetApp Snapshot. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // The name of the NetApp pool in which the NetApp Volume should be created. Changing this forces a new resource to be created. PoolName pulumi.StringInput // The name of the resource group where the NetApp Snapshot should be created. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringInput // The name of the NetApp volume in which the NetApp Snapshot should be created. Changing this forces a new resource to be created. VolumeName pulumi.StringInput } func (SnapshotArgs) ElementType() reflect.Type { return reflect.TypeOf((*snapshotArgs)(nil)).Elem() } type SnapshotInput interface { pulumi.Input ToSnapshotOutput() SnapshotOutput ToSnapshotOutputWithContext(ctx context.Context) SnapshotOutput } func (*Snapshot) ElementType() reflect.Type { return reflect.TypeOf((**Snapshot)(nil)).Elem() } func (i *Snapshot) ToSnapshotOutput() SnapshotOutput { return i.ToSnapshotOutputWithContext(context.Background()) } func (i *Snapshot) ToSnapshotOutputWithContext(ctx context.Context) SnapshotOutput { return pulumi.ToOutputWithContext(ctx, i).(SnapshotOutput) } // SnapshotArrayInput is an input type that accepts SnapshotArray and SnapshotArrayOutput values. // You can construct a concrete instance of `SnapshotArrayInput` via: // // SnapshotArray{ SnapshotArgs{...} } type SnapshotArrayInput interface { pulumi.Input ToSnapshotArrayOutput() SnapshotArrayOutput ToSnapshotArrayOutputWithContext(context.Context) SnapshotArrayOutput } type SnapshotArray []SnapshotInput func (SnapshotArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*Snapshot)(nil)).Elem() } func (i SnapshotArray) ToSnapshotArrayOutput() SnapshotArrayOutput { return i.ToSnapshotArrayOutputWithContext(context.Background()) } func (i SnapshotArray) ToSnapshotArrayOutputWithContext(ctx context.Context) SnapshotArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(SnapshotArrayOutput) } // SnapshotMapInput is an input type that accepts SnapshotMap and SnapshotMapOutput values. // You can construct a concrete instance of `SnapshotMapInput` via: // // SnapshotMap{ "key": SnapshotArgs{...} } type SnapshotMapInput interface { pulumi.Input ToSnapshotMapOutput() SnapshotMapOutput ToSnapshotMapOutputWithContext(context.Context) SnapshotMapOutput } type SnapshotMap map[string]SnapshotInput func (SnapshotMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*Snapshot)(nil)).Elem() } func (i SnapshotMap) ToSnapshotMapOutput() SnapshotMapOutput { return i.ToSnapshotMapOutputWithContext(context.Background()) } func (i SnapshotMap) ToSnapshotMapOutputWithContext(ctx context.Context) SnapshotMapOutput { return pulumi.ToOutputWithContext(ctx, i).(SnapshotMapOutput) } type SnapshotOutput struct{ *pulumi.OutputState } func (SnapshotOutput) ElementType() reflect.Type { return reflect.TypeOf((**Snapshot)(nil)).Elem() } func (o SnapshotOutput) ToSnapshotOutput() SnapshotOutput { return o } func (o SnapshotOutput) ToSnapshotOutputWithContext(ctx context.Context) SnapshotOutput { return o } // The name of the NetApp account in which the NetApp Pool should be created. Changing this forces a new resource to be created. func (o SnapshotOutput) AccountName() pulumi.StringOutput { return o.ApplyT(func(v *Snapshot) pulumi.StringOutput { return v.AccountName }).(pulumi.StringOutput) } // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. func (o SnapshotOutput) Location() pulumi.StringOutput { return o.ApplyT(func(v *Snapshot) pulumi.StringOutput { return v.Location }).(pulumi.StringOutput) } // The name of the NetApp Snapshot. Changing this forces a new resource to be created. func (o SnapshotOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *Snapshot) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // The name of the NetApp pool in which the NetApp Volume should be created. Changing this forces a new resource to be created. func (o SnapshotOutput) PoolName() pulumi.StringOutput { return o.ApplyT(func(v *Snapshot) pulumi.StringOutput { return v.PoolName }).(pulumi.StringOutput) } // The name of the resource group where the NetApp Snapshot should be created. Changing this forces a new resource to be created. func (o SnapshotOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v *Snapshot) pulumi.StringOutput { return v.ResourceGroupName }).(pulumi.StringOutput) } // The name of the NetApp volume in which the NetApp Snapshot should be created. Changing this forces a new resource to be created. func (o SnapshotOutput) VolumeName() pulumi.StringOutput { return o.ApplyT(func(v *Snapshot) pulumi.StringOutput { return v.VolumeName }).(pulumi.StringOutput) } type SnapshotArrayOutput struct{ *pulumi.OutputState } func (SnapshotArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*Snapshot)(nil)).Elem() } func (o SnapshotArrayOutput) ToSnapshotArrayOutput() SnapshotArrayOutput { return o } func (o SnapshotArrayOutput) ToSnapshotArrayOutputWithContext(ctx context.Context) SnapshotArrayOutput { return o } func (o SnapshotArrayOutput) Index(i pulumi.IntInput) SnapshotOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *Snapshot { return vs[0].([]*Snapshot)[vs[1].(int)] }).(SnapshotOutput) } type SnapshotMapOutput struct{ *pulumi.OutputState } func (SnapshotMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*Snapshot)(nil)).Elem() } func (o SnapshotMapOutput) ToSnapshotMapOutput() SnapshotMapOutput { return o } func (o SnapshotMapOutput) ToSnapshotMapOutputWithContext(ctx context.Context) SnapshotMapOutput { return o } func (o SnapshotMapOutput) MapIndex(k pulumi.StringInput) SnapshotOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *Snapshot { return vs[0].(map[string]*Snapshot)[vs[1].(string)] }).(SnapshotOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*SnapshotInput)(nil)).Elem(), &Snapshot{}) pulumi.RegisterInputType(reflect.TypeOf((*SnapshotArrayInput)(nil)).Elem(), SnapshotArray{}) pulumi.RegisterInputType(reflect.TypeOf((*SnapshotMapInput)(nil)).Elem(), SnapshotMap{}) pulumi.RegisterOutputType(SnapshotOutput{}) pulumi.RegisterOutputType(SnapshotArrayOutput{}) pulumi.RegisterOutputType(SnapshotMapOutput{}) }
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/netapp/getAccountEncryption.go
sdk/go/azure/netapp/getAccountEncryption.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 netapp 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 NetApp Account Encryption Resource. // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/netapp" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { // example, err := netapp.LookupAccountEncryption(ctx, &netapp.LookupAccountEncryptionArgs{ // NetappAccountId: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.NetApp/netAppAccounts/account1", // }, 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.NetApp` - 2025-06-01 func LookupAccountEncryption(ctx *pulumi.Context, args *LookupAccountEncryptionArgs, opts ...pulumi.InvokeOption) (*LookupAccountEncryptionResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupAccountEncryptionResult err := ctx.Invoke("azure:netapp/getAccountEncryption:getAccountEncryption", args, &rv, opts...) if err != nil { return nil, err } return &rv, nil } // A collection of arguments for invoking getAccountEncryption. type LookupAccountEncryptionArgs struct { // The ID of the NetApp account where customer managed keys-based encryption is enabled. NetappAccountId string `pulumi:"netappAccountId"` } // A collection of values returned by getAccountEncryption. type LookupAccountEncryptionResult struct { CrossTenantKeyVaultResourceId string `pulumi:"crossTenantKeyVaultResourceId"` EncryptionKey string `pulumi:"encryptionKey"` FederatedClientId string `pulumi:"federatedClientId"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` NetappAccountId string `pulumi:"netappAccountId"` SystemAssignedIdentityPrincipalId string `pulumi:"systemAssignedIdentityPrincipalId"` UserAssignedIdentityId string `pulumi:"userAssignedIdentityId"` } func LookupAccountEncryptionOutput(ctx *pulumi.Context, args LookupAccountEncryptionOutputArgs, opts ...pulumi.InvokeOption) LookupAccountEncryptionResultOutput { return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupAccountEncryptionResultOutput, error) { args := v.(LookupAccountEncryptionArgs) options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} return ctx.InvokeOutput("azure:netapp/getAccountEncryption:getAccountEncryption", args, LookupAccountEncryptionResultOutput{}, options).(LookupAccountEncryptionResultOutput), nil }).(LookupAccountEncryptionResultOutput) } // A collection of arguments for invoking getAccountEncryption. type LookupAccountEncryptionOutputArgs struct { // The ID of the NetApp account where customer managed keys-based encryption is enabled. NetappAccountId pulumi.StringInput `pulumi:"netappAccountId"` } func (LookupAccountEncryptionOutputArgs) ElementType() reflect.Type { return reflect.TypeOf((*LookupAccountEncryptionArgs)(nil)).Elem() } // A collection of values returned by getAccountEncryption. type LookupAccountEncryptionResultOutput struct{ *pulumi.OutputState } func (LookupAccountEncryptionResultOutput) ElementType() reflect.Type { return reflect.TypeOf((*LookupAccountEncryptionResult)(nil)).Elem() } func (o LookupAccountEncryptionResultOutput) ToLookupAccountEncryptionResultOutput() LookupAccountEncryptionResultOutput { return o } func (o LookupAccountEncryptionResultOutput) ToLookupAccountEncryptionResultOutputWithContext(ctx context.Context) LookupAccountEncryptionResultOutput { return o } func (o LookupAccountEncryptionResultOutput) CrossTenantKeyVaultResourceId() pulumi.StringOutput { return o.ApplyT(func(v LookupAccountEncryptionResult) string { return v.CrossTenantKeyVaultResourceId }).(pulumi.StringOutput) } func (o LookupAccountEncryptionResultOutput) EncryptionKey() pulumi.StringOutput { return o.ApplyT(func(v LookupAccountEncryptionResult) string { return v.EncryptionKey }).(pulumi.StringOutput) } func (o LookupAccountEncryptionResultOutput) FederatedClientId() pulumi.StringOutput { return o.ApplyT(func(v LookupAccountEncryptionResult) string { return v.FederatedClientId }).(pulumi.StringOutput) } // The provider-assigned unique ID for this managed resource. func (o LookupAccountEncryptionResultOutput) Id() pulumi.StringOutput { return o.ApplyT(func(v LookupAccountEncryptionResult) string { return v.Id }).(pulumi.StringOutput) } func (o LookupAccountEncryptionResultOutput) NetappAccountId() pulumi.StringOutput { return o.ApplyT(func(v LookupAccountEncryptionResult) string { return v.NetappAccountId }).(pulumi.StringOutput) } func (o LookupAccountEncryptionResultOutput) SystemAssignedIdentityPrincipalId() pulumi.StringOutput { return o.ApplyT(func(v LookupAccountEncryptionResult) string { return v.SystemAssignedIdentityPrincipalId }).(pulumi.StringOutput) } func (o LookupAccountEncryptionResultOutput) UserAssignedIdentityId() pulumi.StringOutput { return o.ApplyT(func(v LookupAccountEncryptionResult) string { return v.UserAssignedIdentityId }).(pulumi.StringOutput) } func init() { pulumi.RegisterOutputType(LookupAccountEncryptionResultOutput{}) }
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/netapp/getVolumeGroupOracle.go
sdk/go/azure/netapp/getVolumeGroupOracle.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 netapp 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 Application Volume Group for Oracle application. // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/netapp" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { // example, err := netapp.LookupVolumeGroupOracle(ctx, &netapp.LookupVolumeGroupOracleArgs{ // Name: "existing application volume group name", // ResourceGroupName: "resource group name where the account and volume group belong to", // AccountName: "existing account where the application volume group belong to", // }, 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.NetApp` - 2025-06-01 func LookupVolumeGroupOracle(ctx *pulumi.Context, args *LookupVolumeGroupOracleArgs, opts ...pulumi.InvokeOption) (*LookupVolumeGroupOracleResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupVolumeGroupOracleResult err := ctx.Invoke("azure:netapp/getVolumeGroupOracle:getVolumeGroupOracle", args, &rv, opts...) if err != nil { return nil, err } return &rv, nil } // A collection of arguments for invoking getVolumeGroupOracle. type LookupVolumeGroupOracleArgs struct { // Name of the account where the application volume group belong to. AccountName string `pulumi:"accountName"` // The name of this Application Volume Group for Oracle application. Name string `pulumi:"name"` // The name of the Resource Group where the Application Volume Group exists. ResourceGroupName string `pulumi:"resourceGroupName"` } // A collection of values returned by getVolumeGroupOracle. type LookupVolumeGroupOracleResult struct { AccountName string `pulumi:"accountName"` // The application identifier. ApplicationIdentifier string `pulumi:"applicationIdentifier"` // Volume group description. GroupDescription string `pulumi:"groupDescription"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` // The Azure Region where the Application Volume Group exists. Location string `pulumi:"location"` // The name of this volume. Name string `pulumi:"name"` ResourceGroupName string `pulumi:"resourceGroupName"` // A `volume` block as defined below. Volumes []GetVolumeGroupOracleVolume `pulumi:"volumes"` } func LookupVolumeGroupOracleOutput(ctx *pulumi.Context, args LookupVolumeGroupOracleOutputArgs, opts ...pulumi.InvokeOption) LookupVolumeGroupOracleResultOutput { return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupVolumeGroupOracleResultOutput, error) { args := v.(LookupVolumeGroupOracleArgs) options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} return ctx.InvokeOutput("azure:netapp/getVolumeGroupOracle:getVolumeGroupOracle", args, LookupVolumeGroupOracleResultOutput{}, options).(LookupVolumeGroupOracleResultOutput), nil }).(LookupVolumeGroupOracleResultOutput) } // A collection of arguments for invoking getVolumeGroupOracle. type LookupVolumeGroupOracleOutputArgs struct { // Name of the account where the application volume group belong to. AccountName pulumi.StringInput `pulumi:"accountName"` // The name of this Application Volume Group for Oracle application. Name pulumi.StringInput `pulumi:"name"` // The name of the Resource Group where the Application Volume Group exists. ResourceGroupName pulumi.StringInput `pulumi:"resourceGroupName"` } func (LookupVolumeGroupOracleOutputArgs) ElementType() reflect.Type { return reflect.TypeOf((*LookupVolumeGroupOracleArgs)(nil)).Elem() } // A collection of values returned by getVolumeGroupOracle. type LookupVolumeGroupOracleResultOutput struct{ *pulumi.OutputState } func (LookupVolumeGroupOracleResultOutput) ElementType() reflect.Type { return reflect.TypeOf((*LookupVolumeGroupOracleResult)(nil)).Elem() } func (o LookupVolumeGroupOracleResultOutput) ToLookupVolumeGroupOracleResultOutput() LookupVolumeGroupOracleResultOutput { return o } func (o LookupVolumeGroupOracleResultOutput) ToLookupVolumeGroupOracleResultOutputWithContext(ctx context.Context) LookupVolumeGroupOracleResultOutput { return o } func (o LookupVolumeGroupOracleResultOutput) AccountName() pulumi.StringOutput { return o.ApplyT(func(v LookupVolumeGroupOracleResult) string { return v.AccountName }).(pulumi.StringOutput) } // The application identifier. func (o LookupVolumeGroupOracleResultOutput) ApplicationIdentifier() pulumi.StringOutput { return o.ApplyT(func(v LookupVolumeGroupOracleResult) string { return v.ApplicationIdentifier }).(pulumi.StringOutput) } // Volume group description. func (o LookupVolumeGroupOracleResultOutput) GroupDescription() pulumi.StringOutput { return o.ApplyT(func(v LookupVolumeGroupOracleResult) string { return v.GroupDescription }).(pulumi.StringOutput) } // The provider-assigned unique ID for this managed resource. func (o LookupVolumeGroupOracleResultOutput) Id() pulumi.StringOutput { return o.ApplyT(func(v LookupVolumeGroupOracleResult) string { return v.Id }).(pulumi.StringOutput) } // The Azure Region where the Application Volume Group exists. func (o LookupVolumeGroupOracleResultOutput) Location() pulumi.StringOutput { return o.ApplyT(func(v LookupVolumeGroupOracleResult) string { return v.Location }).(pulumi.StringOutput) } // The name of this volume. func (o LookupVolumeGroupOracleResultOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v LookupVolumeGroupOracleResult) string { return v.Name }).(pulumi.StringOutput) } func (o LookupVolumeGroupOracleResultOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v LookupVolumeGroupOracleResult) string { return v.ResourceGroupName }).(pulumi.StringOutput) } // A `volume` block as defined below. func (o LookupVolumeGroupOracleResultOutput) Volumes() GetVolumeGroupOracleVolumeArrayOutput { return o.ApplyT(func(v LookupVolumeGroupOracleResult) []GetVolumeGroupOracleVolume { return v.Volumes }).(GetVolumeGroupOracleVolumeArrayOutput) } func init() { pulumi.RegisterOutputType(LookupVolumeGroupOracleResultOutput{}) }
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/netapp/volumeQuotaRule.go
sdk/go/azure/netapp/volumeQuotaRule.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 netapp import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a Volume Quota Rule. // // ## 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/netapp" // "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-virtualnetwork"), // 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("netapp"), // ServiceDelegation: &network.SubnetDelegationServiceDelegationArgs{ // Name: pulumi.String("Microsoft.Netapp/volumes"), // Actions: pulumi.StringArray{ // pulumi.String("Microsoft.Network/networkinterfaces/*"), // pulumi.String("Microsoft.Network/virtualNetworks/subnets/join/action"), // }, // }, // }, // }, // }) // if err != nil { // return err // } // exampleAccount, err := netapp.NewAccount(ctx, "example", &netapp.AccountArgs{ // Name: pulumi.String("example-netappaccount"), // Location: example.Location, // ResourceGroupName: example.Name, // }) // if err != nil { // return err // } // examplePool, err := netapp.NewPool(ctx, "example", &netapp.PoolArgs{ // Name: pulumi.String("example-netapppool"), // Location: example.Location, // ResourceGroupName: example.Name, // AccountName: exampleAccount.Name, // ServiceLevel: pulumi.String("Premium"), // SizeInTb: pulumi.Int(4), // }) // if err != nil { // return err // } // exampleVolume, err := netapp.NewVolume(ctx, "example", &netapp.VolumeArgs{ // Name: pulumi.String("example-netappvolume"), // Location: example.Location, // Zone: pulumi.String("1"), // ResourceGroupName: example.Name, // AccountName: exampleAccount.Name, // PoolName: examplePool.Name, // VolumePath: pulumi.String("my-unique-file-path"), // ServiceLevel: pulumi.String("Premium"), // SubnetId: exampleSubnet.ID(), // NetworkFeatures: pulumi.String("Basic"), // Protocols: pulumi.StringArray{ // pulumi.String("NFSv4.1"), // }, // SecurityStyle: pulumi.String("unix"), // StorageQuotaInGb: pulumi.Int(100), // SnapshotDirectoryVisible: pulumi.Bool(false), // }) // if err != nil { // return err // } // _, err = netapp.NewVolumeQuotaRule(ctx, "quota1", &netapp.VolumeQuotaRuleArgs{ // Name: pulumi.String("example-quota-rule-1"), // Location: example.Location, // VolumeId: exampleVolume.ID(), // QuotaTarget: pulumi.String("3001"), // QuotaSizeInKib: pulumi.Int(1024), // QuotaType: pulumi.String("IndividualGroupQuota"), // }) // if err != nil { // return err // } // _, err = netapp.NewVolumeQuotaRule(ctx, "quota2", &netapp.VolumeQuotaRuleArgs{ // Name: pulumi.String("example-quota-rule-2"), // Location: example.Location, // VolumeId: exampleVolume.ID(), // QuotaTarget: pulumi.String("2001"), // QuotaSizeInKib: pulumi.Int(1024), // QuotaType: pulumi.String("IndividualUserQuota"), // }) // if err != nil { // return err // } // _, err = netapp.NewVolumeQuotaRule(ctx, "quota3", &netapp.VolumeQuotaRuleArgs{ // Name: pulumi.String("example-quota-rule-3"), // Location: example.Location, // VolumeId: exampleVolume.ID(), // QuotaSizeInKib: pulumi.Int(1024), // QuotaType: pulumi.String("DefaultUserQuota"), // }) // if err != nil { // return err // } // _, err = netapp.NewVolumeQuotaRule(ctx, "quota4", &netapp.VolumeQuotaRuleArgs{ // Name: pulumi.String("example-quota-rule-4"), // Location: example.Location, // VolumeId: exampleVolume.ID(), // QuotaSizeInKib: pulumi.Int(1024), // QuotaType: pulumi.String("DefaultGroupQuota"), // }) // 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.NetApp` - 2025-06-01 // // ## Import // // Volume Quota Rules can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:netapp/volumeQuotaRule:VolumeQuotaRule example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1/volumes/vol1/volumeQuotaRules/quota1 // ``` type VolumeQuotaRule struct { pulumi.CustomResourceState // The Azure Region where the Volume Quota Rule should exist. Changing this forces a new Volume Quota Rule to be created. Location pulumi.StringOutput `pulumi:"location"` // The name which should be used for this Volume Quota Rule. Changing this forces a new Volume Quota Rule to be created. Name pulumi.StringOutput `pulumi:"name"` // Quota size in kibibytes. QuotaSizeInKib pulumi.IntOutput `pulumi:"quotaSizeInKib"` // Quota Target. This can be Unix UID/GID for NFSv3/NFSv4.1 volumes and Windows User SID for CIFS based volumes. Changing this forces a new resource to be created. // // > **Note:** ` quotaTarget ` must be used when `quotaType` is `IndividualGroupQuota` or `IndividualUserQuota` // // > **Note:** more information about this resource can be found at [Understand default and individual user and group quotas](https://learn.microsoft.com/en-us/azure/azure-netapp-files/default-individual-user-group-quotas-introduction) QuotaTarget pulumi.StringPtrOutput `pulumi:"quotaTarget"` // Quota type. Possible values are `DefaultGroupQuota`, `DefaultUserQuota`, `IndividualGroupQuota` and `IndividualUserQuota`. Please note that `IndividualGroupQuota` and `DefaultGroupQuota` are not applicable to SMB and dual-protocol volumes. Changing this forces a new resource to be created. QuotaType pulumi.StringOutput `pulumi:"quotaType"` // The NetApp volume ID where the Volume Quota Rule is assigned to. Changing this forces a new resource to be created. VolumeId pulumi.StringOutput `pulumi:"volumeId"` } // NewVolumeQuotaRule registers a new resource with the given unique name, arguments, and options. func NewVolumeQuotaRule(ctx *pulumi.Context, name string, args *VolumeQuotaRuleArgs, opts ...pulumi.ResourceOption) (*VolumeQuotaRule, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.QuotaSizeInKib == nil { return nil, errors.New("invalid value for required argument 'QuotaSizeInKib'") } if args.QuotaType == nil { return nil, errors.New("invalid value for required argument 'QuotaType'") } if args.VolumeId == nil { return nil, errors.New("invalid value for required argument 'VolumeId'") } opts = internal.PkgResourceDefaultOpts(opts) var resource VolumeQuotaRule err := ctx.RegisterResource("azure:netapp/volumeQuotaRule:VolumeQuotaRule", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetVolumeQuotaRule gets an existing VolumeQuotaRule 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 GetVolumeQuotaRule(ctx *pulumi.Context, name string, id pulumi.IDInput, state *VolumeQuotaRuleState, opts ...pulumi.ResourceOption) (*VolumeQuotaRule, error) { var resource VolumeQuotaRule err := ctx.ReadResource("azure:netapp/volumeQuotaRule:VolumeQuotaRule", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering VolumeQuotaRule resources. type volumeQuotaRuleState struct { // The Azure Region where the Volume Quota Rule should exist. Changing this forces a new Volume Quota Rule to be created. Location *string `pulumi:"location"` // The name which should be used for this Volume Quota Rule. Changing this forces a new Volume Quota Rule to be created. Name *string `pulumi:"name"` // Quota size in kibibytes. QuotaSizeInKib *int `pulumi:"quotaSizeInKib"` // Quota Target. This can be Unix UID/GID for NFSv3/NFSv4.1 volumes and Windows User SID for CIFS based volumes. Changing this forces a new resource to be created. // // > **Note:** ` quotaTarget ` must be used when `quotaType` is `IndividualGroupQuota` or `IndividualUserQuota` // // > **Note:** more information about this resource can be found at [Understand default and individual user and group quotas](https://learn.microsoft.com/en-us/azure/azure-netapp-files/default-individual-user-group-quotas-introduction) QuotaTarget *string `pulumi:"quotaTarget"` // Quota type. Possible values are `DefaultGroupQuota`, `DefaultUserQuota`, `IndividualGroupQuota` and `IndividualUserQuota`. Please note that `IndividualGroupQuota` and `DefaultGroupQuota` are not applicable to SMB and dual-protocol volumes. Changing this forces a new resource to be created. QuotaType *string `pulumi:"quotaType"` // The NetApp volume ID where the Volume Quota Rule is assigned to. Changing this forces a new resource to be created. VolumeId *string `pulumi:"volumeId"` } type VolumeQuotaRuleState struct { // The Azure Region where the Volume Quota Rule should exist. Changing this forces a new Volume Quota Rule to be created. Location pulumi.StringPtrInput // The name which should be used for this Volume Quota Rule. Changing this forces a new Volume Quota Rule to be created. Name pulumi.StringPtrInput // Quota size in kibibytes. QuotaSizeInKib pulumi.IntPtrInput // Quota Target. This can be Unix UID/GID for NFSv3/NFSv4.1 volumes and Windows User SID for CIFS based volumes. Changing this forces a new resource to be created. // // > **Note:** ` quotaTarget ` must be used when `quotaType` is `IndividualGroupQuota` or `IndividualUserQuota` // // > **Note:** more information about this resource can be found at [Understand default and individual user and group quotas](https://learn.microsoft.com/en-us/azure/azure-netapp-files/default-individual-user-group-quotas-introduction) QuotaTarget pulumi.StringPtrInput // Quota type. Possible values are `DefaultGroupQuota`, `DefaultUserQuota`, `IndividualGroupQuota` and `IndividualUserQuota`. Please note that `IndividualGroupQuota` and `DefaultGroupQuota` are not applicable to SMB and dual-protocol volumes. Changing this forces a new resource to be created. QuotaType pulumi.StringPtrInput // The NetApp volume ID where the Volume Quota Rule is assigned to. Changing this forces a new resource to be created. VolumeId pulumi.StringPtrInput } func (VolumeQuotaRuleState) ElementType() reflect.Type { return reflect.TypeOf((*volumeQuotaRuleState)(nil)).Elem() } type volumeQuotaRuleArgs struct { // The Azure Region where the Volume Quota Rule should exist. Changing this forces a new Volume Quota Rule to be created. Location *string `pulumi:"location"` // The name which should be used for this Volume Quota Rule. Changing this forces a new Volume Quota Rule to be created. Name *string `pulumi:"name"` // Quota size in kibibytes. QuotaSizeInKib int `pulumi:"quotaSizeInKib"` // Quota Target. This can be Unix UID/GID for NFSv3/NFSv4.1 volumes and Windows User SID for CIFS based volumes. Changing this forces a new resource to be created. // // > **Note:** ` quotaTarget ` must be used when `quotaType` is `IndividualGroupQuota` or `IndividualUserQuota` // // > **Note:** more information about this resource can be found at [Understand default and individual user and group quotas](https://learn.microsoft.com/en-us/azure/azure-netapp-files/default-individual-user-group-quotas-introduction) QuotaTarget *string `pulumi:"quotaTarget"` // Quota type. Possible values are `DefaultGroupQuota`, `DefaultUserQuota`, `IndividualGroupQuota` and `IndividualUserQuota`. Please note that `IndividualGroupQuota` and `DefaultGroupQuota` are not applicable to SMB and dual-protocol volumes. Changing this forces a new resource to be created. QuotaType string `pulumi:"quotaType"` // The NetApp volume ID where the Volume Quota Rule is assigned to. Changing this forces a new resource to be created. VolumeId string `pulumi:"volumeId"` } // The set of arguments for constructing a VolumeQuotaRule resource. type VolumeQuotaRuleArgs struct { // The Azure Region where the Volume Quota Rule should exist. Changing this forces a new Volume Quota Rule to be created. Location pulumi.StringPtrInput // The name which should be used for this Volume Quota Rule. Changing this forces a new Volume Quota Rule to be created. Name pulumi.StringPtrInput // Quota size in kibibytes. QuotaSizeInKib pulumi.IntInput // Quota Target. This can be Unix UID/GID for NFSv3/NFSv4.1 volumes and Windows User SID for CIFS based volumes. Changing this forces a new resource to be created. // // > **Note:** ` quotaTarget ` must be used when `quotaType` is `IndividualGroupQuota` or `IndividualUserQuota` // // > **Note:** more information about this resource can be found at [Understand default and individual user and group quotas](https://learn.microsoft.com/en-us/azure/azure-netapp-files/default-individual-user-group-quotas-introduction) QuotaTarget pulumi.StringPtrInput // Quota type. Possible values are `DefaultGroupQuota`, `DefaultUserQuota`, `IndividualGroupQuota` and `IndividualUserQuota`. Please note that `IndividualGroupQuota` and `DefaultGroupQuota` are not applicable to SMB and dual-protocol volumes. Changing this forces a new resource to be created. QuotaType pulumi.StringInput // The NetApp volume ID where the Volume Quota Rule is assigned to. Changing this forces a new resource to be created. VolumeId pulumi.StringInput } func (VolumeQuotaRuleArgs) ElementType() reflect.Type { return reflect.TypeOf((*volumeQuotaRuleArgs)(nil)).Elem() } type VolumeQuotaRuleInput interface { pulumi.Input ToVolumeQuotaRuleOutput() VolumeQuotaRuleOutput ToVolumeQuotaRuleOutputWithContext(ctx context.Context) VolumeQuotaRuleOutput } func (*VolumeQuotaRule) ElementType() reflect.Type { return reflect.TypeOf((**VolumeQuotaRule)(nil)).Elem() } func (i *VolumeQuotaRule) ToVolumeQuotaRuleOutput() VolumeQuotaRuleOutput { return i.ToVolumeQuotaRuleOutputWithContext(context.Background()) } func (i *VolumeQuotaRule) ToVolumeQuotaRuleOutputWithContext(ctx context.Context) VolumeQuotaRuleOutput { return pulumi.ToOutputWithContext(ctx, i).(VolumeQuotaRuleOutput) } // VolumeQuotaRuleArrayInput is an input type that accepts VolumeQuotaRuleArray and VolumeQuotaRuleArrayOutput values. // You can construct a concrete instance of `VolumeQuotaRuleArrayInput` via: // // VolumeQuotaRuleArray{ VolumeQuotaRuleArgs{...} } type VolumeQuotaRuleArrayInput interface { pulumi.Input ToVolumeQuotaRuleArrayOutput() VolumeQuotaRuleArrayOutput ToVolumeQuotaRuleArrayOutputWithContext(context.Context) VolumeQuotaRuleArrayOutput } type VolumeQuotaRuleArray []VolumeQuotaRuleInput func (VolumeQuotaRuleArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*VolumeQuotaRule)(nil)).Elem() } func (i VolumeQuotaRuleArray) ToVolumeQuotaRuleArrayOutput() VolumeQuotaRuleArrayOutput { return i.ToVolumeQuotaRuleArrayOutputWithContext(context.Background()) } func (i VolumeQuotaRuleArray) ToVolumeQuotaRuleArrayOutputWithContext(ctx context.Context) VolumeQuotaRuleArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(VolumeQuotaRuleArrayOutput) } // VolumeQuotaRuleMapInput is an input type that accepts VolumeQuotaRuleMap and VolumeQuotaRuleMapOutput values. // You can construct a concrete instance of `VolumeQuotaRuleMapInput` via: // // VolumeQuotaRuleMap{ "key": VolumeQuotaRuleArgs{...} } type VolumeQuotaRuleMapInput interface { pulumi.Input ToVolumeQuotaRuleMapOutput() VolumeQuotaRuleMapOutput ToVolumeQuotaRuleMapOutputWithContext(context.Context) VolumeQuotaRuleMapOutput } type VolumeQuotaRuleMap map[string]VolumeQuotaRuleInput func (VolumeQuotaRuleMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*VolumeQuotaRule)(nil)).Elem() } func (i VolumeQuotaRuleMap) ToVolumeQuotaRuleMapOutput() VolumeQuotaRuleMapOutput { return i.ToVolumeQuotaRuleMapOutputWithContext(context.Background()) } func (i VolumeQuotaRuleMap) ToVolumeQuotaRuleMapOutputWithContext(ctx context.Context) VolumeQuotaRuleMapOutput { return pulumi.ToOutputWithContext(ctx, i).(VolumeQuotaRuleMapOutput) } type VolumeQuotaRuleOutput struct{ *pulumi.OutputState } func (VolumeQuotaRuleOutput) ElementType() reflect.Type { return reflect.TypeOf((**VolumeQuotaRule)(nil)).Elem() } func (o VolumeQuotaRuleOutput) ToVolumeQuotaRuleOutput() VolumeQuotaRuleOutput { return o } func (o VolumeQuotaRuleOutput) ToVolumeQuotaRuleOutputWithContext(ctx context.Context) VolumeQuotaRuleOutput { return o } // The Azure Region where the Volume Quota Rule should exist. Changing this forces a new Volume Quota Rule to be created. func (o VolumeQuotaRuleOutput) Location() pulumi.StringOutput { return o.ApplyT(func(v *VolumeQuotaRule) pulumi.StringOutput { return v.Location }).(pulumi.StringOutput) } // The name which should be used for this Volume Quota Rule. Changing this forces a new Volume Quota Rule to be created. func (o VolumeQuotaRuleOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *VolumeQuotaRule) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // Quota size in kibibytes. func (o VolumeQuotaRuleOutput) QuotaSizeInKib() pulumi.IntOutput { return o.ApplyT(func(v *VolumeQuotaRule) pulumi.IntOutput { return v.QuotaSizeInKib }).(pulumi.IntOutput) } // Quota Target. This can be Unix UID/GID for NFSv3/NFSv4.1 volumes and Windows User SID for CIFS based volumes. Changing this forces a new resource to be created. // // > **Note:** ` quotaTarget ` must be used when `quotaType` is `IndividualGroupQuota` or `IndividualUserQuota` // // > **Note:** more information about this resource can be found at [Understand default and individual user and group quotas](https://learn.microsoft.com/en-us/azure/azure-netapp-files/default-individual-user-group-quotas-introduction) func (o VolumeQuotaRuleOutput) QuotaTarget() pulumi.StringPtrOutput { return o.ApplyT(func(v *VolumeQuotaRule) pulumi.StringPtrOutput { return v.QuotaTarget }).(pulumi.StringPtrOutput) } // Quota type. Possible values are `DefaultGroupQuota`, `DefaultUserQuota`, `IndividualGroupQuota` and `IndividualUserQuota`. Please note that `IndividualGroupQuota` and `DefaultGroupQuota` are not applicable to SMB and dual-protocol volumes. Changing this forces a new resource to be created. func (o VolumeQuotaRuleOutput) QuotaType() pulumi.StringOutput { return o.ApplyT(func(v *VolumeQuotaRule) pulumi.StringOutput { return v.QuotaType }).(pulumi.StringOutput) } // The NetApp volume ID where the Volume Quota Rule is assigned to. Changing this forces a new resource to be created. func (o VolumeQuotaRuleOutput) VolumeId() pulumi.StringOutput { return o.ApplyT(func(v *VolumeQuotaRule) pulumi.StringOutput { return v.VolumeId }).(pulumi.StringOutput) } type VolumeQuotaRuleArrayOutput struct{ *pulumi.OutputState } func (VolumeQuotaRuleArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*VolumeQuotaRule)(nil)).Elem() } func (o VolumeQuotaRuleArrayOutput) ToVolumeQuotaRuleArrayOutput() VolumeQuotaRuleArrayOutput { return o } func (o VolumeQuotaRuleArrayOutput) ToVolumeQuotaRuleArrayOutputWithContext(ctx context.Context) VolumeQuotaRuleArrayOutput { return o } func (o VolumeQuotaRuleArrayOutput) Index(i pulumi.IntInput) VolumeQuotaRuleOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *VolumeQuotaRule { return vs[0].([]*VolumeQuotaRule)[vs[1].(int)] }).(VolumeQuotaRuleOutput) } type VolumeQuotaRuleMapOutput struct{ *pulumi.OutputState } func (VolumeQuotaRuleMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*VolumeQuotaRule)(nil)).Elem() } func (o VolumeQuotaRuleMapOutput) ToVolumeQuotaRuleMapOutput() VolumeQuotaRuleMapOutput { return o } func (o VolumeQuotaRuleMapOutput) ToVolumeQuotaRuleMapOutputWithContext(ctx context.Context) VolumeQuotaRuleMapOutput { return o } func (o VolumeQuotaRuleMapOutput) MapIndex(k pulumi.StringInput) VolumeQuotaRuleOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *VolumeQuotaRule { return vs[0].(map[string]*VolumeQuotaRule)[vs[1].(string)] }).(VolumeQuotaRuleOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*VolumeQuotaRuleInput)(nil)).Elem(), &VolumeQuotaRule{}) pulumi.RegisterInputType(reflect.TypeOf((*VolumeQuotaRuleArrayInput)(nil)).Elem(), VolumeQuotaRuleArray{}) pulumi.RegisterInputType(reflect.TypeOf((*VolumeQuotaRuleMapInput)(nil)).Elem(), VolumeQuotaRuleMap{}) pulumi.RegisterOutputType(VolumeQuotaRuleOutput{}) pulumi.RegisterOutputType(VolumeQuotaRuleArrayOutput{}) pulumi.RegisterOutputType(VolumeQuotaRuleMapOutput{}) }
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/netapp/getVolumeQuotaRule.go
sdk/go/azure/netapp/getVolumeQuotaRule.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 netapp 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 Volume Quota Rule. // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/netapp" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { // example, err := netapp.LookupVolumeQuotaRule(ctx, &netapp.LookupVolumeQuotaRuleArgs{ // Name: "exampleQuotaRule", // VolumeId: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1/volumes/vol1", // }, 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.NetApp` - 2025-06-01 func LookupVolumeQuotaRule(ctx *pulumi.Context, args *LookupVolumeQuotaRuleArgs, opts ...pulumi.InvokeOption) (*LookupVolumeQuotaRuleResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupVolumeQuotaRuleResult err := ctx.Invoke("azure:netapp/getVolumeQuotaRule:getVolumeQuotaRule", args, &rv, opts...) if err != nil { return nil, err } return &rv, nil } // A collection of arguments for invoking getVolumeQuotaRule. type LookupVolumeQuotaRuleArgs struct { // The name of this Volume Quota Rule. Name string `pulumi:"name"` // The NetApp volume ID where the Volume Quota Rule is assigned to. VolumeId string `pulumi:"volumeId"` } // A collection of values returned by getVolumeQuotaRule. type LookupVolumeQuotaRuleResult struct { // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` // The Azure Region where the Volume Quota Rule exists. Location string `pulumi:"location"` Name string `pulumi:"name"` // The quota size in kibibytes. QuotaSizeInKib int `pulumi:"quotaSizeInKib"` // The quota Target. QuotaTarget string `pulumi:"quotaTarget"` // The quota type. QuotaType string `pulumi:"quotaType"` VolumeId string `pulumi:"volumeId"` } func LookupVolumeQuotaRuleOutput(ctx *pulumi.Context, args LookupVolumeQuotaRuleOutputArgs, opts ...pulumi.InvokeOption) LookupVolumeQuotaRuleResultOutput { return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupVolumeQuotaRuleResultOutput, error) { args := v.(LookupVolumeQuotaRuleArgs) options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} return ctx.InvokeOutput("azure:netapp/getVolumeQuotaRule:getVolumeQuotaRule", args, LookupVolumeQuotaRuleResultOutput{}, options).(LookupVolumeQuotaRuleResultOutput), nil }).(LookupVolumeQuotaRuleResultOutput) } // A collection of arguments for invoking getVolumeQuotaRule. type LookupVolumeQuotaRuleOutputArgs struct { // The name of this Volume Quota Rule. Name pulumi.StringInput `pulumi:"name"` // The NetApp volume ID where the Volume Quota Rule is assigned to. VolumeId pulumi.StringInput `pulumi:"volumeId"` } func (LookupVolumeQuotaRuleOutputArgs) ElementType() reflect.Type { return reflect.TypeOf((*LookupVolumeQuotaRuleArgs)(nil)).Elem() } // A collection of values returned by getVolumeQuotaRule. type LookupVolumeQuotaRuleResultOutput struct{ *pulumi.OutputState } func (LookupVolumeQuotaRuleResultOutput) ElementType() reflect.Type { return reflect.TypeOf((*LookupVolumeQuotaRuleResult)(nil)).Elem() } func (o LookupVolumeQuotaRuleResultOutput) ToLookupVolumeQuotaRuleResultOutput() LookupVolumeQuotaRuleResultOutput { return o } func (o LookupVolumeQuotaRuleResultOutput) ToLookupVolumeQuotaRuleResultOutputWithContext(ctx context.Context) LookupVolumeQuotaRuleResultOutput { return o } // The provider-assigned unique ID for this managed resource. func (o LookupVolumeQuotaRuleResultOutput) Id() pulumi.StringOutput { return o.ApplyT(func(v LookupVolumeQuotaRuleResult) string { return v.Id }).(pulumi.StringOutput) } // The Azure Region where the Volume Quota Rule exists. func (o LookupVolumeQuotaRuleResultOutput) Location() pulumi.StringOutput { return o.ApplyT(func(v LookupVolumeQuotaRuleResult) string { return v.Location }).(pulumi.StringOutput) } func (o LookupVolumeQuotaRuleResultOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v LookupVolumeQuotaRuleResult) string { return v.Name }).(pulumi.StringOutput) } // The quota size in kibibytes. func (o LookupVolumeQuotaRuleResultOutput) QuotaSizeInKib() pulumi.IntOutput { return o.ApplyT(func(v LookupVolumeQuotaRuleResult) int { return v.QuotaSizeInKib }).(pulumi.IntOutput) } // The quota Target. func (o LookupVolumeQuotaRuleResultOutput) QuotaTarget() pulumi.StringOutput { return o.ApplyT(func(v LookupVolumeQuotaRuleResult) string { return v.QuotaTarget }).(pulumi.StringOutput) } // The quota type. func (o LookupVolumeQuotaRuleResultOutput) QuotaType() pulumi.StringOutput { return o.ApplyT(func(v LookupVolumeQuotaRuleResult) string { return v.QuotaType }).(pulumi.StringOutput) } func (o LookupVolumeQuotaRuleResultOutput) VolumeId() pulumi.StringOutput { return o.ApplyT(func(v LookupVolumeQuotaRuleResult) string { return v.VolumeId }).(pulumi.StringOutput) } func init() { pulumi.RegisterOutputType(LookupVolumeQuotaRuleResultOutput{}) }
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/netapp/volumeGroupOracle.go
sdk/go/azure/netapp/volumeGroupOracle.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 netapp 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 ( // // "fmt" // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/netapp" // "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.Sprintf("%v-resources", prefix), // Location: pulumi.Any(location), // Tags: pulumi.StringMap{ // "SkipNRMSNSG": pulumi.String("true"), // }, // }) // if err != nil { // return err // } // exampleVirtualNetwork, err := network.NewVirtualNetwork(ctx, "example", &network.VirtualNetworkArgs{ // Name: pulumi.Sprintf("%v-vnet", prefix), // Location: example.Location, // ResourceGroupName: example.Name, // AddressSpaces: pulumi.StringArray{ // pulumi.String("10.88.0.0/16"), // }, // }) // if err != nil { // return err // } // exampleSubnet, err := network.NewSubnet(ctx, "example", &network.SubnetArgs{ // Name: pulumi.Sprintf("%v-delegated-subnet", prefix), // ResourceGroupName: example.Name, // VirtualNetworkName: exampleVirtualNetwork.Name, // AddressPrefixes: pulumi.StringArray{ // pulumi.String("10.88.2.0/24"), // }, // Delegations: network.SubnetDelegationArray{ // &network.SubnetDelegationArgs{ // Name: pulumi.String("exampledelegation"), // ServiceDelegation: &network.SubnetDelegationServiceDelegationArgs{ // Name: pulumi.String("Microsoft.Netapp/volumes"), // Actions: pulumi.StringArray{ // pulumi.String("Microsoft.Network/networkinterfaces/*"), // pulumi.String("Microsoft.Network/virtualNetworks/subnets/join/action"), // }, // }, // }, // }, // }) // if err != nil { // return err // } // exampleAccount, err := netapp.NewAccount(ctx, "example", &netapp.AccountArgs{ // Name: pulumi.Sprintf("%v-netapp-account", prefix), // Location: example.Location, // ResourceGroupName: example.Name, // }, pulumi.DependsOn([]pulumi.Resource{ // exampleSubnet, // })) // if err != nil { // return err // } // examplePool, err := netapp.NewPool(ctx, "example", &netapp.PoolArgs{ // Name: pulumi.Sprintf("%v-netapp-pool", prefix), // Location: example.Location, // ResourceGroupName: example.Name, // AccountName: exampleAccount.Name, // ServiceLevel: pulumi.String("Standard"), // SizeInTb: pulumi.Int(4), // QosType: pulumi.String("Manual"), // }) // if err != nil { // return err // } // _, err = netapp.NewVolumeGroupOracle(ctx, "example", &netapp.VolumeGroupOracleArgs{ // Name: pulumi.Sprintf("%v-NetAppVolumeGroupOracle", prefix), // Location: example.Location, // ResourceGroupName: example.Name, // AccountName: exampleAccount.Name, // GroupDescription: pulumi.String("Example volume group for Oracle"), // ApplicationIdentifier: pulumi.String("TST"), // Volumes: netapp.VolumeGroupOracleVolumeArray{ // &netapp.VolumeGroupOracleVolumeArgs{ // Name: pulumi.Sprintf("%v-volume-ora1", prefix), // VolumePath: pulumi.Sprintf("%v-my-unique-file-ora-path-1", prefix), // ServiceLevel: pulumi.String("Standard"), // CapacityPoolId: examplePool.ID(), // SubnetId: exampleSubnet.ID(), // Zone: pulumi.String("1"), // VolumeSpecName: pulumi.String("ora-data1"), // StorageQuotaInGb: pulumi.Int(1024), // ThroughputInMibps: pulumi.Float64(24), // Protocols: pulumi.String("NFSv4.1"), // SecurityStyle: pulumi.String("unix"), // SnapshotDirectoryVisible: pulumi.Bool(false), // ExportPolicyRules: netapp.VolumeGroupOracleVolumeExportPolicyRuleArray{ // &netapp.VolumeGroupOracleVolumeExportPolicyRuleArgs{ // RuleIndex: pulumi.Int(1), // AllowedClients: pulumi.String("0.0.0.0/0"), // Nfsv3Enabled: pulumi.Bool(false), // Nfsv41Enabled: pulumi.Bool(true), // UnixReadOnly: pulumi.Bool(false), // UnixReadWrite: pulumi.Bool(true), // RootAccessEnabled: pulumi.Bool(false), // }, // }, // }, // &netapp.VolumeGroupOracleVolumeArgs{ // Name: pulumi.Sprintf("%v-volume-oraLog", prefix), // VolumePath: pulumi.Sprintf("%v-my-unique-file-oralog-path", prefix), // ServiceLevel: pulumi.String("Standard"), // CapacityPoolId: examplePool.ID(), // SubnetId: exampleSubnet.ID(), // Zone: pulumi.String("1"), // VolumeSpecName: pulumi.String("ora-log"), // StorageQuotaInGb: pulumi.Int(1024), // ThroughputInMibps: pulumi.Float64(24), // Protocols: pulumi.String("NFSv4.1"), // SecurityStyle: pulumi.String("unix"), // SnapshotDirectoryVisible: pulumi.Bool(false), // ExportPolicyRules: netapp.VolumeGroupOracleVolumeExportPolicyRuleArray{ // &netapp.VolumeGroupOracleVolumeExportPolicyRuleArgs{ // RuleIndex: pulumi.Int(1), // AllowedClients: pulumi.String("0.0.0.0/0"), // Nfsv3Enabled: pulumi.Bool(false), // Nfsv41Enabled: pulumi.Bool(true), // UnixReadOnly: pulumi.Bool(false), // UnixReadWrite: pulumi.Bool(true), // RootAccessEnabled: pulumi.Bool(false), // }, // }, // }, // }, // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ### Cross-Region Replication // // ```go // package main // // import ( // // "fmt" // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/netapp" // "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.Sprintf("%v-resources", prefix), // Location: pulumi.Any(location), // Tags: pulumi.StringMap{ // "SkipNRMSNSG": pulumi.String("true"), // }, // }) // if err != nil { // return err // } // // Primary region networking // examplePrimary, err := network.NewVirtualNetwork(ctx, "example_primary", &network.VirtualNetworkArgs{ // Name: pulumi.Sprintf("%v-vnet-primary", prefix), // Location: example.Location, // ResourceGroupName: example.Name, // AddressSpaces: pulumi.StringArray{ // pulumi.String("10.47.0.0/16"), // }, // }) // if err != nil { // return err // } // examplePrimarySubnet, err := network.NewSubnet(ctx, "example_primary", &network.SubnetArgs{ // Name: pulumi.Sprintf("%v-delegated-subnet-primary", prefix), // ResourceGroupName: example.Name, // VirtualNetworkName: examplePrimary.Name, // AddressPrefixes: pulumi.StringArray{ // pulumi.String("10.47.2.0/24"), // }, // Delegations: network.SubnetDelegationArray{ // &network.SubnetDelegationArgs{ // Name: pulumi.String("exampledelegation"), // ServiceDelegation: &network.SubnetDelegationServiceDelegationArgs{ // Name: pulumi.String("Microsoft.Netapp/volumes"), // Actions: pulumi.StringArray{ // pulumi.String("Microsoft.Network/networkinterfaces/*"), // pulumi.String("Microsoft.Network/virtualNetworks/subnets/join/action"), // }, // }, // }, // }, // }) // if err != nil { // return err // } // // Secondary region networking // exampleSecondary, err := network.NewVirtualNetwork(ctx, "example_secondary", &network.VirtualNetworkArgs{ // Name: pulumi.Sprintf("%v-vnet-secondary", prefix), // Location: pulumi.Any(altLocation), // ResourceGroupName: example.Name, // AddressSpaces: pulumi.StringArray{ // pulumi.String("10.48.0.0/16"), // }, // }) // if err != nil { // return err // } // exampleSecondarySubnet, err := network.NewSubnet(ctx, "example_secondary", &network.SubnetArgs{ // Name: pulumi.Sprintf("%v-delegated-subnet-secondary", prefix), // ResourceGroupName: example.Name, // VirtualNetworkName: exampleSecondary.Name, // AddressPrefixes: pulumi.StringArray{ // pulumi.String("10.48.2.0/24"), // }, // Delegations: network.SubnetDelegationArray{ // &network.SubnetDelegationArgs{ // Name: pulumi.String("exampledelegation"), // ServiceDelegation: &network.SubnetDelegationServiceDelegationArgs{ // Name: pulumi.String("Microsoft.Netapp/volumes"), // Actions: pulumi.StringArray{ // pulumi.String("Microsoft.Network/networkinterfaces/*"), // pulumi.String("Microsoft.Network/virtualNetworks/subnets/join/action"), // }, // }, // }, // }, // }) // if err != nil { // return err // } // // Primary region NetApp infrastructure // examplePrimaryAccount, err := netapp.NewAccount(ctx, "example_primary", &netapp.AccountArgs{ // Name: pulumi.Sprintf("%v-netapp-account-primary", prefix), // Location: example.Location, // ResourceGroupName: example.Name, // }, pulumi.DependsOn([]pulumi.Resource{ // examplePrimarySubnet, // })) // if err != nil { // return err // } // examplePrimaryPool, err := netapp.NewPool(ctx, "example_primary", &netapp.PoolArgs{ // Name: pulumi.Sprintf("%v-netapp-pool-primary", prefix), // Location: example.Location, // ResourceGroupName: example.Name, // AccountName: examplePrimaryAccount.Name, // ServiceLevel: pulumi.String("Standard"), // SizeInTb: pulumi.Int(4), // QosType: pulumi.String("Manual"), // }) // if err != nil { // return err // } // // Secondary region NetApp infrastructure // exampleSecondaryAccount, err := netapp.NewAccount(ctx, "example_secondary", &netapp.AccountArgs{ // Name: pulumi.Sprintf("%v-netapp-account-secondary", prefix), // Location: pulumi.Any(altLocation), // ResourceGroupName: example.Name, // }, pulumi.DependsOn([]pulumi.Resource{ // exampleSecondarySubnet, // })) // if err != nil { // return err // } // exampleSecondaryPool, err := netapp.NewPool(ctx, "example_secondary", &netapp.PoolArgs{ // Name: pulumi.Sprintf("%v-netapp-pool-secondary", prefix), // Location: pulumi.Any(altLocation), // ResourceGroupName: example.Name, // AccountName: exampleSecondaryAccount.Name, // ServiceLevel: pulumi.String("Standard"), // SizeInTb: pulumi.Int(4), // QosType: pulumi.String("Manual"), // }) // if err != nil { // return err // } // // Primary Oracle volume group // examplePrimaryVolumeGroupOracle, err := netapp.NewVolumeGroupOracle(ctx, "example_primary", &netapp.VolumeGroupOracleArgs{ // Name: pulumi.Sprintf("%v-NetAppVolumeGroupOracle-primary", prefix), // Location: example.Location, // ResourceGroupName: example.Name, // AccountName: examplePrimaryAccount.Name, // GroupDescription: pulumi.String("Primary Oracle volume group for CRR"), // ApplicationIdentifier: pulumi.String("TST"), // Volumes: netapp.VolumeGroupOracleVolumeArray{ // &netapp.VolumeGroupOracleVolumeArgs{ // Name: pulumi.Sprintf("%v-volume-ora1-primary", prefix), // VolumePath: pulumi.Sprintf("%v-my-unique-file-ora-path-1-primary", prefix), // ServiceLevel: pulumi.String("Standard"), // CapacityPoolId: examplePrimaryPool.ID(), // SubnetId: examplePrimarySubnet.ID(), // VolumeSpecName: pulumi.String("ora-data1"), // StorageQuotaInGb: pulumi.Int(1024), // ThroughputInMibps: pulumi.Float64(24), // Protocols: pulumi.String("NFSv4.1"), // SecurityStyle: pulumi.String("unix"), // SnapshotDirectoryVisible: pulumi.Bool(false), // ExportPolicyRules: netapp.VolumeGroupOracleVolumeExportPolicyRuleArray{ // &netapp.VolumeGroupOracleVolumeExportPolicyRuleArgs{ // RuleIndex: pulumi.Int(1), // AllowedClients: pulumi.String("0.0.0.0/0"), // Nfsv3Enabled: pulumi.Bool(false), // Nfsv41Enabled: pulumi.Bool(true), // UnixReadOnly: pulumi.Bool(false), // UnixReadWrite: pulumi.Bool(true), // RootAccessEnabled: pulumi.Bool(false), // }, // }, // }, // }, // }) // if err != nil { // return err // } // // Secondary Oracle volume group with CRR // _, err = netapp.NewVolumeGroupOracle(ctx, "example_secondary", &netapp.VolumeGroupOracleArgs{ // Name: pulumi.Sprintf("%v-NetAppVolumeGroupOracle-secondary", prefix), // Location: pulumi.Any(altLocation), // ResourceGroupName: example.Name, // AccountName: exampleSecondaryAccount.Name, // GroupDescription: pulumi.String("Secondary Oracle volume group for CRR"), // ApplicationIdentifier: pulumi.String("TST"), // Volumes: netapp.VolumeGroupOracleVolumeArray{ // &netapp.VolumeGroupOracleVolumeArgs{ // Name: pulumi.Sprintf("%v-volume-ora1-secondary", prefix), // VolumePath: pulumi.Sprintf("%v-my-unique-file-ora-path-1-secondary", prefix), // ServiceLevel: pulumi.String("Standard"), // CapacityPoolId: exampleSecondaryPool.ID(), // SubnetId: exampleSecondarySubnet.ID(), // VolumeSpecName: pulumi.String("ora-data1"), // StorageQuotaInGb: pulumi.Int(1024), // ThroughputInMibps: pulumi.Float64(24), // Protocols: pulumi.String("NFSv4.1"), // SecurityStyle: pulumi.String("unix"), // SnapshotDirectoryVisible: pulumi.Bool(false), // ExportPolicyRules: netapp.VolumeGroupOracleVolumeExportPolicyRuleArray{ // &netapp.VolumeGroupOracleVolumeExportPolicyRuleArgs{ // RuleIndex: pulumi.Int(1), // AllowedClients: pulumi.String("0.0.0.0/0"), // Nfsv3Enabled: pulumi.Bool(false), // Nfsv41Enabled: pulumi.Bool(true), // UnixReadOnly: pulumi.Bool(false), // UnixReadWrite: pulumi.Bool(true), // RootAccessEnabled: pulumi.Bool(false), // }, // }, // DataProtectionReplication: &netapp.VolumeGroupOracleVolumeDataProtectionReplicationArgs{ // EndpointType: pulumi.String("dst"), // RemoteVolumeLocation: example.Location, // RemoteVolumeResourceId: examplePrimaryVolumeGroupOracle.Volumes.ApplyT(func(volumes []netapp.VolumeGroupOracleVolume) (*string, error) { // return &volumes[0].Id, nil // }).(pulumi.StringPtrOutput), // ReplicationFrequency: pulumi.String("10minutes"), // }, // }, // }, // }, pulumi.DependsOn([]pulumi.Resource{ // examplePrimaryVolumeGroupOracle, // })) // 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.NetApp` - 2025-06-01 // // ## Import // // Application Volume Groups can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:netapp/volumeGroupOracle:VolumeGroupOracle example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mytest-rg/providers/Microsoft.NetApp/netAppAccounts/netapp-account-test/volumeGroups/netapp-volumegroup-test // ``` type VolumeGroupOracle struct { pulumi.CustomResourceState // Name of the account where the application volume group belong to. Changing this forces a new Application Volume Group to be created and data will be lost. AccountName pulumi.StringOutput `pulumi:"accountName"` // The SAP System ID, maximum 3 characters, e.g. `OR1`. Changing this forces a new Application Volume Group to be created and data will be lost. ApplicationIdentifier pulumi.StringOutput `pulumi:"applicationIdentifier"` // Volume group description. Changing this forces a new Application Volume Group to be created and data will be lost. GroupDescription pulumi.StringOutput `pulumi:"groupDescription"` // The Azure Region where the Application Volume Group should exist. Changing this forces a new Application Volume Group to be created and data will be lost. Location pulumi.StringOutput `pulumi:"location"` // The name which should be used for this Application Volume Group. Changing this forces a new Application Volume Group to be created and data will be lost. Name pulumi.StringOutput `pulumi:"name"` // The name of the Resource Group where the Application Volume Group should exist. Changing this forces a new Application Volume Group to be created and data will be lost. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // One or more `volume` blocks as defined below. Volumes VolumeGroupOracleVolumeArrayOutput `pulumi:"volumes"` } // NewVolumeGroupOracle registers a new resource with the given unique name, arguments, and options. func NewVolumeGroupOracle(ctx *pulumi.Context, name string, args *VolumeGroupOracleArgs, opts ...pulumi.ResourceOption) (*VolumeGroupOracle, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.AccountName == nil { return nil, errors.New("invalid value for required argument 'AccountName'") } if args.ApplicationIdentifier == nil { return nil, errors.New("invalid value for required argument 'ApplicationIdentifier'") } if args.GroupDescription == nil { return nil, errors.New("invalid value for required argument 'GroupDescription'") } if args.ResourceGroupName == nil { return nil, errors.New("invalid value for required argument 'ResourceGroupName'") } if args.Volumes == nil { return nil, errors.New("invalid value for required argument 'Volumes'") } opts = internal.PkgResourceDefaultOpts(opts) var resource VolumeGroupOracle err := ctx.RegisterResource("azure:netapp/volumeGroupOracle:VolumeGroupOracle", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetVolumeGroupOracle gets an existing VolumeGroupOracle 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 GetVolumeGroupOracle(ctx *pulumi.Context, name string, id pulumi.IDInput, state *VolumeGroupOracleState, opts ...pulumi.ResourceOption) (*VolumeGroupOracle, error) { var resource VolumeGroupOracle err := ctx.ReadResource("azure:netapp/volumeGroupOracle:VolumeGroupOracle", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering VolumeGroupOracle resources. type volumeGroupOracleState struct { // Name of the account where the application volume group belong to. Changing this forces a new Application Volume Group to be created and data will be lost. AccountName *string `pulumi:"accountName"` // The SAP System ID, maximum 3 characters, e.g. `OR1`. Changing this forces a new Application Volume Group to be created and data will be lost. ApplicationIdentifier *string `pulumi:"applicationIdentifier"` // Volume group description. Changing this forces a new Application Volume Group to be created and data will be lost. GroupDescription *string `pulumi:"groupDescription"` // The Azure Region where the Application Volume Group should exist. Changing this forces a new Application Volume Group to be created and data will be lost. Location *string `pulumi:"location"` // The name which should be used for this Application Volume Group. Changing this forces a new Application Volume Group to be created and data will be lost. Name *string `pulumi:"name"` // The name of the Resource Group where the Application Volume Group should exist. Changing this forces a new Application Volume Group to be created and data will be lost. ResourceGroupName *string `pulumi:"resourceGroupName"` // One or more `volume` blocks as defined below. Volumes []VolumeGroupOracleVolume `pulumi:"volumes"` } type VolumeGroupOracleState struct { // Name of the account where the application volume group belong to. Changing this forces a new Application Volume Group to be created and data will be lost. AccountName pulumi.StringPtrInput // The SAP System ID, maximum 3 characters, e.g. `OR1`. Changing this forces a new Application Volume Group to be created and data will be lost. ApplicationIdentifier pulumi.StringPtrInput // Volume group description. Changing this forces a new Application Volume Group to be created and data will be lost. GroupDescription pulumi.StringPtrInput // The Azure Region where the Application Volume Group should exist. Changing this forces a new Application Volume Group to be created and data will be lost. Location pulumi.StringPtrInput // The name which should be used for this Application Volume Group. Changing this forces a new Application Volume Group to be created and data will be lost. Name pulumi.StringPtrInput // The name of the Resource Group where the Application Volume Group should exist. Changing this forces a new Application Volume Group to be created and data will be lost. ResourceGroupName pulumi.StringPtrInput // One or more `volume` blocks as defined below. Volumes VolumeGroupOracleVolumeArrayInput } func (VolumeGroupOracleState) ElementType() reflect.Type { return reflect.TypeOf((*volumeGroupOracleState)(nil)).Elem() } type volumeGroupOracleArgs struct { // Name of the account where the application volume group belong to. Changing this forces a new Application Volume Group to be created and data will be lost. AccountName string `pulumi:"accountName"` // The SAP System ID, maximum 3 characters, e.g. `OR1`. Changing this forces a new Application Volume Group to be created and data will be lost. ApplicationIdentifier string `pulumi:"applicationIdentifier"` // Volume group description. Changing this forces a new Application Volume Group to be created and data will be lost. GroupDescription string `pulumi:"groupDescription"` // The Azure Region where the Application Volume Group should exist. Changing this forces a new Application Volume Group to be created and data will be lost. Location *string `pulumi:"location"` // The name which should be used for this Application Volume Group. Changing this forces a new Application Volume Group to be created and data will be lost. Name *string `pulumi:"name"` // The name of the Resource Group where the Application Volume Group should exist. Changing this forces a new Application Volume Group to be created and data will be lost. ResourceGroupName string `pulumi:"resourceGroupName"` // One or more `volume` blocks as defined below. Volumes []VolumeGroupOracleVolume `pulumi:"volumes"` } // The set of arguments for constructing a VolumeGroupOracle resource. type VolumeGroupOracleArgs struct { // Name of the account where the application volume group belong to. Changing this forces a new Application Volume Group to be created and data will be lost. AccountName pulumi.StringInput // The SAP System ID, maximum 3 characters, e.g. `OR1`. Changing this forces a new Application Volume Group to be created and data will be lost. ApplicationIdentifier pulumi.StringInput // Volume group description. Changing this forces a new Application Volume Group to be created and data will be lost. GroupDescription pulumi.StringInput // The Azure Region where the Application Volume Group should exist. Changing this forces a new Application Volume Group to be created and data will be lost. Location pulumi.StringPtrInput // The name which should be used for this Application Volume Group. Changing this forces a new Application Volume Group to be created and data will be lost. Name pulumi.StringPtrInput // The name of the Resource Group where the Application Volume Group should exist. Changing this forces a new Application Volume Group to be created and data will be lost. ResourceGroupName pulumi.StringInput // One or more `volume` blocks as defined below. Volumes VolumeGroupOracleVolumeArrayInput } func (VolumeGroupOracleArgs) ElementType() reflect.Type { return reflect.TypeOf((*volumeGroupOracleArgs)(nil)).Elem() } type VolumeGroupOracleInput interface { pulumi.Input ToVolumeGroupOracleOutput() VolumeGroupOracleOutput ToVolumeGroupOracleOutputWithContext(ctx context.Context) VolumeGroupOracleOutput } func (*VolumeGroupOracle) ElementType() reflect.Type { return reflect.TypeOf((**VolumeGroupOracle)(nil)).Elem() } func (i *VolumeGroupOracle) ToVolumeGroupOracleOutput() VolumeGroupOracleOutput { return i.ToVolumeGroupOracleOutputWithContext(context.Background()) } func (i *VolumeGroupOracle) ToVolumeGroupOracleOutputWithContext(ctx context.Context) VolumeGroupOracleOutput { return pulumi.ToOutputWithContext(ctx, i).(VolumeGroupOracleOutput) } // VolumeGroupOracleArrayInput is an input type that accepts VolumeGroupOracleArray and VolumeGroupOracleArrayOutput values. // You can construct a concrete instance of `VolumeGroupOracleArrayInput` via: // // VolumeGroupOracleArray{ VolumeGroupOracleArgs{...} } type VolumeGroupOracleArrayInput interface { pulumi.Input ToVolumeGroupOracleArrayOutput() VolumeGroupOracleArrayOutput ToVolumeGroupOracleArrayOutputWithContext(context.Context) VolumeGroupOracleArrayOutput } type VolumeGroupOracleArray []VolumeGroupOracleInput func (VolumeGroupOracleArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*VolumeGroupOracle)(nil)).Elem() } func (i VolumeGroupOracleArray) ToVolumeGroupOracleArrayOutput() VolumeGroupOracleArrayOutput { return i.ToVolumeGroupOracleArrayOutputWithContext(context.Background()) } func (i VolumeGroupOracleArray) ToVolumeGroupOracleArrayOutputWithContext(ctx context.Context) VolumeGroupOracleArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(VolumeGroupOracleArrayOutput) } // VolumeGroupOracleMapInput is an input type that accepts VolumeGroupOracleMap and VolumeGroupOracleMapOutput values. // You can construct a concrete instance of `VolumeGroupOracleMapInput` via: // // VolumeGroupOracleMap{ "key": VolumeGroupOracleArgs{...} } type VolumeGroupOracleMapInput interface { pulumi.Input ToVolumeGroupOracleMapOutput() VolumeGroupOracleMapOutput ToVolumeGroupOracleMapOutputWithContext(context.Context) VolumeGroupOracleMapOutput } type VolumeGroupOracleMap map[string]VolumeGroupOracleInput func (VolumeGroupOracleMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*VolumeGroupOracle)(nil)).Elem() } func (i VolumeGroupOracleMap) ToVolumeGroupOracleMapOutput() VolumeGroupOracleMapOutput { return i.ToVolumeGroupOracleMapOutputWithContext(context.Background()) } func (i VolumeGroupOracleMap) ToVolumeGroupOracleMapOutputWithContext(ctx context.Context) VolumeGroupOracleMapOutput { return pulumi.ToOutputWithContext(ctx, i).(VolumeGroupOracleMapOutput) } type VolumeGroupOracleOutput struct{ *pulumi.OutputState } func (VolumeGroupOracleOutput) ElementType() reflect.Type { return reflect.TypeOf((**VolumeGroupOracle)(nil)).Elem() } func (o VolumeGroupOracleOutput) ToVolumeGroupOracleOutput() VolumeGroupOracleOutput { return o } func (o VolumeGroupOracleOutput) ToVolumeGroupOracleOutputWithContext(ctx context.Context) VolumeGroupOracleOutput { return o } // Name of the account where the application volume group belong to. Changing this forces a new Application Volume Group to be created and data will be lost. func (o VolumeGroupOracleOutput) AccountName() pulumi.StringOutput { return o.ApplyT(func(v *VolumeGroupOracle) pulumi.StringOutput { return v.AccountName }).(pulumi.StringOutput) } // The SAP System ID, maximum 3 characters, e.g. `OR1`. Changing this forces a new Application Volume Group to be created and data will be lost. func (o VolumeGroupOracleOutput) ApplicationIdentifier() pulumi.StringOutput { return o.ApplyT(func(v *VolumeGroupOracle) pulumi.StringOutput { return v.ApplicationIdentifier }).(pulumi.StringOutput) } // Volume group description. Changing this forces a new Application Volume Group to be created and data will be lost. func (o VolumeGroupOracleOutput) GroupDescription() pulumi.StringOutput { return o.ApplyT(func(v *VolumeGroupOracle) pulumi.StringOutput { return v.GroupDescription }).(pulumi.StringOutput) } // The Azure Region where the Application Volume Group should exist. Changing this forces a new Application Volume Group to be created and data will be lost. func (o VolumeGroupOracleOutput) Location() pulumi.StringOutput { return o.ApplyT(func(v *VolumeGroupOracle) pulumi.StringOutput { return v.Location }).(pulumi.StringOutput) } // The name which should be used for this Application Volume Group. Changing this forces a new Application Volume Group to be created and data will be lost. func (o VolumeGroupOracleOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *VolumeGroupOracle) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // The name of the Resource Group where the Application Volume Group should exist. Changing this forces a new Application Volume Group to be created and data will be lost. func (o VolumeGroupOracleOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v *VolumeGroupOracle) pulumi.StringOutput { return v.ResourceGroupName }).(pulumi.StringOutput) } // One or more `volume` blocks as defined below. func (o VolumeGroupOracleOutput) Volumes() VolumeGroupOracleVolumeArrayOutput { return o.ApplyT(func(v *VolumeGroupOracle) VolumeGroupOracleVolumeArrayOutput { return v.Volumes }).(VolumeGroupOracleVolumeArrayOutput) } type VolumeGroupOracleArrayOutput struct{ *pulumi.OutputState } func (VolumeGroupOracleArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*VolumeGroupOracle)(nil)).Elem() } func (o VolumeGroupOracleArrayOutput) ToVolumeGroupOracleArrayOutput() VolumeGroupOracleArrayOutput { return o } func (o VolumeGroupOracleArrayOutput) ToVolumeGroupOracleArrayOutputWithContext(ctx context.Context) VolumeGroupOracleArrayOutput { return o } func (o VolumeGroupOracleArrayOutput) Index(i pulumi.IntInput) VolumeGroupOracleOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *VolumeGroupOracle { return vs[0].([]*VolumeGroupOracle)[vs[1].(int)] }).(VolumeGroupOracleOutput) } type VolumeGroupOracleMapOutput struct{ *pulumi.OutputState } func (VolumeGroupOracleMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*VolumeGroupOracle)(nil)).Elem() } func (o VolumeGroupOracleMapOutput) ToVolumeGroupOracleMapOutput() VolumeGroupOracleMapOutput { return o } func (o VolumeGroupOracleMapOutput) ToVolumeGroupOracleMapOutputWithContext(ctx context.Context) VolumeGroupOracleMapOutput { return o } func (o VolumeGroupOracleMapOutput) MapIndex(k pulumi.StringInput) VolumeGroupOracleOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *VolumeGroupOracle { return vs[0].(map[string]*VolumeGroupOracle)[vs[1].(string)] }).(VolumeGroupOracleOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*VolumeGroupOracleInput)(nil)).Elem(), &VolumeGroupOracle{}) pulumi.RegisterInputType(reflect.TypeOf((*VolumeGroupOracleArrayInput)(nil)).Elem(), VolumeGroupOracleArray{}) pulumi.RegisterInputType(reflect.TypeOf((*VolumeGroupOracleMapInput)(nil)).Elem(), VolumeGroupOracleMap{}) pulumi.RegisterOutputType(VolumeGroupOracleOutput{}) pulumi.RegisterOutputType(VolumeGroupOracleArrayOutput{}) pulumi.RegisterOutputType(VolumeGroupOracleMapOutput{}) }
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/netapp/getAccount.go
sdk/go/azure/netapp/getAccount.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 netapp import ( "context" "reflect" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Uses this data source to access information about an existing NetApp Account. // // ## NetApp Account Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/netapp" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { // example, err := netapp.LookupAccount(ctx, &netapp.LookupAccountArgs{ // ResourceGroupName: "acctestRG", // Name: "acctestnetappaccount", // }, nil) // if err != nil { // return err // } // ctx.Export("netappAccountId", example.Id) // return nil // }) // } // // ``` // // ## API Providers // // <!-- This section is generated, changes will be overwritten --> // This data source uses the following Azure API Providers: // // * `Microsoft.NetApp` - 2025-06-01 func LookupAccount(ctx *pulumi.Context, args *LookupAccountArgs, opts ...pulumi.InvokeOption) (*LookupAccountResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupAccountResult err := ctx.Invoke("azure:netapp/getAccount:getAccount", args, &rv, opts...) if err != nil { return nil, err } return &rv, nil } // A collection of arguments for invoking getAccount. type LookupAccountArgs struct { Identity *GetAccountIdentity `pulumi:"identity"` // The name of the NetApp Account. Name string `pulumi:"name"` // The Name of the Resource Group where the NetApp Account exists. ResourceGroupName string `pulumi:"resourceGroupName"` } // A collection of values returned by getAccount. type LookupAccountResult struct { // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` Identity *GetAccountIdentity `pulumi:"identity"` // The Azure Region where the NetApp Account exists. Location string `pulumi:"location"` Name string `pulumi:"name"` ResourceGroupName string `pulumi:"resourceGroupName"` Tags map[string]string `pulumi:"tags"` } func LookupAccountOutput(ctx *pulumi.Context, args LookupAccountOutputArgs, opts ...pulumi.InvokeOption) LookupAccountResultOutput { return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupAccountResultOutput, error) { args := v.(LookupAccountArgs) options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} return ctx.InvokeOutput("azure:netapp/getAccount:getAccount", args, LookupAccountResultOutput{}, options).(LookupAccountResultOutput), nil }).(LookupAccountResultOutput) } // A collection of arguments for invoking getAccount. type LookupAccountOutputArgs struct { Identity GetAccountIdentityPtrInput `pulumi:"identity"` // The name of the NetApp Account. Name pulumi.StringInput `pulumi:"name"` // The Name of the Resource Group where the NetApp Account exists. ResourceGroupName pulumi.StringInput `pulumi:"resourceGroupName"` } func (LookupAccountOutputArgs) ElementType() reflect.Type { return reflect.TypeOf((*LookupAccountArgs)(nil)).Elem() } // A collection of values returned by getAccount. type LookupAccountResultOutput struct{ *pulumi.OutputState } func (LookupAccountResultOutput) ElementType() reflect.Type { return reflect.TypeOf((*LookupAccountResult)(nil)).Elem() } func (o LookupAccountResultOutput) ToLookupAccountResultOutput() LookupAccountResultOutput { return o } func (o LookupAccountResultOutput) ToLookupAccountResultOutputWithContext(ctx context.Context) LookupAccountResultOutput { return o } // The provider-assigned unique ID for this managed resource. func (o LookupAccountResultOutput) Id() pulumi.StringOutput { return o.ApplyT(func(v LookupAccountResult) string { return v.Id }).(pulumi.StringOutput) } func (o LookupAccountResultOutput) Identity() GetAccountIdentityPtrOutput { return o.ApplyT(func(v LookupAccountResult) *GetAccountIdentity { return v.Identity }).(GetAccountIdentityPtrOutput) } // The Azure Region where the NetApp Account exists. func (o LookupAccountResultOutput) Location() pulumi.StringOutput { return o.ApplyT(func(v LookupAccountResult) string { return v.Location }).(pulumi.StringOutput) } func (o LookupAccountResultOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v LookupAccountResult) string { return v.Name }).(pulumi.StringOutput) } func (o LookupAccountResultOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v LookupAccountResult) string { return v.ResourceGroupName }).(pulumi.StringOutput) } func (o LookupAccountResultOutput) Tags() pulumi.StringMapOutput { return o.ApplyT(func(v LookupAccountResult) map[string]string { return v.Tags }).(pulumi.StringMapOutput) } func init() { pulumi.RegisterOutputType(LookupAccountResultOutput{}) }
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/netapp/backupVault.go
sdk/go/azure/netapp/backupVault.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 netapp import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a NetApp Backup Vault. // // ## NetApp Backup Vault Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/netapp" // "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 := netapp.NewAccount(ctx, "example", &netapp.AccountArgs{ // Name: pulumi.String("example-netappaccount"), // Location: example.Location, // ResourceGroupName: example.Name, // }) // if err != nil { // return err // } // _, err = netapp.NewBackupVault(ctx, "example", &netapp.BackupVaultArgs{ // Name: pulumi.String("example-netappbackupvault"), // ResourceGroupName: example.Name, // Location: example.Location, // AccountName: exampleAccount.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.NetApp` - 2025-06-01 // // ## Import // // NetApp Backup Vault can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:netapp/backupVault:BackupVault example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.NetApp/netAppAccounts/account1/backupVaults/backupVault1 // ``` type BackupVault struct { pulumi.CustomResourceState // The name of the NetApp account in which the NetApp Vault should be created under. Changing this forces a new resource to be created. AccountName pulumi.StringOutput `pulumi:"accountName"` // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location pulumi.StringOutput `pulumi:"location"` // The name of the NetApp Backup Vault. Changing this forces a new resource to be created. Name pulumi.StringOutput `pulumi:"name"` // The name of the resource group where the NetApp Backup Vault should be created. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // A mapping of tags to assign to the resource. Tags pulumi.StringMapOutput `pulumi:"tags"` } // NewBackupVault registers a new resource with the given unique name, arguments, and options. func NewBackupVault(ctx *pulumi.Context, name string, args *BackupVaultArgs, opts ...pulumi.ResourceOption) (*BackupVault, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.AccountName == nil { return nil, errors.New("invalid value for required argument 'AccountName'") } if args.ResourceGroupName == nil { return nil, errors.New("invalid value for required argument 'ResourceGroupName'") } opts = internal.PkgResourceDefaultOpts(opts) var resource BackupVault err := ctx.RegisterResource("azure:netapp/backupVault:BackupVault", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetBackupVault gets an existing BackupVault 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 GetBackupVault(ctx *pulumi.Context, name string, id pulumi.IDInput, state *BackupVaultState, opts ...pulumi.ResourceOption) (*BackupVault, error) { var resource BackupVault err := ctx.ReadResource("azure:netapp/backupVault:BackupVault", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering BackupVault resources. type backupVaultState struct { // The name of the NetApp account in which the NetApp Vault should be created under. Changing this forces a new resource to be created. AccountName *string `pulumi:"accountName"` // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location *string `pulumi:"location"` // The name of the NetApp Backup Vault. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // The name of the resource group where the NetApp Backup Vault should be created. Changing this forces a new resource to be created. ResourceGroupName *string `pulumi:"resourceGroupName"` // A mapping of tags to assign to the resource. Tags map[string]string `pulumi:"tags"` } type BackupVaultState struct { // The name of the NetApp account in which the NetApp Vault should be created under. Changing this forces a new resource to be created. AccountName pulumi.StringPtrInput // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location pulumi.StringPtrInput // The name of the NetApp Backup Vault. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // The name of the resource group where the NetApp Backup Vault should be created. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringPtrInput // A mapping of tags to assign to the resource. Tags pulumi.StringMapInput } func (BackupVaultState) ElementType() reflect.Type { return reflect.TypeOf((*backupVaultState)(nil)).Elem() } type backupVaultArgs struct { // The name of the NetApp account in which the NetApp Vault should be created under. Changing this forces a new resource to be created. AccountName string `pulumi:"accountName"` // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location *string `pulumi:"location"` // The name of the NetApp Backup Vault. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // The name of the resource group where the NetApp Backup Vault should be created. Changing this forces a new resource to be created. ResourceGroupName string `pulumi:"resourceGroupName"` // A mapping of tags to assign to the resource. Tags map[string]string `pulumi:"tags"` } // The set of arguments for constructing a BackupVault resource. type BackupVaultArgs struct { // The name of the NetApp account in which the NetApp Vault should be created under. Changing this forces a new resource to be created. AccountName pulumi.StringInput // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location pulumi.StringPtrInput // The name of the NetApp Backup Vault. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // The name of the resource group where the NetApp Backup Vault should be created. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringInput // A mapping of tags to assign to the resource. Tags pulumi.StringMapInput } func (BackupVaultArgs) ElementType() reflect.Type { return reflect.TypeOf((*backupVaultArgs)(nil)).Elem() } type BackupVaultInput interface { pulumi.Input ToBackupVaultOutput() BackupVaultOutput ToBackupVaultOutputWithContext(ctx context.Context) BackupVaultOutput } func (*BackupVault) ElementType() reflect.Type { return reflect.TypeOf((**BackupVault)(nil)).Elem() } func (i *BackupVault) ToBackupVaultOutput() BackupVaultOutput { return i.ToBackupVaultOutputWithContext(context.Background()) } func (i *BackupVault) ToBackupVaultOutputWithContext(ctx context.Context) BackupVaultOutput { return pulumi.ToOutputWithContext(ctx, i).(BackupVaultOutput) } // BackupVaultArrayInput is an input type that accepts BackupVaultArray and BackupVaultArrayOutput values. // You can construct a concrete instance of `BackupVaultArrayInput` via: // // BackupVaultArray{ BackupVaultArgs{...} } type BackupVaultArrayInput interface { pulumi.Input ToBackupVaultArrayOutput() BackupVaultArrayOutput ToBackupVaultArrayOutputWithContext(context.Context) BackupVaultArrayOutput } type BackupVaultArray []BackupVaultInput func (BackupVaultArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*BackupVault)(nil)).Elem() } func (i BackupVaultArray) ToBackupVaultArrayOutput() BackupVaultArrayOutput { return i.ToBackupVaultArrayOutputWithContext(context.Background()) } func (i BackupVaultArray) ToBackupVaultArrayOutputWithContext(ctx context.Context) BackupVaultArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(BackupVaultArrayOutput) } // BackupVaultMapInput is an input type that accepts BackupVaultMap and BackupVaultMapOutput values. // You can construct a concrete instance of `BackupVaultMapInput` via: // // BackupVaultMap{ "key": BackupVaultArgs{...} } type BackupVaultMapInput interface { pulumi.Input ToBackupVaultMapOutput() BackupVaultMapOutput ToBackupVaultMapOutputWithContext(context.Context) BackupVaultMapOutput } type BackupVaultMap map[string]BackupVaultInput func (BackupVaultMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*BackupVault)(nil)).Elem() } func (i BackupVaultMap) ToBackupVaultMapOutput() BackupVaultMapOutput { return i.ToBackupVaultMapOutputWithContext(context.Background()) } func (i BackupVaultMap) ToBackupVaultMapOutputWithContext(ctx context.Context) BackupVaultMapOutput { return pulumi.ToOutputWithContext(ctx, i).(BackupVaultMapOutput) } type BackupVaultOutput struct{ *pulumi.OutputState } func (BackupVaultOutput) ElementType() reflect.Type { return reflect.TypeOf((**BackupVault)(nil)).Elem() } func (o BackupVaultOutput) ToBackupVaultOutput() BackupVaultOutput { return o } func (o BackupVaultOutput) ToBackupVaultOutputWithContext(ctx context.Context) BackupVaultOutput { return o } // The name of the NetApp account in which the NetApp Vault should be created under. Changing this forces a new resource to be created. func (o BackupVaultOutput) AccountName() pulumi.StringOutput { return o.ApplyT(func(v *BackupVault) pulumi.StringOutput { return v.AccountName }).(pulumi.StringOutput) } // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. func (o BackupVaultOutput) Location() pulumi.StringOutput { return o.ApplyT(func(v *BackupVault) pulumi.StringOutput { return v.Location }).(pulumi.StringOutput) } // The name of the NetApp Backup Vault. Changing this forces a new resource to be created. func (o BackupVaultOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *BackupVault) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // The name of the resource group where the NetApp Backup Vault should be created. Changing this forces a new resource to be created. func (o BackupVaultOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v *BackupVault) pulumi.StringOutput { return v.ResourceGroupName }).(pulumi.StringOutput) } // A mapping of tags to assign to the resource. func (o BackupVaultOutput) Tags() pulumi.StringMapOutput { return o.ApplyT(func(v *BackupVault) pulumi.StringMapOutput { return v.Tags }).(pulumi.StringMapOutput) } type BackupVaultArrayOutput struct{ *pulumi.OutputState } func (BackupVaultArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*BackupVault)(nil)).Elem() } func (o BackupVaultArrayOutput) ToBackupVaultArrayOutput() BackupVaultArrayOutput { return o } func (o BackupVaultArrayOutput) ToBackupVaultArrayOutputWithContext(ctx context.Context) BackupVaultArrayOutput { return o } func (o BackupVaultArrayOutput) Index(i pulumi.IntInput) BackupVaultOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *BackupVault { return vs[0].([]*BackupVault)[vs[1].(int)] }).(BackupVaultOutput) } type BackupVaultMapOutput struct{ *pulumi.OutputState } func (BackupVaultMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*BackupVault)(nil)).Elem() } func (o BackupVaultMapOutput) ToBackupVaultMapOutput() BackupVaultMapOutput { return o } func (o BackupVaultMapOutput) ToBackupVaultMapOutputWithContext(ctx context.Context) BackupVaultMapOutput { return o } func (o BackupVaultMapOutput) MapIndex(k pulumi.StringInput) BackupVaultOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *BackupVault { return vs[0].(map[string]*BackupVault)[vs[1].(string)] }).(BackupVaultOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*BackupVaultInput)(nil)).Elem(), &BackupVault{}) pulumi.RegisterInputType(reflect.TypeOf((*BackupVaultArrayInput)(nil)).Elem(), BackupVaultArray{}) pulumi.RegisterInputType(reflect.TypeOf((*BackupVaultMapInput)(nil)).Elem(), BackupVaultMap{}) pulumi.RegisterOutputType(BackupVaultOutput{}) pulumi.RegisterOutputType(BackupVaultArrayOutput{}) pulumi.RegisterOutputType(BackupVaultMapOutput{}) }
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/netapp/getSnapshotPolicy.go
sdk/go/azure/netapp/getSnapshotPolicy.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 netapp import ( "context" "reflect" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Uses this data source to access information about an existing NetApp Snapshot Policy. // // ## NetApp Snapshot Policy Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/netapp" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { // example, err := netapp.LookupSnapshotPolicy(ctx, &netapp.LookupSnapshotPolicyArgs{ // ResourceGroupName: "acctestRG", // AccountName: "acctestnetappaccount", // Name: "example-snapshot-policy", // }, nil) // if err != nil { // return err // } // ctx.Export("id", example.Id) // ctx.Export("name", example.Name) // ctx.Export("enabled", example.Enabled) // ctx.Export("hourlySchedule", example.HourlySchedules) // ctx.Export("dailySchedule", example.DailySchedules) // ctx.Export("weeklySchedule", example.WeeklySchedules) // ctx.Export("monthlySchedule", example.MonthlySchedules) // return nil // }) // } // // ``` // // ## API Providers // // <!-- This section is generated, changes will be overwritten --> // This data source uses the following Azure API Providers: // // * `Microsoft.NetApp` - 2025-06-01 func LookupSnapshotPolicy(ctx *pulumi.Context, args *LookupSnapshotPolicyArgs, opts ...pulumi.InvokeOption) (*LookupSnapshotPolicyResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupSnapshotPolicyResult err := ctx.Invoke("azure:netapp/getSnapshotPolicy:getSnapshotPolicy", args, &rv, opts...) if err != nil { return nil, err } return &rv, nil } // A collection of arguments for invoking getSnapshotPolicy. type LookupSnapshotPolicyArgs struct { // The name of the NetApp account where the NetApp Snapshot Policy exists. AccountName string `pulumi:"accountName"` // The name of the NetApp Snapshot Policy. Name string `pulumi:"name"` // The Name of the Resource Group where the NetApp Snapshot Policy exists. ResourceGroupName string `pulumi:"resourceGroupName"` } // A collection of values returned by getSnapshotPolicy. type LookupSnapshotPolicyResult struct { // The name of the NetApp Account in which the NetApp Snapshot Policy was created. AccountName string `pulumi:"accountName"` // Daily snapshot schedule. DailySchedules []GetSnapshotPolicyDailySchedule `pulumi:"dailySchedules"` // Defines that the NetApp Snapshot Policy is enabled or not. Enabled bool `pulumi:"enabled"` // Hourly snapshot schedule. HourlySchedules []GetSnapshotPolicyHourlySchedule `pulumi:"hourlySchedules"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` // Specifies the supported Azure location where the resource exists. Location string `pulumi:"location"` // List of the days of the month when the snapshots will be created. MonthlySchedules []GetSnapshotPolicyMonthlySchedule `pulumi:"monthlySchedules"` // The name of the NetApp Snapshot Policy. Name string `pulumi:"name"` // The name of the resource group where the NetApp Snapshot Policy should be created. ResourceGroupName string `pulumi:"resourceGroupName"` Tags map[string]string `pulumi:"tags"` // Weekly snapshot schedule. WeeklySchedules []GetSnapshotPolicyWeeklySchedule `pulumi:"weeklySchedules"` } func LookupSnapshotPolicyOutput(ctx *pulumi.Context, args LookupSnapshotPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupSnapshotPolicyResultOutput { return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupSnapshotPolicyResultOutput, error) { args := v.(LookupSnapshotPolicyArgs) options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} return ctx.InvokeOutput("azure:netapp/getSnapshotPolicy:getSnapshotPolicy", args, LookupSnapshotPolicyResultOutput{}, options).(LookupSnapshotPolicyResultOutput), nil }).(LookupSnapshotPolicyResultOutput) } // A collection of arguments for invoking getSnapshotPolicy. type LookupSnapshotPolicyOutputArgs struct { // The name of the NetApp account where the NetApp Snapshot Policy exists. AccountName pulumi.StringInput `pulumi:"accountName"` // The name of the NetApp Snapshot Policy. Name pulumi.StringInput `pulumi:"name"` // The Name of the Resource Group where the NetApp Snapshot Policy exists. ResourceGroupName pulumi.StringInput `pulumi:"resourceGroupName"` } func (LookupSnapshotPolicyOutputArgs) ElementType() reflect.Type { return reflect.TypeOf((*LookupSnapshotPolicyArgs)(nil)).Elem() } // A collection of values returned by getSnapshotPolicy. type LookupSnapshotPolicyResultOutput struct{ *pulumi.OutputState } func (LookupSnapshotPolicyResultOutput) ElementType() reflect.Type { return reflect.TypeOf((*LookupSnapshotPolicyResult)(nil)).Elem() } func (o LookupSnapshotPolicyResultOutput) ToLookupSnapshotPolicyResultOutput() LookupSnapshotPolicyResultOutput { return o } func (o LookupSnapshotPolicyResultOutput) ToLookupSnapshotPolicyResultOutputWithContext(ctx context.Context) LookupSnapshotPolicyResultOutput { return o } // The name of the NetApp Account in which the NetApp Snapshot Policy was created. func (o LookupSnapshotPolicyResultOutput) AccountName() pulumi.StringOutput { return o.ApplyT(func(v LookupSnapshotPolicyResult) string { return v.AccountName }).(pulumi.StringOutput) } // Daily snapshot schedule. func (o LookupSnapshotPolicyResultOutput) DailySchedules() GetSnapshotPolicyDailyScheduleArrayOutput { return o.ApplyT(func(v LookupSnapshotPolicyResult) []GetSnapshotPolicyDailySchedule { return v.DailySchedules }).(GetSnapshotPolicyDailyScheduleArrayOutput) } // Defines that the NetApp Snapshot Policy is enabled or not. func (o LookupSnapshotPolicyResultOutput) Enabled() pulumi.BoolOutput { return o.ApplyT(func(v LookupSnapshotPolicyResult) bool { return v.Enabled }).(pulumi.BoolOutput) } // Hourly snapshot schedule. func (o LookupSnapshotPolicyResultOutput) HourlySchedules() GetSnapshotPolicyHourlyScheduleArrayOutput { return o.ApplyT(func(v LookupSnapshotPolicyResult) []GetSnapshotPolicyHourlySchedule { return v.HourlySchedules }).(GetSnapshotPolicyHourlyScheduleArrayOutput) } // The provider-assigned unique ID for this managed resource. func (o LookupSnapshotPolicyResultOutput) Id() pulumi.StringOutput { return o.ApplyT(func(v LookupSnapshotPolicyResult) string { return v.Id }).(pulumi.StringOutput) } // Specifies the supported Azure location where the resource exists. func (o LookupSnapshotPolicyResultOutput) Location() pulumi.StringOutput { return o.ApplyT(func(v LookupSnapshotPolicyResult) string { return v.Location }).(pulumi.StringOutput) } // List of the days of the month when the snapshots will be created. func (o LookupSnapshotPolicyResultOutput) MonthlySchedules() GetSnapshotPolicyMonthlyScheduleArrayOutput { return o.ApplyT(func(v LookupSnapshotPolicyResult) []GetSnapshotPolicyMonthlySchedule { return v.MonthlySchedules }).(GetSnapshotPolicyMonthlyScheduleArrayOutput) } // The name of the NetApp Snapshot Policy. func (o LookupSnapshotPolicyResultOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v LookupSnapshotPolicyResult) string { return v.Name }).(pulumi.StringOutput) } // The name of the resource group where the NetApp Snapshot Policy should be created. func (o LookupSnapshotPolicyResultOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v LookupSnapshotPolicyResult) string { return v.ResourceGroupName }).(pulumi.StringOutput) } func (o LookupSnapshotPolicyResultOutput) Tags() pulumi.StringMapOutput { return o.ApplyT(func(v LookupSnapshotPolicyResult) map[string]string { return v.Tags }).(pulumi.StringMapOutput) } // Weekly snapshot schedule. func (o LookupSnapshotPolicyResultOutput) WeeklySchedules() GetSnapshotPolicyWeeklyScheduleArrayOutput { return o.ApplyT(func(v LookupSnapshotPolicyResult) []GetSnapshotPolicyWeeklySchedule { return v.WeeklySchedules }).(GetSnapshotPolicyWeeklyScheduleArrayOutput) } func init() { pulumi.RegisterOutputType(LookupSnapshotPolicyResultOutput{}) }
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/netapp/volumeGroupSapHana.go
sdk/go/azure/netapp/volumeGroupSapHana.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 netapp 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 ( // // "fmt" // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/compute" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/netapp" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/network" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/proximity" // "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 { // example, err := random.NewString(ctx, "example", &random.StringArgs{ // Length: 12, // Special: true, // }) // if err != nil { // return err // } // adminUsername := "exampleadmin" // adminPassword := example.Result // exampleResourceGroup, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{ // Name: pulumi.Sprintf("%v-resources", prefix), // Location: pulumi.Any(location), // }) // if err != nil { // return err // } // exampleVirtualNetwork, err := network.NewVirtualNetwork(ctx, "example", &network.VirtualNetworkArgs{ // Name: pulumi.Sprintf("%v-vnet", prefix), // Location: exampleResourceGroup.Location, // ResourceGroupName: exampleResourceGroup.Name, // AddressSpaces: pulumi.StringArray{ // pulumi.String("10.88.0.0/16"), // }, // }) // if err != nil { // return err // } // exampleSubnet, err := network.NewSubnet(ctx, "example", &network.SubnetArgs{ // Name: pulumi.Sprintf("%v-delegated-subnet", prefix), // ResourceGroupName: exampleResourceGroup.Name, // VirtualNetworkName: exampleVirtualNetwork.Name, // AddressPrefixes: pulumi.StringArray{ // pulumi.String("10.88.2.0/24"), // }, // Delegations: network.SubnetDelegationArray{ // &network.SubnetDelegationArgs{ // Name: pulumi.String("testdelegation"), // ServiceDelegation: &network.SubnetDelegationServiceDelegationArgs{ // Name: pulumi.String("Microsoft.Netapp/volumes"), // Actions: pulumi.StringArray{ // pulumi.String("Microsoft.Network/networkinterfaces/*"), // pulumi.String("Microsoft.Network/virtualNetworks/subnets/join/action"), // }, // }, // }, // }, // }) // if err != nil { // return err // } // example1, err := network.NewSubnet(ctx, "example1", &network.SubnetArgs{ // Name: pulumi.Sprintf("%v-hosts-subnet", prefix), // ResourceGroupName: exampleResourceGroup.Name, // VirtualNetworkName: exampleVirtualNetwork.Name, // AddressPrefixes: pulumi.StringArray{ // pulumi.String("10.88.1.0/24"), // }, // }) // if err != nil { // return err // } // examplePlacementGroup, err := proximity.NewPlacementGroup(ctx, "example", &proximity.PlacementGroupArgs{ // Name: pulumi.Sprintf("%v-ppg", prefix), // Location: exampleResourceGroup.Location, // ResourceGroupName: exampleResourceGroup.Name, // }) // if err != nil { // return err // } // exampleAvailabilitySet, err := compute.NewAvailabilitySet(ctx, "example", &compute.AvailabilitySetArgs{ // Name: pulumi.Sprintf("%v-avset", prefix), // Location: exampleResourceGroup.Location, // ResourceGroupName: exampleResourceGroup.Name, // ProximityPlacementGroupId: examplePlacementGroup.ID(), // }) // if err != nil { // return err // } // exampleNetworkInterface, err := network.NewNetworkInterface(ctx, "example", &network.NetworkInterfaceArgs{ // Name: pulumi.Sprintf("%v-nic", prefix), // ResourceGroupName: exampleResourceGroup.Name, // Location: exampleResourceGroup.Location, // IpConfigurations: network.NetworkInterfaceIpConfigurationArray{ // &network.NetworkInterfaceIpConfigurationArgs{ // Name: pulumi.String("internal"), // SubnetId: example1.ID(), // PrivateIpAddressAllocation: pulumi.String("Dynamic"), // }, // }, // }) // if err != nil { // return err // } // exampleLinuxVirtualMachine, err := compute.NewLinuxVirtualMachine(ctx, "example", &compute.LinuxVirtualMachineArgs{ // Name: pulumi.Sprintf("%v-vm", prefix), // ResourceGroupName: exampleResourceGroup.Name, // Location: exampleResourceGroup.Location, // Size: pulumi.String("Standard_M8ms"), // AdminUsername: pulumi.String(adminUsername), // AdminPassword: pulumi.Any(adminPassword), // DisablePasswordAuthentication: pulumi.Bool(false), // ProximityPlacementGroupId: examplePlacementGroup.ID(), // AvailabilitySetId: exampleAvailabilitySet.ID(), // NetworkInterfaceIds: pulumi.StringArray{ // exampleNetworkInterface.ID(), // }, // SourceImageReference: &compute.LinuxVirtualMachineSourceImageReferenceArgs{ // Publisher: pulumi.String("Canonical"), // Offer: pulumi.String("0001-com-ubuntu-server-jammy"), // Sku: pulumi.String("22_04-lts"), // Version: pulumi.String("latest"), // }, // OsDisk: &compute.LinuxVirtualMachineOsDiskArgs{ // StorageAccountType: pulumi.String("Standard_LRS"), // Caching: pulumi.String("ReadWrite"), // }, // }) // if err != nil { // return err // } // exampleAccount, err := netapp.NewAccount(ctx, "example", &netapp.AccountArgs{ // Name: pulumi.Sprintf("%v-netapp-account", prefix), // Location: exampleResourceGroup.Location, // ResourceGroupName: exampleResourceGroup.Name, // }, pulumi.DependsOn([]pulumi.Resource{ // exampleSubnet, // example1, // })) // if err != nil { // return err // } // examplePool, err := netapp.NewPool(ctx, "example", &netapp.PoolArgs{ // Name: pulumi.Sprintf("%v-netapp-pool", prefix), // Location: exampleResourceGroup.Location, // ResourceGroupName: exampleResourceGroup.Name, // AccountName: exampleAccount.Name, // ServiceLevel: pulumi.String("Standard"), // SizeInTb: pulumi.Int(8), // QosType: pulumi.String("Manual"), // }) // if err != nil { // return err // } // _, err = netapp.NewVolumeGroupSapHana(ctx, "example", &netapp.VolumeGroupSapHanaArgs{ // Name: pulumi.Sprintf("%v-netapp-volumegroup", prefix), // Location: exampleResourceGroup.Location, // ResourceGroupName: exampleResourceGroup.Name, // AccountName: exampleAccount.Name, // GroupDescription: pulumi.String("Test volume group"), // ApplicationIdentifier: pulumi.String("TST"), // Volumes: netapp.VolumeGroupSapHanaVolumeArray{ // &netapp.VolumeGroupSapHanaVolumeArgs{ // Name: pulumi.Sprintf("%v-netapp-volume-1", prefix), // VolumePath: pulumi.String("my-unique-file-path-1"), // ServiceLevel: pulumi.String("Standard"), // CapacityPoolId: examplePool.ID(), // SubnetId: exampleSubnet.ID(), // ProximityPlacementGroupId: examplePlacementGroup.ID(), // VolumeSpecName: pulumi.String("data"), // StorageQuotaInGb: pulumi.Int(1024), // ThroughputInMibps: pulumi.Float64(24), // Protocols: pulumi.String("NFSv4.1"), // SecurityStyle: pulumi.String("unix"), // SnapshotDirectoryVisible: pulumi.Bool(false), // ExportPolicyRules: netapp.VolumeGroupSapHanaVolumeExportPolicyRuleArray{ // &netapp.VolumeGroupSapHanaVolumeExportPolicyRuleArgs{ // RuleIndex: pulumi.Int(1), // AllowedClients: pulumi.String("0.0.0.0/0"), // Nfsv3Enabled: pulumi.Bool(false), // Nfsv41Enabled: pulumi.Bool(true), // UnixReadOnly: pulumi.Bool(false), // UnixReadWrite: pulumi.Bool(true), // RootAccessEnabled: pulumi.Bool(false), // }, // }, // Tags: pulumi.StringMap{ // "foo": pulumi.String("bar"), // }, // }, // &netapp.VolumeGroupSapHanaVolumeArgs{ // Name: pulumi.Sprintf("%v-netapp-volume-2", prefix), // VolumePath: pulumi.String("my-unique-file-path-2"), // ServiceLevel: pulumi.String("Standard"), // CapacityPoolId: examplePool.ID(), // SubnetId: exampleSubnet.ID(), // ProximityPlacementGroupId: examplePlacementGroup.ID(), // VolumeSpecName: pulumi.String("log"), // StorageQuotaInGb: pulumi.Int(1024), // ThroughputInMibps: pulumi.Float64(24), // Protocols: pulumi.String("NFSv4.1"), // SecurityStyle: pulumi.String("unix"), // SnapshotDirectoryVisible: pulumi.Bool(false), // ExportPolicyRules: netapp.VolumeGroupSapHanaVolumeExportPolicyRuleArray{ // &netapp.VolumeGroupSapHanaVolumeExportPolicyRuleArgs{ // RuleIndex: pulumi.Int(1), // AllowedClients: pulumi.String("0.0.0.0/0"), // Nfsv3Enabled: pulumi.Bool(false), // Nfsv41Enabled: pulumi.Bool(true), // UnixReadOnly: pulumi.Bool(false), // UnixReadWrite: pulumi.Bool(true), // RootAccessEnabled: pulumi.Bool(false), // }, // }, // Tags: pulumi.StringMap{ // "foo": pulumi.String("bar"), // }, // }, // &netapp.VolumeGroupSapHanaVolumeArgs{ // Name: pulumi.Sprintf("%v-netapp-volume-3", prefix), // VolumePath: pulumi.String("my-unique-file-path-3"), // ServiceLevel: pulumi.String("Standard"), // CapacityPoolId: examplePool.ID(), // SubnetId: exampleSubnet.ID(), // ProximityPlacementGroupId: examplePlacementGroup.ID(), // VolumeSpecName: pulumi.String("shared"), // StorageQuotaInGb: pulumi.Int(1024), // ThroughputInMibps: pulumi.Float64(24), // Protocols: pulumi.String("NFSv4.1"), // SecurityStyle: pulumi.String("unix"), // SnapshotDirectoryVisible: pulumi.Bool(false), // ExportPolicyRules: netapp.VolumeGroupSapHanaVolumeExportPolicyRuleArray{ // &netapp.VolumeGroupSapHanaVolumeExportPolicyRuleArgs{ // RuleIndex: pulumi.Int(1), // AllowedClients: pulumi.String("0.0.0.0/0"), // Nfsv3Enabled: pulumi.Bool(false), // Nfsv41Enabled: pulumi.Bool(true), // UnixReadOnly: pulumi.Bool(false), // UnixReadWrite: pulumi.Bool(true), // RootAccessEnabled: pulumi.Bool(false), // }, // }, // }, // }, // }, pulumi.DependsOn([]pulumi.Resource{ // exampleLinuxVirtualMachine, // examplePlacementGroup, // })) // 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.NetApp` - 2025-06-01 // // ## Import // // Application Volume Groups can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:netapp/volumeGroupSapHana:VolumeGroupSapHana example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mytest-rg/providers/Microsoft.NetApp/netAppAccounts/netapp-account-test/volumeGroups/netapp-volumegroup-test // ``` type VolumeGroupSapHana struct { pulumi.CustomResourceState // Name of the account where the application volume group belong to. Changing this forces a new Application Volume Group to be created and data will be lost. AccountName pulumi.StringOutput `pulumi:"accountName"` // The SAP System ID, maximum 3 characters, e.g. `SH9`. Changing this forces a new Application Volume Group to be created and data will be lost. ApplicationIdentifier pulumi.StringOutput `pulumi:"applicationIdentifier"` // Volume group description. Changing this forces a new Application Volume Group to be created and data will be lost. GroupDescription pulumi.StringOutput `pulumi:"groupDescription"` // The Azure Region where the Application Volume Group should exist. Changing this forces a new Application Volume Group to be created and data will be lost. Location pulumi.StringOutput `pulumi:"location"` // The name which should be used for this Application Volume Group. Changing this forces a new Application Volume Group to be created and data will be lost. Name pulumi.StringOutput `pulumi:"name"` // The name of the Resource Group where the Application Volume Group should exist. Changing this forces a new Application Volume Group to be created and data will be lost. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // One or more `volume` blocks as defined below. Volumes VolumeGroupSapHanaVolumeArrayOutput `pulumi:"volumes"` } // NewVolumeGroupSapHana registers a new resource with the given unique name, arguments, and options. func NewVolumeGroupSapHana(ctx *pulumi.Context, name string, args *VolumeGroupSapHanaArgs, opts ...pulumi.ResourceOption) (*VolumeGroupSapHana, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.AccountName == nil { return nil, errors.New("invalid value for required argument 'AccountName'") } if args.ApplicationIdentifier == nil { return nil, errors.New("invalid value for required argument 'ApplicationIdentifier'") } if args.GroupDescription == nil { return nil, errors.New("invalid value for required argument 'GroupDescription'") } if args.ResourceGroupName == nil { return nil, errors.New("invalid value for required argument 'ResourceGroupName'") } if args.Volumes == nil { return nil, errors.New("invalid value for required argument 'Volumes'") } opts = internal.PkgResourceDefaultOpts(opts) var resource VolumeGroupSapHana err := ctx.RegisterResource("azure:netapp/volumeGroupSapHana:VolumeGroupSapHana", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetVolumeGroupSapHana gets an existing VolumeGroupSapHana 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 GetVolumeGroupSapHana(ctx *pulumi.Context, name string, id pulumi.IDInput, state *VolumeGroupSapHanaState, opts ...pulumi.ResourceOption) (*VolumeGroupSapHana, error) { var resource VolumeGroupSapHana err := ctx.ReadResource("azure:netapp/volumeGroupSapHana:VolumeGroupSapHana", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering VolumeGroupSapHana resources. type volumeGroupSapHanaState struct { // Name of the account where the application volume group belong to. Changing this forces a new Application Volume Group to be created and data will be lost. AccountName *string `pulumi:"accountName"` // The SAP System ID, maximum 3 characters, e.g. `SH9`. Changing this forces a new Application Volume Group to be created and data will be lost. ApplicationIdentifier *string `pulumi:"applicationIdentifier"` // Volume group description. Changing this forces a new Application Volume Group to be created and data will be lost. GroupDescription *string `pulumi:"groupDescription"` // The Azure Region where the Application Volume Group should exist. Changing this forces a new Application Volume Group to be created and data will be lost. Location *string `pulumi:"location"` // The name which should be used for this Application Volume Group. Changing this forces a new Application Volume Group to be created and data will be lost. Name *string `pulumi:"name"` // The name of the Resource Group where the Application Volume Group should exist. Changing this forces a new Application Volume Group to be created and data will be lost. ResourceGroupName *string `pulumi:"resourceGroupName"` // One or more `volume` blocks as defined below. Volumes []VolumeGroupSapHanaVolume `pulumi:"volumes"` } type VolumeGroupSapHanaState struct { // Name of the account where the application volume group belong to. Changing this forces a new Application Volume Group to be created and data will be lost. AccountName pulumi.StringPtrInput // The SAP System ID, maximum 3 characters, e.g. `SH9`. Changing this forces a new Application Volume Group to be created and data will be lost. ApplicationIdentifier pulumi.StringPtrInput // Volume group description. Changing this forces a new Application Volume Group to be created and data will be lost. GroupDescription pulumi.StringPtrInput // The Azure Region where the Application Volume Group should exist. Changing this forces a new Application Volume Group to be created and data will be lost. Location pulumi.StringPtrInput // The name which should be used for this Application Volume Group. Changing this forces a new Application Volume Group to be created and data will be lost. Name pulumi.StringPtrInput // The name of the Resource Group where the Application Volume Group should exist. Changing this forces a new Application Volume Group to be created and data will be lost. ResourceGroupName pulumi.StringPtrInput // One or more `volume` blocks as defined below. Volumes VolumeGroupSapHanaVolumeArrayInput } func (VolumeGroupSapHanaState) ElementType() reflect.Type { return reflect.TypeOf((*volumeGroupSapHanaState)(nil)).Elem() } type volumeGroupSapHanaArgs struct { // Name of the account where the application volume group belong to. Changing this forces a new Application Volume Group to be created and data will be lost. AccountName string `pulumi:"accountName"` // The SAP System ID, maximum 3 characters, e.g. `SH9`. Changing this forces a new Application Volume Group to be created and data will be lost. ApplicationIdentifier string `pulumi:"applicationIdentifier"` // Volume group description. Changing this forces a new Application Volume Group to be created and data will be lost. GroupDescription string `pulumi:"groupDescription"` // The Azure Region where the Application Volume Group should exist. Changing this forces a new Application Volume Group to be created and data will be lost. Location *string `pulumi:"location"` // The name which should be used for this Application Volume Group. Changing this forces a new Application Volume Group to be created and data will be lost. Name *string `pulumi:"name"` // The name of the Resource Group where the Application Volume Group should exist. Changing this forces a new Application Volume Group to be created and data will be lost. ResourceGroupName string `pulumi:"resourceGroupName"` // One or more `volume` blocks as defined below. Volumes []VolumeGroupSapHanaVolume `pulumi:"volumes"` } // The set of arguments for constructing a VolumeGroupSapHana resource. type VolumeGroupSapHanaArgs struct { // Name of the account where the application volume group belong to. Changing this forces a new Application Volume Group to be created and data will be lost. AccountName pulumi.StringInput // The SAP System ID, maximum 3 characters, e.g. `SH9`. Changing this forces a new Application Volume Group to be created and data will be lost. ApplicationIdentifier pulumi.StringInput // Volume group description. Changing this forces a new Application Volume Group to be created and data will be lost. GroupDescription pulumi.StringInput // The Azure Region where the Application Volume Group should exist. Changing this forces a new Application Volume Group to be created and data will be lost. Location pulumi.StringPtrInput // The name which should be used for this Application Volume Group. Changing this forces a new Application Volume Group to be created and data will be lost. Name pulumi.StringPtrInput // The name of the Resource Group where the Application Volume Group should exist. Changing this forces a new Application Volume Group to be created and data will be lost. ResourceGroupName pulumi.StringInput // One or more `volume` blocks as defined below. Volumes VolumeGroupSapHanaVolumeArrayInput } func (VolumeGroupSapHanaArgs) ElementType() reflect.Type { return reflect.TypeOf((*volumeGroupSapHanaArgs)(nil)).Elem() } type VolumeGroupSapHanaInput interface { pulumi.Input ToVolumeGroupSapHanaOutput() VolumeGroupSapHanaOutput ToVolumeGroupSapHanaOutputWithContext(ctx context.Context) VolumeGroupSapHanaOutput } func (*VolumeGroupSapHana) ElementType() reflect.Type { return reflect.TypeOf((**VolumeGroupSapHana)(nil)).Elem() } func (i *VolumeGroupSapHana) ToVolumeGroupSapHanaOutput() VolumeGroupSapHanaOutput { return i.ToVolumeGroupSapHanaOutputWithContext(context.Background()) } func (i *VolumeGroupSapHana) ToVolumeGroupSapHanaOutputWithContext(ctx context.Context) VolumeGroupSapHanaOutput { return pulumi.ToOutputWithContext(ctx, i).(VolumeGroupSapHanaOutput) } // VolumeGroupSapHanaArrayInput is an input type that accepts VolumeGroupSapHanaArray and VolumeGroupSapHanaArrayOutput values. // You can construct a concrete instance of `VolumeGroupSapHanaArrayInput` via: // // VolumeGroupSapHanaArray{ VolumeGroupSapHanaArgs{...} } type VolumeGroupSapHanaArrayInput interface { pulumi.Input ToVolumeGroupSapHanaArrayOutput() VolumeGroupSapHanaArrayOutput ToVolumeGroupSapHanaArrayOutputWithContext(context.Context) VolumeGroupSapHanaArrayOutput } type VolumeGroupSapHanaArray []VolumeGroupSapHanaInput func (VolumeGroupSapHanaArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*VolumeGroupSapHana)(nil)).Elem() } func (i VolumeGroupSapHanaArray) ToVolumeGroupSapHanaArrayOutput() VolumeGroupSapHanaArrayOutput { return i.ToVolumeGroupSapHanaArrayOutputWithContext(context.Background()) } func (i VolumeGroupSapHanaArray) ToVolumeGroupSapHanaArrayOutputWithContext(ctx context.Context) VolumeGroupSapHanaArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(VolumeGroupSapHanaArrayOutput) } // VolumeGroupSapHanaMapInput is an input type that accepts VolumeGroupSapHanaMap and VolumeGroupSapHanaMapOutput values. // You can construct a concrete instance of `VolumeGroupSapHanaMapInput` via: // // VolumeGroupSapHanaMap{ "key": VolumeGroupSapHanaArgs{...} } type VolumeGroupSapHanaMapInput interface { pulumi.Input ToVolumeGroupSapHanaMapOutput() VolumeGroupSapHanaMapOutput ToVolumeGroupSapHanaMapOutputWithContext(context.Context) VolumeGroupSapHanaMapOutput } type VolumeGroupSapHanaMap map[string]VolumeGroupSapHanaInput func (VolumeGroupSapHanaMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*VolumeGroupSapHana)(nil)).Elem() } func (i VolumeGroupSapHanaMap) ToVolumeGroupSapHanaMapOutput() VolumeGroupSapHanaMapOutput { return i.ToVolumeGroupSapHanaMapOutputWithContext(context.Background()) } func (i VolumeGroupSapHanaMap) ToVolumeGroupSapHanaMapOutputWithContext(ctx context.Context) VolumeGroupSapHanaMapOutput { return pulumi.ToOutputWithContext(ctx, i).(VolumeGroupSapHanaMapOutput) } type VolumeGroupSapHanaOutput struct{ *pulumi.OutputState } func (VolumeGroupSapHanaOutput) ElementType() reflect.Type { return reflect.TypeOf((**VolumeGroupSapHana)(nil)).Elem() } func (o VolumeGroupSapHanaOutput) ToVolumeGroupSapHanaOutput() VolumeGroupSapHanaOutput { return o } func (o VolumeGroupSapHanaOutput) ToVolumeGroupSapHanaOutputWithContext(ctx context.Context) VolumeGroupSapHanaOutput { return o } // Name of the account where the application volume group belong to. Changing this forces a new Application Volume Group to be created and data will be lost. func (o VolumeGroupSapHanaOutput) AccountName() pulumi.StringOutput { return o.ApplyT(func(v *VolumeGroupSapHana) pulumi.StringOutput { return v.AccountName }).(pulumi.StringOutput) } // The SAP System ID, maximum 3 characters, e.g. `SH9`. Changing this forces a new Application Volume Group to be created and data will be lost. func (o VolumeGroupSapHanaOutput) ApplicationIdentifier() pulumi.StringOutput { return o.ApplyT(func(v *VolumeGroupSapHana) pulumi.StringOutput { return v.ApplicationIdentifier }).(pulumi.StringOutput) } // Volume group description. Changing this forces a new Application Volume Group to be created and data will be lost. func (o VolumeGroupSapHanaOutput) GroupDescription() pulumi.StringOutput { return o.ApplyT(func(v *VolumeGroupSapHana) pulumi.StringOutput { return v.GroupDescription }).(pulumi.StringOutput) } // The Azure Region where the Application Volume Group should exist. Changing this forces a new Application Volume Group to be created and data will be lost. func (o VolumeGroupSapHanaOutput) Location() pulumi.StringOutput { return o.ApplyT(func(v *VolumeGroupSapHana) pulumi.StringOutput { return v.Location }).(pulumi.StringOutput) } // The name which should be used for this Application Volume Group. Changing this forces a new Application Volume Group to be created and data will be lost. func (o VolumeGroupSapHanaOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *VolumeGroupSapHana) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // The name of the Resource Group where the Application Volume Group should exist. Changing this forces a new Application Volume Group to be created and data will be lost. func (o VolumeGroupSapHanaOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v *VolumeGroupSapHana) pulumi.StringOutput { return v.ResourceGroupName }).(pulumi.StringOutput) } // One or more `volume` blocks as defined below. func (o VolumeGroupSapHanaOutput) Volumes() VolumeGroupSapHanaVolumeArrayOutput { return o.ApplyT(func(v *VolumeGroupSapHana) VolumeGroupSapHanaVolumeArrayOutput { return v.Volumes }).(VolumeGroupSapHanaVolumeArrayOutput) } type VolumeGroupSapHanaArrayOutput struct{ *pulumi.OutputState } func (VolumeGroupSapHanaArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*VolumeGroupSapHana)(nil)).Elem() } func (o VolumeGroupSapHanaArrayOutput) ToVolumeGroupSapHanaArrayOutput() VolumeGroupSapHanaArrayOutput { return o } func (o VolumeGroupSapHanaArrayOutput) ToVolumeGroupSapHanaArrayOutputWithContext(ctx context.Context) VolumeGroupSapHanaArrayOutput { return o } func (o VolumeGroupSapHanaArrayOutput) Index(i pulumi.IntInput) VolumeGroupSapHanaOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *VolumeGroupSapHana { return vs[0].([]*VolumeGroupSapHana)[vs[1].(int)] }).(VolumeGroupSapHanaOutput) } type VolumeGroupSapHanaMapOutput struct{ *pulumi.OutputState } func (VolumeGroupSapHanaMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*VolumeGroupSapHana)(nil)).Elem() } func (o VolumeGroupSapHanaMapOutput) ToVolumeGroupSapHanaMapOutput() VolumeGroupSapHanaMapOutput { return o } func (o VolumeGroupSapHanaMapOutput) ToVolumeGroupSapHanaMapOutputWithContext(ctx context.Context) VolumeGroupSapHanaMapOutput { return o } func (o VolumeGroupSapHanaMapOutput) MapIndex(k pulumi.StringInput) VolumeGroupSapHanaOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *VolumeGroupSapHana { return vs[0].(map[string]*VolumeGroupSapHana)[vs[1].(string)] }).(VolumeGroupSapHanaOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*VolumeGroupSapHanaInput)(nil)).Elem(), &VolumeGroupSapHana{}) pulumi.RegisterInputType(reflect.TypeOf((*VolumeGroupSapHanaArrayInput)(nil)).Elem(), VolumeGroupSapHanaArray{}) pulumi.RegisterInputType(reflect.TypeOf((*VolumeGroupSapHanaMapInput)(nil)).Elem(), VolumeGroupSapHanaMap{}) pulumi.RegisterOutputType(VolumeGroupSapHanaOutput{}) pulumi.RegisterOutputType(VolumeGroupSapHanaArrayOutput{}) pulumi.RegisterOutputType(VolumeGroupSapHanaMapOutput{}) }
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/netapp/pool.go
sdk/go/azure/netapp/pool.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 netapp import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a Pool within a NetApp Account. // // ## NetApp Pool Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/netapp" // "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 := netapp.NewAccount(ctx, "example", &netapp.AccountArgs{ // Name: pulumi.String("example-netappaccount"), // Location: example.Location, // ResourceGroupName: example.Name, // }) // if err != nil { // return err // } // _, err = netapp.NewPool(ctx, "example", &netapp.PoolArgs{ // Name: pulumi.String("example-netapppool"), // AccountName: exampleAccount.Name, // Location: example.Location, // ResourceGroupName: example.Name, // ServiceLevel: pulumi.String("Premium"), // SizeInTb: pulumi.Int(4), // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## NetApp Pool with Flexible Service Level Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/netapp" // "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 := netapp.NewAccount(ctx, "example", &netapp.AccountArgs{ // Name: pulumi.String("example-netappaccount"), // Location: example.Location, // ResourceGroupName: example.Name, // }) // if err != nil { // return err // } // _, err = netapp.NewPool(ctx, "example", &netapp.PoolArgs{ // Name: pulumi.String("example-netapppool"), // AccountName: exampleAccount.Name, // Location: example.Location, // ResourceGroupName: example.Name, // ServiceLevel: pulumi.String("Flexible"), // SizeInTb: pulumi.Int(4), // QosType: pulumi.String("Manual"), // CustomThroughputMibps: pulumi.Int(256), // }) // 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.NetApp` - 2025-06-01 // // ## Import // // NetApp Pool can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:netapp/pool:Pool example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1 // ``` type Pool struct { pulumi.CustomResourceState // The name of the NetApp account in which the NetApp Pool should be created. Changing this forces a new resource to be created. AccountName pulumi.StringOutput `pulumi:"accountName"` // Whether the NetApp Pool can hold cool access enabled volumes. Defaults to `false`. // // > **Note:** Disabling `coolAccessEnabled` is not allowed and forces a new resource to be created. CoolAccessEnabled pulumi.BoolPtrOutput `pulumi:"coolAccessEnabled"` // The custom throughput for the pool in MiB/s. Minimum value is `128`. This field can only be set when `serviceLevel` is set to `Flexible` and `qosType` is set to `Manual`. CustomThroughputMibps pulumi.IntPtrOutput `pulumi:"customThroughputMibps"` // The encryption type of the pool. Valid values include `Single`, and `Double`. Defaults to `Single`. Changing this forces a new resource to be created. EncryptionType pulumi.StringPtrOutput `pulumi:"encryptionType"` // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location pulumi.StringOutput `pulumi:"location"` // The name of the NetApp Pool. Changing this forces a new resource to be created. Name pulumi.StringOutput `pulumi:"name"` // QoS Type of the pool. Valid values include `Auto` or `Manual`. Defaults to `Auto`. QosType pulumi.StringPtrOutput `pulumi:"qosType"` // The name of the resource group where the NetApp Pool should be created. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // The service level of the file system. Valid values include `Premium`, `Standard`, `Ultra`, and `Flexible`. Changing this forces a new resource to be created. ServiceLevel pulumi.StringOutput `pulumi:"serviceLevel"` // Provisioned size of the pool in TB. Value must be between `1` and `2048`. // // > **Note:** `2` TB capacity pool sizing is currently in preview. You can only take advantage of the `2` TB minimum if all the volumes in the capacity pool are using `Standard` network features. If any volume is using `Basic` network features, the minimum size is `4` TB. Please see the product [documentation](https://learn.microsoft.com/azure/azure-netapp-files/azure-netapp-files-set-up-capacity-pool) for more information. // // > **Note:** The maximum `sizeInTb` is goverened by regional quotas. You may request additional capacity from Azure, currently up to `2048`. SizeInTb pulumi.IntOutput `pulumi:"sizeInTb"` // A mapping of tags to assign to the resource. Tags pulumi.StringMapOutput `pulumi:"tags"` } // NewPool registers a new resource with the given unique name, arguments, and options. func NewPool(ctx *pulumi.Context, name string, args *PoolArgs, opts ...pulumi.ResourceOption) (*Pool, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.AccountName == nil { return nil, errors.New("invalid value for required argument 'AccountName'") } if args.ResourceGroupName == nil { return nil, errors.New("invalid value for required argument 'ResourceGroupName'") } if args.ServiceLevel == nil { return nil, errors.New("invalid value for required argument 'ServiceLevel'") } if args.SizeInTb == nil { return nil, errors.New("invalid value for required argument 'SizeInTb'") } opts = internal.PkgResourceDefaultOpts(opts) var resource Pool err := ctx.RegisterResource("azure:netapp/pool:Pool", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetPool gets an existing Pool 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 GetPool(ctx *pulumi.Context, name string, id pulumi.IDInput, state *PoolState, opts ...pulumi.ResourceOption) (*Pool, error) { var resource Pool err := ctx.ReadResource("azure:netapp/pool:Pool", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering Pool resources. type poolState struct { // The name of the NetApp account in which the NetApp Pool should be created. Changing this forces a new resource to be created. AccountName *string `pulumi:"accountName"` // Whether the NetApp Pool can hold cool access enabled volumes. Defaults to `false`. // // > **Note:** Disabling `coolAccessEnabled` is not allowed and forces a new resource to be created. CoolAccessEnabled *bool `pulumi:"coolAccessEnabled"` // The custom throughput for the pool in MiB/s. Minimum value is `128`. This field can only be set when `serviceLevel` is set to `Flexible` and `qosType` is set to `Manual`. CustomThroughputMibps *int `pulumi:"customThroughputMibps"` // The encryption type of the pool. Valid values include `Single`, and `Double`. Defaults to `Single`. Changing this forces a new resource to be created. EncryptionType *string `pulumi:"encryptionType"` // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location *string `pulumi:"location"` // The name of the NetApp Pool. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // QoS Type of the pool. Valid values include `Auto` or `Manual`. Defaults to `Auto`. QosType *string `pulumi:"qosType"` // The name of the resource group where the NetApp Pool should be created. Changing this forces a new resource to be created. ResourceGroupName *string `pulumi:"resourceGroupName"` // The service level of the file system. Valid values include `Premium`, `Standard`, `Ultra`, and `Flexible`. Changing this forces a new resource to be created. ServiceLevel *string `pulumi:"serviceLevel"` // Provisioned size of the pool in TB. Value must be between `1` and `2048`. // // > **Note:** `2` TB capacity pool sizing is currently in preview. You can only take advantage of the `2` TB minimum if all the volumes in the capacity pool are using `Standard` network features. If any volume is using `Basic` network features, the minimum size is `4` TB. Please see the product [documentation](https://learn.microsoft.com/azure/azure-netapp-files/azure-netapp-files-set-up-capacity-pool) for more information. // // > **Note:** The maximum `sizeInTb` is goverened by regional quotas. You may request additional capacity from Azure, currently up to `2048`. SizeInTb *int `pulumi:"sizeInTb"` // A mapping of tags to assign to the resource. Tags map[string]string `pulumi:"tags"` } type PoolState struct { // The name of the NetApp account in which the NetApp Pool should be created. Changing this forces a new resource to be created. AccountName pulumi.StringPtrInput // Whether the NetApp Pool can hold cool access enabled volumes. Defaults to `false`. // // > **Note:** Disabling `coolAccessEnabled` is not allowed and forces a new resource to be created. CoolAccessEnabled pulumi.BoolPtrInput // The custom throughput for the pool in MiB/s. Minimum value is `128`. This field can only be set when `serviceLevel` is set to `Flexible` and `qosType` is set to `Manual`. CustomThroughputMibps pulumi.IntPtrInput // The encryption type of the pool. Valid values include `Single`, and `Double`. Defaults to `Single`. Changing this forces a new resource to be created. EncryptionType pulumi.StringPtrInput // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location pulumi.StringPtrInput // The name of the NetApp Pool. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // QoS Type of the pool. Valid values include `Auto` or `Manual`. Defaults to `Auto`. QosType pulumi.StringPtrInput // The name of the resource group where the NetApp Pool should be created. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringPtrInput // The service level of the file system. Valid values include `Premium`, `Standard`, `Ultra`, and `Flexible`. Changing this forces a new resource to be created. ServiceLevel pulumi.StringPtrInput // Provisioned size of the pool in TB. Value must be between `1` and `2048`. // // > **Note:** `2` TB capacity pool sizing is currently in preview. You can only take advantage of the `2` TB minimum if all the volumes in the capacity pool are using `Standard` network features. If any volume is using `Basic` network features, the minimum size is `4` TB. Please see the product [documentation](https://learn.microsoft.com/azure/azure-netapp-files/azure-netapp-files-set-up-capacity-pool) for more information. // // > **Note:** The maximum `sizeInTb` is goverened by regional quotas. You may request additional capacity from Azure, currently up to `2048`. SizeInTb pulumi.IntPtrInput // A mapping of tags to assign to the resource. Tags pulumi.StringMapInput } func (PoolState) ElementType() reflect.Type { return reflect.TypeOf((*poolState)(nil)).Elem() } type poolArgs struct { // The name of the NetApp account in which the NetApp Pool should be created. Changing this forces a new resource to be created. AccountName string `pulumi:"accountName"` // Whether the NetApp Pool can hold cool access enabled volumes. Defaults to `false`. // // > **Note:** Disabling `coolAccessEnabled` is not allowed and forces a new resource to be created. CoolAccessEnabled *bool `pulumi:"coolAccessEnabled"` // The custom throughput for the pool in MiB/s. Minimum value is `128`. This field can only be set when `serviceLevel` is set to `Flexible` and `qosType` is set to `Manual`. CustomThroughputMibps *int `pulumi:"customThroughputMibps"` // The encryption type of the pool. Valid values include `Single`, and `Double`. Defaults to `Single`. Changing this forces a new resource to be created. EncryptionType *string `pulumi:"encryptionType"` // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location *string `pulumi:"location"` // The name of the NetApp Pool. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // QoS Type of the pool. Valid values include `Auto` or `Manual`. Defaults to `Auto`. QosType *string `pulumi:"qosType"` // The name of the resource group where the NetApp Pool should be created. Changing this forces a new resource to be created. ResourceGroupName string `pulumi:"resourceGroupName"` // The service level of the file system. Valid values include `Premium`, `Standard`, `Ultra`, and `Flexible`. Changing this forces a new resource to be created. ServiceLevel string `pulumi:"serviceLevel"` // Provisioned size of the pool in TB. Value must be between `1` and `2048`. // // > **Note:** `2` TB capacity pool sizing is currently in preview. You can only take advantage of the `2` TB minimum if all the volumes in the capacity pool are using `Standard` network features. If any volume is using `Basic` network features, the minimum size is `4` TB. Please see the product [documentation](https://learn.microsoft.com/azure/azure-netapp-files/azure-netapp-files-set-up-capacity-pool) for more information. // // > **Note:** The maximum `sizeInTb` is goverened by regional quotas. You may request additional capacity from Azure, currently up to `2048`. SizeInTb int `pulumi:"sizeInTb"` // A mapping of tags to assign to the resource. Tags map[string]string `pulumi:"tags"` } // The set of arguments for constructing a Pool resource. type PoolArgs struct { // The name of the NetApp account in which the NetApp Pool should be created. Changing this forces a new resource to be created. AccountName pulumi.StringInput // Whether the NetApp Pool can hold cool access enabled volumes. Defaults to `false`. // // > **Note:** Disabling `coolAccessEnabled` is not allowed and forces a new resource to be created. CoolAccessEnabled pulumi.BoolPtrInput // The custom throughput for the pool in MiB/s. Minimum value is `128`. This field can only be set when `serviceLevel` is set to `Flexible` and `qosType` is set to `Manual`. CustomThroughputMibps pulumi.IntPtrInput // The encryption type of the pool. Valid values include `Single`, and `Double`. Defaults to `Single`. Changing this forces a new resource to be created. EncryptionType pulumi.StringPtrInput // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location pulumi.StringPtrInput // The name of the NetApp Pool. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // QoS Type of the pool. Valid values include `Auto` or `Manual`. Defaults to `Auto`. QosType pulumi.StringPtrInput // The name of the resource group where the NetApp Pool should be created. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringInput // The service level of the file system. Valid values include `Premium`, `Standard`, `Ultra`, and `Flexible`. Changing this forces a new resource to be created. ServiceLevel pulumi.StringInput // Provisioned size of the pool in TB. Value must be between `1` and `2048`. // // > **Note:** `2` TB capacity pool sizing is currently in preview. You can only take advantage of the `2` TB minimum if all the volumes in the capacity pool are using `Standard` network features. If any volume is using `Basic` network features, the minimum size is `4` TB. Please see the product [documentation](https://learn.microsoft.com/azure/azure-netapp-files/azure-netapp-files-set-up-capacity-pool) for more information. // // > **Note:** The maximum `sizeInTb` is goverened by regional quotas. You may request additional capacity from Azure, currently up to `2048`. SizeInTb pulumi.IntInput // A mapping of tags to assign to the resource. Tags pulumi.StringMapInput } func (PoolArgs) ElementType() reflect.Type { return reflect.TypeOf((*poolArgs)(nil)).Elem() } type PoolInput interface { pulumi.Input ToPoolOutput() PoolOutput ToPoolOutputWithContext(ctx context.Context) PoolOutput } func (*Pool) ElementType() reflect.Type { return reflect.TypeOf((**Pool)(nil)).Elem() } func (i *Pool) ToPoolOutput() PoolOutput { return i.ToPoolOutputWithContext(context.Background()) } func (i *Pool) ToPoolOutputWithContext(ctx context.Context) PoolOutput { return pulumi.ToOutputWithContext(ctx, i).(PoolOutput) } // PoolArrayInput is an input type that accepts PoolArray and PoolArrayOutput values. // You can construct a concrete instance of `PoolArrayInput` via: // // PoolArray{ PoolArgs{...} } type PoolArrayInput interface { pulumi.Input ToPoolArrayOutput() PoolArrayOutput ToPoolArrayOutputWithContext(context.Context) PoolArrayOutput } type PoolArray []PoolInput func (PoolArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*Pool)(nil)).Elem() } func (i PoolArray) ToPoolArrayOutput() PoolArrayOutput { return i.ToPoolArrayOutputWithContext(context.Background()) } func (i PoolArray) ToPoolArrayOutputWithContext(ctx context.Context) PoolArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(PoolArrayOutput) } // PoolMapInput is an input type that accepts PoolMap and PoolMapOutput values. // You can construct a concrete instance of `PoolMapInput` via: // // PoolMap{ "key": PoolArgs{...} } type PoolMapInput interface { pulumi.Input ToPoolMapOutput() PoolMapOutput ToPoolMapOutputWithContext(context.Context) PoolMapOutput } type PoolMap map[string]PoolInput func (PoolMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*Pool)(nil)).Elem() } func (i PoolMap) ToPoolMapOutput() PoolMapOutput { return i.ToPoolMapOutputWithContext(context.Background()) } func (i PoolMap) ToPoolMapOutputWithContext(ctx context.Context) PoolMapOutput { return pulumi.ToOutputWithContext(ctx, i).(PoolMapOutput) } type PoolOutput struct{ *pulumi.OutputState } func (PoolOutput) ElementType() reflect.Type { return reflect.TypeOf((**Pool)(nil)).Elem() } func (o PoolOutput) ToPoolOutput() PoolOutput { return o } func (o PoolOutput) ToPoolOutputWithContext(ctx context.Context) PoolOutput { return o } // The name of the NetApp account in which the NetApp Pool should be created. Changing this forces a new resource to be created. func (o PoolOutput) AccountName() pulumi.StringOutput { return o.ApplyT(func(v *Pool) pulumi.StringOutput { return v.AccountName }).(pulumi.StringOutput) } // Whether the NetApp Pool can hold cool access enabled volumes. Defaults to `false`. // // > **Note:** Disabling `coolAccessEnabled` is not allowed and forces a new resource to be created. func (o PoolOutput) CoolAccessEnabled() pulumi.BoolPtrOutput { return o.ApplyT(func(v *Pool) pulumi.BoolPtrOutput { return v.CoolAccessEnabled }).(pulumi.BoolPtrOutput) } // The custom throughput for the pool in MiB/s. Minimum value is `128`. This field can only be set when `serviceLevel` is set to `Flexible` and `qosType` is set to `Manual`. func (o PoolOutput) CustomThroughputMibps() pulumi.IntPtrOutput { return o.ApplyT(func(v *Pool) pulumi.IntPtrOutput { return v.CustomThroughputMibps }).(pulumi.IntPtrOutput) } // The encryption type of the pool. Valid values include `Single`, and `Double`. Defaults to `Single`. Changing this forces a new resource to be created. func (o PoolOutput) EncryptionType() pulumi.StringPtrOutput { return o.ApplyT(func(v *Pool) pulumi.StringPtrOutput { return v.EncryptionType }).(pulumi.StringPtrOutput) } // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. func (o PoolOutput) Location() pulumi.StringOutput { return o.ApplyT(func(v *Pool) pulumi.StringOutput { return v.Location }).(pulumi.StringOutput) } // The name of the NetApp Pool. Changing this forces a new resource to be created. func (o PoolOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *Pool) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // QoS Type of the pool. Valid values include `Auto` or `Manual`. Defaults to `Auto`. func (o PoolOutput) QosType() pulumi.StringPtrOutput { return o.ApplyT(func(v *Pool) pulumi.StringPtrOutput { return v.QosType }).(pulumi.StringPtrOutput) } // The name of the resource group where the NetApp Pool should be created. Changing this forces a new resource to be created. func (o PoolOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v *Pool) pulumi.StringOutput { return v.ResourceGroupName }).(pulumi.StringOutput) } // The service level of the file system. Valid values include `Premium`, `Standard`, `Ultra`, and `Flexible`. Changing this forces a new resource to be created. func (o PoolOutput) ServiceLevel() pulumi.StringOutput { return o.ApplyT(func(v *Pool) pulumi.StringOutput { return v.ServiceLevel }).(pulumi.StringOutput) } // Provisioned size of the pool in TB. Value must be between `1` and `2048`. // // > **Note:** `2` TB capacity pool sizing is currently in preview. You can only take advantage of the `2` TB minimum if all the volumes in the capacity pool are using `Standard` network features. If any volume is using `Basic` network features, the minimum size is `4` TB. Please see the product [documentation](https://learn.microsoft.com/azure/azure-netapp-files/azure-netapp-files-set-up-capacity-pool) for more information. // // > **Note:** The maximum `sizeInTb` is goverened by regional quotas. You may request additional capacity from Azure, currently up to `2048`. func (o PoolOutput) SizeInTb() pulumi.IntOutput { return o.ApplyT(func(v *Pool) pulumi.IntOutput { return v.SizeInTb }).(pulumi.IntOutput) } // A mapping of tags to assign to the resource. func (o PoolOutput) Tags() pulumi.StringMapOutput { return o.ApplyT(func(v *Pool) pulumi.StringMapOutput { return v.Tags }).(pulumi.StringMapOutput) } type PoolArrayOutput struct{ *pulumi.OutputState } func (PoolArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*Pool)(nil)).Elem() } func (o PoolArrayOutput) ToPoolArrayOutput() PoolArrayOutput { return o } func (o PoolArrayOutput) ToPoolArrayOutputWithContext(ctx context.Context) PoolArrayOutput { return o } func (o PoolArrayOutput) Index(i pulumi.IntInput) PoolOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *Pool { return vs[0].([]*Pool)[vs[1].(int)] }).(PoolOutput) } type PoolMapOutput struct{ *pulumi.OutputState } func (PoolMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*Pool)(nil)).Elem() } func (o PoolMapOutput) ToPoolMapOutput() PoolMapOutput { return o } func (o PoolMapOutput) ToPoolMapOutputWithContext(ctx context.Context) PoolMapOutput { return o } func (o PoolMapOutput) MapIndex(k pulumi.StringInput) PoolOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *Pool { return vs[0].(map[string]*Pool)[vs[1].(string)] }).(PoolOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*PoolInput)(nil)).Elem(), &Pool{}) pulumi.RegisterInputType(reflect.TypeOf((*PoolArrayInput)(nil)).Elem(), PoolArray{}) pulumi.RegisterInputType(reflect.TypeOf((*PoolMapInput)(nil)).Elem(), PoolMap{}) pulumi.RegisterOutputType(PoolOutput{}) pulumi.RegisterOutputType(PoolArrayOutput{}) pulumi.RegisterOutputType(PoolMapOutput{}) }
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/netapp/backupPolicy.go
sdk/go/azure/netapp/backupPolicy.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 netapp import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a NetApp Backup Policy. // // ## NetApp Backup Policy Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/netapp" // "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 := netapp.NewAccount(ctx, "example", &netapp.AccountArgs{ // Name: pulumi.String("example-netappaccount"), // Location: example.Location, // ResourceGroupName: example.Name, // }) // if err != nil { // return err // } // _, err = netapp.NewBackupPolicy(ctx, "example", &netapp.BackupPolicyArgs{ // Name: pulumi.String("example-netappbackuppolicy"), // ResourceGroupName: example.Name, // Location: example.Location, // AccountName: exampleAccount.Name, // Enabled: 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.NetApp` - 2025-06-01 // // ## Import // // NetApp Backup Policies can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:netapp/backupPolicy:BackupPolicy example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.NetApp/netAppAccounts/account1/backupPolicies/backuppolicy1 // ``` type BackupPolicy struct { pulumi.CustomResourceState // The name of the NetApp account in which the NetApp Policy should be created under. Changing this forces a new resource to be created. AccountName pulumi.StringOutput `pulumi:"accountName"` // Provides the number of daily backups to keep, defaults to `2` which is the minimum, maximum is 1019. DailyBackupsToKeep pulumi.IntPtrOutput `pulumi:"dailyBackupsToKeep"` // Whether the Backup Policy is enabled. Defaults to `true`. Enabled pulumi.BoolPtrOutput `pulumi:"enabled"` // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location pulumi.StringOutput `pulumi:"location"` // Provides the number of monthly backups to keep, defaults to `1`. The minimum is `0` and the maximum is `1019`. // // > **Note:** Currently, the combined (daily + weekly + monthy) retention counts cannot exceed 1019. MonthlyBackupsToKeep pulumi.IntPtrOutput `pulumi:"monthlyBackupsToKeep"` // The name of the NetApp Backup Policy. Changing this forces a new resource to be created. Name pulumi.StringOutput `pulumi:"name"` // The name of the resource group where the NetApp Backup Policy should be created. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // A mapping of tags to assign to the resource. Tags pulumi.StringMapOutput `pulumi:"tags"` // Provides the number of weekly backups to keep, defaults to `1`. The minimum is `0` and the maximum is `1019`. WeeklyBackupsToKeep pulumi.IntPtrOutput `pulumi:"weeklyBackupsToKeep"` } // NewBackupPolicy registers a new resource with the given unique name, arguments, and options. func NewBackupPolicy(ctx *pulumi.Context, name string, args *BackupPolicyArgs, opts ...pulumi.ResourceOption) (*BackupPolicy, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.AccountName == nil { return nil, errors.New("invalid value for required argument 'AccountName'") } if args.ResourceGroupName == nil { return nil, errors.New("invalid value for required argument 'ResourceGroupName'") } opts = internal.PkgResourceDefaultOpts(opts) var resource BackupPolicy err := ctx.RegisterResource("azure:netapp/backupPolicy:BackupPolicy", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetBackupPolicy gets an existing BackupPolicy 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 GetBackupPolicy(ctx *pulumi.Context, name string, id pulumi.IDInput, state *BackupPolicyState, opts ...pulumi.ResourceOption) (*BackupPolicy, error) { var resource BackupPolicy err := ctx.ReadResource("azure:netapp/backupPolicy:BackupPolicy", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering BackupPolicy resources. type backupPolicyState struct { // The name of the NetApp account in which the NetApp Policy should be created under. Changing this forces a new resource to be created. AccountName *string `pulumi:"accountName"` // Provides the number of daily backups to keep, defaults to `2` which is the minimum, maximum is 1019. DailyBackupsToKeep *int `pulumi:"dailyBackupsToKeep"` // Whether the Backup Policy is enabled. Defaults to `true`. Enabled *bool `pulumi:"enabled"` // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location *string `pulumi:"location"` // Provides the number of monthly backups to keep, defaults to `1`. The minimum is `0` and the maximum is `1019`. // // > **Note:** Currently, the combined (daily + weekly + monthy) retention counts cannot exceed 1019. MonthlyBackupsToKeep *int `pulumi:"monthlyBackupsToKeep"` // The name of the NetApp Backup Policy. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // The name of the resource group where the NetApp Backup Policy should be created. Changing this forces a new resource to be created. ResourceGroupName *string `pulumi:"resourceGroupName"` // A mapping of tags to assign to the resource. Tags map[string]string `pulumi:"tags"` // Provides the number of weekly backups to keep, defaults to `1`. The minimum is `0` and the maximum is `1019`. WeeklyBackupsToKeep *int `pulumi:"weeklyBackupsToKeep"` } type BackupPolicyState struct { // The name of the NetApp account in which the NetApp Policy should be created under. Changing this forces a new resource to be created. AccountName pulumi.StringPtrInput // Provides the number of daily backups to keep, defaults to `2` which is the minimum, maximum is 1019. DailyBackupsToKeep pulumi.IntPtrInput // Whether the Backup Policy is enabled. Defaults to `true`. Enabled pulumi.BoolPtrInput // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location pulumi.StringPtrInput // Provides the number of monthly backups to keep, defaults to `1`. The minimum is `0` and the maximum is `1019`. // // > **Note:** Currently, the combined (daily + weekly + monthy) retention counts cannot exceed 1019. MonthlyBackupsToKeep pulumi.IntPtrInput // The name of the NetApp Backup Policy. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // The name of the resource group where the NetApp Backup Policy should be created. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringPtrInput // A mapping of tags to assign to the resource. Tags pulumi.StringMapInput // Provides the number of weekly backups to keep, defaults to `1`. The minimum is `0` and the maximum is `1019`. WeeklyBackupsToKeep pulumi.IntPtrInput } func (BackupPolicyState) ElementType() reflect.Type { return reflect.TypeOf((*backupPolicyState)(nil)).Elem() } type backupPolicyArgs struct { // The name of the NetApp account in which the NetApp Policy should be created under. Changing this forces a new resource to be created. AccountName string `pulumi:"accountName"` // Provides the number of daily backups to keep, defaults to `2` which is the minimum, maximum is 1019. DailyBackupsToKeep *int `pulumi:"dailyBackupsToKeep"` // Whether the Backup Policy is enabled. Defaults to `true`. Enabled *bool `pulumi:"enabled"` // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location *string `pulumi:"location"` // Provides the number of monthly backups to keep, defaults to `1`. The minimum is `0` and the maximum is `1019`. // // > **Note:** Currently, the combined (daily + weekly + monthy) retention counts cannot exceed 1019. MonthlyBackupsToKeep *int `pulumi:"monthlyBackupsToKeep"` // The name of the NetApp Backup Policy. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // The name of the resource group where the NetApp Backup Policy should be created. Changing this forces a new resource to be created. ResourceGroupName string `pulumi:"resourceGroupName"` // A mapping of tags to assign to the resource. Tags map[string]string `pulumi:"tags"` // Provides the number of weekly backups to keep, defaults to `1`. The minimum is `0` and the maximum is `1019`. WeeklyBackupsToKeep *int `pulumi:"weeklyBackupsToKeep"` } // The set of arguments for constructing a BackupPolicy resource. type BackupPolicyArgs struct { // The name of the NetApp account in which the NetApp Policy should be created under. Changing this forces a new resource to be created. AccountName pulumi.StringInput // Provides the number of daily backups to keep, defaults to `2` which is the minimum, maximum is 1019. DailyBackupsToKeep pulumi.IntPtrInput // Whether the Backup Policy is enabled. Defaults to `true`. Enabled pulumi.BoolPtrInput // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location pulumi.StringPtrInput // Provides the number of monthly backups to keep, defaults to `1`. The minimum is `0` and the maximum is `1019`. // // > **Note:** Currently, the combined (daily + weekly + monthy) retention counts cannot exceed 1019. MonthlyBackupsToKeep pulumi.IntPtrInput // The name of the NetApp Backup Policy. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // The name of the resource group where the NetApp Backup Policy should be created. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringInput // A mapping of tags to assign to the resource. Tags pulumi.StringMapInput // Provides the number of weekly backups to keep, defaults to `1`. The minimum is `0` and the maximum is `1019`. WeeklyBackupsToKeep pulumi.IntPtrInput } func (BackupPolicyArgs) ElementType() reflect.Type { return reflect.TypeOf((*backupPolicyArgs)(nil)).Elem() } type BackupPolicyInput interface { pulumi.Input ToBackupPolicyOutput() BackupPolicyOutput ToBackupPolicyOutputWithContext(ctx context.Context) BackupPolicyOutput } func (*BackupPolicy) ElementType() reflect.Type { return reflect.TypeOf((**BackupPolicy)(nil)).Elem() } func (i *BackupPolicy) ToBackupPolicyOutput() BackupPolicyOutput { return i.ToBackupPolicyOutputWithContext(context.Background()) } func (i *BackupPolicy) ToBackupPolicyOutputWithContext(ctx context.Context) BackupPolicyOutput { return pulumi.ToOutputWithContext(ctx, i).(BackupPolicyOutput) } // BackupPolicyArrayInput is an input type that accepts BackupPolicyArray and BackupPolicyArrayOutput values. // You can construct a concrete instance of `BackupPolicyArrayInput` via: // // BackupPolicyArray{ BackupPolicyArgs{...} } type BackupPolicyArrayInput interface { pulumi.Input ToBackupPolicyArrayOutput() BackupPolicyArrayOutput ToBackupPolicyArrayOutputWithContext(context.Context) BackupPolicyArrayOutput } type BackupPolicyArray []BackupPolicyInput func (BackupPolicyArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*BackupPolicy)(nil)).Elem() } func (i BackupPolicyArray) ToBackupPolicyArrayOutput() BackupPolicyArrayOutput { return i.ToBackupPolicyArrayOutputWithContext(context.Background()) } func (i BackupPolicyArray) ToBackupPolicyArrayOutputWithContext(ctx context.Context) BackupPolicyArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(BackupPolicyArrayOutput) } // BackupPolicyMapInput is an input type that accepts BackupPolicyMap and BackupPolicyMapOutput values. // You can construct a concrete instance of `BackupPolicyMapInput` via: // // BackupPolicyMap{ "key": BackupPolicyArgs{...} } type BackupPolicyMapInput interface { pulumi.Input ToBackupPolicyMapOutput() BackupPolicyMapOutput ToBackupPolicyMapOutputWithContext(context.Context) BackupPolicyMapOutput } type BackupPolicyMap map[string]BackupPolicyInput func (BackupPolicyMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*BackupPolicy)(nil)).Elem() } func (i BackupPolicyMap) ToBackupPolicyMapOutput() BackupPolicyMapOutput { return i.ToBackupPolicyMapOutputWithContext(context.Background()) } func (i BackupPolicyMap) ToBackupPolicyMapOutputWithContext(ctx context.Context) BackupPolicyMapOutput { return pulumi.ToOutputWithContext(ctx, i).(BackupPolicyMapOutput) } type BackupPolicyOutput struct{ *pulumi.OutputState } func (BackupPolicyOutput) ElementType() reflect.Type { return reflect.TypeOf((**BackupPolicy)(nil)).Elem() } func (o BackupPolicyOutput) ToBackupPolicyOutput() BackupPolicyOutput { return o } func (o BackupPolicyOutput) ToBackupPolicyOutputWithContext(ctx context.Context) BackupPolicyOutput { return o } // The name of the NetApp account in which the NetApp Policy should be created under. Changing this forces a new resource to be created. func (o BackupPolicyOutput) AccountName() pulumi.StringOutput { return o.ApplyT(func(v *BackupPolicy) pulumi.StringOutput { return v.AccountName }).(pulumi.StringOutput) } // Provides the number of daily backups to keep, defaults to `2` which is the minimum, maximum is 1019. func (o BackupPolicyOutput) DailyBackupsToKeep() pulumi.IntPtrOutput { return o.ApplyT(func(v *BackupPolicy) pulumi.IntPtrOutput { return v.DailyBackupsToKeep }).(pulumi.IntPtrOutput) } // Whether the Backup Policy is enabled. Defaults to `true`. func (o BackupPolicyOutput) Enabled() pulumi.BoolPtrOutput { return o.ApplyT(func(v *BackupPolicy) pulumi.BoolPtrOutput { return v.Enabled }).(pulumi.BoolPtrOutput) } // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. func (o BackupPolicyOutput) Location() pulumi.StringOutput { return o.ApplyT(func(v *BackupPolicy) pulumi.StringOutput { return v.Location }).(pulumi.StringOutput) } // Provides the number of monthly backups to keep, defaults to `1`. The minimum is `0` and the maximum is `1019`. // // > **Note:** Currently, the combined (daily + weekly + monthy) retention counts cannot exceed 1019. func (o BackupPolicyOutput) MonthlyBackupsToKeep() pulumi.IntPtrOutput { return o.ApplyT(func(v *BackupPolicy) pulumi.IntPtrOutput { return v.MonthlyBackupsToKeep }).(pulumi.IntPtrOutput) } // The name of the NetApp Backup Policy. Changing this forces a new resource to be created. func (o BackupPolicyOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *BackupPolicy) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // The name of the resource group where the NetApp Backup Policy should be created. Changing this forces a new resource to be created. func (o BackupPolicyOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v *BackupPolicy) pulumi.StringOutput { return v.ResourceGroupName }).(pulumi.StringOutput) } // A mapping of tags to assign to the resource. func (o BackupPolicyOutput) Tags() pulumi.StringMapOutput { return o.ApplyT(func(v *BackupPolicy) pulumi.StringMapOutput { return v.Tags }).(pulumi.StringMapOutput) } // Provides the number of weekly backups to keep, defaults to `1`. The minimum is `0` and the maximum is `1019`. func (o BackupPolicyOutput) WeeklyBackupsToKeep() pulumi.IntPtrOutput { return o.ApplyT(func(v *BackupPolicy) pulumi.IntPtrOutput { return v.WeeklyBackupsToKeep }).(pulumi.IntPtrOutput) } type BackupPolicyArrayOutput struct{ *pulumi.OutputState } func (BackupPolicyArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*BackupPolicy)(nil)).Elem() } func (o BackupPolicyArrayOutput) ToBackupPolicyArrayOutput() BackupPolicyArrayOutput { return o } func (o BackupPolicyArrayOutput) ToBackupPolicyArrayOutputWithContext(ctx context.Context) BackupPolicyArrayOutput { return o } func (o BackupPolicyArrayOutput) Index(i pulumi.IntInput) BackupPolicyOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *BackupPolicy { return vs[0].([]*BackupPolicy)[vs[1].(int)] }).(BackupPolicyOutput) } type BackupPolicyMapOutput struct{ *pulumi.OutputState } func (BackupPolicyMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*BackupPolicy)(nil)).Elem() } func (o BackupPolicyMapOutput) ToBackupPolicyMapOutput() BackupPolicyMapOutput { return o } func (o BackupPolicyMapOutput) ToBackupPolicyMapOutputWithContext(ctx context.Context) BackupPolicyMapOutput { return o } func (o BackupPolicyMapOutput) MapIndex(k pulumi.StringInput) BackupPolicyOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *BackupPolicy { return vs[0].(map[string]*BackupPolicy)[vs[1].(string)] }).(BackupPolicyOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*BackupPolicyInput)(nil)).Elem(), &BackupPolicy{}) pulumi.RegisterInputType(reflect.TypeOf((*BackupPolicyArrayInput)(nil)).Elem(), BackupPolicyArray{}) pulumi.RegisterInputType(reflect.TypeOf((*BackupPolicyMapInput)(nil)).Elem(), BackupPolicyMap{}) pulumi.RegisterOutputType(BackupPolicyOutput{}) pulumi.RegisterOutputType(BackupPolicyArrayOutput{}) pulumi.RegisterOutputType(BackupPolicyMapOutput{}) }
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/netapp/getVolumeGroupSapHana.go
sdk/go/azure/netapp/getVolumeGroupSapHana.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 netapp 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 Application Volume Group for SAP HANA application. // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/netapp" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { // example, err := netapp.LookupVolumeGroupSapHana(ctx, &netapp.LookupVolumeGroupSapHanaArgs{ // Name: "existing application volume group name", // ResourceGroupName: "resource group name where the account and volume group belong to", // AccountName: "existing account where the application volume group belong to", // }, 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.NetApp` - 2025-06-01 func LookupVolumeGroupSapHana(ctx *pulumi.Context, args *LookupVolumeGroupSapHanaArgs, opts ...pulumi.InvokeOption) (*LookupVolumeGroupSapHanaResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupVolumeGroupSapHanaResult err := ctx.Invoke("azure:netapp/getVolumeGroupSapHana:getVolumeGroupSapHana", args, &rv, opts...) if err != nil { return nil, err } return &rv, nil } // A collection of arguments for invoking getVolumeGroupSapHana. type LookupVolumeGroupSapHanaArgs struct { // Name of the account where the application volume group belong to. AccountName string `pulumi:"accountName"` // The name of this Application Volume Group for SAP HANA application. Name string `pulumi:"name"` // The name of the Resource Group where the Application Volume Group exists. ResourceGroupName string `pulumi:"resourceGroupName"` } // A collection of values returned by getVolumeGroupSapHana. type LookupVolumeGroupSapHanaResult struct { AccountName string `pulumi:"accountName"` // The application identifier. ApplicationIdentifier string `pulumi:"applicationIdentifier"` // Volume group description. GroupDescription string `pulumi:"groupDescription"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` // The Azure Region where the Application Volume Group exists. Location string `pulumi:"location"` // The name of this volume. Name string `pulumi:"name"` ResourceGroupName string `pulumi:"resourceGroupName"` // A `volume` block as defined below. Volumes []GetVolumeGroupSapHanaVolume `pulumi:"volumes"` } func LookupVolumeGroupSapHanaOutput(ctx *pulumi.Context, args LookupVolumeGroupSapHanaOutputArgs, opts ...pulumi.InvokeOption) LookupVolumeGroupSapHanaResultOutput { return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupVolumeGroupSapHanaResultOutput, error) { args := v.(LookupVolumeGroupSapHanaArgs) options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} return ctx.InvokeOutput("azure:netapp/getVolumeGroupSapHana:getVolumeGroupSapHana", args, LookupVolumeGroupSapHanaResultOutput{}, options).(LookupVolumeGroupSapHanaResultOutput), nil }).(LookupVolumeGroupSapHanaResultOutput) } // A collection of arguments for invoking getVolumeGroupSapHana. type LookupVolumeGroupSapHanaOutputArgs struct { // Name of the account where the application volume group belong to. AccountName pulumi.StringInput `pulumi:"accountName"` // The name of this Application Volume Group for SAP HANA application. Name pulumi.StringInput `pulumi:"name"` // The name of the Resource Group where the Application Volume Group exists. ResourceGroupName pulumi.StringInput `pulumi:"resourceGroupName"` } func (LookupVolumeGroupSapHanaOutputArgs) ElementType() reflect.Type { return reflect.TypeOf((*LookupVolumeGroupSapHanaArgs)(nil)).Elem() } // A collection of values returned by getVolumeGroupSapHana. type LookupVolumeGroupSapHanaResultOutput struct{ *pulumi.OutputState } func (LookupVolumeGroupSapHanaResultOutput) ElementType() reflect.Type { return reflect.TypeOf((*LookupVolumeGroupSapHanaResult)(nil)).Elem() } func (o LookupVolumeGroupSapHanaResultOutput) ToLookupVolumeGroupSapHanaResultOutput() LookupVolumeGroupSapHanaResultOutput { return o } func (o LookupVolumeGroupSapHanaResultOutput) ToLookupVolumeGroupSapHanaResultOutputWithContext(ctx context.Context) LookupVolumeGroupSapHanaResultOutput { return o } func (o LookupVolumeGroupSapHanaResultOutput) AccountName() pulumi.StringOutput { return o.ApplyT(func(v LookupVolumeGroupSapHanaResult) string { return v.AccountName }).(pulumi.StringOutput) } // The application identifier. func (o LookupVolumeGroupSapHanaResultOutput) ApplicationIdentifier() pulumi.StringOutput { return o.ApplyT(func(v LookupVolumeGroupSapHanaResult) string { return v.ApplicationIdentifier }).(pulumi.StringOutput) } // Volume group description. func (o LookupVolumeGroupSapHanaResultOutput) GroupDescription() pulumi.StringOutput { return o.ApplyT(func(v LookupVolumeGroupSapHanaResult) string { return v.GroupDescription }).(pulumi.StringOutput) } // The provider-assigned unique ID for this managed resource. func (o LookupVolumeGroupSapHanaResultOutput) Id() pulumi.StringOutput { return o.ApplyT(func(v LookupVolumeGroupSapHanaResult) string { return v.Id }).(pulumi.StringOutput) } // The Azure Region where the Application Volume Group exists. func (o LookupVolumeGroupSapHanaResultOutput) Location() pulumi.StringOutput { return o.ApplyT(func(v LookupVolumeGroupSapHanaResult) string { return v.Location }).(pulumi.StringOutput) } // The name of this volume. func (o LookupVolumeGroupSapHanaResultOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v LookupVolumeGroupSapHanaResult) string { return v.Name }).(pulumi.StringOutput) } func (o LookupVolumeGroupSapHanaResultOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v LookupVolumeGroupSapHanaResult) string { return v.ResourceGroupName }).(pulumi.StringOutput) } // A `volume` block as defined below. func (o LookupVolumeGroupSapHanaResultOutput) Volumes() GetVolumeGroupSapHanaVolumeArrayOutput { return o.ApplyT(func(v LookupVolumeGroupSapHanaResult) []GetVolumeGroupSapHanaVolume { return v.Volumes }).(GetVolumeGroupSapHanaVolumeArrayOutput) } func init() { pulumi.RegisterOutputType(LookupVolumeGroupSapHanaResultOutput{}) }
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/netapp/getSnapshot.go
sdk/go/azure/netapp/getSnapshot.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 netapp import ( "context" "reflect" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Uses this data source to access information about an existing NetApp Snapshot. // // ## NetApp Snapshot Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/netapp" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { // _, err := netapp.LookupSnapshot(ctx, &netapp.LookupSnapshotArgs{ // ResourceGroupName: "acctestRG", // Name: "acctestnetappsnapshot", // AccountName: "acctestnetappaccount", // PoolName: "acctestnetapppool", // VolumeName: "acctestnetappvolume", // }, nil) // if err != nil { // return err // } // ctx.Export("netappSnapshotId", example.Id) // return nil // }) // } // // ``` // // ## API Providers // // <!-- This section is generated, changes will be overwritten --> // This data source uses the following Azure API Providers: // // * `Microsoft.NetApp` - 2025-06-01 func LookupSnapshot(ctx *pulumi.Context, args *LookupSnapshotArgs, opts ...pulumi.InvokeOption) (*LookupSnapshotResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupSnapshotResult err := ctx.Invoke("azure:netapp/getSnapshot:getSnapshot", args, &rv, opts...) if err != nil { return nil, err } return &rv, nil } // A collection of arguments for invoking getSnapshot. type LookupSnapshotArgs struct { // The name of the NetApp Account where the NetApp Pool exists. AccountName string `pulumi:"accountName"` // The name of the NetApp Snapshot. Name string `pulumi:"name"` // The name of the NetApp Pool where the NetApp Volume exists. PoolName string `pulumi:"poolName"` // The Name of the Resource Group where the NetApp Snapshot exists. ResourceGroupName string `pulumi:"resourceGroupName"` // The name of the NetApp Volume where the NetApp Snapshot exists. VolumeName string `pulumi:"volumeName"` } // A collection of values returned by getSnapshot. type LookupSnapshotResult struct { AccountName string `pulumi:"accountName"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` // The Azure Region where the NetApp Snapshot exists. Location string `pulumi:"location"` Name string `pulumi:"name"` PoolName string `pulumi:"poolName"` ResourceGroupName string `pulumi:"resourceGroupName"` VolumeName string `pulumi:"volumeName"` } func LookupSnapshotOutput(ctx *pulumi.Context, args LookupSnapshotOutputArgs, opts ...pulumi.InvokeOption) LookupSnapshotResultOutput { return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupSnapshotResultOutput, error) { args := v.(LookupSnapshotArgs) options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} return ctx.InvokeOutput("azure:netapp/getSnapshot:getSnapshot", args, LookupSnapshotResultOutput{}, options).(LookupSnapshotResultOutput), nil }).(LookupSnapshotResultOutput) } // A collection of arguments for invoking getSnapshot. type LookupSnapshotOutputArgs struct { // The name of the NetApp Account where the NetApp Pool exists. AccountName pulumi.StringInput `pulumi:"accountName"` // The name of the NetApp Snapshot. Name pulumi.StringInput `pulumi:"name"` // The name of the NetApp Pool where the NetApp Volume exists. PoolName pulumi.StringInput `pulumi:"poolName"` // The Name of the Resource Group where the NetApp Snapshot exists. ResourceGroupName pulumi.StringInput `pulumi:"resourceGroupName"` // The name of the NetApp Volume where the NetApp Snapshot exists. VolumeName pulumi.StringInput `pulumi:"volumeName"` } func (LookupSnapshotOutputArgs) ElementType() reflect.Type { return reflect.TypeOf((*LookupSnapshotArgs)(nil)).Elem() } // A collection of values returned by getSnapshot. type LookupSnapshotResultOutput struct{ *pulumi.OutputState } func (LookupSnapshotResultOutput) ElementType() reflect.Type { return reflect.TypeOf((*LookupSnapshotResult)(nil)).Elem() } func (o LookupSnapshotResultOutput) ToLookupSnapshotResultOutput() LookupSnapshotResultOutput { return o } func (o LookupSnapshotResultOutput) ToLookupSnapshotResultOutputWithContext(ctx context.Context) LookupSnapshotResultOutput { return o } func (o LookupSnapshotResultOutput) AccountName() pulumi.StringOutput { return o.ApplyT(func(v LookupSnapshotResult) string { return v.AccountName }).(pulumi.StringOutput) } // The provider-assigned unique ID for this managed resource. func (o LookupSnapshotResultOutput) Id() pulumi.StringOutput { return o.ApplyT(func(v LookupSnapshotResult) string { return v.Id }).(pulumi.StringOutput) } // The Azure Region where the NetApp Snapshot exists. func (o LookupSnapshotResultOutput) Location() pulumi.StringOutput { return o.ApplyT(func(v LookupSnapshotResult) string { return v.Location }).(pulumi.StringOutput) } func (o LookupSnapshotResultOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v LookupSnapshotResult) string { return v.Name }).(pulumi.StringOutput) } func (o LookupSnapshotResultOutput) PoolName() pulumi.StringOutput { return o.ApplyT(func(v LookupSnapshotResult) string { return v.PoolName }).(pulumi.StringOutput) } func (o LookupSnapshotResultOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v LookupSnapshotResult) string { return v.ResourceGroupName }).(pulumi.StringOutput) } func (o LookupSnapshotResultOutput) VolumeName() pulumi.StringOutput { return o.ApplyT(func(v LookupSnapshotResult) string { return v.VolumeName }).(pulumi.StringOutput) } func init() { pulumi.RegisterOutputType(LookupSnapshotResultOutput{}) }
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/netapp/snapshotPolicy.go
sdk/go/azure/netapp/snapshotPolicy.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 netapp import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a NetApp Snapshot Policy. // // ## NetApp Snapshot Policy Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/netapp" // "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("resource-group-01"), // Location: pulumi.String("East US"), // }) // if err != nil { // return err // } // exampleAccount, err := netapp.NewAccount(ctx, "example", &netapp.AccountArgs{ // Name: pulumi.String("netappaccount-01"), // Location: example.Location, // ResourceGroupName: example.Name, // }) // if err != nil { // return err // } // _, err = netapp.NewSnapshotPolicy(ctx, "example", &netapp.SnapshotPolicyArgs{ // Name: pulumi.String("snapshotpolicy-01"), // Location: example.Location, // ResourceGroupName: example.Name, // AccountName: exampleAccount.Name, // Enabled: pulumi.Bool(true), // HourlySchedule: &netapp.SnapshotPolicyHourlyScheduleArgs{ // SnapshotsToKeep: pulumi.Int(4), // Minute: pulumi.Int(15), // }, // DailySchedule: &netapp.SnapshotPolicyDailyScheduleArgs{ // SnapshotsToKeep: pulumi.Int(2), // Hour: pulumi.Int(20), // Minute: pulumi.Int(15), // }, // WeeklySchedule: &netapp.SnapshotPolicyWeeklyScheduleArgs{ // SnapshotsToKeep: pulumi.Int(1), // DaysOfWeeks: pulumi.StringArray{ // pulumi.String("Monday"), // pulumi.String("Friday"), // }, // Hour: pulumi.Int(23), // Minute: pulumi.Int(0), // }, // MonthlySchedule: &netapp.SnapshotPolicyMonthlyScheduleArgs{ // SnapshotsToKeep: pulumi.Int(1), // DaysOfMonths: pulumi.IntArray{ // pulumi.Int(1), // pulumi.Int(15), // pulumi.Int(20), // pulumi.Int(30), // }, // Hour: pulumi.Int(5), // Minute: pulumi.Int(45), // }, // }) // 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.NetApp` - 2025-06-01 // // ## Import // // NetApp Snapshot Policy can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:netapp/snapshotPolicy:SnapshotPolicy example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.NetApp/netAppAccounts/account1/snapshotPolicies/snapshotpolicy1 // ``` type SnapshotPolicy struct { pulumi.CustomResourceState // The name of the NetApp Account in which the NetApp Snapshot Policy should be created. Changing this forces a new resource to be created. AccountName pulumi.StringOutput `pulumi:"accountName"` // Sets a daily snapshot schedule. A `dailySchedule` block as defined below. DailySchedule SnapshotPolicyDailySchedulePtrOutput `pulumi:"dailySchedule"` // Defines that the NetApp Snapshot Policy is enabled or not. Enabled pulumi.BoolOutput `pulumi:"enabled"` // Sets an hourly snapshot schedule. A `hourlySchedule` block as defined below. HourlySchedule SnapshotPolicyHourlySchedulePtrOutput `pulumi:"hourlySchedule"` // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location pulumi.StringOutput `pulumi:"location"` // Sets a monthly snapshot schedule. A `monthlySchedule` block as defined below. MonthlySchedule SnapshotPolicyMonthlySchedulePtrOutput `pulumi:"monthlySchedule"` // The name of the NetApp Snapshot Policy. Changing this forces a new resource to be created. Name pulumi.StringOutput `pulumi:"name"` // The name of the resource group where the NetApp Snapshot Policy should be created. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // A mapping of tags to assign to the resource. Tags pulumi.StringMapOutput `pulumi:"tags"` // Sets a weekly snapshot schedule. A `weeklySchedule` block as defined below. WeeklySchedule SnapshotPolicyWeeklySchedulePtrOutput `pulumi:"weeklySchedule"` } // NewSnapshotPolicy registers a new resource with the given unique name, arguments, and options. func NewSnapshotPolicy(ctx *pulumi.Context, name string, args *SnapshotPolicyArgs, opts ...pulumi.ResourceOption) (*SnapshotPolicy, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.AccountName == nil { return nil, errors.New("invalid value for required argument 'AccountName'") } if args.Enabled == nil { return nil, errors.New("invalid value for required argument 'Enabled'") } if args.ResourceGroupName == nil { return nil, errors.New("invalid value for required argument 'ResourceGroupName'") } opts = internal.PkgResourceDefaultOpts(opts) var resource SnapshotPolicy err := ctx.RegisterResource("azure:netapp/snapshotPolicy:SnapshotPolicy", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetSnapshotPolicy gets an existing SnapshotPolicy 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 GetSnapshotPolicy(ctx *pulumi.Context, name string, id pulumi.IDInput, state *SnapshotPolicyState, opts ...pulumi.ResourceOption) (*SnapshotPolicy, error) { var resource SnapshotPolicy err := ctx.ReadResource("azure:netapp/snapshotPolicy:SnapshotPolicy", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering SnapshotPolicy resources. type snapshotPolicyState struct { // The name of the NetApp Account in which the NetApp Snapshot Policy should be created. Changing this forces a new resource to be created. AccountName *string `pulumi:"accountName"` // Sets a daily snapshot schedule. A `dailySchedule` block as defined below. DailySchedule *SnapshotPolicyDailySchedule `pulumi:"dailySchedule"` // Defines that the NetApp Snapshot Policy is enabled or not. Enabled *bool `pulumi:"enabled"` // Sets an hourly snapshot schedule. A `hourlySchedule` block as defined below. HourlySchedule *SnapshotPolicyHourlySchedule `pulumi:"hourlySchedule"` // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location *string `pulumi:"location"` // Sets a monthly snapshot schedule. A `monthlySchedule` block as defined below. MonthlySchedule *SnapshotPolicyMonthlySchedule `pulumi:"monthlySchedule"` // The name of the NetApp Snapshot Policy. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // The name of the resource group where the NetApp Snapshot Policy should be created. Changing this forces a new resource to be created. ResourceGroupName *string `pulumi:"resourceGroupName"` // A mapping of tags to assign to the resource. Tags map[string]string `pulumi:"tags"` // Sets a weekly snapshot schedule. A `weeklySchedule` block as defined below. WeeklySchedule *SnapshotPolicyWeeklySchedule `pulumi:"weeklySchedule"` } type SnapshotPolicyState struct { // The name of the NetApp Account in which the NetApp Snapshot Policy should be created. Changing this forces a new resource to be created. AccountName pulumi.StringPtrInput // Sets a daily snapshot schedule. A `dailySchedule` block as defined below. DailySchedule SnapshotPolicyDailySchedulePtrInput // Defines that the NetApp Snapshot Policy is enabled or not. Enabled pulumi.BoolPtrInput // Sets an hourly snapshot schedule. A `hourlySchedule` block as defined below. HourlySchedule SnapshotPolicyHourlySchedulePtrInput // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location pulumi.StringPtrInput // Sets a monthly snapshot schedule. A `monthlySchedule` block as defined below. MonthlySchedule SnapshotPolicyMonthlySchedulePtrInput // The name of the NetApp Snapshot Policy. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // The name of the resource group where the NetApp Snapshot Policy should be created. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringPtrInput // A mapping of tags to assign to the resource. Tags pulumi.StringMapInput // Sets a weekly snapshot schedule. A `weeklySchedule` block as defined below. WeeklySchedule SnapshotPolicyWeeklySchedulePtrInput } func (SnapshotPolicyState) ElementType() reflect.Type { return reflect.TypeOf((*snapshotPolicyState)(nil)).Elem() } type snapshotPolicyArgs struct { // The name of the NetApp Account in which the NetApp Snapshot Policy should be created. Changing this forces a new resource to be created. AccountName string `pulumi:"accountName"` // Sets a daily snapshot schedule. A `dailySchedule` block as defined below. DailySchedule *SnapshotPolicyDailySchedule `pulumi:"dailySchedule"` // Defines that the NetApp Snapshot Policy is enabled or not. Enabled bool `pulumi:"enabled"` // Sets an hourly snapshot schedule. A `hourlySchedule` block as defined below. HourlySchedule *SnapshotPolicyHourlySchedule `pulumi:"hourlySchedule"` // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location *string `pulumi:"location"` // Sets a monthly snapshot schedule. A `monthlySchedule` block as defined below. MonthlySchedule *SnapshotPolicyMonthlySchedule `pulumi:"monthlySchedule"` // The name of the NetApp Snapshot Policy. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // The name of the resource group where the NetApp Snapshot Policy should be created. Changing this forces a new resource to be created. ResourceGroupName string `pulumi:"resourceGroupName"` // A mapping of tags to assign to the resource. Tags map[string]string `pulumi:"tags"` // Sets a weekly snapshot schedule. A `weeklySchedule` block as defined below. WeeklySchedule *SnapshotPolicyWeeklySchedule `pulumi:"weeklySchedule"` } // The set of arguments for constructing a SnapshotPolicy resource. type SnapshotPolicyArgs struct { // The name of the NetApp Account in which the NetApp Snapshot Policy should be created. Changing this forces a new resource to be created. AccountName pulumi.StringInput // Sets a daily snapshot schedule. A `dailySchedule` block as defined below. DailySchedule SnapshotPolicyDailySchedulePtrInput // Defines that the NetApp Snapshot Policy is enabled or not. Enabled pulumi.BoolInput // Sets an hourly snapshot schedule. A `hourlySchedule` block as defined below. HourlySchedule SnapshotPolicyHourlySchedulePtrInput // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location pulumi.StringPtrInput // Sets a monthly snapshot schedule. A `monthlySchedule` block as defined below. MonthlySchedule SnapshotPolicyMonthlySchedulePtrInput // The name of the NetApp Snapshot Policy. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // The name of the resource group where the NetApp Snapshot Policy should be created. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringInput // A mapping of tags to assign to the resource. Tags pulumi.StringMapInput // Sets a weekly snapshot schedule. A `weeklySchedule` block as defined below. WeeklySchedule SnapshotPolicyWeeklySchedulePtrInput } func (SnapshotPolicyArgs) ElementType() reflect.Type { return reflect.TypeOf((*snapshotPolicyArgs)(nil)).Elem() } type SnapshotPolicyInput interface { pulumi.Input ToSnapshotPolicyOutput() SnapshotPolicyOutput ToSnapshotPolicyOutputWithContext(ctx context.Context) SnapshotPolicyOutput } func (*SnapshotPolicy) ElementType() reflect.Type { return reflect.TypeOf((**SnapshotPolicy)(nil)).Elem() } func (i *SnapshotPolicy) ToSnapshotPolicyOutput() SnapshotPolicyOutput { return i.ToSnapshotPolicyOutputWithContext(context.Background()) } func (i *SnapshotPolicy) ToSnapshotPolicyOutputWithContext(ctx context.Context) SnapshotPolicyOutput { return pulumi.ToOutputWithContext(ctx, i).(SnapshotPolicyOutput) } // SnapshotPolicyArrayInput is an input type that accepts SnapshotPolicyArray and SnapshotPolicyArrayOutput values. // You can construct a concrete instance of `SnapshotPolicyArrayInput` via: // // SnapshotPolicyArray{ SnapshotPolicyArgs{...} } type SnapshotPolicyArrayInput interface { pulumi.Input ToSnapshotPolicyArrayOutput() SnapshotPolicyArrayOutput ToSnapshotPolicyArrayOutputWithContext(context.Context) SnapshotPolicyArrayOutput } type SnapshotPolicyArray []SnapshotPolicyInput func (SnapshotPolicyArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*SnapshotPolicy)(nil)).Elem() } func (i SnapshotPolicyArray) ToSnapshotPolicyArrayOutput() SnapshotPolicyArrayOutput { return i.ToSnapshotPolicyArrayOutputWithContext(context.Background()) } func (i SnapshotPolicyArray) ToSnapshotPolicyArrayOutputWithContext(ctx context.Context) SnapshotPolicyArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(SnapshotPolicyArrayOutput) } // SnapshotPolicyMapInput is an input type that accepts SnapshotPolicyMap and SnapshotPolicyMapOutput values. // You can construct a concrete instance of `SnapshotPolicyMapInput` via: // // SnapshotPolicyMap{ "key": SnapshotPolicyArgs{...} } type SnapshotPolicyMapInput interface { pulumi.Input ToSnapshotPolicyMapOutput() SnapshotPolicyMapOutput ToSnapshotPolicyMapOutputWithContext(context.Context) SnapshotPolicyMapOutput } type SnapshotPolicyMap map[string]SnapshotPolicyInput func (SnapshotPolicyMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*SnapshotPolicy)(nil)).Elem() } func (i SnapshotPolicyMap) ToSnapshotPolicyMapOutput() SnapshotPolicyMapOutput { return i.ToSnapshotPolicyMapOutputWithContext(context.Background()) } func (i SnapshotPolicyMap) ToSnapshotPolicyMapOutputWithContext(ctx context.Context) SnapshotPolicyMapOutput { return pulumi.ToOutputWithContext(ctx, i).(SnapshotPolicyMapOutput) } type SnapshotPolicyOutput struct{ *pulumi.OutputState } func (SnapshotPolicyOutput) ElementType() reflect.Type { return reflect.TypeOf((**SnapshotPolicy)(nil)).Elem() } func (o SnapshotPolicyOutput) ToSnapshotPolicyOutput() SnapshotPolicyOutput { return o } func (o SnapshotPolicyOutput) ToSnapshotPolicyOutputWithContext(ctx context.Context) SnapshotPolicyOutput { return o } // The name of the NetApp Account in which the NetApp Snapshot Policy should be created. Changing this forces a new resource to be created. func (o SnapshotPolicyOutput) AccountName() pulumi.StringOutput { return o.ApplyT(func(v *SnapshotPolicy) pulumi.StringOutput { return v.AccountName }).(pulumi.StringOutput) } // Sets a daily snapshot schedule. A `dailySchedule` block as defined below. func (o SnapshotPolicyOutput) DailySchedule() SnapshotPolicyDailySchedulePtrOutput { return o.ApplyT(func(v *SnapshotPolicy) SnapshotPolicyDailySchedulePtrOutput { return v.DailySchedule }).(SnapshotPolicyDailySchedulePtrOutput) } // Defines that the NetApp Snapshot Policy is enabled or not. func (o SnapshotPolicyOutput) Enabled() pulumi.BoolOutput { return o.ApplyT(func(v *SnapshotPolicy) pulumi.BoolOutput { return v.Enabled }).(pulumi.BoolOutput) } // Sets an hourly snapshot schedule. A `hourlySchedule` block as defined below. func (o SnapshotPolicyOutput) HourlySchedule() SnapshotPolicyHourlySchedulePtrOutput { return o.ApplyT(func(v *SnapshotPolicy) SnapshotPolicyHourlySchedulePtrOutput { return v.HourlySchedule }).(SnapshotPolicyHourlySchedulePtrOutput) } // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. func (o SnapshotPolicyOutput) Location() pulumi.StringOutput { return o.ApplyT(func(v *SnapshotPolicy) pulumi.StringOutput { return v.Location }).(pulumi.StringOutput) } // Sets a monthly snapshot schedule. A `monthlySchedule` block as defined below. func (o SnapshotPolicyOutput) MonthlySchedule() SnapshotPolicyMonthlySchedulePtrOutput { return o.ApplyT(func(v *SnapshotPolicy) SnapshotPolicyMonthlySchedulePtrOutput { return v.MonthlySchedule }).(SnapshotPolicyMonthlySchedulePtrOutput) } // The name of the NetApp Snapshot Policy. Changing this forces a new resource to be created. func (o SnapshotPolicyOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *SnapshotPolicy) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // The name of the resource group where the NetApp Snapshot Policy should be created. Changing this forces a new resource to be created. func (o SnapshotPolicyOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v *SnapshotPolicy) pulumi.StringOutput { return v.ResourceGroupName }).(pulumi.StringOutput) } // A mapping of tags to assign to the resource. func (o SnapshotPolicyOutput) Tags() pulumi.StringMapOutput { return o.ApplyT(func(v *SnapshotPolicy) pulumi.StringMapOutput { return v.Tags }).(pulumi.StringMapOutput) } // Sets a weekly snapshot schedule. A `weeklySchedule` block as defined below. func (o SnapshotPolicyOutput) WeeklySchedule() SnapshotPolicyWeeklySchedulePtrOutput { return o.ApplyT(func(v *SnapshotPolicy) SnapshotPolicyWeeklySchedulePtrOutput { return v.WeeklySchedule }).(SnapshotPolicyWeeklySchedulePtrOutput) } type SnapshotPolicyArrayOutput struct{ *pulumi.OutputState } func (SnapshotPolicyArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*SnapshotPolicy)(nil)).Elem() } func (o SnapshotPolicyArrayOutput) ToSnapshotPolicyArrayOutput() SnapshotPolicyArrayOutput { return o } func (o SnapshotPolicyArrayOutput) ToSnapshotPolicyArrayOutputWithContext(ctx context.Context) SnapshotPolicyArrayOutput { return o } func (o SnapshotPolicyArrayOutput) Index(i pulumi.IntInput) SnapshotPolicyOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *SnapshotPolicy { return vs[0].([]*SnapshotPolicy)[vs[1].(int)] }).(SnapshotPolicyOutput) } type SnapshotPolicyMapOutput struct{ *pulumi.OutputState } func (SnapshotPolicyMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*SnapshotPolicy)(nil)).Elem() } func (o SnapshotPolicyMapOutput) ToSnapshotPolicyMapOutput() SnapshotPolicyMapOutput { return o } func (o SnapshotPolicyMapOutput) ToSnapshotPolicyMapOutputWithContext(ctx context.Context) SnapshotPolicyMapOutput { return o } func (o SnapshotPolicyMapOutput) MapIndex(k pulumi.StringInput) SnapshotPolicyOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *SnapshotPolicy { return vs[0].(map[string]*SnapshotPolicy)[vs[1].(string)] }).(SnapshotPolicyOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*SnapshotPolicyInput)(nil)).Elem(), &SnapshotPolicy{}) pulumi.RegisterInputType(reflect.TypeOf((*SnapshotPolicyArrayInput)(nil)).Elem(), SnapshotPolicyArray{}) pulumi.RegisterInputType(reflect.TypeOf((*SnapshotPolicyMapInput)(nil)).Elem(), SnapshotPolicyMap{}) pulumi.RegisterOutputType(SnapshotPolicyOutput{}) pulumi.RegisterOutputType(SnapshotPolicyArrayOutput{}) pulumi.RegisterOutputType(SnapshotPolicyMapOutput{}) }
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/netapp/getVolume.go
sdk/go/azure/netapp/getVolume.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 netapp import ( "context" "reflect" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Uses this data source to access information about an existing NetApp Volume. // // ## NetApp Volume Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/netapp" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { // example, err := netapp.LookupVolume(ctx, &netapp.LookupVolumeArgs{ // ResourceGroupName: "acctestRG", // AccountName: "acctestnetappaccount", // PoolName: "acctestnetapppool", // Name: "example-volume", // }, nil) // if err != nil { // return err // } // ctx.Export("netappVolumeId", example.Id) // return nil // }) // } // // ``` // // ## API Providers // // <!-- This section is generated, changes will be overwritten --> // This data source uses the following Azure API Providers: // // * `Microsoft.NetApp` - 2025-06-01 func LookupVolume(ctx *pulumi.Context, args *LookupVolumeArgs, opts ...pulumi.InvokeOption) (*LookupVolumeResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupVolumeResult err := ctx.Invoke("azure:netapp/getVolume:getVolume", args, &rv, opts...) if err != nil { return nil, err } return &rv, nil } // A collection of arguments for invoking getVolume. type LookupVolumeArgs struct { // The name of the NetApp account where the NetApp pool exists. AccountName string `pulumi:"accountName"` // The name of the NetApp Volume. Name string `pulumi:"name"` // The name of the NetApp pool where the NetApp volume exists. PoolName string `pulumi:"poolName"` // The Name of the Resource Group where the NetApp Volume exists. ResourceGroupName string `pulumi:"resourceGroupName"` // Volume security style SecurityStyle *string `pulumi:"securityStyle"` } // A collection of values returned by getVolume. type LookupVolumeResult struct { // The accept grow capacity pool for short term clone split property. AcceptGrowCapacityPoolForShortTermCloneSplit string `pulumi:"acceptGrowCapacityPoolForShortTermCloneSplit"` AccountName string `pulumi:"accountName"` // A data protecion backup policy block DataProtectionBackupPolicies []GetVolumeDataProtectionBackupPolicy `pulumi:"dataProtectionBackupPolicies"` // Volume data protection replication block DataProtectionReplications []GetVolumeDataProtectionReplication `pulumi:"dataProtectionReplications"` EncryptionKeySource string `pulumi:"encryptionKeySource"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` KeyVaultPrivateEndpointId string `pulumi:"keyVaultPrivateEndpointId"` // Indicates if the volume is a large volume. LargeVolumeEnabled bool `pulumi:"largeVolumeEnabled"` // The Azure Region where the NetApp Volume exists. Location string `pulumi:"location"` // A list of IPv4 Addresses which should be used to mount the volume. MountIpAddresses []string `pulumi:"mountIpAddresses"` Name string `pulumi:"name"` // Network features in use `Basic` or `Standard`. NetworkFeatures string `pulumi:"networkFeatures"` PoolName string `pulumi:"poolName"` // A list of protocol types enabled on volume. Protocols []string `pulumi:"protocols"` ResourceGroupName string `pulumi:"resourceGroupName"` // Volume security style SecurityStyle *string `pulumi:"securityStyle"` // The service level of the file system. ServiceLevel string `pulumi:"serviceLevel"` // Limits enumeration of files and folders (that is, listing the contents) in SMB only to users with allowed access on the share. SmbAccessBasedEnumerationEnabled bool `pulumi:"smbAccessBasedEnumerationEnabled"` // Limits clients from browsing for an SMB share. SmbNonBrowsableEnabled bool `pulumi:"smbNonBrowsableEnabled"` // The maximum Storage Quota in Gigabytes allowed for a file system. StorageQuotaInGb int `pulumi:"storageQuotaInGb"` // The ID of a Subnet in which the NetApp Volume resides. SubnetId string `pulumi:"subnetId"` // The unique file path of the volume. VolumePath string `pulumi:"volumePath"` // The Availability Zone in which the Volume is located. Zone string `pulumi:"zone"` } func LookupVolumeOutput(ctx *pulumi.Context, args LookupVolumeOutputArgs, opts ...pulumi.InvokeOption) LookupVolumeResultOutput { return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupVolumeResultOutput, error) { args := v.(LookupVolumeArgs) options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} return ctx.InvokeOutput("azure:netapp/getVolume:getVolume", args, LookupVolumeResultOutput{}, options).(LookupVolumeResultOutput), nil }).(LookupVolumeResultOutput) } // A collection of arguments for invoking getVolume. type LookupVolumeOutputArgs struct { // The name of the NetApp account where the NetApp pool exists. AccountName pulumi.StringInput `pulumi:"accountName"` // The name of the NetApp Volume. Name pulumi.StringInput `pulumi:"name"` // The name of the NetApp pool where the NetApp volume exists. PoolName pulumi.StringInput `pulumi:"poolName"` // The Name of the Resource Group where the NetApp Volume exists. ResourceGroupName pulumi.StringInput `pulumi:"resourceGroupName"` // Volume security style SecurityStyle pulumi.StringPtrInput `pulumi:"securityStyle"` } func (LookupVolumeOutputArgs) ElementType() reflect.Type { return reflect.TypeOf((*LookupVolumeArgs)(nil)).Elem() } // A collection of values returned by getVolume. type LookupVolumeResultOutput struct{ *pulumi.OutputState } func (LookupVolumeResultOutput) ElementType() reflect.Type { return reflect.TypeOf((*LookupVolumeResult)(nil)).Elem() } func (o LookupVolumeResultOutput) ToLookupVolumeResultOutput() LookupVolumeResultOutput { return o } func (o LookupVolumeResultOutput) ToLookupVolumeResultOutputWithContext(ctx context.Context) LookupVolumeResultOutput { return o } // The accept grow capacity pool for short term clone split property. func (o LookupVolumeResultOutput) AcceptGrowCapacityPoolForShortTermCloneSplit() pulumi.StringOutput { return o.ApplyT(func(v LookupVolumeResult) string { return v.AcceptGrowCapacityPoolForShortTermCloneSplit }).(pulumi.StringOutput) } func (o LookupVolumeResultOutput) AccountName() pulumi.StringOutput { return o.ApplyT(func(v LookupVolumeResult) string { return v.AccountName }).(pulumi.StringOutput) } // A data protecion backup policy block func (o LookupVolumeResultOutput) DataProtectionBackupPolicies() GetVolumeDataProtectionBackupPolicyArrayOutput { return o.ApplyT(func(v LookupVolumeResult) []GetVolumeDataProtectionBackupPolicy { return v.DataProtectionBackupPolicies }).(GetVolumeDataProtectionBackupPolicyArrayOutput) } // Volume data protection replication block func (o LookupVolumeResultOutput) DataProtectionReplications() GetVolumeDataProtectionReplicationArrayOutput { return o.ApplyT(func(v LookupVolumeResult) []GetVolumeDataProtectionReplication { return v.DataProtectionReplications }).(GetVolumeDataProtectionReplicationArrayOutput) } func (o LookupVolumeResultOutput) EncryptionKeySource() pulumi.StringOutput { return o.ApplyT(func(v LookupVolumeResult) string { return v.EncryptionKeySource }).(pulumi.StringOutput) } // The provider-assigned unique ID for this managed resource. func (o LookupVolumeResultOutput) Id() pulumi.StringOutput { return o.ApplyT(func(v LookupVolumeResult) string { return v.Id }).(pulumi.StringOutput) } func (o LookupVolumeResultOutput) KeyVaultPrivateEndpointId() pulumi.StringOutput { return o.ApplyT(func(v LookupVolumeResult) string { return v.KeyVaultPrivateEndpointId }).(pulumi.StringOutput) } // Indicates if the volume is a large volume. func (o LookupVolumeResultOutput) LargeVolumeEnabled() pulumi.BoolOutput { return o.ApplyT(func(v LookupVolumeResult) bool { return v.LargeVolumeEnabled }).(pulumi.BoolOutput) } // The Azure Region where the NetApp Volume exists. func (o LookupVolumeResultOutput) Location() pulumi.StringOutput { return o.ApplyT(func(v LookupVolumeResult) string { return v.Location }).(pulumi.StringOutput) } // A list of IPv4 Addresses which should be used to mount the volume. func (o LookupVolumeResultOutput) MountIpAddresses() pulumi.StringArrayOutput { return o.ApplyT(func(v LookupVolumeResult) []string { return v.MountIpAddresses }).(pulumi.StringArrayOutput) } func (o LookupVolumeResultOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v LookupVolumeResult) string { return v.Name }).(pulumi.StringOutput) } // Network features in use `Basic` or `Standard`. func (o LookupVolumeResultOutput) NetworkFeatures() pulumi.StringOutput { return o.ApplyT(func(v LookupVolumeResult) string { return v.NetworkFeatures }).(pulumi.StringOutput) } func (o LookupVolumeResultOutput) PoolName() pulumi.StringOutput { return o.ApplyT(func(v LookupVolumeResult) string { return v.PoolName }).(pulumi.StringOutput) } // A list of protocol types enabled on volume. func (o LookupVolumeResultOutput) Protocols() pulumi.StringArrayOutput { return o.ApplyT(func(v LookupVolumeResult) []string { return v.Protocols }).(pulumi.StringArrayOutput) } func (o LookupVolumeResultOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v LookupVolumeResult) string { return v.ResourceGroupName }).(pulumi.StringOutput) } // Volume security style func (o LookupVolumeResultOutput) SecurityStyle() pulumi.StringPtrOutput { return o.ApplyT(func(v LookupVolumeResult) *string { return v.SecurityStyle }).(pulumi.StringPtrOutput) } // The service level of the file system. func (o LookupVolumeResultOutput) ServiceLevel() pulumi.StringOutput { return o.ApplyT(func(v LookupVolumeResult) string { return v.ServiceLevel }).(pulumi.StringOutput) } // Limits enumeration of files and folders (that is, listing the contents) in SMB only to users with allowed access on the share. func (o LookupVolumeResultOutput) SmbAccessBasedEnumerationEnabled() pulumi.BoolOutput { return o.ApplyT(func(v LookupVolumeResult) bool { return v.SmbAccessBasedEnumerationEnabled }).(pulumi.BoolOutput) } // Limits clients from browsing for an SMB share. func (o LookupVolumeResultOutput) SmbNonBrowsableEnabled() pulumi.BoolOutput { return o.ApplyT(func(v LookupVolumeResult) bool { return v.SmbNonBrowsableEnabled }).(pulumi.BoolOutput) } // The maximum Storage Quota in Gigabytes allowed for a file system. func (o LookupVolumeResultOutput) StorageQuotaInGb() pulumi.IntOutput { return o.ApplyT(func(v LookupVolumeResult) int { return v.StorageQuotaInGb }).(pulumi.IntOutput) } // The ID of a Subnet in which the NetApp Volume resides. func (o LookupVolumeResultOutput) SubnetId() pulumi.StringOutput { return o.ApplyT(func(v LookupVolumeResult) string { return v.SubnetId }).(pulumi.StringOutput) } // The unique file path of the volume. func (o LookupVolumeResultOutput) VolumePath() pulumi.StringOutput { return o.ApplyT(func(v LookupVolumeResult) string { return v.VolumePath }).(pulumi.StringOutput) } // The Availability Zone in which the Volume is located. func (o LookupVolumeResultOutput) Zone() pulumi.StringOutput { return o.ApplyT(func(v LookupVolumeResult) string { return v.Zone }).(pulumi.StringOutput) } func init() { pulumi.RegisterOutputType(LookupVolumeResultOutput{}) }
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/netapp/account.go
sdk/go/azure/netapp/account.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 netapp import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a NetApp Account. // // > **Note:** Azure allows only one active directory can be joined to a single subscription at a time for NetApp Account. // // ## NetApp Account Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/authorization" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/netapp" // "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 = core.GetClientConfig(ctx, map[string]interface{}{}, nil) // if err != nil { // return err // } // exampleUserAssignedIdentity, err := authorization.NewUserAssignedIdentity(ctx, "example", &authorization.UserAssignedIdentityArgs{ // Name: pulumi.String("anf-user-assigned-identity"), // Location: example.Location, // ResourceGroupName: example.Name, // }) // if err != nil { // return err // } // _, err = netapp.NewAccount(ctx, "example", &netapp.AccountArgs{ // Name: pulumi.String("netappaccount"), // Location: example.Location, // ResourceGroupName: example.Name, // ActiveDirectory: &netapp.AccountActiveDirectoryArgs{ // Username: pulumi.String("aduser"), // Password: pulumi.String("aduserpwd"), // SmbServerName: pulumi.String("SMBSERVER"), // DnsServers: pulumi.StringArray{ // pulumi.String("1.2.3.4"), // }, // Domain: pulumi.String("westcentralus.com"), // OrganizationalUnit: pulumi.String("OU=FirstLevel"), // }, // Identity: &netapp.AccountIdentityArgs{ // Type: pulumi.String("UserAssigned"), // IdentityIds: pulumi.StringArray{ // exampleUserAssignedIdentity.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.NetApp` - 2025-06-01 // // ## Import // // NetApp Accounts can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:netapp/account:Account example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.NetApp/netAppAccounts/account1 // ``` type Account struct { pulumi.CustomResourceState // A `activeDirectory` block as defined below. ActiveDirectory AccountActiveDirectoryPtrOutput `pulumi:"activeDirectory"` // The `identity` block where it is used when customer managed keys based encryption will be enabled as defined below. Identity AccountIdentityPtrOutput `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 name of the NetApp Account. Changing this forces a new resource to be created. Name pulumi.StringOutput `pulumi:"name"` // The name of the resource group where the NetApp Account should be created. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // A mapping of tags to assign to the resource. Tags pulumi.StringMapOutput `pulumi:"tags"` } // NewAccount registers a new resource with the given unique name, arguments, and options. func NewAccount(ctx *pulumi.Context, name string, args *AccountArgs, opts ...pulumi.ResourceOption) (*Account, 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 Account err := ctx.RegisterResource("azure:netapp/account:Account", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetAccount gets an existing Account resource's state with the given name, ID, and optional // state properties that are used to uniquely qualify the lookup (nil if not required). func GetAccount(ctx *pulumi.Context, name string, id pulumi.IDInput, state *AccountState, opts ...pulumi.ResourceOption) (*Account, error) { var resource Account err := ctx.ReadResource("azure:netapp/account:Account", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering Account resources. type accountState struct { // A `activeDirectory` block as defined below. ActiveDirectory *AccountActiveDirectory `pulumi:"activeDirectory"` // The `identity` block where it is used when customer managed keys based encryption will be enabled as defined below. Identity *AccountIdentity `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 name of the NetApp Account. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // The name of the resource group where the NetApp Account should be created. Changing this forces a new resource to be created. ResourceGroupName *string `pulumi:"resourceGroupName"` // A mapping of tags to assign to the resource. Tags map[string]string `pulumi:"tags"` } type AccountState struct { // A `activeDirectory` block as defined below. ActiveDirectory AccountActiveDirectoryPtrInput // The `identity` block where it is used when customer managed keys based encryption will be enabled as defined below. Identity AccountIdentityPtrInput // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location pulumi.StringPtrInput // The name of the NetApp Account. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // The name of the resource group where the NetApp Account should be created. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringPtrInput // A mapping of tags to assign to the resource. Tags pulumi.StringMapInput } func (AccountState) ElementType() reflect.Type { return reflect.TypeOf((*accountState)(nil)).Elem() } type accountArgs struct { // A `activeDirectory` block as defined below. ActiveDirectory *AccountActiveDirectory `pulumi:"activeDirectory"` // The `identity` block where it is used when customer managed keys based encryption will be enabled as defined below. Identity *AccountIdentity `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 name of the NetApp Account. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // The name of the resource group where the NetApp Account should be created. Changing this forces a new resource to be created. ResourceGroupName string `pulumi:"resourceGroupName"` // A mapping of tags to assign to the resource. Tags map[string]string `pulumi:"tags"` } // The set of arguments for constructing a Account resource. type AccountArgs struct { // A `activeDirectory` block as defined below. ActiveDirectory AccountActiveDirectoryPtrInput // The `identity` block where it is used when customer managed keys based encryption will be enabled as defined below. Identity AccountIdentityPtrInput // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location pulumi.StringPtrInput // The name of the NetApp Account. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // The name of the resource group where the NetApp Account should be created. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringInput // A mapping of tags to assign to the resource. Tags pulumi.StringMapInput } func (AccountArgs) ElementType() reflect.Type { return reflect.TypeOf((*accountArgs)(nil)).Elem() } type AccountInput interface { pulumi.Input ToAccountOutput() AccountOutput ToAccountOutputWithContext(ctx context.Context) AccountOutput } func (*Account) ElementType() reflect.Type { return reflect.TypeOf((**Account)(nil)).Elem() } func (i *Account) ToAccountOutput() AccountOutput { return i.ToAccountOutputWithContext(context.Background()) } func (i *Account) ToAccountOutputWithContext(ctx context.Context) AccountOutput { return pulumi.ToOutputWithContext(ctx, i).(AccountOutput) } // AccountArrayInput is an input type that accepts AccountArray and AccountArrayOutput values. // You can construct a concrete instance of `AccountArrayInput` via: // // AccountArray{ AccountArgs{...} } type AccountArrayInput interface { pulumi.Input ToAccountArrayOutput() AccountArrayOutput ToAccountArrayOutputWithContext(context.Context) AccountArrayOutput } type AccountArray []AccountInput func (AccountArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*Account)(nil)).Elem() } func (i AccountArray) ToAccountArrayOutput() AccountArrayOutput { return i.ToAccountArrayOutputWithContext(context.Background()) } func (i AccountArray) ToAccountArrayOutputWithContext(ctx context.Context) AccountArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(AccountArrayOutput) } // AccountMapInput is an input type that accepts AccountMap and AccountMapOutput values. // You can construct a concrete instance of `AccountMapInput` via: // // AccountMap{ "key": AccountArgs{...} } type AccountMapInput interface { pulumi.Input ToAccountMapOutput() AccountMapOutput ToAccountMapOutputWithContext(context.Context) AccountMapOutput } type AccountMap map[string]AccountInput func (AccountMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*Account)(nil)).Elem() } func (i AccountMap) ToAccountMapOutput() AccountMapOutput { return i.ToAccountMapOutputWithContext(context.Background()) } func (i AccountMap) ToAccountMapOutputWithContext(ctx context.Context) AccountMapOutput { return pulumi.ToOutputWithContext(ctx, i).(AccountMapOutput) } type AccountOutput struct{ *pulumi.OutputState } func (AccountOutput) ElementType() reflect.Type { return reflect.TypeOf((**Account)(nil)).Elem() } func (o AccountOutput) ToAccountOutput() AccountOutput { return o } func (o AccountOutput) ToAccountOutputWithContext(ctx context.Context) AccountOutput { return o } // A `activeDirectory` block as defined below. func (o AccountOutput) ActiveDirectory() AccountActiveDirectoryPtrOutput { return o.ApplyT(func(v *Account) AccountActiveDirectoryPtrOutput { return v.ActiveDirectory }).(AccountActiveDirectoryPtrOutput) } // The `identity` block where it is used when customer managed keys based encryption will be enabled as defined below. func (o AccountOutput) Identity() AccountIdentityPtrOutput { return o.ApplyT(func(v *Account) AccountIdentityPtrOutput { return v.Identity }).(AccountIdentityPtrOutput) } // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. func (o AccountOutput) Location() pulumi.StringOutput { return o.ApplyT(func(v *Account) pulumi.StringOutput { return v.Location }).(pulumi.StringOutput) } // The name of the NetApp Account. Changing this forces a new resource to be created. func (o AccountOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *Account) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // The name of the resource group where the NetApp Account should be created. Changing this forces a new resource to be created. func (o AccountOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v *Account) pulumi.StringOutput { return v.ResourceGroupName }).(pulumi.StringOutput) } // A mapping of tags to assign to the resource. func (o AccountOutput) Tags() pulumi.StringMapOutput { return o.ApplyT(func(v *Account) pulumi.StringMapOutput { return v.Tags }).(pulumi.StringMapOutput) } type AccountArrayOutput struct{ *pulumi.OutputState } func (AccountArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*Account)(nil)).Elem() } func (o AccountArrayOutput) ToAccountArrayOutput() AccountArrayOutput { return o } func (o AccountArrayOutput) ToAccountArrayOutputWithContext(ctx context.Context) AccountArrayOutput { return o } func (o AccountArrayOutput) Index(i pulumi.IntInput) AccountOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *Account { return vs[0].([]*Account)[vs[1].(int)] }).(AccountOutput) } type AccountMapOutput struct{ *pulumi.OutputState } func (AccountMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*Account)(nil)).Elem() } func (o AccountMapOutput) ToAccountMapOutput() AccountMapOutput { return o } func (o AccountMapOutput) ToAccountMapOutputWithContext(ctx context.Context) AccountMapOutput { return o } func (o AccountMapOutput) MapIndex(k pulumi.StringInput) AccountOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *Account { return vs[0].(map[string]*Account)[vs[1].(string)] }).(AccountOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*AccountInput)(nil)).Elem(), &Account{}) pulumi.RegisterInputType(reflect.TypeOf((*AccountArrayInput)(nil)).Elem(), AccountArray{}) pulumi.RegisterInputType(reflect.TypeOf((*AccountMapInput)(nil)).Elem(), AccountMap{}) pulumi.RegisterOutputType(AccountOutput{}) pulumi.RegisterOutputType(AccountArrayOutput{}) pulumi.RegisterOutputType(AccountMapOutput{}) }
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/netapp/getBackupVault.go
sdk/go/azure/netapp/getBackupVault.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 netapp 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 NetApp Backup Vault. // // ## NetApp Backup Vault Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/netapp" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { // example, err := netapp.LookupBackupVault(ctx, &netapp.LookupBackupVaultArgs{ // ResourceGroupName: "example-resource-group", // AccountName: "example-netappaccount", // Name: "example-backupvault", // }, nil) // if err != nil { // return err // } // ctx.Export("backupVaultId", example.Id) // return nil // }) // } // // ``` // // ## API Providers // // <!-- This section is generated, changes will be overwritten --> // This data source uses the following Azure API Providers: // // * `Microsoft.NetApp` - 2025-06-01 func LookupBackupVault(ctx *pulumi.Context, args *LookupBackupVaultArgs, opts ...pulumi.InvokeOption) (*LookupBackupVaultResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupBackupVaultResult err := ctx.Invoke("azure:netapp/getBackupVault:getBackupVault", args, &rv, opts...) if err != nil { return nil, err } return &rv, nil } // A collection of arguments for invoking getBackupVault. type LookupBackupVaultArgs struct { // The name of the NetApp Account in which the NetApp Vault exists. AccountName string `pulumi:"accountName"` // The name of the NetApp Backup Vault. Name string `pulumi:"name"` // The name of the resource group where the NetApp Backup Vault exists. ResourceGroupName string `pulumi:"resourceGroupName"` } // A collection of values returned by getBackupVault. type LookupBackupVaultResult struct { AccountName string `pulumi:"accountName"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` Location string `pulumi:"location"` Name string `pulumi:"name"` ResourceGroupName string `pulumi:"resourceGroupName"` Tags map[string]string `pulumi:"tags"` } func LookupBackupVaultOutput(ctx *pulumi.Context, args LookupBackupVaultOutputArgs, opts ...pulumi.InvokeOption) LookupBackupVaultResultOutput { return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupBackupVaultResultOutput, error) { args := v.(LookupBackupVaultArgs) options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} return ctx.InvokeOutput("azure:netapp/getBackupVault:getBackupVault", args, LookupBackupVaultResultOutput{}, options).(LookupBackupVaultResultOutput), nil }).(LookupBackupVaultResultOutput) } // A collection of arguments for invoking getBackupVault. type LookupBackupVaultOutputArgs struct { // The name of the NetApp Account in which the NetApp Vault exists. AccountName pulumi.StringInput `pulumi:"accountName"` // The name of the NetApp Backup Vault. Name pulumi.StringInput `pulumi:"name"` // The name of the resource group where the NetApp Backup Vault exists. ResourceGroupName pulumi.StringInput `pulumi:"resourceGroupName"` } func (LookupBackupVaultOutputArgs) ElementType() reflect.Type { return reflect.TypeOf((*LookupBackupVaultArgs)(nil)).Elem() } // A collection of values returned by getBackupVault. type LookupBackupVaultResultOutput struct{ *pulumi.OutputState } func (LookupBackupVaultResultOutput) ElementType() reflect.Type { return reflect.TypeOf((*LookupBackupVaultResult)(nil)).Elem() } func (o LookupBackupVaultResultOutput) ToLookupBackupVaultResultOutput() LookupBackupVaultResultOutput { return o } func (o LookupBackupVaultResultOutput) ToLookupBackupVaultResultOutputWithContext(ctx context.Context) LookupBackupVaultResultOutput { return o } func (o LookupBackupVaultResultOutput) AccountName() pulumi.StringOutput { return o.ApplyT(func(v LookupBackupVaultResult) string { return v.AccountName }).(pulumi.StringOutput) } // The provider-assigned unique ID for this managed resource. func (o LookupBackupVaultResultOutput) Id() pulumi.StringOutput { return o.ApplyT(func(v LookupBackupVaultResult) string { return v.Id }).(pulumi.StringOutput) } func (o LookupBackupVaultResultOutput) Location() pulumi.StringOutput { return o.ApplyT(func(v LookupBackupVaultResult) string { return v.Location }).(pulumi.StringOutput) } func (o LookupBackupVaultResultOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v LookupBackupVaultResult) string { return v.Name }).(pulumi.StringOutput) } func (o LookupBackupVaultResultOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v LookupBackupVaultResult) string { return v.ResourceGroupName }).(pulumi.StringOutput) } func (o LookupBackupVaultResultOutput) Tags() pulumi.StringMapOutput { return o.ApplyT(func(v LookupBackupVaultResult) map[string]string { return v.Tags }).(pulumi.StringMapOutput) } func init() { pulumi.RegisterOutputType(LookupBackupVaultResultOutput{}) }
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/netapp/accountEncryption.go
sdk/go/azure/netapp/accountEncryption.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 netapp import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a NetApp Account Encryption Resource. // // For more information about Azure NetApp Files Customer-Managed Keys feature, please refer to [Configure customer-managed keys for Azure NetApp Files volume encryption](https://learn.microsoft.com/en-us/azure/azure-netapp-files/configure-customer-managed-keys) // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/authorization" // "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/netapp" // "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 // } // exampleUserAssignedIdentity, err := authorization.NewUserAssignedIdentity(ctx, "example", &authorization.UserAssignedIdentityArgs{ // Name: pulumi.String("anf-user-assigned-identity"), // Location: example.Location, // ResourceGroupName: example.Name, // }) // if err != nil { // return err // } // exampleKeyVault, err := keyvault.NewKeyVault(ctx, "example", &keyvault.KeyVaultArgs{ // Name: pulumi.String("anfcmkakv"), // Location: example.Location, // ResourceGroupName: example.Name, // EnabledForDiskEncryption: pulumi.Bool(true), // EnabledForDeployment: pulumi.Bool(true), // EnabledForTemplateDeployment: pulumi.Bool(true), // PurgeProtectionEnabled: pulumi.Bool(true), // TenantId: pulumi.String("00000000-0000-0000-0000-000000000000"), // SkuName: pulumi.String("standard"), // AccessPolicies: keyvault.KeyVaultAccessPolicyArray{ // &keyvault.KeyVaultAccessPolicyArgs{ // TenantId: pulumi.String("00000000-0000-0000-0000-000000000000"), // ObjectId: pulumi.String(current.ObjectId), // KeyPermissions: pulumi.StringArray{ // pulumi.String("Get"), // pulumi.String("Create"), // pulumi.String("Delete"), // pulumi.String("WrapKey"), // pulumi.String("UnwrapKey"), // pulumi.String("GetRotationPolicy"), // pulumi.String("SetRotationPolicy"), // }, // }, // &keyvault.KeyVaultAccessPolicyArgs{ // TenantId: pulumi.String("00000000-0000-0000-0000-000000000000"), // ObjectId: exampleUserAssignedIdentity.PrincipalId, // KeyPermissions: pulumi.StringArray{ // pulumi.String("Get"), // pulumi.String("Encrypt"), // pulumi.String("Decrypt"), // }, // }, // }, // }) // if err != nil { // return err // } // exampleKey, err := keyvault.NewKey(ctx, "example", &keyvault.KeyArgs{ // Name: pulumi.String("anfencryptionkey"), // KeyVaultId: exampleKeyVault.ID(), // KeyType: pulumi.String("RSA"), // KeySize: pulumi.Int(2048), // KeyOpts: pulumi.StringArray{ // pulumi.String("decrypt"), // pulumi.String("encrypt"), // pulumi.String("sign"), // pulumi.String("unwrapKey"), // pulumi.String("verify"), // pulumi.String("wrapKey"), // }, // }) // if err != nil { // return err // } // exampleAccount, err := netapp.NewAccount(ctx, "example", &netapp.AccountArgs{ // Name: pulumi.String("netappaccount"), // Location: example.Location, // ResourceGroupName: example.Name, // Identity: &netapp.AccountIdentityArgs{ // Type: pulumi.String("UserAssigned"), // IdentityIds: pulumi.StringArray{ // exampleUserAssignedIdentity.ID(), // }, // }, // }) // if err != nil { // return err // } // _, err = netapp.NewAccountEncryption(ctx, "example", &netapp.AccountEncryptionArgs{ // NetappAccountId: exampleAccount.ID(), // UserAssignedIdentityId: exampleUserAssignedIdentity.ID(), // EncryptionKey: exampleKey.VersionlessId, // FederatedClientId: exampleUserAssignedIdentity.ClientId, // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## Cross-Tenant Usage // // For scenarios where the key vault is in a different Entra ID tenant: // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/netapp" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { // _, err := netapp.NewAccountEncryption(ctx, "cross_tenant", &netapp.AccountEncryptionArgs{ // NetappAccountId: pulumi.Any(example.Id), // UserAssignedIdentityId: pulumi.Any(exampleAzurermUserAssignedIdentity.Id), // EncryptionKey: pulumi.String("https://keyvault-in-other-tenant.vault.azure.net/keys/encryption-key"), // FederatedClientId: pulumi.String("12345678-1234-1234-1234-123456789012"), // CrossTenantKeyVaultResourceId: pulumi.String("/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/remote-rg/providers/Microsoft.KeyVault/vaults/keyvault-in-other-tenant"), // }) // 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.NetApp` - 2025-06-01 // // ## Import // // Account Encryption Resources can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:netapp/accountEncryption:AccountEncryption example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.NetApp/netAppAccounts/account1 // ``` type AccountEncryption struct { pulumi.CustomResourceState // The full resource ID of the cross-tenant key vault. This is recommended when using `federatedClientId` for cross-tenant scenarios to ensure proper validation by Azure APIs. CrossTenantKeyVaultResourceId pulumi.StringPtrOutput `pulumi:"crossTenantKeyVaultResourceId"` // Specify the versionless ID of the encryption key. EncryptionKey pulumi.StringOutput `pulumi:"encryptionKey"` // The Client ID of the multi-tenant Entra ID application used to access cross-tenant key vaults. This is only required when accessing a key vault in a different tenant than the NetApp account. FederatedClientId pulumi.StringPtrOutput `pulumi:"federatedClientId"` // The ID of the NetApp account where volume under it will have customer managed keys-based encryption enabled. NetappAccountId pulumi.StringOutput `pulumi:"netappAccountId"` // The ID of the System Assigned Manged Identity. Conflicts with `userAssignedIdentityId`. SystemAssignedIdentityPrincipalId pulumi.StringPtrOutput `pulumi:"systemAssignedIdentityPrincipalId"` // The ID of the User Assigned Managed Identity. Conflicts with `systemAssignedIdentityPrincipalId`. UserAssignedIdentityId pulumi.StringPtrOutput `pulumi:"userAssignedIdentityId"` } // NewAccountEncryption registers a new resource with the given unique name, arguments, and options. func NewAccountEncryption(ctx *pulumi.Context, name string, args *AccountEncryptionArgs, opts ...pulumi.ResourceOption) (*AccountEncryption, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.EncryptionKey == nil { return nil, errors.New("invalid value for required argument 'EncryptionKey'") } if args.NetappAccountId == nil { return nil, errors.New("invalid value for required argument 'NetappAccountId'") } opts = internal.PkgResourceDefaultOpts(opts) var resource AccountEncryption err := ctx.RegisterResource("azure:netapp/accountEncryption:AccountEncryption", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetAccountEncryption gets an existing AccountEncryption 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 GetAccountEncryption(ctx *pulumi.Context, name string, id pulumi.IDInput, state *AccountEncryptionState, opts ...pulumi.ResourceOption) (*AccountEncryption, error) { var resource AccountEncryption err := ctx.ReadResource("azure:netapp/accountEncryption:AccountEncryption", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering AccountEncryption resources. type accountEncryptionState struct { // The full resource ID of the cross-tenant key vault. This is recommended when using `federatedClientId` for cross-tenant scenarios to ensure proper validation by Azure APIs. CrossTenantKeyVaultResourceId *string `pulumi:"crossTenantKeyVaultResourceId"` // Specify the versionless ID of the encryption key. EncryptionKey *string `pulumi:"encryptionKey"` // The Client ID of the multi-tenant Entra ID application used to access cross-tenant key vaults. This is only required when accessing a key vault in a different tenant than the NetApp account. FederatedClientId *string `pulumi:"federatedClientId"` // The ID of the NetApp account where volume under it will have customer managed keys-based encryption enabled. NetappAccountId *string `pulumi:"netappAccountId"` // The ID of the System Assigned Manged Identity. Conflicts with `userAssignedIdentityId`. SystemAssignedIdentityPrincipalId *string `pulumi:"systemAssignedIdentityPrincipalId"` // The ID of the User Assigned Managed Identity. Conflicts with `systemAssignedIdentityPrincipalId`. UserAssignedIdentityId *string `pulumi:"userAssignedIdentityId"` } type AccountEncryptionState struct { // The full resource ID of the cross-tenant key vault. This is recommended when using `federatedClientId` for cross-tenant scenarios to ensure proper validation by Azure APIs. CrossTenantKeyVaultResourceId pulumi.StringPtrInput // Specify the versionless ID of the encryption key. EncryptionKey pulumi.StringPtrInput // The Client ID of the multi-tenant Entra ID application used to access cross-tenant key vaults. This is only required when accessing a key vault in a different tenant than the NetApp account. FederatedClientId pulumi.StringPtrInput // The ID of the NetApp account where volume under it will have customer managed keys-based encryption enabled. NetappAccountId pulumi.StringPtrInput // The ID of the System Assigned Manged Identity. Conflicts with `userAssignedIdentityId`. SystemAssignedIdentityPrincipalId pulumi.StringPtrInput // The ID of the User Assigned Managed Identity. Conflicts with `systemAssignedIdentityPrincipalId`. UserAssignedIdentityId pulumi.StringPtrInput } func (AccountEncryptionState) ElementType() reflect.Type { return reflect.TypeOf((*accountEncryptionState)(nil)).Elem() } type accountEncryptionArgs struct { // The full resource ID of the cross-tenant key vault. This is recommended when using `federatedClientId` for cross-tenant scenarios to ensure proper validation by Azure APIs. CrossTenantKeyVaultResourceId *string `pulumi:"crossTenantKeyVaultResourceId"` // Specify the versionless ID of the encryption key. EncryptionKey string `pulumi:"encryptionKey"` // The Client ID of the multi-tenant Entra ID application used to access cross-tenant key vaults. This is only required when accessing a key vault in a different tenant than the NetApp account. FederatedClientId *string `pulumi:"federatedClientId"` // The ID of the NetApp account where volume under it will have customer managed keys-based encryption enabled. NetappAccountId string `pulumi:"netappAccountId"` // The ID of the System Assigned Manged Identity. Conflicts with `userAssignedIdentityId`. SystemAssignedIdentityPrincipalId *string `pulumi:"systemAssignedIdentityPrincipalId"` // The ID of the User Assigned Managed Identity. Conflicts with `systemAssignedIdentityPrincipalId`. UserAssignedIdentityId *string `pulumi:"userAssignedIdentityId"` } // The set of arguments for constructing a AccountEncryption resource. type AccountEncryptionArgs struct { // The full resource ID of the cross-tenant key vault. This is recommended when using `federatedClientId` for cross-tenant scenarios to ensure proper validation by Azure APIs. CrossTenantKeyVaultResourceId pulumi.StringPtrInput // Specify the versionless ID of the encryption key. EncryptionKey pulumi.StringInput // The Client ID of the multi-tenant Entra ID application used to access cross-tenant key vaults. This is only required when accessing a key vault in a different tenant than the NetApp account. FederatedClientId pulumi.StringPtrInput // The ID of the NetApp account where volume under it will have customer managed keys-based encryption enabled. NetappAccountId pulumi.StringInput // The ID of the System Assigned Manged Identity. Conflicts with `userAssignedIdentityId`. SystemAssignedIdentityPrincipalId pulumi.StringPtrInput // The ID of the User Assigned Managed Identity. Conflicts with `systemAssignedIdentityPrincipalId`. UserAssignedIdentityId pulumi.StringPtrInput } func (AccountEncryptionArgs) ElementType() reflect.Type { return reflect.TypeOf((*accountEncryptionArgs)(nil)).Elem() } type AccountEncryptionInput interface { pulumi.Input ToAccountEncryptionOutput() AccountEncryptionOutput ToAccountEncryptionOutputWithContext(ctx context.Context) AccountEncryptionOutput } func (*AccountEncryption) ElementType() reflect.Type { return reflect.TypeOf((**AccountEncryption)(nil)).Elem() } func (i *AccountEncryption) ToAccountEncryptionOutput() AccountEncryptionOutput { return i.ToAccountEncryptionOutputWithContext(context.Background()) } func (i *AccountEncryption) ToAccountEncryptionOutputWithContext(ctx context.Context) AccountEncryptionOutput { return pulumi.ToOutputWithContext(ctx, i).(AccountEncryptionOutput) } // AccountEncryptionArrayInput is an input type that accepts AccountEncryptionArray and AccountEncryptionArrayOutput values. // You can construct a concrete instance of `AccountEncryptionArrayInput` via: // // AccountEncryptionArray{ AccountEncryptionArgs{...} } type AccountEncryptionArrayInput interface { pulumi.Input ToAccountEncryptionArrayOutput() AccountEncryptionArrayOutput ToAccountEncryptionArrayOutputWithContext(context.Context) AccountEncryptionArrayOutput } type AccountEncryptionArray []AccountEncryptionInput func (AccountEncryptionArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*AccountEncryption)(nil)).Elem() } func (i AccountEncryptionArray) ToAccountEncryptionArrayOutput() AccountEncryptionArrayOutput { return i.ToAccountEncryptionArrayOutputWithContext(context.Background()) } func (i AccountEncryptionArray) ToAccountEncryptionArrayOutputWithContext(ctx context.Context) AccountEncryptionArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(AccountEncryptionArrayOutput) } // AccountEncryptionMapInput is an input type that accepts AccountEncryptionMap and AccountEncryptionMapOutput values. // You can construct a concrete instance of `AccountEncryptionMapInput` via: // // AccountEncryptionMap{ "key": AccountEncryptionArgs{...} } type AccountEncryptionMapInput interface { pulumi.Input ToAccountEncryptionMapOutput() AccountEncryptionMapOutput ToAccountEncryptionMapOutputWithContext(context.Context) AccountEncryptionMapOutput } type AccountEncryptionMap map[string]AccountEncryptionInput func (AccountEncryptionMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*AccountEncryption)(nil)).Elem() } func (i AccountEncryptionMap) ToAccountEncryptionMapOutput() AccountEncryptionMapOutput { return i.ToAccountEncryptionMapOutputWithContext(context.Background()) } func (i AccountEncryptionMap) ToAccountEncryptionMapOutputWithContext(ctx context.Context) AccountEncryptionMapOutput { return pulumi.ToOutputWithContext(ctx, i).(AccountEncryptionMapOutput) } type AccountEncryptionOutput struct{ *pulumi.OutputState } func (AccountEncryptionOutput) ElementType() reflect.Type { return reflect.TypeOf((**AccountEncryption)(nil)).Elem() } func (o AccountEncryptionOutput) ToAccountEncryptionOutput() AccountEncryptionOutput { return o } func (o AccountEncryptionOutput) ToAccountEncryptionOutputWithContext(ctx context.Context) AccountEncryptionOutput { return o } // The full resource ID of the cross-tenant key vault. This is recommended when using `federatedClientId` for cross-tenant scenarios to ensure proper validation by Azure APIs. func (o AccountEncryptionOutput) CrossTenantKeyVaultResourceId() pulumi.StringPtrOutput { return o.ApplyT(func(v *AccountEncryption) pulumi.StringPtrOutput { return v.CrossTenantKeyVaultResourceId }).(pulumi.StringPtrOutput) } // Specify the versionless ID of the encryption key. func (o AccountEncryptionOutput) EncryptionKey() pulumi.StringOutput { return o.ApplyT(func(v *AccountEncryption) pulumi.StringOutput { return v.EncryptionKey }).(pulumi.StringOutput) } // The Client ID of the multi-tenant Entra ID application used to access cross-tenant key vaults. This is only required when accessing a key vault in a different tenant than the NetApp account. func (o AccountEncryptionOutput) FederatedClientId() pulumi.StringPtrOutput { return o.ApplyT(func(v *AccountEncryption) pulumi.StringPtrOutput { return v.FederatedClientId }).(pulumi.StringPtrOutput) } // The ID of the NetApp account where volume under it will have customer managed keys-based encryption enabled. func (o AccountEncryptionOutput) NetappAccountId() pulumi.StringOutput { return o.ApplyT(func(v *AccountEncryption) pulumi.StringOutput { return v.NetappAccountId }).(pulumi.StringOutput) } // The ID of the System Assigned Manged Identity. Conflicts with `userAssignedIdentityId`. func (o AccountEncryptionOutput) SystemAssignedIdentityPrincipalId() pulumi.StringPtrOutput { return o.ApplyT(func(v *AccountEncryption) pulumi.StringPtrOutput { return v.SystemAssignedIdentityPrincipalId }).(pulumi.StringPtrOutput) } // The ID of the User Assigned Managed Identity. Conflicts with `systemAssignedIdentityPrincipalId`. func (o AccountEncryptionOutput) UserAssignedIdentityId() pulumi.StringPtrOutput { return o.ApplyT(func(v *AccountEncryption) pulumi.StringPtrOutput { return v.UserAssignedIdentityId }).(pulumi.StringPtrOutput) } type AccountEncryptionArrayOutput struct{ *pulumi.OutputState } func (AccountEncryptionArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*AccountEncryption)(nil)).Elem() } func (o AccountEncryptionArrayOutput) ToAccountEncryptionArrayOutput() AccountEncryptionArrayOutput { return o } func (o AccountEncryptionArrayOutput) ToAccountEncryptionArrayOutputWithContext(ctx context.Context) AccountEncryptionArrayOutput { return o } func (o AccountEncryptionArrayOutput) Index(i pulumi.IntInput) AccountEncryptionOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *AccountEncryption { return vs[0].([]*AccountEncryption)[vs[1].(int)] }).(AccountEncryptionOutput) } type AccountEncryptionMapOutput struct{ *pulumi.OutputState } func (AccountEncryptionMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*AccountEncryption)(nil)).Elem() } func (o AccountEncryptionMapOutput) ToAccountEncryptionMapOutput() AccountEncryptionMapOutput { return o } func (o AccountEncryptionMapOutput) ToAccountEncryptionMapOutputWithContext(ctx context.Context) AccountEncryptionMapOutput { return o } func (o AccountEncryptionMapOutput) MapIndex(k pulumi.StringInput) AccountEncryptionOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *AccountEncryption { return vs[0].(map[string]*AccountEncryption)[vs[1].(string)] }).(AccountEncryptionOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*AccountEncryptionInput)(nil)).Elem(), &AccountEncryption{}) pulumi.RegisterInputType(reflect.TypeOf((*AccountEncryptionArrayInput)(nil)).Elem(), AccountEncryptionArray{}) pulumi.RegisterInputType(reflect.TypeOf((*AccountEncryptionMapInput)(nil)).Elem(), AccountEncryptionMap{}) pulumi.RegisterOutputType(AccountEncryptionOutput{}) pulumi.RegisterOutputType(AccountEncryptionArrayOutput{}) pulumi.RegisterOutputType(AccountEncryptionMapOutput{}) }
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/logicapps/init.go
sdk/go/azure/logicapps/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 logicapps 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:logicapps/actionCustom:ActionCustom": r = &ActionCustom{} case "azure:logicapps/actionHttp:ActionHttp": r = &ActionHttp{} case "azure:logicapps/integrationAccount:IntegrationAccount": r = &IntegrationAccount{} case "azure:logicapps/integrationAccountAgreement:IntegrationAccountAgreement": r = &IntegrationAccountAgreement{} case "azure:logicapps/integrationAccountAssembly:IntegrationAccountAssembly": r = &IntegrationAccountAssembly{} case "azure:logicapps/integrationAccountBatchConfiguration:IntegrationAccountBatchConfiguration": r = &IntegrationAccountBatchConfiguration{} case "azure:logicapps/integrationAccountCertificate:IntegrationAccountCertificate": r = &IntegrationAccountCertificate{} case "azure:logicapps/integrationAccountMap:IntegrationAccountMap": r = &IntegrationAccountMapResource{} case "azure:logicapps/integrationAccountPartner:IntegrationAccountPartner": r = &IntegrationAccountPartner{} case "azure:logicapps/integrationAccountSchema:IntegrationAccountSchema": r = &IntegrationAccountSchema{} case "azure:logicapps/integrationAccountSession:IntegrationAccountSession": r = &IntegrationAccountSession{} case "azure:logicapps/standard:Standard": r = &Standard{} case "azure:logicapps/triggerCustom:TriggerCustom": r = &TriggerCustom{} case "azure:logicapps/triggerHttpRequest:TriggerHttpRequest": r = &TriggerHttpRequest{} case "azure:logicapps/triggerRecurrence:TriggerRecurrence": r = &TriggerRecurrence{} case "azure:logicapps/workflow:Workflow": r = &Workflow{} 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", "logicapps/actionCustom", &module{version}, ) pulumi.RegisterResourceModule( "azure", "logicapps/actionHttp", &module{version}, ) pulumi.RegisterResourceModule( "azure", "logicapps/integrationAccount", &module{version}, ) pulumi.RegisterResourceModule( "azure", "logicapps/integrationAccountAgreement", &module{version}, ) pulumi.RegisterResourceModule( "azure", "logicapps/integrationAccountAssembly", &module{version}, ) pulumi.RegisterResourceModule( "azure", "logicapps/integrationAccountBatchConfiguration", &module{version}, ) pulumi.RegisterResourceModule( "azure", "logicapps/integrationAccountCertificate", &module{version}, ) pulumi.RegisterResourceModule( "azure", "logicapps/integrationAccountMap", &module{version}, ) pulumi.RegisterResourceModule( "azure", "logicapps/integrationAccountPartner", &module{version}, ) pulumi.RegisterResourceModule( "azure", "logicapps/integrationAccountSchema", &module{version}, ) pulumi.RegisterResourceModule( "azure", "logicapps/integrationAccountSession", &module{version}, ) pulumi.RegisterResourceModule( "azure", "logicapps/standard", &module{version}, ) pulumi.RegisterResourceModule( "azure", "logicapps/triggerCustom", &module{version}, ) pulumi.RegisterResourceModule( "azure", "logicapps/triggerHttpRequest", &module{version}, ) pulumi.RegisterResourceModule( "azure", "logicapps/triggerRecurrence", &module{version}, ) pulumi.RegisterResourceModule( "azure", "logicapps/workflow", &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/logicapps/triggerHttpRequest.go
sdk/go/azure/logicapps/triggerHttpRequest.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 logicapps import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a HTTP Request Trigger within a Logic App Workflow // // ## 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/logicapps" // "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("workflow-resources"), // Location: pulumi.String("West Europe"), // }) // if err != nil { // return err // } // exampleWorkflow, err := logicapps.NewWorkflow(ctx, "example", &logicapps.WorkflowArgs{ // Name: pulumi.String("workflow1"), // Location: example.Location, // ResourceGroupName: example.Name, // }) // if err != nil { // return err // } // _, err = logicapps.NewTriggerHttpRequest(ctx, "example", &logicapps.TriggerHttpRequestArgs{ // Name: pulumi.String("some-http-trigger"), // LogicAppId: exampleWorkflow.ID(), // Schema: pulumi.String(`{ // \"type\": \"object\", // \"properties\": { // \"hello\": { // \"type\": \"string\" // } // } // } // // `), // // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## Import // // Logic App HTTP Request Triggers can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:logicapps/triggerHttpRequest:TriggerHttpRequest request1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Logic/workflows/workflow1/triggers/request1 // ``` type TriggerHttpRequest struct { pulumi.CustomResourceState // The URL of the Trigger within the Logic App Workflow. For use with certain resources like monitorActionGroup and security_center_automation. CallbackUrl pulumi.StringOutput `pulumi:"callbackUrl"` // Specifies the ID of the Logic App Workflow. Changing this forces a new resource to be created. LogicAppId pulumi.StringOutput `pulumi:"logicAppId"` // Specifies the HTTP Method which the request be using. Possible values include `DELETE`, `GET`, `PATCH`, `POST` or `PUT`. Method pulumi.StringPtrOutput `pulumi:"method"` // Specifies the name of the HTTP Request Trigger to be created within the Logic App Workflow. Changing this forces a new resource to be created. // // > **NOTE:** This name must be unique across all Triggers within the Logic App Workflow. Name pulumi.StringOutput `pulumi:"name"` // Specifies the Relative Path used for this Request. // // > **NOTE:** When `relativePath` is set a `method` must also be set. RelativePath pulumi.StringPtrOutput `pulumi:"relativePath"` // A JSON Blob defining the Schema of the incoming request. This needs to be valid JSON. Schema pulumi.StringOutput `pulumi:"schema"` } // NewTriggerHttpRequest registers a new resource with the given unique name, arguments, and options. func NewTriggerHttpRequest(ctx *pulumi.Context, name string, args *TriggerHttpRequestArgs, opts ...pulumi.ResourceOption) (*TriggerHttpRequest, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.LogicAppId == nil { return nil, errors.New("invalid value for required argument 'LogicAppId'") } if args.Schema == nil { return nil, errors.New("invalid value for required argument 'Schema'") } opts = internal.PkgResourceDefaultOpts(opts) var resource TriggerHttpRequest err := ctx.RegisterResource("azure:logicapps/triggerHttpRequest:TriggerHttpRequest", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetTriggerHttpRequest gets an existing TriggerHttpRequest 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 GetTriggerHttpRequest(ctx *pulumi.Context, name string, id pulumi.IDInput, state *TriggerHttpRequestState, opts ...pulumi.ResourceOption) (*TriggerHttpRequest, error) { var resource TriggerHttpRequest err := ctx.ReadResource("azure:logicapps/triggerHttpRequest:TriggerHttpRequest", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering TriggerHttpRequest resources. type triggerHttpRequestState struct { // The URL of the Trigger within the Logic App Workflow. For use with certain resources like monitorActionGroup and security_center_automation. CallbackUrl *string `pulumi:"callbackUrl"` // Specifies the ID of the Logic App Workflow. Changing this forces a new resource to be created. LogicAppId *string `pulumi:"logicAppId"` // Specifies the HTTP Method which the request be using. Possible values include `DELETE`, `GET`, `PATCH`, `POST` or `PUT`. Method *string `pulumi:"method"` // Specifies the name of the HTTP Request Trigger to be created within the Logic App Workflow. Changing this forces a new resource to be created. // // > **NOTE:** This name must be unique across all Triggers within the Logic App Workflow. Name *string `pulumi:"name"` // Specifies the Relative Path used for this Request. // // > **NOTE:** When `relativePath` is set a `method` must also be set. RelativePath *string `pulumi:"relativePath"` // A JSON Blob defining the Schema of the incoming request. This needs to be valid JSON. Schema *string `pulumi:"schema"` } type TriggerHttpRequestState struct { // The URL of the Trigger within the Logic App Workflow. For use with certain resources like monitorActionGroup and security_center_automation. CallbackUrl pulumi.StringPtrInput // Specifies the ID of the Logic App Workflow. Changing this forces a new resource to be created. LogicAppId pulumi.StringPtrInput // Specifies the HTTP Method which the request be using. Possible values include `DELETE`, `GET`, `PATCH`, `POST` or `PUT`. Method pulumi.StringPtrInput // Specifies the name of the HTTP Request Trigger to be created within the Logic App Workflow. Changing this forces a new resource to be created. // // > **NOTE:** This name must be unique across all Triggers within the Logic App Workflow. Name pulumi.StringPtrInput // Specifies the Relative Path used for this Request. // // > **NOTE:** When `relativePath` is set a `method` must also be set. RelativePath pulumi.StringPtrInput // A JSON Blob defining the Schema of the incoming request. This needs to be valid JSON. Schema pulumi.StringPtrInput } func (TriggerHttpRequestState) ElementType() reflect.Type { return reflect.TypeOf((*triggerHttpRequestState)(nil)).Elem() } type triggerHttpRequestArgs struct { // Specifies the ID of the Logic App Workflow. Changing this forces a new resource to be created. LogicAppId string `pulumi:"logicAppId"` // Specifies the HTTP Method which the request be using. Possible values include `DELETE`, `GET`, `PATCH`, `POST` or `PUT`. Method *string `pulumi:"method"` // Specifies the name of the HTTP Request Trigger to be created within the Logic App Workflow. Changing this forces a new resource to be created. // // > **NOTE:** This name must be unique across all Triggers within the Logic App Workflow. Name *string `pulumi:"name"` // Specifies the Relative Path used for this Request. // // > **NOTE:** When `relativePath` is set a `method` must also be set. RelativePath *string `pulumi:"relativePath"` // A JSON Blob defining the Schema of the incoming request. This needs to be valid JSON. Schema string `pulumi:"schema"` } // The set of arguments for constructing a TriggerHttpRequest resource. type TriggerHttpRequestArgs struct { // Specifies the ID of the Logic App Workflow. Changing this forces a new resource to be created. LogicAppId pulumi.StringInput // Specifies the HTTP Method which the request be using. Possible values include `DELETE`, `GET`, `PATCH`, `POST` or `PUT`. Method pulumi.StringPtrInput // Specifies the name of the HTTP Request Trigger to be created within the Logic App Workflow. Changing this forces a new resource to be created. // // > **NOTE:** This name must be unique across all Triggers within the Logic App Workflow. Name pulumi.StringPtrInput // Specifies the Relative Path used for this Request. // // > **NOTE:** When `relativePath` is set a `method` must also be set. RelativePath pulumi.StringPtrInput // A JSON Blob defining the Schema of the incoming request. This needs to be valid JSON. Schema pulumi.StringInput } func (TriggerHttpRequestArgs) ElementType() reflect.Type { return reflect.TypeOf((*triggerHttpRequestArgs)(nil)).Elem() } type TriggerHttpRequestInput interface { pulumi.Input ToTriggerHttpRequestOutput() TriggerHttpRequestOutput ToTriggerHttpRequestOutputWithContext(ctx context.Context) TriggerHttpRequestOutput } func (*TriggerHttpRequest) ElementType() reflect.Type { return reflect.TypeOf((**TriggerHttpRequest)(nil)).Elem() } func (i *TriggerHttpRequest) ToTriggerHttpRequestOutput() TriggerHttpRequestOutput { return i.ToTriggerHttpRequestOutputWithContext(context.Background()) } func (i *TriggerHttpRequest) ToTriggerHttpRequestOutputWithContext(ctx context.Context) TriggerHttpRequestOutput { return pulumi.ToOutputWithContext(ctx, i).(TriggerHttpRequestOutput) } // TriggerHttpRequestArrayInput is an input type that accepts TriggerHttpRequestArray and TriggerHttpRequestArrayOutput values. // You can construct a concrete instance of `TriggerHttpRequestArrayInput` via: // // TriggerHttpRequestArray{ TriggerHttpRequestArgs{...} } type TriggerHttpRequestArrayInput interface { pulumi.Input ToTriggerHttpRequestArrayOutput() TriggerHttpRequestArrayOutput ToTriggerHttpRequestArrayOutputWithContext(context.Context) TriggerHttpRequestArrayOutput } type TriggerHttpRequestArray []TriggerHttpRequestInput func (TriggerHttpRequestArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*TriggerHttpRequest)(nil)).Elem() } func (i TriggerHttpRequestArray) ToTriggerHttpRequestArrayOutput() TriggerHttpRequestArrayOutput { return i.ToTriggerHttpRequestArrayOutputWithContext(context.Background()) } func (i TriggerHttpRequestArray) ToTriggerHttpRequestArrayOutputWithContext(ctx context.Context) TriggerHttpRequestArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(TriggerHttpRequestArrayOutput) } // TriggerHttpRequestMapInput is an input type that accepts TriggerHttpRequestMap and TriggerHttpRequestMapOutput values. // You can construct a concrete instance of `TriggerHttpRequestMapInput` via: // // TriggerHttpRequestMap{ "key": TriggerHttpRequestArgs{...} } type TriggerHttpRequestMapInput interface { pulumi.Input ToTriggerHttpRequestMapOutput() TriggerHttpRequestMapOutput ToTriggerHttpRequestMapOutputWithContext(context.Context) TriggerHttpRequestMapOutput } type TriggerHttpRequestMap map[string]TriggerHttpRequestInput func (TriggerHttpRequestMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*TriggerHttpRequest)(nil)).Elem() } func (i TriggerHttpRequestMap) ToTriggerHttpRequestMapOutput() TriggerHttpRequestMapOutput { return i.ToTriggerHttpRequestMapOutputWithContext(context.Background()) } func (i TriggerHttpRequestMap) ToTriggerHttpRequestMapOutputWithContext(ctx context.Context) TriggerHttpRequestMapOutput { return pulumi.ToOutputWithContext(ctx, i).(TriggerHttpRequestMapOutput) } type TriggerHttpRequestOutput struct{ *pulumi.OutputState } func (TriggerHttpRequestOutput) ElementType() reflect.Type { return reflect.TypeOf((**TriggerHttpRequest)(nil)).Elem() } func (o TriggerHttpRequestOutput) ToTriggerHttpRequestOutput() TriggerHttpRequestOutput { return o } func (o TriggerHttpRequestOutput) ToTriggerHttpRequestOutputWithContext(ctx context.Context) TriggerHttpRequestOutput { return o } // The URL of the Trigger within the Logic App Workflow. For use with certain resources like monitorActionGroup and security_center_automation. func (o TriggerHttpRequestOutput) CallbackUrl() pulumi.StringOutput { return o.ApplyT(func(v *TriggerHttpRequest) pulumi.StringOutput { return v.CallbackUrl }).(pulumi.StringOutput) } // Specifies the ID of the Logic App Workflow. Changing this forces a new resource to be created. func (o TriggerHttpRequestOutput) LogicAppId() pulumi.StringOutput { return o.ApplyT(func(v *TriggerHttpRequest) pulumi.StringOutput { return v.LogicAppId }).(pulumi.StringOutput) } // Specifies the HTTP Method which the request be using. Possible values include `DELETE`, `GET`, `PATCH`, `POST` or `PUT`. func (o TriggerHttpRequestOutput) Method() pulumi.StringPtrOutput { return o.ApplyT(func(v *TriggerHttpRequest) pulumi.StringPtrOutput { return v.Method }).(pulumi.StringPtrOutput) } // Specifies the name of the HTTP Request Trigger to be created within the Logic App Workflow. Changing this forces a new resource to be created. // // > **NOTE:** This name must be unique across all Triggers within the Logic App Workflow. func (o TriggerHttpRequestOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *TriggerHttpRequest) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // Specifies the Relative Path used for this Request. // // > **NOTE:** When `relativePath` is set a `method` must also be set. func (o TriggerHttpRequestOutput) RelativePath() pulumi.StringPtrOutput { return o.ApplyT(func(v *TriggerHttpRequest) pulumi.StringPtrOutput { return v.RelativePath }).(pulumi.StringPtrOutput) } // A JSON Blob defining the Schema of the incoming request. This needs to be valid JSON. func (o TriggerHttpRequestOutput) Schema() pulumi.StringOutput { return o.ApplyT(func(v *TriggerHttpRequest) pulumi.StringOutput { return v.Schema }).(pulumi.StringOutput) } type TriggerHttpRequestArrayOutput struct{ *pulumi.OutputState } func (TriggerHttpRequestArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*TriggerHttpRequest)(nil)).Elem() } func (o TriggerHttpRequestArrayOutput) ToTriggerHttpRequestArrayOutput() TriggerHttpRequestArrayOutput { return o } func (o TriggerHttpRequestArrayOutput) ToTriggerHttpRequestArrayOutputWithContext(ctx context.Context) TriggerHttpRequestArrayOutput { return o } func (o TriggerHttpRequestArrayOutput) Index(i pulumi.IntInput) TriggerHttpRequestOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *TriggerHttpRequest { return vs[0].([]*TriggerHttpRequest)[vs[1].(int)] }).(TriggerHttpRequestOutput) } type TriggerHttpRequestMapOutput struct{ *pulumi.OutputState } func (TriggerHttpRequestMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*TriggerHttpRequest)(nil)).Elem() } func (o TriggerHttpRequestMapOutput) ToTriggerHttpRequestMapOutput() TriggerHttpRequestMapOutput { return o } func (o TriggerHttpRequestMapOutput) ToTriggerHttpRequestMapOutputWithContext(ctx context.Context) TriggerHttpRequestMapOutput { return o } func (o TriggerHttpRequestMapOutput) MapIndex(k pulumi.StringInput) TriggerHttpRequestOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *TriggerHttpRequest { return vs[0].(map[string]*TriggerHttpRequest)[vs[1].(string)] }).(TriggerHttpRequestOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*TriggerHttpRequestInput)(nil)).Elem(), &TriggerHttpRequest{}) pulumi.RegisterInputType(reflect.TypeOf((*TriggerHttpRequestArrayInput)(nil)).Elem(), TriggerHttpRequestArray{}) pulumi.RegisterInputType(reflect.TypeOf((*TriggerHttpRequestMapInput)(nil)).Elem(), TriggerHttpRequestMap{}) pulumi.RegisterOutputType(TriggerHttpRequestOutput{}) pulumi.RegisterOutputType(TriggerHttpRequestArrayOutput{}) pulumi.RegisterOutputType(TriggerHttpRequestMapOutput{}) }
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/logicapps/pulumiTypes.go
sdk/go/azure/logicapps/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 logicapps 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 ActionHttpRunAfter struct { // Specifies the name of the precedent HTTP Action. ActionName string `pulumi:"actionName"` // Specifies the expected result of the precedent HTTP Action, only after which the current HTTP Action will be triggered. Possible values include `Succeeded`, `Failed`, `Skipped` and `TimedOut`. ActionResult string `pulumi:"actionResult"` } // ActionHttpRunAfterInput is an input type that accepts ActionHttpRunAfterArgs and ActionHttpRunAfterOutput values. // You can construct a concrete instance of `ActionHttpRunAfterInput` via: // // ActionHttpRunAfterArgs{...} type ActionHttpRunAfterInput interface { pulumi.Input ToActionHttpRunAfterOutput() ActionHttpRunAfterOutput ToActionHttpRunAfterOutputWithContext(context.Context) ActionHttpRunAfterOutput } type ActionHttpRunAfterArgs struct { // Specifies the name of the precedent HTTP Action. ActionName pulumi.StringInput `pulumi:"actionName"` // Specifies the expected result of the precedent HTTP Action, only after which the current HTTP Action will be triggered. Possible values include `Succeeded`, `Failed`, `Skipped` and `TimedOut`. ActionResult pulumi.StringInput `pulumi:"actionResult"` } func (ActionHttpRunAfterArgs) ElementType() reflect.Type { return reflect.TypeOf((*ActionHttpRunAfter)(nil)).Elem() } func (i ActionHttpRunAfterArgs) ToActionHttpRunAfterOutput() ActionHttpRunAfterOutput { return i.ToActionHttpRunAfterOutputWithContext(context.Background()) } func (i ActionHttpRunAfterArgs) ToActionHttpRunAfterOutputWithContext(ctx context.Context) ActionHttpRunAfterOutput { return pulumi.ToOutputWithContext(ctx, i).(ActionHttpRunAfterOutput) } // ActionHttpRunAfterArrayInput is an input type that accepts ActionHttpRunAfterArray and ActionHttpRunAfterArrayOutput values. // You can construct a concrete instance of `ActionHttpRunAfterArrayInput` via: // // ActionHttpRunAfterArray{ ActionHttpRunAfterArgs{...} } type ActionHttpRunAfterArrayInput interface { pulumi.Input ToActionHttpRunAfterArrayOutput() ActionHttpRunAfterArrayOutput ToActionHttpRunAfterArrayOutputWithContext(context.Context) ActionHttpRunAfterArrayOutput } type ActionHttpRunAfterArray []ActionHttpRunAfterInput func (ActionHttpRunAfterArray) ElementType() reflect.Type { return reflect.TypeOf((*[]ActionHttpRunAfter)(nil)).Elem() } func (i ActionHttpRunAfterArray) ToActionHttpRunAfterArrayOutput() ActionHttpRunAfterArrayOutput { return i.ToActionHttpRunAfterArrayOutputWithContext(context.Background()) } func (i ActionHttpRunAfterArray) ToActionHttpRunAfterArrayOutputWithContext(ctx context.Context) ActionHttpRunAfterArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(ActionHttpRunAfterArrayOutput) } type ActionHttpRunAfterOutput struct{ *pulumi.OutputState } func (ActionHttpRunAfterOutput) ElementType() reflect.Type { return reflect.TypeOf((*ActionHttpRunAfter)(nil)).Elem() } func (o ActionHttpRunAfterOutput) ToActionHttpRunAfterOutput() ActionHttpRunAfterOutput { return o } func (o ActionHttpRunAfterOutput) ToActionHttpRunAfterOutputWithContext(ctx context.Context) ActionHttpRunAfterOutput { return o } // Specifies the name of the precedent HTTP Action. func (o ActionHttpRunAfterOutput) ActionName() pulumi.StringOutput { return o.ApplyT(func(v ActionHttpRunAfter) string { return v.ActionName }).(pulumi.StringOutput) } // Specifies the expected result of the precedent HTTP Action, only after which the current HTTP Action will be triggered. Possible values include `Succeeded`, `Failed`, `Skipped` and `TimedOut`. func (o ActionHttpRunAfterOutput) ActionResult() pulumi.StringOutput { return o.ApplyT(func(v ActionHttpRunAfter) string { return v.ActionResult }).(pulumi.StringOutput) } type ActionHttpRunAfterArrayOutput struct{ *pulumi.OutputState } func (ActionHttpRunAfterArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]ActionHttpRunAfter)(nil)).Elem() } func (o ActionHttpRunAfterArrayOutput) ToActionHttpRunAfterArrayOutput() ActionHttpRunAfterArrayOutput { return o } func (o ActionHttpRunAfterArrayOutput) ToActionHttpRunAfterArrayOutputWithContext(ctx context.Context) ActionHttpRunAfterArrayOutput { return o } func (o ActionHttpRunAfterArrayOutput) Index(i pulumi.IntInput) ActionHttpRunAfterOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) ActionHttpRunAfter { return vs[0].([]ActionHttpRunAfter)[vs[1].(int)] }).(ActionHttpRunAfterOutput) } type IntegrationAccountAgreementGuestIdentity struct { // The authenticating body that provides unique guest identities to organizations. Qualifier string `pulumi:"qualifier"` // The value that identifies the documents that your logic apps receive. Value string `pulumi:"value"` } // IntegrationAccountAgreementGuestIdentityInput is an input type that accepts IntegrationAccountAgreementGuestIdentityArgs and IntegrationAccountAgreementGuestIdentityOutput values. // You can construct a concrete instance of `IntegrationAccountAgreementGuestIdentityInput` via: // // IntegrationAccountAgreementGuestIdentityArgs{...} type IntegrationAccountAgreementGuestIdentityInput interface { pulumi.Input ToIntegrationAccountAgreementGuestIdentityOutput() IntegrationAccountAgreementGuestIdentityOutput ToIntegrationAccountAgreementGuestIdentityOutputWithContext(context.Context) IntegrationAccountAgreementGuestIdentityOutput } type IntegrationAccountAgreementGuestIdentityArgs struct { // The authenticating body that provides unique guest identities to organizations. Qualifier pulumi.StringInput `pulumi:"qualifier"` // The value that identifies the documents that your logic apps receive. Value pulumi.StringInput `pulumi:"value"` } func (IntegrationAccountAgreementGuestIdentityArgs) ElementType() reflect.Type { return reflect.TypeOf((*IntegrationAccountAgreementGuestIdentity)(nil)).Elem() } func (i IntegrationAccountAgreementGuestIdentityArgs) ToIntegrationAccountAgreementGuestIdentityOutput() IntegrationAccountAgreementGuestIdentityOutput { return i.ToIntegrationAccountAgreementGuestIdentityOutputWithContext(context.Background()) } func (i IntegrationAccountAgreementGuestIdentityArgs) ToIntegrationAccountAgreementGuestIdentityOutputWithContext(ctx context.Context) IntegrationAccountAgreementGuestIdentityOutput { return pulumi.ToOutputWithContext(ctx, i).(IntegrationAccountAgreementGuestIdentityOutput) } func (i IntegrationAccountAgreementGuestIdentityArgs) ToIntegrationAccountAgreementGuestIdentityPtrOutput() IntegrationAccountAgreementGuestIdentityPtrOutput { return i.ToIntegrationAccountAgreementGuestIdentityPtrOutputWithContext(context.Background()) } func (i IntegrationAccountAgreementGuestIdentityArgs) ToIntegrationAccountAgreementGuestIdentityPtrOutputWithContext(ctx context.Context) IntegrationAccountAgreementGuestIdentityPtrOutput { return pulumi.ToOutputWithContext(ctx, i).(IntegrationAccountAgreementGuestIdentityOutput).ToIntegrationAccountAgreementGuestIdentityPtrOutputWithContext(ctx) } // IntegrationAccountAgreementGuestIdentityPtrInput is an input type that accepts IntegrationAccountAgreementGuestIdentityArgs, IntegrationAccountAgreementGuestIdentityPtr and IntegrationAccountAgreementGuestIdentityPtrOutput values. // You can construct a concrete instance of `IntegrationAccountAgreementGuestIdentityPtrInput` via: // // IntegrationAccountAgreementGuestIdentityArgs{...} // // or: // // nil type IntegrationAccountAgreementGuestIdentityPtrInput interface { pulumi.Input ToIntegrationAccountAgreementGuestIdentityPtrOutput() IntegrationAccountAgreementGuestIdentityPtrOutput ToIntegrationAccountAgreementGuestIdentityPtrOutputWithContext(context.Context) IntegrationAccountAgreementGuestIdentityPtrOutput } type integrationAccountAgreementGuestIdentityPtrType IntegrationAccountAgreementGuestIdentityArgs func IntegrationAccountAgreementGuestIdentityPtr(v *IntegrationAccountAgreementGuestIdentityArgs) IntegrationAccountAgreementGuestIdentityPtrInput { return (*integrationAccountAgreementGuestIdentityPtrType)(v) } func (*integrationAccountAgreementGuestIdentityPtrType) ElementType() reflect.Type { return reflect.TypeOf((**IntegrationAccountAgreementGuestIdentity)(nil)).Elem() } func (i *integrationAccountAgreementGuestIdentityPtrType) ToIntegrationAccountAgreementGuestIdentityPtrOutput() IntegrationAccountAgreementGuestIdentityPtrOutput { return i.ToIntegrationAccountAgreementGuestIdentityPtrOutputWithContext(context.Background()) } func (i *integrationAccountAgreementGuestIdentityPtrType) ToIntegrationAccountAgreementGuestIdentityPtrOutputWithContext(ctx context.Context) IntegrationAccountAgreementGuestIdentityPtrOutput { return pulumi.ToOutputWithContext(ctx, i).(IntegrationAccountAgreementGuestIdentityPtrOutput) } type IntegrationAccountAgreementGuestIdentityOutput struct{ *pulumi.OutputState } func (IntegrationAccountAgreementGuestIdentityOutput) ElementType() reflect.Type { return reflect.TypeOf((*IntegrationAccountAgreementGuestIdentity)(nil)).Elem() } func (o IntegrationAccountAgreementGuestIdentityOutput) ToIntegrationAccountAgreementGuestIdentityOutput() IntegrationAccountAgreementGuestIdentityOutput { return o } func (o IntegrationAccountAgreementGuestIdentityOutput) ToIntegrationAccountAgreementGuestIdentityOutputWithContext(ctx context.Context) IntegrationAccountAgreementGuestIdentityOutput { return o } func (o IntegrationAccountAgreementGuestIdentityOutput) ToIntegrationAccountAgreementGuestIdentityPtrOutput() IntegrationAccountAgreementGuestIdentityPtrOutput { return o.ToIntegrationAccountAgreementGuestIdentityPtrOutputWithContext(context.Background()) } func (o IntegrationAccountAgreementGuestIdentityOutput) ToIntegrationAccountAgreementGuestIdentityPtrOutputWithContext(ctx context.Context) IntegrationAccountAgreementGuestIdentityPtrOutput { return o.ApplyTWithContext(ctx, func(_ context.Context, v IntegrationAccountAgreementGuestIdentity) *IntegrationAccountAgreementGuestIdentity { return &v }).(IntegrationAccountAgreementGuestIdentityPtrOutput) } // The authenticating body that provides unique guest identities to organizations. func (o IntegrationAccountAgreementGuestIdentityOutput) Qualifier() pulumi.StringOutput { return o.ApplyT(func(v IntegrationAccountAgreementGuestIdentity) string { return v.Qualifier }).(pulumi.StringOutput) } // The value that identifies the documents that your logic apps receive. func (o IntegrationAccountAgreementGuestIdentityOutput) Value() pulumi.StringOutput { return o.ApplyT(func(v IntegrationAccountAgreementGuestIdentity) string { return v.Value }).(pulumi.StringOutput) } type IntegrationAccountAgreementGuestIdentityPtrOutput struct{ *pulumi.OutputState } func (IntegrationAccountAgreementGuestIdentityPtrOutput) ElementType() reflect.Type { return reflect.TypeOf((**IntegrationAccountAgreementGuestIdentity)(nil)).Elem() } func (o IntegrationAccountAgreementGuestIdentityPtrOutput) ToIntegrationAccountAgreementGuestIdentityPtrOutput() IntegrationAccountAgreementGuestIdentityPtrOutput { return o } func (o IntegrationAccountAgreementGuestIdentityPtrOutput) ToIntegrationAccountAgreementGuestIdentityPtrOutputWithContext(ctx context.Context) IntegrationAccountAgreementGuestIdentityPtrOutput { return o } func (o IntegrationAccountAgreementGuestIdentityPtrOutput) Elem() IntegrationAccountAgreementGuestIdentityOutput { return o.ApplyT(func(v *IntegrationAccountAgreementGuestIdentity) IntegrationAccountAgreementGuestIdentity { if v != nil { return *v } var ret IntegrationAccountAgreementGuestIdentity return ret }).(IntegrationAccountAgreementGuestIdentityOutput) } // The authenticating body that provides unique guest identities to organizations. func (o IntegrationAccountAgreementGuestIdentityPtrOutput) Qualifier() pulumi.StringPtrOutput { return o.ApplyT(func(v *IntegrationAccountAgreementGuestIdentity) *string { if v == nil { return nil } return &v.Qualifier }).(pulumi.StringPtrOutput) } // The value that identifies the documents that your logic apps receive. func (o IntegrationAccountAgreementGuestIdentityPtrOutput) Value() pulumi.StringPtrOutput { return o.ApplyT(func(v *IntegrationAccountAgreementGuestIdentity) *string { if v == nil { return nil } return &v.Value }).(pulumi.StringPtrOutput) } type IntegrationAccountAgreementHostIdentity struct { // The authenticating body that provides unique host identities to organizations. Qualifier string `pulumi:"qualifier"` // The value that identifies the documents that your logic apps receive. Value string `pulumi:"value"` } // IntegrationAccountAgreementHostIdentityInput is an input type that accepts IntegrationAccountAgreementHostIdentityArgs and IntegrationAccountAgreementHostIdentityOutput values. // You can construct a concrete instance of `IntegrationAccountAgreementHostIdentityInput` via: // // IntegrationAccountAgreementHostIdentityArgs{...} type IntegrationAccountAgreementHostIdentityInput interface { pulumi.Input ToIntegrationAccountAgreementHostIdentityOutput() IntegrationAccountAgreementHostIdentityOutput ToIntegrationAccountAgreementHostIdentityOutputWithContext(context.Context) IntegrationAccountAgreementHostIdentityOutput } type IntegrationAccountAgreementHostIdentityArgs struct { // The authenticating body that provides unique host identities to organizations. Qualifier pulumi.StringInput `pulumi:"qualifier"` // The value that identifies the documents that your logic apps receive. Value pulumi.StringInput `pulumi:"value"` } func (IntegrationAccountAgreementHostIdentityArgs) ElementType() reflect.Type { return reflect.TypeOf((*IntegrationAccountAgreementHostIdentity)(nil)).Elem() } func (i IntegrationAccountAgreementHostIdentityArgs) ToIntegrationAccountAgreementHostIdentityOutput() IntegrationAccountAgreementHostIdentityOutput { return i.ToIntegrationAccountAgreementHostIdentityOutputWithContext(context.Background()) } func (i IntegrationAccountAgreementHostIdentityArgs) ToIntegrationAccountAgreementHostIdentityOutputWithContext(ctx context.Context) IntegrationAccountAgreementHostIdentityOutput { return pulumi.ToOutputWithContext(ctx, i).(IntegrationAccountAgreementHostIdentityOutput) } func (i IntegrationAccountAgreementHostIdentityArgs) ToIntegrationAccountAgreementHostIdentityPtrOutput() IntegrationAccountAgreementHostIdentityPtrOutput { return i.ToIntegrationAccountAgreementHostIdentityPtrOutputWithContext(context.Background()) } func (i IntegrationAccountAgreementHostIdentityArgs) ToIntegrationAccountAgreementHostIdentityPtrOutputWithContext(ctx context.Context) IntegrationAccountAgreementHostIdentityPtrOutput { return pulumi.ToOutputWithContext(ctx, i).(IntegrationAccountAgreementHostIdentityOutput).ToIntegrationAccountAgreementHostIdentityPtrOutputWithContext(ctx) } // IntegrationAccountAgreementHostIdentityPtrInput is an input type that accepts IntegrationAccountAgreementHostIdentityArgs, IntegrationAccountAgreementHostIdentityPtr and IntegrationAccountAgreementHostIdentityPtrOutput values. // You can construct a concrete instance of `IntegrationAccountAgreementHostIdentityPtrInput` via: // // IntegrationAccountAgreementHostIdentityArgs{...} // // or: // // nil type IntegrationAccountAgreementHostIdentityPtrInput interface { pulumi.Input ToIntegrationAccountAgreementHostIdentityPtrOutput() IntegrationAccountAgreementHostIdentityPtrOutput ToIntegrationAccountAgreementHostIdentityPtrOutputWithContext(context.Context) IntegrationAccountAgreementHostIdentityPtrOutput } type integrationAccountAgreementHostIdentityPtrType IntegrationAccountAgreementHostIdentityArgs func IntegrationAccountAgreementHostIdentityPtr(v *IntegrationAccountAgreementHostIdentityArgs) IntegrationAccountAgreementHostIdentityPtrInput { return (*integrationAccountAgreementHostIdentityPtrType)(v) } func (*integrationAccountAgreementHostIdentityPtrType) ElementType() reflect.Type { return reflect.TypeOf((**IntegrationAccountAgreementHostIdentity)(nil)).Elem() } func (i *integrationAccountAgreementHostIdentityPtrType) ToIntegrationAccountAgreementHostIdentityPtrOutput() IntegrationAccountAgreementHostIdentityPtrOutput { return i.ToIntegrationAccountAgreementHostIdentityPtrOutputWithContext(context.Background()) } func (i *integrationAccountAgreementHostIdentityPtrType) ToIntegrationAccountAgreementHostIdentityPtrOutputWithContext(ctx context.Context) IntegrationAccountAgreementHostIdentityPtrOutput { return pulumi.ToOutputWithContext(ctx, i).(IntegrationAccountAgreementHostIdentityPtrOutput) } type IntegrationAccountAgreementHostIdentityOutput struct{ *pulumi.OutputState } func (IntegrationAccountAgreementHostIdentityOutput) ElementType() reflect.Type { return reflect.TypeOf((*IntegrationAccountAgreementHostIdentity)(nil)).Elem() } func (o IntegrationAccountAgreementHostIdentityOutput) ToIntegrationAccountAgreementHostIdentityOutput() IntegrationAccountAgreementHostIdentityOutput { return o } func (o IntegrationAccountAgreementHostIdentityOutput) ToIntegrationAccountAgreementHostIdentityOutputWithContext(ctx context.Context) IntegrationAccountAgreementHostIdentityOutput { return o } func (o IntegrationAccountAgreementHostIdentityOutput) ToIntegrationAccountAgreementHostIdentityPtrOutput() IntegrationAccountAgreementHostIdentityPtrOutput { return o.ToIntegrationAccountAgreementHostIdentityPtrOutputWithContext(context.Background()) } func (o IntegrationAccountAgreementHostIdentityOutput) ToIntegrationAccountAgreementHostIdentityPtrOutputWithContext(ctx context.Context) IntegrationAccountAgreementHostIdentityPtrOutput { return o.ApplyTWithContext(ctx, func(_ context.Context, v IntegrationAccountAgreementHostIdentity) *IntegrationAccountAgreementHostIdentity { return &v }).(IntegrationAccountAgreementHostIdentityPtrOutput) } // The authenticating body that provides unique host identities to organizations. func (o IntegrationAccountAgreementHostIdentityOutput) Qualifier() pulumi.StringOutput { return o.ApplyT(func(v IntegrationAccountAgreementHostIdentity) string { return v.Qualifier }).(pulumi.StringOutput) } // The value that identifies the documents that your logic apps receive. func (o IntegrationAccountAgreementHostIdentityOutput) Value() pulumi.StringOutput { return o.ApplyT(func(v IntegrationAccountAgreementHostIdentity) string { return v.Value }).(pulumi.StringOutput) } type IntegrationAccountAgreementHostIdentityPtrOutput struct{ *pulumi.OutputState } func (IntegrationAccountAgreementHostIdentityPtrOutput) ElementType() reflect.Type { return reflect.TypeOf((**IntegrationAccountAgreementHostIdentity)(nil)).Elem() } func (o IntegrationAccountAgreementHostIdentityPtrOutput) ToIntegrationAccountAgreementHostIdentityPtrOutput() IntegrationAccountAgreementHostIdentityPtrOutput { return o } func (o IntegrationAccountAgreementHostIdentityPtrOutput) ToIntegrationAccountAgreementHostIdentityPtrOutputWithContext(ctx context.Context) IntegrationAccountAgreementHostIdentityPtrOutput { return o } func (o IntegrationAccountAgreementHostIdentityPtrOutput) Elem() IntegrationAccountAgreementHostIdentityOutput { return o.ApplyT(func(v *IntegrationAccountAgreementHostIdentity) IntegrationAccountAgreementHostIdentity { if v != nil { return *v } var ret IntegrationAccountAgreementHostIdentity return ret }).(IntegrationAccountAgreementHostIdentityOutput) } // The authenticating body that provides unique host identities to organizations. func (o IntegrationAccountAgreementHostIdentityPtrOutput) Qualifier() pulumi.StringPtrOutput { return o.ApplyT(func(v *IntegrationAccountAgreementHostIdentity) *string { if v == nil { return nil } return &v.Qualifier }).(pulumi.StringPtrOutput) } // The value that identifies the documents that your logic apps receive. func (o IntegrationAccountAgreementHostIdentityPtrOutput) Value() pulumi.StringPtrOutput { return o.ApplyT(func(v *IntegrationAccountAgreementHostIdentity) *string { if v == nil { return nil } return &v.Value }).(pulumi.StringPtrOutput) } type IntegrationAccountBatchConfigurationReleaseCriteria struct { // The batch size in bytes for the Logic App Integration Batch Configuration. BatchSize *int `pulumi:"batchSize"` // The message count for the Logic App Integration Batch Configuration. MessageCount *int `pulumi:"messageCount"` // A `recurrence` block as documented below. Recurrence *IntegrationAccountBatchConfigurationReleaseCriteriaRecurrence `pulumi:"recurrence"` } // IntegrationAccountBatchConfigurationReleaseCriteriaInput is an input type that accepts IntegrationAccountBatchConfigurationReleaseCriteriaArgs and IntegrationAccountBatchConfigurationReleaseCriteriaOutput values. // You can construct a concrete instance of `IntegrationAccountBatchConfigurationReleaseCriteriaInput` via: // // IntegrationAccountBatchConfigurationReleaseCriteriaArgs{...} type IntegrationAccountBatchConfigurationReleaseCriteriaInput interface { pulumi.Input ToIntegrationAccountBatchConfigurationReleaseCriteriaOutput() IntegrationAccountBatchConfigurationReleaseCriteriaOutput ToIntegrationAccountBatchConfigurationReleaseCriteriaOutputWithContext(context.Context) IntegrationAccountBatchConfigurationReleaseCriteriaOutput } type IntegrationAccountBatchConfigurationReleaseCriteriaArgs struct { // The batch size in bytes for the Logic App Integration Batch Configuration. BatchSize pulumi.IntPtrInput `pulumi:"batchSize"` // The message count for the Logic App Integration Batch Configuration. MessageCount pulumi.IntPtrInput `pulumi:"messageCount"` // A `recurrence` block as documented below. Recurrence IntegrationAccountBatchConfigurationReleaseCriteriaRecurrencePtrInput `pulumi:"recurrence"` } func (IntegrationAccountBatchConfigurationReleaseCriteriaArgs) ElementType() reflect.Type { return reflect.TypeOf((*IntegrationAccountBatchConfigurationReleaseCriteria)(nil)).Elem() } func (i IntegrationAccountBatchConfigurationReleaseCriteriaArgs) ToIntegrationAccountBatchConfigurationReleaseCriteriaOutput() IntegrationAccountBatchConfigurationReleaseCriteriaOutput { return i.ToIntegrationAccountBatchConfigurationReleaseCriteriaOutputWithContext(context.Background()) } func (i IntegrationAccountBatchConfigurationReleaseCriteriaArgs) ToIntegrationAccountBatchConfigurationReleaseCriteriaOutputWithContext(ctx context.Context) IntegrationAccountBatchConfigurationReleaseCriteriaOutput { return pulumi.ToOutputWithContext(ctx, i).(IntegrationAccountBatchConfigurationReleaseCriteriaOutput) } func (i IntegrationAccountBatchConfigurationReleaseCriteriaArgs) ToIntegrationAccountBatchConfigurationReleaseCriteriaPtrOutput() IntegrationAccountBatchConfigurationReleaseCriteriaPtrOutput { return i.ToIntegrationAccountBatchConfigurationReleaseCriteriaPtrOutputWithContext(context.Background()) } func (i IntegrationAccountBatchConfigurationReleaseCriteriaArgs) ToIntegrationAccountBatchConfigurationReleaseCriteriaPtrOutputWithContext(ctx context.Context) IntegrationAccountBatchConfigurationReleaseCriteriaPtrOutput { return pulumi.ToOutputWithContext(ctx, i).(IntegrationAccountBatchConfigurationReleaseCriteriaOutput).ToIntegrationAccountBatchConfigurationReleaseCriteriaPtrOutputWithContext(ctx) } // IntegrationAccountBatchConfigurationReleaseCriteriaPtrInput is an input type that accepts IntegrationAccountBatchConfigurationReleaseCriteriaArgs, IntegrationAccountBatchConfigurationReleaseCriteriaPtr and IntegrationAccountBatchConfigurationReleaseCriteriaPtrOutput values. // You can construct a concrete instance of `IntegrationAccountBatchConfigurationReleaseCriteriaPtrInput` via: // // IntegrationAccountBatchConfigurationReleaseCriteriaArgs{...} // // or: // // nil type IntegrationAccountBatchConfigurationReleaseCriteriaPtrInput interface { pulumi.Input ToIntegrationAccountBatchConfigurationReleaseCriteriaPtrOutput() IntegrationAccountBatchConfigurationReleaseCriteriaPtrOutput ToIntegrationAccountBatchConfigurationReleaseCriteriaPtrOutputWithContext(context.Context) IntegrationAccountBatchConfigurationReleaseCriteriaPtrOutput } type integrationAccountBatchConfigurationReleaseCriteriaPtrType IntegrationAccountBatchConfigurationReleaseCriteriaArgs func IntegrationAccountBatchConfigurationReleaseCriteriaPtr(v *IntegrationAccountBatchConfigurationReleaseCriteriaArgs) IntegrationAccountBatchConfigurationReleaseCriteriaPtrInput { return (*integrationAccountBatchConfigurationReleaseCriteriaPtrType)(v) } func (*integrationAccountBatchConfigurationReleaseCriteriaPtrType) ElementType() reflect.Type { return reflect.TypeOf((**IntegrationAccountBatchConfigurationReleaseCriteria)(nil)).Elem() } func (i *integrationAccountBatchConfigurationReleaseCriteriaPtrType) ToIntegrationAccountBatchConfigurationReleaseCriteriaPtrOutput() IntegrationAccountBatchConfigurationReleaseCriteriaPtrOutput { return i.ToIntegrationAccountBatchConfigurationReleaseCriteriaPtrOutputWithContext(context.Background()) } func (i *integrationAccountBatchConfigurationReleaseCriteriaPtrType) ToIntegrationAccountBatchConfigurationReleaseCriteriaPtrOutputWithContext(ctx context.Context) IntegrationAccountBatchConfigurationReleaseCriteriaPtrOutput { return pulumi.ToOutputWithContext(ctx, i).(IntegrationAccountBatchConfigurationReleaseCriteriaPtrOutput) } type IntegrationAccountBatchConfigurationReleaseCriteriaOutput struct{ *pulumi.OutputState } func (IntegrationAccountBatchConfigurationReleaseCriteriaOutput) ElementType() reflect.Type { return reflect.TypeOf((*IntegrationAccountBatchConfigurationReleaseCriteria)(nil)).Elem() } func (o IntegrationAccountBatchConfigurationReleaseCriteriaOutput) ToIntegrationAccountBatchConfigurationReleaseCriteriaOutput() IntegrationAccountBatchConfigurationReleaseCriteriaOutput { return o } func (o IntegrationAccountBatchConfigurationReleaseCriteriaOutput) ToIntegrationAccountBatchConfigurationReleaseCriteriaOutputWithContext(ctx context.Context) IntegrationAccountBatchConfigurationReleaseCriteriaOutput { return o } func (o IntegrationAccountBatchConfigurationReleaseCriteriaOutput) ToIntegrationAccountBatchConfigurationReleaseCriteriaPtrOutput() IntegrationAccountBatchConfigurationReleaseCriteriaPtrOutput { return o.ToIntegrationAccountBatchConfigurationReleaseCriteriaPtrOutputWithContext(context.Background()) } func (o IntegrationAccountBatchConfigurationReleaseCriteriaOutput) ToIntegrationAccountBatchConfigurationReleaseCriteriaPtrOutputWithContext(ctx context.Context) IntegrationAccountBatchConfigurationReleaseCriteriaPtrOutput { return o.ApplyTWithContext(ctx, func(_ context.Context, v IntegrationAccountBatchConfigurationReleaseCriteria) *IntegrationAccountBatchConfigurationReleaseCriteria { return &v }).(IntegrationAccountBatchConfigurationReleaseCriteriaPtrOutput) } // The batch size in bytes for the Logic App Integration Batch Configuration. func (o IntegrationAccountBatchConfigurationReleaseCriteriaOutput) BatchSize() pulumi.IntPtrOutput { return o.ApplyT(func(v IntegrationAccountBatchConfigurationReleaseCriteria) *int { return v.BatchSize }).(pulumi.IntPtrOutput) } // The message count for the Logic App Integration Batch Configuration. func (o IntegrationAccountBatchConfigurationReleaseCriteriaOutput) MessageCount() pulumi.IntPtrOutput { return o.ApplyT(func(v IntegrationAccountBatchConfigurationReleaseCriteria) *int { return v.MessageCount }).(pulumi.IntPtrOutput) } // A `recurrence` block as documented below. func (o IntegrationAccountBatchConfigurationReleaseCriteriaOutput) Recurrence() IntegrationAccountBatchConfigurationReleaseCriteriaRecurrencePtrOutput { return o.ApplyT(func(v IntegrationAccountBatchConfigurationReleaseCriteria) *IntegrationAccountBatchConfigurationReleaseCriteriaRecurrence { return v.Recurrence }).(IntegrationAccountBatchConfigurationReleaseCriteriaRecurrencePtrOutput) } type IntegrationAccountBatchConfigurationReleaseCriteriaPtrOutput struct{ *pulumi.OutputState } func (IntegrationAccountBatchConfigurationReleaseCriteriaPtrOutput) ElementType() reflect.Type { return reflect.TypeOf((**IntegrationAccountBatchConfigurationReleaseCriteria)(nil)).Elem() } func (o IntegrationAccountBatchConfigurationReleaseCriteriaPtrOutput) ToIntegrationAccountBatchConfigurationReleaseCriteriaPtrOutput() IntegrationAccountBatchConfigurationReleaseCriteriaPtrOutput { return o } func (o IntegrationAccountBatchConfigurationReleaseCriteriaPtrOutput) ToIntegrationAccountBatchConfigurationReleaseCriteriaPtrOutputWithContext(ctx context.Context) IntegrationAccountBatchConfigurationReleaseCriteriaPtrOutput { return o } func (o IntegrationAccountBatchConfigurationReleaseCriteriaPtrOutput) Elem() IntegrationAccountBatchConfigurationReleaseCriteriaOutput { return o.ApplyT(func(v *IntegrationAccountBatchConfigurationReleaseCriteria) IntegrationAccountBatchConfigurationReleaseCriteria { if v != nil { return *v } var ret IntegrationAccountBatchConfigurationReleaseCriteria return ret }).(IntegrationAccountBatchConfigurationReleaseCriteriaOutput) } // The batch size in bytes for the Logic App Integration Batch Configuration. func (o IntegrationAccountBatchConfigurationReleaseCriteriaPtrOutput) BatchSize() pulumi.IntPtrOutput { return o.ApplyT(func(v *IntegrationAccountBatchConfigurationReleaseCriteria) *int { if v == nil { return nil } return v.BatchSize }).(pulumi.IntPtrOutput) } // The message count for the Logic App Integration Batch Configuration. func (o IntegrationAccountBatchConfigurationReleaseCriteriaPtrOutput) MessageCount() pulumi.IntPtrOutput { return o.ApplyT(func(v *IntegrationAccountBatchConfigurationReleaseCriteria) *int { if v == nil { return nil } return v.MessageCount }).(pulumi.IntPtrOutput) } // A `recurrence` block as documented below. func (o IntegrationAccountBatchConfigurationReleaseCriteriaPtrOutput) Recurrence() IntegrationAccountBatchConfigurationReleaseCriteriaRecurrencePtrOutput { return o.ApplyT(func(v *IntegrationAccountBatchConfigurationReleaseCriteria) *IntegrationAccountBatchConfigurationReleaseCriteriaRecurrence { if v == nil { return nil } return v.Recurrence }).(IntegrationAccountBatchConfigurationReleaseCriteriaRecurrencePtrOutput) } type IntegrationAccountBatchConfigurationReleaseCriteriaRecurrence struct { // The end time of the schedule, formatted as an RFC3339 string. EndTime *string `pulumi:"endTime"` // The frequency of the schedule. Possible values are `Day`, `Hour`, `Minute`, `Month`, `NotSpecified`, `Second`, `Week` and `Year`. Frequency string `pulumi:"frequency"` // The number of `frequency`s between runs. Interval int `pulumi:"interval"` // A `schedule` block as documented below. Schedule *IntegrationAccountBatchConfigurationReleaseCriteriaRecurrenceSchedule `pulumi:"schedule"` // The start time of the schedule, formatted as an RFC3339 string. StartTime *string `pulumi:"startTime"` // The timezone of the start/end time. TimeZone *string `pulumi:"timeZone"` } // IntegrationAccountBatchConfigurationReleaseCriteriaRecurrenceInput is an input type that accepts IntegrationAccountBatchConfigurationReleaseCriteriaRecurrenceArgs and IntegrationAccountBatchConfigurationReleaseCriteriaRecurrenceOutput values. // You can construct a concrete instance of `IntegrationAccountBatchConfigurationReleaseCriteriaRecurrenceInput` via: // // IntegrationAccountBatchConfigurationReleaseCriteriaRecurrenceArgs{...} type IntegrationAccountBatchConfigurationReleaseCriteriaRecurrenceInput interface { pulumi.Input ToIntegrationAccountBatchConfigurationReleaseCriteriaRecurrenceOutput() IntegrationAccountBatchConfigurationReleaseCriteriaRecurrenceOutput ToIntegrationAccountBatchConfigurationReleaseCriteriaRecurrenceOutputWithContext(context.Context) IntegrationAccountBatchConfigurationReleaseCriteriaRecurrenceOutput } type IntegrationAccountBatchConfigurationReleaseCriteriaRecurrenceArgs struct { // The end time of the schedule, formatted as an RFC3339 string. EndTime pulumi.StringPtrInput `pulumi:"endTime"` // The frequency of the schedule. Possible values are `Day`, `Hour`, `Minute`, `Month`, `NotSpecified`, `Second`, `Week` and `Year`. Frequency pulumi.StringInput `pulumi:"frequency"` // The number of `frequency`s between runs. Interval pulumi.IntInput `pulumi:"interval"` // A `schedule` block as documented below.
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/logicapps/getStandard.go
sdk/go/azure/logicapps/getStandard.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 logicapps 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 Logic App Standard instance. // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/logicapps" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { // example, err := logicapps.LookupStandard(ctx, &logicapps.LookupStandardArgs{ // Name: "example-logic-app", // ResourceGroupName: "example-rg", // }, 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 LookupStandard(ctx *pulumi.Context, args *LookupStandardArgs, opts ...pulumi.InvokeOption) (*LookupStandardResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupStandardResult err := ctx.Invoke("azure:logicapps/getStandard:getStandard", args, &rv, opts...) if err != nil { return nil, err } return &rv, nil } // A collection of arguments for invoking getStandard. type LookupStandardArgs struct { // The name of the Logic App. Name string `pulumi:"name"` // The name of the Resource Group where the Logic App exists. ResourceGroupName string `pulumi:"resourceGroupName"` } // A collection of values returned by getStandard. type LookupStandardResult struct { // The ID of the App Service Plan. 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. AppSettings map[string]string `pulumi:"appSettings"` // Controls the allowed range for bundle versions. BundleVersion string `pulumi:"bundleVersion"` // Should the Logic App send session affinity cookies, which route client requests in the same session to the same instance. ClientAffinityEnabled bool `pulumi:"clientAffinityEnabled"` // The mode of the Logic App's client certificates requirement for incoming requests. ClientCertificateMode string `pulumi:"clientCertificateMode"` // A `connectionString` block as defined below. ConnectionStrings []GetStandardConnectionString `pulumi:"connectionStrings"` // The custom domain verification of the Logic App. CustomDomainVerificationId string `pulumi:"customDomainVerificationId"` // The default hostname of the Logic App. DefaultHostname string `pulumi:"defaultHostname"` // Whether the Logic App is enabled. Enabled bool `pulumi:"enabled"` // Whether the default FTP basic authentication publishing profile is enabled. FtpPublishBasicAuthenticationEnabled bool `pulumi:"ftpPublishBasicAuthenticationEnabled"` // Whether the Logic App can only be accessed via HTTPS. HttpsOnly bool `pulumi:"httpsOnly"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` // An `identity` block as defined below. Identities []GetStandardIdentity `pulumi:"identities"` // The kind of the Logic App. Kind string `pulumi:"kind"` // The Azure location where the Logic App Standard exists. Location string `pulumi:"location"` // The name for this IP Restriction. Name string `pulumi:"name"` // The outbound IP addresses of the Logic App. OutboundIpAddresses string `pulumi:"outboundIpAddresses"` // The possible outbound IP addresses of the Logic App. PossibleOutboundIpAddresses string `pulumi:"possibleOutboundIpAddresses"` // Whether Public Network Access should be enabled or not. PublicNetworkAccess string `pulumi:"publicNetworkAccess"` ResourceGroupName string `pulumi:"resourceGroupName"` // Whether the default SCM basic authentication publishing profile is enabled. ScmPublishBasicAuthenticationEnabled bool `pulumi:"scmPublishBasicAuthenticationEnabled"` // A `siteConfig` object as defined below. SiteConfig GetStandardSiteConfig `pulumi:"siteConfig"` // A `siteCredential` block as defined below, which contains the site-level credentials used to publish to this Logic App. SiteCredentials []GetStandardSiteCredential `pulumi:"siteCredentials"` // The access key which will be used to access the backend storage account for the Logic App. StorageAccountAccessKey string `pulumi:"storageAccountAccessKey"` // The backend storage account name which will be used by this Logic App (e.g. for Stateful workflows data). StorageAccountName string `pulumi:"storageAccountName"` // The name of the share used by the logic app. StorageAccountShareName string `pulumi:"storageAccountShareName"` // A mapping of tags assigned to the resource. Tags map[string]string `pulumi:"tags"` // Whether the logic app should use the bundled extension package. UseExtensionBundle bool `pulumi:"useExtensionBundle"` // The runtime version associated with the Logic App. Version string `pulumi:"version"` // The Virtual Network Subnet ID used for this IP Restriction. VirtualNetworkSubnetId string `pulumi:"virtualNetworkSubnetId"` } func LookupStandardOutput(ctx *pulumi.Context, args LookupStandardOutputArgs, opts ...pulumi.InvokeOption) LookupStandardResultOutput { return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupStandardResultOutput, error) { args := v.(LookupStandardArgs) options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} return ctx.InvokeOutput("azure:logicapps/getStandard:getStandard", args, LookupStandardResultOutput{}, options).(LookupStandardResultOutput), nil }).(LookupStandardResultOutput) } // A collection of arguments for invoking getStandard. type LookupStandardOutputArgs struct { // The name of the Logic App. Name pulumi.StringInput `pulumi:"name"` // The name of the Resource Group where the Logic App exists. ResourceGroupName pulumi.StringInput `pulumi:"resourceGroupName"` } func (LookupStandardOutputArgs) ElementType() reflect.Type { return reflect.TypeOf((*LookupStandardArgs)(nil)).Elem() } // A collection of values returned by getStandard. type LookupStandardResultOutput struct{ *pulumi.OutputState } func (LookupStandardResultOutput) ElementType() reflect.Type { return reflect.TypeOf((*LookupStandardResult)(nil)).Elem() } func (o LookupStandardResultOutput) ToLookupStandardResultOutput() LookupStandardResultOutput { return o } func (o LookupStandardResultOutput) ToLookupStandardResultOutputWithContext(ctx context.Context) LookupStandardResultOutput { return o } // The ID of the App Service Plan. func (o LookupStandardResultOutput) AppServicePlanId() pulumi.StringOutput { return o.ApplyT(func(v LookupStandardResult) string { return v.AppServicePlanId }).(pulumi.StringOutput) } // A map of key-value pairs for [App Settings](https://docs.microsoft.com/azure/azure-functions/functions-app-settings) and custom values. func (o LookupStandardResultOutput) AppSettings() pulumi.StringMapOutput { return o.ApplyT(func(v LookupStandardResult) map[string]string { return v.AppSettings }).(pulumi.StringMapOutput) } // Controls the allowed range for bundle versions. func (o LookupStandardResultOutput) BundleVersion() pulumi.StringOutput { return o.ApplyT(func(v LookupStandardResult) string { return v.BundleVersion }).(pulumi.StringOutput) } // Should the Logic App send session affinity cookies, which route client requests in the same session to the same instance. func (o LookupStandardResultOutput) ClientAffinityEnabled() pulumi.BoolOutput { return o.ApplyT(func(v LookupStandardResult) bool { return v.ClientAffinityEnabled }).(pulumi.BoolOutput) } // The mode of the Logic App's client certificates requirement for incoming requests. func (o LookupStandardResultOutput) ClientCertificateMode() pulumi.StringOutput { return o.ApplyT(func(v LookupStandardResult) string { return v.ClientCertificateMode }).(pulumi.StringOutput) } // A `connectionString` block as defined below. func (o LookupStandardResultOutput) ConnectionStrings() GetStandardConnectionStringArrayOutput { return o.ApplyT(func(v LookupStandardResult) []GetStandardConnectionString { return v.ConnectionStrings }).(GetStandardConnectionStringArrayOutput) } // The custom domain verification of the Logic App. func (o LookupStandardResultOutput) CustomDomainVerificationId() pulumi.StringOutput { return o.ApplyT(func(v LookupStandardResult) string { return v.CustomDomainVerificationId }).(pulumi.StringOutput) } // The default hostname of the Logic App. func (o LookupStandardResultOutput) DefaultHostname() pulumi.StringOutput { return o.ApplyT(func(v LookupStandardResult) string { return v.DefaultHostname }).(pulumi.StringOutput) } // Whether the Logic App is enabled. func (o LookupStandardResultOutput) Enabled() pulumi.BoolOutput { return o.ApplyT(func(v LookupStandardResult) bool { return v.Enabled }).(pulumi.BoolOutput) } // Whether the default FTP basic authentication publishing profile is enabled. func (o LookupStandardResultOutput) FtpPublishBasicAuthenticationEnabled() pulumi.BoolOutput { return o.ApplyT(func(v LookupStandardResult) bool { return v.FtpPublishBasicAuthenticationEnabled }).(pulumi.BoolOutput) } // Whether the Logic App can only be accessed via HTTPS. func (o LookupStandardResultOutput) HttpsOnly() pulumi.BoolOutput { return o.ApplyT(func(v LookupStandardResult) bool { return v.HttpsOnly }).(pulumi.BoolOutput) } // The provider-assigned unique ID for this managed resource. func (o LookupStandardResultOutput) Id() pulumi.StringOutput { return o.ApplyT(func(v LookupStandardResult) string { return v.Id }).(pulumi.StringOutput) } // An `identity` block as defined below. func (o LookupStandardResultOutput) Identities() GetStandardIdentityArrayOutput { return o.ApplyT(func(v LookupStandardResult) []GetStandardIdentity { return v.Identities }).(GetStandardIdentityArrayOutput) } // The kind of the Logic App. func (o LookupStandardResultOutput) Kind() pulumi.StringOutput { return o.ApplyT(func(v LookupStandardResult) string { return v.Kind }).(pulumi.StringOutput) } // The Azure location where the Logic App Standard exists. func (o LookupStandardResultOutput) Location() pulumi.StringOutput { return o.ApplyT(func(v LookupStandardResult) string { return v.Location }).(pulumi.StringOutput) } // The name for this IP Restriction. func (o LookupStandardResultOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v LookupStandardResult) string { return v.Name }).(pulumi.StringOutput) } // The outbound IP addresses of the Logic App. func (o LookupStandardResultOutput) OutboundIpAddresses() pulumi.StringOutput { return o.ApplyT(func(v LookupStandardResult) string { return v.OutboundIpAddresses }).(pulumi.StringOutput) } // The possible outbound IP addresses of the Logic App. func (o LookupStandardResultOutput) PossibleOutboundIpAddresses() pulumi.StringOutput { return o.ApplyT(func(v LookupStandardResult) string { return v.PossibleOutboundIpAddresses }).(pulumi.StringOutput) } // Whether Public Network Access should be enabled or not. func (o LookupStandardResultOutput) PublicNetworkAccess() pulumi.StringOutput { return o.ApplyT(func(v LookupStandardResult) string { return v.PublicNetworkAccess }).(pulumi.StringOutput) } func (o LookupStandardResultOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v LookupStandardResult) string { return v.ResourceGroupName }).(pulumi.StringOutput) } // Whether the default SCM basic authentication publishing profile is enabled. func (o LookupStandardResultOutput) ScmPublishBasicAuthenticationEnabled() pulumi.BoolOutput { return o.ApplyT(func(v LookupStandardResult) bool { return v.ScmPublishBasicAuthenticationEnabled }).(pulumi.BoolOutput) } // A `siteConfig` object as defined below. func (o LookupStandardResultOutput) SiteConfig() GetStandardSiteConfigOutput { return o.ApplyT(func(v LookupStandardResult) GetStandardSiteConfig { return v.SiteConfig }).(GetStandardSiteConfigOutput) } // A `siteCredential` block as defined below, which contains the site-level credentials used to publish to this Logic App. func (o LookupStandardResultOutput) SiteCredentials() GetStandardSiteCredentialArrayOutput { return o.ApplyT(func(v LookupStandardResult) []GetStandardSiteCredential { return v.SiteCredentials }).(GetStandardSiteCredentialArrayOutput) } // The access key which will be used to access the backend storage account for the Logic App. func (o LookupStandardResultOutput) StorageAccountAccessKey() pulumi.StringOutput { return o.ApplyT(func(v LookupStandardResult) string { return v.StorageAccountAccessKey }).(pulumi.StringOutput) } // The backend storage account name which will be used by this Logic App (e.g. for Stateful workflows data). func (o LookupStandardResultOutput) StorageAccountName() pulumi.StringOutput { return o.ApplyT(func(v LookupStandardResult) string { return v.StorageAccountName }).(pulumi.StringOutput) } // The name of the share used by the logic app. func (o LookupStandardResultOutput) StorageAccountShareName() pulumi.StringOutput { return o.ApplyT(func(v LookupStandardResult) string { return v.StorageAccountShareName }).(pulumi.StringOutput) } // A mapping of tags assigned to the resource. func (o LookupStandardResultOutput) Tags() pulumi.StringMapOutput { return o.ApplyT(func(v LookupStandardResult) map[string]string { return v.Tags }).(pulumi.StringMapOutput) } // Whether the logic app should use the bundled extension package. func (o LookupStandardResultOutput) UseExtensionBundle() pulumi.BoolOutput { return o.ApplyT(func(v LookupStandardResult) bool { return v.UseExtensionBundle }).(pulumi.BoolOutput) } // The runtime version associated with the Logic App. func (o LookupStandardResultOutput) Version() pulumi.StringOutput { return o.ApplyT(func(v LookupStandardResult) string { return v.Version }).(pulumi.StringOutput) } // The Virtual Network Subnet ID used for this IP Restriction. func (o LookupStandardResultOutput) VirtualNetworkSubnetId() pulumi.StringOutput { return o.ApplyT(func(v LookupStandardResult) string { return v.VirtualNetworkSubnetId }).(pulumi.StringOutput) } func init() { pulumi.RegisterOutputType(LookupStandardResultOutput{}) }
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/logicapps/getIntegrationAccount.go
sdk/go/azure/logicapps/getIntegrationAccount.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 logicapps 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 Logic App Integration Account. // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/logicapps" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { // example, err := logicapps.LookupIntegrationAccount(ctx, &logicapps.LookupIntegrationAccountArgs{ // Name: "example-account", // 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.Logic` - 2019-05-01 func LookupIntegrationAccount(ctx *pulumi.Context, args *LookupIntegrationAccountArgs, opts ...pulumi.InvokeOption) (*LookupIntegrationAccountResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupIntegrationAccountResult err := ctx.Invoke("azure:logicapps/getIntegrationAccount:getIntegrationAccount", args, &rv, opts...) if err != nil { return nil, err } return &rv, nil } // A collection of arguments for invoking getIntegrationAccount. type LookupIntegrationAccountArgs struct { // The name of this Logic App Integration Account. Name string `pulumi:"name"` // The name of the Resource Group where the Logic App Integration Account exists. ResourceGroupName string `pulumi:"resourceGroupName"` } // A collection of values returned by getIntegrationAccount. type LookupIntegrationAccountResult struct { // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` // The Azure Region where the Logic App Integration Account exists. Location string `pulumi:"location"` Name string `pulumi:"name"` ResourceGroupName string `pulumi:"resourceGroupName"` // The SKU name of the Logic App Integration Account. SkuName string `pulumi:"skuName"` // A mapping of tags assigned to the Logic App Integration Account. Tags map[string]string `pulumi:"tags"` } func LookupIntegrationAccountOutput(ctx *pulumi.Context, args LookupIntegrationAccountOutputArgs, opts ...pulumi.InvokeOption) LookupIntegrationAccountResultOutput { return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupIntegrationAccountResultOutput, error) { args := v.(LookupIntegrationAccountArgs) options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} return ctx.InvokeOutput("azure:logicapps/getIntegrationAccount:getIntegrationAccount", args, LookupIntegrationAccountResultOutput{}, options).(LookupIntegrationAccountResultOutput), nil }).(LookupIntegrationAccountResultOutput) } // A collection of arguments for invoking getIntegrationAccount. type LookupIntegrationAccountOutputArgs struct { // The name of this Logic App Integration Account. Name pulumi.StringInput `pulumi:"name"` // The name of the Resource Group where the Logic App Integration Account exists. ResourceGroupName pulumi.StringInput `pulumi:"resourceGroupName"` } func (LookupIntegrationAccountOutputArgs) ElementType() reflect.Type { return reflect.TypeOf((*LookupIntegrationAccountArgs)(nil)).Elem() } // A collection of values returned by getIntegrationAccount. type LookupIntegrationAccountResultOutput struct{ *pulumi.OutputState } func (LookupIntegrationAccountResultOutput) ElementType() reflect.Type { return reflect.TypeOf((*LookupIntegrationAccountResult)(nil)).Elem() } func (o LookupIntegrationAccountResultOutput) ToLookupIntegrationAccountResultOutput() LookupIntegrationAccountResultOutput { return o } func (o LookupIntegrationAccountResultOutput) ToLookupIntegrationAccountResultOutputWithContext(ctx context.Context) LookupIntegrationAccountResultOutput { return o } // The provider-assigned unique ID for this managed resource. func (o LookupIntegrationAccountResultOutput) Id() pulumi.StringOutput { return o.ApplyT(func(v LookupIntegrationAccountResult) string { return v.Id }).(pulumi.StringOutput) } // The Azure Region where the Logic App Integration Account exists. func (o LookupIntegrationAccountResultOutput) Location() pulumi.StringOutput { return o.ApplyT(func(v LookupIntegrationAccountResult) string { return v.Location }).(pulumi.StringOutput) } func (o LookupIntegrationAccountResultOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v LookupIntegrationAccountResult) string { return v.Name }).(pulumi.StringOutput) } func (o LookupIntegrationAccountResultOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v LookupIntegrationAccountResult) string { return v.ResourceGroupName }).(pulumi.StringOutput) } // The SKU name of the Logic App Integration Account. func (o LookupIntegrationAccountResultOutput) SkuName() pulumi.StringOutput { return o.ApplyT(func(v LookupIntegrationAccountResult) string { return v.SkuName }).(pulumi.StringOutput) } // A mapping of tags assigned to the Logic App Integration Account. func (o LookupIntegrationAccountResultOutput) Tags() pulumi.StringMapOutput { return o.ApplyT(func(v LookupIntegrationAccountResult) map[string]string { return v.Tags }).(pulumi.StringMapOutput) } func init() { pulumi.RegisterOutputType(LookupIntegrationAccountResultOutput{}) }
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/logicapps/integrationAccountSchema.go
sdk/go/azure/logicapps/integrationAccountSchema.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 logicapps import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a Logic App Integration Account Schema. // // ## 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/logicapps" // "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 // } // exampleIntegrationAccount, err := logicapps.NewIntegrationAccount(ctx, "example", &logicapps.IntegrationAccountArgs{ // Name: pulumi.String("example-ia"), // Location: example.Location, // ResourceGroupName: example.Name, // SkuName: pulumi.String("Basic"), // }) // if err != nil { // return err // } // invokeFile, err := std.File(ctx, &std.FileArgs{ // Input: "testdata/integration_account_schema_content.xsd", // }, nil) // if err != nil { // return err // } // _, err = logicapps.NewIntegrationAccountSchema(ctx, "example", &logicapps.IntegrationAccountSchemaArgs{ // Name: pulumi.String("example-ias"), // ResourceGroupName: example.Name, // IntegrationAccountName: exampleIntegrationAccount.Name, // Content: pulumi.String(invokeFile.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.Logic` - 2019-05-01 // // ## Import // // Logic App Integration Account Schemas can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:logicapps/integrationAccountSchema:IntegrationAccountSchema example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Logic/integrationAccounts/account1/schemas/schema1 // ``` type IntegrationAccountSchema struct { pulumi.CustomResourceState // The content of the Logic App Integration Account Schema. Content pulumi.StringOutput `pulumi:"content"` // The file name of the Logic App Integration Account Schema. FileName pulumi.StringPtrOutput `pulumi:"fileName"` // The name of the Logic App Integration Account. Changing this forces a new Logic App Integration Account Schema to be created. IntegrationAccountName pulumi.StringOutput `pulumi:"integrationAccountName"` // The metadata of the Logic App Integration Account Schema. Metadata pulumi.StringPtrOutput `pulumi:"metadata"` // The name which should be used for this Logic App Integration Account Schema. Changing this forces a new Logic App Integration Account Schema to be created. Name pulumi.StringOutput `pulumi:"name"` // The name of the Resource Group where the Logic App Integration Account Schema should exist. Changing this forces a new Logic App Integration Account Schema to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` } // NewIntegrationAccountSchema registers a new resource with the given unique name, arguments, and options. func NewIntegrationAccountSchema(ctx *pulumi.Context, name string, args *IntegrationAccountSchemaArgs, opts ...pulumi.ResourceOption) (*IntegrationAccountSchema, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.Content == nil { return nil, errors.New("invalid value for required argument 'Content'") } if args.IntegrationAccountName == nil { return nil, errors.New("invalid value for required argument 'IntegrationAccountName'") } if args.ResourceGroupName == nil { return nil, errors.New("invalid value for required argument 'ResourceGroupName'") } opts = internal.PkgResourceDefaultOpts(opts) var resource IntegrationAccountSchema err := ctx.RegisterResource("azure:logicapps/integrationAccountSchema:IntegrationAccountSchema", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetIntegrationAccountSchema gets an existing IntegrationAccountSchema 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 GetIntegrationAccountSchema(ctx *pulumi.Context, name string, id pulumi.IDInput, state *IntegrationAccountSchemaState, opts ...pulumi.ResourceOption) (*IntegrationAccountSchema, error) { var resource IntegrationAccountSchema err := ctx.ReadResource("azure:logicapps/integrationAccountSchema:IntegrationAccountSchema", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering IntegrationAccountSchema resources. type integrationAccountSchemaState struct { // The content of the Logic App Integration Account Schema. Content *string `pulumi:"content"` // The file name of the Logic App Integration Account Schema. FileName *string `pulumi:"fileName"` // The name of the Logic App Integration Account. Changing this forces a new Logic App Integration Account Schema to be created. IntegrationAccountName *string `pulumi:"integrationAccountName"` // The metadata of the Logic App Integration Account Schema. Metadata *string `pulumi:"metadata"` // The name which should be used for this Logic App Integration Account Schema. Changing this forces a new Logic App Integration Account Schema to be created. Name *string `pulumi:"name"` // The name of the Resource Group where the Logic App Integration Account Schema should exist. Changing this forces a new Logic App Integration Account Schema to be created. ResourceGroupName *string `pulumi:"resourceGroupName"` } type IntegrationAccountSchemaState struct { // The content of the Logic App Integration Account Schema. Content pulumi.StringPtrInput // The file name of the Logic App Integration Account Schema. FileName pulumi.StringPtrInput // The name of the Logic App Integration Account. Changing this forces a new Logic App Integration Account Schema to be created. IntegrationAccountName pulumi.StringPtrInput // The metadata of the Logic App Integration Account Schema. Metadata pulumi.StringPtrInput // The name which should be used for this Logic App Integration Account Schema. Changing this forces a new Logic App Integration Account Schema to be created. Name pulumi.StringPtrInput // The name of the Resource Group where the Logic App Integration Account Schema should exist. Changing this forces a new Logic App Integration Account Schema to be created. ResourceGroupName pulumi.StringPtrInput } func (IntegrationAccountSchemaState) ElementType() reflect.Type { return reflect.TypeOf((*integrationAccountSchemaState)(nil)).Elem() } type integrationAccountSchemaArgs struct { // The content of the Logic App Integration Account Schema. Content string `pulumi:"content"` // The file name of the Logic App Integration Account Schema. FileName *string `pulumi:"fileName"` // The name of the Logic App Integration Account. Changing this forces a new Logic App Integration Account Schema to be created. IntegrationAccountName string `pulumi:"integrationAccountName"` // The metadata of the Logic App Integration Account Schema. Metadata *string `pulumi:"metadata"` // The name which should be used for this Logic App Integration Account Schema. Changing this forces a new Logic App Integration Account Schema to be created. Name *string `pulumi:"name"` // The name of the Resource Group where the Logic App Integration Account Schema should exist. Changing this forces a new Logic App Integration Account Schema to be created. ResourceGroupName string `pulumi:"resourceGroupName"` } // The set of arguments for constructing a IntegrationAccountSchema resource. type IntegrationAccountSchemaArgs struct { // The content of the Logic App Integration Account Schema. Content pulumi.StringInput // The file name of the Logic App Integration Account Schema. FileName pulumi.StringPtrInput // The name of the Logic App Integration Account. Changing this forces a new Logic App Integration Account Schema to be created. IntegrationAccountName pulumi.StringInput // The metadata of the Logic App Integration Account Schema. Metadata pulumi.StringPtrInput // The name which should be used for this Logic App Integration Account Schema. Changing this forces a new Logic App Integration Account Schema to be created. Name pulumi.StringPtrInput // The name of the Resource Group where the Logic App Integration Account Schema should exist. Changing this forces a new Logic App Integration Account Schema to be created. ResourceGroupName pulumi.StringInput } func (IntegrationAccountSchemaArgs) ElementType() reflect.Type { return reflect.TypeOf((*integrationAccountSchemaArgs)(nil)).Elem() } type IntegrationAccountSchemaInput interface { pulumi.Input ToIntegrationAccountSchemaOutput() IntegrationAccountSchemaOutput ToIntegrationAccountSchemaOutputWithContext(ctx context.Context) IntegrationAccountSchemaOutput } func (*IntegrationAccountSchema) ElementType() reflect.Type { return reflect.TypeOf((**IntegrationAccountSchema)(nil)).Elem() } func (i *IntegrationAccountSchema) ToIntegrationAccountSchemaOutput() IntegrationAccountSchemaOutput { return i.ToIntegrationAccountSchemaOutputWithContext(context.Background()) } func (i *IntegrationAccountSchema) ToIntegrationAccountSchemaOutputWithContext(ctx context.Context) IntegrationAccountSchemaOutput { return pulumi.ToOutputWithContext(ctx, i).(IntegrationAccountSchemaOutput) } // IntegrationAccountSchemaArrayInput is an input type that accepts IntegrationAccountSchemaArray and IntegrationAccountSchemaArrayOutput values. // You can construct a concrete instance of `IntegrationAccountSchemaArrayInput` via: // // IntegrationAccountSchemaArray{ IntegrationAccountSchemaArgs{...} } type IntegrationAccountSchemaArrayInput interface { pulumi.Input ToIntegrationAccountSchemaArrayOutput() IntegrationAccountSchemaArrayOutput ToIntegrationAccountSchemaArrayOutputWithContext(context.Context) IntegrationAccountSchemaArrayOutput } type IntegrationAccountSchemaArray []IntegrationAccountSchemaInput func (IntegrationAccountSchemaArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*IntegrationAccountSchema)(nil)).Elem() } func (i IntegrationAccountSchemaArray) ToIntegrationAccountSchemaArrayOutput() IntegrationAccountSchemaArrayOutput { return i.ToIntegrationAccountSchemaArrayOutputWithContext(context.Background()) } func (i IntegrationAccountSchemaArray) ToIntegrationAccountSchemaArrayOutputWithContext(ctx context.Context) IntegrationAccountSchemaArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(IntegrationAccountSchemaArrayOutput) } // IntegrationAccountSchemaMapInput is an input type that accepts IntegrationAccountSchemaMap and IntegrationAccountSchemaMapOutput values. // You can construct a concrete instance of `IntegrationAccountSchemaMapInput` via: // // IntegrationAccountSchemaMap{ "key": IntegrationAccountSchemaArgs{...} } type IntegrationAccountSchemaMapInput interface { pulumi.Input ToIntegrationAccountSchemaMapOutput() IntegrationAccountSchemaMapOutput ToIntegrationAccountSchemaMapOutputWithContext(context.Context) IntegrationAccountSchemaMapOutput } type IntegrationAccountSchemaMap map[string]IntegrationAccountSchemaInput func (IntegrationAccountSchemaMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*IntegrationAccountSchema)(nil)).Elem() } func (i IntegrationAccountSchemaMap) ToIntegrationAccountSchemaMapOutput() IntegrationAccountSchemaMapOutput { return i.ToIntegrationAccountSchemaMapOutputWithContext(context.Background()) } func (i IntegrationAccountSchemaMap) ToIntegrationAccountSchemaMapOutputWithContext(ctx context.Context) IntegrationAccountSchemaMapOutput { return pulumi.ToOutputWithContext(ctx, i).(IntegrationAccountSchemaMapOutput) } type IntegrationAccountSchemaOutput struct{ *pulumi.OutputState } func (IntegrationAccountSchemaOutput) ElementType() reflect.Type { return reflect.TypeOf((**IntegrationAccountSchema)(nil)).Elem() } func (o IntegrationAccountSchemaOutput) ToIntegrationAccountSchemaOutput() IntegrationAccountSchemaOutput { return o } func (o IntegrationAccountSchemaOutput) ToIntegrationAccountSchemaOutputWithContext(ctx context.Context) IntegrationAccountSchemaOutput { return o } // The content of the Logic App Integration Account Schema. func (o IntegrationAccountSchemaOutput) Content() pulumi.StringOutput { return o.ApplyT(func(v *IntegrationAccountSchema) pulumi.StringOutput { return v.Content }).(pulumi.StringOutput) } // The file name of the Logic App Integration Account Schema. func (o IntegrationAccountSchemaOutput) FileName() pulumi.StringPtrOutput { return o.ApplyT(func(v *IntegrationAccountSchema) pulumi.StringPtrOutput { return v.FileName }).(pulumi.StringPtrOutput) } // The name of the Logic App Integration Account. Changing this forces a new Logic App Integration Account Schema to be created. func (o IntegrationAccountSchemaOutput) IntegrationAccountName() pulumi.StringOutput { return o.ApplyT(func(v *IntegrationAccountSchema) pulumi.StringOutput { return v.IntegrationAccountName }).(pulumi.StringOutput) } // The metadata of the Logic App Integration Account Schema. func (o IntegrationAccountSchemaOutput) Metadata() pulumi.StringPtrOutput { return o.ApplyT(func(v *IntegrationAccountSchema) pulumi.StringPtrOutput { return v.Metadata }).(pulumi.StringPtrOutput) } // The name which should be used for this Logic App Integration Account Schema. Changing this forces a new Logic App Integration Account Schema to be created. func (o IntegrationAccountSchemaOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *IntegrationAccountSchema) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // The name of the Resource Group where the Logic App Integration Account Schema should exist. Changing this forces a new Logic App Integration Account Schema to be created. func (o IntegrationAccountSchemaOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v *IntegrationAccountSchema) pulumi.StringOutput { return v.ResourceGroupName }).(pulumi.StringOutput) } type IntegrationAccountSchemaArrayOutput struct{ *pulumi.OutputState } func (IntegrationAccountSchemaArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*IntegrationAccountSchema)(nil)).Elem() } func (o IntegrationAccountSchemaArrayOutput) ToIntegrationAccountSchemaArrayOutput() IntegrationAccountSchemaArrayOutput { return o } func (o IntegrationAccountSchemaArrayOutput) ToIntegrationAccountSchemaArrayOutputWithContext(ctx context.Context) IntegrationAccountSchemaArrayOutput { return o } func (o IntegrationAccountSchemaArrayOutput) Index(i pulumi.IntInput) IntegrationAccountSchemaOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *IntegrationAccountSchema { return vs[0].([]*IntegrationAccountSchema)[vs[1].(int)] }).(IntegrationAccountSchemaOutput) } type IntegrationAccountSchemaMapOutput struct{ *pulumi.OutputState } func (IntegrationAccountSchemaMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*IntegrationAccountSchema)(nil)).Elem() } func (o IntegrationAccountSchemaMapOutput) ToIntegrationAccountSchemaMapOutput() IntegrationAccountSchemaMapOutput { return o } func (o IntegrationAccountSchemaMapOutput) ToIntegrationAccountSchemaMapOutputWithContext(ctx context.Context) IntegrationAccountSchemaMapOutput { return o } func (o IntegrationAccountSchemaMapOutput) MapIndex(k pulumi.StringInput) IntegrationAccountSchemaOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *IntegrationAccountSchema { return vs[0].(map[string]*IntegrationAccountSchema)[vs[1].(string)] }).(IntegrationAccountSchemaOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*IntegrationAccountSchemaInput)(nil)).Elem(), &IntegrationAccountSchema{}) pulumi.RegisterInputType(reflect.TypeOf((*IntegrationAccountSchemaArrayInput)(nil)).Elem(), IntegrationAccountSchemaArray{}) pulumi.RegisterInputType(reflect.TypeOf((*IntegrationAccountSchemaMapInput)(nil)).Elem(), IntegrationAccountSchemaMap{}) pulumi.RegisterOutputType(IntegrationAccountSchemaOutput{}) pulumi.RegisterOutputType(IntegrationAccountSchemaArrayOutput{}) pulumi.RegisterOutputType(IntegrationAccountSchemaMapOutput{}) }
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/logicapps/standard.go
sdk/go/azure/logicapps/standard.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 logicapps import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a Logic App (Standard / Single Tenant) // // ## 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/logicapps" // "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"), // Location: pulumi.String("West Europe"), // }) // if err != nil { // return err // } // exampleAccount, 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{ // Name: pulumi.String("example-service-plan"), // Location: example.Location, // ResourceGroupName: example.Name, // OsType: pulumi.String("Windows"), // SkuName: pulumi.String("WS1"), // }) // if err != nil { // return err // } // _, err = logicapps.NewStandard(ctx, "example", &logicapps.StandardArgs{ // Name: pulumi.String("example-logic-app"), // Location: example.Location, // ResourceGroupName: example.Name, // AppServicePlanId: pulumi.Any(exampleAzurermAppServicePlan.Id), // StorageAccountName: exampleAccount.Name, // StorageAccountAccessKey: exampleAccount.PrimaryAccessKey, // AppSettings: pulumi.StringMap{ // "FUNCTIONS_WORKER_RUNTIME": pulumi.String("node"), // "WEBSITE_NODE_DEFAULT_VERSION": pulumi.String("~18"), // }, // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ### For Container Mode) // // ```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/logicapps" // "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"), // Location: pulumi.String("West Europe"), // }) // if err != nil { // return err // } // exampleAccount, 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 // } // examplePlan, err := appservice.NewPlan(ctx, "example", &appservice.PlanArgs{ // Name: pulumi.String("example-service-plan"), // Location: example.Location, // ResourceGroupName: example.Name, // Kind: pulumi.Any("Linux"), // Reserved: pulumi.Bool(true), // Sku: &appservice.PlanSkuArgs{ // Tier: pulumi.String("WorkflowStandard"), // Size: pulumi.String("WS1"), // }, // }) // if err != nil { // return err // } // _, err = logicapps.NewStandard(ctx, "example", &logicapps.StandardArgs{ // Name: pulumi.String("example-logic-app"), // Location: example.Location, // ResourceGroupName: example.Name, // AppServicePlanId: examplePlan.ID(), // StorageAccountName: exampleAccount.Name, // StorageAccountAccessKey: exampleAccount.PrimaryAccessKey, // SiteConfig: &logicapps.StandardSiteConfigArgs{ // LinuxFxVersion: pulumi.String("DOCKER|mcr.microsoft.com/azure-functions/dotnet:3.0-appservice"), // }, // AppSettings: pulumi.StringMap{ // "DOCKER_REGISTRY_SERVER_URL": pulumi.String("https://<server-name>.azurecr.io"), // "DOCKER_REGISTRY_SERVER_USERNAME": pulumi.String("username"), // "DOCKER_REGISTRY_SERVER_PASSWORD": pulumi.String("password"), // }, // }) // 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 // // Logic Apps can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:logicapps/standard:Standard logicapp1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Web/sites/logicapp1 // ``` type Standard struct { pulumi.CustomResourceState // The ID of the App Service Plan within which to create this Logic 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:** There are a number of application settings that will be managed for you by this resource type and *shouldn't* be configured separately as part of the appSettings you specify. `AzureWebJobsStorage` is filled based on `storageAccountName` and `storageAccountAccessKey`. `WEBSITE_CONTENTSHARE` is detailed below. `FUNCTIONS_EXTENSION_VERSION` is filled based on `version`. `APP_KIND` is set to workflowApp and `AzureFunctionsJobHost__extensionBundle__id` and `AzureFunctionsJobHost__extensionBundle__version` are set as detailed below. AppSettings pulumi.StringMapOutput `pulumi:"appSettings"` // If `useExtensionBundle` is set to `true` this controls the allowed range for bundle versions. Defaults to `[1.*, 2.0.0)`. BundleVersion pulumi.StringPtrOutput `pulumi:"bundleVersion"` // Should the Logic App send session affinity cookies, which route client requests in the same session to the same instance? ClientAffinityEnabled pulumi.BoolOutput `pulumi:"clientAffinityEnabled"` // The mode of the Logic App's client certificates requirement for incoming requests. Possible values are `Required`, `Optional`, and `OptionalInteractiveUser`. ClientCertificateMode pulumi.StringPtrOutput `pulumi:"clientCertificateMode"` // A `connectionString` block as defined below. ConnectionStrings StandardConnectionStringArrayOutput `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 Logic App - such as `mysite.azurewebsites.net`. DefaultHostname pulumi.StringOutput `pulumi:"defaultHostname"` // Is the Logic App enabled? Defaults to `true`. Enabled pulumi.BoolPtrOutput `pulumi:"enabled"` // Whether the FTP basic authentication publishing profile is enabled. Defaults to `true`. FtpPublishBasicAuthenticationEnabled pulumi.BoolPtrOutput `pulumi:"ftpPublishBasicAuthenticationEnabled"` // Can the Logic App only be accessed via HTTPS? Defaults to `false`. HttpsOnly pulumi.BoolPtrOutput `pulumi:"httpsOnly"` // An `identity` block as defined below. Identity StandardIdentityPtrOutput `pulumi:"identity"` // The Logic App kind. 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 Logic App. Changing this forces a new resource to be created. Name pulumi.StringOutput `pulumi:"name"` // 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"` // Whether Public Network Access should be enabled or not. Possible values are `Enabled` and `Disabled`. Defaults to `Enabled`. // // > **Note:** Setting this property will also set it in the Site Config. PublicNetworkAccess pulumi.StringOutput `pulumi:"publicNetworkAccess"` // The name of the resource group in which to create the Logic App. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // Whether the default SCM basic authentication publishing profile is enabled. Defaults to `true`. ScmPublishBasicAuthenticationEnabled pulumi.BoolPtrOutput `pulumi:"scmPublishBasicAuthenticationEnabled"` // A `siteConfig` object as defined below. SiteConfig StandardSiteConfigOutput `pulumi:"siteConfig"` // A `siteCredential` block as defined below, which contains the site-level credentials used to publish to this App Service. SiteCredentials StandardSiteCredentialArrayOutput `pulumi:"siteCredentials"` // The access key which will be used to access the backend storage account for the Logic App. StorageAccountAccessKey pulumi.StringOutput `pulumi:"storageAccountAccessKey"` // The backend storage account name which will be used by this Logic App (e.g. for Stateful workflows data). Changing this forces a new resource to be created. StorageAccountName pulumi.StringOutput `pulumi:"storageAccountName"` StorageAccountShareName pulumi.StringOutput `pulumi:"storageAccountShareName"` // A mapping of tags to assign to the resource. Tags pulumi.StringMapOutput `pulumi:"tags"` // Should the logic app use the bundled extension package? If true, then application settings for `AzureFunctionsJobHost__extensionBundle__id` and `AzureFunctionsJobHost__extensionBundle__version` will be created. Defaults to `true`. UseExtensionBundle pulumi.BoolPtrOutput `pulumi:"useExtensionBundle"` // The runtime version associated with the Logic App. Defaults to `~4`. Version pulumi.StringPtrOutput `pulumi:"version"` VirtualNetworkSubnetId pulumi.StringPtrOutput `pulumi:"virtualNetworkSubnetId"` // Specifies whether allow routing traffic between the Logic App and Storage Account content share through a virtual network. Defaults to `false`. VnetContentShareEnabled pulumi.BoolPtrOutput `pulumi:"vnetContentShareEnabled"` } // NewStandard registers a new resource with the given unique name, arguments, and options. func NewStandard(ctx *pulumi.Context, name string, args *StandardArgs, opts ...pulumi.ResourceOption) (*Standard, 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 Standard err := ctx.RegisterResource("azure:logicapps/standard:Standard", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetStandard gets an existing Standard 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 GetStandard(ctx *pulumi.Context, name string, id pulumi.IDInput, state *StandardState, opts ...pulumi.ResourceOption) (*Standard, error) { var resource Standard err := ctx.ReadResource("azure:logicapps/standard:Standard", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering Standard resources. type standardState struct { // The ID of the App Service Plan within which to create this Logic 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:** There are a number of application settings that will be managed for you by this resource type and *shouldn't* be configured separately as part of the appSettings you specify. `AzureWebJobsStorage` is filled based on `storageAccountName` and `storageAccountAccessKey`. `WEBSITE_CONTENTSHARE` is detailed below. `FUNCTIONS_EXTENSION_VERSION` is filled based on `version`. `APP_KIND` is set to workflowApp and `AzureFunctionsJobHost__extensionBundle__id` and `AzureFunctionsJobHost__extensionBundle__version` are set as detailed below. AppSettings map[string]string `pulumi:"appSettings"` // If `useExtensionBundle` is set to `true` this controls the allowed range for bundle versions. Defaults to `[1.*, 2.0.0)`. BundleVersion *string `pulumi:"bundleVersion"` // Should the Logic App send session affinity cookies, which route client requests in the same session to the same instance? ClientAffinityEnabled *bool `pulumi:"clientAffinityEnabled"` // The mode of the Logic App's client certificates requirement for incoming requests. Possible values are `Required`, `Optional`, and `OptionalInteractiveUser`. ClientCertificateMode *string `pulumi:"clientCertificateMode"` // A `connectionString` block as defined below. ConnectionStrings []StandardConnectionString `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 Logic App - such as `mysite.azurewebsites.net`. DefaultHostname *string `pulumi:"defaultHostname"` // Is the Logic App enabled? Defaults to `true`. Enabled *bool `pulumi:"enabled"` // Whether the FTP basic authentication publishing profile is enabled. Defaults to `true`. FtpPublishBasicAuthenticationEnabled *bool `pulumi:"ftpPublishBasicAuthenticationEnabled"` // Can the Logic App only be accessed via HTTPS? Defaults to `false`. HttpsOnly *bool `pulumi:"httpsOnly"` // An `identity` block as defined below. Identity *StandardIdentity `pulumi:"identity"` // The Logic App kind. 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 Logic App. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // 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"` // Whether Public Network Access should be enabled or not. Possible values are `Enabled` and `Disabled`. Defaults to `Enabled`. // // > **Note:** Setting this property will also set it in the Site Config. PublicNetworkAccess *string `pulumi:"publicNetworkAccess"` // The name of the resource group in which to create the Logic App. Changing this forces a new resource to be created. ResourceGroupName *string `pulumi:"resourceGroupName"` // Whether the default SCM basic authentication publishing profile is enabled. Defaults to `true`. ScmPublishBasicAuthenticationEnabled *bool `pulumi:"scmPublishBasicAuthenticationEnabled"` // A `siteConfig` object as defined below. SiteConfig *StandardSiteConfig `pulumi:"siteConfig"` // A `siteCredential` block as defined below, which contains the site-level credentials used to publish to this App Service. SiteCredentials []StandardSiteCredential `pulumi:"siteCredentials"` // The access key which will be used to access the backend storage account for the Logic App. StorageAccountAccessKey *string `pulumi:"storageAccountAccessKey"` // The backend storage account name which will be used by this Logic App (e.g. for Stateful workflows data). Changing this forces a new resource to be created. StorageAccountName *string `pulumi:"storageAccountName"` StorageAccountShareName *string `pulumi:"storageAccountShareName"` // A mapping of tags to assign to the resource. Tags map[string]string `pulumi:"tags"` // Should the logic app use the bundled extension package? If true, then application settings for `AzureFunctionsJobHost__extensionBundle__id` and `AzureFunctionsJobHost__extensionBundle__version` will be created. Defaults to `true`. UseExtensionBundle *bool `pulumi:"useExtensionBundle"` // The runtime version associated with the Logic App. Defaults to `~4`. Version *string `pulumi:"version"` VirtualNetworkSubnetId *string `pulumi:"virtualNetworkSubnetId"` // Specifies whether allow routing traffic between the Logic App and Storage Account content share through a virtual network. Defaults to `false`. VnetContentShareEnabled *bool `pulumi:"vnetContentShareEnabled"` } type StandardState struct { // The ID of the App Service Plan within which to create this Logic 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:** There are a number of application settings that will be managed for you by this resource type and *shouldn't* be configured separately as part of the appSettings you specify. `AzureWebJobsStorage` is filled based on `storageAccountName` and `storageAccountAccessKey`. `WEBSITE_CONTENTSHARE` is detailed below. `FUNCTIONS_EXTENSION_VERSION` is filled based on `version`. `APP_KIND` is set to workflowApp and `AzureFunctionsJobHost__extensionBundle__id` and `AzureFunctionsJobHost__extensionBundle__version` are set as detailed below. AppSettings pulumi.StringMapInput // If `useExtensionBundle` is set to `true` this controls the allowed range for bundle versions. Defaults to `[1.*, 2.0.0)`. BundleVersion pulumi.StringPtrInput // Should the Logic App send session affinity cookies, which route client requests in the same session to the same instance? ClientAffinityEnabled pulumi.BoolPtrInput // The mode of the Logic App's client certificates requirement for incoming requests. Possible values are `Required`, `Optional`, and `OptionalInteractiveUser`. ClientCertificateMode pulumi.StringPtrInput // A `connectionString` block as defined below. ConnectionStrings StandardConnectionStringArrayInput // An identifier used by App Service to perform domain ownership verification via DNS TXT record. CustomDomainVerificationId pulumi.StringPtrInput // The default hostname associated with the Logic App - such as `mysite.azurewebsites.net`. DefaultHostname pulumi.StringPtrInput // Is the Logic App enabled? Defaults to `true`. Enabled pulumi.BoolPtrInput // Whether the FTP basic authentication publishing profile is enabled. Defaults to `true`. FtpPublishBasicAuthenticationEnabled pulumi.BoolPtrInput // Can the Logic App only be accessed via HTTPS? Defaults to `false`. HttpsOnly pulumi.BoolPtrInput // An `identity` block as defined below. Identity StandardIdentityPtrInput // The Logic App kind. 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 Logic App. Changing this forces a new resource to be created. Name 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 // Whether Public Network Access should be enabled or not. Possible values are `Enabled` and `Disabled`. Defaults to `Enabled`. // // > **Note:** Setting this property will also set it in the Site Config. PublicNetworkAccess pulumi.StringPtrInput // The name of the resource group in which to create the Logic App. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringPtrInput // Whether the default SCM basic authentication publishing profile is enabled. Defaults to `true`. ScmPublishBasicAuthenticationEnabled pulumi.BoolPtrInput // A `siteConfig` object as defined below. SiteConfig StandardSiteConfigPtrInput // A `siteCredential` block as defined below, which contains the site-level credentials used to publish to this App Service. SiteCredentials StandardSiteCredentialArrayInput // The access key which will be used to access the backend storage account for the Logic App. StorageAccountAccessKey pulumi.StringPtrInput // The backend storage account name which will be used by this Logic App (e.g. for Stateful workflows data). Changing this forces a new resource to be created. StorageAccountName pulumi.StringPtrInput StorageAccountShareName pulumi.StringPtrInput // A mapping of tags to assign to the resource. Tags pulumi.StringMapInput // Should the logic app use the bundled extension package? If true, then application settings for `AzureFunctionsJobHost__extensionBundle__id` and `AzureFunctionsJobHost__extensionBundle__version` will be created. Defaults to `true`. UseExtensionBundle pulumi.BoolPtrInput // The runtime version associated with the Logic App. Defaults to `~4`. Version pulumi.StringPtrInput VirtualNetworkSubnetId pulumi.StringPtrInput // Specifies whether allow routing traffic between the Logic App and Storage Account content share through a virtual network. Defaults to `false`. VnetContentShareEnabled pulumi.BoolPtrInput } func (StandardState) ElementType() reflect.Type { return reflect.TypeOf((*standardState)(nil)).Elem() } type standardArgs struct { // The ID of the App Service Plan within which to create this Logic 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:** There are a number of application settings that will be managed for you by this resource type and *shouldn't* be configured separately as part of the appSettings you specify. `AzureWebJobsStorage` is filled based on `storageAccountName` and `storageAccountAccessKey`. `WEBSITE_CONTENTSHARE` is detailed below. `FUNCTIONS_EXTENSION_VERSION` is filled based on `version`. `APP_KIND` is set to workflowApp and `AzureFunctionsJobHost__extensionBundle__id` and `AzureFunctionsJobHost__extensionBundle__version` are set as detailed below. AppSettings map[string]string `pulumi:"appSettings"` // If `useExtensionBundle` is set to `true` this controls the allowed range for bundle versions. Defaults to `[1.*, 2.0.0)`. BundleVersion *string `pulumi:"bundleVersion"` // Should the Logic App send session affinity cookies, which route client requests in the same session to the same instance? ClientAffinityEnabled *bool `pulumi:"clientAffinityEnabled"` // The mode of the Logic App's client certificates requirement for incoming requests. Possible values are `Required`, `Optional`, and `OptionalInteractiveUser`. ClientCertificateMode *string `pulumi:"clientCertificateMode"` // A `connectionString` block as defined below. ConnectionStrings []StandardConnectionString `pulumi:"connectionStrings"` // Is the Logic App enabled? Defaults to `true`. Enabled *bool `pulumi:"enabled"` // Whether the FTP basic authentication publishing profile is enabled. Defaults to `true`. FtpPublishBasicAuthenticationEnabled *bool `pulumi:"ftpPublishBasicAuthenticationEnabled"` // Can the Logic App only be accessed via HTTPS? Defaults to `false`. HttpsOnly *bool `pulumi:"httpsOnly"` // An `identity` block as defined below. Identity *StandardIdentity `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 Logic App. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // Whether Public Network Access should be enabled or not. Possible values are `Enabled` and `Disabled`. Defaults to `Enabled`. // // > **Note:** Setting this property will also set it in the Site Config. PublicNetworkAccess *string `pulumi:"publicNetworkAccess"` // The name of the resource group in which to create the Logic App. Changing this forces a new resource to be created. ResourceGroupName string `pulumi:"resourceGroupName"` // Whether the default SCM basic authentication publishing profile is enabled. Defaults to `true`. ScmPublishBasicAuthenticationEnabled *bool `pulumi:"scmPublishBasicAuthenticationEnabled"` // A `siteConfig` object as defined below. SiteConfig *StandardSiteConfig `pulumi:"siteConfig"` // The access key which will be used to access the backend storage account for the Logic App. StorageAccountAccessKey string `pulumi:"storageAccountAccessKey"` // The backend storage account name which will be used by this Logic App (e.g. for Stateful workflows data). Changing this forces a new resource to be created. StorageAccountName string `pulumi:"storageAccountName"` StorageAccountShareName *string `pulumi:"storageAccountShareName"` // A mapping of tags to assign to the resource. Tags map[string]string `pulumi:"tags"` // Should the logic app use the bundled extension package? If true, then application settings for `AzureFunctionsJobHost__extensionBundle__id` and `AzureFunctionsJobHost__extensionBundle__version` will be created. Defaults to `true`. UseExtensionBundle *bool `pulumi:"useExtensionBundle"` // The runtime version associated with the Logic App. Defaults to `~4`. Version *string `pulumi:"version"` VirtualNetworkSubnetId *string `pulumi:"virtualNetworkSubnetId"` // Specifies whether allow routing traffic between the Logic App and Storage Account content share through a virtual network. Defaults to `false`. VnetContentShareEnabled *bool `pulumi:"vnetContentShareEnabled"` } // The set of arguments for constructing a Standard resource. type StandardArgs struct { // The ID of the App Service Plan within which to create this Logic 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:** There are a number of application settings that will be managed for you by this resource type and *shouldn't* be configured separately as part of the appSettings you specify. `AzureWebJobsStorage` is filled based on `storageAccountName` and `storageAccountAccessKey`. `WEBSITE_CONTENTSHARE` is detailed below. `FUNCTIONS_EXTENSION_VERSION` is filled based on `version`. `APP_KIND` is set to workflowApp and `AzureFunctionsJobHost__extensionBundle__id` and `AzureFunctionsJobHost__extensionBundle__version` are set as detailed below. AppSettings pulumi.StringMapInput // If `useExtensionBundle` is set to `true` this controls the allowed range for bundle versions. Defaults to `[1.*, 2.0.0)`. BundleVersion pulumi.StringPtrInput // Should the Logic App send session affinity cookies, which route client requests in the same session to the same instance? ClientAffinityEnabled pulumi.BoolPtrInput // The mode of the Logic App's client certificates requirement for incoming requests. Possible values are `Required`, `Optional`, and `OptionalInteractiveUser`. ClientCertificateMode pulumi.StringPtrInput // A `connectionString` block as defined below. ConnectionStrings StandardConnectionStringArrayInput // Is the Logic App enabled? Defaults to `true`. Enabled pulumi.BoolPtrInput // Whether the FTP basic authentication publishing profile is enabled. Defaults to `true`. FtpPublishBasicAuthenticationEnabled pulumi.BoolPtrInput // Can the Logic App only be accessed via HTTPS? Defaults to `false`. HttpsOnly pulumi.BoolPtrInput // An `identity` block as defined below. Identity StandardIdentityPtrInput // 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 Logic App. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // Whether Public Network Access should be enabled or not. Possible values are `Enabled` and `Disabled`. Defaults to `Enabled`. // // > **Note:** Setting this property will also set it in the Site Config. PublicNetworkAccess pulumi.StringPtrInput // The name of the resource group in which to create the Logic App. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringInput // Whether the default SCM basic authentication publishing profile is enabled. Defaults to `true`. ScmPublishBasicAuthenticationEnabled pulumi.BoolPtrInput // A `siteConfig` object as defined below. SiteConfig StandardSiteConfigPtrInput // The access key which will be used to access the backend storage account for the Logic App. StorageAccountAccessKey pulumi.StringInput // The backend storage account name which will be used by this Logic App (e.g. for Stateful workflows data). Changing this forces a new resource to be created. StorageAccountName pulumi.StringInput StorageAccountShareName pulumi.StringPtrInput // A mapping of tags to assign to the resource. Tags pulumi.StringMapInput // Should the logic app use the bundled extension package? If true, then application settings for `AzureFunctionsJobHost__extensionBundle__id` and `AzureFunctionsJobHost__extensionBundle__version` will be created. Defaults to `true`. UseExtensionBundle pulumi.BoolPtrInput // The runtime version associated with the Logic App. Defaults to `~4`. Version pulumi.StringPtrInput VirtualNetworkSubnetId pulumi.StringPtrInput // Specifies whether allow routing traffic between the Logic App and Storage Account content share through a virtual network. Defaults to `false`. VnetContentShareEnabled pulumi.BoolPtrInput } func (StandardArgs) ElementType() reflect.Type { return reflect.TypeOf((*standardArgs)(nil)).Elem() } type StandardInput interface { pulumi.Input ToStandardOutput() StandardOutput ToStandardOutputWithContext(ctx context.Context) StandardOutput } func (*Standard) ElementType() reflect.Type { return reflect.TypeOf((**Standard)(nil)).Elem() } func (i *Standard) ToStandardOutput() StandardOutput { return i.ToStandardOutputWithContext(context.Background()) } func (i *Standard) ToStandardOutputWithContext(ctx context.Context) StandardOutput { return pulumi.ToOutputWithContext(ctx, i).(StandardOutput) } // StandardArrayInput is an input type that accepts StandardArray and StandardArrayOutput values. // You can construct a concrete instance of `StandardArrayInput` via: // // StandardArray{ StandardArgs{...} } type StandardArrayInput interface { pulumi.Input ToStandardArrayOutput() StandardArrayOutput ToStandardArrayOutputWithContext(context.Context) StandardArrayOutput } type StandardArray []StandardInput
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/logicapps/integrationAccount.go
sdk/go/azure/logicapps/integrationAccount.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 logicapps import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a Logic App Integration Account. // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/logicapps" // "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 = logicapps.NewIntegrationAccount(ctx, "example", &logicapps.IntegrationAccountArgs{ // Name: pulumi.String("example-ia"), // ResourceGroupName: example.Name, // Location: example.Location, // SkuName: pulumi.String("Standard"), // Tags: pulumi.StringMap{ // "foo": pulumi.String("bar"), // }, // }) // 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.Logic` - 2019-05-01 // // ## Import // // Logic App Integration Accounts can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:logicapps/integrationAccount:IntegrationAccount example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Logic/integrationAccounts/account1 // ``` type IntegrationAccount struct { pulumi.CustomResourceState // The resource ID of the Integration Service Environment. Changing this forces a new Logic App Integration Account to be created. IntegrationServiceEnvironmentId pulumi.StringPtrOutput `pulumi:"integrationServiceEnvironmentId"` // The Azure Region where the Logic App Integration Account should exist. Changing this forces a new Logic App Integration Account to be created. Location pulumi.StringOutput `pulumi:"location"` // The name which should be used for this Logic App Integration Account. Changing this forces a new Logic App Integration Account to be created. Name pulumi.StringOutput `pulumi:"name"` // The name of the Resource Group where the Logic App Integration Account should exist. Changing this forces a new Logic App Integration Account to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // The SKU name of the Logic App Integration Account. Possible Values are `Basic`, `Free` and `Standard`. SkuName pulumi.StringOutput `pulumi:"skuName"` // A mapping of tags which should be assigned to the Logic App Integration Account. Tags pulumi.StringMapOutput `pulumi:"tags"` } // NewIntegrationAccount registers a new resource with the given unique name, arguments, and options. func NewIntegrationAccount(ctx *pulumi.Context, name string, args *IntegrationAccountArgs, opts ...pulumi.ResourceOption) (*IntegrationAccount, 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.SkuName == nil { return nil, errors.New("invalid value for required argument 'SkuName'") } opts = internal.PkgResourceDefaultOpts(opts) var resource IntegrationAccount err := ctx.RegisterResource("azure:logicapps/integrationAccount:IntegrationAccount", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetIntegrationAccount gets an existing IntegrationAccount 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 GetIntegrationAccount(ctx *pulumi.Context, name string, id pulumi.IDInput, state *IntegrationAccountState, opts ...pulumi.ResourceOption) (*IntegrationAccount, error) { var resource IntegrationAccount err := ctx.ReadResource("azure:logicapps/integrationAccount:IntegrationAccount", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering IntegrationAccount resources. type integrationAccountState struct { // The resource ID of the Integration Service Environment. Changing this forces a new Logic App Integration Account to be created. IntegrationServiceEnvironmentId *string `pulumi:"integrationServiceEnvironmentId"` // The Azure Region where the Logic App Integration Account should exist. Changing this forces a new Logic App Integration Account to be created. Location *string `pulumi:"location"` // The name which should be used for this Logic App Integration Account. Changing this forces a new Logic App Integration Account to be created. Name *string `pulumi:"name"` // The name of the Resource Group where the Logic App Integration Account should exist. Changing this forces a new Logic App Integration Account to be created. ResourceGroupName *string `pulumi:"resourceGroupName"` // The SKU name of the Logic App Integration Account. Possible Values are `Basic`, `Free` and `Standard`. SkuName *string `pulumi:"skuName"` // A mapping of tags which should be assigned to the Logic App Integration Account. Tags map[string]string `pulumi:"tags"` } type IntegrationAccountState struct { // The resource ID of the Integration Service Environment. Changing this forces a new Logic App Integration Account to be created. IntegrationServiceEnvironmentId pulumi.StringPtrInput // The Azure Region where the Logic App Integration Account should exist. Changing this forces a new Logic App Integration Account to be created. Location pulumi.StringPtrInput // The name which should be used for this Logic App Integration Account. Changing this forces a new Logic App Integration Account to be created. Name pulumi.StringPtrInput // The name of the Resource Group where the Logic App Integration Account should exist. Changing this forces a new Logic App Integration Account to be created. ResourceGroupName pulumi.StringPtrInput // The SKU name of the Logic App Integration Account. Possible Values are `Basic`, `Free` and `Standard`. SkuName pulumi.StringPtrInput // A mapping of tags which should be assigned to the Logic App Integration Account. Tags pulumi.StringMapInput } func (IntegrationAccountState) ElementType() reflect.Type { return reflect.TypeOf((*integrationAccountState)(nil)).Elem() } type integrationAccountArgs struct { // The resource ID of the Integration Service Environment. Changing this forces a new Logic App Integration Account to be created. IntegrationServiceEnvironmentId *string `pulumi:"integrationServiceEnvironmentId"` // The Azure Region where the Logic App Integration Account should exist. Changing this forces a new Logic App Integration Account to be created. Location *string `pulumi:"location"` // The name which should be used for this Logic App Integration Account. Changing this forces a new Logic App Integration Account to be created. Name *string `pulumi:"name"` // The name of the Resource Group where the Logic App Integration Account should exist. Changing this forces a new Logic App Integration Account to be created. ResourceGroupName string `pulumi:"resourceGroupName"` // The SKU name of the Logic App Integration Account. Possible Values are `Basic`, `Free` and `Standard`. SkuName string `pulumi:"skuName"` // A mapping of tags which should be assigned to the Logic App Integration Account. Tags map[string]string `pulumi:"tags"` } // The set of arguments for constructing a IntegrationAccount resource. type IntegrationAccountArgs struct { // The resource ID of the Integration Service Environment. Changing this forces a new Logic App Integration Account to be created. IntegrationServiceEnvironmentId pulumi.StringPtrInput // The Azure Region where the Logic App Integration Account should exist. Changing this forces a new Logic App Integration Account to be created. Location pulumi.StringPtrInput // The name which should be used for this Logic App Integration Account. Changing this forces a new Logic App Integration Account to be created. Name pulumi.StringPtrInput // The name of the Resource Group where the Logic App Integration Account should exist. Changing this forces a new Logic App Integration Account to be created. ResourceGroupName pulumi.StringInput // The SKU name of the Logic App Integration Account. Possible Values are `Basic`, `Free` and `Standard`. SkuName pulumi.StringInput // A mapping of tags which should be assigned to the Logic App Integration Account. Tags pulumi.StringMapInput } func (IntegrationAccountArgs) ElementType() reflect.Type { return reflect.TypeOf((*integrationAccountArgs)(nil)).Elem() } type IntegrationAccountInput interface { pulumi.Input ToIntegrationAccountOutput() IntegrationAccountOutput ToIntegrationAccountOutputWithContext(ctx context.Context) IntegrationAccountOutput } func (*IntegrationAccount) ElementType() reflect.Type { return reflect.TypeOf((**IntegrationAccount)(nil)).Elem() } func (i *IntegrationAccount) ToIntegrationAccountOutput() IntegrationAccountOutput { return i.ToIntegrationAccountOutputWithContext(context.Background()) } func (i *IntegrationAccount) ToIntegrationAccountOutputWithContext(ctx context.Context) IntegrationAccountOutput { return pulumi.ToOutputWithContext(ctx, i).(IntegrationAccountOutput) } // IntegrationAccountArrayInput is an input type that accepts IntegrationAccountArray and IntegrationAccountArrayOutput values. // You can construct a concrete instance of `IntegrationAccountArrayInput` via: // // IntegrationAccountArray{ IntegrationAccountArgs{...} } type IntegrationAccountArrayInput interface { pulumi.Input ToIntegrationAccountArrayOutput() IntegrationAccountArrayOutput ToIntegrationAccountArrayOutputWithContext(context.Context) IntegrationAccountArrayOutput } type IntegrationAccountArray []IntegrationAccountInput func (IntegrationAccountArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*IntegrationAccount)(nil)).Elem() } func (i IntegrationAccountArray) ToIntegrationAccountArrayOutput() IntegrationAccountArrayOutput { return i.ToIntegrationAccountArrayOutputWithContext(context.Background()) } func (i IntegrationAccountArray) ToIntegrationAccountArrayOutputWithContext(ctx context.Context) IntegrationAccountArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(IntegrationAccountArrayOutput) } // IntegrationAccountMapInput is an input type that accepts IntegrationAccountMap and IntegrationAccountMapOutput values. // You can construct a concrete instance of `IntegrationAccountMapInput` via: // // IntegrationAccountMap{ "key": IntegrationAccountArgs{...} } type IntegrationAccountMapInput interface { pulumi.Input ToIntegrationAccountMapOutput() IntegrationAccountMapOutput ToIntegrationAccountMapOutputWithContext(context.Context) IntegrationAccountMapOutput } type IntegrationAccountMap map[string]IntegrationAccountInput func (IntegrationAccountMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*IntegrationAccount)(nil)).Elem() } func (i IntegrationAccountMap) ToIntegrationAccountMapOutput() IntegrationAccountMapOutput { return i.ToIntegrationAccountMapOutputWithContext(context.Background()) } func (i IntegrationAccountMap) ToIntegrationAccountMapOutputWithContext(ctx context.Context) IntegrationAccountMapOutput { return pulumi.ToOutputWithContext(ctx, i).(IntegrationAccountMapOutput) } type IntegrationAccountOutput struct{ *pulumi.OutputState } func (IntegrationAccountOutput) ElementType() reflect.Type { return reflect.TypeOf((**IntegrationAccount)(nil)).Elem() } func (o IntegrationAccountOutput) ToIntegrationAccountOutput() IntegrationAccountOutput { return o } func (o IntegrationAccountOutput) ToIntegrationAccountOutputWithContext(ctx context.Context) IntegrationAccountOutput { return o } // The resource ID of the Integration Service Environment. Changing this forces a new Logic App Integration Account to be created. func (o IntegrationAccountOutput) IntegrationServiceEnvironmentId() pulumi.StringPtrOutput { return o.ApplyT(func(v *IntegrationAccount) pulumi.StringPtrOutput { return v.IntegrationServiceEnvironmentId }).(pulumi.StringPtrOutput) } // The Azure Region where the Logic App Integration Account should exist. Changing this forces a new Logic App Integration Account to be created. func (o IntegrationAccountOutput) Location() pulumi.StringOutput { return o.ApplyT(func(v *IntegrationAccount) pulumi.StringOutput { return v.Location }).(pulumi.StringOutput) } // The name which should be used for this Logic App Integration Account. Changing this forces a new Logic App Integration Account to be created. func (o IntegrationAccountOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *IntegrationAccount) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // The name of the Resource Group where the Logic App Integration Account should exist. Changing this forces a new Logic App Integration Account to be created. func (o IntegrationAccountOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v *IntegrationAccount) pulumi.StringOutput { return v.ResourceGroupName }).(pulumi.StringOutput) } // The SKU name of the Logic App Integration Account. Possible Values are `Basic`, `Free` and `Standard`. func (o IntegrationAccountOutput) SkuName() pulumi.StringOutput { return o.ApplyT(func(v *IntegrationAccount) pulumi.StringOutput { return v.SkuName }).(pulumi.StringOutput) } // A mapping of tags which should be assigned to the Logic App Integration Account. func (o IntegrationAccountOutput) Tags() pulumi.StringMapOutput { return o.ApplyT(func(v *IntegrationAccount) pulumi.StringMapOutput { return v.Tags }).(pulumi.StringMapOutput) } type IntegrationAccountArrayOutput struct{ *pulumi.OutputState } func (IntegrationAccountArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*IntegrationAccount)(nil)).Elem() } func (o IntegrationAccountArrayOutput) ToIntegrationAccountArrayOutput() IntegrationAccountArrayOutput { return o } func (o IntegrationAccountArrayOutput) ToIntegrationAccountArrayOutputWithContext(ctx context.Context) IntegrationAccountArrayOutput { return o } func (o IntegrationAccountArrayOutput) Index(i pulumi.IntInput) IntegrationAccountOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *IntegrationAccount { return vs[0].([]*IntegrationAccount)[vs[1].(int)] }).(IntegrationAccountOutput) } type IntegrationAccountMapOutput struct{ *pulumi.OutputState } func (IntegrationAccountMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*IntegrationAccount)(nil)).Elem() } func (o IntegrationAccountMapOutput) ToIntegrationAccountMapOutput() IntegrationAccountMapOutput { return o } func (o IntegrationAccountMapOutput) ToIntegrationAccountMapOutputWithContext(ctx context.Context) IntegrationAccountMapOutput { return o } func (o IntegrationAccountMapOutput) MapIndex(k pulumi.StringInput) IntegrationAccountOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *IntegrationAccount { return vs[0].(map[string]*IntegrationAccount)[vs[1].(string)] }).(IntegrationAccountOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*IntegrationAccountInput)(nil)).Elem(), &IntegrationAccount{}) pulumi.RegisterInputType(reflect.TypeOf((*IntegrationAccountArrayInput)(nil)).Elem(), IntegrationAccountArray{}) pulumi.RegisterInputType(reflect.TypeOf((*IntegrationAccountMapInput)(nil)).Elem(), IntegrationAccountMap{}) pulumi.RegisterOutputType(IntegrationAccountOutput{}) pulumi.RegisterOutputType(IntegrationAccountArrayOutput{}) pulumi.RegisterOutputType(IntegrationAccountMapOutput{}) }
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/logicapps/actionHttp.go
sdk/go/azure/logicapps/actionHttp.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 logicapps import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages an HTTP Action within a Logic App Workflow // // ## 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/logicapps" // "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("workflow-resources"), // Location: pulumi.String("West Europe"), // }) // if err != nil { // return err // } // exampleWorkflow, err := logicapps.NewWorkflow(ctx, "example", &logicapps.WorkflowArgs{ // Name: pulumi.String("workflow1"), // Location: example.Location, // ResourceGroupName: example.Name, // }) // if err != nil { // return err // } // _, err = logicapps.NewActionHttp(ctx, "example", &logicapps.ActionHttpArgs{ // Name: pulumi.String("webhook"), // LogicAppId: exampleWorkflow.ID(), // Method: pulumi.String("GET"), // Uri: pulumi.String("http://example.com/some-webhook"), // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## Import // // Logic App HTTP Actions can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:logicapps/actionHttp:ActionHttp webhook1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Logic/workflows/workflow1/actions/webhook1 // ``` type ActionHttp struct { pulumi.CustomResourceState // Specifies the HTTP Body that should be sent to the `uri` when this HTTP Action is triggered. Body pulumi.StringPtrOutput `pulumi:"body"` // Specifies a Map of Key-Value Pairs that should be sent to the `uri` when this HTTP Action is triggered. Headers pulumi.StringMapOutput `pulumi:"headers"` // Specifies the ID of the Logic App Workflow. Changing this forces a new resource to be created. LogicAppId pulumi.StringOutput `pulumi:"logicAppId"` // Specifies the HTTP Method which should be used for this HTTP Action. Possible values include `DELETE`, `GET`, `PATCH`, `POST` and `PUT`. Method pulumi.StringOutput `pulumi:"method"` // Specifies the name of the HTTP Action to be created within the Logic App Workflow. Changing this forces a new resource to be created. // // > **NOTE:** This name must be unique across all Actions within the Logic App Workflow. Name pulumi.StringOutput `pulumi:"name"` // Specifies a Map of Key-Value Pairs that should be sent to the `uri` when this HTTP Action is triggered. Queries pulumi.StringMapOutput `pulumi:"queries"` // Specifies the place of the HTTP Action in the Logic App Workflow. If not specified, the HTTP Action is right after the Trigger. A `runAfter` block is as defined below. RunAfters ActionHttpRunAfterArrayOutput `pulumi:"runAfters"` // Specifies the URI which will be called when this HTTP Action is triggered. Uri pulumi.StringOutput `pulumi:"uri"` } // NewActionHttp registers a new resource with the given unique name, arguments, and options. func NewActionHttp(ctx *pulumi.Context, name string, args *ActionHttpArgs, opts ...pulumi.ResourceOption) (*ActionHttp, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.LogicAppId == nil { return nil, errors.New("invalid value for required argument 'LogicAppId'") } if args.Method == nil { return nil, errors.New("invalid value for required argument 'Method'") } if args.Uri == nil { return nil, errors.New("invalid value for required argument 'Uri'") } opts = internal.PkgResourceDefaultOpts(opts) var resource ActionHttp err := ctx.RegisterResource("azure:logicapps/actionHttp:ActionHttp", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetActionHttp gets an existing ActionHttp 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 GetActionHttp(ctx *pulumi.Context, name string, id pulumi.IDInput, state *ActionHttpState, opts ...pulumi.ResourceOption) (*ActionHttp, error) { var resource ActionHttp err := ctx.ReadResource("azure:logicapps/actionHttp:ActionHttp", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering ActionHttp resources. type actionHttpState struct { // Specifies the HTTP Body that should be sent to the `uri` when this HTTP Action is triggered. Body *string `pulumi:"body"` // Specifies a Map of Key-Value Pairs that should be sent to the `uri` when this HTTP Action is triggered. Headers map[string]string `pulumi:"headers"` // Specifies the ID of the Logic App Workflow. Changing this forces a new resource to be created. LogicAppId *string `pulumi:"logicAppId"` // Specifies the HTTP Method which should be used for this HTTP Action. Possible values include `DELETE`, `GET`, `PATCH`, `POST` and `PUT`. Method *string `pulumi:"method"` // Specifies the name of the HTTP Action to be created within the Logic App Workflow. Changing this forces a new resource to be created. // // > **NOTE:** This name must be unique across all Actions within the Logic App Workflow. Name *string `pulumi:"name"` // Specifies a Map of Key-Value Pairs that should be sent to the `uri` when this HTTP Action is triggered. Queries map[string]string `pulumi:"queries"` // Specifies the place of the HTTP Action in the Logic App Workflow. If not specified, the HTTP Action is right after the Trigger. A `runAfter` block is as defined below. RunAfters []ActionHttpRunAfter `pulumi:"runAfters"` // Specifies the URI which will be called when this HTTP Action is triggered. Uri *string `pulumi:"uri"` } type ActionHttpState struct { // Specifies the HTTP Body that should be sent to the `uri` when this HTTP Action is triggered. Body pulumi.StringPtrInput // Specifies a Map of Key-Value Pairs that should be sent to the `uri` when this HTTP Action is triggered. Headers pulumi.StringMapInput // Specifies the ID of the Logic App Workflow. Changing this forces a new resource to be created. LogicAppId pulumi.StringPtrInput // Specifies the HTTP Method which should be used for this HTTP Action. Possible values include `DELETE`, `GET`, `PATCH`, `POST` and `PUT`. Method pulumi.StringPtrInput // Specifies the name of the HTTP Action to be created within the Logic App Workflow. Changing this forces a new resource to be created. // // > **NOTE:** This name must be unique across all Actions within the Logic App Workflow. Name pulumi.StringPtrInput // Specifies a Map of Key-Value Pairs that should be sent to the `uri` when this HTTP Action is triggered. Queries pulumi.StringMapInput // Specifies the place of the HTTP Action in the Logic App Workflow. If not specified, the HTTP Action is right after the Trigger. A `runAfter` block is as defined below. RunAfters ActionHttpRunAfterArrayInput // Specifies the URI which will be called when this HTTP Action is triggered. Uri pulumi.StringPtrInput } func (ActionHttpState) ElementType() reflect.Type { return reflect.TypeOf((*actionHttpState)(nil)).Elem() } type actionHttpArgs struct { // Specifies the HTTP Body that should be sent to the `uri` when this HTTP Action is triggered. Body *string `pulumi:"body"` // Specifies a Map of Key-Value Pairs that should be sent to the `uri` when this HTTP Action is triggered. Headers map[string]string `pulumi:"headers"` // Specifies the ID of the Logic App Workflow. Changing this forces a new resource to be created. LogicAppId string `pulumi:"logicAppId"` // Specifies the HTTP Method which should be used for this HTTP Action. Possible values include `DELETE`, `GET`, `PATCH`, `POST` and `PUT`. Method string `pulumi:"method"` // Specifies the name of the HTTP Action to be created within the Logic App Workflow. Changing this forces a new resource to be created. // // > **NOTE:** This name must be unique across all Actions within the Logic App Workflow. Name *string `pulumi:"name"` // Specifies a Map of Key-Value Pairs that should be sent to the `uri` when this HTTP Action is triggered. Queries map[string]string `pulumi:"queries"` // Specifies the place of the HTTP Action in the Logic App Workflow. If not specified, the HTTP Action is right after the Trigger. A `runAfter` block is as defined below. RunAfters []ActionHttpRunAfter `pulumi:"runAfters"` // Specifies the URI which will be called when this HTTP Action is triggered. Uri string `pulumi:"uri"` } // The set of arguments for constructing a ActionHttp resource. type ActionHttpArgs struct { // Specifies the HTTP Body that should be sent to the `uri` when this HTTP Action is triggered. Body pulumi.StringPtrInput // Specifies a Map of Key-Value Pairs that should be sent to the `uri` when this HTTP Action is triggered. Headers pulumi.StringMapInput // Specifies the ID of the Logic App Workflow. Changing this forces a new resource to be created. LogicAppId pulumi.StringInput // Specifies the HTTP Method which should be used for this HTTP Action. Possible values include `DELETE`, `GET`, `PATCH`, `POST` and `PUT`. Method pulumi.StringInput // Specifies the name of the HTTP Action to be created within the Logic App Workflow. Changing this forces a new resource to be created. // // > **NOTE:** This name must be unique across all Actions within the Logic App Workflow. Name pulumi.StringPtrInput // Specifies a Map of Key-Value Pairs that should be sent to the `uri` when this HTTP Action is triggered. Queries pulumi.StringMapInput // Specifies the place of the HTTP Action in the Logic App Workflow. If not specified, the HTTP Action is right after the Trigger. A `runAfter` block is as defined below. RunAfters ActionHttpRunAfterArrayInput // Specifies the URI which will be called when this HTTP Action is triggered. Uri pulumi.StringInput } func (ActionHttpArgs) ElementType() reflect.Type { return reflect.TypeOf((*actionHttpArgs)(nil)).Elem() } type ActionHttpInput interface { pulumi.Input ToActionHttpOutput() ActionHttpOutput ToActionHttpOutputWithContext(ctx context.Context) ActionHttpOutput } func (*ActionHttp) ElementType() reflect.Type { return reflect.TypeOf((**ActionHttp)(nil)).Elem() } func (i *ActionHttp) ToActionHttpOutput() ActionHttpOutput { return i.ToActionHttpOutputWithContext(context.Background()) } func (i *ActionHttp) ToActionHttpOutputWithContext(ctx context.Context) ActionHttpOutput { return pulumi.ToOutputWithContext(ctx, i).(ActionHttpOutput) } // ActionHttpArrayInput is an input type that accepts ActionHttpArray and ActionHttpArrayOutput values. // You can construct a concrete instance of `ActionHttpArrayInput` via: // // ActionHttpArray{ ActionHttpArgs{...} } type ActionHttpArrayInput interface { pulumi.Input ToActionHttpArrayOutput() ActionHttpArrayOutput ToActionHttpArrayOutputWithContext(context.Context) ActionHttpArrayOutput } type ActionHttpArray []ActionHttpInput func (ActionHttpArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*ActionHttp)(nil)).Elem() } func (i ActionHttpArray) ToActionHttpArrayOutput() ActionHttpArrayOutput { return i.ToActionHttpArrayOutputWithContext(context.Background()) } func (i ActionHttpArray) ToActionHttpArrayOutputWithContext(ctx context.Context) ActionHttpArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(ActionHttpArrayOutput) } // ActionHttpMapInput is an input type that accepts ActionHttpMap and ActionHttpMapOutput values. // You can construct a concrete instance of `ActionHttpMapInput` via: // // ActionHttpMap{ "key": ActionHttpArgs{...} } type ActionHttpMapInput interface { pulumi.Input ToActionHttpMapOutput() ActionHttpMapOutput ToActionHttpMapOutputWithContext(context.Context) ActionHttpMapOutput } type ActionHttpMap map[string]ActionHttpInput func (ActionHttpMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*ActionHttp)(nil)).Elem() } func (i ActionHttpMap) ToActionHttpMapOutput() ActionHttpMapOutput { return i.ToActionHttpMapOutputWithContext(context.Background()) } func (i ActionHttpMap) ToActionHttpMapOutputWithContext(ctx context.Context) ActionHttpMapOutput { return pulumi.ToOutputWithContext(ctx, i).(ActionHttpMapOutput) } type ActionHttpOutput struct{ *pulumi.OutputState } func (ActionHttpOutput) ElementType() reflect.Type { return reflect.TypeOf((**ActionHttp)(nil)).Elem() } func (o ActionHttpOutput) ToActionHttpOutput() ActionHttpOutput { return o } func (o ActionHttpOutput) ToActionHttpOutputWithContext(ctx context.Context) ActionHttpOutput { return o } // Specifies the HTTP Body that should be sent to the `uri` when this HTTP Action is triggered. func (o ActionHttpOutput) Body() pulumi.StringPtrOutput { return o.ApplyT(func(v *ActionHttp) pulumi.StringPtrOutput { return v.Body }).(pulumi.StringPtrOutput) } // Specifies a Map of Key-Value Pairs that should be sent to the `uri` when this HTTP Action is triggered. func (o ActionHttpOutput) Headers() pulumi.StringMapOutput { return o.ApplyT(func(v *ActionHttp) pulumi.StringMapOutput { return v.Headers }).(pulumi.StringMapOutput) } // Specifies the ID of the Logic App Workflow. Changing this forces a new resource to be created. func (o ActionHttpOutput) LogicAppId() pulumi.StringOutput { return o.ApplyT(func(v *ActionHttp) pulumi.StringOutput { return v.LogicAppId }).(pulumi.StringOutput) } // Specifies the HTTP Method which should be used for this HTTP Action. Possible values include `DELETE`, `GET`, `PATCH`, `POST` and `PUT`. func (o ActionHttpOutput) Method() pulumi.StringOutput { return o.ApplyT(func(v *ActionHttp) pulumi.StringOutput { return v.Method }).(pulumi.StringOutput) } // Specifies the name of the HTTP Action to be created within the Logic App Workflow. Changing this forces a new resource to be created. // // > **NOTE:** This name must be unique across all Actions within the Logic App Workflow. func (o ActionHttpOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *ActionHttp) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // Specifies a Map of Key-Value Pairs that should be sent to the `uri` when this HTTP Action is triggered. func (o ActionHttpOutput) Queries() pulumi.StringMapOutput { return o.ApplyT(func(v *ActionHttp) pulumi.StringMapOutput { return v.Queries }).(pulumi.StringMapOutput) } // Specifies the place of the HTTP Action in the Logic App Workflow. If not specified, the HTTP Action is right after the Trigger. A `runAfter` block is as defined below. func (o ActionHttpOutput) RunAfters() ActionHttpRunAfterArrayOutput { return o.ApplyT(func(v *ActionHttp) ActionHttpRunAfterArrayOutput { return v.RunAfters }).(ActionHttpRunAfterArrayOutput) } // Specifies the URI which will be called when this HTTP Action is triggered. func (o ActionHttpOutput) Uri() pulumi.StringOutput { return o.ApplyT(func(v *ActionHttp) pulumi.StringOutput { return v.Uri }).(pulumi.StringOutput) } type ActionHttpArrayOutput struct{ *pulumi.OutputState } func (ActionHttpArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*ActionHttp)(nil)).Elem() } func (o ActionHttpArrayOutput) ToActionHttpArrayOutput() ActionHttpArrayOutput { return o } func (o ActionHttpArrayOutput) ToActionHttpArrayOutputWithContext(ctx context.Context) ActionHttpArrayOutput { return o } func (o ActionHttpArrayOutput) Index(i pulumi.IntInput) ActionHttpOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *ActionHttp { return vs[0].([]*ActionHttp)[vs[1].(int)] }).(ActionHttpOutput) } type ActionHttpMapOutput struct{ *pulumi.OutputState } func (ActionHttpMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*ActionHttp)(nil)).Elem() } func (o ActionHttpMapOutput) ToActionHttpMapOutput() ActionHttpMapOutput { return o } func (o ActionHttpMapOutput) ToActionHttpMapOutputWithContext(ctx context.Context) ActionHttpMapOutput { return o } func (o ActionHttpMapOutput) MapIndex(k pulumi.StringInput) ActionHttpOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *ActionHttp { return vs[0].(map[string]*ActionHttp)[vs[1].(string)] }).(ActionHttpOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*ActionHttpInput)(nil)).Elem(), &ActionHttp{}) pulumi.RegisterInputType(reflect.TypeOf((*ActionHttpArrayInput)(nil)).Elem(), ActionHttpArray{}) pulumi.RegisterInputType(reflect.TypeOf((*ActionHttpMapInput)(nil)).Elem(), ActionHttpMap{}) pulumi.RegisterOutputType(ActionHttpOutput{}) pulumi.RegisterOutputType(ActionHttpArrayOutput{}) pulumi.RegisterOutputType(ActionHttpMapOutput{}) }
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/logicapps/integrationAccountMap.go
sdk/go/azure/logicapps/integrationAccountMap.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 logicapps import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a Logic App Integration Account Map. // // ## 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/logicapps" // "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 // } // exampleIntegrationAccount, err := logicapps.NewIntegrationAccount(ctx, "example", &logicapps.IntegrationAccountArgs{ // Name: pulumi.String("example-ia"), // Location: example.Location, // ResourceGroupName: example.Name, // SkuName: pulumi.String("Standard"), // }) // if err != nil { // return err // } // invokeFile, err := std.File(ctx, &std.FileArgs{ // Input: "testdata/integration_account_map_content.xsd", // }, nil) // if err != nil { // return err // } // _, err = logicapps.NewIntegrationAccountMapResource(ctx, "example", &logicapps.IntegrationAccountMapResourceArgs{ // Name: pulumi.String("example-iamap"), // ResourceGroupName: example.Name, // IntegrationAccountName: exampleIntegrationAccount.Name, // MapType: pulumi.String("Xslt"), // Content: pulumi.String(invokeFile.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.Logic` - 2019-05-01 // // ## Import // // Logic App Integration Account Maps can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:logicapps/integrationAccountMap:IntegrationAccountMap example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Logic/integrationAccounts/account1/maps/map1 // ``` type IntegrationAccountMapResource struct { pulumi.CustomResourceState // The content of the Logic App Integration Account Map. Content pulumi.StringOutput `pulumi:"content"` // The name of the Logic App Integration Account. Changing this forces a new Logic App Integration Account Map to be created. IntegrationAccountName pulumi.StringOutput `pulumi:"integrationAccountName"` // The type of the Logic App Integration Account Map. Possible values are `Liquid`, `NotSpecified`, `Xslt`, `Xslt30` and `Xslt20`. MapType pulumi.StringOutput `pulumi:"mapType"` // The metadata of the Logic App Integration Account Map. Metadata pulumi.StringMapOutput `pulumi:"metadata"` // The name which should be used for this Logic App Integration Account Map. Changing this forces a new Logic App Integration Account Map to be created. Name pulumi.StringOutput `pulumi:"name"` // The name of the Resource Group where the Logic App Integration Account Map should exist. Changing this forces a new Logic App Integration Account Map to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` } // NewIntegrationAccountMapResource registers a new resource with the given unique name, arguments, and options. func NewIntegrationAccountMapResource(ctx *pulumi.Context, name string, args *IntegrationAccountMapResourceArgs, opts ...pulumi.ResourceOption) (*IntegrationAccountMapResource, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.Content == nil { return nil, errors.New("invalid value for required argument 'Content'") } if args.IntegrationAccountName == nil { return nil, errors.New("invalid value for required argument 'IntegrationAccountName'") } if args.MapType == nil { return nil, errors.New("invalid value for required argument 'MapType'") } if args.ResourceGroupName == nil { return nil, errors.New("invalid value for required argument 'ResourceGroupName'") } opts = internal.PkgResourceDefaultOpts(opts) var resource IntegrationAccountMapResource err := ctx.RegisterResource("azure:logicapps/integrationAccountMap:IntegrationAccountMap", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetIntegrationAccountMapResource gets an existing IntegrationAccountMapResource 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 GetIntegrationAccountMapResource(ctx *pulumi.Context, name string, id pulumi.IDInput, state *IntegrationAccountMapResourceState, opts ...pulumi.ResourceOption) (*IntegrationAccountMapResource, error) { var resource IntegrationAccountMapResource err := ctx.ReadResource("azure:logicapps/integrationAccountMap:IntegrationAccountMap", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering IntegrationAccountMapResource resources. type integrationAccountMapResourceState struct { // The content of the Logic App Integration Account Map. Content *string `pulumi:"content"` // The name of the Logic App Integration Account. Changing this forces a new Logic App Integration Account Map to be created. IntegrationAccountName *string `pulumi:"integrationAccountName"` // The type of the Logic App Integration Account Map. Possible values are `Liquid`, `NotSpecified`, `Xslt`, `Xslt30` and `Xslt20`. MapType *string `pulumi:"mapType"` // The metadata of the Logic App Integration Account Map. Metadata map[string]string `pulumi:"metadata"` // The name which should be used for this Logic App Integration Account Map. Changing this forces a new Logic App Integration Account Map to be created. Name *string `pulumi:"name"` // The name of the Resource Group where the Logic App Integration Account Map should exist. Changing this forces a new Logic App Integration Account Map to be created. ResourceGroupName *string `pulumi:"resourceGroupName"` } type IntegrationAccountMapResourceState struct { // The content of the Logic App Integration Account Map. Content pulumi.StringPtrInput // The name of the Logic App Integration Account. Changing this forces a new Logic App Integration Account Map to be created. IntegrationAccountName pulumi.StringPtrInput // The type of the Logic App Integration Account Map. Possible values are `Liquid`, `NotSpecified`, `Xslt`, `Xslt30` and `Xslt20`. MapType pulumi.StringPtrInput // The metadata of the Logic App Integration Account Map. Metadata pulumi.StringMapInput // The name which should be used for this Logic App Integration Account Map. Changing this forces a new Logic App Integration Account Map to be created. Name pulumi.StringPtrInput // The name of the Resource Group where the Logic App Integration Account Map should exist. Changing this forces a new Logic App Integration Account Map to be created. ResourceGroupName pulumi.StringPtrInput } func (IntegrationAccountMapResourceState) ElementType() reflect.Type { return reflect.TypeOf((*integrationAccountMapResourceState)(nil)).Elem() } type integrationAccountMapResourceArgs struct { // The content of the Logic App Integration Account Map. Content string `pulumi:"content"` // The name of the Logic App Integration Account. Changing this forces a new Logic App Integration Account Map to be created. IntegrationAccountName string `pulumi:"integrationAccountName"` // The type of the Logic App Integration Account Map. Possible values are `Liquid`, `NotSpecified`, `Xslt`, `Xslt30` and `Xslt20`. MapType string `pulumi:"mapType"` // The metadata of the Logic App Integration Account Map. Metadata map[string]string `pulumi:"metadata"` // The name which should be used for this Logic App Integration Account Map. Changing this forces a new Logic App Integration Account Map to be created. Name *string `pulumi:"name"` // The name of the Resource Group where the Logic App Integration Account Map should exist. Changing this forces a new Logic App Integration Account Map to be created. ResourceGroupName string `pulumi:"resourceGroupName"` } // The set of arguments for constructing a IntegrationAccountMapResource resource. type IntegrationAccountMapResourceArgs struct { // The content of the Logic App Integration Account Map. Content pulumi.StringInput // The name of the Logic App Integration Account. Changing this forces a new Logic App Integration Account Map to be created. IntegrationAccountName pulumi.StringInput // The type of the Logic App Integration Account Map. Possible values are `Liquid`, `NotSpecified`, `Xslt`, `Xslt30` and `Xslt20`. MapType pulumi.StringInput // The metadata of the Logic App Integration Account Map. Metadata pulumi.StringMapInput // The name which should be used for this Logic App Integration Account Map. Changing this forces a new Logic App Integration Account Map to be created. Name pulumi.StringPtrInput // The name of the Resource Group where the Logic App Integration Account Map should exist. Changing this forces a new Logic App Integration Account Map to be created. ResourceGroupName pulumi.StringInput } func (IntegrationAccountMapResourceArgs) ElementType() reflect.Type { return reflect.TypeOf((*integrationAccountMapResourceArgs)(nil)).Elem() } type IntegrationAccountMapResourceInput interface { pulumi.Input ToIntegrationAccountMapResourceOutput() IntegrationAccountMapResourceOutput ToIntegrationAccountMapResourceOutputWithContext(ctx context.Context) IntegrationAccountMapResourceOutput } func (*IntegrationAccountMapResource) ElementType() reflect.Type { return reflect.TypeOf((**IntegrationAccountMapResource)(nil)).Elem() } func (i *IntegrationAccountMapResource) ToIntegrationAccountMapResourceOutput() IntegrationAccountMapResourceOutput { return i.ToIntegrationAccountMapResourceOutputWithContext(context.Background()) } func (i *IntegrationAccountMapResource) ToIntegrationAccountMapResourceOutputWithContext(ctx context.Context) IntegrationAccountMapResourceOutput { return pulumi.ToOutputWithContext(ctx, i).(IntegrationAccountMapResourceOutput) } // IntegrationAccountMapResourceArrayInput is an input type that accepts IntegrationAccountMapResourceArray and IntegrationAccountMapResourceArrayOutput values. // You can construct a concrete instance of `IntegrationAccountMapResourceArrayInput` via: // // IntegrationAccountMapResourceArray{ IntegrationAccountMapResourceArgs{...} } type IntegrationAccountMapResourceArrayInput interface { pulumi.Input ToIntegrationAccountMapResourceArrayOutput() IntegrationAccountMapResourceArrayOutput ToIntegrationAccountMapResourceArrayOutputWithContext(context.Context) IntegrationAccountMapResourceArrayOutput } type IntegrationAccountMapResourceArray []IntegrationAccountMapResourceInput func (IntegrationAccountMapResourceArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*IntegrationAccountMapResource)(nil)).Elem() } func (i IntegrationAccountMapResourceArray) ToIntegrationAccountMapResourceArrayOutput() IntegrationAccountMapResourceArrayOutput { return i.ToIntegrationAccountMapResourceArrayOutputWithContext(context.Background()) } func (i IntegrationAccountMapResourceArray) ToIntegrationAccountMapResourceArrayOutputWithContext(ctx context.Context) IntegrationAccountMapResourceArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(IntegrationAccountMapResourceArrayOutput) } // IntegrationAccountMapResourceMapInput is an input type that accepts IntegrationAccountMapResourceMap and IntegrationAccountMapResourceMapOutput values. // You can construct a concrete instance of `IntegrationAccountMapResourceMapInput` via: // // IntegrationAccountMapResourceMap{ "key": IntegrationAccountMapResourceArgs{...} } type IntegrationAccountMapResourceMapInput interface { pulumi.Input ToIntegrationAccountMapResourceMapOutput() IntegrationAccountMapResourceMapOutput ToIntegrationAccountMapResourceMapOutputWithContext(context.Context) IntegrationAccountMapResourceMapOutput } type IntegrationAccountMapResourceMap map[string]IntegrationAccountMapResourceInput func (IntegrationAccountMapResourceMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*IntegrationAccountMapResource)(nil)).Elem() } func (i IntegrationAccountMapResourceMap) ToIntegrationAccountMapResourceMapOutput() IntegrationAccountMapResourceMapOutput { return i.ToIntegrationAccountMapResourceMapOutputWithContext(context.Background()) } func (i IntegrationAccountMapResourceMap) ToIntegrationAccountMapResourceMapOutputWithContext(ctx context.Context) IntegrationAccountMapResourceMapOutput { return pulumi.ToOutputWithContext(ctx, i).(IntegrationAccountMapResourceMapOutput) } type IntegrationAccountMapResourceOutput struct{ *pulumi.OutputState } func (IntegrationAccountMapResourceOutput) ElementType() reflect.Type { return reflect.TypeOf((**IntegrationAccountMapResource)(nil)).Elem() } func (o IntegrationAccountMapResourceOutput) ToIntegrationAccountMapResourceOutput() IntegrationAccountMapResourceOutput { return o } func (o IntegrationAccountMapResourceOutput) ToIntegrationAccountMapResourceOutputWithContext(ctx context.Context) IntegrationAccountMapResourceOutput { return o } // The content of the Logic App Integration Account Map. func (o IntegrationAccountMapResourceOutput) Content() pulumi.StringOutput { return o.ApplyT(func(v *IntegrationAccountMapResource) pulumi.StringOutput { return v.Content }).(pulumi.StringOutput) } // The name of the Logic App Integration Account. Changing this forces a new Logic App Integration Account Map to be created. func (o IntegrationAccountMapResourceOutput) IntegrationAccountName() pulumi.StringOutput { return o.ApplyT(func(v *IntegrationAccountMapResource) pulumi.StringOutput { return v.IntegrationAccountName }).(pulumi.StringOutput) } // The type of the Logic App Integration Account Map. Possible values are `Liquid`, `NotSpecified`, `Xslt`, `Xslt30` and `Xslt20`. func (o IntegrationAccountMapResourceOutput) MapType() pulumi.StringOutput { return o.ApplyT(func(v *IntegrationAccountMapResource) pulumi.StringOutput { return v.MapType }).(pulumi.StringOutput) } // The metadata of the Logic App Integration Account Map. func (o IntegrationAccountMapResourceOutput) Metadata() pulumi.StringMapOutput { return o.ApplyT(func(v *IntegrationAccountMapResource) pulumi.StringMapOutput { return v.Metadata }).(pulumi.StringMapOutput) } // The name which should be used for this Logic App Integration Account Map. Changing this forces a new Logic App Integration Account Map to be created. func (o IntegrationAccountMapResourceOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *IntegrationAccountMapResource) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // The name of the Resource Group where the Logic App Integration Account Map should exist. Changing this forces a new Logic App Integration Account Map to be created. func (o IntegrationAccountMapResourceOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v *IntegrationAccountMapResource) pulumi.StringOutput { return v.ResourceGroupName }).(pulumi.StringOutput) } type IntegrationAccountMapResourceArrayOutput struct{ *pulumi.OutputState } func (IntegrationAccountMapResourceArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*IntegrationAccountMapResource)(nil)).Elem() } func (o IntegrationAccountMapResourceArrayOutput) ToIntegrationAccountMapResourceArrayOutput() IntegrationAccountMapResourceArrayOutput { return o } func (o IntegrationAccountMapResourceArrayOutput) ToIntegrationAccountMapResourceArrayOutputWithContext(ctx context.Context) IntegrationAccountMapResourceArrayOutput { return o } func (o IntegrationAccountMapResourceArrayOutput) Index(i pulumi.IntInput) IntegrationAccountMapResourceOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *IntegrationAccountMapResource { return vs[0].([]*IntegrationAccountMapResource)[vs[1].(int)] }).(IntegrationAccountMapResourceOutput) } type IntegrationAccountMapResourceMapOutput struct{ *pulumi.OutputState } func (IntegrationAccountMapResourceMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*IntegrationAccountMapResource)(nil)).Elem() } func (o IntegrationAccountMapResourceMapOutput) ToIntegrationAccountMapResourceMapOutput() IntegrationAccountMapResourceMapOutput { return o } func (o IntegrationAccountMapResourceMapOutput) ToIntegrationAccountMapResourceMapOutputWithContext(ctx context.Context) IntegrationAccountMapResourceMapOutput { return o } func (o IntegrationAccountMapResourceMapOutput) MapIndex(k pulumi.StringInput) IntegrationAccountMapResourceOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *IntegrationAccountMapResource { return vs[0].(map[string]*IntegrationAccountMapResource)[vs[1].(string)] }).(IntegrationAccountMapResourceOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*IntegrationAccountMapResourceInput)(nil)).Elem(), &IntegrationAccountMapResource{}) pulumi.RegisterInputType(reflect.TypeOf((*IntegrationAccountMapResourceArrayInput)(nil)).Elem(), IntegrationAccountMapResourceArray{}) pulumi.RegisterInputType(reflect.TypeOf((*IntegrationAccountMapResourceMapInput)(nil)).Elem(), IntegrationAccountMapResourceMap{}) pulumi.RegisterOutputType(IntegrationAccountMapResourceOutput{}) pulumi.RegisterOutputType(IntegrationAccountMapResourceArrayOutput{}) pulumi.RegisterOutputType(IntegrationAccountMapResourceMapOutput{}) }
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/logicapps/integrationAccountAgreement.go
sdk/go/azure/logicapps/integrationAccountAgreement.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 logicapps import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a Logic App Integration Account Agreement. // // ## 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/logicapps" // "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 // } // test, err := logicapps.NewIntegrationAccount(ctx, "test", &logicapps.IntegrationAccountArgs{ // Name: pulumi.String("example-ia"), // Location: example.Location, // ResourceGroupName: example.Name, // SkuName: pulumi.String("Standard"), // }) // if err != nil { // return err // } // host, err := logicapps.NewIntegrationAccountPartner(ctx, "host", &logicapps.IntegrationAccountPartnerArgs{ // Name: pulumi.String("example-hostpartner"), // ResourceGroupName: example.Name, // IntegrationAccountName: test.Name, // BusinessIdentities: logicapps.IntegrationAccountPartnerBusinessIdentityArray{ // &logicapps.IntegrationAccountPartnerBusinessIdentityArgs{ // Qualifier: pulumi.String("AS2Identity"), // Value: pulumi.String("FabrikamNY"), // }, // }, // }) // if err != nil { // return err // } // guest, err := logicapps.NewIntegrationAccountPartner(ctx, "guest", &logicapps.IntegrationAccountPartnerArgs{ // Name: pulumi.String("example-guestpartner"), // ResourceGroupName: example.Name, // IntegrationAccountName: test.Name, // BusinessIdentities: logicapps.IntegrationAccountPartnerBusinessIdentityArray{ // &logicapps.IntegrationAccountPartnerBusinessIdentityArgs{ // Qualifier: pulumi.String("AS2Identity"), // Value: pulumi.String("FabrikamDC"), // }, // }, // }) // if err != nil { // return err // } // invokeFile, err := std.File(ctx, &std.FileArgs{ // Input: "testdata/integration_account_agreement_content_as2.json", // }, nil) // if err != nil { // return err // } // _, err = logicapps.NewIntegrationAccountAgreement(ctx, "test", &logicapps.IntegrationAccountAgreementArgs{ // Name: pulumi.String("example-agreement"), // ResourceGroupName: example.Name, // IntegrationAccountName: test.Name, // AgreementType: pulumi.String("AS2"), // HostPartnerName: host.Name, // GuestPartnerName: guest.Name, // Content: pulumi.String(invokeFile.Result), // HostIdentity: &logicapps.IntegrationAccountAgreementHostIdentityArgs{ // Qualifier: pulumi.String("AS2Identity"), // Value: pulumi.String("FabrikamNY"), // }, // GuestIdentity: &logicapps.IntegrationAccountAgreementGuestIdentityArgs{ // Qualifier: pulumi.String("AS2Identity"), // Value: pulumi.String("FabrikamDC"), // }, // }) // 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.Logic` - 2019-05-01 // // ## Import // // Logic App Integration Account Agreements can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:logicapps/integrationAccountAgreement:IntegrationAccountAgreement example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Logic/integrationAccounts/account1/agreements/agreement1 // ``` type IntegrationAccountAgreement struct { pulumi.CustomResourceState // The type of the Logic App Integration Account Agreement. Possible values are `AS2`, `X12` and `Edifact`. AgreementType pulumi.StringOutput `pulumi:"agreementType"` // The content of the Logic App Integration Account Agreement. Content pulumi.StringOutput `pulumi:"content"` // A `guestIdentity` block as documented below. GuestIdentity IntegrationAccountAgreementGuestIdentityOutput `pulumi:"guestIdentity"` // The name of the guest Logic App Integration Account Partner. GuestPartnerName pulumi.StringOutput `pulumi:"guestPartnerName"` // A `hostIdentity` block as documented below. HostIdentity IntegrationAccountAgreementHostIdentityOutput `pulumi:"hostIdentity"` // The name of the host Logic App Integration Account Partner. HostPartnerName pulumi.StringOutput `pulumi:"hostPartnerName"` // The name of the Logic App Integration Account. Changing this forces a new resource to be created. IntegrationAccountName pulumi.StringOutput `pulumi:"integrationAccountName"` // The metadata of the Logic App Integration Account Agreement. Metadata pulumi.StringMapOutput `pulumi:"metadata"` // The name which should be used for this Logic App Integration Account Agreement. Changing this forces a new resource to be created. Name pulumi.StringOutput `pulumi:"name"` // The name of the Resource Group where the Logic App Integration Account Agreement should exist. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` } // NewIntegrationAccountAgreement registers a new resource with the given unique name, arguments, and options. func NewIntegrationAccountAgreement(ctx *pulumi.Context, name string, args *IntegrationAccountAgreementArgs, opts ...pulumi.ResourceOption) (*IntegrationAccountAgreement, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.AgreementType == nil { return nil, errors.New("invalid value for required argument 'AgreementType'") } if args.Content == nil { return nil, errors.New("invalid value for required argument 'Content'") } if args.GuestIdentity == nil { return nil, errors.New("invalid value for required argument 'GuestIdentity'") } if args.GuestPartnerName == nil { return nil, errors.New("invalid value for required argument 'GuestPartnerName'") } if args.HostIdentity == nil { return nil, errors.New("invalid value for required argument 'HostIdentity'") } if args.HostPartnerName == nil { return nil, errors.New("invalid value for required argument 'HostPartnerName'") } if args.IntegrationAccountName == nil { return nil, errors.New("invalid value for required argument 'IntegrationAccountName'") } if args.ResourceGroupName == nil { return nil, errors.New("invalid value for required argument 'ResourceGroupName'") } opts = internal.PkgResourceDefaultOpts(opts) var resource IntegrationAccountAgreement err := ctx.RegisterResource("azure:logicapps/integrationAccountAgreement:IntegrationAccountAgreement", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetIntegrationAccountAgreement gets an existing IntegrationAccountAgreement 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 GetIntegrationAccountAgreement(ctx *pulumi.Context, name string, id pulumi.IDInput, state *IntegrationAccountAgreementState, opts ...pulumi.ResourceOption) (*IntegrationAccountAgreement, error) { var resource IntegrationAccountAgreement err := ctx.ReadResource("azure:logicapps/integrationAccountAgreement:IntegrationAccountAgreement", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering IntegrationAccountAgreement resources. type integrationAccountAgreementState struct { // The type of the Logic App Integration Account Agreement. Possible values are `AS2`, `X12` and `Edifact`. AgreementType *string `pulumi:"agreementType"` // The content of the Logic App Integration Account Agreement. Content *string `pulumi:"content"` // A `guestIdentity` block as documented below. GuestIdentity *IntegrationAccountAgreementGuestIdentity `pulumi:"guestIdentity"` // The name of the guest Logic App Integration Account Partner. GuestPartnerName *string `pulumi:"guestPartnerName"` // A `hostIdentity` block as documented below. HostIdentity *IntegrationAccountAgreementHostIdentity `pulumi:"hostIdentity"` // The name of the host Logic App Integration Account Partner. HostPartnerName *string `pulumi:"hostPartnerName"` // The name of the Logic App Integration Account. Changing this forces a new resource to be created. IntegrationAccountName *string `pulumi:"integrationAccountName"` // The metadata of the Logic App Integration Account Agreement. Metadata map[string]string `pulumi:"metadata"` // The name which should be used for this Logic App Integration Account Agreement. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // The name of the Resource Group where the Logic App Integration Account Agreement should exist. Changing this forces a new resource to be created. ResourceGroupName *string `pulumi:"resourceGroupName"` } type IntegrationAccountAgreementState struct { // The type of the Logic App Integration Account Agreement. Possible values are `AS2`, `X12` and `Edifact`. AgreementType pulumi.StringPtrInput // The content of the Logic App Integration Account Agreement. Content pulumi.StringPtrInput // A `guestIdentity` block as documented below. GuestIdentity IntegrationAccountAgreementGuestIdentityPtrInput // The name of the guest Logic App Integration Account Partner. GuestPartnerName pulumi.StringPtrInput // A `hostIdentity` block as documented below. HostIdentity IntegrationAccountAgreementHostIdentityPtrInput // The name of the host Logic App Integration Account Partner. HostPartnerName pulumi.StringPtrInput // The name of the Logic App Integration Account. Changing this forces a new resource to be created. IntegrationAccountName pulumi.StringPtrInput // The metadata of the Logic App Integration Account Agreement. Metadata pulumi.StringMapInput // The name which should be used for this Logic App Integration Account Agreement. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // The name of the Resource Group where the Logic App Integration Account Agreement should exist. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringPtrInput } func (IntegrationAccountAgreementState) ElementType() reflect.Type { return reflect.TypeOf((*integrationAccountAgreementState)(nil)).Elem() } type integrationAccountAgreementArgs struct { // The type of the Logic App Integration Account Agreement. Possible values are `AS2`, `X12` and `Edifact`. AgreementType string `pulumi:"agreementType"` // The content of the Logic App Integration Account Agreement. Content string `pulumi:"content"` // A `guestIdentity` block as documented below. GuestIdentity IntegrationAccountAgreementGuestIdentity `pulumi:"guestIdentity"` // The name of the guest Logic App Integration Account Partner. GuestPartnerName string `pulumi:"guestPartnerName"` // A `hostIdentity` block as documented below. HostIdentity IntegrationAccountAgreementHostIdentity `pulumi:"hostIdentity"` // The name of the host Logic App Integration Account Partner. HostPartnerName string `pulumi:"hostPartnerName"` // The name of the Logic App Integration Account. Changing this forces a new resource to be created. IntegrationAccountName string `pulumi:"integrationAccountName"` // The metadata of the Logic App Integration Account Agreement. Metadata map[string]string `pulumi:"metadata"` // The name which should be used for this Logic App Integration Account Agreement. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // The name of the Resource Group where the Logic App Integration Account Agreement should exist. Changing this forces a new resource to be created. ResourceGroupName string `pulumi:"resourceGroupName"` } // The set of arguments for constructing a IntegrationAccountAgreement resource. type IntegrationAccountAgreementArgs struct { // The type of the Logic App Integration Account Agreement. Possible values are `AS2`, `X12` and `Edifact`. AgreementType pulumi.StringInput // The content of the Logic App Integration Account Agreement. Content pulumi.StringInput // A `guestIdentity` block as documented below. GuestIdentity IntegrationAccountAgreementGuestIdentityInput // The name of the guest Logic App Integration Account Partner. GuestPartnerName pulumi.StringInput // A `hostIdentity` block as documented below. HostIdentity IntegrationAccountAgreementHostIdentityInput // The name of the host Logic App Integration Account Partner. HostPartnerName pulumi.StringInput // The name of the Logic App Integration Account. Changing this forces a new resource to be created. IntegrationAccountName pulumi.StringInput // The metadata of the Logic App Integration Account Agreement. Metadata pulumi.StringMapInput // The name which should be used for this Logic App Integration Account Agreement. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // The name of the Resource Group where the Logic App Integration Account Agreement should exist. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringInput } func (IntegrationAccountAgreementArgs) ElementType() reflect.Type { return reflect.TypeOf((*integrationAccountAgreementArgs)(nil)).Elem() } type IntegrationAccountAgreementInput interface { pulumi.Input ToIntegrationAccountAgreementOutput() IntegrationAccountAgreementOutput ToIntegrationAccountAgreementOutputWithContext(ctx context.Context) IntegrationAccountAgreementOutput } func (*IntegrationAccountAgreement) ElementType() reflect.Type { return reflect.TypeOf((**IntegrationAccountAgreement)(nil)).Elem() } func (i *IntegrationAccountAgreement) ToIntegrationAccountAgreementOutput() IntegrationAccountAgreementOutput { return i.ToIntegrationAccountAgreementOutputWithContext(context.Background()) } func (i *IntegrationAccountAgreement) ToIntegrationAccountAgreementOutputWithContext(ctx context.Context) IntegrationAccountAgreementOutput { return pulumi.ToOutputWithContext(ctx, i).(IntegrationAccountAgreementOutput) } // IntegrationAccountAgreementArrayInput is an input type that accepts IntegrationAccountAgreementArray and IntegrationAccountAgreementArrayOutput values. // You can construct a concrete instance of `IntegrationAccountAgreementArrayInput` via: // // IntegrationAccountAgreementArray{ IntegrationAccountAgreementArgs{...} } type IntegrationAccountAgreementArrayInput interface { pulumi.Input ToIntegrationAccountAgreementArrayOutput() IntegrationAccountAgreementArrayOutput ToIntegrationAccountAgreementArrayOutputWithContext(context.Context) IntegrationAccountAgreementArrayOutput } type IntegrationAccountAgreementArray []IntegrationAccountAgreementInput func (IntegrationAccountAgreementArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*IntegrationAccountAgreement)(nil)).Elem() } func (i IntegrationAccountAgreementArray) ToIntegrationAccountAgreementArrayOutput() IntegrationAccountAgreementArrayOutput { return i.ToIntegrationAccountAgreementArrayOutputWithContext(context.Background()) } func (i IntegrationAccountAgreementArray) ToIntegrationAccountAgreementArrayOutputWithContext(ctx context.Context) IntegrationAccountAgreementArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(IntegrationAccountAgreementArrayOutput) } // IntegrationAccountAgreementMapInput is an input type that accepts IntegrationAccountAgreementMap and IntegrationAccountAgreementMapOutput values. // You can construct a concrete instance of `IntegrationAccountAgreementMapInput` via: // // IntegrationAccountAgreementMap{ "key": IntegrationAccountAgreementArgs{...} } type IntegrationAccountAgreementMapInput interface { pulumi.Input ToIntegrationAccountAgreementMapOutput() IntegrationAccountAgreementMapOutput ToIntegrationAccountAgreementMapOutputWithContext(context.Context) IntegrationAccountAgreementMapOutput } type IntegrationAccountAgreementMap map[string]IntegrationAccountAgreementInput func (IntegrationAccountAgreementMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*IntegrationAccountAgreement)(nil)).Elem() } func (i IntegrationAccountAgreementMap) ToIntegrationAccountAgreementMapOutput() IntegrationAccountAgreementMapOutput { return i.ToIntegrationAccountAgreementMapOutputWithContext(context.Background()) } func (i IntegrationAccountAgreementMap) ToIntegrationAccountAgreementMapOutputWithContext(ctx context.Context) IntegrationAccountAgreementMapOutput { return pulumi.ToOutputWithContext(ctx, i).(IntegrationAccountAgreementMapOutput) } type IntegrationAccountAgreementOutput struct{ *pulumi.OutputState } func (IntegrationAccountAgreementOutput) ElementType() reflect.Type { return reflect.TypeOf((**IntegrationAccountAgreement)(nil)).Elem() } func (o IntegrationAccountAgreementOutput) ToIntegrationAccountAgreementOutput() IntegrationAccountAgreementOutput { return o } func (o IntegrationAccountAgreementOutput) ToIntegrationAccountAgreementOutputWithContext(ctx context.Context) IntegrationAccountAgreementOutput { return o } // The type of the Logic App Integration Account Agreement. Possible values are `AS2`, `X12` and `Edifact`. func (o IntegrationAccountAgreementOutput) AgreementType() pulumi.StringOutput { return o.ApplyT(func(v *IntegrationAccountAgreement) pulumi.StringOutput { return v.AgreementType }).(pulumi.StringOutput) } // The content of the Logic App Integration Account Agreement. func (o IntegrationAccountAgreementOutput) Content() pulumi.StringOutput { return o.ApplyT(func(v *IntegrationAccountAgreement) pulumi.StringOutput { return v.Content }).(pulumi.StringOutput) } // A `guestIdentity` block as documented below. func (o IntegrationAccountAgreementOutput) GuestIdentity() IntegrationAccountAgreementGuestIdentityOutput { return o.ApplyT(func(v *IntegrationAccountAgreement) IntegrationAccountAgreementGuestIdentityOutput { return v.GuestIdentity }).(IntegrationAccountAgreementGuestIdentityOutput) } // The name of the guest Logic App Integration Account Partner. func (o IntegrationAccountAgreementOutput) GuestPartnerName() pulumi.StringOutput { return o.ApplyT(func(v *IntegrationAccountAgreement) pulumi.StringOutput { return v.GuestPartnerName }).(pulumi.StringOutput) } // A `hostIdentity` block as documented below. func (o IntegrationAccountAgreementOutput) HostIdentity() IntegrationAccountAgreementHostIdentityOutput { return o.ApplyT(func(v *IntegrationAccountAgreement) IntegrationAccountAgreementHostIdentityOutput { return v.HostIdentity }).(IntegrationAccountAgreementHostIdentityOutput) } // The name of the host Logic App Integration Account Partner. func (o IntegrationAccountAgreementOutput) HostPartnerName() pulumi.StringOutput { return o.ApplyT(func(v *IntegrationAccountAgreement) pulumi.StringOutput { return v.HostPartnerName }).(pulumi.StringOutput) } // The name of the Logic App Integration Account. Changing this forces a new resource to be created. func (o IntegrationAccountAgreementOutput) IntegrationAccountName() pulumi.StringOutput { return o.ApplyT(func(v *IntegrationAccountAgreement) pulumi.StringOutput { return v.IntegrationAccountName }).(pulumi.StringOutput) } // The metadata of the Logic App Integration Account Agreement. func (o IntegrationAccountAgreementOutput) Metadata() pulumi.StringMapOutput { return o.ApplyT(func(v *IntegrationAccountAgreement) pulumi.StringMapOutput { return v.Metadata }).(pulumi.StringMapOutput) } // The name which should be used for this Logic App Integration Account Agreement. Changing this forces a new resource to be created. func (o IntegrationAccountAgreementOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *IntegrationAccountAgreement) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // The name of the Resource Group where the Logic App Integration Account Agreement should exist. Changing this forces a new resource to be created. func (o IntegrationAccountAgreementOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v *IntegrationAccountAgreement) pulumi.StringOutput { return v.ResourceGroupName }).(pulumi.StringOutput) } type IntegrationAccountAgreementArrayOutput struct{ *pulumi.OutputState } func (IntegrationAccountAgreementArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*IntegrationAccountAgreement)(nil)).Elem() } func (o IntegrationAccountAgreementArrayOutput) ToIntegrationAccountAgreementArrayOutput() IntegrationAccountAgreementArrayOutput { return o } func (o IntegrationAccountAgreementArrayOutput) ToIntegrationAccountAgreementArrayOutputWithContext(ctx context.Context) IntegrationAccountAgreementArrayOutput { return o } func (o IntegrationAccountAgreementArrayOutput) Index(i pulumi.IntInput) IntegrationAccountAgreementOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *IntegrationAccountAgreement { return vs[0].([]*IntegrationAccountAgreement)[vs[1].(int)] }).(IntegrationAccountAgreementOutput) } type IntegrationAccountAgreementMapOutput struct{ *pulumi.OutputState } func (IntegrationAccountAgreementMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*IntegrationAccountAgreement)(nil)).Elem() } func (o IntegrationAccountAgreementMapOutput) ToIntegrationAccountAgreementMapOutput() IntegrationAccountAgreementMapOutput { return o } func (o IntegrationAccountAgreementMapOutput) ToIntegrationAccountAgreementMapOutputWithContext(ctx context.Context) IntegrationAccountAgreementMapOutput { return o } func (o IntegrationAccountAgreementMapOutput) MapIndex(k pulumi.StringInput) IntegrationAccountAgreementOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *IntegrationAccountAgreement { return vs[0].(map[string]*IntegrationAccountAgreement)[vs[1].(string)] }).(IntegrationAccountAgreementOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*IntegrationAccountAgreementInput)(nil)).Elem(), &IntegrationAccountAgreement{}) pulumi.RegisterInputType(reflect.TypeOf((*IntegrationAccountAgreementArrayInput)(nil)).Elem(), IntegrationAccountAgreementArray{}) pulumi.RegisterInputType(reflect.TypeOf((*IntegrationAccountAgreementMapInput)(nil)).Elem(), IntegrationAccountAgreementMap{}) pulumi.RegisterOutputType(IntegrationAccountAgreementOutput{}) pulumi.RegisterOutputType(IntegrationAccountAgreementArrayOutput{}) pulumi.RegisterOutputType(IntegrationAccountAgreementMapOutput{}) }
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/logicapps/integrationAccountCertificate.go
sdk/go/azure/logicapps/integrationAccountCertificate.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 logicapps import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a Logic App Integration Account Certificate. // // ## 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/logicapps" // "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 // } // exampleIntegrationAccount, err := logicapps.NewIntegrationAccount(ctx, "example", &logicapps.IntegrationAccountArgs{ // Name: pulumi.String("example-ia"), // Location: example.Location, // ResourceGroupName: example.Name, // SkuName: pulumi.String("Standard"), // }) // if err != nil { // return err // } // _, err = logicapps.NewIntegrationAccountCertificate(ctx, "example", &logicapps.IntegrationAccountCertificateArgs{ // Name: pulumi.String("example-iac"), // ResourceGroupName: example.Name, // IntegrationAccountName: exampleIntegrationAccount.Name, // PublicCertificate: pulumi.String("MIIDbzCCAlegAwIBAgIJAIzjRD36sIbbMA0GCSqGSIb3DQEBCwUAME0xCzAJBgNVBAYTAlVTMRMwEQYDVQQIDApTb21lLVN0YXRlMRIwEAYDVQQKDAl0ZXJyYWZvcm0xFTATBgNVBAMMDHRlcnJhZm9ybS5pbzAgFw0xNzA0MjEyMDA1MjdaGA8yMTE3MDMyODIwMDUyN1owTTELMAkGA1UEBhMCVVMxEzARBgNVBAgMClNvbWUtU3RhdGUxEjAQBgNVBAoMCXRlcnJhZm9ybTEVMBMGA1UEAwwMdGVycmFmb3JtLmlvMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA3L9L5szT4+FLykTFNyyPjy/k3BQTYAfRQzP2dhnsuUKm3cdPC0NyZ+wEXIUGhoDO2YG6EYChOl8fsDqDOjloSUGKqYw++nlpHIuUgJx8IxxG2XkALCjFU7EmF+w7kn76d0ezpEIYxnLP+KG2DVornoEt1aLhv1MLmpgEZZPhDbMSLhSYWeTVRMayXLwqtfgnDumQSB+8d/1JuJqrSI4pD12JozVThzb6hsjfb6RMX4epPmrGn0PbTPEEA6awmsxBCXB0s13nNQt/O0hLM2agwvAyozilQV+s616Ckgk6DJoUkqZhDy7vPYMIRSr98fBws6zkrV6tTLjmD8xAvobePQIDAQABo1AwTjAdBgNVHQ4EFgQUXIqO421zMMmbcRRX9wctZFCQuPIwHwYDVR0jBBgwFoAUXIqO421zMMmbcRRX9wctZFCQuPIwDAYDVR0TBAUwAwEB/zANBgkqhkiG9w0BAQsFAAOCAQEAr82NeT3BYJOKLlUL6Om5LjUF66ewcJjG9ltdvyQwVneMcq7t5UAPxgChzqNRVk4da8PzkXpjBJyWezHupdJNX3XqeUk2kSxqQ6/gmhqvfI3y7djrwoO6jvMEY26WqtkTNORWDP3THJJVimC3zV+KMU5UBVrEzhOVhHSU709lBP75o0BBn3xGsPqSq9k8IotIFfyAc6a+XP3+ZMpvh7wqAUml7vWa5wlcXExCx39h1balfDSLGNC4swWPCp9AMnQR0p+vMay9hNP1Eh+9QYUai14d5KS3cFV+KxE1cJR5HD/iLltnnOEbpMsB0eVOZWkFvE7Y5lW0oVSAfin5TwTJMQ=="), // }) // 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.Logic` - 2019-05-01 // // ## Import // // Logic App Integration Account Certificates can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:logicapps/integrationAccountCertificate:IntegrationAccountCertificate example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Logic/integrationAccounts/account1/certificates/certificate1 // ``` type IntegrationAccountCertificate struct { pulumi.CustomResourceState // The name of the Logic App Integration Account. Changing this forces a new Logic App Integration Account Certificate to be created. IntegrationAccountName pulumi.StringOutput `pulumi:"integrationAccountName"` // A `keyVaultKey` block as documented below. KeyVaultKey IntegrationAccountCertificateKeyVaultKeyPtrOutput `pulumi:"keyVaultKey"` // A JSON mapping of any Metadata for this Logic App Integration Account Certificate. Metadata pulumi.StringPtrOutput `pulumi:"metadata"` // The name which should be used for this Logic App Integration Account Certificate. Changing this forces a new Logic App Integration Account Certificate to be created. Name pulumi.StringOutput `pulumi:"name"` // The public certificate for the Logic App Integration Account Certificate. PublicCertificate pulumi.StringPtrOutput `pulumi:"publicCertificate"` // The name of the Resource Group where the Logic App Integration Account Certificate should exist. Changing this forces a new Logic App Integration Account Certificate to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` } // NewIntegrationAccountCertificate registers a new resource with the given unique name, arguments, and options. func NewIntegrationAccountCertificate(ctx *pulumi.Context, name string, args *IntegrationAccountCertificateArgs, opts ...pulumi.ResourceOption) (*IntegrationAccountCertificate, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.IntegrationAccountName == nil { return nil, errors.New("invalid value for required argument 'IntegrationAccountName'") } if args.ResourceGroupName == nil { return nil, errors.New("invalid value for required argument 'ResourceGroupName'") } opts = internal.PkgResourceDefaultOpts(opts) var resource IntegrationAccountCertificate err := ctx.RegisterResource("azure:logicapps/integrationAccountCertificate:IntegrationAccountCertificate", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetIntegrationAccountCertificate gets an existing IntegrationAccountCertificate 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 GetIntegrationAccountCertificate(ctx *pulumi.Context, name string, id pulumi.IDInput, state *IntegrationAccountCertificateState, opts ...pulumi.ResourceOption) (*IntegrationAccountCertificate, error) { var resource IntegrationAccountCertificate err := ctx.ReadResource("azure:logicapps/integrationAccountCertificate:IntegrationAccountCertificate", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering IntegrationAccountCertificate resources. type integrationAccountCertificateState struct { // The name of the Logic App Integration Account. Changing this forces a new Logic App Integration Account Certificate to be created. IntegrationAccountName *string `pulumi:"integrationAccountName"` // A `keyVaultKey` block as documented below. KeyVaultKey *IntegrationAccountCertificateKeyVaultKey `pulumi:"keyVaultKey"` // A JSON mapping of any Metadata for this Logic App Integration Account Certificate. Metadata *string `pulumi:"metadata"` // The name which should be used for this Logic App Integration Account Certificate. Changing this forces a new Logic App Integration Account Certificate to be created. Name *string `pulumi:"name"` // The public certificate for the Logic App Integration Account Certificate. PublicCertificate *string `pulumi:"publicCertificate"` // The name of the Resource Group where the Logic App Integration Account Certificate should exist. Changing this forces a new Logic App Integration Account Certificate to be created. ResourceGroupName *string `pulumi:"resourceGroupName"` } type IntegrationAccountCertificateState struct { // The name of the Logic App Integration Account. Changing this forces a new Logic App Integration Account Certificate to be created. IntegrationAccountName pulumi.StringPtrInput // A `keyVaultKey` block as documented below. KeyVaultKey IntegrationAccountCertificateKeyVaultKeyPtrInput // A JSON mapping of any Metadata for this Logic App Integration Account Certificate. Metadata pulumi.StringPtrInput // The name which should be used for this Logic App Integration Account Certificate. Changing this forces a new Logic App Integration Account Certificate to be created. Name pulumi.StringPtrInput // The public certificate for the Logic App Integration Account Certificate. PublicCertificate pulumi.StringPtrInput // The name of the Resource Group where the Logic App Integration Account Certificate should exist. Changing this forces a new Logic App Integration Account Certificate to be created. ResourceGroupName pulumi.StringPtrInput } func (IntegrationAccountCertificateState) ElementType() reflect.Type { return reflect.TypeOf((*integrationAccountCertificateState)(nil)).Elem() } type integrationAccountCertificateArgs struct { // The name of the Logic App Integration Account. Changing this forces a new Logic App Integration Account Certificate to be created. IntegrationAccountName string `pulumi:"integrationAccountName"` // A `keyVaultKey` block as documented below. KeyVaultKey *IntegrationAccountCertificateKeyVaultKey `pulumi:"keyVaultKey"` // A JSON mapping of any Metadata for this Logic App Integration Account Certificate. Metadata *string `pulumi:"metadata"` // The name which should be used for this Logic App Integration Account Certificate. Changing this forces a new Logic App Integration Account Certificate to be created. Name *string `pulumi:"name"` // The public certificate for the Logic App Integration Account Certificate. PublicCertificate *string `pulumi:"publicCertificate"` // The name of the Resource Group where the Logic App Integration Account Certificate should exist. Changing this forces a new Logic App Integration Account Certificate to be created. ResourceGroupName string `pulumi:"resourceGroupName"` } // The set of arguments for constructing a IntegrationAccountCertificate resource. type IntegrationAccountCertificateArgs struct { // The name of the Logic App Integration Account. Changing this forces a new Logic App Integration Account Certificate to be created. IntegrationAccountName pulumi.StringInput // A `keyVaultKey` block as documented below. KeyVaultKey IntegrationAccountCertificateKeyVaultKeyPtrInput // A JSON mapping of any Metadata for this Logic App Integration Account Certificate. Metadata pulumi.StringPtrInput // The name which should be used for this Logic App Integration Account Certificate. Changing this forces a new Logic App Integration Account Certificate to be created. Name pulumi.StringPtrInput // The public certificate for the Logic App Integration Account Certificate. PublicCertificate pulumi.StringPtrInput // The name of the Resource Group where the Logic App Integration Account Certificate should exist. Changing this forces a new Logic App Integration Account Certificate to be created. ResourceGroupName pulumi.StringInput } func (IntegrationAccountCertificateArgs) ElementType() reflect.Type { return reflect.TypeOf((*integrationAccountCertificateArgs)(nil)).Elem() } type IntegrationAccountCertificateInput interface { pulumi.Input ToIntegrationAccountCertificateOutput() IntegrationAccountCertificateOutput ToIntegrationAccountCertificateOutputWithContext(ctx context.Context) IntegrationAccountCertificateOutput } func (*IntegrationAccountCertificate) ElementType() reflect.Type { return reflect.TypeOf((**IntegrationAccountCertificate)(nil)).Elem() } func (i *IntegrationAccountCertificate) ToIntegrationAccountCertificateOutput() IntegrationAccountCertificateOutput { return i.ToIntegrationAccountCertificateOutputWithContext(context.Background()) } func (i *IntegrationAccountCertificate) ToIntegrationAccountCertificateOutputWithContext(ctx context.Context) IntegrationAccountCertificateOutput { return pulumi.ToOutputWithContext(ctx, i).(IntegrationAccountCertificateOutput) } // IntegrationAccountCertificateArrayInput is an input type that accepts IntegrationAccountCertificateArray and IntegrationAccountCertificateArrayOutput values. // You can construct a concrete instance of `IntegrationAccountCertificateArrayInput` via: // // IntegrationAccountCertificateArray{ IntegrationAccountCertificateArgs{...} } type IntegrationAccountCertificateArrayInput interface { pulumi.Input ToIntegrationAccountCertificateArrayOutput() IntegrationAccountCertificateArrayOutput ToIntegrationAccountCertificateArrayOutputWithContext(context.Context) IntegrationAccountCertificateArrayOutput } type IntegrationAccountCertificateArray []IntegrationAccountCertificateInput func (IntegrationAccountCertificateArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*IntegrationAccountCertificate)(nil)).Elem() } func (i IntegrationAccountCertificateArray) ToIntegrationAccountCertificateArrayOutput() IntegrationAccountCertificateArrayOutput { return i.ToIntegrationAccountCertificateArrayOutputWithContext(context.Background()) } func (i IntegrationAccountCertificateArray) ToIntegrationAccountCertificateArrayOutputWithContext(ctx context.Context) IntegrationAccountCertificateArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(IntegrationAccountCertificateArrayOutput) } // IntegrationAccountCertificateMapInput is an input type that accepts IntegrationAccountCertificateMap and IntegrationAccountCertificateMapOutput values. // You can construct a concrete instance of `IntegrationAccountCertificateMapInput` via: // // IntegrationAccountCertificateMap{ "key": IntegrationAccountCertificateArgs{...} } type IntegrationAccountCertificateMapInput interface { pulumi.Input ToIntegrationAccountCertificateMapOutput() IntegrationAccountCertificateMapOutput ToIntegrationAccountCertificateMapOutputWithContext(context.Context) IntegrationAccountCertificateMapOutput } type IntegrationAccountCertificateMap map[string]IntegrationAccountCertificateInput func (IntegrationAccountCertificateMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*IntegrationAccountCertificate)(nil)).Elem() } func (i IntegrationAccountCertificateMap) ToIntegrationAccountCertificateMapOutput() IntegrationAccountCertificateMapOutput { return i.ToIntegrationAccountCertificateMapOutputWithContext(context.Background()) } func (i IntegrationAccountCertificateMap) ToIntegrationAccountCertificateMapOutputWithContext(ctx context.Context) IntegrationAccountCertificateMapOutput { return pulumi.ToOutputWithContext(ctx, i).(IntegrationAccountCertificateMapOutput) } type IntegrationAccountCertificateOutput struct{ *pulumi.OutputState } func (IntegrationAccountCertificateOutput) ElementType() reflect.Type { return reflect.TypeOf((**IntegrationAccountCertificate)(nil)).Elem() } func (o IntegrationAccountCertificateOutput) ToIntegrationAccountCertificateOutput() IntegrationAccountCertificateOutput { return o } func (o IntegrationAccountCertificateOutput) ToIntegrationAccountCertificateOutputWithContext(ctx context.Context) IntegrationAccountCertificateOutput { return o } // The name of the Logic App Integration Account. Changing this forces a new Logic App Integration Account Certificate to be created. func (o IntegrationAccountCertificateOutput) IntegrationAccountName() pulumi.StringOutput { return o.ApplyT(func(v *IntegrationAccountCertificate) pulumi.StringOutput { return v.IntegrationAccountName }).(pulumi.StringOutput) } // A `keyVaultKey` block as documented below. func (o IntegrationAccountCertificateOutput) KeyVaultKey() IntegrationAccountCertificateKeyVaultKeyPtrOutput { return o.ApplyT(func(v *IntegrationAccountCertificate) IntegrationAccountCertificateKeyVaultKeyPtrOutput { return v.KeyVaultKey }).(IntegrationAccountCertificateKeyVaultKeyPtrOutput) } // A JSON mapping of any Metadata for this Logic App Integration Account Certificate. func (o IntegrationAccountCertificateOutput) Metadata() pulumi.StringPtrOutput { return o.ApplyT(func(v *IntegrationAccountCertificate) pulumi.StringPtrOutput { return v.Metadata }).(pulumi.StringPtrOutput) } // The name which should be used for this Logic App Integration Account Certificate. Changing this forces a new Logic App Integration Account Certificate to be created. func (o IntegrationAccountCertificateOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *IntegrationAccountCertificate) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // The public certificate for the Logic App Integration Account Certificate. func (o IntegrationAccountCertificateOutput) PublicCertificate() pulumi.StringPtrOutput { return o.ApplyT(func(v *IntegrationAccountCertificate) pulumi.StringPtrOutput { return v.PublicCertificate }).(pulumi.StringPtrOutput) } // The name of the Resource Group where the Logic App Integration Account Certificate should exist. Changing this forces a new Logic App Integration Account Certificate to be created. func (o IntegrationAccountCertificateOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v *IntegrationAccountCertificate) pulumi.StringOutput { return v.ResourceGroupName }).(pulumi.StringOutput) } type IntegrationAccountCertificateArrayOutput struct{ *pulumi.OutputState } func (IntegrationAccountCertificateArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*IntegrationAccountCertificate)(nil)).Elem() } func (o IntegrationAccountCertificateArrayOutput) ToIntegrationAccountCertificateArrayOutput() IntegrationAccountCertificateArrayOutput { return o } func (o IntegrationAccountCertificateArrayOutput) ToIntegrationAccountCertificateArrayOutputWithContext(ctx context.Context) IntegrationAccountCertificateArrayOutput { return o } func (o IntegrationAccountCertificateArrayOutput) Index(i pulumi.IntInput) IntegrationAccountCertificateOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *IntegrationAccountCertificate { return vs[0].([]*IntegrationAccountCertificate)[vs[1].(int)] }).(IntegrationAccountCertificateOutput) } type IntegrationAccountCertificateMapOutput struct{ *pulumi.OutputState } func (IntegrationAccountCertificateMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*IntegrationAccountCertificate)(nil)).Elem() } func (o IntegrationAccountCertificateMapOutput) ToIntegrationAccountCertificateMapOutput() IntegrationAccountCertificateMapOutput { return o } func (o IntegrationAccountCertificateMapOutput) ToIntegrationAccountCertificateMapOutputWithContext(ctx context.Context) IntegrationAccountCertificateMapOutput { return o } func (o IntegrationAccountCertificateMapOutput) MapIndex(k pulumi.StringInput) IntegrationAccountCertificateOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *IntegrationAccountCertificate { return vs[0].(map[string]*IntegrationAccountCertificate)[vs[1].(string)] }).(IntegrationAccountCertificateOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*IntegrationAccountCertificateInput)(nil)).Elem(), &IntegrationAccountCertificate{}) pulumi.RegisterInputType(reflect.TypeOf((*IntegrationAccountCertificateArrayInput)(nil)).Elem(), IntegrationAccountCertificateArray{}) pulumi.RegisterInputType(reflect.TypeOf((*IntegrationAccountCertificateMapInput)(nil)).Elem(), IntegrationAccountCertificateMap{}) pulumi.RegisterOutputType(IntegrationAccountCertificateOutput{}) pulumi.RegisterOutputType(IntegrationAccountCertificateArrayOutput{}) pulumi.RegisterOutputType(IntegrationAccountCertificateMapOutput{}) }
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/logicapps/triggerRecurrence.go
sdk/go/azure/logicapps/triggerRecurrence.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 logicapps import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a Recurrence Trigger within a Logic App Workflow // // ## 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/logicapps" // "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("workflow-resources"), // Location: pulumi.String("West Europe"), // }) // if err != nil { // return err // } // exampleWorkflow, err := logicapps.NewWorkflow(ctx, "example", &logicapps.WorkflowArgs{ // Name: pulumi.String("workflow1"), // Location: example.Location, // ResourceGroupName: example.Name, // }) // if err != nil { // return err // } // _, err = logicapps.NewTriggerRecurrence(ctx, "example", &logicapps.TriggerRecurrenceArgs{ // Name: pulumi.String("run-every-day"), // LogicAppId: exampleWorkflow.ID(), // Frequency: pulumi.String("Day"), // Interval: pulumi.Int(1), // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## Import // // Logic App Recurrence Triggers can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:logicapps/triggerRecurrence:TriggerRecurrence daily /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Logic/workflows/workflow1/triggers/daily // ``` type TriggerRecurrence struct { pulumi.CustomResourceState // Specifies the Frequency at which this Trigger should be run. Possible values include `Month`, `Week`, `Day`, `Hour`, `Minute` and `Second`. Frequency pulumi.StringOutput `pulumi:"frequency"` // Specifies interval used for the Frequency, for example a value of `4` for `interval` and `hour` for `frequency` would run the Trigger every 4 hours. Interval pulumi.IntOutput `pulumi:"interval"` // Specifies the ID of the Logic App Workflow. Changing this forces a new resource to be created. LogicAppId pulumi.StringOutput `pulumi:"logicAppId"` // Specifies the name of the Recurrence Triggers to be created within the Logic App Workflow. Changing this forces a new resource to be created. // // > **NOTE:** This name must be unique across all Triggers within the Logic App Workflow. Name pulumi.StringOutput `pulumi:"name"` // A `schedule` block as specified below. Schedule TriggerRecurrenceSchedulePtrOutput `pulumi:"schedule"` // Specifies the start date and time for this trigger in RFC3339 format: `2000-01-02T03:04:05Z`. StartTime pulumi.StringPtrOutput `pulumi:"startTime"` // Specifies the time zone for this trigger. Supported time zone options are listed [here](https://support.microsoft.com/en-us/help/973627/microsoft-time-zone-index-values) TimeZone pulumi.StringOutput `pulumi:"timeZone"` } // NewTriggerRecurrence registers a new resource with the given unique name, arguments, and options. func NewTriggerRecurrence(ctx *pulumi.Context, name string, args *TriggerRecurrenceArgs, opts ...pulumi.ResourceOption) (*TriggerRecurrence, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.Frequency == nil { return nil, errors.New("invalid value for required argument 'Frequency'") } if args.Interval == nil { return nil, errors.New("invalid value for required argument 'Interval'") } if args.LogicAppId == nil { return nil, errors.New("invalid value for required argument 'LogicAppId'") } opts = internal.PkgResourceDefaultOpts(opts) var resource TriggerRecurrence err := ctx.RegisterResource("azure:logicapps/triggerRecurrence:TriggerRecurrence", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetTriggerRecurrence gets an existing TriggerRecurrence 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 GetTriggerRecurrence(ctx *pulumi.Context, name string, id pulumi.IDInput, state *TriggerRecurrenceState, opts ...pulumi.ResourceOption) (*TriggerRecurrence, error) { var resource TriggerRecurrence err := ctx.ReadResource("azure:logicapps/triggerRecurrence:TriggerRecurrence", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering TriggerRecurrence resources. type triggerRecurrenceState struct { // Specifies the Frequency at which this Trigger should be run. Possible values include `Month`, `Week`, `Day`, `Hour`, `Minute` and `Second`. Frequency *string `pulumi:"frequency"` // Specifies interval used for the Frequency, for example a value of `4` for `interval` and `hour` for `frequency` would run the Trigger every 4 hours. Interval *int `pulumi:"interval"` // Specifies the ID of the Logic App Workflow. Changing this forces a new resource to be created. LogicAppId *string `pulumi:"logicAppId"` // Specifies the name of the Recurrence Triggers to be created within the Logic App Workflow. Changing this forces a new resource to be created. // // > **NOTE:** This name must be unique across all Triggers within the Logic App Workflow. Name *string `pulumi:"name"` // A `schedule` block as specified below. Schedule *TriggerRecurrenceSchedule `pulumi:"schedule"` // Specifies the start date and time for this trigger in RFC3339 format: `2000-01-02T03:04:05Z`. StartTime *string `pulumi:"startTime"` // Specifies the time zone for this trigger. Supported time zone options are listed [here](https://support.microsoft.com/en-us/help/973627/microsoft-time-zone-index-values) TimeZone *string `pulumi:"timeZone"` } type TriggerRecurrenceState struct { // Specifies the Frequency at which this Trigger should be run. Possible values include `Month`, `Week`, `Day`, `Hour`, `Minute` and `Second`. Frequency pulumi.StringPtrInput // Specifies interval used for the Frequency, for example a value of `4` for `interval` and `hour` for `frequency` would run the Trigger every 4 hours. Interval pulumi.IntPtrInput // Specifies the ID of the Logic App Workflow. Changing this forces a new resource to be created. LogicAppId pulumi.StringPtrInput // Specifies the name of the Recurrence Triggers to be created within the Logic App Workflow. Changing this forces a new resource to be created. // // > **NOTE:** This name must be unique across all Triggers within the Logic App Workflow. Name pulumi.StringPtrInput // A `schedule` block as specified below. Schedule TriggerRecurrenceSchedulePtrInput // Specifies the start date and time for this trigger in RFC3339 format: `2000-01-02T03:04:05Z`. StartTime pulumi.StringPtrInput // Specifies the time zone for this trigger. Supported time zone options are listed [here](https://support.microsoft.com/en-us/help/973627/microsoft-time-zone-index-values) TimeZone pulumi.StringPtrInput } func (TriggerRecurrenceState) ElementType() reflect.Type { return reflect.TypeOf((*triggerRecurrenceState)(nil)).Elem() } type triggerRecurrenceArgs struct { // Specifies the Frequency at which this Trigger should be run. Possible values include `Month`, `Week`, `Day`, `Hour`, `Minute` and `Second`. Frequency string `pulumi:"frequency"` // Specifies interval used for the Frequency, for example a value of `4` for `interval` and `hour` for `frequency` would run the Trigger every 4 hours. Interval int `pulumi:"interval"` // Specifies the ID of the Logic App Workflow. Changing this forces a new resource to be created. LogicAppId string `pulumi:"logicAppId"` // Specifies the name of the Recurrence Triggers to be created within the Logic App Workflow. Changing this forces a new resource to be created. // // > **NOTE:** This name must be unique across all Triggers within the Logic App Workflow. Name *string `pulumi:"name"` // A `schedule` block as specified below. Schedule *TriggerRecurrenceSchedule `pulumi:"schedule"` // Specifies the start date and time for this trigger in RFC3339 format: `2000-01-02T03:04:05Z`. StartTime *string `pulumi:"startTime"` // Specifies the time zone for this trigger. Supported time zone options are listed [here](https://support.microsoft.com/en-us/help/973627/microsoft-time-zone-index-values) TimeZone *string `pulumi:"timeZone"` } // The set of arguments for constructing a TriggerRecurrence resource. type TriggerRecurrenceArgs struct { // Specifies the Frequency at which this Trigger should be run. Possible values include `Month`, `Week`, `Day`, `Hour`, `Minute` and `Second`. Frequency pulumi.StringInput // Specifies interval used for the Frequency, for example a value of `4` for `interval` and `hour` for `frequency` would run the Trigger every 4 hours. Interval pulumi.IntInput // Specifies the ID of the Logic App Workflow. Changing this forces a new resource to be created. LogicAppId pulumi.StringInput // Specifies the name of the Recurrence Triggers to be created within the Logic App Workflow. Changing this forces a new resource to be created. // // > **NOTE:** This name must be unique across all Triggers within the Logic App Workflow. Name pulumi.StringPtrInput // A `schedule` block as specified below. Schedule TriggerRecurrenceSchedulePtrInput // Specifies the start date and time for this trigger in RFC3339 format: `2000-01-02T03:04:05Z`. StartTime pulumi.StringPtrInput // Specifies the time zone for this trigger. Supported time zone options are listed [here](https://support.microsoft.com/en-us/help/973627/microsoft-time-zone-index-values) TimeZone pulumi.StringPtrInput } func (TriggerRecurrenceArgs) ElementType() reflect.Type { return reflect.TypeOf((*triggerRecurrenceArgs)(nil)).Elem() } type TriggerRecurrenceInput interface { pulumi.Input ToTriggerRecurrenceOutput() TriggerRecurrenceOutput ToTriggerRecurrenceOutputWithContext(ctx context.Context) TriggerRecurrenceOutput } func (*TriggerRecurrence) ElementType() reflect.Type { return reflect.TypeOf((**TriggerRecurrence)(nil)).Elem() } func (i *TriggerRecurrence) ToTriggerRecurrenceOutput() TriggerRecurrenceOutput { return i.ToTriggerRecurrenceOutputWithContext(context.Background()) } func (i *TriggerRecurrence) ToTriggerRecurrenceOutputWithContext(ctx context.Context) TriggerRecurrenceOutput { return pulumi.ToOutputWithContext(ctx, i).(TriggerRecurrenceOutput) } // TriggerRecurrenceArrayInput is an input type that accepts TriggerRecurrenceArray and TriggerRecurrenceArrayOutput values. // You can construct a concrete instance of `TriggerRecurrenceArrayInput` via: // // TriggerRecurrenceArray{ TriggerRecurrenceArgs{...} } type TriggerRecurrenceArrayInput interface { pulumi.Input ToTriggerRecurrenceArrayOutput() TriggerRecurrenceArrayOutput ToTriggerRecurrenceArrayOutputWithContext(context.Context) TriggerRecurrenceArrayOutput } type TriggerRecurrenceArray []TriggerRecurrenceInput func (TriggerRecurrenceArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*TriggerRecurrence)(nil)).Elem() } func (i TriggerRecurrenceArray) ToTriggerRecurrenceArrayOutput() TriggerRecurrenceArrayOutput { return i.ToTriggerRecurrenceArrayOutputWithContext(context.Background()) } func (i TriggerRecurrenceArray) ToTriggerRecurrenceArrayOutputWithContext(ctx context.Context) TriggerRecurrenceArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(TriggerRecurrenceArrayOutput) } // TriggerRecurrenceMapInput is an input type that accepts TriggerRecurrenceMap and TriggerRecurrenceMapOutput values. // You can construct a concrete instance of `TriggerRecurrenceMapInput` via: // // TriggerRecurrenceMap{ "key": TriggerRecurrenceArgs{...} } type TriggerRecurrenceMapInput interface { pulumi.Input ToTriggerRecurrenceMapOutput() TriggerRecurrenceMapOutput ToTriggerRecurrenceMapOutputWithContext(context.Context) TriggerRecurrenceMapOutput } type TriggerRecurrenceMap map[string]TriggerRecurrenceInput func (TriggerRecurrenceMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*TriggerRecurrence)(nil)).Elem() } func (i TriggerRecurrenceMap) ToTriggerRecurrenceMapOutput() TriggerRecurrenceMapOutput { return i.ToTriggerRecurrenceMapOutputWithContext(context.Background()) } func (i TriggerRecurrenceMap) ToTriggerRecurrenceMapOutputWithContext(ctx context.Context) TriggerRecurrenceMapOutput { return pulumi.ToOutputWithContext(ctx, i).(TriggerRecurrenceMapOutput) } type TriggerRecurrenceOutput struct{ *pulumi.OutputState } func (TriggerRecurrenceOutput) ElementType() reflect.Type { return reflect.TypeOf((**TriggerRecurrence)(nil)).Elem() } func (o TriggerRecurrenceOutput) ToTriggerRecurrenceOutput() TriggerRecurrenceOutput { return o } func (o TriggerRecurrenceOutput) ToTriggerRecurrenceOutputWithContext(ctx context.Context) TriggerRecurrenceOutput { return o } // Specifies the Frequency at which this Trigger should be run. Possible values include `Month`, `Week`, `Day`, `Hour`, `Minute` and `Second`. func (o TriggerRecurrenceOutput) Frequency() pulumi.StringOutput { return o.ApplyT(func(v *TriggerRecurrence) pulumi.StringOutput { return v.Frequency }).(pulumi.StringOutput) } // Specifies interval used for the Frequency, for example a value of `4` for `interval` and `hour` for `frequency` would run the Trigger every 4 hours. func (o TriggerRecurrenceOutput) Interval() pulumi.IntOutput { return o.ApplyT(func(v *TriggerRecurrence) pulumi.IntOutput { return v.Interval }).(pulumi.IntOutput) } // Specifies the ID of the Logic App Workflow. Changing this forces a new resource to be created. func (o TriggerRecurrenceOutput) LogicAppId() pulumi.StringOutput { return o.ApplyT(func(v *TriggerRecurrence) pulumi.StringOutput { return v.LogicAppId }).(pulumi.StringOutput) } // Specifies the name of the Recurrence Triggers to be created within the Logic App Workflow. Changing this forces a new resource to be created. // // > **NOTE:** This name must be unique across all Triggers within the Logic App Workflow. func (o TriggerRecurrenceOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *TriggerRecurrence) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // A `schedule` block as specified below. func (o TriggerRecurrenceOutput) Schedule() TriggerRecurrenceSchedulePtrOutput { return o.ApplyT(func(v *TriggerRecurrence) TriggerRecurrenceSchedulePtrOutput { return v.Schedule }).(TriggerRecurrenceSchedulePtrOutput) } // Specifies the start date and time for this trigger in RFC3339 format: `2000-01-02T03:04:05Z`. func (o TriggerRecurrenceOutput) StartTime() pulumi.StringPtrOutput { return o.ApplyT(func(v *TriggerRecurrence) pulumi.StringPtrOutput { return v.StartTime }).(pulumi.StringPtrOutput) } // Specifies the time zone for this trigger. Supported time zone options are listed [here](https://support.microsoft.com/en-us/help/973627/microsoft-time-zone-index-values) func (o TriggerRecurrenceOutput) TimeZone() pulumi.StringOutput { return o.ApplyT(func(v *TriggerRecurrence) pulumi.StringOutput { return v.TimeZone }).(pulumi.StringOutput) } type TriggerRecurrenceArrayOutput struct{ *pulumi.OutputState } func (TriggerRecurrenceArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*TriggerRecurrence)(nil)).Elem() } func (o TriggerRecurrenceArrayOutput) ToTriggerRecurrenceArrayOutput() TriggerRecurrenceArrayOutput { return o } func (o TriggerRecurrenceArrayOutput) ToTriggerRecurrenceArrayOutputWithContext(ctx context.Context) TriggerRecurrenceArrayOutput { return o } func (o TriggerRecurrenceArrayOutput) Index(i pulumi.IntInput) TriggerRecurrenceOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *TriggerRecurrence { return vs[0].([]*TriggerRecurrence)[vs[1].(int)] }).(TriggerRecurrenceOutput) } type TriggerRecurrenceMapOutput struct{ *pulumi.OutputState } func (TriggerRecurrenceMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*TriggerRecurrence)(nil)).Elem() } func (o TriggerRecurrenceMapOutput) ToTriggerRecurrenceMapOutput() TriggerRecurrenceMapOutput { return o } func (o TriggerRecurrenceMapOutput) ToTriggerRecurrenceMapOutputWithContext(ctx context.Context) TriggerRecurrenceMapOutput { return o } func (o TriggerRecurrenceMapOutput) MapIndex(k pulumi.StringInput) TriggerRecurrenceOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *TriggerRecurrence { return vs[0].(map[string]*TriggerRecurrence)[vs[1].(string)] }).(TriggerRecurrenceOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*TriggerRecurrenceInput)(nil)).Elem(), &TriggerRecurrence{}) pulumi.RegisterInputType(reflect.TypeOf((*TriggerRecurrenceArrayInput)(nil)).Elem(), TriggerRecurrenceArray{}) pulumi.RegisterInputType(reflect.TypeOf((*TriggerRecurrenceMapInput)(nil)).Elem(), TriggerRecurrenceMap{}) pulumi.RegisterOutputType(TriggerRecurrenceOutput{}) pulumi.RegisterOutputType(TriggerRecurrenceArrayOutput{}) pulumi.RegisterOutputType(TriggerRecurrenceMapOutput{}) }
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/logicapps/integrationAccountAssembly.go
sdk/go/azure/logicapps/integrationAccountAssembly.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 logicapps import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a Logic App Integration Account Assembly. // // ## 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/logicapps" // "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 // } // exampleIntegrationAccount, err := logicapps.NewIntegrationAccount(ctx, "example", &logicapps.IntegrationAccountArgs{ // Name: pulumi.String("example-ia"), // Location: example.Location, // ResourceGroupName: example.Name, // SkuName: pulumi.String("Basic"), // }) // if err != nil { // return err // } // invokeFilebase64, err := std.Filebase64(ctx, &std.Filebase64Args{ // Input: "testdata/log4net.dll", // }, nil) // if err != nil { // return err // } // _, err = logicapps.NewIntegrationAccountAssembly(ctx, "example", &logicapps.IntegrationAccountAssemblyArgs{ // Name: pulumi.String("example-assembly"), // ResourceGroupName: example.Name, // IntegrationAccountName: exampleIntegrationAccount.Name, // AssemblyName: pulumi.String("TestAssembly"), // Content: 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.Logic` - 2019-05-01 // // ## Import // // Logic App Integration Account Assemblies can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:logicapps/integrationAccountAssembly:IntegrationAccountAssembly example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Logic/integrationAccounts/account1/assemblies/assembly1 // ``` type IntegrationAccountAssembly struct { pulumi.CustomResourceState // The name of the Logic App Integration Account Assembly. AssemblyName pulumi.StringOutput `pulumi:"assemblyName"` // The version of the Logic App Integration Account Assembly. Defaults to `0.0.0.0`. AssemblyVersion pulumi.StringPtrOutput `pulumi:"assemblyVersion"` // The content of the Logic App Integration Account Assembly. Content pulumi.StringPtrOutput `pulumi:"content"` // The content link URI of the Logic App Integration Account Assembly. ContentLinkUri pulumi.StringPtrOutput `pulumi:"contentLinkUri"` // The name of the Logic App Integration Account. Changing this forces a new resource to be created. IntegrationAccountName pulumi.StringOutput `pulumi:"integrationAccountName"` // The metadata of the Logic App Integration Account Assembly. Metadata pulumi.StringMapOutput `pulumi:"metadata"` // The name which should be used for this Logic App Integration Account Assembly Artifact. Changing this forces a new resource to be created. Name pulumi.StringOutput `pulumi:"name"` // The name of the Resource Group where the Logic App Integration Account Assembly Artifact should exist. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` } // NewIntegrationAccountAssembly registers a new resource with the given unique name, arguments, and options. func NewIntegrationAccountAssembly(ctx *pulumi.Context, name string, args *IntegrationAccountAssemblyArgs, opts ...pulumi.ResourceOption) (*IntegrationAccountAssembly, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.AssemblyName == nil { return nil, errors.New("invalid value for required argument 'AssemblyName'") } if args.IntegrationAccountName == nil { return nil, errors.New("invalid value for required argument 'IntegrationAccountName'") } if args.ResourceGroupName == nil { return nil, errors.New("invalid value for required argument 'ResourceGroupName'") } opts = internal.PkgResourceDefaultOpts(opts) var resource IntegrationAccountAssembly err := ctx.RegisterResource("azure:logicapps/integrationAccountAssembly:IntegrationAccountAssembly", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetIntegrationAccountAssembly gets an existing IntegrationAccountAssembly 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 GetIntegrationAccountAssembly(ctx *pulumi.Context, name string, id pulumi.IDInput, state *IntegrationAccountAssemblyState, opts ...pulumi.ResourceOption) (*IntegrationAccountAssembly, error) { var resource IntegrationAccountAssembly err := ctx.ReadResource("azure:logicapps/integrationAccountAssembly:IntegrationAccountAssembly", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering IntegrationAccountAssembly resources. type integrationAccountAssemblyState struct { // The name of the Logic App Integration Account Assembly. AssemblyName *string `pulumi:"assemblyName"` // The version of the Logic App Integration Account Assembly. Defaults to `0.0.0.0`. AssemblyVersion *string `pulumi:"assemblyVersion"` // The content of the Logic App Integration Account Assembly. Content *string `pulumi:"content"` // The content link URI of the Logic App Integration Account Assembly. ContentLinkUri *string `pulumi:"contentLinkUri"` // The name of the Logic App Integration Account. Changing this forces a new resource to be created. IntegrationAccountName *string `pulumi:"integrationAccountName"` // The metadata of the Logic App Integration Account Assembly. Metadata map[string]string `pulumi:"metadata"` // The name which should be used for this Logic App Integration Account Assembly Artifact. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // The name of the Resource Group where the Logic App Integration Account Assembly Artifact should exist. Changing this forces a new resource to be created. ResourceGroupName *string `pulumi:"resourceGroupName"` } type IntegrationAccountAssemblyState struct { // The name of the Logic App Integration Account Assembly. AssemblyName pulumi.StringPtrInput // The version of the Logic App Integration Account Assembly. Defaults to `0.0.0.0`. AssemblyVersion pulumi.StringPtrInput // The content of the Logic App Integration Account Assembly. Content pulumi.StringPtrInput // The content link URI of the Logic App Integration Account Assembly. ContentLinkUri pulumi.StringPtrInput // The name of the Logic App Integration Account. Changing this forces a new resource to be created. IntegrationAccountName pulumi.StringPtrInput // The metadata of the Logic App Integration Account Assembly. Metadata pulumi.StringMapInput // The name which should be used for this Logic App Integration Account Assembly Artifact. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // The name of the Resource Group where the Logic App Integration Account Assembly Artifact should exist. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringPtrInput } func (IntegrationAccountAssemblyState) ElementType() reflect.Type { return reflect.TypeOf((*integrationAccountAssemblyState)(nil)).Elem() } type integrationAccountAssemblyArgs struct { // The name of the Logic App Integration Account Assembly. AssemblyName string `pulumi:"assemblyName"` // The version of the Logic App Integration Account Assembly. Defaults to `0.0.0.0`. AssemblyVersion *string `pulumi:"assemblyVersion"` // The content of the Logic App Integration Account Assembly. Content *string `pulumi:"content"` // The content link URI of the Logic App Integration Account Assembly. ContentLinkUri *string `pulumi:"contentLinkUri"` // The name of the Logic App Integration Account. Changing this forces a new resource to be created. IntegrationAccountName string `pulumi:"integrationAccountName"` // The metadata of the Logic App Integration Account Assembly. Metadata map[string]string `pulumi:"metadata"` // The name which should be used for this Logic App Integration Account Assembly Artifact. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // The name of the Resource Group where the Logic App Integration Account Assembly Artifact should exist. Changing this forces a new resource to be created. ResourceGroupName string `pulumi:"resourceGroupName"` } // The set of arguments for constructing a IntegrationAccountAssembly resource. type IntegrationAccountAssemblyArgs struct { // The name of the Logic App Integration Account Assembly. AssemblyName pulumi.StringInput // The version of the Logic App Integration Account Assembly. Defaults to `0.0.0.0`. AssemblyVersion pulumi.StringPtrInput // The content of the Logic App Integration Account Assembly. Content pulumi.StringPtrInput // The content link URI of the Logic App Integration Account Assembly. ContentLinkUri pulumi.StringPtrInput // The name of the Logic App Integration Account. Changing this forces a new resource to be created. IntegrationAccountName pulumi.StringInput // The metadata of the Logic App Integration Account Assembly. Metadata pulumi.StringMapInput // The name which should be used for this Logic App Integration Account Assembly Artifact. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // The name of the Resource Group where the Logic App Integration Account Assembly Artifact should exist. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringInput } func (IntegrationAccountAssemblyArgs) ElementType() reflect.Type { return reflect.TypeOf((*integrationAccountAssemblyArgs)(nil)).Elem() } type IntegrationAccountAssemblyInput interface { pulumi.Input ToIntegrationAccountAssemblyOutput() IntegrationAccountAssemblyOutput ToIntegrationAccountAssemblyOutputWithContext(ctx context.Context) IntegrationAccountAssemblyOutput } func (*IntegrationAccountAssembly) ElementType() reflect.Type { return reflect.TypeOf((**IntegrationAccountAssembly)(nil)).Elem() } func (i *IntegrationAccountAssembly) ToIntegrationAccountAssemblyOutput() IntegrationAccountAssemblyOutput { return i.ToIntegrationAccountAssemblyOutputWithContext(context.Background()) } func (i *IntegrationAccountAssembly) ToIntegrationAccountAssemblyOutputWithContext(ctx context.Context) IntegrationAccountAssemblyOutput { return pulumi.ToOutputWithContext(ctx, i).(IntegrationAccountAssemblyOutput) } // IntegrationAccountAssemblyArrayInput is an input type that accepts IntegrationAccountAssemblyArray and IntegrationAccountAssemblyArrayOutput values. // You can construct a concrete instance of `IntegrationAccountAssemblyArrayInput` via: // // IntegrationAccountAssemblyArray{ IntegrationAccountAssemblyArgs{...} } type IntegrationAccountAssemblyArrayInput interface { pulumi.Input ToIntegrationAccountAssemblyArrayOutput() IntegrationAccountAssemblyArrayOutput ToIntegrationAccountAssemblyArrayOutputWithContext(context.Context) IntegrationAccountAssemblyArrayOutput } type IntegrationAccountAssemblyArray []IntegrationAccountAssemblyInput func (IntegrationAccountAssemblyArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*IntegrationAccountAssembly)(nil)).Elem() } func (i IntegrationAccountAssemblyArray) ToIntegrationAccountAssemblyArrayOutput() IntegrationAccountAssemblyArrayOutput { return i.ToIntegrationAccountAssemblyArrayOutputWithContext(context.Background()) } func (i IntegrationAccountAssemblyArray) ToIntegrationAccountAssemblyArrayOutputWithContext(ctx context.Context) IntegrationAccountAssemblyArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(IntegrationAccountAssemblyArrayOutput) } // IntegrationAccountAssemblyMapInput is an input type that accepts IntegrationAccountAssemblyMap and IntegrationAccountAssemblyMapOutput values. // You can construct a concrete instance of `IntegrationAccountAssemblyMapInput` via: // // IntegrationAccountAssemblyMap{ "key": IntegrationAccountAssemblyArgs{...} } type IntegrationAccountAssemblyMapInput interface { pulumi.Input ToIntegrationAccountAssemblyMapOutput() IntegrationAccountAssemblyMapOutput ToIntegrationAccountAssemblyMapOutputWithContext(context.Context) IntegrationAccountAssemblyMapOutput } type IntegrationAccountAssemblyMap map[string]IntegrationAccountAssemblyInput func (IntegrationAccountAssemblyMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*IntegrationAccountAssembly)(nil)).Elem() } func (i IntegrationAccountAssemblyMap) ToIntegrationAccountAssemblyMapOutput() IntegrationAccountAssemblyMapOutput { return i.ToIntegrationAccountAssemblyMapOutputWithContext(context.Background()) } func (i IntegrationAccountAssemblyMap) ToIntegrationAccountAssemblyMapOutputWithContext(ctx context.Context) IntegrationAccountAssemblyMapOutput { return pulumi.ToOutputWithContext(ctx, i).(IntegrationAccountAssemblyMapOutput) } type IntegrationAccountAssemblyOutput struct{ *pulumi.OutputState } func (IntegrationAccountAssemblyOutput) ElementType() reflect.Type { return reflect.TypeOf((**IntegrationAccountAssembly)(nil)).Elem() } func (o IntegrationAccountAssemblyOutput) ToIntegrationAccountAssemblyOutput() IntegrationAccountAssemblyOutput { return o } func (o IntegrationAccountAssemblyOutput) ToIntegrationAccountAssemblyOutputWithContext(ctx context.Context) IntegrationAccountAssemblyOutput { return o } // The name of the Logic App Integration Account Assembly. func (o IntegrationAccountAssemblyOutput) AssemblyName() pulumi.StringOutput { return o.ApplyT(func(v *IntegrationAccountAssembly) pulumi.StringOutput { return v.AssemblyName }).(pulumi.StringOutput) } // The version of the Logic App Integration Account Assembly. Defaults to `0.0.0.0`. func (o IntegrationAccountAssemblyOutput) AssemblyVersion() pulumi.StringPtrOutput { return o.ApplyT(func(v *IntegrationAccountAssembly) pulumi.StringPtrOutput { return v.AssemblyVersion }).(pulumi.StringPtrOutput) } // The content of the Logic App Integration Account Assembly. func (o IntegrationAccountAssemblyOutput) Content() pulumi.StringPtrOutput { return o.ApplyT(func(v *IntegrationAccountAssembly) pulumi.StringPtrOutput { return v.Content }).(pulumi.StringPtrOutput) } // The content link URI of the Logic App Integration Account Assembly. func (o IntegrationAccountAssemblyOutput) ContentLinkUri() pulumi.StringPtrOutput { return o.ApplyT(func(v *IntegrationAccountAssembly) pulumi.StringPtrOutput { return v.ContentLinkUri }).(pulumi.StringPtrOutput) } // The name of the Logic App Integration Account. Changing this forces a new resource to be created. func (o IntegrationAccountAssemblyOutput) IntegrationAccountName() pulumi.StringOutput { return o.ApplyT(func(v *IntegrationAccountAssembly) pulumi.StringOutput { return v.IntegrationAccountName }).(pulumi.StringOutput) } // The metadata of the Logic App Integration Account Assembly. func (o IntegrationAccountAssemblyOutput) Metadata() pulumi.StringMapOutput { return o.ApplyT(func(v *IntegrationAccountAssembly) pulumi.StringMapOutput { return v.Metadata }).(pulumi.StringMapOutput) } // The name which should be used for this Logic App Integration Account Assembly Artifact. Changing this forces a new resource to be created. func (o IntegrationAccountAssemblyOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *IntegrationAccountAssembly) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // The name of the Resource Group where the Logic App Integration Account Assembly Artifact should exist. Changing this forces a new resource to be created. func (o IntegrationAccountAssemblyOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v *IntegrationAccountAssembly) pulumi.StringOutput { return v.ResourceGroupName }).(pulumi.StringOutput) } type IntegrationAccountAssemblyArrayOutput struct{ *pulumi.OutputState } func (IntegrationAccountAssemblyArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*IntegrationAccountAssembly)(nil)).Elem() } func (o IntegrationAccountAssemblyArrayOutput) ToIntegrationAccountAssemblyArrayOutput() IntegrationAccountAssemblyArrayOutput { return o } func (o IntegrationAccountAssemblyArrayOutput) ToIntegrationAccountAssemblyArrayOutputWithContext(ctx context.Context) IntegrationAccountAssemblyArrayOutput { return o } func (o IntegrationAccountAssemblyArrayOutput) Index(i pulumi.IntInput) IntegrationAccountAssemblyOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *IntegrationAccountAssembly { return vs[0].([]*IntegrationAccountAssembly)[vs[1].(int)] }).(IntegrationAccountAssemblyOutput) } type IntegrationAccountAssemblyMapOutput struct{ *pulumi.OutputState } func (IntegrationAccountAssemblyMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*IntegrationAccountAssembly)(nil)).Elem() } func (o IntegrationAccountAssemblyMapOutput) ToIntegrationAccountAssemblyMapOutput() IntegrationAccountAssemblyMapOutput { return o } func (o IntegrationAccountAssemblyMapOutput) ToIntegrationAccountAssemblyMapOutputWithContext(ctx context.Context) IntegrationAccountAssemblyMapOutput { return o } func (o IntegrationAccountAssemblyMapOutput) MapIndex(k pulumi.StringInput) IntegrationAccountAssemblyOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *IntegrationAccountAssembly { return vs[0].(map[string]*IntegrationAccountAssembly)[vs[1].(string)] }).(IntegrationAccountAssemblyOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*IntegrationAccountAssemblyInput)(nil)).Elem(), &IntegrationAccountAssembly{}) pulumi.RegisterInputType(reflect.TypeOf((*IntegrationAccountAssemblyArrayInput)(nil)).Elem(), IntegrationAccountAssemblyArray{}) pulumi.RegisterInputType(reflect.TypeOf((*IntegrationAccountAssemblyMapInput)(nil)).Elem(), IntegrationAccountAssemblyMap{}) pulumi.RegisterOutputType(IntegrationAccountAssemblyOutput{}) pulumi.RegisterOutputType(IntegrationAccountAssemblyArrayOutput{}) pulumi.RegisterOutputType(IntegrationAccountAssemblyMapOutput{}) }
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/logicapps/integrationAccountSession.go
sdk/go/azure/logicapps/integrationAccountSession.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 logicapps import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a Logic App Integration Account Session. // // ## 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/logicapps" // "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 // } // exampleIntegrationAccount, err := logicapps.NewIntegrationAccount(ctx, "example", &logicapps.IntegrationAccountArgs{ // Name: pulumi.String("example-ia"), // Location: example.Location, // ResourceGroupName: example.Name, // SkuName: pulumi.String("Basic"), // }) // if err != nil { // return err // } // _, err = logicapps.NewIntegrationAccountSession(ctx, "example", &logicapps.IntegrationAccountSessionArgs{ // Name: pulumi.String("example-ias"), // ResourceGroupName: example.Name, // IntegrationAccountName: exampleIntegrationAccount.Name, // Content: pulumi.String(" {\n \\\"controlNumber\\\": \\\"1234\\\"\n }\n"), // }) // 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.Logic` - 2019-05-01 // // ## Import // // Logic App Integration Account Sessions can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:logicapps/integrationAccountSession:IntegrationAccountSession example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Logic/integrationAccounts/account1/sessions/session1 // ``` type IntegrationAccountSession struct { pulumi.CustomResourceState // The content of the Logic App Integration Account Session. Content pulumi.StringOutput `pulumi:"content"` // The name of the Logic App Integration Account. Changing this forces a new Logic App Integration Account Session to be created. IntegrationAccountName pulumi.StringOutput `pulumi:"integrationAccountName"` // The name which should be used for this Logic App Integration Account Session. Changing this forces a new Logic App Integration Account Session to be created. Name pulumi.StringOutput `pulumi:"name"` // The name of the Resource Group where the Logic App Integration Account Session should exist. Changing this forces a new Logic App Integration Account Session to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` } // NewIntegrationAccountSession registers a new resource with the given unique name, arguments, and options. func NewIntegrationAccountSession(ctx *pulumi.Context, name string, args *IntegrationAccountSessionArgs, opts ...pulumi.ResourceOption) (*IntegrationAccountSession, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.Content == nil { return nil, errors.New("invalid value for required argument 'Content'") } if args.IntegrationAccountName == nil { return nil, errors.New("invalid value for required argument 'IntegrationAccountName'") } if args.ResourceGroupName == nil { return nil, errors.New("invalid value for required argument 'ResourceGroupName'") } opts = internal.PkgResourceDefaultOpts(opts) var resource IntegrationAccountSession err := ctx.RegisterResource("azure:logicapps/integrationAccountSession:IntegrationAccountSession", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetIntegrationAccountSession gets an existing IntegrationAccountSession 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 GetIntegrationAccountSession(ctx *pulumi.Context, name string, id pulumi.IDInput, state *IntegrationAccountSessionState, opts ...pulumi.ResourceOption) (*IntegrationAccountSession, error) { var resource IntegrationAccountSession err := ctx.ReadResource("azure:logicapps/integrationAccountSession:IntegrationAccountSession", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering IntegrationAccountSession resources. type integrationAccountSessionState struct { // The content of the Logic App Integration Account Session. Content *string `pulumi:"content"` // The name of the Logic App Integration Account. Changing this forces a new Logic App Integration Account Session to be created. IntegrationAccountName *string `pulumi:"integrationAccountName"` // The name which should be used for this Logic App Integration Account Session. Changing this forces a new Logic App Integration Account Session to be created. Name *string `pulumi:"name"` // The name of the Resource Group where the Logic App Integration Account Session should exist. Changing this forces a new Logic App Integration Account Session to be created. ResourceGroupName *string `pulumi:"resourceGroupName"` } type IntegrationAccountSessionState struct { // The content of the Logic App Integration Account Session. Content pulumi.StringPtrInput // The name of the Logic App Integration Account. Changing this forces a new Logic App Integration Account Session to be created. IntegrationAccountName pulumi.StringPtrInput // The name which should be used for this Logic App Integration Account Session. Changing this forces a new Logic App Integration Account Session to be created. Name pulumi.StringPtrInput // The name of the Resource Group where the Logic App Integration Account Session should exist. Changing this forces a new Logic App Integration Account Session to be created. ResourceGroupName pulumi.StringPtrInput } func (IntegrationAccountSessionState) ElementType() reflect.Type { return reflect.TypeOf((*integrationAccountSessionState)(nil)).Elem() } type integrationAccountSessionArgs struct { // The content of the Logic App Integration Account Session. Content string `pulumi:"content"` // The name of the Logic App Integration Account. Changing this forces a new Logic App Integration Account Session to be created. IntegrationAccountName string `pulumi:"integrationAccountName"` // The name which should be used for this Logic App Integration Account Session. Changing this forces a new Logic App Integration Account Session to be created. Name *string `pulumi:"name"` // The name of the Resource Group where the Logic App Integration Account Session should exist. Changing this forces a new Logic App Integration Account Session to be created. ResourceGroupName string `pulumi:"resourceGroupName"` } // The set of arguments for constructing a IntegrationAccountSession resource. type IntegrationAccountSessionArgs struct { // The content of the Logic App Integration Account Session. Content pulumi.StringInput // The name of the Logic App Integration Account. Changing this forces a new Logic App Integration Account Session to be created. IntegrationAccountName pulumi.StringInput // The name which should be used for this Logic App Integration Account Session. Changing this forces a new Logic App Integration Account Session to be created. Name pulumi.StringPtrInput // The name of the Resource Group where the Logic App Integration Account Session should exist. Changing this forces a new Logic App Integration Account Session to be created. ResourceGroupName pulumi.StringInput } func (IntegrationAccountSessionArgs) ElementType() reflect.Type { return reflect.TypeOf((*integrationAccountSessionArgs)(nil)).Elem() } type IntegrationAccountSessionInput interface { pulumi.Input ToIntegrationAccountSessionOutput() IntegrationAccountSessionOutput ToIntegrationAccountSessionOutputWithContext(ctx context.Context) IntegrationAccountSessionOutput } func (*IntegrationAccountSession) ElementType() reflect.Type { return reflect.TypeOf((**IntegrationAccountSession)(nil)).Elem() } func (i *IntegrationAccountSession) ToIntegrationAccountSessionOutput() IntegrationAccountSessionOutput { return i.ToIntegrationAccountSessionOutputWithContext(context.Background()) } func (i *IntegrationAccountSession) ToIntegrationAccountSessionOutputWithContext(ctx context.Context) IntegrationAccountSessionOutput { return pulumi.ToOutputWithContext(ctx, i).(IntegrationAccountSessionOutput) } // IntegrationAccountSessionArrayInput is an input type that accepts IntegrationAccountSessionArray and IntegrationAccountSessionArrayOutput values. // You can construct a concrete instance of `IntegrationAccountSessionArrayInput` via: // // IntegrationAccountSessionArray{ IntegrationAccountSessionArgs{...} } type IntegrationAccountSessionArrayInput interface { pulumi.Input ToIntegrationAccountSessionArrayOutput() IntegrationAccountSessionArrayOutput ToIntegrationAccountSessionArrayOutputWithContext(context.Context) IntegrationAccountSessionArrayOutput } type IntegrationAccountSessionArray []IntegrationAccountSessionInput func (IntegrationAccountSessionArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*IntegrationAccountSession)(nil)).Elem() } func (i IntegrationAccountSessionArray) ToIntegrationAccountSessionArrayOutput() IntegrationAccountSessionArrayOutput { return i.ToIntegrationAccountSessionArrayOutputWithContext(context.Background()) } func (i IntegrationAccountSessionArray) ToIntegrationAccountSessionArrayOutputWithContext(ctx context.Context) IntegrationAccountSessionArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(IntegrationAccountSessionArrayOutput) } // IntegrationAccountSessionMapInput is an input type that accepts IntegrationAccountSessionMap and IntegrationAccountSessionMapOutput values. // You can construct a concrete instance of `IntegrationAccountSessionMapInput` via: // // IntegrationAccountSessionMap{ "key": IntegrationAccountSessionArgs{...} } type IntegrationAccountSessionMapInput interface { pulumi.Input ToIntegrationAccountSessionMapOutput() IntegrationAccountSessionMapOutput ToIntegrationAccountSessionMapOutputWithContext(context.Context) IntegrationAccountSessionMapOutput } type IntegrationAccountSessionMap map[string]IntegrationAccountSessionInput func (IntegrationAccountSessionMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*IntegrationAccountSession)(nil)).Elem() } func (i IntegrationAccountSessionMap) ToIntegrationAccountSessionMapOutput() IntegrationAccountSessionMapOutput { return i.ToIntegrationAccountSessionMapOutputWithContext(context.Background()) } func (i IntegrationAccountSessionMap) ToIntegrationAccountSessionMapOutputWithContext(ctx context.Context) IntegrationAccountSessionMapOutput { return pulumi.ToOutputWithContext(ctx, i).(IntegrationAccountSessionMapOutput) } type IntegrationAccountSessionOutput struct{ *pulumi.OutputState } func (IntegrationAccountSessionOutput) ElementType() reflect.Type { return reflect.TypeOf((**IntegrationAccountSession)(nil)).Elem() } func (o IntegrationAccountSessionOutput) ToIntegrationAccountSessionOutput() IntegrationAccountSessionOutput { return o } func (o IntegrationAccountSessionOutput) ToIntegrationAccountSessionOutputWithContext(ctx context.Context) IntegrationAccountSessionOutput { return o } // The content of the Logic App Integration Account Session. func (o IntegrationAccountSessionOutput) Content() pulumi.StringOutput { return o.ApplyT(func(v *IntegrationAccountSession) pulumi.StringOutput { return v.Content }).(pulumi.StringOutput) } // The name of the Logic App Integration Account. Changing this forces a new Logic App Integration Account Session to be created. func (o IntegrationAccountSessionOutput) IntegrationAccountName() pulumi.StringOutput { return o.ApplyT(func(v *IntegrationAccountSession) pulumi.StringOutput { return v.IntegrationAccountName }).(pulumi.StringOutput) } // The name which should be used for this Logic App Integration Account Session. Changing this forces a new Logic App Integration Account Session to be created. func (o IntegrationAccountSessionOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *IntegrationAccountSession) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // The name of the Resource Group where the Logic App Integration Account Session should exist. Changing this forces a new Logic App Integration Account Session to be created. func (o IntegrationAccountSessionOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v *IntegrationAccountSession) pulumi.StringOutput { return v.ResourceGroupName }).(pulumi.StringOutput) } type IntegrationAccountSessionArrayOutput struct{ *pulumi.OutputState } func (IntegrationAccountSessionArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*IntegrationAccountSession)(nil)).Elem() } func (o IntegrationAccountSessionArrayOutput) ToIntegrationAccountSessionArrayOutput() IntegrationAccountSessionArrayOutput { return o } func (o IntegrationAccountSessionArrayOutput) ToIntegrationAccountSessionArrayOutputWithContext(ctx context.Context) IntegrationAccountSessionArrayOutput { return o } func (o IntegrationAccountSessionArrayOutput) Index(i pulumi.IntInput) IntegrationAccountSessionOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *IntegrationAccountSession { return vs[0].([]*IntegrationAccountSession)[vs[1].(int)] }).(IntegrationAccountSessionOutput) } type IntegrationAccountSessionMapOutput struct{ *pulumi.OutputState } func (IntegrationAccountSessionMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*IntegrationAccountSession)(nil)).Elem() } func (o IntegrationAccountSessionMapOutput) ToIntegrationAccountSessionMapOutput() IntegrationAccountSessionMapOutput { return o } func (o IntegrationAccountSessionMapOutput) ToIntegrationAccountSessionMapOutputWithContext(ctx context.Context) IntegrationAccountSessionMapOutput { return o } func (o IntegrationAccountSessionMapOutput) MapIndex(k pulumi.StringInput) IntegrationAccountSessionOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *IntegrationAccountSession { return vs[0].(map[string]*IntegrationAccountSession)[vs[1].(string)] }).(IntegrationAccountSessionOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*IntegrationAccountSessionInput)(nil)).Elem(), &IntegrationAccountSession{}) pulumi.RegisterInputType(reflect.TypeOf((*IntegrationAccountSessionArrayInput)(nil)).Elem(), IntegrationAccountSessionArray{}) pulumi.RegisterInputType(reflect.TypeOf((*IntegrationAccountSessionMapInput)(nil)).Elem(), IntegrationAccountSessionMap{}) pulumi.RegisterOutputType(IntegrationAccountSessionOutput{}) pulumi.RegisterOutputType(IntegrationAccountSessionArrayOutput{}) pulumi.RegisterOutputType(IntegrationAccountSessionMapOutput{}) }
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/logicapps/workflow.go
sdk/go/azure/logicapps/workflow.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 logicapps import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a Logic App Workflow. // // ## 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/logicapps" // "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("workflow-resources"), // Location: pulumi.String("West Europe"), // }) // if err != nil { // return err // } // _, err = logicapps.NewWorkflow(ctx, "example", &logicapps.WorkflowArgs{ // Name: pulumi.String("workflow1"), // Location: example.Location, // 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.Logic` - 2019-05-01 // // ## Import // // Logic App Workflows can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:logicapps/workflow:Workflow workflow1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Logic/workflows/workflow1 // ``` type Workflow struct { pulumi.CustomResourceState // A `accessControl` block as defined below. AccessControl WorkflowAccessControlPtrOutput `pulumi:"accessControl"` // The Access Endpoint for the Logic App Workflow. AccessEndpoint pulumi.StringOutput `pulumi:"accessEndpoint"` // The list of access endpoint IP addresses of connector. ConnectorEndpointIpAddresses pulumi.StringArrayOutput `pulumi:"connectorEndpointIpAddresses"` // The list of outgoing IP addresses of connector. ConnectorOutboundIpAddresses pulumi.StringArrayOutput `pulumi:"connectorOutboundIpAddresses"` // Is the Logic App Workflow enabled? Defaults to `true`. Enabled pulumi.BoolPtrOutput `pulumi:"enabled"` // An `identity` block as defined below. Identity WorkflowIdentityPtrOutput `pulumi:"identity"` // The ID of the Integration Service Environment to which this Logic App Workflow belongs. Changing this forces a new Logic App Workflow to be created. IntegrationServiceEnvironmentId pulumi.StringPtrOutput `pulumi:"integrationServiceEnvironmentId"` // Specifies the supported Azure location where the Logic App Workflow exists. Changing this forces a new resource to be created. Location pulumi.StringOutput `pulumi:"location"` // The ID of the integration account linked by this Logic App Workflow. LogicAppIntegrationAccountId pulumi.StringPtrOutput `pulumi:"logicAppIntegrationAccountId"` // Specifies the name of the Logic App Workflow. Changing this forces a new resource to be created. Name pulumi.StringOutput `pulumi:"name"` // A map of Key-Value pairs. // // > **Note:** Any parameters specified must exist in the Schema defined in `workflowParameters`. Parameters pulumi.StringMapOutput `pulumi:"parameters"` // The name of the Resource Group in which the Logic App Workflow should be created. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // A mapping of tags to assign to the resource. Tags pulumi.StringMapOutput `pulumi:"tags"` // The list of access endpoint IP addresses of workflow. WorkflowEndpointIpAddresses pulumi.StringArrayOutput `pulumi:"workflowEndpointIpAddresses"` // The list of outgoing IP addresses of workflow. WorkflowOutboundIpAddresses pulumi.StringArrayOutput `pulumi:"workflowOutboundIpAddresses"` // Specifies a map of Key-Value pairs of the Parameter Definitions to use for this Logic App Workflow. The key is the parameter name, and the value is a JSON encoded string of the parameter definition (see: <https://docs.microsoft.com/azure/logic-apps/logic-apps-workflow-definition-language#parameters>). WorkflowParameters pulumi.StringMapOutput `pulumi:"workflowParameters"` // Specifies the Schema to use for this Logic App Workflow. Defaults to `https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#`. Changing this forces a new resource to be created. WorkflowSchema pulumi.StringPtrOutput `pulumi:"workflowSchema"` // Specifies the version of the Schema used for this Logic App Workflow. Defaults to `1.0.0.0`. Changing this forces a new resource to be created. WorkflowVersion pulumi.StringPtrOutput `pulumi:"workflowVersion"` } // NewWorkflow registers a new resource with the given unique name, arguments, and options. func NewWorkflow(ctx *pulumi.Context, name string, args *WorkflowArgs, opts ...pulumi.ResourceOption) (*Workflow, 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 Workflow err := ctx.RegisterResource("azure:logicapps/workflow:Workflow", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetWorkflow gets an existing Workflow 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 GetWorkflow(ctx *pulumi.Context, name string, id pulumi.IDInput, state *WorkflowState, opts ...pulumi.ResourceOption) (*Workflow, error) { var resource Workflow err := ctx.ReadResource("azure:logicapps/workflow:Workflow", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering Workflow resources. type workflowState struct { // A `accessControl` block as defined below. AccessControl *WorkflowAccessControl `pulumi:"accessControl"` // The Access Endpoint for the Logic App Workflow. AccessEndpoint *string `pulumi:"accessEndpoint"` // The list of access endpoint IP addresses of connector. ConnectorEndpointIpAddresses []string `pulumi:"connectorEndpointIpAddresses"` // The list of outgoing IP addresses of connector. ConnectorOutboundIpAddresses []string `pulumi:"connectorOutboundIpAddresses"` // Is the Logic App Workflow enabled? Defaults to `true`. Enabled *bool `pulumi:"enabled"` // An `identity` block as defined below. Identity *WorkflowIdentity `pulumi:"identity"` // The ID of the Integration Service Environment to which this Logic App Workflow belongs. Changing this forces a new Logic App Workflow to be created. IntegrationServiceEnvironmentId *string `pulumi:"integrationServiceEnvironmentId"` // Specifies the supported Azure location where the Logic App Workflow exists. Changing this forces a new resource to be created. Location *string `pulumi:"location"` // The ID of the integration account linked by this Logic App Workflow. LogicAppIntegrationAccountId *string `pulumi:"logicAppIntegrationAccountId"` // Specifies the name of the Logic App Workflow. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // A map of Key-Value pairs. // // > **Note:** Any parameters specified must exist in the Schema defined in `workflowParameters`. Parameters map[string]string `pulumi:"parameters"` // The name of the Resource Group in which the Logic App Workflow should be created. Changing this forces a new resource to be created. ResourceGroupName *string `pulumi:"resourceGroupName"` // A mapping of tags to assign to the resource. Tags map[string]string `pulumi:"tags"` // The list of access endpoint IP addresses of workflow. WorkflowEndpointIpAddresses []string `pulumi:"workflowEndpointIpAddresses"` // The list of outgoing IP addresses of workflow. WorkflowOutboundIpAddresses []string `pulumi:"workflowOutboundIpAddresses"` // Specifies a map of Key-Value pairs of the Parameter Definitions to use for this Logic App Workflow. The key is the parameter name, and the value is a JSON encoded string of the parameter definition (see: <https://docs.microsoft.com/azure/logic-apps/logic-apps-workflow-definition-language#parameters>). WorkflowParameters map[string]string `pulumi:"workflowParameters"` // Specifies the Schema to use for this Logic App Workflow. Defaults to `https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#`. Changing this forces a new resource to be created. WorkflowSchema *string `pulumi:"workflowSchema"` // Specifies the version of the Schema used for this Logic App Workflow. Defaults to `1.0.0.0`. Changing this forces a new resource to be created. WorkflowVersion *string `pulumi:"workflowVersion"` } type WorkflowState struct { // A `accessControl` block as defined below. AccessControl WorkflowAccessControlPtrInput // The Access Endpoint for the Logic App Workflow. AccessEndpoint pulumi.StringPtrInput // The list of access endpoint IP addresses of connector. ConnectorEndpointIpAddresses pulumi.StringArrayInput // The list of outgoing IP addresses of connector. ConnectorOutboundIpAddresses pulumi.StringArrayInput // Is the Logic App Workflow enabled? Defaults to `true`. Enabled pulumi.BoolPtrInput // An `identity` block as defined below. Identity WorkflowIdentityPtrInput // The ID of the Integration Service Environment to which this Logic App Workflow belongs. Changing this forces a new Logic App Workflow to be created. IntegrationServiceEnvironmentId pulumi.StringPtrInput // Specifies the supported Azure location where the Logic App Workflow exists. Changing this forces a new resource to be created. Location pulumi.StringPtrInput // The ID of the integration account linked by this Logic App Workflow. LogicAppIntegrationAccountId pulumi.StringPtrInput // Specifies the name of the Logic App Workflow. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // A map of Key-Value pairs. // // > **Note:** Any parameters specified must exist in the Schema defined in `workflowParameters`. Parameters pulumi.StringMapInput // The name of the Resource Group in which the Logic App Workflow should be created. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringPtrInput // A mapping of tags to assign to the resource. Tags pulumi.StringMapInput // The list of access endpoint IP addresses of workflow. WorkflowEndpointIpAddresses pulumi.StringArrayInput // The list of outgoing IP addresses of workflow. WorkflowOutboundIpAddresses pulumi.StringArrayInput // Specifies a map of Key-Value pairs of the Parameter Definitions to use for this Logic App Workflow. The key is the parameter name, and the value is a JSON encoded string of the parameter definition (see: <https://docs.microsoft.com/azure/logic-apps/logic-apps-workflow-definition-language#parameters>). WorkflowParameters pulumi.StringMapInput // Specifies the Schema to use for this Logic App Workflow. Defaults to `https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#`. Changing this forces a new resource to be created. WorkflowSchema pulumi.StringPtrInput // Specifies the version of the Schema used for this Logic App Workflow. Defaults to `1.0.0.0`. Changing this forces a new resource to be created. WorkflowVersion pulumi.StringPtrInput } func (WorkflowState) ElementType() reflect.Type { return reflect.TypeOf((*workflowState)(nil)).Elem() } type workflowArgs struct { // A `accessControl` block as defined below. AccessControl *WorkflowAccessControl `pulumi:"accessControl"` // Is the Logic App Workflow enabled? Defaults to `true`. Enabled *bool `pulumi:"enabled"` // An `identity` block as defined below. Identity *WorkflowIdentity `pulumi:"identity"` // The ID of the Integration Service Environment to which this Logic App Workflow belongs. Changing this forces a new Logic App Workflow to be created. IntegrationServiceEnvironmentId *string `pulumi:"integrationServiceEnvironmentId"` // Specifies the supported Azure location where the Logic App Workflow exists. Changing this forces a new resource to be created. Location *string `pulumi:"location"` // The ID of the integration account linked by this Logic App Workflow. LogicAppIntegrationAccountId *string `pulumi:"logicAppIntegrationAccountId"` // Specifies the name of the Logic App Workflow. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // A map of Key-Value pairs. // // > **Note:** Any parameters specified must exist in the Schema defined in `workflowParameters`. Parameters map[string]string `pulumi:"parameters"` // The name of the Resource Group in which the Logic App Workflow should be created. Changing this forces a new resource to be created. ResourceGroupName string `pulumi:"resourceGroupName"` // A mapping of tags to assign to the resource. Tags map[string]string `pulumi:"tags"` // Specifies a map of Key-Value pairs of the Parameter Definitions to use for this Logic App Workflow. The key is the parameter name, and the value is a JSON encoded string of the parameter definition (see: <https://docs.microsoft.com/azure/logic-apps/logic-apps-workflow-definition-language#parameters>). WorkflowParameters map[string]string `pulumi:"workflowParameters"` // Specifies the Schema to use for this Logic App Workflow. Defaults to `https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#`. Changing this forces a new resource to be created. WorkflowSchema *string `pulumi:"workflowSchema"` // Specifies the version of the Schema used for this Logic App Workflow. Defaults to `1.0.0.0`. Changing this forces a new resource to be created. WorkflowVersion *string `pulumi:"workflowVersion"` } // The set of arguments for constructing a Workflow resource. type WorkflowArgs struct { // A `accessControl` block as defined below. AccessControl WorkflowAccessControlPtrInput // Is the Logic App Workflow enabled? Defaults to `true`. Enabled pulumi.BoolPtrInput // An `identity` block as defined below. Identity WorkflowIdentityPtrInput // The ID of the Integration Service Environment to which this Logic App Workflow belongs. Changing this forces a new Logic App Workflow to be created. IntegrationServiceEnvironmentId pulumi.StringPtrInput // Specifies the supported Azure location where the Logic App Workflow exists. Changing this forces a new resource to be created. Location pulumi.StringPtrInput // The ID of the integration account linked by this Logic App Workflow. LogicAppIntegrationAccountId pulumi.StringPtrInput // Specifies the name of the Logic App Workflow. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // A map of Key-Value pairs. // // > **Note:** Any parameters specified must exist in the Schema defined in `workflowParameters`. Parameters pulumi.StringMapInput // The name of the Resource Group in which the Logic App Workflow should be created. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringInput // A mapping of tags to assign to the resource. Tags pulumi.StringMapInput // Specifies a map of Key-Value pairs of the Parameter Definitions to use for this Logic App Workflow. The key is the parameter name, and the value is a JSON encoded string of the parameter definition (see: <https://docs.microsoft.com/azure/logic-apps/logic-apps-workflow-definition-language#parameters>). WorkflowParameters pulumi.StringMapInput // Specifies the Schema to use for this Logic App Workflow. Defaults to `https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#`. Changing this forces a new resource to be created. WorkflowSchema pulumi.StringPtrInput // Specifies the version of the Schema used for this Logic App Workflow. Defaults to `1.0.0.0`. Changing this forces a new resource to be created. WorkflowVersion pulumi.StringPtrInput } func (WorkflowArgs) ElementType() reflect.Type { return reflect.TypeOf((*workflowArgs)(nil)).Elem() } type WorkflowInput interface { pulumi.Input ToWorkflowOutput() WorkflowOutput ToWorkflowOutputWithContext(ctx context.Context) WorkflowOutput } func (*Workflow) ElementType() reflect.Type { return reflect.TypeOf((**Workflow)(nil)).Elem() } func (i *Workflow) ToWorkflowOutput() WorkflowOutput { return i.ToWorkflowOutputWithContext(context.Background()) } func (i *Workflow) ToWorkflowOutputWithContext(ctx context.Context) WorkflowOutput { return pulumi.ToOutputWithContext(ctx, i).(WorkflowOutput) } // WorkflowArrayInput is an input type that accepts WorkflowArray and WorkflowArrayOutput values. // You can construct a concrete instance of `WorkflowArrayInput` via: // // WorkflowArray{ WorkflowArgs{...} } type WorkflowArrayInput interface { pulumi.Input ToWorkflowArrayOutput() WorkflowArrayOutput ToWorkflowArrayOutputWithContext(context.Context) WorkflowArrayOutput } type WorkflowArray []WorkflowInput func (WorkflowArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*Workflow)(nil)).Elem() } func (i WorkflowArray) ToWorkflowArrayOutput() WorkflowArrayOutput { return i.ToWorkflowArrayOutputWithContext(context.Background()) } func (i WorkflowArray) ToWorkflowArrayOutputWithContext(ctx context.Context) WorkflowArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(WorkflowArrayOutput) } // WorkflowMapInput is an input type that accepts WorkflowMap and WorkflowMapOutput values. // You can construct a concrete instance of `WorkflowMapInput` via: // // WorkflowMap{ "key": WorkflowArgs{...} } type WorkflowMapInput interface { pulumi.Input ToWorkflowMapOutput() WorkflowMapOutput ToWorkflowMapOutputWithContext(context.Context) WorkflowMapOutput } type WorkflowMap map[string]WorkflowInput func (WorkflowMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*Workflow)(nil)).Elem() } func (i WorkflowMap) ToWorkflowMapOutput() WorkflowMapOutput { return i.ToWorkflowMapOutputWithContext(context.Background()) } func (i WorkflowMap) ToWorkflowMapOutputWithContext(ctx context.Context) WorkflowMapOutput { return pulumi.ToOutputWithContext(ctx, i).(WorkflowMapOutput) } type WorkflowOutput struct{ *pulumi.OutputState } func (WorkflowOutput) ElementType() reflect.Type { return reflect.TypeOf((**Workflow)(nil)).Elem() } func (o WorkflowOutput) ToWorkflowOutput() WorkflowOutput { return o } func (o WorkflowOutput) ToWorkflowOutputWithContext(ctx context.Context) WorkflowOutput { return o } // A `accessControl` block as defined below. func (o WorkflowOutput) AccessControl() WorkflowAccessControlPtrOutput { return o.ApplyT(func(v *Workflow) WorkflowAccessControlPtrOutput { return v.AccessControl }).(WorkflowAccessControlPtrOutput) } // The Access Endpoint for the Logic App Workflow. func (o WorkflowOutput) AccessEndpoint() pulumi.StringOutput { return o.ApplyT(func(v *Workflow) pulumi.StringOutput { return v.AccessEndpoint }).(pulumi.StringOutput) } // The list of access endpoint IP addresses of connector. func (o WorkflowOutput) ConnectorEndpointIpAddresses() pulumi.StringArrayOutput { return o.ApplyT(func(v *Workflow) pulumi.StringArrayOutput { return v.ConnectorEndpointIpAddresses }).(pulumi.StringArrayOutput) } // The list of outgoing IP addresses of connector. func (o WorkflowOutput) ConnectorOutboundIpAddresses() pulumi.StringArrayOutput { return o.ApplyT(func(v *Workflow) pulumi.StringArrayOutput { return v.ConnectorOutboundIpAddresses }).(pulumi.StringArrayOutput) } // Is the Logic App Workflow enabled? Defaults to `true`. func (o WorkflowOutput) Enabled() pulumi.BoolPtrOutput { return o.ApplyT(func(v *Workflow) pulumi.BoolPtrOutput { return v.Enabled }).(pulumi.BoolPtrOutput) } // An `identity` block as defined below. func (o WorkflowOutput) Identity() WorkflowIdentityPtrOutput { return o.ApplyT(func(v *Workflow) WorkflowIdentityPtrOutput { return v.Identity }).(WorkflowIdentityPtrOutput) } // The ID of the Integration Service Environment to which this Logic App Workflow belongs. Changing this forces a new Logic App Workflow to be created. func (o WorkflowOutput) IntegrationServiceEnvironmentId() pulumi.StringPtrOutput { return o.ApplyT(func(v *Workflow) pulumi.StringPtrOutput { return v.IntegrationServiceEnvironmentId }).(pulumi.StringPtrOutput) } // Specifies the supported Azure location where the Logic App Workflow exists. Changing this forces a new resource to be created. func (o WorkflowOutput) Location() pulumi.StringOutput { return o.ApplyT(func(v *Workflow) pulumi.StringOutput { return v.Location }).(pulumi.StringOutput) } // The ID of the integration account linked by this Logic App Workflow. func (o WorkflowOutput) LogicAppIntegrationAccountId() pulumi.StringPtrOutput { return o.ApplyT(func(v *Workflow) pulumi.StringPtrOutput { return v.LogicAppIntegrationAccountId }).(pulumi.StringPtrOutput) } // Specifies the name of the Logic App Workflow. Changing this forces a new resource to be created. func (o WorkflowOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *Workflow) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // A map of Key-Value pairs. // // > **Note:** Any parameters specified must exist in the Schema defined in `workflowParameters`. func (o WorkflowOutput) Parameters() pulumi.StringMapOutput { return o.ApplyT(func(v *Workflow) pulumi.StringMapOutput { return v.Parameters }).(pulumi.StringMapOutput) } // The name of the Resource Group in which the Logic App Workflow should be created. Changing this forces a new resource to be created. func (o WorkflowOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v *Workflow) pulumi.StringOutput { return v.ResourceGroupName }).(pulumi.StringOutput) } // A mapping of tags to assign to the resource. func (o WorkflowOutput) Tags() pulumi.StringMapOutput { return o.ApplyT(func(v *Workflow) pulumi.StringMapOutput { return v.Tags }).(pulumi.StringMapOutput) } // The list of access endpoint IP addresses of workflow. func (o WorkflowOutput) WorkflowEndpointIpAddresses() pulumi.StringArrayOutput { return o.ApplyT(func(v *Workflow) pulumi.StringArrayOutput { return v.WorkflowEndpointIpAddresses }).(pulumi.StringArrayOutput) } // The list of outgoing IP addresses of workflow. func (o WorkflowOutput) WorkflowOutboundIpAddresses() pulumi.StringArrayOutput { return o.ApplyT(func(v *Workflow) pulumi.StringArrayOutput { return v.WorkflowOutboundIpAddresses }).(pulumi.StringArrayOutput) } // Specifies a map of Key-Value pairs of the Parameter Definitions to use for this Logic App Workflow. The key is the parameter name, and the value is a JSON encoded string of the parameter definition (see: <https://docs.microsoft.com/azure/logic-apps/logic-apps-workflow-definition-language#parameters>). func (o WorkflowOutput) WorkflowParameters() pulumi.StringMapOutput { return o.ApplyT(func(v *Workflow) pulumi.StringMapOutput { return v.WorkflowParameters }).(pulumi.StringMapOutput) } // Specifies the Schema to use for this Logic App Workflow. Defaults to `https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#`. Changing this forces a new resource to be created. func (o WorkflowOutput) WorkflowSchema() pulumi.StringPtrOutput { return o.ApplyT(func(v *Workflow) pulumi.StringPtrOutput { return v.WorkflowSchema }).(pulumi.StringPtrOutput) } // Specifies the version of the Schema used for this Logic App Workflow. Defaults to `1.0.0.0`. Changing this forces a new resource to be created. func (o WorkflowOutput) WorkflowVersion() pulumi.StringPtrOutput { return o.ApplyT(func(v *Workflow) pulumi.StringPtrOutput { return v.WorkflowVersion }).(pulumi.StringPtrOutput) } type WorkflowArrayOutput struct{ *pulumi.OutputState } func (WorkflowArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*Workflow)(nil)).Elem() } func (o WorkflowArrayOutput) ToWorkflowArrayOutput() WorkflowArrayOutput { return o } func (o WorkflowArrayOutput) ToWorkflowArrayOutputWithContext(ctx context.Context) WorkflowArrayOutput { return o } func (o WorkflowArrayOutput) Index(i pulumi.IntInput) WorkflowOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *Workflow { return vs[0].([]*Workflow)[vs[1].(int)] }).(WorkflowOutput) } type WorkflowMapOutput struct{ *pulumi.OutputState } func (WorkflowMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*Workflow)(nil)).Elem() } func (o WorkflowMapOutput) ToWorkflowMapOutput() WorkflowMapOutput { return o } func (o WorkflowMapOutput) ToWorkflowMapOutputWithContext(ctx context.Context) WorkflowMapOutput { return o } func (o WorkflowMapOutput) MapIndex(k pulumi.StringInput) WorkflowOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *Workflow { return vs[0].(map[string]*Workflow)[vs[1].(string)] }).(WorkflowOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*WorkflowInput)(nil)).Elem(), &Workflow{}) pulumi.RegisterInputType(reflect.TypeOf((*WorkflowArrayInput)(nil)).Elem(), WorkflowArray{}) pulumi.RegisterInputType(reflect.TypeOf((*WorkflowMapInput)(nil)).Elem(), WorkflowMap{}) pulumi.RegisterOutputType(WorkflowOutput{}) pulumi.RegisterOutputType(WorkflowArrayOutput{}) pulumi.RegisterOutputType(WorkflowMapOutput{}) }
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/logicapps/actionCustom.go
sdk/go/azure/logicapps/actionCustom.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 logicapps import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a Custom Action within a Logic App Workflow // // ## 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/logicapps" // "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("workflow-resources"), // Location: pulumi.String("West Europe"), // }) // if err != nil { // return err // } // exampleWorkflow, err := logicapps.NewWorkflow(ctx, "example", &logicapps.WorkflowArgs{ // Name: pulumi.String("workflow1"), // Location: example.Location, // ResourceGroupName: example.Name, // }) // if err != nil { // return err // } // _, err = logicapps.NewActionCustom(ctx, "example", &logicapps.ActionCustomArgs{ // Name: pulumi.String("example-action"), // LogicAppId: exampleWorkflow.ID(), // Body: pulumi.String(`{ // \"description\": \"A variable to configure the auto expiration age in days. Configured in negative number. Default is -30 (30 days old).\", // \"inputs\": { // \"variables\": [ // { // \"name\": \"ExpirationAgeInDays\", // \"type\": \"Integer\", // \"value\": -30 // } // ] // }, // \"runAfter\": {}, // \"type\": \"InitializeVariable\" // } // // `), // // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## Import // // Logic App Custom Actions can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:logicapps/actionCustom:ActionCustom custom1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Logic/workflows/workflow1/actions/custom1 // ``` type ActionCustom struct { pulumi.CustomResourceState // Specifies the JSON Blob defining the Body of this Custom Action. Body pulumi.StringOutput `pulumi:"body"` // Specifies the ID of the Logic App Workflow. Changing this forces a new resource to be created. LogicAppId pulumi.StringOutput `pulumi:"logicAppId"` // Specifies the name of the HTTP Action to be created within the Logic App Workflow. Changing this forces a new resource to be created. // // > **NOTE:** This name must be unique across all Actions within the Logic App Workflow. Name pulumi.StringOutput `pulumi:"name"` } // NewActionCustom registers a new resource with the given unique name, arguments, and options. func NewActionCustom(ctx *pulumi.Context, name string, args *ActionCustomArgs, opts ...pulumi.ResourceOption) (*ActionCustom, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.Body == nil { return nil, errors.New("invalid value for required argument 'Body'") } if args.LogicAppId == nil { return nil, errors.New("invalid value for required argument 'LogicAppId'") } opts = internal.PkgResourceDefaultOpts(opts) var resource ActionCustom err := ctx.RegisterResource("azure:logicapps/actionCustom:ActionCustom", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetActionCustom gets an existing ActionCustom 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 GetActionCustom(ctx *pulumi.Context, name string, id pulumi.IDInput, state *ActionCustomState, opts ...pulumi.ResourceOption) (*ActionCustom, error) { var resource ActionCustom err := ctx.ReadResource("azure:logicapps/actionCustom:ActionCustom", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering ActionCustom resources. type actionCustomState struct { // Specifies the JSON Blob defining the Body of this Custom Action. Body *string `pulumi:"body"` // Specifies the ID of the Logic App Workflow. Changing this forces a new resource to be created. LogicAppId *string `pulumi:"logicAppId"` // Specifies the name of the HTTP Action to be created within the Logic App Workflow. Changing this forces a new resource to be created. // // > **NOTE:** This name must be unique across all Actions within the Logic App Workflow. Name *string `pulumi:"name"` } type ActionCustomState struct { // Specifies the JSON Blob defining the Body of this Custom Action. Body pulumi.StringPtrInput // Specifies the ID of the Logic App Workflow. Changing this forces a new resource to be created. LogicAppId pulumi.StringPtrInput // Specifies the name of the HTTP Action to be created within the Logic App Workflow. Changing this forces a new resource to be created. // // > **NOTE:** This name must be unique across all Actions within the Logic App Workflow. Name pulumi.StringPtrInput } func (ActionCustomState) ElementType() reflect.Type { return reflect.TypeOf((*actionCustomState)(nil)).Elem() } type actionCustomArgs struct { // Specifies the JSON Blob defining the Body of this Custom Action. Body string `pulumi:"body"` // Specifies the ID of the Logic App Workflow. Changing this forces a new resource to be created. LogicAppId string `pulumi:"logicAppId"` // Specifies the name of the HTTP Action to be created within the Logic App Workflow. Changing this forces a new resource to be created. // // > **NOTE:** This name must be unique across all Actions within the Logic App Workflow. Name *string `pulumi:"name"` } // The set of arguments for constructing a ActionCustom resource. type ActionCustomArgs struct { // Specifies the JSON Blob defining the Body of this Custom Action. Body pulumi.StringInput // Specifies the ID of the Logic App Workflow. Changing this forces a new resource to be created. LogicAppId pulumi.StringInput // Specifies the name of the HTTP Action to be created within the Logic App Workflow. Changing this forces a new resource to be created. // // > **NOTE:** This name must be unique across all Actions within the Logic App Workflow. Name pulumi.StringPtrInput } func (ActionCustomArgs) ElementType() reflect.Type { return reflect.TypeOf((*actionCustomArgs)(nil)).Elem() } type ActionCustomInput interface { pulumi.Input ToActionCustomOutput() ActionCustomOutput ToActionCustomOutputWithContext(ctx context.Context) ActionCustomOutput } func (*ActionCustom) ElementType() reflect.Type { return reflect.TypeOf((**ActionCustom)(nil)).Elem() } func (i *ActionCustom) ToActionCustomOutput() ActionCustomOutput { return i.ToActionCustomOutputWithContext(context.Background()) } func (i *ActionCustom) ToActionCustomOutputWithContext(ctx context.Context) ActionCustomOutput { return pulumi.ToOutputWithContext(ctx, i).(ActionCustomOutput) } // ActionCustomArrayInput is an input type that accepts ActionCustomArray and ActionCustomArrayOutput values. // You can construct a concrete instance of `ActionCustomArrayInput` via: // // ActionCustomArray{ ActionCustomArgs{...} } type ActionCustomArrayInput interface { pulumi.Input ToActionCustomArrayOutput() ActionCustomArrayOutput ToActionCustomArrayOutputWithContext(context.Context) ActionCustomArrayOutput } type ActionCustomArray []ActionCustomInput func (ActionCustomArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*ActionCustom)(nil)).Elem() } func (i ActionCustomArray) ToActionCustomArrayOutput() ActionCustomArrayOutput { return i.ToActionCustomArrayOutputWithContext(context.Background()) } func (i ActionCustomArray) ToActionCustomArrayOutputWithContext(ctx context.Context) ActionCustomArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(ActionCustomArrayOutput) } // ActionCustomMapInput is an input type that accepts ActionCustomMap and ActionCustomMapOutput values. // You can construct a concrete instance of `ActionCustomMapInput` via: // // ActionCustomMap{ "key": ActionCustomArgs{...} } type ActionCustomMapInput interface { pulumi.Input ToActionCustomMapOutput() ActionCustomMapOutput ToActionCustomMapOutputWithContext(context.Context) ActionCustomMapOutput } type ActionCustomMap map[string]ActionCustomInput func (ActionCustomMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*ActionCustom)(nil)).Elem() } func (i ActionCustomMap) ToActionCustomMapOutput() ActionCustomMapOutput { return i.ToActionCustomMapOutputWithContext(context.Background()) } func (i ActionCustomMap) ToActionCustomMapOutputWithContext(ctx context.Context) ActionCustomMapOutput { return pulumi.ToOutputWithContext(ctx, i).(ActionCustomMapOutput) } type ActionCustomOutput struct{ *pulumi.OutputState } func (ActionCustomOutput) ElementType() reflect.Type { return reflect.TypeOf((**ActionCustom)(nil)).Elem() } func (o ActionCustomOutput) ToActionCustomOutput() ActionCustomOutput { return o } func (o ActionCustomOutput) ToActionCustomOutputWithContext(ctx context.Context) ActionCustomOutput { return o } // Specifies the JSON Blob defining the Body of this Custom Action. func (o ActionCustomOutput) Body() pulumi.StringOutput { return o.ApplyT(func(v *ActionCustom) pulumi.StringOutput { return v.Body }).(pulumi.StringOutput) } // Specifies the ID of the Logic App Workflow. Changing this forces a new resource to be created. func (o ActionCustomOutput) LogicAppId() pulumi.StringOutput { return o.ApplyT(func(v *ActionCustom) pulumi.StringOutput { return v.LogicAppId }).(pulumi.StringOutput) } // Specifies the name of the HTTP Action to be created within the Logic App Workflow. Changing this forces a new resource to be created. // // > **NOTE:** This name must be unique across all Actions within the Logic App Workflow. func (o ActionCustomOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *ActionCustom) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } type ActionCustomArrayOutput struct{ *pulumi.OutputState } func (ActionCustomArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*ActionCustom)(nil)).Elem() } func (o ActionCustomArrayOutput) ToActionCustomArrayOutput() ActionCustomArrayOutput { return o } func (o ActionCustomArrayOutput) ToActionCustomArrayOutputWithContext(ctx context.Context) ActionCustomArrayOutput { return o } func (o ActionCustomArrayOutput) Index(i pulumi.IntInput) ActionCustomOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *ActionCustom { return vs[0].([]*ActionCustom)[vs[1].(int)] }).(ActionCustomOutput) } type ActionCustomMapOutput struct{ *pulumi.OutputState } func (ActionCustomMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*ActionCustom)(nil)).Elem() } func (o ActionCustomMapOutput) ToActionCustomMapOutput() ActionCustomMapOutput { return o } func (o ActionCustomMapOutput) ToActionCustomMapOutputWithContext(ctx context.Context) ActionCustomMapOutput { return o } func (o ActionCustomMapOutput) MapIndex(k pulumi.StringInput) ActionCustomOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *ActionCustom { return vs[0].(map[string]*ActionCustom)[vs[1].(string)] }).(ActionCustomOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*ActionCustomInput)(nil)).Elem(), &ActionCustom{}) pulumi.RegisterInputType(reflect.TypeOf((*ActionCustomArrayInput)(nil)).Elem(), ActionCustomArray{}) pulumi.RegisterInputType(reflect.TypeOf((*ActionCustomMapInput)(nil)).Elem(), ActionCustomMap{}) pulumi.RegisterOutputType(ActionCustomOutput{}) pulumi.RegisterOutputType(ActionCustomArrayOutput{}) pulumi.RegisterOutputType(ActionCustomMapOutput{}) }
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/logicapps/integrationAccountPartner.go
sdk/go/azure/logicapps/integrationAccountPartner.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 logicapps import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a Logic App Integration Account Partner. // // ## 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/logicapps" // "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 // } // exampleIntegrationAccount, err := logicapps.NewIntegrationAccount(ctx, "example", &logicapps.IntegrationAccountArgs{ // Name: pulumi.String("example-ia"), // Location: example.Location, // ResourceGroupName: example.Name, // SkuName: pulumi.String("Standard"), // }) // if err != nil { // return err // } // _, err = logicapps.NewIntegrationAccountPartner(ctx, "example", &logicapps.IntegrationAccountPartnerArgs{ // Name: pulumi.String("example-iap"), // ResourceGroupName: example.Name, // IntegrationAccountName: exampleIntegrationAccount.Name, // BusinessIdentities: logicapps.IntegrationAccountPartnerBusinessIdentityArray{ // &logicapps.IntegrationAccountPartnerBusinessIdentityArgs{ // Qualifier: pulumi.String("ZZ"), // Value: pulumi.String("AA"), // }, // }, // }) // 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.Logic` - 2019-05-01 // // ## Import // // Logic App Integration Account Partners can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:logicapps/integrationAccountPartner:IntegrationAccountPartner example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Logic/integrationAccounts/account1/partners/partner1 // ``` type IntegrationAccountPartner struct { pulumi.CustomResourceState // A `businessIdentity` block as documented below. BusinessIdentities IntegrationAccountPartnerBusinessIdentityArrayOutput `pulumi:"businessIdentities"` // The name of the Logic App Integration Account. Changing this forces a new Logic App Integration Account Partner to be created. IntegrationAccountName pulumi.StringOutput `pulumi:"integrationAccountName"` // A JSON mapping of any Metadata for this Logic App Integration Account Partner. Metadata pulumi.StringPtrOutput `pulumi:"metadata"` // The name which should be used for this Logic App Integration Account Partner. Changing this forces a new Logic App Integration Account Partner to be created. Name pulumi.StringOutput `pulumi:"name"` // The name of the Resource Group where the Logic App Integration Account Partner should exist. Changing this forces a new Logic App Integration Account Partner to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` } // NewIntegrationAccountPartner registers a new resource with the given unique name, arguments, and options. func NewIntegrationAccountPartner(ctx *pulumi.Context, name string, args *IntegrationAccountPartnerArgs, opts ...pulumi.ResourceOption) (*IntegrationAccountPartner, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.BusinessIdentities == nil { return nil, errors.New("invalid value for required argument 'BusinessIdentities'") } if args.IntegrationAccountName == nil { return nil, errors.New("invalid value for required argument 'IntegrationAccountName'") } if args.ResourceGroupName == nil { return nil, errors.New("invalid value for required argument 'ResourceGroupName'") } opts = internal.PkgResourceDefaultOpts(opts) var resource IntegrationAccountPartner err := ctx.RegisterResource("azure:logicapps/integrationAccountPartner:IntegrationAccountPartner", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetIntegrationAccountPartner gets an existing IntegrationAccountPartner 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 GetIntegrationAccountPartner(ctx *pulumi.Context, name string, id pulumi.IDInput, state *IntegrationAccountPartnerState, opts ...pulumi.ResourceOption) (*IntegrationAccountPartner, error) { var resource IntegrationAccountPartner err := ctx.ReadResource("azure:logicapps/integrationAccountPartner:IntegrationAccountPartner", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering IntegrationAccountPartner resources. type integrationAccountPartnerState struct { // A `businessIdentity` block as documented below. BusinessIdentities []IntegrationAccountPartnerBusinessIdentity `pulumi:"businessIdentities"` // The name of the Logic App Integration Account. Changing this forces a new Logic App Integration Account Partner to be created. IntegrationAccountName *string `pulumi:"integrationAccountName"` // A JSON mapping of any Metadata for this Logic App Integration Account Partner. Metadata *string `pulumi:"metadata"` // The name which should be used for this Logic App Integration Account Partner. Changing this forces a new Logic App Integration Account Partner to be created. Name *string `pulumi:"name"` // The name of the Resource Group where the Logic App Integration Account Partner should exist. Changing this forces a new Logic App Integration Account Partner to be created. ResourceGroupName *string `pulumi:"resourceGroupName"` } type IntegrationAccountPartnerState struct { // A `businessIdentity` block as documented below. BusinessIdentities IntegrationAccountPartnerBusinessIdentityArrayInput // The name of the Logic App Integration Account. Changing this forces a new Logic App Integration Account Partner to be created. IntegrationAccountName pulumi.StringPtrInput // A JSON mapping of any Metadata for this Logic App Integration Account Partner. Metadata pulumi.StringPtrInput // The name which should be used for this Logic App Integration Account Partner. Changing this forces a new Logic App Integration Account Partner to be created. Name pulumi.StringPtrInput // The name of the Resource Group where the Logic App Integration Account Partner should exist. Changing this forces a new Logic App Integration Account Partner to be created. ResourceGroupName pulumi.StringPtrInput } func (IntegrationAccountPartnerState) ElementType() reflect.Type { return reflect.TypeOf((*integrationAccountPartnerState)(nil)).Elem() } type integrationAccountPartnerArgs struct { // A `businessIdentity` block as documented below. BusinessIdentities []IntegrationAccountPartnerBusinessIdentity `pulumi:"businessIdentities"` // The name of the Logic App Integration Account. Changing this forces a new Logic App Integration Account Partner to be created. IntegrationAccountName string `pulumi:"integrationAccountName"` // A JSON mapping of any Metadata for this Logic App Integration Account Partner. Metadata *string `pulumi:"metadata"` // The name which should be used for this Logic App Integration Account Partner. Changing this forces a new Logic App Integration Account Partner to be created. Name *string `pulumi:"name"` // The name of the Resource Group where the Logic App Integration Account Partner should exist. Changing this forces a new Logic App Integration Account Partner to be created. ResourceGroupName string `pulumi:"resourceGroupName"` } // The set of arguments for constructing a IntegrationAccountPartner resource. type IntegrationAccountPartnerArgs struct { // A `businessIdentity` block as documented below. BusinessIdentities IntegrationAccountPartnerBusinessIdentityArrayInput // The name of the Logic App Integration Account. Changing this forces a new Logic App Integration Account Partner to be created. IntegrationAccountName pulumi.StringInput // A JSON mapping of any Metadata for this Logic App Integration Account Partner. Metadata pulumi.StringPtrInput // The name which should be used for this Logic App Integration Account Partner. Changing this forces a new Logic App Integration Account Partner to be created. Name pulumi.StringPtrInput // The name of the Resource Group where the Logic App Integration Account Partner should exist. Changing this forces a new Logic App Integration Account Partner to be created. ResourceGroupName pulumi.StringInput } func (IntegrationAccountPartnerArgs) ElementType() reflect.Type { return reflect.TypeOf((*integrationAccountPartnerArgs)(nil)).Elem() } type IntegrationAccountPartnerInput interface { pulumi.Input ToIntegrationAccountPartnerOutput() IntegrationAccountPartnerOutput ToIntegrationAccountPartnerOutputWithContext(ctx context.Context) IntegrationAccountPartnerOutput } func (*IntegrationAccountPartner) ElementType() reflect.Type { return reflect.TypeOf((**IntegrationAccountPartner)(nil)).Elem() } func (i *IntegrationAccountPartner) ToIntegrationAccountPartnerOutput() IntegrationAccountPartnerOutput { return i.ToIntegrationAccountPartnerOutputWithContext(context.Background()) } func (i *IntegrationAccountPartner) ToIntegrationAccountPartnerOutputWithContext(ctx context.Context) IntegrationAccountPartnerOutput { return pulumi.ToOutputWithContext(ctx, i).(IntegrationAccountPartnerOutput) } // IntegrationAccountPartnerArrayInput is an input type that accepts IntegrationAccountPartnerArray and IntegrationAccountPartnerArrayOutput values. // You can construct a concrete instance of `IntegrationAccountPartnerArrayInput` via: // // IntegrationAccountPartnerArray{ IntegrationAccountPartnerArgs{...} } type IntegrationAccountPartnerArrayInput interface { pulumi.Input ToIntegrationAccountPartnerArrayOutput() IntegrationAccountPartnerArrayOutput ToIntegrationAccountPartnerArrayOutputWithContext(context.Context) IntegrationAccountPartnerArrayOutput } type IntegrationAccountPartnerArray []IntegrationAccountPartnerInput func (IntegrationAccountPartnerArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*IntegrationAccountPartner)(nil)).Elem() } func (i IntegrationAccountPartnerArray) ToIntegrationAccountPartnerArrayOutput() IntegrationAccountPartnerArrayOutput { return i.ToIntegrationAccountPartnerArrayOutputWithContext(context.Background()) } func (i IntegrationAccountPartnerArray) ToIntegrationAccountPartnerArrayOutputWithContext(ctx context.Context) IntegrationAccountPartnerArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(IntegrationAccountPartnerArrayOutput) } // IntegrationAccountPartnerMapInput is an input type that accepts IntegrationAccountPartnerMap and IntegrationAccountPartnerMapOutput values. // You can construct a concrete instance of `IntegrationAccountPartnerMapInput` via: // // IntegrationAccountPartnerMap{ "key": IntegrationAccountPartnerArgs{...} } type IntegrationAccountPartnerMapInput interface { pulumi.Input ToIntegrationAccountPartnerMapOutput() IntegrationAccountPartnerMapOutput ToIntegrationAccountPartnerMapOutputWithContext(context.Context) IntegrationAccountPartnerMapOutput } type IntegrationAccountPartnerMap map[string]IntegrationAccountPartnerInput func (IntegrationAccountPartnerMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*IntegrationAccountPartner)(nil)).Elem() } func (i IntegrationAccountPartnerMap) ToIntegrationAccountPartnerMapOutput() IntegrationAccountPartnerMapOutput { return i.ToIntegrationAccountPartnerMapOutputWithContext(context.Background()) } func (i IntegrationAccountPartnerMap) ToIntegrationAccountPartnerMapOutputWithContext(ctx context.Context) IntegrationAccountPartnerMapOutput { return pulumi.ToOutputWithContext(ctx, i).(IntegrationAccountPartnerMapOutput) } type IntegrationAccountPartnerOutput struct{ *pulumi.OutputState } func (IntegrationAccountPartnerOutput) ElementType() reflect.Type { return reflect.TypeOf((**IntegrationAccountPartner)(nil)).Elem() } func (o IntegrationAccountPartnerOutput) ToIntegrationAccountPartnerOutput() IntegrationAccountPartnerOutput { return o } func (o IntegrationAccountPartnerOutput) ToIntegrationAccountPartnerOutputWithContext(ctx context.Context) IntegrationAccountPartnerOutput { return o } // A `businessIdentity` block as documented below. func (o IntegrationAccountPartnerOutput) BusinessIdentities() IntegrationAccountPartnerBusinessIdentityArrayOutput { return o.ApplyT(func(v *IntegrationAccountPartner) IntegrationAccountPartnerBusinessIdentityArrayOutput { return v.BusinessIdentities }).(IntegrationAccountPartnerBusinessIdentityArrayOutput) } // The name of the Logic App Integration Account. Changing this forces a new Logic App Integration Account Partner to be created. func (o IntegrationAccountPartnerOutput) IntegrationAccountName() pulumi.StringOutput { return o.ApplyT(func(v *IntegrationAccountPartner) pulumi.StringOutput { return v.IntegrationAccountName }).(pulumi.StringOutput) } // A JSON mapping of any Metadata for this Logic App Integration Account Partner. func (o IntegrationAccountPartnerOutput) Metadata() pulumi.StringPtrOutput { return o.ApplyT(func(v *IntegrationAccountPartner) pulumi.StringPtrOutput { return v.Metadata }).(pulumi.StringPtrOutput) } // The name which should be used for this Logic App Integration Account Partner. Changing this forces a new Logic App Integration Account Partner to be created. func (o IntegrationAccountPartnerOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *IntegrationAccountPartner) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // The name of the Resource Group where the Logic App Integration Account Partner should exist. Changing this forces a new Logic App Integration Account Partner to be created. func (o IntegrationAccountPartnerOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v *IntegrationAccountPartner) pulumi.StringOutput { return v.ResourceGroupName }).(pulumi.StringOutput) } type IntegrationAccountPartnerArrayOutput struct{ *pulumi.OutputState } func (IntegrationAccountPartnerArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*IntegrationAccountPartner)(nil)).Elem() } func (o IntegrationAccountPartnerArrayOutput) ToIntegrationAccountPartnerArrayOutput() IntegrationAccountPartnerArrayOutput { return o } func (o IntegrationAccountPartnerArrayOutput) ToIntegrationAccountPartnerArrayOutputWithContext(ctx context.Context) IntegrationAccountPartnerArrayOutput { return o } func (o IntegrationAccountPartnerArrayOutput) Index(i pulumi.IntInput) IntegrationAccountPartnerOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *IntegrationAccountPartner { return vs[0].([]*IntegrationAccountPartner)[vs[1].(int)] }).(IntegrationAccountPartnerOutput) } type IntegrationAccountPartnerMapOutput struct{ *pulumi.OutputState } func (IntegrationAccountPartnerMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*IntegrationAccountPartner)(nil)).Elem() } func (o IntegrationAccountPartnerMapOutput) ToIntegrationAccountPartnerMapOutput() IntegrationAccountPartnerMapOutput { return o } func (o IntegrationAccountPartnerMapOutput) ToIntegrationAccountPartnerMapOutputWithContext(ctx context.Context) IntegrationAccountPartnerMapOutput { return o } func (o IntegrationAccountPartnerMapOutput) MapIndex(k pulumi.StringInput) IntegrationAccountPartnerOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *IntegrationAccountPartner { return vs[0].(map[string]*IntegrationAccountPartner)[vs[1].(string)] }).(IntegrationAccountPartnerOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*IntegrationAccountPartnerInput)(nil)).Elem(), &IntegrationAccountPartner{}) pulumi.RegisterInputType(reflect.TypeOf((*IntegrationAccountPartnerArrayInput)(nil)).Elem(), IntegrationAccountPartnerArray{}) pulumi.RegisterInputType(reflect.TypeOf((*IntegrationAccountPartnerMapInput)(nil)).Elem(), IntegrationAccountPartnerMap{}) pulumi.RegisterOutputType(IntegrationAccountPartnerOutput{}) pulumi.RegisterOutputType(IntegrationAccountPartnerArrayOutput{}) pulumi.RegisterOutputType(IntegrationAccountPartnerMapOutput{}) }
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/logicapps/triggerCustom.go
sdk/go/azure/logicapps/triggerCustom.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 logicapps import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a Custom Trigger within a Logic App Workflow // // ## 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/logicapps" // "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("workflow-resources"), // Location: pulumi.String("West Europe"), // }) // if err != nil { // return err // } // exampleWorkflow, err := logicapps.NewWorkflow(ctx, "example", &logicapps.WorkflowArgs{ // Name: pulumi.String("workflow1"), // Location: example.Location, // ResourceGroupName: example.Name, // }) // if err != nil { // return err // } // _, err = logicapps.NewTriggerCustom(ctx, "example", &logicapps.TriggerCustomArgs{ // Name: pulumi.String("example-trigger"), // LogicAppId: exampleWorkflow.ID(), // Body: pulumi.String(`{ // \"recurrence\": { // \"frequency\": \"Day\", // \"interval\": 1 // }, // \"type\": \"Recurrence\" // } // // `), // // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## Import // // Logic App Custom Triggers can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:logicapps/triggerCustom:TriggerCustom custom1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Logic/workflows/workflow1/triggers/custom1 // ``` type TriggerCustom struct { pulumi.CustomResourceState // Specifies the JSON Blob defining the Body of this Custom Trigger. Body pulumi.StringOutput `pulumi:"body"` // The URL of the Trigger within the Logic App Workflow. For use with certain resources like monitorActionGroup and security_center_automation. CallbackUrl pulumi.StringOutput `pulumi:"callbackUrl"` // Specifies the ID of the Logic App Workflow. Changing this forces a new resource to be created. LogicAppId pulumi.StringOutput `pulumi:"logicAppId"` // Specifies the name of the HTTP Trigger to be created within the Logic App Workflow. Changing this forces a new resource to be created. // // > **NOTE:** This name must be unique across all Triggers within the Logic App Workflow. Name pulumi.StringOutput `pulumi:"name"` } // NewTriggerCustom registers a new resource with the given unique name, arguments, and options. func NewTriggerCustom(ctx *pulumi.Context, name string, args *TriggerCustomArgs, opts ...pulumi.ResourceOption) (*TriggerCustom, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.Body == nil { return nil, errors.New("invalid value for required argument 'Body'") } if args.LogicAppId == nil { return nil, errors.New("invalid value for required argument 'LogicAppId'") } opts = internal.PkgResourceDefaultOpts(opts) var resource TriggerCustom err := ctx.RegisterResource("azure:logicapps/triggerCustom:TriggerCustom", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetTriggerCustom gets an existing TriggerCustom 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 GetTriggerCustom(ctx *pulumi.Context, name string, id pulumi.IDInput, state *TriggerCustomState, opts ...pulumi.ResourceOption) (*TriggerCustom, error) { var resource TriggerCustom err := ctx.ReadResource("azure:logicapps/triggerCustom:TriggerCustom", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering TriggerCustom resources. type triggerCustomState struct { // Specifies the JSON Blob defining the Body of this Custom Trigger. Body *string `pulumi:"body"` // The URL of the Trigger within the Logic App Workflow. For use with certain resources like monitorActionGroup and security_center_automation. CallbackUrl *string `pulumi:"callbackUrl"` // Specifies the ID of the Logic App Workflow. Changing this forces a new resource to be created. LogicAppId *string `pulumi:"logicAppId"` // Specifies the name of the HTTP Trigger to be created within the Logic App Workflow. Changing this forces a new resource to be created. // // > **NOTE:** This name must be unique across all Triggers within the Logic App Workflow. Name *string `pulumi:"name"` } type TriggerCustomState struct { // Specifies the JSON Blob defining the Body of this Custom Trigger. Body pulumi.StringPtrInput // The URL of the Trigger within the Logic App Workflow. For use with certain resources like monitorActionGroup and security_center_automation. CallbackUrl pulumi.StringPtrInput // Specifies the ID of the Logic App Workflow. Changing this forces a new resource to be created. LogicAppId pulumi.StringPtrInput // Specifies the name of the HTTP Trigger to be created within the Logic App Workflow. Changing this forces a new resource to be created. // // > **NOTE:** This name must be unique across all Triggers within the Logic App Workflow. Name pulumi.StringPtrInput } func (TriggerCustomState) ElementType() reflect.Type { return reflect.TypeOf((*triggerCustomState)(nil)).Elem() } type triggerCustomArgs struct { // Specifies the JSON Blob defining the Body of this Custom Trigger. Body string `pulumi:"body"` // Specifies the ID of the Logic App Workflow. Changing this forces a new resource to be created. LogicAppId string `pulumi:"logicAppId"` // Specifies the name of the HTTP Trigger to be created within the Logic App Workflow. Changing this forces a new resource to be created. // // > **NOTE:** This name must be unique across all Triggers within the Logic App Workflow. Name *string `pulumi:"name"` } // The set of arguments for constructing a TriggerCustom resource. type TriggerCustomArgs struct { // Specifies the JSON Blob defining the Body of this Custom Trigger. Body pulumi.StringInput // Specifies the ID of the Logic App Workflow. Changing this forces a new resource to be created. LogicAppId pulumi.StringInput // Specifies the name of the HTTP Trigger to be created within the Logic App Workflow. Changing this forces a new resource to be created. // // > **NOTE:** This name must be unique across all Triggers within the Logic App Workflow. Name pulumi.StringPtrInput } func (TriggerCustomArgs) ElementType() reflect.Type { return reflect.TypeOf((*triggerCustomArgs)(nil)).Elem() } type TriggerCustomInput interface { pulumi.Input ToTriggerCustomOutput() TriggerCustomOutput ToTriggerCustomOutputWithContext(ctx context.Context) TriggerCustomOutput } func (*TriggerCustom) ElementType() reflect.Type { return reflect.TypeOf((**TriggerCustom)(nil)).Elem() } func (i *TriggerCustom) ToTriggerCustomOutput() TriggerCustomOutput { return i.ToTriggerCustomOutputWithContext(context.Background()) } func (i *TriggerCustom) ToTriggerCustomOutputWithContext(ctx context.Context) TriggerCustomOutput { return pulumi.ToOutputWithContext(ctx, i).(TriggerCustomOutput) } // TriggerCustomArrayInput is an input type that accepts TriggerCustomArray and TriggerCustomArrayOutput values. // You can construct a concrete instance of `TriggerCustomArrayInput` via: // // TriggerCustomArray{ TriggerCustomArgs{...} } type TriggerCustomArrayInput interface { pulumi.Input ToTriggerCustomArrayOutput() TriggerCustomArrayOutput ToTriggerCustomArrayOutputWithContext(context.Context) TriggerCustomArrayOutput } type TriggerCustomArray []TriggerCustomInput func (TriggerCustomArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*TriggerCustom)(nil)).Elem() } func (i TriggerCustomArray) ToTriggerCustomArrayOutput() TriggerCustomArrayOutput { return i.ToTriggerCustomArrayOutputWithContext(context.Background()) } func (i TriggerCustomArray) ToTriggerCustomArrayOutputWithContext(ctx context.Context) TriggerCustomArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(TriggerCustomArrayOutput) } // TriggerCustomMapInput is an input type that accepts TriggerCustomMap and TriggerCustomMapOutput values. // You can construct a concrete instance of `TriggerCustomMapInput` via: // // TriggerCustomMap{ "key": TriggerCustomArgs{...} } type TriggerCustomMapInput interface { pulumi.Input ToTriggerCustomMapOutput() TriggerCustomMapOutput ToTriggerCustomMapOutputWithContext(context.Context) TriggerCustomMapOutput } type TriggerCustomMap map[string]TriggerCustomInput func (TriggerCustomMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*TriggerCustom)(nil)).Elem() } func (i TriggerCustomMap) ToTriggerCustomMapOutput() TriggerCustomMapOutput { return i.ToTriggerCustomMapOutputWithContext(context.Background()) } func (i TriggerCustomMap) ToTriggerCustomMapOutputWithContext(ctx context.Context) TriggerCustomMapOutput { return pulumi.ToOutputWithContext(ctx, i).(TriggerCustomMapOutput) } type TriggerCustomOutput struct{ *pulumi.OutputState } func (TriggerCustomOutput) ElementType() reflect.Type { return reflect.TypeOf((**TriggerCustom)(nil)).Elem() } func (o TriggerCustomOutput) ToTriggerCustomOutput() TriggerCustomOutput { return o } func (o TriggerCustomOutput) ToTriggerCustomOutputWithContext(ctx context.Context) TriggerCustomOutput { return o } // Specifies the JSON Blob defining the Body of this Custom Trigger. func (o TriggerCustomOutput) Body() pulumi.StringOutput { return o.ApplyT(func(v *TriggerCustom) pulumi.StringOutput { return v.Body }).(pulumi.StringOutput) } // The URL of the Trigger within the Logic App Workflow. For use with certain resources like monitorActionGroup and security_center_automation. func (o TriggerCustomOutput) CallbackUrl() pulumi.StringOutput { return o.ApplyT(func(v *TriggerCustom) pulumi.StringOutput { return v.CallbackUrl }).(pulumi.StringOutput) } // Specifies the ID of the Logic App Workflow. Changing this forces a new resource to be created. func (o TriggerCustomOutput) LogicAppId() pulumi.StringOutput { return o.ApplyT(func(v *TriggerCustom) pulumi.StringOutput { return v.LogicAppId }).(pulumi.StringOutput) } // Specifies the name of the HTTP Trigger to be created within the Logic App Workflow. Changing this forces a new resource to be created. // // > **NOTE:** This name must be unique across all Triggers within the Logic App Workflow. func (o TriggerCustomOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *TriggerCustom) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } type TriggerCustomArrayOutput struct{ *pulumi.OutputState } func (TriggerCustomArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*TriggerCustom)(nil)).Elem() } func (o TriggerCustomArrayOutput) ToTriggerCustomArrayOutput() TriggerCustomArrayOutput { return o } func (o TriggerCustomArrayOutput) ToTriggerCustomArrayOutputWithContext(ctx context.Context) TriggerCustomArrayOutput { return o } func (o TriggerCustomArrayOutput) Index(i pulumi.IntInput) TriggerCustomOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *TriggerCustom { return vs[0].([]*TriggerCustom)[vs[1].(int)] }).(TriggerCustomOutput) } type TriggerCustomMapOutput struct{ *pulumi.OutputState } func (TriggerCustomMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*TriggerCustom)(nil)).Elem() } func (o TriggerCustomMapOutput) ToTriggerCustomMapOutput() TriggerCustomMapOutput { return o } func (o TriggerCustomMapOutput) ToTriggerCustomMapOutputWithContext(ctx context.Context) TriggerCustomMapOutput { return o } func (o TriggerCustomMapOutput) MapIndex(k pulumi.StringInput) TriggerCustomOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *TriggerCustom { return vs[0].(map[string]*TriggerCustom)[vs[1].(string)] }).(TriggerCustomOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*TriggerCustomInput)(nil)).Elem(), &TriggerCustom{}) pulumi.RegisterInputType(reflect.TypeOf((*TriggerCustomArrayInput)(nil)).Elem(), TriggerCustomArray{}) pulumi.RegisterInputType(reflect.TypeOf((*TriggerCustomMapInput)(nil)).Elem(), TriggerCustomMap{}) pulumi.RegisterOutputType(TriggerCustomOutput{}) pulumi.RegisterOutputType(TriggerCustomArrayOutput{}) pulumi.RegisterOutputType(TriggerCustomMapOutput{}) }
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/logicapps/getWorkflow.go
sdk/go/azure/logicapps/getWorkflow.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 logicapps 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 Logic App Workflow. // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/logicapps" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { // example, err := logicapps.LookupWorkflow(ctx, &logicapps.LookupWorkflowArgs{ // Name: "workflow1", // ResourceGroupName: "my-resource-group", // }, nil) // if err != nil { // return err // } // ctx.Export("accessEndpoint", example.AccessEndpoint) // return nil // }) // } // // ``` // // ## API Providers // // <!-- This section is generated, changes will be overwritten --> // This data source uses the following Azure API Providers: // // * `Microsoft.Logic` - 2019-05-01 func LookupWorkflow(ctx *pulumi.Context, args *LookupWorkflowArgs, opts ...pulumi.InvokeOption) (*LookupWorkflowResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupWorkflowResult err := ctx.Invoke("azure:logicapps/getWorkflow:getWorkflow", args, &rv, opts...) if err != nil { return nil, err } return &rv, nil } // A collection of arguments for invoking getWorkflow. type LookupWorkflowArgs struct { // The name of the Logic App Workflow. Name string `pulumi:"name"` // The name of the Resource Group in which the Logic App Workflow exists. ResourceGroupName string `pulumi:"resourceGroupName"` } // A collection of values returned by getWorkflow. type LookupWorkflowResult struct { // The Access Endpoint for the Logic App Workflow AccessEndpoint string `pulumi:"accessEndpoint"` // The list of access endpoint IP addresses of connector. ConnectorEndpointIpAddresses []string `pulumi:"connectorEndpointIpAddresses"` // The list of outgoing IP addresses of connector. ConnectorOutboundIpAddresses []string `pulumi:"connectorOutboundIpAddresses"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` // An `identity` block as defined below. Identities []GetWorkflowIdentity `pulumi:"identities"` // The Azure location where the Logic App Workflow exists. Location string `pulumi:"location"` // The ID of the integration account linked by this Logic App Workflow. LogicAppIntegrationAccountId string `pulumi:"logicAppIntegrationAccountId"` Name string `pulumi:"name"` // A map of Key-Value pairs. Parameters map[string]string `pulumi:"parameters"` ResourceGroupName string `pulumi:"resourceGroupName"` // A mapping of tags assigned to the resource. Tags map[string]string `pulumi:"tags"` // The list of access endpoint IP addresses of workflow. WorkflowEndpointIpAddresses []string `pulumi:"workflowEndpointIpAddresses"` // The list of outgoing IP addresses of workflow. WorkflowOutboundIpAddresses []string `pulumi:"workflowOutboundIpAddresses"` // The Schema used for this Logic App Workflow. WorkflowSchema string `pulumi:"workflowSchema"` // The version of the Schema used for this Logic App Workflow. Defaults to `1.0.0.0`. WorkflowVersion string `pulumi:"workflowVersion"` } func LookupWorkflowOutput(ctx *pulumi.Context, args LookupWorkflowOutputArgs, opts ...pulumi.InvokeOption) LookupWorkflowResultOutput { return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupWorkflowResultOutput, error) { args := v.(LookupWorkflowArgs) options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} return ctx.InvokeOutput("azure:logicapps/getWorkflow:getWorkflow", args, LookupWorkflowResultOutput{}, options).(LookupWorkflowResultOutput), nil }).(LookupWorkflowResultOutput) } // A collection of arguments for invoking getWorkflow. type LookupWorkflowOutputArgs struct { // The name of the Logic App Workflow. Name pulumi.StringInput `pulumi:"name"` // The name of the Resource Group in which the Logic App Workflow exists. ResourceGroupName pulumi.StringInput `pulumi:"resourceGroupName"` } func (LookupWorkflowOutputArgs) ElementType() reflect.Type { return reflect.TypeOf((*LookupWorkflowArgs)(nil)).Elem() } // A collection of values returned by getWorkflow. type LookupWorkflowResultOutput struct{ *pulumi.OutputState } func (LookupWorkflowResultOutput) ElementType() reflect.Type { return reflect.TypeOf((*LookupWorkflowResult)(nil)).Elem() } func (o LookupWorkflowResultOutput) ToLookupWorkflowResultOutput() LookupWorkflowResultOutput { return o } func (o LookupWorkflowResultOutput) ToLookupWorkflowResultOutputWithContext(ctx context.Context) LookupWorkflowResultOutput { return o } // The Access Endpoint for the Logic App Workflow func (o LookupWorkflowResultOutput) AccessEndpoint() pulumi.StringOutput { return o.ApplyT(func(v LookupWorkflowResult) string { return v.AccessEndpoint }).(pulumi.StringOutput) } // The list of access endpoint IP addresses of connector. func (o LookupWorkflowResultOutput) ConnectorEndpointIpAddresses() pulumi.StringArrayOutput { return o.ApplyT(func(v LookupWorkflowResult) []string { return v.ConnectorEndpointIpAddresses }).(pulumi.StringArrayOutput) } // The list of outgoing IP addresses of connector. func (o LookupWorkflowResultOutput) ConnectorOutboundIpAddresses() pulumi.StringArrayOutput { return o.ApplyT(func(v LookupWorkflowResult) []string { return v.ConnectorOutboundIpAddresses }).(pulumi.StringArrayOutput) } // The provider-assigned unique ID for this managed resource. func (o LookupWorkflowResultOutput) Id() pulumi.StringOutput { return o.ApplyT(func(v LookupWorkflowResult) string { return v.Id }).(pulumi.StringOutput) } // An `identity` block as defined below. func (o LookupWorkflowResultOutput) Identities() GetWorkflowIdentityArrayOutput { return o.ApplyT(func(v LookupWorkflowResult) []GetWorkflowIdentity { return v.Identities }).(GetWorkflowIdentityArrayOutput) } // The Azure location where the Logic App Workflow exists. func (o LookupWorkflowResultOutput) Location() pulumi.StringOutput { return o.ApplyT(func(v LookupWorkflowResult) string { return v.Location }).(pulumi.StringOutput) } // The ID of the integration account linked by this Logic App Workflow. func (o LookupWorkflowResultOutput) LogicAppIntegrationAccountId() pulumi.StringOutput { return o.ApplyT(func(v LookupWorkflowResult) string { return v.LogicAppIntegrationAccountId }).(pulumi.StringOutput) } func (o LookupWorkflowResultOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v LookupWorkflowResult) string { return v.Name }).(pulumi.StringOutput) } // A map of Key-Value pairs. func (o LookupWorkflowResultOutput) Parameters() pulumi.StringMapOutput { return o.ApplyT(func(v LookupWorkflowResult) map[string]string { return v.Parameters }).(pulumi.StringMapOutput) } func (o LookupWorkflowResultOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v LookupWorkflowResult) string { return v.ResourceGroupName }).(pulumi.StringOutput) } // A mapping of tags assigned to the resource. func (o LookupWorkflowResultOutput) Tags() pulumi.StringMapOutput { return o.ApplyT(func(v LookupWorkflowResult) map[string]string { return v.Tags }).(pulumi.StringMapOutput) } // The list of access endpoint IP addresses of workflow. func (o LookupWorkflowResultOutput) WorkflowEndpointIpAddresses() pulumi.StringArrayOutput { return o.ApplyT(func(v LookupWorkflowResult) []string { return v.WorkflowEndpointIpAddresses }).(pulumi.StringArrayOutput) } // The list of outgoing IP addresses of workflow. func (o LookupWorkflowResultOutput) WorkflowOutboundIpAddresses() pulumi.StringArrayOutput { return o.ApplyT(func(v LookupWorkflowResult) []string { return v.WorkflowOutboundIpAddresses }).(pulumi.StringArrayOutput) } // The Schema used for this Logic App Workflow. func (o LookupWorkflowResultOutput) WorkflowSchema() pulumi.StringOutput { return o.ApplyT(func(v LookupWorkflowResult) string { return v.WorkflowSchema }).(pulumi.StringOutput) } // The version of the Schema used for this Logic App Workflow. Defaults to `1.0.0.0`. func (o LookupWorkflowResultOutput) WorkflowVersion() pulumi.StringOutput { return o.ApplyT(func(v LookupWorkflowResult) string { return v.WorkflowVersion }).(pulumi.StringOutput) } func init() { pulumi.RegisterOutputType(LookupWorkflowResultOutput{}) }
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/logicapps/integrationAccountBatchConfiguration.go
sdk/go/azure/logicapps/integrationAccountBatchConfiguration.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 logicapps import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a Logic App Integration Account Batch Configuration. // // ## 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/logicapps" // "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 // } // exampleIntegrationAccount, err := logicapps.NewIntegrationAccount(ctx, "example", &logicapps.IntegrationAccountArgs{ // Name: pulumi.String("example-ia"), // Location: example.Location, // ResourceGroupName: example.Name, // SkuName: pulumi.String("Standard"), // }) // if err != nil { // return err // } // _, err = logicapps.NewIntegrationAccountBatchConfiguration(ctx, "example", &logicapps.IntegrationAccountBatchConfigurationArgs{ // Name: pulumi.String("exampleiabc"), // ResourceGroupName: example.Name, // IntegrationAccountName: exampleIntegrationAccount.Name, // BatchGroupName: pulumi.String("TestBatchGroup"), // ReleaseCriteria: &logicapps.IntegrationAccountBatchConfigurationReleaseCriteriaArgs{ // MessageCount: pulumi.Int(80), // }, // }) // 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.Logic` - 2019-05-01 // // ## Import // // Logic App Integration Account Batch Configurations can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:logicapps/integrationAccountBatchConfiguration:IntegrationAccountBatchConfiguration example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Logic/integrationAccounts/account1/batchConfigurations/batchConfiguration1 // ``` type IntegrationAccountBatchConfiguration struct { pulumi.CustomResourceState // The batch group name of the Logic App Integration Batch Configuration. Changing this forces a new resource to be created. BatchGroupName pulumi.StringOutput `pulumi:"batchGroupName"` // The name of the Logic App Integration Account. Changing this forces a new resource to be created. IntegrationAccountName pulumi.StringOutput `pulumi:"integrationAccountName"` // A JSON mapping of any Metadata for this Logic App Integration Account Batch Configuration. Metadata pulumi.StringMapOutput `pulumi:"metadata"` // The name which should be used for this Logic App Integration Account Batch Configuration. Only Alphanumeric characters allowed. Changing this forces a new resource to be created. Name pulumi.StringOutput `pulumi:"name"` // A `releaseCriteria` block as documented below, which is used to select the criteria to meet before processing each batch. ReleaseCriteria IntegrationAccountBatchConfigurationReleaseCriteriaOutput `pulumi:"releaseCriteria"` // The name of the Resource Group where the Logic App Integration Account Batch Configuration should exist. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` } // NewIntegrationAccountBatchConfiguration registers a new resource with the given unique name, arguments, and options. func NewIntegrationAccountBatchConfiguration(ctx *pulumi.Context, name string, args *IntegrationAccountBatchConfigurationArgs, opts ...pulumi.ResourceOption) (*IntegrationAccountBatchConfiguration, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.BatchGroupName == nil { return nil, errors.New("invalid value for required argument 'BatchGroupName'") } if args.IntegrationAccountName == nil { return nil, errors.New("invalid value for required argument 'IntegrationAccountName'") } if args.ReleaseCriteria == nil { return nil, errors.New("invalid value for required argument 'ReleaseCriteria'") } if args.ResourceGroupName == nil { return nil, errors.New("invalid value for required argument 'ResourceGroupName'") } opts = internal.PkgResourceDefaultOpts(opts) var resource IntegrationAccountBatchConfiguration err := ctx.RegisterResource("azure:logicapps/integrationAccountBatchConfiguration:IntegrationAccountBatchConfiguration", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetIntegrationAccountBatchConfiguration gets an existing IntegrationAccountBatchConfiguration 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 GetIntegrationAccountBatchConfiguration(ctx *pulumi.Context, name string, id pulumi.IDInput, state *IntegrationAccountBatchConfigurationState, opts ...pulumi.ResourceOption) (*IntegrationAccountBatchConfiguration, error) { var resource IntegrationAccountBatchConfiguration err := ctx.ReadResource("azure:logicapps/integrationAccountBatchConfiguration:IntegrationAccountBatchConfiguration", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering IntegrationAccountBatchConfiguration resources. type integrationAccountBatchConfigurationState struct { // The batch group name of the Logic App Integration Batch Configuration. Changing this forces a new resource to be created. BatchGroupName *string `pulumi:"batchGroupName"` // The name of the Logic App Integration Account. Changing this forces a new resource to be created. IntegrationAccountName *string `pulumi:"integrationAccountName"` // A JSON mapping of any Metadata for this Logic App Integration Account Batch Configuration. Metadata map[string]string `pulumi:"metadata"` // The name which should be used for this Logic App Integration Account Batch Configuration. Only Alphanumeric characters allowed. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // A `releaseCriteria` block as documented below, which is used to select the criteria to meet before processing each batch. ReleaseCriteria *IntegrationAccountBatchConfigurationReleaseCriteria `pulumi:"releaseCriteria"` // The name of the Resource Group where the Logic App Integration Account Batch Configuration should exist. Changing this forces a new resource to be created. ResourceGroupName *string `pulumi:"resourceGroupName"` } type IntegrationAccountBatchConfigurationState struct { // The batch group name of the Logic App Integration Batch Configuration. Changing this forces a new resource to be created. BatchGroupName pulumi.StringPtrInput // The name of the Logic App Integration Account. Changing this forces a new resource to be created. IntegrationAccountName pulumi.StringPtrInput // A JSON mapping of any Metadata for this Logic App Integration Account Batch Configuration. Metadata pulumi.StringMapInput // The name which should be used for this Logic App Integration Account Batch Configuration. Only Alphanumeric characters allowed. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // A `releaseCriteria` block as documented below, which is used to select the criteria to meet before processing each batch. ReleaseCriteria IntegrationAccountBatchConfigurationReleaseCriteriaPtrInput // The name of the Resource Group where the Logic App Integration Account Batch Configuration should exist. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringPtrInput } func (IntegrationAccountBatchConfigurationState) ElementType() reflect.Type { return reflect.TypeOf((*integrationAccountBatchConfigurationState)(nil)).Elem() } type integrationAccountBatchConfigurationArgs struct { // The batch group name of the Logic App Integration Batch Configuration. Changing this forces a new resource to be created. BatchGroupName string `pulumi:"batchGroupName"` // The name of the Logic App Integration Account. Changing this forces a new resource to be created. IntegrationAccountName string `pulumi:"integrationAccountName"` // A JSON mapping of any Metadata for this Logic App Integration Account Batch Configuration. Metadata map[string]string `pulumi:"metadata"` // The name which should be used for this Logic App Integration Account Batch Configuration. Only Alphanumeric characters allowed. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // A `releaseCriteria` block as documented below, which is used to select the criteria to meet before processing each batch. ReleaseCriteria IntegrationAccountBatchConfigurationReleaseCriteria `pulumi:"releaseCriteria"` // The name of the Resource Group where the Logic App Integration Account Batch Configuration should exist. Changing this forces a new resource to be created. ResourceGroupName string `pulumi:"resourceGroupName"` } // The set of arguments for constructing a IntegrationAccountBatchConfiguration resource. type IntegrationAccountBatchConfigurationArgs struct { // The batch group name of the Logic App Integration Batch Configuration. Changing this forces a new resource to be created. BatchGroupName pulumi.StringInput // The name of the Logic App Integration Account. Changing this forces a new resource to be created. IntegrationAccountName pulumi.StringInput // A JSON mapping of any Metadata for this Logic App Integration Account Batch Configuration. Metadata pulumi.StringMapInput // The name which should be used for this Logic App Integration Account Batch Configuration. Only Alphanumeric characters allowed. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // A `releaseCriteria` block as documented below, which is used to select the criteria to meet before processing each batch. ReleaseCriteria IntegrationAccountBatchConfigurationReleaseCriteriaInput // The name of the Resource Group where the Logic App Integration Account Batch Configuration should exist. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringInput } func (IntegrationAccountBatchConfigurationArgs) ElementType() reflect.Type { return reflect.TypeOf((*integrationAccountBatchConfigurationArgs)(nil)).Elem() } type IntegrationAccountBatchConfigurationInput interface { pulumi.Input ToIntegrationAccountBatchConfigurationOutput() IntegrationAccountBatchConfigurationOutput ToIntegrationAccountBatchConfigurationOutputWithContext(ctx context.Context) IntegrationAccountBatchConfigurationOutput } func (*IntegrationAccountBatchConfiguration) ElementType() reflect.Type { return reflect.TypeOf((**IntegrationAccountBatchConfiguration)(nil)).Elem() } func (i *IntegrationAccountBatchConfiguration) ToIntegrationAccountBatchConfigurationOutput() IntegrationAccountBatchConfigurationOutput { return i.ToIntegrationAccountBatchConfigurationOutputWithContext(context.Background()) } func (i *IntegrationAccountBatchConfiguration) ToIntegrationAccountBatchConfigurationOutputWithContext(ctx context.Context) IntegrationAccountBatchConfigurationOutput { return pulumi.ToOutputWithContext(ctx, i).(IntegrationAccountBatchConfigurationOutput) } // IntegrationAccountBatchConfigurationArrayInput is an input type that accepts IntegrationAccountBatchConfigurationArray and IntegrationAccountBatchConfigurationArrayOutput values. // You can construct a concrete instance of `IntegrationAccountBatchConfigurationArrayInput` via: // // IntegrationAccountBatchConfigurationArray{ IntegrationAccountBatchConfigurationArgs{...} } type IntegrationAccountBatchConfigurationArrayInput interface { pulumi.Input ToIntegrationAccountBatchConfigurationArrayOutput() IntegrationAccountBatchConfigurationArrayOutput ToIntegrationAccountBatchConfigurationArrayOutputWithContext(context.Context) IntegrationAccountBatchConfigurationArrayOutput } type IntegrationAccountBatchConfigurationArray []IntegrationAccountBatchConfigurationInput func (IntegrationAccountBatchConfigurationArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*IntegrationAccountBatchConfiguration)(nil)).Elem() } func (i IntegrationAccountBatchConfigurationArray) ToIntegrationAccountBatchConfigurationArrayOutput() IntegrationAccountBatchConfigurationArrayOutput { return i.ToIntegrationAccountBatchConfigurationArrayOutputWithContext(context.Background()) } func (i IntegrationAccountBatchConfigurationArray) ToIntegrationAccountBatchConfigurationArrayOutputWithContext(ctx context.Context) IntegrationAccountBatchConfigurationArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(IntegrationAccountBatchConfigurationArrayOutput) } // IntegrationAccountBatchConfigurationMapInput is an input type that accepts IntegrationAccountBatchConfigurationMap and IntegrationAccountBatchConfigurationMapOutput values. // You can construct a concrete instance of `IntegrationAccountBatchConfigurationMapInput` via: // // IntegrationAccountBatchConfigurationMap{ "key": IntegrationAccountBatchConfigurationArgs{...} } type IntegrationAccountBatchConfigurationMapInput interface { pulumi.Input ToIntegrationAccountBatchConfigurationMapOutput() IntegrationAccountBatchConfigurationMapOutput ToIntegrationAccountBatchConfigurationMapOutputWithContext(context.Context) IntegrationAccountBatchConfigurationMapOutput } type IntegrationAccountBatchConfigurationMap map[string]IntegrationAccountBatchConfigurationInput func (IntegrationAccountBatchConfigurationMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*IntegrationAccountBatchConfiguration)(nil)).Elem() } func (i IntegrationAccountBatchConfigurationMap) ToIntegrationAccountBatchConfigurationMapOutput() IntegrationAccountBatchConfigurationMapOutput { return i.ToIntegrationAccountBatchConfigurationMapOutputWithContext(context.Background()) } func (i IntegrationAccountBatchConfigurationMap) ToIntegrationAccountBatchConfigurationMapOutputWithContext(ctx context.Context) IntegrationAccountBatchConfigurationMapOutput { return pulumi.ToOutputWithContext(ctx, i).(IntegrationAccountBatchConfigurationMapOutput) } type IntegrationAccountBatchConfigurationOutput struct{ *pulumi.OutputState } func (IntegrationAccountBatchConfigurationOutput) ElementType() reflect.Type { return reflect.TypeOf((**IntegrationAccountBatchConfiguration)(nil)).Elem() } func (o IntegrationAccountBatchConfigurationOutput) ToIntegrationAccountBatchConfigurationOutput() IntegrationAccountBatchConfigurationOutput { return o } func (o IntegrationAccountBatchConfigurationOutput) ToIntegrationAccountBatchConfigurationOutputWithContext(ctx context.Context) IntegrationAccountBatchConfigurationOutput { return o } // The batch group name of the Logic App Integration Batch Configuration. Changing this forces a new resource to be created. func (o IntegrationAccountBatchConfigurationOutput) BatchGroupName() pulumi.StringOutput { return o.ApplyT(func(v *IntegrationAccountBatchConfiguration) pulumi.StringOutput { return v.BatchGroupName }).(pulumi.StringOutput) } // The name of the Logic App Integration Account. Changing this forces a new resource to be created. func (o IntegrationAccountBatchConfigurationOutput) IntegrationAccountName() pulumi.StringOutput { return o.ApplyT(func(v *IntegrationAccountBatchConfiguration) pulumi.StringOutput { return v.IntegrationAccountName }).(pulumi.StringOutput) } // A JSON mapping of any Metadata for this Logic App Integration Account Batch Configuration. func (o IntegrationAccountBatchConfigurationOutput) Metadata() pulumi.StringMapOutput { return o.ApplyT(func(v *IntegrationAccountBatchConfiguration) pulumi.StringMapOutput { return v.Metadata }).(pulumi.StringMapOutput) } // The name which should be used for this Logic App Integration Account Batch Configuration. Only Alphanumeric characters allowed. Changing this forces a new resource to be created. func (o IntegrationAccountBatchConfigurationOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *IntegrationAccountBatchConfiguration) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // A `releaseCriteria` block as documented below, which is used to select the criteria to meet before processing each batch. func (o IntegrationAccountBatchConfigurationOutput) ReleaseCriteria() IntegrationAccountBatchConfigurationReleaseCriteriaOutput { return o.ApplyT(func(v *IntegrationAccountBatchConfiguration) IntegrationAccountBatchConfigurationReleaseCriteriaOutput { return v.ReleaseCriteria }).(IntegrationAccountBatchConfigurationReleaseCriteriaOutput) } // The name of the Resource Group where the Logic App Integration Account Batch Configuration should exist. Changing this forces a new resource to be created. func (o IntegrationAccountBatchConfigurationOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v *IntegrationAccountBatchConfiguration) pulumi.StringOutput { return v.ResourceGroupName }).(pulumi.StringOutput) } type IntegrationAccountBatchConfigurationArrayOutput struct{ *pulumi.OutputState } func (IntegrationAccountBatchConfigurationArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*IntegrationAccountBatchConfiguration)(nil)).Elem() } func (o IntegrationAccountBatchConfigurationArrayOutput) ToIntegrationAccountBatchConfigurationArrayOutput() IntegrationAccountBatchConfigurationArrayOutput { return o } func (o IntegrationAccountBatchConfigurationArrayOutput) ToIntegrationAccountBatchConfigurationArrayOutputWithContext(ctx context.Context) IntegrationAccountBatchConfigurationArrayOutput { return o } func (o IntegrationAccountBatchConfigurationArrayOutput) Index(i pulumi.IntInput) IntegrationAccountBatchConfigurationOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *IntegrationAccountBatchConfiguration { return vs[0].([]*IntegrationAccountBatchConfiguration)[vs[1].(int)] }).(IntegrationAccountBatchConfigurationOutput) } type IntegrationAccountBatchConfigurationMapOutput struct{ *pulumi.OutputState } func (IntegrationAccountBatchConfigurationMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*IntegrationAccountBatchConfiguration)(nil)).Elem() } func (o IntegrationAccountBatchConfigurationMapOutput) ToIntegrationAccountBatchConfigurationMapOutput() IntegrationAccountBatchConfigurationMapOutput { return o } func (o IntegrationAccountBatchConfigurationMapOutput) ToIntegrationAccountBatchConfigurationMapOutputWithContext(ctx context.Context) IntegrationAccountBatchConfigurationMapOutput { return o } func (o IntegrationAccountBatchConfigurationMapOutput) MapIndex(k pulumi.StringInput) IntegrationAccountBatchConfigurationOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *IntegrationAccountBatchConfiguration { return vs[0].(map[string]*IntegrationAccountBatchConfiguration)[vs[1].(string)] }).(IntegrationAccountBatchConfigurationOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*IntegrationAccountBatchConfigurationInput)(nil)).Elem(), &IntegrationAccountBatchConfiguration{}) pulumi.RegisterInputType(reflect.TypeOf((*IntegrationAccountBatchConfigurationArrayInput)(nil)).Elem(), IntegrationAccountBatchConfigurationArray{}) pulumi.RegisterInputType(reflect.TypeOf((*IntegrationAccountBatchConfigurationMapInput)(nil)).Elem(), IntegrationAccountBatchConfigurationMap{}) pulumi.RegisterOutputType(IntegrationAccountBatchConfigurationOutput{}) pulumi.RegisterOutputType(IntegrationAccountBatchConfigurationArrayOutput{}) pulumi.RegisterOutputType(IntegrationAccountBatchConfigurationMapOutput{}) }
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/cdn/getFrontdoorFirewallPolicy.go
sdk/go/azure/cdn/getFrontdoorFirewallPolicy.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 cdn 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 Front Door (standard/premium) Firewall Policy. // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/cdn" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { // _, err := cdn.LookupFrontdoorFirewallPolicy(ctx, &cdn.LookupFrontdoorFirewallPolicyArgs{ // Name: "examplecdnfdwafpolicy", // ResourceGroupName: exampleAzurermResourceGroup.Name, // }, nil) // if err != nil { // return err // } // return nil // }) // } // // ``` func LookupFrontdoorFirewallPolicy(ctx *pulumi.Context, args *LookupFrontdoorFirewallPolicyArgs, opts ...pulumi.InvokeOption) (*LookupFrontdoorFirewallPolicyResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupFrontdoorFirewallPolicyResult err := ctx.Invoke("azure:cdn/getFrontdoorFirewallPolicy:getFrontdoorFirewallPolicy", args, &rv, opts...) if err != nil { return nil, err } return &rv, nil } // A collection of arguments for invoking getFrontdoorFirewallPolicy. type LookupFrontdoorFirewallPolicyArgs struct { // The name of the Front Door Firewall Policy. Name string `pulumi:"name"` // The name of the resource group. ResourceGroupName string `pulumi:"resourceGroupName"` } // A collection of values returned by getFrontdoorFirewallPolicy. type LookupFrontdoorFirewallPolicyResult struct { // The Front Door Firewall Policy Captcha cookie lifetime in minutes. CaptchaCookieExpirationInMinutes int `pulumi:"captchaCookieExpirationInMinutes"` // The enabled state of the Front Door Firewall Policy. Enabled bool `pulumi:"enabled"` // The Front Door Profiles frontend endpoints associated with this Front Door Firewall Policy. FrontendEndpointIds []string `pulumi:"frontendEndpointIds"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` // The Front Door Firewall Policy JavaScript challenge cookie lifetime in minutes. JsChallengeCookieExpirationInMinutes int `pulumi:"jsChallengeCookieExpirationInMinutes"` // The Front Door Firewall Policy mode. Mode string `pulumi:"mode"` Name string `pulumi:"name"` // The redirect URL for the client. RedirectUrl string `pulumi:"redirectUrl"` ResourceGroupName string `pulumi:"resourceGroupName"` // The sku's pricing tier for this Front Door Firewall Policy. SkuName string `pulumi:"skuName"` } func LookupFrontdoorFirewallPolicyOutput(ctx *pulumi.Context, args LookupFrontdoorFirewallPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupFrontdoorFirewallPolicyResultOutput { return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupFrontdoorFirewallPolicyResultOutput, error) { args := v.(LookupFrontdoorFirewallPolicyArgs) options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} return ctx.InvokeOutput("azure:cdn/getFrontdoorFirewallPolicy:getFrontdoorFirewallPolicy", args, LookupFrontdoorFirewallPolicyResultOutput{}, options).(LookupFrontdoorFirewallPolicyResultOutput), nil }).(LookupFrontdoorFirewallPolicyResultOutput) } // A collection of arguments for invoking getFrontdoorFirewallPolicy. type LookupFrontdoorFirewallPolicyOutputArgs struct { // The name of the Front Door Firewall Policy. Name pulumi.StringInput `pulumi:"name"` // The name of the resource group. ResourceGroupName pulumi.StringInput `pulumi:"resourceGroupName"` } func (LookupFrontdoorFirewallPolicyOutputArgs) ElementType() reflect.Type { return reflect.TypeOf((*LookupFrontdoorFirewallPolicyArgs)(nil)).Elem() } // A collection of values returned by getFrontdoorFirewallPolicy. type LookupFrontdoorFirewallPolicyResultOutput struct{ *pulumi.OutputState } func (LookupFrontdoorFirewallPolicyResultOutput) ElementType() reflect.Type { return reflect.TypeOf((*LookupFrontdoorFirewallPolicyResult)(nil)).Elem() } func (o LookupFrontdoorFirewallPolicyResultOutput) ToLookupFrontdoorFirewallPolicyResultOutput() LookupFrontdoorFirewallPolicyResultOutput { return o } func (o LookupFrontdoorFirewallPolicyResultOutput) ToLookupFrontdoorFirewallPolicyResultOutputWithContext(ctx context.Context) LookupFrontdoorFirewallPolicyResultOutput { return o } // The Front Door Firewall Policy Captcha cookie lifetime in minutes. func (o LookupFrontdoorFirewallPolicyResultOutput) CaptchaCookieExpirationInMinutes() pulumi.IntOutput { return o.ApplyT(func(v LookupFrontdoorFirewallPolicyResult) int { return v.CaptchaCookieExpirationInMinutes }).(pulumi.IntOutput) } // The enabled state of the Front Door Firewall Policy. func (o LookupFrontdoorFirewallPolicyResultOutput) Enabled() pulumi.BoolOutput { return o.ApplyT(func(v LookupFrontdoorFirewallPolicyResult) bool { return v.Enabled }).(pulumi.BoolOutput) } // The Front Door Profiles frontend endpoints associated with this Front Door Firewall Policy. func (o LookupFrontdoorFirewallPolicyResultOutput) FrontendEndpointIds() pulumi.StringArrayOutput { return o.ApplyT(func(v LookupFrontdoorFirewallPolicyResult) []string { return v.FrontendEndpointIds }).(pulumi.StringArrayOutput) } // The provider-assigned unique ID for this managed resource. func (o LookupFrontdoorFirewallPolicyResultOutput) Id() pulumi.StringOutput { return o.ApplyT(func(v LookupFrontdoorFirewallPolicyResult) string { return v.Id }).(pulumi.StringOutput) } // The Front Door Firewall Policy JavaScript challenge cookie lifetime in minutes. func (o LookupFrontdoorFirewallPolicyResultOutput) JsChallengeCookieExpirationInMinutes() pulumi.IntOutput { return o.ApplyT(func(v LookupFrontdoorFirewallPolicyResult) int { return v.JsChallengeCookieExpirationInMinutes }).(pulumi.IntOutput) } // The Front Door Firewall Policy mode. func (o LookupFrontdoorFirewallPolicyResultOutput) Mode() pulumi.StringOutput { return o.ApplyT(func(v LookupFrontdoorFirewallPolicyResult) string { return v.Mode }).(pulumi.StringOutput) } func (o LookupFrontdoorFirewallPolicyResultOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v LookupFrontdoorFirewallPolicyResult) string { return v.Name }).(pulumi.StringOutput) } // The redirect URL for the client. func (o LookupFrontdoorFirewallPolicyResultOutput) RedirectUrl() pulumi.StringOutput { return o.ApplyT(func(v LookupFrontdoorFirewallPolicyResult) string { return v.RedirectUrl }).(pulumi.StringOutput) } func (o LookupFrontdoorFirewallPolicyResultOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v LookupFrontdoorFirewallPolicyResult) string { return v.ResourceGroupName }).(pulumi.StringOutput) } // The sku's pricing tier for this Front Door Firewall Policy. func (o LookupFrontdoorFirewallPolicyResultOutput) SkuName() pulumi.StringOutput { return o.ApplyT(func(v LookupFrontdoorFirewallPolicyResult) string { return v.SkuName }).(pulumi.StringOutput) } func init() { pulumi.RegisterOutputType(LookupFrontdoorFirewallPolicyResultOutput{}) }
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/cdn/init.go
sdk/go/azure/cdn/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 cdn 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:cdn/endpoint:Endpoint": r = &Endpoint{} case "azure:cdn/endpointCustomDomain:EndpointCustomDomain": r = &EndpointCustomDomain{} case "azure:cdn/frontdoorCustomDomain:FrontdoorCustomDomain": r = &FrontdoorCustomDomain{} case "azure:cdn/frontdoorCustomDomainAssociation:FrontdoorCustomDomainAssociation": r = &FrontdoorCustomDomainAssociation{} case "azure:cdn/frontdoorEndpoint:FrontdoorEndpoint": r = &FrontdoorEndpoint{} case "azure:cdn/frontdoorFirewallPolicy:FrontdoorFirewallPolicy": r = &FrontdoorFirewallPolicy{} case "azure:cdn/frontdoorOrigin:FrontdoorOrigin": r = &FrontdoorOrigin{} case "azure:cdn/frontdoorOriginGroup:FrontdoorOriginGroup": r = &FrontdoorOriginGroup{} case "azure:cdn/frontdoorProfile:FrontdoorProfile": r = &FrontdoorProfile{} case "azure:cdn/frontdoorRoute:FrontdoorRoute": r = &FrontdoorRoute{} case "azure:cdn/frontdoorRule:FrontdoorRule": r = &FrontdoorRule{} case "azure:cdn/frontdoorRuleSet:FrontdoorRuleSet": r = &FrontdoorRuleSet{} case "azure:cdn/frontdoorSecret:FrontdoorSecret": r = &FrontdoorSecret{} case "azure:cdn/frontdoorSecurityPolicy:FrontdoorSecurityPolicy": r = &FrontdoorSecurityPolicy{} case "azure:cdn/profile:Profile": r = &Profile{} 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", "cdn/endpoint", &module{version}, ) pulumi.RegisterResourceModule( "azure", "cdn/endpointCustomDomain", &module{version}, ) pulumi.RegisterResourceModule( "azure", "cdn/frontdoorCustomDomain", &module{version}, ) pulumi.RegisterResourceModule( "azure", "cdn/frontdoorCustomDomainAssociation", &module{version}, ) pulumi.RegisterResourceModule( "azure", "cdn/frontdoorEndpoint", &module{version}, ) pulumi.RegisterResourceModule( "azure", "cdn/frontdoorFirewallPolicy", &module{version}, ) pulumi.RegisterResourceModule( "azure", "cdn/frontdoorOrigin", &module{version}, ) pulumi.RegisterResourceModule( "azure", "cdn/frontdoorOriginGroup", &module{version}, ) pulumi.RegisterResourceModule( "azure", "cdn/frontdoorProfile", &module{version}, ) pulumi.RegisterResourceModule( "azure", "cdn/frontdoorRoute", &module{version}, ) pulumi.RegisterResourceModule( "azure", "cdn/frontdoorRule", &module{version}, ) pulumi.RegisterResourceModule( "azure", "cdn/frontdoorRuleSet", &module{version}, ) pulumi.RegisterResourceModule( "azure", "cdn/frontdoorSecret", &module{version}, ) pulumi.RegisterResourceModule( "azure", "cdn/frontdoorSecurityPolicy", &module{version}, ) pulumi.RegisterResourceModule( "azure", "cdn/profile", &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/cdn/pulumiTypes.go
sdk/go/azure/cdn/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 cdn 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 EndpointCustomDomainCdnManagedHttps struct { // The type of HTTPS certificate. Possible values are `Shared` and `Dedicated`. CertificateType string `pulumi:"certificateType"` // The type of protocol. Possible values are `ServerNameIndication` and `IPBased`. ProtocolType string `pulumi:"protocolType"` // The minimum TLS protocol version that is used for HTTPS. Possible values are `TLS10` (representing TLS 1.0/1.1), `TLS12` (representing TLS 1.2) and `None` (representing no minimums). Defaults to `TLS12`. // // > **Note:** Azure Services will require TLS 1.2+ by August 2025, please see this [announcement](https://azure.microsoft.com/en-us/updates/v2/update-retirement-tls1-0-tls1-1-versions-azure-services/) for more. TlsVersion *string `pulumi:"tlsVersion"` } // EndpointCustomDomainCdnManagedHttpsInput is an input type that accepts EndpointCustomDomainCdnManagedHttpsArgs and EndpointCustomDomainCdnManagedHttpsOutput values. // You can construct a concrete instance of `EndpointCustomDomainCdnManagedHttpsInput` via: // // EndpointCustomDomainCdnManagedHttpsArgs{...} type EndpointCustomDomainCdnManagedHttpsInput interface { pulumi.Input ToEndpointCustomDomainCdnManagedHttpsOutput() EndpointCustomDomainCdnManagedHttpsOutput ToEndpointCustomDomainCdnManagedHttpsOutputWithContext(context.Context) EndpointCustomDomainCdnManagedHttpsOutput } type EndpointCustomDomainCdnManagedHttpsArgs struct { // The type of HTTPS certificate. Possible values are `Shared` and `Dedicated`. CertificateType pulumi.StringInput `pulumi:"certificateType"` // The type of protocol. Possible values are `ServerNameIndication` and `IPBased`. ProtocolType pulumi.StringInput `pulumi:"protocolType"` // The minimum TLS protocol version that is used for HTTPS. Possible values are `TLS10` (representing TLS 1.0/1.1), `TLS12` (representing TLS 1.2) and `None` (representing no minimums). Defaults to `TLS12`. // // > **Note:** Azure Services will require TLS 1.2+ by August 2025, please see this [announcement](https://azure.microsoft.com/en-us/updates/v2/update-retirement-tls1-0-tls1-1-versions-azure-services/) for more. TlsVersion pulumi.StringPtrInput `pulumi:"tlsVersion"` } func (EndpointCustomDomainCdnManagedHttpsArgs) ElementType() reflect.Type { return reflect.TypeOf((*EndpointCustomDomainCdnManagedHttps)(nil)).Elem() } func (i EndpointCustomDomainCdnManagedHttpsArgs) ToEndpointCustomDomainCdnManagedHttpsOutput() EndpointCustomDomainCdnManagedHttpsOutput { return i.ToEndpointCustomDomainCdnManagedHttpsOutputWithContext(context.Background()) } func (i EndpointCustomDomainCdnManagedHttpsArgs) ToEndpointCustomDomainCdnManagedHttpsOutputWithContext(ctx context.Context) EndpointCustomDomainCdnManagedHttpsOutput { return pulumi.ToOutputWithContext(ctx, i).(EndpointCustomDomainCdnManagedHttpsOutput) } func (i EndpointCustomDomainCdnManagedHttpsArgs) ToEndpointCustomDomainCdnManagedHttpsPtrOutput() EndpointCustomDomainCdnManagedHttpsPtrOutput { return i.ToEndpointCustomDomainCdnManagedHttpsPtrOutputWithContext(context.Background()) } func (i EndpointCustomDomainCdnManagedHttpsArgs) ToEndpointCustomDomainCdnManagedHttpsPtrOutputWithContext(ctx context.Context) EndpointCustomDomainCdnManagedHttpsPtrOutput { return pulumi.ToOutputWithContext(ctx, i).(EndpointCustomDomainCdnManagedHttpsOutput).ToEndpointCustomDomainCdnManagedHttpsPtrOutputWithContext(ctx) } // EndpointCustomDomainCdnManagedHttpsPtrInput is an input type that accepts EndpointCustomDomainCdnManagedHttpsArgs, EndpointCustomDomainCdnManagedHttpsPtr and EndpointCustomDomainCdnManagedHttpsPtrOutput values. // You can construct a concrete instance of `EndpointCustomDomainCdnManagedHttpsPtrInput` via: // // EndpointCustomDomainCdnManagedHttpsArgs{...} // // or: // // nil type EndpointCustomDomainCdnManagedHttpsPtrInput interface { pulumi.Input ToEndpointCustomDomainCdnManagedHttpsPtrOutput() EndpointCustomDomainCdnManagedHttpsPtrOutput ToEndpointCustomDomainCdnManagedHttpsPtrOutputWithContext(context.Context) EndpointCustomDomainCdnManagedHttpsPtrOutput } type endpointCustomDomainCdnManagedHttpsPtrType EndpointCustomDomainCdnManagedHttpsArgs func EndpointCustomDomainCdnManagedHttpsPtr(v *EndpointCustomDomainCdnManagedHttpsArgs) EndpointCustomDomainCdnManagedHttpsPtrInput { return (*endpointCustomDomainCdnManagedHttpsPtrType)(v) } func (*endpointCustomDomainCdnManagedHttpsPtrType) ElementType() reflect.Type { return reflect.TypeOf((**EndpointCustomDomainCdnManagedHttps)(nil)).Elem() } func (i *endpointCustomDomainCdnManagedHttpsPtrType) ToEndpointCustomDomainCdnManagedHttpsPtrOutput() EndpointCustomDomainCdnManagedHttpsPtrOutput { return i.ToEndpointCustomDomainCdnManagedHttpsPtrOutputWithContext(context.Background()) } func (i *endpointCustomDomainCdnManagedHttpsPtrType) ToEndpointCustomDomainCdnManagedHttpsPtrOutputWithContext(ctx context.Context) EndpointCustomDomainCdnManagedHttpsPtrOutput { return pulumi.ToOutputWithContext(ctx, i).(EndpointCustomDomainCdnManagedHttpsPtrOutput) } type EndpointCustomDomainCdnManagedHttpsOutput struct{ *pulumi.OutputState } func (EndpointCustomDomainCdnManagedHttpsOutput) ElementType() reflect.Type { return reflect.TypeOf((*EndpointCustomDomainCdnManagedHttps)(nil)).Elem() } func (o EndpointCustomDomainCdnManagedHttpsOutput) ToEndpointCustomDomainCdnManagedHttpsOutput() EndpointCustomDomainCdnManagedHttpsOutput { return o } func (o EndpointCustomDomainCdnManagedHttpsOutput) ToEndpointCustomDomainCdnManagedHttpsOutputWithContext(ctx context.Context) EndpointCustomDomainCdnManagedHttpsOutput { return o } func (o EndpointCustomDomainCdnManagedHttpsOutput) ToEndpointCustomDomainCdnManagedHttpsPtrOutput() EndpointCustomDomainCdnManagedHttpsPtrOutput { return o.ToEndpointCustomDomainCdnManagedHttpsPtrOutputWithContext(context.Background()) } func (o EndpointCustomDomainCdnManagedHttpsOutput) ToEndpointCustomDomainCdnManagedHttpsPtrOutputWithContext(ctx context.Context) EndpointCustomDomainCdnManagedHttpsPtrOutput { return o.ApplyTWithContext(ctx, func(_ context.Context, v EndpointCustomDomainCdnManagedHttps) *EndpointCustomDomainCdnManagedHttps { return &v }).(EndpointCustomDomainCdnManagedHttpsPtrOutput) } // The type of HTTPS certificate. Possible values are `Shared` and `Dedicated`. func (o EndpointCustomDomainCdnManagedHttpsOutput) CertificateType() pulumi.StringOutput { return o.ApplyT(func(v EndpointCustomDomainCdnManagedHttps) string { return v.CertificateType }).(pulumi.StringOutput) } // The type of protocol. Possible values are `ServerNameIndication` and `IPBased`. func (o EndpointCustomDomainCdnManagedHttpsOutput) ProtocolType() pulumi.StringOutput { return o.ApplyT(func(v EndpointCustomDomainCdnManagedHttps) string { return v.ProtocolType }).(pulumi.StringOutput) } // The minimum TLS protocol version that is used for HTTPS. Possible values are `TLS10` (representing TLS 1.0/1.1), `TLS12` (representing TLS 1.2) and `None` (representing no minimums). Defaults to `TLS12`. // // > **Note:** Azure Services will require TLS 1.2+ by August 2025, please see this [announcement](https://azure.microsoft.com/en-us/updates/v2/update-retirement-tls1-0-tls1-1-versions-azure-services/) for more. func (o EndpointCustomDomainCdnManagedHttpsOutput) TlsVersion() pulumi.StringPtrOutput { return o.ApplyT(func(v EndpointCustomDomainCdnManagedHttps) *string { return v.TlsVersion }).(pulumi.StringPtrOutput) } type EndpointCustomDomainCdnManagedHttpsPtrOutput struct{ *pulumi.OutputState } func (EndpointCustomDomainCdnManagedHttpsPtrOutput) ElementType() reflect.Type { return reflect.TypeOf((**EndpointCustomDomainCdnManagedHttps)(nil)).Elem() } func (o EndpointCustomDomainCdnManagedHttpsPtrOutput) ToEndpointCustomDomainCdnManagedHttpsPtrOutput() EndpointCustomDomainCdnManagedHttpsPtrOutput { return o } func (o EndpointCustomDomainCdnManagedHttpsPtrOutput) ToEndpointCustomDomainCdnManagedHttpsPtrOutputWithContext(ctx context.Context) EndpointCustomDomainCdnManagedHttpsPtrOutput { return o } func (o EndpointCustomDomainCdnManagedHttpsPtrOutput) Elem() EndpointCustomDomainCdnManagedHttpsOutput { return o.ApplyT(func(v *EndpointCustomDomainCdnManagedHttps) EndpointCustomDomainCdnManagedHttps { if v != nil { return *v } var ret EndpointCustomDomainCdnManagedHttps return ret }).(EndpointCustomDomainCdnManagedHttpsOutput) } // The type of HTTPS certificate. Possible values are `Shared` and `Dedicated`. func (o EndpointCustomDomainCdnManagedHttpsPtrOutput) CertificateType() pulumi.StringPtrOutput { return o.ApplyT(func(v *EndpointCustomDomainCdnManagedHttps) *string { if v == nil { return nil } return &v.CertificateType }).(pulumi.StringPtrOutput) } // The type of protocol. Possible values are `ServerNameIndication` and `IPBased`. func (o EndpointCustomDomainCdnManagedHttpsPtrOutput) ProtocolType() pulumi.StringPtrOutput { return o.ApplyT(func(v *EndpointCustomDomainCdnManagedHttps) *string { if v == nil { return nil } return &v.ProtocolType }).(pulumi.StringPtrOutput) } // The minimum TLS protocol version that is used for HTTPS. Possible values are `TLS10` (representing TLS 1.0/1.1), `TLS12` (representing TLS 1.2) and `None` (representing no minimums). Defaults to `TLS12`. // // > **Note:** Azure Services will require TLS 1.2+ by August 2025, please see this [announcement](https://azure.microsoft.com/en-us/updates/v2/update-retirement-tls1-0-tls1-1-versions-azure-services/) for more. func (o EndpointCustomDomainCdnManagedHttpsPtrOutput) TlsVersion() pulumi.StringPtrOutput { return o.ApplyT(func(v *EndpointCustomDomainCdnManagedHttps) *string { if v == nil { return nil } return v.TlsVersion }).(pulumi.StringPtrOutput) } type EndpointCustomDomainUserManagedHttps struct { // The ID of the Key Vault Secret that contains the HTTPS certificate. KeyVaultSecretId string `pulumi:"keyVaultSecretId"` // The minimum TLS protocol version that is used for HTTPS. Possible values are `TLS10` (representing TLS 1.0/1.1), `TLS12` (representing TLS 1.2) and `None` (representing no minimums). Defaults to `TLS12`. // // > **Note:** Azure Services will require TLS 1.2+ by August 2025, please see this [announcement](https://azure.microsoft.com/en-us/updates/v2/update-retirement-tls1-0-tls1-1-versions-azure-services/) for more. TlsVersion *string `pulumi:"tlsVersion"` } // EndpointCustomDomainUserManagedHttpsInput is an input type that accepts EndpointCustomDomainUserManagedHttpsArgs and EndpointCustomDomainUserManagedHttpsOutput values. // You can construct a concrete instance of `EndpointCustomDomainUserManagedHttpsInput` via: // // EndpointCustomDomainUserManagedHttpsArgs{...} type EndpointCustomDomainUserManagedHttpsInput interface { pulumi.Input ToEndpointCustomDomainUserManagedHttpsOutput() EndpointCustomDomainUserManagedHttpsOutput ToEndpointCustomDomainUserManagedHttpsOutputWithContext(context.Context) EndpointCustomDomainUserManagedHttpsOutput } type EndpointCustomDomainUserManagedHttpsArgs struct { // The ID of the Key Vault Secret that contains the HTTPS certificate. KeyVaultSecretId pulumi.StringInput `pulumi:"keyVaultSecretId"` // The minimum TLS protocol version that is used for HTTPS. Possible values are `TLS10` (representing TLS 1.0/1.1), `TLS12` (representing TLS 1.2) and `None` (representing no minimums). Defaults to `TLS12`. // // > **Note:** Azure Services will require TLS 1.2+ by August 2025, please see this [announcement](https://azure.microsoft.com/en-us/updates/v2/update-retirement-tls1-0-tls1-1-versions-azure-services/) for more. TlsVersion pulumi.StringPtrInput `pulumi:"tlsVersion"` } func (EndpointCustomDomainUserManagedHttpsArgs) ElementType() reflect.Type { return reflect.TypeOf((*EndpointCustomDomainUserManagedHttps)(nil)).Elem() } func (i EndpointCustomDomainUserManagedHttpsArgs) ToEndpointCustomDomainUserManagedHttpsOutput() EndpointCustomDomainUserManagedHttpsOutput { return i.ToEndpointCustomDomainUserManagedHttpsOutputWithContext(context.Background()) } func (i EndpointCustomDomainUserManagedHttpsArgs) ToEndpointCustomDomainUserManagedHttpsOutputWithContext(ctx context.Context) EndpointCustomDomainUserManagedHttpsOutput { return pulumi.ToOutputWithContext(ctx, i).(EndpointCustomDomainUserManagedHttpsOutput) } func (i EndpointCustomDomainUserManagedHttpsArgs) ToEndpointCustomDomainUserManagedHttpsPtrOutput() EndpointCustomDomainUserManagedHttpsPtrOutput { return i.ToEndpointCustomDomainUserManagedHttpsPtrOutputWithContext(context.Background()) } func (i EndpointCustomDomainUserManagedHttpsArgs) ToEndpointCustomDomainUserManagedHttpsPtrOutputWithContext(ctx context.Context) EndpointCustomDomainUserManagedHttpsPtrOutput { return pulumi.ToOutputWithContext(ctx, i).(EndpointCustomDomainUserManagedHttpsOutput).ToEndpointCustomDomainUserManagedHttpsPtrOutputWithContext(ctx) } // EndpointCustomDomainUserManagedHttpsPtrInput is an input type that accepts EndpointCustomDomainUserManagedHttpsArgs, EndpointCustomDomainUserManagedHttpsPtr and EndpointCustomDomainUserManagedHttpsPtrOutput values. // You can construct a concrete instance of `EndpointCustomDomainUserManagedHttpsPtrInput` via: // // EndpointCustomDomainUserManagedHttpsArgs{...} // // or: // // nil type EndpointCustomDomainUserManagedHttpsPtrInput interface { pulumi.Input ToEndpointCustomDomainUserManagedHttpsPtrOutput() EndpointCustomDomainUserManagedHttpsPtrOutput ToEndpointCustomDomainUserManagedHttpsPtrOutputWithContext(context.Context) EndpointCustomDomainUserManagedHttpsPtrOutput } type endpointCustomDomainUserManagedHttpsPtrType EndpointCustomDomainUserManagedHttpsArgs func EndpointCustomDomainUserManagedHttpsPtr(v *EndpointCustomDomainUserManagedHttpsArgs) EndpointCustomDomainUserManagedHttpsPtrInput { return (*endpointCustomDomainUserManagedHttpsPtrType)(v) } func (*endpointCustomDomainUserManagedHttpsPtrType) ElementType() reflect.Type { return reflect.TypeOf((**EndpointCustomDomainUserManagedHttps)(nil)).Elem() } func (i *endpointCustomDomainUserManagedHttpsPtrType) ToEndpointCustomDomainUserManagedHttpsPtrOutput() EndpointCustomDomainUserManagedHttpsPtrOutput { return i.ToEndpointCustomDomainUserManagedHttpsPtrOutputWithContext(context.Background()) } func (i *endpointCustomDomainUserManagedHttpsPtrType) ToEndpointCustomDomainUserManagedHttpsPtrOutputWithContext(ctx context.Context) EndpointCustomDomainUserManagedHttpsPtrOutput { return pulumi.ToOutputWithContext(ctx, i).(EndpointCustomDomainUserManagedHttpsPtrOutput) } type EndpointCustomDomainUserManagedHttpsOutput struct{ *pulumi.OutputState } func (EndpointCustomDomainUserManagedHttpsOutput) ElementType() reflect.Type { return reflect.TypeOf((*EndpointCustomDomainUserManagedHttps)(nil)).Elem() } func (o EndpointCustomDomainUserManagedHttpsOutput) ToEndpointCustomDomainUserManagedHttpsOutput() EndpointCustomDomainUserManagedHttpsOutput { return o } func (o EndpointCustomDomainUserManagedHttpsOutput) ToEndpointCustomDomainUserManagedHttpsOutputWithContext(ctx context.Context) EndpointCustomDomainUserManagedHttpsOutput { return o } func (o EndpointCustomDomainUserManagedHttpsOutput) ToEndpointCustomDomainUserManagedHttpsPtrOutput() EndpointCustomDomainUserManagedHttpsPtrOutput { return o.ToEndpointCustomDomainUserManagedHttpsPtrOutputWithContext(context.Background()) } func (o EndpointCustomDomainUserManagedHttpsOutput) ToEndpointCustomDomainUserManagedHttpsPtrOutputWithContext(ctx context.Context) EndpointCustomDomainUserManagedHttpsPtrOutput { return o.ApplyTWithContext(ctx, func(_ context.Context, v EndpointCustomDomainUserManagedHttps) *EndpointCustomDomainUserManagedHttps { return &v }).(EndpointCustomDomainUserManagedHttpsPtrOutput) } // The ID of the Key Vault Secret that contains the HTTPS certificate. func (o EndpointCustomDomainUserManagedHttpsOutput) KeyVaultSecretId() pulumi.StringOutput { return o.ApplyT(func(v EndpointCustomDomainUserManagedHttps) string { return v.KeyVaultSecretId }).(pulumi.StringOutput) } // The minimum TLS protocol version that is used for HTTPS. Possible values are `TLS10` (representing TLS 1.0/1.1), `TLS12` (representing TLS 1.2) and `None` (representing no minimums). Defaults to `TLS12`. // // > **Note:** Azure Services will require TLS 1.2+ by August 2025, please see this [announcement](https://azure.microsoft.com/en-us/updates/v2/update-retirement-tls1-0-tls1-1-versions-azure-services/) for more. func (o EndpointCustomDomainUserManagedHttpsOutput) TlsVersion() pulumi.StringPtrOutput { return o.ApplyT(func(v EndpointCustomDomainUserManagedHttps) *string { return v.TlsVersion }).(pulumi.StringPtrOutput) } type EndpointCustomDomainUserManagedHttpsPtrOutput struct{ *pulumi.OutputState } func (EndpointCustomDomainUserManagedHttpsPtrOutput) ElementType() reflect.Type { return reflect.TypeOf((**EndpointCustomDomainUserManagedHttps)(nil)).Elem() } func (o EndpointCustomDomainUserManagedHttpsPtrOutput) ToEndpointCustomDomainUserManagedHttpsPtrOutput() EndpointCustomDomainUserManagedHttpsPtrOutput { return o } func (o EndpointCustomDomainUserManagedHttpsPtrOutput) ToEndpointCustomDomainUserManagedHttpsPtrOutputWithContext(ctx context.Context) EndpointCustomDomainUserManagedHttpsPtrOutput { return o } func (o EndpointCustomDomainUserManagedHttpsPtrOutput) Elem() EndpointCustomDomainUserManagedHttpsOutput { return o.ApplyT(func(v *EndpointCustomDomainUserManagedHttps) EndpointCustomDomainUserManagedHttps { if v != nil { return *v } var ret EndpointCustomDomainUserManagedHttps return ret }).(EndpointCustomDomainUserManagedHttpsOutput) } // The ID of the Key Vault Secret that contains the HTTPS certificate. func (o EndpointCustomDomainUserManagedHttpsPtrOutput) KeyVaultSecretId() pulumi.StringPtrOutput { return o.ApplyT(func(v *EndpointCustomDomainUserManagedHttps) *string { if v == nil { return nil } return &v.KeyVaultSecretId }).(pulumi.StringPtrOutput) } // The minimum TLS protocol version that is used for HTTPS. Possible values are `TLS10` (representing TLS 1.0/1.1), `TLS12` (representing TLS 1.2) and `None` (representing no minimums). Defaults to `TLS12`. // // > **Note:** Azure Services will require TLS 1.2+ by August 2025, please see this [announcement](https://azure.microsoft.com/en-us/updates/v2/update-retirement-tls1-0-tls1-1-versions-azure-services/) for more. func (o EndpointCustomDomainUserManagedHttpsPtrOutput) TlsVersion() pulumi.StringPtrOutput { return o.ApplyT(func(v *EndpointCustomDomainUserManagedHttps) *string { if v == nil { return nil } return v.TlsVersion }).(pulumi.StringPtrOutput) } type EndpointDeliveryRule struct { // A `cacheExpirationAction` block as defined above. CacheExpirationAction *EndpointDeliveryRuleCacheExpirationAction `pulumi:"cacheExpirationAction"` // A `cacheKeyQueryStringAction` block as defined above. CacheKeyQueryStringAction *EndpointDeliveryRuleCacheKeyQueryStringAction `pulumi:"cacheKeyQueryStringAction"` // A `cookiesCondition` block as defined above. CookiesConditions []EndpointDeliveryRuleCookiesCondition `pulumi:"cookiesConditions"` // A `deviceCondition` block as defined below. DeviceCondition *EndpointDeliveryRuleDeviceCondition `pulumi:"deviceCondition"` // A `httpVersionCondition` block as defined below. HttpVersionConditions []EndpointDeliveryRuleHttpVersionCondition `pulumi:"httpVersionConditions"` // A `modifyRequestHeaderAction` block as defined below. ModifyRequestHeaderActions []EndpointDeliveryRuleModifyRequestHeaderAction `pulumi:"modifyRequestHeaderActions"` // A `modifyResponseHeaderAction` block as defined below. ModifyResponseHeaderActions []EndpointDeliveryRuleModifyResponseHeaderAction `pulumi:"modifyResponseHeaderActions"` // The Name which should be used for this Delivery Rule. Name string `pulumi:"name"` // The order used for this rule. The order values should be sequential and begin at `1`. Order int `pulumi:"order"` // A `postArgCondition` block as defined below. PostArgConditions []EndpointDeliveryRulePostArgCondition `pulumi:"postArgConditions"` // A `queryStringCondition` block as defined below. QueryStringConditions []EndpointDeliveryRuleQueryStringCondition `pulumi:"queryStringConditions"` // A `remoteAddressCondition` block as defined below. RemoteAddressConditions []EndpointDeliveryRuleRemoteAddressCondition `pulumi:"remoteAddressConditions"` // A `requestBodyCondition` block as defined below. RequestBodyConditions []EndpointDeliveryRuleRequestBodyCondition `pulumi:"requestBodyConditions"` // A `requestHeaderCondition` block as defined below. RequestHeaderConditions []EndpointDeliveryRuleRequestHeaderCondition `pulumi:"requestHeaderConditions"` // A `requestMethodCondition` block as defined below. RequestMethodCondition *EndpointDeliveryRuleRequestMethodCondition `pulumi:"requestMethodCondition"` // A `requestSchemeCondition` block as defined below. RequestSchemeCondition *EndpointDeliveryRuleRequestSchemeCondition `pulumi:"requestSchemeCondition"` // A `requestUriCondition` block as defined below. RequestUriConditions []EndpointDeliveryRuleRequestUriCondition `pulumi:"requestUriConditions"` // A `urlFileExtensionCondition` block as defined below. UrlFileExtensionConditions []EndpointDeliveryRuleUrlFileExtensionCondition `pulumi:"urlFileExtensionConditions"` // A `urlFileNameCondition` block as defined below. UrlFileNameConditions []EndpointDeliveryRuleUrlFileNameCondition `pulumi:"urlFileNameConditions"` // A `urlPathCondition` block as defined below. UrlPathConditions []EndpointDeliveryRuleUrlPathCondition `pulumi:"urlPathConditions"` // A `urlRedirectAction` block as defined below. UrlRedirectAction *EndpointDeliveryRuleUrlRedirectAction `pulumi:"urlRedirectAction"` // A `urlRewriteAction` block as defined below. UrlRewriteAction *EndpointDeliveryRuleUrlRewriteAction `pulumi:"urlRewriteAction"` } // EndpointDeliveryRuleInput is an input type that accepts EndpointDeliveryRuleArgs and EndpointDeliveryRuleOutput values. // You can construct a concrete instance of `EndpointDeliveryRuleInput` via: // // EndpointDeliveryRuleArgs{...} type EndpointDeliveryRuleInput interface { pulumi.Input ToEndpointDeliveryRuleOutput() EndpointDeliveryRuleOutput ToEndpointDeliveryRuleOutputWithContext(context.Context) EndpointDeliveryRuleOutput } type EndpointDeliveryRuleArgs struct { // A `cacheExpirationAction` block as defined above. CacheExpirationAction EndpointDeliveryRuleCacheExpirationActionPtrInput `pulumi:"cacheExpirationAction"` // A `cacheKeyQueryStringAction` block as defined above. CacheKeyQueryStringAction EndpointDeliveryRuleCacheKeyQueryStringActionPtrInput `pulumi:"cacheKeyQueryStringAction"` // A `cookiesCondition` block as defined above. CookiesConditions EndpointDeliveryRuleCookiesConditionArrayInput `pulumi:"cookiesConditions"` // A `deviceCondition` block as defined below. DeviceCondition EndpointDeliveryRuleDeviceConditionPtrInput `pulumi:"deviceCondition"` // A `httpVersionCondition` block as defined below. HttpVersionConditions EndpointDeliveryRuleHttpVersionConditionArrayInput `pulumi:"httpVersionConditions"` // A `modifyRequestHeaderAction` block as defined below. ModifyRequestHeaderActions EndpointDeliveryRuleModifyRequestHeaderActionArrayInput `pulumi:"modifyRequestHeaderActions"` // A `modifyResponseHeaderAction` block as defined below. ModifyResponseHeaderActions EndpointDeliveryRuleModifyResponseHeaderActionArrayInput `pulumi:"modifyResponseHeaderActions"` // The Name which should be used for this Delivery Rule. Name pulumi.StringInput `pulumi:"name"` // The order used for this rule. The order values should be sequential and begin at `1`. Order pulumi.IntInput `pulumi:"order"` // A `postArgCondition` block as defined below. PostArgConditions EndpointDeliveryRulePostArgConditionArrayInput `pulumi:"postArgConditions"` // A `queryStringCondition` block as defined below. QueryStringConditions EndpointDeliveryRuleQueryStringConditionArrayInput `pulumi:"queryStringConditions"` // A `remoteAddressCondition` block as defined below. RemoteAddressConditions EndpointDeliveryRuleRemoteAddressConditionArrayInput `pulumi:"remoteAddressConditions"` // A `requestBodyCondition` block as defined below. RequestBodyConditions EndpointDeliveryRuleRequestBodyConditionArrayInput `pulumi:"requestBodyConditions"` // A `requestHeaderCondition` block as defined below. RequestHeaderConditions EndpointDeliveryRuleRequestHeaderConditionArrayInput `pulumi:"requestHeaderConditions"` // A `requestMethodCondition` block as defined below. RequestMethodCondition EndpointDeliveryRuleRequestMethodConditionPtrInput `pulumi:"requestMethodCondition"` // A `requestSchemeCondition` block as defined below. RequestSchemeCondition EndpointDeliveryRuleRequestSchemeConditionPtrInput `pulumi:"requestSchemeCondition"` // A `requestUriCondition` block as defined below. RequestUriConditions EndpointDeliveryRuleRequestUriConditionArrayInput `pulumi:"requestUriConditions"` // A `urlFileExtensionCondition` block as defined below. UrlFileExtensionConditions EndpointDeliveryRuleUrlFileExtensionConditionArrayInput `pulumi:"urlFileExtensionConditions"` // A `urlFileNameCondition` block as defined below. UrlFileNameConditions EndpointDeliveryRuleUrlFileNameConditionArrayInput `pulumi:"urlFileNameConditions"` // A `urlPathCondition` block as defined below. UrlPathConditions EndpointDeliveryRuleUrlPathConditionArrayInput `pulumi:"urlPathConditions"` // A `urlRedirectAction` block as defined below. UrlRedirectAction EndpointDeliveryRuleUrlRedirectActionPtrInput `pulumi:"urlRedirectAction"` // A `urlRewriteAction` block as defined below. UrlRewriteAction EndpointDeliveryRuleUrlRewriteActionPtrInput `pulumi:"urlRewriteAction"` } func (EndpointDeliveryRuleArgs) ElementType() reflect.Type { return reflect.TypeOf((*EndpointDeliveryRule)(nil)).Elem() } func (i EndpointDeliveryRuleArgs) ToEndpointDeliveryRuleOutput() EndpointDeliveryRuleOutput { return i.ToEndpointDeliveryRuleOutputWithContext(context.Background()) } func (i EndpointDeliveryRuleArgs) ToEndpointDeliveryRuleOutputWithContext(ctx context.Context) EndpointDeliveryRuleOutput { return pulumi.ToOutputWithContext(ctx, i).(EndpointDeliveryRuleOutput) } // EndpointDeliveryRuleArrayInput is an input type that accepts EndpointDeliveryRuleArray and EndpointDeliveryRuleArrayOutput values. // You can construct a concrete instance of `EndpointDeliveryRuleArrayInput` via: // // EndpointDeliveryRuleArray{ EndpointDeliveryRuleArgs{...} } type EndpointDeliveryRuleArrayInput interface { pulumi.Input ToEndpointDeliveryRuleArrayOutput() EndpointDeliveryRuleArrayOutput ToEndpointDeliveryRuleArrayOutputWithContext(context.Context) EndpointDeliveryRuleArrayOutput } type EndpointDeliveryRuleArray []EndpointDeliveryRuleInput func (EndpointDeliveryRuleArray) ElementType() reflect.Type { return reflect.TypeOf((*[]EndpointDeliveryRule)(nil)).Elem() } func (i EndpointDeliveryRuleArray) ToEndpointDeliveryRuleArrayOutput() EndpointDeliveryRuleArrayOutput { return i.ToEndpointDeliveryRuleArrayOutputWithContext(context.Background()) } func (i EndpointDeliveryRuleArray) ToEndpointDeliveryRuleArrayOutputWithContext(ctx context.Context) EndpointDeliveryRuleArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(EndpointDeliveryRuleArrayOutput) } type EndpointDeliveryRuleOutput struct{ *pulumi.OutputState } func (EndpointDeliveryRuleOutput) ElementType() reflect.Type { return reflect.TypeOf((*EndpointDeliveryRule)(nil)).Elem() } func (o EndpointDeliveryRuleOutput) ToEndpointDeliveryRuleOutput() EndpointDeliveryRuleOutput { return o } func (o EndpointDeliveryRuleOutput) ToEndpointDeliveryRuleOutputWithContext(ctx context.Context) EndpointDeliveryRuleOutput { return o } // A `cacheExpirationAction` block as defined above. func (o EndpointDeliveryRuleOutput) CacheExpirationAction() EndpointDeliveryRuleCacheExpirationActionPtrOutput { return o.ApplyT(func(v EndpointDeliveryRule) *EndpointDeliveryRuleCacheExpirationAction { return v.CacheExpirationAction }).(EndpointDeliveryRuleCacheExpirationActionPtrOutput) } // A `cacheKeyQueryStringAction` block as defined above. func (o EndpointDeliveryRuleOutput) CacheKeyQueryStringAction() EndpointDeliveryRuleCacheKeyQueryStringActionPtrOutput { return o.ApplyT(func(v EndpointDeliveryRule) *EndpointDeliveryRuleCacheKeyQueryStringAction { return v.CacheKeyQueryStringAction }).(EndpointDeliveryRuleCacheKeyQueryStringActionPtrOutput) } // A `cookiesCondition` block as defined above. func (o EndpointDeliveryRuleOutput) CookiesConditions() EndpointDeliveryRuleCookiesConditionArrayOutput { return o.ApplyT(func(v EndpointDeliveryRule) []EndpointDeliveryRuleCookiesCondition { return v.CookiesConditions }).(EndpointDeliveryRuleCookiesConditionArrayOutput) } // A `deviceCondition` block as defined below. func (o EndpointDeliveryRuleOutput) DeviceCondition() EndpointDeliveryRuleDeviceConditionPtrOutput { return o.ApplyT(func(v EndpointDeliveryRule) *EndpointDeliveryRuleDeviceCondition { return v.DeviceCondition }).(EndpointDeliveryRuleDeviceConditionPtrOutput) } // A `httpVersionCondition` block as defined below. func (o EndpointDeliveryRuleOutput) HttpVersionConditions() EndpointDeliveryRuleHttpVersionConditionArrayOutput { return o.ApplyT(func(v EndpointDeliveryRule) []EndpointDeliveryRuleHttpVersionCondition { return v.HttpVersionConditions }).(EndpointDeliveryRuleHttpVersionConditionArrayOutput) } // A `modifyRequestHeaderAction` block as defined below. func (o EndpointDeliveryRuleOutput) ModifyRequestHeaderActions() EndpointDeliveryRuleModifyRequestHeaderActionArrayOutput { return o.ApplyT(func(v EndpointDeliveryRule) []EndpointDeliveryRuleModifyRequestHeaderAction { return v.ModifyRequestHeaderActions }).(EndpointDeliveryRuleModifyRequestHeaderActionArrayOutput) } // A `modifyResponseHeaderAction` block as defined below. func (o EndpointDeliveryRuleOutput) ModifyResponseHeaderActions() EndpointDeliveryRuleModifyResponseHeaderActionArrayOutput { return o.ApplyT(func(v EndpointDeliveryRule) []EndpointDeliveryRuleModifyResponseHeaderAction { return v.ModifyResponseHeaderActions }).(EndpointDeliveryRuleModifyResponseHeaderActionArrayOutput) } // The Name which should be used for this Delivery Rule. func (o EndpointDeliveryRuleOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v EndpointDeliveryRule) string { return v.Name }).(pulumi.StringOutput) } // The order used for this rule. The order values should be sequential and begin at `1`. func (o EndpointDeliveryRuleOutput) Order() pulumi.IntOutput { return o.ApplyT(func(v EndpointDeliveryRule) int { return v.Order }).(pulumi.IntOutput) } // A `postArgCondition` block as defined below. func (o EndpointDeliveryRuleOutput) PostArgConditions() EndpointDeliveryRulePostArgConditionArrayOutput { return o.ApplyT(func(v EndpointDeliveryRule) []EndpointDeliveryRulePostArgCondition { return v.PostArgConditions }).(EndpointDeliveryRulePostArgConditionArrayOutput) } // A `queryStringCondition` block as defined below. func (o EndpointDeliveryRuleOutput) QueryStringConditions() EndpointDeliveryRuleQueryStringConditionArrayOutput { return o.ApplyT(func(v EndpointDeliveryRule) []EndpointDeliveryRuleQueryStringCondition { return v.QueryStringConditions }).(EndpointDeliveryRuleQueryStringConditionArrayOutput) } // A `remoteAddressCondition` block as defined below. func (o EndpointDeliveryRuleOutput) RemoteAddressConditions() EndpointDeliveryRuleRemoteAddressConditionArrayOutput { return o.ApplyT(func(v EndpointDeliveryRule) []EndpointDeliveryRuleRemoteAddressCondition { return v.RemoteAddressConditions }).(EndpointDeliveryRuleRemoteAddressConditionArrayOutput) } // A `requestBodyCondition` block as defined below. func (o EndpointDeliveryRuleOutput) RequestBodyConditions() EndpointDeliveryRuleRequestBodyConditionArrayOutput { return o.ApplyT(func(v EndpointDeliveryRule) []EndpointDeliveryRuleRequestBodyCondition { return v.RequestBodyConditions }).(EndpointDeliveryRuleRequestBodyConditionArrayOutput) } // A `requestHeaderCondition` block as defined below. func (o EndpointDeliveryRuleOutput) RequestHeaderConditions() EndpointDeliveryRuleRequestHeaderConditionArrayOutput {
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/cdn/frontdoorOriginGroup.go
sdk/go/azure/cdn/frontdoorOriginGroup.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 cdn import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a Front Door (standard/premium) Origin Group. // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/cdn" // "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-cdn-frontdoor"), // Location: pulumi.String("West Europe"), // }) // if err != nil { // return err // } // exampleFrontdoorProfile, err := cdn.NewFrontdoorProfile(ctx, "example", &cdn.FrontdoorProfileArgs{ // Name: pulumi.String("example-profile"), // ResourceGroupName: example.Name, // SkuName: pulumi.String("Standard_AzureFrontDoor"), // }) // if err != nil { // return err // } // _, err = cdn.NewFrontdoorOriginGroup(ctx, "example", &cdn.FrontdoorOriginGroupArgs{ // Name: pulumi.String("example-origin-group"), // CdnFrontdoorProfileId: exampleFrontdoorProfile.ID(), // SessionAffinityEnabled: pulumi.Bool(true), // RestoreTrafficTimeToHealedOrNewEndpointInMinutes: pulumi.Int(10), // HealthProbe: &cdn.FrontdoorOriginGroupHealthProbeArgs{ // IntervalInSeconds: pulumi.Int(240), // Path: pulumi.String("/healthProbe"), // Protocol: pulumi.String("Https"), // RequestType: pulumi.String("HEAD"), // }, // LoadBalancing: &cdn.FrontdoorOriginGroupLoadBalancingArgs{ // AdditionalLatencyInMilliseconds: pulumi.Int(0), // SampleSize: pulumi.Int(16), // SuccessfulSamplesRequired: pulumi.Int(3), // }, // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## Import // // Front Door Origin Groups can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:cdn/frontdoorOriginGroup:FrontdoorOriginGroup example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/Microsoft.Cdn/profiles/profile1/originGroups/originGroup1 // ``` type FrontdoorOriginGroup struct { pulumi.CustomResourceState // The ID of the Front Door Profile within which this Front Door Origin Group should exist. Changing this forces a new Front Door Origin Group to be created. CdnFrontdoorProfileId pulumi.StringOutput `pulumi:"cdnFrontdoorProfileId"` // A `healthProbe` block as defined below. HealthProbe FrontdoorOriginGroupHealthProbePtrOutput `pulumi:"healthProbe"` // A `loadBalancing` block as defined below. LoadBalancing FrontdoorOriginGroupLoadBalancingOutput `pulumi:"loadBalancing"` // The name which should be used for this Front Door Origin Group. Changing this forces a new Front Door Origin Group to be created. Name pulumi.StringOutput `pulumi:"name"` // Specifies the amount of time which should elapse before shifting traffic to another endpoint when a healthy endpoint becomes unhealthy or a new endpoint is added. Possible values are between `0` and `50` minutes (inclusive). Default is `10` minutes. // // > **Note:** This property is currently not used, but will be in the near future. RestoreTrafficTimeToHealedOrNewEndpointInMinutes pulumi.IntPtrOutput `pulumi:"restoreTrafficTimeToHealedOrNewEndpointInMinutes"` // Specifies whether session affinity should be enabled on this host. Defaults to `true`. SessionAffinityEnabled pulumi.BoolPtrOutput `pulumi:"sessionAffinityEnabled"` } // NewFrontdoorOriginGroup registers a new resource with the given unique name, arguments, and options. func NewFrontdoorOriginGroup(ctx *pulumi.Context, name string, args *FrontdoorOriginGroupArgs, opts ...pulumi.ResourceOption) (*FrontdoorOriginGroup, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.CdnFrontdoorProfileId == nil { return nil, errors.New("invalid value for required argument 'CdnFrontdoorProfileId'") } if args.LoadBalancing == nil { return nil, errors.New("invalid value for required argument 'LoadBalancing'") } opts = internal.PkgResourceDefaultOpts(opts) var resource FrontdoorOriginGroup err := ctx.RegisterResource("azure:cdn/frontdoorOriginGroup:FrontdoorOriginGroup", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetFrontdoorOriginGroup gets an existing FrontdoorOriginGroup 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 GetFrontdoorOriginGroup(ctx *pulumi.Context, name string, id pulumi.IDInput, state *FrontdoorOriginGroupState, opts ...pulumi.ResourceOption) (*FrontdoorOriginGroup, error) { var resource FrontdoorOriginGroup err := ctx.ReadResource("azure:cdn/frontdoorOriginGroup:FrontdoorOriginGroup", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering FrontdoorOriginGroup resources. type frontdoorOriginGroupState struct { // The ID of the Front Door Profile within which this Front Door Origin Group should exist. Changing this forces a new Front Door Origin Group to be created. CdnFrontdoorProfileId *string `pulumi:"cdnFrontdoorProfileId"` // A `healthProbe` block as defined below. HealthProbe *FrontdoorOriginGroupHealthProbe `pulumi:"healthProbe"` // A `loadBalancing` block as defined below. LoadBalancing *FrontdoorOriginGroupLoadBalancing `pulumi:"loadBalancing"` // The name which should be used for this Front Door Origin Group. Changing this forces a new Front Door Origin Group to be created. Name *string `pulumi:"name"` // Specifies the amount of time which should elapse before shifting traffic to another endpoint when a healthy endpoint becomes unhealthy or a new endpoint is added. Possible values are between `0` and `50` minutes (inclusive). Default is `10` minutes. // // > **Note:** This property is currently not used, but will be in the near future. RestoreTrafficTimeToHealedOrNewEndpointInMinutes *int `pulumi:"restoreTrafficTimeToHealedOrNewEndpointInMinutes"` // Specifies whether session affinity should be enabled on this host. Defaults to `true`. SessionAffinityEnabled *bool `pulumi:"sessionAffinityEnabled"` } type FrontdoorOriginGroupState struct { // The ID of the Front Door Profile within which this Front Door Origin Group should exist. Changing this forces a new Front Door Origin Group to be created. CdnFrontdoorProfileId pulumi.StringPtrInput // A `healthProbe` block as defined below. HealthProbe FrontdoorOriginGroupHealthProbePtrInput // A `loadBalancing` block as defined below. LoadBalancing FrontdoorOriginGroupLoadBalancingPtrInput // The name which should be used for this Front Door Origin Group. Changing this forces a new Front Door Origin Group to be created. Name pulumi.StringPtrInput // Specifies the amount of time which should elapse before shifting traffic to another endpoint when a healthy endpoint becomes unhealthy or a new endpoint is added. Possible values are between `0` and `50` minutes (inclusive). Default is `10` minutes. // // > **Note:** This property is currently not used, but will be in the near future. RestoreTrafficTimeToHealedOrNewEndpointInMinutes pulumi.IntPtrInput // Specifies whether session affinity should be enabled on this host. Defaults to `true`. SessionAffinityEnabled pulumi.BoolPtrInput } func (FrontdoorOriginGroupState) ElementType() reflect.Type { return reflect.TypeOf((*frontdoorOriginGroupState)(nil)).Elem() } type frontdoorOriginGroupArgs struct { // The ID of the Front Door Profile within which this Front Door Origin Group should exist. Changing this forces a new Front Door Origin Group to be created. CdnFrontdoorProfileId string `pulumi:"cdnFrontdoorProfileId"` // A `healthProbe` block as defined below. HealthProbe *FrontdoorOriginGroupHealthProbe `pulumi:"healthProbe"` // A `loadBalancing` block as defined below. LoadBalancing FrontdoorOriginGroupLoadBalancing `pulumi:"loadBalancing"` // The name which should be used for this Front Door Origin Group. Changing this forces a new Front Door Origin Group to be created. Name *string `pulumi:"name"` // Specifies the amount of time which should elapse before shifting traffic to another endpoint when a healthy endpoint becomes unhealthy or a new endpoint is added. Possible values are between `0` and `50` minutes (inclusive). Default is `10` minutes. // // > **Note:** This property is currently not used, but will be in the near future. RestoreTrafficTimeToHealedOrNewEndpointInMinutes *int `pulumi:"restoreTrafficTimeToHealedOrNewEndpointInMinutes"` // Specifies whether session affinity should be enabled on this host. Defaults to `true`. SessionAffinityEnabled *bool `pulumi:"sessionAffinityEnabled"` } // The set of arguments for constructing a FrontdoorOriginGroup resource. type FrontdoorOriginGroupArgs struct { // The ID of the Front Door Profile within which this Front Door Origin Group should exist. Changing this forces a new Front Door Origin Group to be created. CdnFrontdoorProfileId pulumi.StringInput // A `healthProbe` block as defined below. HealthProbe FrontdoorOriginGroupHealthProbePtrInput // A `loadBalancing` block as defined below. LoadBalancing FrontdoorOriginGroupLoadBalancingInput // The name which should be used for this Front Door Origin Group. Changing this forces a new Front Door Origin Group to be created. Name pulumi.StringPtrInput // Specifies the amount of time which should elapse before shifting traffic to another endpoint when a healthy endpoint becomes unhealthy or a new endpoint is added. Possible values are between `0` and `50` minutes (inclusive). Default is `10` minutes. // // > **Note:** This property is currently not used, but will be in the near future. RestoreTrafficTimeToHealedOrNewEndpointInMinutes pulumi.IntPtrInput // Specifies whether session affinity should be enabled on this host. Defaults to `true`. SessionAffinityEnabled pulumi.BoolPtrInput } func (FrontdoorOriginGroupArgs) ElementType() reflect.Type { return reflect.TypeOf((*frontdoorOriginGroupArgs)(nil)).Elem() } type FrontdoorOriginGroupInput interface { pulumi.Input ToFrontdoorOriginGroupOutput() FrontdoorOriginGroupOutput ToFrontdoorOriginGroupOutputWithContext(ctx context.Context) FrontdoorOriginGroupOutput } func (*FrontdoorOriginGroup) ElementType() reflect.Type { return reflect.TypeOf((**FrontdoorOriginGroup)(nil)).Elem() } func (i *FrontdoorOriginGroup) ToFrontdoorOriginGroupOutput() FrontdoorOriginGroupOutput { return i.ToFrontdoorOriginGroupOutputWithContext(context.Background()) } func (i *FrontdoorOriginGroup) ToFrontdoorOriginGroupOutputWithContext(ctx context.Context) FrontdoorOriginGroupOutput { return pulumi.ToOutputWithContext(ctx, i).(FrontdoorOriginGroupOutput) } // FrontdoorOriginGroupArrayInput is an input type that accepts FrontdoorOriginGroupArray and FrontdoorOriginGroupArrayOutput values. // You can construct a concrete instance of `FrontdoorOriginGroupArrayInput` via: // // FrontdoorOriginGroupArray{ FrontdoorOriginGroupArgs{...} } type FrontdoorOriginGroupArrayInput interface { pulumi.Input ToFrontdoorOriginGroupArrayOutput() FrontdoorOriginGroupArrayOutput ToFrontdoorOriginGroupArrayOutputWithContext(context.Context) FrontdoorOriginGroupArrayOutput } type FrontdoorOriginGroupArray []FrontdoorOriginGroupInput func (FrontdoorOriginGroupArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*FrontdoorOriginGroup)(nil)).Elem() } func (i FrontdoorOriginGroupArray) ToFrontdoorOriginGroupArrayOutput() FrontdoorOriginGroupArrayOutput { return i.ToFrontdoorOriginGroupArrayOutputWithContext(context.Background()) } func (i FrontdoorOriginGroupArray) ToFrontdoorOriginGroupArrayOutputWithContext(ctx context.Context) FrontdoorOriginGroupArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(FrontdoorOriginGroupArrayOutput) } // FrontdoorOriginGroupMapInput is an input type that accepts FrontdoorOriginGroupMap and FrontdoorOriginGroupMapOutput values. // You can construct a concrete instance of `FrontdoorOriginGroupMapInput` via: // // FrontdoorOriginGroupMap{ "key": FrontdoorOriginGroupArgs{...} } type FrontdoorOriginGroupMapInput interface { pulumi.Input ToFrontdoorOriginGroupMapOutput() FrontdoorOriginGroupMapOutput ToFrontdoorOriginGroupMapOutputWithContext(context.Context) FrontdoorOriginGroupMapOutput } type FrontdoorOriginGroupMap map[string]FrontdoorOriginGroupInput func (FrontdoorOriginGroupMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*FrontdoorOriginGroup)(nil)).Elem() } func (i FrontdoorOriginGroupMap) ToFrontdoorOriginGroupMapOutput() FrontdoorOriginGroupMapOutput { return i.ToFrontdoorOriginGroupMapOutputWithContext(context.Background()) } func (i FrontdoorOriginGroupMap) ToFrontdoorOriginGroupMapOutputWithContext(ctx context.Context) FrontdoorOriginGroupMapOutput { return pulumi.ToOutputWithContext(ctx, i).(FrontdoorOriginGroupMapOutput) } type FrontdoorOriginGroupOutput struct{ *pulumi.OutputState } func (FrontdoorOriginGroupOutput) ElementType() reflect.Type { return reflect.TypeOf((**FrontdoorOriginGroup)(nil)).Elem() } func (o FrontdoorOriginGroupOutput) ToFrontdoorOriginGroupOutput() FrontdoorOriginGroupOutput { return o } func (o FrontdoorOriginGroupOutput) ToFrontdoorOriginGroupOutputWithContext(ctx context.Context) FrontdoorOriginGroupOutput { return o } // The ID of the Front Door Profile within which this Front Door Origin Group should exist. Changing this forces a new Front Door Origin Group to be created. func (o FrontdoorOriginGroupOutput) CdnFrontdoorProfileId() pulumi.StringOutput { return o.ApplyT(func(v *FrontdoorOriginGroup) pulumi.StringOutput { return v.CdnFrontdoorProfileId }).(pulumi.StringOutput) } // A `healthProbe` block as defined below. func (o FrontdoorOriginGroupOutput) HealthProbe() FrontdoorOriginGroupHealthProbePtrOutput { return o.ApplyT(func(v *FrontdoorOriginGroup) FrontdoorOriginGroupHealthProbePtrOutput { return v.HealthProbe }).(FrontdoorOriginGroupHealthProbePtrOutput) } // A `loadBalancing` block as defined below. func (o FrontdoorOriginGroupOutput) LoadBalancing() FrontdoorOriginGroupLoadBalancingOutput { return o.ApplyT(func(v *FrontdoorOriginGroup) FrontdoorOriginGroupLoadBalancingOutput { return v.LoadBalancing }).(FrontdoorOriginGroupLoadBalancingOutput) } // The name which should be used for this Front Door Origin Group. Changing this forces a new Front Door Origin Group to be created. func (o FrontdoorOriginGroupOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *FrontdoorOriginGroup) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // Specifies the amount of time which should elapse before shifting traffic to another endpoint when a healthy endpoint becomes unhealthy or a new endpoint is added. Possible values are between `0` and `50` minutes (inclusive). Default is `10` minutes. // // > **Note:** This property is currently not used, but will be in the near future. func (o FrontdoorOriginGroupOutput) RestoreTrafficTimeToHealedOrNewEndpointInMinutes() pulumi.IntPtrOutput { return o.ApplyT(func(v *FrontdoorOriginGroup) pulumi.IntPtrOutput { return v.RestoreTrafficTimeToHealedOrNewEndpointInMinutes }).(pulumi.IntPtrOutput) } // Specifies whether session affinity should be enabled on this host. Defaults to `true`. func (o FrontdoorOriginGroupOutput) SessionAffinityEnabled() pulumi.BoolPtrOutput { return o.ApplyT(func(v *FrontdoorOriginGroup) pulumi.BoolPtrOutput { return v.SessionAffinityEnabled }).(pulumi.BoolPtrOutput) } type FrontdoorOriginGroupArrayOutput struct{ *pulumi.OutputState } func (FrontdoorOriginGroupArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*FrontdoorOriginGroup)(nil)).Elem() } func (o FrontdoorOriginGroupArrayOutput) ToFrontdoorOriginGroupArrayOutput() FrontdoorOriginGroupArrayOutput { return o } func (o FrontdoorOriginGroupArrayOutput) ToFrontdoorOriginGroupArrayOutputWithContext(ctx context.Context) FrontdoorOriginGroupArrayOutput { return o } func (o FrontdoorOriginGroupArrayOutput) Index(i pulumi.IntInput) FrontdoorOriginGroupOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *FrontdoorOriginGroup { return vs[0].([]*FrontdoorOriginGroup)[vs[1].(int)] }).(FrontdoorOriginGroupOutput) } type FrontdoorOriginGroupMapOutput struct{ *pulumi.OutputState } func (FrontdoorOriginGroupMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*FrontdoorOriginGroup)(nil)).Elem() } func (o FrontdoorOriginGroupMapOutput) ToFrontdoorOriginGroupMapOutput() FrontdoorOriginGroupMapOutput { return o } func (o FrontdoorOriginGroupMapOutput) ToFrontdoorOriginGroupMapOutputWithContext(ctx context.Context) FrontdoorOriginGroupMapOutput { return o } func (o FrontdoorOriginGroupMapOutput) MapIndex(k pulumi.StringInput) FrontdoorOriginGroupOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *FrontdoorOriginGroup { return vs[0].(map[string]*FrontdoorOriginGroup)[vs[1].(string)] }).(FrontdoorOriginGroupOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*FrontdoorOriginGroupInput)(nil)).Elem(), &FrontdoorOriginGroup{}) pulumi.RegisterInputType(reflect.TypeOf((*FrontdoorOriginGroupArrayInput)(nil)).Elem(), FrontdoorOriginGroupArray{}) pulumi.RegisterInputType(reflect.TypeOf((*FrontdoorOriginGroupMapInput)(nil)).Elem(), FrontdoorOriginGroupMap{}) pulumi.RegisterOutputType(FrontdoorOriginGroupOutput{}) pulumi.RegisterOutputType(FrontdoorOriginGroupArrayOutput{}) pulumi.RegisterOutputType(FrontdoorOriginGroupMapOutput{}) }
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/cdn/frontdoorCustomDomainAssociation.go
sdk/go/azure/cdn/frontdoorCustomDomainAssociation.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 cdn import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages the association between a Front Door (standard/premium) Custom Domain and one or more Front Door (standard/premium) Routes. // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/cdn" // "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 { // example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{ // Name: pulumi.String("example-cdn-frontdoor"), // Location: pulumi.String("West Europe"), // }) // if err != nil { // return err // } // exampleZone, err := dns.NewZone(ctx, "example", &dns.ZoneArgs{ // Name: pulumi.String("domain.com"), // ResourceGroupName: example.Name, // }) // if err != nil { // return err // } // exampleFrontdoorProfile, err := cdn.NewFrontdoorProfile(ctx, "example", &cdn.FrontdoorProfileArgs{ // Name: pulumi.String("example-profile"), // ResourceGroupName: example.Name, // SkuName: pulumi.String("Standard_AzureFrontDoor"), // }) // if err != nil { // return err // } // exampleFrontdoorOriginGroup, err := cdn.NewFrontdoorOriginGroup(ctx, "example", &cdn.FrontdoorOriginGroupArgs{ // Name: pulumi.String("example-origin-group"), // CdnFrontdoorProfileId: exampleFrontdoorProfile.ID(), // SessionAffinityEnabled: pulumi.Bool(true), // RestoreTrafficTimeToHealedOrNewEndpointInMinutes: pulumi.Int(10), // HealthProbe: &cdn.FrontdoorOriginGroupHealthProbeArgs{ // IntervalInSeconds: pulumi.Int(240), // Path: pulumi.String("/healthProbe"), // Protocol: pulumi.String("Https"), // RequestType: pulumi.String("HEAD"), // }, // LoadBalancing: &cdn.FrontdoorOriginGroupLoadBalancingArgs{ // AdditionalLatencyInMilliseconds: pulumi.Int(0), // SampleSize: pulumi.Int(16), // SuccessfulSamplesRequired: pulumi.Int(3), // }, // }) // if err != nil { // return err // } // exampleFrontdoorOrigin, err := cdn.NewFrontdoorOrigin(ctx, "example", &cdn.FrontdoorOriginArgs{ // Name: pulumi.String("example-origin"), // CdnFrontdoorOriginGroupId: exampleFrontdoorOriginGroup.ID(), // Enabled: pulumi.Bool(true), // CertificateNameCheckEnabled: pulumi.Bool(false), // HostName: pulumi.String("contoso.com"), // HttpPort: pulumi.Int(80), // HttpsPort: pulumi.Int(443), // OriginHostHeader: pulumi.String("www.contoso.com"), // Priority: pulumi.Int(1), // Weight: pulumi.Int(1), // }) // if err != nil { // return err // } // exampleFrontdoorEndpoint, err := cdn.NewFrontdoorEndpoint(ctx, "example", &cdn.FrontdoorEndpointArgs{ // Name: pulumi.String("example-endpoint"), // CdnFrontdoorProfileId: exampleFrontdoorProfile.ID(), // }) // if err != nil { // return err // } // exampleFrontdoorRuleSet, err := cdn.NewFrontdoorRuleSet(ctx, "example", &cdn.FrontdoorRuleSetArgs{ // Name: pulumi.String("ExampleRuleSet"), // CdnFrontdoorProfileId: exampleFrontdoorProfile.ID(), // }) // if err != nil { // return err // } // exampleFrontdoorCustomDomain, err := cdn.NewFrontdoorCustomDomain(ctx, "example", &cdn.FrontdoorCustomDomainArgs{ // Name: pulumi.String("example-customDomain"), // CdnFrontdoorProfileId: exampleFrontdoorProfile.ID(), // DnsZoneId: exampleZone.ID(), // HostName: pulumi.String(std.JoinOutput(ctx, std.JoinOutputArgs{ // Separator: pulumi.String("."), // Input: pulumi.StringArray{ // pulumi.String("contoso"), // exampleZone.Name, // }, // }, nil).ApplyT(func(invoke std.JoinResult) (*string, error) { // return invoke.Result, nil // }).(pulumi.StringPtrOutput)), // Tls: &cdn.FrontdoorCustomDomainTlsArgs{ // CertificateType: pulumi.String("ManagedCertificate"), // MinimumTlsVersion: pulumi.String("TLS12"), // }, // }) // if err != nil { // return err // } // exampleFrontdoorRoute, err := cdn.NewFrontdoorRoute(ctx, "example", &cdn.FrontdoorRouteArgs{ // Name: pulumi.String("example-route"), // CdnFrontdoorEndpointId: exampleFrontdoorEndpoint.ID(), // CdnFrontdoorOriginGroupId: exampleFrontdoorOriginGroup.ID(), // CdnFrontdoorOriginIds: pulumi.StringArray{ // exampleFrontdoorOrigin.ID(), // }, // CdnFrontdoorRuleSetIds: pulumi.StringArray{ // exampleFrontdoorRuleSet.ID(), // }, // Enabled: pulumi.Bool(true), // ForwardingProtocol: pulumi.String("HttpsOnly"), // HttpsRedirectEnabled: pulumi.Bool(true), // PatternsToMatches: pulumi.StringArray{ // pulumi.String("/*"), // }, // SupportedProtocols: pulumi.StringArray{ // pulumi.String("Http"), // pulumi.String("Https"), // }, // CdnFrontdoorCustomDomainIds: pulumi.StringArray{ // exampleFrontdoorCustomDomain.ID(), // }, // LinkToDefaultDomain: pulumi.Bool(false), // }) // if err != nil { // return err // } // _, err = cdn.NewFrontdoorCustomDomainAssociation(ctx, "example", &cdn.FrontdoorCustomDomainAssociationArgs{ // CdnFrontdoorCustomDomainId: exampleFrontdoorCustomDomain.ID(), // CdnFrontdoorRouteIds: pulumi.StringArray{ // exampleFrontdoorRoute.ID(), // }, // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## Import // // Front Door Custom Domain Associations can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:cdn/frontdoorCustomDomainAssociation:FrontdoorCustomDomainAssociation example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/Microsoft.Cdn/profiles/profile1/associations/assoc1 // ``` type FrontdoorCustomDomainAssociation struct { pulumi.CustomResourceState // The ID of the Front Door Custom Domain that should be managed by the association resource. Changing this forces a new association resource to be created. CdnFrontdoorCustomDomainId pulumi.StringOutput `pulumi:"cdnFrontdoorCustomDomainId"` // One or more IDs of the Front Door Route to which the Front Door Custom Domain is associated with. // // > **Note:** This should include all of the Front Door Route resources that the Front Door Custom Domain is associated with. If the list of Front Door Routes is not complete you will receive the service side error `This resource is still associated with a route. Please delete the association with the route first before deleting this resource` when you attempt to `destroy`/`delete` your Front Door Custom Domain. CdnFrontdoorRouteIds pulumi.StringArrayOutput `pulumi:"cdnFrontdoorRouteIds"` } // NewFrontdoorCustomDomainAssociation registers a new resource with the given unique name, arguments, and options. func NewFrontdoorCustomDomainAssociation(ctx *pulumi.Context, name string, args *FrontdoorCustomDomainAssociationArgs, opts ...pulumi.ResourceOption) (*FrontdoorCustomDomainAssociation, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.CdnFrontdoorCustomDomainId == nil { return nil, errors.New("invalid value for required argument 'CdnFrontdoorCustomDomainId'") } if args.CdnFrontdoorRouteIds == nil { return nil, errors.New("invalid value for required argument 'CdnFrontdoorRouteIds'") } opts = internal.PkgResourceDefaultOpts(opts) var resource FrontdoorCustomDomainAssociation err := ctx.RegisterResource("azure:cdn/frontdoorCustomDomainAssociation:FrontdoorCustomDomainAssociation", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetFrontdoorCustomDomainAssociation gets an existing FrontdoorCustomDomainAssociation 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 GetFrontdoorCustomDomainAssociation(ctx *pulumi.Context, name string, id pulumi.IDInput, state *FrontdoorCustomDomainAssociationState, opts ...pulumi.ResourceOption) (*FrontdoorCustomDomainAssociation, error) { var resource FrontdoorCustomDomainAssociation err := ctx.ReadResource("azure:cdn/frontdoorCustomDomainAssociation:FrontdoorCustomDomainAssociation", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering FrontdoorCustomDomainAssociation resources. type frontdoorCustomDomainAssociationState struct { // The ID of the Front Door Custom Domain that should be managed by the association resource. Changing this forces a new association resource to be created. CdnFrontdoorCustomDomainId *string `pulumi:"cdnFrontdoorCustomDomainId"` // One or more IDs of the Front Door Route to which the Front Door Custom Domain is associated with. // // > **Note:** This should include all of the Front Door Route resources that the Front Door Custom Domain is associated with. If the list of Front Door Routes is not complete you will receive the service side error `This resource is still associated with a route. Please delete the association with the route first before deleting this resource` when you attempt to `destroy`/`delete` your Front Door Custom Domain. CdnFrontdoorRouteIds []string `pulumi:"cdnFrontdoorRouteIds"` } type FrontdoorCustomDomainAssociationState struct { // The ID of the Front Door Custom Domain that should be managed by the association resource. Changing this forces a new association resource to be created. CdnFrontdoorCustomDomainId pulumi.StringPtrInput // One or more IDs of the Front Door Route to which the Front Door Custom Domain is associated with. // // > **Note:** This should include all of the Front Door Route resources that the Front Door Custom Domain is associated with. If the list of Front Door Routes is not complete you will receive the service side error `This resource is still associated with a route. Please delete the association with the route first before deleting this resource` when you attempt to `destroy`/`delete` your Front Door Custom Domain. CdnFrontdoorRouteIds pulumi.StringArrayInput } func (FrontdoorCustomDomainAssociationState) ElementType() reflect.Type { return reflect.TypeOf((*frontdoorCustomDomainAssociationState)(nil)).Elem() } type frontdoorCustomDomainAssociationArgs struct { // The ID of the Front Door Custom Domain that should be managed by the association resource. Changing this forces a new association resource to be created. CdnFrontdoorCustomDomainId string `pulumi:"cdnFrontdoorCustomDomainId"` // One or more IDs of the Front Door Route to which the Front Door Custom Domain is associated with. // // > **Note:** This should include all of the Front Door Route resources that the Front Door Custom Domain is associated with. If the list of Front Door Routes is not complete you will receive the service side error `This resource is still associated with a route. Please delete the association with the route first before deleting this resource` when you attempt to `destroy`/`delete` your Front Door Custom Domain. CdnFrontdoorRouteIds []string `pulumi:"cdnFrontdoorRouteIds"` } // The set of arguments for constructing a FrontdoorCustomDomainAssociation resource. type FrontdoorCustomDomainAssociationArgs struct { // The ID of the Front Door Custom Domain that should be managed by the association resource. Changing this forces a new association resource to be created. CdnFrontdoorCustomDomainId pulumi.StringInput // One or more IDs of the Front Door Route to which the Front Door Custom Domain is associated with. // // > **Note:** This should include all of the Front Door Route resources that the Front Door Custom Domain is associated with. If the list of Front Door Routes is not complete you will receive the service side error `This resource is still associated with a route. Please delete the association with the route first before deleting this resource` when you attempt to `destroy`/`delete` your Front Door Custom Domain. CdnFrontdoorRouteIds pulumi.StringArrayInput } func (FrontdoorCustomDomainAssociationArgs) ElementType() reflect.Type { return reflect.TypeOf((*frontdoorCustomDomainAssociationArgs)(nil)).Elem() } type FrontdoorCustomDomainAssociationInput interface { pulumi.Input ToFrontdoorCustomDomainAssociationOutput() FrontdoorCustomDomainAssociationOutput ToFrontdoorCustomDomainAssociationOutputWithContext(ctx context.Context) FrontdoorCustomDomainAssociationOutput } func (*FrontdoorCustomDomainAssociation) ElementType() reflect.Type { return reflect.TypeOf((**FrontdoorCustomDomainAssociation)(nil)).Elem() } func (i *FrontdoorCustomDomainAssociation) ToFrontdoorCustomDomainAssociationOutput() FrontdoorCustomDomainAssociationOutput { return i.ToFrontdoorCustomDomainAssociationOutputWithContext(context.Background()) } func (i *FrontdoorCustomDomainAssociation) ToFrontdoorCustomDomainAssociationOutputWithContext(ctx context.Context) FrontdoorCustomDomainAssociationOutput { return pulumi.ToOutputWithContext(ctx, i).(FrontdoorCustomDomainAssociationOutput) } // FrontdoorCustomDomainAssociationArrayInput is an input type that accepts FrontdoorCustomDomainAssociationArray and FrontdoorCustomDomainAssociationArrayOutput values. // You can construct a concrete instance of `FrontdoorCustomDomainAssociationArrayInput` via: // // FrontdoorCustomDomainAssociationArray{ FrontdoorCustomDomainAssociationArgs{...} } type FrontdoorCustomDomainAssociationArrayInput interface { pulumi.Input ToFrontdoorCustomDomainAssociationArrayOutput() FrontdoorCustomDomainAssociationArrayOutput ToFrontdoorCustomDomainAssociationArrayOutputWithContext(context.Context) FrontdoorCustomDomainAssociationArrayOutput } type FrontdoorCustomDomainAssociationArray []FrontdoorCustomDomainAssociationInput func (FrontdoorCustomDomainAssociationArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*FrontdoorCustomDomainAssociation)(nil)).Elem() } func (i FrontdoorCustomDomainAssociationArray) ToFrontdoorCustomDomainAssociationArrayOutput() FrontdoorCustomDomainAssociationArrayOutput { return i.ToFrontdoorCustomDomainAssociationArrayOutputWithContext(context.Background()) } func (i FrontdoorCustomDomainAssociationArray) ToFrontdoorCustomDomainAssociationArrayOutputWithContext(ctx context.Context) FrontdoorCustomDomainAssociationArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(FrontdoorCustomDomainAssociationArrayOutput) } // FrontdoorCustomDomainAssociationMapInput is an input type that accepts FrontdoorCustomDomainAssociationMap and FrontdoorCustomDomainAssociationMapOutput values. // You can construct a concrete instance of `FrontdoorCustomDomainAssociationMapInput` via: // // FrontdoorCustomDomainAssociationMap{ "key": FrontdoorCustomDomainAssociationArgs{...} } type FrontdoorCustomDomainAssociationMapInput interface { pulumi.Input ToFrontdoorCustomDomainAssociationMapOutput() FrontdoorCustomDomainAssociationMapOutput ToFrontdoorCustomDomainAssociationMapOutputWithContext(context.Context) FrontdoorCustomDomainAssociationMapOutput } type FrontdoorCustomDomainAssociationMap map[string]FrontdoorCustomDomainAssociationInput func (FrontdoorCustomDomainAssociationMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*FrontdoorCustomDomainAssociation)(nil)).Elem() } func (i FrontdoorCustomDomainAssociationMap) ToFrontdoorCustomDomainAssociationMapOutput() FrontdoorCustomDomainAssociationMapOutput { return i.ToFrontdoorCustomDomainAssociationMapOutputWithContext(context.Background()) } func (i FrontdoorCustomDomainAssociationMap) ToFrontdoorCustomDomainAssociationMapOutputWithContext(ctx context.Context) FrontdoorCustomDomainAssociationMapOutput { return pulumi.ToOutputWithContext(ctx, i).(FrontdoorCustomDomainAssociationMapOutput) } type FrontdoorCustomDomainAssociationOutput struct{ *pulumi.OutputState } func (FrontdoorCustomDomainAssociationOutput) ElementType() reflect.Type { return reflect.TypeOf((**FrontdoorCustomDomainAssociation)(nil)).Elem() } func (o FrontdoorCustomDomainAssociationOutput) ToFrontdoorCustomDomainAssociationOutput() FrontdoorCustomDomainAssociationOutput { return o } func (o FrontdoorCustomDomainAssociationOutput) ToFrontdoorCustomDomainAssociationOutputWithContext(ctx context.Context) FrontdoorCustomDomainAssociationOutput { return o } // The ID of the Front Door Custom Domain that should be managed by the association resource. Changing this forces a new association resource to be created. func (o FrontdoorCustomDomainAssociationOutput) CdnFrontdoorCustomDomainId() pulumi.StringOutput { return o.ApplyT(func(v *FrontdoorCustomDomainAssociation) pulumi.StringOutput { return v.CdnFrontdoorCustomDomainId }).(pulumi.StringOutput) } // One or more IDs of the Front Door Route to which the Front Door Custom Domain is associated with. // // > **Note:** This should include all of the Front Door Route resources that the Front Door Custom Domain is associated with. If the list of Front Door Routes is not complete you will receive the service side error `This resource is still associated with a route. Please delete the association with the route first before deleting this resource` when you attempt to `destroy`/`delete` your Front Door Custom Domain. func (o FrontdoorCustomDomainAssociationOutput) CdnFrontdoorRouteIds() pulumi.StringArrayOutput { return o.ApplyT(func(v *FrontdoorCustomDomainAssociation) pulumi.StringArrayOutput { return v.CdnFrontdoorRouteIds }).(pulumi.StringArrayOutput) } type FrontdoorCustomDomainAssociationArrayOutput struct{ *pulumi.OutputState } func (FrontdoorCustomDomainAssociationArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*FrontdoorCustomDomainAssociation)(nil)).Elem() } func (o FrontdoorCustomDomainAssociationArrayOutput) ToFrontdoorCustomDomainAssociationArrayOutput() FrontdoorCustomDomainAssociationArrayOutput { return o } func (o FrontdoorCustomDomainAssociationArrayOutput) ToFrontdoorCustomDomainAssociationArrayOutputWithContext(ctx context.Context) FrontdoorCustomDomainAssociationArrayOutput { return o } func (o FrontdoorCustomDomainAssociationArrayOutput) Index(i pulumi.IntInput) FrontdoorCustomDomainAssociationOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *FrontdoorCustomDomainAssociation { return vs[0].([]*FrontdoorCustomDomainAssociation)[vs[1].(int)] }).(FrontdoorCustomDomainAssociationOutput) } type FrontdoorCustomDomainAssociationMapOutput struct{ *pulumi.OutputState } func (FrontdoorCustomDomainAssociationMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*FrontdoorCustomDomainAssociation)(nil)).Elem() } func (o FrontdoorCustomDomainAssociationMapOutput) ToFrontdoorCustomDomainAssociationMapOutput() FrontdoorCustomDomainAssociationMapOutput { return o } func (o FrontdoorCustomDomainAssociationMapOutput) ToFrontdoorCustomDomainAssociationMapOutputWithContext(ctx context.Context) FrontdoorCustomDomainAssociationMapOutput { return o } func (o FrontdoorCustomDomainAssociationMapOutput) MapIndex(k pulumi.StringInput) FrontdoorCustomDomainAssociationOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *FrontdoorCustomDomainAssociation { return vs[0].(map[string]*FrontdoorCustomDomainAssociation)[vs[1].(string)] }).(FrontdoorCustomDomainAssociationOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*FrontdoorCustomDomainAssociationInput)(nil)).Elem(), &FrontdoorCustomDomainAssociation{}) pulumi.RegisterInputType(reflect.TypeOf((*FrontdoorCustomDomainAssociationArrayInput)(nil)).Elem(), FrontdoorCustomDomainAssociationArray{}) pulumi.RegisterInputType(reflect.TypeOf((*FrontdoorCustomDomainAssociationMapInput)(nil)).Elem(), FrontdoorCustomDomainAssociationMap{}) pulumi.RegisterOutputType(FrontdoorCustomDomainAssociationOutput{}) pulumi.RegisterOutputType(FrontdoorCustomDomainAssociationArrayOutput{}) pulumi.RegisterOutputType(FrontdoorCustomDomainAssociationMapOutput{}) }
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/cdn/profile.go
sdk/go/azure/cdn/profile.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 cdn import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a CDN (classic) Profile to create a collection of CDN Endpoints. // // !> **Note:** Azure rolled out a breaking change on Friday 9th April 2021 which may cause issues with the CDN/FrontDoor resources. More information is available in this GitHub issue - unfortunately this may necessitate a breaking change to the CDN and FrontDoor resources, more information will be posted in the GitHub issue as the necessary changes are identified. // // !> **Note:** Support for the CDN (classic) `sku` `Standard_Akamai` was deprecated from Azure on `October 31, 2023` and is no longer available. // // !> **Note:** Support for the CDN (classic) `sku` `Standard_Verizon` and `Premium_Verizon` was deprecated from Azure on `January 15, 2025` and is no longer available. // // !> **Note:** Support for the CDN (classic) `sku` `Standard_Microsoft` and `Standard_ChinaCdn` will be deprecated from Azure on `October 1, 2025` and will no longer be available, however modifications to existing CDN (classic) resources will continue to be supported until the API reaches full retirement on `September 30, 2027`. // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/cdn" // "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 = cdn.NewProfile(ctx, "example", &cdn.ProfileArgs{ // Name: pulumi.String("exampleCdnProfile"), // Location: example.Location, // ResourceGroupName: example.Name, // Sku: pulumi.String("Standard_Microsoft"), // Tags: pulumi.StringMap{ // "environment": pulumi.String("Production"), // "cost_center": pulumi.String("MSFT"), // }, // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## Import // // CDN Profiles can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:cdn/profile:Profile example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Cdn/profiles/myprofile1 // ``` type Profile struct { pulumi.CustomResourceState // 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 CDN Profile. 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 CDN Profile. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // The pricing related information of current CDN profile. Accepted values are `Standard_Akamai`, `Standard_ChinaCdn`, `Standard_Microsoft`, `Standard_Verizon` or `Premium_Verizon`. Changing this forces a new resource to be created. Sku pulumi.StringOutput `pulumi:"sku"` // A mapping of tags to assign to the resource. Tags pulumi.StringMapOutput `pulumi:"tags"` } // NewProfile registers a new resource with the given unique name, arguments, and options. func NewProfile(ctx *pulumi.Context, name string, args *ProfileArgs, opts ...pulumi.ResourceOption) (*Profile, 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'") } opts = internal.PkgResourceDefaultOpts(opts) var resource Profile err := ctx.RegisterResource("azure:cdn/profile:Profile", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetProfile gets an existing Profile 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 GetProfile(ctx *pulumi.Context, name string, id pulumi.IDInput, state *ProfileState, opts ...pulumi.ResourceOption) (*Profile, error) { var resource Profile err := ctx.ReadResource("azure:cdn/profile:Profile", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering Profile resources. type profileState struct { // 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 CDN Profile. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // The name of the resource group in which to create the CDN Profile. Changing this forces a new resource to be created. ResourceGroupName *string `pulumi:"resourceGroupName"` // The pricing related information of current CDN profile. Accepted values are `Standard_Akamai`, `Standard_ChinaCdn`, `Standard_Microsoft`, `Standard_Verizon` or `Premium_Verizon`. Changing this forces a new resource to be created. Sku *string `pulumi:"sku"` // A mapping of tags to assign to the resource. Tags map[string]string `pulumi:"tags"` } type ProfileState struct { // 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 CDN Profile. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // The name of the resource group in which to create the CDN Profile. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringPtrInput // The pricing related information of current CDN profile. Accepted values are `Standard_Akamai`, `Standard_ChinaCdn`, `Standard_Microsoft`, `Standard_Verizon` or `Premium_Verizon`. Changing this forces a new resource to be created. Sku pulumi.StringPtrInput // A mapping of tags to assign to the resource. Tags pulumi.StringMapInput } func (ProfileState) ElementType() reflect.Type { return reflect.TypeOf((*profileState)(nil)).Elem() } type profileArgs struct { // 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 CDN Profile. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // The name of the resource group in which to create the CDN Profile. Changing this forces a new resource to be created. ResourceGroupName string `pulumi:"resourceGroupName"` // The pricing related information of current CDN profile. Accepted values are `Standard_Akamai`, `Standard_ChinaCdn`, `Standard_Microsoft`, `Standard_Verizon` or `Premium_Verizon`. Changing this forces a new resource to be created. Sku string `pulumi:"sku"` // A mapping of tags to assign to the resource. Tags map[string]string `pulumi:"tags"` } // The set of arguments for constructing a Profile resource. type ProfileArgs struct { // 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 CDN Profile. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // The name of the resource group in which to create the CDN Profile. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringInput // The pricing related information of current CDN profile. Accepted values are `Standard_Akamai`, `Standard_ChinaCdn`, `Standard_Microsoft`, `Standard_Verizon` or `Premium_Verizon`. Changing this forces a new resource to be created. Sku pulumi.StringInput // A mapping of tags to assign to the resource. Tags pulumi.StringMapInput } func (ProfileArgs) ElementType() reflect.Type { return reflect.TypeOf((*profileArgs)(nil)).Elem() } type ProfileInput interface { pulumi.Input ToProfileOutput() ProfileOutput ToProfileOutputWithContext(ctx context.Context) ProfileOutput } func (*Profile) ElementType() reflect.Type { return reflect.TypeOf((**Profile)(nil)).Elem() } func (i *Profile) ToProfileOutput() ProfileOutput { return i.ToProfileOutputWithContext(context.Background()) } func (i *Profile) ToProfileOutputWithContext(ctx context.Context) ProfileOutput { return pulumi.ToOutputWithContext(ctx, i).(ProfileOutput) } // ProfileArrayInput is an input type that accepts ProfileArray and ProfileArrayOutput values. // You can construct a concrete instance of `ProfileArrayInput` via: // // ProfileArray{ ProfileArgs{...} } type ProfileArrayInput interface { pulumi.Input ToProfileArrayOutput() ProfileArrayOutput ToProfileArrayOutputWithContext(context.Context) ProfileArrayOutput } type ProfileArray []ProfileInput func (ProfileArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*Profile)(nil)).Elem() } func (i ProfileArray) ToProfileArrayOutput() ProfileArrayOutput { return i.ToProfileArrayOutputWithContext(context.Background()) } func (i ProfileArray) ToProfileArrayOutputWithContext(ctx context.Context) ProfileArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(ProfileArrayOutput) } // ProfileMapInput is an input type that accepts ProfileMap and ProfileMapOutput values. // You can construct a concrete instance of `ProfileMapInput` via: // // ProfileMap{ "key": ProfileArgs{...} } type ProfileMapInput interface { pulumi.Input ToProfileMapOutput() ProfileMapOutput ToProfileMapOutputWithContext(context.Context) ProfileMapOutput } type ProfileMap map[string]ProfileInput func (ProfileMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*Profile)(nil)).Elem() } func (i ProfileMap) ToProfileMapOutput() ProfileMapOutput { return i.ToProfileMapOutputWithContext(context.Background()) } func (i ProfileMap) ToProfileMapOutputWithContext(ctx context.Context) ProfileMapOutput { return pulumi.ToOutputWithContext(ctx, i).(ProfileMapOutput) } type ProfileOutput struct{ *pulumi.OutputState } func (ProfileOutput) ElementType() reflect.Type { return reflect.TypeOf((**Profile)(nil)).Elem() } func (o ProfileOutput) ToProfileOutput() ProfileOutput { return o } func (o ProfileOutput) ToProfileOutputWithContext(ctx context.Context) ProfileOutput { return o } // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. func (o ProfileOutput) Location() pulumi.StringOutput { return o.ApplyT(func(v *Profile) pulumi.StringOutput { return v.Location }).(pulumi.StringOutput) } // Specifies the name of the CDN Profile. Changing this forces a new resource to be created. func (o ProfileOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *Profile) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // The name of the resource group in which to create the CDN Profile. Changing this forces a new resource to be created. func (o ProfileOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v *Profile) pulumi.StringOutput { return v.ResourceGroupName }).(pulumi.StringOutput) } // The pricing related information of current CDN profile. Accepted values are `Standard_Akamai`, `Standard_ChinaCdn`, `Standard_Microsoft`, `Standard_Verizon` or `Premium_Verizon`. Changing this forces a new resource to be created. func (o ProfileOutput) Sku() pulumi.StringOutput { return o.ApplyT(func(v *Profile) pulumi.StringOutput { return v.Sku }).(pulumi.StringOutput) } // A mapping of tags to assign to the resource. func (o ProfileOutput) Tags() pulumi.StringMapOutput { return o.ApplyT(func(v *Profile) pulumi.StringMapOutput { return v.Tags }).(pulumi.StringMapOutput) } type ProfileArrayOutput struct{ *pulumi.OutputState } func (ProfileArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*Profile)(nil)).Elem() } func (o ProfileArrayOutput) ToProfileArrayOutput() ProfileArrayOutput { return o } func (o ProfileArrayOutput) ToProfileArrayOutputWithContext(ctx context.Context) ProfileArrayOutput { return o } func (o ProfileArrayOutput) Index(i pulumi.IntInput) ProfileOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *Profile { return vs[0].([]*Profile)[vs[1].(int)] }).(ProfileOutput) } type ProfileMapOutput struct{ *pulumi.OutputState } func (ProfileMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*Profile)(nil)).Elem() } func (o ProfileMapOutput) ToProfileMapOutput() ProfileMapOutput { return o } func (o ProfileMapOutput) ToProfileMapOutputWithContext(ctx context.Context) ProfileMapOutput { return o } func (o ProfileMapOutput) MapIndex(k pulumi.StringInput) ProfileOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *Profile { return vs[0].(map[string]*Profile)[vs[1].(string)] }).(ProfileOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*ProfileInput)(nil)).Elem(), &Profile{}) pulumi.RegisterInputType(reflect.TypeOf((*ProfileArrayInput)(nil)).Elem(), ProfileArray{}) pulumi.RegisterInputType(reflect.TypeOf((*ProfileMapInput)(nil)).Elem(), ProfileMap{}) pulumi.RegisterOutputType(ProfileOutput{}) pulumi.RegisterOutputType(ProfileArrayOutput{}) pulumi.RegisterOutputType(ProfileMapOutput{}) }
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/cdn/getFrontdoorOriginGroup.go
sdk/go/azure/cdn/getFrontdoorOriginGroup.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 cdn 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 Front Door (standard/premium) Origin Group. // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/cdn" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { // _, err := cdn.LookupFrontdoorOriginGroup(ctx, &cdn.LookupFrontdoorOriginGroupArgs{ // Name: "example-origin-group", // ProfileName: "example-profile", // ResourceGroupName: "example-resources", // }, nil) // if err != nil { // return err // } // return nil // }) // } // // ``` func LookupFrontdoorOriginGroup(ctx *pulumi.Context, args *LookupFrontdoorOriginGroupArgs, opts ...pulumi.InvokeOption) (*LookupFrontdoorOriginGroupResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupFrontdoorOriginGroupResult err := ctx.Invoke("azure:cdn/getFrontdoorOriginGroup:getFrontdoorOriginGroup", args, &rv, opts...) if err != nil { return nil, err } return &rv, nil } // A collection of arguments for invoking getFrontdoorOriginGroup. type LookupFrontdoorOriginGroupArgs struct { // Specifies the name of the Front Door Origin Group. Name string `pulumi:"name"` // The name of the Front Door Profile within which Front Door Origin Group exists. ProfileName string `pulumi:"profileName"` // The name of the Resource Group where the Front Door Profile exists. ResourceGroupName string `pulumi:"resourceGroupName"` } // A collection of values returned by getFrontdoorOriginGroup. type LookupFrontdoorOriginGroupResult struct { // Specifies the ID of the Front Door Profile within which this Front Door Origin Group exists. CdnFrontdoorProfileId string `pulumi:"cdnFrontdoorProfileId"` // A `healthProbe` block as defined below. HealthProbes []GetFrontdoorOriginGroupHealthProbe `pulumi:"healthProbes"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` // A `loadBalancing` block as defined below. LoadBalancings []GetFrontdoorOriginGroupLoadBalancing `pulumi:"loadBalancings"` Name string `pulumi:"name"` ProfileName string `pulumi:"profileName"` ResourceGroupName string `pulumi:"resourceGroupName"` RestoreTrafficTimeToHealedOrNewEndpointInMinutes int `pulumi:"restoreTrafficTimeToHealedOrNewEndpointInMinutes"` // Specifies whether session affinity is enabled on this host. SessionAffinityEnabled bool `pulumi:"sessionAffinityEnabled"` } func LookupFrontdoorOriginGroupOutput(ctx *pulumi.Context, args LookupFrontdoorOriginGroupOutputArgs, opts ...pulumi.InvokeOption) LookupFrontdoorOriginGroupResultOutput { return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupFrontdoorOriginGroupResultOutput, error) { args := v.(LookupFrontdoorOriginGroupArgs) options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} return ctx.InvokeOutput("azure:cdn/getFrontdoorOriginGroup:getFrontdoorOriginGroup", args, LookupFrontdoorOriginGroupResultOutput{}, options).(LookupFrontdoorOriginGroupResultOutput), nil }).(LookupFrontdoorOriginGroupResultOutput) } // A collection of arguments for invoking getFrontdoorOriginGroup. type LookupFrontdoorOriginGroupOutputArgs struct { // Specifies the name of the Front Door Origin Group. Name pulumi.StringInput `pulumi:"name"` // The name of the Front Door Profile within which Front Door Origin Group exists. ProfileName pulumi.StringInput `pulumi:"profileName"` // The name of the Resource Group where the Front Door Profile exists. ResourceGroupName pulumi.StringInput `pulumi:"resourceGroupName"` } func (LookupFrontdoorOriginGroupOutputArgs) ElementType() reflect.Type { return reflect.TypeOf((*LookupFrontdoorOriginGroupArgs)(nil)).Elem() } // A collection of values returned by getFrontdoorOriginGroup. type LookupFrontdoorOriginGroupResultOutput struct{ *pulumi.OutputState } func (LookupFrontdoorOriginGroupResultOutput) ElementType() reflect.Type { return reflect.TypeOf((*LookupFrontdoorOriginGroupResult)(nil)).Elem() } func (o LookupFrontdoorOriginGroupResultOutput) ToLookupFrontdoorOriginGroupResultOutput() LookupFrontdoorOriginGroupResultOutput { return o } func (o LookupFrontdoorOriginGroupResultOutput) ToLookupFrontdoorOriginGroupResultOutputWithContext(ctx context.Context) LookupFrontdoorOriginGroupResultOutput { return o } // Specifies the ID of the Front Door Profile within which this Front Door Origin Group exists. func (o LookupFrontdoorOriginGroupResultOutput) CdnFrontdoorProfileId() pulumi.StringOutput { return o.ApplyT(func(v LookupFrontdoorOriginGroupResult) string { return v.CdnFrontdoorProfileId }).(pulumi.StringOutput) } // A `healthProbe` block as defined below. func (o LookupFrontdoorOriginGroupResultOutput) HealthProbes() GetFrontdoorOriginGroupHealthProbeArrayOutput { return o.ApplyT(func(v LookupFrontdoorOriginGroupResult) []GetFrontdoorOriginGroupHealthProbe { return v.HealthProbes }).(GetFrontdoorOriginGroupHealthProbeArrayOutput) } // The provider-assigned unique ID for this managed resource. func (o LookupFrontdoorOriginGroupResultOutput) Id() pulumi.StringOutput { return o.ApplyT(func(v LookupFrontdoorOriginGroupResult) string { return v.Id }).(pulumi.StringOutput) } // A `loadBalancing` block as defined below. func (o LookupFrontdoorOriginGroupResultOutput) LoadBalancings() GetFrontdoorOriginGroupLoadBalancingArrayOutput { return o.ApplyT(func(v LookupFrontdoorOriginGroupResult) []GetFrontdoorOriginGroupLoadBalancing { return v.LoadBalancings }).(GetFrontdoorOriginGroupLoadBalancingArrayOutput) } func (o LookupFrontdoorOriginGroupResultOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v LookupFrontdoorOriginGroupResult) string { return v.Name }).(pulumi.StringOutput) } func (o LookupFrontdoorOriginGroupResultOutput) ProfileName() pulumi.StringOutput { return o.ApplyT(func(v LookupFrontdoorOriginGroupResult) string { return v.ProfileName }).(pulumi.StringOutput) } func (o LookupFrontdoorOriginGroupResultOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v LookupFrontdoorOriginGroupResult) string { return v.ResourceGroupName }).(pulumi.StringOutput) } func (o LookupFrontdoorOriginGroupResultOutput) RestoreTrafficTimeToHealedOrNewEndpointInMinutes() pulumi.IntOutput { return o.ApplyT(func(v LookupFrontdoorOriginGroupResult) int { return v.RestoreTrafficTimeToHealedOrNewEndpointInMinutes }).(pulumi.IntOutput) } // Specifies whether session affinity is enabled on this host. func (o LookupFrontdoorOriginGroupResultOutput) SessionAffinityEnabled() pulumi.BoolOutput { return o.ApplyT(func(v LookupFrontdoorOriginGroupResult) bool { return v.SessionAffinityEnabled }).(pulumi.BoolOutput) } func init() { pulumi.RegisterOutputType(LookupFrontdoorOriginGroupResultOutput{}) }
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/cdn/getFrontdoorProfile.go
sdk/go/azure/cdn/getFrontdoorProfile.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 cdn 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 Front Door (standard/premium) Profile. // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/cdn" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { // example, err := cdn.LookupFrontdoorProfile(ctx, &cdn.LookupFrontdoorProfileArgs{ // Name: "existing-cdn-profile", // ResourceGroupName: "existing-resources", // }, nil) // if err != nil { // return err // } // ctx.Export("frontDoorId", example.Id) // ctx.Export("logScrubbingMatchVariable", example.LogScrubbingRules[0].MatchVariable) // return nil // }) // } // // ``` // // ## API Providers // // <!-- This section is generated, changes will be overwritten --> // This data source uses the following Azure API Providers: // // * `Microsoft.Cdn` - 2024-02-01 func LookupFrontdoorProfile(ctx *pulumi.Context, args *LookupFrontdoorProfileArgs, opts ...pulumi.InvokeOption) (*LookupFrontdoorProfileResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupFrontdoorProfileResult err := ctx.Invoke("azure:cdn/getFrontdoorProfile:getFrontdoorProfile", args, &rv, opts...) if err != nil { return nil, err } return &rv, nil } // A collection of arguments for invoking getFrontdoorProfile. type LookupFrontdoorProfileArgs struct { // Specifies the name of the Front Door Profile. Name string `pulumi:"name"` // The name of the Resource Group where this Front Door Profile exists. ResourceGroupName string `pulumi:"resourceGroupName"` } // A collection of values returned by getFrontdoorProfile. type LookupFrontdoorProfileResult struct { // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` // An `identity` block as defined below. Identity GetFrontdoorProfileIdentity `pulumi:"identity"` // One or more `logScrubbingRule` blocks as defined below. LogScrubbingRules []GetFrontdoorProfileLogScrubbingRule `pulumi:"logScrubbingRules"` Name string `pulumi:"name"` ResourceGroupName string `pulumi:"resourceGroupName"` // The UUID of the Front Door Profile which will be sent in the HTTP Header as the `X-Azure-FDID` attribute. ResourceGuid string `pulumi:"resourceGuid"` // Specifies the maximum response timeout in seconds. ResponseTimeoutSeconds int `pulumi:"responseTimeoutSeconds"` // Specifies the SKU for this Front Door Profile. SkuName string `pulumi:"skuName"` // Specifies a mapping of Tags assigned to this Front Door Profile. Tags map[string]string `pulumi:"tags"` } func LookupFrontdoorProfileOutput(ctx *pulumi.Context, args LookupFrontdoorProfileOutputArgs, opts ...pulumi.InvokeOption) LookupFrontdoorProfileResultOutput { return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupFrontdoorProfileResultOutput, error) { args := v.(LookupFrontdoorProfileArgs) options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} return ctx.InvokeOutput("azure:cdn/getFrontdoorProfile:getFrontdoorProfile", args, LookupFrontdoorProfileResultOutput{}, options).(LookupFrontdoorProfileResultOutput), nil }).(LookupFrontdoorProfileResultOutput) } // A collection of arguments for invoking getFrontdoorProfile. type LookupFrontdoorProfileOutputArgs struct { // Specifies the name of the Front Door Profile. Name pulumi.StringInput `pulumi:"name"` // The name of the Resource Group where this Front Door Profile exists. ResourceGroupName pulumi.StringInput `pulumi:"resourceGroupName"` } func (LookupFrontdoorProfileOutputArgs) ElementType() reflect.Type { return reflect.TypeOf((*LookupFrontdoorProfileArgs)(nil)).Elem() } // A collection of values returned by getFrontdoorProfile. type LookupFrontdoorProfileResultOutput struct{ *pulumi.OutputState } func (LookupFrontdoorProfileResultOutput) ElementType() reflect.Type { return reflect.TypeOf((*LookupFrontdoorProfileResult)(nil)).Elem() } func (o LookupFrontdoorProfileResultOutput) ToLookupFrontdoorProfileResultOutput() LookupFrontdoorProfileResultOutput { return o } func (o LookupFrontdoorProfileResultOutput) ToLookupFrontdoorProfileResultOutputWithContext(ctx context.Context) LookupFrontdoorProfileResultOutput { return o } // The provider-assigned unique ID for this managed resource. func (o LookupFrontdoorProfileResultOutput) Id() pulumi.StringOutput { return o.ApplyT(func(v LookupFrontdoorProfileResult) string { return v.Id }).(pulumi.StringOutput) } // An `identity` block as defined below. func (o LookupFrontdoorProfileResultOutput) Identity() GetFrontdoorProfileIdentityOutput { return o.ApplyT(func(v LookupFrontdoorProfileResult) GetFrontdoorProfileIdentity { return v.Identity }).(GetFrontdoorProfileIdentityOutput) } // One or more `logScrubbingRule` blocks as defined below. func (o LookupFrontdoorProfileResultOutput) LogScrubbingRules() GetFrontdoorProfileLogScrubbingRuleArrayOutput { return o.ApplyT(func(v LookupFrontdoorProfileResult) []GetFrontdoorProfileLogScrubbingRule { return v.LogScrubbingRules }).(GetFrontdoorProfileLogScrubbingRuleArrayOutput) } func (o LookupFrontdoorProfileResultOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v LookupFrontdoorProfileResult) string { return v.Name }).(pulumi.StringOutput) } func (o LookupFrontdoorProfileResultOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v LookupFrontdoorProfileResult) string { return v.ResourceGroupName }).(pulumi.StringOutput) } // The UUID of the Front Door Profile which will be sent in the HTTP Header as the `X-Azure-FDID` attribute. func (o LookupFrontdoorProfileResultOutput) ResourceGuid() pulumi.StringOutput { return o.ApplyT(func(v LookupFrontdoorProfileResult) string { return v.ResourceGuid }).(pulumi.StringOutput) } // Specifies the maximum response timeout in seconds. func (o LookupFrontdoorProfileResultOutput) ResponseTimeoutSeconds() pulumi.IntOutput { return o.ApplyT(func(v LookupFrontdoorProfileResult) int { return v.ResponseTimeoutSeconds }).(pulumi.IntOutput) } // Specifies the SKU for this Front Door Profile. func (o LookupFrontdoorProfileResultOutput) SkuName() pulumi.StringOutput { return o.ApplyT(func(v LookupFrontdoorProfileResult) string { return v.SkuName }).(pulumi.StringOutput) } // Specifies a mapping of Tags assigned to this Front Door Profile. func (o LookupFrontdoorProfileResultOutput) Tags() pulumi.StringMapOutput { return o.ApplyT(func(v LookupFrontdoorProfileResult) map[string]string { return v.Tags }).(pulumi.StringMapOutput) } func init() { pulumi.RegisterOutputType(LookupFrontdoorProfileResultOutput{}) }
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/cdn/frontdoorRuleSet.go
sdk/go/azure/cdn/frontdoorRuleSet.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 cdn import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a Front Door (standard/premium) Rule Set. // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/cdn" // "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-cdn-frontdoor"), // Location: pulumi.String("West Europe"), // }) // if err != nil { // return err // } // exampleFrontdoorProfile, err := cdn.NewFrontdoorProfile(ctx, "example", &cdn.FrontdoorProfileArgs{ // Name: pulumi.String("example-profile"), // ResourceGroupName: example.Name, // SkuName: pulumi.String("Standard_AzureFrontDoor"), // }) // if err != nil { // return err // } // _, err = cdn.NewFrontdoorRuleSet(ctx, "example", &cdn.FrontdoorRuleSetArgs{ // Name: pulumi.String("ExampleRuleSet"), // CdnFrontdoorProfileId: exampleFrontdoorProfile.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.Cdn` - 2024-02-01 // // ## Import // // Front Door Rule Sets can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:cdn/frontdoorRuleSet:FrontdoorRuleSet example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/Microsoft.Cdn/profiles/profile1/ruleSets/ruleSet1 // ``` type FrontdoorRuleSet struct { pulumi.CustomResourceState // The ID of the Front Door Profile. Changing this forces a new Front Door Rule Set to be created. CdnFrontdoorProfileId pulumi.StringOutput `pulumi:"cdnFrontdoorProfileId"` // The name which should be used for this Front Door Rule Set. Changing this forces a new Front Door Rule Set to be created. Name pulumi.StringOutput `pulumi:"name"` } // NewFrontdoorRuleSet registers a new resource with the given unique name, arguments, and options. func NewFrontdoorRuleSet(ctx *pulumi.Context, name string, args *FrontdoorRuleSetArgs, opts ...pulumi.ResourceOption) (*FrontdoorRuleSet, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.CdnFrontdoorProfileId == nil { return nil, errors.New("invalid value for required argument 'CdnFrontdoorProfileId'") } opts = internal.PkgResourceDefaultOpts(opts) var resource FrontdoorRuleSet err := ctx.RegisterResource("azure:cdn/frontdoorRuleSet:FrontdoorRuleSet", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetFrontdoorRuleSet gets an existing FrontdoorRuleSet 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 GetFrontdoorRuleSet(ctx *pulumi.Context, name string, id pulumi.IDInput, state *FrontdoorRuleSetState, opts ...pulumi.ResourceOption) (*FrontdoorRuleSet, error) { var resource FrontdoorRuleSet err := ctx.ReadResource("azure:cdn/frontdoorRuleSet:FrontdoorRuleSet", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering FrontdoorRuleSet resources. type frontdoorRuleSetState struct { // The ID of the Front Door Profile. Changing this forces a new Front Door Rule Set to be created. CdnFrontdoorProfileId *string `pulumi:"cdnFrontdoorProfileId"` // The name which should be used for this Front Door Rule Set. Changing this forces a new Front Door Rule Set to be created. Name *string `pulumi:"name"` } type FrontdoorRuleSetState struct { // The ID of the Front Door Profile. Changing this forces a new Front Door Rule Set to be created. CdnFrontdoorProfileId pulumi.StringPtrInput // The name which should be used for this Front Door Rule Set. Changing this forces a new Front Door Rule Set to be created. Name pulumi.StringPtrInput } func (FrontdoorRuleSetState) ElementType() reflect.Type { return reflect.TypeOf((*frontdoorRuleSetState)(nil)).Elem() } type frontdoorRuleSetArgs struct { // The ID of the Front Door Profile. Changing this forces a new Front Door Rule Set to be created. CdnFrontdoorProfileId string `pulumi:"cdnFrontdoorProfileId"` // The name which should be used for this Front Door Rule Set. Changing this forces a new Front Door Rule Set to be created. Name *string `pulumi:"name"` } // The set of arguments for constructing a FrontdoorRuleSet resource. type FrontdoorRuleSetArgs struct { // The ID of the Front Door Profile. Changing this forces a new Front Door Rule Set to be created. CdnFrontdoorProfileId pulumi.StringInput // The name which should be used for this Front Door Rule Set. Changing this forces a new Front Door Rule Set to be created. Name pulumi.StringPtrInput } func (FrontdoorRuleSetArgs) ElementType() reflect.Type { return reflect.TypeOf((*frontdoorRuleSetArgs)(nil)).Elem() } type FrontdoorRuleSetInput interface { pulumi.Input ToFrontdoorRuleSetOutput() FrontdoorRuleSetOutput ToFrontdoorRuleSetOutputWithContext(ctx context.Context) FrontdoorRuleSetOutput } func (*FrontdoorRuleSet) ElementType() reflect.Type { return reflect.TypeOf((**FrontdoorRuleSet)(nil)).Elem() } func (i *FrontdoorRuleSet) ToFrontdoorRuleSetOutput() FrontdoorRuleSetOutput { return i.ToFrontdoorRuleSetOutputWithContext(context.Background()) } func (i *FrontdoorRuleSet) ToFrontdoorRuleSetOutputWithContext(ctx context.Context) FrontdoorRuleSetOutput { return pulumi.ToOutputWithContext(ctx, i).(FrontdoorRuleSetOutput) } // FrontdoorRuleSetArrayInput is an input type that accepts FrontdoorRuleSetArray and FrontdoorRuleSetArrayOutput values. // You can construct a concrete instance of `FrontdoorRuleSetArrayInput` via: // // FrontdoorRuleSetArray{ FrontdoorRuleSetArgs{...} } type FrontdoorRuleSetArrayInput interface { pulumi.Input ToFrontdoorRuleSetArrayOutput() FrontdoorRuleSetArrayOutput ToFrontdoorRuleSetArrayOutputWithContext(context.Context) FrontdoorRuleSetArrayOutput } type FrontdoorRuleSetArray []FrontdoorRuleSetInput func (FrontdoorRuleSetArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*FrontdoorRuleSet)(nil)).Elem() } func (i FrontdoorRuleSetArray) ToFrontdoorRuleSetArrayOutput() FrontdoorRuleSetArrayOutput { return i.ToFrontdoorRuleSetArrayOutputWithContext(context.Background()) } func (i FrontdoorRuleSetArray) ToFrontdoorRuleSetArrayOutputWithContext(ctx context.Context) FrontdoorRuleSetArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(FrontdoorRuleSetArrayOutput) } // FrontdoorRuleSetMapInput is an input type that accepts FrontdoorRuleSetMap and FrontdoorRuleSetMapOutput values. // You can construct a concrete instance of `FrontdoorRuleSetMapInput` via: // // FrontdoorRuleSetMap{ "key": FrontdoorRuleSetArgs{...} } type FrontdoorRuleSetMapInput interface { pulumi.Input ToFrontdoorRuleSetMapOutput() FrontdoorRuleSetMapOutput ToFrontdoorRuleSetMapOutputWithContext(context.Context) FrontdoorRuleSetMapOutput } type FrontdoorRuleSetMap map[string]FrontdoorRuleSetInput func (FrontdoorRuleSetMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*FrontdoorRuleSet)(nil)).Elem() } func (i FrontdoorRuleSetMap) ToFrontdoorRuleSetMapOutput() FrontdoorRuleSetMapOutput { return i.ToFrontdoorRuleSetMapOutputWithContext(context.Background()) } func (i FrontdoorRuleSetMap) ToFrontdoorRuleSetMapOutputWithContext(ctx context.Context) FrontdoorRuleSetMapOutput { return pulumi.ToOutputWithContext(ctx, i).(FrontdoorRuleSetMapOutput) } type FrontdoorRuleSetOutput struct{ *pulumi.OutputState } func (FrontdoorRuleSetOutput) ElementType() reflect.Type { return reflect.TypeOf((**FrontdoorRuleSet)(nil)).Elem() } func (o FrontdoorRuleSetOutput) ToFrontdoorRuleSetOutput() FrontdoorRuleSetOutput { return o } func (o FrontdoorRuleSetOutput) ToFrontdoorRuleSetOutputWithContext(ctx context.Context) FrontdoorRuleSetOutput { return o } // The ID of the Front Door Profile. Changing this forces a new Front Door Rule Set to be created. func (o FrontdoorRuleSetOutput) CdnFrontdoorProfileId() pulumi.StringOutput { return o.ApplyT(func(v *FrontdoorRuleSet) pulumi.StringOutput { return v.CdnFrontdoorProfileId }).(pulumi.StringOutput) } // The name which should be used for this Front Door Rule Set. Changing this forces a new Front Door Rule Set to be created. func (o FrontdoorRuleSetOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *FrontdoorRuleSet) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } type FrontdoorRuleSetArrayOutput struct{ *pulumi.OutputState } func (FrontdoorRuleSetArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*FrontdoorRuleSet)(nil)).Elem() } func (o FrontdoorRuleSetArrayOutput) ToFrontdoorRuleSetArrayOutput() FrontdoorRuleSetArrayOutput { return o } func (o FrontdoorRuleSetArrayOutput) ToFrontdoorRuleSetArrayOutputWithContext(ctx context.Context) FrontdoorRuleSetArrayOutput { return o } func (o FrontdoorRuleSetArrayOutput) Index(i pulumi.IntInput) FrontdoorRuleSetOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *FrontdoorRuleSet { return vs[0].([]*FrontdoorRuleSet)[vs[1].(int)] }).(FrontdoorRuleSetOutput) } type FrontdoorRuleSetMapOutput struct{ *pulumi.OutputState } func (FrontdoorRuleSetMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*FrontdoorRuleSet)(nil)).Elem() } func (o FrontdoorRuleSetMapOutput) ToFrontdoorRuleSetMapOutput() FrontdoorRuleSetMapOutput { return o } func (o FrontdoorRuleSetMapOutput) ToFrontdoorRuleSetMapOutputWithContext(ctx context.Context) FrontdoorRuleSetMapOutput { return o } func (o FrontdoorRuleSetMapOutput) MapIndex(k pulumi.StringInput) FrontdoorRuleSetOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *FrontdoorRuleSet { return vs[0].(map[string]*FrontdoorRuleSet)[vs[1].(string)] }).(FrontdoorRuleSetOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*FrontdoorRuleSetInput)(nil)).Elem(), &FrontdoorRuleSet{}) pulumi.RegisterInputType(reflect.TypeOf((*FrontdoorRuleSetArrayInput)(nil)).Elem(), FrontdoorRuleSetArray{}) pulumi.RegisterInputType(reflect.TypeOf((*FrontdoorRuleSetMapInput)(nil)).Elem(), FrontdoorRuleSetMap{}) pulumi.RegisterOutputType(FrontdoorRuleSetOutput{}) pulumi.RegisterOutputType(FrontdoorRuleSetArrayOutput{}) pulumi.RegisterOutputType(FrontdoorRuleSetMapOutput{}) }
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/cdn/frontdoorEndpoint.go
sdk/go/azure/cdn/frontdoorEndpoint.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 cdn import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a Front Door (standard/premium) Endpoint. // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/cdn" // "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-cdn-frontdoor"), // Location: pulumi.String("West Europe"), // }) // if err != nil { // return err // } // exampleFrontdoorProfile, err := cdn.NewFrontdoorProfile(ctx, "example", &cdn.FrontdoorProfileArgs{ // Name: pulumi.String("example-profile"), // ResourceGroupName: example.Name, // SkuName: pulumi.String("Standard_AzureFrontDoor"), // }) // if err != nil { // return err // } // _, err = cdn.NewFrontdoorEndpoint(ctx, "example", &cdn.FrontdoorEndpointArgs{ // Name: pulumi.String("example-endpoint"), // CdnFrontdoorProfileId: exampleFrontdoorProfile.ID(), // Tags: pulumi.StringMap{ // "ENV": pulumi.String("example"), // }, // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## Import // // Front Door Endpoints can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:cdn/frontdoorEndpoint:FrontdoorEndpoint example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/Microsoft.Cdn/profiles/profile1/afdEndpoints/endpoint1 // ``` type FrontdoorEndpoint struct { pulumi.CustomResourceState // The ID of the Front Door Profile within which this Front Door Endpoint should exist. Changing this forces a new Front Door Endpoint to be created. CdnFrontdoorProfileId pulumi.StringOutput `pulumi:"cdnFrontdoorProfileId"` // Specifies if this Front Door Endpoint is enabled? Defaults to `true`. Enabled pulumi.BoolPtrOutput `pulumi:"enabled"` // The host name of the Front Door Endpoint, in the format `{endpointName}.{dnsZone}` (for example, `contoso.azureedge.net`). HostName pulumi.StringOutput `pulumi:"hostName"` // The name which should be used for this Front Door Endpoint. Changing this forces a new Front Door Endpoint to be created. Name pulumi.StringOutput `pulumi:"name"` // Specifies a mapping of tags which should be assigned to the Front Door Endpoint. Tags pulumi.StringMapOutput `pulumi:"tags"` } // NewFrontdoorEndpoint registers a new resource with the given unique name, arguments, and options. func NewFrontdoorEndpoint(ctx *pulumi.Context, name string, args *FrontdoorEndpointArgs, opts ...pulumi.ResourceOption) (*FrontdoorEndpoint, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.CdnFrontdoorProfileId == nil { return nil, errors.New("invalid value for required argument 'CdnFrontdoorProfileId'") } opts = internal.PkgResourceDefaultOpts(opts) var resource FrontdoorEndpoint err := ctx.RegisterResource("azure:cdn/frontdoorEndpoint:FrontdoorEndpoint", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetFrontdoorEndpoint gets an existing FrontdoorEndpoint 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 GetFrontdoorEndpoint(ctx *pulumi.Context, name string, id pulumi.IDInput, state *FrontdoorEndpointState, opts ...pulumi.ResourceOption) (*FrontdoorEndpoint, error) { var resource FrontdoorEndpoint err := ctx.ReadResource("azure:cdn/frontdoorEndpoint:FrontdoorEndpoint", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering FrontdoorEndpoint resources. type frontdoorEndpointState struct { // The ID of the Front Door Profile within which this Front Door Endpoint should exist. Changing this forces a new Front Door Endpoint to be created. CdnFrontdoorProfileId *string `pulumi:"cdnFrontdoorProfileId"` // Specifies if this Front Door Endpoint is enabled? Defaults to `true`. Enabled *bool `pulumi:"enabled"` // The host name of the Front Door Endpoint, in the format `{endpointName}.{dnsZone}` (for example, `contoso.azureedge.net`). HostName *string `pulumi:"hostName"` // The name which should be used for this Front Door Endpoint. Changing this forces a new Front Door Endpoint to be created. Name *string `pulumi:"name"` // Specifies a mapping of tags which should be assigned to the Front Door Endpoint. Tags map[string]string `pulumi:"tags"` } type FrontdoorEndpointState struct { // The ID of the Front Door Profile within which this Front Door Endpoint should exist. Changing this forces a new Front Door Endpoint to be created. CdnFrontdoorProfileId pulumi.StringPtrInput // Specifies if this Front Door Endpoint is enabled? Defaults to `true`. Enabled pulumi.BoolPtrInput // The host name of the Front Door Endpoint, in the format `{endpointName}.{dnsZone}` (for example, `contoso.azureedge.net`). HostName pulumi.StringPtrInput // The name which should be used for this Front Door Endpoint. Changing this forces a new Front Door Endpoint to be created. Name pulumi.StringPtrInput // Specifies a mapping of tags which should be assigned to the Front Door Endpoint. Tags pulumi.StringMapInput } func (FrontdoorEndpointState) ElementType() reflect.Type { return reflect.TypeOf((*frontdoorEndpointState)(nil)).Elem() } type frontdoorEndpointArgs struct { // The ID of the Front Door Profile within which this Front Door Endpoint should exist. Changing this forces a new Front Door Endpoint to be created. CdnFrontdoorProfileId string `pulumi:"cdnFrontdoorProfileId"` // Specifies if this Front Door Endpoint is enabled? Defaults to `true`. Enabled *bool `pulumi:"enabled"` // The name which should be used for this Front Door Endpoint. Changing this forces a new Front Door Endpoint to be created. Name *string `pulumi:"name"` // Specifies a mapping of tags which should be assigned to the Front Door Endpoint. Tags map[string]string `pulumi:"tags"` } // The set of arguments for constructing a FrontdoorEndpoint resource. type FrontdoorEndpointArgs struct { // The ID of the Front Door Profile within which this Front Door Endpoint should exist. Changing this forces a new Front Door Endpoint to be created. CdnFrontdoorProfileId pulumi.StringInput // Specifies if this Front Door Endpoint is enabled? Defaults to `true`. Enabled pulumi.BoolPtrInput // The name which should be used for this Front Door Endpoint. Changing this forces a new Front Door Endpoint to be created. Name pulumi.StringPtrInput // Specifies a mapping of tags which should be assigned to the Front Door Endpoint. Tags pulumi.StringMapInput } func (FrontdoorEndpointArgs) ElementType() reflect.Type { return reflect.TypeOf((*frontdoorEndpointArgs)(nil)).Elem() } type FrontdoorEndpointInput interface { pulumi.Input ToFrontdoorEndpointOutput() FrontdoorEndpointOutput ToFrontdoorEndpointOutputWithContext(ctx context.Context) FrontdoorEndpointOutput } func (*FrontdoorEndpoint) ElementType() reflect.Type { return reflect.TypeOf((**FrontdoorEndpoint)(nil)).Elem() } func (i *FrontdoorEndpoint) ToFrontdoorEndpointOutput() FrontdoorEndpointOutput { return i.ToFrontdoorEndpointOutputWithContext(context.Background()) } func (i *FrontdoorEndpoint) ToFrontdoorEndpointOutputWithContext(ctx context.Context) FrontdoorEndpointOutput { return pulumi.ToOutputWithContext(ctx, i).(FrontdoorEndpointOutput) } // FrontdoorEndpointArrayInput is an input type that accepts FrontdoorEndpointArray and FrontdoorEndpointArrayOutput values. // You can construct a concrete instance of `FrontdoorEndpointArrayInput` via: // // FrontdoorEndpointArray{ FrontdoorEndpointArgs{...} } type FrontdoorEndpointArrayInput interface { pulumi.Input ToFrontdoorEndpointArrayOutput() FrontdoorEndpointArrayOutput ToFrontdoorEndpointArrayOutputWithContext(context.Context) FrontdoorEndpointArrayOutput } type FrontdoorEndpointArray []FrontdoorEndpointInput func (FrontdoorEndpointArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*FrontdoorEndpoint)(nil)).Elem() } func (i FrontdoorEndpointArray) ToFrontdoorEndpointArrayOutput() FrontdoorEndpointArrayOutput { return i.ToFrontdoorEndpointArrayOutputWithContext(context.Background()) } func (i FrontdoorEndpointArray) ToFrontdoorEndpointArrayOutputWithContext(ctx context.Context) FrontdoorEndpointArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(FrontdoorEndpointArrayOutput) } // FrontdoorEndpointMapInput is an input type that accepts FrontdoorEndpointMap and FrontdoorEndpointMapOutput values. // You can construct a concrete instance of `FrontdoorEndpointMapInput` via: // // FrontdoorEndpointMap{ "key": FrontdoorEndpointArgs{...} } type FrontdoorEndpointMapInput interface { pulumi.Input ToFrontdoorEndpointMapOutput() FrontdoorEndpointMapOutput ToFrontdoorEndpointMapOutputWithContext(context.Context) FrontdoorEndpointMapOutput } type FrontdoorEndpointMap map[string]FrontdoorEndpointInput func (FrontdoorEndpointMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*FrontdoorEndpoint)(nil)).Elem() } func (i FrontdoorEndpointMap) ToFrontdoorEndpointMapOutput() FrontdoorEndpointMapOutput { return i.ToFrontdoorEndpointMapOutputWithContext(context.Background()) } func (i FrontdoorEndpointMap) ToFrontdoorEndpointMapOutputWithContext(ctx context.Context) FrontdoorEndpointMapOutput { return pulumi.ToOutputWithContext(ctx, i).(FrontdoorEndpointMapOutput) } type FrontdoorEndpointOutput struct{ *pulumi.OutputState } func (FrontdoorEndpointOutput) ElementType() reflect.Type { return reflect.TypeOf((**FrontdoorEndpoint)(nil)).Elem() } func (o FrontdoorEndpointOutput) ToFrontdoorEndpointOutput() FrontdoorEndpointOutput { return o } func (o FrontdoorEndpointOutput) ToFrontdoorEndpointOutputWithContext(ctx context.Context) FrontdoorEndpointOutput { return o } // The ID of the Front Door Profile within which this Front Door Endpoint should exist. Changing this forces a new Front Door Endpoint to be created. func (o FrontdoorEndpointOutput) CdnFrontdoorProfileId() pulumi.StringOutput { return o.ApplyT(func(v *FrontdoorEndpoint) pulumi.StringOutput { return v.CdnFrontdoorProfileId }).(pulumi.StringOutput) } // Specifies if this Front Door Endpoint is enabled? Defaults to `true`. func (o FrontdoorEndpointOutput) Enabled() pulumi.BoolPtrOutput { return o.ApplyT(func(v *FrontdoorEndpoint) pulumi.BoolPtrOutput { return v.Enabled }).(pulumi.BoolPtrOutput) } // The host name of the Front Door Endpoint, in the format `{endpointName}.{dnsZone}` (for example, `contoso.azureedge.net`). func (o FrontdoorEndpointOutput) HostName() pulumi.StringOutput { return o.ApplyT(func(v *FrontdoorEndpoint) pulumi.StringOutput { return v.HostName }).(pulumi.StringOutput) } // The name which should be used for this Front Door Endpoint. Changing this forces a new Front Door Endpoint to be created. func (o FrontdoorEndpointOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *FrontdoorEndpoint) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // Specifies a mapping of tags which should be assigned to the Front Door Endpoint. func (o FrontdoorEndpointOutput) Tags() pulumi.StringMapOutput { return o.ApplyT(func(v *FrontdoorEndpoint) pulumi.StringMapOutput { return v.Tags }).(pulumi.StringMapOutput) } type FrontdoorEndpointArrayOutput struct{ *pulumi.OutputState } func (FrontdoorEndpointArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*FrontdoorEndpoint)(nil)).Elem() } func (o FrontdoorEndpointArrayOutput) ToFrontdoorEndpointArrayOutput() FrontdoorEndpointArrayOutput { return o } func (o FrontdoorEndpointArrayOutput) ToFrontdoorEndpointArrayOutputWithContext(ctx context.Context) FrontdoorEndpointArrayOutput { return o } func (o FrontdoorEndpointArrayOutput) Index(i pulumi.IntInput) FrontdoorEndpointOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *FrontdoorEndpoint { return vs[0].([]*FrontdoorEndpoint)[vs[1].(int)] }).(FrontdoorEndpointOutput) } type FrontdoorEndpointMapOutput struct{ *pulumi.OutputState } func (FrontdoorEndpointMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*FrontdoorEndpoint)(nil)).Elem() } func (o FrontdoorEndpointMapOutput) ToFrontdoorEndpointMapOutput() FrontdoorEndpointMapOutput { return o } func (o FrontdoorEndpointMapOutput) ToFrontdoorEndpointMapOutputWithContext(ctx context.Context) FrontdoorEndpointMapOutput { return o } func (o FrontdoorEndpointMapOutput) MapIndex(k pulumi.StringInput) FrontdoorEndpointOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *FrontdoorEndpoint { return vs[0].(map[string]*FrontdoorEndpoint)[vs[1].(string)] }).(FrontdoorEndpointOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*FrontdoorEndpointInput)(nil)).Elem(), &FrontdoorEndpoint{}) pulumi.RegisterInputType(reflect.TypeOf((*FrontdoorEndpointArrayInput)(nil)).Elem(), FrontdoorEndpointArray{}) pulumi.RegisterInputType(reflect.TypeOf((*FrontdoorEndpointMapInput)(nil)).Elem(), FrontdoorEndpointMap{}) pulumi.RegisterOutputType(FrontdoorEndpointOutput{}) pulumi.RegisterOutputType(FrontdoorEndpointArrayOutput{}) pulumi.RegisterOutputType(FrontdoorEndpointMapOutput{}) }
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/cdn/getProfile.go
sdk/go/azure/cdn/getProfile.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 cdn 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 CDN Profile. // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/cdn" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { // example, err := cdn.LookupProfile(ctx, &cdn.LookupProfileArgs{ // Name: "myfirstcdnprofile", // ResourceGroupName: "example-resources", // }, nil) // if err != nil { // return err // } // ctx.Export("cdnProfileId", example.Id) // return nil // }) // } // // ``` func LookupProfile(ctx *pulumi.Context, args *LookupProfileArgs, opts ...pulumi.InvokeOption) (*LookupProfileResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupProfileResult err := ctx.Invoke("azure:cdn/getProfile:getProfile", args, &rv, opts...) if err != nil { return nil, err } return &rv, nil } // A collection of arguments for invoking getProfile. type LookupProfileArgs struct { // The name of the CDN Profile. Name string `pulumi:"name"` // The name of the resource group in which the CDN Profile exists. ResourceGroupName string `pulumi:"resourceGroupName"` } // A collection of values returned by getProfile. type LookupProfileResult struct { // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` // The Azure Region where the resource exists. Location string `pulumi:"location"` Name string `pulumi:"name"` ResourceGroupName string `pulumi:"resourceGroupName"` // The pricing related information of current CDN profile. Sku string `pulumi:"sku"` // A mapping of tags assigned to the resource. Tags map[string]string `pulumi:"tags"` } func LookupProfileOutput(ctx *pulumi.Context, args LookupProfileOutputArgs, opts ...pulumi.InvokeOption) LookupProfileResultOutput { return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupProfileResultOutput, error) { args := v.(LookupProfileArgs) options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} return ctx.InvokeOutput("azure:cdn/getProfile:getProfile", args, LookupProfileResultOutput{}, options).(LookupProfileResultOutput), nil }).(LookupProfileResultOutput) } // A collection of arguments for invoking getProfile. type LookupProfileOutputArgs struct { // The name of the CDN Profile. Name pulumi.StringInput `pulumi:"name"` // The name of the resource group in which the CDN Profile exists. ResourceGroupName pulumi.StringInput `pulumi:"resourceGroupName"` } func (LookupProfileOutputArgs) ElementType() reflect.Type { return reflect.TypeOf((*LookupProfileArgs)(nil)).Elem() } // A collection of values returned by getProfile. type LookupProfileResultOutput struct{ *pulumi.OutputState } func (LookupProfileResultOutput) ElementType() reflect.Type { return reflect.TypeOf((*LookupProfileResult)(nil)).Elem() } func (o LookupProfileResultOutput) ToLookupProfileResultOutput() LookupProfileResultOutput { return o } func (o LookupProfileResultOutput) ToLookupProfileResultOutputWithContext(ctx context.Context) LookupProfileResultOutput { return o } // The provider-assigned unique ID for this managed resource. func (o LookupProfileResultOutput) Id() pulumi.StringOutput { return o.ApplyT(func(v LookupProfileResult) string { return v.Id }).(pulumi.StringOutput) } // The Azure Region where the resource exists. func (o LookupProfileResultOutput) Location() pulumi.StringOutput { return o.ApplyT(func(v LookupProfileResult) string { return v.Location }).(pulumi.StringOutput) } func (o LookupProfileResultOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v LookupProfileResult) string { return v.Name }).(pulumi.StringOutput) } func (o LookupProfileResultOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v LookupProfileResult) string { return v.ResourceGroupName }).(pulumi.StringOutput) } // The pricing related information of current CDN profile. func (o LookupProfileResultOutput) Sku() pulumi.StringOutput { return o.ApplyT(func(v LookupProfileResult) string { return v.Sku }).(pulumi.StringOutput) } // A mapping of tags assigned to the resource. func (o LookupProfileResultOutput) Tags() pulumi.StringMapOutput { return o.ApplyT(func(v LookupProfileResult) map[string]string { return v.Tags }).(pulumi.StringMapOutput) } func init() { pulumi.RegisterOutputType(LookupProfileResultOutput{}) }
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/cdn/frontdoorFirewallPolicy.go
sdk/go/azure/cdn/frontdoorFirewallPolicy.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 cdn import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a Front Door (standard/premium) Firewall Policy instance. // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/cdn" // "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-cdn-frontdoor"), // Location: pulumi.String("West Europe"), // }) // if err != nil { // return err // } // exampleFrontdoorProfile, err := cdn.NewFrontdoorProfile(ctx, "example", &cdn.FrontdoorProfileArgs{ // Name: pulumi.String("example-profile"), // ResourceGroupName: example.Name, // SkuName: pulumi.String("Premium_AzureFrontDoor"), // }) // if err != nil { // return err // } // _, err = cdn.NewFrontdoorFirewallPolicy(ctx, "example", &cdn.FrontdoorFirewallPolicyArgs{ // Name: pulumi.String("examplecdnfdwafpolicy"), // ResourceGroupName: example.Name, // SkuName: exampleFrontdoorProfile.SkuName, // Enabled: pulumi.Bool(true), // Mode: pulumi.String("Prevention"), // RedirectUrl: pulumi.String("https://www.contoso.com"), // CustomBlockResponseStatusCode: pulumi.Int(403), // CustomBlockResponseBody: pulumi.String("PGh0bWw+CjxoZWFkZXI+PHRpdGxlPkhlbGxvPC90aXRsZT48L2hlYWRlcj4KPGJvZHk+CkhlbGxvIHdvcmxkCjwvYm9keT4KPC9odG1sPg=="), // CustomRules: cdn.FrontdoorFirewallPolicyCustomRuleArray{ // &cdn.FrontdoorFirewallPolicyCustomRuleArgs{ // Name: pulumi.String("Rule1"), // Enabled: pulumi.Bool(true), // Priority: pulumi.Int(1), // RateLimitDurationInMinutes: pulumi.Int(1), // RateLimitThreshold: pulumi.Int(10), // Type: pulumi.String("MatchRule"), // Action: pulumi.String("Block"), // MatchConditions: cdn.FrontdoorFirewallPolicyCustomRuleMatchConditionArray{ // &cdn.FrontdoorFirewallPolicyCustomRuleMatchConditionArgs{ // MatchVariable: pulumi.String("RemoteAddr"), // Operator: pulumi.String("IPMatch"), // NegationCondition: pulumi.Bool(false), // MatchValues: pulumi.StringArray{ // pulumi.String("10.0.1.0/24"), // pulumi.String("10.0.0.0/24"), // }, // }, // }, // }, // &cdn.FrontdoorFirewallPolicyCustomRuleArgs{ // Name: pulumi.String("Rule2"), // Enabled: pulumi.Bool(true), // Priority: pulumi.Int(50), // RateLimitDurationInMinutes: pulumi.Int(1), // RateLimitThreshold: pulumi.Int(10), // Type: pulumi.String("MatchRule"), // Action: pulumi.String("Block"), // MatchConditions: cdn.FrontdoorFirewallPolicyCustomRuleMatchConditionArray{ // &cdn.FrontdoorFirewallPolicyCustomRuleMatchConditionArgs{ // MatchVariable: pulumi.String("RemoteAddr"), // Operator: pulumi.String("IPMatch"), // NegationCondition: pulumi.Bool(false), // MatchValues: pulumi.StringArray{ // pulumi.String("192.168.1.0/24"), // }, // }, // &cdn.FrontdoorFirewallPolicyCustomRuleMatchConditionArgs{ // MatchVariable: pulumi.String("RequestHeader"), // Selector: pulumi.String("UserAgent"), // Operator: pulumi.String("Contains"), // NegationCondition: pulumi.Bool(false), // MatchValues: pulumi.StringArray{ // pulumi.String("windows"), // }, // Transforms: pulumi.StringArray{ // pulumi.String("Lowercase"), // pulumi.String("Trim"), // }, // }, // }, // }, // }, // ManagedRules: cdn.FrontdoorFirewallPolicyManagedRuleArray{ // &cdn.FrontdoorFirewallPolicyManagedRuleArgs{ // Type: pulumi.String("DefaultRuleSet"), // Version: pulumi.String("1.0"), // Action: pulumi.String("Log"), // Exclusions: cdn.FrontdoorFirewallPolicyManagedRuleExclusionArray{ // &cdn.FrontdoorFirewallPolicyManagedRuleExclusionArgs{ // MatchVariable: pulumi.String("QueryStringArgNames"), // Operator: pulumi.String("Equals"), // Selector: pulumi.String("not_suspicious"), // }, // }, // Overrides: cdn.FrontdoorFirewallPolicyManagedRuleOverrideArray{ // &cdn.FrontdoorFirewallPolicyManagedRuleOverrideArgs{ // RuleGroupName: pulumi.String("PHP"), // Rules: cdn.FrontdoorFirewallPolicyManagedRuleOverrideRuleArray{ // &cdn.FrontdoorFirewallPolicyManagedRuleOverrideRuleArgs{ // RuleId: pulumi.String("933100"), // Enabled: pulumi.Bool(false), // Action: pulumi.String("Block"), // }, // }, // }, // &cdn.FrontdoorFirewallPolicyManagedRuleOverrideArgs{ // RuleGroupName: pulumi.String("SQLI"), // Exclusions: cdn.FrontdoorFirewallPolicyManagedRuleOverrideExclusionArray{ // &cdn.FrontdoorFirewallPolicyManagedRuleOverrideExclusionArgs{ // MatchVariable: pulumi.String("QueryStringArgNames"), // Operator: pulumi.String("Equals"), // Selector: pulumi.String("really_not_suspicious"), // }, // }, // Rules: cdn.FrontdoorFirewallPolicyManagedRuleOverrideRuleArray{ // &cdn.FrontdoorFirewallPolicyManagedRuleOverrideRuleArgs{ // RuleId: pulumi.String("942200"), // Action: pulumi.String("Block"), // Exclusions: cdn.FrontdoorFirewallPolicyManagedRuleOverrideRuleExclusionArray{ // &cdn.FrontdoorFirewallPolicyManagedRuleOverrideRuleExclusionArgs{ // MatchVariable: pulumi.String("QueryStringArgNames"), // Operator: pulumi.String("Equals"), // Selector: pulumi.String("innocent"), // }, // }, // }, // }, // }, // }, // }, // &cdn.FrontdoorFirewallPolicyManagedRuleArgs{ // Type: pulumi.String("Microsoft_BotManagerRuleSet"), // Version: pulumi.String("1.1"), // Action: pulumi.String("Log"), // }, // }, // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## `scrubbingRule` Examples: // // The following table shows examples of `scrubbingRule`'s that can be used to protect sensitive data: // // | Match Variable | Operator | Selector | What Gets Scrubbed | // | :--------------------------- | :------------- | :------------ | :---------------------------------------------------------------------------- | // | `RequestHeaderNames` | Equals | keyToBlock | {"matchVariableName":"HeaderValue:keyToBlock","matchVariableValue":"****"} | // | `RequestCookieNames` | Equals | cookieToBlock | {"matchVariableName":"CookieValue:cookieToBlock","matchVariableValue":"****"} | // | `RequestBodyPostArgNames` | Equals | var | {"matchVariableName":"PostParamValue:var","matchVariableValue":"****"} | // | `RequestBodyJsonArgNames` | Equals | JsonValue | {"matchVariableName":"JsonValue:key","matchVariableValue":"****"} | // | `QueryStringArgNames` | Equals | foo | {"matchVariableName":"QueryParamValue:foo","matchVariableValue":"****"} | // | `RequestIPAddress` | Equals Any | Not Supported | {"matchVariableName":"ClientIP","matchVariableValue":"****"} | // | `RequestUri` | Equals Any | Not Supported | {"matchVariableName":"URI","matchVariableValue":"****"} | // // *** // // ## Import // // Front Door Firewall Policies can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:cdn/frontdoorFirewallPolicy:FrontdoorFirewallPolicy example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/Microsoft.Network/frontDoorWebApplicationFirewallPolicies/firewallPolicy1 // ``` type FrontdoorFirewallPolicy struct { pulumi.CustomResourceState CaptchaCookieExpirationInMinutes pulumi.IntOutput `pulumi:"captchaCookieExpirationInMinutes"` // If a `customRule` block's action type is `block`, this is the response body. The body must be specified in base64 encoding. CustomBlockResponseBody pulumi.StringPtrOutput `pulumi:"customBlockResponseBody"` // If a `customRule` block's action type is `block`, this is the response status code. Possible values are `200`, `403`, `405`, `406`, or `429`. CustomBlockResponseStatusCode pulumi.IntPtrOutput `pulumi:"customBlockResponseStatusCode"` // One or more `customRule` blocks as defined below. CustomRules FrontdoorFirewallPolicyCustomRuleArrayOutput `pulumi:"customRules"` // Is the Front Door Firewall Policy enabled? Defaults to `true`. Enabled pulumi.BoolPtrOutput `pulumi:"enabled"` // The Front Door Profiles frontend endpoints associated with this Front Door Firewall Policy. FrontendEndpointIds pulumi.StringArrayOutput `pulumi:"frontendEndpointIds"` JsChallengeCookieExpirationInMinutes pulumi.IntOutput `pulumi:"jsChallengeCookieExpirationInMinutes"` // A `logScrubbing` block as defined below. // // !> **Note:** Setting the`logScrubbing` block is currently in **PREVIEW**. Please see the [Supplemental Terms of Use for Microsoft Azure Previews](https://azure.microsoft.com/support/legal/preview-supplemental-terms/) for legal terms that apply to Azure features that are in beta, preview, or otherwise not yet released into general availability. LogScrubbing FrontdoorFirewallPolicyLogScrubbingPtrOutput `pulumi:"logScrubbing"` // One or more `managedRule` blocks as defined below. ManagedRules FrontdoorFirewallPolicyManagedRuleArrayOutput `pulumi:"managedRules"` // The Front Door Firewall Policy mode. Possible values are `Detection`, `Prevention`. Mode pulumi.StringOutput `pulumi:"mode"` // The name of the policy. Changing this forces a new resource to be created. Name pulumi.StringOutput `pulumi:"name"` // If action type is redirect, this field represents redirect URL for the client. RedirectUrl pulumi.StringPtrOutput `pulumi:"redirectUrl"` // Should policy managed rules inspect the request body content? Defaults to `true`. // // > **Note:** When run in `Detection` mode, the Front Door Firewall Policy doesn't take any other actions other than monitoring and logging the request and its matched Front Door Rule to the Web Application Firewall logs. RequestBodyCheckEnabled pulumi.BoolPtrOutput `pulumi:"requestBodyCheckEnabled"` // The name of the resource group. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // The sku's pricing tier for this Front Door Firewall Policy. Possible values include `Standard_AzureFrontDoor` or `Premium_AzureFrontDoor`. Changing this forces a new resource to be created. // // > **Note:** The `Standard_AzureFrontDoor` Front Door Firewall Policy sku may contain `custom` rules only. The `Premium_AzureFrontDoor` Front Door Firewall Policy sku's may contain both `custom` and `managed` rules. SkuName pulumi.StringOutput `pulumi:"skuName"` // A mapping of tags to assign to the Front Door Firewall Policy. Tags pulumi.StringMapOutput `pulumi:"tags"` } // NewFrontdoorFirewallPolicy registers a new resource with the given unique name, arguments, and options. func NewFrontdoorFirewallPolicy(ctx *pulumi.Context, name string, args *FrontdoorFirewallPolicyArgs, opts ...pulumi.ResourceOption) (*FrontdoorFirewallPolicy, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.Mode == nil { return nil, errors.New("invalid value for required argument 'Mode'") } 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 FrontdoorFirewallPolicy err := ctx.RegisterResource("azure:cdn/frontdoorFirewallPolicy:FrontdoorFirewallPolicy", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetFrontdoorFirewallPolicy gets an existing FrontdoorFirewallPolicy 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 GetFrontdoorFirewallPolicy(ctx *pulumi.Context, name string, id pulumi.IDInput, state *FrontdoorFirewallPolicyState, opts ...pulumi.ResourceOption) (*FrontdoorFirewallPolicy, error) { var resource FrontdoorFirewallPolicy err := ctx.ReadResource("azure:cdn/frontdoorFirewallPolicy:FrontdoorFirewallPolicy", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering FrontdoorFirewallPolicy resources. type frontdoorFirewallPolicyState struct { CaptchaCookieExpirationInMinutes *int `pulumi:"captchaCookieExpirationInMinutes"` // If a `customRule` block's action type is `block`, this is the response body. The body must be specified in base64 encoding. CustomBlockResponseBody *string `pulumi:"customBlockResponseBody"` // If a `customRule` block's action type is `block`, this is the response status code. Possible values are `200`, `403`, `405`, `406`, or `429`. CustomBlockResponseStatusCode *int `pulumi:"customBlockResponseStatusCode"` // One or more `customRule` blocks as defined below. CustomRules []FrontdoorFirewallPolicyCustomRule `pulumi:"customRules"` // Is the Front Door Firewall Policy enabled? Defaults to `true`. Enabled *bool `pulumi:"enabled"` // The Front Door Profiles frontend endpoints associated with this Front Door Firewall Policy. FrontendEndpointIds []string `pulumi:"frontendEndpointIds"` JsChallengeCookieExpirationInMinutes *int `pulumi:"jsChallengeCookieExpirationInMinutes"` // A `logScrubbing` block as defined below. // // !> **Note:** Setting the`logScrubbing` block is currently in **PREVIEW**. Please see the [Supplemental Terms of Use for Microsoft Azure Previews](https://azure.microsoft.com/support/legal/preview-supplemental-terms/) for legal terms that apply to Azure features that are in beta, preview, or otherwise not yet released into general availability. LogScrubbing *FrontdoorFirewallPolicyLogScrubbing `pulumi:"logScrubbing"` // One or more `managedRule` blocks as defined below. ManagedRules []FrontdoorFirewallPolicyManagedRule `pulumi:"managedRules"` // The Front Door Firewall Policy mode. Possible values are `Detection`, `Prevention`. Mode *string `pulumi:"mode"` // The name of the policy. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // If action type is redirect, this field represents redirect URL for the client. RedirectUrl *string `pulumi:"redirectUrl"` // Should policy managed rules inspect the request body content? Defaults to `true`. // // > **Note:** When run in `Detection` mode, the Front Door Firewall Policy doesn't take any other actions other than monitoring and logging the request and its matched Front Door Rule to the Web Application Firewall logs. RequestBodyCheckEnabled *bool `pulumi:"requestBodyCheckEnabled"` // The name of the resource group. Changing this forces a new resource to be created. ResourceGroupName *string `pulumi:"resourceGroupName"` // The sku's pricing tier for this Front Door Firewall Policy. Possible values include `Standard_AzureFrontDoor` or `Premium_AzureFrontDoor`. Changing this forces a new resource to be created. // // > **Note:** The `Standard_AzureFrontDoor` Front Door Firewall Policy sku may contain `custom` rules only. The `Premium_AzureFrontDoor` Front Door Firewall Policy sku's may contain both `custom` and `managed` rules. SkuName *string `pulumi:"skuName"` // A mapping of tags to assign to the Front Door Firewall Policy. Tags map[string]string `pulumi:"tags"` } type FrontdoorFirewallPolicyState struct { CaptchaCookieExpirationInMinutes pulumi.IntPtrInput // If a `customRule` block's action type is `block`, this is the response body. The body must be specified in base64 encoding. CustomBlockResponseBody pulumi.StringPtrInput // If a `customRule` block's action type is `block`, this is the response status code. Possible values are `200`, `403`, `405`, `406`, or `429`. CustomBlockResponseStatusCode pulumi.IntPtrInput // One or more `customRule` blocks as defined below. CustomRules FrontdoorFirewallPolicyCustomRuleArrayInput // Is the Front Door Firewall Policy enabled? Defaults to `true`. Enabled pulumi.BoolPtrInput // The Front Door Profiles frontend endpoints associated with this Front Door Firewall Policy. FrontendEndpointIds pulumi.StringArrayInput JsChallengeCookieExpirationInMinutes pulumi.IntPtrInput // A `logScrubbing` block as defined below. // // !> **Note:** Setting the`logScrubbing` block is currently in **PREVIEW**. Please see the [Supplemental Terms of Use for Microsoft Azure Previews](https://azure.microsoft.com/support/legal/preview-supplemental-terms/) for legal terms that apply to Azure features that are in beta, preview, or otherwise not yet released into general availability. LogScrubbing FrontdoorFirewallPolicyLogScrubbingPtrInput // One or more `managedRule` blocks as defined below. ManagedRules FrontdoorFirewallPolicyManagedRuleArrayInput // The Front Door Firewall Policy mode. Possible values are `Detection`, `Prevention`. Mode pulumi.StringPtrInput // The name of the policy. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // If action type is redirect, this field represents redirect URL for the client. RedirectUrl pulumi.StringPtrInput // Should policy managed rules inspect the request body content? Defaults to `true`. // // > **Note:** When run in `Detection` mode, the Front Door Firewall Policy doesn't take any other actions other than monitoring and logging the request and its matched Front Door Rule to the Web Application Firewall logs. RequestBodyCheckEnabled pulumi.BoolPtrInput // The name of the resource group. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringPtrInput // The sku's pricing tier for this Front Door Firewall Policy. Possible values include `Standard_AzureFrontDoor` or `Premium_AzureFrontDoor`. Changing this forces a new resource to be created. // // > **Note:** The `Standard_AzureFrontDoor` Front Door Firewall Policy sku may contain `custom` rules only. The `Premium_AzureFrontDoor` Front Door Firewall Policy sku's may contain both `custom` and `managed` rules. SkuName pulumi.StringPtrInput // A mapping of tags to assign to the Front Door Firewall Policy. Tags pulumi.StringMapInput } func (FrontdoorFirewallPolicyState) ElementType() reflect.Type { return reflect.TypeOf((*frontdoorFirewallPolicyState)(nil)).Elem() } type frontdoorFirewallPolicyArgs struct { CaptchaCookieExpirationInMinutes *int `pulumi:"captchaCookieExpirationInMinutes"` // If a `customRule` block's action type is `block`, this is the response body. The body must be specified in base64 encoding. CustomBlockResponseBody *string `pulumi:"customBlockResponseBody"` // If a `customRule` block's action type is `block`, this is the response status code. Possible values are `200`, `403`, `405`, `406`, or `429`. CustomBlockResponseStatusCode *int `pulumi:"customBlockResponseStatusCode"` // One or more `customRule` blocks as defined below. CustomRules []FrontdoorFirewallPolicyCustomRule `pulumi:"customRules"` // Is the Front Door Firewall Policy enabled? Defaults to `true`. Enabled *bool `pulumi:"enabled"` JsChallengeCookieExpirationInMinutes *int `pulumi:"jsChallengeCookieExpirationInMinutes"` // A `logScrubbing` block as defined below. // // !> **Note:** Setting the`logScrubbing` block is currently in **PREVIEW**. Please see the [Supplemental Terms of Use for Microsoft Azure Previews](https://azure.microsoft.com/support/legal/preview-supplemental-terms/) for legal terms that apply to Azure features that are in beta, preview, or otherwise not yet released into general availability. LogScrubbing *FrontdoorFirewallPolicyLogScrubbing `pulumi:"logScrubbing"` // One or more `managedRule` blocks as defined below. ManagedRules []FrontdoorFirewallPolicyManagedRule `pulumi:"managedRules"` // The Front Door Firewall Policy mode. Possible values are `Detection`, `Prevention`. Mode string `pulumi:"mode"` // The name of the policy. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // If action type is redirect, this field represents redirect URL for the client. RedirectUrl *string `pulumi:"redirectUrl"` // Should policy managed rules inspect the request body content? Defaults to `true`. // // > **Note:** When run in `Detection` mode, the Front Door Firewall Policy doesn't take any other actions other than monitoring and logging the request and its matched Front Door Rule to the Web Application Firewall logs. RequestBodyCheckEnabled *bool `pulumi:"requestBodyCheckEnabled"` // The name of the resource group. Changing this forces a new resource to be created. ResourceGroupName string `pulumi:"resourceGroupName"` // The sku's pricing tier for this Front Door Firewall Policy. Possible values include `Standard_AzureFrontDoor` or `Premium_AzureFrontDoor`. Changing this forces a new resource to be created. // // > **Note:** The `Standard_AzureFrontDoor` Front Door Firewall Policy sku may contain `custom` rules only. The `Premium_AzureFrontDoor` Front Door Firewall Policy sku's may contain both `custom` and `managed` rules. SkuName string `pulumi:"skuName"` // A mapping of tags to assign to the Front Door Firewall Policy. Tags map[string]string `pulumi:"tags"` } // The set of arguments for constructing a FrontdoorFirewallPolicy resource. type FrontdoorFirewallPolicyArgs struct { CaptchaCookieExpirationInMinutes pulumi.IntPtrInput // If a `customRule` block's action type is `block`, this is the response body. The body must be specified in base64 encoding. CustomBlockResponseBody pulumi.StringPtrInput // If a `customRule` block's action type is `block`, this is the response status code. Possible values are `200`, `403`, `405`, `406`, or `429`. CustomBlockResponseStatusCode pulumi.IntPtrInput // One or more `customRule` blocks as defined below. CustomRules FrontdoorFirewallPolicyCustomRuleArrayInput // Is the Front Door Firewall Policy enabled? Defaults to `true`. Enabled pulumi.BoolPtrInput JsChallengeCookieExpirationInMinutes pulumi.IntPtrInput // A `logScrubbing` block as defined below. // // !> **Note:** Setting the`logScrubbing` block is currently in **PREVIEW**. Please see the [Supplemental Terms of Use for Microsoft Azure Previews](https://azure.microsoft.com/support/legal/preview-supplemental-terms/) for legal terms that apply to Azure features that are in beta, preview, or otherwise not yet released into general availability. LogScrubbing FrontdoorFirewallPolicyLogScrubbingPtrInput // One or more `managedRule` blocks as defined below. ManagedRules FrontdoorFirewallPolicyManagedRuleArrayInput // The Front Door Firewall Policy mode. Possible values are `Detection`, `Prevention`. Mode pulumi.StringInput // The name of the policy. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // If action type is redirect, this field represents redirect URL for the client. RedirectUrl pulumi.StringPtrInput // Should policy managed rules inspect the request body content? Defaults to `true`. // // > **Note:** When run in `Detection` mode, the Front Door Firewall Policy doesn't take any other actions other than monitoring and logging the request and its matched Front Door Rule to the Web Application Firewall logs. RequestBodyCheckEnabled pulumi.BoolPtrInput // The name of the resource group. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringInput // The sku's pricing tier for this Front Door Firewall Policy. Possible values include `Standard_AzureFrontDoor` or `Premium_AzureFrontDoor`. Changing this forces a new resource to be created. // // > **Note:** The `Standard_AzureFrontDoor` Front Door Firewall Policy sku may contain `custom` rules only. The `Premium_AzureFrontDoor` Front Door Firewall Policy sku's may contain both `custom` and `managed` rules. SkuName pulumi.StringInput // A mapping of tags to assign to the Front Door Firewall Policy. Tags pulumi.StringMapInput } func (FrontdoorFirewallPolicyArgs) ElementType() reflect.Type { return reflect.TypeOf((*frontdoorFirewallPolicyArgs)(nil)).Elem() } type FrontdoorFirewallPolicyInput interface { pulumi.Input ToFrontdoorFirewallPolicyOutput() FrontdoorFirewallPolicyOutput ToFrontdoorFirewallPolicyOutputWithContext(ctx context.Context) FrontdoorFirewallPolicyOutput } func (*FrontdoorFirewallPolicy) ElementType() reflect.Type { return reflect.TypeOf((**FrontdoorFirewallPolicy)(nil)).Elem() } func (i *FrontdoorFirewallPolicy) ToFrontdoorFirewallPolicyOutput() FrontdoorFirewallPolicyOutput { return i.ToFrontdoorFirewallPolicyOutputWithContext(context.Background()) } func (i *FrontdoorFirewallPolicy) ToFrontdoorFirewallPolicyOutputWithContext(ctx context.Context) FrontdoorFirewallPolicyOutput { return pulumi.ToOutputWithContext(ctx, i).(FrontdoorFirewallPolicyOutput) } // FrontdoorFirewallPolicyArrayInput is an input type that accepts FrontdoorFirewallPolicyArray and FrontdoorFirewallPolicyArrayOutput values. // You can construct a concrete instance of `FrontdoorFirewallPolicyArrayInput` via: // // FrontdoorFirewallPolicyArray{ FrontdoorFirewallPolicyArgs{...} } type FrontdoorFirewallPolicyArrayInput interface { pulumi.Input ToFrontdoorFirewallPolicyArrayOutput() FrontdoorFirewallPolicyArrayOutput ToFrontdoorFirewallPolicyArrayOutputWithContext(context.Context) FrontdoorFirewallPolicyArrayOutput } type FrontdoorFirewallPolicyArray []FrontdoorFirewallPolicyInput func (FrontdoorFirewallPolicyArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*FrontdoorFirewallPolicy)(nil)).Elem() } func (i FrontdoorFirewallPolicyArray) ToFrontdoorFirewallPolicyArrayOutput() FrontdoorFirewallPolicyArrayOutput { return i.ToFrontdoorFirewallPolicyArrayOutputWithContext(context.Background()) } func (i FrontdoorFirewallPolicyArray) ToFrontdoorFirewallPolicyArrayOutputWithContext(ctx context.Context) FrontdoorFirewallPolicyArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(FrontdoorFirewallPolicyArrayOutput) } // FrontdoorFirewallPolicyMapInput is an input type that accepts FrontdoorFirewallPolicyMap and FrontdoorFirewallPolicyMapOutput values. // You can construct a concrete instance of `FrontdoorFirewallPolicyMapInput` via: // // FrontdoorFirewallPolicyMap{ "key": FrontdoorFirewallPolicyArgs{...} } type FrontdoorFirewallPolicyMapInput interface { pulumi.Input ToFrontdoorFirewallPolicyMapOutput() FrontdoorFirewallPolicyMapOutput ToFrontdoorFirewallPolicyMapOutputWithContext(context.Context) FrontdoorFirewallPolicyMapOutput } type FrontdoorFirewallPolicyMap map[string]FrontdoorFirewallPolicyInput func (FrontdoorFirewallPolicyMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*FrontdoorFirewallPolicy)(nil)).Elem() } func (i FrontdoorFirewallPolicyMap) ToFrontdoorFirewallPolicyMapOutput() FrontdoorFirewallPolicyMapOutput { return i.ToFrontdoorFirewallPolicyMapOutputWithContext(context.Background()) } func (i FrontdoorFirewallPolicyMap) ToFrontdoorFirewallPolicyMapOutputWithContext(ctx context.Context) FrontdoorFirewallPolicyMapOutput { return pulumi.ToOutputWithContext(ctx, i).(FrontdoorFirewallPolicyMapOutput) } type FrontdoorFirewallPolicyOutput struct{ *pulumi.OutputState } func (FrontdoorFirewallPolicyOutput) ElementType() reflect.Type { return reflect.TypeOf((**FrontdoorFirewallPolicy)(nil)).Elem() } func (o FrontdoorFirewallPolicyOutput) ToFrontdoorFirewallPolicyOutput() FrontdoorFirewallPolicyOutput { return o } func (o FrontdoorFirewallPolicyOutput) ToFrontdoorFirewallPolicyOutputWithContext(ctx context.Context) FrontdoorFirewallPolicyOutput { return o } func (o FrontdoorFirewallPolicyOutput) CaptchaCookieExpirationInMinutes() pulumi.IntOutput { return o.ApplyT(func(v *FrontdoorFirewallPolicy) pulumi.IntOutput { return v.CaptchaCookieExpirationInMinutes }).(pulumi.IntOutput) } // If a `customRule` block's action type is `block`, this is the response body. The body must be specified in base64 encoding. func (o FrontdoorFirewallPolicyOutput) CustomBlockResponseBody() pulumi.StringPtrOutput { return o.ApplyT(func(v *FrontdoorFirewallPolicy) pulumi.StringPtrOutput { return v.CustomBlockResponseBody }).(pulumi.StringPtrOutput) } // If a `customRule` block's action type is `block`, this is the response status code. Possible values are `200`, `403`, `405`, `406`, or `429`. func (o FrontdoorFirewallPolicyOutput) CustomBlockResponseStatusCode() pulumi.IntPtrOutput { return o.ApplyT(func(v *FrontdoorFirewallPolicy) pulumi.IntPtrOutput { return v.CustomBlockResponseStatusCode }).(pulumi.IntPtrOutput) } // One or more `customRule` blocks as defined below. func (o FrontdoorFirewallPolicyOutput) CustomRules() FrontdoorFirewallPolicyCustomRuleArrayOutput { return o.ApplyT(func(v *FrontdoorFirewallPolicy) FrontdoorFirewallPolicyCustomRuleArrayOutput { return v.CustomRules }).(FrontdoorFirewallPolicyCustomRuleArrayOutput) } // Is the Front Door Firewall Policy enabled? Defaults to `true`. func (o FrontdoorFirewallPolicyOutput) Enabled() pulumi.BoolPtrOutput { return o.ApplyT(func(v *FrontdoorFirewallPolicy) pulumi.BoolPtrOutput { return v.Enabled }).(pulumi.BoolPtrOutput) } // The Front Door Profiles frontend endpoints associated with this Front Door Firewall Policy. func (o FrontdoorFirewallPolicyOutput) FrontendEndpointIds() pulumi.StringArrayOutput { return o.ApplyT(func(v *FrontdoorFirewallPolicy) pulumi.StringArrayOutput { return v.FrontendEndpointIds }).(pulumi.StringArrayOutput) } func (o FrontdoorFirewallPolicyOutput) JsChallengeCookieExpirationInMinutes() pulumi.IntOutput { return o.ApplyT(func(v *FrontdoorFirewallPolicy) pulumi.IntOutput { return v.JsChallengeCookieExpirationInMinutes }).(pulumi.IntOutput) } // A `logScrubbing` block as defined below. // // !> **Note:** Setting the`logScrubbing` block is currently in **PREVIEW**. Please see the [Supplemental Terms of Use for Microsoft Azure Previews](https://azure.microsoft.com/support/legal/preview-supplemental-terms/) for legal terms that apply to Azure features that are in beta, preview, or otherwise not yet released into general availability. func (o FrontdoorFirewallPolicyOutput) LogScrubbing() FrontdoorFirewallPolicyLogScrubbingPtrOutput { return o.ApplyT(func(v *FrontdoorFirewallPolicy) FrontdoorFirewallPolicyLogScrubbingPtrOutput { return v.LogScrubbing }).(FrontdoorFirewallPolicyLogScrubbingPtrOutput) } // One or more `managedRule` blocks as defined below. func (o FrontdoorFirewallPolicyOutput) ManagedRules() FrontdoorFirewallPolicyManagedRuleArrayOutput { return o.ApplyT(func(v *FrontdoorFirewallPolicy) FrontdoorFirewallPolicyManagedRuleArrayOutput { return v.ManagedRules }).(FrontdoorFirewallPolicyManagedRuleArrayOutput) } // The Front Door Firewall Policy mode. Possible values are `Detection`, `Prevention`. func (o FrontdoorFirewallPolicyOutput) Mode() pulumi.StringOutput { return o.ApplyT(func(v *FrontdoorFirewallPolicy) pulumi.StringOutput { return v.Mode }).(pulumi.StringOutput) } // The name of the policy. Changing this forces a new resource to be created. func (o FrontdoorFirewallPolicyOutput) Name() pulumi.StringOutput {
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/cdn/frontdoorSecret.go
sdk/go/azure/cdn/frontdoorSecret.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 cdn import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a Front Door (standard/premium) Secret. // // ## Required Key Vault Permissions // // !> **Note:** You must add an `Access Policy` to your `keyvault.KeyVault` for the `Microsoft.AzurefrontDoor-Cdn` Enterprise Application Object ID. // // This can be created by running Az Powershell command like this: // // ```New-AzADServicePrincipal -ApplicationId "00000000-0000-0000-0000-000000000000"``` // // | Object ID | Key Permissions | Secret Permissions | Certificate Permissions | // |:-----------------------------------------|:---------------:|:--------------------:|:---------------------------------------------:| // | `Microsoft.Azure.Cdn` Object ID | - | **Get** | - | // | Your Personal AAD Object ID | - | **Get** and **List** | **Get**, **List**, **Purge** and **Recover** | // | Terraform Service Principal | - | **Get** | **Get**, **Import**, **Delete** and **Purge** | // // -> **Note:** You only need to add the `Access Policy` for your personal AAD Object ID if you are planning to view the `secrets` via the Azure Portal. // // ## Import // // Front Door Secrets can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:cdn/frontdoorSecret:FrontdoorSecret example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/Microsoft.Cdn/profiles/profile1/secrets/secrets1 // ``` type FrontdoorSecret struct { pulumi.CustomResourceState // The Resource ID of the Front Door Profile. Changing this forces a new Front Door Secret to be created. CdnFrontdoorProfileId pulumi.StringOutput `pulumi:"cdnFrontdoorProfileId"` // The name of the Front Door Profile containing this Front Door Secret. CdnFrontdoorProfileName pulumi.StringOutput `pulumi:"cdnFrontdoorProfileName"` // The name which should be used for this Front Door Secret. Possible values must start with a letter or a number, only contain letters, numbers and hyphens and have a length of between 2 and 260 characters. Changing this forces a new Front Door Secret to be created. Name pulumi.StringOutput `pulumi:"name"` // A `secret` block as defined below. Changing this forces a new Front Door Secret to be created. Secret FrontdoorSecretSecretOutput `pulumi:"secret"` } // NewFrontdoorSecret registers a new resource with the given unique name, arguments, and options. func NewFrontdoorSecret(ctx *pulumi.Context, name string, args *FrontdoorSecretArgs, opts ...pulumi.ResourceOption) (*FrontdoorSecret, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.CdnFrontdoorProfileId == nil { return nil, errors.New("invalid value for required argument 'CdnFrontdoorProfileId'") } if args.Secret == nil { return nil, errors.New("invalid value for required argument 'Secret'") } opts = internal.PkgResourceDefaultOpts(opts) var resource FrontdoorSecret err := ctx.RegisterResource("azure:cdn/frontdoorSecret:FrontdoorSecret", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetFrontdoorSecret gets an existing FrontdoorSecret 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 GetFrontdoorSecret(ctx *pulumi.Context, name string, id pulumi.IDInput, state *FrontdoorSecretState, opts ...pulumi.ResourceOption) (*FrontdoorSecret, error) { var resource FrontdoorSecret err := ctx.ReadResource("azure:cdn/frontdoorSecret:FrontdoorSecret", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering FrontdoorSecret resources. type frontdoorSecretState struct { // The Resource ID of the Front Door Profile. Changing this forces a new Front Door Secret to be created. CdnFrontdoorProfileId *string `pulumi:"cdnFrontdoorProfileId"` // The name of the Front Door Profile containing this Front Door Secret. CdnFrontdoorProfileName *string `pulumi:"cdnFrontdoorProfileName"` // The name which should be used for this Front Door Secret. Possible values must start with a letter or a number, only contain letters, numbers and hyphens and have a length of between 2 and 260 characters. Changing this forces a new Front Door Secret to be created. Name *string `pulumi:"name"` // A `secret` block as defined below. Changing this forces a new Front Door Secret to be created. Secret *FrontdoorSecretSecret `pulumi:"secret"` } type FrontdoorSecretState struct { // The Resource ID of the Front Door Profile. Changing this forces a new Front Door Secret to be created. CdnFrontdoorProfileId pulumi.StringPtrInput // The name of the Front Door Profile containing this Front Door Secret. CdnFrontdoorProfileName pulumi.StringPtrInput // The name which should be used for this Front Door Secret. Possible values must start with a letter or a number, only contain letters, numbers and hyphens and have a length of between 2 and 260 characters. Changing this forces a new Front Door Secret to be created. Name pulumi.StringPtrInput // A `secret` block as defined below. Changing this forces a new Front Door Secret to be created. Secret FrontdoorSecretSecretPtrInput } func (FrontdoorSecretState) ElementType() reflect.Type { return reflect.TypeOf((*frontdoorSecretState)(nil)).Elem() } type frontdoorSecretArgs struct { // The Resource ID of the Front Door Profile. Changing this forces a new Front Door Secret to be created. CdnFrontdoorProfileId string `pulumi:"cdnFrontdoorProfileId"` // The name which should be used for this Front Door Secret. Possible values must start with a letter or a number, only contain letters, numbers and hyphens and have a length of between 2 and 260 characters. Changing this forces a new Front Door Secret to be created. Name *string `pulumi:"name"` // A `secret` block as defined below. Changing this forces a new Front Door Secret to be created. Secret FrontdoorSecretSecret `pulumi:"secret"` } // The set of arguments for constructing a FrontdoorSecret resource. type FrontdoorSecretArgs struct { // The Resource ID of the Front Door Profile. Changing this forces a new Front Door Secret to be created. CdnFrontdoorProfileId pulumi.StringInput // The name which should be used for this Front Door Secret. Possible values must start with a letter or a number, only contain letters, numbers and hyphens and have a length of between 2 and 260 characters. Changing this forces a new Front Door Secret to be created. Name pulumi.StringPtrInput // A `secret` block as defined below. Changing this forces a new Front Door Secret to be created. Secret FrontdoorSecretSecretInput } func (FrontdoorSecretArgs) ElementType() reflect.Type { return reflect.TypeOf((*frontdoorSecretArgs)(nil)).Elem() } type FrontdoorSecretInput interface { pulumi.Input ToFrontdoorSecretOutput() FrontdoorSecretOutput ToFrontdoorSecretOutputWithContext(ctx context.Context) FrontdoorSecretOutput } func (*FrontdoorSecret) ElementType() reflect.Type { return reflect.TypeOf((**FrontdoorSecret)(nil)).Elem() } func (i *FrontdoorSecret) ToFrontdoorSecretOutput() FrontdoorSecretOutput { return i.ToFrontdoorSecretOutputWithContext(context.Background()) } func (i *FrontdoorSecret) ToFrontdoorSecretOutputWithContext(ctx context.Context) FrontdoorSecretOutput { return pulumi.ToOutputWithContext(ctx, i).(FrontdoorSecretOutput) } // FrontdoorSecretArrayInput is an input type that accepts FrontdoorSecretArray and FrontdoorSecretArrayOutput values. // You can construct a concrete instance of `FrontdoorSecretArrayInput` via: // // FrontdoorSecretArray{ FrontdoorSecretArgs{...} } type FrontdoorSecretArrayInput interface { pulumi.Input ToFrontdoorSecretArrayOutput() FrontdoorSecretArrayOutput ToFrontdoorSecretArrayOutputWithContext(context.Context) FrontdoorSecretArrayOutput } type FrontdoorSecretArray []FrontdoorSecretInput func (FrontdoorSecretArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*FrontdoorSecret)(nil)).Elem() } func (i FrontdoorSecretArray) ToFrontdoorSecretArrayOutput() FrontdoorSecretArrayOutput { return i.ToFrontdoorSecretArrayOutputWithContext(context.Background()) } func (i FrontdoorSecretArray) ToFrontdoorSecretArrayOutputWithContext(ctx context.Context) FrontdoorSecretArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(FrontdoorSecretArrayOutput) } // FrontdoorSecretMapInput is an input type that accepts FrontdoorSecretMap and FrontdoorSecretMapOutput values. // You can construct a concrete instance of `FrontdoorSecretMapInput` via: // // FrontdoorSecretMap{ "key": FrontdoorSecretArgs{...} } type FrontdoorSecretMapInput interface { pulumi.Input ToFrontdoorSecretMapOutput() FrontdoorSecretMapOutput ToFrontdoorSecretMapOutputWithContext(context.Context) FrontdoorSecretMapOutput } type FrontdoorSecretMap map[string]FrontdoorSecretInput func (FrontdoorSecretMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*FrontdoorSecret)(nil)).Elem() } func (i FrontdoorSecretMap) ToFrontdoorSecretMapOutput() FrontdoorSecretMapOutput { return i.ToFrontdoorSecretMapOutputWithContext(context.Background()) } func (i FrontdoorSecretMap) ToFrontdoorSecretMapOutputWithContext(ctx context.Context) FrontdoorSecretMapOutput { return pulumi.ToOutputWithContext(ctx, i).(FrontdoorSecretMapOutput) } type FrontdoorSecretOutput struct{ *pulumi.OutputState } func (FrontdoorSecretOutput) ElementType() reflect.Type { return reflect.TypeOf((**FrontdoorSecret)(nil)).Elem() } func (o FrontdoorSecretOutput) ToFrontdoorSecretOutput() FrontdoorSecretOutput { return o } func (o FrontdoorSecretOutput) ToFrontdoorSecretOutputWithContext(ctx context.Context) FrontdoorSecretOutput { return o } // The Resource ID of the Front Door Profile. Changing this forces a new Front Door Secret to be created. func (o FrontdoorSecretOutput) CdnFrontdoorProfileId() pulumi.StringOutput { return o.ApplyT(func(v *FrontdoorSecret) pulumi.StringOutput { return v.CdnFrontdoorProfileId }).(pulumi.StringOutput) } // The name of the Front Door Profile containing this Front Door Secret. func (o FrontdoorSecretOutput) CdnFrontdoorProfileName() pulumi.StringOutput { return o.ApplyT(func(v *FrontdoorSecret) pulumi.StringOutput { return v.CdnFrontdoorProfileName }).(pulumi.StringOutput) } // The name which should be used for this Front Door Secret. Possible values must start with a letter or a number, only contain letters, numbers and hyphens and have a length of between 2 and 260 characters. Changing this forces a new Front Door Secret to be created. func (o FrontdoorSecretOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *FrontdoorSecret) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // A `secret` block as defined below. Changing this forces a new Front Door Secret to be created. func (o FrontdoorSecretOutput) Secret() FrontdoorSecretSecretOutput { return o.ApplyT(func(v *FrontdoorSecret) FrontdoorSecretSecretOutput { return v.Secret }).(FrontdoorSecretSecretOutput) } type FrontdoorSecretArrayOutput struct{ *pulumi.OutputState } func (FrontdoorSecretArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*FrontdoorSecret)(nil)).Elem() } func (o FrontdoorSecretArrayOutput) ToFrontdoorSecretArrayOutput() FrontdoorSecretArrayOutput { return o } func (o FrontdoorSecretArrayOutput) ToFrontdoorSecretArrayOutputWithContext(ctx context.Context) FrontdoorSecretArrayOutput { return o } func (o FrontdoorSecretArrayOutput) Index(i pulumi.IntInput) FrontdoorSecretOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *FrontdoorSecret { return vs[0].([]*FrontdoorSecret)[vs[1].(int)] }).(FrontdoorSecretOutput) } type FrontdoorSecretMapOutput struct{ *pulumi.OutputState } func (FrontdoorSecretMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*FrontdoorSecret)(nil)).Elem() } func (o FrontdoorSecretMapOutput) ToFrontdoorSecretMapOutput() FrontdoorSecretMapOutput { return o } func (o FrontdoorSecretMapOutput) ToFrontdoorSecretMapOutputWithContext(ctx context.Context) FrontdoorSecretMapOutput { return o } func (o FrontdoorSecretMapOutput) MapIndex(k pulumi.StringInput) FrontdoorSecretOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *FrontdoorSecret { return vs[0].(map[string]*FrontdoorSecret)[vs[1].(string)] }).(FrontdoorSecretOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*FrontdoorSecretInput)(nil)).Elem(), &FrontdoorSecret{}) pulumi.RegisterInputType(reflect.TypeOf((*FrontdoorSecretArrayInput)(nil)).Elem(), FrontdoorSecretArray{}) pulumi.RegisterInputType(reflect.TypeOf((*FrontdoorSecretMapInput)(nil)).Elem(), FrontdoorSecretMap{}) pulumi.RegisterOutputType(FrontdoorSecretOutput{}) pulumi.RegisterOutputType(FrontdoorSecretArrayOutput{}) pulumi.RegisterOutputType(FrontdoorSecretMapOutput{}) }
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/cdn/getFrontdoorSecret.go
sdk/go/azure/cdn/getFrontdoorSecret.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 cdn 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 Front Door (standard/premium) Secret. // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/cdn" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { // _, err := cdn.LookupFrontdoorSecret(ctx, &cdn.LookupFrontdoorSecretArgs{ // Name: "example-secret", // ProfileName: "example-profile", // ResourceGroupName: "example-resources", // }, nil) // if err != nil { // return err // } // return nil // }) // } // // ``` func LookupFrontdoorSecret(ctx *pulumi.Context, args *LookupFrontdoorSecretArgs, opts ...pulumi.InvokeOption) (*LookupFrontdoorSecretResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupFrontdoorSecretResult err := ctx.Invoke("azure:cdn/getFrontdoorSecret:getFrontdoorSecret", args, &rv, opts...) if err != nil { return nil, err } return &rv, nil } // A collection of arguments for invoking getFrontdoorSecret. type LookupFrontdoorSecretArgs struct { // Specifies the name of the Front Door Secret. Name string `pulumi:"name"` // The name of the Front Door Profile within which the Front Door Secret exists. ProfileName string `pulumi:"profileName"` // The name of the Resource Group where the Front Door Profile exists. ResourceGroupName string `pulumi:"resourceGroupName"` } // A collection of values returned by getFrontdoorSecret. type LookupFrontdoorSecretResult struct { // Specifies the ID of the Front Door Profile within which this Front Door Secret exists. CdnFrontdoorProfileId string `pulumi:"cdnFrontdoorProfileId"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` Name string `pulumi:"name"` ProfileName string `pulumi:"profileName"` ResourceGroupName string `pulumi:"resourceGroupName"` // A `secret` block as defined below. Secrets []GetFrontdoorSecretSecret `pulumi:"secrets"` } func LookupFrontdoorSecretOutput(ctx *pulumi.Context, args LookupFrontdoorSecretOutputArgs, opts ...pulumi.InvokeOption) LookupFrontdoorSecretResultOutput { return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupFrontdoorSecretResultOutput, error) { args := v.(LookupFrontdoorSecretArgs) options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} return ctx.InvokeOutput("azure:cdn/getFrontdoorSecret:getFrontdoorSecret", args, LookupFrontdoorSecretResultOutput{}, options).(LookupFrontdoorSecretResultOutput), nil }).(LookupFrontdoorSecretResultOutput) } // A collection of arguments for invoking getFrontdoorSecret. type LookupFrontdoorSecretOutputArgs struct { // Specifies the name of the Front Door Secret. Name pulumi.StringInput `pulumi:"name"` // The name of the Front Door Profile within which the Front Door Secret exists. ProfileName pulumi.StringInput `pulumi:"profileName"` // The name of the Resource Group where the Front Door Profile exists. ResourceGroupName pulumi.StringInput `pulumi:"resourceGroupName"` } func (LookupFrontdoorSecretOutputArgs) ElementType() reflect.Type { return reflect.TypeOf((*LookupFrontdoorSecretArgs)(nil)).Elem() } // A collection of values returned by getFrontdoorSecret. type LookupFrontdoorSecretResultOutput struct{ *pulumi.OutputState } func (LookupFrontdoorSecretResultOutput) ElementType() reflect.Type { return reflect.TypeOf((*LookupFrontdoorSecretResult)(nil)).Elem() } func (o LookupFrontdoorSecretResultOutput) ToLookupFrontdoorSecretResultOutput() LookupFrontdoorSecretResultOutput { return o } func (o LookupFrontdoorSecretResultOutput) ToLookupFrontdoorSecretResultOutputWithContext(ctx context.Context) LookupFrontdoorSecretResultOutput { return o } // Specifies the ID of the Front Door Profile within which this Front Door Secret exists. func (o LookupFrontdoorSecretResultOutput) CdnFrontdoorProfileId() pulumi.StringOutput { return o.ApplyT(func(v LookupFrontdoorSecretResult) string { return v.CdnFrontdoorProfileId }).(pulumi.StringOutput) } // The provider-assigned unique ID for this managed resource. func (o LookupFrontdoorSecretResultOutput) Id() pulumi.StringOutput { return o.ApplyT(func(v LookupFrontdoorSecretResult) string { return v.Id }).(pulumi.StringOutput) } func (o LookupFrontdoorSecretResultOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v LookupFrontdoorSecretResult) string { return v.Name }).(pulumi.StringOutput) } func (o LookupFrontdoorSecretResultOutput) ProfileName() pulumi.StringOutput { return o.ApplyT(func(v LookupFrontdoorSecretResult) string { return v.ProfileName }).(pulumi.StringOutput) } func (o LookupFrontdoorSecretResultOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v LookupFrontdoorSecretResult) string { return v.ResourceGroupName }).(pulumi.StringOutput) } // A `secret` block as defined below. func (o LookupFrontdoorSecretResultOutput) Secrets() GetFrontdoorSecretSecretArrayOutput { return o.ApplyT(func(v LookupFrontdoorSecretResult) []GetFrontdoorSecretSecret { return v.Secrets }).(GetFrontdoorSecretSecretArrayOutput) } func init() { pulumi.RegisterOutputType(LookupFrontdoorSecretResultOutput{}) }
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/cdn/frontdoorCustomDomain.go
sdk/go/azure/cdn/frontdoorCustomDomain.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 cdn 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/cdn" // "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-cdn-frontdoor"), // Location: pulumi.String("West Europe"), // }) // if err != nil { // return err // } // exampleZone, err := dns.NewZone(ctx, "example", &dns.ZoneArgs{ // Name: pulumi.String("sub-domain.domain.com"), // ResourceGroupName: example.Name, // }) // if err != nil { // return err // } // exampleFrontdoorProfile, err := cdn.NewFrontdoorProfile(ctx, "example", &cdn.FrontdoorProfileArgs{ // Name: pulumi.String("example-profile"), // ResourceGroupName: example.Name, // SkuName: pulumi.String("Standard_AzureFrontDoor"), // }) // if err != nil { // return err // } // _, err = cdn.NewFrontdoorCustomDomain(ctx, "example", &cdn.FrontdoorCustomDomainArgs{ // Name: pulumi.String("example-customDomain"), // CdnFrontdoorProfileId: exampleFrontdoorProfile.ID(), // DnsZoneId: exampleZone.ID(), // HostName: pulumi.String("contoso.fabrikam.com"), // Tls: &cdn.FrontdoorCustomDomainTlsArgs{ // CertificateType: pulumi.String("ManagedCertificate"), // MinimumTlsVersion: pulumi.String("TLS12"), // }, // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## Example DNS Auth TXT Record Usage // // The name of your DNS TXT record should be in the format of `_dnsauth.<your_subdomain>`. So, for example, if we use the `hostName` in the example usage above you would create a DNS TXT record with the name of `_dnsauth.contoso` which contains the value of the Front Door Custom Domains `validationToken` field. See the [product documentation](https://learn.microsoft.com/azure/frontdoor/standard-premium/how-to-add-custom-domain) for more information. // // ```go // package main // // import ( // // "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 { // invokeJoin, err := std.Join(ctx, &std.JoinArgs{ // Separator: ".", // Input: []string{ // "_dnsauth", // "contoso", // }, // }, nil) // if err != nil { // return err // } // _, err = dns.NewTxtRecord(ctx, "example", &dns.TxtRecordArgs{ // Name: pulumi.String(invokeJoin.Result), // ZoneName: pulumi.Any(exampleAzurermDnsZone.Name), // ResourceGroupName: pulumi.Any(exampleAzurermResourceGroup.Name), // Ttl: pulumi.Int(3600), // Records: dns.TxtRecordRecordArray{ // &dns.TxtRecordRecordArgs{ // Value: pulumi.Any(exampleAzurermCdnFrontdoorCustomDomain.ValidationToken), // }, // }, // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## Example CNAME Record Usage // // !> **Note:** You **must** include the `dependsOn` meta-argument which references both the `cdn.FrontdoorRoute` and the `cdn.FrontdoorSecurityPolicy` that are associated with your Custom Domain. The reason for these `dependsOn` meta-arguments is because all of the resources for the Custom Domain need to be associated within Front Door before the CNAME record can be written to the domains DNS, else the CNAME validation will fail and Front Door will not enable traffic to the Domain. // // ```go // package main // // import ( // // "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 { // _, err := dns.NewCNameRecord(ctx, "example", &dns.CNameRecordArgs{ // Name: pulumi.String("contoso"), // ZoneName: pulumi.Any(exampleAzurermDnsZone.Name), // ResourceGroupName: pulumi.Any(exampleAzurermResourceGroup.Name), // Ttl: pulumi.Int(3600), // Record: pulumi.Any(exampleAzurermCdnFrontdoorEndpoint.HostName), // }, pulumi.DependsOn([]pulumi.Resource{ // exampleAzurermCdnFrontdoorRoute, // exampleAzurermCdnFrontdoorSecurityPolicy, // })) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## Import // // Front Door Custom Domains can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:cdn/frontdoorCustomDomain:FrontdoorCustomDomain example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/Microsoft.Cdn/profiles/profile1/customDomains/customDomain1 // ``` type FrontdoorCustomDomain struct { pulumi.CustomResourceState // The ID of the Front Door Profile. Changing this forces a new Front Door Custom Domain to be created. CdnFrontdoorProfileId pulumi.StringOutput `pulumi:"cdnFrontdoorProfileId"` // The ID of the Azure DNS Zone which should be used for this Front Door Custom Domain. If you are using Azure to host your [DNS domains](https://learn.microsoft.com/azure/dns/dns-overview), you must delegate the domain provider's domain name system (DNS) to an Azure DNS Zone. For more information, see [Delegate a domain to Azure DNS](https://learn.microsoft.com/azure/dns/dns-delegate-domain-azure-dns). Otherwise, if you're using your own domain provider to handle your DNS, you must validate the Front Door Custom Domain by creating the DNS TXT records manually. // // <!-- * `preValidatedCdnFrontdoorCustomDomainId` - (Optional) The resource ID of the pre-validated Front Door Custom Domain. This domain type is used when you wish to onboard a validated Azure service domain, and then configure the Azure service behind an Azure Front Door. // // > **Note:** Currently `preValidatedCdnFrontdoorCustomDomainId` only supports domains validated by Static Web App. --> DnsZoneId pulumi.StringPtrOutput `pulumi:"dnsZoneId"` // The date time that the token expires. ExpirationDate pulumi.StringOutput `pulumi:"expirationDate"` // The host name of the domain. The `hostName` field must be the FQDN of your domain(e.g. `contoso.fabrikam.com`). Changing this forces a new Front Door Custom Domain to be created. HostName pulumi.StringOutput `pulumi:"hostName"` // The name which should be used for this Front Door Custom Domain. Possible values must be between 2 and 260 characters in length, must begin with a letter or number, end with a letter or number and contain only letters, numbers and hyphens. Changing this forces a new Front Door Custom Domain to be created. Name pulumi.StringOutput `pulumi:"name"` // A `tls` block as defined below. Tls FrontdoorCustomDomainTlsOutput `pulumi:"tls"` // Challenge used for DNS TXT record or file based validation. ValidationToken pulumi.StringOutput `pulumi:"validationToken"` } // NewFrontdoorCustomDomain registers a new resource with the given unique name, arguments, and options. func NewFrontdoorCustomDomain(ctx *pulumi.Context, name string, args *FrontdoorCustomDomainArgs, opts ...pulumi.ResourceOption) (*FrontdoorCustomDomain, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.CdnFrontdoorProfileId == nil { return nil, errors.New("invalid value for required argument 'CdnFrontdoorProfileId'") } if args.HostName == nil { return nil, errors.New("invalid value for required argument 'HostName'") } if args.Tls == nil { return nil, errors.New("invalid value for required argument 'Tls'") } aliases := pulumi.Aliases([]pulumi.Alias{ { Type: pulumi.String("azure:cdn/frontdoorCustomEndpoint:FrontdoorCustomEndpoint"), }, }) opts = append(opts, aliases) opts = internal.PkgResourceDefaultOpts(opts) var resource FrontdoorCustomDomain err := ctx.RegisterResource("azure:cdn/frontdoorCustomDomain:FrontdoorCustomDomain", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetFrontdoorCustomDomain gets an existing FrontdoorCustomDomain 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 GetFrontdoorCustomDomain(ctx *pulumi.Context, name string, id pulumi.IDInput, state *FrontdoorCustomDomainState, opts ...pulumi.ResourceOption) (*FrontdoorCustomDomain, error) { var resource FrontdoorCustomDomain err := ctx.ReadResource("azure:cdn/frontdoorCustomDomain:FrontdoorCustomDomain", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering FrontdoorCustomDomain resources. type frontdoorCustomDomainState struct { // The ID of the Front Door Profile. Changing this forces a new Front Door Custom Domain to be created. CdnFrontdoorProfileId *string `pulumi:"cdnFrontdoorProfileId"` // The ID of the Azure DNS Zone which should be used for this Front Door Custom Domain. If you are using Azure to host your [DNS domains](https://learn.microsoft.com/azure/dns/dns-overview), you must delegate the domain provider's domain name system (DNS) to an Azure DNS Zone. For more information, see [Delegate a domain to Azure DNS](https://learn.microsoft.com/azure/dns/dns-delegate-domain-azure-dns). Otherwise, if you're using your own domain provider to handle your DNS, you must validate the Front Door Custom Domain by creating the DNS TXT records manually. // // <!-- * `preValidatedCdnFrontdoorCustomDomainId` - (Optional) The resource ID of the pre-validated Front Door Custom Domain. This domain type is used when you wish to onboard a validated Azure service domain, and then configure the Azure service behind an Azure Front Door. // // > **Note:** Currently `preValidatedCdnFrontdoorCustomDomainId` only supports domains validated by Static Web App. --> DnsZoneId *string `pulumi:"dnsZoneId"` // The date time that the token expires. ExpirationDate *string `pulumi:"expirationDate"` // The host name of the domain. The `hostName` field must be the FQDN of your domain(e.g. `contoso.fabrikam.com`). Changing this forces a new Front Door Custom Domain to be created. HostName *string `pulumi:"hostName"` // The name which should be used for this Front Door Custom Domain. Possible values must be between 2 and 260 characters in length, must begin with a letter or number, end with a letter or number and contain only letters, numbers and hyphens. Changing this forces a new Front Door Custom Domain to be created. Name *string `pulumi:"name"` // A `tls` block as defined below. Tls *FrontdoorCustomDomainTls `pulumi:"tls"` // Challenge used for DNS TXT record or file based validation. ValidationToken *string `pulumi:"validationToken"` } type FrontdoorCustomDomainState struct { // The ID of the Front Door Profile. Changing this forces a new Front Door Custom Domain to be created. CdnFrontdoorProfileId pulumi.StringPtrInput // The ID of the Azure DNS Zone which should be used for this Front Door Custom Domain. If you are using Azure to host your [DNS domains](https://learn.microsoft.com/azure/dns/dns-overview), you must delegate the domain provider's domain name system (DNS) to an Azure DNS Zone. For more information, see [Delegate a domain to Azure DNS](https://learn.microsoft.com/azure/dns/dns-delegate-domain-azure-dns). Otherwise, if you're using your own domain provider to handle your DNS, you must validate the Front Door Custom Domain by creating the DNS TXT records manually. // // <!-- * `preValidatedCdnFrontdoorCustomDomainId` - (Optional) The resource ID of the pre-validated Front Door Custom Domain. This domain type is used when you wish to onboard a validated Azure service domain, and then configure the Azure service behind an Azure Front Door. // // > **Note:** Currently `preValidatedCdnFrontdoorCustomDomainId` only supports domains validated by Static Web App. --> DnsZoneId pulumi.StringPtrInput // The date time that the token expires. ExpirationDate pulumi.StringPtrInput // The host name of the domain. The `hostName` field must be the FQDN of your domain(e.g. `contoso.fabrikam.com`). Changing this forces a new Front Door Custom Domain to be created. HostName pulumi.StringPtrInput // The name which should be used for this Front Door Custom Domain. Possible values must be between 2 and 260 characters in length, must begin with a letter or number, end with a letter or number and contain only letters, numbers and hyphens. Changing this forces a new Front Door Custom Domain to be created. Name pulumi.StringPtrInput // A `tls` block as defined below. Tls FrontdoorCustomDomainTlsPtrInput // Challenge used for DNS TXT record or file based validation. ValidationToken pulumi.StringPtrInput } func (FrontdoorCustomDomainState) ElementType() reflect.Type { return reflect.TypeOf((*frontdoorCustomDomainState)(nil)).Elem() } type frontdoorCustomDomainArgs struct { // The ID of the Front Door Profile. Changing this forces a new Front Door Custom Domain to be created. CdnFrontdoorProfileId string `pulumi:"cdnFrontdoorProfileId"` // The ID of the Azure DNS Zone which should be used for this Front Door Custom Domain. If you are using Azure to host your [DNS domains](https://learn.microsoft.com/azure/dns/dns-overview), you must delegate the domain provider's domain name system (DNS) to an Azure DNS Zone. For more information, see [Delegate a domain to Azure DNS](https://learn.microsoft.com/azure/dns/dns-delegate-domain-azure-dns). Otherwise, if you're using your own domain provider to handle your DNS, you must validate the Front Door Custom Domain by creating the DNS TXT records manually. // // <!-- * `preValidatedCdnFrontdoorCustomDomainId` - (Optional) The resource ID of the pre-validated Front Door Custom Domain. This domain type is used when you wish to onboard a validated Azure service domain, and then configure the Azure service behind an Azure Front Door. // // > **Note:** Currently `preValidatedCdnFrontdoorCustomDomainId` only supports domains validated by Static Web App. --> DnsZoneId *string `pulumi:"dnsZoneId"` // The host name of the domain. The `hostName` field must be the FQDN of your domain(e.g. `contoso.fabrikam.com`). Changing this forces a new Front Door Custom Domain to be created. HostName string `pulumi:"hostName"` // The name which should be used for this Front Door Custom Domain. Possible values must be between 2 and 260 characters in length, must begin with a letter or number, end with a letter or number and contain only letters, numbers and hyphens. Changing this forces a new Front Door Custom Domain to be created. Name *string `pulumi:"name"` // A `tls` block as defined below. Tls FrontdoorCustomDomainTls `pulumi:"tls"` } // The set of arguments for constructing a FrontdoorCustomDomain resource. type FrontdoorCustomDomainArgs struct { // The ID of the Front Door Profile. Changing this forces a new Front Door Custom Domain to be created. CdnFrontdoorProfileId pulumi.StringInput // The ID of the Azure DNS Zone which should be used for this Front Door Custom Domain. If you are using Azure to host your [DNS domains](https://learn.microsoft.com/azure/dns/dns-overview), you must delegate the domain provider's domain name system (DNS) to an Azure DNS Zone. For more information, see [Delegate a domain to Azure DNS](https://learn.microsoft.com/azure/dns/dns-delegate-domain-azure-dns). Otherwise, if you're using your own domain provider to handle your DNS, you must validate the Front Door Custom Domain by creating the DNS TXT records manually. // // <!-- * `preValidatedCdnFrontdoorCustomDomainId` - (Optional) The resource ID of the pre-validated Front Door Custom Domain. This domain type is used when you wish to onboard a validated Azure service domain, and then configure the Azure service behind an Azure Front Door. // // > **Note:** Currently `preValidatedCdnFrontdoorCustomDomainId` only supports domains validated by Static Web App. --> DnsZoneId pulumi.StringPtrInput // The host name of the domain. The `hostName` field must be the FQDN of your domain(e.g. `contoso.fabrikam.com`). Changing this forces a new Front Door Custom Domain to be created. HostName pulumi.StringInput // The name which should be used for this Front Door Custom Domain. Possible values must be between 2 and 260 characters in length, must begin with a letter or number, end with a letter or number and contain only letters, numbers and hyphens. Changing this forces a new Front Door Custom Domain to be created. Name pulumi.StringPtrInput // A `tls` block as defined below. Tls FrontdoorCustomDomainTlsInput } func (FrontdoorCustomDomainArgs) ElementType() reflect.Type { return reflect.TypeOf((*frontdoorCustomDomainArgs)(nil)).Elem() } type FrontdoorCustomDomainInput interface { pulumi.Input ToFrontdoorCustomDomainOutput() FrontdoorCustomDomainOutput ToFrontdoorCustomDomainOutputWithContext(ctx context.Context) FrontdoorCustomDomainOutput } func (*FrontdoorCustomDomain) ElementType() reflect.Type { return reflect.TypeOf((**FrontdoorCustomDomain)(nil)).Elem() } func (i *FrontdoorCustomDomain) ToFrontdoorCustomDomainOutput() FrontdoorCustomDomainOutput { return i.ToFrontdoorCustomDomainOutputWithContext(context.Background()) } func (i *FrontdoorCustomDomain) ToFrontdoorCustomDomainOutputWithContext(ctx context.Context) FrontdoorCustomDomainOutput { return pulumi.ToOutputWithContext(ctx, i).(FrontdoorCustomDomainOutput) } // FrontdoorCustomDomainArrayInput is an input type that accepts FrontdoorCustomDomainArray and FrontdoorCustomDomainArrayOutput values. // You can construct a concrete instance of `FrontdoorCustomDomainArrayInput` via: // // FrontdoorCustomDomainArray{ FrontdoorCustomDomainArgs{...} } type FrontdoorCustomDomainArrayInput interface { pulumi.Input ToFrontdoorCustomDomainArrayOutput() FrontdoorCustomDomainArrayOutput ToFrontdoorCustomDomainArrayOutputWithContext(context.Context) FrontdoorCustomDomainArrayOutput } type FrontdoorCustomDomainArray []FrontdoorCustomDomainInput func (FrontdoorCustomDomainArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*FrontdoorCustomDomain)(nil)).Elem() } func (i FrontdoorCustomDomainArray) ToFrontdoorCustomDomainArrayOutput() FrontdoorCustomDomainArrayOutput { return i.ToFrontdoorCustomDomainArrayOutputWithContext(context.Background()) } func (i FrontdoorCustomDomainArray) ToFrontdoorCustomDomainArrayOutputWithContext(ctx context.Context) FrontdoorCustomDomainArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(FrontdoorCustomDomainArrayOutput) } // FrontdoorCustomDomainMapInput is an input type that accepts FrontdoorCustomDomainMap and FrontdoorCustomDomainMapOutput values. // You can construct a concrete instance of `FrontdoorCustomDomainMapInput` via: // // FrontdoorCustomDomainMap{ "key": FrontdoorCustomDomainArgs{...} } type FrontdoorCustomDomainMapInput interface { pulumi.Input ToFrontdoorCustomDomainMapOutput() FrontdoorCustomDomainMapOutput ToFrontdoorCustomDomainMapOutputWithContext(context.Context) FrontdoorCustomDomainMapOutput } type FrontdoorCustomDomainMap map[string]FrontdoorCustomDomainInput func (FrontdoorCustomDomainMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*FrontdoorCustomDomain)(nil)).Elem() } func (i FrontdoorCustomDomainMap) ToFrontdoorCustomDomainMapOutput() FrontdoorCustomDomainMapOutput { return i.ToFrontdoorCustomDomainMapOutputWithContext(context.Background()) } func (i FrontdoorCustomDomainMap) ToFrontdoorCustomDomainMapOutputWithContext(ctx context.Context) FrontdoorCustomDomainMapOutput { return pulumi.ToOutputWithContext(ctx, i).(FrontdoorCustomDomainMapOutput) } type FrontdoorCustomDomainOutput struct{ *pulumi.OutputState } func (FrontdoorCustomDomainOutput) ElementType() reflect.Type { return reflect.TypeOf((**FrontdoorCustomDomain)(nil)).Elem() } func (o FrontdoorCustomDomainOutput) ToFrontdoorCustomDomainOutput() FrontdoorCustomDomainOutput { return o } func (o FrontdoorCustomDomainOutput) ToFrontdoorCustomDomainOutputWithContext(ctx context.Context) FrontdoorCustomDomainOutput { return o } // The ID of the Front Door Profile. Changing this forces a new Front Door Custom Domain to be created. func (o FrontdoorCustomDomainOutput) CdnFrontdoorProfileId() pulumi.StringOutput { return o.ApplyT(func(v *FrontdoorCustomDomain) pulumi.StringOutput { return v.CdnFrontdoorProfileId }).(pulumi.StringOutput) } // The ID of the Azure DNS Zone which should be used for this Front Door Custom Domain. If you are using Azure to host your [DNS domains](https://learn.microsoft.com/azure/dns/dns-overview), you must delegate the domain provider's domain name system (DNS) to an Azure DNS Zone. For more information, see [Delegate a domain to Azure DNS](https://learn.microsoft.com/azure/dns/dns-delegate-domain-azure-dns). Otherwise, if you're using your own domain provider to handle your DNS, you must validate the Front Door Custom Domain by creating the DNS TXT records manually. // // <!-- * `preValidatedCdnFrontdoorCustomDomainId` - (Optional) The resource ID of the pre-validated Front Door Custom Domain. This domain type is used when you wish to onboard a validated Azure service domain, and then configure the Azure service behind an Azure Front Door. // // > **Note:** Currently `preValidatedCdnFrontdoorCustomDomainId` only supports domains validated by Static Web App. --> func (o FrontdoorCustomDomainOutput) DnsZoneId() pulumi.StringPtrOutput { return o.ApplyT(func(v *FrontdoorCustomDomain) pulumi.StringPtrOutput { return v.DnsZoneId }).(pulumi.StringPtrOutput) } // The date time that the token expires. func (o FrontdoorCustomDomainOutput) ExpirationDate() pulumi.StringOutput { return o.ApplyT(func(v *FrontdoorCustomDomain) pulumi.StringOutput { return v.ExpirationDate }).(pulumi.StringOutput) } // The host name of the domain. The `hostName` field must be the FQDN of your domain(e.g. `contoso.fabrikam.com`). Changing this forces a new Front Door Custom Domain to be created. func (o FrontdoorCustomDomainOutput) HostName() pulumi.StringOutput { return o.ApplyT(func(v *FrontdoorCustomDomain) pulumi.StringOutput { return v.HostName }).(pulumi.StringOutput) } // The name which should be used for this Front Door Custom Domain. Possible values must be between 2 and 260 characters in length, must begin with a letter or number, end with a letter or number and contain only letters, numbers and hyphens. Changing this forces a new Front Door Custom Domain to be created. func (o FrontdoorCustomDomainOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *FrontdoorCustomDomain) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // A `tls` block as defined below. func (o FrontdoorCustomDomainOutput) Tls() FrontdoorCustomDomainTlsOutput { return o.ApplyT(func(v *FrontdoorCustomDomain) FrontdoorCustomDomainTlsOutput { return v.Tls }).(FrontdoorCustomDomainTlsOutput) } // Challenge used for DNS TXT record or file based validation. func (o FrontdoorCustomDomainOutput) ValidationToken() pulumi.StringOutput { return o.ApplyT(func(v *FrontdoorCustomDomain) pulumi.StringOutput { return v.ValidationToken }).(pulumi.StringOutput) } type FrontdoorCustomDomainArrayOutput struct{ *pulumi.OutputState } func (FrontdoorCustomDomainArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*FrontdoorCustomDomain)(nil)).Elem() } func (o FrontdoorCustomDomainArrayOutput) ToFrontdoorCustomDomainArrayOutput() FrontdoorCustomDomainArrayOutput { return o } func (o FrontdoorCustomDomainArrayOutput) ToFrontdoorCustomDomainArrayOutputWithContext(ctx context.Context) FrontdoorCustomDomainArrayOutput { return o } func (o FrontdoorCustomDomainArrayOutput) Index(i pulumi.IntInput) FrontdoorCustomDomainOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *FrontdoorCustomDomain { return vs[0].([]*FrontdoorCustomDomain)[vs[1].(int)] }).(FrontdoorCustomDomainOutput) } type FrontdoorCustomDomainMapOutput struct{ *pulumi.OutputState } func (FrontdoorCustomDomainMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*FrontdoorCustomDomain)(nil)).Elem() } func (o FrontdoorCustomDomainMapOutput) ToFrontdoorCustomDomainMapOutput() FrontdoorCustomDomainMapOutput { return o } func (o FrontdoorCustomDomainMapOutput) ToFrontdoorCustomDomainMapOutputWithContext(ctx context.Context) FrontdoorCustomDomainMapOutput { return o } func (o FrontdoorCustomDomainMapOutput) MapIndex(k pulumi.StringInput) FrontdoorCustomDomainOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *FrontdoorCustomDomain { return vs[0].(map[string]*FrontdoorCustomDomain)[vs[1].(string)] }).(FrontdoorCustomDomainOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*FrontdoorCustomDomainInput)(nil)).Elem(), &FrontdoorCustomDomain{}) pulumi.RegisterInputType(reflect.TypeOf((*FrontdoorCustomDomainArrayInput)(nil)).Elem(), FrontdoorCustomDomainArray{}) pulumi.RegisterInputType(reflect.TypeOf((*FrontdoorCustomDomainMapInput)(nil)).Elem(), FrontdoorCustomDomainMap{}) pulumi.RegisterOutputType(FrontdoorCustomDomainOutput{}) pulumi.RegisterOutputType(FrontdoorCustomDomainArrayOutput{}) pulumi.RegisterOutputType(FrontdoorCustomDomainMapOutput{}) }
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/cdn/frontdoorOrigin.go
sdk/go/azure/cdn/frontdoorOrigin.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 cdn import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a Front Door (standard/premium) Origin. // // !> **Note:** If you are attempting to implement an Origin that uses its own Private Link Service with a Load Balancer the Profile resource in your configuration file **must** have a `dependsOn` meta-argument which references the `privatedns.LinkService`, see `Example Usage With Private Link Service` below. // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/cdn" // "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 // } // exampleFrontdoorProfile, err := cdn.NewFrontdoorProfile(ctx, "example", &cdn.FrontdoorProfileArgs{ // Name: pulumi.String("example-profile"), // ResourceGroupName: example.Name, // SkuName: pulumi.String("Premium_AzureFrontDoor"), // }) // if err != nil { // return err // } // exampleFrontdoorOriginGroup, err := cdn.NewFrontdoorOriginGroup(ctx, "example", &cdn.FrontdoorOriginGroupArgs{ // Name: pulumi.String("example-origingroup"), // CdnFrontdoorProfileId: exampleFrontdoorProfile.ID(), // LoadBalancing: &cdn.FrontdoorOriginGroupLoadBalancingArgs{}, // }) // if err != nil { // return err // } // _, err = cdn.NewFrontdoorOrigin(ctx, "example", &cdn.FrontdoorOriginArgs{ // Name: pulumi.String("example-origin"), // CdnFrontdoorOriginGroupId: exampleFrontdoorOriginGroup.ID(), // Enabled: pulumi.Bool(true), // CertificateNameCheckEnabled: pulumi.Bool(false), // HostName: pulumi.String("contoso.com"), // HttpPort: pulumi.Int(80), // HttpsPort: pulumi.Int(443), // OriginHostHeader: pulumi.String("www.contoso.com"), // Priority: pulumi.Int(1), // Weight: pulumi.Int(1), // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ### With Private Link // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/cdn" // "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("examplestoracc"), // ResourceGroupName: example.Name, // Location: example.Location, // AccountTier: pulumi.String("Premium"), // AccountReplicationType: pulumi.String("LRS"), // AllowNestedItemsToBePublic: pulumi.Bool(false), // NetworkRules: &storage.AccountNetworkRulesTypeArgs{ // DefaultAction: pulumi.String("Deny"), // }, // Tags: pulumi.StringMap{ // "environment": pulumi.String("Example"), // }, // }) // if err != nil { // return err // } // exampleFrontdoorProfile, err := cdn.NewFrontdoorProfile(ctx, "example", &cdn.FrontdoorProfileArgs{ // Name: pulumi.String("example-profile"), // ResourceGroupName: example.Name, // SkuName: pulumi.String("Premium_AzureFrontDoor"), // }) // if err != nil { // return err // } // exampleFrontdoorOriginGroup, err := cdn.NewFrontdoorOriginGroup(ctx, "example", &cdn.FrontdoorOriginGroupArgs{ // Name: pulumi.String("example-origin-group"), // CdnFrontdoorProfileId: exampleFrontdoorProfile.ID(), // LoadBalancing: &cdn.FrontdoorOriginGroupLoadBalancingArgs{}, // }) // if err != nil { // return err // } // _, err = cdn.NewFrontdoorOrigin(ctx, "example", &cdn.FrontdoorOriginArgs{ // Name: pulumi.String("example-origin"), // CdnFrontdoorOriginGroupId: exampleFrontdoorOriginGroup.ID(), // Enabled: pulumi.Bool(true), // CertificateNameCheckEnabled: pulumi.Bool(true), // HostName: exampleAccount.PrimaryBlobHost, // OriginHostHeader: exampleAccount.PrimaryBlobHost, // Priority: pulumi.Int(1), // Weight: pulumi.Int(500), // PrivateLink: &cdn.FrontdoorOriginPrivateLinkArgs{ // RequestMessage: pulumi.String("Request access for Private Link Origin CDN Frontdoor"), // TargetType: pulumi.String("blob"), // Location: exampleAccount.Location, // PrivateLinkTargetId: exampleAccount.ID(), // }, // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ### With Private Link Service // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/cdn" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/lb" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/network" // "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 { // current, err := core.GetClientConfig(ctx, map[string]interface{}{}, nil) // if err != nil { // return err // } // 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("vn-example"), // ResourceGroupName: example.Name, // Location: example.Location, // AddressSpaces: pulumi.StringArray{ // pulumi.String("10.5.0.0/16"), // }, // }) // if err != nil { // return err // } // exampleSubnet, err := network.NewSubnet(ctx, "example", &network.SubnetArgs{ // Name: pulumi.String("sn-example"), // ResourceGroupName: example.Name, // VirtualNetworkName: exampleVirtualNetwork.Name, // AddressPrefixes: pulumi.StringArray{ // pulumi.String("10.5.1.0/24"), // }, // PrivateLinkServiceNetworkPoliciesEnabled: pulumi.Bool(false), // }) // if err != nil { // return err // } // examplePublicIp, err := network.NewPublicIp(ctx, "example", &network.PublicIpArgs{ // Name: pulumi.String("ip-example"), // Sku: pulumi.String("Standard"), // Location: example.Location, // ResourceGroupName: example.Name, // AllocationMethod: pulumi.String("Static"), // }) // if err != nil { // return err // } // exampleLoadBalancer, err := lb.NewLoadBalancer(ctx, "example", &lb.LoadBalancerArgs{ // Name: pulumi.String("lb-example"), // Sku: pulumi.String("Standard"), // Location: example.Location, // ResourceGroupName: example.Name, // FrontendIpConfigurations: lb.LoadBalancerFrontendIpConfigurationArray{ // &lb.LoadBalancerFrontendIpConfigurationArgs{ // Name: examplePublicIp.Name, // PublicIpAddressId: examplePublicIp.ID(), // }, // }, // }) // if err != nil { // return err // } // exampleLinkService, err := privatedns.NewLinkService(ctx, "example", &privatedns.LinkServiceArgs{ // Name: pulumi.String("pls-example"), // ResourceGroupName: example.Name, // Location: example.Location, // VisibilitySubscriptionIds: pulumi.StringArray{ // pulumi.String(current.SubscriptionId), // }, // LoadBalancerFrontendIpConfigurationIds: pulumi.StringArray{ // pulumi.String(exampleLoadBalancer.FrontendIpConfigurations.ApplyT(func(frontendIpConfigurations []lb.LoadBalancerFrontendIpConfiguration) (*string, error) { // return &frontendIpConfigurations[0].Id, nil // }).(pulumi.StringPtrOutput)), // }, // NatIpConfigurations: privatedns.LinkServiceNatIpConfigurationArray{ // &privatedns.LinkServiceNatIpConfigurationArgs{ // Name: pulumi.String("primary"), // PrivateIpAddress: pulumi.String("10.5.1.17"), // PrivateIpAddressVersion: pulumi.String("IPv4"), // SubnetId: exampleSubnet.ID(), // Primary: pulumi.Bool(true), // }, // }, // }) // if err != nil { // return err // } // exampleFrontdoorProfile, err := cdn.NewFrontdoorProfile(ctx, "example", &cdn.FrontdoorProfileArgs{ // Name: pulumi.String("profile-example"), // ResourceGroupName: example.Name, // SkuName: pulumi.String("Premium_AzureFrontDoor"), // }, pulumi.DependsOn([]pulumi.Resource{ // exampleLinkService, // })) // if err != nil { // return err // } // exampleFrontdoorOriginGroup, err := cdn.NewFrontdoorOriginGroup(ctx, "example", &cdn.FrontdoorOriginGroupArgs{ // Name: pulumi.String("group-example"), // CdnFrontdoorProfileId: exampleFrontdoorProfile.ID(), // LoadBalancing: &cdn.FrontdoorOriginGroupLoadBalancingArgs{ // AdditionalLatencyInMilliseconds: pulumi.Int(0), // SampleSize: pulumi.Int(16), // SuccessfulSamplesRequired: pulumi.Int(3), // }, // }) // if err != nil { // return err // } // _, err = cdn.NewFrontdoorOrigin(ctx, "example", &cdn.FrontdoorOriginArgs{ // Name: pulumi.String("origin-example"), // CdnFrontdoorOriginGroupId: exampleFrontdoorOriginGroup.ID(), // Enabled: pulumi.Bool(true), // HostName: pulumi.String("example.com"), // OriginHostHeader: pulumi.String("example.com"), // Priority: pulumi.Int(1), // Weight: pulumi.Int(1000), // CertificateNameCheckEnabled: pulumi.Bool(false), // PrivateLink: &cdn.FrontdoorOriginPrivateLinkArgs{ // RequestMessage: pulumi.String("Request access for Private Link Origin CDN Frontdoor"), // Location: example.Location, // PrivateLinkTargetId: exampleLinkService.ID(), // }, // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## Example HCL Configurations // // * Private Link Origin with Storage Account Blob // * Private Link Origin with Storage Account Static Web Site // * Private Link Origin with Linux Web Application // * Private Link Origin with Internal Load Balancer // // ## API Providers // // <!-- This section is generated, changes will be overwritten --> // This resource uses the following Azure API Providers: // // * `Microsoft.Cdn` - 2024-02-01 // // ## Import // // Front Door Origins can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:cdn/frontdoorOrigin:FrontdoorOrigin example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/Microsoft.Cdn/profiles/profile1/originGroups/originGroup1/origins/origin1 // ``` type FrontdoorOrigin struct { pulumi.CustomResourceState // The ID of the Front Door Origin Group within which this Front Door Origin should exist. Changing this forces a new Front Door Origin to be created. CdnFrontdoorOriginGroupId pulumi.StringOutput `pulumi:"cdnFrontdoorOriginGroupId"` // Specifies whether certificate name checks are enabled for this origin. CertificateNameCheckEnabled pulumi.BoolOutput `pulumi:"certificateNameCheckEnabled"` // Should the origin be enabled? Possible values are `true` or `false`. Defaults to `true`. Enabled pulumi.BoolPtrOutput `pulumi:"enabled"` // The IPv4 address, IPv6 address or Domain name of the Origin. // // !> **Note:** This must be unique across all Front Door Origins within a Front Door Endpoint. HostName pulumi.StringOutput `pulumi:"hostName"` // The value of the HTTP port. Must be between `1` and `65535`. Defaults to `80`. HttpPort pulumi.IntPtrOutput `pulumi:"httpPort"` // The value of the HTTPS port. Must be between `1` and `65535`. Defaults to `443`. HttpsPort pulumi.IntPtrOutput `pulumi:"httpsPort"` // The name which should be used for this Front Door Origin. Changing this forces a new Front Door Origin to be created. Name pulumi.StringOutput `pulumi:"name"` // The host header value (an IPv4 address, IPv6 address or Domain name) which is sent to the origin with each request. If unspecified the hostname from the request will be used. // // > **Note:** Azure Front Door Origins, such as Web Apps, Blob Storage, and Cloud Services require this host header value to match the origin's hostname. This field's value overrides the host header defined in the Front Door Endpoint. For more information on how to properly set the origin host header value please see the [product documentation](https://docs.microsoft.com/azure/frontdoor/origin?pivots=front-door-standard-premium#origin-host-header). OriginHostHeader pulumi.StringPtrOutput `pulumi:"originHostHeader"` // Priority of origin in given origin group for load balancing. Higher priorities will not be used for load balancing if any lower priority origin is healthy. Must be between `1` and `5` (inclusive). Defaults to `1`. Priority pulumi.IntPtrOutput `pulumi:"priority"` // A `privateLink` block as defined below. // // > **Note:** Private Link requires that the Front Door Profile this Origin is hosted within is using the SKU `Premium_AzureFrontDoor` and that the `certificateNameCheckEnabled` field is set to `true`. PrivateLink FrontdoorOriginPrivateLinkPtrOutput `pulumi:"privateLink"` // The weight of the origin in a given origin group for load balancing. Must be between `1` and `1000`. Defaults to `500`. Weight pulumi.IntPtrOutput `pulumi:"weight"` } // NewFrontdoorOrigin registers a new resource with the given unique name, arguments, and options. func NewFrontdoorOrigin(ctx *pulumi.Context, name string, args *FrontdoorOriginArgs, opts ...pulumi.ResourceOption) (*FrontdoorOrigin, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.CdnFrontdoorOriginGroupId == nil { return nil, errors.New("invalid value for required argument 'CdnFrontdoorOriginGroupId'") } if args.CertificateNameCheckEnabled == nil { return nil, errors.New("invalid value for required argument 'CertificateNameCheckEnabled'") } if args.HostName == nil { return nil, errors.New("invalid value for required argument 'HostName'") } opts = internal.PkgResourceDefaultOpts(opts) var resource FrontdoorOrigin err := ctx.RegisterResource("azure:cdn/frontdoorOrigin:FrontdoorOrigin", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetFrontdoorOrigin gets an existing FrontdoorOrigin 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 GetFrontdoorOrigin(ctx *pulumi.Context, name string, id pulumi.IDInput, state *FrontdoorOriginState, opts ...pulumi.ResourceOption) (*FrontdoorOrigin, error) { var resource FrontdoorOrigin err := ctx.ReadResource("azure:cdn/frontdoorOrigin:FrontdoorOrigin", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering FrontdoorOrigin resources. type frontdoorOriginState struct { // The ID of the Front Door Origin Group within which this Front Door Origin should exist. Changing this forces a new Front Door Origin to be created. CdnFrontdoorOriginGroupId *string `pulumi:"cdnFrontdoorOriginGroupId"` // Specifies whether certificate name checks are enabled for this origin. CertificateNameCheckEnabled *bool `pulumi:"certificateNameCheckEnabled"` // Should the origin be enabled? Possible values are `true` or `false`. Defaults to `true`. Enabled *bool `pulumi:"enabled"` // The IPv4 address, IPv6 address or Domain name of the Origin. // // !> **Note:** This must be unique across all Front Door Origins within a Front Door Endpoint. HostName *string `pulumi:"hostName"` // The value of the HTTP port. Must be between `1` and `65535`. Defaults to `80`. HttpPort *int `pulumi:"httpPort"` // The value of the HTTPS port. Must be between `1` and `65535`. Defaults to `443`. HttpsPort *int `pulumi:"httpsPort"` // The name which should be used for this Front Door Origin. Changing this forces a new Front Door Origin to be created. Name *string `pulumi:"name"` // The host header value (an IPv4 address, IPv6 address or Domain name) which is sent to the origin with each request. If unspecified the hostname from the request will be used. // // > **Note:** Azure Front Door Origins, such as Web Apps, Blob Storage, and Cloud Services require this host header value to match the origin's hostname. This field's value overrides the host header defined in the Front Door Endpoint. For more information on how to properly set the origin host header value please see the [product documentation](https://docs.microsoft.com/azure/frontdoor/origin?pivots=front-door-standard-premium#origin-host-header). OriginHostHeader *string `pulumi:"originHostHeader"` // Priority of origin in given origin group for load balancing. Higher priorities will not be used for load balancing if any lower priority origin is healthy. Must be between `1` and `5` (inclusive). Defaults to `1`. Priority *int `pulumi:"priority"` // A `privateLink` block as defined below. // // > **Note:** Private Link requires that the Front Door Profile this Origin is hosted within is using the SKU `Premium_AzureFrontDoor` and that the `certificateNameCheckEnabled` field is set to `true`. PrivateLink *FrontdoorOriginPrivateLink `pulumi:"privateLink"` // The weight of the origin in a given origin group for load balancing. Must be between `1` and `1000`. Defaults to `500`. Weight *int `pulumi:"weight"` } type FrontdoorOriginState struct { // The ID of the Front Door Origin Group within which this Front Door Origin should exist. Changing this forces a new Front Door Origin to be created. CdnFrontdoorOriginGroupId pulumi.StringPtrInput // Specifies whether certificate name checks are enabled for this origin. CertificateNameCheckEnabled pulumi.BoolPtrInput // Should the origin be enabled? Possible values are `true` or `false`. Defaults to `true`. Enabled pulumi.BoolPtrInput // The IPv4 address, IPv6 address or Domain name of the Origin. // // !> **Note:** This must be unique across all Front Door Origins within a Front Door Endpoint. HostName pulumi.StringPtrInput // The value of the HTTP port. Must be between `1` and `65535`. Defaults to `80`. HttpPort pulumi.IntPtrInput // The value of the HTTPS port. Must be between `1` and `65535`. Defaults to `443`. HttpsPort pulumi.IntPtrInput // The name which should be used for this Front Door Origin. Changing this forces a new Front Door Origin to be created. Name pulumi.StringPtrInput // The host header value (an IPv4 address, IPv6 address or Domain name) which is sent to the origin with each request. If unspecified the hostname from the request will be used. // // > **Note:** Azure Front Door Origins, such as Web Apps, Blob Storage, and Cloud Services require this host header value to match the origin's hostname. This field's value overrides the host header defined in the Front Door Endpoint. For more information on how to properly set the origin host header value please see the [product documentation](https://docs.microsoft.com/azure/frontdoor/origin?pivots=front-door-standard-premium#origin-host-header). OriginHostHeader pulumi.StringPtrInput // Priority of origin in given origin group for load balancing. Higher priorities will not be used for load balancing if any lower priority origin is healthy. Must be between `1` and `5` (inclusive). Defaults to `1`. Priority pulumi.IntPtrInput // A `privateLink` block as defined below. // // > **Note:** Private Link requires that the Front Door Profile this Origin is hosted within is using the SKU `Premium_AzureFrontDoor` and that the `certificateNameCheckEnabled` field is set to `true`. PrivateLink FrontdoorOriginPrivateLinkPtrInput // The weight of the origin in a given origin group for load balancing. Must be between `1` and `1000`. Defaults to `500`. Weight pulumi.IntPtrInput } func (FrontdoorOriginState) ElementType() reflect.Type { return reflect.TypeOf((*frontdoorOriginState)(nil)).Elem() } type frontdoorOriginArgs struct { // The ID of the Front Door Origin Group within which this Front Door Origin should exist. Changing this forces a new Front Door Origin to be created. CdnFrontdoorOriginGroupId string `pulumi:"cdnFrontdoorOriginGroupId"` // Specifies whether certificate name checks are enabled for this origin. CertificateNameCheckEnabled bool `pulumi:"certificateNameCheckEnabled"` // Should the origin be enabled? Possible values are `true` or `false`. Defaults to `true`. Enabled *bool `pulumi:"enabled"` // The IPv4 address, IPv6 address or Domain name of the Origin. // // !> **Note:** This must be unique across all Front Door Origins within a Front Door Endpoint. HostName string `pulumi:"hostName"` // The value of the HTTP port. Must be between `1` and `65535`. Defaults to `80`. HttpPort *int `pulumi:"httpPort"` // The value of the HTTPS port. Must be between `1` and `65535`. Defaults to `443`. HttpsPort *int `pulumi:"httpsPort"` // The name which should be used for this Front Door Origin. Changing this forces a new Front Door Origin to be created. Name *string `pulumi:"name"` // The host header value (an IPv4 address, IPv6 address or Domain name) which is sent to the origin with each request. If unspecified the hostname from the request will be used. // // > **Note:** Azure Front Door Origins, such as Web Apps, Blob Storage, and Cloud Services require this host header value to match the origin's hostname. This field's value overrides the host header defined in the Front Door Endpoint. For more information on how to properly set the origin host header value please see the [product documentation](https://docs.microsoft.com/azure/frontdoor/origin?pivots=front-door-standard-premium#origin-host-header). OriginHostHeader *string `pulumi:"originHostHeader"` // Priority of origin in given origin group for load balancing. Higher priorities will not be used for load balancing if any lower priority origin is healthy. Must be between `1` and `5` (inclusive). Defaults to `1`. Priority *int `pulumi:"priority"` // A `privateLink` block as defined below. // // > **Note:** Private Link requires that the Front Door Profile this Origin is hosted within is using the SKU `Premium_AzureFrontDoor` and that the `certificateNameCheckEnabled` field is set to `true`. PrivateLink *FrontdoorOriginPrivateLink `pulumi:"privateLink"` // The weight of the origin in a given origin group for load balancing. Must be between `1` and `1000`. Defaults to `500`. Weight *int `pulumi:"weight"` } // The set of arguments for constructing a FrontdoorOrigin resource. type FrontdoorOriginArgs struct { // The ID of the Front Door Origin Group within which this Front Door Origin should exist. Changing this forces a new Front Door Origin to be created. CdnFrontdoorOriginGroupId pulumi.StringInput // Specifies whether certificate name checks are enabled for this origin. CertificateNameCheckEnabled pulumi.BoolInput // Should the origin be enabled? Possible values are `true` or `false`. Defaults to `true`. Enabled pulumi.BoolPtrInput // The IPv4 address, IPv6 address or Domain name of the Origin. // // !> **Note:** This must be unique across all Front Door Origins within a Front Door Endpoint. HostName pulumi.StringInput // The value of the HTTP port. Must be between `1` and `65535`. Defaults to `80`. HttpPort pulumi.IntPtrInput // The value of the HTTPS port. Must be between `1` and `65535`. Defaults to `443`. HttpsPort pulumi.IntPtrInput // The name which should be used for this Front Door Origin. Changing this forces a new Front Door Origin to be created. Name pulumi.StringPtrInput // The host header value (an IPv4 address, IPv6 address or Domain name) which is sent to the origin with each request. If unspecified the hostname from the request will be used. // // > **Note:** Azure Front Door Origins, such as Web Apps, Blob Storage, and Cloud Services require this host header value to match the origin's hostname. This field's value overrides the host header defined in the Front Door Endpoint. For more information on how to properly set the origin host header value please see the [product documentation](https://docs.microsoft.com/azure/frontdoor/origin?pivots=front-door-standard-premium#origin-host-header). OriginHostHeader pulumi.StringPtrInput // Priority of origin in given origin group for load balancing. Higher priorities will not be used for load balancing if any lower priority origin is healthy. Must be between `1` and `5` (inclusive). Defaults to `1`. Priority pulumi.IntPtrInput // A `privateLink` block as defined below. // // > **Note:** Private Link requires that the Front Door Profile this Origin is hosted within is using the SKU `Premium_AzureFrontDoor` and that the `certificateNameCheckEnabled` field is set to `true`. PrivateLink FrontdoorOriginPrivateLinkPtrInput // The weight of the origin in a given origin group for load balancing. Must be between `1` and `1000`. Defaults to `500`. Weight pulumi.IntPtrInput } func (FrontdoorOriginArgs) ElementType() reflect.Type { return reflect.TypeOf((*frontdoorOriginArgs)(nil)).Elem() } type FrontdoorOriginInput interface { pulumi.Input ToFrontdoorOriginOutput() FrontdoorOriginOutput ToFrontdoorOriginOutputWithContext(ctx context.Context) FrontdoorOriginOutput } func (*FrontdoorOrigin) ElementType() reflect.Type { return reflect.TypeOf((**FrontdoorOrigin)(nil)).Elem() } func (i *FrontdoorOrigin) ToFrontdoorOriginOutput() FrontdoorOriginOutput { return i.ToFrontdoorOriginOutputWithContext(context.Background()) } func (i *FrontdoorOrigin) ToFrontdoorOriginOutputWithContext(ctx context.Context) FrontdoorOriginOutput { return pulumi.ToOutputWithContext(ctx, i).(FrontdoorOriginOutput) } // FrontdoorOriginArrayInput is an input type that accepts FrontdoorOriginArray and FrontdoorOriginArrayOutput values. // You can construct a concrete instance of `FrontdoorOriginArrayInput` via: // // FrontdoorOriginArray{ FrontdoorOriginArgs{...} } type FrontdoorOriginArrayInput interface { pulumi.Input ToFrontdoorOriginArrayOutput() FrontdoorOriginArrayOutput ToFrontdoorOriginArrayOutputWithContext(context.Context) FrontdoorOriginArrayOutput } type FrontdoorOriginArray []FrontdoorOriginInput func (FrontdoorOriginArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*FrontdoorOrigin)(nil)).Elem() } func (i FrontdoorOriginArray) ToFrontdoorOriginArrayOutput() FrontdoorOriginArrayOutput { return i.ToFrontdoorOriginArrayOutputWithContext(context.Background()) } func (i FrontdoorOriginArray) ToFrontdoorOriginArrayOutputWithContext(ctx context.Context) FrontdoorOriginArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(FrontdoorOriginArrayOutput) } // FrontdoorOriginMapInput is an input type that accepts FrontdoorOriginMap and FrontdoorOriginMapOutput values. // You can construct a concrete instance of `FrontdoorOriginMapInput` via: // // FrontdoorOriginMap{ "key": FrontdoorOriginArgs{...} } type FrontdoorOriginMapInput interface { pulumi.Input ToFrontdoorOriginMapOutput() FrontdoorOriginMapOutput ToFrontdoorOriginMapOutputWithContext(context.Context) FrontdoorOriginMapOutput } type FrontdoorOriginMap map[string]FrontdoorOriginInput func (FrontdoorOriginMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*FrontdoorOrigin)(nil)).Elem() } func (i FrontdoorOriginMap) ToFrontdoorOriginMapOutput() FrontdoorOriginMapOutput { return i.ToFrontdoorOriginMapOutputWithContext(context.Background()) } func (i FrontdoorOriginMap) ToFrontdoorOriginMapOutputWithContext(ctx context.Context) FrontdoorOriginMapOutput { return pulumi.ToOutputWithContext(ctx, i).(FrontdoorOriginMapOutput) } type FrontdoorOriginOutput struct{ *pulumi.OutputState } func (FrontdoorOriginOutput) ElementType() reflect.Type { return reflect.TypeOf((**FrontdoorOrigin)(nil)).Elem() } func (o FrontdoorOriginOutput) ToFrontdoorOriginOutput() FrontdoorOriginOutput { return o } func (o FrontdoorOriginOutput) ToFrontdoorOriginOutputWithContext(ctx context.Context) FrontdoorOriginOutput { return o } // The ID of the Front Door Origin Group within which this Front Door Origin should exist. Changing this forces a new Front Door Origin to be created. func (o FrontdoorOriginOutput) CdnFrontdoorOriginGroupId() pulumi.StringOutput { return o.ApplyT(func(v *FrontdoorOrigin) pulumi.StringOutput { return v.CdnFrontdoorOriginGroupId }).(pulumi.StringOutput) } // Specifies whether certificate name checks are enabled for this origin. func (o FrontdoorOriginOutput) CertificateNameCheckEnabled() pulumi.BoolOutput { return o.ApplyT(func(v *FrontdoorOrigin) pulumi.BoolOutput { return v.CertificateNameCheckEnabled }).(pulumi.BoolOutput) } // Should the origin be enabled? Possible values are `true` or `false`. Defaults to `true`. func (o FrontdoorOriginOutput) Enabled() pulumi.BoolPtrOutput { return o.ApplyT(func(v *FrontdoorOrigin) pulumi.BoolPtrOutput { return v.Enabled }).(pulumi.BoolPtrOutput) } // The IPv4 address, IPv6 address or Domain name of the Origin. // // !> **Note:** This must be unique across all Front Door Origins within a Front Door Endpoint. func (o FrontdoorOriginOutput) HostName() pulumi.StringOutput { return o.ApplyT(func(v *FrontdoorOrigin) pulumi.StringOutput { return v.HostName }).(pulumi.StringOutput) } // The value of the HTTP port. Must be between `1` and `65535`. Defaults to `80`. func (o FrontdoorOriginOutput) HttpPort() pulumi.IntPtrOutput { return o.ApplyT(func(v *FrontdoorOrigin) pulumi.IntPtrOutput { return v.HttpPort }).(pulumi.IntPtrOutput) } // The value of the HTTPS port. Must be between `1` and `65535`. Defaults to `443`. func (o FrontdoorOriginOutput) HttpsPort() pulumi.IntPtrOutput { return o.ApplyT(func(v *FrontdoorOrigin) pulumi.IntPtrOutput { return v.HttpsPort }).(pulumi.IntPtrOutput) } // The name which should be used for this Front Door Origin. Changing this forces a new Front Door Origin to be created. func (o FrontdoorOriginOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *FrontdoorOrigin) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // The host header value (an IPv4 address, IPv6 address or Domain name) which is sent to the origin with each request. If unspecified the hostname from the request will be used. // // > **Note:** Azure Front Door Origins, such as Web Apps, Blob Storage, and Cloud Services require this host header value to match the origin's hostname. This field's value overrides the host header defined in the Front Door Endpoint. For more information on how to properly set the origin host header value please see the [product documentation](https://docs.microsoft.com/azure/frontdoor/origin?pivots=front-door-standard-premium#origin-host-header). func (o FrontdoorOriginOutput) OriginHostHeader() pulumi.StringPtrOutput { return o.ApplyT(func(v *FrontdoorOrigin) pulumi.StringPtrOutput { return v.OriginHostHeader }).(pulumi.StringPtrOutput) } // Priority of origin in given origin group for load balancing. Higher priorities will not be used for load balancing if any lower priority origin is healthy. Must be between `1` and `5` (inclusive). Defaults to `1`. func (o FrontdoorOriginOutput) Priority() pulumi.IntPtrOutput {
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/cdn/endpointCustomDomain.go
sdk/go/azure/cdn/endpointCustomDomain.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 cdn import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a Custom Domain for a CDN (classic) Endpoint. // // !> **Note:** Support for the CDN (classic) `sku` `Standard_Akamai` was deprecated from Azure on `October 31, 2023` and is no longer available. // // !> **Note:** Support for the CDN (classic) `sku` values `Standard_Verizon` and `Premium_Verizon` were deprecated from Azure on `January 15, 2025` and are no longer available. // // !> **Note:** Support for the CDN (classic) `sku` values `Standard_Microsoft` and `Standard_ChinaCdn` will be deprecated from Azure on `October 1, 2025` and will no longer be available, however, modifications to existing CDN (classic) resources will continue to be supported until the API reaches full retirement on `September 30, 2027`. // // ## Example Usage // // ```go // package main // // import ( // // "fmt" // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/cdn" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/dns" // "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-rg"), // Location: pulumi.String("west europe"), // }) // if err != nil { // return err // } // exampleAccount, err := storage.NewAccount(ctx, "example", &storage.AccountArgs{ // Name: pulumi.String("example"), // ResourceGroupName: exampleResourceGroup.Name, // Location: exampleResourceGroup.Location, // AccountTier: pulumi.String("Standard"), // AccountReplicationType: pulumi.String("GRS"), // }) // if err != nil { // return err // } // exampleProfile, err := cdn.NewProfile(ctx, "example", &cdn.ProfileArgs{ // Name: pulumi.String("example-profile"), // Location: exampleResourceGroup.Location, // ResourceGroupName: exampleResourceGroup.Name, // Sku: pulumi.String("Standard_Microsoft"), // }) // if err != nil { // return err // } // exampleEndpoint, err := cdn.NewEndpoint(ctx, "example", &cdn.EndpointArgs{ // Name: pulumi.String("example-endpoint"), // ProfileName: exampleProfile.Name, // Location: exampleResourceGroup.Location, // ResourceGroupName: exampleResourceGroup.Name, // Origins: cdn.EndpointOriginArray{ // &cdn.EndpointOriginArgs{ // Name: pulumi.String("example"), // HostName: exampleAccount.PrimaryBlobHost, // }, // }, // }) // if err != nil { // return err // } // example, err := dns.LookupZone(ctx, &dns.LookupZoneArgs{ // Name: "example-domain.com", // ResourceGroupName: pulumi.StringRef("domain-rg"), // }, nil) // if err != nil { // return err // } // exampleCNameRecord, err := dns.NewCNameRecord(ctx, "example", &dns.CNameRecordArgs{ // Name: pulumi.String("example"), // ZoneName: pulumi.String(example.Name), // ResourceGroupName: pulumi.String(example.ResourceGroupName), // Ttl: pulumi.Int(3600), // TargetResourceId: exampleEndpoint.ID(), // }) // if err != nil { // return err // } // _, err = cdn.NewEndpointCustomDomain(ctx, "example", &cdn.EndpointCustomDomainArgs{ // Name: pulumi.String("example-domain"), // CdnEndpointId: exampleEndpoint.ID(), // HostName: exampleCNameRecord.Name.ApplyT(func(name string) (string, error) { // return fmt.Sprintf("%v.%v", name, example.Name), nil // }).(pulumi.StringOutput), // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## Import // // CDN Endpoint Custom Domains can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:cdn/endpointCustomDomain:EndpointCustomDomain example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Cdn/profiles/profile1/endpoints/endpoint1/customDomains/domain1 // ``` type EndpointCustomDomain struct { pulumi.CustomResourceState // The ID of the CDN Endpoint. Changing this forces a new CDN Endpoint Custom Domain to be created. CdnEndpointId pulumi.StringOutput `pulumi:"cdnEndpointId"` // A `cdnManagedHttps` block as defined below. CdnManagedHttps EndpointCustomDomainCdnManagedHttpsPtrOutput `pulumi:"cdnManagedHttps"` // The host name of the custom domain. Changing this forces a new CDN Endpoint Custom Domain to be created. HostName pulumi.StringOutput `pulumi:"hostName"` // The name which should be used for this CDN Endpoint Custom Domain. Changing this forces a new CDN Endpoint Custom Domain to be created. Name pulumi.StringOutput `pulumi:"name"` // A `userManagedHttps` block as defined below. // // > **Note:** Only one of `cdnManagedHttps` and `userManagedHttps` can be specified. UserManagedHttps EndpointCustomDomainUserManagedHttpsPtrOutput `pulumi:"userManagedHttps"` } // NewEndpointCustomDomain registers a new resource with the given unique name, arguments, and options. func NewEndpointCustomDomain(ctx *pulumi.Context, name string, args *EndpointCustomDomainArgs, opts ...pulumi.ResourceOption) (*EndpointCustomDomain, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.CdnEndpointId == nil { return nil, errors.New("invalid value for required argument 'CdnEndpointId'") } if args.HostName == nil { return nil, errors.New("invalid value for required argument 'HostName'") } opts = internal.PkgResourceDefaultOpts(opts) var resource EndpointCustomDomain err := ctx.RegisterResource("azure:cdn/endpointCustomDomain:EndpointCustomDomain", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetEndpointCustomDomain gets an existing EndpointCustomDomain 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 GetEndpointCustomDomain(ctx *pulumi.Context, name string, id pulumi.IDInput, state *EndpointCustomDomainState, opts ...pulumi.ResourceOption) (*EndpointCustomDomain, error) { var resource EndpointCustomDomain err := ctx.ReadResource("azure:cdn/endpointCustomDomain:EndpointCustomDomain", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering EndpointCustomDomain resources. type endpointCustomDomainState struct { // The ID of the CDN Endpoint. Changing this forces a new CDN Endpoint Custom Domain to be created. CdnEndpointId *string `pulumi:"cdnEndpointId"` // A `cdnManagedHttps` block as defined below. CdnManagedHttps *EndpointCustomDomainCdnManagedHttps `pulumi:"cdnManagedHttps"` // The host name of the custom domain. Changing this forces a new CDN Endpoint Custom Domain to be created. HostName *string `pulumi:"hostName"` // The name which should be used for this CDN Endpoint Custom Domain. Changing this forces a new CDN Endpoint Custom Domain to be created. Name *string `pulumi:"name"` // A `userManagedHttps` block as defined below. // // > **Note:** Only one of `cdnManagedHttps` and `userManagedHttps` can be specified. UserManagedHttps *EndpointCustomDomainUserManagedHttps `pulumi:"userManagedHttps"` } type EndpointCustomDomainState struct { // The ID of the CDN Endpoint. Changing this forces a new CDN Endpoint Custom Domain to be created. CdnEndpointId pulumi.StringPtrInput // A `cdnManagedHttps` block as defined below. CdnManagedHttps EndpointCustomDomainCdnManagedHttpsPtrInput // The host name of the custom domain. Changing this forces a new CDN Endpoint Custom Domain to be created. HostName pulumi.StringPtrInput // The name which should be used for this CDN Endpoint Custom Domain. Changing this forces a new CDN Endpoint Custom Domain to be created. Name pulumi.StringPtrInput // A `userManagedHttps` block as defined below. // // > **Note:** Only one of `cdnManagedHttps` and `userManagedHttps` can be specified. UserManagedHttps EndpointCustomDomainUserManagedHttpsPtrInput } func (EndpointCustomDomainState) ElementType() reflect.Type { return reflect.TypeOf((*endpointCustomDomainState)(nil)).Elem() } type endpointCustomDomainArgs struct { // The ID of the CDN Endpoint. Changing this forces a new CDN Endpoint Custom Domain to be created. CdnEndpointId string `pulumi:"cdnEndpointId"` // A `cdnManagedHttps` block as defined below. CdnManagedHttps *EndpointCustomDomainCdnManagedHttps `pulumi:"cdnManagedHttps"` // The host name of the custom domain. Changing this forces a new CDN Endpoint Custom Domain to be created. HostName string `pulumi:"hostName"` // The name which should be used for this CDN Endpoint Custom Domain. Changing this forces a new CDN Endpoint Custom Domain to be created. Name *string `pulumi:"name"` // A `userManagedHttps` block as defined below. // // > **Note:** Only one of `cdnManagedHttps` and `userManagedHttps` can be specified. UserManagedHttps *EndpointCustomDomainUserManagedHttps `pulumi:"userManagedHttps"` } // The set of arguments for constructing a EndpointCustomDomain resource. type EndpointCustomDomainArgs struct { // The ID of the CDN Endpoint. Changing this forces a new CDN Endpoint Custom Domain to be created. CdnEndpointId pulumi.StringInput // A `cdnManagedHttps` block as defined below. CdnManagedHttps EndpointCustomDomainCdnManagedHttpsPtrInput // The host name of the custom domain. Changing this forces a new CDN Endpoint Custom Domain to be created. HostName pulumi.StringInput // The name which should be used for this CDN Endpoint Custom Domain. Changing this forces a new CDN Endpoint Custom Domain to be created. Name pulumi.StringPtrInput // A `userManagedHttps` block as defined below. // // > **Note:** Only one of `cdnManagedHttps` and `userManagedHttps` can be specified. UserManagedHttps EndpointCustomDomainUserManagedHttpsPtrInput } func (EndpointCustomDomainArgs) ElementType() reflect.Type { return reflect.TypeOf((*endpointCustomDomainArgs)(nil)).Elem() } type EndpointCustomDomainInput interface { pulumi.Input ToEndpointCustomDomainOutput() EndpointCustomDomainOutput ToEndpointCustomDomainOutputWithContext(ctx context.Context) EndpointCustomDomainOutput } func (*EndpointCustomDomain) ElementType() reflect.Type { return reflect.TypeOf((**EndpointCustomDomain)(nil)).Elem() } func (i *EndpointCustomDomain) ToEndpointCustomDomainOutput() EndpointCustomDomainOutput { return i.ToEndpointCustomDomainOutputWithContext(context.Background()) } func (i *EndpointCustomDomain) ToEndpointCustomDomainOutputWithContext(ctx context.Context) EndpointCustomDomainOutput { return pulumi.ToOutputWithContext(ctx, i).(EndpointCustomDomainOutput) } // EndpointCustomDomainArrayInput is an input type that accepts EndpointCustomDomainArray and EndpointCustomDomainArrayOutput values. // You can construct a concrete instance of `EndpointCustomDomainArrayInput` via: // // EndpointCustomDomainArray{ EndpointCustomDomainArgs{...} } type EndpointCustomDomainArrayInput interface { pulumi.Input ToEndpointCustomDomainArrayOutput() EndpointCustomDomainArrayOutput ToEndpointCustomDomainArrayOutputWithContext(context.Context) EndpointCustomDomainArrayOutput } type EndpointCustomDomainArray []EndpointCustomDomainInput func (EndpointCustomDomainArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*EndpointCustomDomain)(nil)).Elem() } func (i EndpointCustomDomainArray) ToEndpointCustomDomainArrayOutput() EndpointCustomDomainArrayOutput { return i.ToEndpointCustomDomainArrayOutputWithContext(context.Background()) } func (i EndpointCustomDomainArray) ToEndpointCustomDomainArrayOutputWithContext(ctx context.Context) EndpointCustomDomainArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(EndpointCustomDomainArrayOutput) } // EndpointCustomDomainMapInput is an input type that accepts EndpointCustomDomainMap and EndpointCustomDomainMapOutput values. // You can construct a concrete instance of `EndpointCustomDomainMapInput` via: // // EndpointCustomDomainMap{ "key": EndpointCustomDomainArgs{...} } type EndpointCustomDomainMapInput interface { pulumi.Input ToEndpointCustomDomainMapOutput() EndpointCustomDomainMapOutput ToEndpointCustomDomainMapOutputWithContext(context.Context) EndpointCustomDomainMapOutput } type EndpointCustomDomainMap map[string]EndpointCustomDomainInput func (EndpointCustomDomainMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*EndpointCustomDomain)(nil)).Elem() } func (i EndpointCustomDomainMap) ToEndpointCustomDomainMapOutput() EndpointCustomDomainMapOutput { return i.ToEndpointCustomDomainMapOutputWithContext(context.Background()) } func (i EndpointCustomDomainMap) ToEndpointCustomDomainMapOutputWithContext(ctx context.Context) EndpointCustomDomainMapOutput { return pulumi.ToOutputWithContext(ctx, i).(EndpointCustomDomainMapOutput) } type EndpointCustomDomainOutput struct{ *pulumi.OutputState } func (EndpointCustomDomainOutput) ElementType() reflect.Type { return reflect.TypeOf((**EndpointCustomDomain)(nil)).Elem() } func (o EndpointCustomDomainOutput) ToEndpointCustomDomainOutput() EndpointCustomDomainOutput { return o } func (o EndpointCustomDomainOutput) ToEndpointCustomDomainOutputWithContext(ctx context.Context) EndpointCustomDomainOutput { return o } // The ID of the CDN Endpoint. Changing this forces a new CDN Endpoint Custom Domain to be created. func (o EndpointCustomDomainOutput) CdnEndpointId() pulumi.StringOutput { return o.ApplyT(func(v *EndpointCustomDomain) pulumi.StringOutput { return v.CdnEndpointId }).(pulumi.StringOutput) } // A `cdnManagedHttps` block as defined below. func (o EndpointCustomDomainOutput) CdnManagedHttps() EndpointCustomDomainCdnManagedHttpsPtrOutput { return o.ApplyT(func(v *EndpointCustomDomain) EndpointCustomDomainCdnManagedHttpsPtrOutput { return v.CdnManagedHttps }).(EndpointCustomDomainCdnManagedHttpsPtrOutput) } // The host name of the custom domain. Changing this forces a new CDN Endpoint Custom Domain to be created. func (o EndpointCustomDomainOutput) HostName() pulumi.StringOutput { return o.ApplyT(func(v *EndpointCustomDomain) pulumi.StringOutput { return v.HostName }).(pulumi.StringOutput) } // The name which should be used for this CDN Endpoint Custom Domain. Changing this forces a new CDN Endpoint Custom Domain to be created. func (o EndpointCustomDomainOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *EndpointCustomDomain) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // A `userManagedHttps` block as defined below. // // > **Note:** Only one of `cdnManagedHttps` and `userManagedHttps` can be specified. func (o EndpointCustomDomainOutput) UserManagedHttps() EndpointCustomDomainUserManagedHttpsPtrOutput { return o.ApplyT(func(v *EndpointCustomDomain) EndpointCustomDomainUserManagedHttpsPtrOutput { return v.UserManagedHttps }).(EndpointCustomDomainUserManagedHttpsPtrOutput) } type EndpointCustomDomainArrayOutput struct{ *pulumi.OutputState } func (EndpointCustomDomainArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*EndpointCustomDomain)(nil)).Elem() } func (o EndpointCustomDomainArrayOutput) ToEndpointCustomDomainArrayOutput() EndpointCustomDomainArrayOutput { return o } func (o EndpointCustomDomainArrayOutput) ToEndpointCustomDomainArrayOutputWithContext(ctx context.Context) EndpointCustomDomainArrayOutput { return o } func (o EndpointCustomDomainArrayOutput) Index(i pulumi.IntInput) EndpointCustomDomainOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *EndpointCustomDomain { return vs[0].([]*EndpointCustomDomain)[vs[1].(int)] }).(EndpointCustomDomainOutput) } type EndpointCustomDomainMapOutput struct{ *pulumi.OutputState } func (EndpointCustomDomainMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*EndpointCustomDomain)(nil)).Elem() } func (o EndpointCustomDomainMapOutput) ToEndpointCustomDomainMapOutput() EndpointCustomDomainMapOutput { return o } func (o EndpointCustomDomainMapOutput) ToEndpointCustomDomainMapOutputWithContext(ctx context.Context) EndpointCustomDomainMapOutput { return o } func (o EndpointCustomDomainMapOutput) MapIndex(k pulumi.StringInput) EndpointCustomDomainOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *EndpointCustomDomain { return vs[0].(map[string]*EndpointCustomDomain)[vs[1].(string)] }).(EndpointCustomDomainOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*EndpointCustomDomainInput)(nil)).Elem(), &EndpointCustomDomain{}) pulumi.RegisterInputType(reflect.TypeOf((*EndpointCustomDomainArrayInput)(nil)).Elem(), EndpointCustomDomainArray{}) pulumi.RegisterInputType(reflect.TypeOf((*EndpointCustomDomainMapInput)(nil)).Elem(), EndpointCustomDomainMap{}) pulumi.RegisterOutputType(EndpointCustomDomainOutput{}) pulumi.RegisterOutputType(EndpointCustomDomainArrayOutput{}) pulumi.RegisterOutputType(EndpointCustomDomainMapOutput{}) }
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/cdn/getFrontdoorCustomDomain.go
sdk/go/azure/cdn/getFrontdoorCustomDomain.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 cdn 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 Front Door (standard/premium) Custom Domain. // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/cdn" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { // _, err := cdn.LookupFrontdoorCustomDomain(ctx, &cdn.LookupFrontdoorCustomDomainArgs{ // Name: exampleAzurermCdnFrontdoorCustomDomain.Name, // ProfileName: exampleAzurermCdnFrontdoorProfile.Name, // ResourceGroupName: exampleAzurermCdnFrontdoorProfile.ResourceGroupName, // }, nil) // if err != nil { // return err // } // return nil // }) // } // // ``` func LookupFrontdoorCustomDomain(ctx *pulumi.Context, args *LookupFrontdoorCustomDomainArgs, opts ...pulumi.InvokeOption) (*LookupFrontdoorCustomDomainResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupFrontdoorCustomDomainResult err := ctx.Invoke("azure:cdn/getFrontdoorCustomDomain:getFrontdoorCustomDomain", args, &rv, opts...) if err != nil { return nil, err } return &rv, nil } // A collection of arguments for invoking getFrontdoorCustomDomain. type LookupFrontdoorCustomDomainArgs struct { // The name of the Front Door Custom Domain. Name string `pulumi:"name"` // The name of the Front Door Profile which the Front Door Custom Domain is bound to. ProfileName string `pulumi:"profileName"` // The name of the Resource Group where the Front Door Profile exists. ResourceGroupName string `pulumi:"resourceGroupName"` } // A collection of values returned by getFrontdoorCustomDomain. type LookupFrontdoorCustomDomainResult struct { // The ID of the Front Door Profile which the Front Door Custom Domain is bound to. CdnFrontdoorProfileId string `pulumi:"cdnFrontdoorProfileId"` DnsZoneId string `pulumi:"dnsZoneId"` // The date time that the token expires. ExpirationDate string `pulumi:"expirationDate"` // The host name of the domain. HostName string `pulumi:"hostName"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` Name string `pulumi:"name"` ProfileName string `pulumi:"profileName"` ResourceGroupName string `pulumi:"resourceGroupName"` // A `tls` block as defined below. Tls []GetFrontdoorCustomDomainTl `pulumi:"tls"` // The challenge used for DNS TXT record or file based validation. ValidationToken string `pulumi:"validationToken"` } func LookupFrontdoorCustomDomainOutput(ctx *pulumi.Context, args LookupFrontdoorCustomDomainOutputArgs, opts ...pulumi.InvokeOption) LookupFrontdoorCustomDomainResultOutput { return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupFrontdoorCustomDomainResultOutput, error) { args := v.(LookupFrontdoorCustomDomainArgs) options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} return ctx.InvokeOutput("azure:cdn/getFrontdoorCustomDomain:getFrontdoorCustomDomain", args, LookupFrontdoorCustomDomainResultOutput{}, options).(LookupFrontdoorCustomDomainResultOutput), nil }).(LookupFrontdoorCustomDomainResultOutput) } // A collection of arguments for invoking getFrontdoorCustomDomain. type LookupFrontdoorCustomDomainOutputArgs struct { // The name of the Front Door Custom Domain. Name pulumi.StringInput `pulumi:"name"` // The name of the Front Door Profile which the Front Door Custom Domain is bound to. ProfileName pulumi.StringInput `pulumi:"profileName"` // The name of the Resource Group where the Front Door Profile exists. ResourceGroupName pulumi.StringInput `pulumi:"resourceGroupName"` } func (LookupFrontdoorCustomDomainOutputArgs) ElementType() reflect.Type { return reflect.TypeOf((*LookupFrontdoorCustomDomainArgs)(nil)).Elem() } // A collection of values returned by getFrontdoorCustomDomain. type LookupFrontdoorCustomDomainResultOutput struct{ *pulumi.OutputState } func (LookupFrontdoorCustomDomainResultOutput) ElementType() reflect.Type { return reflect.TypeOf((*LookupFrontdoorCustomDomainResult)(nil)).Elem() } func (o LookupFrontdoorCustomDomainResultOutput) ToLookupFrontdoorCustomDomainResultOutput() LookupFrontdoorCustomDomainResultOutput { return o } func (o LookupFrontdoorCustomDomainResultOutput) ToLookupFrontdoorCustomDomainResultOutputWithContext(ctx context.Context) LookupFrontdoorCustomDomainResultOutput { return o } // The ID of the Front Door Profile which the Front Door Custom Domain is bound to. func (o LookupFrontdoorCustomDomainResultOutput) CdnFrontdoorProfileId() pulumi.StringOutput { return o.ApplyT(func(v LookupFrontdoorCustomDomainResult) string { return v.CdnFrontdoorProfileId }).(pulumi.StringOutput) } func (o LookupFrontdoorCustomDomainResultOutput) DnsZoneId() pulumi.StringOutput { return o.ApplyT(func(v LookupFrontdoorCustomDomainResult) string { return v.DnsZoneId }).(pulumi.StringOutput) } // The date time that the token expires. func (o LookupFrontdoorCustomDomainResultOutput) ExpirationDate() pulumi.StringOutput { return o.ApplyT(func(v LookupFrontdoorCustomDomainResult) string { return v.ExpirationDate }).(pulumi.StringOutput) } // The host name of the domain. func (o LookupFrontdoorCustomDomainResultOutput) HostName() pulumi.StringOutput { return o.ApplyT(func(v LookupFrontdoorCustomDomainResult) string { return v.HostName }).(pulumi.StringOutput) } // The provider-assigned unique ID for this managed resource. func (o LookupFrontdoorCustomDomainResultOutput) Id() pulumi.StringOutput { return o.ApplyT(func(v LookupFrontdoorCustomDomainResult) string { return v.Id }).(pulumi.StringOutput) } func (o LookupFrontdoorCustomDomainResultOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v LookupFrontdoorCustomDomainResult) string { return v.Name }).(pulumi.StringOutput) } func (o LookupFrontdoorCustomDomainResultOutput) ProfileName() pulumi.StringOutput { return o.ApplyT(func(v LookupFrontdoorCustomDomainResult) string { return v.ProfileName }).(pulumi.StringOutput) } func (o LookupFrontdoorCustomDomainResultOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v LookupFrontdoorCustomDomainResult) string { return v.ResourceGroupName }).(pulumi.StringOutput) } // A `tls` block as defined below. func (o LookupFrontdoorCustomDomainResultOutput) Tls() GetFrontdoorCustomDomainTlArrayOutput { return o.ApplyT(func(v LookupFrontdoorCustomDomainResult) []GetFrontdoorCustomDomainTl { return v.Tls }).(GetFrontdoorCustomDomainTlArrayOutput) } // The challenge used for DNS TXT record or file based validation. func (o LookupFrontdoorCustomDomainResultOutput) ValidationToken() pulumi.StringOutput { return o.ApplyT(func(v LookupFrontdoorCustomDomainResult) string { return v.ValidationToken }).(pulumi.StringOutput) } func init() { pulumi.RegisterOutputType(LookupFrontdoorCustomDomainResultOutput{}) }
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/cdn/endpoint.go
sdk/go/azure/cdn/endpoint.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 cdn import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // A CDN (classic) Endpoint is the entity within a CDN Profile containing configuration information regarding caching behaviours and origins. The CDN Endpoint is exposed using the URL format `<endpointname>.azureedge.net`. // // !> **Note:** Azure rolled out a breaking change on Friday 9th April 2021 which may cause issues with the CDN/FrontDoor resources. More information is available in this GitHub issue - unfortunately this may necessitate a breaking change to the CDN (classic) and FrontDoor (classic) resources, more information will be posted in the GitHub issue as the necessary changes are identified. // // !> **Note:** Support for the CDN (classic) `sku` `Standard_Akamai` was deprecated from Azure on `October 31, 2023` and is no longer available. // // !> **Note:** Support for the CDN (classic) `sku` `Standard_Verizon` and `Premium_Verizon` was deprecated from Azure on `January 15, 2025` and is no longer available. // // !> **Note:** Support for the CDN (classic) `sku` `Standard_Microsoft` and `Standard_ChinaCdn` will be deprecated from Azure on `October 1, 2025` and will no longer be available, however modifications to existing CDN (classic) resources will continue to be supported until the API reaches full retirement on `September 30, 2027`. // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/cdn" // "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 // } // exampleProfile, err := cdn.NewProfile(ctx, "example", &cdn.ProfileArgs{ // Name: pulumi.String("example-cdn"), // Location: example.Location, // ResourceGroupName: example.Name, // Sku: pulumi.String("Standard_Microsoft"), // }) // if err != nil { // return err // } // _, err = cdn.NewEndpoint(ctx, "example", &cdn.EndpointArgs{ // Name: pulumi.String("example"), // ProfileName: exampleProfile.Name, // Location: example.Location, // ResourceGroupName: example.Name, // Origins: cdn.EndpointOriginArray{ // &cdn.EndpointOriginArgs{ // Name: pulumi.String("example"), // HostName: pulumi.String("www.contoso.com"), // }, // }, // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## Import // // CDN Endpoints can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:cdn/endpoint:Endpoint example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Cdn/profiles/myprofile1/endpoints/myendpoint1 // ``` type Endpoint struct { pulumi.CustomResourceState // An array of strings that indicates a content types on which compression will be applied. The value for the elements should be MIME types. ContentTypesToCompresses pulumi.StringArrayOutput `pulumi:"contentTypesToCompresses"` // Rules for the rules engine. An endpoint can contain up until 4 of those rules that consist of conditions and actions. A `deliveryRule` blocks as defined below. DeliveryRules EndpointDeliveryRuleArrayOutput `pulumi:"deliveryRules"` // The Fully Qualified Domain Name of the CDN Endpoint. Fqdn pulumi.StringOutput `pulumi:"fqdn"` // A set of Geo Filters for this CDN Endpoint. Each `geoFilter` block supports fields documented below. GeoFilters EndpointGeoFilterArrayOutput `pulumi:"geoFilters"` // Actions that are valid for all resources regardless of any conditions. A `globalDeliveryRule` block as defined below. GlobalDeliveryRule EndpointGlobalDeliveryRulePtrOutput `pulumi:"globalDeliveryRule"` // Indicates whether compression is to be enabled. IsCompressionEnabled pulumi.BoolPtrOutput `pulumi:"isCompressionEnabled"` // Specifies if http allowed. Defaults to `true`. IsHttpAllowed pulumi.BoolPtrOutput `pulumi:"isHttpAllowed"` // Specifies if https allowed. Defaults to `true`. IsHttpsAllowed pulumi.BoolPtrOutput `pulumi:"isHttpsAllowed"` // 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 CDN Endpoint. Changing this forces a new resource to be created. Name pulumi.StringOutput `pulumi:"name"` // What types of optimization should this CDN Endpoint optimize for? Possible values include `DynamicSiteAcceleration`, `GeneralMediaStreaming`, `GeneralWebDelivery`, `LargeFileDownload` and `VideoOnDemandMediaStreaming`. OptimizationType pulumi.StringPtrOutput `pulumi:"optimizationType"` // The host header CDN provider will send along with content requests to origins. OriginHostHeader pulumi.StringPtrOutput `pulumi:"originHostHeader"` // The path used at for origin requests. OriginPath pulumi.StringPtrOutput `pulumi:"originPath"` // The set of origins of the CDN endpoint. When multiple origins exist, the first origin will be used as primary and rest will be used as failover options. Each `origin` block supports fields documented below. Changing this forces a new resource to be created. Origins EndpointOriginArrayOutput `pulumi:"origins"` // the path to a file hosted on the origin which helps accelerate delivery of the dynamic content and calculate the most optimal routes for the CDN. This is relative to the `originPath`. // // > **Note:** `globalDeliveryRule` and `deliveryRule` are currently only available for `Microsoft_Standard` CDN profiles. ProbePath pulumi.StringPtrOutput `pulumi:"probePath"` // The CDN Profile to which to attach the CDN Endpoint. Changing this forces a new resource to be created. ProfileName pulumi.StringOutput `pulumi:"profileName"` // Sets query string caching behavior. Allowed values are `IgnoreQueryString`, `BypassCaching` and `UseQueryString`. `NotSet` value can be used for `Premium Verizon` CDN profile. Defaults to `IgnoreQueryString`. QuerystringCachingBehaviour pulumi.StringPtrOutput `pulumi:"querystringCachingBehaviour"` // The name of the resource group in which to create the CDN Endpoint. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // A mapping of tags to assign to the resource. Tags pulumi.StringMapOutput `pulumi:"tags"` } // NewEndpoint registers a new resource with the given unique name, arguments, and options. func NewEndpoint(ctx *pulumi.Context, name string, args *EndpointArgs, opts ...pulumi.ResourceOption) (*Endpoint, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.Origins == nil { return nil, errors.New("invalid value for required argument 'Origins'") } if args.ProfileName == nil { return nil, errors.New("invalid value for required argument 'ProfileName'") } if args.ResourceGroupName == nil { return nil, errors.New("invalid value for required argument 'ResourceGroupName'") } opts = internal.PkgResourceDefaultOpts(opts) var resource Endpoint err := ctx.RegisterResource("azure:cdn/endpoint:Endpoint", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetEndpoint gets an existing Endpoint 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 GetEndpoint(ctx *pulumi.Context, name string, id pulumi.IDInput, state *EndpointState, opts ...pulumi.ResourceOption) (*Endpoint, error) { var resource Endpoint err := ctx.ReadResource("azure:cdn/endpoint:Endpoint", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering Endpoint resources. type endpointState struct { // An array of strings that indicates a content types on which compression will be applied. The value for the elements should be MIME types. ContentTypesToCompresses []string `pulumi:"contentTypesToCompresses"` // Rules for the rules engine. An endpoint can contain up until 4 of those rules that consist of conditions and actions. A `deliveryRule` blocks as defined below. DeliveryRules []EndpointDeliveryRule `pulumi:"deliveryRules"` // The Fully Qualified Domain Name of the CDN Endpoint. Fqdn *string `pulumi:"fqdn"` // A set of Geo Filters for this CDN Endpoint. Each `geoFilter` block supports fields documented below. GeoFilters []EndpointGeoFilter `pulumi:"geoFilters"` // Actions that are valid for all resources regardless of any conditions. A `globalDeliveryRule` block as defined below. GlobalDeliveryRule *EndpointGlobalDeliveryRule `pulumi:"globalDeliveryRule"` // Indicates whether compression is to be enabled. IsCompressionEnabled *bool `pulumi:"isCompressionEnabled"` // Specifies if http allowed. Defaults to `true`. IsHttpAllowed *bool `pulumi:"isHttpAllowed"` // Specifies if https allowed. Defaults to `true`. IsHttpsAllowed *bool `pulumi:"isHttpsAllowed"` // 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 CDN Endpoint. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // What types of optimization should this CDN Endpoint optimize for? Possible values include `DynamicSiteAcceleration`, `GeneralMediaStreaming`, `GeneralWebDelivery`, `LargeFileDownload` and `VideoOnDemandMediaStreaming`. OptimizationType *string `pulumi:"optimizationType"` // The host header CDN provider will send along with content requests to origins. OriginHostHeader *string `pulumi:"originHostHeader"` // The path used at for origin requests. OriginPath *string `pulumi:"originPath"` // The set of origins of the CDN endpoint. When multiple origins exist, the first origin will be used as primary and rest will be used as failover options. Each `origin` block supports fields documented below. Changing this forces a new resource to be created. Origins []EndpointOrigin `pulumi:"origins"` // the path to a file hosted on the origin which helps accelerate delivery of the dynamic content and calculate the most optimal routes for the CDN. This is relative to the `originPath`. // // > **Note:** `globalDeliveryRule` and `deliveryRule` are currently only available for `Microsoft_Standard` CDN profiles. ProbePath *string `pulumi:"probePath"` // The CDN Profile to which to attach the CDN Endpoint. Changing this forces a new resource to be created. ProfileName *string `pulumi:"profileName"` // Sets query string caching behavior. Allowed values are `IgnoreQueryString`, `BypassCaching` and `UseQueryString`. `NotSet` value can be used for `Premium Verizon` CDN profile. Defaults to `IgnoreQueryString`. QuerystringCachingBehaviour *string `pulumi:"querystringCachingBehaviour"` // The name of the resource group in which to create the CDN Endpoint. Changing this forces a new resource to be created. ResourceGroupName *string `pulumi:"resourceGroupName"` // A mapping of tags to assign to the resource. Tags map[string]string `pulumi:"tags"` } type EndpointState struct { // An array of strings that indicates a content types on which compression will be applied. The value for the elements should be MIME types. ContentTypesToCompresses pulumi.StringArrayInput // Rules for the rules engine. An endpoint can contain up until 4 of those rules that consist of conditions and actions. A `deliveryRule` blocks as defined below. DeliveryRules EndpointDeliveryRuleArrayInput // The Fully Qualified Domain Name of the CDN Endpoint. Fqdn pulumi.StringPtrInput // A set of Geo Filters for this CDN Endpoint. Each `geoFilter` block supports fields documented below. GeoFilters EndpointGeoFilterArrayInput // Actions that are valid for all resources regardless of any conditions. A `globalDeliveryRule` block as defined below. GlobalDeliveryRule EndpointGlobalDeliveryRulePtrInput // Indicates whether compression is to be enabled. IsCompressionEnabled pulumi.BoolPtrInput // Specifies if http allowed. Defaults to `true`. IsHttpAllowed pulumi.BoolPtrInput // Specifies if https allowed. Defaults to `true`. IsHttpsAllowed pulumi.BoolPtrInput // 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 CDN Endpoint. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // What types of optimization should this CDN Endpoint optimize for? Possible values include `DynamicSiteAcceleration`, `GeneralMediaStreaming`, `GeneralWebDelivery`, `LargeFileDownload` and `VideoOnDemandMediaStreaming`. OptimizationType pulumi.StringPtrInput // The host header CDN provider will send along with content requests to origins. OriginHostHeader pulumi.StringPtrInput // The path used at for origin requests. OriginPath pulumi.StringPtrInput // The set of origins of the CDN endpoint. When multiple origins exist, the first origin will be used as primary and rest will be used as failover options. Each `origin` block supports fields documented below. Changing this forces a new resource to be created. Origins EndpointOriginArrayInput // the path to a file hosted on the origin which helps accelerate delivery of the dynamic content and calculate the most optimal routes for the CDN. This is relative to the `originPath`. // // > **Note:** `globalDeliveryRule` and `deliveryRule` are currently only available for `Microsoft_Standard` CDN profiles. ProbePath pulumi.StringPtrInput // The CDN Profile to which to attach the CDN Endpoint. Changing this forces a new resource to be created. ProfileName pulumi.StringPtrInput // Sets query string caching behavior. Allowed values are `IgnoreQueryString`, `BypassCaching` and `UseQueryString`. `NotSet` value can be used for `Premium Verizon` CDN profile. Defaults to `IgnoreQueryString`. QuerystringCachingBehaviour pulumi.StringPtrInput // The name of the resource group in which to create the CDN Endpoint. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringPtrInput // A mapping of tags to assign to the resource. Tags pulumi.StringMapInput } func (EndpointState) ElementType() reflect.Type { return reflect.TypeOf((*endpointState)(nil)).Elem() } type endpointArgs struct { // An array of strings that indicates a content types on which compression will be applied. The value for the elements should be MIME types. ContentTypesToCompresses []string `pulumi:"contentTypesToCompresses"` // Rules for the rules engine. An endpoint can contain up until 4 of those rules that consist of conditions and actions. A `deliveryRule` blocks as defined below. DeliveryRules []EndpointDeliveryRule `pulumi:"deliveryRules"` // A set of Geo Filters for this CDN Endpoint. Each `geoFilter` block supports fields documented below. GeoFilters []EndpointGeoFilter `pulumi:"geoFilters"` // Actions that are valid for all resources regardless of any conditions. A `globalDeliveryRule` block as defined below. GlobalDeliveryRule *EndpointGlobalDeliveryRule `pulumi:"globalDeliveryRule"` // Indicates whether compression is to be enabled. IsCompressionEnabled *bool `pulumi:"isCompressionEnabled"` // Specifies if http allowed. Defaults to `true`. IsHttpAllowed *bool `pulumi:"isHttpAllowed"` // Specifies if https allowed. Defaults to `true`. IsHttpsAllowed *bool `pulumi:"isHttpsAllowed"` // 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 CDN Endpoint. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // What types of optimization should this CDN Endpoint optimize for? Possible values include `DynamicSiteAcceleration`, `GeneralMediaStreaming`, `GeneralWebDelivery`, `LargeFileDownload` and `VideoOnDemandMediaStreaming`. OptimizationType *string `pulumi:"optimizationType"` // The host header CDN provider will send along with content requests to origins. OriginHostHeader *string `pulumi:"originHostHeader"` // The path used at for origin requests. OriginPath *string `pulumi:"originPath"` // The set of origins of the CDN endpoint. When multiple origins exist, the first origin will be used as primary and rest will be used as failover options. Each `origin` block supports fields documented below. Changing this forces a new resource to be created. Origins []EndpointOrigin `pulumi:"origins"` // the path to a file hosted on the origin which helps accelerate delivery of the dynamic content and calculate the most optimal routes for the CDN. This is relative to the `originPath`. // // > **Note:** `globalDeliveryRule` and `deliveryRule` are currently only available for `Microsoft_Standard` CDN profiles. ProbePath *string `pulumi:"probePath"` // The CDN Profile to which to attach the CDN Endpoint. Changing this forces a new resource to be created. ProfileName string `pulumi:"profileName"` // Sets query string caching behavior. Allowed values are `IgnoreQueryString`, `BypassCaching` and `UseQueryString`. `NotSet` value can be used for `Premium Verizon` CDN profile. Defaults to `IgnoreQueryString`. QuerystringCachingBehaviour *string `pulumi:"querystringCachingBehaviour"` // The name of the resource group in which to create the CDN Endpoint. Changing this forces a new resource to be created. ResourceGroupName string `pulumi:"resourceGroupName"` // A mapping of tags to assign to the resource. Tags map[string]string `pulumi:"tags"` } // The set of arguments for constructing a Endpoint resource. type EndpointArgs struct { // An array of strings that indicates a content types on which compression will be applied. The value for the elements should be MIME types. ContentTypesToCompresses pulumi.StringArrayInput // Rules for the rules engine. An endpoint can contain up until 4 of those rules that consist of conditions and actions. A `deliveryRule` blocks as defined below. DeliveryRules EndpointDeliveryRuleArrayInput // A set of Geo Filters for this CDN Endpoint. Each `geoFilter` block supports fields documented below. GeoFilters EndpointGeoFilterArrayInput // Actions that are valid for all resources regardless of any conditions. A `globalDeliveryRule` block as defined below. GlobalDeliveryRule EndpointGlobalDeliveryRulePtrInput // Indicates whether compression is to be enabled. IsCompressionEnabled pulumi.BoolPtrInput // Specifies if http allowed. Defaults to `true`. IsHttpAllowed pulumi.BoolPtrInput // Specifies if https allowed. Defaults to `true`. IsHttpsAllowed pulumi.BoolPtrInput // 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 CDN Endpoint. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // What types of optimization should this CDN Endpoint optimize for? Possible values include `DynamicSiteAcceleration`, `GeneralMediaStreaming`, `GeneralWebDelivery`, `LargeFileDownload` and `VideoOnDemandMediaStreaming`. OptimizationType pulumi.StringPtrInput // The host header CDN provider will send along with content requests to origins. OriginHostHeader pulumi.StringPtrInput // The path used at for origin requests. OriginPath pulumi.StringPtrInput // The set of origins of the CDN endpoint. When multiple origins exist, the first origin will be used as primary and rest will be used as failover options. Each `origin` block supports fields documented below. Changing this forces a new resource to be created. Origins EndpointOriginArrayInput // the path to a file hosted on the origin which helps accelerate delivery of the dynamic content and calculate the most optimal routes for the CDN. This is relative to the `originPath`. // // > **Note:** `globalDeliveryRule` and `deliveryRule` are currently only available for `Microsoft_Standard` CDN profiles. ProbePath pulumi.StringPtrInput // The CDN Profile to which to attach the CDN Endpoint. Changing this forces a new resource to be created. ProfileName pulumi.StringInput // Sets query string caching behavior. Allowed values are `IgnoreQueryString`, `BypassCaching` and `UseQueryString`. `NotSet` value can be used for `Premium Verizon` CDN profile. Defaults to `IgnoreQueryString`. QuerystringCachingBehaviour pulumi.StringPtrInput // The name of the resource group in which to create the CDN Endpoint. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringInput // A mapping of tags to assign to the resource. Tags pulumi.StringMapInput } func (EndpointArgs) ElementType() reflect.Type { return reflect.TypeOf((*endpointArgs)(nil)).Elem() } type EndpointInput interface { pulumi.Input ToEndpointOutput() EndpointOutput ToEndpointOutputWithContext(ctx context.Context) EndpointOutput } func (*Endpoint) ElementType() reflect.Type { return reflect.TypeOf((**Endpoint)(nil)).Elem() } func (i *Endpoint) ToEndpointOutput() EndpointOutput { return i.ToEndpointOutputWithContext(context.Background()) } func (i *Endpoint) ToEndpointOutputWithContext(ctx context.Context) EndpointOutput { return pulumi.ToOutputWithContext(ctx, i).(EndpointOutput) } // EndpointArrayInput is an input type that accepts EndpointArray and EndpointArrayOutput values. // You can construct a concrete instance of `EndpointArrayInput` via: // // EndpointArray{ EndpointArgs{...} } type EndpointArrayInput interface { pulumi.Input ToEndpointArrayOutput() EndpointArrayOutput ToEndpointArrayOutputWithContext(context.Context) EndpointArrayOutput } type EndpointArray []EndpointInput func (EndpointArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*Endpoint)(nil)).Elem() } func (i EndpointArray) ToEndpointArrayOutput() EndpointArrayOutput { return i.ToEndpointArrayOutputWithContext(context.Background()) } func (i EndpointArray) ToEndpointArrayOutputWithContext(ctx context.Context) EndpointArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(EndpointArrayOutput) } // EndpointMapInput is an input type that accepts EndpointMap and EndpointMapOutput values. // You can construct a concrete instance of `EndpointMapInput` via: // // EndpointMap{ "key": EndpointArgs{...} } type EndpointMapInput interface { pulumi.Input ToEndpointMapOutput() EndpointMapOutput ToEndpointMapOutputWithContext(context.Context) EndpointMapOutput } type EndpointMap map[string]EndpointInput func (EndpointMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*Endpoint)(nil)).Elem() } func (i EndpointMap) ToEndpointMapOutput() EndpointMapOutput { return i.ToEndpointMapOutputWithContext(context.Background()) } func (i EndpointMap) ToEndpointMapOutputWithContext(ctx context.Context) EndpointMapOutput { return pulumi.ToOutputWithContext(ctx, i).(EndpointMapOutput) } type EndpointOutput struct{ *pulumi.OutputState } func (EndpointOutput) ElementType() reflect.Type { return reflect.TypeOf((**Endpoint)(nil)).Elem() } func (o EndpointOutput) ToEndpointOutput() EndpointOutput { return o } func (o EndpointOutput) ToEndpointOutputWithContext(ctx context.Context) EndpointOutput { return o } // An array of strings that indicates a content types on which compression will be applied. The value for the elements should be MIME types. func (o EndpointOutput) ContentTypesToCompresses() pulumi.StringArrayOutput { return o.ApplyT(func(v *Endpoint) pulumi.StringArrayOutput { return v.ContentTypesToCompresses }).(pulumi.StringArrayOutput) } // Rules for the rules engine. An endpoint can contain up until 4 of those rules that consist of conditions and actions. A `deliveryRule` blocks as defined below. func (o EndpointOutput) DeliveryRules() EndpointDeliveryRuleArrayOutput { return o.ApplyT(func(v *Endpoint) EndpointDeliveryRuleArrayOutput { return v.DeliveryRules }).(EndpointDeliveryRuleArrayOutput) } // The Fully Qualified Domain Name of the CDN Endpoint. func (o EndpointOutput) Fqdn() pulumi.StringOutput { return o.ApplyT(func(v *Endpoint) pulumi.StringOutput { return v.Fqdn }).(pulumi.StringOutput) } // A set of Geo Filters for this CDN Endpoint. Each `geoFilter` block supports fields documented below. func (o EndpointOutput) GeoFilters() EndpointGeoFilterArrayOutput { return o.ApplyT(func(v *Endpoint) EndpointGeoFilterArrayOutput { return v.GeoFilters }).(EndpointGeoFilterArrayOutput) } // Actions that are valid for all resources regardless of any conditions. A `globalDeliveryRule` block as defined below. func (o EndpointOutput) GlobalDeliveryRule() EndpointGlobalDeliveryRulePtrOutput { return o.ApplyT(func(v *Endpoint) EndpointGlobalDeliveryRulePtrOutput { return v.GlobalDeliveryRule }).(EndpointGlobalDeliveryRulePtrOutput) } // Indicates whether compression is to be enabled. func (o EndpointOutput) IsCompressionEnabled() pulumi.BoolPtrOutput { return o.ApplyT(func(v *Endpoint) pulumi.BoolPtrOutput { return v.IsCompressionEnabled }).(pulumi.BoolPtrOutput) } // Specifies if http allowed. Defaults to `true`. func (o EndpointOutput) IsHttpAllowed() pulumi.BoolPtrOutput { return o.ApplyT(func(v *Endpoint) pulumi.BoolPtrOutput { return v.IsHttpAllowed }).(pulumi.BoolPtrOutput) } // Specifies if https allowed. Defaults to `true`. func (o EndpointOutput) IsHttpsAllowed() pulumi.BoolPtrOutput { return o.ApplyT(func(v *Endpoint) pulumi.BoolPtrOutput { return v.IsHttpsAllowed }).(pulumi.BoolPtrOutput) } // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. func (o EndpointOutput) Location() pulumi.StringOutput { return o.ApplyT(func(v *Endpoint) pulumi.StringOutput { return v.Location }).(pulumi.StringOutput) } // Specifies the name of the CDN Endpoint. Changing this forces a new resource to be created. func (o EndpointOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *Endpoint) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // What types of optimization should this CDN Endpoint optimize for? Possible values include `DynamicSiteAcceleration`, `GeneralMediaStreaming`, `GeneralWebDelivery`, `LargeFileDownload` and `VideoOnDemandMediaStreaming`. func (o EndpointOutput) OptimizationType() pulumi.StringPtrOutput { return o.ApplyT(func(v *Endpoint) pulumi.StringPtrOutput { return v.OptimizationType }).(pulumi.StringPtrOutput) } // The host header CDN provider will send along with content requests to origins. func (o EndpointOutput) OriginHostHeader() pulumi.StringPtrOutput { return o.ApplyT(func(v *Endpoint) pulumi.StringPtrOutput { return v.OriginHostHeader }).(pulumi.StringPtrOutput) } // The path used at for origin requests. func (o EndpointOutput) OriginPath() pulumi.StringPtrOutput { return o.ApplyT(func(v *Endpoint) pulumi.StringPtrOutput { return v.OriginPath }).(pulumi.StringPtrOutput) } // The set of origins of the CDN endpoint. When multiple origins exist, the first origin will be used as primary and rest will be used as failover options. Each `origin` block supports fields documented below. Changing this forces a new resource to be created. func (o EndpointOutput) Origins() EndpointOriginArrayOutput { return o.ApplyT(func(v *Endpoint) EndpointOriginArrayOutput { return v.Origins }).(EndpointOriginArrayOutput) } // the path to a file hosted on the origin which helps accelerate delivery of the dynamic content and calculate the most optimal routes for the CDN. This is relative to the `originPath`. // // > **Note:** `globalDeliveryRule` and `deliveryRule` are currently only available for `Microsoft_Standard` CDN profiles. func (o EndpointOutput) ProbePath() pulumi.StringPtrOutput { return o.ApplyT(func(v *Endpoint) pulumi.StringPtrOutput { return v.ProbePath }).(pulumi.StringPtrOutput) } // The CDN Profile to which to attach the CDN Endpoint. Changing this forces a new resource to be created. func (o EndpointOutput) ProfileName() pulumi.StringOutput { return o.ApplyT(func(v *Endpoint) pulumi.StringOutput { return v.ProfileName }).(pulumi.StringOutput) } // Sets query string caching behavior. Allowed values are `IgnoreQueryString`, `BypassCaching` and `UseQueryString`. `NotSet` value can be used for `Premium Verizon` CDN profile. Defaults to `IgnoreQueryString`. func (o EndpointOutput) QuerystringCachingBehaviour() pulumi.StringPtrOutput { return o.ApplyT(func(v *Endpoint) pulumi.StringPtrOutput { return v.QuerystringCachingBehaviour }).(pulumi.StringPtrOutput) } // The name of the resource group in which to create the CDN Endpoint. Changing this forces a new resource to be created. func (o EndpointOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v *Endpoint) pulumi.StringOutput { return v.ResourceGroupName }).(pulumi.StringOutput) } // A mapping of tags to assign to the resource. func (o EndpointOutput) Tags() pulumi.StringMapOutput { return o.ApplyT(func(v *Endpoint) pulumi.StringMapOutput { return v.Tags }).(pulumi.StringMapOutput) } type EndpointArrayOutput struct{ *pulumi.OutputState } func (EndpointArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*Endpoint)(nil)).Elem() } func (o EndpointArrayOutput) ToEndpointArrayOutput() EndpointArrayOutput { return o } func (o EndpointArrayOutput) ToEndpointArrayOutputWithContext(ctx context.Context) EndpointArrayOutput { return o } func (o EndpointArrayOutput) Index(i pulumi.IntInput) EndpointOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *Endpoint { return vs[0].([]*Endpoint)[vs[1].(int)] }).(EndpointOutput) } type EndpointMapOutput struct{ *pulumi.OutputState } func (EndpointMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*Endpoint)(nil)).Elem() } func (o EndpointMapOutput) ToEndpointMapOutput() EndpointMapOutput { return o } func (o EndpointMapOutput) ToEndpointMapOutputWithContext(ctx context.Context) EndpointMapOutput { return o } func (o EndpointMapOutput) MapIndex(k pulumi.StringInput) EndpointOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *Endpoint { return vs[0].(map[string]*Endpoint)[vs[1].(string)] }).(EndpointOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*EndpointInput)(nil)).Elem(), &Endpoint{}) pulumi.RegisterInputType(reflect.TypeOf((*EndpointArrayInput)(nil)).Elem(), EndpointArray{}) pulumi.RegisterInputType(reflect.TypeOf((*EndpointMapInput)(nil)).Elem(), EndpointMap{}) pulumi.RegisterOutputType(EndpointOutput{}) pulumi.RegisterOutputType(EndpointArrayOutput{}) pulumi.RegisterOutputType(EndpointMapOutput{}) }
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/cdn/frontdoorRule.go
sdk/go/azure/cdn/frontdoorRule.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 cdn import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a Front Door (standard/premium) Rule. // // !> **Note:** The Rules resource **must** include a `dependsOn` meta-argument which references the `cdn.FrontdoorOrigin` and the `cdn.FrontdoorOriginGroup`. // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/cdn" // "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-cdn-frontdoor"), // Location: pulumi.String("West Europe"), // }) // if err != nil { // return err // } // exampleFrontdoorProfile, err := cdn.NewFrontdoorProfile(ctx, "example", &cdn.FrontdoorProfileArgs{ // Name: pulumi.String("example-profile"), // ResourceGroupName: example.Name, // SkuName: pulumi.String("Premium_AzureFrontDoor"), // }) // if err != nil { // return err // } // exampleFrontdoorEndpoint, err := cdn.NewFrontdoorEndpoint(ctx, "example", &cdn.FrontdoorEndpointArgs{ // Name: pulumi.String("example-endpoint"), // CdnFrontdoorProfileId: exampleFrontdoorProfile.ID(), // Tags: pulumi.StringMap{ // "endpoint": pulumi.String("contoso.com"), // }, // }) // if err != nil { // return err // } // exampleFrontdoorOriginGroup, err := cdn.NewFrontdoorOriginGroup(ctx, "example", &cdn.FrontdoorOriginGroupArgs{ // Name: pulumi.String("example-originGroup"), // CdnFrontdoorProfileId: exampleFrontdoorProfile.ID(), // SessionAffinityEnabled: pulumi.Bool(true), // RestoreTrafficTimeToHealedOrNewEndpointInMinutes: pulumi.Int(10), // HealthProbe: &cdn.FrontdoorOriginGroupHealthProbeArgs{ // IntervalInSeconds: pulumi.Int(240), // Path: pulumi.String("/healthProbe"), // Protocol: pulumi.String("Https"), // RequestType: pulumi.String("GET"), // }, // LoadBalancing: &cdn.FrontdoorOriginGroupLoadBalancingArgs{ // AdditionalLatencyInMilliseconds: pulumi.Int(0), // SampleSize: pulumi.Int(16), // SuccessfulSamplesRequired: pulumi.Int(3), // }, // }) // if err != nil { // return err // } // exampleFrontdoorOrigin, err := cdn.NewFrontdoorOrigin(ctx, "example", &cdn.FrontdoorOriginArgs{ // Name: pulumi.String("example-origin"), // CdnFrontdoorOriginGroupId: exampleFrontdoorOriginGroup.ID(), // Enabled: pulumi.Bool(true), // CertificateNameCheckEnabled: pulumi.Bool(false), // HostName: exampleFrontdoorEndpoint.HostName, // HttpPort: pulumi.Int(80), // HttpsPort: pulumi.Int(443), // OriginHostHeader: pulumi.String("contoso.com"), // Priority: pulumi.Int(1), // Weight: pulumi.Int(500), // }) // if err != nil { // return err // } // exampleFrontdoorRuleSet, err := cdn.NewFrontdoorRuleSet(ctx, "example", &cdn.FrontdoorRuleSetArgs{ // Name: pulumi.String("exampleruleset"), // CdnFrontdoorProfileId: exampleFrontdoorProfile.ID(), // }) // if err != nil { // return err // } // _, err = cdn.NewFrontdoorRule(ctx, "example", &cdn.FrontdoorRuleArgs{ // Name: pulumi.String("examplerule"), // CdnFrontdoorRuleSetId: exampleFrontdoorRuleSet.ID(), // Order: pulumi.Int(1), // BehaviorOnMatch: pulumi.String("Continue"), // Actions: &cdn.FrontdoorRuleActionsArgs{ // RouteConfigurationOverrideAction: &cdn.FrontdoorRuleActionsRouteConfigurationOverrideActionArgs{ // CdnFrontdoorOriginGroupId: exampleFrontdoorOriginGroup.ID(), // ForwardingProtocol: pulumi.String("HttpsOnly"), // QueryStringCachingBehavior: pulumi.String("IncludeSpecifiedQueryStrings"), // QueryStringParameters: pulumi.StringArray{ // pulumi.String("foo"), // pulumi.String("clientIp={client_ip}"), // }, // CompressionEnabled: pulumi.Bool(true), // CacheBehavior: pulumi.String("OverrideIfOriginMissing"), // CacheDuration: pulumi.String("365.23:59:59"), // }, // UrlRedirectAction: &cdn.FrontdoorRuleActionsUrlRedirectActionArgs{ // RedirectType: pulumi.String("PermanentRedirect"), // RedirectProtocol: pulumi.String("MatchRequest"), // QueryString: pulumi.String("clientIp={client_ip}"), // DestinationPath: pulumi.String("/exampleredirection"), // DestinationHostname: pulumi.String("contoso.com"), // DestinationFragment: pulumi.String("UrlRedirect"), // }, // }, // Conditions: &cdn.FrontdoorRuleConditionsArgs{ // HostNameConditions: cdn.FrontdoorRuleConditionsHostNameConditionArray{ // &cdn.FrontdoorRuleConditionsHostNameConditionArgs{ // Operator: pulumi.String("Equal"), // NegateCondition: pulumi.Bool(false), // MatchValues: pulumi.StringArray{ // pulumi.String("www.contoso.com"), // pulumi.String("images.contoso.com"), // pulumi.String("video.contoso.com"), // }, // Transforms: pulumi.StringArray{ // pulumi.String("Lowercase"), // pulumi.String("Trim"), // }, // }, // }, // IsDeviceConditions: cdn.FrontdoorRuleConditionsIsDeviceConditionArray{ // &cdn.FrontdoorRuleConditionsIsDeviceConditionArgs{ // Operator: pulumi.String("Equal"), // NegateCondition: pulumi.Bool(false), // MatchValues: pulumi.String("Mobile"), // }, // }, // PostArgsConditions: cdn.FrontdoorRuleConditionsPostArgsConditionArray{ // &cdn.FrontdoorRuleConditionsPostArgsConditionArgs{ // PostArgsName: pulumi.String("customerName"), // Operator: pulumi.String("BeginsWith"), // MatchValues: pulumi.StringArray{ // pulumi.String("J"), // pulumi.String("K"), // }, // Transforms: pulumi.StringArray{ // pulumi.String("Uppercase"), // }, // }, // }, // RequestMethodConditions: cdn.FrontdoorRuleConditionsRequestMethodConditionArray{ // &cdn.FrontdoorRuleConditionsRequestMethodConditionArgs{ // Operator: pulumi.String("Equal"), // NegateCondition: pulumi.Bool(false), // MatchValues: pulumi.StringArray{ // pulumi.String("DELETE"), // }, // }, // }, // UrlFilenameConditions: cdn.FrontdoorRuleConditionsUrlFilenameConditionArray{ // &cdn.FrontdoorRuleConditionsUrlFilenameConditionArgs{ // Operator: pulumi.String("Equal"), // NegateCondition: pulumi.Bool(false), // MatchValues: pulumi.StringArray{ // pulumi.String("media.mp4"), // }, // Transforms: pulumi.StringArray{ // pulumi.String("Lowercase"), // pulumi.String("RemoveNulls"), // pulumi.String("Trim"), // }, // }, // }, // }, // }, pulumi.DependsOn([]pulumi.Resource{ // exampleFrontdoorOriginGroup, // exampleFrontdoorOrigin, // })) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## Specifying IP Address Ranges // // When specifying IP address ranges in the `socketAddressCondition` and the `remoteAddressCondition` `matchValues` use the following format: // // Use `CIDR` notation when specifying IP address blocks. This means that the syntax for an IP address block is the base IP address followed by a forward slash and the prefix size For example: // // * `IPv4` example: `5.5.5.64/26` matches any requests that arrive from addresses `5.5.5.64` through `5.5.5.127`. // * `IPv6` example: `1:2:3:/48` matches any requests that arrive from addresses `1:2:3:0:0:0:0:0` through `1:2:3:ffff:ffff:ffff:ffff:ffff`. // // When you specify multiple IP addresses and IP address blocks, `OR` logic is applied. // // * `IPv4` example: if you add two IP addresses `1.2.3.4` and `10.20.30.40`, the condition is matched for any requests that arrive from either address `1.2.3.4` or `10.20.30.40`. // * `IPv6` example: if you add two IP addresses `1:2:3:4:5:6:7:8` and `10:20:30:40:50:60:70:80`, the condition is matched for any requests that arrive from either address `1:2:3:4:5:6:7:8` or `10:20:30:40:50:60:70:80`. // // *** // // ## Action Server Variables // // Rule Set server variables provide access to structured information about the request. You can use server variables to dynamically change the request/response headers or URL rewrite paths/query strings, for example, when a new page load or when a form is posted. // // ### Supported Action Server Variables // // | Variable name | Description | // |---------------|-------------| // | `socketIp` | The IP address of the direct connection to Front Door Profiles edge. If the client used an HTTP proxy or a load balancer to send the request, the value of `socketIp` is the IP address of the proxy or load balancer. | // | `clientIp` | The IP address of the client that made the original request. If there was an `X-Forwarded-For` header in the request, then the client IP address is picked from the header. | // | `clientPort` | The IP port of the client that made the request. | // | `hostname` | The host name in the request from the client. | // | `geoCountry` | Indicates the requester's country/region of origin through its country/region code. | // | `httpMethod` | The method used to make the URL request, such as `GET` or `POST`. | // | `httpVersion` | The request protocol. Usually `HTTP/1.0`, `HTTP/1.1`, or `HTTP/2.0`. | // | `queryString` | The list of variable/value pairs that follows the "?" in the requested URL. For example, in the request `http://contoso.com:8080/article.aspx?id=123&title=fabrikam`, the `queryString` value will be `id=123&title=fabrikam`. | // | `requestScheme` | The request scheme: `http` or `https`. | // | `requestUri` | The full original request URI (with arguments). For example, in the request `http://contoso.com:8080/article.aspx?id=123&title=fabrikam`, the `requestUri` value will be `/article.aspx?id=123&title=fabrikam`. | // | `sslProtocol` | The protocol of an established TLS connection. | // | `serverPort` | The port of the server that accepted a request. | // | `urlPath` | Identifies the specific resource in the host that the web client wants to access. This is the part of the request URI without the arguments. For example, in the request `http://contoso.com:8080/article.aspx?id=123&title=fabrikam`, the `uriPath` value will be `/article.aspx`. | // // ### Action Server Variable Format // // Server variables can be specified using the following formats: // // * `{variable}` - Include the entire server variable. For example, if the client IP address is `111.222.333.444` then the `{client_ip}` token would evaluate to `111.222.333.444`. // // * `{variable:offset}` - Include the server variable after a specific offset, until the end of the variable. The offset is zero-based. For example, if the client IP address is `111.222.333.444` then the `{client_ip:3}` token would evaluate to `.222.333.444`. // // * `{variable:offset:length}` - Include the server variable after a specific offset, up to the specified length. The offset is zero-based. For example, if the client IP address is `111.222.333.444` then the `{client_ip:4:3}` token would evaluate to `222`. // // ### Action Server Variables Support // // Action Server variables are supported on the following actions: // // * `routeConfigurationOverrideAction` // * `requestHeaderAction` // * `responseHeaderAction` // * `urlRedirectAction` // * `urlRewriteAction` // // *** // // ## Condition Operator list // // For rules that accept values from the standard operator list, the following operators are valid: // // | Operator | Description | Condition Value | // |----------------------------|-------------|-----------------| // | Any |Matches when there is any value, regardless of what it is. | Any | // | Equal | Matches when the value exactly matches the specified string. | Equal | // | Contains | Matches when the value contains the specified string. | Contains | // | Less Than | Matches when the length of the value is less than the specified integer. | LessThan | // | Greater Than | Matches when the length of the value is greater than the specified integer. | GreaterThan | // | Less Than or Equal | Matches when the length of the value is less than or equal to the specified integer. | LessThanOrEqual | // | Greater Than or Equal | Matches when the length of the value is greater than or equal to the specified integer. | GreaterThanOrEqual | // | Begins With | Matches when the value begins with the specified string. | BeginsWith | // | Ends With | Matches when the value ends with the specified string. | EndsWith | // | RegEx | Matches when the value matches the specified regular expression. See `Condition Regular Expressions` below for more details. | RegEx | // | Wildcard | Matches when the request path matches a wildcard expression. See `Condition Wildcard Expression` below for more details. | Wildcard | // | Not Any | Matches when there is no value. | Any and negateCondition = true | // | Not Equal | Matches when the value does not match the specified string. | Equal and negateCondition : true | // | Not Contains | Matches when the value does not contain the specified string. | Contains and negateCondition = true | // | Not Less Than | Matches when the length of the value is not less than the specified integer. | LessThan and negateCondition = true | // | Not Greater Than | Matches when the length of the value is not greater than the specified integer. | GreaterThan and negateCondition = true | // | Not Less Than or Equal | Matches when the length of the value is not less than or equal to the specified integer. | LessThanOrEqual and negateCondition = true | // | Not Greater Than or Equals | Matches when the length of the value is not greater than or equal to the specified integer. | GreaterThanOrEqual and negateCondition = true | // | Not Begins With | Matches when the value does not begin with the specified string. | BeginsWith and negateCondition = true | // | Not Ends With | Matches when the value does not end with the specified string. | EndsWith and negateCondition = true | // | Not RegEx | Matches when the value does not match the specified regular expression. See `Condition Regular Expressions` for more details. | RegEx and negateCondition = true | // | Not Wildcard | Matches when the request path does not match a wildcard expression. See `Condition Wildcard Expression` below for more details. | Wildcard and negateCondition = true | // // *** // // ## Condition Regular Expressions // // Regular expressions **don't** support the following operations: // // * Backreferences and capturing subexpressions. // * Arbitrary zero-width assertions. // * Subroutine references and recursive patterns. // * Conditional patterns. // * Backtracking control verbs. // * The `\C` single-byte directive. // * The `\R` newline match directive. // * The `\K` start of match reset directive. // * Callouts and embedded code. // * Atomic grouping and possessive quantifiers. // // ## Condition Wildcard Expression // // A wildcard expression can include the * character to match zero or more characters within the path. For example, the wildcard expression `files/customer*/file.pdf` matches the paths `files/customer1/file.pdf`, `files/customer109/file.pdf`, and `files/customer/file.pdf`, but doesn't match `files/customer2/anotherfile.pdf`. // // *** // // ## Condition Transform List // // For rules that can transform strings, the following transforms are valid: // // | Transform | Description | // |-------------|-------------| // | Lowercase | Converts the string to the lowercase representation. | // | Uppercase | Converts the string to the uppercase representation. | // | Trim | Trims leading and trailing whitespace from the string. | // | RemoveNulls | Removes null values from the string. | // | URLEncode | URL-encodes the string. | // | URLDecode | URL-decodes the string. | // // *** // // ## API Providers // // <!-- This section is generated, changes will be overwritten --> // This resource uses the following Azure API Providers: // // * `Microsoft.Cdn` - 2024-09-01 // // ## Import // // Front Door Rules can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:cdn/frontdoorRule:FrontdoorRule example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/Microsoft.Cdn/profiles/profile1/ruleSets/ruleSet1/rules/rule1 // ``` type FrontdoorRule struct { pulumi.CustomResourceState // An `actions` block as defined below. Actions FrontdoorRuleActionsOutput `pulumi:"actions"` // If this rule is a match should the rules engine continue processing the remaining rules or stop? Possible values are `Continue` and `Stop`. Defaults to `Continue`. BehaviorOnMatch pulumi.StringPtrOutput `pulumi:"behaviorOnMatch"` // The resource ID of the Front Door Rule Set for this Front Door Rule. Changing this forces a new Front Door Rule to be created. CdnFrontdoorRuleSetId pulumi.StringOutput `pulumi:"cdnFrontdoorRuleSetId"` // The name of the Front Door Rule Set containing this Front Door Rule. CdnFrontdoorRuleSetName pulumi.StringOutput `pulumi:"cdnFrontdoorRuleSetName"` // A `conditions` block as defined below. Conditions FrontdoorRuleConditionsPtrOutput `pulumi:"conditions"` // The name which should be used for this Front Door Rule. Possible values must be between 1 and 260 characters in length, begin with a letter and may contain only letters and numbers. Changing this forces a new Front Door Rule to be created. Name pulumi.StringOutput `pulumi:"name"` // The order in which the rules will be applied for the Front Door Endpoint. The order value should be sequential and begin at `1`(e.g. `1`, `2`, `3`...). A Front Door Rule with a lesser order value will be applied before a rule with a greater order value. // // > **Note:** If the Front Door Rule has an order value of `0` they do not require any conditions and the actions will always be applied. Order pulumi.IntOutput `pulumi:"order"` } // NewFrontdoorRule registers a new resource with the given unique name, arguments, and options. func NewFrontdoorRule(ctx *pulumi.Context, name string, args *FrontdoorRuleArgs, opts ...pulumi.ResourceOption) (*FrontdoorRule, 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.CdnFrontdoorRuleSetId == nil { return nil, errors.New("invalid value for required argument 'CdnFrontdoorRuleSetId'") } if args.Order == nil { return nil, errors.New("invalid value for required argument 'Order'") } opts = internal.PkgResourceDefaultOpts(opts) var resource FrontdoorRule err := ctx.RegisterResource("azure:cdn/frontdoorRule:FrontdoorRule", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetFrontdoorRule gets an existing FrontdoorRule 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 GetFrontdoorRule(ctx *pulumi.Context, name string, id pulumi.IDInput, state *FrontdoorRuleState, opts ...pulumi.ResourceOption) (*FrontdoorRule, error) { var resource FrontdoorRule err := ctx.ReadResource("azure:cdn/frontdoorRule:FrontdoorRule", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering FrontdoorRule resources. type frontdoorRuleState struct { // An `actions` block as defined below. Actions *FrontdoorRuleActions `pulumi:"actions"` // If this rule is a match should the rules engine continue processing the remaining rules or stop? Possible values are `Continue` and `Stop`. Defaults to `Continue`. BehaviorOnMatch *string `pulumi:"behaviorOnMatch"` // The resource ID of the Front Door Rule Set for this Front Door Rule. Changing this forces a new Front Door Rule to be created. CdnFrontdoorRuleSetId *string `pulumi:"cdnFrontdoorRuleSetId"` // The name of the Front Door Rule Set containing this Front Door Rule. CdnFrontdoorRuleSetName *string `pulumi:"cdnFrontdoorRuleSetName"` // A `conditions` block as defined below. Conditions *FrontdoorRuleConditions `pulumi:"conditions"` // The name which should be used for this Front Door Rule. Possible values must be between 1 and 260 characters in length, begin with a letter and may contain only letters and numbers. Changing this forces a new Front Door Rule to be created. Name *string `pulumi:"name"` // The order in which the rules will be applied for the Front Door Endpoint. The order value should be sequential and begin at `1`(e.g. `1`, `2`, `3`...). A Front Door Rule with a lesser order value will be applied before a rule with a greater order value. // // > **Note:** If the Front Door Rule has an order value of `0` they do not require any conditions and the actions will always be applied. Order *int `pulumi:"order"` } type FrontdoorRuleState struct { // An `actions` block as defined below. Actions FrontdoorRuleActionsPtrInput // If this rule is a match should the rules engine continue processing the remaining rules or stop? Possible values are `Continue` and `Stop`. Defaults to `Continue`. BehaviorOnMatch pulumi.StringPtrInput // The resource ID of the Front Door Rule Set for this Front Door Rule. Changing this forces a new Front Door Rule to be created. CdnFrontdoorRuleSetId pulumi.StringPtrInput // The name of the Front Door Rule Set containing this Front Door Rule. CdnFrontdoorRuleSetName pulumi.StringPtrInput // A `conditions` block as defined below. Conditions FrontdoorRuleConditionsPtrInput // The name which should be used for this Front Door Rule. Possible values must be between 1 and 260 characters in length, begin with a letter and may contain only letters and numbers. Changing this forces a new Front Door Rule to be created. Name pulumi.StringPtrInput // The order in which the rules will be applied for the Front Door Endpoint. The order value should be sequential and begin at `1`(e.g. `1`, `2`, `3`...). A Front Door Rule with a lesser order value will be applied before a rule with a greater order value. // // > **Note:** If the Front Door Rule has an order value of `0` they do not require any conditions and the actions will always be applied. Order pulumi.IntPtrInput } func (FrontdoorRuleState) ElementType() reflect.Type { return reflect.TypeOf((*frontdoorRuleState)(nil)).Elem() } type frontdoorRuleArgs struct { // An `actions` block as defined below. Actions FrontdoorRuleActions `pulumi:"actions"` // If this rule is a match should the rules engine continue processing the remaining rules or stop? Possible values are `Continue` and `Stop`. Defaults to `Continue`. BehaviorOnMatch *string `pulumi:"behaviorOnMatch"` // The resource ID of the Front Door Rule Set for this Front Door Rule. Changing this forces a new Front Door Rule to be created. CdnFrontdoorRuleSetId string `pulumi:"cdnFrontdoorRuleSetId"` // A `conditions` block as defined below. Conditions *FrontdoorRuleConditions `pulumi:"conditions"` // The name which should be used for this Front Door Rule. Possible values must be between 1 and 260 characters in length, begin with a letter and may contain only letters and numbers. Changing this forces a new Front Door Rule to be created. Name *string `pulumi:"name"` // The order in which the rules will be applied for the Front Door Endpoint. The order value should be sequential and begin at `1`(e.g. `1`, `2`, `3`...). A Front Door Rule with a lesser order value will be applied before a rule with a greater order value. // // > **Note:** If the Front Door Rule has an order value of `0` they do not require any conditions and the actions will always be applied. Order int `pulumi:"order"` } // The set of arguments for constructing a FrontdoorRule resource. type FrontdoorRuleArgs struct { // An `actions` block as defined below. Actions FrontdoorRuleActionsInput // If this rule is a match should the rules engine continue processing the remaining rules or stop? Possible values are `Continue` and `Stop`. Defaults to `Continue`. BehaviorOnMatch pulumi.StringPtrInput // The resource ID of the Front Door Rule Set for this Front Door Rule. Changing this forces a new Front Door Rule to be created. CdnFrontdoorRuleSetId pulumi.StringInput // A `conditions` block as defined below. Conditions FrontdoorRuleConditionsPtrInput // The name which should be used for this Front Door Rule. Possible values must be between 1 and 260 characters in length, begin with a letter and may contain only letters and numbers. Changing this forces a new Front Door Rule to be created. Name pulumi.StringPtrInput // The order in which the rules will be applied for the Front Door Endpoint. The order value should be sequential and begin at `1`(e.g. `1`, `2`, `3`...). A Front Door Rule with a lesser order value will be applied before a rule with a greater order value. // // > **Note:** If the Front Door Rule has an order value of `0` they do not require any conditions and the actions will always be applied. Order pulumi.IntInput } func (FrontdoorRuleArgs) ElementType() reflect.Type { return reflect.TypeOf((*frontdoorRuleArgs)(nil)).Elem() } type FrontdoorRuleInput interface { pulumi.Input ToFrontdoorRuleOutput() FrontdoorRuleOutput ToFrontdoorRuleOutputWithContext(ctx context.Context) FrontdoorRuleOutput } func (*FrontdoorRule) ElementType() reflect.Type { return reflect.TypeOf((**FrontdoorRule)(nil)).Elem() } func (i *FrontdoorRule) ToFrontdoorRuleOutput() FrontdoorRuleOutput { return i.ToFrontdoorRuleOutputWithContext(context.Background()) } func (i *FrontdoorRule) ToFrontdoorRuleOutputWithContext(ctx context.Context) FrontdoorRuleOutput { return pulumi.ToOutputWithContext(ctx, i).(FrontdoorRuleOutput) } // FrontdoorRuleArrayInput is an input type that accepts FrontdoorRuleArray and FrontdoorRuleArrayOutput values. // You can construct a concrete instance of `FrontdoorRuleArrayInput` via: // // FrontdoorRuleArray{ FrontdoorRuleArgs{...} } type FrontdoorRuleArrayInput interface { pulumi.Input ToFrontdoorRuleArrayOutput() FrontdoorRuleArrayOutput ToFrontdoorRuleArrayOutputWithContext(context.Context) FrontdoorRuleArrayOutput } type FrontdoorRuleArray []FrontdoorRuleInput func (FrontdoorRuleArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*FrontdoorRule)(nil)).Elem() } func (i FrontdoorRuleArray) ToFrontdoorRuleArrayOutput() FrontdoorRuleArrayOutput { return i.ToFrontdoorRuleArrayOutputWithContext(context.Background()) } func (i FrontdoorRuleArray) ToFrontdoorRuleArrayOutputWithContext(ctx context.Context) FrontdoorRuleArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(FrontdoorRuleArrayOutput) } // FrontdoorRuleMapInput is an input type that accepts FrontdoorRuleMap and FrontdoorRuleMapOutput values. // You can construct a concrete instance of `FrontdoorRuleMapInput` via: // // FrontdoorRuleMap{ "key": FrontdoorRuleArgs{...} } type FrontdoorRuleMapInput interface { pulumi.Input ToFrontdoorRuleMapOutput() FrontdoorRuleMapOutput ToFrontdoorRuleMapOutputWithContext(context.Context) FrontdoorRuleMapOutput } type FrontdoorRuleMap map[string]FrontdoorRuleInput func (FrontdoorRuleMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*FrontdoorRule)(nil)).Elem() } func (i FrontdoorRuleMap) ToFrontdoorRuleMapOutput() FrontdoorRuleMapOutput { return i.ToFrontdoorRuleMapOutputWithContext(context.Background()) } func (i FrontdoorRuleMap) ToFrontdoorRuleMapOutputWithContext(ctx context.Context) FrontdoorRuleMapOutput { return pulumi.ToOutputWithContext(ctx, i).(FrontdoorRuleMapOutput) } type FrontdoorRuleOutput struct{ *pulumi.OutputState } func (FrontdoorRuleOutput) ElementType() reflect.Type { return reflect.TypeOf((**FrontdoorRule)(nil)).Elem() } func (o FrontdoorRuleOutput) ToFrontdoorRuleOutput() FrontdoorRuleOutput { return o } func (o FrontdoorRuleOutput) ToFrontdoorRuleOutputWithContext(ctx context.Context) FrontdoorRuleOutput { return o } // An `actions` block as defined below. func (o FrontdoorRuleOutput) Actions() FrontdoorRuleActionsOutput { return o.ApplyT(func(v *FrontdoorRule) FrontdoorRuleActionsOutput { return v.Actions }).(FrontdoorRuleActionsOutput) } // If this rule is a match should the rules engine continue processing the remaining rules or stop? Possible values are `Continue` and `Stop`. Defaults to `Continue`. func (o FrontdoorRuleOutput) BehaviorOnMatch() pulumi.StringPtrOutput { return o.ApplyT(func(v *FrontdoorRule) pulumi.StringPtrOutput { return v.BehaviorOnMatch }).(pulumi.StringPtrOutput) } // The resource ID of the Front Door Rule Set for this Front Door Rule. Changing this forces a new Front Door Rule to be created. func (o FrontdoorRuleOutput) CdnFrontdoorRuleSetId() pulumi.StringOutput { return o.ApplyT(func(v *FrontdoorRule) pulumi.StringOutput { return v.CdnFrontdoorRuleSetId }).(pulumi.StringOutput) } // The name of the Front Door Rule Set containing this Front Door Rule. func (o FrontdoorRuleOutput) CdnFrontdoorRuleSetName() pulumi.StringOutput { return o.ApplyT(func(v *FrontdoorRule) pulumi.StringOutput { return v.CdnFrontdoorRuleSetName }).(pulumi.StringOutput) } // A `conditions` block as defined below. func (o FrontdoorRuleOutput) Conditions() FrontdoorRuleConditionsPtrOutput { return o.ApplyT(func(v *FrontdoorRule) FrontdoorRuleConditionsPtrOutput { return v.Conditions }).(FrontdoorRuleConditionsPtrOutput) } // The name which should be used for this Front Door Rule. Possible values must be between 1 and 260 characters in length, begin with a letter and may contain only letters and numbers. Changing this forces a new Front Door Rule to be created. func (o FrontdoorRuleOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *FrontdoorRule) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // The order in which the rules will be applied for the Front Door Endpoint. The order value should be sequential and begin at `1`(e.g. `1`, `2`, `3`...). A Front Door Rule with a lesser order value will be applied before a rule with a greater order value. // // > **Note:** If the Front Door Rule has an order value of `0` they do not require any conditions and the actions will always be applied. func (o FrontdoorRuleOutput) Order() pulumi.IntOutput { return o.ApplyT(func(v *FrontdoorRule) pulumi.IntOutput { return v.Order }).(pulumi.IntOutput) } type FrontdoorRuleArrayOutput struct{ *pulumi.OutputState } func (FrontdoorRuleArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*FrontdoorRule)(nil)).Elem() } func (o FrontdoorRuleArrayOutput) ToFrontdoorRuleArrayOutput() FrontdoorRuleArrayOutput { return o } func (o FrontdoorRuleArrayOutput) ToFrontdoorRuleArrayOutputWithContext(ctx context.Context) FrontdoorRuleArrayOutput { return o } func (o FrontdoorRuleArrayOutput) Index(i pulumi.IntInput) FrontdoorRuleOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *FrontdoorRule { return vs[0].([]*FrontdoorRule)[vs[1].(int)] }).(FrontdoorRuleOutput) } type FrontdoorRuleMapOutput struct{ *pulumi.OutputState } func (FrontdoorRuleMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*FrontdoorRule)(nil)).Elem() } func (o FrontdoorRuleMapOutput) ToFrontdoorRuleMapOutput() FrontdoorRuleMapOutput { return o } func (o FrontdoorRuleMapOutput) ToFrontdoorRuleMapOutputWithContext(ctx context.Context) FrontdoorRuleMapOutput { return o }
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/cdn/frontdoorSecurityPolicy.go
sdk/go/azure/cdn/frontdoorSecurityPolicy.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 cdn import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a Front Door (standard/premium) Security Policy. // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/cdn" // "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-cdn-frontdoor"), // Location: pulumi.String("West Europe"), // }) // if err != nil { // return err // } // exampleFrontdoorProfile, err := cdn.NewFrontdoorProfile(ctx, "example", &cdn.FrontdoorProfileArgs{ // Name: pulumi.String("example-profile"), // ResourceGroupName: example.Name, // SkuName: pulumi.String("Standard_AzureFrontDoor"), // }) // if err != nil { // return err // } // exampleFrontdoorFirewallPolicy, err := cdn.NewFrontdoorFirewallPolicy(ctx, "example", &cdn.FrontdoorFirewallPolicyArgs{ // Name: pulumi.String("exampleWAF"), // ResourceGroupName: example.Name, // SkuName: exampleFrontdoorProfile.SkuName, // Enabled: pulumi.Bool(true), // Mode: pulumi.String("Prevention"), // RedirectUrl: pulumi.String("https://www.contoso.com"), // CustomBlockResponseStatusCode: pulumi.Int(403), // CustomBlockResponseBody: pulumi.String("PGh0bWw+CjxoZWFkZXI+PHRpdGxlPkhlbGxvPC90aXRsZT48L2hlYWRlcj4KPGJvZHk+CkhlbGxvIHdvcmxkCjwvYm9keT4KPC9odG1sPg=="), // CustomRules: cdn.FrontdoorFirewallPolicyCustomRuleArray{ // &cdn.FrontdoorFirewallPolicyCustomRuleArgs{ // Name: pulumi.String("Rule1"), // Enabled: pulumi.Bool(true), // Priority: pulumi.Int(1), // RateLimitDurationInMinutes: pulumi.Int(1), // RateLimitThreshold: pulumi.Int(10), // Type: pulumi.String("MatchRule"), // Action: pulumi.String("Block"), // MatchConditions: cdn.FrontdoorFirewallPolicyCustomRuleMatchConditionArray{ // &cdn.FrontdoorFirewallPolicyCustomRuleMatchConditionArgs{ // MatchVariable: pulumi.String("RemoteAddr"), // Operator: pulumi.String("IPMatch"), // NegationCondition: pulumi.Bool(false), // MatchValues: pulumi.StringArray{ // pulumi.String("192.168.1.0/24"), // pulumi.String("10.0.1.0/24"), // }, // }, // }, // }, // }, // }) // if err != nil { // return err // } // exampleZone, err := dns.NewZone(ctx, "example", &dns.ZoneArgs{ // Name: pulumi.String("sub-domain.domain.com"), // ResourceGroupName: example.Name, // }) // if err != nil { // return err // } // exampleFrontdoorCustomDomain, err := cdn.NewFrontdoorCustomDomain(ctx, "example", &cdn.FrontdoorCustomDomainArgs{ // Name: pulumi.String("example-customDomain"), // CdnFrontdoorProfileId: exampleFrontdoorProfile.ID(), // DnsZoneId: exampleZone.ID(), // HostName: pulumi.String("contoso.fabrikam.com"), // Tls: &cdn.FrontdoorCustomDomainTlsArgs{ // CertificateType: pulumi.String("ManagedCertificate"), // MinimumTlsVersion: pulumi.String("TLS12"), // }, // }) // if err != nil { // return err // } // _, err = cdn.NewFrontdoorSecurityPolicy(ctx, "example", &cdn.FrontdoorSecurityPolicyArgs{ // Name: pulumi.String("Example-Security-Policy"), // CdnFrontdoorProfileId: exampleFrontdoorProfile.ID(), // SecurityPolicies: &cdn.FrontdoorSecurityPolicySecurityPoliciesArgs{ // Firewall: &cdn.FrontdoorSecurityPolicySecurityPoliciesFirewallArgs{ // CdnFrontdoorFirewallPolicyId: exampleFrontdoorFirewallPolicy.ID(), // Association: &cdn.FrontdoorSecurityPolicySecurityPoliciesFirewallAssociationArgs{ // Domains: cdn.FrontdoorSecurityPolicySecurityPoliciesFirewallAssociationDomainArray{ // &cdn.FrontdoorSecurityPolicySecurityPoliciesFirewallAssociationDomainArgs{ // CdnFrontdoorDomainId: exampleFrontdoorCustomDomain.ID(), // }, // }, // PatternsToMatch: pulumi.String("/*"), // }, // }, // }, // }) // 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.Cdn` - 2024-02-01 // // ## Import // // Front Door Security Policies can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:cdn/frontdoorSecurityPolicy:FrontdoorSecurityPolicy example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/Microsoft.Cdn/profiles/profile1/securityPolicies/policy1 // ``` type FrontdoorSecurityPolicy struct { pulumi.CustomResourceState // The Front Door Profile Resource Id that is linked to this Front Door Security Policy. Changing this forces a new Front Door Security Policy to be created. CdnFrontdoorProfileId pulumi.StringOutput `pulumi:"cdnFrontdoorProfileId"` // The name which should be used for this Front Door Security Policy. Possible values must not be an empty string. Changing this forces a new Front Door Security Policy to be created. Name pulumi.StringOutput `pulumi:"name"` // An `securityPolicies` block as defined below. SecurityPolicies FrontdoorSecurityPolicySecurityPoliciesOutput `pulumi:"securityPolicies"` } // NewFrontdoorSecurityPolicy registers a new resource with the given unique name, arguments, and options. func NewFrontdoorSecurityPolicy(ctx *pulumi.Context, name string, args *FrontdoorSecurityPolicyArgs, opts ...pulumi.ResourceOption) (*FrontdoorSecurityPolicy, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.CdnFrontdoorProfileId == nil { return nil, errors.New("invalid value for required argument 'CdnFrontdoorProfileId'") } if args.SecurityPolicies == nil { return nil, errors.New("invalid value for required argument 'SecurityPolicies'") } opts = internal.PkgResourceDefaultOpts(opts) var resource FrontdoorSecurityPolicy err := ctx.RegisterResource("azure:cdn/frontdoorSecurityPolicy:FrontdoorSecurityPolicy", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetFrontdoorSecurityPolicy gets an existing FrontdoorSecurityPolicy 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 GetFrontdoorSecurityPolicy(ctx *pulumi.Context, name string, id pulumi.IDInput, state *FrontdoorSecurityPolicyState, opts ...pulumi.ResourceOption) (*FrontdoorSecurityPolicy, error) { var resource FrontdoorSecurityPolicy err := ctx.ReadResource("azure:cdn/frontdoorSecurityPolicy:FrontdoorSecurityPolicy", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering FrontdoorSecurityPolicy resources. type frontdoorSecurityPolicyState struct { // The Front Door Profile Resource Id that is linked to this Front Door Security Policy. Changing this forces a new Front Door Security Policy to be created. CdnFrontdoorProfileId *string `pulumi:"cdnFrontdoorProfileId"` // The name which should be used for this Front Door Security Policy. Possible values must not be an empty string. Changing this forces a new Front Door Security Policy to be created. Name *string `pulumi:"name"` // An `securityPolicies` block as defined below. SecurityPolicies *FrontdoorSecurityPolicySecurityPolicies `pulumi:"securityPolicies"` } type FrontdoorSecurityPolicyState struct { // The Front Door Profile Resource Id that is linked to this Front Door Security Policy. Changing this forces a new Front Door Security Policy to be created. CdnFrontdoorProfileId pulumi.StringPtrInput // The name which should be used for this Front Door Security Policy. Possible values must not be an empty string. Changing this forces a new Front Door Security Policy to be created. Name pulumi.StringPtrInput // An `securityPolicies` block as defined below. SecurityPolicies FrontdoorSecurityPolicySecurityPoliciesPtrInput } func (FrontdoorSecurityPolicyState) ElementType() reflect.Type { return reflect.TypeOf((*frontdoorSecurityPolicyState)(nil)).Elem() } type frontdoorSecurityPolicyArgs struct { // The Front Door Profile Resource Id that is linked to this Front Door Security Policy. Changing this forces a new Front Door Security Policy to be created. CdnFrontdoorProfileId string `pulumi:"cdnFrontdoorProfileId"` // The name which should be used for this Front Door Security Policy. Possible values must not be an empty string. Changing this forces a new Front Door Security Policy to be created. Name *string `pulumi:"name"` // An `securityPolicies` block as defined below. SecurityPolicies FrontdoorSecurityPolicySecurityPolicies `pulumi:"securityPolicies"` } // The set of arguments for constructing a FrontdoorSecurityPolicy resource. type FrontdoorSecurityPolicyArgs struct { // The Front Door Profile Resource Id that is linked to this Front Door Security Policy. Changing this forces a new Front Door Security Policy to be created. CdnFrontdoorProfileId pulumi.StringInput // The name which should be used for this Front Door Security Policy. Possible values must not be an empty string. Changing this forces a new Front Door Security Policy to be created. Name pulumi.StringPtrInput // An `securityPolicies` block as defined below. SecurityPolicies FrontdoorSecurityPolicySecurityPoliciesInput } func (FrontdoorSecurityPolicyArgs) ElementType() reflect.Type { return reflect.TypeOf((*frontdoorSecurityPolicyArgs)(nil)).Elem() } type FrontdoorSecurityPolicyInput interface { pulumi.Input ToFrontdoorSecurityPolicyOutput() FrontdoorSecurityPolicyOutput ToFrontdoorSecurityPolicyOutputWithContext(ctx context.Context) FrontdoorSecurityPolicyOutput } func (*FrontdoorSecurityPolicy) ElementType() reflect.Type { return reflect.TypeOf((**FrontdoorSecurityPolicy)(nil)).Elem() } func (i *FrontdoorSecurityPolicy) ToFrontdoorSecurityPolicyOutput() FrontdoorSecurityPolicyOutput { return i.ToFrontdoorSecurityPolicyOutputWithContext(context.Background()) } func (i *FrontdoorSecurityPolicy) ToFrontdoorSecurityPolicyOutputWithContext(ctx context.Context) FrontdoorSecurityPolicyOutput { return pulumi.ToOutputWithContext(ctx, i).(FrontdoorSecurityPolicyOutput) } // FrontdoorSecurityPolicyArrayInput is an input type that accepts FrontdoorSecurityPolicyArray and FrontdoorSecurityPolicyArrayOutput values. // You can construct a concrete instance of `FrontdoorSecurityPolicyArrayInput` via: // // FrontdoorSecurityPolicyArray{ FrontdoorSecurityPolicyArgs{...} } type FrontdoorSecurityPolicyArrayInput interface { pulumi.Input ToFrontdoorSecurityPolicyArrayOutput() FrontdoorSecurityPolicyArrayOutput ToFrontdoorSecurityPolicyArrayOutputWithContext(context.Context) FrontdoorSecurityPolicyArrayOutput } type FrontdoorSecurityPolicyArray []FrontdoorSecurityPolicyInput func (FrontdoorSecurityPolicyArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*FrontdoorSecurityPolicy)(nil)).Elem() } func (i FrontdoorSecurityPolicyArray) ToFrontdoorSecurityPolicyArrayOutput() FrontdoorSecurityPolicyArrayOutput { return i.ToFrontdoorSecurityPolicyArrayOutputWithContext(context.Background()) } func (i FrontdoorSecurityPolicyArray) ToFrontdoorSecurityPolicyArrayOutputWithContext(ctx context.Context) FrontdoorSecurityPolicyArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(FrontdoorSecurityPolicyArrayOutput) } // FrontdoorSecurityPolicyMapInput is an input type that accepts FrontdoorSecurityPolicyMap and FrontdoorSecurityPolicyMapOutput values. // You can construct a concrete instance of `FrontdoorSecurityPolicyMapInput` via: // // FrontdoorSecurityPolicyMap{ "key": FrontdoorSecurityPolicyArgs{...} } type FrontdoorSecurityPolicyMapInput interface { pulumi.Input ToFrontdoorSecurityPolicyMapOutput() FrontdoorSecurityPolicyMapOutput ToFrontdoorSecurityPolicyMapOutputWithContext(context.Context) FrontdoorSecurityPolicyMapOutput } type FrontdoorSecurityPolicyMap map[string]FrontdoorSecurityPolicyInput func (FrontdoorSecurityPolicyMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*FrontdoorSecurityPolicy)(nil)).Elem() } func (i FrontdoorSecurityPolicyMap) ToFrontdoorSecurityPolicyMapOutput() FrontdoorSecurityPolicyMapOutput { return i.ToFrontdoorSecurityPolicyMapOutputWithContext(context.Background()) } func (i FrontdoorSecurityPolicyMap) ToFrontdoorSecurityPolicyMapOutputWithContext(ctx context.Context) FrontdoorSecurityPolicyMapOutput { return pulumi.ToOutputWithContext(ctx, i).(FrontdoorSecurityPolicyMapOutput) } type FrontdoorSecurityPolicyOutput struct{ *pulumi.OutputState } func (FrontdoorSecurityPolicyOutput) ElementType() reflect.Type { return reflect.TypeOf((**FrontdoorSecurityPolicy)(nil)).Elem() } func (o FrontdoorSecurityPolicyOutput) ToFrontdoorSecurityPolicyOutput() FrontdoorSecurityPolicyOutput { return o } func (o FrontdoorSecurityPolicyOutput) ToFrontdoorSecurityPolicyOutputWithContext(ctx context.Context) FrontdoorSecurityPolicyOutput { return o } // The Front Door Profile Resource Id that is linked to this Front Door Security Policy. Changing this forces a new Front Door Security Policy to be created. func (o FrontdoorSecurityPolicyOutput) CdnFrontdoorProfileId() pulumi.StringOutput { return o.ApplyT(func(v *FrontdoorSecurityPolicy) pulumi.StringOutput { return v.CdnFrontdoorProfileId }).(pulumi.StringOutput) } // The name which should be used for this Front Door Security Policy. Possible values must not be an empty string. Changing this forces a new Front Door Security Policy to be created. func (o FrontdoorSecurityPolicyOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *FrontdoorSecurityPolicy) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // An `securityPolicies` block as defined below. func (o FrontdoorSecurityPolicyOutput) SecurityPolicies() FrontdoorSecurityPolicySecurityPoliciesOutput { return o.ApplyT(func(v *FrontdoorSecurityPolicy) FrontdoorSecurityPolicySecurityPoliciesOutput { return v.SecurityPolicies }).(FrontdoorSecurityPolicySecurityPoliciesOutput) } type FrontdoorSecurityPolicyArrayOutput struct{ *pulumi.OutputState } func (FrontdoorSecurityPolicyArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*FrontdoorSecurityPolicy)(nil)).Elem() } func (o FrontdoorSecurityPolicyArrayOutput) ToFrontdoorSecurityPolicyArrayOutput() FrontdoorSecurityPolicyArrayOutput { return o } func (o FrontdoorSecurityPolicyArrayOutput) ToFrontdoorSecurityPolicyArrayOutputWithContext(ctx context.Context) FrontdoorSecurityPolicyArrayOutput { return o } func (o FrontdoorSecurityPolicyArrayOutput) Index(i pulumi.IntInput) FrontdoorSecurityPolicyOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *FrontdoorSecurityPolicy { return vs[0].([]*FrontdoorSecurityPolicy)[vs[1].(int)] }).(FrontdoorSecurityPolicyOutput) } type FrontdoorSecurityPolicyMapOutput struct{ *pulumi.OutputState } func (FrontdoorSecurityPolicyMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*FrontdoorSecurityPolicy)(nil)).Elem() } func (o FrontdoorSecurityPolicyMapOutput) ToFrontdoorSecurityPolicyMapOutput() FrontdoorSecurityPolicyMapOutput { return o } func (o FrontdoorSecurityPolicyMapOutput) ToFrontdoorSecurityPolicyMapOutputWithContext(ctx context.Context) FrontdoorSecurityPolicyMapOutput { return o } func (o FrontdoorSecurityPolicyMapOutput) MapIndex(k pulumi.StringInput) FrontdoorSecurityPolicyOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *FrontdoorSecurityPolicy { return vs[0].(map[string]*FrontdoorSecurityPolicy)[vs[1].(string)] }).(FrontdoorSecurityPolicyOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*FrontdoorSecurityPolicyInput)(nil)).Elem(), &FrontdoorSecurityPolicy{}) pulumi.RegisterInputType(reflect.TypeOf((*FrontdoorSecurityPolicyArrayInput)(nil)).Elem(), FrontdoorSecurityPolicyArray{}) pulumi.RegisterInputType(reflect.TypeOf((*FrontdoorSecurityPolicyMapInput)(nil)).Elem(), FrontdoorSecurityPolicyMap{}) pulumi.RegisterOutputType(FrontdoorSecurityPolicyOutput{}) pulumi.RegisterOutputType(FrontdoorSecurityPolicyArrayOutput{}) pulumi.RegisterOutputType(FrontdoorSecurityPolicyMapOutput{}) }
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/cdn/getFrontdoorEndpoint.go
sdk/go/azure/cdn/getFrontdoorEndpoint.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 cdn 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 Front Door (standard/premium) Endpoint. // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/cdn" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { // _, err := cdn.LookupFrontdoorEndpoint(ctx, &cdn.LookupFrontdoorEndpointArgs{ // Name: "existing-endpoint", // ProfileName: "existing-cdn-profile", // ResourceGroupName: "existing-resources", // }, nil) // if err != nil { // return err // } // return nil // }) // } // // ``` func LookupFrontdoorEndpoint(ctx *pulumi.Context, args *LookupFrontdoorEndpointArgs, opts ...pulumi.InvokeOption) (*LookupFrontdoorEndpointResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupFrontdoorEndpointResult err := ctx.Invoke("azure:cdn/getFrontdoorEndpoint:getFrontdoorEndpoint", args, &rv, opts...) if err != nil { return nil, err } return &rv, nil } // A collection of arguments for invoking getFrontdoorEndpoint. type LookupFrontdoorEndpointArgs struct { // Specifies the name of the Front Door Endpoint. Name string `pulumi:"name"` // The name of the Front Door Profile within which Front Door Endpoint exists. ProfileName string `pulumi:"profileName"` // The name of the Resource Group where the Front Door Profile exists. ResourceGroupName string `pulumi:"resourceGroupName"` } // A collection of values returned by getFrontdoorEndpoint. type LookupFrontdoorEndpointResult struct { // Specifies whether this Front Door Endpoint is enabled or not. Enabled bool `pulumi:"enabled"` // Specifies the host name of the Front Door Endpoint, in the format `{endpointName}.{dnsZone}` (for example, `contoso.azureedge.net`). HostName string `pulumi:"hostName"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` Name string `pulumi:"name"` ProfileName string `pulumi:"profileName"` ResourceGroupName string `pulumi:"resourceGroupName"` // Specifies a mapping of Tags assigned to this Front Door Endpoint. Tags map[string]string `pulumi:"tags"` } func LookupFrontdoorEndpointOutput(ctx *pulumi.Context, args LookupFrontdoorEndpointOutputArgs, opts ...pulumi.InvokeOption) LookupFrontdoorEndpointResultOutput { return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupFrontdoorEndpointResultOutput, error) { args := v.(LookupFrontdoorEndpointArgs) options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} return ctx.InvokeOutput("azure:cdn/getFrontdoorEndpoint:getFrontdoorEndpoint", args, LookupFrontdoorEndpointResultOutput{}, options).(LookupFrontdoorEndpointResultOutput), nil }).(LookupFrontdoorEndpointResultOutput) } // A collection of arguments for invoking getFrontdoorEndpoint. type LookupFrontdoorEndpointOutputArgs struct { // Specifies the name of the Front Door Endpoint. Name pulumi.StringInput `pulumi:"name"` // The name of the Front Door Profile within which Front Door Endpoint exists. ProfileName pulumi.StringInput `pulumi:"profileName"` // The name of the Resource Group where the Front Door Profile exists. ResourceGroupName pulumi.StringInput `pulumi:"resourceGroupName"` } func (LookupFrontdoorEndpointOutputArgs) ElementType() reflect.Type { return reflect.TypeOf((*LookupFrontdoorEndpointArgs)(nil)).Elem() } // A collection of values returned by getFrontdoorEndpoint. type LookupFrontdoorEndpointResultOutput struct{ *pulumi.OutputState } func (LookupFrontdoorEndpointResultOutput) ElementType() reflect.Type { return reflect.TypeOf((*LookupFrontdoorEndpointResult)(nil)).Elem() } func (o LookupFrontdoorEndpointResultOutput) ToLookupFrontdoorEndpointResultOutput() LookupFrontdoorEndpointResultOutput { return o } func (o LookupFrontdoorEndpointResultOutput) ToLookupFrontdoorEndpointResultOutputWithContext(ctx context.Context) LookupFrontdoorEndpointResultOutput { return o } // Specifies whether this Front Door Endpoint is enabled or not. func (o LookupFrontdoorEndpointResultOutput) Enabled() pulumi.BoolOutput { return o.ApplyT(func(v LookupFrontdoorEndpointResult) bool { return v.Enabled }).(pulumi.BoolOutput) } // Specifies the host name of the Front Door Endpoint, in the format `{endpointName}.{dnsZone}` (for example, `contoso.azureedge.net`). func (o LookupFrontdoorEndpointResultOutput) HostName() pulumi.StringOutput { return o.ApplyT(func(v LookupFrontdoorEndpointResult) string { return v.HostName }).(pulumi.StringOutput) } // The provider-assigned unique ID for this managed resource. func (o LookupFrontdoorEndpointResultOutput) Id() pulumi.StringOutput { return o.ApplyT(func(v LookupFrontdoorEndpointResult) string { return v.Id }).(pulumi.StringOutput) } func (o LookupFrontdoorEndpointResultOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v LookupFrontdoorEndpointResult) string { return v.Name }).(pulumi.StringOutput) } func (o LookupFrontdoorEndpointResultOutput) ProfileName() pulumi.StringOutput { return o.ApplyT(func(v LookupFrontdoorEndpointResult) string { return v.ProfileName }).(pulumi.StringOutput) } func (o LookupFrontdoorEndpointResultOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v LookupFrontdoorEndpointResult) string { return v.ResourceGroupName }).(pulumi.StringOutput) } // Specifies a mapping of Tags assigned to this Front Door Endpoint. func (o LookupFrontdoorEndpointResultOutput) Tags() pulumi.StringMapOutput { return o.ApplyT(func(v LookupFrontdoorEndpointResult) map[string]string { return v.Tags }).(pulumi.StringMapOutput) } func init() { pulumi.RegisterOutputType(LookupFrontdoorEndpointResultOutput{}) }
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/cdn/frontdoorProfile.go
sdk/go/azure/cdn/frontdoorProfile.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 cdn import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a Front Door (standard/premium) Profile which contains a collection of endpoints and origin groups. // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/authorization" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/cdn" // "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 // } // exampleUserAssignedIdentity, err := authorization.NewUserAssignedIdentity(ctx, "example", &authorization.UserAssignedIdentityArgs{ // Location: example.Location, // Name: pulumi.String("example-identity"), // ResourceGroupName: example.Name, // }) // if err != nil { // return err // } // _, err = cdn.NewFrontdoorProfile(ctx, "example", &cdn.FrontdoorProfileArgs{ // Name: pulumi.String("example-cdn-profile"), // ResourceGroupName: example.Name, // SkuName: pulumi.String("Premium_AzureFrontDoor"), // ResponseTimeoutSeconds: pulumi.Int(120), // Identity: &cdn.FrontdoorProfileIdentityArgs{ // Type: pulumi.String("SystemAssigned, UserAssigned"), // IdentityIds: pulumi.StringArray{ // exampleUserAssignedIdentity.ID(), // }, // }, // LogScrubbingRules: cdn.FrontdoorProfileLogScrubbingRuleArray{ // &cdn.FrontdoorProfileLogScrubbingRuleArgs{ // MatchVariable: pulumi.String("RequestIPAddress"), // }, // }, // 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.Cdn` - 2024-02-01 // // ## Import // // Front Door Profiles can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:cdn/frontdoorProfile:FrontdoorProfile example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Cdn/profiles/myprofile1 // ``` type FrontdoorProfile struct { pulumi.CustomResourceState // An `identity` block as defined below. Identity FrontdoorProfileIdentityPtrOutput `pulumi:"identity"` // One or more `logScrubbingRule` blocks as defined below. // // > **Note:** When no `logScrubbingRule` blocks are defined, log scrubbing will be automatically `disabled`. When one or more `logScrubbingRule` blocks are present, log scrubbing will be `enabled`. LogScrubbingRules FrontdoorProfileLogScrubbingRuleArrayOutput `pulumi:"logScrubbingRules"` // Specifies the name of the Front Door Profile. Changing this forces a new resource to be created. Name pulumi.StringOutput `pulumi:"name"` // The name of the Resource Group where this Front Door Profile should exist. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // The UUID of this Front Door Profile which will be sent in the HTTP Header as the `X-Azure-FDID` attribute. ResourceGuid pulumi.StringOutput `pulumi:"resourceGuid"` // Specifies the maximum response timeout in seconds. Possible values are between `16` and `240` seconds (inclusive). Defaults to `120` seconds. ResponseTimeoutSeconds pulumi.IntPtrOutput `pulumi:"responseTimeoutSeconds"` // Specifies the SKU for this Front Door Profile. Possible values include `Standard_AzureFrontDoor` and `Premium_AzureFrontDoor`. Changing this forces a new resource to be created. SkuName pulumi.StringOutput `pulumi:"skuName"` // Specifies a mapping of tags to assign to the resource. Tags pulumi.StringMapOutput `pulumi:"tags"` } // NewFrontdoorProfile registers a new resource with the given unique name, arguments, and options. func NewFrontdoorProfile(ctx *pulumi.Context, name string, args *FrontdoorProfileArgs, opts ...pulumi.ResourceOption) (*FrontdoorProfile, 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.SkuName == nil { return nil, errors.New("invalid value for required argument 'SkuName'") } opts = internal.PkgResourceDefaultOpts(opts) var resource FrontdoorProfile err := ctx.RegisterResource("azure:cdn/frontdoorProfile:FrontdoorProfile", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetFrontdoorProfile gets an existing FrontdoorProfile 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 GetFrontdoorProfile(ctx *pulumi.Context, name string, id pulumi.IDInput, state *FrontdoorProfileState, opts ...pulumi.ResourceOption) (*FrontdoorProfile, error) { var resource FrontdoorProfile err := ctx.ReadResource("azure:cdn/frontdoorProfile:FrontdoorProfile", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering FrontdoorProfile resources. type frontdoorProfileState struct { // An `identity` block as defined below. Identity *FrontdoorProfileIdentity `pulumi:"identity"` // One or more `logScrubbingRule` blocks as defined below. // // > **Note:** When no `logScrubbingRule` blocks are defined, log scrubbing will be automatically `disabled`. When one or more `logScrubbingRule` blocks are present, log scrubbing will be `enabled`. LogScrubbingRules []FrontdoorProfileLogScrubbingRule `pulumi:"logScrubbingRules"` // Specifies the name of the Front Door Profile. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // The name of the Resource Group where this Front Door Profile should exist. Changing this forces a new resource to be created. ResourceGroupName *string `pulumi:"resourceGroupName"` // The UUID of this Front Door Profile which will be sent in the HTTP Header as the `X-Azure-FDID` attribute. ResourceGuid *string `pulumi:"resourceGuid"` // Specifies the maximum response timeout in seconds. Possible values are between `16` and `240` seconds (inclusive). Defaults to `120` seconds. ResponseTimeoutSeconds *int `pulumi:"responseTimeoutSeconds"` // Specifies the SKU for this Front Door Profile. Possible values include `Standard_AzureFrontDoor` and `Premium_AzureFrontDoor`. Changing this forces a new resource to be created. SkuName *string `pulumi:"skuName"` // Specifies a mapping of tags to assign to the resource. Tags map[string]string `pulumi:"tags"` } type FrontdoorProfileState struct { // An `identity` block as defined below. Identity FrontdoorProfileIdentityPtrInput // One or more `logScrubbingRule` blocks as defined below. // // > **Note:** When no `logScrubbingRule` blocks are defined, log scrubbing will be automatically `disabled`. When one or more `logScrubbingRule` blocks are present, log scrubbing will be `enabled`. LogScrubbingRules FrontdoorProfileLogScrubbingRuleArrayInput // Specifies the name of the Front Door Profile. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // The name of the Resource Group where this Front Door Profile should exist. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringPtrInput // The UUID of this Front Door Profile which will be sent in the HTTP Header as the `X-Azure-FDID` attribute. ResourceGuid pulumi.StringPtrInput // Specifies the maximum response timeout in seconds. Possible values are between `16` and `240` seconds (inclusive). Defaults to `120` seconds. ResponseTimeoutSeconds pulumi.IntPtrInput // Specifies the SKU for this Front Door Profile. Possible values include `Standard_AzureFrontDoor` and `Premium_AzureFrontDoor`. Changing this forces a new resource to be created. SkuName pulumi.StringPtrInput // Specifies a mapping of tags to assign to the resource. Tags pulumi.StringMapInput } func (FrontdoorProfileState) ElementType() reflect.Type { return reflect.TypeOf((*frontdoorProfileState)(nil)).Elem() } type frontdoorProfileArgs struct { // An `identity` block as defined below. Identity *FrontdoorProfileIdentity `pulumi:"identity"` // One or more `logScrubbingRule` blocks as defined below. // // > **Note:** When no `logScrubbingRule` blocks are defined, log scrubbing will be automatically `disabled`. When one or more `logScrubbingRule` blocks are present, log scrubbing will be `enabled`. LogScrubbingRules []FrontdoorProfileLogScrubbingRule `pulumi:"logScrubbingRules"` // Specifies the name of the Front Door Profile. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // The name of the Resource Group where this Front Door Profile should exist. Changing this forces a new resource to be created. ResourceGroupName string `pulumi:"resourceGroupName"` // Specifies the maximum response timeout in seconds. Possible values are between `16` and `240` seconds (inclusive). Defaults to `120` seconds. ResponseTimeoutSeconds *int `pulumi:"responseTimeoutSeconds"` // Specifies the SKU for this Front Door Profile. Possible values include `Standard_AzureFrontDoor` and `Premium_AzureFrontDoor`. Changing this forces a new resource to be created. SkuName string `pulumi:"skuName"` // Specifies a mapping of tags to assign to the resource. Tags map[string]string `pulumi:"tags"` } // The set of arguments for constructing a FrontdoorProfile resource. type FrontdoorProfileArgs struct { // An `identity` block as defined below. Identity FrontdoorProfileIdentityPtrInput // One or more `logScrubbingRule` blocks as defined below. // // > **Note:** When no `logScrubbingRule` blocks are defined, log scrubbing will be automatically `disabled`. When one or more `logScrubbingRule` blocks are present, log scrubbing will be `enabled`. LogScrubbingRules FrontdoorProfileLogScrubbingRuleArrayInput // Specifies the name of the Front Door Profile. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // The name of the Resource Group where this Front Door Profile should exist. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringInput // Specifies the maximum response timeout in seconds. Possible values are between `16` and `240` seconds (inclusive). Defaults to `120` seconds. ResponseTimeoutSeconds pulumi.IntPtrInput // Specifies the SKU for this Front Door Profile. Possible values include `Standard_AzureFrontDoor` and `Premium_AzureFrontDoor`. Changing this forces a new resource to be created. SkuName pulumi.StringInput // Specifies a mapping of tags to assign to the resource. Tags pulumi.StringMapInput } func (FrontdoorProfileArgs) ElementType() reflect.Type { return reflect.TypeOf((*frontdoorProfileArgs)(nil)).Elem() } type FrontdoorProfileInput interface { pulumi.Input ToFrontdoorProfileOutput() FrontdoorProfileOutput ToFrontdoorProfileOutputWithContext(ctx context.Context) FrontdoorProfileOutput } func (*FrontdoorProfile) ElementType() reflect.Type { return reflect.TypeOf((**FrontdoorProfile)(nil)).Elem() } func (i *FrontdoorProfile) ToFrontdoorProfileOutput() FrontdoorProfileOutput { return i.ToFrontdoorProfileOutputWithContext(context.Background()) } func (i *FrontdoorProfile) ToFrontdoorProfileOutputWithContext(ctx context.Context) FrontdoorProfileOutput { return pulumi.ToOutputWithContext(ctx, i).(FrontdoorProfileOutput) } // FrontdoorProfileArrayInput is an input type that accepts FrontdoorProfileArray and FrontdoorProfileArrayOutput values. // You can construct a concrete instance of `FrontdoorProfileArrayInput` via: // // FrontdoorProfileArray{ FrontdoorProfileArgs{...} } type FrontdoorProfileArrayInput interface { pulumi.Input ToFrontdoorProfileArrayOutput() FrontdoorProfileArrayOutput ToFrontdoorProfileArrayOutputWithContext(context.Context) FrontdoorProfileArrayOutput } type FrontdoorProfileArray []FrontdoorProfileInput func (FrontdoorProfileArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*FrontdoorProfile)(nil)).Elem() } func (i FrontdoorProfileArray) ToFrontdoorProfileArrayOutput() FrontdoorProfileArrayOutput { return i.ToFrontdoorProfileArrayOutputWithContext(context.Background()) } func (i FrontdoorProfileArray) ToFrontdoorProfileArrayOutputWithContext(ctx context.Context) FrontdoorProfileArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(FrontdoorProfileArrayOutput) } // FrontdoorProfileMapInput is an input type that accepts FrontdoorProfileMap and FrontdoorProfileMapOutput values. // You can construct a concrete instance of `FrontdoorProfileMapInput` via: // // FrontdoorProfileMap{ "key": FrontdoorProfileArgs{...} } type FrontdoorProfileMapInput interface { pulumi.Input ToFrontdoorProfileMapOutput() FrontdoorProfileMapOutput ToFrontdoorProfileMapOutputWithContext(context.Context) FrontdoorProfileMapOutput } type FrontdoorProfileMap map[string]FrontdoorProfileInput func (FrontdoorProfileMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*FrontdoorProfile)(nil)).Elem() } func (i FrontdoorProfileMap) ToFrontdoorProfileMapOutput() FrontdoorProfileMapOutput { return i.ToFrontdoorProfileMapOutputWithContext(context.Background()) } func (i FrontdoorProfileMap) ToFrontdoorProfileMapOutputWithContext(ctx context.Context) FrontdoorProfileMapOutput { return pulumi.ToOutputWithContext(ctx, i).(FrontdoorProfileMapOutput) } type FrontdoorProfileOutput struct{ *pulumi.OutputState } func (FrontdoorProfileOutput) ElementType() reflect.Type { return reflect.TypeOf((**FrontdoorProfile)(nil)).Elem() } func (o FrontdoorProfileOutput) ToFrontdoorProfileOutput() FrontdoorProfileOutput { return o } func (o FrontdoorProfileOutput) ToFrontdoorProfileOutputWithContext(ctx context.Context) FrontdoorProfileOutput { return o } // An `identity` block as defined below. func (o FrontdoorProfileOutput) Identity() FrontdoorProfileIdentityPtrOutput { return o.ApplyT(func(v *FrontdoorProfile) FrontdoorProfileIdentityPtrOutput { return v.Identity }).(FrontdoorProfileIdentityPtrOutput) } // One or more `logScrubbingRule` blocks as defined below. // // > **Note:** When no `logScrubbingRule` blocks are defined, log scrubbing will be automatically `disabled`. When one or more `logScrubbingRule` blocks are present, log scrubbing will be `enabled`. func (o FrontdoorProfileOutput) LogScrubbingRules() FrontdoorProfileLogScrubbingRuleArrayOutput { return o.ApplyT(func(v *FrontdoorProfile) FrontdoorProfileLogScrubbingRuleArrayOutput { return v.LogScrubbingRules }).(FrontdoorProfileLogScrubbingRuleArrayOutput) } // Specifies the name of the Front Door Profile. Changing this forces a new resource to be created. func (o FrontdoorProfileOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *FrontdoorProfile) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // The name of the Resource Group where this Front Door Profile should exist. Changing this forces a new resource to be created. func (o FrontdoorProfileOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v *FrontdoorProfile) pulumi.StringOutput { return v.ResourceGroupName }).(pulumi.StringOutput) } // The UUID of this Front Door Profile which will be sent in the HTTP Header as the `X-Azure-FDID` attribute. func (o FrontdoorProfileOutput) ResourceGuid() pulumi.StringOutput { return o.ApplyT(func(v *FrontdoorProfile) pulumi.StringOutput { return v.ResourceGuid }).(pulumi.StringOutput) } // Specifies the maximum response timeout in seconds. Possible values are between `16` and `240` seconds (inclusive). Defaults to `120` seconds. func (o FrontdoorProfileOutput) ResponseTimeoutSeconds() pulumi.IntPtrOutput { return o.ApplyT(func(v *FrontdoorProfile) pulumi.IntPtrOutput { return v.ResponseTimeoutSeconds }).(pulumi.IntPtrOutput) } // Specifies the SKU for this Front Door Profile. Possible values include `Standard_AzureFrontDoor` and `Premium_AzureFrontDoor`. Changing this forces a new resource to be created. func (o FrontdoorProfileOutput) SkuName() pulumi.StringOutput { return o.ApplyT(func(v *FrontdoorProfile) pulumi.StringOutput { return v.SkuName }).(pulumi.StringOutput) } // Specifies a mapping of tags to assign to the resource. func (o FrontdoorProfileOutput) Tags() pulumi.StringMapOutput { return o.ApplyT(func(v *FrontdoorProfile) pulumi.StringMapOutput { return v.Tags }).(pulumi.StringMapOutput) } type FrontdoorProfileArrayOutput struct{ *pulumi.OutputState } func (FrontdoorProfileArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*FrontdoorProfile)(nil)).Elem() } func (o FrontdoorProfileArrayOutput) ToFrontdoorProfileArrayOutput() FrontdoorProfileArrayOutput { return o } func (o FrontdoorProfileArrayOutput) ToFrontdoorProfileArrayOutputWithContext(ctx context.Context) FrontdoorProfileArrayOutput { return o } func (o FrontdoorProfileArrayOutput) Index(i pulumi.IntInput) FrontdoorProfileOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *FrontdoorProfile { return vs[0].([]*FrontdoorProfile)[vs[1].(int)] }).(FrontdoorProfileOutput) } type FrontdoorProfileMapOutput struct{ *pulumi.OutputState } func (FrontdoorProfileMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*FrontdoorProfile)(nil)).Elem() } func (o FrontdoorProfileMapOutput) ToFrontdoorProfileMapOutput() FrontdoorProfileMapOutput { return o } func (o FrontdoorProfileMapOutput) ToFrontdoorProfileMapOutputWithContext(ctx context.Context) FrontdoorProfileMapOutput { return o } func (o FrontdoorProfileMapOutput) MapIndex(k pulumi.StringInput) FrontdoorProfileOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *FrontdoorProfile { return vs[0].(map[string]*FrontdoorProfile)[vs[1].(string)] }).(FrontdoorProfileOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*FrontdoorProfileInput)(nil)).Elem(), &FrontdoorProfile{}) pulumi.RegisterInputType(reflect.TypeOf((*FrontdoorProfileArrayInput)(nil)).Elem(), FrontdoorProfileArray{}) pulumi.RegisterInputType(reflect.TypeOf((*FrontdoorProfileMapInput)(nil)).Elem(), FrontdoorProfileMap{}) pulumi.RegisterOutputType(FrontdoorProfileOutput{}) pulumi.RegisterOutputType(FrontdoorProfileArrayOutput{}) pulumi.RegisterOutputType(FrontdoorProfileMapOutput{}) }
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/cdn/frontdoorRoute.go
sdk/go/azure/cdn/frontdoorRoute.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 cdn import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a Front Door (standard/premium) Route. // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/cdn" // "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 { // example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{ // Name: pulumi.String("example-cdn-frontdoor"), // Location: pulumi.String("West Europe"), // }) // if err != nil { // return err // } // exampleZone, err := dns.NewZone(ctx, "example", &dns.ZoneArgs{ // Name: pulumi.String("example.com"), // ResourceGroupName: example.Name, // }) // if err != nil { // return err // } // exampleFrontdoorProfile, err := cdn.NewFrontdoorProfile(ctx, "example", &cdn.FrontdoorProfileArgs{ // Name: pulumi.String("example-profile"), // ResourceGroupName: example.Name, // SkuName: pulumi.String("Standard_AzureFrontDoor"), // }) // if err != nil { // return err // } // exampleFrontdoorOriginGroup, err := cdn.NewFrontdoorOriginGroup(ctx, "example", &cdn.FrontdoorOriginGroupArgs{ // Name: pulumi.String("example-originGroup"), // CdnFrontdoorProfileId: exampleFrontdoorProfile.ID(), // LoadBalancing: &cdn.FrontdoorOriginGroupLoadBalancingArgs{ // AdditionalLatencyInMilliseconds: pulumi.Int(0), // SampleSize: pulumi.Int(16), // SuccessfulSamplesRequired: pulumi.Int(3), // }, // }) // if err != nil { // return err // } // exampleFrontdoorOrigin, err := cdn.NewFrontdoorOrigin(ctx, "example", &cdn.FrontdoorOriginArgs{ // Name: pulumi.String("example-origin"), // CdnFrontdoorOriginGroupId: exampleFrontdoorOriginGroup.ID(), // Enabled: pulumi.Bool(true), // CertificateNameCheckEnabled: pulumi.Bool(false), // HostName: pulumi.String("contoso.com"), // HttpPort: pulumi.Int(80), // HttpsPort: pulumi.Int(443), // OriginHostHeader: pulumi.String("www.contoso.com"), // Priority: pulumi.Int(1), // Weight: pulumi.Int(1), // }) // if err != nil { // return err // } // exampleFrontdoorEndpoint, err := cdn.NewFrontdoorEndpoint(ctx, "example", &cdn.FrontdoorEndpointArgs{ // Name: pulumi.String("example-endpoint"), // CdnFrontdoorProfileId: exampleFrontdoorProfile.ID(), // }) // if err != nil { // return err // } // exampleFrontdoorRuleSet, err := cdn.NewFrontdoorRuleSet(ctx, "example", &cdn.FrontdoorRuleSetArgs{ // Name: pulumi.String("ExampleRuleSet"), // CdnFrontdoorProfileId: exampleFrontdoorProfile.ID(), // }) // if err != nil { // return err // } // contoso, err := cdn.NewFrontdoorCustomDomain(ctx, "contoso", &cdn.FrontdoorCustomDomainArgs{ // Name: pulumi.String("contoso-custom-domain"), // CdnFrontdoorProfileId: exampleFrontdoorProfile.ID(), // DnsZoneId: exampleZone.ID(), // HostName: pulumi.String(std.JoinOutput(ctx, std.JoinOutputArgs{ // Separator: pulumi.String("."), // Input: pulumi.StringArray{ // pulumi.String("contoso"), // exampleZone.Name, // }, // }, nil).ApplyT(func(invoke std.JoinResult) (*string, error) { // return invoke.Result, nil // }).(pulumi.StringPtrOutput)), // Tls: &cdn.FrontdoorCustomDomainTlsArgs{ // CertificateType: pulumi.String("ManagedCertificate"), // MinimumTlsVersion: pulumi.String("TLS12"), // }, // }) // if err != nil { // return err // } // fabrikam, err := cdn.NewFrontdoorCustomDomain(ctx, "fabrikam", &cdn.FrontdoorCustomDomainArgs{ // Name: pulumi.String("fabrikam-custom-domain"), // CdnFrontdoorProfileId: exampleFrontdoorProfile.ID(), // DnsZoneId: exampleZone.ID(), // HostName: pulumi.String(std.JoinOutput(ctx, std.JoinOutputArgs{ // Separator: pulumi.String("."), // Input: pulumi.StringArray{ // pulumi.String("fabrikam"), // exampleZone.Name, // }, // }, nil).ApplyT(func(invoke std.JoinResult) (*string, error) { // return invoke.Result, nil // }).(pulumi.StringPtrOutput)), // Tls: &cdn.FrontdoorCustomDomainTlsArgs{ // CertificateType: pulumi.String("ManagedCertificate"), // MinimumTlsVersion: pulumi.String("TLS12"), // }, // }) // if err != nil { // return err // } // exampleFrontdoorRoute, err := cdn.NewFrontdoorRoute(ctx, "example", &cdn.FrontdoorRouteArgs{ // Name: pulumi.String("example-route"), // CdnFrontdoorEndpointId: exampleFrontdoorEndpoint.ID(), // CdnFrontdoorOriginGroupId: exampleFrontdoorOriginGroup.ID(), // CdnFrontdoorOriginIds: pulumi.StringArray{ // exampleFrontdoorOrigin.ID(), // }, // CdnFrontdoorRuleSetIds: pulumi.StringArray{ // exampleFrontdoorRuleSet.ID(), // }, // Enabled: pulumi.Bool(true), // ForwardingProtocol: pulumi.String("HttpsOnly"), // HttpsRedirectEnabled: pulumi.Bool(true), // PatternsToMatches: pulumi.StringArray{ // pulumi.String("/*"), // }, // SupportedProtocols: pulumi.StringArray{ // pulumi.String("Http"), // pulumi.String("Https"), // }, // CdnFrontdoorCustomDomainIds: pulumi.StringArray{ // contoso.ID(), // fabrikam.ID(), // }, // LinkToDefaultDomain: pulumi.Bool(false), // Cache: &cdn.FrontdoorRouteCacheArgs{ // QueryStringCachingBehavior: pulumi.String("IgnoreSpecifiedQueryStrings"), // QueryStrings: pulumi.StringArray{ // pulumi.String("account"), // pulumi.String("settings"), // }, // CompressionEnabled: pulumi.Bool(true), // ContentTypesToCompresses: pulumi.StringArray{ // pulumi.String("text/html"), // pulumi.String("text/javascript"), // pulumi.String("text/xml"), // }, // }, // }) // if err != nil { // return err // } // _, err = cdn.NewFrontdoorCustomDomainAssociation(ctx, "contoso", &cdn.FrontdoorCustomDomainAssociationArgs{ // CdnFrontdoorCustomDomainId: contoso.ID(), // CdnFrontdoorRouteIds: pulumi.StringArray{ // exampleFrontdoorRoute.ID(), // }, // }) // if err != nil { // return err // } // _, err = cdn.NewFrontdoorCustomDomainAssociation(ctx, "fabrikam", &cdn.FrontdoorCustomDomainAssociationArgs{ // CdnFrontdoorCustomDomainId: fabrikam.ID(), // CdnFrontdoorRouteIds: pulumi.StringArray{ // exampleFrontdoorRoute.ID(), // }, // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## Import // // Front Door Routes can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:cdn/frontdoorRoute:FrontdoorRoute example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/Microsoft.Cdn/profiles/profile1/afdEndpoints/endpoint1/routes/route1 // ``` type FrontdoorRoute struct { pulumi.CustomResourceState // A `cache` block as defined below. // // > **Note:** To disable caching, do not provide the `cache` block in the configuration file. Cache FrontdoorRouteCachePtrOutput `pulumi:"cache"` // The IDs of the Front Door Custom Domains which are associated with this Front Door Route. CdnFrontdoorCustomDomainIds pulumi.StringArrayOutput `pulumi:"cdnFrontdoorCustomDomainIds"` // The resource ID of the Front Door Endpoint where this Front Door Route should exist. Changing this forces a new Front Door Route to be created. CdnFrontdoorEndpointId pulumi.StringOutput `pulumi:"cdnFrontdoorEndpointId"` // The resource ID of the Front Door Origin Group where this Front Door Route should be created. CdnFrontdoorOriginGroupId pulumi.StringOutput `pulumi:"cdnFrontdoorOriginGroupId"` // One or more Front Door Origin resource IDs that this Front Door Route will link to. CdnFrontdoorOriginIds pulumi.StringArrayOutput `pulumi:"cdnFrontdoorOriginIds"` // A directory path on the Front Door Origin that can be used to retrieve content (e.g. `contoso.cloudapp.net/originpath`). CdnFrontdoorOriginPath pulumi.StringPtrOutput `pulumi:"cdnFrontdoorOriginPath"` // A list of the Front Door Rule Set IDs which should be assigned to this Front Door Route. CdnFrontdoorRuleSetIds pulumi.StringArrayOutput `pulumi:"cdnFrontdoorRuleSetIds"` // Is this Front Door Route enabled? Possible values are `true` or `false`. Defaults to `true`. Enabled pulumi.BoolPtrOutput `pulumi:"enabled"` // The Protocol that will be use when forwarding traffic to backends. Possible values are `HttpOnly`, `HttpsOnly` or `MatchRequest`. Defaults to `MatchRequest`. ForwardingProtocol pulumi.StringPtrOutput `pulumi:"forwardingProtocol"` // Automatically redirect HTTP traffic to HTTPS traffic? Possible values are `true` or `false`. Defaults to `true`. // // > **Note:** The `httpsRedirectEnabled` rule is the first rule that will be executed. HttpsRedirectEnabled pulumi.BoolPtrOutput `pulumi:"httpsRedirectEnabled"` // Should this Front Door Route be linked to the default endpoint? Possible values include `true` or `false`. Defaults to `true`. LinkToDefaultDomain pulumi.BoolPtrOutput `pulumi:"linkToDefaultDomain"` // The name which should be used for this Front Door Route. Valid values must begin with a letter or number, end with a letter or number and may only contain letters, numbers and hyphens with a maximum length of 90 characters. Changing this forces a new Front Door Route to be created. Name pulumi.StringOutput `pulumi:"name"` // The route patterns of the rule. PatternsToMatches pulumi.StringArrayOutput `pulumi:"patternsToMatches"` // One or more Protocols supported by this Front Door Route. Possible values are `Http` or `Https`. // // > **Note:** If `httpsRedirectEnabled` is set to `true` the `supportedProtocols` field must contain both `Http` and `Https` values. SupportedProtocols pulumi.StringArrayOutput `pulumi:"supportedProtocols"` } // NewFrontdoorRoute registers a new resource with the given unique name, arguments, and options. func NewFrontdoorRoute(ctx *pulumi.Context, name string, args *FrontdoorRouteArgs, opts ...pulumi.ResourceOption) (*FrontdoorRoute, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.CdnFrontdoorEndpointId == nil { return nil, errors.New("invalid value for required argument 'CdnFrontdoorEndpointId'") } if args.CdnFrontdoorOriginGroupId == nil { return nil, errors.New("invalid value for required argument 'CdnFrontdoorOriginGroupId'") } if args.CdnFrontdoorOriginIds == nil { return nil, errors.New("invalid value for required argument 'CdnFrontdoorOriginIds'") } if args.PatternsToMatches == nil { return nil, errors.New("invalid value for required argument 'PatternsToMatches'") } if args.SupportedProtocols == nil { return nil, errors.New("invalid value for required argument 'SupportedProtocols'") } opts = internal.PkgResourceDefaultOpts(opts) var resource FrontdoorRoute err := ctx.RegisterResource("azure:cdn/frontdoorRoute:FrontdoorRoute", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetFrontdoorRoute gets an existing FrontdoorRoute 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 GetFrontdoorRoute(ctx *pulumi.Context, name string, id pulumi.IDInput, state *FrontdoorRouteState, opts ...pulumi.ResourceOption) (*FrontdoorRoute, error) { var resource FrontdoorRoute err := ctx.ReadResource("azure:cdn/frontdoorRoute:FrontdoorRoute", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering FrontdoorRoute resources. type frontdoorRouteState struct { // A `cache` block as defined below. // // > **Note:** To disable caching, do not provide the `cache` block in the configuration file. Cache *FrontdoorRouteCache `pulumi:"cache"` // The IDs of the Front Door Custom Domains which are associated with this Front Door Route. CdnFrontdoorCustomDomainIds []string `pulumi:"cdnFrontdoorCustomDomainIds"` // The resource ID of the Front Door Endpoint where this Front Door Route should exist. Changing this forces a new Front Door Route to be created. CdnFrontdoorEndpointId *string `pulumi:"cdnFrontdoorEndpointId"` // The resource ID of the Front Door Origin Group where this Front Door Route should be created. CdnFrontdoorOriginGroupId *string `pulumi:"cdnFrontdoorOriginGroupId"` // One or more Front Door Origin resource IDs that this Front Door Route will link to. CdnFrontdoorOriginIds []string `pulumi:"cdnFrontdoorOriginIds"` // A directory path on the Front Door Origin that can be used to retrieve content (e.g. `contoso.cloudapp.net/originpath`). CdnFrontdoorOriginPath *string `pulumi:"cdnFrontdoorOriginPath"` // A list of the Front Door Rule Set IDs which should be assigned to this Front Door Route. CdnFrontdoorRuleSetIds []string `pulumi:"cdnFrontdoorRuleSetIds"` // Is this Front Door Route enabled? Possible values are `true` or `false`. Defaults to `true`. Enabled *bool `pulumi:"enabled"` // The Protocol that will be use when forwarding traffic to backends. Possible values are `HttpOnly`, `HttpsOnly` or `MatchRequest`. Defaults to `MatchRequest`. ForwardingProtocol *string `pulumi:"forwardingProtocol"` // Automatically redirect HTTP traffic to HTTPS traffic? Possible values are `true` or `false`. Defaults to `true`. // // > **Note:** The `httpsRedirectEnabled` rule is the first rule that will be executed. HttpsRedirectEnabled *bool `pulumi:"httpsRedirectEnabled"` // Should this Front Door Route be linked to the default endpoint? Possible values include `true` or `false`. Defaults to `true`. LinkToDefaultDomain *bool `pulumi:"linkToDefaultDomain"` // The name which should be used for this Front Door Route. Valid values must begin with a letter or number, end with a letter or number and may only contain letters, numbers and hyphens with a maximum length of 90 characters. Changing this forces a new Front Door Route to be created. Name *string `pulumi:"name"` // The route patterns of the rule. PatternsToMatches []string `pulumi:"patternsToMatches"` // One or more Protocols supported by this Front Door Route. Possible values are `Http` or `Https`. // // > **Note:** If `httpsRedirectEnabled` is set to `true` the `supportedProtocols` field must contain both `Http` and `Https` values. SupportedProtocols []string `pulumi:"supportedProtocols"` } type FrontdoorRouteState struct { // A `cache` block as defined below. // // > **Note:** To disable caching, do not provide the `cache` block in the configuration file. Cache FrontdoorRouteCachePtrInput // The IDs of the Front Door Custom Domains which are associated with this Front Door Route. CdnFrontdoorCustomDomainIds pulumi.StringArrayInput // The resource ID of the Front Door Endpoint where this Front Door Route should exist. Changing this forces a new Front Door Route to be created. CdnFrontdoorEndpointId pulumi.StringPtrInput // The resource ID of the Front Door Origin Group where this Front Door Route should be created. CdnFrontdoorOriginGroupId pulumi.StringPtrInput // One or more Front Door Origin resource IDs that this Front Door Route will link to. CdnFrontdoorOriginIds pulumi.StringArrayInput // A directory path on the Front Door Origin that can be used to retrieve content (e.g. `contoso.cloudapp.net/originpath`). CdnFrontdoorOriginPath pulumi.StringPtrInput // A list of the Front Door Rule Set IDs which should be assigned to this Front Door Route. CdnFrontdoorRuleSetIds pulumi.StringArrayInput // Is this Front Door Route enabled? Possible values are `true` or `false`. Defaults to `true`. Enabled pulumi.BoolPtrInput // The Protocol that will be use when forwarding traffic to backends. Possible values are `HttpOnly`, `HttpsOnly` or `MatchRequest`. Defaults to `MatchRequest`. ForwardingProtocol pulumi.StringPtrInput // Automatically redirect HTTP traffic to HTTPS traffic? Possible values are `true` or `false`. Defaults to `true`. // // > **Note:** The `httpsRedirectEnabled` rule is the first rule that will be executed. HttpsRedirectEnabled pulumi.BoolPtrInput // Should this Front Door Route be linked to the default endpoint? Possible values include `true` or `false`. Defaults to `true`. LinkToDefaultDomain pulumi.BoolPtrInput // The name which should be used for this Front Door Route. Valid values must begin with a letter or number, end with a letter or number and may only contain letters, numbers and hyphens with a maximum length of 90 characters. Changing this forces a new Front Door Route to be created. Name pulumi.StringPtrInput // The route patterns of the rule. PatternsToMatches pulumi.StringArrayInput // One or more Protocols supported by this Front Door Route. Possible values are `Http` or `Https`. // // > **Note:** If `httpsRedirectEnabled` is set to `true` the `supportedProtocols` field must contain both `Http` and `Https` values. SupportedProtocols pulumi.StringArrayInput } func (FrontdoorRouteState) ElementType() reflect.Type { return reflect.TypeOf((*frontdoorRouteState)(nil)).Elem() } type frontdoorRouteArgs struct { // A `cache` block as defined below. // // > **Note:** To disable caching, do not provide the `cache` block in the configuration file. Cache *FrontdoorRouteCache `pulumi:"cache"` // The IDs of the Front Door Custom Domains which are associated with this Front Door Route. CdnFrontdoorCustomDomainIds []string `pulumi:"cdnFrontdoorCustomDomainIds"` // The resource ID of the Front Door Endpoint where this Front Door Route should exist. Changing this forces a new Front Door Route to be created. CdnFrontdoorEndpointId string `pulumi:"cdnFrontdoorEndpointId"` // The resource ID of the Front Door Origin Group where this Front Door Route should be created. CdnFrontdoorOriginGroupId string `pulumi:"cdnFrontdoorOriginGroupId"` // One or more Front Door Origin resource IDs that this Front Door Route will link to. CdnFrontdoorOriginIds []string `pulumi:"cdnFrontdoorOriginIds"` // A directory path on the Front Door Origin that can be used to retrieve content (e.g. `contoso.cloudapp.net/originpath`). CdnFrontdoorOriginPath *string `pulumi:"cdnFrontdoorOriginPath"` // A list of the Front Door Rule Set IDs which should be assigned to this Front Door Route. CdnFrontdoorRuleSetIds []string `pulumi:"cdnFrontdoorRuleSetIds"` // Is this Front Door Route enabled? Possible values are `true` or `false`. Defaults to `true`. Enabled *bool `pulumi:"enabled"` // The Protocol that will be use when forwarding traffic to backends. Possible values are `HttpOnly`, `HttpsOnly` or `MatchRequest`. Defaults to `MatchRequest`. ForwardingProtocol *string `pulumi:"forwardingProtocol"` // Automatically redirect HTTP traffic to HTTPS traffic? Possible values are `true` or `false`. Defaults to `true`. // // > **Note:** The `httpsRedirectEnabled` rule is the first rule that will be executed. HttpsRedirectEnabled *bool `pulumi:"httpsRedirectEnabled"` // Should this Front Door Route be linked to the default endpoint? Possible values include `true` or `false`. Defaults to `true`. LinkToDefaultDomain *bool `pulumi:"linkToDefaultDomain"` // The name which should be used for this Front Door Route. Valid values must begin with a letter or number, end with a letter or number and may only contain letters, numbers and hyphens with a maximum length of 90 characters. Changing this forces a new Front Door Route to be created. Name *string `pulumi:"name"` // The route patterns of the rule. PatternsToMatches []string `pulumi:"patternsToMatches"` // One or more Protocols supported by this Front Door Route. Possible values are `Http` or `Https`. // // > **Note:** If `httpsRedirectEnabled` is set to `true` the `supportedProtocols` field must contain both `Http` and `Https` values. SupportedProtocols []string `pulumi:"supportedProtocols"` } // The set of arguments for constructing a FrontdoorRoute resource. type FrontdoorRouteArgs struct { // A `cache` block as defined below. // // > **Note:** To disable caching, do not provide the `cache` block in the configuration file. Cache FrontdoorRouteCachePtrInput // The IDs of the Front Door Custom Domains which are associated with this Front Door Route. CdnFrontdoorCustomDomainIds pulumi.StringArrayInput // The resource ID of the Front Door Endpoint where this Front Door Route should exist. Changing this forces a new Front Door Route to be created. CdnFrontdoorEndpointId pulumi.StringInput // The resource ID of the Front Door Origin Group where this Front Door Route should be created. CdnFrontdoorOriginGroupId pulumi.StringInput // One or more Front Door Origin resource IDs that this Front Door Route will link to. CdnFrontdoorOriginIds pulumi.StringArrayInput // A directory path on the Front Door Origin that can be used to retrieve content (e.g. `contoso.cloudapp.net/originpath`). CdnFrontdoorOriginPath pulumi.StringPtrInput // A list of the Front Door Rule Set IDs which should be assigned to this Front Door Route. CdnFrontdoorRuleSetIds pulumi.StringArrayInput // Is this Front Door Route enabled? Possible values are `true` or `false`. Defaults to `true`. Enabled pulumi.BoolPtrInput // The Protocol that will be use when forwarding traffic to backends. Possible values are `HttpOnly`, `HttpsOnly` or `MatchRequest`. Defaults to `MatchRequest`. ForwardingProtocol pulumi.StringPtrInput // Automatically redirect HTTP traffic to HTTPS traffic? Possible values are `true` or `false`. Defaults to `true`. // // > **Note:** The `httpsRedirectEnabled` rule is the first rule that will be executed. HttpsRedirectEnabled pulumi.BoolPtrInput // Should this Front Door Route be linked to the default endpoint? Possible values include `true` or `false`. Defaults to `true`. LinkToDefaultDomain pulumi.BoolPtrInput // The name which should be used for this Front Door Route. Valid values must begin with a letter or number, end with a letter or number and may only contain letters, numbers and hyphens with a maximum length of 90 characters. Changing this forces a new Front Door Route to be created. Name pulumi.StringPtrInput // The route patterns of the rule. PatternsToMatches pulumi.StringArrayInput // One or more Protocols supported by this Front Door Route. Possible values are `Http` or `Https`. // // > **Note:** If `httpsRedirectEnabled` is set to `true` the `supportedProtocols` field must contain both `Http` and `Https` values. SupportedProtocols pulumi.StringArrayInput } func (FrontdoorRouteArgs) ElementType() reflect.Type { return reflect.TypeOf((*frontdoorRouteArgs)(nil)).Elem() } type FrontdoorRouteInput interface { pulumi.Input ToFrontdoorRouteOutput() FrontdoorRouteOutput ToFrontdoorRouteOutputWithContext(ctx context.Context) FrontdoorRouteOutput } func (*FrontdoorRoute) ElementType() reflect.Type { return reflect.TypeOf((**FrontdoorRoute)(nil)).Elem() } func (i *FrontdoorRoute) ToFrontdoorRouteOutput() FrontdoorRouteOutput { return i.ToFrontdoorRouteOutputWithContext(context.Background()) } func (i *FrontdoorRoute) ToFrontdoorRouteOutputWithContext(ctx context.Context) FrontdoorRouteOutput { return pulumi.ToOutputWithContext(ctx, i).(FrontdoorRouteOutput) } // FrontdoorRouteArrayInput is an input type that accepts FrontdoorRouteArray and FrontdoorRouteArrayOutput values. // You can construct a concrete instance of `FrontdoorRouteArrayInput` via: // // FrontdoorRouteArray{ FrontdoorRouteArgs{...} } type FrontdoorRouteArrayInput interface { pulumi.Input ToFrontdoorRouteArrayOutput() FrontdoorRouteArrayOutput ToFrontdoorRouteArrayOutputWithContext(context.Context) FrontdoorRouteArrayOutput } type FrontdoorRouteArray []FrontdoorRouteInput func (FrontdoorRouteArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*FrontdoorRoute)(nil)).Elem() } func (i FrontdoorRouteArray) ToFrontdoorRouteArrayOutput() FrontdoorRouteArrayOutput { return i.ToFrontdoorRouteArrayOutputWithContext(context.Background()) } func (i FrontdoorRouteArray) ToFrontdoorRouteArrayOutputWithContext(ctx context.Context) FrontdoorRouteArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(FrontdoorRouteArrayOutput) } // FrontdoorRouteMapInput is an input type that accepts FrontdoorRouteMap and FrontdoorRouteMapOutput values. // You can construct a concrete instance of `FrontdoorRouteMapInput` via: // // FrontdoorRouteMap{ "key": FrontdoorRouteArgs{...} } type FrontdoorRouteMapInput interface { pulumi.Input ToFrontdoorRouteMapOutput() FrontdoorRouteMapOutput ToFrontdoorRouteMapOutputWithContext(context.Context) FrontdoorRouteMapOutput } type FrontdoorRouteMap map[string]FrontdoorRouteInput func (FrontdoorRouteMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*FrontdoorRoute)(nil)).Elem() } func (i FrontdoorRouteMap) ToFrontdoorRouteMapOutput() FrontdoorRouteMapOutput { return i.ToFrontdoorRouteMapOutputWithContext(context.Background()) } func (i FrontdoorRouteMap) ToFrontdoorRouteMapOutputWithContext(ctx context.Context) FrontdoorRouteMapOutput { return pulumi.ToOutputWithContext(ctx, i).(FrontdoorRouteMapOutput) } type FrontdoorRouteOutput struct{ *pulumi.OutputState } func (FrontdoorRouteOutput) ElementType() reflect.Type { return reflect.TypeOf((**FrontdoorRoute)(nil)).Elem() } func (o FrontdoorRouteOutput) ToFrontdoorRouteOutput() FrontdoorRouteOutput { return o } func (o FrontdoorRouteOutput) ToFrontdoorRouteOutputWithContext(ctx context.Context) FrontdoorRouteOutput { return o } // A `cache` block as defined below. // // > **Note:** To disable caching, do not provide the `cache` block in the configuration file. func (o FrontdoorRouteOutput) Cache() FrontdoorRouteCachePtrOutput { return o.ApplyT(func(v *FrontdoorRoute) FrontdoorRouteCachePtrOutput { return v.Cache }).(FrontdoorRouteCachePtrOutput) } // The IDs of the Front Door Custom Domains which are associated with this Front Door Route. func (o FrontdoorRouteOutput) CdnFrontdoorCustomDomainIds() pulumi.StringArrayOutput { return o.ApplyT(func(v *FrontdoorRoute) pulumi.StringArrayOutput { return v.CdnFrontdoorCustomDomainIds }).(pulumi.StringArrayOutput) } // The resource ID of the Front Door Endpoint where this Front Door Route should exist. Changing this forces a new Front Door Route to be created. func (o FrontdoorRouteOutput) CdnFrontdoorEndpointId() pulumi.StringOutput { return o.ApplyT(func(v *FrontdoorRoute) pulumi.StringOutput { return v.CdnFrontdoorEndpointId }).(pulumi.StringOutput) } // The resource ID of the Front Door Origin Group where this Front Door Route should be created. func (o FrontdoorRouteOutput) CdnFrontdoorOriginGroupId() pulumi.StringOutput { return o.ApplyT(func(v *FrontdoorRoute) pulumi.StringOutput { return v.CdnFrontdoorOriginGroupId }).(pulumi.StringOutput) } // One or more Front Door Origin resource IDs that this Front Door Route will link to. func (o FrontdoorRouteOutput) CdnFrontdoorOriginIds() pulumi.StringArrayOutput { return o.ApplyT(func(v *FrontdoorRoute) pulumi.StringArrayOutput { return v.CdnFrontdoorOriginIds }).(pulumi.StringArrayOutput) } // A directory path on the Front Door Origin that can be used to retrieve content (e.g. `contoso.cloudapp.net/originpath`). func (o FrontdoorRouteOutput) CdnFrontdoorOriginPath() pulumi.StringPtrOutput { return o.ApplyT(func(v *FrontdoorRoute) pulumi.StringPtrOutput { return v.CdnFrontdoorOriginPath }).(pulumi.StringPtrOutput) } // A list of the Front Door Rule Set IDs which should be assigned to this Front Door Route. func (o FrontdoorRouteOutput) CdnFrontdoorRuleSetIds() pulumi.StringArrayOutput { return o.ApplyT(func(v *FrontdoorRoute) pulumi.StringArrayOutput { return v.CdnFrontdoorRuleSetIds }).(pulumi.StringArrayOutput) } // Is this Front Door Route enabled? Possible values are `true` or `false`. Defaults to `true`. func (o FrontdoorRouteOutput) Enabled() pulumi.BoolPtrOutput { return o.ApplyT(func(v *FrontdoorRoute) pulumi.BoolPtrOutput { return v.Enabled }).(pulumi.BoolPtrOutput) } // The Protocol that will be use when forwarding traffic to backends. Possible values are `HttpOnly`, `HttpsOnly` or `MatchRequest`. Defaults to `MatchRequest`. func (o FrontdoorRouteOutput) ForwardingProtocol() pulumi.StringPtrOutput { return o.ApplyT(func(v *FrontdoorRoute) pulumi.StringPtrOutput { return v.ForwardingProtocol }).(pulumi.StringPtrOutput) } // Automatically redirect HTTP traffic to HTTPS traffic? Possible values are `true` or `false`. Defaults to `true`. // // > **Note:** The `httpsRedirectEnabled` rule is the first rule that will be executed. func (o FrontdoorRouteOutput) HttpsRedirectEnabled() pulumi.BoolPtrOutput { return o.ApplyT(func(v *FrontdoorRoute) pulumi.BoolPtrOutput { return v.HttpsRedirectEnabled }).(pulumi.BoolPtrOutput) } // Should this Front Door Route be linked to the default endpoint? Possible values include `true` or `false`. Defaults to `true`. func (o FrontdoorRouteOutput) LinkToDefaultDomain() pulumi.BoolPtrOutput { return o.ApplyT(func(v *FrontdoorRoute) pulumi.BoolPtrOutput { return v.LinkToDefaultDomain }).(pulumi.BoolPtrOutput) } // The name which should be used for this Front Door Route. Valid values must begin with a letter or number, end with a letter or number and may only contain letters, numbers and hyphens with a maximum length of 90 characters. Changing this forces a new Front Door Route to be created. func (o FrontdoorRouteOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *FrontdoorRoute) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // The route patterns of the rule. func (o FrontdoorRouteOutput) PatternsToMatches() pulumi.StringArrayOutput { return o.ApplyT(func(v *FrontdoorRoute) pulumi.StringArrayOutput { return v.PatternsToMatches }).(pulumi.StringArrayOutput) } // One or more Protocols supported by this Front Door Route. Possible values are `Http` or `Https`. // // > **Note:** If `httpsRedirectEnabled` is set to `true` the `supportedProtocols` field must contain both `Http` and `Https` values. func (o FrontdoorRouteOutput) SupportedProtocols() pulumi.StringArrayOutput { return o.ApplyT(func(v *FrontdoorRoute) pulumi.StringArrayOutput { return v.SupportedProtocols }).(pulumi.StringArrayOutput) } type FrontdoorRouteArrayOutput struct{ *pulumi.OutputState } func (FrontdoorRouteArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*FrontdoorRoute)(nil)).Elem() } func (o FrontdoorRouteArrayOutput) ToFrontdoorRouteArrayOutput() FrontdoorRouteArrayOutput { return o } func (o FrontdoorRouteArrayOutput) ToFrontdoorRouteArrayOutputWithContext(ctx context.Context) FrontdoorRouteArrayOutput { return o } func (o FrontdoorRouteArrayOutput) Index(i pulumi.IntInput) FrontdoorRouteOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *FrontdoorRoute { return vs[0].([]*FrontdoorRoute)[vs[1].(int)] }).(FrontdoorRouteOutput) } type FrontdoorRouteMapOutput struct{ *pulumi.OutputState } func (FrontdoorRouteMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*FrontdoorRoute)(nil)).Elem() } func (o FrontdoorRouteMapOutput) ToFrontdoorRouteMapOutput() FrontdoorRouteMapOutput { return o } func (o FrontdoorRouteMapOutput) ToFrontdoorRouteMapOutputWithContext(ctx context.Context) FrontdoorRouteMapOutput { return o } func (o FrontdoorRouteMapOutput) MapIndex(k pulumi.StringInput) FrontdoorRouteOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *FrontdoorRoute { return vs[0].(map[string]*FrontdoorRoute)[vs[1].(string)] }).(FrontdoorRouteOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*FrontdoorRouteInput)(nil)).Elem(), &FrontdoorRoute{}) pulumi.RegisterInputType(reflect.TypeOf((*FrontdoorRouteArrayInput)(nil)).Elem(), FrontdoorRouteArray{}) pulumi.RegisterInputType(reflect.TypeOf((*FrontdoorRouteMapInput)(nil)).Elem(), FrontdoorRouteMap{})
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/cdn/getFrontdoorRuleSet.go
sdk/go/azure/cdn/getFrontdoorRuleSet.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 cdn 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 Front Door (standard/premium) Rule Set. // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/cdn" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { // _, err := cdn.LookupFrontdoorRuleSet(ctx, &cdn.LookupFrontdoorRuleSetArgs{ // Name: "existing-rule-set", // ProfileName: "existing-profile", // ResourceGroupName: "existing-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.Cdn` - 2024-02-01 func LookupFrontdoorRuleSet(ctx *pulumi.Context, args *LookupFrontdoorRuleSetArgs, opts ...pulumi.InvokeOption) (*LookupFrontdoorRuleSetResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupFrontdoorRuleSetResult err := ctx.Invoke("azure:cdn/getFrontdoorRuleSet:getFrontdoorRuleSet", args, &rv, opts...) if err != nil { return nil, err } return &rv, nil } // A collection of arguments for invoking getFrontdoorRuleSet. type LookupFrontdoorRuleSetArgs struct { // Specifies the name of the Front Door Rule Set to retrieve. Name string `pulumi:"name"` // Specifies the name of the Front Door Profile where this Front Door Rule Set exists. ProfileName string `pulumi:"profileName"` // Specifies the name of the Resource Group where the Front Door Profile exists. ResourceGroupName string `pulumi:"resourceGroupName"` } // A collection of values returned by getFrontdoorRuleSet. type LookupFrontdoorRuleSetResult struct { // The ID of the Front Door Profile within which this Front Door Rule Set exists. CdnFrontdoorProfileId string `pulumi:"cdnFrontdoorProfileId"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` Name string `pulumi:"name"` ProfileName string `pulumi:"profileName"` ResourceGroupName string `pulumi:"resourceGroupName"` } func LookupFrontdoorRuleSetOutput(ctx *pulumi.Context, args LookupFrontdoorRuleSetOutputArgs, opts ...pulumi.InvokeOption) LookupFrontdoorRuleSetResultOutput { return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupFrontdoorRuleSetResultOutput, error) { args := v.(LookupFrontdoorRuleSetArgs) options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} return ctx.InvokeOutput("azure:cdn/getFrontdoorRuleSet:getFrontdoorRuleSet", args, LookupFrontdoorRuleSetResultOutput{}, options).(LookupFrontdoorRuleSetResultOutput), nil }).(LookupFrontdoorRuleSetResultOutput) } // A collection of arguments for invoking getFrontdoorRuleSet. type LookupFrontdoorRuleSetOutputArgs struct { // Specifies the name of the Front Door Rule Set to retrieve. Name pulumi.StringInput `pulumi:"name"` // Specifies the name of the Front Door Profile where this Front Door Rule Set exists. ProfileName pulumi.StringInput `pulumi:"profileName"` // Specifies the name of the Resource Group where the Front Door Profile exists. ResourceGroupName pulumi.StringInput `pulumi:"resourceGroupName"` } func (LookupFrontdoorRuleSetOutputArgs) ElementType() reflect.Type { return reflect.TypeOf((*LookupFrontdoorRuleSetArgs)(nil)).Elem() } // A collection of values returned by getFrontdoorRuleSet. type LookupFrontdoorRuleSetResultOutput struct{ *pulumi.OutputState } func (LookupFrontdoorRuleSetResultOutput) ElementType() reflect.Type { return reflect.TypeOf((*LookupFrontdoorRuleSetResult)(nil)).Elem() } func (o LookupFrontdoorRuleSetResultOutput) ToLookupFrontdoorRuleSetResultOutput() LookupFrontdoorRuleSetResultOutput { return o } func (o LookupFrontdoorRuleSetResultOutput) ToLookupFrontdoorRuleSetResultOutputWithContext(ctx context.Context) LookupFrontdoorRuleSetResultOutput { return o } // The ID of the Front Door Profile within which this Front Door Rule Set exists. func (o LookupFrontdoorRuleSetResultOutput) CdnFrontdoorProfileId() pulumi.StringOutput { return o.ApplyT(func(v LookupFrontdoorRuleSetResult) string { return v.CdnFrontdoorProfileId }).(pulumi.StringOutput) } // The provider-assigned unique ID for this managed resource. func (o LookupFrontdoorRuleSetResultOutput) Id() pulumi.StringOutput { return o.ApplyT(func(v LookupFrontdoorRuleSetResult) string { return v.Id }).(pulumi.StringOutput) } func (o LookupFrontdoorRuleSetResultOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v LookupFrontdoorRuleSetResult) string { return v.Name }).(pulumi.StringOutput) } func (o LookupFrontdoorRuleSetResultOutput) ProfileName() pulumi.StringOutput { return o.ApplyT(func(v LookupFrontdoorRuleSetResult) string { return v.ProfileName }).(pulumi.StringOutput) } func (o LookupFrontdoorRuleSetResultOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v LookupFrontdoorRuleSetResult) string { return v.ResourceGroupName }).(pulumi.StringOutput) } func init() { pulumi.RegisterOutputType(LookupFrontdoorRuleSetResultOutput{}) }
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/chaosstudio/init.go
sdk/go/azure/chaosstudio/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 chaosstudio 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:chaosstudio/capability:Capability": r = &Capability{} case "azure:chaosstudio/experiment:Experiment": r = &Experiment{} case "azure:chaosstudio/target:Target": r = &Target{} 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", "chaosstudio/capability", &module{version}, ) pulumi.RegisterResourceModule( "azure", "chaosstudio/experiment", &module{version}, ) pulumi.RegisterResourceModule( "azure", "chaosstudio/target", &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/chaosstudio/pulumiTypes.go
sdk/go/azure/chaosstudio/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 chaosstudio 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 ExperimentIdentity struct { // A list of User Managed Identity IDs which should be assigned to the Policy Definition. // // > **Note:** This is required when `type` is set to `UserAssigned`. IdentityIds []string `pulumi:"identityIds"` // The Principal ID associated with this Managed Service Identity. PrincipalId *string `pulumi:"principalId"` // The Tenant ID associated with this Managed Service Identity. TenantId *string `pulumi:"tenantId"` // The Type of Managed Identity which should be added to this Policy Definition. Possible values are `SystemAssigned` and `UserAssigned`. Type string `pulumi:"type"` } // ExperimentIdentityInput is an input type that accepts ExperimentIdentityArgs and ExperimentIdentityOutput values. // You can construct a concrete instance of `ExperimentIdentityInput` via: // // ExperimentIdentityArgs{...} type ExperimentIdentityInput interface { pulumi.Input ToExperimentIdentityOutput() ExperimentIdentityOutput ToExperimentIdentityOutputWithContext(context.Context) ExperimentIdentityOutput } type ExperimentIdentityArgs struct { // A list of User Managed Identity IDs which should be assigned to the Policy Definition. // // > **Note:** This is required when `type` is set to `UserAssigned`. IdentityIds pulumi.StringArrayInput `pulumi:"identityIds"` // The Principal ID associated with this Managed Service Identity. PrincipalId pulumi.StringPtrInput `pulumi:"principalId"` // The Tenant ID associated with this Managed Service Identity. TenantId pulumi.StringPtrInput `pulumi:"tenantId"` // The Type of Managed Identity which should be added to this Policy Definition. Possible values are `SystemAssigned` and `UserAssigned`. Type pulumi.StringInput `pulumi:"type"` } func (ExperimentIdentityArgs) ElementType() reflect.Type { return reflect.TypeOf((*ExperimentIdentity)(nil)).Elem() } func (i ExperimentIdentityArgs) ToExperimentIdentityOutput() ExperimentIdentityOutput { return i.ToExperimentIdentityOutputWithContext(context.Background()) } func (i ExperimentIdentityArgs) ToExperimentIdentityOutputWithContext(ctx context.Context) ExperimentIdentityOutput { return pulumi.ToOutputWithContext(ctx, i).(ExperimentIdentityOutput) } func (i ExperimentIdentityArgs) ToExperimentIdentityPtrOutput() ExperimentIdentityPtrOutput { return i.ToExperimentIdentityPtrOutputWithContext(context.Background()) } func (i ExperimentIdentityArgs) ToExperimentIdentityPtrOutputWithContext(ctx context.Context) ExperimentIdentityPtrOutput { return pulumi.ToOutputWithContext(ctx, i).(ExperimentIdentityOutput).ToExperimentIdentityPtrOutputWithContext(ctx) } // ExperimentIdentityPtrInput is an input type that accepts ExperimentIdentityArgs, ExperimentIdentityPtr and ExperimentIdentityPtrOutput values. // You can construct a concrete instance of `ExperimentIdentityPtrInput` via: // // ExperimentIdentityArgs{...} // // or: // // nil type ExperimentIdentityPtrInput interface { pulumi.Input ToExperimentIdentityPtrOutput() ExperimentIdentityPtrOutput ToExperimentIdentityPtrOutputWithContext(context.Context) ExperimentIdentityPtrOutput } type experimentIdentityPtrType ExperimentIdentityArgs func ExperimentIdentityPtr(v *ExperimentIdentityArgs) ExperimentIdentityPtrInput { return (*experimentIdentityPtrType)(v) } func (*experimentIdentityPtrType) ElementType() reflect.Type { return reflect.TypeOf((**ExperimentIdentity)(nil)).Elem() } func (i *experimentIdentityPtrType) ToExperimentIdentityPtrOutput() ExperimentIdentityPtrOutput { return i.ToExperimentIdentityPtrOutputWithContext(context.Background()) } func (i *experimentIdentityPtrType) ToExperimentIdentityPtrOutputWithContext(ctx context.Context) ExperimentIdentityPtrOutput { return pulumi.ToOutputWithContext(ctx, i).(ExperimentIdentityPtrOutput) } type ExperimentIdentityOutput struct{ *pulumi.OutputState } func (ExperimentIdentityOutput) ElementType() reflect.Type { return reflect.TypeOf((*ExperimentIdentity)(nil)).Elem() } func (o ExperimentIdentityOutput) ToExperimentIdentityOutput() ExperimentIdentityOutput { return o } func (o ExperimentIdentityOutput) ToExperimentIdentityOutputWithContext(ctx context.Context) ExperimentIdentityOutput { return o } func (o ExperimentIdentityOutput) ToExperimentIdentityPtrOutput() ExperimentIdentityPtrOutput { return o.ToExperimentIdentityPtrOutputWithContext(context.Background()) } func (o ExperimentIdentityOutput) ToExperimentIdentityPtrOutputWithContext(ctx context.Context) ExperimentIdentityPtrOutput { return o.ApplyTWithContext(ctx, func(_ context.Context, v ExperimentIdentity) *ExperimentIdentity { return &v }).(ExperimentIdentityPtrOutput) } // A list of User Managed Identity IDs which should be assigned to the Policy Definition. // // > **Note:** This is required when `type` is set to `UserAssigned`. func (o ExperimentIdentityOutput) IdentityIds() pulumi.StringArrayOutput { return o.ApplyT(func(v ExperimentIdentity) []string { return v.IdentityIds }).(pulumi.StringArrayOutput) } // The Principal ID associated with this Managed Service Identity. func (o ExperimentIdentityOutput) PrincipalId() pulumi.StringPtrOutput { return o.ApplyT(func(v ExperimentIdentity) *string { return v.PrincipalId }).(pulumi.StringPtrOutput) } // The Tenant ID associated with this Managed Service Identity. func (o ExperimentIdentityOutput) TenantId() pulumi.StringPtrOutput { return o.ApplyT(func(v ExperimentIdentity) *string { return v.TenantId }).(pulumi.StringPtrOutput) } // The Type of Managed Identity which should be added to this Policy Definition. Possible values are `SystemAssigned` and `UserAssigned`. func (o ExperimentIdentityOutput) Type() pulumi.StringOutput { return o.ApplyT(func(v ExperimentIdentity) string { return v.Type }).(pulumi.StringOutput) } type ExperimentIdentityPtrOutput struct{ *pulumi.OutputState } func (ExperimentIdentityPtrOutput) ElementType() reflect.Type { return reflect.TypeOf((**ExperimentIdentity)(nil)).Elem() } func (o ExperimentIdentityPtrOutput) ToExperimentIdentityPtrOutput() ExperimentIdentityPtrOutput { return o } func (o ExperimentIdentityPtrOutput) ToExperimentIdentityPtrOutputWithContext(ctx context.Context) ExperimentIdentityPtrOutput { return o } func (o ExperimentIdentityPtrOutput) Elem() ExperimentIdentityOutput { return o.ApplyT(func(v *ExperimentIdentity) ExperimentIdentity { if v != nil { return *v } var ret ExperimentIdentity return ret }).(ExperimentIdentityOutput) } // A list of User Managed Identity IDs which should be assigned to the Policy Definition. // // > **Note:** This is required when `type` is set to `UserAssigned`. func (o ExperimentIdentityPtrOutput) IdentityIds() pulumi.StringArrayOutput { return o.ApplyT(func(v *ExperimentIdentity) []string { if v == nil { return nil } return v.IdentityIds }).(pulumi.StringArrayOutput) } // The Principal ID associated with this Managed Service Identity. func (o ExperimentIdentityPtrOutput) PrincipalId() pulumi.StringPtrOutput { return o.ApplyT(func(v *ExperimentIdentity) *string { if v == nil { return nil } return v.PrincipalId }).(pulumi.StringPtrOutput) } // The Tenant ID associated with this Managed Service Identity. func (o ExperimentIdentityPtrOutput) TenantId() pulumi.StringPtrOutput { return o.ApplyT(func(v *ExperimentIdentity) *string { if v == nil { return nil } return v.TenantId }).(pulumi.StringPtrOutput) } // The Type of Managed Identity which should be added to this Policy Definition. Possible values are `SystemAssigned` and `UserAssigned`. func (o ExperimentIdentityPtrOutput) Type() pulumi.StringPtrOutput { return o.ApplyT(func(v *ExperimentIdentity) *string { if v == nil { return nil } return &v.Type }).(pulumi.StringPtrOutput) } type ExperimentSelector struct { // A list of Chaos Studio Target IDs that should be part of this Selector. ChaosStudioTargetIds []string `pulumi:"chaosStudioTargetIds"` // The name of this Selector. Name string `pulumi:"name"` } // ExperimentSelectorInput is an input type that accepts ExperimentSelectorArgs and ExperimentSelectorOutput values. // You can construct a concrete instance of `ExperimentSelectorInput` via: // // ExperimentSelectorArgs{...} type ExperimentSelectorInput interface { pulumi.Input ToExperimentSelectorOutput() ExperimentSelectorOutput ToExperimentSelectorOutputWithContext(context.Context) ExperimentSelectorOutput } type ExperimentSelectorArgs struct { // A list of Chaos Studio Target IDs that should be part of this Selector. ChaosStudioTargetIds pulumi.StringArrayInput `pulumi:"chaosStudioTargetIds"` // The name of this Selector. Name pulumi.StringInput `pulumi:"name"` } func (ExperimentSelectorArgs) ElementType() reflect.Type { return reflect.TypeOf((*ExperimentSelector)(nil)).Elem() } func (i ExperimentSelectorArgs) ToExperimentSelectorOutput() ExperimentSelectorOutput { return i.ToExperimentSelectorOutputWithContext(context.Background()) } func (i ExperimentSelectorArgs) ToExperimentSelectorOutputWithContext(ctx context.Context) ExperimentSelectorOutput { return pulumi.ToOutputWithContext(ctx, i).(ExperimentSelectorOutput) } // ExperimentSelectorArrayInput is an input type that accepts ExperimentSelectorArray and ExperimentSelectorArrayOutput values. // You can construct a concrete instance of `ExperimentSelectorArrayInput` via: // // ExperimentSelectorArray{ ExperimentSelectorArgs{...} } type ExperimentSelectorArrayInput interface { pulumi.Input ToExperimentSelectorArrayOutput() ExperimentSelectorArrayOutput ToExperimentSelectorArrayOutputWithContext(context.Context) ExperimentSelectorArrayOutput } type ExperimentSelectorArray []ExperimentSelectorInput func (ExperimentSelectorArray) ElementType() reflect.Type { return reflect.TypeOf((*[]ExperimentSelector)(nil)).Elem() } func (i ExperimentSelectorArray) ToExperimentSelectorArrayOutput() ExperimentSelectorArrayOutput { return i.ToExperimentSelectorArrayOutputWithContext(context.Background()) } func (i ExperimentSelectorArray) ToExperimentSelectorArrayOutputWithContext(ctx context.Context) ExperimentSelectorArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(ExperimentSelectorArrayOutput) } type ExperimentSelectorOutput struct{ *pulumi.OutputState } func (ExperimentSelectorOutput) ElementType() reflect.Type { return reflect.TypeOf((*ExperimentSelector)(nil)).Elem() } func (o ExperimentSelectorOutput) ToExperimentSelectorOutput() ExperimentSelectorOutput { return o } func (o ExperimentSelectorOutput) ToExperimentSelectorOutputWithContext(ctx context.Context) ExperimentSelectorOutput { return o } // A list of Chaos Studio Target IDs that should be part of this Selector. func (o ExperimentSelectorOutput) ChaosStudioTargetIds() pulumi.StringArrayOutput { return o.ApplyT(func(v ExperimentSelector) []string { return v.ChaosStudioTargetIds }).(pulumi.StringArrayOutput) } // The name of this Selector. func (o ExperimentSelectorOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v ExperimentSelector) string { return v.Name }).(pulumi.StringOutput) } type ExperimentSelectorArrayOutput struct{ *pulumi.OutputState } func (ExperimentSelectorArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]ExperimentSelector)(nil)).Elem() } func (o ExperimentSelectorArrayOutput) ToExperimentSelectorArrayOutput() ExperimentSelectorArrayOutput { return o } func (o ExperimentSelectorArrayOutput) ToExperimentSelectorArrayOutputWithContext(ctx context.Context) ExperimentSelectorArrayOutput { return o } func (o ExperimentSelectorArrayOutput) Index(i pulumi.IntInput) ExperimentSelectorOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) ExperimentSelector { return vs[0].([]ExperimentSelector)[vs[1].(int)] }).(ExperimentSelectorOutput) } type ExperimentStep struct { // One or more `branch` blocks as defined above. Branches []ExperimentStepBranch `pulumi:"branches"` // The name of the Step. Name string `pulumi:"name"` } // ExperimentStepInput is an input type that accepts ExperimentStepArgs and ExperimentStepOutput values. // You can construct a concrete instance of `ExperimentStepInput` via: // // ExperimentStepArgs{...} type ExperimentStepInput interface { pulumi.Input ToExperimentStepOutput() ExperimentStepOutput ToExperimentStepOutputWithContext(context.Context) ExperimentStepOutput } type ExperimentStepArgs struct { // One or more `branch` blocks as defined above. Branches ExperimentStepBranchArrayInput `pulumi:"branches"` // The name of the Step. Name pulumi.StringInput `pulumi:"name"` } func (ExperimentStepArgs) ElementType() reflect.Type { return reflect.TypeOf((*ExperimentStep)(nil)).Elem() } func (i ExperimentStepArgs) ToExperimentStepOutput() ExperimentStepOutput { return i.ToExperimentStepOutputWithContext(context.Background()) } func (i ExperimentStepArgs) ToExperimentStepOutputWithContext(ctx context.Context) ExperimentStepOutput { return pulumi.ToOutputWithContext(ctx, i).(ExperimentStepOutput) } // ExperimentStepArrayInput is an input type that accepts ExperimentStepArray and ExperimentStepArrayOutput values. // You can construct a concrete instance of `ExperimentStepArrayInput` via: // // ExperimentStepArray{ ExperimentStepArgs{...} } type ExperimentStepArrayInput interface { pulumi.Input ToExperimentStepArrayOutput() ExperimentStepArrayOutput ToExperimentStepArrayOutputWithContext(context.Context) ExperimentStepArrayOutput } type ExperimentStepArray []ExperimentStepInput func (ExperimentStepArray) ElementType() reflect.Type { return reflect.TypeOf((*[]ExperimentStep)(nil)).Elem() } func (i ExperimentStepArray) ToExperimentStepArrayOutput() ExperimentStepArrayOutput { return i.ToExperimentStepArrayOutputWithContext(context.Background()) } func (i ExperimentStepArray) ToExperimentStepArrayOutputWithContext(ctx context.Context) ExperimentStepArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(ExperimentStepArrayOutput) } type ExperimentStepOutput struct{ *pulumi.OutputState } func (ExperimentStepOutput) ElementType() reflect.Type { return reflect.TypeOf((*ExperimentStep)(nil)).Elem() } func (o ExperimentStepOutput) ToExperimentStepOutput() ExperimentStepOutput { return o } func (o ExperimentStepOutput) ToExperimentStepOutputWithContext(ctx context.Context) ExperimentStepOutput { return o } // One or more `branch` blocks as defined above. func (o ExperimentStepOutput) Branches() ExperimentStepBranchArrayOutput { return o.ApplyT(func(v ExperimentStep) []ExperimentStepBranch { return v.Branches }).(ExperimentStepBranchArrayOutput) } // The name of the Step. func (o ExperimentStepOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v ExperimentStep) string { return v.Name }).(pulumi.StringOutput) } type ExperimentStepArrayOutput struct{ *pulumi.OutputState } func (ExperimentStepArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]ExperimentStep)(nil)).Elem() } func (o ExperimentStepArrayOutput) ToExperimentStepArrayOutput() ExperimentStepArrayOutput { return o } func (o ExperimentStepArrayOutput) ToExperimentStepArrayOutputWithContext(ctx context.Context) ExperimentStepArrayOutput { return o } func (o ExperimentStepArrayOutput) Index(i pulumi.IntInput) ExperimentStepOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) ExperimentStep { return vs[0].([]ExperimentStep)[vs[1].(int)] }).(ExperimentStepOutput) } type ExperimentStepBranch struct { // One or more `actions` blocks as defined above. Actions []ExperimentStepBranchAction `pulumi:"actions"` // The name of the branch. Name string `pulumi:"name"` } // ExperimentStepBranchInput is an input type that accepts ExperimentStepBranchArgs and ExperimentStepBranchOutput values. // You can construct a concrete instance of `ExperimentStepBranchInput` via: // // ExperimentStepBranchArgs{...} type ExperimentStepBranchInput interface { pulumi.Input ToExperimentStepBranchOutput() ExperimentStepBranchOutput ToExperimentStepBranchOutputWithContext(context.Context) ExperimentStepBranchOutput } type ExperimentStepBranchArgs struct { // One or more `actions` blocks as defined above. Actions ExperimentStepBranchActionArrayInput `pulumi:"actions"` // The name of the branch. Name pulumi.StringInput `pulumi:"name"` } func (ExperimentStepBranchArgs) ElementType() reflect.Type { return reflect.TypeOf((*ExperimentStepBranch)(nil)).Elem() } func (i ExperimentStepBranchArgs) ToExperimentStepBranchOutput() ExperimentStepBranchOutput { return i.ToExperimentStepBranchOutputWithContext(context.Background()) } func (i ExperimentStepBranchArgs) ToExperimentStepBranchOutputWithContext(ctx context.Context) ExperimentStepBranchOutput { return pulumi.ToOutputWithContext(ctx, i).(ExperimentStepBranchOutput) } // ExperimentStepBranchArrayInput is an input type that accepts ExperimentStepBranchArray and ExperimentStepBranchArrayOutput values. // You can construct a concrete instance of `ExperimentStepBranchArrayInput` via: // // ExperimentStepBranchArray{ ExperimentStepBranchArgs{...} } type ExperimentStepBranchArrayInput interface { pulumi.Input ToExperimentStepBranchArrayOutput() ExperimentStepBranchArrayOutput ToExperimentStepBranchArrayOutputWithContext(context.Context) ExperimentStepBranchArrayOutput } type ExperimentStepBranchArray []ExperimentStepBranchInput func (ExperimentStepBranchArray) ElementType() reflect.Type { return reflect.TypeOf((*[]ExperimentStepBranch)(nil)).Elem() } func (i ExperimentStepBranchArray) ToExperimentStepBranchArrayOutput() ExperimentStepBranchArrayOutput { return i.ToExperimentStepBranchArrayOutputWithContext(context.Background()) } func (i ExperimentStepBranchArray) ToExperimentStepBranchArrayOutputWithContext(ctx context.Context) ExperimentStepBranchArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(ExperimentStepBranchArrayOutput) } type ExperimentStepBranchOutput struct{ *pulumi.OutputState } func (ExperimentStepBranchOutput) ElementType() reflect.Type { return reflect.TypeOf((*ExperimentStepBranch)(nil)).Elem() } func (o ExperimentStepBranchOutput) ToExperimentStepBranchOutput() ExperimentStepBranchOutput { return o } func (o ExperimentStepBranchOutput) ToExperimentStepBranchOutputWithContext(ctx context.Context) ExperimentStepBranchOutput { return o } // One or more `actions` blocks as defined above. func (o ExperimentStepBranchOutput) Actions() ExperimentStepBranchActionArrayOutput { return o.ApplyT(func(v ExperimentStepBranch) []ExperimentStepBranchAction { return v.Actions }).(ExperimentStepBranchActionArrayOutput) } // The name of the branch. func (o ExperimentStepBranchOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v ExperimentStepBranch) string { return v.Name }).(pulumi.StringOutput) } type ExperimentStepBranchArrayOutput struct{ *pulumi.OutputState } func (ExperimentStepBranchArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]ExperimentStepBranch)(nil)).Elem() } func (o ExperimentStepBranchArrayOutput) ToExperimentStepBranchArrayOutput() ExperimentStepBranchArrayOutput { return o } func (o ExperimentStepBranchArrayOutput) ToExperimentStepBranchArrayOutputWithContext(ctx context.Context) ExperimentStepBranchArrayOutput { return o } func (o ExperimentStepBranchArrayOutput) Index(i pulumi.IntInput) ExperimentStepBranchOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) ExperimentStepBranch { return vs[0].([]ExperimentStepBranch)[vs[1].(int)] }).(ExperimentStepBranchOutput) } type ExperimentStepBranchAction struct { // The type of action that should be added to the experiment. Possible values are `continuous`, `delay` and `discrete`. ActionType string `pulumi:"actionType"` // An ISO8601 formatted string specifying the duration for a `delay` or `continuous` action. Duration *string `pulumi:"duration"` // A key-value map of additional parameters to configure the action. The values that are accepted by this depend on the `urn` i.e. the capability/fault that is applied. Possible parameter values can be found in this [documentation](https://learn.microsoft.com/azure/chaos-studio/chaos-studio-fault-library) Parameters map[string]string `pulumi:"parameters"` // The name of the Selector to which this action should apply to. This must be specified if the `actionType` is `continuous` or `discrete`. SelectorName *string `pulumi:"selectorName"` // The Unique Resource Name of the action, this value is provided by the `chaosstudio.Capability` resource e.g. `azurerm_chaos_studio_capability.example.urn`. This must be specified if the `actionType` is `continuous` or `discrete`. Urn *string `pulumi:"urn"` } // ExperimentStepBranchActionInput is an input type that accepts ExperimentStepBranchActionArgs and ExperimentStepBranchActionOutput values. // You can construct a concrete instance of `ExperimentStepBranchActionInput` via: // // ExperimentStepBranchActionArgs{...} type ExperimentStepBranchActionInput interface { pulumi.Input ToExperimentStepBranchActionOutput() ExperimentStepBranchActionOutput ToExperimentStepBranchActionOutputWithContext(context.Context) ExperimentStepBranchActionOutput } type ExperimentStepBranchActionArgs struct { // The type of action that should be added to the experiment. Possible values are `continuous`, `delay` and `discrete`. ActionType pulumi.StringInput `pulumi:"actionType"` // An ISO8601 formatted string specifying the duration for a `delay` or `continuous` action. Duration pulumi.StringPtrInput `pulumi:"duration"` // A key-value map of additional parameters to configure the action. The values that are accepted by this depend on the `urn` i.e. the capability/fault that is applied. Possible parameter values can be found in this [documentation](https://learn.microsoft.com/azure/chaos-studio/chaos-studio-fault-library) Parameters pulumi.StringMapInput `pulumi:"parameters"` // The name of the Selector to which this action should apply to. This must be specified if the `actionType` is `continuous` or `discrete`. SelectorName pulumi.StringPtrInput `pulumi:"selectorName"` // The Unique Resource Name of the action, this value is provided by the `chaosstudio.Capability` resource e.g. `azurerm_chaos_studio_capability.example.urn`. This must be specified if the `actionType` is `continuous` or `discrete`. Urn pulumi.StringPtrInput `pulumi:"urn"` } func (ExperimentStepBranchActionArgs) ElementType() reflect.Type { return reflect.TypeOf((*ExperimentStepBranchAction)(nil)).Elem() } func (i ExperimentStepBranchActionArgs) ToExperimentStepBranchActionOutput() ExperimentStepBranchActionOutput { return i.ToExperimentStepBranchActionOutputWithContext(context.Background()) } func (i ExperimentStepBranchActionArgs) ToExperimentStepBranchActionOutputWithContext(ctx context.Context) ExperimentStepBranchActionOutput { return pulumi.ToOutputWithContext(ctx, i).(ExperimentStepBranchActionOutput) } // ExperimentStepBranchActionArrayInput is an input type that accepts ExperimentStepBranchActionArray and ExperimentStepBranchActionArrayOutput values. // You can construct a concrete instance of `ExperimentStepBranchActionArrayInput` via: // // ExperimentStepBranchActionArray{ ExperimentStepBranchActionArgs{...} } type ExperimentStepBranchActionArrayInput interface { pulumi.Input ToExperimentStepBranchActionArrayOutput() ExperimentStepBranchActionArrayOutput ToExperimentStepBranchActionArrayOutputWithContext(context.Context) ExperimentStepBranchActionArrayOutput } type ExperimentStepBranchActionArray []ExperimentStepBranchActionInput func (ExperimentStepBranchActionArray) ElementType() reflect.Type { return reflect.TypeOf((*[]ExperimentStepBranchAction)(nil)).Elem() } func (i ExperimentStepBranchActionArray) ToExperimentStepBranchActionArrayOutput() ExperimentStepBranchActionArrayOutput { return i.ToExperimentStepBranchActionArrayOutputWithContext(context.Background()) } func (i ExperimentStepBranchActionArray) ToExperimentStepBranchActionArrayOutputWithContext(ctx context.Context) ExperimentStepBranchActionArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(ExperimentStepBranchActionArrayOutput) } type ExperimentStepBranchActionOutput struct{ *pulumi.OutputState } func (ExperimentStepBranchActionOutput) ElementType() reflect.Type { return reflect.TypeOf((*ExperimentStepBranchAction)(nil)).Elem() } func (o ExperimentStepBranchActionOutput) ToExperimentStepBranchActionOutput() ExperimentStepBranchActionOutput { return o } func (o ExperimentStepBranchActionOutput) ToExperimentStepBranchActionOutputWithContext(ctx context.Context) ExperimentStepBranchActionOutput { return o } // The type of action that should be added to the experiment. Possible values are `continuous`, `delay` and `discrete`. func (o ExperimentStepBranchActionOutput) ActionType() pulumi.StringOutput { return o.ApplyT(func(v ExperimentStepBranchAction) string { return v.ActionType }).(pulumi.StringOutput) } // An ISO8601 formatted string specifying the duration for a `delay` or `continuous` action. func (o ExperimentStepBranchActionOutput) Duration() pulumi.StringPtrOutput { return o.ApplyT(func(v ExperimentStepBranchAction) *string { return v.Duration }).(pulumi.StringPtrOutput) } // A key-value map of additional parameters to configure the action. The values that are accepted by this depend on the `urn` i.e. the capability/fault that is applied. Possible parameter values can be found in this [documentation](https://learn.microsoft.com/azure/chaos-studio/chaos-studio-fault-library) func (o ExperimentStepBranchActionOutput) Parameters() pulumi.StringMapOutput { return o.ApplyT(func(v ExperimentStepBranchAction) map[string]string { return v.Parameters }).(pulumi.StringMapOutput) } // The name of the Selector to which this action should apply to. This must be specified if the `actionType` is `continuous` or `discrete`. func (o ExperimentStepBranchActionOutput) SelectorName() pulumi.StringPtrOutput { return o.ApplyT(func(v ExperimentStepBranchAction) *string { return v.SelectorName }).(pulumi.StringPtrOutput) } // The Unique Resource Name of the action, this value is provided by the `chaosstudio.Capability` resource e.g. `azurerm_chaos_studio_capability.example.urn`. This must be specified if the `actionType` is `continuous` or `discrete`. func (o ExperimentStepBranchActionOutput) Urn() pulumi.StringPtrOutput { return o.ApplyT(func(v ExperimentStepBranchAction) *string { return v.Urn }).(pulumi.StringPtrOutput) } type ExperimentStepBranchActionArrayOutput struct{ *pulumi.OutputState } func (ExperimentStepBranchActionArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]ExperimentStepBranchAction)(nil)).Elem() } func (o ExperimentStepBranchActionArrayOutput) ToExperimentStepBranchActionArrayOutput() ExperimentStepBranchActionArrayOutput { return o } func (o ExperimentStepBranchActionArrayOutput) ToExperimentStepBranchActionArrayOutputWithContext(ctx context.Context) ExperimentStepBranchActionArrayOutput { return o } func (o ExperimentStepBranchActionArrayOutput) Index(i pulumi.IntInput) ExperimentStepBranchActionOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) ExperimentStepBranchAction { return vs[0].([]ExperimentStepBranchAction)[vs[1].(int)] }).(ExperimentStepBranchActionOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*ExperimentIdentityInput)(nil)).Elem(), ExperimentIdentityArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*ExperimentIdentityPtrInput)(nil)).Elem(), ExperimentIdentityArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*ExperimentSelectorInput)(nil)).Elem(), ExperimentSelectorArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*ExperimentSelectorArrayInput)(nil)).Elem(), ExperimentSelectorArray{}) pulumi.RegisterInputType(reflect.TypeOf((*ExperimentStepInput)(nil)).Elem(), ExperimentStepArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*ExperimentStepArrayInput)(nil)).Elem(), ExperimentStepArray{}) pulumi.RegisterInputType(reflect.TypeOf((*ExperimentStepBranchInput)(nil)).Elem(), ExperimentStepBranchArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*ExperimentStepBranchArrayInput)(nil)).Elem(), ExperimentStepBranchArray{}) pulumi.RegisterInputType(reflect.TypeOf((*ExperimentStepBranchActionInput)(nil)).Elem(), ExperimentStepBranchActionArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*ExperimentStepBranchActionArrayInput)(nil)).Elem(), ExperimentStepBranchActionArray{}) pulumi.RegisterOutputType(ExperimentIdentityOutput{}) pulumi.RegisterOutputType(ExperimentIdentityPtrOutput{}) pulumi.RegisterOutputType(ExperimentSelectorOutput{}) pulumi.RegisterOutputType(ExperimentSelectorArrayOutput{}) pulumi.RegisterOutputType(ExperimentStepOutput{}) pulumi.RegisterOutputType(ExperimentStepArrayOutput{}) pulumi.RegisterOutputType(ExperimentStepBranchOutput{}) pulumi.RegisterOutputType(ExperimentStepBranchArrayOutput{}) pulumi.RegisterOutputType(ExperimentStepBranchActionOutput{}) pulumi.RegisterOutputType(ExperimentStepBranchActionArrayOutput{}) }
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/chaosstudio/experiment.go
sdk/go/azure/chaosstudio/experiment.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 chaosstudio import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a Chaos Studio Experiment. // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/authorization" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/chaosstudio" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/compute" // "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"), // Location: pulumi.String("westeurope"), // }) // if err != nil { // return err // } // _, err = authorization.NewUserAssignedIdentity(ctx, "example", &authorization.UserAssignedIdentityArgs{ // ResourceGroupName: example.Name, // Location: example.Location, // Name: pulumi.String("example"), // }) // if err != nil { // return err // } // exampleVirtualNetwork, err := network.NewVirtualNetwork(ctx, "example", &network.VirtualNetworkArgs{ // Name: pulumi.String("example"), // 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("internal"), // ResourceGroupName: example.Name, // VirtualNetworkName: exampleVirtualNetwork.Name, // AddressPrefixes: pulumi.StringArray{ // pulumi.String("10.0.2.0/24"), // }, // }) // if err != nil { // return err // } // exampleNetworkInterface, err := network.NewNetworkInterface(ctx, "example", &network.NetworkInterfaceArgs{ // Name: pulumi.String("example"), // Location: example.Location, // ResourceGroupName: example.Name, // IpConfigurations: network.NetworkInterfaceIpConfigurationArray{ // &network.NetworkInterfaceIpConfigurationArgs{ // Name: pulumi.String("example"), // SubnetId: exampleSubnet.ID(), // PrivateIpAddressAllocation: pulumi.String("Dynamic"), // }, // }, // }) // if err != nil { // return err // } // exampleLinuxVirtualMachine, err := compute.NewLinuxVirtualMachine(ctx, "example", &compute.LinuxVirtualMachineArgs{ // Name: pulumi.String("example"), // ResourceGroupName: example.Name, // Location: example.Location, // Size: pulumi.String("Standard_F2"), // AdminUsername: pulumi.String("adminuser"), // AdminPassword: pulumi.String("example"), // DisablePasswordAuthentication: pulumi.Bool(false), // NetworkInterfaceIds: pulumi.StringArray{ // exampleNetworkInterface.ID(), // }, // OsDisk: &compute.LinuxVirtualMachineOsDiskArgs{ // Caching: pulumi.String("ReadWrite"), // StorageAccountType: pulumi.String("Standard_LRS"), // }, // SourceImageReference: &compute.LinuxVirtualMachineSourceImageReferenceArgs{ // Publisher: pulumi.String("Canonical"), // Offer: pulumi.String("0001-com-ubuntu-server-jammy"), // Sku: pulumi.String("22_04-lts"), // Version: pulumi.String("latest"), // }, // }) // if err != nil { // return err // } // exampleTarget, err := chaosstudio.NewTarget(ctx, "example", &chaosstudio.TargetArgs{ // Location: example.Location, // TargetResourceId: exampleLinuxVirtualMachine.ID(), // TargetType: pulumi.String("Microsoft-VirtualMachine"), // }) // if err != nil { // return err // } // exampleCapability, err := chaosstudio.NewCapability(ctx, "example", &chaosstudio.CapabilityArgs{ // ChaosStudioTargetId: exampleTarget.ID(), // CapabilityType: pulumi.String("Shutdown-1.0"), // }) // if err != nil { // return err // } // _, err = chaosstudio.NewExperiment(ctx, "example", &chaosstudio.ExperimentArgs{ // Location: example.Location, // Name: pulumi.String("example"), // ResourceGroupName: example.Name, // Identity: &chaosstudio.ExperimentIdentityArgs{ // Type: pulumi.String("SystemAssigned"), // }, // Selectors: chaosstudio.ExperimentSelectorArray{ // &chaosstudio.ExperimentSelectorArgs{ // Name: pulumi.String("Selector1"), // ChaosStudioTargetIds: pulumi.StringArray{ // exampleTarget.ID(), // }, // }, // }, // Steps: chaosstudio.ExperimentStepArray{ // &chaosstudio.ExperimentStepArgs{ // Name: pulumi.String("example"), // Branches: chaosstudio.ExperimentStepBranchArray{ // &chaosstudio.ExperimentStepBranchArgs{ // Name: pulumi.String("example"), // Actions: chaosstudio.ExperimentStepBranchActionArray{ // &chaosstudio.ExperimentStepBranchActionArgs{ // Urn: exampleCapability.CapabilityUrn, // SelectorName: pulumi.String("Selector1"), // Parameters: pulumi.StringMap{ // "abruptShutdown": pulumi.String("false"), // }, // ActionType: pulumi.String("continuous"), // Duration: pulumi.String("PT10M"), // }, // }, // }, // }, // }, // }, // }) // 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.Chaos` - 2023-11-01 // // ## Import // // Chaos Studio Experiments can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:chaosstudio/experiment:Experiment example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Chaos/experiments/experiment1 // ``` type Experiment struct { pulumi.CustomResourceState // A `identity` block as defined below. Identity ExperimentIdentityPtrOutput `pulumi:"identity"` // The Azure Region where the Chaos Studio Experiment should exist. Changing this forces a new Chaos Studio Experiment to be created. Location pulumi.StringOutput `pulumi:"location"` // The name which should be used for this Chaos Studio Experiment. Changing this forces a new Chaos Studio Experiment to be created. Name pulumi.StringOutput `pulumi:"name"` // The name of the Resource Group where the Chaos Studio Experiment should exist. Changing this forces a new Chaos Studio Experiment to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // One or more `selectors` blocks as defined below. Selectors ExperimentSelectorArrayOutput `pulumi:"selectors"` // One or more `steps` blocks as defined below. Steps ExperimentStepArrayOutput `pulumi:"steps"` } // NewExperiment registers a new resource with the given unique name, arguments, and options. func NewExperiment(ctx *pulumi.Context, name string, args *ExperimentArgs, opts ...pulumi.ResourceOption) (*Experiment, 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.Selectors == nil { return nil, errors.New("invalid value for required argument 'Selectors'") } if args.Steps == nil { return nil, errors.New("invalid value for required argument 'Steps'") } opts = internal.PkgResourceDefaultOpts(opts) var resource Experiment err := ctx.RegisterResource("azure:chaosstudio/experiment:Experiment", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetExperiment gets an existing Experiment 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 GetExperiment(ctx *pulumi.Context, name string, id pulumi.IDInput, state *ExperimentState, opts ...pulumi.ResourceOption) (*Experiment, error) { var resource Experiment err := ctx.ReadResource("azure:chaosstudio/experiment:Experiment", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering Experiment resources. type experimentState struct { // A `identity` block as defined below. Identity *ExperimentIdentity `pulumi:"identity"` // The Azure Region where the Chaos Studio Experiment should exist. Changing this forces a new Chaos Studio Experiment to be created. Location *string `pulumi:"location"` // The name which should be used for this Chaos Studio Experiment. Changing this forces a new Chaos Studio Experiment to be created. Name *string `pulumi:"name"` // The name of the Resource Group where the Chaos Studio Experiment should exist. Changing this forces a new Chaos Studio Experiment to be created. ResourceGroupName *string `pulumi:"resourceGroupName"` // One or more `selectors` blocks as defined below. Selectors []ExperimentSelector `pulumi:"selectors"` // One or more `steps` blocks as defined below. Steps []ExperimentStep `pulumi:"steps"` } type ExperimentState struct { // A `identity` block as defined below. Identity ExperimentIdentityPtrInput // The Azure Region where the Chaos Studio Experiment should exist. Changing this forces a new Chaos Studio Experiment to be created. Location pulumi.StringPtrInput // The name which should be used for this Chaos Studio Experiment. Changing this forces a new Chaos Studio Experiment to be created. Name pulumi.StringPtrInput // The name of the Resource Group where the Chaos Studio Experiment should exist. Changing this forces a new Chaos Studio Experiment to be created. ResourceGroupName pulumi.StringPtrInput // One or more `selectors` blocks as defined below. Selectors ExperimentSelectorArrayInput // One or more `steps` blocks as defined below. Steps ExperimentStepArrayInput } func (ExperimentState) ElementType() reflect.Type { return reflect.TypeOf((*experimentState)(nil)).Elem() } type experimentArgs struct { // A `identity` block as defined below. Identity *ExperimentIdentity `pulumi:"identity"` // The Azure Region where the Chaos Studio Experiment should exist. Changing this forces a new Chaos Studio Experiment to be created. Location *string `pulumi:"location"` // The name which should be used for this Chaos Studio Experiment. Changing this forces a new Chaos Studio Experiment to be created. Name *string `pulumi:"name"` // The name of the Resource Group where the Chaos Studio Experiment should exist. Changing this forces a new Chaos Studio Experiment to be created. ResourceGroupName string `pulumi:"resourceGroupName"` // One or more `selectors` blocks as defined below. Selectors []ExperimentSelector `pulumi:"selectors"` // One or more `steps` blocks as defined below. Steps []ExperimentStep `pulumi:"steps"` } // The set of arguments for constructing a Experiment resource. type ExperimentArgs struct { // A `identity` block as defined below. Identity ExperimentIdentityPtrInput // The Azure Region where the Chaos Studio Experiment should exist. Changing this forces a new Chaos Studio Experiment to be created. Location pulumi.StringPtrInput // The name which should be used for this Chaos Studio Experiment. Changing this forces a new Chaos Studio Experiment to be created. Name pulumi.StringPtrInput // The name of the Resource Group where the Chaos Studio Experiment should exist. Changing this forces a new Chaos Studio Experiment to be created. ResourceGroupName pulumi.StringInput // One or more `selectors` blocks as defined below. Selectors ExperimentSelectorArrayInput // One or more `steps` blocks as defined below. Steps ExperimentStepArrayInput } func (ExperimentArgs) ElementType() reflect.Type { return reflect.TypeOf((*experimentArgs)(nil)).Elem() } type ExperimentInput interface { pulumi.Input ToExperimentOutput() ExperimentOutput ToExperimentOutputWithContext(ctx context.Context) ExperimentOutput } func (*Experiment) ElementType() reflect.Type { return reflect.TypeOf((**Experiment)(nil)).Elem() } func (i *Experiment) ToExperimentOutput() ExperimentOutput { return i.ToExperimentOutputWithContext(context.Background()) } func (i *Experiment) ToExperimentOutputWithContext(ctx context.Context) ExperimentOutput { return pulumi.ToOutputWithContext(ctx, i).(ExperimentOutput) } // ExperimentArrayInput is an input type that accepts ExperimentArray and ExperimentArrayOutput values. // You can construct a concrete instance of `ExperimentArrayInput` via: // // ExperimentArray{ ExperimentArgs{...} } type ExperimentArrayInput interface { pulumi.Input ToExperimentArrayOutput() ExperimentArrayOutput ToExperimentArrayOutputWithContext(context.Context) ExperimentArrayOutput } type ExperimentArray []ExperimentInput func (ExperimentArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*Experiment)(nil)).Elem() } func (i ExperimentArray) ToExperimentArrayOutput() ExperimentArrayOutput { return i.ToExperimentArrayOutputWithContext(context.Background()) } func (i ExperimentArray) ToExperimentArrayOutputWithContext(ctx context.Context) ExperimentArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(ExperimentArrayOutput) } // ExperimentMapInput is an input type that accepts ExperimentMap and ExperimentMapOutput values. // You can construct a concrete instance of `ExperimentMapInput` via: // // ExperimentMap{ "key": ExperimentArgs{...} } type ExperimentMapInput interface { pulumi.Input ToExperimentMapOutput() ExperimentMapOutput ToExperimentMapOutputWithContext(context.Context) ExperimentMapOutput } type ExperimentMap map[string]ExperimentInput func (ExperimentMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*Experiment)(nil)).Elem() } func (i ExperimentMap) ToExperimentMapOutput() ExperimentMapOutput { return i.ToExperimentMapOutputWithContext(context.Background()) } func (i ExperimentMap) ToExperimentMapOutputWithContext(ctx context.Context) ExperimentMapOutput { return pulumi.ToOutputWithContext(ctx, i).(ExperimentMapOutput) } type ExperimentOutput struct{ *pulumi.OutputState } func (ExperimentOutput) ElementType() reflect.Type { return reflect.TypeOf((**Experiment)(nil)).Elem() } func (o ExperimentOutput) ToExperimentOutput() ExperimentOutput { return o } func (o ExperimentOutput) ToExperimentOutputWithContext(ctx context.Context) ExperimentOutput { return o } // A `identity` block as defined below. func (o ExperimentOutput) Identity() ExperimentIdentityPtrOutput { return o.ApplyT(func(v *Experiment) ExperimentIdentityPtrOutput { return v.Identity }).(ExperimentIdentityPtrOutput) } // The Azure Region where the Chaos Studio Experiment should exist. Changing this forces a new Chaos Studio Experiment to be created. func (o ExperimentOutput) Location() pulumi.StringOutput { return o.ApplyT(func(v *Experiment) pulumi.StringOutput { return v.Location }).(pulumi.StringOutput) } // The name which should be used for this Chaos Studio Experiment. Changing this forces a new Chaos Studio Experiment to be created. func (o ExperimentOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *Experiment) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // The name of the Resource Group where the Chaos Studio Experiment should exist. Changing this forces a new Chaos Studio Experiment to be created. func (o ExperimentOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v *Experiment) pulumi.StringOutput { return v.ResourceGroupName }).(pulumi.StringOutput) } // One or more `selectors` blocks as defined below. func (o ExperimentOutput) Selectors() ExperimentSelectorArrayOutput { return o.ApplyT(func(v *Experiment) ExperimentSelectorArrayOutput { return v.Selectors }).(ExperimentSelectorArrayOutput) } // One or more `steps` blocks as defined below. func (o ExperimentOutput) Steps() ExperimentStepArrayOutput { return o.ApplyT(func(v *Experiment) ExperimentStepArrayOutput { return v.Steps }).(ExperimentStepArrayOutput) } type ExperimentArrayOutput struct{ *pulumi.OutputState } func (ExperimentArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*Experiment)(nil)).Elem() } func (o ExperimentArrayOutput) ToExperimentArrayOutput() ExperimentArrayOutput { return o } func (o ExperimentArrayOutput) ToExperimentArrayOutputWithContext(ctx context.Context) ExperimentArrayOutput { return o } func (o ExperimentArrayOutput) Index(i pulumi.IntInput) ExperimentOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *Experiment { return vs[0].([]*Experiment)[vs[1].(int)] }).(ExperimentOutput) } type ExperimentMapOutput struct{ *pulumi.OutputState } func (ExperimentMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*Experiment)(nil)).Elem() } func (o ExperimentMapOutput) ToExperimentMapOutput() ExperimentMapOutput { return o } func (o ExperimentMapOutput) ToExperimentMapOutputWithContext(ctx context.Context) ExperimentMapOutput { return o } func (o ExperimentMapOutput) MapIndex(k pulumi.StringInput) ExperimentOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *Experiment { return vs[0].(map[string]*Experiment)[vs[1].(string)] }).(ExperimentOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*ExperimentInput)(nil)).Elem(), &Experiment{}) pulumi.RegisterInputType(reflect.TypeOf((*ExperimentArrayInput)(nil)).Elem(), ExperimentArray{}) pulumi.RegisterInputType(reflect.TypeOf((*ExperimentMapInput)(nil)).Elem(), ExperimentMap{}) pulumi.RegisterOutputType(ExperimentOutput{}) pulumi.RegisterOutputType(ExperimentArrayOutput{}) pulumi.RegisterOutputType(ExperimentMapOutput{}) }
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/chaosstudio/capability.go
sdk/go/azure/chaosstudio/capability.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 chaosstudio import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a Chaos Studio Capability. // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/chaosstudio" // "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"), // }, // Identity: &containerservice.KubernetesClusterIdentityArgs{ // Type: pulumi.String("example-value"), // }, // }) // if err != nil { // return err // } // exampleTarget, err := chaosstudio.NewTarget(ctx, "example", &chaosstudio.TargetArgs{ // Location: exampleResourceGroup.Location, // TargetResourceId: example.ID(), // TargetType: pulumi.String("example-value"), // }) // if err != nil { // return err // } // _, err = chaosstudio.NewCapability(ctx, "example", &chaosstudio.CapabilityArgs{ // CapabilityType: pulumi.String("example-value"), // ChaosStudioTargetId: exampleTarget.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.Chaos` - 2023-11-01 // // ## Import // // An existing Chaos Studio Target can be imported into Pulumi using the `resource id`, e.g. // // ```sh // $ pulumi import azure:chaosstudio/capability:Capability example /{scope}/providers/Microsoft.Chaos/targets/{targetName}/capabilities/{capabilityName} // ``` // // * Where `{scope}` is the ID of the Azure Resource under which the Chaos Studio Target exists. For example `/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group`. // // * Where `{targetName}` is the name of the Target. For example `targetValue`. // // * Where `{capabilityName}` is the name of the Capability. For example `capabilityName`. type Capability struct { pulumi.CustomResourceState // The capability that should be applied to the Chaos Studio Target. For supported values please see this Chaos Studio [Fault Library](https://learn.microsoft.com/azure/chaos-studio/chaos-studio-fault-library). Changing this forces a new Chaos Studio Capability to be created. CapabilityType pulumi.StringOutput `pulumi:"capabilityType"` // The Unique Resource Name of the Capability. CapabilityUrn pulumi.StringOutput `pulumi:"capabilityUrn"` // The Chaos Studio Target that the capability should be applied to. Changing this forces a new Chaos Studio Capability to be created. ChaosStudioTargetId pulumi.StringOutput `pulumi:"chaosStudioTargetId"` } // NewCapability registers a new resource with the given unique name, arguments, and options. func NewCapability(ctx *pulumi.Context, name string, args *CapabilityArgs, opts ...pulumi.ResourceOption) (*Capability, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.CapabilityType == nil { return nil, errors.New("invalid value for required argument 'CapabilityType'") } if args.ChaosStudioTargetId == nil { return nil, errors.New("invalid value for required argument 'ChaosStudioTargetId'") } opts = internal.PkgResourceDefaultOpts(opts) var resource Capability err := ctx.RegisterResource("azure:chaosstudio/capability:Capability", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetCapability gets an existing Capability 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 GetCapability(ctx *pulumi.Context, name string, id pulumi.IDInput, state *CapabilityState, opts ...pulumi.ResourceOption) (*Capability, error) { var resource Capability err := ctx.ReadResource("azure:chaosstudio/capability:Capability", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering Capability resources. type capabilityState struct { // The capability that should be applied to the Chaos Studio Target. For supported values please see this Chaos Studio [Fault Library](https://learn.microsoft.com/azure/chaos-studio/chaos-studio-fault-library). Changing this forces a new Chaos Studio Capability to be created. CapabilityType *string `pulumi:"capabilityType"` // The Unique Resource Name of the Capability. CapabilityUrn *string `pulumi:"capabilityUrn"` // The Chaos Studio Target that the capability should be applied to. Changing this forces a new Chaos Studio Capability to be created. ChaosStudioTargetId *string `pulumi:"chaosStudioTargetId"` } type CapabilityState struct { // The capability that should be applied to the Chaos Studio Target. For supported values please see this Chaos Studio [Fault Library](https://learn.microsoft.com/azure/chaos-studio/chaos-studio-fault-library). Changing this forces a new Chaos Studio Capability to be created. CapabilityType pulumi.StringPtrInput // The Unique Resource Name of the Capability. CapabilityUrn pulumi.StringPtrInput // The Chaos Studio Target that the capability should be applied to. Changing this forces a new Chaos Studio Capability to be created. ChaosStudioTargetId pulumi.StringPtrInput } func (CapabilityState) ElementType() reflect.Type { return reflect.TypeOf((*capabilityState)(nil)).Elem() } type capabilityArgs struct { // The capability that should be applied to the Chaos Studio Target. For supported values please see this Chaos Studio [Fault Library](https://learn.microsoft.com/azure/chaos-studio/chaos-studio-fault-library). Changing this forces a new Chaos Studio Capability to be created. CapabilityType string `pulumi:"capabilityType"` // The Chaos Studio Target that the capability should be applied to. Changing this forces a new Chaos Studio Capability to be created. ChaosStudioTargetId string `pulumi:"chaosStudioTargetId"` } // The set of arguments for constructing a Capability resource. type CapabilityArgs struct { // The capability that should be applied to the Chaos Studio Target. For supported values please see this Chaos Studio [Fault Library](https://learn.microsoft.com/azure/chaos-studio/chaos-studio-fault-library). Changing this forces a new Chaos Studio Capability to be created. CapabilityType pulumi.StringInput // The Chaos Studio Target that the capability should be applied to. Changing this forces a new Chaos Studio Capability to be created. ChaosStudioTargetId pulumi.StringInput } func (CapabilityArgs) ElementType() reflect.Type { return reflect.TypeOf((*capabilityArgs)(nil)).Elem() } type CapabilityInput interface { pulumi.Input ToCapabilityOutput() CapabilityOutput ToCapabilityOutputWithContext(ctx context.Context) CapabilityOutput } func (*Capability) ElementType() reflect.Type { return reflect.TypeOf((**Capability)(nil)).Elem() } func (i *Capability) ToCapabilityOutput() CapabilityOutput { return i.ToCapabilityOutputWithContext(context.Background()) } func (i *Capability) ToCapabilityOutputWithContext(ctx context.Context) CapabilityOutput { return pulumi.ToOutputWithContext(ctx, i).(CapabilityOutput) } // CapabilityArrayInput is an input type that accepts CapabilityArray and CapabilityArrayOutput values. // You can construct a concrete instance of `CapabilityArrayInput` via: // // CapabilityArray{ CapabilityArgs{...} } type CapabilityArrayInput interface { pulumi.Input ToCapabilityArrayOutput() CapabilityArrayOutput ToCapabilityArrayOutputWithContext(context.Context) CapabilityArrayOutput } type CapabilityArray []CapabilityInput func (CapabilityArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*Capability)(nil)).Elem() } func (i CapabilityArray) ToCapabilityArrayOutput() CapabilityArrayOutput { return i.ToCapabilityArrayOutputWithContext(context.Background()) } func (i CapabilityArray) ToCapabilityArrayOutputWithContext(ctx context.Context) CapabilityArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(CapabilityArrayOutput) } // CapabilityMapInput is an input type that accepts CapabilityMap and CapabilityMapOutput values. // You can construct a concrete instance of `CapabilityMapInput` via: // // CapabilityMap{ "key": CapabilityArgs{...} } type CapabilityMapInput interface { pulumi.Input ToCapabilityMapOutput() CapabilityMapOutput ToCapabilityMapOutputWithContext(context.Context) CapabilityMapOutput } type CapabilityMap map[string]CapabilityInput func (CapabilityMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*Capability)(nil)).Elem() } func (i CapabilityMap) ToCapabilityMapOutput() CapabilityMapOutput { return i.ToCapabilityMapOutputWithContext(context.Background()) } func (i CapabilityMap) ToCapabilityMapOutputWithContext(ctx context.Context) CapabilityMapOutput { return pulumi.ToOutputWithContext(ctx, i).(CapabilityMapOutput) } type CapabilityOutput struct{ *pulumi.OutputState } func (CapabilityOutput) ElementType() reflect.Type { return reflect.TypeOf((**Capability)(nil)).Elem() } func (o CapabilityOutput) ToCapabilityOutput() CapabilityOutput { return o } func (o CapabilityOutput) ToCapabilityOutputWithContext(ctx context.Context) CapabilityOutput { return o } // The capability that should be applied to the Chaos Studio Target. For supported values please see this Chaos Studio [Fault Library](https://learn.microsoft.com/azure/chaos-studio/chaos-studio-fault-library). Changing this forces a new Chaos Studio Capability to be created. func (o CapabilityOutput) CapabilityType() pulumi.StringOutput { return o.ApplyT(func(v *Capability) pulumi.StringOutput { return v.CapabilityType }).(pulumi.StringOutput) } // The Unique Resource Name of the Capability. func (o CapabilityOutput) CapabilityUrn() pulumi.StringOutput { return o.ApplyT(func(v *Capability) pulumi.StringOutput { return v.CapabilityUrn }).(pulumi.StringOutput) } // The Chaos Studio Target that the capability should be applied to. Changing this forces a new Chaos Studio Capability to be created. func (o CapabilityOutput) ChaosStudioTargetId() pulumi.StringOutput { return o.ApplyT(func(v *Capability) pulumi.StringOutput { return v.ChaosStudioTargetId }).(pulumi.StringOutput) } type CapabilityArrayOutput struct{ *pulumi.OutputState } func (CapabilityArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*Capability)(nil)).Elem() } func (o CapabilityArrayOutput) ToCapabilityArrayOutput() CapabilityArrayOutput { return o } func (o CapabilityArrayOutput) ToCapabilityArrayOutputWithContext(ctx context.Context) CapabilityArrayOutput { return o } func (o CapabilityArrayOutput) Index(i pulumi.IntInput) CapabilityOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *Capability { return vs[0].([]*Capability)[vs[1].(int)] }).(CapabilityOutput) } type CapabilityMapOutput struct{ *pulumi.OutputState } func (CapabilityMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*Capability)(nil)).Elem() } func (o CapabilityMapOutput) ToCapabilityMapOutput() CapabilityMapOutput { return o } func (o CapabilityMapOutput) ToCapabilityMapOutputWithContext(ctx context.Context) CapabilityMapOutput { return o } func (o CapabilityMapOutput) MapIndex(k pulumi.StringInput) CapabilityOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *Capability { return vs[0].(map[string]*Capability)[vs[1].(string)] }).(CapabilityOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*CapabilityInput)(nil)).Elem(), &Capability{}) pulumi.RegisterInputType(reflect.TypeOf((*CapabilityArrayInput)(nil)).Elem(), CapabilityArray{}) pulumi.RegisterInputType(reflect.TypeOf((*CapabilityMapInput)(nil)).Elem(), CapabilityMap{}) pulumi.RegisterOutputType(CapabilityOutput{}) pulumi.RegisterOutputType(CapabilityArrayOutput{}) pulumi.RegisterOutputType(CapabilityMapOutput{}) }
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/chaosstudio/target.go
sdk/go/azure/chaosstudio/target.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 chaosstudio 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 Chaos Studio Target. // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/chaosstudio" // "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 // } // _, err = chaosstudio.NewTarget(ctx, "example", &chaosstudio.TargetArgs{ // Location: exampleResourceGroup.Location, // TargetResourceId: example.ID(), // TargetType: pulumi.String("example-value"), // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## Import // // An existing Chaos Studio Target can be imported into Pulumi using the `resource id`, e.g. // // ```sh // $ pulumi import azure:chaosstudio/target:Target example /{scope}/providers/Microsoft.Chaos/targets/{targetName} // ``` // // * Where `{scope}` is the ID of the Azure Resource under which the Chaos Studio Target exists. For example `/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group`. // // * Where `{targetName}` is the name of the Target. For example `targetValue`. type Target struct { pulumi.CustomResourceState // The Azure Region where the Chaos Studio Target should exist. Changing this forces a new Chaos Studio Target to be created. Location pulumi.StringOutput `pulumi:"location"` // Specifies the Target Resource Id within which this Chaos Studio Target should exist. Changing this forces a new Chaos Studio Target to be created. TargetResourceId pulumi.StringOutput `pulumi:"targetResourceId"` // The name of the Chaos Studio Target. This has the format of [publisher]-[targetType] e.g. `Microsoft-StorageAccount`. For supported values please see this Target Type column in [this table](https://learn.microsoft.com/azure/chaos-studio/chaos-studio-fault-providers). Changing this forces a new Chaos Studio Target to be created. TargetType pulumi.StringOutput `pulumi:"targetType"` } // NewTarget registers a new resource with the given unique name, arguments, and options. func NewTarget(ctx *pulumi.Context, name string, args *TargetArgs, opts ...pulumi.ResourceOption) (*Target, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.TargetResourceId == nil { return nil, errors.New("invalid value for required argument 'TargetResourceId'") } if args.TargetType == nil { return nil, errors.New("invalid value for required argument 'TargetType'") } opts = internal.PkgResourceDefaultOpts(opts) var resource Target err := ctx.RegisterResource("azure:chaosstudio/target:Target", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetTarget gets an existing Target 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 GetTarget(ctx *pulumi.Context, name string, id pulumi.IDInput, state *TargetState, opts ...pulumi.ResourceOption) (*Target, error) { var resource Target err := ctx.ReadResource("azure:chaosstudio/target:Target", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering Target resources. type targetState struct { // The Azure Region where the Chaos Studio Target should exist. Changing this forces a new Chaos Studio Target to be created. Location *string `pulumi:"location"` // Specifies the Target Resource Id within which this Chaos Studio Target should exist. Changing this forces a new Chaos Studio Target to be created. TargetResourceId *string `pulumi:"targetResourceId"` // The name of the Chaos Studio Target. This has the format of [publisher]-[targetType] e.g. `Microsoft-StorageAccount`. For supported values please see this Target Type column in [this table](https://learn.microsoft.com/azure/chaos-studio/chaos-studio-fault-providers). Changing this forces a new Chaos Studio Target to be created. TargetType *string `pulumi:"targetType"` } type TargetState struct { // The Azure Region where the Chaos Studio Target should exist. Changing this forces a new Chaos Studio Target to be created. Location pulumi.StringPtrInput // Specifies the Target Resource Id within which this Chaos Studio Target should exist. Changing this forces a new Chaos Studio Target to be created. TargetResourceId pulumi.StringPtrInput // The name of the Chaos Studio Target. This has the format of [publisher]-[targetType] e.g. `Microsoft-StorageAccount`. For supported values please see this Target Type column in [this table](https://learn.microsoft.com/azure/chaos-studio/chaos-studio-fault-providers). Changing this forces a new Chaos Studio Target to be created. TargetType pulumi.StringPtrInput } func (TargetState) ElementType() reflect.Type { return reflect.TypeOf((*targetState)(nil)).Elem() } type targetArgs struct { // The Azure Region where the Chaos Studio Target should exist. Changing this forces a new Chaos Studio Target to be created. Location *string `pulumi:"location"` // Specifies the Target Resource Id within which this Chaos Studio Target should exist. Changing this forces a new Chaos Studio Target to be created. TargetResourceId string `pulumi:"targetResourceId"` // The name of the Chaos Studio Target. This has the format of [publisher]-[targetType] e.g. `Microsoft-StorageAccount`. For supported values please see this Target Type column in [this table](https://learn.microsoft.com/azure/chaos-studio/chaos-studio-fault-providers). Changing this forces a new Chaos Studio Target to be created. TargetType string `pulumi:"targetType"` } // The set of arguments for constructing a Target resource. type TargetArgs struct { // The Azure Region where the Chaos Studio Target should exist. Changing this forces a new Chaos Studio Target to be created. Location pulumi.StringPtrInput // Specifies the Target Resource Id within which this Chaos Studio Target should exist. Changing this forces a new Chaos Studio Target to be created. TargetResourceId pulumi.StringInput // The name of the Chaos Studio Target. This has the format of [publisher]-[targetType] e.g. `Microsoft-StorageAccount`. For supported values please see this Target Type column in [this table](https://learn.microsoft.com/azure/chaos-studio/chaos-studio-fault-providers). Changing this forces a new Chaos Studio Target to be created. TargetType pulumi.StringInput } func (TargetArgs) ElementType() reflect.Type { return reflect.TypeOf((*targetArgs)(nil)).Elem() } type TargetInput interface { pulumi.Input ToTargetOutput() TargetOutput ToTargetOutputWithContext(ctx context.Context) TargetOutput } func (*Target) ElementType() reflect.Type { return reflect.TypeOf((**Target)(nil)).Elem() } func (i *Target) ToTargetOutput() TargetOutput { return i.ToTargetOutputWithContext(context.Background()) } func (i *Target) ToTargetOutputWithContext(ctx context.Context) TargetOutput { return pulumi.ToOutputWithContext(ctx, i).(TargetOutput) } // TargetArrayInput is an input type that accepts TargetArray and TargetArrayOutput values. // You can construct a concrete instance of `TargetArrayInput` via: // // TargetArray{ TargetArgs{...} } type TargetArrayInput interface { pulumi.Input ToTargetArrayOutput() TargetArrayOutput ToTargetArrayOutputWithContext(context.Context) TargetArrayOutput } type TargetArray []TargetInput func (TargetArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*Target)(nil)).Elem() } func (i TargetArray) ToTargetArrayOutput() TargetArrayOutput { return i.ToTargetArrayOutputWithContext(context.Background()) } func (i TargetArray) ToTargetArrayOutputWithContext(ctx context.Context) TargetArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(TargetArrayOutput) } // TargetMapInput is an input type that accepts TargetMap and TargetMapOutput values. // You can construct a concrete instance of `TargetMapInput` via: // // TargetMap{ "key": TargetArgs{...} } type TargetMapInput interface { pulumi.Input ToTargetMapOutput() TargetMapOutput ToTargetMapOutputWithContext(context.Context) TargetMapOutput } type TargetMap map[string]TargetInput func (TargetMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*Target)(nil)).Elem() } func (i TargetMap) ToTargetMapOutput() TargetMapOutput { return i.ToTargetMapOutputWithContext(context.Background()) } func (i TargetMap) ToTargetMapOutputWithContext(ctx context.Context) TargetMapOutput { return pulumi.ToOutputWithContext(ctx, i).(TargetMapOutput) } type TargetOutput struct{ *pulumi.OutputState } func (TargetOutput) ElementType() reflect.Type { return reflect.TypeOf((**Target)(nil)).Elem() } func (o TargetOutput) ToTargetOutput() TargetOutput { return o } func (o TargetOutput) ToTargetOutputWithContext(ctx context.Context) TargetOutput { return o } // The Azure Region where the Chaos Studio Target should exist. Changing this forces a new Chaos Studio Target to be created. func (o TargetOutput) Location() pulumi.StringOutput { return o.ApplyT(func(v *Target) pulumi.StringOutput { return v.Location }).(pulumi.StringOutput) } // Specifies the Target Resource Id within which this Chaos Studio Target should exist. Changing this forces a new Chaos Studio Target to be created. func (o TargetOutput) TargetResourceId() pulumi.StringOutput { return o.ApplyT(func(v *Target) pulumi.StringOutput { return v.TargetResourceId }).(pulumi.StringOutput) } // The name of the Chaos Studio Target. This has the format of [publisher]-[targetType] e.g. `Microsoft-StorageAccount`. For supported values please see this Target Type column in [this table](https://learn.microsoft.com/azure/chaos-studio/chaos-studio-fault-providers). Changing this forces a new Chaos Studio Target to be created. func (o TargetOutput) TargetType() pulumi.StringOutput { return o.ApplyT(func(v *Target) pulumi.StringOutput { return v.TargetType }).(pulumi.StringOutput) } type TargetArrayOutput struct{ *pulumi.OutputState } func (TargetArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*Target)(nil)).Elem() } func (o TargetArrayOutput) ToTargetArrayOutput() TargetArrayOutput { return o } func (o TargetArrayOutput) ToTargetArrayOutputWithContext(ctx context.Context) TargetArrayOutput { return o } func (o TargetArrayOutput) Index(i pulumi.IntInput) TargetOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *Target { return vs[0].([]*Target)[vs[1].(int)] }).(TargetOutput) } type TargetMapOutput struct{ *pulumi.OutputState } func (TargetMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*Target)(nil)).Elem() } func (o TargetMapOutput) ToTargetMapOutput() TargetMapOutput { return o } func (o TargetMapOutput) ToTargetMapOutputWithContext(ctx context.Context) TargetMapOutput { return o } func (o TargetMapOutput) MapIndex(k pulumi.StringInput) TargetOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *Target { return vs[0].(map[string]*Target)[vs[1].(string)] }).(TargetOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*TargetInput)(nil)).Elem(), &Target{}) pulumi.RegisterInputType(reflect.TypeOf((*TargetArrayInput)(nil)).Elem(), TargetArray{}) pulumi.RegisterInputType(reflect.TypeOf((*TargetMapInput)(nil)).Elem(), TargetMap{}) pulumi.RegisterOutputType(TargetOutput{}) pulumi.RegisterOutputType(TargetArrayOutput{}) pulumi.RegisterOutputType(TargetMapOutput{}) }
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/avs/init.go
sdk/go/azure/avs/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 avs 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:avs/cluster:Cluster": r = &Cluster{} case "azure:avs/expressRouteAuthorization:ExpressRouteAuthorization": r = &ExpressRouteAuthorization{} case "azure:avs/netappVolumeAttachment:NetappVolumeAttachment": r = &NetappVolumeAttachment{} case "azure:avs/privateCloud:PrivateCloud": r = &PrivateCloud{} 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", "avs/cluster", &module{version}, ) pulumi.RegisterResourceModule( "azure", "avs/expressRouteAuthorization", &module{version}, ) pulumi.RegisterResourceModule( "azure", "avs/netappVolumeAttachment", &module{version}, ) pulumi.RegisterResourceModule( "azure", "avs/privateCloud", &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/avs/pulumiTypes.go
sdk/go/azure/avs/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 avs 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 PrivateCloudCircuit struct { // The ID of the ExpressRoute Circuit. ExpressRouteId *string `pulumi:"expressRouteId"` // The ID of the ExpressRoute Circuit private peering. ExpressRoutePrivatePeeringId *string `pulumi:"expressRoutePrivatePeeringId"` // The CIDR of the primary subnet. PrimarySubnetCidr *string `pulumi:"primarySubnetCidr"` // The CIDR of the secondary subnet. SecondarySubnetCidr *string `pulumi:"secondarySubnetCidr"` } // PrivateCloudCircuitInput is an input type that accepts PrivateCloudCircuitArgs and PrivateCloudCircuitOutput values. // You can construct a concrete instance of `PrivateCloudCircuitInput` via: // // PrivateCloudCircuitArgs{...} type PrivateCloudCircuitInput interface { pulumi.Input ToPrivateCloudCircuitOutput() PrivateCloudCircuitOutput ToPrivateCloudCircuitOutputWithContext(context.Context) PrivateCloudCircuitOutput } type PrivateCloudCircuitArgs struct { // The ID of the ExpressRoute Circuit. ExpressRouteId pulumi.StringPtrInput `pulumi:"expressRouteId"` // The ID of the ExpressRoute Circuit private peering. ExpressRoutePrivatePeeringId pulumi.StringPtrInput `pulumi:"expressRoutePrivatePeeringId"` // The CIDR of the primary subnet. PrimarySubnetCidr pulumi.StringPtrInput `pulumi:"primarySubnetCidr"` // The CIDR of the secondary subnet. SecondarySubnetCidr pulumi.StringPtrInput `pulumi:"secondarySubnetCidr"` } func (PrivateCloudCircuitArgs) ElementType() reflect.Type { return reflect.TypeOf((*PrivateCloudCircuit)(nil)).Elem() } func (i PrivateCloudCircuitArgs) ToPrivateCloudCircuitOutput() PrivateCloudCircuitOutput { return i.ToPrivateCloudCircuitOutputWithContext(context.Background()) } func (i PrivateCloudCircuitArgs) ToPrivateCloudCircuitOutputWithContext(ctx context.Context) PrivateCloudCircuitOutput { return pulumi.ToOutputWithContext(ctx, i).(PrivateCloudCircuitOutput) } // PrivateCloudCircuitArrayInput is an input type that accepts PrivateCloudCircuitArray and PrivateCloudCircuitArrayOutput values. // You can construct a concrete instance of `PrivateCloudCircuitArrayInput` via: // // PrivateCloudCircuitArray{ PrivateCloudCircuitArgs{...} } type PrivateCloudCircuitArrayInput interface { pulumi.Input ToPrivateCloudCircuitArrayOutput() PrivateCloudCircuitArrayOutput ToPrivateCloudCircuitArrayOutputWithContext(context.Context) PrivateCloudCircuitArrayOutput } type PrivateCloudCircuitArray []PrivateCloudCircuitInput func (PrivateCloudCircuitArray) ElementType() reflect.Type { return reflect.TypeOf((*[]PrivateCloudCircuit)(nil)).Elem() } func (i PrivateCloudCircuitArray) ToPrivateCloudCircuitArrayOutput() PrivateCloudCircuitArrayOutput { return i.ToPrivateCloudCircuitArrayOutputWithContext(context.Background()) } func (i PrivateCloudCircuitArray) ToPrivateCloudCircuitArrayOutputWithContext(ctx context.Context) PrivateCloudCircuitArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(PrivateCloudCircuitArrayOutput) } type PrivateCloudCircuitOutput struct{ *pulumi.OutputState } func (PrivateCloudCircuitOutput) ElementType() reflect.Type { return reflect.TypeOf((*PrivateCloudCircuit)(nil)).Elem() } func (o PrivateCloudCircuitOutput) ToPrivateCloudCircuitOutput() PrivateCloudCircuitOutput { return o } func (o PrivateCloudCircuitOutput) ToPrivateCloudCircuitOutputWithContext(ctx context.Context) PrivateCloudCircuitOutput { return o } // The ID of the ExpressRoute Circuit. func (o PrivateCloudCircuitOutput) ExpressRouteId() pulumi.StringPtrOutput { return o.ApplyT(func(v PrivateCloudCircuit) *string { return v.ExpressRouteId }).(pulumi.StringPtrOutput) } // The ID of the ExpressRoute Circuit private peering. func (o PrivateCloudCircuitOutput) ExpressRoutePrivatePeeringId() pulumi.StringPtrOutput { return o.ApplyT(func(v PrivateCloudCircuit) *string { return v.ExpressRoutePrivatePeeringId }).(pulumi.StringPtrOutput) } // The CIDR of the primary subnet. func (o PrivateCloudCircuitOutput) PrimarySubnetCidr() pulumi.StringPtrOutput { return o.ApplyT(func(v PrivateCloudCircuit) *string { return v.PrimarySubnetCidr }).(pulumi.StringPtrOutput) } // The CIDR of the secondary subnet. func (o PrivateCloudCircuitOutput) SecondarySubnetCidr() pulumi.StringPtrOutput { return o.ApplyT(func(v PrivateCloudCircuit) *string { return v.SecondarySubnetCidr }).(pulumi.StringPtrOutput) } type PrivateCloudCircuitArrayOutput struct{ *pulumi.OutputState } func (PrivateCloudCircuitArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]PrivateCloudCircuit)(nil)).Elem() } func (o PrivateCloudCircuitArrayOutput) ToPrivateCloudCircuitArrayOutput() PrivateCloudCircuitArrayOutput { return o } func (o PrivateCloudCircuitArrayOutput) ToPrivateCloudCircuitArrayOutputWithContext(ctx context.Context) PrivateCloudCircuitArrayOutput { return o } func (o PrivateCloudCircuitArrayOutput) Index(i pulumi.IntInput) PrivateCloudCircuitOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) PrivateCloudCircuit { return vs[0].([]PrivateCloudCircuit)[vs[1].(int)] }).(PrivateCloudCircuitOutput) } type PrivateCloudManagementCluster struct { // A list of hosts in the management cluster. Hosts []string `pulumi:"hosts"` // The ID of the management cluster. Id *int `pulumi:"id"` // The size of the management cluster. This field can not updated with `internetConnectionEnabled` together. Size int `pulumi:"size"` } // PrivateCloudManagementClusterInput is an input type that accepts PrivateCloudManagementClusterArgs and PrivateCloudManagementClusterOutput values. // You can construct a concrete instance of `PrivateCloudManagementClusterInput` via: // // PrivateCloudManagementClusterArgs{...} type PrivateCloudManagementClusterInput interface { pulumi.Input ToPrivateCloudManagementClusterOutput() PrivateCloudManagementClusterOutput ToPrivateCloudManagementClusterOutputWithContext(context.Context) PrivateCloudManagementClusterOutput } type PrivateCloudManagementClusterArgs struct { // A list of hosts in the management cluster. Hosts pulumi.StringArrayInput `pulumi:"hosts"` // The ID of the management cluster. Id pulumi.IntPtrInput `pulumi:"id"` // The size of the management cluster. This field can not updated with `internetConnectionEnabled` together. Size pulumi.IntInput `pulumi:"size"` } func (PrivateCloudManagementClusterArgs) ElementType() reflect.Type { return reflect.TypeOf((*PrivateCloudManagementCluster)(nil)).Elem() } func (i PrivateCloudManagementClusterArgs) ToPrivateCloudManagementClusterOutput() PrivateCloudManagementClusterOutput { return i.ToPrivateCloudManagementClusterOutputWithContext(context.Background()) } func (i PrivateCloudManagementClusterArgs) ToPrivateCloudManagementClusterOutputWithContext(ctx context.Context) PrivateCloudManagementClusterOutput { return pulumi.ToOutputWithContext(ctx, i).(PrivateCloudManagementClusterOutput) } func (i PrivateCloudManagementClusterArgs) ToPrivateCloudManagementClusterPtrOutput() PrivateCloudManagementClusterPtrOutput { return i.ToPrivateCloudManagementClusterPtrOutputWithContext(context.Background()) } func (i PrivateCloudManagementClusterArgs) ToPrivateCloudManagementClusterPtrOutputWithContext(ctx context.Context) PrivateCloudManagementClusterPtrOutput { return pulumi.ToOutputWithContext(ctx, i).(PrivateCloudManagementClusterOutput).ToPrivateCloudManagementClusterPtrOutputWithContext(ctx) } // PrivateCloudManagementClusterPtrInput is an input type that accepts PrivateCloudManagementClusterArgs, PrivateCloudManagementClusterPtr and PrivateCloudManagementClusterPtrOutput values. // You can construct a concrete instance of `PrivateCloudManagementClusterPtrInput` via: // // PrivateCloudManagementClusterArgs{...} // // or: // // nil type PrivateCloudManagementClusterPtrInput interface { pulumi.Input ToPrivateCloudManagementClusterPtrOutput() PrivateCloudManagementClusterPtrOutput ToPrivateCloudManagementClusterPtrOutputWithContext(context.Context) PrivateCloudManagementClusterPtrOutput } type privateCloudManagementClusterPtrType PrivateCloudManagementClusterArgs func PrivateCloudManagementClusterPtr(v *PrivateCloudManagementClusterArgs) PrivateCloudManagementClusterPtrInput { return (*privateCloudManagementClusterPtrType)(v) } func (*privateCloudManagementClusterPtrType) ElementType() reflect.Type { return reflect.TypeOf((**PrivateCloudManagementCluster)(nil)).Elem() } func (i *privateCloudManagementClusterPtrType) ToPrivateCloudManagementClusterPtrOutput() PrivateCloudManagementClusterPtrOutput { return i.ToPrivateCloudManagementClusterPtrOutputWithContext(context.Background()) } func (i *privateCloudManagementClusterPtrType) ToPrivateCloudManagementClusterPtrOutputWithContext(ctx context.Context) PrivateCloudManagementClusterPtrOutput { return pulumi.ToOutputWithContext(ctx, i).(PrivateCloudManagementClusterPtrOutput) } type PrivateCloudManagementClusterOutput struct{ *pulumi.OutputState } func (PrivateCloudManagementClusterOutput) ElementType() reflect.Type { return reflect.TypeOf((*PrivateCloudManagementCluster)(nil)).Elem() } func (o PrivateCloudManagementClusterOutput) ToPrivateCloudManagementClusterOutput() PrivateCloudManagementClusterOutput { return o } func (o PrivateCloudManagementClusterOutput) ToPrivateCloudManagementClusterOutputWithContext(ctx context.Context) PrivateCloudManagementClusterOutput { return o } func (o PrivateCloudManagementClusterOutput) ToPrivateCloudManagementClusterPtrOutput() PrivateCloudManagementClusterPtrOutput { return o.ToPrivateCloudManagementClusterPtrOutputWithContext(context.Background()) } func (o PrivateCloudManagementClusterOutput) ToPrivateCloudManagementClusterPtrOutputWithContext(ctx context.Context) PrivateCloudManagementClusterPtrOutput { return o.ApplyTWithContext(ctx, func(_ context.Context, v PrivateCloudManagementCluster) *PrivateCloudManagementCluster { return &v }).(PrivateCloudManagementClusterPtrOutput) } // A list of hosts in the management cluster. func (o PrivateCloudManagementClusterOutput) Hosts() pulumi.StringArrayOutput { return o.ApplyT(func(v PrivateCloudManagementCluster) []string { return v.Hosts }).(pulumi.StringArrayOutput) } // The ID of the management cluster. func (o PrivateCloudManagementClusterOutput) Id() pulumi.IntPtrOutput { return o.ApplyT(func(v PrivateCloudManagementCluster) *int { return v.Id }).(pulumi.IntPtrOutput) } // The size of the management cluster. This field can not updated with `internetConnectionEnabled` together. func (o PrivateCloudManagementClusterOutput) Size() pulumi.IntOutput { return o.ApplyT(func(v PrivateCloudManagementCluster) int { return v.Size }).(pulumi.IntOutput) } type PrivateCloudManagementClusterPtrOutput struct{ *pulumi.OutputState } func (PrivateCloudManagementClusterPtrOutput) ElementType() reflect.Type { return reflect.TypeOf((**PrivateCloudManagementCluster)(nil)).Elem() } func (o PrivateCloudManagementClusterPtrOutput) ToPrivateCloudManagementClusterPtrOutput() PrivateCloudManagementClusterPtrOutput { return o } func (o PrivateCloudManagementClusterPtrOutput) ToPrivateCloudManagementClusterPtrOutputWithContext(ctx context.Context) PrivateCloudManagementClusterPtrOutput { return o } func (o PrivateCloudManagementClusterPtrOutput) Elem() PrivateCloudManagementClusterOutput { return o.ApplyT(func(v *PrivateCloudManagementCluster) PrivateCloudManagementCluster { if v != nil { return *v } var ret PrivateCloudManagementCluster return ret }).(PrivateCloudManagementClusterOutput) } // A list of hosts in the management cluster. func (o PrivateCloudManagementClusterPtrOutput) Hosts() pulumi.StringArrayOutput { return o.ApplyT(func(v *PrivateCloudManagementCluster) []string { if v == nil { return nil } return v.Hosts }).(pulumi.StringArrayOutput) } // The ID of the management cluster. func (o PrivateCloudManagementClusterPtrOutput) Id() pulumi.IntPtrOutput { return o.ApplyT(func(v *PrivateCloudManagementCluster) *int { if v == nil { return nil } return v.Id }).(pulumi.IntPtrOutput) } // The size of the management cluster. This field can not updated with `internetConnectionEnabled` together. func (o PrivateCloudManagementClusterPtrOutput) Size() pulumi.IntPtrOutput { return o.ApplyT(func(v *PrivateCloudManagementCluster) *int { if v == nil { return nil } return &v.Size }).(pulumi.IntPtrOutput) } type GetPrivateCloudCircuit struct { // The ID of the ExpressRoute Circuit. ExpressRouteId string `pulumi:"expressRouteId"` // The ID of the ExpressRoute Circuit private peering. ExpressRoutePrivatePeeringId string `pulumi:"expressRoutePrivatePeeringId"` // The CIDR of the primary subnet. PrimarySubnetCidr string `pulumi:"primarySubnetCidr"` // The CIDR of the secondary subnet. SecondarySubnetCidr string `pulumi:"secondarySubnetCidr"` } // GetPrivateCloudCircuitInput is an input type that accepts GetPrivateCloudCircuitArgs and GetPrivateCloudCircuitOutput values. // You can construct a concrete instance of `GetPrivateCloudCircuitInput` via: // // GetPrivateCloudCircuitArgs{...} type GetPrivateCloudCircuitInput interface { pulumi.Input ToGetPrivateCloudCircuitOutput() GetPrivateCloudCircuitOutput ToGetPrivateCloudCircuitOutputWithContext(context.Context) GetPrivateCloudCircuitOutput } type GetPrivateCloudCircuitArgs struct { // The ID of the ExpressRoute Circuit. ExpressRouteId pulumi.StringInput `pulumi:"expressRouteId"` // The ID of the ExpressRoute Circuit private peering. ExpressRoutePrivatePeeringId pulumi.StringInput `pulumi:"expressRoutePrivatePeeringId"` // The CIDR of the primary subnet. PrimarySubnetCidr pulumi.StringInput `pulumi:"primarySubnetCidr"` // The CIDR of the secondary subnet. SecondarySubnetCidr pulumi.StringInput `pulumi:"secondarySubnetCidr"` } func (GetPrivateCloudCircuitArgs) ElementType() reflect.Type { return reflect.TypeOf((*GetPrivateCloudCircuit)(nil)).Elem() } func (i GetPrivateCloudCircuitArgs) ToGetPrivateCloudCircuitOutput() GetPrivateCloudCircuitOutput { return i.ToGetPrivateCloudCircuitOutputWithContext(context.Background()) } func (i GetPrivateCloudCircuitArgs) ToGetPrivateCloudCircuitOutputWithContext(ctx context.Context) GetPrivateCloudCircuitOutput { return pulumi.ToOutputWithContext(ctx, i).(GetPrivateCloudCircuitOutput) } // GetPrivateCloudCircuitArrayInput is an input type that accepts GetPrivateCloudCircuitArray and GetPrivateCloudCircuitArrayOutput values. // You can construct a concrete instance of `GetPrivateCloudCircuitArrayInput` via: // // GetPrivateCloudCircuitArray{ GetPrivateCloudCircuitArgs{...} } type GetPrivateCloudCircuitArrayInput interface { pulumi.Input ToGetPrivateCloudCircuitArrayOutput() GetPrivateCloudCircuitArrayOutput ToGetPrivateCloudCircuitArrayOutputWithContext(context.Context) GetPrivateCloudCircuitArrayOutput } type GetPrivateCloudCircuitArray []GetPrivateCloudCircuitInput func (GetPrivateCloudCircuitArray) ElementType() reflect.Type { return reflect.TypeOf((*[]GetPrivateCloudCircuit)(nil)).Elem() } func (i GetPrivateCloudCircuitArray) ToGetPrivateCloudCircuitArrayOutput() GetPrivateCloudCircuitArrayOutput { return i.ToGetPrivateCloudCircuitArrayOutputWithContext(context.Background()) } func (i GetPrivateCloudCircuitArray) ToGetPrivateCloudCircuitArrayOutputWithContext(ctx context.Context) GetPrivateCloudCircuitArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(GetPrivateCloudCircuitArrayOutput) } type GetPrivateCloudCircuitOutput struct{ *pulumi.OutputState } func (GetPrivateCloudCircuitOutput) ElementType() reflect.Type { return reflect.TypeOf((*GetPrivateCloudCircuit)(nil)).Elem() } func (o GetPrivateCloudCircuitOutput) ToGetPrivateCloudCircuitOutput() GetPrivateCloudCircuitOutput { return o } func (o GetPrivateCloudCircuitOutput) ToGetPrivateCloudCircuitOutputWithContext(ctx context.Context) GetPrivateCloudCircuitOutput { return o } // The ID of the ExpressRoute Circuit. func (o GetPrivateCloudCircuitOutput) ExpressRouteId() pulumi.StringOutput { return o.ApplyT(func(v GetPrivateCloudCircuit) string { return v.ExpressRouteId }).(pulumi.StringOutput) } // The ID of the ExpressRoute Circuit private peering. func (o GetPrivateCloudCircuitOutput) ExpressRoutePrivatePeeringId() pulumi.StringOutput { return o.ApplyT(func(v GetPrivateCloudCircuit) string { return v.ExpressRoutePrivatePeeringId }).(pulumi.StringOutput) } // The CIDR of the primary subnet. func (o GetPrivateCloudCircuitOutput) PrimarySubnetCidr() pulumi.StringOutput { return o.ApplyT(func(v GetPrivateCloudCircuit) string { return v.PrimarySubnetCidr }).(pulumi.StringOutput) } // The CIDR of the secondary subnet. func (o GetPrivateCloudCircuitOutput) SecondarySubnetCidr() pulumi.StringOutput { return o.ApplyT(func(v GetPrivateCloudCircuit) string { return v.SecondarySubnetCidr }).(pulumi.StringOutput) } type GetPrivateCloudCircuitArrayOutput struct{ *pulumi.OutputState } func (GetPrivateCloudCircuitArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]GetPrivateCloudCircuit)(nil)).Elem() } func (o GetPrivateCloudCircuitArrayOutput) ToGetPrivateCloudCircuitArrayOutput() GetPrivateCloudCircuitArrayOutput { return o } func (o GetPrivateCloudCircuitArrayOutput) ToGetPrivateCloudCircuitArrayOutputWithContext(ctx context.Context) GetPrivateCloudCircuitArrayOutput { return o } func (o GetPrivateCloudCircuitArrayOutput) Index(i pulumi.IntInput) GetPrivateCloudCircuitOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) GetPrivateCloudCircuit { return vs[0].([]GetPrivateCloudCircuit)[vs[1].(int)] }).(GetPrivateCloudCircuitOutput) } type GetPrivateCloudManagementCluster struct { // The list of the hosts in the management cluster. Hosts []string `pulumi:"hosts"` // The ID of the management cluster. Id int `pulumi:"id"` // The size of the management cluster. Size int `pulumi:"size"` } // GetPrivateCloudManagementClusterInput is an input type that accepts GetPrivateCloudManagementClusterArgs and GetPrivateCloudManagementClusterOutput values. // You can construct a concrete instance of `GetPrivateCloudManagementClusterInput` via: // // GetPrivateCloudManagementClusterArgs{...} type GetPrivateCloudManagementClusterInput interface { pulumi.Input ToGetPrivateCloudManagementClusterOutput() GetPrivateCloudManagementClusterOutput ToGetPrivateCloudManagementClusterOutputWithContext(context.Context) GetPrivateCloudManagementClusterOutput } type GetPrivateCloudManagementClusterArgs struct { // The list of the hosts in the management cluster. Hosts pulumi.StringArrayInput `pulumi:"hosts"` // The ID of the management cluster. Id pulumi.IntInput `pulumi:"id"` // The size of the management cluster. Size pulumi.IntInput `pulumi:"size"` } func (GetPrivateCloudManagementClusterArgs) ElementType() reflect.Type { return reflect.TypeOf((*GetPrivateCloudManagementCluster)(nil)).Elem() } func (i GetPrivateCloudManagementClusterArgs) ToGetPrivateCloudManagementClusterOutput() GetPrivateCloudManagementClusterOutput { return i.ToGetPrivateCloudManagementClusterOutputWithContext(context.Background()) } func (i GetPrivateCloudManagementClusterArgs) ToGetPrivateCloudManagementClusterOutputWithContext(ctx context.Context) GetPrivateCloudManagementClusterOutput { return pulumi.ToOutputWithContext(ctx, i).(GetPrivateCloudManagementClusterOutput) } // GetPrivateCloudManagementClusterArrayInput is an input type that accepts GetPrivateCloudManagementClusterArray and GetPrivateCloudManagementClusterArrayOutput values. // You can construct a concrete instance of `GetPrivateCloudManagementClusterArrayInput` via: // // GetPrivateCloudManagementClusterArray{ GetPrivateCloudManagementClusterArgs{...} } type GetPrivateCloudManagementClusterArrayInput interface { pulumi.Input ToGetPrivateCloudManagementClusterArrayOutput() GetPrivateCloudManagementClusterArrayOutput ToGetPrivateCloudManagementClusterArrayOutputWithContext(context.Context) GetPrivateCloudManagementClusterArrayOutput } type GetPrivateCloudManagementClusterArray []GetPrivateCloudManagementClusterInput func (GetPrivateCloudManagementClusterArray) ElementType() reflect.Type { return reflect.TypeOf((*[]GetPrivateCloudManagementCluster)(nil)).Elem() } func (i GetPrivateCloudManagementClusterArray) ToGetPrivateCloudManagementClusterArrayOutput() GetPrivateCloudManagementClusterArrayOutput { return i.ToGetPrivateCloudManagementClusterArrayOutputWithContext(context.Background()) } func (i GetPrivateCloudManagementClusterArray) ToGetPrivateCloudManagementClusterArrayOutputWithContext(ctx context.Context) GetPrivateCloudManagementClusterArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(GetPrivateCloudManagementClusterArrayOutput) } type GetPrivateCloudManagementClusterOutput struct{ *pulumi.OutputState } func (GetPrivateCloudManagementClusterOutput) ElementType() reflect.Type { return reflect.TypeOf((*GetPrivateCloudManagementCluster)(nil)).Elem() } func (o GetPrivateCloudManagementClusterOutput) ToGetPrivateCloudManagementClusterOutput() GetPrivateCloudManagementClusterOutput { return o } func (o GetPrivateCloudManagementClusterOutput) ToGetPrivateCloudManagementClusterOutputWithContext(ctx context.Context) GetPrivateCloudManagementClusterOutput { return o } // The list of the hosts in the management cluster. func (o GetPrivateCloudManagementClusterOutput) Hosts() pulumi.StringArrayOutput { return o.ApplyT(func(v GetPrivateCloudManagementCluster) []string { return v.Hosts }).(pulumi.StringArrayOutput) } // The ID of the management cluster. func (o GetPrivateCloudManagementClusterOutput) Id() pulumi.IntOutput { return o.ApplyT(func(v GetPrivateCloudManagementCluster) int { return v.Id }).(pulumi.IntOutput) } // The size of the management cluster. func (o GetPrivateCloudManagementClusterOutput) Size() pulumi.IntOutput { return o.ApplyT(func(v GetPrivateCloudManagementCluster) int { return v.Size }).(pulumi.IntOutput) } type GetPrivateCloudManagementClusterArrayOutput struct{ *pulumi.OutputState } func (GetPrivateCloudManagementClusterArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]GetPrivateCloudManagementCluster)(nil)).Elem() } func (o GetPrivateCloudManagementClusterArrayOutput) ToGetPrivateCloudManagementClusterArrayOutput() GetPrivateCloudManagementClusterArrayOutput { return o } func (o GetPrivateCloudManagementClusterArrayOutput) ToGetPrivateCloudManagementClusterArrayOutputWithContext(ctx context.Context) GetPrivateCloudManagementClusterArrayOutput { return o } func (o GetPrivateCloudManagementClusterArrayOutput) Index(i pulumi.IntInput) GetPrivateCloudManagementClusterOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) GetPrivateCloudManagementCluster { return vs[0].([]GetPrivateCloudManagementCluster)[vs[1].(int)] }).(GetPrivateCloudManagementClusterOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*PrivateCloudCircuitInput)(nil)).Elem(), PrivateCloudCircuitArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*PrivateCloudCircuitArrayInput)(nil)).Elem(), PrivateCloudCircuitArray{}) pulumi.RegisterInputType(reflect.TypeOf((*PrivateCloudManagementClusterInput)(nil)).Elem(), PrivateCloudManagementClusterArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*PrivateCloudManagementClusterPtrInput)(nil)).Elem(), PrivateCloudManagementClusterArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*GetPrivateCloudCircuitInput)(nil)).Elem(), GetPrivateCloudCircuitArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*GetPrivateCloudCircuitArrayInput)(nil)).Elem(), GetPrivateCloudCircuitArray{}) pulumi.RegisterInputType(reflect.TypeOf((*GetPrivateCloudManagementClusterInput)(nil)).Elem(), GetPrivateCloudManagementClusterArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*GetPrivateCloudManagementClusterArrayInput)(nil)).Elem(), GetPrivateCloudManagementClusterArray{}) pulumi.RegisterOutputType(PrivateCloudCircuitOutput{}) pulumi.RegisterOutputType(PrivateCloudCircuitArrayOutput{}) pulumi.RegisterOutputType(PrivateCloudManagementClusterOutput{}) pulumi.RegisterOutputType(PrivateCloudManagementClusterPtrOutput{}) pulumi.RegisterOutputType(GetPrivateCloudCircuitOutput{}) pulumi.RegisterOutputType(GetPrivateCloudCircuitArrayOutput{}) pulumi.RegisterOutputType(GetPrivateCloudManagementClusterOutput{}) pulumi.RegisterOutputType(GetPrivateCloudManagementClusterArrayOutput{}) }
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/avs/getPrivateCloud.go
sdk/go/azure/avs/getPrivateCloud.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 avs 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 Azure VMware Solution Private Cloud. // // ## Example Usage // // > **Note:** Normal `pulumi up` could ignore this note. Please disable correlation request id for continuous operations in one build (like acctest). The continuous operations like `update` or `delete` could not be triggered when it shares the same `correlation-id` with its previous operation. // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/avs" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { // example, err := avs.LookupPrivateCloud(ctx, &avs.LookupPrivateCloudArgs{ // Name: "existing-vmware-private-cloud", // ResourceGroupName: "existing-resgroup", // }, 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.AVS` - 2022-05-01 func LookupPrivateCloud(ctx *pulumi.Context, args *LookupPrivateCloudArgs, opts ...pulumi.InvokeOption) (*LookupPrivateCloudResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupPrivateCloudResult err := ctx.Invoke("azure:avs/getPrivateCloud:getPrivateCloud", args, &rv, opts...) if err != nil { return nil, err } return &rv, nil } // A collection of arguments for invoking getPrivateCloud. type LookupPrivateCloudArgs struct { // The name of this Azure VMware Solution Private Cloud. Name string `pulumi:"name"` // The name of the Resource Group where the Azure VMware Solution Private Cloud exists. ResourceGroupName string `pulumi:"resourceGroupName"` } // A collection of values returned by getPrivateCloud. type LookupPrivateCloudResult struct { // A `circuit` block as defined below. Circuits []GetPrivateCloudCircuit `pulumi:"circuits"` // The endpoint for the VMware HCX Cloud Manager. HcxCloudManagerEndpoint string `pulumi:"hcxCloudManagerEndpoint"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` // Is the Azure VMware Solution Private Cloud connected to the internet? InternetConnectionEnabled bool `pulumi:"internetConnectionEnabled"` // The Azure Region where the Azure VMware Solution Private Cloud exists. Location string `pulumi:"location"` // A `managementCluster` block as defined below. ManagementClusters []GetPrivateCloudManagementCluster `pulumi:"managementClusters"` // The network used to access VMware vCenter Server and NSX Manager. ManagementSubnetCidr string `pulumi:"managementSubnetCidr"` Name string `pulumi:"name"` // The subnet CIDR of the Azure VMware Solution Private Cloud. NetworkSubnetCidr string `pulumi:"networkSubnetCidr"` // The thumbprint of the VMware NSX Manager SSL certificate. NsxtCertificateThumbprint string `pulumi:"nsxtCertificateThumbprint"` // The endpoint for the VMware NSX Manager. NsxtManagerEndpoint string `pulumi:"nsxtManagerEndpoint"` // The network which isused for virtual machine cold migration, cloning, and snapshot migration. ProvisioningSubnetCidr string `pulumi:"provisioningSubnetCidr"` ResourceGroupName string `pulumi:"resourceGroupName"` // The Name of the SKU used for this Azure VMware Solution Private Cloud. SkuName string `pulumi:"skuName"` // A mapping of tags assigned to the Azure VMware Solution Private Cloud. Tags map[string]string `pulumi:"tags"` // The thumbprint of the VMware vCenter Server SSL certificate. VcenterCertificateThumbprint string `pulumi:"vcenterCertificateThumbprint"` // The endpoint for VMware vCenter Server Appliance. VcsaEndpoint string `pulumi:"vcsaEndpoint"` // The network which is used for live migration of virtual machines. VmotionSubnetCidr string `pulumi:"vmotionSubnetCidr"` } func LookupPrivateCloudOutput(ctx *pulumi.Context, args LookupPrivateCloudOutputArgs, opts ...pulumi.InvokeOption) LookupPrivateCloudResultOutput { return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupPrivateCloudResultOutput, error) { args := v.(LookupPrivateCloudArgs) options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} return ctx.InvokeOutput("azure:avs/getPrivateCloud:getPrivateCloud", args, LookupPrivateCloudResultOutput{}, options).(LookupPrivateCloudResultOutput), nil }).(LookupPrivateCloudResultOutput) } // A collection of arguments for invoking getPrivateCloud. type LookupPrivateCloudOutputArgs struct { // The name of this Azure VMware Solution Private Cloud. Name pulumi.StringInput `pulumi:"name"` // The name of the Resource Group where the Azure VMware Solution Private Cloud exists. ResourceGroupName pulumi.StringInput `pulumi:"resourceGroupName"` } func (LookupPrivateCloudOutputArgs) ElementType() reflect.Type { return reflect.TypeOf((*LookupPrivateCloudArgs)(nil)).Elem() } // A collection of values returned by getPrivateCloud. type LookupPrivateCloudResultOutput struct{ *pulumi.OutputState } func (LookupPrivateCloudResultOutput) ElementType() reflect.Type { return reflect.TypeOf((*LookupPrivateCloudResult)(nil)).Elem() } func (o LookupPrivateCloudResultOutput) ToLookupPrivateCloudResultOutput() LookupPrivateCloudResultOutput { return o } func (o LookupPrivateCloudResultOutput) ToLookupPrivateCloudResultOutputWithContext(ctx context.Context) LookupPrivateCloudResultOutput { return o } // A `circuit` block as defined below. func (o LookupPrivateCloudResultOutput) Circuits() GetPrivateCloudCircuitArrayOutput { return o.ApplyT(func(v LookupPrivateCloudResult) []GetPrivateCloudCircuit { return v.Circuits }).(GetPrivateCloudCircuitArrayOutput) } // The endpoint for the VMware HCX Cloud Manager. func (o LookupPrivateCloudResultOutput) HcxCloudManagerEndpoint() pulumi.StringOutput { return o.ApplyT(func(v LookupPrivateCloudResult) string { return v.HcxCloudManagerEndpoint }).(pulumi.StringOutput) } // The provider-assigned unique ID for this managed resource. func (o LookupPrivateCloudResultOutput) Id() pulumi.StringOutput { return o.ApplyT(func(v LookupPrivateCloudResult) string { return v.Id }).(pulumi.StringOutput) } // Is the Azure VMware Solution Private Cloud connected to the internet? func (o LookupPrivateCloudResultOutput) InternetConnectionEnabled() pulumi.BoolOutput { return o.ApplyT(func(v LookupPrivateCloudResult) bool { return v.InternetConnectionEnabled }).(pulumi.BoolOutput) } // The Azure Region where the Azure VMware Solution Private Cloud exists. func (o LookupPrivateCloudResultOutput) Location() pulumi.StringOutput { return o.ApplyT(func(v LookupPrivateCloudResult) string { return v.Location }).(pulumi.StringOutput) } // A `managementCluster` block as defined below. func (o LookupPrivateCloudResultOutput) ManagementClusters() GetPrivateCloudManagementClusterArrayOutput { return o.ApplyT(func(v LookupPrivateCloudResult) []GetPrivateCloudManagementCluster { return v.ManagementClusters }).(GetPrivateCloudManagementClusterArrayOutput) } // The network used to access VMware vCenter Server and NSX Manager. func (o LookupPrivateCloudResultOutput) ManagementSubnetCidr() pulumi.StringOutput { return o.ApplyT(func(v LookupPrivateCloudResult) string { return v.ManagementSubnetCidr }).(pulumi.StringOutput) } func (o LookupPrivateCloudResultOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v LookupPrivateCloudResult) string { return v.Name }).(pulumi.StringOutput) } // The subnet CIDR of the Azure VMware Solution Private Cloud. func (o LookupPrivateCloudResultOutput) NetworkSubnetCidr() pulumi.StringOutput { return o.ApplyT(func(v LookupPrivateCloudResult) string { return v.NetworkSubnetCidr }).(pulumi.StringOutput) } // The thumbprint of the VMware NSX Manager SSL certificate. func (o LookupPrivateCloudResultOutput) NsxtCertificateThumbprint() pulumi.StringOutput { return o.ApplyT(func(v LookupPrivateCloudResult) string { return v.NsxtCertificateThumbprint }).(pulumi.StringOutput) } // The endpoint for the VMware NSX Manager. func (o LookupPrivateCloudResultOutput) NsxtManagerEndpoint() pulumi.StringOutput { return o.ApplyT(func(v LookupPrivateCloudResult) string { return v.NsxtManagerEndpoint }).(pulumi.StringOutput) } // The network which isused for virtual machine cold migration, cloning, and snapshot migration. func (o LookupPrivateCloudResultOutput) ProvisioningSubnetCidr() pulumi.StringOutput { return o.ApplyT(func(v LookupPrivateCloudResult) string { return v.ProvisioningSubnetCidr }).(pulumi.StringOutput) } func (o LookupPrivateCloudResultOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v LookupPrivateCloudResult) string { return v.ResourceGroupName }).(pulumi.StringOutput) } // The Name of the SKU used for this Azure VMware Solution Private Cloud. func (o LookupPrivateCloudResultOutput) SkuName() pulumi.StringOutput { return o.ApplyT(func(v LookupPrivateCloudResult) string { return v.SkuName }).(pulumi.StringOutput) } // A mapping of tags assigned to the Azure VMware Solution Private Cloud. func (o LookupPrivateCloudResultOutput) Tags() pulumi.StringMapOutput { return o.ApplyT(func(v LookupPrivateCloudResult) map[string]string { return v.Tags }).(pulumi.StringMapOutput) } // The thumbprint of the VMware vCenter Server SSL certificate. func (o LookupPrivateCloudResultOutput) VcenterCertificateThumbprint() pulumi.StringOutput { return o.ApplyT(func(v LookupPrivateCloudResult) string { return v.VcenterCertificateThumbprint }).(pulumi.StringOutput) } // The endpoint for VMware vCenter Server Appliance. func (o LookupPrivateCloudResultOutput) VcsaEndpoint() pulumi.StringOutput { return o.ApplyT(func(v LookupPrivateCloudResult) string { return v.VcsaEndpoint }).(pulumi.StringOutput) } // The network which is used for live migration of virtual machines. func (o LookupPrivateCloudResultOutput) VmotionSubnetCidr() pulumi.StringOutput { return o.ApplyT(func(v LookupPrivateCloudResult) string { return v.VmotionSubnetCidr }).(pulumi.StringOutput) } func init() { pulumi.RegisterOutputType(LookupPrivateCloudResultOutput{}) }
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/avs/cluster.go
sdk/go/azure/avs/cluster.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 avs 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 VMware Solution Cluster. // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/avs" // "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 // } // examplePrivateCloud, err := avs.NewPrivateCloud(ctx, "example", &avs.PrivateCloudArgs{ // Name: pulumi.String("example-vmware-private-cloud"), // ResourceGroupName: example.Name, // Location: example.Location, // SkuName: pulumi.String("av36"), // ManagementCluster: &avs.PrivateCloudManagementClusterArgs{ // Size: pulumi.Int(3), // }, // NetworkSubnetCidr: pulumi.String("192.168.48.0/22"), // InternetConnectionEnabled: pulumi.Bool(false), // NsxtPassword: pulumi.String("QazWsx13$Edc"), // VcenterPassword: pulumi.String("WsxEdc23$Rfv"), // }) // if err != nil { // return err // } // _, err = avs.NewCluster(ctx, "example", &avs.ClusterArgs{ // Name: pulumi.String("example-Cluster"), // VmwareCloudId: examplePrivateCloud.ID(), // ClusterNodeCount: pulumi.Int(3), // SkuName: pulumi.String("av36"), // }) // 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.AVS` - 2022-05-01 // // ## Import // // Azure VMware Solution Clusters can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:avs/cluster:Cluster example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.AVS/privateClouds/privateCloud1/clusters/cluster1 // ``` type Cluster struct { pulumi.CustomResourceState // The count of the Azure VMware Solution Cluster nodes. ClusterNodeCount pulumi.IntOutput `pulumi:"clusterNodeCount"` // A number that identifies this Cluster in its Azure VMware Solution Private Cloud. ClusterNumber pulumi.IntOutput `pulumi:"clusterNumber"` // A list of hosts in the Azure VMware Solution Cluster. Hosts pulumi.StringArrayOutput `pulumi:"hosts"` // The name which should be used for this Azure VMware Solution Cluster. Changing this forces a new Azure VMware Solution Cluster to be created. Name pulumi.StringOutput `pulumi:"name"` // The Cluster SKU to use. Possible values are `av20`, `av36`, `av36t`, `av36p`, `av48`, `av48t`, `av36pt`, `av52`, `av52t`, and `av64`. Changing this forces a new Azure VMware Solution Cluster to be created. SkuName pulumi.StringOutput `pulumi:"skuName"` // The ID of the Azure VMware Solution Private Cloud in which to create this Cluster. Changing this forces a new Azure VMware Solution Cluster to be created. VmwareCloudId pulumi.StringOutput `pulumi:"vmwareCloudId"` } // NewCluster registers a new resource with the given unique name, arguments, and options. func NewCluster(ctx *pulumi.Context, name string, args *ClusterArgs, opts ...pulumi.ResourceOption) (*Cluster, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.ClusterNodeCount == nil { return nil, errors.New("invalid value for required argument 'ClusterNodeCount'") } if args.SkuName == nil { return nil, errors.New("invalid value for required argument 'SkuName'") } if args.VmwareCloudId == nil { return nil, errors.New("invalid value for required argument 'VmwareCloudId'") } opts = internal.PkgResourceDefaultOpts(opts) var resource Cluster err := ctx.RegisterResource("azure:avs/cluster:Cluster", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetCluster gets an existing Cluster 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 GetCluster(ctx *pulumi.Context, name string, id pulumi.IDInput, state *ClusterState, opts ...pulumi.ResourceOption) (*Cluster, error) { var resource Cluster err := ctx.ReadResource("azure:avs/cluster:Cluster", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering Cluster resources. type clusterState struct { // The count of the Azure VMware Solution Cluster nodes. ClusterNodeCount *int `pulumi:"clusterNodeCount"` // A number that identifies this Cluster in its Azure VMware Solution Private Cloud. ClusterNumber *int `pulumi:"clusterNumber"` // A list of hosts in the Azure VMware Solution Cluster. Hosts []string `pulumi:"hosts"` // The name which should be used for this Azure VMware Solution Cluster. Changing this forces a new Azure VMware Solution Cluster to be created. Name *string `pulumi:"name"` // The Cluster SKU to use. Possible values are `av20`, `av36`, `av36t`, `av36p`, `av48`, `av48t`, `av36pt`, `av52`, `av52t`, and `av64`. Changing this forces a new Azure VMware Solution Cluster to be created. SkuName *string `pulumi:"skuName"` // The ID of the Azure VMware Solution Private Cloud in which to create this Cluster. Changing this forces a new Azure VMware Solution Cluster to be created. VmwareCloudId *string `pulumi:"vmwareCloudId"` } type ClusterState struct { // The count of the Azure VMware Solution Cluster nodes. ClusterNodeCount pulumi.IntPtrInput // A number that identifies this Cluster in its Azure VMware Solution Private Cloud. ClusterNumber pulumi.IntPtrInput // A list of hosts in the Azure VMware Solution Cluster. Hosts pulumi.StringArrayInput // The name which should be used for this Azure VMware Solution Cluster. Changing this forces a new Azure VMware Solution Cluster to be created. Name pulumi.StringPtrInput // The Cluster SKU to use. Possible values are `av20`, `av36`, `av36t`, `av36p`, `av48`, `av48t`, `av36pt`, `av52`, `av52t`, and `av64`. Changing this forces a new Azure VMware Solution Cluster to be created. SkuName pulumi.StringPtrInput // The ID of the Azure VMware Solution Private Cloud in which to create this Cluster. Changing this forces a new Azure VMware Solution Cluster to be created. VmwareCloudId pulumi.StringPtrInput } func (ClusterState) ElementType() reflect.Type { return reflect.TypeOf((*clusterState)(nil)).Elem() } type clusterArgs struct { // The count of the Azure VMware Solution Cluster nodes. ClusterNodeCount int `pulumi:"clusterNodeCount"` // The name which should be used for this Azure VMware Solution Cluster. Changing this forces a new Azure VMware Solution Cluster to be created. Name *string `pulumi:"name"` // The Cluster SKU to use. Possible values are `av20`, `av36`, `av36t`, `av36p`, `av48`, `av48t`, `av36pt`, `av52`, `av52t`, and `av64`. Changing this forces a new Azure VMware Solution Cluster to be created. SkuName string `pulumi:"skuName"` // The ID of the Azure VMware Solution Private Cloud in which to create this Cluster. Changing this forces a new Azure VMware Solution Cluster to be created. VmwareCloudId string `pulumi:"vmwareCloudId"` } // The set of arguments for constructing a Cluster resource. type ClusterArgs struct { // The count of the Azure VMware Solution Cluster nodes. ClusterNodeCount pulumi.IntInput // The name which should be used for this Azure VMware Solution Cluster. Changing this forces a new Azure VMware Solution Cluster to be created. Name pulumi.StringPtrInput // The Cluster SKU to use. Possible values are `av20`, `av36`, `av36t`, `av36p`, `av48`, `av48t`, `av36pt`, `av52`, `av52t`, and `av64`. Changing this forces a new Azure VMware Solution Cluster to be created. SkuName pulumi.StringInput // The ID of the Azure VMware Solution Private Cloud in which to create this Cluster. Changing this forces a new Azure VMware Solution Cluster to be created. VmwareCloudId pulumi.StringInput } func (ClusterArgs) ElementType() reflect.Type { return reflect.TypeOf((*clusterArgs)(nil)).Elem() } type ClusterInput interface { pulumi.Input ToClusterOutput() ClusterOutput ToClusterOutputWithContext(ctx context.Context) ClusterOutput } func (*Cluster) ElementType() reflect.Type { return reflect.TypeOf((**Cluster)(nil)).Elem() } func (i *Cluster) ToClusterOutput() ClusterOutput { return i.ToClusterOutputWithContext(context.Background()) } func (i *Cluster) ToClusterOutputWithContext(ctx context.Context) ClusterOutput { return pulumi.ToOutputWithContext(ctx, i).(ClusterOutput) } // ClusterArrayInput is an input type that accepts ClusterArray and ClusterArrayOutput values. // You can construct a concrete instance of `ClusterArrayInput` via: // // ClusterArray{ ClusterArgs{...} } type ClusterArrayInput interface { pulumi.Input ToClusterArrayOutput() ClusterArrayOutput ToClusterArrayOutputWithContext(context.Context) ClusterArrayOutput } type ClusterArray []ClusterInput func (ClusterArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*Cluster)(nil)).Elem() } func (i ClusterArray) ToClusterArrayOutput() ClusterArrayOutput { return i.ToClusterArrayOutputWithContext(context.Background()) } func (i ClusterArray) ToClusterArrayOutputWithContext(ctx context.Context) ClusterArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(ClusterArrayOutput) } // ClusterMapInput is an input type that accepts ClusterMap and ClusterMapOutput values. // You can construct a concrete instance of `ClusterMapInput` via: // // ClusterMap{ "key": ClusterArgs{...} } type ClusterMapInput interface { pulumi.Input ToClusterMapOutput() ClusterMapOutput ToClusterMapOutputWithContext(context.Context) ClusterMapOutput } type ClusterMap map[string]ClusterInput func (ClusterMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*Cluster)(nil)).Elem() } func (i ClusterMap) ToClusterMapOutput() ClusterMapOutput { return i.ToClusterMapOutputWithContext(context.Background()) } func (i ClusterMap) ToClusterMapOutputWithContext(ctx context.Context) ClusterMapOutput { return pulumi.ToOutputWithContext(ctx, i).(ClusterMapOutput) } type ClusterOutput struct{ *pulumi.OutputState } func (ClusterOutput) ElementType() reflect.Type { return reflect.TypeOf((**Cluster)(nil)).Elem() } func (o ClusterOutput) ToClusterOutput() ClusterOutput { return o } func (o ClusterOutput) ToClusterOutputWithContext(ctx context.Context) ClusterOutput { return o } // The count of the Azure VMware Solution Cluster nodes. func (o ClusterOutput) ClusterNodeCount() pulumi.IntOutput { return o.ApplyT(func(v *Cluster) pulumi.IntOutput { return v.ClusterNodeCount }).(pulumi.IntOutput) } // A number that identifies this Cluster in its Azure VMware Solution Private Cloud. func (o ClusterOutput) ClusterNumber() pulumi.IntOutput { return o.ApplyT(func(v *Cluster) pulumi.IntOutput { return v.ClusterNumber }).(pulumi.IntOutput) } // A list of hosts in the Azure VMware Solution Cluster. func (o ClusterOutput) Hosts() pulumi.StringArrayOutput { return o.ApplyT(func(v *Cluster) pulumi.StringArrayOutput { return v.Hosts }).(pulumi.StringArrayOutput) } // The name which should be used for this Azure VMware Solution Cluster. Changing this forces a new Azure VMware Solution Cluster to be created. func (o ClusterOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *Cluster) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // The Cluster SKU to use. Possible values are `av20`, `av36`, `av36t`, `av36p`, `av48`, `av48t`, `av36pt`, `av52`, `av52t`, and `av64`. Changing this forces a new Azure VMware Solution Cluster to be created. func (o ClusterOutput) SkuName() pulumi.StringOutput { return o.ApplyT(func(v *Cluster) pulumi.StringOutput { return v.SkuName }).(pulumi.StringOutput) } // The ID of the Azure VMware Solution Private Cloud in which to create this Cluster. Changing this forces a new Azure VMware Solution Cluster to be created. func (o ClusterOutput) VmwareCloudId() pulumi.StringOutput { return o.ApplyT(func(v *Cluster) pulumi.StringOutput { return v.VmwareCloudId }).(pulumi.StringOutput) } type ClusterArrayOutput struct{ *pulumi.OutputState } func (ClusterArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*Cluster)(nil)).Elem() } func (o ClusterArrayOutput) ToClusterArrayOutput() ClusterArrayOutput { return o } func (o ClusterArrayOutput) ToClusterArrayOutputWithContext(ctx context.Context) ClusterArrayOutput { return o } func (o ClusterArrayOutput) Index(i pulumi.IntInput) ClusterOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *Cluster { return vs[0].([]*Cluster)[vs[1].(int)] }).(ClusterOutput) } type ClusterMapOutput struct{ *pulumi.OutputState } func (ClusterMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*Cluster)(nil)).Elem() } func (o ClusterMapOutput) ToClusterMapOutput() ClusterMapOutput { return o } func (o ClusterMapOutput) ToClusterMapOutputWithContext(ctx context.Context) ClusterMapOutput { return o } func (o ClusterMapOutput) MapIndex(k pulumi.StringInput) ClusterOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *Cluster { return vs[0].(map[string]*Cluster)[vs[1].(string)] }).(ClusterOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*ClusterInput)(nil)).Elem(), &Cluster{}) pulumi.RegisterInputType(reflect.TypeOf((*ClusterArrayInput)(nil)).Elem(), ClusterArray{}) pulumi.RegisterInputType(reflect.TypeOf((*ClusterMapInput)(nil)).Elem(), ClusterMap{}) pulumi.RegisterOutputType(ClusterOutput{}) pulumi.RegisterOutputType(ClusterArrayOutput{}) pulumi.RegisterOutputType(ClusterMapOutput{}) }
go
Apache-2.0
b66e1472775a89cca43f5050fef806854a7c3fa3
2026-01-07T09:44:27.619514Z
false