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/healthcare/getWorkspace.go
sdk/go/azure/healthcare/getWorkspace.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 healthcare 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 Healthcare Workspace // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/healthcare" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { // example, err := healthcare.LookupWorkspace(ctx, &healthcare.LookupWorkspaceArgs{ // Name: "example-healthcare_service", // ResourceGroupName: "example-resources", // }, nil) // if err != nil { // return err // } // ctx.Export("healthcareWorkspaceId", example.Id) // return nil // }) // } // // ``` // // ## API Providers // // <!-- This section is generated, changes will be overwritten --> // This data source uses the following Azure API Providers: // // * `Microsoft.HealthcareApis` - 2024-03-31 func LookupWorkspace(ctx *pulumi.Context, args *LookupWorkspaceArgs, opts ...pulumi.InvokeOption) (*LookupWorkspaceResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupWorkspaceResult err := ctx.Invoke("azure:healthcare/getWorkspace:getWorkspace", args, &rv, opts...) if err != nil { return nil, err } return &rv, nil } // A collection of arguments for invoking getWorkspace. type LookupWorkspaceArgs struct { // The name of the Healthcare Workspace. Name string `pulumi:"name"` // The name of the Resource Group in which the Healthcare Workspace exists. ResourceGroupName string `pulumi:"resourceGroupName"` } // A collection of values returned by getWorkspace. type LookupWorkspaceResult struct { // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` // The Azure Region where the Healthcare Workspace is located. Location string `pulumi:"location"` Name string `pulumi:"name"` ResourceGroupName string `pulumi:"resourceGroupName"` // A map of tags assigned to the Healthcare Workspace. Tags map[string]string `pulumi:"tags"` } func LookupWorkspaceOutput(ctx *pulumi.Context, args LookupWorkspaceOutputArgs, opts ...pulumi.InvokeOption) LookupWorkspaceResultOutput { return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupWorkspaceResultOutput, error) { args := v.(LookupWorkspaceArgs) options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} return ctx.InvokeOutput("azure:healthcare/getWorkspace:getWorkspace", args, LookupWorkspaceResultOutput{}, options).(LookupWorkspaceResultOutput), nil }).(LookupWorkspaceResultOutput) } // A collection of arguments for invoking getWorkspace. type LookupWorkspaceOutputArgs struct { // The name of the Healthcare Workspace. Name pulumi.StringInput `pulumi:"name"` // The name of the Resource Group in which the Healthcare Workspace exists. ResourceGroupName pulumi.StringInput `pulumi:"resourceGroupName"` } func (LookupWorkspaceOutputArgs) ElementType() reflect.Type { return reflect.TypeOf((*LookupWorkspaceArgs)(nil)).Elem() } // A collection of values returned by getWorkspace. type LookupWorkspaceResultOutput struct{ *pulumi.OutputState } func (LookupWorkspaceResultOutput) ElementType() reflect.Type { return reflect.TypeOf((*LookupWorkspaceResult)(nil)).Elem() } func (o LookupWorkspaceResultOutput) ToLookupWorkspaceResultOutput() LookupWorkspaceResultOutput { return o } func (o LookupWorkspaceResultOutput) ToLookupWorkspaceResultOutputWithContext(ctx context.Context) LookupWorkspaceResultOutput { return o } // The provider-assigned unique ID for this managed resource. func (o LookupWorkspaceResultOutput) Id() pulumi.StringOutput { return o.ApplyT(func(v LookupWorkspaceResult) string { return v.Id }).(pulumi.StringOutput) } // The Azure Region where the Healthcare Workspace is located. func (o LookupWorkspaceResultOutput) Location() pulumi.StringOutput { return o.ApplyT(func(v LookupWorkspaceResult) string { return v.Location }).(pulumi.StringOutput) } func (o LookupWorkspaceResultOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v LookupWorkspaceResult) string { return v.Name }).(pulumi.StringOutput) } func (o LookupWorkspaceResultOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v LookupWorkspaceResult) string { return v.ResourceGroupName }).(pulumi.StringOutput) } // A map of tags assigned to the Healthcare Workspace. func (o LookupWorkspaceResultOutput) Tags() pulumi.StringMapOutput { return o.ApplyT(func(v LookupWorkspaceResult) map[string]string { return v.Tags }).(pulumi.StringMapOutput) } func init() { pulumi.RegisterOutputType(LookupWorkspaceResultOutput{}) }
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/healthcare/init.go
sdk/go/azure/healthcare/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 healthcare 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:healthcare/dicomService:DicomService": r = &DicomService{} case "azure:healthcare/fhirService:FhirService": r = &FhirService{} case "azure:healthcare/medtechService:MedtechService": r = &MedtechService{} case "azure:healthcare/medtechServiceFhirDestination:MedtechServiceFhirDestination": r = &MedtechServiceFhirDestination{} case "azure:healthcare/service:Service": r = &Service{} case "azure:healthcare/workspace:Workspace": r = &Workspace{} 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", "healthcare/dicomService", &module{version}, ) pulumi.RegisterResourceModule( "azure", "healthcare/fhirService", &module{version}, ) pulumi.RegisterResourceModule( "azure", "healthcare/medtechService", &module{version}, ) pulumi.RegisterResourceModule( "azure", "healthcare/medtechServiceFhirDestination", &module{version}, ) pulumi.RegisterResourceModule( "azure", "healthcare/service", &module{version}, ) pulumi.RegisterResourceModule( "azure", "healthcare/workspace", &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/healthcare/pulumiTypes.go
sdk/go/azure/healthcare/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 healthcare 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 DicomServiceAuthentication struct { // The intended audience to receive authentication tokens for the service. The default value is <https://dicom.azurehealthcareapis.azure.com> Audiences []string `pulumi:"audiences"` Authority *string `pulumi:"authority"` } // DicomServiceAuthenticationInput is an input type that accepts DicomServiceAuthenticationArgs and DicomServiceAuthenticationOutput values. // You can construct a concrete instance of `DicomServiceAuthenticationInput` via: // // DicomServiceAuthenticationArgs{...} type DicomServiceAuthenticationInput interface { pulumi.Input ToDicomServiceAuthenticationOutput() DicomServiceAuthenticationOutput ToDicomServiceAuthenticationOutputWithContext(context.Context) DicomServiceAuthenticationOutput } type DicomServiceAuthenticationArgs struct { // The intended audience to receive authentication tokens for the service. The default value is <https://dicom.azurehealthcareapis.azure.com> Audiences pulumi.StringArrayInput `pulumi:"audiences"` Authority pulumi.StringPtrInput `pulumi:"authority"` } func (DicomServiceAuthenticationArgs) ElementType() reflect.Type { return reflect.TypeOf((*DicomServiceAuthentication)(nil)).Elem() } func (i DicomServiceAuthenticationArgs) ToDicomServiceAuthenticationOutput() DicomServiceAuthenticationOutput { return i.ToDicomServiceAuthenticationOutputWithContext(context.Background()) } func (i DicomServiceAuthenticationArgs) ToDicomServiceAuthenticationOutputWithContext(ctx context.Context) DicomServiceAuthenticationOutput { return pulumi.ToOutputWithContext(ctx, i).(DicomServiceAuthenticationOutput) } // DicomServiceAuthenticationArrayInput is an input type that accepts DicomServiceAuthenticationArray and DicomServiceAuthenticationArrayOutput values. // You can construct a concrete instance of `DicomServiceAuthenticationArrayInput` via: // // DicomServiceAuthenticationArray{ DicomServiceAuthenticationArgs{...} } type DicomServiceAuthenticationArrayInput interface { pulumi.Input ToDicomServiceAuthenticationArrayOutput() DicomServiceAuthenticationArrayOutput ToDicomServiceAuthenticationArrayOutputWithContext(context.Context) DicomServiceAuthenticationArrayOutput } type DicomServiceAuthenticationArray []DicomServiceAuthenticationInput func (DicomServiceAuthenticationArray) ElementType() reflect.Type { return reflect.TypeOf((*[]DicomServiceAuthentication)(nil)).Elem() } func (i DicomServiceAuthenticationArray) ToDicomServiceAuthenticationArrayOutput() DicomServiceAuthenticationArrayOutput { return i.ToDicomServiceAuthenticationArrayOutputWithContext(context.Background()) } func (i DicomServiceAuthenticationArray) ToDicomServiceAuthenticationArrayOutputWithContext(ctx context.Context) DicomServiceAuthenticationArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(DicomServiceAuthenticationArrayOutput) } type DicomServiceAuthenticationOutput struct{ *pulumi.OutputState } func (DicomServiceAuthenticationOutput) ElementType() reflect.Type { return reflect.TypeOf((*DicomServiceAuthentication)(nil)).Elem() } func (o DicomServiceAuthenticationOutput) ToDicomServiceAuthenticationOutput() DicomServiceAuthenticationOutput { return o } func (o DicomServiceAuthenticationOutput) ToDicomServiceAuthenticationOutputWithContext(ctx context.Context) DicomServiceAuthenticationOutput { return o } // The intended audience to receive authentication tokens for the service. The default value is <https://dicom.azurehealthcareapis.azure.com> func (o DicomServiceAuthenticationOutput) Audiences() pulumi.StringArrayOutput { return o.ApplyT(func(v DicomServiceAuthentication) []string { return v.Audiences }).(pulumi.StringArrayOutput) } func (o DicomServiceAuthenticationOutput) Authority() pulumi.StringPtrOutput { return o.ApplyT(func(v DicomServiceAuthentication) *string { return v.Authority }).(pulumi.StringPtrOutput) } type DicomServiceAuthenticationArrayOutput struct{ *pulumi.OutputState } func (DicomServiceAuthenticationArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]DicomServiceAuthentication)(nil)).Elem() } func (o DicomServiceAuthenticationArrayOutput) ToDicomServiceAuthenticationArrayOutput() DicomServiceAuthenticationArrayOutput { return o } func (o DicomServiceAuthenticationArrayOutput) ToDicomServiceAuthenticationArrayOutputWithContext(ctx context.Context) DicomServiceAuthenticationArrayOutput { return o } func (o DicomServiceAuthenticationArrayOutput) Index(i pulumi.IntInput) DicomServiceAuthenticationOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) DicomServiceAuthentication { return vs[0].([]DicomServiceAuthentication)[vs[1].(int)] }).(DicomServiceAuthenticationOutput) } type DicomServiceCors struct { // Whether to allow credentials in CORS. Defaults to `false`. AllowCredentials *bool `pulumi:"allowCredentials"` // A list of allowed headers for CORS. AllowedHeaders []string `pulumi:"allowedHeaders"` // A list of allowed methods for CORS. AllowedMethods []string `pulumi:"allowedMethods"` // A list of allowed origins for CORS. AllowedOrigins []string `pulumi:"allowedOrigins"` // The maximum age in seconds for the CORS configuration (must be between 0 and 99998 inclusive). MaxAgeInSeconds *int `pulumi:"maxAgeInSeconds"` } // DicomServiceCorsInput is an input type that accepts DicomServiceCorsArgs and DicomServiceCorsOutput values. // You can construct a concrete instance of `DicomServiceCorsInput` via: // // DicomServiceCorsArgs{...} type DicomServiceCorsInput interface { pulumi.Input ToDicomServiceCorsOutput() DicomServiceCorsOutput ToDicomServiceCorsOutputWithContext(context.Context) DicomServiceCorsOutput } type DicomServiceCorsArgs struct { // Whether to allow credentials in CORS. Defaults to `false`. AllowCredentials pulumi.BoolPtrInput `pulumi:"allowCredentials"` // A list of allowed headers for CORS. AllowedHeaders pulumi.StringArrayInput `pulumi:"allowedHeaders"` // A list of allowed methods for CORS. AllowedMethods pulumi.StringArrayInput `pulumi:"allowedMethods"` // A list of allowed origins for CORS. AllowedOrigins pulumi.StringArrayInput `pulumi:"allowedOrigins"` // The maximum age in seconds for the CORS configuration (must be between 0 and 99998 inclusive). MaxAgeInSeconds pulumi.IntPtrInput `pulumi:"maxAgeInSeconds"` } func (DicomServiceCorsArgs) ElementType() reflect.Type { return reflect.TypeOf((*DicomServiceCors)(nil)).Elem() } func (i DicomServiceCorsArgs) ToDicomServiceCorsOutput() DicomServiceCorsOutput { return i.ToDicomServiceCorsOutputWithContext(context.Background()) } func (i DicomServiceCorsArgs) ToDicomServiceCorsOutputWithContext(ctx context.Context) DicomServiceCorsOutput { return pulumi.ToOutputWithContext(ctx, i).(DicomServiceCorsOutput) } func (i DicomServiceCorsArgs) ToDicomServiceCorsPtrOutput() DicomServiceCorsPtrOutput { return i.ToDicomServiceCorsPtrOutputWithContext(context.Background()) } func (i DicomServiceCorsArgs) ToDicomServiceCorsPtrOutputWithContext(ctx context.Context) DicomServiceCorsPtrOutput { return pulumi.ToOutputWithContext(ctx, i).(DicomServiceCorsOutput).ToDicomServiceCorsPtrOutputWithContext(ctx) } // DicomServiceCorsPtrInput is an input type that accepts DicomServiceCorsArgs, DicomServiceCorsPtr and DicomServiceCorsPtrOutput values. // You can construct a concrete instance of `DicomServiceCorsPtrInput` via: // // DicomServiceCorsArgs{...} // // or: // // nil type DicomServiceCorsPtrInput interface { pulumi.Input ToDicomServiceCorsPtrOutput() DicomServiceCorsPtrOutput ToDicomServiceCorsPtrOutputWithContext(context.Context) DicomServiceCorsPtrOutput } type dicomServiceCorsPtrType DicomServiceCorsArgs func DicomServiceCorsPtr(v *DicomServiceCorsArgs) DicomServiceCorsPtrInput { return (*dicomServiceCorsPtrType)(v) } func (*dicomServiceCorsPtrType) ElementType() reflect.Type { return reflect.TypeOf((**DicomServiceCors)(nil)).Elem() } func (i *dicomServiceCorsPtrType) ToDicomServiceCorsPtrOutput() DicomServiceCorsPtrOutput { return i.ToDicomServiceCorsPtrOutputWithContext(context.Background()) } func (i *dicomServiceCorsPtrType) ToDicomServiceCorsPtrOutputWithContext(ctx context.Context) DicomServiceCorsPtrOutput { return pulumi.ToOutputWithContext(ctx, i).(DicomServiceCorsPtrOutput) } type DicomServiceCorsOutput struct{ *pulumi.OutputState } func (DicomServiceCorsOutput) ElementType() reflect.Type { return reflect.TypeOf((*DicomServiceCors)(nil)).Elem() } func (o DicomServiceCorsOutput) ToDicomServiceCorsOutput() DicomServiceCorsOutput { return o } func (o DicomServiceCorsOutput) ToDicomServiceCorsOutputWithContext(ctx context.Context) DicomServiceCorsOutput { return o } func (o DicomServiceCorsOutput) ToDicomServiceCorsPtrOutput() DicomServiceCorsPtrOutput { return o.ToDicomServiceCorsPtrOutputWithContext(context.Background()) } func (o DicomServiceCorsOutput) ToDicomServiceCorsPtrOutputWithContext(ctx context.Context) DicomServiceCorsPtrOutput { return o.ApplyTWithContext(ctx, func(_ context.Context, v DicomServiceCors) *DicomServiceCors { return &v }).(DicomServiceCorsPtrOutput) } // Whether to allow credentials in CORS. Defaults to `false`. func (o DicomServiceCorsOutput) AllowCredentials() pulumi.BoolPtrOutput { return o.ApplyT(func(v DicomServiceCors) *bool { return v.AllowCredentials }).(pulumi.BoolPtrOutput) } // A list of allowed headers for CORS. func (o DicomServiceCorsOutput) AllowedHeaders() pulumi.StringArrayOutput { return o.ApplyT(func(v DicomServiceCors) []string { return v.AllowedHeaders }).(pulumi.StringArrayOutput) } // A list of allowed methods for CORS. func (o DicomServiceCorsOutput) AllowedMethods() pulumi.StringArrayOutput { return o.ApplyT(func(v DicomServiceCors) []string { return v.AllowedMethods }).(pulumi.StringArrayOutput) } // A list of allowed origins for CORS. func (o DicomServiceCorsOutput) AllowedOrigins() pulumi.StringArrayOutput { return o.ApplyT(func(v DicomServiceCors) []string { return v.AllowedOrigins }).(pulumi.StringArrayOutput) } // The maximum age in seconds for the CORS configuration (must be between 0 and 99998 inclusive). func (o DicomServiceCorsOutput) MaxAgeInSeconds() pulumi.IntPtrOutput { return o.ApplyT(func(v DicomServiceCors) *int { return v.MaxAgeInSeconds }).(pulumi.IntPtrOutput) } type DicomServiceCorsPtrOutput struct{ *pulumi.OutputState } func (DicomServiceCorsPtrOutput) ElementType() reflect.Type { return reflect.TypeOf((**DicomServiceCors)(nil)).Elem() } func (o DicomServiceCorsPtrOutput) ToDicomServiceCorsPtrOutput() DicomServiceCorsPtrOutput { return o } func (o DicomServiceCorsPtrOutput) ToDicomServiceCorsPtrOutputWithContext(ctx context.Context) DicomServiceCorsPtrOutput { return o } func (o DicomServiceCorsPtrOutput) Elem() DicomServiceCorsOutput { return o.ApplyT(func(v *DicomServiceCors) DicomServiceCors { if v != nil { return *v } var ret DicomServiceCors return ret }).(DicomServiceCorsOutput) } // Whether to allow credentials in CORS. Defaults to `false`. func (o DicomServiceCorsPtrOutput) AllowCredentials() pulumi.BoolPtrOutput { return o.ApplyT(func(v *DicomServiceCors) *bool { if v == nil { return nil } return v.AllowCredentials }).(pulumi.BoolPtrOutput) } // A list of allowed headers for CORS. func (o DicomServiceCorsPtrOutput) AllowedHeaders() pulumi.StringArrayOutput { return o.ApplyT(func(v *DicomServiceCors) []string { if v == nil { return nil } return v.AllowedHeaders }).(pulumi.StringArrayOutput) } // A list of allowed methods for CORS. func (o DicomServiceCorsPtrOutput) AllowedMethods() pulumi.StringArrayOutput { return o.ApplyT(func(v *DicomServiceCors) []string { if v == nil { return nil } return v.AllowedMethods }).(pulumi.StringArrayOutput) } // A list of allowed origins for CORS. func (o DicomServiceCorsPtrOutput) AllowedOrigins() pulumi.StringArrayOutput { return o.ApplyT(func(v *DicomServiceCors) []string { if v == nil { return nil } return v.AllowedOrigins }).(pulumi.StringArrayOutput) } // The maximum age in seconds for the CORS configuration (must be between 0 and 99998 inclusive). func (o DicomServiceCorsPtrOutput) MaxAgeInSeconds() pulumi.IntPtrOutput { return o.ApplyT(func(v *DicomServiceCors) *int { if v == nil { return nil } return v.MaxAgeInSeconds }).(pulumi.IntPtrOutput) } type DicomServiceIdentity struct { // A list of User Assigned Identity IDs which should be assigned to this Healthcare DICOM service. IdentityIds []string `pulumi:"identityIds"` PrincipalId *string `pulumi:"principalId"` TenantId *string `pulumi:"tenantId"` // The type of identity used for the Healthcare DICOM service. Possible values are `UserAssigned`, `SystemAssigned` and `SystemAssigned, UserAssigned`. If `UserAssigned` is set, an `identityIds` must be set as well. Type string `pulumi:"type"` } // DicomServiceIdentityInput is an input type that accepts DicomServiceIdentityArgs and DicomServiceIdentityOutput values. // You can construct a concrete instance of `DicomServiceIdentityInput` via: // // DicomServiceIdentityArgs{...} type DicomServiceIdentityInput interface { pulumi.Input ToDicomServiceIdentityOutput() DicomServiceIdentityOutput ToDicomServiceIdentityOutputWithContext(context.Context) DicomServiceIdentityOutput } type DicomServiceIdentityArgs struct { // A list of User Assigned Identity IDs which should be assigned to this Healthcare DICOM service. IdentityIds pulumi.StringArrayInput `pulumi:"identityIds"` PrincipalId pulumi.StringPtrInput `pulumi:"principalId"` TenantId pulumi.StringPtrInput `pulumi:"tenantId"` // The type of identity used for the Healthcare DICOM service. Possible values are `UserAssigned`, `SystemAssigned` and `SystemAssigned, UserAssigned`. If `UserAssigned` is set, an `identityIds` must be set as well. Type pulumi.StringInput `pulumi:"type"` } func (DicomServiceIdentityArgs) ElementType() reflect.Type { return reflect.TypeOf((*DicomServiceIdentity)(nil)).Elem() } func (i DicomServiceIdentityArgs) ToDicomServiceIdentityOutput() DicomServiceIdentityOutput { return i.ToDicomServiceIdentityOutputWithContext(context.Background()) } func (i DicomServiceIdentityArgs) ToDicomServiceIdentityOutputWithContext(ctx context.Context) DicomServiceIdentityOutput { return pulumi.ToOutputWithContext(ctx, i).(DicomServiceIdentityOutput) } func (i DicomServiceIdentityArgs) ToDicomServiceIdentityPtrOutput() DicomServiceIdentityPtrOutput { return i.ToDicomServiceIdentityPtrOutputWithContext(context.Background()) } func (i DicomServiceIdentityArgs) ToDicomServiceIdentityPtrOutputWithContext(ctx context.Context) DicomServiceIdentityPtrOutput { return pulumi.ToOutputWithContext(ctx, i).(DicomServiceIdentityOutput).ToDicomServiceIdentityPtrOutputWithContext(ctx) } // DicomServiceIdentityPtrInput is an input type that accepts DicomServiceIdentityArgs, DicomServiceIdentityPtr and DicomServiceIdentityPtrOutput values. // You can construct a concrete instance of `DicomServiceIdentityPtrInput` via: // // DicomServiceIdentityArgs{...} // // or: // // nil type DicomServiceIdentityPtrInput interface { pulumi.Input ToDicomServiceIdentityPtrOutput() DicomServiceIdentityPtrOutput ToDicomServiceIdentityPtrOutputWithContext(context.Context) DicomServiceIdentityPtrOutput } type dicomServiceIdentityPtrType DicomServiceIdentityArgs func DicomServiceIdentityPtr(v *DicomServiceIdentityArgs) DicomServiceIdentityPtrInput { return (*dicomServiceIdentityPtrType)(v) } func (*dicomServiceIdentityPtrType) ElementType() reflect.Type { return reflect.TypeOf((**DicomServiceIdentity)(nil)).Elem() } func (i *dicomServiceIdentityPtrType) ToDicomServiceIdentityPtrOutput() DicomServiceIdentityPtrOutput { return i.ToDicomServiceIdentityPtrOutputWithContext(context.Background()) } func (i *dicomServiceIdentityPtrType) ToDicomServiceIdentityPtrOutputWithContext(ctx context.Context) DicomServiceIdentityPtrOutput { return pulumi.ToOutputWithContext(ctx, i).(DicomServiceIdentityPtrOutput) } type DicomServiceIdentityOutput struct{ *pulumi.OutputState } func (DicomServiceIdentityOutput) ElementType() reflect.Type { return reflect.TypeOf((*DicomServiceIdentity)(nil)).Elem() } func (o DicomServiceIdentityOutput) ToDicomServiceIdentityOutput() DicomServiceIdentityOutput { return o } func (o DicomServiceIdentityOutput) ToDicomServiceIdentityOutputWithContext(ctx context.Context) DicomServiceIdentityOutput { return o } func (o DicomServiceIdentityOutput) ToDicomServiceIdentityPtrOutput() DicomServiceIdentityPtrOutput { return o.ToDicomServiceIdentityPtrOutputWithContext(context.Background()) } func (o DicomServiceIdentityOutput) ToDicomServiceIdentityPtrOutputWithContext(ctx context.Context) DicomServiceIdentityPtrOutput { return o.ApplyTWithContext(ctx, func(_ context.Context, v DicomServiceIdentity) *DicomServiceIdentity { return &v }).(DicomServiceIdentityPtrOutput) } // A list of User Assigned Identity IDs which should be assigned to this Healthcare DICOM service. func (o DicomServiceIdentityOutput) IdentityIds() pulumi.StringArrayOutput { return o.ApplyT(func(v DicomServiceIdentity) []string { return v.IdentityIds }).(pulumi.StringArrayOutput) } func (o DicomServiceIdentityOutput) PrincipalId() pulumi.StringPtrOutput { return o.ApplyT(func(v DicomServiceIdentity) *string { return v.PrincipalId }).(pulumi.StringPtrOutput) } func (o DicomServiceIdentityOutput) TenantId() pulumi.StringPtrOutput { return o.ApplyT(func(v DicomServiceIdentity) *string { return v.TenantId }).(pulumi.StringPtrOutput) } // The type of identity used for the Healthcare DICOM service. Possible values are `UserAssigned`, `SystemAssigned` and `SystemAssigned, UserAssigned`. If `UserAssigned` is set, an `identityIds` must be set as well. func (o DicomServiceIdentityOutput) Type() pulumi.StringOutput { return o.ApplyT(func(v DicomServiceIdentity) string { return v.Type }).(pulumi.StringOutput) } type DicomServiceIdentityPtrOutput struct{ *pulumi.OutputState } func (DicomServiceIdentityPtrOutput) ElementType() reflect.Type { return reflect.TypeOf((**DicomServiceIdentity)(nil)).Elem() } func (o DicomServiceIdentityPtrOutput) ToDicomServiceIdentityPtrOutput() DicomServiceIdentityPtrOutput { return o } func (o DicomServiceIdentityPtrOutput) ToDicomServiceIdentityPtrOutputWithContext(ctx context.Context) DicomServiceIdentityPtrOutput { return o } func (o DicomServiceIdentityPtrOutput) Elem() DicomServiceIdentityOutput { return o.ApplyT(func(v *DicomServiceIdentity) DicomServiceIdentity { if v != nil { return *v } var ret DicomServiceIdentity return ret }).(DicomServiceIdentityOutput) } // A list of User Assigned Identity IDs which should be assigned to this Healthcare DICOM service. func (o DicomServiceIdentityPtrOutput) IdentityIds() pulumi.StringArrayOutput { return o.ApplyT(func(v *DicomServiceIdentity) []string { if v == nil { return nil } return v.IdentityIds }).(pulumi.StringArrayOutput) } func (o DicomServiceIdentityPtrOutput) PrincipalId() pulumi.StringPtrOutput { return o.ApplyT(func(v *DicomServiceIdentity) *string { if v == nil { return nil } return v.PrincipalId }).(pulumi.StringPtrOutput) } func (o DicomServiceIdentityPtrOutput) TenantId() pulumi.StringPtrOutput { return o.ApplyT(func(v *DicomServiceIdentity) *string { if v == nil { return nil } return v.TenantId }).(pulumi.StringPtrOutput) } // The type of identity used for the Healthcare DICOM service. Possible values are `UserAssigned`, `SystemAssigned` and `SystemAssigned, UserAssigned`. If `UserAssigned` is set, an `identityIds` must be set as well. func (o DicomServiceIdentityPtrOutput) Type() pulumi.StringPtrOutput { return o.ApplyT(func(v *DicomServiceIdentity) *string { if v == nil { return nil } return &v.Type }).(pulumi.StringPtrOutput) } type DicomServicePrivateEndpoint struct { // The ID of the Healthcare DICOM Service. Id *string `pulumi:"id"` // Specifies the name of the Healthcare DICOM Service. Changing this forces a new Healthcare DICOM Service to be created. Name *string `pulumi:"name"` } // DicomServicePrivateEndpointInput is an input type that accepts DicomServicePrivateEndpointArgs and DicomServicePrivateEndpointOutput values. // You can construct a concrete instance of `DicomServicePrivateEndpointInput` via: // // DicomServicePrivateEndpointArgs{...} type DicomServicePrivateEndpointInput interface { pulumi.Input ToDicomServicePrivateEndpointOutput() DicomServicePrivateEndpointOutput ToDicomServicePrivateEndpointOutputWithContext(context.Context) DicomServicePrivateEndpointOutput } type DicomServicePrivateEndpointArgs struct { // The ID of the Healthcare DICOM Service. Id pulumi.StringPtrInput `pulumi:"id"` // Specifies the name of the Healthcare DICOM Service. Changing this forces a new Healthcare DICOM Service to be created. Name pulumi.StringPtrInput `pulumi:"name"` } func (DicomServicePrivateEndpointArgs) ElementType() reflect.Type { return reflect.TypeOf((*DicomServicePrivateEndpoint)(nil)).Elem() } func (i DicomServicePrivateEndpointArgs) ToDicomServicePrivateEndpointOutput() DicomServicePrivateEndpointOutput { return i.ToDicomServicePrivateEndpointOutputWithContext(context.Background()) } func (i DicomServicePrivateEndpointArgs) ToDicomServicePrivateEndpointOutputWithContext(ctx context.Context) DicomServicePrivateEndpointOutput { return pulumi.ToOutputWithContext(ctx, i).(DicomServicePrivateEndpointOutput) } // DicomServicePrivateEndpointArrayInput is an input type that accepts DicomServicePrivateEndpointArray and DicomServicePrivateEndpointArrayOutput values. // You can construct a concrete instance of `DicomServicePrivateEndpointArrayInput` via: // // DicomServicePrivateEndpointArray{ DicomServicePrivateEndpointArgs{...} } type DicomServicePrivateEndpointArrayInput interface { pulumi.Input ToDicomServicePrivateEndpointArrayOutput() DicomServicePrivateEndpointArrayOutput ToDicomServicePrivateEndpointArrayOutputWithContext(context.Context) DicomServicePrivateEndpointArrayOutput } type DicomServicePrivateEndpointArray []DicomServicePrivateEndpointInput func (DicomServicePrivateEndpointArray) ElementType() reflect.Type { return reflect.TypeOf((*[]DicomServicePrivateEndpoint)(nil)).Elem() } func (i DicomServicePrivateEndpointArray) ToDicomServicePrivateEndpointArrayOutput() DicomServicePrivateEndpointArrayOutput { return i.ToDicomServicePrivateEndpointArrayOutputWithContext(context.Background()) } func (i DicomServicePrivateEndpointArray) ToDicomServicePrivateEndpointArrayOutputWithContext(ctx context.Context) DicomServicePrivateEndpointArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(DicomServicePrivateEndpointArrayOutput) } type DicomServicePrivateEndpointOutput struct{ *pulumi.OutputState } func (DicomServicePrivateEndpointOutput) ElementType() reflect.Type { return reflect.TypeOf((*DicomServicePrivateEndpoint)(nil)).Elem() } func (o DicomServicePrivateEndpointOutput) ToDicomServicePrivateEndpointOutput() DicomServicePrivateEndpointOutput { return o } func (o DicomServicePrivateEndpointOutput) ToDicomServicePrivateEndpointOutputWithContext(ctx context.Context) DicomServicePrivateEndpointOutput { return o } // The ID of the Healthcare DICOM Service. func (o DicomServicePrivateEndpointOutput) Id() pulumi.StringPtrOutput { return o.ApplyT(func(v DicomServicePrivateEndpoint) *string { return v.Id }).(pulumi.StringPtrOutput) } // Specifies the name of the Healthcare DICOM Service. Changing this forces a new Healthcare DICOM Service to be created. func (o DicomServicePrivateEndpointOutput) Name() pulumi.StringPtrOutput { return o.ApplyT(func(v DicomServicePrivateEndpoint) *string { return v.Name }).(pulumi.StringPtrOutput) } type DicomServicePrivateEndpointArrayOutput struct{ *pulumi.OutputState } func (DicomServicePrivateEndpointArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]DicomServicePrivateEndpoint)(nil)).Elem() } func (o DicomServicePrivateEndpointArrayOutput) ToDicomServicePrivateEndpointArrayOutput() DicomServicePrivateEndpointArrayOutput { return o } func (o DicomServicePrivateEndpointArrayOutput) ToDicomServicePrivateEndpointArrayOutputWithContext(ctx context.Context) DicomServicePrivateEndpointArrayOutput { return o } func (o DicomServicePrivateEndpointArrayOutput) Index(i pulumi.IntInput) DicomServicePrivateEndpointOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) DicomServicePrivateEndpoint { return vs[0].([]DicomServicePrivateEndpoint)[vs[1].(int)] }).(DicomServicePrivateEndpointOutput) } type DicomServiceStorage struct { // The filesystem name of connected storage account. Changing this forces a new Healthcare DICOM Service to be created. FileSystemName string `pulumi:"fileSystemName"` // The resource ID of connected storage account. Changing this forces a new Healthcare DICOM Service to be created. // // > **Note:** The `isHnsEnabled` needs to be set to `true` for the storage account to be used with the Healthcare DICOM Service. StorageAccountId string `pulumi:"storageAccountId"` } // DicomServiceStorageInput is an input type that accepts DicomServiceStorageArgs and DicomServiceStorageOutput values. // You can construct a concrete instance of `DicomServiceStorageInput` via: // // DicomServiceStorageArgs{...} type DicomServiceStorageInput interface { pulumi.Input ToDicomServiceStorageOutput() DicomServiceStorageOutput ToDicomServiceStorageOutputWithContext(context.Context) DicomServiceStorageOutput } type DicomServiceStorageArgs struct { // The filesystem name of connected storage account. Changing this forces a new Healthcare DICOM Service to be created. FileSystemName pulumi.StringInput `pulumi:"fileSystemName"` // The resource ID of connected storage account. Changing this forces a new Healthcare DICOM Service to be created. // // > **Note:** The `isHnsEnabled` needs to be set to `true` for the storage account to be used with the Healthcare DICOM Service. StorageAccountId pulumi.StringInput `pulumi:"storageAccountId"` } func (DicomServiceStorageArgs) ElementType() reflect.Type { return reflect.TypeOf((*DicomServiceStorage)(nil)).Elem() } func (i DicomServiceStorageArgs) ToDicomServiceStorageOutput() DicomServiceStorageOutput { return i.ToDicomServiceStorageOutputWithContext(context.Background()) } func (i DicomServiceStorageArgs) ToDicomServiceStorageOutputWithContext(ctx context.Context) DicomServiceStorageOutput { return pulumi.ToOutputWithContext(ctx, i).(DicomServiceStorageOutput) } func (i DicomServiceStorageArgs) ToDicomServiceStoragePtrOutput() DicomServiceStoragePtrOutput { return i.ToDicomServiceStoragePtrOutputWithContext(context.Background()) } func (i DicomServiceStorageArgs) ToDicomServiceStoragePtrOutputWithContext(ctx context.Context) DicomServiceStoragePtrOutput { return pulumi.ToOutputWithContext(ctx, i).(DicomServiceStorageOutput).ToDicomServiceStoragePtrOutputWithContext(ctx) } // DicomServiceStoragePtrInput is an input type that accepts DicomServiceStorageArgs, DicomServiceStoragePtr and DicomServiceStoragePtrOutput values. // You can construct a concrete instance of `DicomServiceStoragePtrInput` via: // // DicomServiceStorageArgs{...} // // or: // // nil type DicomServiceStoragePtrInput interface { pulumi.Input ToDicomServiceStoragePtrOutput() DicomServiceStoragePtrOutput ToDicomServiceStoragePtrOutputWithContext(context.Context) DicomServiceStoragePtrOutput } type dicomServiceStoragePtrType DicomServiceStorageArgs func DicomServiceStoragePtr(v *DicomServiceStorageArgs) DicomServiceStoragePtrInput { return (*dicomServiceStoragePtrType)(v) } func (*dicomServiceStoragePtrType) ElementType() reflect.Type { return reflect.TypeOf((**DicomServiceStorage)(nil)).Elem() } func (i *dicomServiceStoragePtrType) ToDicomServiceStoragePtrOutput() DicomServiceStoragePtrOutput { return i.ToDicomServiceStoragePtrOutputWithContext(context.Background()) } func (i *dicomServiceStoragePtrType) ToDicomServiceStoragePtrOutputWithContext(ctx context.Context) DicomServiceStoragePtrOutput { return pulumi.ToOutputWithContext(ctx, i).(DicomServiceStoragePtrOutput) } type DicomServiceStorageOutput struct{ *pulumi.OutputState } func (DicomServiceStorageOutput) ElementType() reflect.Type { return reflect.TypeOf((*DicomServiceStorage)(nil)).Elem() } func (o DicomServiceStorageOutput) ToDicomServiceStorageOutput() DicomServiceStorageOutput { return o } func (o DicomServiceStorageOutput) ToDicomServiceStorageOutputWithContext(ctx context.Context) DicomServiceStorageOutput { return o } func (o DicomServiceStorageOutput) ToDicomServiceStoragePtrOutput() DicomServiceStoragePtrOutput { return o.ToDicomServiceStoragePtrOutputWithContext(context.Background()) } func (o DicomServiceStorageOutput) ToDicomServiceStoragePtrOutputWithContext(ctx context.Context) DicomServiceStoragePtrOutput { return o.ApplyTWithContext(ctx, func(_ context.Context, v DicomServiceStorage) *DicomServiceStorage { return &v }).(DicomServiceStoragePtrOutput) } // The filesystem name of connected storage account. Changing this forces a new Healthcare DICOM Service to be created. func (o DicomServiceStorageOutput) FileSystemName() pulumi.StringOutput { return o.ApplyT(func(v DicomServiceStorage) string { return v.FileSystemName }).(pulumi.StringOutput) } // The resource ID of connected storage account. Changing this forces a new Healthcare DICOM Service to be created. // // > **Note:** The `isHnsEnabled` needs to be set to `true` for the storage account to be used with the Healthcare DICOM Service. func (o DicomServiceStorageOutput) StorageAccountId() pulumi.StringOutput { return o.ApplyT(func(v DicomServiceStorage) string { return v.StorageAccountId }).(pulumi.StringOutput) } type DicomServiceStoragePtrOutput struct{ *pulumi.OutputState } func (DicomServiceStoragePtrOutput) ElementType() reflect.Type { return reflect.TypeOf((**DicomServiceStorage)(nil)).Elem() } func (o DicomServiceStoragePtrOutput) ToDicomServiceStoragePtrOutput() DicomServiceStoragePtrOutput { return o } func (o DicomServiceStoragePtrOutput) ToDicomServiceStoragePtrOutputWithContext(ctx context.Context) DicomServiceStoragePtrOutput { return o } func (o DicomServiceStoragePtrOutput) Elem() DicomServiceStorageOutput { return o.ApplyT(func(v *DicomServiceStorage) DicomServiceStorage { if v != nil { return *v } var ret DicomServiceStorage return ret }).(DicomServiceStorageOutput) } // The filesystem name of connected storage account. Changing this forces a new Healthcare DICOM Service to be created. func (o DicomServiceStoragePtrOutput) FileSystemName() pulumi.StringPtrOutput { return o.ApplyT(func(v *DicomServiceStorage) *string { if v == nil { return nil } return &v.FileSystemName }).(pulumi.StringPtrOutput) } // The resource ID of connected storage account. Changing this forces a new Healthcare DICOM Service to be created. // // > **Note:** The `isHnsEnabled` needs to be set to `true` for the storage account to be used with the Healthcare DICOM Service. func (o DicomServiceStoragePtrOutput) StorageAccountId() pulumi.StringPtrOutput { return o.ApplyT(func(v *DicomServiceStorage) *string { if v == nil { return nil } return &v.StorageAccountId }).(pulumi.StringPtrOutput) } type FhirServiceAuthentication struct { // The intended audience to receive authentication tokens for the service. Audience string `pulumi:"audience"` Authority string `pulumi:"authority"` // Whether smart proxy is enabled. SmartProxyEnabled *bool `pulumi:"smartProxyEnabled"` } // FhirServiceAuthenticationInput is an input type that accepts FhirServiceAuthenticationArgs and FhirServiceAuthenticationOutput values. // You can construct a concrete instance of `FhirServiceAuthenticationInput` via: // // FhirServiceAuthenticationArgs{...} type FhirServiceAuthenticationInput interface { pulumi.Input ToFhirServiceAuthenticationOutput() FhirServiceAuthenticationOutput ToFhirServiceAuthenticationOutputWithContext(context.Context) FhirServiceAuthenticationOutput } type FhirServiceAuthenticationArgs struct { // The intended audience to receive authentication tokens for the service. Audience pulumi.StringInput `pulumi:"audience"`
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/healthcare/service.go
sdk/go/azure/healthcare/service.go
// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package healthcare import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a Healthcare Service. // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/healthcare" // "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 // } // _, err = healthcare.NewService(ctx, "example", &healthcare.ServiceArgs{ // Name: pulumi.String("uniquefhirname"), // ResourceGroupName: pulumi.String("sample-resource-group"), // Location: pulumi.String("westus2"), // Kind: pulumi.String("fhir-R4"), // CosmosdbThroughput: pulumi.Int(2000), // Identity: &healthcare.ServiceIdentityArgs{ // Type: pulumi.String("SystemAssigned"), // }, // AccessPolicyObjectIds: pulumi.String(current.ObjectId), // ConfigurationExportStorageAccountName: pulumi.String("teststorage"), // Tags: pulumi.StringMap{ // "environment": pulumi.String("testenv"), // "purpose": pulumi.String("AcceptanceTests"), // }, // AuthenticationConfiguration: &healthcare.ServiceAuthenticationConfigurationArgs{ // Authority: pulumi.String("https://login.microsoftonline.com/$%7Bdata.azurerm_client_config.current.tenant_id%7D"), // Audience: pulumi.String("https://azurehealthcareapis.com/"), // SmartProxyEnabled: pulumi.Bool(true), // }, // CorsConfiguration: &healthcare.ServiceCorsConfigurationArgs{ // AllowedOrigins: pulumi.StringArray{ // pulumi.String("http://www.example.com"), // pulumi.String("http://www.example2.com"), // }, // AllowedHeaders: pulumi.StringArray{ // pulumi.String("x-tempo-*"), // pulumi.String("x-tempo2-*"), // }, // AllowedMethods: pulumi.StringArray{ // pulumi.String("GET"), // pulumi.String("PUT"), // }, // MaxAgeInSeconds: pulumi.Int(500), // AllowCredentials: 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.HealthcareApis` - 2022-12-01 // // ## Import // // Healthcare Service can be imported using the resource`id`, e.g. // // ```sh // $ pulumi import azure:healthcare/service:Service example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resource_group/providers/Microsoft.HealthcareApis/services/service_name // ``` type Service struct { pulumi.CustomResourceState AccessPolicyObjectIds pulumi.StringArrayOutput `pulumi:"accessPolicyObjectIds"` // An `authenticationConfiguration` block as defined below. AuthenticationConfiguration ServiceAuthenticationConfigurationOutput `pulumi:"authenticationConfiguration"` // Specifies the name of the storage account which the operation configuration information is exported to. ConfigurationExportStorageAccountName pulumi.StringPtrOutput `pulumi:"configurationExportStorageAccountName"` // A `corsConfiguration` block as defined below. CorsConfiguration ServiceCorsConfigurationOutput `pulumi:"corsConfiguration"` // A versionless Key Vault Key ID for CMK encryption of the backing database. Changing this forces a new resource to be created. // // > **Note:** In order to use a `Custom Key` from Key Vault for encryption you must grant Azure Cosmos DB 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/cosmos-db/how-to-setup-cmk#add-an-access-policy-to-your-azure-key-vault-instance) CosmosdbKeyVaultKeyVersionlessId pulumi.StringPtrOutput `pulumi:"cosmosdbKeyVaultKeyVersionlessId"` // The provisioned throughput for the backing database. Range of `400`-`100000`. Defaults to `1000`. CosmosdbThroughput pulumi.IntPtrOutput `pulumi:"cosmosdbThroughput"` // An `identity` block as defined below. Identity ServiceIdentityPtrOutput `pulumi:"identity"` // The type of the service. Values at time of publication are: `fhir`, `fhir-Stu3` and `fhir-R4`. Default value is `fhir`. Kind pulumi.StringPtrOutput `pulumi:"kind"` // Specifies the supported Azure Region where the Service should be created. Changing this forces a new resource to be created. // // > **Note:** Not all locations support this resource. Some are `West US 2`, `North Central US`, and `UK West`. Location pulumi.StringOutput `pulumi:"location"` // The name of the service instance. Used for service endpoint, must be unique within the audience. Changing this forces a new resource to be created. Name pulumi.StringOutput `pulumi:"name"` // Whether public network access is enabled or disabled for this service instance. Defaults to `true`. PublicNetworkAccessEnabled pulumi.BoolPtrOutput `pulumi:"publicNetworkAccessEnabled"` // The name of the Resource Group in which to create the Service. 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"` } // NewService registers a new resource with the given unique name, arguments, and options. func NewService(ctx *pulumi.Context, name string, args *ServiceArgs, opts ...pulumi.ResourceOption) (*Service, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.ResourceGroupName == nil { return nil, errors.New("invalid value for required argument 'ResourceGroupName'") } opts = internal.PkgResourceDefaultOpts(opts) var resource Service err := ctx.RegisterResource("azure:healthcare/service:Service", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetService gets an existing Service resource's state with the given name, ID, and optional // state properties that are used to uniquely qualify the lookup (nil if not required). func GetService(ctx *pulumi.Context, name string, id pulumi.IDInput, state *ServiceState, opts ...pulumi.ResourceOption) (*Service, error) { var resource Service err := ctx.ReadResource("azure:healthcare/service:Service", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering Service resources. type serviceState struct { AccessPolicyObjectIds []string `pulumi:"accessPolicyObjectIds"` // An `authenticationConfiguration` block as defined below. AuthenticationConfiguration *ServiceAuthenticationConfiguration `pulumi:"authenticationConfiguration"` // Specifies the name of the storage account which the operation configuration information is exported to. ConfigurationExportStorageAccountName *string `pulumi:"configurationExportStorageAccountName"` // A `corsConfiguration` block as defined below. CorsConfiguration *ServiceCorsConfiguration `pulumi:"corsConfiguration"` // A versionless Key Vault Key ID for CMK encryption of the backing database. Changing this forces a new resource to be created. // // > **Note:** In order to use a `Custom Key` from Key Vault for encryption you must grant Azure Cosmos DB 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/cosmos-db/how-to-setup-cmk#add-an-access-policy-to-your-azure-key-vault-instance) CosmosdbKeyVaultKeyVersionlessId *string `pulumi:"cosmosdbKeyVaultKeyVersionlessId"` // The provisioned throughput for the backing database. Range of `400`-`100000`. Defaults to `1000`. CosmosdbThroughput *int `pulumi:"cosmosdbThroughput"` // An `identity` block as defined below. Identity *ServiceIdentity `pulumi:"identity"` // The type of the service. Values at time of publication are: `fhir`, `fhir-Stu3` and `fhir-R4`. Default value is `fhir`. Kind *string `pulumi:"kind"` // Specifies the supported Azure Region where the Service should be created. Changing this forces a new resource to be created. // // > **Note:** Not all locations support this resource. Some are `West US 2`, `North Central US`, and `UK West`. Location *string `pulumi:"location"` // The name of the service instance. Used for service endpoint, must be unique within the audience. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // Whether public network access is enabled or disabled for this service instance. Defaults to `true`. PublicNetworkAccessEnabled *bool `pulumi:"publicNetworkAccessEnabled"` // The name of the Resource Group in which to create the Service. 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 ServiceState struct { AccessPolicyObjectIds pulumi.StringArrayInput // An `authenticationConfiguration` block as defined below. AuthenticationConfiguration ServiceAuthenticationConfigurationPtrInput // Specifies the name of the storage account which the operation configuration information is exported to. ConfigurationExportStorageAccountName pulumi.StringPtrInput // A `corsConfiguration` block as defined below. CorsConfiguration ServiceCorsConfigurationPtrInput // A versionless Key Vault Key ID for CMK encryption of the backing database. Changing this forces a new resource to be created. // // > **Note:** In order to use a `Custom Key` from Key Vault for encryption you must grant Azure Cosmos DB 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/cosmos-db/how-to-setup-cmk#add-an-access-policy-to-your-azure-key-vault-instance) CosmosdbKeyVaultKeyVersionlessId pulumi.StringPtrInput // The provisioned throughput for the backing database. Range of `400`-`100000`. Defaults to `1000`. CosmosdbThroughput pulumi.IntPtrInput // An `identity` block as defined below. Identity ServiceIdentityPtrInput // The type of the service. Values at time of publication are: `fhir`, `fhir-Stu3` and `fhir-R4`. Default value is `fhir`. Kind pulumi.StringPtrInput // Specifies the supported Azure Region where the Service should be created. Changing this forces a new resource to be created. // // > **Note:** Not all locations support this resource. Some are `West US 2`, `North Central US`, and `UK West`. Location pulumi.StringPtrInput // The name of the service instance. Used for service endpoint, must be unique within the audience. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // Whether public network access is enabled or disabled for this service instance. Defaults to `true`. PublicNetworkAccessEnabled pulumi.BoolPtrInput // The name of the Resource Group in which to create the Service. 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 (ServiceState) ElementType() reflect.Type { return reflect.TypeOf((*serviceState)(nil)).Elem() } type serviceArgs struct { AccessPolicyObjectIds []string `pulumi:"accessPolicyObjectIds"` // An `authenticationConfiguration` block as defined below. AuthenticationConfiguration *ServiceAuthenticationConfiguration `pulumi:"authenticationConfiguration"` // Specifies the name of the storage account which the operation configuration information is exported to. ConfigurationExportStorageAccountName *string `pulumi:"configurationExportStorageAccountName"` // A `corsConfiguration` block as defined below. CorsConfiguration *ServiceCorsConfiguration `pulumi:"corsConfiguration"` // A versionless Key Vault Key ID for CMK encryption of the backing database. Changing this forces a new resource to be created. // // > **Note:** In order to use a `Custom Key` from Key Vault for encryption you must grant Azure Cosmos DB 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/cosmos-db/how-to-setup-cmk#add-an-access-policy-to-your-azure-key-vault-instance) CosmosdbKeyVaultKeyVersionlessId *string `pulumi:"cosmosdbKeyVaultKeyVersionlessId"` // The provisioned throughput for the backing database. Range of `400`-`100000`. Defaults to `1000`. CosmosdbThroughput *int `pulumi:"cosmosdbThroughput"` // An `identity` block as defined below. Identity *ServiceIdentity `pulumi:"identity"` // The type of the service. Values at time of publication are: `fhir`, `fhir-Stu3` and `fhir-R4`. Default value is `fhir`. Kind *string `pulumi:"kind"` // Specifies the supported Azure Region where the Service should be created. Changing this forces a new resource to be created. // // > **Note:** Not all locations support this resource. Some are `West US 2`, `North Central US`, and `UK West`. Location *string `pulumi:"location"` // The name of the service instance. Used for service endpoint, must be unique within the audience. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // Whether public network access is enabled or disabled for this service instance. Defaults to `true`. PublicNetworkAccessEnabled *bool `pulumi:"publicNetworkAccessEnabled"` // The name of the Resource Group in which to create the Service. 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 Service resource. type ServiceArgs struct { AccessPolicyObjectIds pulumi.StringArrayInput // An `authenticationConfiguration` block as defined below. AuthenticationConfiguration ServiceAuthenticationConfigurationPtrInput // Specifies the name of the storage account which the operation configuration information is exported to. ConfigurationExportStorageAccountName pulumi.StringPtrInput // A `corsConfiguration` block as defined below. CorsConfiguration ServiceCorsConfigurationPtrInput // A versionless Key Vault Key ID for CMK encryption of the backing database. Changing this forces a new resource to be created. // // > **Note:** In order to use a `Custom Key` from Key Vault for encryption you must grant Azure Cosmos DB 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/cosmos-db/how-to-setup-cmk#add-an-access-policy-to-your-azure-key-vault-instance) CosmosdbKeyVaultKeyVersionlessId pulumi.StringPtrInput // The provisioned throughput for the backing database. Range of `400`-`100000`. Defaults to `1000`. CosmosdbThroughput pulumi.IntPtrInput // An `identity` block as defined below. Identity ServiceIdentityPtrInput // The type of the service. Values at time of publication are: `fhir`, `fhir-Stu3` and `fhir-R4`. Default value is `fhir`. Kind pulumi.StringPtrInput // Specifies the supported Azure Region where the Service should be created. Changing this forces a new resource to be created. // // > **Note:** Not all locations support this resource. Some are `West US 2`, `North Central US`, and `UK West`. Location pulumi.StringPtrInput // The name of the service instance. Used for service endpoint, must be unique within the audience. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // Whether public network access is enabled or disabled for this service instance. Defaults to `true`. PublicNetworkAccessEnabled pulumi.BoolPtrInput // The name of the Resource Group in which to create the Service. 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 (ServiceArgs) ElementType() reflect.Type { return reflect.TypeOf((*serviceArgs)(nil)).Elem() } type ServiceInput interface { pulumi.Input ToServiceOutput() ServiceOutput ToServiceOutputWithContext(ctx context.Context) ServiceOutput } func (*Service) ElementType() reflect.Type { return reflect.TypeOf((**Service)(nil)).Elem() } func (i *Service) ToServiceOutput() ServiceOutput { return i.ToServiceOutputWithContext(context.Background()) } func (i *Service) ToServiceOutputWithContext(ctx context.Context) ServiceOutput { return pulumi.ToOutputWithContext(ctx, i).(ServiceOutput) } // ServiceArrayInput is an input type that accepts ServiceArray and ServiceArrayOutput values. // You can construct a concrete instance of `ServiceArrayInput` via: // // ServiceArray{ ServiceArgs{...} } type ServiceArrayInput interface { pulumi.Input ToServiceArrayOutput() ServiceArrayOutput ToServiceArrayOutputWithContext(context.Context) ServiceArrayOutput } type ServiceArray []ServiceInput func (ServiceArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*Service)(nil)).Elem() } func (i ServiceArray) ToServiceArrayOutput() ServiceArrayOutput { return i.ToServiceArrayOutputWithContext(context.Background()) } func (i ServiceArray) ToServiceArrayOutputWithContext(ctx context.Context) ServiceArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(ServiceArrayOutput) } // ServiceMapInput is an input type that accepts ServiceMap and ServiceMapOutput values. // You can construct a concrete instance of `ServiceMapInput` via: // // ServiceMap{ "key": ServiceArgs{...} } type ServiceMapInput interface { pulumi.Input ToServiceMapOutput() ServiceMapOutput ToServiceMapOutputWithContext(context.Context) ServiceMapOutput } type ServiceMap map[string]ServiceInput func (ServiceMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*Service)(nil)).Elem() } func (i ServiceMap) ToServiceMapOutput() ServiceMapOutput { return i.ToServiceMapOutputWithContext(context.Background()) } func (i ServiceMap) ToServiceMapOutputWithContext(ctx context.Context) ServiceMapOutput { return pulumi.ToOutputWithContext(ctx, i).(ServiceMapOutput) } type ServiceOutput struct{ *pulumi.OutputState } func (ServiceOutput) ElementType() reflect.Type { return reflect.TypeOf((**Service)(nil)).Elem() } func (o ServiceOutput) ToServiceOutput() ServiceOutput { return o } func (o ServiceOutput) ToServiceOutputWithContext(ctx context.Context) ServiceOutput { return o } func (o ServiceOutput) AccessPolicyObjectIds() pulumi.StringArrayOutput { return o.ApplyT(func(v *Service) pulumi.StringArrayOutput { return v.AccessPolicyObjectIds }).(pulumi.StringArrayOutput) } // An `authenticationConfiguration` block as defined below. func (o ServiceOutput) AuthenticationConfiguration() ServiceAuthenticationConfigurationOutput { return o.ApplyT(func(v *Service) ServiceAuthenticationConfigurationOutput { return v.AuthenticationConfiguration }).(ServiceAuthenticationConfigurationOutput) } // Specifies the name of the storage account which the operation configuration information is exported to. func (o ServiceOutput) ConfigurationExportStorageAccountName() pulumi.StringPtrOutput { return o.ApplyT(func(v *Service) pulumi.StringPtrOutput { return v.ConfigurationExportStorageAccountName }).(pulumi.StringPtrOutput) } // A `corsConfiguration` block as defined below. func (o ServiceOutput) CorsConfiguration() ServiceCorsConfigurationOutput { return o.ApplyT(func(v *Service) ServiceCorsConfigurationOutput { return v.CorsConfiguration }).(ServiceCorsConfigurationOutput) } // A versionless Key Vault Key ID for CMK encryption of the backing database. Changing this forces a new resource to be created. // // > **Note:** In order to use a `Custom Key` from Key Vault for encryption you must grant Azure Cosmos DB 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/cosmos-db/how-to-setup-cmk#add-an-access-policy-to-your-azure-key-vault-instance) func (o ServiceOutput) CosmosdbKeyVaultKeyVersionlessId() pulumi.StringPtrOutput { return o.ApplyT(func(v *Service) pulumi.StringPtrOutput { return v.CosmosdbKeyVaultKeyVersionlessId }).(pulumi.StringPtrOutput) } // The provisioned throughput for the backing database. Range of `400`-`100000`. Defaults to `1000`. func (o ServiceOutput) CosmosdbThroughput() pulumi.IntPtrOutput { return o.ApplyT(func(v *Service) pulumi.IntPtrOutput { return v.CosmosdbThroughput }).(pulumi.IntPtrOutput) } // An `identity` block as defined below. func (o ServiceOutput) Identity() ServiceIdentityPtrOutput { return o.ApplyT(func(v *Service) ServiceIdentityPtrOutput { return v.Identity }).(ServiceIdentityPtrOutput) } // The type of the service. Values at time of publication are: `fhir`, `fhir-Stu3` and `fhir-R4`. Default value is `fhir`. func (o ServiceOutput) Kind() pulumi.StringPtrOutput { return o.ApplyT(func(v *Service) pulumi.StringPtrOutput { return v.Kind }).(pulumi.StringPtrOutput) } // Specifies the supported Azure Region where the Service should be created. Changing this forces a new resource to be created. // // > **Note:** Not all locations support this resource. Some are `West US 2`, `North Central US`, and `UK West`. func (o ServiceOutput) Location() pulumi.StringOutput { return o.ApplyT(func(v *Service) pulumi.StringOutput { return v.Location }).(pulumi.StringOutput) } // The name of the service instance. Used for service endpoint, must be unique within the audience. Changing this forces a new resource to be created. func (o ServiceOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *Service) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // Whether public network access is enabled or disabled for this service instance. Defaults to `true`. func (o ServiceOutput) PublicNetworkAccessEnabled() pulumi.BoolPtrOutput { return o.ApplyT(func(v *Service) pulumi.BoolPtrOutput { return v.PublicNetworkAccessEnabled }).(pulumi.BoolPtrOutput) } // The name of the Resource Group in which to create the Service. Changing this forces a new resource to be created. func (o ServiceOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v *Service) pulumi.StringOutput { return v.ResourceGroupName }).(pulumi.StringOutput) } // A mapping of tags to assign to the resource. func (o ServiceOutput) Tags() pulumi.StringMapOutput { return o.ApplyT(func(v *Service) pulumi.StringMapOutput { return v.Tags }).(pulumi.StringMapOutput) } type ServiceArrayOutput struct{ *pulumi.OutputState } func (ServiceArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*Service)(nil)).Elem() } func (o ServiceArrayOutput) ToServiceArrayOutput() ServiceArrayOutput { return o } func (o ServiceArrayOutput) ToServiceArrayOutputWithContext(ctx context.Context) ServiceArrayOutput { return o } func (o ServiceArrayOutput) Index(i pulumi.IntInput) ServiceOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *Service { return vs[0].([]*Service)[vs[1].(int)] }).(ServiceOutput) } type ServiceMapOutput struct{ *pulumi.OutputState } func (ServiceMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*Service)(nil)).Elem() } func (o ServiceMapOutput) ToServiceMapOutput() ServiceMapOutput { return o } func (o ServiceMapOutput) ToServiceMapOutputWithContext(ctx context.Context) ServiceMapOutput { return o } func (o ServiceMapOutput) MapIndex(k pulumi.StringInput) ServiceOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *Service { return vs[0].(map[string]*Service)[vs[1].(string)] }).(ServiceOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*ServiceInput)(nil)).Elem(), &Service{}) pulumi.RegisterInputType(reflect.TypeOf((*ServiceArrayInput)(nil)).Elem(), ServiceArray{}) pulumi.RegisterInputType(reflect.TypeOf((*ServiceMapInput)(nil)).Elem(), ServiceMap{}) pulumi.RegisterOutputType(ServiceOutput{}) pulumi.RegisterOutputType(ServiceArrayOutput{}) pulumi.RegisterOutputType(ServiceMapOutput{}) }
go
Apache-2.0
b66e1472775a89cca43f5050fef806854a7c3fa3
2026-01-07T09:44:27.619514Z
false
pulumi/pulumi-azure
https://github.com/pulumi/pulumi-azure/blob/b66e1472775a89cca43f5050fef806854a7c3fa3/sdk/go/azure/healthcare/getMedtechService.go
sdk/go/azure/healthcare/getMedtechService.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 healthcare 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 Healthcare Med Tech Service // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/healthcare" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { // example, err := healthcare.LookupMedtechService(ctx, &healthcare.LookupMedtechServiceArgs{ // Name: "tfexmedtech", // WorkspaceId: "tfexwks", // }, nil) // if err != nil { // return err // } // ctx.Export("azurermHealthcareMedtechServiceId", example.Id) // return nil // }) // } // // ``` // // ## API Providers // // <!-- This section is generated, changes will be overwritten --> // This data source uses the following Azure API Providers: // // * `Microsoft.HealthcareApis` - 2022-12-01 func LookupMedtechService(ctx *pulumi.Context, args *LookupMedtechServiceArgs, opts ...pulumi.InvokeOption) (*LookupMedtechServiceResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupMedtechServiceResult err := ctx.Invoke("azure:healthcare/getMedtechService:getMedtechService", args, &rv, opts...) if err != nil { return nil, err } return &rv, nil } // A collection of arguments for invoking getMedtechService. type LookupMedtechServiceArgs struct { // The name of the Healthcare Med Tech Service. Name string `pulumi:"name"` // The id of the Healthcare Workspace in which the Healthcare Med Tech Service exists. WorkspaceId string `pulumi:"workspaceId"` } // A collection of values returned by getMedtechService. type LookupMedtechServiceResult struct { // The Device Mappings of the Med Tech Service. DeviceMappingJson string `pulumi:"deviceMappingJson"` // The Consumer Group of the Event Hub of the Healthcare Med Tech Service. EventhubConsumerGroupName string `pulumi:"eventhubConsumerGroupName"` // The name of the Event Hub of the Healthcare Med Tech Service. EventhubName string `pulumi:"eventhubName"` // The namespace name of the Event Hub of the Healthcare Med Tech Service. EventhubNamespaceName string `pulumi:"eventhubNamespaceName"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` // The `identity` block as defined below. Identities []GetMedtechServiceIdentity `pulumi:"identities"` Name string `pulumi:"name"` WorkspaceId string `pulumi:"workspaceId"` } func LookupMedtechServiceOutput(ctx *pulumi.Context, args LookupMedtechServiceOutputArgs, opts ...pulumi.InvokeOption) LookupMedtechServiceResultOutput { return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupMedtechServiceResultOutput, error) { args := v.(LookupMedtechServiceArgs) options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} return ctx.InvokeOutput("azure:healthcare/getMedtechService:getMedtechService", args, LookupMedtechServiceResultOutput{}, options).(LookupMedtechServiceResultOutput), nil }).(LookupMedtechServiceResultOutput) } // A collection of arguments for invoking getMedtechService. type LookupMedtechServiceOutputArgs struct { // The name of the Healthcare Med Tech Service. Name pulumi.StringInput `pulumi:"name"` // The id of the Healthcare Workspace in which the Healthcare Med Tech Service exists. WorkspaceId pulumi.StringInput `pulumi:"workspaceId"` } func (LookupMedtechServiceOutputArgs) ElementType() reflect.Type { return reflect.TypeOf((*LookupMedtechServiceArgs)(nil)).Elem() } // A collection of values returned by getMedtechService. type LookupMedtechServiceResultOutput struct{ *pulumi.OutputState } func (LookupMedtechServiceResultOutput) ElementType() reflect.Type { return reflect.TypeOf((*LookupMedtechServiceResult)(nil)).Elem() } func (o LookupMedtechServiceResultOutput) ToLookupMedtechServiceResultOutput() LookupMedtechServiceResultOutput { return o } func (o LookupMedtechServiceResultOutput) ToLookupMedtechServiceResultOutputWithContext(ctx context.Context) LookupMedtechServiceResultOutput { return o } // The Device Mappings of the Med Tech Service. func (o LookupMedtechServiceResultOutput) DeviceMappingJson() pulumi.StringOutput { return o.ApplyT(func(v LookupMedtechServiceResult) string { return v.DeviceMappingJson }).(pulumi.StringOutput) } // The Consumer Group of the Event Hub of the Healthcare Med Tech Service. func (o LookupMedtechServiceResultOutput) EventhubConsumerGroupName() pulumi.StringOutput { return o.ApplyT(func(v LookupMedtechServiceResult) string { return v.EventhubConsumerGroupName }).(pulumi.StringOutput) } // The name of the Event Hub of the Healthcare Med Tech Service. func (o LookupMedtechServiceResultOutput) EventhubName() pulumi.StringOutput { return o.ApplyT(func(v LookupMedtechServiceResult) string { return v.EventhubName }).(pulumi.StringOutput) } // The namespace name of the Event Hub of the Healthcare Med Tech Service. func (o LookupMedtechServiceResultOutput) EventhubNamespaceName() pulumi.StringOutput { return o.ApplyT(func(v LookupMedtechServiceResult) string { return v.EventhubNamespaceName }).(pulumi.StringOutput) } // The provider-assigned unique ID for this managed resource. func (o LookupMedtechServiceResultOutput) Id() pulumi.StringOutput { return o.ApplyT(func(v LookupMedtechServiceResult) string { return v.Id }).(pulumi.StringOutput) } // The `identity` block as defined below. func (o LookupMedtechServiceResultOutput) Identities() GetMedtechServiceIdentityArrayOutput { return o.ApplyT(func(v LookupMedtechServiceResult) []GetMedtechServiceIdentity { return v.Identities }).(GetMedtechServiceIdentityArrayOutput) } func (o LookupMedtechServiceResultOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v LookupMedtechServiceResult) string { return v.Name }).(pulumi.StringOutput) } func (o LookupMedtechServiceResultOutput) WorkspaceId() pulumi.StringOutput { return o.ApplyT(func(v LookupMedtechServiceResult) string { return v.WorkspaceId }).(pulumi.StringOutput) } func init() { pulumi.RegisterOutputType(LookupMedtechServiceResultOutput{}) }
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/healthcare/getDicomService.go
sdk/go/azure/healthcare/getDicomService.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 healthcare 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 Healthcare DICOM Service // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/healthcare" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { // example, err := healthcare.LookupDicomService(ctx, &healthcare.LookupDicomServiceArgs{ // Name: "example-healthcare_dicom_service", // WorkspaceId: exampleAzurermHealthcareWorkspace.Id, // }, nil) // if err != nil { // return err // } // ctx.Export("azurermHealthcareDicomService", example.Id) // return nil // }) // } // // ``` // // ## API Providers // // <!-- This section is generated, changes will be overwritten --> // This data source uses the following Azure API Providers: // // * `Microsoft.HealthcareApis` - 2024-03-31 func LookupDicomService(ctx *pulumi.Context, args *LookupDicomServiceArgs, opts ...pulumi.InvokeOption) (*LookupDicomServiceResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupDicomServiceResult err := ctx.Invoke("azure:healthcare/getDicomService:getDicomService", args, &rv, opts...) if err != nil { return nil, err } return &rv, nil } // A collection of arguments for invoking getDicomService. type LookupDicomServiceArgs struct { // The name of the Healthcare DICOM Service Name string `pulumi:"name"` // The ID of the Healthcare Workspace in which the Healthcare DICOM Service exists. WorkspaceId string `pulumi:"workspaceId"` } // A collection of values returned by getDicomService. type LookupDicomServiceResult struct { // The `authentication` block as defined below. Authentications []GetDicomServiceAuthentication `pulumi:"authentications"` // The `cors` block as defined below. Cors []GetDicomServiceCor `pulumi:"cors"` // If data partitions are enabled or not. DataPartitionsEnabled bool `pulumi:"dataPartitionsEnabled"` // The URL of the key to use for encryption as part of the customer-managed key encryption settings. EncryptionKeyUrl string `pulumi:"encryptionKeyUrl"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` Identities []GetDicomServiceIdentity `pulumi:"identities"` // The Azure Region where the Healthcare DICOM Service is located. Location string `pulumi:"location"` Name string `pulumi:"name"` PrivateEndpoints []GetDicomServicePrivateEndpoint `pulumi:"privateEndpoints"` // The url of the Healthcare DICOM Services. ServiceUrl string `pulumi:"serviceUrl"` // The `storage` block as defined below. Storages []GetDicomServiceStorage `pulumi:"storages"` // A map of tags assigned to the Healthcare DICOM Service. Tags map[string]string `pulumi:"tags"` WorkspaceId string `pulumi:"workspaceId"` } func LookupDicomServiceOutput(ctx *pulumi.Context, args LookupDicomServiceOutputArgs, opts ...pulumi.InvokeOption) LookupDicomServiceResultOutput { return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupDicomServiceResultOutput, error) { args := v.(LookupDicomServiceArgs) options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} return ctx.InvokeOutput("azure:healthcare/getDicomService:getDicomService", args, LookupDicomServiceResultOutput{}, options).(LookupDicomServiceResultOutput), nil }).(LookupDicomServiceResultOutput) } // A collection of arguments for invoking getDicomService. type LookupDicomServiceOutputArgs struct { // The name of the Healthcare DICOM Service Name pulumi.StringInput `pulumi:"name"` // The ID of the Healthcare Workspace in which the Healthcare DICOM Service exists. WorkspaceId pulumi.StringInput `pulumi:"workspaceId"` } func (LookupDicomServiceOutputArgs) ElementType() reflect.Type { return reflect.TypeOf((*LookupDicomServiceArgs)(nil)).Elem() } // A collection of values returned by getDicomService. type LookupDicomServiceResultOutput struct{ *pulumi.OutputState } func (LookupDicomServiceResultOutput) ElementType() reflect.Type { return reflect.TypeOf((*LookupDicomServiceResult)(nil)).Elem() } func (o LookupDicomServiceResultOutput) ToLookupDicomServiceResultOutput() LookupDicomServiceResultOutput { return o } func (o LookupDicomServiceResultOutput) ToLookupDicomServiceResultOutputWithContext(ctx context.Context) LookupDicomServiceResultOutput { return o } // The `authentication` block as defined below. func (o LookupDicomServiceResultOutput) Authentications() GetDicomServiceAuthenticationArrayOutput { return o.ApplyT(func(v LookupDicomServiceResult) []GetDicomServiceAuthentication { return v.Authentications }).(GetDicomServiceAuthenticationArrayOutput) } // The `cors` block as defined below. func (o LookupDicomServiceResultOutput) Cors() GetDicomServiceCorArrayOutput { return o.ApplyT(func(v LookupDicomServiceResult) []GetDicomServiceCor { return v.Cors }).(GetDicomServiceCorArrayOutput) } // If data partitions are enabled or not. func (o LookupDicomServiceResultOutput) DataPartitionsEnabled() pulumi.BoolOutput { return o.ApplyT(func(v LookupDicomServiceResult) bool { return v.DataPartitionsEnabled }).(pulumi.BoolOutput) } // The URL of the key to use for encryption as part of the customer-managed key encryption settings. func (o LookupDicomServiceResultOutput) EncryptionKeyUrl() pulumi.StringOutput { return o.ApplyT(func(v LookupDicomServiceResult) string { return v.EncryptionKeyUrl }).(pulumi.StringOutput) } // The provider-assigned unique ID for this managed resource. func (o LookupDicomServiceResultOutput) Id() pulumi.StringOutput { return o.ApplyT(func(v LookupDicomServiceResult) string { return v.Id }).(pulumi.StringOutput) } func (o LookupDicomServiceResultOutput) Identities() GetDicomServiceIdentityArrayOutput { return o.ApplyT(func(v LookupDicomServiceResult) []GetDicomServiceIdentity { return v.Identities }).(GetDicomServiceIdentityArrayOutput) } // The Azure Region where the Healthcare DICOM Service is located. func (o LookupDicomServiceResultOutput) Location() pulumi.StringOutput { return o.ApplyT(func(v LookupDicomServiceResult) string { return v.Location }).(pulumi.StringOutput) } func (o LookupDicomServiceResultOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v LookupDicomServiceResult) string { return v.Name }).(pulumi.StringOutput) } func (o LookupDicomServiceResultOutput) PrivateEndpoints() GetDicomServicePrivateEndpointArrayOutput { return o.ApplyT(func(v LookupDicomServiceResult) []GetDicomServicePrivateEndpoint { return v.PrivateEndpoints }).(GetDicomServicePrivateEndpointArrayOutput) } // The url of the Healthcare DICOM Services. func (o LookupDicomServiceResultOutput) ServiceUrl() pulumi.StringOutput { return o.ApplyT(func(v LookupDicomServiceResult) string { return v.ServiceUrl }).(pulumi.StringOutput) } // The `storage` block as defined below. func (o LookupDicomServiceResultOutput) Storages() GetDicomServiceStorageArrayOutput { return o.ApplyT(func(v LookupDicomServiceResult) []GetDicomServiceStorage { return v.Storages }).(GetDicomServiceStorageArrayOutput) } // A map of tags assigned to the Healthcare DICOM Service. func (o LookupDicomServiceResultOutput) Tags() pulumi.StringMapOutput { return o.ApplyT(func(v LookupDicomServiceResult) map[string]string { return v.Tags }).(pulumi.StringMapOutput) } func (o LookupDicomServiceResultOutput) WorkspaceId() pulumi.StringOutput { return o.ApplyT(func(v LookupDicomServiceResult) string { return v.WorkspaceId }).(pulumi.StringOutput) } func init() { pulumi.RegisterOutputType(LookupDicomServiceResultOutput{}) }
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/healthcare/getFhirService.go
sdk/go/azure/healthcare/getFhirService.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 healthcare 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 Healthcare FHIR Service(Fast Healthcare Interoperability Resources). func LookupFhirService(ctx *pulumi.Context, args *LookupFhirServiceArgs, opts ...pulumi.InvokeOption) (*LookupFhirServiceResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupFhirServiceResult err := ctx.Invoke("azure:healthcare/getFhirService:getFhirService", args, &rv, opts...) if err != nil { return nil, err } return &rv, nil } // A collection of arguments for invoking getFhirService. type LookupFhirServiceArgs struct { // The name of the Healthcare FHIR Service. Name string `pulumi:"name"` // The map of tags assigned to the Healthcare FHIR Service. Tags map[string]string `pulumi:"tags"` // The id of the Healthcare Workspace in which the Healthcare FHIR Service exists. WorkspaceId string `pulumi:"workspaceId"` } // A collection of values returned by getFhirService. type LookupFhirServiceResult struct { // The list of the access policies of the service instance. AccessPolicyObjectIds []string `pulumi:"accessPolicyObjectIds"` // The `authentication` block as defined below. Authentications []GetFhirServiceAuthentication `pulumi:"authentications"` // The name of the storage account which the operation configuration information is exported to. ConfigurationExportStorageAccountName string `pulumi:"configurationExportStorageAccountName"` // The list of azure container registry settings used for convert data operation of the service instance. ContainerRegistryLoginServerUrls []string `pulumi:"containerRegistryLoginServerUrls"` // The `cors` block as defined below. Cors []GetFhirServiceCor `pulumi:"cors"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` // The `identity` block as defined below. Identities []GetFhirServiceIdentity `pulumi:"identities"` // The kind of the Healthcare FHIR Service. Kind string `pulumi:"kind"` // The Azure Region where the Healthcare FHIR Service is located. Location string `pulumi:"location"` Name string `pulumi:"name"` // The map of tags assigned to the Healthcare FHIR Service. Tags map[string]string `pulumi:"tags"` WorkspaceId string `pulumi:"workspaceId"` } func LookupFhirServiceOutput(ctx *pulumi.Context, args LookupFhirServiceOutputArgs, opts ...pulumi.InvokeOption) LookupFhirServiceResultOutput { return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupFhirServiceResultOutput, error) { args := v.(LookupFhirServiceArgs) options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} return ctx.InvokeOutput("azure:healthcare/getFhirService:getFhirService", args, LookupFhirServiceResultOutput{}, options).(LookupFhirServiceResultOutput), nil }).(LookupFhirServiceResultOutput) } // A collection of arguments for invoking getFhirService. type LookupFhirServiceOutputArgs struct { // The name of the Healthcare FHIR Service. Name pulumi.StringInput `pulumi:"name"` // The map of tags assigned to the Healthcare FHIR Service. Tags pulumi.StringMapInput `pulumi:"tags"` // The id of the Healthcare Workspace in which the Healthcare FHIR Service exists. WorkspaceId pulumi.StringInput `pulumi:"workspaceId"` } func (LookupFhirServiceOutputArgs) ElementType() reflect.Type { return reflect.TypeOf((*LookupFhirServiceArgs)(nil)).Elem() } // A collection of values returned by getFhirService. type LookupFhirServiceResultOutput struct{ *pulumi.OutputState } func (LookupFhirServiceResultOutput) ElementType() reflect.Type { return reflect.TypeOf((*LookupFhirServiceResult)(nil)).Elem() } func (o LookupFhirServiceResultOutput) ToLookupFhirServiceResultOutput() LookupFhirServiceResultOutput { return o } func (o LookupFhirServiceResultOutput) ToLookupFhirServiceResultOutputWithContext(ctx context.Context) LookupFhirServiceResultOutput { return o } // The list of the access policies of the service instance. func (o LookupFhirServiceResultOutput) AccessPolicyObjectIds() pulumi.StringArrayOutput { return o.ApplyT(func(v LookupFhirServiceResult) []string { return v.AccessPolicyObjectIds }).(pulumi.StringArrayOutput) } // The `authentication` block as defined below. func (o LookupFhirServiceResultOutput) Authentications() GetFhirServiceAuthenticationArrayOutput { return o.ApplyT(func(v LookupFhirServiceResult) []GetFhirServiceAuthentication { return v.Authentications }).(GetFhirServiceAuthenticationArrayOutput) } // The name of the storage account which the operation configuration information is exported to. func (o LookupFhirServiceResultOutput) ConfigurationExportStorageAccountName() pulumi.StringOutput { return o.ApplyT(func(v LookupFhirServiceResult) string { return v.ConfigurationExportStorageAccountName }).(pulumi.StringOutput) } // The list of azure container registry settings used for convert data operation of the service instance. func (o LookupFhirServiceResultOutput) ContainerRegistryLoginServerUrls() pulumi.StringArrayOutput { return o.ApplyT(func(v LookupFhirServiceResult) []string { return v.ContainerRegistryLoginServerUrls }).(pulumi.StringArrayOutput) } // The `cors` block as defined below. func (o LookupFhirServiceResultOutput) Cors() GetFhirServiceCorArrayOutput { return o.ApplyT(func(v LookupFhirServiceResult) []GetFhirServiceCor { return v.Cors }).(GetFhirServiceCorArrayOutput) } // The provider-assigned unique ID for this managed resource. func (o LookupFhirServiceResultOutput) Id() pulumi.StringOutput { return o.ApplyT(func(v LookupFhirServiceResult) string { return v.Id }).(pulumi.StringOutput) } // The `identity` block as defined below. func (o LookupFhirServiceResultOutput) Identities() GetFhirServiceIdentityArrayOutput { return o.ApplyT(func(v LookupFhirServiceResult) []GetFhirServiceIdentity { return v.Identities }).(GetFhirServiceIdentityArrayOutput) } // The kind of the Healthcare FHIR Service. func (o LookupFhirServiceResultOutput) Kind() pulumi.StringOutput { return o.ApplyT(func(v LookupFhirServiceResult) string { return v.Kind }).(pulumi.StringOutput) } // The Azure Region where the Healthcare FHIR Service is located. func (o LookupFhirServiceResultOutput) Location() pulumi.StringOutput { return o.ApplyT(func(v LookupFhirServiceResult) string { return v.Location }).(pulumi.StringOutput) } func (o LookupFhirServiceResultOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v LookupFhirServiceResult) string { return v.Name }).(pulumi.StringOutput) } // The map of tags assigned to the Healthcare FHIR Service. func (o LookupFhirServiceResultOutput) Tags() pulumi.StringMapOutput { return o.ApplyT(func(v LookupFhirServiceResult) map[string]string { return v.Tags }).(pulumi.StringMapOutput) } func (o LookupFhirServiceResultOutput) WorkspaceId() pulumi.StringOutput { return o.ApplyT(func(v LookupFhirServiceResult) string { return v.WorkspaceId }).(pulumi.StringOutput) } func init() { pulumi.RegisterOutputType(LookupFhirServiceResultOutput{}) }
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/healthcare/fhirService.go
sdk/go/azure/healthcare/fhirService.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 healthcare import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a Healthcare FHIR (Fast Healthcare Interoperability Resources) Service // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/healthcare" // "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 // } // current, err := core.GetClientConfig(ctx, map[string]interface{}{}, nil) // if err != nil { // return err // } // exampleWorkspace, err := healthcare.NewWorkspace(ctx, "example", &healthcare.WorkspaceArgs{ // Name: pulumi.String("example"), // Location: example.Location, // ResourceGroupName: example.Name, // }) // if err != nil { // return err // } // _, err = healthcare.NewFhirService(ctx, "example", &healthcare.FhirServiceArgs{ // Name: pulumi.String("tfexfhir"), // Location: pulumi.String("east us"), // ResourceGroupName: pulumi.String("tfex-resource_group"), // WorkspaceId: exampleWorkspace.ID(), // Kind: pulumi.String("fhir-R4"), // Authentication: &healthcare.FhirServiceAuthenticationArgs{ // Authority: pulumi.String("https://login.microsoftonline.com/tenantId"), // Audience: pulumi.String("https://tfexfhir.fhir.azurehealthcareapis.com"), // }, // AccessPolicyObjectIds: pulumi.StringArray{ // pulumi.String(current.ObjectId), // }, // Identity: &healthcare.FhirServiceIdentityArgs{ // Type: pulumi.String("SystemAssigned"), // }, // ContainerRegistryLoginServerUrls: pulumi.StringArray{ // pulumi.String("tfex-container_registry_login_server"), // }, // Cors: &healthcare.FhirServiceCorsArgs{ // AllowedOrigins: pulumi.StringArray{ // pulumi.String("https://tfex.com:123"), // pulumi.String("https://tfex1.com:3389"), // }, // AllowedHeaders: pulumi.StringArray{ // pulumi.String("*"), // }, // AllowedMethods: pulumi.StringArray{ // pulumi.String("GET"), // pulumi.String("DELETE"), // pulumi.String("PUT"), // }, // MaxAgeInSeconds: pulumi.Int(3600), // CredentialsAllowed: pulumi.Bool(true), // }, // ConfigurationExportStorageAccountName: pulumi.String("storage_account_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.HealthcareApis` - 2022-12-01 // // ## Import // // Healthcare FHIR Service can be imported using the resource`id`, e.g. // // ```sh // $ pulumi import azure:healthcare/fhirService:FhirService example /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/group1/providers/Microsoft.HealthcareApis/workspaces/workspace1/fhirServices/service1 // ``` type FhirService struct { pulumi.CustomResourceState // A list of the access policies of the service instance. AccessPolicyObjectIds pulumi.StringArrayOutput `pulumi:"accessPolicyObjectIds"` // An `authentication` block as defined below. Authentication FhirServiceAuthenticationOutput `pulumi:"authentication"` // Specifies the name of the storage account which the operation configuration information is exported to. ConfigurationExportStorageAccountName pulumi.StringPtrOutput `pulumi:"configurationExportStorageAccountName"` // A list of azure container registry settings used for convert data operation of the service instance. ContainerRegistryLoginServerUrls pulumi.StringArrayOutput `pulumi:"containerRegistryLoginServerUrls"` // A `cors` block as defined below. Cors FhirServiceCorsPtrOutput `pulumi:"cors"` // An `identity` block as defined below. Identity FhirServiceIdentityPtrOutput `pulumi:"identity"` // Specifies the kind of the Healthcare FHIR Service. Possible values are: `fhir-Stu3` and `fhir-R4`. Defaults to `fhir-R4`. Changing this forces a new Healthcare FHIR Service to be created. Kind pulumi.StringPtrOutput `pulumi:"kind"` // Specifies the Azure Region where the Healthcare FHIR Service should be created. Changing this forces a new Healthcare FHIR Service to be created. Location pulumi.StringOutput `pulumi:"location"` // Specifies the name of the Healthcare FHIR Service. Changing this forces a new Healthcare FHIR Service to be created. Name pulumi.StringOutput `pulumi:"name"` // [A list](https://www.terraform.io/docs/configuration/attr-as-blocks.html) of `ociArtifact` objects as defined below to describe [OCI artifacts for export](https://learn.microsoft.com/en-gb/azure/healthcare-apis/fhir/de-identified-export). OciArtifacts FhirServiceOciArtifactArrayOutput `pulumi:"ociArtifacts"` // Whether public networks access is enabled. PublicNetworkAccessEnabled pulumi.BoolOutput `pulumi:"publicNetworkAccessEnabled"` // Specifies the name of the Resource Group in which to create the Healthcare FHIR Service. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // A mapping of tags to assign to the Healthcare FHIR Service. Tags pulumi.StringMapOutput `pulumi:"tags"` // Specifies the id of the Healthcare Workspace where the Healthcare FHIR Service should exist. Changing this forces a new Healthcare FHIR Service to be created. WorkspaceId pulumi.StringOutput `pulumi:"workspaceId"` } // NewFhirService registers a new resource with the given unique name, arguments, and options. func NewFhirService(ctx *pulumi.Context, name string, args *FhirServiceArgs, opts ...pulumi.ResourceOption) (*FhirService, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.Authentication == nil { return nil, errors.New("invalid value for required argument 'Authentication'") } if args.ResourceGroupName == nil { return nil, errors.New("invalid value for required argument 'ResourceGroupName'") } if args.WorkspaceId == nil { return nil, errors.New("invalid value for required argument 'WorkspaceId'") } opts = internal.PkgResourceDefaultOpts(opts) var resource FhirService err := ctx.RegisterResource("azure:healthcare/fhirService:FhirService", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetFhirService gets an existing FhirService 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 GetFhirService(ctx *pulumi.Context, name string, id pulumi.IDInput, state *FhirServiceState, opts ...pulumi.ResourceOption) (*FhirService, error) { var resource FhirService err := ctx.ReadResource("azure:healthcare/fhirService:FhirService", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering FhirService resources. type fhirServiceState struct { // A list of the access policies of the service instance. AccessPolicyObjectIds []string `pulumi:"accessPolicyObjectIds"` // An `authentication` block as defined below. Authentication *FhirServiceAuthentication `pulumi:"authentication"` // Specifies the name of the storage account which the operation configuration information is exported to. ConfigurationExportStorageAccountName *string `pulumi:"configurationExportStorageAccountName"` // A list of azure container registry settings used for convert data operation of the service instance. ContainerRegistryLoginServerUrls []string `pulumi:"containerRegistryLoginServerUrls"` // A `cors` block as defined below. Cors *FhirServiceCors `pulumi:"cors"` // An `identity` block as defined below. Identity *FhirServiceIdentity `pulumi:"identity"` // Specifies the kind of the Healthcare FHIR Service. Possible values are: `fhir-Stu3` and `fhir-R4`. Defaults to `fhir-R4`. Changing this forces a new Healthcare FHIR Service to be created. Kind *string `pulumi:"kind"` // Specifies the Azure Region where the Healthcare FHIR Service should be created. Changing this forces a new Healthcare FHIR Service to be created. Location *string `pulumi:"location"` // Specifies the name of the Healthcare FHIR Service. Changing this forces a new Healthcare FHIR Service to be created. Name *string `pulumi:"name"` // [A list](https://www.terraform.io/docs/configuration/attr-as-blocks.html) of `ociArtifact` objects as defined below to describe [OCI artifacts for export](https://learn.microsoft.com/en-gb/azure/healthcare-apis/fhir/de-identified-export). OciArtifacts []FhirServiceOciArtifact `pulumi:"ociArtifacts"` // Whether public networks access is enabled. PublicNetworkAccessEnabled *bool `pulumi:"publicNetworkAccessEnabled"` // Specifies the name of the Resource Group in which to create the Healthcare FHIR Service. Changing this forces a new resource to be created. ResourceGroupName *string `pulumi:"resourceGroupName"` // A mapping of tags to assign to the Healthcare FHIR Service. Tags map[string]string `pulumi:"tags"` // Specifies the id of the Healthcare Workspace where the Healthcare FHIR Service should exist. Changing this forces a new Healthcare FHIR Service to be created. WorkspaceId *string `pulumi:"workspaceId"` } type FhirServiceState struct { // A list of the access policies of the service instance. AccessPolicyObjectIds pulumi.StringArrayInput // An `authentication` block as defined below. Authentication FhirServiceAuthenticationPtrInput // Specifies the name of the storage account which the operation configuration information is exported to. ConfigurationExportStorageAccountName pulumi.StringPtrInput // A list of azure container registry settings used for convert data operation of the service instance. ContainerRegistryLoginServerUrls pulumi.StringArrayInput // A `cors` block as defined below. Cors FhirServiceCorsPtrInput // An `identity` block as defined below. Identity FhirServiceIdentityPtrInput // Specifies the kind of the Healthcare FHIR Service. Possible values are: `fhir-Stu3` and `fhir-R4`. Defaults to `fhir-R4`. Changing this forces a new Healthcare FHIR Service to be created. Kind pulumi.StringPtrInput // Specifies the Azure Region where the Healthcare FHIR Service should be created. Changing this forces a new Healthcare FHIR Service to be created. Location pulumi.StringPtrInput // Specifies the name of the Healthcare FHIR Service. Changing this forces a new Healthcare FHIR Service to be created. Name pulumi.StringPtrInput // [A list](https://www.terraform.io/docs/configuration/attr-as-blocks.html) of `ociArtifact` objects as defined below to describe [OCI artifacts for export](https://learn.microsoft.com/en-gb/azure/healthcare-apis/fhir/de-identified-export). OciArtifacts FhirServiceOciArtifactArrayInput // Whether public networks access is enabled. PublicNetworkAccessEnabled pulumi.BoolPtrInput // Specifies the name of the Resource Group in which to create the Healthcare FHIR Service. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringPtrInput // A mapping of tags to assign to the Healthcare FHIR Service. Tags pulumi.StringMapInput // Specifies the id of the Healthcare Workspace where the Healthcare FHIR Service should exist. Changing this forces a new Healthcare FHIR Service to be created. WorkspaceId pulumi.StringPtrInput } func (FhirServiceState) ElementType() reflect.Type { return reflect.TypeOf((*fhirServiceState)(nil)).Elem() } type fhirServiceArgs struct { // A list of the access policies of the service instance. AccessPolicyObjectIds []string `pulumi:"accessPolicyObjectIds"` // An `authentication` block as defined below. Authentication FhirServiceAuthentication `pulumi:"authentication"` // Specifies the name of the storage account which the operation configuration information is exported to. ConfigurationExportStorageAccountName *string `pulumi:"configurationExportStorageAccountName"` // A list of azure container registry settings used for convert data operation of the service instance. ContainerRegistryLoginServerUrls []string `pulumi:"containerRegistryLoginServerUrls"` // A `cors` block as defined below. Cors *FhirServiceCors `pulumi:"cors"` // An `identity` block as defined below. Identity *FhirServiceIdentity `pulumi:"identity"` // Specifies the kind of the Healthcare FHIR Service. Possible values are: `fhir-Stu3` and `fhir-R4`. Defaults to `fhir-R4`. Changing this forces a new Healthcare FHIR Service to be created. Kind *string `pulumi:"kind"` // Specifies the Azure Region where the Healthcare FHIR Service should be created. Changing this forces a new Healthcare FHIR Service to be created. Location *string `pulumi:"location"` // Specifies the name of the Healthcare FHIR Service. Changing this forces a new Healthcare FHIR Service to be created. Name *string `pulumi:"name"` // [A list](https://www.terraform.io/docs/configuration/attr-as-blocks.html) of `ociArtifact` objects as defined below to describe [OCI artifacts for export](https://learn.microsoft.com/en-gb/azure/healthcare-apis/fhir/de-identified-export). OciArtifacts []FhirServiceOciArtifact `pulumi:"ociArtifacts"` // Specifies the name of the Resource Group in which to create the Healthcare FHIR Service. Changing this forces a new resource to be created. ResourceGroupName string `pulumi:"resourceGroupName"` // A mapping of tags to assign to the Healthcare FHIR Service. Tags map[string]string `pulumi:"tags"` // Specifies the id of the Healthcare Workspace where the Healthcare FHIR Service should exist. Changing this forces a new Healthcare FHIR Service to be created. WorkspaceId string `pulumi:"workspaceId"` } // The set of arguments for constructing a FhirService resource. type FhirServiceArgs struct { // A list of the access policies of the service instance. AccessPolicyObjectIds pulumi.StringArrayInput // An `authentication` block as defined below. Authentication FhirServiceAuthenticationInput // Specifies the name of the storage account which the operation configuration information is exported to. ConfigurationExportStorageAccountName pulumi.StringPtrInput // A list of azure container registry settings used for convert data operation of the service instance. ContainerRegistryLoginServerUrls pulumi.StringArrayInput // A `cors` block as defined below. Cors FhirServiceCorsPtrInput // An `identity` block as defined below. Identity FhirServiceIdentityPtrInput // Specifies the kind of the Healthcare FHIR Service. Possible values are: `fhir-Stu3` and `fhir-R4`. Defaults to `fhir-R4`. Changing this forces a new Healthcare FHIR Service to be created. Kind pulumi.StringPtrInput // Specifies the Azure Region where the Healthcare FHIR Service should be created. Changing this forces a new Healthcare FHIR Service to be created. Location pulumi.StringPtrInput // Specifies the name of the Healthcare FHIR Service. Changing this forces a new Healthcare FHIR Service to be created. Name pulumi.StringPtrInput // [A list](https://www.terraform.io/docs/configuration/attr-as-blocks.html) of `ociArtifact` objects as defined below to describe [OCI artifacts for export](https://learn.microsoft.com/en-gb/azure/healthcare-apis/fhir/de-identified-export). OciArtifacts FhirServiceOciArtifactArrayInput // Specifies the name of the Resource Group in which to create the Healthcare FHIR Service. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringInput // A mapping of tags to assign to the Healthcare FHIR Service. Tags pulumi.StringMapInput // Specifies the id of the Healthcare Workspace where the Healthcare FHIR Service should exist. Changing this forces a new Healthcare FHIR Service to be created. WorkspaceId pulumi.StringInput } func (FhirServiceArgs) ElementType() reflect.Type { return reflect.TypeOf((*fhirServiceArgs)(nil)).Elem() } type FhirServiceInput interface { pulumi.Input ToFhirServiceOutput() FhirServiceOutput ToFhirServiceOutputWithContext(ctx context.Context) FhirServiceOutput } func (*FhirService) ElementType() reflect.Type { return reflect.TypeOf((**FhirService)(nil)).Elem() } func (i *FhirService) ToFhirServiceOutput() FhirServiceOutput { return i.ToFhirServiceOutputWithContext(context.Background()) } func (i *FhirService) ToFhirServiceOutputWithContext(ctx context.Context) FhirServiceOutput { return pulumi.ToOutputWithContext(ctx, i).(FhirServiceOutput) } // FhirServiceArrayInput is an input type that accepts FhirServiceArray and FhirServiceArrayOutput values. // You can construct a concrete instance of `FhirServiceArrayInput` via: // // FhirServiceArray{ FhirServiceArgs{...} } type FhirServiceArrayInput interface { pulumi.Input ToFhirServiceArrayOutput() FhirServiceArrayOutput ToFhirServiceArrayOutputWithContext(context.Context) FhirServiceArrayOutput } type FhirServiceArray []FhirServiceInput func (FhirServiceArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*FhirService)(nil)).Elem() } func (i FhirServiceArray) ToFhirServiceArrayOutput() FhirServiceArrayOutput { return i.ToFhirServiceArrayOutputWithContext(context.Background()) } func (i FhirServiceArray) ToFhirServiceArrayOutputWithContext(ctx context.Context) FhirServiceArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(FhirServiceArrayOutput) } // FhirServiceMapInput is an input type that accepts FhirServiceMap and FhirServiceMapOutput values. // You can construct a concrete instance of `FhirServiceMapInput` via: // // FhirServiceMap{ "key": FhirServiceArgs{...} } type FhirServiceMapInput interface { pulumi.Input ToFhirServiceMapOutput() FhirServiceMapOutput ToFhirServiceMapOutputWithContext(context.Context) FhirServiceMapOutput } type FhirServiceMap map[string]FhirServiceInput func (FhirServiceMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*FhirService)(nil)).Elem() } func (i FhirServiceMap) ToFhirServiceMapOutput() FhirServiceMapOutput { return i.ToFhirServiceMapOutputWithContext(context.Background()) } func (i FhirServiceMap) ToFhirServiceMapOutputWithContext(ctx context.Context) FhirServiceMapOutput { return pulumi.ToOutputWithContext(ctx, i).(FhirServiceMapOutput) } type FhirServiceOutput struct{ *pulumi.OutputState } func (FhirServiceOutput) ElementType() reflect.Type { return reflect.TypeOf((**FhirService)(nil)).Elem() } func (o FhirServiceOutput) ToFhirServiceOutput() FhirServiceOutput { return o } func (o FhirServiceOutput) ToFhirServiceOutputWithContext(ctx context.Context) FhirServiceOutput { return o } // A list of the access policies of the service instance. func (o FhirServiceOutput) AccessPolicyObjectIds() pulumi.StringArrayOutput { return o.ApplyT(func(v *FhirService) pulumi.StringArrayOutput { return v.AccessPolicyObjectIds }).(pulumi.StringArrayOutput) } // An `authentication` block as defined below. func (o FhirServiceOutput) Authentication() FhirServiceAuthenticationOutput { return o.ApplyT(func(v *FhirService) FhirServiceAuthenticationOutput { return v.Authentication }).(FhirServiceAuthenticationOutput) } // Specifies the name of the storage account which the operation configuration information is exported to. func (o FhirServiceOutput) ConfigurationExportStorageAccountName() pulumi.StringPtrOutput { return o.ApplyT(func(v *FhirService) pulumi.StringPtrOutput { return v.ConfigurationExportStorageAccountName }).(pulumi.StringPtrOutput) } // A list of azure container registry settings used for convert data operation of the service instance. func (o FhirServiceOutput) ContainerRegistryLoginServerUrls() pulumi.StringArrayOutput { return o.ApplyT(func(v *FhirService) pulumi.StringArrayOutput { return v.ContainerRegistryLoginServerUrls }).(pulumi.StringArrayOutput) } // A `cors` block as defined below. func (o FhirServiceOutput) Cors() FhirServiceCorsPtrOutput { return o.ApplyT(func(v *FhirService) FhirServiceCorsPtrOutput { return v.Cors }).(FhirServiceCorsPtrOutput) } // An `identity` block as defined below. func (o FhirServiceOutput) Identity() FhirServiceIdentityPtrOutput { return o.ApplyT(func(v *FhirService) FhirServiceIdentityPtrOutput { return v.Identity }).(FhirServiceIdentityPtrOutput) } // Specifies the kind of the Healthcare FHIR Service. Possible values are: `fhir-Stu3` and `fhir-R4`. Defaults to `fhir-R4`. Changing this forces a new Healthcare FHIR Service to be created. func (o FhirServiceOutput) Kind() pulumi.StringPtrOutput { return o.ApplyT(func(v *FhirService) pulumi.StringPtrOutput { return v.Kind }).(pulumi.StringPtrOutput) } // Specifies the Azure Region where the Healthcare FHIR Service should be created. Changing this forces a new Healthcare FHIR Service to be created. func (o FhirServiceOutput) Location() pulumi.StringOutput { return o.ApplyT(func(v *FhirService) pulumi.StringOutput { return v.Location }).(pulumi.StringOutput) } // Specifies the name of the Healthcare FHIR Service. Changing this forces a new Healthcare FHIR Service to be created. func (o FhirServiceOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *FhirService) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // [A list](https://www.terraform.io/docs/configuration/attr-as-blocks.html) of `ociArtifact` objects as defined below to describe [OCI artifacts for export](https://learn.microsoft.com/en-gb/azure/healthcare-apis/fhir/de-identified-export). func (o FhirServiceOutput) OciArtifacts() FhirServiceOciArtifactArrayOutput { return o.ApplyT(func(v *FhirService) FhirServiceOciArtifactArrayOutput { return v.OciArtifacts }).(FhirServiceOciArtifactArrayOutput) } // Whether public networks access is enabled. func (o FhirServiceOutput) PublicNetworkAccessEnabled() pulumi.BoolOutput { return o.ApplyT(func(v *FhirService) pulumi.BoolOutput { return v.PublicNetworkAccessEnabled }).(pulumi.BoolOutput) } // Specifies the name of the Resource Group in which to create the Healthcare FHIR Service. Changing this forces a new resource to be created. func (o FhirServiceOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v *FhirService) pulumi.StringOutput { return v.ResourceGroupName }).(pulumi.StringOutput) } // A mapping of tags to assign to the Healthcare FHIR Service. func (o FhirServiceOutput) Tags() pulumi.StringMapOutput { return o.ApplyT(func(v *FhirService) pulumi.StringMapOutput { return v.Tags }).(pulumi.StringMapOutput) } // Specifies the id of the Healthcare Workspace where the Healthcare FHIR Service should exist. Changing this forces a new Healthcare FHIR Service to be created. func (o FhirServiceOutput) WorkspaceId() pulumi.StringOutput { return o.ApplyT(func(v *FhirService) pulumi.StringOutput { return v.WorkspaceId }).(pulumi.StringOutput) } type FhirServiceArrayOutput struct{ *pulumi.OutputState } func (FhirServiceArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*FhirService)(nil)).Elem() } func (o FhirServiceArrayOutput) ToFhirServiceArrayOutput() FhirServiceArrayOutput { return o } func (o FhirServiceArrayOutput) ToFhirServiceArrayOutputWithContext(ctx context.Context) FhirServiceArrayOutput { return o } func (o FhirServiceArrayOutput) Index(i pulumi.IntInput) FhirServiceOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *FhirService { return vs[0].([]*FhirService)[vs[1].(int)] }).(FhirServiceOutput) } type FhirServiceMapOutput struct{ *pulumi.OutputState } func (FhirServiceMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*FhirService)(nil)).Elem() } func (o FhirServiceMapOutput) ToFhirServiceMapOutput() FhirServiceMapOutput { return o } func (o FhirServiceMapOutput) ToFhirServiceMapOutputWithContext(ctx context.Context) FhirServiceMapOutput { return o } func (o FhirServiceMapOutput) MapIndex(k pulumi.StringInput) FhirServiceOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *FhirService { return vs[0].(map[string]*FhirService)[vs[1].(string)] }).(FhirServiceOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*FhirServiceInput)(nil)).Elem(), &FhirService{}) pulumi.RegisterInputType(reflect.TypeOf((*FhirServiceArrayInput)(nil)).Elem(), FhirServiceArray{}) pulumi.RegisterInputType(reflect.TypeOf((*FhirServiceMapInput)(nil)).Elem(), FhirServiceMap{}) pulumi.RegisterOutputType(FhirServiceOutput{}) pulumi.RegisterOutputType(FhirServiceArrayOutput{}) pulumi.RegisterOutputType(FhirServiceMapOutput{}) }
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/healthcare/getService.go
sdk/go/azure/healthcare/getService.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 healthcare 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 Healthcare Service // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/healthcare" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { // example, err := healthcare.LookupService(ctx, &healthcare.LookupServiceArgs{ // Name: "example-healthcare_service", // ResourceGroupName: "example-resources", // Location: "westus2", // }, nil) // if err != nil { // return err // } // ctx.Export("healthcareServiceId", example.Id) // return nil // }) // } // // ``` // // ## API Providers // // <!-- This section is generated, changes will be overwritten --> // This data source uses the following Azure API Providers: // // * `Microsoft.HealthcareApis` - 2022-12-01 func LookupService(ctx *pulumi.Context, args *LookupServiceArgs, opts ...pulumi.InvokeOption) (*LookupServiceResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupServiceResult err := ctx.Invoke("azure:healthcare/getService:getService", args, &rv, opts...) if err != nil { return nil, err } return &rv, nil } // A collection of arguments for invoking getService. type LookupServiceArgs struct { // The Azure Region where the Service is located. Location string `pulumi:"location"` // Specifies the name of the Healthcare Service. Name string `pulumi:"name"` // The name of the Resource Group in which the Healthcare Service exists. ResourceGroupName string `pulumi:"resourceGroupName"` } // A collection of values returned by getService. type LookupServiceResult struct { AccessPolicyObjectIds []string `pulumi:"accessPolicyObjectIds"` // An `authenticationConfiguration` block as defined below. AuthenticationConfigurations []GetServiceAuthenticationConfiguration `pulumi:"authenticationConfigurations"` // A `corsConfiguration` block as defined below. CorsConfigurations []GetServiceCorsConfiguration `pulumi:"corsConfigurations"` // The versionless Key Vault Key ID for CMK encryption of the backing database. CosmosdbKeyVaultKeyVersionlessId string `pulumi:"cosmosdbKeyVaultKeyVersionlessId"` // The provisioned throughput for the backing database. CosmosdbThroughput int `pulumi:"cosmosdbThroughput"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` // The type of the service. Kind string `pulumi:"kind"` // The Azure Region where the Service is located. Location string `pulumi:"location"` Name string `pulumi:"name"` ResourceGroupName string `pulumi:"resourceGroupName"` // A mapping of tags to assign to the resource. Tags map[string]string `pulumi:"tags"` } func LookupServiceOutput(ctx *pulumi.Context, args LookupServiceOutputArgs, opts ...pulumi.InvokeOption) LookupServiceResultOutput { return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupServiceResultOutput, error) { args := v.(LookupServiceArgs) options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} return ctx.InvokeOutput("azure:healthcare/getService:getService", args, LookupServiceResultOutput{}, options).(LookupServiceResultOutput), nil }).(LookupServiceResultOutput) } // A collection of arguments for invoking getService. type LookupServiceOutputArgs struct { // The Azure Region where the Service is located. Location pulumi.StringInput `pulumi:"location"` // Specifies the name of the Healthcare Service. Name pulumi.StringInput `pulumi:"name"` // The name of the Resource Group in which the Healthcare Service exists. ResourceGroupName pulumi.StringInput `pulumi:"resourceGroupName"` } func (LookupServiceOutputArgs) ElementType() reflect.Type { return reflect.TypeOf((*LookupServiceArgs)(nil)).Elem() } // A collection of values returned by getService. type LookupServiceResultOutput struct{ *pulumi.OutputState } func (LookupServiceResultOutput) ElementType() reflect.Type { return reflect.TypeOf((*LookupServiceResult)(nil)).Elem() } func (o LookupServiceResultOutput) ToLookupServiceResultOutput() LookupServiceResultOutput { return o } func (o LookupServiceResultOutput) ToLookupServiceResultOutputWithContext(ctx context.Context) LookupServiceResultOutput { return o } func (o LookupServiceResultOutput) AccessPolicyObjectIds() pulumi.StringArrayOutput { return o.ApplyT(func(v LookupServiceResult) []string { return v.AccessPolicyObjectIds }).(pulumi.StringArrayOutput) } // An `authenticationConfiguration` block as defined below. func (o LookupServiceResultOutput) AuthenticationConfigurations() GetServiceAuthenticationConfigurationArrayOutput { return o.ApplyT(func(v LookupServiceResult) []GetServiceAuthenticationConfiguration { return v.AuthenticationConfigurations }).(GetServiceAuthenticationConfigurationArrayOutput) } // A `corsConfiguration` block as defined below. func (o LookupServiceResultOutput) CorsConfigurations() GetServiceCorsConfigurationArrayOutput { return o.ApplyT(func(v LookupServiceResult) []GetServiceCorsConfiguration { return v.CorsConfigurations }).(GetServiceCorsConfigurationArrayOutput) } // The versionless Key Vault Key ID for CMK encryption of the backing database. func (o LookupServiceResultOutput) CosmosdbKeyVaultKeyVersionlessId() pulumi.StringOutput { return o.ApplyT(func(v LookupServiceResult) string { return v.CosmosdbKeyVaultKeyVersionlessId }).(pulumi.StringOutput) } // The provisioned throughput for the backing database. func (o LookupServiceResultOutput) CosmosdbThroughput() pulumi.IntOutput { return o.ApplyT(func(v LookupServiceResult) int { return v.CosmosdbThroughput }).(pulumi.IntOutput) } // The provider-assigned unique ID for this managed resource. func (o LookupServiceResultOutput) Id() pulumi.StringOutput { return o.ApplyT(func(v LookupServiceResult) string { return v.Id }).(pulumi.StringOutput) } // The type of the service. func (o LookupServiceResultOutput) Kind() pulumi.StringOutput { return o.ApplyT(func(v LookupServiceResult) string { return v.Kind }).(pulumi.StringOutput) } // The Azure Region where the Service is located. func (o LookupServiceResultOutput) Location() pulumi.StringOutput { return o.ApplyT(func(v LookupServiceResult) string { return v.Location }).(pulumi.StringOutput) } func (o LookupServiceResultOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v LookupServiceResult) string { return v.Name }).(pulumi.StringOutput) } func (o LookupServiceResultOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v LookupServiceResult) string { return v.ResourceGroupName }).(pulumi.StringOutput) } // A mapping of tags to assign to the resource. func (o LookupServiceResultOutput) Tags() pulumi.StringMapOutput { return o.ApplyT(func(v LookupServiceResult) map[string]string { return v.Tags }).(pulumi.StringMapOutput) } func init() { pulumi.RegisterOutputType(LookupServiceResultOutput{}) }
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/healthcare/workspace.go
sdk/go/azure/healthcare/workspace.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 healthcare import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a Healthcare workspace // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/healthcare" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { // _, err := healthcare.NewWorkspace(ctx, "test", &healthcare.WorkspaceArgs{ // Name: pulumi.String("tfexworkspace"), // ResourceGroupName: pulumi.String("tfex-resource_group"), // Location: pulumi.String("east us"), // }) // 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.HealthcareApis` - 2024-03-31 // // ## Import // // Healthcare Workspaces can be imported using the resource`id`, e.g. // // ```sh // $ pulumi import azure:healthcare/workspace:Workspace example /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/group1/providers/Microsoft.HealthcareApis/workspaces/workspace1 // ``` type Workspace struct { pulumi.CustomResourceState // Specifies the Azure Region where the Healthcare Workspace should be created. Changing this forces a new Healthcare Workspace to be created. Location pulumi.StringOutput `pulumi:"location"` // Specifies the name of the Healthcare Workspace. Changing this forces a new Healthcare Workspace to be created. Name pulumi.StringOutput `pulumi:"name"` PrivateEndpointConnections WorkspacePrivateEndpointConnectionArrayOutput `pulumi:"privateEndpointConnections"` // Specifies the name of the Resource Group where the Healthcare Workspace should exist. Changing this forces a new Healthcare Workspace to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // A mapping of tags to assign to the Healthcare Workspace. Tags pulumi.StringMapOutput `pulumi:"tags"` } // NewWorkspace registers a new resource with the given unique name, arguments, and options. func NewWorkspace(ctx *pulumi.Context, name string, args *WorkspaceArgs, opts ...pulumi.ResourceOption) (*Workspace, 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 Workspace err := ctx.RegisterResource("azure:healthcare/workspace:Workspace", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetWorkspace gets an existing Workspace 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 GetWorkspace(ctx *pulumi.Context, name string, id pulumi.IDInput, state *WorkspaceState, opts ...pulumi.ResourceOption) (*Workspace, error) { var resource Workspace err := ctx.ReadResource("azure:healthcare/workspace:Workspace", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering Workspace resources. type workspaceState struct { // Specifies the Azure Region where the Healthcare Workspace should be created. Changing this forces a new Healthcare Workspace to be created. Location *string `pulumi:"location"` // Specifies the name of the Healthcare Workspace. Changing this forces a new Healthcare Workspace to be created. Name *string `pulumi:"name"` PrivateEndpointConnections []WorkspacePrivateEndpointConnection `pulumi:"privateEndpointConnections"` // Specifies the name of the Resource Group where the Healthcare Workspace should exist. Changing this forces a new Healthcare Workspace to be created. ResourceGroupName *string `pulumi:"resourceGroupName"` // A mapping of tags to assign to the Healthcare Workspace. Tags map[string]string `pulumi:"tags"` } type WorkspaceState struct { // Specifies the Azure Region where the Healthcare Workspace should be created. Changing this forces a new Healthcare Workspace to be created. Location pulumi.StringPtrInput // Specifies the name of the Healthcare Workspace. Changing this forces a new Healthcare Workspace to be created. Name pulumi.StringPtrInput PrivateEndpointConnections WorkspacePrivateEndpointConnectionArrayInput // Specifies the name of the Resource Group where the Healthcare Workspace should exist. Changing this forces a new Healthcare Workspace to be created. ResourceGroupName pulumi.StringPtrInput // A mapping of tags to assign to the Healthcare Workspace. Tags pulumi.StringMapInput } func (WorkspaceState) ElementType() reflect.Type { return reflect.TypeOf((*workspaceState)(nil)).Elem() } type workspaceArgs struct { // Specifies the Azure Region where the Healthcare Workspace should be created. Changing this forces a new Healthcare Workspace to be created. Location *string `pulumi:"location"` // Specifies the name of the Healthcare Workspace. Changing this forces a new Healthcare Workspace to be created. Name *string `pulumi:"name"` // Specifies the name of the Resource Group where the Healthcare Workspace should exist. Changing this forces a new Healthcare Workspace to be created. ResourceGroupName string `pulumi:"resourceGroupName"` // A mapping of tags to assign to the Healthcare Workspace. Tags map[string]string `pulumi:"tags"` } // The set of arguments for constructing a Workspace resource. type WorkspaceArgs struct { // Specifies the Azure Region where the Healthcare Workspace should be created. Changing this forces a new Healthcare Workspace to be created. Location pulumi.StringPtrInput // Specifies the name of the Healthcare Workspace. Changing this forces a new Healthcare Workspace to be created. Name pulumi.StringPtrInput // Specifies the name of the Resource Group where the Healthcare Workspace should exist. Changing this forces a new Healthcare Workspace to be created. ResourceGroupName pulumi.StringInput // A mapping of tags to assign to the Healthcare Workspace. Tags pulumi.StringMapInput } func (WorkspaceArgs) ElementType() reflect.Type { return reflect.TypeOf((*workspaceArgs)(nil)).Elem() } type WorkspaceInput interface { pulumi.Input ToWorkspaceOutput() WorkspaceOutput ToWorkspaceOutputWithContext(ctx context.Context) WorkspaceOutput } func (*Workspace) ElementType() reflect.Type { return reflect.TypeOf((**Workspace)(nil)).Elem() } func (i *Workspace) ToWorkspaceOutput() WorkspaceOutput { return i.ToWorkspaceOutputWithContext(context.Background()) } func (i *Workspace) ToWorkspaceOutputWithContext(ctx context.Context) WorkspaceOutput { return pulumi.ToOutputWithContext(ctx, i).(WorkspaceOutput) } // WorkspaceArrayInput is an input type that accepts WorkspaceArray and WorkspaceArrayOutput values. // You can construct a concrete instance of `WorkspaceArrayInput` via: // // WorkspaceArray{ WorkspaceArgs{...} } type WorkspaceArrayInput interface { pulumi.Input ToWorkspaceArrayOutput() WorkspaceArrayOutput ToWorkspaceArrayOutputWithContext(context.Context) WorkspaceArrayOutput } type WorkspaceArray []WorkspaceInput func (WorkspaceArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*Workspace)(nil)).Elem() } func (i WorkspaceArray) ToWorkspaceArrayOutput() WorkspaceArrayOutput { return i.ToWorkspaceArrayOutputWithContext(context.Background()) } func (i WorkspaceArray) ToWorkspaceArrayOutputWithContext(ctx context.Context) WorkspaceArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(WorkspaceArrayOutput) } // WorkspaceMapInput is an input type that accepts WorkspaceMap and WorkspaceMapOutput values. // You can construct a concrete instance of `WorkspaceMapInput` via: // // WorkspaceMap{ "key": WorkspaceArgs{...} } type WorkspaceMapInput interface { pulumi.Input ToWorkspaceMapOutput() WorkspaceMapOutput ToWorkspaceMapOutputWithContext(context.Context) WorkspaceMapOutput } type WorkspaceMap map[string]WorkspaceInput func (WorkspaceMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*Workspace)(nil)).Elem() } func (i WorkspaceMap) ToWorkspaceMapOutput() WorkspaceMapOutput { return i.ToWorkspaceMapOutputWithContext(context.Background()) } func (i WorkspaceMap) ToWorkspaceMapOutputWithContext(ctx context.Context) WorkspaceMapOutput { return pulumi.ToOutputWithContext(ctx, i).(WorkspaceMapOutput) } type WorkspaceOutput struct{ *pulumi.OutputState } func (WorkspaceOutput) ElementType() reflect.Type { return reflect.TypeOf((**Workspace)(nil)).Elem() } func (o WorkspaceOutput) ToWorkspaceOutput() WorkspaceOutput { return o } func (o WorkspaceOutput) ToWorkspaceOutputWithContext(ctx context.Context) WorkspaceOutput { return o } // Specifies the Azure Region where the Healthcare Workspace should be created. Changing this forces a new Healthcare Workspace to be created. func (o WorkspaceOutput) Location() pulumi.StringOutput { return o.ApplyT(func(v *Workspace) pulumi.StringOutput { return v.Location }).(pulumi.StringOutput) } // Specifies the name of the Healthcare Workspace. Changing this forces a new Healthcare Workspace to be created. func (o WorkspaceOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *Workspace) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } func (o WorkspaceOutput) PrivateEndpointConnections() WorkspacePrivateEndpointConnectionArrayOutput { return o.ApplyT(func(v *Workspace) WorkspacePrivateEndpointConnectionArrayOutput { return v.PrivateEndpointConnections }).(WorkspacePrivateEndpointConnectionArrayOutput) } // Specifies the name of the Resource Group where the Healthcare Workspace should exist. Changing this forces a new Healthcare Workspace to be created. func (o WorkspaceOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v *Workspace) pulumi.StringOutput { return v.ResourceGroupName }).(pulumi.StringOutput) } // A mapping of tags to assign to the Healthcare Workspace. func (o WorkspaceOutput) Tags() pulumi.StringMapOutput { return o.ApplyT(func(v *Workspace) pulumi.StringMapOutput { return v.Tags }).(pulumi.StringMapOutput) } type WorkspaceArrayOutput struct{ *pulumi.OutputState } func (WorkspaceArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*Workspace)(nil)).Elem() } func (o WorkspaceArrayOutput) ToWorkspaceArrayOutput() WorkspaceArrayOutput { return o } func (o WorkspaceArrayOutput) ToWorkspaceArrayOutputWithContext(ctx context.Context) WorkspaceArrayOutput { return o } func (o WorkspaceArrayOutput) Index(i pulumi.IntInput) WorkspaceOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *Workspace { return vs[0].([]*Workspace)[vs[1].(int)] }).(WorkspaceOutput) } type WorkspaceMapOutput struct{ *pulumi.OutputState } func (WorkspaceMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*Workspace)(nil)).Elem() } func (o WorkspaceMapOutput) ToWorkspaceMapOutput() WorkspaceMapOutput { return o } func (o WorkspaceMapOutput) ToWorkspaceMapOutputWithContext(ctx context.Context) WorkspaceMapOutput { return o } func (o WorkspaceMapOutput) MapIndex(k pulumi.StringInput) WorkspaceOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *Workspace { return vs[0].(map[string]*Workspace)[vs[1].(string)] }).(WorkspaceOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*WorkspaceInput)(nil)).Elem(), &Workspace{}) pulumi.RegisterInputType(reflect.TypeOf((*WorkspaceArrayInput)(nil)).Elem(), WorkspaceArray{}) pulumi.RegisterInputType(reflect.TypeOf((*WorkspaceMapInput)(nil)).Elem(), WorkspaceMap{}) pulumi.RegisterOutputType(WorkspaceOutput{}) pulumi.RegisterOutputType(WorkspaceArrayOutput{}) pulumi.RegisterOutputType(WorkspaceMapOutput{}) }
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/healthcare/dicomService.go
sdk/go/azure/healthcare/dicomService.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 healthcare import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a Healthcare DICOM Service // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/healthcare" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { // test, err := healthcare.NewWorkspace(ctx, "test", &healthcare.WorkspaceArgs{ // Name: pulumi.String("tfexworkspace"), // ResourceGroupName: pulumi.String("tfex-resource_group"), // Location: pulumi.String("east us"), // }) // if err != nil { // return err // } // _, err = healthcare.NewDicomService(ctx, "test", &healthcare.DicomServiceArgs{ // Name: pulumi.String("tfexDicom"), // WorkspaceId: test.ID(), // Location: pulumi.String("east us"), // Identity: &healthcare.DicomServiceIdentityArgs{ // Type: pulumi.String("SystemAssigned"), // }, // Tags: pulumi.StringMap{ // "environment": pulumi.String("None"), // }, // }) // 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.HealthcareApis` - 2024-03-31 // // ## Import // // Healthcare DICOM Service can be imported using the resource`id`, e.g. // // ```sh // $ pulumi import azure:healthcare/dicomService:DicomService example /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/group1/providers/Microsoft.HealthcareApis/workspaces/workspace1/dicomServices/service1 // ``` type DicomService struct { pulumi.CustomResourceState // The `authentication` block as defined below. Authentications DicomServiceAuthenticationArrayOutput `pulumi:"authentications"` // A `cors` block as defined below. Cors DicomServiceCorsOutput `pulumi:"cors"` // If data partitions are enabled or not. Defaults to `false`. Changing this forces a new Healthcare DICOM Service to be created. DataPartitionsEnabled pulumi.BoolPtrOutput `pulumi:"dataPartitionsEnabled"` // The URL of the key to use for encryption as part of the customer-managed key encryption settings. For more details, refer to the [Azure Customer-Managed Keys Overview](https://learn.microsoft.com/en-us/azure/storage/common/customer-managed-keys-overview). EncryptionKeyUrl pulumi.StringPtrOutput `pulumi:"encryptionKeyUrl"` // An `identity` block as defined below. Identity DicomServiceIdentityPtrOutput `pulumi:"identity"` // Specifies the Azure Region where the Healthcare DICOM Service should be created. Changing this forces a new Healthcare DICOM Service to be created. Location pulumi.StringOutput `pulumi:"location"` // Specifies the name of the Healthcare DICOM Service. Changing this forces a new Healthcare DICOM Service to be created. Name pulumi.StringOutput `pulumi:"name"` PrivateEndpoints DicomServicePrivateEndpointArrayOutput `pulumi:"privateEndpoints"` // Whether to enabled public networks when data plane traffic coming from public networks while private endpoint is enabled. Defaults to `true`. PublicNetworkAccessEnabled pulumi.BoolPtrOutput `pulumi:"publicNetworkAccessEnabled"` // The url of the Healthcare DICOM Services. ServiceUrl pulumi.StringOutput `pulumi:"serviceUrl"` // A `storage` block as defined below. Changing this forces a new resource to be created. Storage DicomServiceStorageOutput `pulumi:"storage"` // A mapping of tags to assign to the Healthcare DICOM Service. Tags pulumi.StringMapOutput `pulumi:"tags"` // Specifies the ID of the Healthcare Workspace where the Healthcare DICOM Service should exist. Changing this forces a new Healthcare DICOM Service to be created. WorkspaceId pulumi.StringOutput `pulumi:"workspaceId"` } // NewDicomService registers a new resource with the given unique name, arguments, and options. func NewDicomService(ctx *pulumi.Context, name string, args *DicomServiceArgs, opts ...pulumi.ResourceOption) (*DicomService, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.WorkspaceId == nil { return nil, errors.New("invalid value for required argument 'WorkspaceId'") } opts = internal.PkgResourceDefaultOpts(opts) var resource DicomService err := ctx.RegisterResource("azure:healthcare/dicomService:DicomService", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetDicomService gets an existing DicomService 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 GetDicomService(ctx *pulumi.Context, name string, id pulumi.IDInput, state *DicomServiceState, opts ...pulumi.ResourceOption) (*DicomService, error) { var resource DicomService err := ctx.ReadResource("azure:healthcare/dicomService:DicomService", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering DicomService resources. type dicomServiceState struct { // The `authentication` block as defined below. Authentications []DicomServiceAuthentication `pulumi:"authentications"` // A `cors` block as defined below. Cors *DicomServiceCors `pulumi:"cors"` // If data partitions are enabled or not. Defaults to `false`. Changing this forces a new Healthcare DICOM Service to be created. DataPartitionsEnabled *bool `pulumi:"dataPartitionsEnabled"` // The URL of the key to use for encryption as part of the customer-managed key encryption settings. For more details, refer to the [Azure Customer-Managed Keys Overview](https://learn.microsoft.com/en-us/azure/storage/common/customer-managed-keys-overview). EncryptionKeyUrl *string `pulumi:"encryptionKeyUrl"` // An `identity` block as defined below. Identity *DicomServiceIdentity `pulumi:"identity"` // Specifies the Azure Region where the Healthcare DICOM Service should be created. Changing this forces a new Healthcare DICOM Service to be created. Location *string `pulumi:"location"` // Specifies the name of the Healthcare DICOM Service. Changing this forces a new Healthcare DICOM Service to be created. Name *string `pulumi:"name"` PrivateEndpoints []DicomServicePrivateEndpoint `pulumi:"privateEndpoints"` // Whether to enabled public networks when data plane traffic coming from public networks while private endpoint is enabled. Defaults to `true`. PublicNetworkAccessEnabled *bool `pulumi:"publicNetworkAccessEnabled"` // The url of the Healthcare DICOM Services. ServiceUrl *string `pulumi:"serviceUrl"` // A `storage` block as defined below. Changing this forces a new resource to be created. Storage *DicomServiceStorage `pulumi:"storage"` // A mapping of tags to assign to the Healthcare DICOM Service. Tags map[string]string `pulumi:"tags"` // Specifies the ID of the Healthcare Workspace where the Healthcare DICOM Service should exist. Changing this forces a new Healthcare DICOM Service to be created. WorkspaceId *string `pulumi:"workspaceId"` } type DicomServiceState struct { // The `authentication` block as defined below. Authentications DicomServiceAuthenticationArrayInput // A `cors` block as defined below. Cors DicomServiceCorsPtrInput // If data partitions are enabled or not. Defaults to `false`. Changing this forces a new Healthcare DICOM Service to be created. DataPartitionsEnabled pulumi.BoolPtrInput // The URL of the key to use for encryption as part of the customer-managed key encryption settings. For more details, refer to the [Azure Customer-Managed Keys Overview](https://learn.microsoft.com/en-us/azure/storage/common/customer-managed-keys-overview). EncryptionKeyUrl pulumi.StringPtrInput // An `identity` block as defined below. Identity DicomServiceIdentityPtrInput // Specifies the Azure Region where the Healthcare DICOM Service should be created. Changing this forces a new Healthcare DICOM Service to be created. Location pulumi.StringPtrInput // Specifies the name of the Healthcare DICOM Service. Changing this forces a new Healthcare DICOM Service to be created. Name pulumi.StringPtrInput PrivateEndpoints DicomServicePrivateEndpointArrayInput // Whether to enabled public networks when data plane traffic coming from public networks while private endpoint is enabled. Defaults to `true`. PublicNetworkAccessEnabled pulumi.BoolPtrInput // The url of the Healthcare DICOM Services. ServiceUrl pulumi.StringPtrInput // A `storage` block as defined below. Changing this forces a new resource to be created. Storage DicomServiceStoragePtrInput // A mapping of tags to assign to the Healthcare DICOM Service. Tags pulumi.StringMapInput // Specifies the ID of the Healthcare Workspace where the Healthcare DICOM Service should exist. Changing this forces a new Healthcare DICOM Service to be created. WorkspaceId pulumi.StringPtrInput } func (DicomServiceState) ElementType() reflect.Type { return reflect.TypeOf((*dicomServiceState)(nil)).Elem() } type dicomServiceArgs struct { // A `cors` block as defined below. Cors *DicomServiceCors `pulumi:"cors"` // If data partitions are enabled or not. Defaults to `false`. Changing this forces a new Healthcare DICOM Service to be created. DataPartitionsEnabled *bool `pulumi:"dataPartitionsEnabled"` // The URL of the key to use for encryption as part of the customer-managed key encryption settings. For more details, refer to the [Azure Customer-Managed Keys Overview](https://learn.microsoft.com/en-us/azure/storage/common/customer-managed-keys-overview). EncryptionKeyUrl *string `pulumi:"encryptionKeyUrl"` // An `identity` block as defined below. Identity *DicomServiceIdentity `pulumi:"identity"` // Specifies the Azure Region where the Healthcare DICOM Service should be created. Changing this forces a new Healthcare DICOM Service to be created. Location *string `pulumi:"location"` // Specifies the name of the Healthcare DICOM Service. Changing this forces a new Healthcare DICOM Service to be created. Name *string `pulumi:"name"` // Whether to enabled public networks when data plane traffic coming from public networks while private endpoint is enabled. Defaults to `true`. PublicNetworkAccessEnabled *bool `pulumi:"publicNetworkAccessEnabled"` // A `storage` block as defined below. Changing this forces a new resource to be created. Storage *DicomServiceStorage `pulumi:"storage"` // A mapping of tags to assign to the Healthcare DICOM Service. Tags map[string]string `pulumi:"tags"` // Specifies the ID of the Healthcare Workspace where the Healthcare DICOM Service should exist. Changing this forces a new Healthcare DICOM Service to be created. WorkspaceId string `pulumi:"workspaceId"` } // The set of arguments for constructing a DicomService resource. type DicomServiceArgs struct { // A `cors` block as defined below. Cors DicomServiceCorsPtrInput // If data partitions are enabled or not. Defaults to `false`. Changing this forces a new Healthcare DICOM Service to be created. DataPartitionsEnabled pulumi.BoolPtrInput // The URL of the key to use for encryption as part of the customer-managed key encryption settings. For more details, refer to the [Azure Customer-Managed Keys Overview](https://learn.microsoft.com/en-us/azure/storage/common/customer-managed-keys-overview). EncryptionKeyUrl pulumi.StringPtrInput // An `identity` block as defined below. Identity DicomServiceIdentityPtrInput // Specifies the Azure Region where the Healthcare DICOM Service should be created. Changing this forces a new Healthcare DICOM Service to be created. Location pulumi.StringPtrInput // Specifies the name of the Healthcare DICOM Service. Changing this forces a new Healthcare DICOM Service to be created. Name pulumi.StringPtrInput // Whether to enabled public networks when data plane traffic coming from public networks while private endpoint is enabled. Defaults to `true`. PublicNetworkAccessEnabled pulumi.BoolPtrInput // A `storage` block as defined below. Changing this forces a new resource to be created. Storage DicomServiceStoragePtrInput // A mapping of tags to assign to the Healthcare DICOM Service. Tags pulumi.StringMapInput // Specifies the ID of the Healthcare Workspace where the Healthcare DICOM Service should exist. Changing this forces a new Healthcare DICOM Service to be created. WorkspaceId pulumi.StringInput } func (DicomServiceArgs) ElementType() reflect.Type { return reflect.TypeOf((*dicomServiceArgs)(nil)).Elem() } type DicomServiceInput interface { pulumi.Input ToDicomServiceOutput() DicomServiceOutput ToDicomServiceOutputWithContext(ctx context.Context) DicomServiceOutput } func (*DicomService) ElementType() reflect.Type { return reflect.TypeOf((**DicomService)(nil)).Elem() } func (i *DicomService) ToDicomServiceOutput() DicomServiceOutput { return i.ToDicomServiceOutputWithContext(context.Background()) } func (i *DicomService) ToDicomServiceOutputWithContext(ctx context.Context) DicomServiceOutput { return pulumi.ToOutputWithContext(ctx, i).(DicomServiceOutput) } // DicomServiceArrayInput is an input type that accepts DicomServiceArray and DicomServiceArrayOutput values. // You can construct a concrete instance of `DicomServiceArrayInput` via: // // DicomServiceArray{ DicomServiceArgs{...} } type DicomServiceArrayInput interface { pulumi.Input ToDicomServiceArrayOutput() DicomServiceArrayOutput ToDicomServiceArrayOutputWithContext(context.Context) DicomServiceArrayOutput } type DicomServiceArray []DicomServiceInput func (DicomServiceArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*DicomService)(nil)).Elem() } func (i DicomServiceArray) ToDicomServiceArrayOutput() DicomServiceArrayOutput { return i.ToDicomServiceArrayOutputWithContext(context.Background()) } func (i DicomServiceArray) ToDicomServiceArrayOutputWithContext(ctx context.Context) DicomServiceArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(DicomServiceArrayOutput) } // DicomServiceMapInput is an input type that accepts DicomServiceMap and DicomServiceMapOutput values. // You can construct a concrete instance of `DicomServiceMapInput` via: // // DicomServiceMap{ "key": DicomServiceArgs{...} } type DicomServiceMapInput interface { pulumi.Input ToDicomServiceMapOutput() DicomServiceMapOutput ToDicomServiceMapOutputWithContext(context.Context) DicomServiceMapOutput } type DicomServiceMap map[string]DicomServiceInput func (DicomServiceMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*DicomService)(nil)).Elem() } func (i DicomServiceMap) ToDicomServiceMapOutput() DicomServiceMapOutput { return i.ToDicomServiceMapOutputWithContext(context.Background()) } func (i DicomServiceMap) ToDicomServiceMapOutputWithContext(ctx context.Context) DicomServiceMapOutput { return pulumi.ToOutputWithContext(ctx, i).(DicomServiceMapOutput) } type DicomServiceOutput struct{ *pulumi.OutputState } func (DicomServiceOutput) ElementType() reflect.Type { return reflect.TypeOf((**DicomService)(nil)).Elem() } func (o DicomServiceOutput) ToDicomServiceOutput() DicomServiceOutput { return o } func (o DicomServiceOutput) ToDicomServiceOutputWithContext(ctx context.Context) DicomServiceOutput { return o } // The `authentication` block as defined below. func (o DicomServiceOutput) Authentications() DicomServiceAuthenticationArrayOutput { return o.ApplyT(func(v *DicomService) DicomServiceAuthenticationArrayOutput { return v.Authentications }).(DicomServiceAuthenticationArrayOutput) } // A `cors` block as defined below. func (o DicomServiceOutput) Cors() DicomServiceCorsOutput { return o.ApplyT(func(v *DicomService) DicomServiceCorsOutput { return v.Cors }).(DicomServiceCorsOutput) } // If data partitions are enabled or not. Defaults to `false`. Changing this forces a new Healthcare DICOM Service to be created. func (o DicomServiceOutput) DataPartitionsEnabled() pulumi.BoolPtrOutput { return o.ApplyT(func(v *DicomService) pulumi.BoolPtrOutput { return v.DataPartitionsEnabled }).(pulumi.BoolPtrOutput) } // The URL of the key to use for encryption as part of the customer-managed key encryption settings. For more details, refer to the [Azure Customer-Managed Keys Overview](https://learn.microsoft.com/en-us/azure/storage/common/customer-managed-keys-overview). func (o DicomServiceOutput) EncryptionKeyUrl() pulumi.StringPtrOutput { return o.ApplyT(func(v *DicomService) pulumi.StringPtrOutput { return v.EncryptionKeyUrl }).(pulumi.StringPtrOutput) } // An `identity` block as defined below. func (o DicomServiceOutput) Identity() DicomServiceIdentityPtrOutput { return o.ApplyT(func(v *DicomService) DicomServiceIdentityPtrOutput { return v.Identity }).(DicomServiceIdentityPtrOutput) } // Specifies the Azure Region where the Healthcare DICOM Service should be created. Changing this forces a new Healthcare DICOM Service to be created. func (o DicomServiceOutput) Location() pulumi.StringOutput { return o.ApplyT(func(v *DicomService) pulumi.StringOutput { return v.Location }).(pulumi.StringOutput) } // Specifies the name of the Healthcare DICOM Service. Changing this forces a new Healthcare DICOM Service to be created. func (o DicomServiceOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *DicomService) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } func (o DicomServiceOutput) PrivateEndpoints() DicomServicePrivateEndpointArrayOutput { return o.ApplyT(func(v *DicomService) DicomServicePrivateEndpointArrayOutput { return v.PrivateEndpoints }).(DicomServicePrivateEndpointArrayOutput) } // Whether to enabled public networks when data plane traffic coming from public networks while private endpoint is enabled. Defaults to `true`. func (o DicomServiceOutput) PublicNetworkAccessEnabled() pulumi.BoolPtrOutput { return o.ApplyT(func(v *DicomService) pulumi.BoolPtrOutput { return v.PublicNetworkAccessEnabled }).(pulumi.BoolPtrOutput) } // The url of the Healthcare DICOM Services. func (o DicomServiceOutput) ServiceUrl() pulumi.StringOutput { return o.ApplyT(func(v *DicomService) pulumi.StringOutput { return v.ServiceUrl }).(pulumi.StringOutput) } // A `storage` block as defined below. Changing this forces a new resource to be created. func (o DicomServiceOutput) Storage() DicomServiceStorageOutput { return o.ApplyT(func(v *DicomService) DicomServiceStorageOutput { return v.Storage }).(DicomServiceStorageOutput) } // A mapping of tags to assign to the Healthcare DICOM Service. func (o DicomServiceOutput) Tags() pulumi.StringMapOutput { return o.ApplyT(func(v *DicomService) pulumi.StringMapOutput { return v.Tags }).(pulumi.StringMapOutput) } // Specifies the ID of the Healthcare Workspace where the Healthcare DICOM Service should exist. Changing this forces a new Healthcare DICOM Service to be created. func (o DicomServiceOutput) WorkspaceId() pulumi.StringOutput { return o.ApplyT(func(v *DicomService) pulumi.StringOutput { return v.WorkspaceId }).(pulumi.StringOutput) } type DicomServiceArrayOutput struct{ *pulumi.OutputState } func (DicomServiceArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*DicomService)(nil)).Elem() } func (o DicomServiceArrayOutput) ToDicomServiceArrayOutput() DicomServiceArrayOutput { return o } func (o DicomServiceArrayOutput) ToDicomServiceArrayOutputWithContext(ctx context.Context) DicomServiceArrayOutput { return o } func (o DicomServiceArrayOutput) Index(i pulumi.IntInput) DicomServiceOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *DicomService { return vs[0].([]*DicomService)[vs[1].(int)] }).(DicomServiceOutput) } type DicomServiceMapOutput struct{ *pulumi.OutputState } func (DicomServiceMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*DicomService)(nil)).Elem() } func (o DicomServiceMapOutput) ToDicomServiceMapOutput() DicomServiceMapOutput { return o } func (o DicomServiceMapOutput) ToDicomServiceMapOutputWithContext(ctx context.Context) DicomServiceMapOutput { return o } func (o DicomServiceMapOutput) MapIndex(k pulumi.StringInput) DicomServiceOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *DicomService { return vs[0].(map[string]*DicomService)[vs[1].(string)] }).(DicomServiceOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*DicomServiceInput)(nil)).Elem(), &DicomService{}) pulumi.RegisterInputType(reflect.TypeOf((*DicomServiceArrayInput)(nil)).Elem(), DicomServiceArray{}) pulumi.RegisterInputType(reflect.TypeOf((*DicomServiceMapInput)(nil)).Elem(), DicomServiceMap{}) pulumi.RegisterOutputType(DicomServiceOutput{}) pulumi.RegisterOutputType(DicomServiceArrayOutput{}) pulumi.RegisterOutputType(DicomServiceMapOutput{}) }
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/healthcare/medtechServiceFhirDestination.go
sdk/go/azure/healthcare/medtechServiceFhirDestination.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 healthcare import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a Healthcare Med Tech Service Fhir Destination. // // ## Example Usage // // ```go // package main // // import ( // // "encoding/json" // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/eventhub" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/healthcare" // "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 = core.GetClientConfig(ctx, map[string]interface{}{}, nil) // if err != nil { // return err // } // exampleWorkspace, err := healthcare.NewWorkspace(ctx, "example", &healthcare.WorkspaceArgs{ // Name: pulumi.String("exampleworkspace"), // Location: example.Location, // ResourceGroupName: example.Name, // }) // if err != nil { // return err // } // exampleEventHubNamespace, err := eventhub.NewEventHubNamespace(ctx, "example", &eventhub.EventHubNamespaceArgs{ // Name: pulumi.String("example-ehn"), // Location: example.Location, // ResourceGroupName: example.Name, // Sku: pulumi.String("Standard"), // }) // if err != nil { // return err // } // exampleEventHub, err := eventhub.NewEventHub(ctx, "example", &eventhub.EventHubArgs{ // Name: pulumi.String("example-eh"), // NamespaceName: exampleEventHubNamespace.Name, // ResourceGroupName: example.Name, // PartitionCount: pulumi.Int(1), // MessageRetention: pulumi.Int(1), // }) // if err != nil { // return err // } // exampleConsumerGroup, err := eventhub.NewConsumerGroup(ctx, "example", &eventhub.ConsumerGroupArgs{ // Name: pulumi.String("$default"), // NamespaceName: exampleEventHubNamespace.Name, // EventhubName: exampleEventHub.Name, // ResourceGroupName: example.Name, // }) // if err != nil { // return err // } // exampleFhirService, err := healthcare.NewFhirService(ctx, "example", &healthcare.FhirServiceArgs{ // Name: pulumi.String("examplefhir"), // Location: example.Location, // ResourceGroupName: example.Name, // WorkspaceId: exampleWorkspace.ID(), // Kind: pulumi.String("fhir-R4"), // Authentication: &healthcare.FhirServiceAuthenticationArgs{ // Authority: pulumi.String("https://login.microsoftonline.com/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"), // Audience: pulumi.String("https://examplefhir.fhir.azurehealthcareapis.com"), // }, // }) // if err != nil { // return err // } // tmpJSON0, err := json.Marshal(map[string]interface{}{ // "templateType": "CollectionContent", // "template": []interface{}{}, // }) // if err != nil { // return err // } // json0 := string(tmpJSON0) // exampleMedtechService, err := healthcare.NewMedtechService(ctx, "example", &healthcare.MedtechServiceArgs{ // Name: pulumi.String("examplemt"), // WorkspaceId: exampleWorkspace.ID(), // Location: example.Location, // EventhubNamespaceName: exampleEventHubNamespace.Name, // EventhubName: exampleEventHub.Name, // EventhubConsumerGroupName: exampleConsumerGroup.Name, // DeviceMappingJson: pulumi.String(json0), // }) // if err != nil { // return err // } // tmpJSON1, err := json.Marshal(map[string]interface{}{ // "templateType": "CollectionFhirTemplate", // "template": []map[string]interface{}{ // map[string]interface{}{ // "templateType": "CodeValueFhir", // "template": map[string]interface{}{ // "codes": []map[string]interface{}{ // map[string]interface{}{ // "code": "8867-4", // "system": "http://loinc.org", // "display": "Heart rate", // }, // }, // "periodInterval": 60, // "typeName": "heartrate", // "value": map[string]interface{}{ // "defaultPeriod": 5000, // "unit": "count/min", // "valueName": "hr", // "valueType": "SampledData", // }, // }, // }, // }, // }) // if err != nil { // return err // } // json1 := string(tmpJSON1) // _, err = healthcare.NewMedtechServiceFhirDestination(ctx, "example", &healthcare.MedtechServiceFhirDestinationArgs{ // Name: pulumi.String("examplemtdes"), // Location: pulumi.String("east us"), // MedtechServiceId: exampleMedtechService.ID(), // DestinationFhirServiceId: exampleFhirService.ID(), // DestinationIdentityResolutionType: pulumi.String("Create"), // DestinationFhirMappingJson: pulumi.String(json1), // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## API Providers // // <!-- This section is generated, changes will be overwritten --> // This resource uses the following Azure API Providers: // // * `Microsoft.HealthcareApis` - 2022-12-01 // // ## Import // // Healthcare Med Tech Service Fhir Destination can be imported using the resource`id`, e.g. // // ```sh // $ pulumi import azure:healthcare/medtechServiceFhirDestination:MedtechServiceFhirDestination example /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/group1/providers/Microsoft.HealthcareApis/workspaces/workspace1/iotConnectors/iotconnector1/fhirDestinations/destination1 // ``` type MedtechServiceFhirDestination struct { pulumi.CustomResourceState // Specifies the destination Fhir mappings of the Med Tech Service Fhir Destination. DestinationFhirMappingJson pulumi.StringOutput `pulumi:"destinationFhirMappingJson"` // Specifies the destination fhir service id of the Med Tech Service Fhir Destination. DestinationFhirServiceId pulumi.StringOutput `pulumi:"destinationFhirServiceId"` // Specifies the destination identity resolution type where the Healthcare Med Tech Service Fhir Destination should be created. Possible values are `Create`, `Lookup`. DestinationIdentityResolutionType pulumi.StringOutput `pulumi:"destinationIdentityResolutionType"` // Specifies the Azure Region where the Healthcare Med Tech Service Fhir Destination should be created. Changing this forces a new Healthcare Med Tech Service Fhir Destination to be created. Location pulumi.StringOutput `pulumi:"location"` // Specifies the name of the Healthcare Med Tech Service where the Healthcare Med Tech Service Fhir Destination should exist. Changing this forces a new Healthcare Med Tech Service Fhir Destination to be created. MedtechServiceId pulumi.StringOutput `pulumi:"medtechServiceId"` // Specifies the name of the Healthcare Med Tech Service Fhir Destination. Changing this forces a new Healthcare Med Tech Service Fhir Destination to be created. Name pulumi.StringOutput `pulumi:"name"` } // NewMedtechServiceFhirDestination registers a new resource with the given unique name, arguments, and options. func NewMedtechServiceFhirDestination(ctx *pulumi.Context, name string, args *MedtechServiceFhirDestinationArgs, opts ...pulumi.ResourceOption) (*MedtechServiceFhirDestination, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.DestinationFhirMappingJson == nil { return nil, errors.New("invalid value for required argument 'DestinationFhirMappingJson'") } if args.DestinationFhirServiceId == nil { return nil, errors.New("invalid value for required argument 'DestinationFhirServiceId'") } if args.DestinationIdentityResolutionType == nil { return nil, errors.New("invalid value for required argument 'DestinationIdentityResolutionType'") } if args.MedtechServiceId == nil { return nil, errors.New("invalid value for required argument 'MedtechServiceId'") } opts = internal.PkgResourceDefaultOpts(opts) var resource MedtechServiceFhirDestination err := ctx.RegisterResource("azure:healthcare/medtechServiceFhirDestination:MedtechServiceFhirDestination", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetMedtechServiceFhirDestination gets an existing MedtechServiceFhirDestination 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 GetMedtechServiceFhirDestination(ctx *pulumi.Context, name string, id pulumi.IDInput, state *MedtechServiceFhirDestinationState, opts ...pulumi.ResourceOption) (*MedtechServiceFhirDestination, error) { var resource MedtechServiceFhirDestination err := ctx.ReadResource("azure:healthcare/medtechServiceFhirDestination:MedtechServiceFhirDestination", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering MedtechServiceFhirDestination resources. type medtechServiceFhirDestinationState struct { // Specifies the destination Fhir mappings of the Med Tech Service Fhir Destination. DestinationFhirMappingJson *string `pulumi:"destinationFhirMappingJson"` // Specifies the destination fhir service id of the Med Tech Service Fhir Destination. DestinationFhirServiceId *string `pulumi:"destinationFhirServiceId"` // Specifies the destination identity resolution type where the Healthcare Med Tech Service Fhir Destination should be created. Possible values are `Create`, `Lookup`. DestinationIdentityResolutionType *string `pulumi:"destinationIdentityResolutionType"` // Specifies the Azure Region where the Healthcare Med Tech Service Fhir Destination should be created. Changing this forces a new Healthcare Med Tech Service Fhir Destination to be created. Location *string `pulumi:"location"` // Specifies the name of the Healthcare Med Tech Service where the Healthcare Med Tech Service Fhir Destination should exist. Changing this forces a new Healthcare Med Tech Service Fhir Destination to be created. MedtechServiceId *string `pulumi:"medtechServiceId"` // Specifies the name of the Healthcare Med Tech Service Fhir Destination. Changing this forces a new Healthcare Med Tech Service Fhir Destination to be created. Name *string `pulumi:"name"` } type MedtechServiceFhirDestinationState struct { // Specifies the destination Fhir mappings of the Med Tech Service Fhir Destination. DestinationFhirMappingJson pulumi.StringPtrInput // Specifies the destination fhir service id of the Med Tech Service Fhir Destination. DestinationFhirServiceId pulumi.StringPtrInput // Specifies the destination identity resolution type where the Healthcare Med Tech Service Fhir Destination should be created. Possible values are `Create`, `Lookup`. DestinationIdentityResolutionType pulumi.StringPtrInput // Specifies the Azure Region where the Healthcare Med Tech Service Fhir Destination should be created. Changing this forces a new Healthcare Med Tech Service Fhir Destination to be created. Location pulumi.StringPtrInput // Specifies the name of the Healthcare Med Tech Service where the Healthcare Med Tech Service Fhir Destination should exist. Changing this forces a new Healthcare Med Tech Service Fhir Destination to be created. MedtechServiceId pulumi.StringPtrInput // Specifies the name of the Healthcare Med Tech Service Fhir Destination. Changing this forces a new Healthcare Med Tech Service Fhir Destination to be created. Name pulumi.StringPtrInput } func (MedtechServiceFhirDestinationState) ElementType() reflect.Type { return reflect.TypeOf((*medtechServiceFhirDestinationState)(nil)).Elem() } type medtechServiceFhirDestinationArgs struct { // Specifies the destination Fhir mappings of the Med Tech Service Fhir Destination. DestinationFhirMappingJson string `pulumi:"destinationFhirMappingJson"` // Specifies the destination fhir service id of the Med Tech Service Fhir Destination. DestinationFhirServiceId string `pulumi:"destinationFhirServiceId"` // Specifies the destination identity resolution type where the Healthcare Med Tech Service Fhir Destination should be created. Possible values are `Create`, `Lookup`. DestinationIdentityResolutionType string `pulumi:"destinationIdentityResolutionType"` // Specifies the Azure Region where the Healthcare Med Tech Service Fhir Destination should be created. Changing this forces a new Healthcare Med Tech Service Fhir Destination to be created. Location *string `pulumi:"location"` // Specifies the name of the Healthcare Med Tech Service where the Healthcare Med Tech Service Fhir Destination should exist. Changing this forces a new Healthcare Med Tech Service Fhir Destination to be created. MedtechServiceId string `pulumi:"medtechServiceId"` // Specifies the name of the Healthcare Med Tech Service Fhir Destination. Changing this forces a new Healthcare Med Tech Service Fhir Destination to be created. Name *string `pulumi:"name"` } // The set of arguments for constructing a MedtechServiceFhirDestination resource. type MedtechServiceFhirDestinationArgs struct { // Specifies the destination Fhir mappings of the Med Tech Service Fhir Destination. DestinationFhirMappingJson pulumi.StringInput // Specifies the destination fhir service id of the Med Tech Service Fhir Destination. DestinationFhirServiceId pulumi.StringInput // Specifies the destination identity resolution type where the Healthcare Med Tech Service Fhir Destination should be created. Possible values are `Create`, `Lookup`. DestinationIdentityResolutionType pulumi.StringInput // Specifies the Azure Region where the Healthcare Med Tech Service Fhir Destination should be created. Changing this forces a new Healthcare Med Tech Service Fhir Destination to be created. Location pulumi.StringPtrInput // Specifies the name of the Healthcare Med Tech Service where the Healthcare Med Tech Service Fhir Destination should exist. Changing this forces a new Healthcare Med Tech Service Fhir Destination to be created. MedtechServiceId pulumi.StringInput // Specifies the name of the Healthcare Med Tech Service Fhir Destination. Changing this forces a new Healthcare Med Tech Service Fhir Destination to be created. Name pulumi.StringPtrInput } func (MedtechServiceFhirDestinationArgs) ElementType() reflect.Type { return reflect.TypeOf((*medtechServiceFhirDestinationArgs)(nil)).Elem() } type MedtechServiceFhirDestinationInput interface { pulumi.Input ToMedtechServiceFhirDestinationOutput() MedtechServiceFhirDestinationOutput ToMedtechServiceFhirDestinationOutputWithContext(ctx context.Context) MedtechServiceFhirDestinationOutput } func (*MedtechServiceFhirDestination) ElementType() reflect.Type { return reflect.TypeOf((**MedtechServiceFhirDestination)(nil)).Elem() } func (i *MedtechServiceFhirDestination) ToMedtechServiceFhirDestinationOutput() MedtechServiceFhirDestinationOutput { return i.ToMedtechServiceFhirDestinationOutputWithContext(context.Background()) } func (i *MedtechServiceFhirDestination) ToMedtechServiceFhirDestinationOutputWithContext(ctx context.Context) MedtechServiceFhirDestinationOutput { return pulumi.ToOutputWithContext(ctx, i).(MedtechServiceFhirDestinationOutput) } // MedtechServiceFhirDestinationArrayInput is an input type that accepts MedtechServiceFhirDestinationArray and MedtechServiceFhirDestinationArrayOutput values. // You can construct a concrete instance of `MedtechServiceFhirDestinationArrayInput` via: // // MedtechServiceFhirDestinationArray{ MedtechServiceFhirDestinationArgs{...} } type MedtechServiceFhirDestinationArrayInput interface { pulumi.Input ToMedtechServiceFhirDestinationArrayOutput() MedtechServiceFhirDestinationArrayOutput ToMedtechServiceFhirDestinationArrayOutputWithContext(context.Context) MedtechServiceFhirDestinationArrayOutput } type MedtechServiceFhirDestinationArray []MedtechServiceFhirDestinationInput func (MedtechServiceFhirDestinationArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*MedtechServiceFhirDestination)(nil)).Elem() } func (i MedtechServiceFhirDestinationArray) ToMedtechServiceFhirDestinationArrayOutput() MedtechServiceFhirDestinationArrayOutput { return i.ToMedtechServiceFhirDestinationArrayOutputWithContext(context.Background()) } func (i MedtechServiceFhirDestinationArray) ToMedtechServiceFhirDestinationArrayOutputWithContext(ctx context.Context) MedtechServiceFhirDestinationArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(MedtechServiceFhirDestinationArrayOutput) } // MedtechServiceFhirDestinationMapInput is an input type that accepts MedtechServiceFhirDestinationMap and MedtechServiceFhirDestinationMapOutput values. // You can construct a concrete instance of `MedtechServiceFhirDestinationMapInput` via: // // MedtechServiceFhirDestinationMap{ "key": MedtechServiceFhirDestinationArgs{...} } type MedtechServiceFhirDestinationMapInput interface { pulumi.Input ToMedtechServiceFhirDestinationMapOutput() MedtechServiceFhirDestinationMapOutput ToMedtechServiceFhirDestinationMapOutputWithContext(context.Context) MedtechServiceFhirDestinationMapOutput } type MedtechServiceFhirDestinationMap map[string]MedtechServiceFhirDestinationInput func (MedtechServiceFhirDestinationMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*MedtechServiceFhirDestination)(nil)).Elem() } func (i MedtechServiceFhirDestinationMap) ToMedtechServiceFhirDestinationMapOutput() MedtechServiceFhirDestinationMapOutput { return i.ToMedtechServiceFhirDestinationMapOutputWithContext(context.Background()) } func (i MedtechServiceFhirDestinationMap) ToMedtechServiceFhirDestinationMapOutputWithContext(ctx context.Context) MedtechServiceFhirDestinationMapOutput { return pulumi.ToOutputWithContext(ctx, i).(MedtechServiceFhirDestinationMapOutput) } type MedtechServiceFhirDestinationOutput struct{ *pulumi.OutputState } func (MedtechServiceFhirDestinationOutput) ElementType() reflect.Type { return reflect.TypeOf((**MedtechServiceFhirDestination)(nil)).Elem() } func (o MedtechServiceFhirDestinationOutput) ToMedtechServiceFhirDestinationOutput() MedtechServiceFhirDestinationOutput { return o } func (o MedtechServiceFhirDestinationOutput) ToMedtechServiceFhirDestinationOutputWithContext(ctx context.Context) MedtechServiceFhirDestinationOutput { return o } // Specifies the destination Fhir mappings of the Med Tech Service Fhir Destination. func (o MedtechServiceFhirDestinationOutput) DestinationFhirMappingJson() pulumi.StringOutput { return o.ApplyT(func(v *MedtechServiceFhirDestination) pulumi.StringOutput { return v.DestinationFhirMappingJson }).(pulumi.StringOutput) } // Specifies the destination fhir service id of the Med Tech Service Fhir Destination. func (o MedtechServiceFhirDestinationOutput) DestinationFhirServiceId() pulumi.StringOutput { return o.ApplyT(func(v *MedtechServiceFhirDestination) pulumi.StringOutput { return v.DestinationFhirServiceId }).(pulumi.StringOutput) } // Specifies the destination identity resolution type where the Healthcare Med Tech Service Fhir Destination should be created. Possible values are `Create`, `Lookup`. func (o MedtechServiceFhirDestinationOutput) DestinationIdentityResolutionType() pulumi.StringOutput { return o.ApplyT(func(v *MedtechServiceFhirDestination) pulumi.StringOutput { return v.DestinationIdentityResolutionType }).(pulumi.StringOutput) } // Specifies the Azure Region where the Healthcare Med Tech Service Fhir Destination should be created. Changing this forces a new Healthcare Med Tech Service Fhir Destination to be created. func (o MedtechServiceFhirDestinationOutput) Location() pulumi.StringOutput { return o.ApplyT(func(v *MedtechServiceFhirDestination) pulumi.StringOutput { return v.Location }).(pulumi.StringOutput) } // Specifies the name of the Healthcare Med Tech Service where the Healthcare Med Tech Service Fhir Destination should exist. Changing this forces a new Healthcare Med Tech Service Fhir Destination to be created. func (o MedtechServiceFhirDestinationOutput) MedtechServiceId() pulumi.StringOutput { return o.ApplyT(func(v *MedtechServiceFhirDestination) pulumi.StringOutput { return v.MedtechServiceId }).(pulumi.StringOutput) } // Specifies the name of the Healthcare Med Tech Service Fhir Destination. Changing this forces a new Healthcare Med Tech Service Fhir Destination to be created. func (o MedtechServiceFhirDestinationOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *MedtechServiceFhirDestination) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } type MedtechServiceFhirDestinationArrayOutput struct{ *pulumi.OutputState } func (MedtechServiceFhirDestinationArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*MedtechServiceFhirDestination)(nil)).Elem() } func (o MedtechServiceFhirDestinationArrayOutput) ToMedtechServiceFhirDestinationArrayOutput() MedtechServiceFhirDestinationArrayOutput { return o } func (o MedtechServiceFhirDestinationArrayOutput) ToMedtechServiceFhirDestinationArrayOutputWithContext(ctx context.Context) MedtechServiceFhirDestinationArrayOutput { return o } func (o MedtechServiceFhirDestinationArrayOutput) Index(i pulumi.IntInput) MedtechServiceFhirDestinationOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *MedtechServiceFhirDestination { return vs[0].([]*MedtechServiceFhirDestination)[vs[1].(int)] }).(MedtechServiceFhirDestinationOutput) } type MedtechServiceFhirDestinationMapOutput struct{ *pulumi.OutputState } func (MedtechServiceFhirDestinationMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*MedtechServiceFhirDestination)(nil)).Elem() } func (o MedtechServiceFhirDestinationMapOutput) ToMedtechServiceFhirDestinationMapOutput() MedtechServiceFhirDestinationMapOutput { return o } func (o MedtechServiceFhirDestinationMapOutput) ToMedtechServiceFhirDestinationMapOutputWithContext(ctx context.Context) MedtechServiceFhirDestinationMapOutput { return o } func (o MedtechServiceFhirDestinationMapOutput) MapIndex(k pulumi.StringInput) MedtechServiceFhirDestinationOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *MedtechServiceFhirDestination { return vs[0].(map[string]*MedtechServiceFhirDestination)[vs[1].(string)] }).(MedtechServiceFhirDestinationOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*MedtechServiceFhirDestinationInput)(nil)).Elem(), &MedtechServiceFhirDestination{}) pulumi.RegisterInputType(reflect.TypeOf((*MedtechServiceFhirDestinationArrayInput)(nil)).Elem(), MedtechServiceFhirDestinationArray{}) pulumi.RegisterInputType(reflect.TypeOf((*MedtechServiceFhirDestinationMapInput)(nil)).Elem(), MedtechServiceFhirDestinationMap{}) pulumi.RegisterOutputType(MedtechServiceFhirDestinationOutput{}) pulumi.RegisterOutputType(MedtechServiceFhirDestinationArrayOutput{}) pulumi.RegisterOutputType(MedtechServiceFhirDestinationMapOutput{}) }
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/healthcare/medtechService.go
sdk/go/azure/healthcare/medtechService.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 healthcare import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a Healthcare Med Tech Service. // // ## Example Usage // // ```go // package main // // import ( // // "encoding/json" // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/healthcare" // "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("east us"), // }) // if err != nil { // return err // } // exampleWorkspace, err := healthcare.NewWorkspace(ctx, "example", &healthcare.WorkspaceArgs{ // Name: pulumi.String("examplewkspace"), // Location: example.Location, // ResourceGroupName: example.Name, // }) // if err != nil { // return err // } // tmpJSON0, err := json.Marshal(map[string]interface{}{ // "templateType": "CollectionContent", // "template": []map[string]interface{}{ // map[string]interface{}{ // "templateType": "JsonPathContent", // "template": map[string]interface{}{ // "typeName": "heartrate", // "typeMatchExpression": "$..[?(@heartrate)]", // "deviceIdExpression": "$.deviceid", // "timestampExpression": "$.measurementdatetime", // "values": []map[string]interface{}{ // map[string]interface{}{ // "required": "true", // "valueExpression": "$.heartrate", // "valueName": "hr", // }, // }, // }, // }, // }, // }) // if err != nil { // return err // } // json0 := string(tmpJSON0) // _, err = healthcare.NewMedtechService(ctx, "example", &healthcare.MedtechServiceArgs{ // Name: pulumi.String("examplemed"), // WorkspaceId: exampleWorkspace.ID(), // Location: pulumi.String("east us"), // Identity: &healthcare.MedtechServiceIdentityArgs{ // Type: pulumi.String("SystemAssigned"), // }, // EventhubNamespaceName: pulumi.String("example-eventhub-namespace"), // EventhubName: pulumi.String("example-eventhub"), // EventhubConsumerGroupName: pulumi.String("$Default"), // DeviceMappingJson: pulumi.String(json0), // }) // 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.HealthcareApis` - 2022-12-01 // // ## Import // // Healthcare Med Tech Service can be imported using the resource`id`, e.g. // // ```sh // $ pulumi import azure:healthcare/medtechService:MedtechService example /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/group1/providers/Microsoft.HealthcareApis/workspaces/workspace1/iotConnectors/iotconnector1 // ``` type MedtechService struct { pulumi.CustomResourceState // Specifies the Device Mappings of the Med Tech Service. DeviceMappingJson pulumi.StringOutput `pulumi:"deviceMappingJson"` // Specifies the Consumer Group of the Event Hub to connect to. EventhubConsumerGroupName pulumi.StringOutput `pulumi:"eventhubConsumerGroupName"` // Specifies the name of the Event Hub to connect to. EventhubName pulumi.StringOutput `pulumi:"eventhubName"` // Specifies the namespace name of the Event Hub to connect to. EventhubNamespaceName pulumi.StringOutput `pulumi:"eventhubNamespaceName"` // An `identity` block as defined below. Identity MedtechServiceIdentityPtrOutput `pulumi:"identity"` // Specifies the Azure Region where the Healthcare Med Tech Service should be created. Changing this forces a new Healthcare Med Tech Service to be created. Location pulumi.StringOutput `pulumi:"location"` // Specifies the name of the Healthcare Med Tech Service. Changing this forces a new Healthcare Med Tech Service to be created. Name pulumi.StringOutput `pulumi:"name"` // A mapping of tags to assign to the Healthcare Med Tech Service. Tags pulumi.StringMapOutput `pulumi:"tags"` // Specifies the id of the Healthcare Workspace where the Healthcare Med Tech Service should exist. Changing this forces a new Healthcare Med Tech Service to be created. WorkspaceId pulumi.StringOutput `pulumi:"workspaceId"` } // NewMedtechService registers a new resource with the given unique name, arguments, and options. func NewMedtechService(ctx *pulumi.Context, name string, args *MedtechServiceArgs, opts ...pulumi.ResourceOption) (*MedtechService, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.DeviceMappingJson == nil { return nil, errors.New("invalid value for required argument 'DeviceMappingJson'") } if args.EventhubConsumerGroupName == nil { return nil, errors.New("invalid value for required argument 'EventhubConsumerGroupName'") } if args.EventhubName == nil { return nil, errors.New("invalid value for required argument 'EventhubName'") } if args.EventhubNamespaceName == nil { return nil, errors.New("invalid value for required argument 'EventhubNamespaceName'") } if args.WorkspaceId == nil { return nil, errors.New("invalid value for required argument 'WorkspaceId'") } opts = internal.PkgResourceDefaultOpts(opts) var resource MedtechService err := ctx.RegisterResource("azure:healthcare/medtechService:MedtechService", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetMedtechService gets an existing MedtechService 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 GetMedtechService(ctx *pulumi.Context, name string, id pulumi.IDInput, state *MedtechServiceState, opts ...pulumi.ResourceOption) (*MedtechService, error) { var resource MedtechService err := ctx.ReadResource("azure:healthcare/medtechService:MedtechService", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering MedtechService resources. type medtechServiceState struct { // Specifies the Device Mappings of the Med Tech Service. DeviceMappingJson *string `pulumi:"deviceMappingJson"` // Specifies the Consumer Group of the Event Hub to connect to. EventhubConsumerGroupName *string `pulumi:"eventhubConsumerGroupName"` // Specifies the name of the Event Hub to connect to. EventhubName *string `pulumi:"eventhubName"` // Specifies the namespace name of the Event Hub to connect to. EventhubNamespaceName *string `pulumi:"eventhubNamespaceName"` // An `identity` block as defined below. Identity *MedtechServiceIdentity `pulumi:"identity"` // Specifies the Azure Region where the Healthcare Med Tech Service should be created. Changing this forces a new Healthcare Med Tech Service to be created. Location *string `pulumi:"location"` // Specifies the name of the Healthcare Med Tech Service. Changing this forces a new Healthcare Med Tech Service to be created. Name *string `pulumi:"name"` // A mapping of tags to assign to the Healthcare Med Tech Service. Tags map[string]string `pulumi:"tags"` // Specifies the id of the Healthcare Workspace where the Healthcare Med Tech Service should exist. Changing this forces a new Healthcare Med Tech Service to be created. WorkspaceId *string `pulumi:"workspaceId"` } type MedtechServiceState struct { // Specifies the Device Mappings of the Med Tech Service. DeviceMappingJson pulumi.StringPtrInput // Specifies the Consumer Group of the Event Hub to connect to. EventhubConsumerGroupName pulumi.StringPtrInput // Specifies the name of the Event Hub to connect to. EventhubName pulumi.StringPtrInput // Specifies the namespace name of the Event Hub to connect to. EventhubNamespaceName pulumi.StringPtrInput // An `identity` block as defined below. Identity MedtechServiceIdentityPtrInput // Specifies the Azure Region where the Healthcare Med Tech Service should be created. Changing this forces a new Healthcare Med Tech Service to be created. Location pulumi.StringPtrInput // Specifies the name of the Healthcare Med Tech Service. Changing this forces a new Healthcare Med Tech Service to be created. Name pulumi.StringPtrInput // A mapping of tags to assign to the Healthcare Med Tech Service. Tags pulumi.StringMapInput // Specifies the id of the Healthcare Workspace where the Healthcare Med Tech Service should exist. Changing this forces a new Healthcare Med Tech Service to be created. WorkspaceId pulumi.StringPtrInput } func (MedtechServiceState) ElementType() reflect.Type { return reflect.TypeOf((*medtechServiceState)(nil)).Elem() } type medtechServiceArgs struct { // Specifies the Device Mappings of the Med Tech Service. DeviceMappingJson string `pulumi:"deviceMappingJson"` // Specifies the Consumer Group of the Event Hub to connect to. EventhubConsumerGroupName string `pulumi:"eventhubConsumerGroupName"` // Specifies the name of the Event Hub to connect to. EventhubName string `pulumi:"eventhubName"` // Specifies the namespace name of the Event Hub to connect to. EventhubNamespaceName string `pulumi:"eventhubNamespaceName"` // An `identity` block as defined below. Identity *MedtechServiceIdentity `pulumi:"identity"` // Specifies the Azure Region where the Healthcare Med Tech Service should be created. Changing this forces a new Healthcare Med Tech Service to be created. Location *string `pulumi:"location"` // Specifies the name of the Healthcare Med Tech Service. Changing this forces a new Healthcare Med Tech Service to be created. Name *string `pulumi:"name"` // A mapping of tags to assign to the Healthcare Med Tech Service. Tags map[string]string `pulumi:"tags"` // Specifies the id of the Healthcare Workspace where the Healthcare Med Tech Service should exist. Changing this forces a new Healthcare Med Tech Service to be created. WorkspaceId string `pulumi:"workspaceId"` } // The set of arguments for constructing a MedtechService resource. type MedtechServiceArgs struct { // Specifies the Device Mappings of the Med Tech Service. DeviceMappingJson pulumi.StringInput // Specifies the Consumer Group of the Event Hub to connect to. EventhubConsumerGroupName pulumi.StringInput // Specifies the name of the Event Hub to connect to. EventhubName pulumi.StringInput // Specifies the namespace name of the Event Hub to connect to. EventhubNamespaceName pulumi.StringInput // An `identity` block as defined below. Identity MedtechServiceIdentityPtrInput // Specifies the Azure Region where the Healthcare Med Tech Service should be created. Changing this forces a new Healthcare Med Tech Service to be created. Location pulumi.StringPtrInput // Specifies the name of the Healthcare Med Tech Service. Changing this forces a new Healthcare Med Tech Service to be created. Name pulumi.StringPtrInput // A mapping of tags to assign to the Healthcare Med Tech Service. Tags pulumi.StringMapInput // Specifies the id of the Healthcare Workspace where the Healthcare Med Tech Service should exist. Changing this forces a new Healthcare Med Tech Service to be created. WorkspaceId pulumi.StringInput } func (MedtechServiceArgs) ElementType() reflect.Type { return reflect.TypeOf((*medtechServiceArgs)(nil)).Elem() } type MedtechServiceInput interface { pulumi.Input ToMedtechServiceOutput() MedtechServiceOutput ToMedtechServiceOutputWithContext(ctx context.Context) MedtechServiceOutput } func (*MedtechService) ElementType() reflect.Type { return reflect.TypeOf((**MedtechService)(nil)).Elem() } func (i *MedtechService) ToMedtechServiceOutput() MedtechServiceOutput { return i.ToMedtechServiceOutputWithContext(context.Background()) } func (i *MedtechService) ToMedtechServiceOutputWithContext(ctx context.Context) MedtechServiceOutput { return pulumi.ToOutputWithContext(ctx, i).(MedtechServiceOutput) } // MedtechServiceArrayInput is an input type that accepts MedtechServiceArray and MedtechServiceArrayOutput values. // You can construct a concrete instance of `MedtechServiceArrayInput` via: // // MedtechServiceArray{ MedtechServiceArgs{...} } type MedtechServiceArrayInput interface { pulumi.Input ToMedtechServiceArrayOutput() MedtechServiceArrayOutput ToMedtechServiceArrayOutputWithContext(context.Context) MedtechServiceArrayOutput } type MedtechServiceArray []MedtechServiceInput func (MedtechServiceArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*MedtechService)(nil)).Elem() } func (i MedtechServiceArray) ToMedtechServiceArrayOutput() MedtechServiceArrayOutput { return i.ToMedtechServiceArrayOutputWithContext(context.Background()) } func (i MedtechServiceArray) ToMedtechServiceArrayOutputWithContext(ctx context.Context) MedtechServiceArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(MedtechServiceArrayOutput) } // MedtechServiceMapInput is an input type that accepts MedtechServiceMap and MedtechServiceMapOutput values. // You can construct a concrete instance of `MedtechServiceMapInput` via: // // MedtechServiceMap{ "key": MedtechServiceArgs{...} } type MedtechServiceMapInput interface { pulumi.Input ToMedtechServiceMapOutput() MedtechServiceMapOutput ToMedtechServiceMapOutputWithContext(context.Context) MedtechServiceMapOutput } type MedtechServiceMap map[string]MedtechServiceInput func (MedtechServiceMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*MedtechService)(nil)).Elem() } func (i MedtechServiceMap) ToMedtechServiceMapOutput() MedtechServiceMapOutput { return i.ToMedtechServiceMapOutputWithContext(context.Background()) } func (i MedtechServiceMap) ToMedtechServiceMapOutputWithContext(ctx context.Context) MedtechServiceMapOutput { return pulumi.ToOutputWithContext(ctx, i).(MedtechServiceMapOutput) } type MedtechServiceOutput struct{ *pulumi.OutputState } func (MedtechServiceOutput) ElementType() reflect.Type { return reflect.TypeOf((**MedtechService)(nil)).Elem() } func (o MedtechServiceOutput) ToMedtechServiceOutput() MedtechServiceOutput { return o } func (o MedtechServiceOutput) ToMedtechServiceOutputWithContext(ctx context.Context) MedtechServiceOutput { return o } // Specifies the Device Mappings of the Med Tech Service. func (o MedtechServiceOutput) DeviceMappingJson() pulumi.StringOutput { return o.ApplyT(func(v *MedtechService) pulumi.StringOutput { return v.DeviceMappingJson }).(pulumi.StringOutput) } // Specifies the Consumer Group of the Event Hub to connect to. func (o MedtechServiceOutput) EventhubConsumerGroupName() pulumi.StringOutput { return o.ApplyT(func(v *MedtechService) pulumi.StringOutput { return v.EventhubConsumerGroupName }).(pulumi.StringOutput) } // Specifies the name of the Event Hub to connect to. func (o MedtechServiceOutput) EventhubName() pulumi.StringOutput { return o.ApplyT(func(v *MedtechService) pulumi.StringOutput { return v.EventhubName }).(pulumi.StringOutput) } // Specifies the namespace name of the Event Hub to connect to. func (o MedtechServiceOutput) EventhubNamespaceName() pulumi.StringOutput { return o.ApplyT(func(v *MedtechService) pulumi.StringOutput { return v.EventhubNamespaceName }).(pulumi.StringOutput) } // An `identity` block as defined below. func (o MedtechServiceOutput) Identity() MedtechServiceIdentityPtrOutput { return o.ApplyT(func(v *MedtechService) MedtechServiceIdentityPtrOutput { return v.Identity }).(MedtechServiceIdentityPtrOutput) } // Specifies the Azure Region where the Healthcare Med Tech Service should be created. Changing this forces a new Healthcare Med Tech Service to be created. func (o MedtechServiceOutput) Location() pulumi.StringOutput { return o.ApplyT(func(v *MedtechService) pulumi.StringOutput { return v.Location }).(pulumi.StringOutput) } // Specifies the name of the Healthcare Med Tech Service. Changing this forces a new Healthcare Med Tech Service to be created. func (o MedtechServiceOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *MedtechService) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // A mapping of tags to assign to the Healthcare Med Tech Service. func (o MedtechServiceOutput) Tags() pulumi.StringMapOutput { return o.ApplyT(func(v *MedtechService) pulumi.StringMapOutput { return v.Tags }).(pulumi.StringMapOutput) } // Specifies the id of the Healthcare Workspace where the Healthcare Med Tech Service should exist. Changing this forces a new Healthcare Med Tech Service to be created. func (o MedtechServiceOutput) WorkspaceId() pulumi.StringOutput { return o.ApplyT(func(v *MedtechService) pulumi.StringOutput { return v.WorkspaceId }).(pulumi.StringOutput) } type MedtechServiceArrayOutput struct{ *pulumi.OutputState } func (MedtechServiceArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*MedtechService)(nil)).Elem() } func (o MedtechServiceArrayOutput) ToMedtechServiceArrayOutput() MedtechServiceArrayOutput { return o } func (o MedtechServiceArrayOutput) ToMedtechServiceArrayOutputWithContext(ctx context.Context) MedtechServiceArrayOutput { return o } func (o MedtechServiceArrayOutput) Index(i pulumi.IntInput) MedtechServiceOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *MedtechService { return vs[0].([]*MedtechService)[vs[1].(int)] }).(MedtechServiceOutput) } type MedtechServiceMapOutput struct{ *pulumi.OutputState } func (MedtechServiceMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*MedtechService)(nil)).Elem() } func (o MedtechServiceMapOutput) ToMedtechServiceMapOutput() MedtechServiceMapOutput { return o } func (o MedtechServiceMapOutput) ToMedtechServiceMapOutputWithContext(ctx context.Context) MedtechServiceMapOutput { return o } func (o MedtechServiceMapOutput) MapIndex(k pulumi.StringInput) MedtechServiceOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *MedtechService { return vs[0].(map[string]*MedtechService)[vs[1].(string)] }).(MedtechServiceOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*MedtechServiceInput)(nil)).Elem(), &MedtechService{}) pulumi.RegisterInputType(reflect.TypeOf((*MedtechServiceArrayInput)(nil)).Elem(), MedtechServiceArray{}) pulumi.RegisterInputType(reflect.TypeOf((*MedtechServiceMapInput)(nil)).Elem(), MedtechServiceMap{}) pulumi.RegisterOutputType(MedtechServiceOutput{}) pulumi.RegisterOutputType(MedtechServiceArrayOutput{}) pulumi.RegisterOutputType(MedtechServiceMapOutput{}) }
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/datafactory/linkedServiceSnowflake.go
sdk/go/azure/datafactory/linkedServiceSnowflake.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 datafactory import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a Linked Service (connection) between Snowflake and Azure Data Factory. // // ## 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/datafactory" // "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 // } // exampleFactory, err := datafactory.NewFactory(ctx, "example", &datafactory.FactoryArgs{ // Name: pulumi.String("example"), // Location: example.Location, // ResourceGroupName: example.Name, // }) // if err != nil { // return err // } // _, err = datafactory.NewLinkedServiceSnowflake(ctx, "example", &datafactory.LinkedServiceSnowflakeArgs{ // Name: pulumi.String("example"), // DataFactoryId: exampleFactory.ID(), // ConnectionString: pulumi.String("jdbc:snowflake://account.region.snowflakecomputing.com/?user=user&db=db&warehouse=wh"), // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ### With Password In Key Vault // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/datafactory" // "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 { // 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 // } // exampleKeyVault, err := keyvault.NewKeyVault(ctx, "example", &keyvault.KeyVaultArgs{ // Name: pulumi.String("example"), // Location: example.Location, // ResourceGroupName: example.Name, // TenantId: pulumi.String(current.TenantId), // SkuName: pulumi.String("standard"), // }) // if err != nil { // return err // } // exampleFactory, err := datafactory.NewFactory(ctx, "example", &datafactory.FactoryArgs{ // Name: pulumi.String("example"), // Location: example.Location, // ResourceGroupName: example.Name, // }) // if err != nil { // return err // } // exampleLinkedServiceKeyVault, err := datafactory.NewLinkedServiceKeyVault(ctx, "example", &datafactory.LinkedServiceKeyVaultArgs{ // Name: pulumi.String("kvlink"), // DataFactoryId: exampleFactory.ID(), // KeyVaultId: exampleKeyVault.ID(), // }) // if err != nil { // return err // } // _, err = datafactory.NewLinkedServiceSnowflake(ctx, "example", &datafactory.LinkedServiceSnowflakeArgs{ // Name: pulumi.String("example"), // DataFactoryId: exampleFactory.ID(), // ConnectionString: pulumi.String("jdbc:snowflake://account.region.snowflakecomputing.com/?user=user&db=db&warehouse=wh"), // KeyVaultPassword: &datafactory.LinkedServiceSnowflakeKeyVaultPasswordArgs{ // LinkedServiceName: exampleLinkedServiceKeyVault.Name, // SecretName: pulumi.String("secret"), // }, // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## Import // // Data Factory Snowflake Linked Service's can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:datafactory/linkedServiceSnowflake:LinkedServiceSnowflake example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example/providers/Microsoft.DataFactory/factories/example/linkedservices/example // ``` type LinkedServiceSnowflake struct { pulumi.CustomResourceState // A map of additional properties to associate with the Data Factory Linked Service. AdditionalProperties pulumi.StringMapOutput `pulumi:"additionalProperties"` // List of tags that can be used for describing the Data Factory Linked Service. Annotations pulumi.StringArrayOutput `pulumi:"annotations"` // The connection string in which to authenticate with Snowflake. ConnectionString pulumi.StringOutput `pulumi:"connectionString"` // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId pulumi.StringOutput `pulumi:"dataFactoryId"` // The description for the Data Factory Linked Service. Description pulumi.StringPtrOutput `pulumi:"description"` // The integration runtime reference to associate with the Data Factory Linked Service. IntegrationRuntimeName pulumi.StringPtrOutput `pulumi:"integrationRuntimeName"` // A `keyVaultPassword` block as defined below. Use this argument to store Snowflake password in an existing Key Vault. It needs an existing Key Vault Data Factory Linked Service. KeyVaultPassword LinkedServiceSnowflakeKeyVaultPasswordPtrOutput `pulumi:"keyVaultPassword"` // Specifies the name of the Data Factory Linked Service. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringOutput `pulumi:"name"` // A map of parameters to associate with the Data Factory Linked Service. Parameters pulumi.StringMapOutput `pulumi:"parameters"` } // NewLinkedServiceSnowflake registers a new resource with the given unique name, arguments, and options. func NewLinkedServiceSnowflake(ctx *pulumi.Context, name string, args *LinkedServiceSnowflakeArgs, opts ...pulumi.ResourceOption) (*LinkedServiceSnowflake, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.ConnectionString == nil { return nil, errors.New("invalid value for required argument 'ConnectionString'") } if args.DataFactoryId == nil { return nil, errors.New("invalid value for required argument 'DataFactoryId'") } opts = internal.PkgResourceDefaultOpts(opts) var resource LinkedServiceSnowflake err := ctx.RegisterResource("azure:datafactory/linkedServiceSnowflake:LinkedServiceSnowflake", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetLinkedServiceSnowflake gets an existing LinkedServiceSnowflake 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 GetLinkedServiceSnowflake(ctx *pulumi.Context, name string, id pulumi.IDInput, state *LinkedServiceSnowflakeState, opts ...pulumi.ResourceOption) (*LinkedServiceSnowflake, error) { var resource LinkedServiceSnowflake err := ctx.ReadResource("azure:datafactory/linkedServiceSnowflake:LinkedServiceSnowflake", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering LinkedServiceSnowflake resources. type linkedServiceSnowflakeState struct { // A map of additional properties to associate with the Data Factory Linked Service. AdditionalProperties map[string]string `pulumi:"additionalProperties"` // List of tags that can be used for describing the Data Factory Linked Service. Annotations []string `pulumi:"annotations"` // The connection string in which to authenticate with Snowflake. ConnectionString *string `pulumi:"connectionString"` // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId *string `pulumi:"dataFactoryId"` // The description for the Data Factory Linked Service. Description *string `pulumi:"description"` // The integration runtime reference to associate with the Data Factory Linked Service. IntegrationRuntimeName *string `pulumi:"integrationRuntimeName"` // A `keyVaultPassword` block as defined below. Use this argument to store Snowflake password in an existing Key Vault. It needs an existing Key Vault Data Factory Linked Service. KeyVaultPassword *LinkedServiceSnowflakeKeyVaultPassword `pulumi:"keyVaultPassword"` // Specifies the name of the Data Factory Linked Service. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name *string `pulumi:"name"` // A map of parameters to associate with the Data Factory Linked Service. Parameters map[string]string `pulumi:"parameters"` } type LinkedServiceSnowflakeState struct { // A map of additional properties to associate with the Data Factory Linked Service. AdditionalProperties pulumi.StringMapInput // List of tags that can be used for describing the Data Factory Linked Service. Annotations pulumi.StringArrayInput // The connection string in which to authenticate with Snowflake. ConnectionString pulumi.StringPtrInput // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId pulumi.StringPtrInput // The description for the Data Factory Linked Service. Description pulumi.StringPtrInput // The integration runtime reference to associate with the Data Factory Linked Service. IntegrationRuntimeName pulumi.StringPtrInput // A `keyVaultPassword` block as defined below. Use this argument to store Snowflake password in an existing Key Vault. It needs an existing Key Vault Data Factory Linked Service. KeyVaultPassword LinkedServiceSnowflakeKeyVaultPasswordPtrInput // Specifies the name of the Data Factory Linked Service. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringPtrInput // A map of parameters to associate with the Data Factory Linked Service. Parameters pulumi.StringMapInput } func (LinkedServiceSnowflakeState) ElementType() reflect.Type { return reflect.TypeOf((*linkedServiceSnowflakeState)(nil)).Elem() } type linkedServiceSnowflakeArgs struct { // A map of additional properties to associate with the Data Factory Linked Service. AdditionalProperties map[string]string `pulumi:"additionalProperties"` // List of tags that can be used for describing the Data Factory Linked Service. Annotations []string `pulumi:"annotations"` // The connection string in which to authenticate with Snowflake. ConnectionString string `pulumi:"connectionString"` // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId string `pulumi:"dataFactoryId"` // The description for the Data Factory Linked Service. Description *string `pulumi:"description"` // The integration runtime reference to associate with the Data Factory Linked Service. IntegrationRuntimeName *string `pulumi:"integrationRuntimeName"` // A `keyVaultPassword` block as defined below. Use this argument to store Snowflake password in an existing Key Vault. It needs an existing Key Vault Data Factory Linked Service. KeyVaultPassword *LinkedServiceSnowflakeKeyVaultPassword `pulumi:"keyVaultPassword"` // Specifies the name of the Data Factory Linked Service. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name *string `pulumi:"name"` // A map of parameters to associate with the Data Factory Linked Service. Parameters map[string]string `pulumi:"parameters"` } // The set of arguments for constructing a LinkedServiceSnowflake resource. type LinkedServiceSnowflakeArgs struct { // A map of additional properties to associate with the Data Factory Linked Service. AdditionalProperties pulumi.StringMapInput // List of tags that can be used for describing the Data Factory Linked Service. Annotations pulumi.StringArrayInput // The connection string in which to authenticate with Snowflake. ConnectionString pulumi.StringInput // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId pulumi.StringInput // The description for the Data Factory Linked Service. Description pulumi.StringPtrInput // The integration runtime reference to associate with the Data Factory Linked Service. IntegrationRuntimeName pulumi.StringPtrInput // A `keyVaultPassword` block as defined below. Use this argument to store Snowflake password in an existing Key Vault. It needs an existing Key Vault Data Factory Linked Service. KeyVaultPassword LinkedServiceSnowflakeKeyVaultPasswordPtrInput // Specifies the name of the Data Factory Linked Service. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringPtrInput // A map of parameters to associate with the Data Factory Linked Service. Parameters pulumi.StringMapInput } func (LinkedServiceSnowflakeArgs) ElementType() reflect.Type { return reflect.TypeOf((*linkedServiceSnowflakeArgs)(nil)).Elem() } type LinkedServiceSnowflakeInput interface { pulumi.Input ToLinkedServiceSnowflakeOutput() LinkedServiceSnowflakeOutput ToLinkedServiceSnowflakeOutputWithContext(ctx context.Context) LinkedServiceSnowflakeOutput } func (*LinkedServiceSnowflake) ElementType() reflect.Type { return reflect.TypeOf((**LinkedServiceSnowflake)(nil)).Elem() } func (i *LinkedServiceSnowflake) ToLinkedServiceSnowflakeOutput() LinkedServiceSnowflakeOutput { return i.ToLinkedServiceSnowflakeOutputWithContext(context.Background()) } func (i *LinkedServiceSnowflake) ToLinkedServiceSnowflakeOutputWithContext(ctx context.Context) LinkedServiceSnowflakeOutput { return pulumi.ToOutputWithContext(ctx, i).(LinkedServiceSnowflakeOutput) } // LinkedServiceSnowflakeArrayInput is an input type that accepts LinkedServiceSnowflakeArray and LinkedServiceSnowflakeArrayOutput values. // You can construct a concrete instance of `LinkedServiceSnowflakeArrayInput` via: // // LinkedServiceSnowflakeArray{ LinkedServiceSnowflakeArgs{...} } type LinkedServiceSnowflakeArrayInput interface { pulumi.Input ToLinkedServiceSnowflakeArrayOutput() LinkedServiceSnowflakeArrayOutput ToLinkedServiceSnowflakeArrayOutputWithContext(context.Context) LinkedServiceSnowflakeArrayOutput } type LinkedServiceSnowflakeArray []LinkedServiceSnowflakeInput func (LinkedServiceSnowflakeArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*LinkedServiceSnowflake)(nil)).Elem() } func (i LinkedServiceSnowflakeArray) ToLinkedServiceSnowflakeArrayOutput() LinkedServiceSnowflakeArrayOutput { return i.ToLinkedServiceSnowflakeArrayOutputWithContext(context.Background()) } func (i LinkedServiceSnowflakeArray) ToLinkedServiceSnowflakeArrayOutputWithContext(ctx context.Context) LinkedServiceSnowflakeArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(LinkedServiceSnowflakeArrayOutput) } // LinkedServiceSnowflakeMapInput is an input type that accepts LinkedServiceSnowflakeMap and LinkedServiceSnowflakeMapOutput values. // You can construct a concrete instance of `LinkedServiceSnowflakeMapInput` via: // // LinkedServiceSnowflakeMap{ "key": LinkedServiceSnowflakeArgs{...} } type LinkedServiceSnowflakeMapInput interface { pulumi.Input ToLinkedServiceSnowflakeMapOutput() LinkedServiceSnowflakeMapOutput ToLinkedServiceSnowflakeMapOutputWithContext(context.Context) LinkedServiceSnowflakeMapOutput } type LinkedServiceSnowflakeMap map[string]LinkedServiceSnowflakeInput func (LinkedServiceSnowflakeMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*LinkedServiceSnowflake)(nil)).Elem() } func (i LinkedServiceSnowflakeMap) ToLinkedServiceSnowflakeMapOutput() LinkedServiceSnowflakeMapOutput { return i.ToLinkedServiceSnowflakeMapOutputWithContext(context.Background()) } func (i LinkedServiceSnowflakeMap) ToLinkedServiceSnowflakeMapOutputWithContext(ctx context.Context) LinkedServiceSnowflakeMapOutput { return pulumi.ToOutputWithContext(ctx, i).(LinkedServiceSnowflakeMapOutput) } type LinkedServiceSnowflakeOutput struct{ *pulumi.OutputState } func (LinkedServiceSnowflakeOutput) ElementType() reflect.Type { return reflect.TypeOf((**LinkedServiceSnowflake)(nil)).Elem() } func (o LinkedServiceSnowflakeOutput) ToLinkedServiceSnowflakeOutput() LinkedServiceSnowflakeOutput { return o } func (o LinkedServiceSnowflakeOutput) ToLinkedServiceSnowflakeOutputWithContext(ctx context.Context) LinkedServiceSnowflakeOutput { return o } // A map of additional properties to associate with the Data Factory Linked Service. func (o LinkedServiceSnowflakeOutput) AdditionalProperties() pulumi.StringMapOutput { return o.ApplyT(func(v *LinkedServiceSnowflake) pulumi.StringMapOutput { return v.AdditionalProperties }).(pulumi.StringMapOutput) } // List of tags that can be used for describing the Data Factory Linked Service. func (o LinkedServiceSnowflakeOutput) Annotations() pulumi.StringArrayOutput { return o.ApplyT(func(v *LinkedServiceSnowflake) pulumi.StringArrayOutput { return v.Annotations }).(pulumi.StringArrayOutput) } // The connection string in which to authenticate with Snowflake. func (o LinkedServiceSnowflakeOutput) ConnectionString() pulumi.StringOutput { return o.ApplyT(func(v *LinkedServiceSnowflake) pulumi.StringOutput { return v.ConnectionString }).(pulumi.StringOutput) } // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. func (o LinkedServiceSnowflakeOutput) DataFactoryId() pulumi.StringOutput { return o.ApplyT(func(v *LinkedServiceSnowflake) pulumi.StringOutput { return v.DataFactoryId }).(pulumi.StringOutput) } // The description for the Data Factory Linked Service. func (o LinkedServiceSnowflakeOutput) Description() pulumi.StringPtrOutput { return o.ApplyT(func(v *LinkedServiceSnowflake) pulumi.StringPtrOutput { return v.Description }).(pulumi.StringPtrOutput) } // The integration runtime reference to associate with the Data Factory Linked Service. func (o LinkedServiceSnowflakeOutput) IntegrationRuntimeName() pulumi.StringPtrOutput { return o.ApplyT(func(v *LinkedServiceSnowflake) pulumi.StringPtrOutput { return v.IntegrationRuntimeName }).(pulumi.StringPtrOutput) } // A `keyVaultPassword` block as defined below. Use this argument to store Snowflake password in an existing Key Vault. It needs an existing Key Vault Data Factory Linked Service. func (o LinkedServiceSnowflakeOutput) KeyVaultPassword() LinkedServiceSnowflakeKeyVaultPasswordPtrOutput { return o.ApplyT(func(v *LinkedServiceSnowflake) LinkedServiceSnowflakeKeyVaultPasswordPtrOutput { return v.KeyVaultPassword }).(LinkedServiceSnowflakeKeyVaultPasswordPtrOutput) } // Specifies the name of the Data Factory Linked Service. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. func (o LinkedServiceSnowflakeOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *LinkedServiceSnowflake) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // A map of parameters to associate with the Data Factory Linked Service. func (o LinkedServiceSnowflakeOutput) Parameters() pulumi.StringMapOutput { return o.ApplyT(func(v *LinkedServiceSnowflake) pulumi.StringMapOutput { return v.Parameters }).(pulumi.StringMapOutput) } type LinkedServiceSnowflakeArrayOutput struct{ *pulumi.OutputState } func (LinkedServiceSnowflakeArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*LinkedServiceSnowflake)(nil)).Elem() } func (o LinkedServiceSnowflakeArrayOutput) ToLinkedServiceSnowflakeArrayOutput() LinkedServiceSnowflakeArrayOutput { return o } func (o LinkedServiceSnowflakeArrayOutput) ToLinkedServiceSnowflakeArrayOutputWithContext(ctx context.Context) LinkedServiceSnowflakeArrayOutput { return o } func (o LinkedServiceSnowflakeArrayOutput) Index(i pulumi.IntInput) LinkedServiceSnowflakeOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *LinkedServiceSnowflake { return vs[0].([]*LinkedServiceSnowflake)[vs[1].(int)] }).(LinkedServiceSnowflakeOutput) } type LinkedServiceSnowflakeMapOutput struct{ *pulumi.OutputState } func (LinkedServiceSnowflakeMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*LinkedServiceSnowflake)(nil)).Elem() } func (o LinkedServiceSnowflakeMapOutput) ToLinkedServiceSnowflakeMapOutput() LinkedServiceSnowflakeMapOutput { return o } func (o LinkedServiceSnowflakeMapOutput) ToLinkedServiceSnowflakeMapOutputWithContext(ctx context.Context) LinkedServiceSnowflakeMapOutput { return o } func (o LinkedServiceSnowflakeMapOutput) MapIndex(k pulumi.StringInput) LinkedServiceSnowflakeOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *LinkedServiceSnowflake { return vs[0].(map[string]*LinkedServiceSnowflake)[vs[1].(string)] }).(LinkedServiceSnowflakeOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*LinkedServiceSnowflakeInput)(nil)).Elem(), &LinkedServiceSnowflake{}) pulumi.RegisterInputType(reflect.TypeOf((*LinkedServiceSnowflakeArrayInput)(nil)).Elem(), LinkedServiceSnowflakeArray{}) pulumi.RegisterInputType(reflect.TypeOf((*LinkedServiceSnowflakeMapInput)(nil)).Elem(), LinkedServiceSnowflakeMap{}) pulumi.RegisterOutputType(LinkedServiceSnowflakeOutput{}) pulumi.RegisterOutputType(LinkedServiceSnowflakeArrayOutput{}) pulumi.RegisterOutputType(LinkedServiceSnowflakeMapOutput{}) }
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/datafactory/triggerTumblingWindow.go
sdk/go/azure/datafactory/triggerTumblingWindow.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 datafactory import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a Tumbling Window Trigger inside an Azure Data Factory. // // ## 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/datafactory" // "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 // } // exampleFactory, err := datafactory.NewFactory(ctx, "example", &datafactory.FactoryArgs{ // Name: pulumi.String("example"), // Location: example.Location, // ResourceGroupName: example.Name, // }) // if err != nil { // return err // } // examplePipeline, err := datafactory.NewPipeline(ctx, "example", &datafactory.PipelineArgs{ // Name: pulumi.String("example"), // DataFactoryId: exampleFactory.ID(), // }) // if err != nil { // return err // } // _, err = datafactory.NewTriggerTumblingWindow(ctx, "example", &datafactory.TriggerTumblingWindowArgs{ // Name: pulumi.String("example"), // DataFactoryId: exampleFactory.ID(), // StartTime: pulumi.String("2022-09-21T00:00:00Z"), // EndTime: pulumi.String("2022-09-21T08:00:00Z"), // Frequency: pulumi.String("Minute"), // Interval: pulumi.Int(15), // Delay: pulumi.String("16:00:00"), // Annotations: pulumi.StringArray{ // pulumi.String("example1"), // pulumi.String("example2"), // pulumi.String("example3"), // }, // Description: pulumi.String("example description"), // Retry: &datafactory.TriggerTumblingWindowRetryArgs{ // Count: pulumi.Int(1), // Interval: pulumi.Int(30), // }, // Pipeline: &datafactory.TriggerTumblingWindowPipelineArgs{ // Name: examplePipeline.Name, // Parameters: pulumi.StringMap{ // "Env": pulumi.String("Prod"), // }, // }, // TriggerDependencies: datafactory.TriggerTumblingWindowTriggerDependencyArray{ // &datafactory.TriggerTumblingWindowTriggerDependencyArgs{ // Size: pulumi.String("24:00:00"), // Offset: pulumi.String("-24:00:00"), // }, // }, // AdditionalProperties: pulumi.StringMap{ // "foo": pulumi.String("value1"), // "bar": pulumi.String("value2"), // }, // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## Import // // Data Factory Tumbling Window Trigger can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:datafactory/triggerTumblingWindow:TriggerTumblingWindow example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example/providers/Microsoft.DataFactory/factories/example/triggers/example // ``` type TriggerTumblingWindow struct { pulumi.CustomResourceState // Specifies if the Data Factory Tumbling Window Trigger is activated. Defaults to `true`. Activated pulumi.BoolPtrOutput `pulumi:"activated"` // A map of additional properties to associate with the Data Factory Tumbling Window Trigger. AdditionalProperties pulumi.StringMapOutput `pulumi:"additionalProperties"` // List of tags that can be used for describing the Data Factory Tumbling Window Trigger. Annotations pulumi.StringArrayOutput `pulumi:"annotations"` // The ID of Data Factory in which to associate the Trigger with. Changing this forces a new resource. DataFactoryId pulumi.StringOutput `pulumi:"dataFactoryId"` // Specifies how long the trigger waits before triggering new run. formatted as an `D.HH:MM:SS`. Delay pulumi.StringPtrOutput `pulumi:"delay"` // The description for the Data Factory Tumbling Window Trigger. Description pulumi.StringPtrOutput `pulumi:"description"` // Specifies the end time of Tumbling Window, formatted as an RFC3339 string. EndTime pulumi.StringPtrOutput `pulumi:"endTime"` // Specifies the frequency of Tumbling Window. Possible values are `Hour`, `Minute` and `Month`. Changing this forces a new resource. Frequency pulumi.StringOutput `pulumi:"frequency"` // Specifies the interval of Tumbling Window. Changing this forces a new resource. Interval pulumi.IntOutput `pulumi:"interval"` // The max number for simultaneous trigger run fired by Tumbling Window. Possible values are between `1` and `50`. Defaults to `50`. MaxConcurrency pulumi.IntPtrOutput `pulumi:"maxConcurrency"` // Specifies the name of the Data Factory Tumbling Window Trigger. Changing this forces a new resource to be created. Name pulumi.StringOutput `pulumi:"name"` // A `pipeline` block as defined below. Pipeline TriggerTumblingWindowPipelineOutput `pulumi:"pipeline"` // A `retry` block as defined below. Retry TriggerTumblingWindowRetryPtrOutput `pulumi:"retry"` // Specifies the start time of Tumbling Window, formatted as an RFC3339 string. Changing this forces a new resource. StartTime pulumi.StringOutput `pulumi:"startTime"` // One or more `triggerDependency` block as defined below. TriggerDependencies TriggerTumblingWindowTriggerDependencyArrayOutput `pulumi:"triggerDependencies"` } // NewTriggerTumblingWindow registers a new resource with the given unique name, arguments, and options. func NewTriggerTumblingWindow(ctx *pulumi.Context, name string, args *TriggerTumblingWindowArgs, opts ...pulumi.ResourceOption) (*TriggerTumblingWindow, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.DataFactoryId == nil { return nil, errors.New("invalid value for required argument 'DataFactoryId'") } 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.Pipeline == nil { return nil, errors.New("invalid value for required argument 'Pipeline'") } if args.StartTime == nil { return nil, errors.New("invalid value for required argument 'StartTime'") } opts = internal.PkgResourceDefaultOpts(opts) var resource TriggerTumblingWindow err := ctx.RegisterResource("azure:datafactory/triggerTumblingWindow:TriggerTumblingWindow", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetTriggerTumblingWindow gets an existing TriggerTumblingWindow 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 GetTriggerTumblingWindow(ctx *pulumi.Context, name string, id pulumi.IDInput, state *TriggerTumblingWindowState, opts ...pulumi.ResourceOption) (*TriggerTumblingWindow, error) { var resource TriggerTumblingWindow err := ctx.ReadResource("azure:datafactory/triggerTumblingWindow:TriggerTumblingWindow", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering TriggerTumblingWindow resources. type triggerTumblingWindowState struct { // Specifies if the Data Factory Tumbling Window Trigger is activated. Defaults to `true`. Activated *bool `pulumi:"activated"` // A map of additional properties to associate with the Data Factory Tumbling Window Trigger. AdditionalProperties map[string]string `pulumi:"additionalProperties"` // List of tags that can be used for describing the Data Factory Tumbling Window Trigger. Annotations []string `pulumi:"annotations"` // The ID of Data Factory in which to associate the Trigger with. Changing this forces a new resource. DataFactoryId *string `pulumi:"dataFactoryId"` // Specifies how long the trigger waits before triggering new run. formatted as an `D.HH:MM:SS`. Delay *string `pulumi:"delay"` // The description for the Data Factory Tumbling Window Trigger. Description *string `pulumi:"description"` // Specifies the end time of Tumbling Window, formatted as an RFC3339 string. EndTime *string `pulumi:"endTime"` // Specifies the frequency of Tumbling Window. Possible values are `Hour`, `Minute` and `Month`. Changing this forces a new resource. Frequency *string `pulumi:"frequency"` // Specifies the interval of Tumbling Window. Changing this forces a new resource. Interval *int `pulumi:"interval"` // The max number for simultaneous trigger run fired by Tumbling Window. Possible values are between `1` and `50`. Defaults to `50`. MaxConcurrency *int `pulumi:"maxConcurrency"` // Specifies the name of the Data Factory Tumbling Window Trigger. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // A `pipeline` block as defined below. Pipeline *TriggerTumblingWindowPipeline `pulumi:"pipeline"` // A `retry` block as defined below. Retry *TriggerTumblingWindowRetry `pulumi:"retry"` // Specifies the start time of Tumbling Window, formatted as an RFC3339 string. Changing this forces a new resource. StartTime *string `pulumi:"startTime"` // One or more `triggerDependency` block as defined below. TriggerDependencies []TriggerTumblingWindowTriggerDependency `pulumi:"triggerDependencies"` } type TriggerTumblingWindowState struct { // Specifies if the Data Factory Tumbling Window Trigger is activated. Defaults to `true`. Activated pulumi.BoolPtrInput // A map of additional properties to associate with the Data Factory Tumbling Window Trigger. AdditionalProperties pulumi.StringMapInput // List of tags that can be used for describing the Data Factory Tumbling Window Trigger. Annotations pulumi.StringArrayInput // The ID of Data Factory in which to associate the Trigger with. Changing this forces a new resource. DataFactoryId pulumi.StringPtrInput // Specifies how long the trigger waits before triggering new run. formatted as an `D.HH:MM:SS`. Delay pulumi.StringPtrInput // The description for the Data Factory Tumbling Window Trigger. Description pulumi.StringPtrInput // Specifies the end time of Tumbling Window, formatted as an RFC3339 string. EndTime pulumi.StringPtrInput // Specifies the frequency of Tumbling Window. Possible values are `Hour`, `Minute` and `Month`. Changing this forces a new resource. Frequency pulumi.StringPtrInput // Specifies the interval of Tumbling Window. Changing this forces a new resource. Interval pulumi.IntPtrInput // The max number for simultaneous trigger run fired by Tumbling Window. Possible values are between `1` and `50`. Defaults to `50`. MaxConcurrency pulumi.IntPtrInput // Specifies the name of the Data Factory Tumbling Window Trigger. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // A `pipeline` block as defined below. Pipeline TriggerTumblingWindowPipelinePtrInput // A `retry` block as defined below. Retry TriggerTumblingWindowRetryPtrInput // Specifies the start time of Tumbling Window, formatted as an RFC3339 string. Changing this forces a new resource. StartTime pulumi.StringPtrInput // One or more `triggerDependency` block as defined below. TriggerDependencies TriggerTumblingWindowTriggerDependencyArrayInput } func (TriggerTumblingWindowState) ElementType() reflect.Type { return reflect.TypeOf((*triggerTumblingWindowState)(nil)).Elem() } type triggerTumblingWindowArgs struct { // Specifies if the Data Factory Tumbling Window Trigger is activated. Defaults to `true`. Activated *bool `pulumi:"activated"` // A map of additional properties to associate with the Data Factory Tumbling Window Trigger. AdditionalProperties map[string]string `pulumi:"additionalProperties"` // List of tags that can be used for describing the Data Factory Tumbling Window Trigger. Annotations []string `pulumi:"annotations"` // The ID of Data Factory in which to associate the Trigger with. Changing this forces a new resource. DataFactoryId string `pulumi:"dataFactoryId"` // Specifies how long the trigger waits before triggering new run. formatted as an `D.HH:MM:SS`. Delay *string `pulumi:"delay"` // The description for the Data Factory Tumbling Window Trigger. Description *string `pulumi:"description"` // Specifies the end time of Tumbling Window, formatted as an RFC3339 string. EndTime *string `pulumi:"endTime"` // Specifies the frequency of Tumbling Window. Possible values are `Hour`, `Minute` and `Month`. Changing this forces a new resource. Frequency string `pulumi:"frequency"` // Specifies the interval of Tumbling Window. Changing this forces a new resource. Interval int `pulumi:"interval"` // The max number for simultaneous trigger run fired by Tumbling Window. Possible values are between `1` and `50`. Defaults to `50`. MaxConcurrency *int `pulumi:"maxConcurrency"` // Specifies the name of the Data Factory Tumbling Window Trigger. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // A `pipeline` block as defined below. Pipeline TriggerTumblingWindowPipeline `pulumi:"pipeline"` // A `retry` block as defined below. Retry *TriggerTumblingWindowRetry `pulumi:"retry"` // Specifies the start time of Tumbling Window, formatted as an RFC3339 string. Changing this forces a new resource. StartTime string `pulumi:"startTime"` // One or more `triggerDependency` block as defined below. TriggerDependencies []TriggerTumblingWindowTriggerDependency `pulumi:"triggerDependencies"` } // The set of arguments for constructing a TriggerTumblingWindow resource. type TriggerTumblingWindowArgs struct { // Specifies if the Data Factory Tumbling Window Trigger is activated. Defaults to `true`. Activated pulumi.BoolPtrInput // A map of additional properties to associate with the Data Factory Tumbling Window Trigger. AdditionalProperties pulumi.StringMapInput // List of tags that can be used for describing the Data Factory Tumbling Window Trigger. Annotations pulumi.StringArrayInput // The ID of Data Factory in which to associate the Trigger with. Changing this forces a new resource. DataFactoryId pulumi.StringInput // Specifies how long the trigger waits before triggering new run. formatted as an `D.HH:MM:SS`. Delay pulumi.StringPtrInput // The description for the Data Factory Tumbling Window Trigger. Description pulumi.StringPtrInput // Specifies the end time of Tumbling Window, formatted as an RFC3339 string. EndTime pulumi.StringPtrInput // Specifies the frequency of Tumbling Window. Possible values are `Hour`, `Minute` and `Month`. Changing this forces a new resource. Frequency pulumi.StringInput // Specifies the interval of Tumbling Window. Changing this forces a new resource. Interval pulumi.IntInput // The max number for simultaneous trigger run fired by Tumbling Window. Possible values are between `1` and `50`. Defaults to `50`. MaxConcurrency pulumi.IntPtrInput // Specifies the name of the Data Factory Tumbling Window Trigger. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // A `pipeline` block as defined below. Pipeline TriggerTumblingWindowPipelineInput // A `retry` block as defined below. Retry TriggerTumblingWindowRetryPtrInput // Specifies the start time of Tumbling Window, formatted as an RFC3339 string. Changing this forces a new resource. StartTime pulumi.StringInput // One or more `triggerDependency` block as defined below. TriggerDependencies TriggerTumblingWindowTriggerDependencyArrayInput } func (TriggerTumblingWindowArgs) ElementType() reflect.Type { return reflect.TypeOf((*triggerTumblingWindowArgs)(nil)).Elem() } type TriggerTumblingWindowInput interface { pulumi.Input ToTriggerTumblingWindowOutput() TriggerTumblingWindowOutput ToTriggerTumblingWindowOutputWithContext(ctx context.Context) TriggerTumblingWindowOutput } func (*TriggerTumblingWindow) ElementType() reflect.Type { return reflect.TypeOf((**TriggerTumblingWindow)(nil)).Elem() } func (i *TriggerTumblingWindow) ToTriggerTumblingWindowOutput() TriggerTumblingWindowOutput { return i.ToTriggerTumblingWindowOutputWithContext(context.Background()) } func (i *TriggerTumblingWindow) ToTriggerTumblingWindowOutputWithContext(ctx context.Context) TriggerTumblingWindowOutput { return pulumi.ToOutputWithContext(ctx, i).(TriggerTumblingWindowOutput) } // TriggerTumblingWindowArrayInput is an input type that accepts TriggerTumblingWindowArray and TriggerTumblingWindowArrayOutput values. // You can construct a concrete instance of `TriggerTumblingWindowArrayInput` via: // // TriggerTumblingWindowArray{ TriggerTumblingWindowArgs{...} } type TriggerTumblingWindowArrayInput interface { pulumi.Input ToTriggerTumblingWindowArrayOutput() TriggerTumblingWindowArrayOutput ToTriggerTumblingWindowArrayOutputWithContext(context.Context) TriggerTumblingWindowArrayOutput } type TriggerTumblingWindowArray []TriggerTumblingWindowInput func (TriggerTumblingWindowArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*TriggerTumblingWindow)(nil)).Elem() } func (i TriggerTumblingWindowArray) ToTriggerTumblingWindowArrayOutput() TriggerTumblingWindowArrayOutput { return i.ToTriggerTumblingWindowArrayOutputWithContext(context.Background()) } func (i TriggerTumblingWindowArray) ToTriggerTumblingWindowArrayOutputWithContext(ctx context.Context) TriggerTumblingWindowArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(TriggerTumblingWindowArrayOutput) } // TriggerTumblingWindowMapInput is an input type that accepts TriggerTumblingWindowMap and TriggerTumblingWindowMapOutput values. // You can construct a concrete instance of `TriggerTumblingWindowMapInput` via: // // TriggerTumblingWindowMap{ "key": TriggerTumblingWindowArgs{...} } type TriggerTumblingWindowMapInput interface { pulumi.Input ToTriggerTumblingWindowMapOutput() TriggerTumblingWindowMapOutput ToTriggerTumblingWindowMapOutputWithContext(context.Context) TriggerTumblingWindowMapOutput } type TriggerTumblingWindowMap map[string]TriggerTumblingWindowInput func (TriggerTumblingWindowMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*TriggerTumblingWindow)(nil)).Elem() } func (i TriggerTumblingWindowMap) ToTriggerTumblingWindowMapOutput() TriggerTumblingWindowMapOutput { return i.ToTriggerTumblingWindowMapOutputWithContext(context.Background()) } func (i TriggerTumblingWindowMap) ToTriggerTumblingWindowMapOutputWithContext(ctx context.Context) TriggerTumblingWindowMapOutput { return pulumi.ToOutputWithContext(ctx, i).(TriggerTumblingWindowMapOutput) } type TriggerTumblingWindowOutput struct{ *pulumi.OutputState } func (TriggerTumblingWindowOutput) ElementType() reflect.Type { return reflect.TypeOf((**TriggerTumblingWindow)(nil)).Elem() } func (o TriggerTumblingWindowOutput) ToTriggerTumblingWindowOutput() TriggerTumblingWindowOutput { return o } func (o TriggerTumblingWindowOutput) ToTriggerTumblingWindowOutputWithContext(ctx context.Context) TriggerTumblingWindowOutput { return o } // Specifies if the Data Factory Tumbling Window Trigger is activated. Defaults to `true`. func (o TriggerTumblingWindowOutput) Activated() pulumi.BoolPtrOutput { return o.ApplyT(func(v *TriggerTumblingWindow) pulumi.BoolPtrOutput { return v.Activated }).(pulumi.BoolPtrOutput) } // A map of additional properties to associate with the Data Factory Tumbling Window Trigger. func (o TriggerTumblingWindowOutput) AdditionalProperties() pulumi.StringMapOutput { return o.ApplyT(func(v *TriggerTumblingWindow) pulumi.StringMapOutput { return v.AdditionalProperties }).(pulumi.StringMapOutput) } // List of tags that can be used for describing the Data Factory Tumbling Window Trigger. func (o TriggerTumblingWindowOutput) Annotations() pulumi.StringArrayOutput { return o.ApplyT(func(v *TriggerTumblingWindow) pulumi.StringArrayOutput { return v.Annotations }).(pulumi.StringArrayOutput) } // The ID of Data Factory in which to associate the Trigger with. Changing this forces a new resource. func (o TriggerTumblingWindowOutput) DataFactoryId() pulumi.StringOutput { return o.ApplyT(func(v *TriggerTumblingWindow) pulumi.StringOutput { return v.DataFactoryId }).(pulumi.StringOutput) } // Specifies how long the trigger waits before triggering new run. formatted as an `D.HH:MM:SS`. func (o TriggerTumblingWindowOutput) Delay() pulumi.StringPtrOutput { return o.ApplyT(func(v *TriggerTumblingWindow) pulumi.StringPtrOutput { return v.Delay }).(pulumi.StringPtrOutput) } // The description for the Data Factory Tumbling Window Trigger. func (o TriggerTumblingWindowOutput) Description() pulumi.StringPtrOutput { return o.ApplyT(func(v *TriggerTumblingWindow) pulumi.StringPtrOutput { return v.Description }).(pulumi.StringPtrOutput) } // Specifies the end time of Tumbling Window, formatted as an RFC3339 string. func (o TriggerTumblingWindowOutput) EndTime() pulumi.StringPtrOutput { return o.ApplyT(func(v *TriggerTumblingWindow) pulumi.StringPtrOutput { return v.EndTime }).(pulumi.StringPtrOutput) } // Specifies the frequency of Tumbling Window. Possible values are `Hour`, `Minute` and `Month`. Changing this forces a new resource. func (o TriggerTumblingWindowOutput) Frequency() pulumi.StringOutput { return o.ApplyT(func(v *TriggerTumblingWindow) pulumi.StringOutput { return v.Frequency }).(pulumi.StringOutput) } // Specifies the interval of Tumbling Window. Changing this forces a new resource. func (o TriggerTumblingWindowOutput) Interval() pulumi.IntOutput { return o.ApplyT(func(v *TriggerTumblingWindow) pulumi.IntOutput { return v.Interval }).(pulumi.IntOutput) } // The max number for simultaneous trigger run fired by Tumbling Window. Possible values are between `1` and `50`. Defaults to `50`. func (o TriggerTumblingWindowOutput) MaxConcurrency() pulumi.IntPtrOutput { return o.ApplyT(func(v *TriggerTumblingWindow) pulumi.IntPtrOutput { return v.MaxConcurrency }).(pulumi.IntPtrOutput) } // Specifies the name of the Data Factory Tumbling Window Trigger. Changing this forces a new resource to be created. func (o TriggerTumblingWindowOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *TriggerTumblingWindow) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // A `pipeline` block as defined below. func (o TriggerTumblingWindowOutput) Pipeline() TriggerTumblingWindowPipelineOutput { return o.ApplyT(func(v *TriggerTumblingWindow) TriggerTumblingWindowPipelineOutput { return v.Pipeline }).(TriggerTumblingWindowPipelineOutput) } // A `retry` block as defined below. func (o TriggerTumblingWindowOutput) Retry() TriggerTumblingWindowRetryPtrOutput { return o.ApplyT(func(v *TriggerTumblingWindow) TriggerTumblingWindowRetryPtrOutput { return v.Retry }).(TriggerTumblingWindowRetryPtrOutput) } // Specifies the start time of Tumbling Window, formatted as an RFC3339 string. Changing this forces a new resource. func (o TriggerTumblingWindowOutput) StartTime() pulumi.StringOutput { return o.ApplyT(func(v *TriggerTumblingWindow) pulumi.StringOutput { return v.StartTime }).(pulumi.StringOutput) } // One or more `triggerDependency` block as defined below. func (o TriggerTumblingWindowOutput) TriggerDependencies() TriggerTumblingWindowTriggerDependencyArrayOutput { return o.ApplyT(func(v *TriggerTumblingWindow) TriggerTumblingWindowTriggerDependencyArrayOutput { return v.TriggerDependencies }).(TriggerTumblingWindowTriggerDependencyArrayOutput) } type TriggerTumblingWindowArrayOutput struct{ *pulumi.OutputState } func (TriggerTumblingWindowArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*TriggerTumblingWindow)(nil)).Elem() } func (o TriggerTumblingWindowArrayOutput) ToTriggerTumblingWindowArrayOutput() TriggerTumblingWindowArrayOutput { return o } func (o TriggerTumblingWindowArrayOutput) ToTriggerTumblingWindowArrayOutputWithContext(ctx context.Context) TriggerTumblingWindowArrayOutput { return o } func (o TriggerTumblingWindowArrayOutput) Index(i pulumi.IntInput) TriggerTumblingWindowOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *TriggerTumblingWindow { return vs[0].([]*TriggerTumblingWindow)[vs[1].(int)] }).(TriggerTumblingWindowOutput) } type TriggerTumblingWindowMapOutput struct{ *pulumi.OutputState } func (TriggerTumblingWindowMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*TriggerTumblingWindow)(nil)).Elem() } func (o TriggerTumblingWindowMapOutput) ToTriggerTumblingWindowMapOutput() TriggerTumblingWindowMapOutput { return o } func (o TriggerTumblingWindowMapOutput) ToTriggerTumblingWindowMapOutputWithContext(ctx context.Context) TriggerTumblingWindowMapOutput { return o } func (o TriggerTumblingWindowMapOutput) MapIndex(k pulumi.StringInput) TriggerTumblingWindowOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *TriggerTumblingWindow { return vs[0].(map[string]*TriggerTumblingWindow)[vs[1].(string)] }).(TriggerTumblingWindowOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*TriggerTumblingWindowInput)(nil)).Elem(), &TriggerTumblingWindow{}) pulumi.RegisterInputType(reflect.TypeOf((*TriggerTumblingWindowArrayInput)(nil)).Elem(), TriggerTumblingWindowArray{}) pulumi.RegisterInputType(reflect.TypeOf((*TriggerTumblingWindowMapInput)(nil)).Elem(), TriggerTumblingWindowMap{}) pulumi.RegisterOutputType(TriggerTumblingWindowOutput{}) pulumi.RegisterOutputType(TriggerTumblingWindowArrayOutput{}) pulumi.RegisterOutputType(TriggerTumblingWindowMapOutput{}) }
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/datafactory/init.go
sdk/go/azure/datafactory/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 datafactory 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:datafactory/credentialServicePrincipal:CredentialServicePrincipal": r = &CredentialServicePrincipal{} case "azure:datafactory/credentialUserManagedIdentity:CredentialUserManagedIdentity": r = &CredentialUserManagedIdentity{} case "azure:datafactory/customDataset:CustomDataset": r = &CustomDataset{} case "azure:datafactory/customerManagedKey:CustomerManagedKey": r = &CustomerManagedKey{} case "azure:datafactory/dataFlow:DataFlow": r = &DataFlow{} case "azure:datafactory/datasetAzureBlob:DatasetAzureBlob": r = &DatasetAzureBlob{} case "azure:datafactory/datasetAzureSqlTable:DatasetAzureSqlTable": r = &DatasetAzureSqlTable{} case "azure:datafactory/datasetBinary:DatasetBinary": r = &DatasetBinary{} case "azure:datafactory/datasetCosmosDBApi:DatasetCosmosDBApi": r = &DatasetCosmosDBApi{} case "azure:datafactory/datasetDelimitedText:DatasetDelimitedText": r = &DatasetDelimitedText{} case "azure:datafactory/datasetHttp:DatasetHttp": r = &DatasetHttp{} case "azure:datafactory/datasetJson:DatasetJson": r = &DatasetJson{} case "azure:datafactory/datasetMysql:DatasetMysql": r = &DatasetMysql{} case "azure:datafactory/datasetParquet:DatasetParquet": r = &DatasetParquet{} case "azure:datafactory/datasetPostgresql:DatasetPostgresql": r = &DatasetPostgresql{} case "azure:datafactory/datasetSnowflake:DatasetSnowflake": r = &DatasetSnowflake{} case "azure:datafactory/datasetSqlServerTable:DatasetSqlServerTable": r = &DatasetSqlServerTable{} case "azure:datafactory/factory:Factory": r = &Factory{} case "azure:datafactory/flowletDataFlow:FlowletDataFlow": r = &FlowletDataFlow{} case "azure:datafactory/integrationRuntimeRule:IntegrationRuntimeRule": r = &IntegrationRuntimeRule{} case "azure:datafactory/integrationRuntimeSelfHosted:IntegrationRuntimeSelfHosted": r = &IntegrationRuntimeSelfHosted{} case "azure:datafactory/integrationRuntimeSsis:IntegrationRuntimeSsis": r = &IntegrationRuntimeSsis{} case "azure:datafactory/linkedCustomService:LinkedCustomService": r = &LinkedCustomService{} case "azure:datafactory/linkedServiceAzureBlobStorage:LinkedServiceAzureBlobStorage": r = &LinkedServiceAzureBlobStorage{} case "azure:datafactory/linkedServiceAzureDatabricks:LinkedServiceAzureDatabricks": r = &LinkedServiceAzureDatabricks{} case "azure:datafactory/linkedServiceAzureFileStorage:LinkedServiceAzureFileStorage": r = &LinkedServiceAzureFileStorage{} case "azure:datafactory/linkedServiceAzureFunction:LinkedServiceAzureFunction": r = &LinkedServiceAzureFunction{} case "azure:datafactory/linkedServiceAzureSearch:LinkedServiceAzureSearch": r = &LinkedServiceAzureSearch{} case "azure:datafactory/linkedServiceAzureSqlDatabase:LinkedServiceAzureSqlDatabase": r = &LinkedServiceAzureSqlDatabase{} case "azure:datafactory/linkedServiceAzureTableStorage:LinkedServiceAzureTableStorage": r = &LinkedServiceAzureTableStorage{} case "azure:datafactory/linkedServiceCosmosDb:LinkedServiceCosmosDb": r = &LinkedServiceCosmosDb{} case "azure:datafactory/linkedServiceCosmosDbMongoApi:LinkedServiceCosmosDbMongoApi": r = &LinkedServiceCosmosDbMongoApi{} case "azure:datafactory/linkedServiceDataLakeStorageGen2:LinkedServiceDataLakeStorageGen2": r = &LinkedServiceDataLakeStorageGen2{} case "azure:datafactory/linkedServiceKeyVault:LinkedServiceKeyVault": r = &LinkedServiceKeyVault{} case "azure:datafactory/linkedServiceKusto:LinkedServiceKusto": r = &LinkedServiceKusto{} case "azure:datafactory/linkedServiceMysql:LinkedServiceMysql": r = &LinkedServiceMysql{} case "azure:datafactory/linkedServiceOdata:LinkedServiceOdata": r = &LinkedServiceOdata{} case "azure:datafactory/linkedServiceOdbc:LinkedServiceOdbc": r = &LinkedServiceOdbc{} case "azure:datafactory/linkedServicePostgresql:LinkedServicePostgresql": r = &LinkedServicePostgresql{} case "azure:datafactory/linkedServiceSftp:LinkedServiceSftp": r = &LinkedServiceSftp{} case "azure:datafactory/linkedServiceSnowflake:LinkedServiceSnowflake": r = &LinkedServiceSnowflake{} case "azure:datafactory/linkedServiceSqlServer:LinkedServiceSqlServer": r = &LinkedServiceSqlServer{} case "azure:datafactory/linkedServiceSynapse:LinkedServiceSynapse": r = &LinkedServiceSynapse{} case "azure:datafactory/linkedServiceWeb:LinkedServiceWeb": r = &LinkedServiceWeb{} case "azure:datafactory/managedPrivateEndpoint:ManagedPrivateEndpoint": r = &ManagedPrivateEndpoint{} case "azure:datafactory/pipeline:Pipeline": r = &Pipeline{} case "azure:datafactory/triggerBlobEvent:TriggerBlobEvent": r = &TriggerBlobEvent{} case "azure:datafactory/triggerCustomEvent:TriggerCustomEvent": r = &TriggerCustomEvent{} case "azure:datafactory/triggerSchedule:TriggerSchedule": r = &TriggerSchedule{} case "azure:datafactory/triggerTumblingWindow:TriggerTumblingWindow": r = &TriggerTumblingWindow{} 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", "datafactory/credentialServicePrincipal", &module{version}, ) pulumi.RegisterResourceModule( "azure", "datafactory/credentialUserManagedIdentity", &module{version}, ) pulumi.RegisterResourceModule( "azure", "datafactory/customDataset", &module{version}, ) pulumi.RegisterResourceModule( "azure", "datafactory/customerManagedKey", &module{version}, ) pulumi.RegisterResourceModule( "azure", "datafactory/dataFlow", &module{version}, ) pulumi.RegisterResourceModule( "azure", "datafactory/datasetAzureBlob", &module{version}, ) pulumi.RegisterResourceModule( "azure", "datafactory/datasetAzureSqlTable", &module{version}, ) pulumi.RegisterResourceModule( "azure", "datafactory/datasetBinary", &module{version}, ) pulumi.RegisterResourceModule( "azure", "datafactory/datasetCosmosDBApi", &module{version}, ) pulumi.RegisterResourceModule( "azure", "datafactory/datasetDelimitedText", &module{version}, ) pulumi.RegisterResourceModule( "azure", "datafactory/datasetHttp", &module{version}, ) pulumi.RegisterResourceModule( "azure", "datafactory/datasetJson", &module{version}, ) pulumi.RegisterResourceModule( "azure", "datafactory/datasetMysql", &module{version}, ) pulumi.RegisterResourceModule( "azure", "datafactory/datasetParquet", &module{version}, ) pulumi.RegisterResourceModule( "azure", "datafactory/datasetPostgresql", &module{version}, ) pulumi.RegisterResourceModule( "azure", "datafactory/datasetSnowflake", &module{version}, ) pulumi.RegisterResourceModule( "azure", "datafactory/datasetSqlServerTable", &module{version}, ) pulumi.RegisterResourceModule( "azure", "datafactory/factory", &module{version}, ) pulumi.RegisterResourceModule( "azure", "datafactory/flowletDataFlow", &module{version}, ) pulumi.RegisterResourceModule( "azure", "datafactory/integrationRuntimeRule", &module{version}, ) pulumi.RegisterResourceModule( "azure", "datafactory/integrationRuntimeSelfHosted", &module{version}, ) pulumi.RegisterResourceModule( "azure", "datafactory/integrationRuntimeSsis", &module{version}, ) pulumi.RegisterResourceModule( "azure", "datafactory/linkedCustomService", &module{version}, ) pulumi.RegisterResourceModule( "azure", "datafactory/linkedServiceAzureBlobStorage", &module{version}, ) pulumi.RegisterResourceModule( "azure", "datafactory/linkedServiceAzureDatabricks", &module{version}, ) pulumi.RegisterResourceModule( "azure", "datafactory/linkedServiceAzureFileStorage", &module{version}, ) pulumi.RegisterResourceModule( "azure", "datafactory/linkedServiceAzureFunction", &module{version}, ) pulumi.RegisterResourceModule( "azure", "datafactory/linkedServiceAzureSearch", &module{version}, ) pulumi.RegisterResourceModule( "azure", "datafactory/linkedServiceAzureSqlDatabase", &module{version}, ) pulumi.RegisterResourceModule( "azure", "datafactory/linkedServiceAzureTableStorage", &module{version}, ) pulumi.RegisterResourceModule( "azure", "datafactory/linkedServiceCosmosDb", &module{version}, ) pulumi.RegisterResourceModule( "azure", "datafactory/linkedServiceCosmosDbMongoApi", &module{version}, ) pulumi.RegisterResourceModule( "azure", "datafactory/linkedServiceDataLakeStorageGen2", &module{version}, ) pulumi.RegisterResourceModule( "azure", "datafactory/linkedServiceKeyVault", &module{version}, ) pulumi.RegisterResourceModule( "azure", "datafactory/linkedServiceKusto", &module{version}, ) pulumi.RegisterResourceModule( "azure", "datafactory/linkedServiceMysql", &module{version}, ) pulumi.RegisterResourceModule( "azure", "datafactory/linkedServiceOdata", &module{version}, ) pulumi.RegisterResourceModule( "azure", "datafactory/linkedServiceOdbc", &module{version}, ) pulumi.RegisterResourceModule( "azure", "datafactory/linkedServicePostgresql", &module{version}, ) pulumi.RegisterResourceModule( "azure", "datafactory/linkedServiceSftp", &module{version}, ) pulumi.RegisterResourceModule( "azure", "datafactory/linkedServiceSnowflake", &module{version}, ) pulumi.RegisterResourceModule( "azure", "datafactory/linkedServiceSqlServer", &module{version}, ) pulumi.RegisterResourceModule( "azure", "datafactory/linkedServiceSynapse", &module{version}, ) pulumi.RegisterResourceModule( "azure", "datafactory/linkedServiceWeb", &module{version}, ) pulumi.RegisterResourceModule( "azure", "datafactory/managedPrivateEndpoint", &module{version}, ) pulumi.RegisterResourceModule( "azure", "datafactory/pipeline", &module{version}, ) pulumi.RegisterResourceModule( "azure", "datafactory/triggerBlobEvent", &module{version}, ) pulumi.RegisterResourceModule( "azure", "datafactory/triggerCustomEvent", &module{version}, ) pulumi.RegisterResourceModule( "azure", "datafactory/triggerSchedule", &module{version}, ) pulumi.RegisterResourceModule( "azure", "datafactory/triggerTumblingWindow", &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/datafactory/datasetSqlServerTable.go
sdk/go/azure/datafactory/datasetSqlServerTable.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 datafactory import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a SQL Server Table Dataset inside a Azure Data Factory. // // ## 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/datafactory" // "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 // } // exampleFactory, err := datafactory.NewFactory(ctx, "example", &datafactory.FactoryArgs{ // Name: pulumi.String("example"), // Location: example.Location, // ResourceGroupName: example.Name, // }) // if err != nil { // return err // } // exampleLinkedServiceSqlServer, err := datafactory.NewLinkedServiceSqlServer(ctx, "example", &datafactory.LinkedServiceSqlServerArgs{ // Name: pulumi.String("example"), // DataFactoryId: exampleFactory.ID(), // ConnectionString: pulumi.String("Integrated Security=False;Data Source=test;Initial Catalog=test;User ID=test;Password=test"), // }) // if err != nil { // return err // } // _, err = datafactory.NewDatasetSqlServerTable(ctx, "example", &datafactory.DatasetSqlServerTableArgs{ // Name: pulumi.String("example"), // DataFactoryId: exampleFactory.ID(), // LinkedServiceName: exampleLinkedServiceSqlServer.Name, // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## Import // // Data Factory SQL Server Table Datasets can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:datafactory/datasetSqlServerTable:DatasetSqlServerTable example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example/providers/Microsoft.DataFactory/factories/example/datasets/example // ``` type DatasetSqlServerTable struct { pulumi.CustomResourceState // A map of additional properties to associate with the Data Factory Dataset SQL Server Table. AdditionalProperties pulumi.StringMapOutput `pulumi:"additionalProperties"` // List of tags that can be used for describing the Data Factory Dataset SQL Server Table. Annotations pulumi.StringArrayOutput `pulumi:"annotations"` // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId pulumi.StringOutput `pulumi:"dataFactoryId"` // The description for the Data Factory Dataset SQL Server Table. Description pulumi.StringPtrOutput `pulumi:"description"` // The folder that this Dataset is in. If not specified, the Dataset will appear at the root level. Folder pulumi.StringPtrOutput `pulumi:"folder"` // The Data Factory Linked Service name in which to associate the Dataset with. LinkedServiceName pulumi.StringOutput `pulumi:"linkedServiceName"` // Specifies the name of the Data Factory Dataset SQL Server Table. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringOutput `pulumi:"name"` // A map of parameters to associate with the Data Factory Dataset SQL Server Table. Parameters pulumi.StringMapOutput `pulumi:"parameters"` // A `schemaColumn` block as defined below. SchemaColumns DatasetSqlServerTableSchemaColumnArrayOutput `pulumi:"schemaColumns"` // The table name of the Data Factory Dataset SQL Server Table. TableName pulumi.StringPtrOutput `pulumi:"tableName"` } // NewDatasetSqlServerTable registers a new resource with the given unique name, arguments, and options. func NewDatasetSqlServerTable(ctx *pulumi.Context, name string, args *DatasetSqlServerTableArgs, opts ...pulumi.ResourceOption) (*DatasetSqlServerTable, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.DataFactoryId == nil { return nil, errors.New("invalid value for required argument 'DataFactoryId'") } if args.LinkedServiceName == nil { return nil, errors.New("invalid value for required argument 'LinkedServiceName'") } opts = internal.PkgResourceDefaultOpts(opts) var resource DatasetSqlServerTable err := ctx.RegisterResource("azure:datafactory/datasetSqlServerTable:DatasetSqlServerTable", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetDatasetSqlServerTable gets an existing DatasetSqlServerTable 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 GetDatasetSqlServerTable(ctx *pulumi.Context, name string, id pulumi.IDInput, state *DatasetSqlServerTableState, opts ...pulumi.ResourceOption) (*DatasetSqlServerTable, error) { var resource DatasetSqlServerTable err := ctx.ReadResource("azure:datafactory/datasetSqlServerTable:DatasetSqlServerTable", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering DatasetSqlServerTable resources. type datasetSqlServerTableState struct { // A map of additional properties to associate with the Data Factory Dataset SQL Server Table. AdditionalProperties map[string]string `pulumi:"additionalProperties"` // List of tags that can be used for describing the Data Factory Dataset SQL Server Table. Annotations []string `pulumi:"annotations"` // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId *string `pulumi:"dataFactoryId"` // The description for the Data Factory Dataset SQL Server Table. Description *string `pulumi:"description"` // The folder that this Dataset is in. If not specified, the Dataset will appear at the root level. Folder *string `pulumi:"folder"` // The Data Factory Linked Service name in which to associate the Dataset with. LinkedServiceName *string `pulumi:"linkedServiceName"` // Specifies the name of the Data Factory Dataset SQL Server Table. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name *string `pulumi:"name"` // A map of parameters to associate with the Data Factory Dataset SQL Server Table. Parameters map[string]string `pulumi:"parameters"` // A `schemaColumn` block as defined below. SchemaColumns []DatasetSqlServerTableSchemaColumn `pulumi:"schemaColumns"` // The table name of the Data Factory Dataset SQL Server Table. TableName *string `pulumi:"tableName"` } type DatasetSqlServerTableState struct { // A map of additional properties to associate with the Data Factory Dataset SQL Server Table. AdditionalProperties pulumi.StringMapInput // List of tags that can be used for describing the Data Factory Dataset SQL Server Table. Annotations pulumi.StringArrayInput // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId pulumi.StringPtrInput // The description for the Data Factory Dataset SQL Server Table. Description pulumi.StringPtrInput // The folder that this Dataset is in. If not specified, the Dataset will appear at the root level. Folder pulumi.StringPtrInput // The Data Factory Linked Service name in which to associate the Dataset with. LinkedServiceName pulumi.StringPtrInput // Specifies the name of the Data Factory Dataset SQL Server Table. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringPtrInput // A map of parameters to associate with the Data Factory Dataset SQL Server Table. Parameters pulumi.StringMapInput // A `schemaColumn` block as defined below. SchemaColumns DatasetSqlServerTableSchemaColumnArrayInput // The table name of the Data Factory Dataset SQL Server Table. TableName pulumi.StringPtrInput } func (DatasetSqlServerTableState) ElementType() reflect.Type { return reflect.TypeOf((*datasetSqlServerTableState)(nil)).Elem() } type datasetSqlServerTableArgs struct { // A map of additional properties to associate with the Data Factory Dataset SQL Server Table. AdditionalProperties map[string]string `pulumi:"additionalProperties"` // List of tags that can be used for describing the Data Factory Dataset SQL Server Table. Annotations []string `pulumi:"annotations"` // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId string `pulumi:"dataFactoryId"` // The description for the Data Factory Dataset SQL Server Table. Description *string `pulumi:"description"` // The folder that this Dataset is in. If not specified, the Dataset will appear at the root level. Folder *string `pulumi:"folder"` // The Data Factory Linked Service name in which to associate the Dataset with. LinkedServiceName string `pulumi:"linkedServiceName"` // Specifies the name of the Data Factory Dataset SQL Server Table. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name *string `pulumi:"name"` // A map of parameters to associate with the Data Factory Dataset SQL Server Table. Parameters map[string]string `pulumi:"parameters"` // A `schemaColumn` block as defined below. SchemaColumns []DatasetSqlServerTableSchemaColumn `pulumi:"schemaColumns"` // The table name of the Data Factory Dataset SQL Server Table. TableName *string `pulumi:"tableName"` } // The set of arguments for constructing a DatasetSqlServerTable resource. type DatasetSqlServerTableArgs struct { // A map of additional properties to associate with the Data Factory Dataset SQL Server Table. AdditionalProperties pulumi.StringMapInput // List of tags that can be used for describing the Data Factory Dataset SQL Server Table. Annotations pulumi.StringArrayInput // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId pulumi.StringInput // The description for the Data Factory Dataset SQL Server Table. Description pulumi.StringPtrInput // The folder that this Dataset is in. If not specified, the Dataset will appear at the root level. Folder pulumi.StringPtrInput // The Data Factory Linked Service name in which to associate the Dataset with. LinkedServiceName pulumi.StringInput // Specifies the name of the Data Factory Dataset SQL Server Table. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringPtrInput // A map of parameters to associate with the Data Factory Dataset SQL Server Table. Parameters pulumi.StringMapInput // A `schemaColumn` block as defined below. SchemaColumns DatasetSqlServerTableSchemaColumnArrayInput // The table name of the Data Factory Dataset SQL Server Table. TableName pulumi.StringPtrInput } func (DatasetSqlServerTableArgs) ElementType() reflect.Type { return reflect.TypeOf((*datasetSqlServerTableArgs)(nil)).Elem() } type DatasetSqlServerTableInput interface { pulumi.Input ToDatasetSqlServerTableOutput() DatasetSqlServerTableOutput ToDatasetSqlServerTableOutputWithContext(ctx context.Context) DatasetSqlServerTableOutput } func (*DatasetSqlServerTable) ElementType() reflect.Type { return reflect.TypeOf((**DatasetSqlServerTable)(nil)).Elem() } func (i *DatasetSqlServerTable) ToDatasetSqlServerTableOutput() DatasetSqlServerTableOutput { return i.ToDatasetSqlServerTableOutputWithContext(context.Background()) } func (i *DatasetSqlServerTable) ToDatasetSqlServerTableOutputWithContext(ctx context.Context) DatasetSqlServerTableOutput { return pulumi.ToOutputWithContext(ctx, i).(DatasetSqlServerTableOutput) } // DatasetSqlServerTableArrayInput is an input type that accepts DatasetSqlServerTableArray and DatasetSqlServerTableArrayOutput values. // You can construct a concrete instance of `DatasetSqlServerTableArrayInput` via: // // DatasetSqlServerTableArray{ DatasetSqlServerTableArgs{...} } type DatasetSqlServerTableArrayInput interface { pulumi.Input ToDatasetSqlServerTableArrayOutput() DatasetSqlServerTableArrayOutput ToDatasetSqlServerTableArrayOutputWithContext(context.Context) DatasetSqlServerTableArrayOutput } type DatasetSqlServerTableArray []DatasetSqlServerTableInput func (DatasetSqlServerTableArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*DatasetSqlServerTable)(nil)).Elem() } func (i DatasetSqlServerTableArray) ToDatasetSqlServerTableArrayOutput() DatasetSqlServerTableArrayOutput { return i.ToDatasetSqlServerTableArrayOutputWithContext(context.Background()) } func (i DatasetSqlServerTableArray) ToDatasetSqlServerTableArrayOutputWithContext(ctx context.Context) DatasetSqlServerTableArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(DatasetSqlServerTableArrayOutput) } // DatasetSqlServerTableMapInput is an input type that accepts DatasetSqlServerTableMap and DatasetSqlServerTableMapOutput values. // You can construct a concrete instance of `DatasetSqlServerTableMapInput` via: // // DatasetSqlServerTableMap{ "key": DatasetSqlServerTableArgs{...} } type DatasetSqlServerTableMapInput interface { pulumi.Input ToDatasetSqlServerTableMapOutput() DatasetSqlServerTableMapOutput ToDatasetSqlServerTableMapOutputWithContext(context.Context) DatasetSqlServerTableMapOutput } type DatasetSqlServerTableMap map[string]DatasetSqlServerTableInput func (DatasetSqlServerTableMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*DatasetSqlServerTable)(nil)).Elem() } func (i DatasetSqlServerTableMap) ToDatasetSqlServerTableMapOutput() DatasetSqlServerTableMapOutput { return i.ToDatasetSqlServerTableMapOutputWithContext(context.Background()) } func (i DatasetSqlServerTableMap) ToDatasetSqlServerTableMapOutputWithContext(ctx context.Context) DatasetSqlServerTableMapOutput { return pulumi.ToOutputWithContext(ctx, i).(DatasetSqlServerTableMapOutput) } type DatasetSqlServerTableOutput struct{ *pulumi.OutputState } func (DatasetSqlServerTableOutput) ElementType() reflect.Type { return reflect.TypeOf((**DatasetSqlServerTable)(nil)).Elem() } func (o DatasetSqlServerTableOutput) ToDatasetSqlServerTableOutput() DatasetSqlServerTableOutput { return o } func (o DatasetSqlServerTableOutput) ToDatasetSqlServerTableOutputWithContext(ctx context.Context) DatasetSqlServerTableOutput { return o } // A map of additional properties to associate with the Data Factory Dataset SQL Server Table. func (o DatasetSqlServerTableOutput) AdditionalProperties() pulumi.StringMapOutput { return o.ApplyT(func(v *DatasetSqlServerTable) pulumi.StringMapOutput { return v.AdditionalProperties }).(pulumi.StringMapOutput) } // List of tags that can be used for describing the Data Factory Dataset SQL Server Table. func (o DatasetSqlServerTableOutput) Annotations() pulumi.StringArrayOutput { return o.ApplyT(func(v *DatasetSqlServerTable) pulumi.StringArrayOutput { return v.Annotations }).(pulumi.StringArrayOutput) } // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. func (o DatasetSqlServerTableOutput) DataFactoryId() pulumi.StringOutput { return o.ApplyT(func(v *DatasetSqlServerTable) pulumi.StringOutput { return v.DataFactoryId }).(pulumi.StringOutput) } // The description for the Data Factory Dataset SQL Server Table. func (o DatasetSqlServerTableOutput) Description() pulumi.StringPtrOutput { return o.ApplyT(func(v *DatasetSqlServerTable) pulumi.StringPtrOutput { return v.Description }).(pulumi.StringPtrOutput) } // The folder that this Dataset is in. If not specified, the Dataset will appear at the root level. func (o DatasetSqlServerTableOutput) Folder() pulumi.StringPtrOutput { return o.ApplyT(func(v *DatasetSqlServerTable) pulumi.StringPtrOutput { return v.Folder }).(pulumi.StringPtrOutput) } // The Data Factory Linked Service name in which to associate the Dataset with. func (o DatasetSqlServerTableOutput) LinkedServiceName() pulumi.StringOutput { return o.ApplyT(func(v *DatasetSqlServerTable) pulumi.StringOutput { return v.LinkedServiceName }).(pulumi.StringOutput) } // Specifies the name of the Data Factory Dataset SQL Server Table. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. func (o DatasetSqlServerTableOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *DatasetSqlServerTable) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // A map of parameters to associate with the Data Factory Dataset SQL Server Table. func (o DatasetSqlServerTableOutput) Parameters() pulumi.StringMapOutput { return o.ApplyT(func(v *DatasetSqlServerTable) pulumi.StringMapOutput { return v.Parameters }).(pulumi.StringMapOutput) } // A `schemaColumn` block as defined below. func (o DatasetSqlServerTableOutput) SchemaColumns() DatasetSqlServerTableSchemaColumnArrayOutput { return o.ApplyT(func(v *DatasetSqlServerTable) DatasetSqlServerTableSchemaColumnArrayOutput { return v.SchemaColumns }).(DatasetSqlServerTableSchemaColumnArrayOutput) } // The table name of the Data Factory Dataset SQL Server Table. func (o DatasetSqlServerTableOutput) TableName() pulumi.StringPtrOutput { return o.ApplyT(func(v *DatasetSqlServerTable) pulumi.StringPtrOutput { return v.TableName }).(pulumi.StringPtrOutput) } type DatasetSqlServerTableArrayOutput struct{ *pulumi.OutputState } func (DatasetSqlServerTableArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*DatasetSqlServerTable)(nil)).Elem() } func (o DatasetSqlServerTableArrayOutput) ToDatasetSqlServerTableArrayOutput() DatasetSqlServerTableArrayOutput { return o } func (o DatasetSqlServerTableArrayOutput) ToDatasetSqlServerTableArrayOutputWithContext(ctx context.Context) DatasetSqlServerTableArrayOutput { return o } func (o DatasetSqlServerTableArrayOutput) Index(i pulumi.IntInput) DatasetSqlServerTableOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *DatasetSqlServerTable { return vs[0].([]*DatasetSqlServerTable)[vs[1].(int)] }).(DatasetSqlServerTableOutput) } type DatasetSqlServerTableMapOutput struct{ *pulumi.OutputState } func (DatasetSqlServerTableMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*DatasetSqlServerTable)(nil)).Elem() } func (o DatasetSqlServerTableMapOutput) ToDatasetSqlServerTableMapOutput() DatasetSqlServerTableMapOutput { return o } func (o DatasetSqlServerTableMapOutput) ToDatasetSqlServerTableMapOutputWithContext(ctx context.Context) DatasetSqlServerTableMapOutput { return o } func (o DatasetSqlServerTableMapOutput) MapIndex(k pulumi.StringInput) DatasetSqlServerTableOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *DatasetSqlServerTable { return vs[0].(map[string]*DatasetSqlServerTable)[vs[1].(string)] }).(DatasetSqlServerTableOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*DatasetSqlServerTableInput)(nil)).Elem(), &DatasetSqlServerTable{}) pulumi.RegisterInputType(reflect.TypeOf((*DatasetSqlServerTableArrayInput)(nil)).Elem(), DatasetSqlServerTableArray{}) pulumi.RegisterInputType(reflect.TypeOf((*DatasetSqlServerTableMapInput)(nil)).Elem(), DatasetSqlServerTableMap{}) pulumi.RegisterOutputType(DatasetSqlServerTableOutput{}) pulumi.RegisterOutputType(DatasetSqlServerTableArrayOutput{}) pulumi.RegisterOutputType(DatasetSqlServerTableMapOutput{}) }
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/datafactory/linkedServiceAzureBlobStorage.go
sdk/go/azure/datafactory/linkedServiceAzureBlobStorage.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 datafactory import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a Linked Service (connection) between an Azure Blob Storage Account and Azure Data Factory. // // ## 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/datafactory" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/storage" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { // exampleResourceGroup, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{ // Name: pulumi.String("example-resources"), // Location: pulumi.String("West Europe"), // }) // if err != nil { // return err // } // example := storage.LookupAccountOutput(ctx, storage.GetAccountOutputArgs{ // Name: pulumi.String("storageaccountname"), // ResourceGroupName: exampleResourceGroup.Name, // }, nil) // exampleFactory, err := datafactory.NewFactory(ctx, "example", &datafactory.FactoryArgs{ // Name: pulumi.String("example"), // Location: exampleResourceGroup.Location, // ResourceGroupName: exampleResourceGroup.Name, // }) // if err != nil { // return err // } // _, err = datafactory.NewLinkedServiceAzureBlobStorage(ctx, "example", &datafactory.LinkedServiceAzureBlobStorageArgs{ // Name: pulumi.String("example"), // DataFactoryId: exampleFactory.ID(), // ConnectionString: pulumi.String(example.ApplyT(func(example storage.GetAccountResult) (*string, error) { // return &example.PrimaryConnectionString, nil // }).(pulumi.StringPtrOutput)), // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## Import // // Data Factory Linked Service's can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:datafactory/linkedServiceAzureBlobStorage:LinkedServiceAzureBlobStorage example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example/providers/Microsoft.DataFactory/factories/example/linkedservices/example // ``` type LinkedServiceAzureBlobStorage struct { pulumi.CustomResourceState // A map of additional properties to associate with the Data Factory Linked Service. // // The following supported arguments are specific to Azure Blob Storage Linked Service: AdditionalProperties pulumi.StringMapOutput `pulumi:"additionalProperties"` // List of tags that can be used for describing the Data Factory Linked Service. Annotations pulumi.StringArrayOutput `pulumi:"annotations"` // The connection string. Conflicts with `connectionStringInsecure`, `sasUri` and `serviceEndpoint`. ConnectionString pulumi.StringPtrOutput `pulumi:"connectionString"` // The connection string sent insecurely. Conflicts with `connectionString`, `sasUri` and `serviceEndpoint`. // // > **Note:** `connectionString` uses the Azure [SecureString](https://learn.microsoft.com/en-us/dotnet/api/microsoft.azure.management.datafactory.models.securestring) to encrypt the contents within the REST payload sent to Azure whilst the `connectionStringInsecure` is sent as a regular string. Both properties are still sent using SSL/HTTPS. At this time the portal will not decrypt Secure Strings so the `connectionString` property in the portal will show as `******` whilst `connectionStringInsecure` will be viewable in the portal. ConnectionStringInsecure pulumi.StringPtrOutput `pulumi:"connectionStringInsecure"` // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId pulumi.StringOutput `pulumi:"dataFactoryId"` // The description for the Data Factory Linked Service. Description pulumi.StringPtrOutput `pulumi:"description"` // The integration runtime reference to associate with the Data Factory Linked Service. IntegrationRuntimeName pulumi.StringPtrOutput `pulumi:"integrationRuntimeName"` // A `keyVaultSasToken` block as defined below. Use this argument to store SAS Token in an existing Key Vault. It needs an existing Key Vault Data Factory Linked Service. A `sasUri` is required. KeyVaultSasToken LinkedServiceAzureBlobStorageKeyVaultSasTokenPtrOutput `pulumi:"keyVaultSasToken"` // Specifies the name of the Data Factory Linked Service. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringOutput `pulumi:"name"` // A map of parameters to associate with the Data Factory Linked Service. Parameters pulumi.StringMapOutput `pulumi:"parameters"` // The SAS URI. Conflicts with `connectionStringInsecure`, `connectionString` and `serviceEndpoint`. SasUri pulumi.StringPtrOutput `pulumi:"sasUri"` ServiceEndpoint pulumi.StringPtrOutput `pulumi:"serviceEndpoint"` ServicePrincipalId pulumi.StringPtrOutput `pulumi:"servicePrincipalId"` ServicePrincipalKey pulumi.StringPtrOutput `pulumi:"servicePrincipalKey"` ServicePrincipalLinkedKeyVaultKey LinkedServiceAzureBlobStorageServicePrincipalLinkedKeyVaultKeyPtrOutput `pulumi:"servicePrincipalLinkedKeyVaultKey"` StorageKind pulumi.StringPtrOutput `pulumi:"storageKind"` TenantId pulumi.StringPtrOutput `pulumi:"tenantId"` UseManagedIdentity pulumi.BoolPtrOutput `pulumi:"useManagedIdentity"` } // NewLinkedServiceAzureBlobStorage registers a new resource with the given unique name, arguments, and options. func NewLinkedServiceAzureBlobStorage(ctx *pulumi.Context, name string, args *LinkedServiceAzureBlobStorageArgs, opts ...pulumi.ResourceOption) (*LinkedServiceAzureBlobStorage, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.DataFactoryId == nil { return nil, errors.New("invalid value for required argument 'DataFactoryId'") } if args.ConnectionString != nil { args.ConnectionString = pulumi.ToSecret(args.ConnectionString).(pulumi.StringPtrInput) } if args.SasUri != nil { args.SasUri = pulumi.ToSecret(args.SasUri).(pulumi.StringPtrInput) } if args.ServiceEndpoint != nil { args.ServiceEndpoint = pulumi.ToSecret(args.ServiceEndpoint).(pulumi.StringPtrInput) } secrets := pulumi.AdditionalSecretOutputs([]string{ "connectionString", "sasUri", "serviceEndpoint", }) opts = append(opts, secrets) opts = internal.PkgResourceDefaultOpts(opts) var resource LinkedServiceAzureBlobStorage err := ctx.RegisterResource("azure:datafactory/linkedServiceAzureBlobStorage:LinkedServiceAzureBlobStorage", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetLinkedServiceAzureBlobStorage gets an existing LinkedServiceAzureBlobStorage 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 GetLinkedServiceAzureBlobStorage(ctx *pulumi.Context, name string, id pulumi.IDInput, state *LinkedServiceAzureBlobStorageState, opts ...pulumi.ResourceOption) (*LinkedServiceAzureBlobStorage, error) { var resource LinkedServiceAzureBlobStorage err := ctx.ReadResource("azure:datafactory/linkedServiceAzureBlobStorage:LinkedServiceAzureBlobStorage", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering LinkedServiceAzureBlobStorage resources. type linkedServiceAzureBlobStorageState struct { // A map of additional properties to associate with the Data Factory Linked Service. // // The following supported arguments are specific to Azure Blob Storage Linked Service: AdditionalProperties map[string]string `pulumi:"additionalProperties"` // List of tags that can be used for describing the Data Factory Linked Service. Annotations []string `pulumi:"annotations"` // The connection string. Conflicts with `connectionStringInsecure`, `sasUri` and `serviceEndpoint`. ConnectionString *string `pulumi:"connectionString"` // The connection string sent insecurely. Conflicts with `connectionString`, `sasUri` and `serviceEndpoint`. // // > **Note:** `connectionString` uses the Azure [SecureString](https://learn.microsoft.com/en-us/dotnet/api/microsoft.azure.management.datafactory.models.securestring) to encrypt the contents within the REST payload sent to Azure whilst the `connectionStringInsecure` is sent as a regular string. Both properties are still sent using SSL/HTTPS. At this time the portal will not decrypt Secure Strings so the `connectionString` property in the portal will show as `******` whilst `connectionStringInsecure` will be viewable in the portal. ConnectionStringInsecure *string `pulumi:"connectionStringInsecure"` // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId *string `pulumi:"dataFactoryId"` // The description for the Data Factory Linked Service. Description *string `pulumi:"description"` // The integration runtime reference to associate with the Data Factory Linked Service. IntegrationRuntimeName *string `pulumi:"integrationRuntimeName"` // A `keyVaultSasToken` block as defined below. Use this argument to store SAS Token in an existing Key Vault. It needs an existing Key Vault Data Factory Linked Service. A `sasUri` is required. KeyVaultSasToken *LinkedServiceAzureBlobStorageKeyVaultSasToken `pulumi:"keyVaultSasToken"` // Specifies the name of the Data Factory Linked Service. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name *string `pulumi:"name"` // A map of parameters to associate with the Data Factory Linked Service. Parameters map[string]string `pulumi:"parameters"` // The SAS URI. Conflicts with `connectionStringInsecure`, `connectionString` and `serviceEndpoint`. SasUri *string `pulumi:"sasUri"` ServiceEndpoint *string `pulumi:"serviceEndpoint"` ServicePrincipalId *string `pulumi:"servicePrincipalId"` ServicePrincipalKey *string `pulumi:"servicePrincipalKey"` ServicePrincipalLinkedKeyVaultKey *LinkedServiceAzureBlobStorageServicePrincipalLinkedKeyVaultKey `pulumi:"servicePrincipalLinkedKeyVaultKey"` StorageKind *string `pulumi:"storageKind"` TenantId *string `pulumi:"tenantId"` UseManagedIdentity *bool `pulumi:"useManagedIdentity"` } type LinkedServiceAzureBlobStorageState struct { // A map of additional properties to associate with the Data Factory Linked Service. // // The following supported arguments are specific to Azure Blob Storage Linked Service: AdditionalProperties pulumi.StringMapInput // List of tags that can be used for describing the Data Factory Linked Service. Annotations pulumi.StringArrayInput // The connection string. Conflicts with `connectionStringInsecure`, `sasUri` and `serviceEndpoint`. ConnectionString pulumi.StringPtrInput // The connection string sent insecurely. Conflicts with `connectionString`, `sasUri` and `serviceEndpoint`. // // > **Note:** `connectionString` uses the Azure [SecureString](https://learn.microsoft.com/en-us/dotnet/api/microsoft.azure.management.datafactory.models.securestring) to encrypt the contents within the REST payload sent to Azure whilst the `connectionStringInsecure` is sent as a regular string. Both properties are still sent using SSL/HTTPS. At this time the portal will not decrypt Secure Strings so the `connectionString` property in the portal will show as `******` whilst `connectionStringInsecure` will be viewable in the portal. ConnectionStringInsecure pulumi.StringPtrInput // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId pulumi.StringPtrInput // The description for the Data Factory Linked Service. Description pulumi.StringPtrInput // The integration runtime reference to associate with the Data Factory Linked Service. IntegrationRuntimeName pulumi.StringPtrInput // A `keyVaultSasToken` block as defined below. Use this argument to store SAS Token in an existing Key Vault. It needs an existing Key Vault Data Factory Linked Service. A `sasUri` is required. KeyVaultSasToken LinkedServiceAzureBlobStorageKeyVaultSasTokenPtrInput // Specifies the name of the Data Factory Linked Service. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringPtrInput // A map of parameters to associate with the Data Factory Linked Service. Parameters pulumi.StringMapInput // The SAS URI. Conflicts with `connectionStringInsecure`, `connectionString` and `serviceEndpoint`. SasUri pulumi.StringPtrInput ServiceEndpoint pulumi.StringPtrInput ServicePrincipalId pulumi.StringPtrInput ServicePrincipalKey pulumi.StringPtrInput ServicePrincipalLinkedKeyVaultKey LinkedServiceAzureBlobStorageServicePrincipalLinkedKeyVaultKeyPtrInput StorageKind pulumi.StringPtrInput TenantId pulumi.StringPtrInput UseManagedIdentity pulumi.BoolPtrInput } func (LinkedServiceAzureBlobStorageState) ElementType() reflect.Type { return reflect.TypeOf((*linkedServiceAzureBlobStorageState)(nil)).Elem() } type linkedServiceAzureBlobStorageArgs struct { // A map of additional properties to associate with the Data Factory Linked Service. // // The following supported arguments are specific to Azure Blob Storage Linked Service: AdditionalProperties map[string]string `pulumi:"additionalProperties"` // List of tags that can be used for describing the Data Factory Linked Service. Annotations []string `pulumi:"annotations"` // The connection string. Conflicts with `connectionStringInsecure`, `sasUri` and `serviceEndpoint`. ConnectionString *string `pulumi:"connectionString"` // The connection string sent insecurely. Conflicts with `connectionString`, `sasUri` and `serviceEndpoint`. // // > **Note:** `connectionString` uses the Azure [SecureString](https://learn.microsoft.com/en-us/dotnet/api/microsoft.azure.management.datafactory.models.securestring) to encrypt the contents within the REST payload sent to Azure whilst the `connectionStringInsecure` is sent as a regular string. Both properties are still sent using SSL/HTTPS. At this time the portal will not decrypt Secure Strings so the `connectionString` property in the portal will show as `******` whilst `connectionStringInsecure` will be viewable in the portal. ConnectionStringInsecure *string `pulumi:"connectionStringInsecure"` // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId string `pulumi:"dataFactoryId"` // The description for the Data Factory Linked Service. Description *string `pulumi:"description"` // The integration runtime reference to associate with the Data Factory Linked Service. IntegrationRuntimeName *string `pulumi:"integrationRuntimeName"` // A `keyVaultSasToken` block as defined below. Use this argument to store SAS Token in an existing Key Vault. It needs an existing Key Vault Data Factory Linked Service. A `sasUri` is required. KeyVaultSasToken *LinkedServiceAzureBlobStorageKeyVaultSasToken `pulumi:"keyVaultSasToken"` // Specifies the name of the Data Factory Linked Service. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name *string `pulumi:"name"` // A map of parameters to associate with the Data Factory Linked Service. Parameters map[string]string `pulumi:"parameters"` // The SAS URI. Conflicts with `connectionStringInsecure`, `connectionString` and `serviceEndpoint`. SasUri *string `pulumi:"sasUri"` ServiceEndpoint *string `pulumi:"serviceEndpoint"` ServicePrincipalId *string `pulumi:"servicePrincipalId"` ServicePrincipalKey *string `pulumi:"servicePrincipalKey"` ServicePrincipalLinkedKeyVaultKey *LinkedServiceAzureBlobStorageServicePrincipalLinkedKeyVaultKey `pulumi:"servicePrincipalLinkedKeyVaultKey"` StorageKind *string `pulumi:"storageKind"` TenantId *string `pulumi:"tenantId"` UseManagedIdentity *bool `pulumi:"useManagedIdentity"` } // The set of arguments for constructing a LinkedServiceAzureBlobStorage resource. type LinkedServiceAzureBlobStorageArgs struct { // A map of additional properties to associate with the Data Factory Linked Service. // // The following supported arguments are specific to Azure Blob Storage Linked Service: AdditionalProperties pulumi.StringMapInput // List of tags that can be used for describing the Data Factory Linked Service. Annotations pulumi.StringArrayInput // The connection string. Conflicts with `connectionStringInsecure`, `sasUri` and `serviceEndpoint`. ConnectionString pulumi.StringPtrInput // The connection string sent insecurely. Conflicts with `connectionString`, `sasUri` and `serviceEndpoint`. // // > **Note:** `connectionString` uses the Azure [SecureString](https://learn.microsoft.com/en-us/dotnet/api/microsoft.azure.management.datafactory.models.securestring) to encrypt the contents within the REST payload sent to Azure whilst the `connectionStringInsecure` is sent as a regular string. Both properties are still sent using SSL/HTTPS. At this time the portal will not decrypt Secure Strings so the `connectionString` property in the portal will show as `******` whilst `connectionStringInsecure` will be viewable in the portal. ConnectionStringInsecure pulumi.StringPtrInput // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId pulumi.StringInput // The description for the Data Factory Linked Service. Description pulumi.StringPtrInput // The integration runtime reference to associate with the Data Factory Linked Service. IntegrationRuntimeName pulumi.StringPtrInput // A `keyVaultSasToken` block as defined below. Use this argument to store SAS Token in an existing Key Vault. It needs an existing Key Vault Data Factory Linked Service. A `sasUri` is required. KeyVaultSasToken LinkedServiceAzureBlobStorageKeyVaultSasTokenPtrInput // Specifies the name of the Data Factory Linked Service. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringPtrInput // A map of parameters to associate with the Data Factory Linked Service. Parameters pulumi.StringMapInput // The SAS URI. Conflicts with `connectionStringInsecure`, `connectionString` and `serviceEndpoint`. SasUri pulumi.StringPtrInput ServiceEndpoint pulumi.StringPtrInput ServicePrincipalId pulumi.StringPtrInput ServicePrincipalKey pulumi.StringPtrInput ServicePrincipalLinkedKeyVaultKey LinkedServiceAzureBlobStorageServicePrincipalLinkedKeyVaultKeyPtrInput StorageKind pulumi.StringPtrInput TenantId pulumi.StringPtrInput UseManagedIdentity pulumi.BoolPtrInput } func (LinkedServiceAzureBlobStorageArgs) ElementType() reflect.Type { return reflect.TypeOf((*linkedServiceAzureBlobStorageArgs)(nil)).Elem() } type LinkedServiceAzureBlobStorageInput interface { pulumi.Input ToLinkedServiceAzureBlobStorageOutput() LinkedServiceAzureBlobStorageOutput ToLinkedServiceAzureBlobStorageOutputWithContext(ctx context.Context) LinkedServiceAzureBlobStorageOutput } func (*LinkedServiceAzureBlobStorage) ElementType() reflect.Type { return reflect.TypeOf((**LinkedServiceAzureBlobStorage)(nil)).Elem() } func (i *LinkedServiceAzureBlobStorage) ToLinkedServiceAzureBlobStorageOutput() LinkedServiceAzureBlobStorageOutput { return i.ToLinkedServiceAzureBlobStorageOutputWithContext(context.Background()) } func (i *LinkedServiceAzureBlobStorage) ToLinkedServiceAzureBlobStorageOutputWithContext(ctx context.Context) LinkedServiceAzureBlobStorageOutput { return pulumi.ToOutputWithContext(ctx, i).(LinkedServiceAzureBlobStorageOutput) } // LinkedServiceAzureBlobStorageArrayInput is an input type that accepts LinkedServiceAzureBlobStorageArray and LinkedServiceAzureBlobStorageArrayOutput values. // You can construct a concrete instance of `LinkedServiceAzureBlobStorageArrayInput` via: // // LinkedServiceAzureBlobStorageArray{ LinkedServiceAzureBlobStorageArgs{...} } type LinkedServiceAzureBlobStorageArrayInput interface { pulumi.Input ToLinkedServiceAzureBlobStorageArrayOutput() LinkedServiceAzureBlobStorageArrayOutput ToLinkedServiceAzureBlobStorageArrayOutputWithContext(context.Context) LinkedServiceAzureBlobStorageArrayOutput } type LinkedServiceAzureBlobStorageArray []LinkedServiceAzureBlobStorageInput func (LinkedServiceAzureBlobStorageArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*LinkedServiceAzureBlobStorage)(nil)).Elem() } func (i LinkedServiceAzureBlobStorageArray) ToLinkedServiceAzureBlobStorageArrayOutput() LinkedServiceAzureBlobStorageArrayOutput { return i.ToLinkedServiceAzureBlobStorageArrayOutputWithContext(context.Background()) } func (i LinkedServiceAzureBlobStorageArray) ToLinkedServiceAzureBlobStorageArrayOutputWithContext(ctx context.Context) LinkedServiceAzureBlobStorageArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(LinkedServiceAzureBlobStorageArrayOutput) } // LinkedServiceAzureBlobStorageMapInput is an input type that accepts LinkedServiceAzureBlobStorageMap and LinkedServiceAzureBlobStorageMapOutput values. // You can construct a concrete instance of `LinkedServiceAzureBlobStorageMapInput` via: // // LinkedServiceAzureBlobStorageMap{ "key": LinkedServiceAzureBlobStorageArgs{...} } type LinkedServiceAzureBlobStorageMapInput interface { pulumi.Input ToLinkedServiceAzureBlobStorageMapOutput() LinkedServiceAzureBlobStorageMapOutput ToLinkedServiceAzureBlobStorageMapOutputWithContext(context.Context) LinkedServiceAzureBlobStorageMapOutput } type LinkedServiceAzureBlobStorageMap map[string]LinkedServiceAzureBlobStorageInput func (LinkedServiceAzureBlobStorageMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*LinkedServiceAzureBlobStorage)(nil)).Elem() } func (i LinkedServiceAzureBlobStorageMap) ToLinkedServiceAzureBlobStorageMapOutput() LinkedServiceAzureBlobStorageMapOutput { return i.ToLinkedServiceAzureBlobStorageMapOutputWithContext(context.Background()) } func (i LinkedServiceAzureBlobStorageMap) ToLinkedServiceAzureBlobStorageMapOutputWithContext(ctx context.Context) LinkedServiceAzureBlobStorageMapOutput { return pulumi.ToOutputWithContext(ctx, i).(LinkedServiceAzureBlobStorageMapOutput) } type LinkedServiceAzureBlobStorageOutput struct{ *pulumi.OutputState } func (LinkedServiceAzureBlobStorageOutput) ElementType() reflect.Type { return reflect.TypeOf((**LinkedServiceAzureBlobStorage)(nil)).Elem() } func (o LinkedServiceAzureBlobStorageOutput) ToLinkedServiceAzureBlobStorageOutput() LinkedServiceAzureBlobStorageOutput { return o } func (o LinkedServiceAzureBlobStorageOutput) ToLinkedServiceAzureBlobStorageOutputWithContext(ctx context.Context) LinkedServiceAzureBlobStorageOutput { return o } // A map of additional properties to associate with the Data Factory Linked Service. // // The following supported arguments are specific to Azure Blob Storage Linked Service: func (o LinkedServiceAzureBlobStorageOutput) AdditionalProperties() pulumi.StringMapOutput { return o.ApplyT(func(v *LinkedServiceAzureBlobStorage) pulumi.StringMapOutput { return v.AdditionalProperties }).(pulumi.StringMapOutput) } // List of tags that can be used for describing the Data Factory Linked Service. func (o LinkedServiceAzureBlobStorageOutput) Annotations() pulumi.StringArrayOutput { return o.ApplyT(func(v *LinkedServiceAzureBlobStorage) pulumi.StringArrayOutput { return v.Annotations }).(pulumi.StringArrayOutput) } // The connection string. Conflicts with `connectionStringInsecure`, `sasUri` and `serviceEndpoint`. func (o LinkedServiceAzureBlobStorageOutput) ConnectionString() pulumi.StringPtrOutput { return o.ApplyT(func(v *LinkedServiceAzureBlobStorage) pulumi.StringPtrOutput { return v.ConnectionString }).(pulumi.StringPtrOutput) } // The connection string sent insecurely. Conflicts with `connectionString`, `sasUri` and `serviceEndpoint`. // // > **Note:** `connectionString` uses the Azure [SecureString](https://learn.microsoft.com/en-us/dotnet/api/microsoft.azure.management.datafactory.models.securestring) to encrypt the contents within the REST payload sent to Azure whilst the `connectionStringInsecure` is sent as a regular string. Both properties are still sent using SSL/HTTPS. At this time the portal will not decrypt Secure Strings so the `connectionString` property in the portal will show as `******` whilst `connectionStringInsecure` will be viewable in the portal. func (o LinkedServiceAzureBlobStorageOutput) ConnectionStringInsecure() pulumi.StringPtrOutput { return o.ApplyT(func(v *LinkedServiceAzureBlobStorage) pulumi.StringPtrOutput { return v.ConnectionStringInsecure }).(pulumi.StringPtrOutput) } // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. func (o LinkedServiceAzureBlobStorageOutput) DataFactoryId() pulumi.StringOutput { return o.ApplyT(func(v *LinkedServiceAzureBlobStorage) pulumi.StringOutput { return v.DataFactoryId }).(pulumi.StringOutput) } // The description for the Data Factory Linked Service. func (o LinkedServiceAzureBlobStorageOutput) Description() pulumi.StringPtrOutput { return o.ApplyT(func(v *LinkedServiceAzureBlobStorage) pulumi.StringPtrOutput { return v.Description }).(pulumi.StringPtrOutput) } // The integration runtime reference to associate with the Data Factory Linked Service. func (o LinkedServiceAzureBlobStorageOutput) IntegrationRuntimeName() pulumi.StringPtrOutput { return o.ApplyT(func(v *LinkedServiceAzureBlobStorage) pulumi.StringPtrOutput { return v.IntegrationRuntimeName }).(pulumi.StringPtrOutput) } // A `keyVaultSasToken` block as defined below. Use this argument to store SAS Token in an existing Key Vault. It needs an existing Key Vault Data Factory Linked Service. A `sasUri` is required. func (o LinkedServiceAzureBlobStorageOutput) KeyVaultSasToken() LinkedServiceAzureBlobStorageKeyVaultSasTokenPtrOutput { return o.ApplyT(func(v *LinkedServiceAzureBlobStorage) LinkedServiceAzureBlobStorageKeyVaultSasTokenPtrOutput { return v.KeyVaultSasToken }).(LinkedServiceAzureBlobStorageKeyVaultSasTokenPtrOutput) } // Specifies the name of the Data Factory Linked Service. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. func (o LinkedServiceAzureBlobStorageOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *LinkedServiceAzureBlobStorage) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // A map of parameters to associate with the Data Factory Linked Service. func (o LinkedServiceAzureBlobStorageOutput) Parameters() pulumi.StringMapOutput { return o.ApplyT(func(v *LinkedServiceAzureBlobStorage) pulumi.StringMapOutput { return v.Parameters }).(pulumi.StringMapOutput) } // The SAS URI. Conflicts with `connectionStringInsecure`, `connectionString` and `serviceEndpoint`. func (o LinkedServiceAzureBlobStorageOutput) SasUri() pulumi.StringPtrOutput { return o.ApplyT(func(v *LinkedServiceAzureBlobStorage) pulumi.StringPtrOutput { return v.SasUri }).(pulumi.StringPtrOutput) } func (o LinkedServiceAzureBlobStorageOutput) ServiceEndpoint() pulumi.StringPtrOutput { return o.ApplyT(func(v *LinkedServiceAzureBlobStorage) pulumi.StringPtrOutput { return v.ServiceEndpoint }).(pulumi.StringPtrOutput) } func (o LinkedServiceAzureBlobStorageOutput) ServicePrincipalId() pulumi.StringPtrOutput { return o.ApplyT(func(v *LinkedServiceAzureBlobStorage) pulumi.StringPtrOutput { return v.ServicePrincipalId }).(pulumi.StringPtrOutput) } func (o LinkedServiceAzureBlobStorageOutput) ServicePrincipalKey() pulumi.StringPtrOutput { return o.ApplyT(func(v *LinkedServiceAzureBlobStorage) pulumi.StringPtrOutput { return v.ServicePrincipalKey }).(pulumi.StringPtrOutput) } func (o LinkedServiceAzureBlobStorageOutput) ServicePrincipalLinkedKeyVaultKey() LinkedServiceAzureBlobStorageServicePrincipalLinkedKeyVaultKeyPtrOutput { return o.ApplyT(func(v *LinkedServiceAzureBlobStorage) LinkedServiceAzureBlobStorageServicePrincipalLinkedKeyVaultKeyPtrOutput { return v.ServicePrincipalLinkedKeyVaultKey }).(LinkedServiceAzureBlobStorageServicePrincipalLinkedKeyVaultKeyPtrOutput) } func (o LinkedServiceAzureBlobStorageOutput) StorageKind() pulumi.StringPtrOutput { return o.ApplyT(func(v *LinkedServiceAzureBlobStorage) pulumi.StringPtrOutput { return v.StorageKind }).(pulumi.StringPtrOutput) } func (o LinkedServiceAzureBlobStorageOutput) TenantId() pulumi.StringPtrOutput { return o.ApplyT(func(v *LinkedServiceAzureBlobStorage) pulumi.StringPtrOutput { return v.TenantId }).(pulumi.StringPtrOutput) } func (o LinkedServiceAzureBlobStorageOutput) UseManagedIdentity() pulumi.BoolPtrOutput { return o.ApplyT(func(v *LinkedServiceAzureBlobStorage) pulumi.BoolPtrOutput { return v.UseManagedIdentity }).(pulumi.BoolPtrOutput) } type LinkedServiceAzureBlobStorageArrayOutput struct{ *pulumi.OutputState } func (LinkedServiceAzureBlobStorageArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*LinkedServiceAzureBlobStorage)(nil)).Elem() } func (o LinkedServiceAzureBlobStorageArrayOutput) ToLinkedServiceAzureBlobStorageArrayOutput() LinkedServiceAzureBlobStorageArrayOutput { return o } func (o LinkedServiceAzureBlobStorageArrayOutput) ToLinkedServiceAzureBlobStorageArrayOutputWithContext(ctx context.Context) LinkedServiceAzureBlobStorageArrayOutput { return o } func (o LinkedServiceAzureBlobStorageArrayOutput) Index(i pulumi.IntInput) LinkedServiceAzureBlobStorageOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *LinkedServiceAzureBlobStorage { return vs[0].([]*LinkedServiceAzureBlobStorage)[vs[1].(int)] }).(LinkedServiceAzureBlobStorageOutput) } type LinkedServiceAzureBlobStorageMapOutput struct{ *pulumi.OutputState } func (LinkedServiceAzureBlobStorageMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*LinkedServiceAzureBlobStorage)(nil)).Elem() }
go
Apache-2.0
b66e1472775a89cca43f5050fef806854a7c3fa3
2026-01-07T09:44:27.619514Z
true
pulumi/pulumi-azure
https://github.com/pulumi/pulumi-azure/blob/b66e1472775a89cca43f5050fef806854a7c3fa3/sdk/go/azure/datafactory/pulumiTypes.go
sdk/go/azure/datafactory/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 datafactory 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 CredentialServicePrincipalServicePrincipalKey struct { // The name of the Linked Service to use for the Service Principal Key. LinkedServiceName string `pulumi:"linkedServiceName"` // The name of the Secret in the Key Vault. SecretName string `pulumi:"secretName"` // The version of the Secret in the Key Vault. SecretVersion *string `pulumi:"secretVersion"` } // CredentialServicePrincipalServicePrincipalKeyInput is an input type that accepts CredentialServicePrincipalServicePrincipalKeyArgs and CredentialServicePrincipalServicePrincipalKeyOutput values. // You can construct a concrete instance of `CredentialServicePrincipalServicePrincipalKeyInput` via: // // CredentialServicePrincipalServicePrincipalKeyArgs{...} type CredentialServicePrincipalServicePrincipalKeyInput interface { pulumi.Input ToCredentialServicePrincipalServicePrincipalKeyOutput() CredentialServicePrincipalServicePrincipalKeyOutput ToCredentialServicePrincipalServicePrincipalKeyOutputWithContext(context.Context) CredentialServicePrincipalServicePrincipalKeyOutput } type CredentialServicePrincipalServicePrincipalKeyArgs struct { // The name of the Linked Service to use for the Service Principal Key. LinkedServiceName pulumi.StringInput `pulumi:"linkedServiceName"` // The name of the Secret in the Key Vault. SecretName pulumi.StringInput `pulumi:"secretName"` // The version of the Secret in the Key Vault. SecretVersion pulumi.StringPtrInput `pulumi:"secretVersion"` } func (CredentialServicePrincipalServicePrincipalKeyArgs) ElementType() reflect.Type { return reflect.TypeOf((*CredentialServicePrincipalServicePrincipalKey)(nil)).Elem() } func (i CredentialServicePrincipalServicePrincipalKeyArgs) ToCredentialServicePrincipalServicePrincipalKeyOutput() CredentialServicePrincipalServicePrincipalKeyOutput { return i.ToCredentialServicePrincipalServicePrincipalKeyOutputWithContext(context.Background()) } func (i CredentialServicePrincipalServicePrincipalKeyArgs) ToCredentialServicePrincipalServicePrincipalKeyOutputWithContext(ctx context.Context) CredentialServicePrincipalServicePrincipalKeyOutput { return pulumi.ToOutputWithContext(ctx, i).(CredentialServicePrincipalServicePrincipalKeyOutput) } func (i CredentialServicePrincipalServicePrincipalKeyArgs) ToCredentialServicePrincipalServicePrincipalKeyPtrOutput() CredentialServicePrincipalServicePrincipalKeyPtrOutput { return i.ToCredentialServicePrincipalServicePrincipalKeyPtrOutputWithContext(context.Background()) } func (i CredentialServicePrincipalServicePrincipalKeyArgs) ToCredentialServicePrincipalServicePrincipalKeyPtrOutputWithContext(ctx context.Context) CredentialServicePrincipalServicePrincipalKeyPtrOutput { return pulumi.ToOutputWithContext(ctx, i).(CredentialServicePrincipalServicePrincipalKeyOutput).ToCredentialServicePrincipalServicePrincipalKeyPtrOutputWithContext(ctx) } // CredentialServicePrincipalServicePrincipalKeyPtrInput is an input type that accepts CredentialServicePrincipalServicePrincipalKeyArgs, CredentialServicePrincipalServicePrincipalKeyPtr and CredentialServicePrincipalServicePrincipalKeyPtrOutput values. // You can construct a concrete instance of `CredentialServicePrincipalServicePrincipalKeyPtrInput` via: // // CredentialServicePrincipalServicePrincipalKeyArgs{...} // // or: // // nil type CredentialServicePrincipalServicePrincipalKeyPtrInput interface { pulumi.Input ToCredentialServicePrincipalServicePrincipalKeyPtrOutput() CredentialServicePrincipalServicePrincipalKeyPtrOutput ToCredentialServicePrincipalServicePrincipalKeyPtrOutputWithContext(context.Context) CredentialServicePrincipalServicePrincipalKeyPtrOutput } type credentialServicePrincipalServicePrincipalKeyPtrType CredentialServicePrincipalServicePrincipalKeyArgs func CredentialServicePrincipalServicePrincipalKeyPtr(v *CredentialServicePrincipalServicePrincipalKeyArgs) CredentialServicePrincipalServicePrincipalKeyPtrInput { return (*credentialServicePrincipalServicePrincipalKeyPtrType)(v) } func (*credentialServicePrincipalServicePrincipalKeyPtrType) ElementType() reflect.Type { return reflect.TypeOf((**CredentialServicePrincipalServicePrincipalKey)(nil)).Elem() } func (i *credentialServicePrincipalServicePrincipalKeyPtrType) ToCredentialServicePrincipalServicePrincipalKeyPtrOutput() CredentialServicePrincipalServicePrincipalKeyPtrOutput { return i.ToCredentialServicePrincipalServicePrincipalKeyPtrOutputWithContext(context.Background()) } func (i *credentialServicePrincipalServicePrincipalKeyPtrType) ToCredentialServicePrincipalServicePrincipalKeyPtrOutputWithContext(ctx context.Context) CredentialServicePrincipalServicePrincipalKeyPtrOutput { return pulumi.ToOutputWithContext(ctx, i).(CredentialServicePrincipalServicePrincipalKeyPtrOutput) } type CredentialServicePrincipalServicePrincipalKeyOutput struct{ *pulumi.OutputState } func (CredentialServicePrincipalServicePrincipalKeyOutput) ElementType() reflect.Type { return reflect.TypeOf((*CredentialServicePrincipalServicePrincipalKey)(nil)).Elem() } func (o CredentialServicePrincipalServicePrincipalKeyOutput) ToCredentialServicePrincipalServicePrincipalKeyOutput() CredentialServicePrincipalServicePrincipalKeyOutput { return o } func (o CredentialServicePrincipalServicePrincipalKeyOutput) ToCredentialServicePrincipalServicePrincipalKeyOutputWithContext(ctx context.Context) CredentialServicePrincipalServicePrincipalKeyOutput { return o } func (o CredentialServicePrincipalServicePrincipalKeyOutput) ToCredentialServicePrincipalServicePrincipalKeyPtrOutput() CredentialServicePrincipalServicePrincipalKeyPtrOutput { return o.ToCredentialServicePrincipalServicePrincipalKeyPtrOutputWithContext(context.Background()) } func (o CredentialServicePrincipalServicePrincipalKeyOutput) ToCredentialServicePrincipalServicePrincipalKeyPtrOutputWithContext(ctx context.Context) CredentialServicePrincipalServicePrincipalKeyPtrOutput { return o.ApplyTWithContext(ctx, func(_ context.Context, v CredentialServicePrincipalServicePrincipalKey) *CredentialServicePrincipalServicePrincipalKey { return &v }).(CredentialServicePrincipalServicePrincipalKeyPtrOutput) } // The name of the Linked Service to use for the Service Principal Key. func (o CredentialServicePrincipalServicePrincipalKeyOutput) LinkedServiceName() pulumi.StringOutput { return o.ApplyT(func(v CredentialServicePrincipalServicePrincipalKey) string { return v.LinkedServiceName }).(pulumi.StringOutput) } // The name of the Secret in the Key Vault. func (o CredentialServicePrincipalServicePrincipalKeyOutput) SecretName() pulumi.StringOutput { return o.ApplyT(func(v CredentialServicePrincipalServicePrincipalKey) string { return v.SecretName }).(pulumi.StringOutput) } // The version of the Secret in the Key Vault. func (o CredentialServicePrincipalServicePrincipalKeyOutput) SecretVersion() pulumi.StringPtrOutput { return o.ApplyT(func(v CredentialServicePrincipalServicePrincipalKey) *string { return v.SecretVersion }).(pulumi.StringPtrOutput) } type CredentialServicePrincipalServicePrincipalKeyPtrOutput struct{ *pulumi.OutputState } func (CredentialServicePrincipalServicePrincipalKeyPtrOutput) ElementType() reflect.Type { return reflect.TypeOf((**CredentialServicePrincipalServicePrincipalKey)(nil)).Elem() } func (o CredentialServicePrincipalServicePrincipalKeyPtrOutput) ToCredentialServicePrincipalServicePrincipalKeyPtrOutput() CredentialServicePrincipalServicePrincipalKeyPtrOutput { return o } func (o CredentialServicePrincipalServicePrincipalKeyPtrOutput) ToCredentialServicePrincipalServicePrincipalKeyPtrOutputWithContext(ctx context.Context) CredentialServicePrincipalServicePrincipalKeyPtrOutput { return o } func (o CredentialServicePrincipalServicePrincipalKeyPtrOutput) Elem() CredentialServicePrincipalServicePrincipalKeyOutput { return o.ApplyT(func(v *CredentialServicePrincipalServicePrincipalKey) CredentialServicePrincipalServicePrincipalKey { if v != nil { return *v } var ret CredentialServicePrincipalServicePrincipalKey return ret }).(CredentialServicePrincipalServicePrincipalKeyOutput) } // The name of the Linked Service to use for the Service Principal Key. func (o CredentialServicePrincipalServicePrincipalKeyPtrOutput) LinkedServiceName() pulumi.StringPtrOutput { return o.ApplyT(func(v *CredentialServicePrincipalServicePrincipalKey) *string { if v == nil { return nil } return &v.LinkedServiceName }).(pulumi.StringPtrOutput) } // The name of the Secret in the Key Vault. func (o CredentialServicePrincipalServicePrincipalKeyPtrOutput) SecretName() pulumi.StringPtrOutput { return o.ApplyT(func(v *CredentialServicePrincipalServicePrincipalKey) *string { if v == nil { return nil } return &v.SecretName }).(pulumi.StringPtrOutput) } // The version of the Secret in the Key Vault. func (o CredentialServicePrincipalServicePrincipalKeyPtrOutput) SecretVersion() pulumi.StringPtrOutput { return o.ApplyT(func(v *CredentialServicePrincipalServicePrincipalKey) *string { if v == nil { return nil } return v.SecretVersion }).(pulumi.StringPtrOutput) } type CustomDatasetLinkedService struct { // The name of the Data Factory Linked Service. Name string `pulumi:"name"` // A map of parameters to associate with the Data Factory Linked Service. Parameters map[string]string `pulumi:"parameters"` } // CustomDatasetLinkedServiceInput is an input type that accepts CustomDatasetLinkedServiceArgs and CustomDatasetLinkedServiceOutput values. // You can construct a concrete instance of `CustomDatasetLinkedServiceInput` via: // // CustomDatasetLinkedServiceArgs{...} type CustomDatasetLinkedServiceInput interface { pulumi.Input ToCustomDatasetLinkedServiceOutput() CustomDatasetLinkedServiceOutput ToCustomDatasetLinkedServiceOutputWithContext(context.Context) CustomDatasetLinkedServiceOutput } type CustomDatasetLinkedServiceArgs struct { // The name of the Data Factory Linked Service. Name pulumi.StringInput `pulumi:"name"` // A map of parameters to associate with the Data Factory Linked Service. Parameters pulumi.StringMapInput `pulumi:"parameters"` } func (CustomDatasetLinkedServiceArgs) ElementType() reflect.Type { return reflect.TypeOf((*CustomDatasetLinkedService)(nil)).Elem() } func (i CustomDatasetLinkedServiceArgs) ToCustomDatasetLinkedServiceOutput() CustomDatasetLinkedServiceOutput { return i.ToCustomDatasetLinkedServiceOutputWithContext(context.Background()) } func (i CustomDatasetLinkedServiceArgs) ToCustomDatasetLinkedServiceOutputWithContext(ctx context.Context) CustomDatasetLinkedServiceOutput { return pulumi.ToOutputWithContext(ctx, i).(CustomDatasetLinkedServiceOutput) } func (i CustomDatasetLinkedServiceArgs) ToCustomDatasetLinkedServicePtrOutput() CustomDatasetLinkedServicePtrOutput { return i.ToCustomDatasetLinkedServicePtrOutputWithContext(context.Background()) } func (i CustomDatasetLinkedServiceArgs) ToCustomDatasetLinkedServicePtrOutputWithContext(ctx context.Context) CustomDatasetLinkedServicePtrOutput { return pulumi.ToOutputWithContext(ctx, i).(CustomDatasetLinkedServiceOutput).ToCustomDatasetLinkedServicePtrOutputWithContext(ctx) } // CustomDatasetLinkedServicePtrInput is an input type that accepts CustomDatasetLinkedServiceArgs, CustomDatasetLinkedServicePtr and CustomDatasetLinkedServicePtrOutput values. // You can construct a concrete instance of `CustomDatasetLinkedServicePtrInput` via: // // CustomDatasetLinkedServiceArgs{...} // // or: // // nil type CustomDatasetLinkedServicePtrInput interface { pulumi.Input ToCustomDatasetLinkedServicePtrOutput() CustomDatasetLinkedServicePtrOutput ToCustomDatasetLinkedServicePtrOutputWithContext(context.Context) CustomDatasetLinkedServicePtrOutput } type customDatasetLinkedServicePtrType CustomDatasetLinkedServiceArgs func CustomDatasetLinkedServicePtr(v *CustomDatasetLinkedServiceArgs) CustomDatasetLinkedServicePtrInput { return (*customDatasetLinkedServicePtrType)(v) } func (*customDatasetLinkedServicePtrType) ElementType() reflect.Type { return reflect.TypeOf((**CustomDatasetLinkedService)(nil)).Elem() } func (i *customDatasetLinkedServicePtrType) ToCustomDatasetLinkedServicePtrOutput() CustomDatasetLinkedServicePtrOutput { return i.ToCustomDatasetLinkedServicePtrOutputWithContext(context.Background()) } func (i *customDatasetLinkedServicePtrType) ToCustomDatasetLinkedServicePtrOutputWithContext(ctx context.Context) CustomDatasetLinkedServicePtrOutput { return pulumi.ToOutputWithContext(ctx, i).(CustomDatasetLinkedServicePtrOutput) } type CustomDatasetLinkedServiceOutput struct{ *pulumi.OutputState } func (CustomDatasetLinkedServiceOutput) ElementType() reflect.Type { return reflect.TypeOf((*CustomDatasetLinkedService)(nil)).Elem() } func (o CustomDatasetLinkedServiceOutput) ToCustomDatasetLinkedServiceOutput() CustomDatasetLinkedServiceOutput { return o } func (o CustomDatasetLinkedServiceOutput) ToCustomDatasetLinkedServiceOutputWithContext(ctx context.Context) CustomDatasetLinkedServiceOutput { return o } func (o CustomDatasetLinkedServiceOutput) ToCustomDatasetLinkedServicePtrOutput() CustomDatasetLinkedServicePtrOutput { return o.ToCustomDatasetLinkedServicePtrOutputWithContext(context.Background()) } func (o CustomDatasetLinkedServiceOutput) ToCustomDatasetLinkedServicePtrOutputWithContext(ctx context.Context) CustomDatasetLinkedServicePtrOutput { return o.ApplyTWithContext(ctx, func(_ context.Context, v CustomDatasetLinkedService) *CustomDatasetLinkedService { return &v }).(CustomDatasetLinkedServicePtrOutput) } // The name of the Data Factory Linked Service. func (o CustomDatasetLinkedServiceOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v CustomDatasetLinkedService) string { return v.Name }).(pulumi.StringOutput) } // A map of parameters to associate with the Data Factory Linked Service. func (o CustomDatasetLinkedServiceOutput) Parameters() pulumi.StringMapOutput { return o.ApplyT(func(v CustomDatasetLinkedService) map[string]string { return v.Parameters }).(pulumi.StringMapOutput) } type CustomDatasetLinkedServicePtrOutput struct{ *pulumi.OutputState } func (CustomDatasetLinkedServicePtrOutput) ElementType() reflect.Type { return reflect.TypeOf((**CustomDatasetLinkedService)(nil)).Elem() } func (o CustomDatasetLinkedServicePtrOutput) ToCustomDatasetLinkedServicePtrOutput() CustomDatasetLinkedServicePtrOutput { return o } func (o CustomDatasetLinkedServicePtrOutput) ToCustomDatasetLinkedServicePtrOutputWithContext(ctx context.Context) CustomDatasetLinkedServicePtrOutput { return o } func (o CustomDatasetLinkedServicePtrOutput) Elem() CustomDatasetLinkedServiceOutput { return o.ApplyT(func(v *CustomDatasetLinkedService) CustomDatasetLinkedService { if v != nil { return *v } var ret CustomDatasetLinkedService return ret }).(CustomDatasetLinkedServiceOutput) } // The name of the Data Factory Linked Service. func (o CustomDatasetLinkedServicePtrOutput) Name() pulumi.StringPtrOutput { return o.ApplyT(func(v *CustomDatasetLinkedService) *string { if v == nil { return nil } return &v.Name }).(pulumi.StringPtrOutput) } // A map of parameters to associate with the Data Factory Linked Service. func (o CustomDatasetLinkedServicePtrOutput) Parameters() pulumi.StringMapOutput { return o.ApplyT(func(v *CustomDatasetLinkedService) map[string]string { if v == nil { return nil } return v.Parameters }).(pulumi.StringMapOutput) } type DataFlowSink struct { // A `dataset` block as defined below. Dataset *DataFlowSinkDataset `pulumi:"dataset"` // The description for the Data Flow Source. Description *string `pulumi:"description"` // A `flowlet` block as defined below. Flowlet *DataFlowSinkFlowlet `pulumi:"flowlet"` // A `linkedService` block as defined below. LinkedService *DataFlowSinkLinkedService `pulumi:"linkedService"` // The name for the Data Flow Source. Name string `pulumi:"name"` // A `rejectedLinkedService` block as defined below. RejectedLinkedService *DataFlowSinkRejectedLinkedService `pulumi:"rejectedLinkedService"` // A `schemaLinkedService` block as defined below. SchemaLinkedService *DataFlowSinkSchemaLinkedService `pulumi:"schemaLinkedService"` } // DataFlowSinkInput is an input type that accepts DataFlowSinkArgs and DataFlowSinkOutput values. // You can construct a concrete instance of `DataFlowSinkInput` via: // // DataFlowSinkArgs{...} type DataFlowSinkInput interface { pulumi.Input ToDataFlowSinkOutput() DataFlowSinkOutput ToDataFlowSinkOutputWithContext(context.Context) DataFlowSinkOutput } type DataFlowSinkArgs struct { // A `dataset` block as defined below. Dataset DataFlowSinkDatasetPtrInput `pulumi:"dataset"` // The description for the Data Flow Source. Description pulumi.StringPtrInput `pulumi:"description"` // A `flowlet` block as defined below. Flowlet DataFlowSinkFlowletPtrInput `pulumi:"flowlet"` // A `linkedService` block as defined below. LinkedService DataFlowSinkLinkedServicePtrInput `pulumi:"linkedService"` // The name for the Data Flow Source. Name pulumi.StringInput `pulumi:"name"` // A `rejectedLinkedService` block as defined below. RejectedLinkedService DataFlowSinkRejectedLinkedServicePtrInput `pulumi:"rejectedLinkedService"` // A `schemaLinkedService` block as defined below. SchemaLinkedService DataFlowSinkSchemaLinkedServicePtrInput `pulumi:"schemaLinkedService"` } func (DataFlowSinkArgs) ElementType() reflect.Type { return reflect.TypeOf((*DataFlowSink)(nil)).Elem() } func (i DataFlowSinkArgs) ToDataFlowSinkOutput() DataFlowSinkOutput { return i.ToDataFlowSinkOutputWithContext(context.Background()) } func (i DataFlowSinkArgs) ToDataFlowSinkOutputWithContext(ctx context.Context) DataFlowSinkOutput { return pulumi.ToOutputWithContext(ctx, i).(DataFlowSinkOutput) } // DataFlowSinkArrayInput is an input type that accepts DataFlowSinkArray and DataFlowSinkArrayOutput values. // You can construct a concrete instance of `DataFlowSinkArrayInput` via: // // DataFlowSinkArray{ DataFlowSinkArgs{...} } type DataFlowSinkArrayInput interface { pulumi.Input ToDataFlowSinkArrayOutput() DataFlowSinkArrayOutput ToDataFlowSinkArrayOutputWithContext(context.Context) DataFlowSinkArrayOutput } type DataFlowSinkArray []DataFlowSinkInput func (DataFlowSinkArray) ElementType() reflect.Type { return reflect.TypeOf((*[]DataFlowSink)(nil)).Elem() } func (i DataFlowSinkArray) ToDataFlowSinkArrayOutput() DataFlowSinkArrayOutput { return i.ToDataFlowSinkArrayOutputWithContext(context.Background()) } func (i DataFlowSinkArray) ToDataFlowSinkArrayOutputWithContext(ctx context.Context) DataFlowSinkArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(DataFlowSinkArrayOutput) } type DataFlowSinkOutput struct{ *pulumi.OutputState } func (DataFlowSinkOutput) ElementType() reflect.Type { return reflect.TypeOf((*DataFlowSink)(nil)).Elem() } func (o DataFlowSinkOutput) ToDataFlowSinkOutput() DataFlowSinkOutput { return o } func (o DataFlowSinkOutput) ToDataFlowSinkOutputWithContext(ctx context.Context) DataFlowSinkOutput { return o } // A `dataset` block as defined below. func (o DataFlowSinkOutput) Dataset() DataFlowSinkDatasetPtrOutput { return o.ApplyT(func(v DataFlowSink) *DataFlowSinkDataset { return v.Dataset }).(DataFlowSinkDatasetPtrOutput) } // The description for the Data Flow Source. func (o DataFlowSinkOutput) Description() pulumi.StringPtrOutput { return o.ApplyT(func(v DataFlowSink) *string { return v.Description }).(pulumi.StringPtrOutput) } // A `flowlet` block as defined below. func (o DataFlowSinkOutput) Flowlet() DataFlowSinkFlowletPtrOutput { return o.ApplyT(func(v DataFlowSink) *DataFlowSinkFlowlet { return v.Flowlet }).(DataFlowSinkFlowletPtrOutput) } // A `linkedService` block as defined below. func (o DataFlowSinkOutput) LinkedService() DataFlowSinkLinkedServicePtrOutput { return o.ApplyT(func(v DataFlowSink) *DataFlowSinkLinkedService { return v.LinkedService }).(DataFlowSinkLinkedServicePtrOutput) } // The name for the Data Flow Source. func (o DataFlowSinkOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v DataFlowSink) string { return v.Name }).(pulumi.StringOutput) } // A `rejectedLinkedService` block as defined below. func (o DataFlowSinkOutput) RejectedLinkedService() DataFlowSinkRejectedLinkedServicePtrOutput { return o.ApplyT(func(v DataFlowSink) *DataFlowSinkRejectedLinkedService { return v.RejectedLinkedService }).(DataFlowSinkRejectedLinkedServicePtrOutput) } // A `schemaLinkedService` block as defined below. func (o DataFlowSinkOutput) SchemaLinkedService() DataFlowSinkSchemaLinkedServicePtrOutput { return o.ApplyT(func(v DataFlowSink) *DataFlowSinkSchemaLinkedService { return v.SchemaLinkedService }).(DataFlowSinkSchemaLinkedServicePtrOutput) } type DataFlowSinkArrayOutput struct{ *pulumi.OutputState } func (DataFlowSinkArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]DataFlowSink)(nil)).Elem() } func (o DataFlowSinkArrayOutput) ToDataFlowSinkArrayOutput() DataFlowSinkArrayOutput { return o } func (o DataFlowSinkArrayOutput) ToDataFlowSinkArrayOutputWithContext(ctx context.Context) DataFlowSinkArrayOutput { return o } func (o DataFlowSinkArrayOutput) Index(i pulumi.IntInput) DataFlowSinkOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) DataFlowSink { return vs[0].([]DataFlowSink)[vs[1].(int)] }).(DataFlowSinkOutput) } type DataFlowSinkDataset struct { // The name for the Data Factory Dataset. Name string `pulumi:"name"` // A map of parameters to associate with the Data Factory dataset. Parameters map[string]string `pulumi:"parameters"` } // DataFlowSinkDatasetInput is an input type that accepts DataFlowSinkDatasetArgs and DataFlowSinkDatasetOutput values. // You can construct a concrete instance of `DataFlowSinkDatasetInput` via: // // DataFlowSinkDatasetArgs{...} type DataFlowSinkDatasetInput interface { pulumi.Input ToDataFlowSinkDatasetOutput() DataFlowSinkDatasetOutput ToDataFlowSinkDatasetOutputWithContext(context.Context) DataFlowSinkDatasetOutput } type DataFlowSinkDatasetArgs struct { // The name for the Data Factory Dataset. Name pulumi.StringInput `pulumi:"name"` // A map of parameters to associate with the Data Factory dataset. Parameters pulumi.StringMapInput `pulumi:"parameters"` } func (DataFlowSinkDatasetArgs) ElementType() reflect.Type { return reflect.TypeOf((*DataFlowSinkDataset)(nil)).Elem() } func (i DataFlowSinkDatasetArgs) ToDataFlowSinkDatasetOutput() DataFlowSinkDatasetOutput { return i.ToDataFlowSinkDatasetOutputWithContext(context.Background()) } func (i DataFlowSinkDatasetArgs) ToDataFlowSinkDatasetOutputWithContext(ctx context.Context) DataFlowSinkDatasetOutput { return pulumi.ToOutputWithContext(ctx, i).(DataFlowSinkDatasetOutput) } func (i DataFlowSinkDatasetArgs) ToDataFlowSinkDatasetPtrOutput() DataFlowSinkDatasetPtrOutput { return i.ToDataFlowSinkDatasetPtrOutputWithContext(context.Background()) } func (i DataFlowSinkDatasetArgs) ToDataFlowSinkDatasetPtrOutputWithContext(ctx context.Context) DataFlowSinkDatasetPtrOutput { return pulumi.ToOutputWithContext(ctx, i).(DataFlowSinkDatasetOutput).ToDataFlowSinkDatasetPtrOutputWithContext(ctx) } // DataFlowSinkDatasetPtrInput is an input type that accepts DataFlowSinkDatasetArgs, DataFlowSinkDatasetPtr and DataFlowSinkDatasetPtrOutput values. // You can construct a concrete instance of `DataFlowSinkDatasetPtrInput` via: // // DataFlowSinkDatasetArgs{...} // // or: // // nil type DataFlowSinkDatasetPtrInput interface { pulumi.Input ToDataFlowSinkDatasetPtrOutput() DataFlowSinkDatasetPtrOutput ToDataFlowSinkDatasetPtrOutputWithContext(context.Context) DataFlowSinkDatasetPtrOutput } type dataFlowSinkDatasetPtrType DataFlowSinkDatasetArgs func DataFlowSinkDatasetPtr(v *DataFlowSinkDatasetArgs) DataFlowSinkDatasetPtrInput { return (*dataFlowSinkDatasetPtrType)(v) } func (*dataFlowSinkDatasetPtrType) ElementType() reflect.Type { return reflect.TypeOf((**DataFlowSinkDataset)(nil)).Elem() } func (i *dataFlowSinkDatasetPtrType) ToDataFlowSinkDatasetPtrOutput() DataFlowSinkDatasetPtrOutput { return i.ToDataFlowSinkDatasetPtrOutputWithContext(context.Background()) } func (i *dataFlowSinkDatasetPtrType) ToDataFlowSinkDatasetPtrOutputWithContext(ctx context.Context) DataFlowSinkDatasetPtrOutput { return pulumi.ToOutputWithContext(ctx, i).(DataFlowSinkDatasetPtrOutput) } type DataFlowSinkDatasetOutput struct{ *pulumi.OutputState } func (DataFlowSinkDatasetOutput) ElementType() reflect.Type { return reflect.TypeOf((*DataFlowSinkDataset)(nil)).Elem() } func (o DataFlowSinkDatasetOutput) ToDataFlowSinkDatasetOutput() DataFlowSinkDatasetOutput { return o } func (o DataFlowSinkDatasetOutput) ToDataFlowSinkDatasetOutputWithContext(ctx context.Context) DataFlowSinkDatasetOutput { return o } func (o DataFlowSinkDatasetOutput) ToDataFlowSinkDatasetPtrOutput() DataFlowSinkDatasetPtrOutput { return o.ToDataFlowSinkDatasetPtrOutputWithContext(context.Background()) } func (o DataFlowSinkDatasetOutput) ToDataFlowSinkDatasetPtrOutputWithContext(ctx context.Context) DataFlowSinkDatasetPtrOutput { return o.ApplyTWithContext(ctx, func(_ context.Context, v DataFlowSinkDataset) *DataFlowSinkDataset { return &v }).(DataFlowSinkDatasetPtrOutput) } // The name for the Data Factory Dataset. func (o DataFlowSinkDatasetOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v DataFlowSinkDataset) string { return v.Name }).(pulumi.StringOutput) } // A map of parameters to associate with the Data Factory dataset. func (o DataFlowSinkDatasetOutput) Parameters() pulumi.StringMapOutput { return o.ApplyT(func(v DataFlowSinkDataset) map[string]string { return v.Parameters }).(pulumi.StringMapOutput) } type DataFlowSinkDatasetPtrOutput struct{ *pulumi.OutputState } func (DataFlowSinkDatasetPtrOutput) ElementType() reflect.Type { return reflect.TypeOf((**DataFlowSinkDataset)(nil)).Elem() } func (o DataFlowSinkDatasetPtrOutput) ToDataFlowSinkDatasetPtrOutput() DataFlowSinkDatasetPtrOutput { return o } func (o DataFlowSinkDatasetPtrOutput) ToDataFlowSinkDatasetPtrOutputWithContext(ctx context.Context) DataFlowSinkDatasetPtrOutput { return o } func (o DataFlowSinkDatasetPtrOutput) Elem() DataFlowSinkDatasetOutput { return o.ApplyT(func(v *DataFlowSinkDataset) DataFlowSinkDataset { if v != nil { return *v } var ret DataFlowSinkDataset return ret }).(DataFlowSinkDatasetOutput) } // The name for the Data Factory Dataset. func (o DataFlowSinkDatasetPtrOutput) Name() pulumi.StringPtrOutput { return o.ApplyT(func(v *DataFlowSinkDataset) *string { if v == nil { return nil } return &v.Name }).(pulumi.StringPtrOutput) } // A map of parameters to associate with the Data Factory dataset. func (o DataFlowSinkDatasetPtrOutput) Parameters() pulumi.StringMapOutput { return o.ApplyT(func(v *DataFlowSinkDataset) map[string]string { if v == nil { return nil } return v.Parameters }).(pulumi.StringMapOutput) } type DataFlowSinkFlowlet struct { // Specifies the reference data flow parameters from dataset. DatasetParameters *string `pulumi:"datasetParameters"` // The name for the Data Factory Flowlet. Name string `pulumi:"name"` // A map of parameters to associate with the Data Factory Flowlet. Parameters map[string]string `pulumi:"parameters"` } // DataFlowSinkFlowletInput is an input type that accepts DataFlowSinkFlowletArgs and DataFlowSinkFlowletOutput values. // You can construct a concrete instance of `DataFlowSinkFlowletInput` via: // // DataFlowSinkFlowletArgs{...} type DataFlowSinkFlowletInput interface { pulumi.Input ToDataFlowSinkFlowletOutput() DataFlowSinkFlowletOutput ToDataFlowSinkFlowletOutputWithContext(context.Context) DataFlowSinkFlowletOutput } type DataFlowSinkFlowletArgs struct { // Specifies the reference data flow parameters from dataset. DatasetParameters pulumi.StringPtrInput `pulumi:"datasetParameters"` // The name for the Data Factory Flowlet. Name pulumi.StringInput `pulumi:"name"` // A map of parameters to associate with the Data Factory Flowlet. Parameters pulumi.StringMapInput `pulumi:"parameters"` } func (DataFlowSinkFlowletArgs) ElementType() reflect.Type { return reflect.TypeOf((*DataFlowSinkFlowlet)(nil)).Elem() } func (i DataFlowSinkFlowletArgs) ToDataFlowSinkFlowletOutput() DataFlowSinkFlowletOutput { return i.ToDataFlowSinkFlowletOutputWithContext(context.Background()) } func (i DataFlowSinkFlowletArgs) ToDataFlowSinkFlowletOutputWithContext(ctx context.Context) DataFlowSinkFlowletOutput { return pulumi.ToOutputWithContext(ctx, i).(DataFlowSinkFlowletOutput) } func (i DataFlowSinkFlowletArgs) ToDataFlowSinkFlowletPtrOutput() DataFlowSinkFlowletPtrOutput { return i.ToDataFlowSinkFlowletPtrOutputWithContext(context.Background()) } func (i DataFlowSinkFlowletArgs) ToDataFlowSinkFlowletPtrOutputWithContext(ctx context.Context) DataFlowSinkFlowletPtrOutput { return pulumi.ToOutputWithContext(ctx, i).(DataFlowSinkFlowletOutput).ToDataFlowSinkFlowletPtrOutputWithContext(ctx) } // DataFlowSinkFlowletPtrInput is an input type that accepts DataFlowSinkFlowletArgs, DataFlowSinkFlowletPtr and DataFlowSinkFlowletPtrOutput values. // You can construct a concrete instance of `DataFlowSinkFlowletPtrInput` via: // // DataFlowSinkFlowletArgs{...} // // or: // // nil type DataFlowSinkFlowletPtrInput interface { pulumi.Input ToDataFlowSinkFlowletPtrOutput() DataFlowSinkFlowletPtrOutput ToDataFlowSinkFlowletPtrOutputWithContext(context.Context) DataFlowSinkFlowletPtrOutput } type dataFlowSinkFlowletPtrType DataFlowSinkFlowletArgs func DataFlowSinkFlowletPtr(v *DataFlowSinkFlowletArgs) DataFlowSinkFlowletPtrInput { return (*dataFlowSinkFlowletPtrType)(v) } func (*dataFlowSinkFlowletPtrType) ElementType() reflect.Type { return reflect.TypeOf((**DataFlowSinkFlowlet)(nil)).Elem() } func (i *dataFlowSinkFlowletPtrType) ToDataFlowSinkFlowletPtrOutput() DataFlowSinkFlowletPtrOutput { return i.ToDataFlowSinkFlowletPtrOutputWithContext(context.Background()) } func (i *dataFlowSinkFlowletPtrType) ToDataFlowSinkFlowletPtrOutputWithContext(ctx context.Context) DataFlowSinkFlowletPtrOutput { return pulumi.ToOutputWithContext(ctx, i).(DataFlowSinkFlowletPtrOutput) } type DataFlowSinkFlowletOutput struct{ *pulumi.OutputState } func (DataFlowSinkFlowletOutput) ElementType() reflect.Type { return reflect.TypeOf((*DataFlowSinkFlowlet)(nil)).Elem() } func (o DataFlowSinkFlowletOutput) ToDataFlowSinkFlowletOutput() DataFlowSinkFlowletOutput { return o } func (o DataFlowSinkFlowletOutput) ToDataFlowSinkFlowletOutputWithContext(ctx context.Context) DataFlowSinkFlowletOutput { return o } func (o DataFlowSinkFlowletOutput) ToDataFlowSinkFlowletPtrOutput() DataFlowSinkFlowletPtrOutput { return o.ToDataFlowSinkFlowletPtrOutputWithContext(context.Background()) } func (o DataFlowSinkFlowletOutput) ToDataFlowSinkFlowletPtrOutputWithContext(ctx context.Context) DataFlowSinkFlowletPtrOutput { return o.ApplyTWithContext(ctx, func(_ context.Context, v DataFlowSinkFlowlet) *DataFlowSinkFlowlet { return &v }).(DataFlowSinkFlowletPtrOutput) } // Specifies the reference data flow parameters from dataset. func (o DataFlowSinkFlowletOutput) DatasetParameters() pulumi.StringPtrOutput { return o.ApplyT(func(v DataFlowSinkFlowlet) *string { return v.DatasetParameters }).(pulumi.StringPtrOutput) } // The name for the Data Factory Flowlet. func (o DataFlowSinkFlowletOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v DataFlowSinkFlowlet) string { return v.Name }).(pulumi.StringOutput) } // A map of parameters to associate with the Data Factory Flowlet. func (o DataFlowSinkFlowletOutput) Parameters() pulumi.StringMapOutput { return o.ApplyT(func(v DataFlowSinkFlowlet) map[string]string { return v.Parameters }).(pulumi.StringMapOutput) } type DataFlowSinkFlowletPtrOutput struct{ *pulumi.OutputState } func (DataFlowSinkFlowletPtrOutput) ElementType() reflect.Type { return reflect.TypeOf((**DataFlowSinkFlowlet)(nil)).Elem() } func (o DataFlowSinkFlowletPtrOutput) ToDataFlowSinkFlowletPtrOutput() DataFlowSinkFlowletPtrOutput { return o } func (o DataFlowSinkFlowletPtrOutput) ToDataFlowSinkFlowletPtrOutputWithContext(ctx context.Context) DataFlowSinkFlowletPtrOutput {
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/datafactory/linkedServiceSynapse.go
sdk/go/azure/datafactory/linkedServiceSynapse.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 datafactory import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a Linked Service (connection) between Synapse and Azure Data Factory. // // ## 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/datafactory" // "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 // } // exampleFactory, err := datafactory.NewFactory(ctx, "example", &datafactory.FactoryArgs{ // Name: pulumi.String("example"), // Location: example.Location, // ResourceGroupName: example.Name, // }) // if err != nil { // return err // } // _, err = datafactory.NewLinkedServiceSynapse(ctx, "example", &datafactory.LinkedServiceSynapseArgs{ // Name: pulumi.String("example"), // DataFactoryId: exampleFactory.ID(), // ConnectionString: pulumi.String("Integrated Security=False;Data Source=test;Initial Catalog=test;User ID=test;Password=test"), // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ### With Password In Key Vault // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/datafactory" // "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 { // 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 // } // exampleKeyVault, err := keyvault.NewKeyVault(ctx, "example", &keyvault.KeyVaultArgs{ // Name: pulumi.String("example"), // Location: example.Location, // ResourceGroupName: example.Name, // TenantId: pulumi.String(current.TenantId), // SkuName: pulumi.String("standard"), // }) // if err != nil { // return err // } // exampleFactory, err := datafactory.NewFactory(ctx, "example", &datafactory.FactoryArgs{ // Name: pulumi.String("example"), // Location: example.Location, // ResourceGroupName: example.Name, // }) // if err != nil { // return err // } // exampleLinkedServiceKeyVault, err := datafactory.NewLinkedServiceKeyVault(ctx, "example", &datafactory.LinkedServiceKeyVaultArgs{ // Name: pulumi.String("kvlink"), // DataFactoryId: exampleFactory.ID(), // KeyVaultId: exampleKeyVault.ID(), // }) // if err != nil { // return err // } // _, err = datafactory.NewLinkedServiceSynapse(ctx, "example", &datafactory.LinkedServiceSynapseArgs{ // Name: pulumi.String("example"), // DataFactoryId: exampleFactory.ID(), // ConnectionString: pulumi.String("Integrated Security=False;Data Source=test;Initial Catalog=test;User ID=test;"), // KeyVaultPassword: &datafactory.LinkedServiceSynapseKeyVaultPasswordArgs{ // LinkedServiceName: exampleLinkedServiceKeyVault.Name, // SecretName: pulumi.String("secret"), // }, // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## Import // // Data Factory Synapse Linked Service's can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:datafactory/linkedServiceSynapse:LinkedServiceSynapse example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example/providers/Microsoft.DataFactory/factories/example/linkedservices/example // ``` type LinkedServiceSynapse struct { pulumi.CustomResourceState // A map of additional properties to associate with the Data Factory Linked Service Synapse. // // The following supported arguments are specific to Data Factory Synapse Linked Service: AdditionalProperties pulumi.StringMapOutput `pulumi:"additionalProperties"` // List of tags that can be used for describing the Data Factory Linked Service Synapse. Annotations pulumi.StringArrayOutput `pulumi:"annotations"` // The connection string in which to authenticate with the Synapse. ConnectionString pulumi.StringOutput `pulumi:"connectionString"` // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId pulumi.StringOutput `pulumi:"dataFactoryId"` // The description for the Data Factory Linked Service Synapse. Description pulumi.StringPtrOutput `pulumi:"description"` // The integration runtime reference to associate with the Data Factory Linked Service Synapse. IntegrationRuntimeName pulumi.StringPtrOutput `pulumi:"integrationRuntimeName"` // A `keyVaultPassword` block as defined below. Use this argument to store Synapse password in an existing Key Vault. It needs an existing Key Vault Data Factory Linked Service. KeyVaultPassword LinkedServiceSynapseKeyVaultPasswordPtrOutput `pulumi:"keyVaultPassword"` // Specifies the name of the Data Factory Linked Service Synapse. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringOutput `pulumi:"name"` // A map of parameters to associate with the Data Factory Linked Service Synapse. Parameters pulumi.StringMapOutput `pulumi:"parameters"` } // NewLinkedServiceSynapse registers a new resource with the given unique name, arguments, and options. func NewLinkedServiceSynapse(ctx *pulumi.Context, name string, args *LinkedServiceSynapseArgs, opts ...pulumi.ResourceOption) (*LinkedServiceSynapse, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.ConnectionString == nil { return nil, errors.New("invalid value for required argument 'ConnectionString'") } if args.DataFactoryId == nil { return nil, errors.New("invalid value for required argument 'DataFactoryId'") } opts = internal.PkgResourceDefaultOpts(opts) var resource LinkedServiceSynapse err := ctx.RegisterResource("azure:datafactory/linkedServiceSynapse:LinkedServiceSynapse", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetLinkedServiceSynapse gets an existing LinkedServiceSynapse 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 GetLinkedServiceSynapse(ctx *pulumi.Context, name string, id pulumi.IDInput, state *LinkedServiceSynapseState, opts ...pulumi.ResourceOption) (*LinkedServiceSynapse, error) { var resource LinkedServiceSynapse err := ctx.ReadResource("azure:datafactory/linkedServiceSynapse:LinkedServiceSynapse", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering LinkedServiceSynapse resources. type linkedServiceSynapseState struct { // A map of additional properties to associate with the Data Factory Linked Service Synapse. // // The following supported arguments are specific to Data Factory Synapse Linked Service: AdditionalProperties map[string]string `pulumi:"additionalProperties"` // List of tags that can be used for describing the Data Factory Linked Service Synapse. Annotations []string `pulumi:"annotations"` // The connection string in which to authenticate with the Synapse. ConnectionString *string `pulumi:"connectionString"` // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId *string `pulumi:"dataFactoryId"` // The description for the Data Factory Linked Service Synapse. Description *string `pulumi:"description"` // The integration runtime reference to associate with the Data Factory Linked Service Synapse. IntegrationRuntimeName *string `pulumi:"integrationRuntimeName"` // A `keyVaultPassword` block as defined below. Use this argument to store Synapse password in an existing Key Vault. It needs an existing Key Vault Data Factory Linked Service. KeyVaultPassword *LinkedServiceSynapseKeyVaultPassword `pulumi:"keyVaultPassword"` // Specifies the name of the Data Factory Linked Service Synapse. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name *string `pulumi:"name"` // A map of parameters to associate with the Data Factory Linked Service Synapse. Parameters map[string]string `pulumi:"parameters"` } type LinkedServiceSynapseState struct { // A map of additional properties to associate with the Data Factory Linked Service Synapse. // // The following supported arguments are specific to Data Factory Synapse Linked Service: AdditionalProperties pulumi.StringMapInput // List of tags that can be used for describing the Data Factory Linked Service Synapse. Annotations pulumi.StringArrayInput // The connection string in which to authenticate with the Synapse. ConnectionString pulumi.StringPtrInput // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId pulumi.StringPtrInput // The description for the Data Factory Linked Service Synapse. Description pulumi.StringPtrInput // The integration runtime reference to associate with the Data Factory Linked Service Synapse. IntegrationRuntimeName pulumi.StringPtrInput // A `keyVaultPassword` block as defined below. Use this argument to store Synapse password in an existing Key Vault. It needs an existing Key Vault Data Factory Linked Service. KeyVaultPassword LinkedServiceSynapseKeyVaultPasswordPtrInput // Specifies the name of the Data Factory Linked Service Synapse. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringPtrInput // A map of parameters to associate with the Data Factory Linked Service Synapse. Parameters pulumi.StringMapInput } func (LinkedServiceSynapseState) ElementType() reflect.Type { return reflect.TypeOf((*linkedServiceSynapseState)(nil)).Elem() } type linkedServiceSynapseArgs struct { // A map of additional properties to associate with the Data Factory Linked Service Synapse. // // The following supported arguments are specific to Data Factory Synapse Linked Service: AdditionalProperties map[string]string `pulumi:"additionalProperties"` // List of tags that can be used for describing the Data Factory Linked Service Synapse. Annotations []string `pulumi:"annotations"` // The connection string in which to authenticate with the Synapse. ConnectionString string `pulumi:"connectionString"` // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId string `pulumi:"dataFactoryId"` // The description for the Data Factory Linked Service Synapse. Description *string `pulumi:"description"` // The integration runtime reference to associate with the Data Factory Linked Service Synapse. IntegrationRuntimeName *string `pulumi:"integrationRuntimeName"` // A `keyVaultPassword` block as defined below. Use this argument to store Synapse password in an existing Key Vault. It needs an existing Key Vault Data Factory Linked Service. KeyVaultPassword *LinkedServiceSynapseKeyVaultPassword `pulumi:"keyVaultPassword"` // Specifies the name of the Data Factory Linked Service Synapse. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name *string `pulumi:"name"` // A map of parameters to associate with the Data Factory Linked Service Synapse. Parameters map[string]string `pulumi:"parameters"` } // The set of arguments for constructing a LinkedServiceSynapse resource. type LinkedServiceSynapseArgs struct { // A map of additional properties to associate with the Data Factory Linked Service Synapse. // // The following supported arguments are specific to Data Factory Synapse Linked Service: AdditionalProperties pulumi.StringMapInput // List of tags that can be used for describing the Data Factory Linked Service Synapse. Annotations pulumi.StringArrayInput // The connection string in which to authenticate with the Synapse. ConnectionString pulumi.StringInput // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId pulumi.StringInput // The description for the Data Factory Linked Service Synapse. Description pulumi.StringPtrInput // The integration runtime reference to associate with the Data Factory Linked Service Synapse. IntegrationRuntimeName pulumi.StringPtrInput // A `keyVaultPassword` block as defined below. Use this argument to store Synapse password in an existing Key Vault. It needs an existing Key Vault Data Factory Linked Service. KeyVaultPassword LinkedServiceSynapseKeyVaultPasswordPtrInput // Specifies the name of the Data Factory Linked Service Synapse. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringPtrInput // A map of parameters to associate with the Data Factory Linked Service Synapse. Parameters pulumi.StringMapInput } func (LinkedServiceSynapseArgs) ElementType() reflect.Type { return reflect.TypeOf((*linkedServiceSynapseArgs)(nil)).Elem() } type LinkedServiceSynapseInput interface { pulumi.Input ToLinkedServiceSynapseOutput() LinkedServiceSynapseOutput ToLinkedServiceSynapseOutputWithContext(ctx context.Context) LinkedServiceSynapseOutput } func (*LinkedServiceSynapse) ElementType() reflect.Type { return reflect.TypeOf((**LinkedServiceSynapse)(nil)).Elem() } func (i *LinkedServiceSynapse) ToLinkedServiceSynapseOutput() LinkedServiceSynapseOutput { return i.ToLinkedServiceSynapseOutputWithContext(context.Background()) } func (i *LinkedServiceSynapse) ToLinkedServiceSynapseOutputWithContext(ctx context.Context) LinkedServiceSynapseOutput { return pulumi.ToOutputWithContext(ctx, i).(LinkedServiceSynapseOutput) } // LinkedServiceSynapseArrayInput is an input type that accepts LinkedServiceSynapseArray and LinkedServiceSynapseArrayOutput values. // You can construct a concrete instance of `LinkedServiceSynapseArrayInput` via: // // LinkedServiceSynapseArray{ LinkedServiceSynapseArgs{...} } type LinkedServiceSynapseArrayInput interface { pulumi.Input ToLinkedServiceSynapseArrayOutput() LinkedServiceSynapseArrayOutput ToLinkedServiceSynapseArrayOutputWithContext(context.Context) LinkedServiceSynapseArrayOutput } type LinkedServiceSynapseArray []LinkedServiceSynapseInput func (LinkedServiceSynapseArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*LinkedServiceSynapse)(nil)).Elem() } func (i LinkedServiceSynapseArray) ToLinkedServiceSynapseArrayOutput() LinkedServiceSynapseArrayOutput { return i.ToLinkedServiceSynapseArrayOutputWithContext(context.Background()) } func (i LinkedServiceSynapseArray) ToLinkedServiceSynapseArrayOutputWithContext(ctx context.Context) LinkedServiceSynapseArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(LinkedServiceSynapseArrayOutput) } // LinkedServiceSynapseMapInput is an input type that accepts LinkedServiceSynapseMap and LinkedServiceSynapseMapOutput values. // You can construct a concrete instance of `LinkedServiceSynapseMapInput` via: // // LinkedServiceSynapseMap{ "key": LinkedServiceSynapseArgs{...} } type LinkedServiceSynapseMapInput interface { pulumi.Input ToLinkedServiceSynapseMapOutput() LinkedServiceSynapseMapOutput ToLinkedServiceSynapseMapOutputWithContext(context.Context) LinkedServiceSynapseMapOutput } type LinkedServiceSynapseMap map[string]LinkedServiceSynapseInput func (LinkedServiceSynapseMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*LinkedServiceSynapse)(nil)).Elem() } func (i LinkedServiceSynapseMap) ToLinkedServiceSynapseMapOutput() LinkedServiceSynapseMapOutput { return i.ToLinkedServiceSynapseMapOutputWithContext(context.Background()) } func (i LinkedServiceSynapseMap) ToLinkedServiceSynapseMapOutputWithContext(ctx context.Context) LinkedServiceSynapseMapOutput { return pulumi.ToOutputWithContext(ctx, i).(LinkedServiceSynapseMapOutput) } type LinkedServiceSynapseOutput struct{ *pulumi.OutputState } func (LinkedServiceSynapseOutput) ElementType() reflect.Type { return reflect.TypeOf((**LinkedServiceSynapse)(nil)).Elem() } func (o LinkedServiceSynapseOutput) ToLinkedServiceSynapseOutput() LinkedServiceSynapseOutput { return o } func (o LinkedServiceSynapseOutput) ToLinkedServiceSynapseOutputWithContext(ctx context.Context) LinkedServiceSynapseOutput { return o } // A map of additional properties to associate with the Data Factory Linked Service Synapse. // // The following supported arguments are specific to Data Factory Synapse Linked Service: func (o LinkedServiceSynapseOutput) AdditionalProperties() pulumi.StringMapOutput { return o.ApplyT(func(v *LinkedServiceSynapse) pulumi.StringMapOutput { return v.AdditionalProperties }).(pulumi.StringMapOutput) } // List of tags that can be used for describing the Data Factory Linked Service Synapse. func (o LinkedServiceSynapseOutput) Annotations() pulumi.StringArrayOutput { return o.ApplyT(func(v *LinkedServiceSynapse) pulumi.StringArrayOutput { return v.Annotations }).(pulumi.StringArrayOutput) } // The connection string in which to authenticate with the Synapse. func (o LinkedServiceSynapseOutput) ConnectionString() pulumi.StringOutput { return o.ApplyT(func(v *LinkedServiceSynapse) pulumi.StringOutput { return v.ConnectionString }).(pulumi.StringOutput) } // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. func (o LinkedServiceSynapseOutput) DataFactoryId() pulumi.StringOutput { return o.ApplyT(func(v *LinkedServiceSynapse) pulumi.StringOutput { return v.DataFactoryId }).(pulumi.StringOutput) } // The description for the Data Factory Linked Service Synapse. func (o LinkedServiceSynapseOutput) Description() pulumi.StringPtrOutput { return o.ApplyT(func(v *LinkedServiceSynapse) pulumi.StringPtrOutput { return v.Description }).(pulumi.StringPtrOutput) } // The integration runtime reference to associate with the Data Factory Linked Service Synapse. func (o LinkedServiceSynapseOutput) IntegrationRuntimeName() pulumi.StringPtrOutput { return o.ApplyT(func(v *LinkedServiceSynapse) pulumi.StringPtrOutput { return v.IntegrationRuntimeName }).(pulumi.StringPtrOutput) } // A `keyVaultPassword` block as defined below. Use this argument to store Synapse password in an existing Key Vault. It needs an existing Key Vault Data Factory Linked Service. func (o LinkedServiceSynapseOutput) KeyVaultPassword() LinkedServiceSynapseKeyVaultPasswordPtrOutput { return o.ApplyT(func(v *LinkedServiceSynapse) LinkedServiceSynapseKeyVaultPasswordPtrOutput { return v.KeyVaultPassword }).(LinkedServiceSynapseKeyVaultPasswordPtrOutput) } // Specifies the name of the Data Factory Linked Service Synapse. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. func (o LinkedServiceSynapseOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *LinkedServiceSynapse) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // A map of parameters to associate with the Data Factory Linked Service Synapse. func (o LinkedServiceSynapseOutput) Parameters() pulumi.StringMapOutput { return o.ApplyT(func(v *LinkedServiceSynapse) pulumi.StringMapOutput { return v.Parameters }).(pulumi.StringMapOutput) } type LinkedServiceSynapseArrayOutput struct{ *pulumi.OutputState } func (LinkedServiceSynapseArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*LinkedServiceSynapse)(nil)).Elem() } func (o LinkedServiceSynapseArrayOutput) ToLinkedServiceSynapseArrayOutput() LinkedServiceSynapseArrayOutput { return o } func (o LinkedServiceSynapseArrayOutput) ToLinkedServiceSynapseArrayOutputWithContext(ctx context.Context) LinkedServiceSynapseArrayOutput { return o } func (o LinkedServiceSynapseArrayOutput) Index(i pulumi.IntInput) LinkedServiceSynapseOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *LinkedServiceSynapse { return vs[0].([]*LinkedServiceSynapse)[vs[1].(int)] }).(LinkedServiceSynapseOutput) } type LinkedServiceSynapseMapOutput struct{ *pulumi.OutputState } func (LinkedServiceSynapseMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*LinkedServiceSynapse)(nil)).Elem() } func (o LinkedServiceSynapseMapOutput) ToLinkedServiceSynapseMapOutput() LinkedServiceSynapseMapOutput { return o } func (o LinkedServiceSynapseMapOutput) ToLinkedServiceSynapseMapOutputWithContext(ctx context.Context) LinkedServiceSynapseMapOutput { return o } func (o LinkedServiceSynapseMapOutput) MapIndex(k pulumi.StringInput) LinkedServiceSynapseOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *LinkedServiceSynapse { return vs[0].(map[string]*LinkedServiceSynapse)[vs[1].(string)] }).(LinkedServiceSynapseOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*LinkedServiceSynapseInput)(nil)).Elem(), &LinkedServiceSynapse{}) pulumi.RegisterInputType(reflect.TypeOf((*LinkedServiceSynapseArrayInput)(nil)).Elem(), LinkedServiceSynapseArray{}) pulumi.RegisterInputType(reflect.TypeOf((*LinkedServiceSynapseMapInput)(nil)).Elem(), LinkedServiceSynapseMap{}) pulumi.RegisterOutputType(LinkedServiceSynapseOutput{}) pulumi.RegisterOutputType(LinkedServiceSynapseArrayOutput{}) pulumi.RegisterOutputType(LinkedServiceSynapseMapOutput{}) }
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/datafactory/linkedServiceAzureSqlDatabase.go
sdk/go/azure/datafactory/linkedServiceAzureSqlDatabase.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 datafactory import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a Linked Service (connection) between Azure SQL Database and Azure Data Factory. // // ## 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/datafactory" // "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 // } // exampleFactory, err := datafactory.NewFactory(ctx, "example", &datafactory.FactoryArgs{ // Name: pulumi.String("example"), // Location: example.Location, // ResourceGroupName: example.Name, // }) // if err != nil { // return err // } // _, err = datafactory.NewLinkedServiceAzureSqlDatabase(ctx, "example", &datafactory.LinkedServiceAzureSqlDatabaseArgs{ // Name: pulumi.String("example"), // DataFactoryId: exampleFactory.ID(), // ConnectionString: pulumi.String("data source=serverhostname;initial catalog=master;user id=testUser;Password=test;integrated security=False;encrypt=True;connection timeout=30"), // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## Import // // Data Factory Azure SQL Database Linked Service's can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:datafactory/linkedServiceAzureSqlDatabase:LinkedServiceAzureSqlDatabase example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example/providers/Microsoft.DataFactory/factories/example/linkedservices/example // ``` type LinkedServiceAzureSqlDatabase struct { pulumi.CustomResourceState // A map of additional properties to associate with the Data Factory Linked Service Azure SQL Database. AdditionalProperties pulumi.StringMapOutput `pulumi:"additionalProperties"` // List of tags that can be used for describing the Data Factory Linked Service Azure SQL Database. Annotations pulumi.StringArrayOutput `pulumi:"annotations"` // The connection string in which to authenticate with Azure SQL Database. Exactly one of either `connectionString` or `keyVaultConnectionString` is required. ConnectionString pulumi.StringPtrOutput `pulumi:"connectionString"` // The name of a User-assigned Managed Identity. Use this argument to authenticate against the linked resource using a User-assigned Managed Identity. CredentialName pulumi.StringPtrOutput `pulumi:"credentialName"` // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId pulumi.StringOutput `pulumi:"dataFactoryId"` // The description for the Data Factory Linked Service Azure SQL Database. Description pulumi.StringPtrOutput `pulumi:"description"` // The integration runtime reference to associate with the Data Factory Linked Service Azure SQL Database. IntegrationRuntimeName pulumi.StringPtrOutput `pulumi:"integrationRuntimeName"` // A `keyVaultConnectionString` block as defined below. Use this argument to store Azure SQL Database connection string in an existing Key Vault. It needs an existing Key Vault Data Factory Linked Service. Exactly one of either `connectionString` or `keyVaultConnectionString` is required. KeyVaultConnectionString LinkedServiceAzureSqlDatabaseKeyVaultConnectionStringPtrOutput `pulumi:"keyVaultConnectionString"` // A `keyVaultPassword` block as defined below. Use this argument to store SQL Server password in an existing Key Vault. It needs an existing Key Vault Data Factory Linked Service. KeyVaultPassword LinkedServiceAzureSqlDatabaseKeyVaultPasswordPtrOutput `pulumi:"keyVaultPassword"` // Specifies the name of the Data Factory Linked Service Azure SQL Database. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringOutput `pulumi:"name"` // A map of parameters to associate with the Data Factory Linked Service Azure SQL Database. Parameters pulumi.StringMapOutput `pulumi:"parameters"` // The service principal id in which to authenticate against the Azure SQL Database. Required if `servicePrincipalKey` is set. ServicePrincipalId pulumi.StringPtrOutput `pulumi:"servicePrincipalId"` // The service principal key in which to authenticate against the Azure SQL Database. Required if `servicePrincipalId` is set. ServicePrincipalKey pulumi.StringPtrOutput `pulumi:"servicePrincipalKey"` // The tenant id or name in which to authenticate against the Azure SQL Database. TenantId pulumi.StringPtrOutput `pulumi:"tenantId"` // Whether to use the Data Factory's managed identity to authenticate against the Azure SQL Database. Incompatible with `servicePrincipalId` and `servicePrincipalKey` UseManagedIdentity pulumi.BoolPtrOutput `pulumi:"useManagedIdentity"` } // NewLinkedServiceAzureSqlDatabase registers a new resource with the given unique name, arguments, and options. func NewLinkedServiceAzureSqlDatabase(ctx *pulumi.Context, name string, args *LinkedServiceAzureSqlDatabaseArgs, opts ...pulumi.ResourceOption) (*LinkedServiceAzureSqlDatabase, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.DataFactoryId == nil { return nil, errors.New("invalid value for required argument 'DataFactoryId'") } opts = internal.PkgResourceDefaultOpts(opts) var resource LinkedServiceAzureSqlDatabase err := ctx.RegisterResource("azure:datafactory/linkedServiceAzureSqlDatabase:LinkedServiceAzureSqlDatabase", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetLinkedServiceAzureSqlDatabase gets an existing LinkedServiceAzureSqlDatabase 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 GetLinkedServiceAzureSqlDatabase(ctx *pulumi.Context, name string, id pulumi.IDInput, state *LinkedServiceAzureSqlDatabaseState, opts ...pulumi.ResourceOption) (*LinkedServiceAzureSqlDatabase, error) { var resource LinkedServiceAzureSqlDatabase err := ctx.ReadResource("azure:datafactory/linkedServiceAzureSqlDatabase:LinkedServiceAzureSqlDatabase", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering LinkedServiceAzureSqlDatabase resources. type linkedServiceAzureSqlDatabaseState struct { // A map of additional properties to associate with the Data Factory Linked Service Azure SQL Database. AdditionalProperties map[string]string `pulumi:"additionalProperties"` // List of tags that can be used for describing the Data Factory Linked Service Azure SQL Database. Annotations []string `pulumi:"annotations"` // The connection string in which to authenticate with Azure SQL Database. Exactly one of either `connectionString` or `keyVaultConnectionString` is required. ConnectionString *string `pulumi:"connectionString"` // The name of a User-assigned Managed Identity. Use this argument to authenticate against the linked resource using a User-assigned Managed Identity. CredentialName *string `pulumi:"credentialName"` // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId *string `pulumi:"dataFactoryId"` // The description for the Data Factory Linked Service Azure SQL Database. Description *string `pulumi:"description"` // The integration runtime reference to associate with the Data Factory Linked Service Azure SQL Database. IntegrationRuntimeName *string `pulumi:"integrationRuntimeName"` // A `keyVaultConnectionString` block as defined below. Use this argument to store Azure SQL Database connection string in an existing Key Vault. It needs an existing Key Vault Data Factory Linked Service. Exactly one of either `connectionString` or `keyVaultConnectionString` is required. KeyVaultConnectionString *LinkedServiceAzureSqlDatabaseKeyVaultConnectionString `pulumi:"keyVaultConnectionString"` // A `keyVaultPassword` block as defined below. Use this argument to store SQL Server password in an existing Key Vault. It needs an existing Key Vault Data Factory Linked Service. KeyVaultPassword *LinkedServiceAzureSqlDatabaseKeyVaultPassword `pulumi:"keyVaultPassword"` // Specifies the name of the Data Factory Linked Service Azure SQL Database. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name *string `pulumi:"name"` // A map of parameters to associate with the Data Factory Linked Service Azure SQL Database. Parameters map[string]string `pulumi:"parameters"` // The service principal id in which to authenticate against the Azure SQL Database. Required if `servicePrincipalKey` is set. ServicePrincipalId *string `pulumi:"servicePrincipalId"` // The service principal key in which to authenticate against the Azure SQL Database. Required if `servicePrincipalId` is set. ServicePrincipalKey *string `pulumi:"servicePrincipalKey"` // The tenant id or name in which to authenticate against the Azure SQL Database. TenantId *string `pulumi:"tenantId"` // Whether to use the Data Factory's managed identity to authenticate against the Azure SQL Database. Incompatible with `servicePrincipalId` and `servicePrincipalKey` UseManagedIdentity *bool `pulumi:"useManagedIdentity"` } type LinkedServiceAzureSqlDatabaseState struct { // A map of additional properties to associate with the Data Factory Linked Service Azure SQL Database. AdditionalProperties pulumi.StringMapInput // List of tags that can be used for describing the Data Factory Linked Service Azure SQL Database. Annotations pulumi.StringArrayInput // The connection string in which to authenticate with Azure SQL Database. Exactly one of either `connectionString` or `keyVaultConnectionString` is required. ConnectionString pulumi.StringPtrInput // The name of a User-assigned Managed Identity. Use this argument to authenticate against the linked resource using a User-assigned Managed Identity. CredentialName pulumi.StringPtrInput // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId pulumi.StringPtrInput // The description for the Data Factory Linked Service Azure SQL Database. Description pulumi.StringPtrInput // The integration runtime reference to associate with the Data Factory Linked Service Azure SQL Database. IntegrationRuntimeName pulumi.StringPtrInput // A `keyVaultConnectionString` block as defined below. Use this argument to store Azure SQL Database connection string in an existing Key Vault. It needs an existing Key Vault Data Factory Linked Service. Exactly one of either `connectionString` or `keyVaultConnectionString` is required. KeyVaultConnectionString LinkedServiceAzureSqlDatabaseKeyVaultConnectionStringPtrInput // A `keyVaultPassword` block as defined below. Use this argument to store SQL Server password in an existing Key Vault. It needs an existing Key Vault Data Factory Linked Service. KeyVaultPassword LinkedServiceAzureSqlDatabaseKeyVaultPasswordPtrInput // Specifies the name of the Data Factory Linked Service Azure SQL Database. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringPtrInput // A map of parameters to associate with the Data Factory Linked Service Azure SQL Database. Parameters pulumi.StringMapInput // The service principal id in which to authenticate against the Azure SQL Database. Required if `servicePrincipalKey` is set. ServicePrincipalId pulumi.StringPtrInput // The service principal key in which to authenticate against the Azure SQL Database. Required if `servicePrincipalId` is set. ServicePrincipalKey pulumi.StringPtrInput // The tenant id or name in which to authenticate against the Azure SQL Database. TenantId pulumi.StringPtrInput // Whether to use the Data Factory's managed identity to authenticate against the Azure SQL Database. Incompatible with `servicePrincipalId` and `servicePrincipalKey` UseManagedIdentity pulumi.BoolPtrInput } func (LinkedServiceAzureSqlDatabaseState) ElementType() reflect.Type { return reflect.TypeOf((*linkedServiceAzureSqlDatabaseState)(nil)).Elem() } type linkedServiceAzureSqlDatabaseArgs struct { // A map of additional properties to associate with the Data Factory Linked Service Azure SQL Database. AdditionalProperties map[string]string `pulumi:"additionalProperties"` // List of tags that can be used for describing the Data Factory Linked Service Azure SQL Database. Annotations []string `pulumi:"annotations"` // The connection string in which to authenticate with Azure SQL Database. Exactly one of either `connectionString` or `keyVaultConnectionString` is required. ConnectionString *string `pulumi:"connectionString"` // The name of a User-assigned Managed Identity. Use this argument to authenticate against the linked resource using a User-assigned Managed Identity. CredentialName *string `pulumi:"credentialName"` // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId string `pulumi:"dataFactoryId"` // The description for the Data Factory Linked Service Azure SQL Database. Description *string `pulumi:"description"` // The integration runtime reference to associate with the Data Factory Linked Service Azure SQL Database. IntegrationRuntimeName *string `pulumi:"integrationRuntimeName"` // A `keyVaultConnectionString` block as defined below. Use this argument to store Azure SQL Database connection string in an existing Key Vault. It needs an existing Key Vault Data Factory Linked Service. Exactly one of either `connectionString` or `keyVaultConnectionString` is required. KeyVaultConnectionString *LinkedServiceAzureSqlDatabaseKeyVaultConnectionString `pulumi:"keyVaultConnectionString"` // A `keyVaultPassword` block as defined below. Use this argument to store SQL Server password in an existing Key Vault. It needs an existing Key Vault Data Factory Linked Service. KeyVaultPassword *LinkedServiceAzureSqlDatabaseKeyVaultPassword `pulumi:"keyVaultPassword"` // Specifies the name of the Data Factory Linked Service Azure SQL Database. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name *string `pulumi:"name"` // A map of parameters to associate with the Data Factory Linked Service Azure SQL Database. Parameters map[string]string `pulumi:"parameters"` // The service principal id in which to authenticate against the Azure SQL Database. Required if `servicePrincipalKey` is set. ServicePrincipalId *string `pulumi:"servicePrincipalId"` // The service principal key in which to authenticate against the Azure SQL Database. Required if `servicePrincipalId` is set. ServicePrincipalKey *string `pulumi:"servicePrincipalKey"` // The tenant id or name in which to authenticate against the Azure SQL Database. TenantId *string `pulumi:"tenantId"` // Whether to use the Data Factory's managed identity to authenticate against the Azure SQL Database. Incompatible with `servicePrincipalId` and `servicePrincipalKey` UseManagedIdentity *bool `pulumi:"useManagedIdentity"` } // The set of arguments for constructing a LinkedServiceAzureSqlDatabase resource. type LinkedServiceAzureSqlDatabaseArgs struct { // A map of additional properties to associate with the Data Factory Linked Service Azure SQL Database. AdditionalProperties pulumi.StringMapInput // List of tags that can be used for describing the Data Factory Linked Service Azure SQL Database. Annotations pulumi.StringArrayInput // The connection string in which to authenticate with Azure SQL Database. Exactly one of either `connectionString` or `keyVaultConnectionString` is required. ConnectionString pulumi.StringPtrInput // The name of a User-assigned Managed Identity. Use this argument to authenticate against the linked resource using a User-assigned Managed Identity. CredentialName pulumi.StringPtrInput // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId pulumi.StringInput // The description for the Data Factory Linked Service Azure SQL Database. Description pulumi.StringPtrInput // The integration runtime reference to associate with the Data Factory Linked Service Azure SQL Database. IntegrationRuntimeName pulumi.StringPtrInput // A `keyVaultConnectionString` block as defined below. Use this argument to store Azure SQL Database connection string in an existing Key Vault. It needs an existing Key Vault Data Factory Linked Service. Exactly one of either `connectionString` or `keyVaultConnectionString` is required. KeyVaultConnectionString LinkedServiceAzureSqlDatabaseKeyVaultConnectionStringPtrInput // A `keyVaultPassword` block as defined below. Use this argument to store SQL Server password in an existing Key Vault. It needs an existing Key Vault Data Factory Linked Service. KeyVaultPassword LinkedServiceAzureSqlDatabaseKeyVaultPasswordPtrInput // Specifies the name of the Data Factory Linked Service Azure SQL Database. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringPtrInput // A map of parameters to associate with the Data Factory Linked Service Azure SQL Database. Parameters pulumi.StringMapInput // The service principal id in which to authenticate against the Azure SQL Database. Required if `servicePrincipalKey` is set. ServicePrincipalId pulumi.StringPtrInput // The service principal key in which to authenticate against the Azure SQL Database. Required if `servicePrincipalId` is set. ServicePrincipalKey pulumi.StringPtrInput // The tenant id or name in which to authenticate against the Azure SQL Database. TenantId pulumi.StringPtrInput // Whether to use the Data Factory's managed identity to authenticate against the Azure SQL Database. Incompatible with `servicePrincipalId` and `servicePrincipalKey` UseManagedIdentity pulumi.BoolPtrInput } func (LinkedServiceAzureSqlDatabaseArgs) ElementType() reflect.Type { return reflect.TypeOf((*linkedServiceAzureSqlDatabaseArgs)(nil)).Elem() } type LinkedServiceAzureSqlDatabaseInput interface { pulumi.Input ToLinkedServiceAzureSqlDatabaseOutput() LinkedServiceAzureSqlDatabaseOutput ToLinkedServiceAzureSqlDatabaseOutputWithContext(ctx context.Context) LinkedServiceAzureSqlDatabaseOutput } func (*LinkedServiceAzureSqlDatabase) ElementType() reflect.Type { return reflect.TypeOf((**LinkedServiceAzureSqlDatabase)(nil)).Elem() } func (i *LinkedServiceAzureSqlDatabase) ToLinkedServiceAzureSqlDatabaseOutput() LinkedServiceAzureSqlDatabaseOutput { return i.ToLinkedServiceAzureSqlDatabaseOutputWithContext(context.Background()) } func (i *LinkedServiceAzureSqlDatabase) ToLinkedServiceAzureSqlDatabaseOutputWithContext(ctx context.Context) LinkedServiceAzureSqlDatabaseOutput { return pulumi.ToOutputWithContext(ctx, i).(LinkedServiceAzureSqlDatabaseOutput) } // LinkedServiceAzureSqlDatabaseArrayInput is an input type that accepts LinkedServiceAzureSqlDatabaseArray and LinkedServiceAzureSqlDatabaseArrayOutput values. // You can construct a concrete instance of `LinkedServiceAzureSqlDatabaseArrayInput` via: // // LinkedServiceAzureSqlDatabaseArray{ LinkedServiceAzureSqlDatabaseArgs{...} } type LinkedServiceAzureSqlDatabaseArrayInput interface { pulumi.Input ToLinkedServiceAzureSqlDatabaseArrayOutput() LinkedServiceAzureSqlDatabaseArrayOutput ToLinkedServiceAzureSqlDatabaseArrayOutputWithContext(context.Context) LinkedServiceAzureSqlDatabaseArrayOutput } type LinkedServiceAzureSqlDatabaseArray []LinkedServiceAzureSqlDatabaseInput func (LinkedServiceAzureSqlDatabaseArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*LinkedServiceAzureSqlDatabase)(nil)).Elem() } func (i LinkedServiceAzureSqlDatabaseArray) ToLinkedServiceAzureSqlDatabaseArrayOutput() LinkedServiceAzureSqlDatabaseArrayOutput { return i.ToLinkedServiceAzureSqlDatabaseArrayOutputWithContext(context.Background()) } func (i LinkedServiceAzureSqlDatabaseArray) ToLinkedServiceAzureSqlDatabaseArrayOutputWithContext(ctx context.Context) LinkedServiceAzureSqlDatabaseArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(LinkedServiceAzureSqlDatabaseArrayOutput) } // LinkedServiceAzureSqlDatabaseMapInput is an input type that accepts LinkedServiceAzureSqlDatabaseMap and LinkedServiceAzureSqlDatabaseMapOutput values. // You can construct a concrete instance of `LinkedServiceAzureSqlDatabaseMapInput` via: // // LinkedServiceAzureSqlDatabaseMap{ "key": LinkedServiceAzureSqlDatabaseArgs{...} } type LinkedServiceAzureSqlDatabaseMapInput interface { pulumi.Input ToLinkedServiceAzureSqlDatabaseMapOutput() LinkedServiceAzureSqlDatabaseMapOutput ToLinkedServiceAzureSqlDatabaseMapOutputWithContext(context.Context) LinkedServiceAzureSqlDatabaseMapOutput } type LinkedServiceAzureSqlDatabaseMap map[string]LinkedServiceAzureSqlDatabaseInput func (LinkedServiceAzureSqlDatabaseMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*LinkedServiceAzureSqlDatabase)(nil)).Elem() } func (i LinkedServiceAzureSqlDatabaseMap) ToLinkedServiceAzureSqlDatabaseMapOutput() LinkedServiceAzureSqlDatabaseMapOutput { return i.ToLinkedServiceAzureSqlDatabaseMapOutputWithContext(context.Background()) } func (i LinkedServiceAzureSqlDatabaseMap) ToLinkedServiceAzureSqlDatabaseMapOutputWithContext(ctx context.Context) LinkedServiceAzureSqlDatabaseMapOutput { return pulumi.ToOutputWithContext(ctx, i).(LinkedServiceAzureSqlDatabaseMapOutput) } type LinkedServiceAzureSqlDatabaseOutput struct{ *pulumi.OutputState } func (LinkedServiceAzureSqlDatabaseOutput) ElementType() reflect.Type { return reflect.TypeOf((**LinkedServiceAzureSqlDatabase)(nil)).Elem() } func (o LinkedServiceAzureSqlDatabaseOutput) ToLinkedServiceAzureSqlDatabaseOutput() LinkedServiceAzureSqlDatabaseOutput { return o } func (o LinkedServiceAzureSqlDatabaseOutput) ToLinkedServiceAzureSqlDatabaseOutputWithContext(ctx context.Context) LinkedServiceAzureSqlDatabaseOutput { return o } // A map of additional properties to associate with the Data Factory Linked Service Azure SQL Database. func (o LinkedServiceAzureSqlDatabaseOutput) AdditionalProperties() pulumi.StringMapOutput { return o.ApplyT(func(v *LinkedServiceAzureSqlDatabase) pulumi.StringMapOutput { return v.AdditionalProperties }).(pulumi.StringMapOutput) } // List of tags that can be used for describing the Data Factory Linked Service Azure SQL Database. func (o LinkedServiceAzureSqlDatabaseOutput) Annotations() pulumi.StringArrayOutput { return o.ApplyT(func(v *LinkedServiceAzureSqlDatabase) pulumi.StringArrayOutput { return v.Annotations }).(pulumi.StringArrayOutput) } // The connection string in which to authenticate with Azure SQL Database. Exactly one of either `connectionString` or `keyVaultConnectionString` is required. func (o LinkedServiceAzureSqlDatabaseOutput) ConnectionString() pulumi.StringPtrOutput { return o.ApplyT(func(v *LinkedServiceAzureSqlDatabase) pulumi.StringPtrOutput { return v.ConnectionString }).(pulumi.StringPtrOutput) } // The name of a User-assigned Managed Identity. Use this argument to authenticate against the linked resource using a User-assigned Managed Identity. func (o LinkedServiceAzureSqlDatabaseOutput) CredentialName() pulumi.StringPtrOutput { return o.ApplyT(func(v *LinkedServiceAzureSqlDatabase) pulumi.StringPtrOutput { return v.CredentialName }).(pulumi.StringPtrOutput) } // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. func (o LinkedServiceAzureSqlDatabaseOutput) DataFactoryId() pulumi.StringOutput { return o.ApplyT(func(v *LinkedServiceAzureSqlDatabase) pulumi.StringOutput { return v.DataFactoryId }).(pulumi.StringOutput) } // The description for the Data Factory Linked Service Azure SQL Database. func (o LinkedServiceAzureSqlDatabaseOutput) Description() pulumi.StringPtrOutput { return o.ApplyT(func(v *LinkedServiceAzureSqlDatabase) pulumi.StringPtrOutput { return v.Description }).(pulumi.StringPtrOutput) } // The integration runtime reference to associate with the Data Factory Linked Service Azure SQL Database. func (o LinkedServiceAzureSqlDatabaseOutput) IntegrationRuntimeName() pulumi.StringPtrOutput { return o.ApplyT(func(v *LinkedServiceAzureSqlDatabase) pulumi.StringPtrOutput { return v.IntegrationRuntimeName }).(pulumi.StringPtrOutput) } // A `keyVaultConnectionString` block as defined below. Use this argument to store Azure SQL Database connection string in an existing Key Vault. It needs an existing Key Vault Data Factory Linked Service. Exactly one of either `connectionString` or `keyVaultConnectionString` is required. func (o LinkedServiceAzureSqlDatabaseOutput) KeyVaultConnectionString() LinkedServiceAzureSqlDatabaseKeyVaultConnectionStringPtrOutput { return o.ApplyT(func(v *LinkedServiceAzureSqlDatabase) LinkedServiceAzureSqlDatabaseKeyVaultConnectionStringPtrOutput { return v.KeyVaultConnectionString }).(LinkedServiceAzureSqlDatabaseKeyVaultConnectionStringPtrOutput) } // A `keyVaultPassword` block as defined below. Use this argument to store SQL Server password in an existing Key Vault. It needs an existing Key Vault Data Factory Linked Service. func (o LinkedServiceAzureSqlDatabaseOutput) KeyVaultPassword() LinkedServiceAzureSqlDatabaseKeyVaultPasswordPtrOutput { return o.ApplyT(func(v *LinkedServiceAzureSqlDatabase) LinkedServiceAzureSqlDatabaseKeyVaultPasswordPtrOutput { return v.KeyVaultPassword }).(LinkedServiceAzureSqlDatabaseKeyVaultPasswordPtrOutput) } // Specifies the name of the Data Factory Linked Service Azure SQL Database. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. func (o LinkedServiceAzureSqlDatabaseOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *LinkedServiceAzureSqlDatabase) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // A map of parameters to associate with the Data Factory Linked Service Azure SQL Database. func (o LinkedServiceAzureSqlDatabaseOutput) Parameters() pulumi.StringMapOutput { return o.ApplyT(func(v *LinkedServiceAzureSqlDatabase) pulumi.StringMapOutput { return v.Parameters }).(pulumi.StringMapOutput) } // The service principal id in which to authenticate against the Azure SQL Database. Required if `servicePrincipalKey` is set. func (o LinkedServiceAzureSqlDatabaseOutput) ServicePrincipalId() pulumi.StringPtrOutput { return o.ApplyT(func(v *LinkedServiceAzureSqlDatabase) pulumi.StringPtrOutput { return v.ServicePrincipalId }).(pulumi.StringPtrOutput) } // The service principal key in which to authenticate against the Azure SQL Database. Required if `servicePrincipalId` is set. func (o LinkedServiceAzureSqlDatabaseOutput) ServicePrincipalKey() pulumi.StringPtrOutput { return o.ApplyT(func(v *LinkedServiceAzureSqlDatabase) pulumi.StringPtrOutput { return v.ServicePrincipalKey }).(pulumi.StringPtrOutput) } // The tenant id or name in which to authenticate against the Azure SQL Database. func (o LinkedServiceAzureSqlDatabaseOutput) TenantId() pulumi.StringPtrOutput { return o.ApplyT(func(v *LinkedServiceAzureSqlDatabase) pulumi.StringPtrOutput { return v.TenantId }).(pulumi.StringPtrOutput) } // Whether to use the Data Factory's managed identity to authenticate against the Azure SQL Database. Incompatible with `servicePrincipalId` and `servicePrincipalKey` func (o LinkedServiceAzureSqlDatabaseOutput) UseManagedIdentity() pulumi.BoolPtrOutput { return o.ApplyT(func(v *LinkedServiceAzureSqlDatabase) pulumi.BoolPtrOutput { return v.UseManagedIdentity }).(pulumi.BoolPtrOutput) } type LinkedServiceAzureSqlDatabaseArrayOutput struct{ *pulumi.OutputState } func (LinkedServiceAzureSqlDatabaseArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*LinkedServiceAzureSqlDatabase)(nil)).Elem() } func (o LinkedServiceAzureSqlDatabaseArrayOutput) ToLinkedServiceAzureSqlDatabaseArrayOutput() LinkedServiceAzureSqlDatabaseArrayOutput { return o } func (o LinkedServiceAzureSqlDatabaseArrayOutput) ToLinkedServiceAzureSqlDatabaseArrayOutputWithContext(ctx context.Context) LinkedServiceAzureSqlDatabaseArrayOutput { return o } func (o LinkedServiceAzureSqlDatabaseArrayOutput) Index(i pulumi.IntInput) LinkedServiceAzureSqlDatabaseOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *LinkedServiceAzureSqlDatabase { return vs[0].([]*LinkedServiceAzureSqlDatabase)[vs[1].(int)] }).(LinkedServiceAzureSqlDatabaseOutput) } type LinkedServiceAzureSqlDatabaseMapOutput struct{ *pulumi.OutputState } func (LinkedServiceAzureSqlDatabaseMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*LinkedServiceAzureSqlDatabase)(nil)).Elem() } func (o LinkedServiceAzureSqlDatabaseMapOutput) ToLinkedServiceAzureSqlDatabaseMapOutput() LinkedServiceAzureSqlDatabaseMapOutput { return o } func (o LinkedServiceAzureSqlDatabaseMapOutput) ToLinkedServiceAzureSqlDatabaseMapOutputWithContext(ctx context.Context) LinkedServiceAzureSqlDatabaseMapOutput { return o } func (o LinkedServiceAzureSqlDatabaseMapOutput) MapIndex(k pulumi.StringInput) LinkedServiceAzureSqlDatabaseOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *LinkedServiceAzureSqlDatabase { return vs[0].(map[string]*LinkedServiceAzureSqlDatabase)[vs[1].(string)] }).(LinkedServiceAzureSqlDatabaseOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*LinkedServiceAzureSqlDatabaseInput)(nil)).Elem(), &LinkedServiceAzureSqlDatabase{}) pulumi.RegisterInputType(reflect.TypeOf((*LinkedServiceAzureSqlDatabaseArrayInput)(nil)).Elem(), LinkedServiceAzureSqlDatabaseArray{}) pulumi.RegisterInputType(reflect.TypeOf((*LinkedServiceAzureSqlDatabaseMapInput)(nil)).Elem(), LinkedServiceAzureSqlDatabaseMap{}) pulumi.RegisterOutputType(LinkedServiceAzureSqlDatabaseOutput{}) pulumi.RegisterOutputType(LinkedServiceAzureSqlDatabaseArrayOutput{}) pulumi.RegisterOutputType(LinkedServiceAzureSqlDatabaseMapOutput{}) }
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/datafactory/linkedServiceMysql.go
sdk/go/azure/datafactory/linkedServiceMysql.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 datafactory import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a Linked Service (connection) between MySQL and Azure Data Factory. // // ## 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/datafactory" // "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 // } // exampleFactory, err := datafactory.NewFactory(ctx, "example", &datafactory.FactoryArgs{ // Name: pulumi.String("example"), // Location: example.Location, // ResourceGroupName: example.Name, // }) // if err != nil { // return err // } // _, err = datafactory.NewLinkedServiceMysql(ctx, "example", &datafactory.LinkedServiceMysqlArgs{ // Name: pulumi.String("example"), // DataFactoryId: exampleFactory.ID(), // ConnectionString: pulumi.String("Server=test;Port=3306;Database=test;User=test;SSLMode=1;UseSystemTrustStore=0;Password=test"), // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## Import // // Data Factory MySQL Linked Service's can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:datafactory/linkedServiceMysql:LinkedServiceMysql example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example/providers/Microsoft.DataFactory/factories/example/linkedservices/example // ``` type LinkedServiceMysql struct { pulumi.CustomResourceState // A map of additional properties to associate with the Data Factory Linked Service MySQL. AdditionalProperties pulumi.StringMapOutput `pulumi:"additionalProperties"` // List of tags that can be used for describing the Data Factory Linked Service MySQL. Annotations pulumi.StringArrayOutput `pulumi:"annotations"` // The connection string in which to authenticate with MySQL. ConnectionString pulumi.StringOutput `pulumi:"connectionString"` // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId pulumi.StringOutput `pulumi:"dataFactoryId"` // The description for the Data Factory Linked Service MySQL. Description pulumi.StringPtrOutput `pulumi:"description"` // The integration runtime reference to associate with the Data Factory Linked Service MySQL. IntegrationRuntimeName pulumi.StringPtrOutput `pulumi:"integrationRuntimeName"` // Specifies the name of the Data Factory Linked Service MySQL. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringOutput `pulumi:"name"` // A map of parameters to associate with the Data Factory Linked Service MySQL. Parameters pulumi.StringMapOutput `pulumi:"parameters"` } // NewLinkedServiceMysql registers a new resource with the given unique name, arguments, and options. func NewLinkedServiceMysql(ctx *pulumi.Context, name string, args *LinkedServiceMysqlArgs, opts ...pulumi.ResourceOption) (*LinkedServiceMysql, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.ConnectionString == nil { return nil, errors.New("invalid value for required argument 'ConnectionString'") } if args.DataFactoryId == nil { return nil, errors.New("invalid value for required argument 'DataFactoryId'") } opts = internal.PkgResourceDefaultOpts(opts) var resource LinkedServiceMysql err := ctx.RegisterResource("azure:datafactory/linkedServiceMysql:LinkedServiceMysql", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetLinkedServiceMysql gets an existing LinkedServiceMysql 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 GetLinkedServiceMysql(ctx *pulumi.Context, name string, id pulumi.IDInput, state *LinkedServiceMysqlState, opts ...pulumi.ResourceOption) (*LinkedServiceMysql, error) { var resource LinkedServiceMysql err := ctx.ReadResource("azure:datafactory/linkedServiceMysql:LinkedServiceMysql", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering LinkedServiceMysql resources. type linkedServiceMysqlState struct { // A map of additional properties to associate with the Data Factory Linked Service MySQL. AdditionalProperties map[string]string `pulumi:"additionalProperties"` // List of tags that can be used for describing the Data Factory Linked Service MySQL. Annotations []string `pulumi:"annotations"` // The connection string in which to authenticate with MySQL. ConnectionString *string `pulumi:"connectionString"` // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId *string `pulumi:"dataFactoryId"` // The description for the Data Factory Linked Service MySQL. Description *string `pulumi:"description"` // The integration runtime reference to associate with the Data Factory Linked Service MySQL. IntegrationRuntimeName *string `pulumi:"integrationRuntimeName"` // Specifies the name of the Data Factory Linked Service MySQL. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name *string `pulumi:"name"` // A map of parameters to associate with the Data Factory Linked Service MySQL. Parameters map[string]string `pulumi:"parameters"` } type LinkedServiceMysqlState struct { // A map of additional properties to associate with the Data Factory Linked Service MySQL. AdditionalProperties pulumi.StringMapInput // List of tags that can be used for describing the Data Factory Linked Service MySQL. Annotations pulumi.StringArrayInput // The connection string in which to authenticate with MySQL. ConnectionString pulumi.StringPtrInput // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId pulumi.StringPtrInput // The description for the Data Factory Linked Service MySQL. Description pulumi.StringPtrInput // The integration runtime reference to associate with the Data Factory Linked Service MySQL. IntegrationRuntimeName pulumi.StringPtrInput // Specifies the name of the Data Factory Linked Service MySQL. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringPtrInput // A map of parameters to associate with the Data Factory Linked Service MySQL. Parameters pulumi.StringMapInput } func (LinkedServiceMysqlState) ElementType() reflect.Type { return reflect.TypeOf((*linkedServiceMysqlState)(nil)).Elem() } type linkedServiceMysqlArgs struct { // A map of additional properties to associate with the Data Factory Linked Service MySQL. AdditionalProperties map[string]string `pulumi:"additionalProperties"` // List of tags that can be used for describing the Data Factory Linked Service MySQL. Annotations []string `pulumi:"annotations"` // The connection string in which to authenticate with MySQL. ConnectionString string `pulumi:"connectionString"` // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId string `pulumi:"dataFactoryId"` // The description for the Data Factory Linked Service MySQL. Description *string `pulumi:"description"` // The integration runtime reference to associate with the Data Factory Linked Service MySQL. IntegrationRuntimeName *string `pulumi:"integrationRuntimeName"` // Specifies the name of the Data Factory Linked Service MySQL. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name *string `pulumi:"name"` // A map of parameters to associate with the Data Factory Linked Service MySQL. Parameters map[string]string `pulumi:"parameters"` } // The set of arguments for constructing a LinkedServiceMysql resource. type LinkedServiceMysqlArgs struct { // A map of additional properties to associate with the Data Factory Linked Service MySQL. AdditionalProperties pulumi.StringMapInput // List of tags that can be used for describing the Data Factory Linked Service MySQL. Annotations pulumi.StringArrayInput // The connection string in which to authenticate with MySQL. ConnectionString pulumi.StringInput // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId pulumi.StringInput // The description for the Data Factory Linked Service MySQL. Description pulumi.StringPtrInput // The integration runtime reference to associate with the Data Factory Linked Service MySQL. IntegrationRuntimeName pulumi.StringPtrInput // Specifies the name of the Data Factory Linked Service MySQL. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringPtrInput // A map of parameters to associate with the Data Factory Linked Service MySQL. Parameters pulumi.StringMapInput } func (LinkedServiceMysqlArgs) ElementType() reflect.Type { return reflect.TypeOf((*linkedServiceMysqlArgs)(nil)).Elem() } type LinkedServiceMysqlInput interface { pulumi.Input ToLinkedServiceMysqlOutput() LinkedServiceMysqlOutput ToLinkedServiceMysqlOutputWithContext(ctx context.Context) LinkedServiceMysqlOutput } func (*LinkedServiceMysql) ElementType() reflect.Type { return reflect.TypeOf((**LinkedServiceMysql)(nil)).Elem() } func (i *LinkedServiceMysql) ToLinkedServiceMysqlOutput() LinkedServiceMysqlOutput { return i.ToLinkedServiceMysqlOutputWithContext(context.Background()) } func (i *LinkedServiceMysql) ToLinkedServiceMysqlOutputWithContext(ctx context.Context) LinkedServiceMysqlOutput { return pulumi.ToOutputWithContext(ctx, i).(LinkedServiceMysqlOutput) } // LinkedServiceMysqlArrayInput is an input type that accepts LinkedServiceMysqlArray and LinkedServiceMysqlArrayOutput values. // You can construct a concrete instance of `LinkedServiceMysqlArrayInput` via: // // LinkedServiceMysqlArray{ LinkedServiceMysqlArgs{...} } type LinkedServiceMysqlArrayInput interface { pulumi.Input ToLinkedServiceMysqlArrayOutput() LinkedServiceMysqlArrayOutput ToLinkedServiceMysqlArrayOutputWithContext(context.Context) LinkedServiceMysqlArrayOutput } type LinkedServiceMysqlArray []LinkedServiceMysqlInput func (LinkedServiceMysqlArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*LinkedServiceMysql)(nil)).Elem() } func (i LinkedServiceMysqlArray) ToLinkedServiceMysqlArrayOutput() LinkedServiceMysqlArrayOutput { return i.ToLinkedServiceMysqlArrayOutputWithContext(context.Background()) } func (i LinkedServiceMysqlArray) ToLinkedServiceMysqlArrayOutputWithContext(ctx context.Context) LinkedServiceMysqlArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(LinkedServiceMysqlArrayOutput) } // LinkedServiceMysqlMapInput is an input type that accepts LinkedServiceMysqlMap and LinkedServiceMysqlMapOutput values. // You can construct a concrete instance of `LinkedServiceMysqlMapInput` via: // // LinkedServiceMysqlMap{ "key": LinkedServiceMysqlArgs{...} } type LinkedServiceMysqlMapInput interface { pulumi.Input ToLinkedServiceMysqlMapOutput() LinkedServiceMysqlMapOutput ToLinkedServiceMysqlMapOutputWithContext(context.Context) LinkedServiceMysqlMapOutput } type LinkedServiceMysqlMap map[string]LinkedServiceMysqlInput func (LinkedServiceMysqlMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*LinkedServiceMysql)(nil)).Elem() } func (i LinkedServiceMysqlMap) ToLinkedServiceMysqlMapOutput() LinkedServiceMysqlMapOutput { return i.ToLinkedServiceMysqlMapOutputWithContext(context.Background()) } func (i LinkedServiceMysqlMap) ToLinkedServiceMysqlMapOutputWithContext(ctx context.Context) LinkedServiceMysqlMapOutput { return pulumi.ToOutputWithContext(ctx, i).(LinkedServiceMysqlMapOutput) } type LinkedServiceMysqlOutput struct{ *pulumi.OutputState } func (LinkedServiceMysqlOutput) ElementType() reflect.Type { return reflect.TypeOf((**LinkedServiceMysql)(nil)).Elem() } func (o LinkedServiceMysqlOutput) ToLinkedServiceMysqlOutput() LinkedServiceMysqlOutput { return o } func (o LinkedServiceMysqlOutput) ToLinkedServiceMysqlOutputWithContext(ctx context.Context) LinkedServiceMysqlOutput { return o } // A map of additional properties to associate with the Data Factory Linked Service MySQL. func (o LinkedServiceMysqlOutput) AdditionalProperties() pulumi.StringMapOutput { return o.ApplyT(func(v *LinkedServiceMysql) pulumi.StringMapOutput { return v.AdditionalProperties }).(pulumi.StringMapOutput) } // List of tags that can be used for describing the Data Factory Linked Service MySQL. func (o LinkedServiceMysqlOutput) Annotations() pulumi.StringArrayOutput { return o.ApplyT(func(v *LinkedServiceMysql) pulumi.StringArrayOutput { return v.Annotations }).(pulumi.StringArrayOutput) } // The connection string in which to authenticate with MySQL. func (o LinkedServiceMysqlOutput) ConnectionString() pulumi.StringOutput { return o.ApplyT(func(v *LinkedServiceMysql) pulumi.StringOutput { return v.ConnectionString }).(pulumi.StringOutput) } // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. func (o LinkedServiceMysqlOutput) DataFactoryId() pulumi.StringOutput { return o.ApplyT(func(v *LinkedServiceMysql) pulumi.StringOutput { return v.DataFactoryId }).(pulumi.StringOutput) } // The description for the Data Factory Linked Service MySQL. func (o LinkedServiceMysqlOutput) Description() pulumi.StringPtrOutput { return o.ApplyT(func(v *LinkedServiceMysql) pulumi.StringPtrOutput { return v.Description }).(pulumi.StringPtrOutput) } // The integration runtime reference to associate with the Data Factory Linked Service MySQL. func (o LinkedServiceMysqlOutput) IntegrationRuntimeName() pulumi.StringPtrOutput { return o.ApplyT(func(v *LinkedServiceMysql) pulumi.StringPtrOutput { return v.IntegrationRuntimeName }).(pulumi.StringPtrOutput) } // Specifies the name of the Data Factory Linked Service MySQL. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. func (o LinkedServiceMysqlOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *LinkedServiceMysql) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // A map of parameters to associate with the Data Factory Linked Service MySQL. func (o LinkedServiceMysqlOutput) Parameters() pulumi.StringMapOutput { return o.ApplyT(func(v *LinkedServiceMysql) pulumi.StringMapOutput { return v.Parameters }).(pulumi.StringMapOutput) } type LinkedServiceMysqlArrayOutput struct{ *pulumi.OutputState } func (LinkedServiceMysqlArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*LinkedServiceMysql)(nil)).Elem() } func (o LinkedServiceMysqlArrayOutput) ToLinkedServiceMysqlArrayOutput() LinkedServiceMysqlArrayOutput { return o } func (o LinkedServiceMysqlArrayOutput) ToLinkedServiceMysqlArrayOutputWithContext(ctx context.Context) LinkedServiceMysqlArrayOutput { return o } func (o LinkedServiceMysqlArrayOutput) Index(i pulumi.IntInput) LinkedServiceMysqlOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *LinkedServiceMysql { return vs[0].([]*LinkedServiceMysql)[vs[1].(int)] }).(LinkedServiceMysqlOutput) } type LinkedServiceMysqlMapOutput struct{ *pulumi.OutputState } func (LinkedServiceMysqlMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*LinkedServiceMysql)(nil)).Elem() } func (o LinkedServiceMysqlMapOutput) ToLinkedServiceMysqlMapOutput() LinkedServiceMysqlMapOutput { return o } func (o LinkedServiceMysqlMapOutput) ToLinkedServiceMysqlMapOutputWithContext(ctx context.Context) LinkedServiceMysqlMapOutput { return o } func (o LinkedServiceMysqlMapOutput) MapIndex(k pulumi.StringInput) LinkedServiceMysqlOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *LinkedServiceMysql { return vs[0].(map[string]*LinkedServiceMysql)[vs[1].(string)] }).(LinkedServiceMysqlOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*LinkedServiceMysqlInput)(nil)).Elem(), &LinkedServiceMysql{}) pulumi.RegisterInputType(reflect.TypeOf((*LinkedServiceMysqlArrayInput)(nil)).Elem(), LinkedServiceMysqlArray{}) pulumi.RegisterInputType(reflect.TypeOf((*LinkedServiceMysqlMapInput)(nil)).Elem(), LinkedServiceMysqlMap{}) pulumi.RegisterOutputType(LinkedServiceMysqlOutput{}) pulumi.RegisterOutputType(LinkedServiceMysqlArrayOutput{}) pulumi.RegisterOutputType(LinkedServiceMysqlMapOutput{}) }
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/datafactory/datasetAzureBlob.go
sdk/go/azure/datafactory/datasetAzureBlob.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 datafactory 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 Blob Dataset inside an Azure Data Factory. // // ## 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/datafactory" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/storage" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { // exampleResourceGroup, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{ // Name: pulumi.String("example-resources"), // Location: pulumi.String("West Europe"), // }) // if err != nil { // return err // } // example := storage.LookupAccountOutput(ctx, storage.GetAccountOutputArgs{ // Name: pulumi.String("storageaccountname"), // ResourceGroupName: exampleResourceGroup.Name, // }, nil) // exampleFactory, err := datafactory.NewFactory(ctx, "example", &datafactory.FactoryArgs{ // Name: pulumi.String("example"), // Location: exampleResourceGroup.Location, // ResourceGroupName: exampleResourceGroup.Name, // }) // if err != nil { // return err // } // exampleLinkedServiceAzureBlobStorage, err := datafactory.NewLinkedServiceAzureBlobStorage(ctx, "example", &datafactory.LinkedServiceAzureBlobStorageArgs{ // Name: pulumi.String("example"), // DataFactoryId: exampleFactory.ID(), // ConnectionString: pulumi.String(example.ApplyT(func(example storage.GetAccountResult) (*string, error) { // return &example.PrimaryConnectionString, nil // }).(pulumi.StringPtrOutput)), // }) // if err != nil { // return err // } // _, err = datafactory.NewDatasetAzureBlob(ctx, "example", &datafactory.DatasetAzureBlobArgs{ // Name: pulumi.String("example"), // DataFactoryId: exampleFactory.ID(), // LinkedServiceName: exampleLinkedServiceAzureBlobStorage.Name, // Path: pulumi.String("foo"), // Filename: pulumi.String("bar.png"), // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## Import // // Data Factory Datasets can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:datafactory/datasetAzureBlob:DatasetAzureBlob example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example/providers/Microsoft.DataFactory/factories/example/datasets/example // ``` type DatasetAzureBlob struct { pulumi.CustomResourceState // A map of additional properties to associate with the Data Factory Dataset. // // The following supported arguments are specific to Azure Blob Dataset: AdditionalProperties pulumi.StringMapOutput `pulumi:"additionalProperties"` // List of tags that can be used for describing the Data Factory Dataset. Annotations pulumi.StringArrayOutput `pulumi:"annotations"` // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId pulumi.StringOutput `pulumi:"dataFactoryId"` // The description for the Data Factory Dataset. Description pulumi.StringPtrOutput `pulumi:"description"` // Is the `filename` using dynamic expression, function or system variables? Defaults to `false`. DynamicFilenameEnabled pulumi.BoolPtrOutput `pulumi:"dynamicFilenameEnabled"` // Is the `path` using dynamic expression, function or system variables? Defaults to `false`. DynamicPathEnabled pulumi.BoolPtrOutput `pulumi:"dynamicPathEnabled"` // The filename of the Azure Blob. Filename pulumi.StringPtrOutput `pulumi:"filename"` // The folder that this Dataset is in. If not specified, the Dataset will appear at the root level. Folder pulumi.StringPtrOutput `pulumi:"folder"` // The Data Factory Linked Service name in which to associate the Dataset with. LinkedServiceName pulumi.StringOutput `pulumi:"linkedServiceName"` // Specifies the name of the Data Factory Dataset. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringOutput `pulumi:"name"` // A map of parameters to associate with the Data Factory Dataset. Parameters pulumi.StringMapOutput `pulumi:"parameters"` // The path of the Azure Blob. Path pulumi.StringPtrOutput `pulumi:"path"` // A `schemaColumn` block as defined below. SchemaColumns DatasetAzureBlobSchemaColumnArrayOutput `pulumi:"schemaColumns"` } // NewDatasetAzureBlob registers a new resource with the given unique name, arguments, and options. func NewDatasetAzureBlob(ctx *pulumi.Context, name string, args *DatasetAzureBlobArgs, opts ...pulumi.ResourceOption) (*DatasetAzureBlob, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.DataFactoryId == nil { return nil, errors.New("invalid value for required argument 'DataFactoryId'") } if args.LinkedServiceName == nil { return nil, errors.New("invalid value for required argument 'LinkedServiceName'") } opts = internal.PkgResourceDefaultOpts(opts) var resource DatasetAzureBlob err := ctx.RegisterResource("azure:datafactory/datasetAzureBlob:DatasetAzureBlob", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetDatasetAzureBlob gets an existing DatasetAzureBlob 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 GetDatasetAzureBlob(ctx *pulumi.Context, name string, id pulumi.IDInput, state *DatasetAzureBlobState, opts ...pulumi.ResourceOption) (*DatasetAzureBlob, error) { var resource DatasetAzureBlob err := ctx.ReadResource("azure:datafactory/datasetAzureBlob:DatasetAzureBlob", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering DatasetAzureBlob resources. type datasetAzureBlobState struct { // A map of additional properties to associate with the Data Factory Dataset. // // The following supported arguments are specific to Azure Blob Dataset: AdditionalProperties map[string]string `pulumi:"additionalProperties"` // List of tags that can be used for describing the Data Factory Dataset. Annotations []string `pulumi:"annotations"` // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId *string `pulumi:"dataFactoryId"` // The description for the Data Factory Dataset. Description *string `pulumi:"description"` // Is the `filename` using dynamic expression, function or system variables? Defaults to `false`. DynamicFilenameEnabled *bool `pulumi:"dynamicFilenameEnabled"` // Is the `path` using dynamic expression, function or system variables? Defaults to `false`. DynamicPathEnabled *bool `pulumi:"dynamicPathEnabled"` // The filename of the Azure Blob. Filename *string `pulumi:"filename"` // The folder that this Dataset is in. If not specified, the Dataset will appear at the root level. Folder *string `pulumi:"folder"` // The Data Factory Linked Service name in which to associate the Dataset with. LinkedServiceName *string `pulumi:"linkedServiceName"` // Specifies the name of the Data Factory Dataset. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name *string `pulumi:"name"` // A map of parameters to associate with the Data Factory Dataset. Parameters map[string]string `pulumi:"parameters"` // The path of the Azure Blob. Path *string `pulumi:"path"` // A `schemaColumn` block as defined below. SchemaColumns []DatasetAzureBlobSchemaColumn `pulumi:"schemaColumns"` } type DatasetAzureBlobState struct { // A map of additional properties to associate with the Data Factory Dataset. // // The following supported arguments are specific to Azure Blob Dataset: AdditionalProperties pulumi.StringMapInput // List of tags that can be used for describing the Data Factory Dataset. Annotations pulumi.StringArrayInput // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId pulumi.StringPtrInput // The description for the Data Factory Dataset. Description pulumi.StringPtrInput // Is the `filename` using dynamic expression, function or system variables? Defaults to `false`. DynamicFilenameEnabled pulumi.BoolPtrInput // Is the `path` using dynamic expression, function or system variables? Defaults to `false`. DynamicPathEnabled pulumi.BoolPtrInput // The filename of the Azure Blob. Filename pulumi.StringPtrInput // The folder that this Dataset is in. If not specified, the Dataset will appear at the root level. Folder pulumi.StringPtrInput // The Data Factory Linked Service name in which to associate the Dataset with. LinkedServiceName pulumi.StringPtrInput // Specifies the name of the Data Factory Dataset. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringPtrInput // A map of parameters to associate with the Data Factory Dataset. Parameters pulumi.StringMapInput // The path of the Azure Blob. Path pulumi.StringPtrInput // A `schemaColumn` block as defined below. SchemaColumns DatasetAzureBlobSchemaColumnArrayInput } func (DatasetAzureBlobState) ElementType() reflect.Type { return reflect.TypeOf((*datasetAzureBlobState)(nil)).Elem() } type datasetAzureBlobArgs struct { // A map of additional properties to associate with the Data Factory Dataset. // // The following supported arguments are specific to Azure Blob Dataset: AdditionalProperties map[string]string `pulumi:"additionalProperties"` // List of tags that can be used for describing the Data Factory Dataset. Annotations []string `pulumi:"annotations"` // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId string `pulumi:"dataFactoryId"` // The description for the Data Factory Dataset. Description *string `pulumi:"description"` // Is the `filename` using dynamic expression, function or system variables? Defaults to `false`. DynamicFilenameEnabled *bool `pulumi:"dynamicFilenameEnabled"` // Is the `path` using dynamic expression, function or system variables? Defaults to `false`. DynamicPathEnabled *bool `pulumi:"dynamicPathEnabled"` // The filename of the Azure Blob. Filename *string `pulumi:"filename"` // The folder that this Dataset is in. If not specified, the Dataset will appear at the root level. Folder *string `pulumi:"folder"` // The Data Factory Linked Service name in which to associate the Dataset with. LinkedServiceName string `pulumi:"linkedServiceName"` // Specifies the name of the Data Factory Dataset. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name *string `pulumi:"name"` // A map of parameters to associate with the Data Factory Dataset. Parameters map[string]string `pulumi:"parameters"` // The path of the Azure Blob. Path *string `pulumi:"path"` // A `schemaColumn` block as defined below. SchemaColumns []DatasetAzureBlobSchemaColumn `pulumi:"schemaColumns"` } // The set of arguments for constructing a DatasetAzureBlob resource. type DatasetAzureBlobArgs struct { // A map of additional properties to associate with the Data Factory Dataset. // // The following supported arguments are specific to Azure Blob Dataset: AdditionalProperties pulumi.StringMapInput // List of tags that can be used for describing the Data Factory Dataset. Annotations pulumi.StringArrayInput // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId pulumi.StringInput // The description for the Data Factory Dataset. Description pulumi.StringPtrInput // Is the `filename` using dynamic expression, function or system variables? Defaults to `false`. DynamicFilenameEnabled pulumi.BoolPtrInput // Is the `path` using dynamic expression, function or system variables? Defaults to `false`. DynamicPathEnabled pulumi.BoolPtrInput // The filename of the Azure Blob. Filename pulumi.StringPtrInput // The folder that this Dataset is in. If not specified, the Dataset will appear at the root level. Folder pulumi.StringPtrInput // The Data Factory Linked Service name in which to associate the Dataset with. LinkedServiceName pulumi.StringInput // Specifies the name of the Data Factory Dataset. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringPtrInput // A map of parameters to associate with the Data Factory Dataset. Parameters pulumi.StringMapInput // The path of the Azure Blob. Path pulumi.StringPtrInput // A `schemaColumn` block as defined below. SchemaColumns DatasetAzureBlobSchemaColumnArrayInput } func (DatasetAzureBlobArgs) ElementType() reflect.Type { return reflect.TypeOf((*datasetAzureBlobArgs)(nil)).Elem() } type DatasetAzureBlobInput interface { pulumi.Input ToDatasetAzureBlobOutput() DatasetAzureBlobOutput ToDatasetAzureBlobOutputWithContext(ctx context.Context) DatasetAzureBlobOutput } func (*DatasetAzureBlob) ElementType() reflect.Type { return reflect.TypeOf((**DatasetAzureBlob)(nil)).Elem() } func (i *DatasetAzureBlob) ToDatasetAzureBlobOutput() DatasetAzureBlobOutput { return i.ToDatasetAzureBlobOutputWithContext(context.Background()) } func (i *DatasetAzureBlob) ToDatasetAzureBlobOutputWithContext(ctx context.Context) DatasetAzureBlobOutput { return pulumi.ToOutputWithContext(ctx, i).(DatasetAzureBlobOutput) } // DatasetAzureBlobArrayInput is an input type that accepts DatasetAzureBlobArray and DatasetAzureBlobArrayOutput values. // You can construct a concrete instance of `DatasetAzureBlobArrayInput` via: // // DatasetAzureBlobArray{ DatasetAzureBlobArgs{...} } type DatasetAzureBlobArrayInput interface { pulumi.Input ToDatasetAzureBlobArrayOutput() DatasetAzureBlobArrayOutput ToDatasetAzureBlobArrayOutputWithContext(context.Context) DatasetAzureBlobArrayOutput } type DatasetAzureBlobArray []DatasetAzureBlobInput func (DatasetAzureBlobArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*DatasetAzureBlob)(nil)).Elem() } func (i DatasetAzureBlobArray) ToDatasetAzureBlobArrayOutput() DatasetAzureBlobArrayOutput { return i.ToDatasetAzureBlobArrayOutputWithContext(context.Background()) } func (i DatasetAzureBlobArray) ToDatasetAzureBlobArrayOutputWithContext(ctx context.Context) DatasetAzureBlobArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(DatasetAzureBlobArrayOutput) } // DatasetAzureBlobMapInput is an input type that accepts DatasetAzureBlobMap and DatasetAzureBlobMapOutput values. // You can construct a concrete instance of `DatasetAzureBlobMapInput` via: // // DatasetAzureBlobMap{ "key": DatasetAzureBlobArgs{...} } type DatasetAzureBlobMapInput interface { pulumi.Input ToDatasetAzureBlobMapOutput() DatasetAzureBlobMapOutput ToDatasetAzureBlobMapOutputWithContext(context.Context) DatasetAzureBlobMapOutput } type DatasetAzureBlobMap map[string]DatasetAzureBlobInput func (DatasetAzureBlobMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*DatasetAzureBlob)(nil)).Elem() } func (i DatasetAzureBlobMap) ToDatasetAzureBlobMapOutput() DatasetAzureBlobMapOutput { return i.ToDatasetAzureBlobMapOutputWithContext(context.Background()) } func (i DatasetAzureBlobMap) ToDatasetAzureBlobMapOutputWithContext(ctx context.Context) DatasetAzureBlobMapOutput { return pulumi.ToOutputWithContext(ctx, i).(DatasetAzureBlobMapOutput) } type DatasetAzureBlobOutput struct{ *pulumi.OutputState } func (DatasetAzureBlobOutput) ElementType() reflect.Type { return reflect.TypeOf((**DatasetAzureBlob)(nil)).Elem() } func (o DatasetAzureBlobOutput) ToDatasetAzureBlobOutput() DatasetAzureBlobOutput { return o } func (o DatasetAzureBlobOutput) ToDatasetAzureBlobOutputWithContext(ctx context.Context) DatasetAzureBlobOutput { return o } // A map of additional properties to associate with the Data Factory Dataset. // // The following supported arguments are specific to Azure Blob Dataset: func (o DatasetAzureBlobOutput) AdditionalProperties() pulumi.StringMapOutput { return o.ApplyT(func(v *DatasetAzureBlob) pulumi.StringMapOutput { return v.AdditionalProperties }).(pulumi.StringMapOutput) } // List of tags that can be used for describing the Data Factory Dataset. func (o DatasetAzureBlobOutput) Annotations() pulumi.StringArrayOutput { return o.ApplyT(func(v *DatasetAzureBlob) pulumi.StringArrayOutput { return v.Annotations }).(pulumi.StringArrayOutput) } // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. func (o DatasetAzureBlobOutput) DataFactoryId() pulumi.StringOutput { return o.ApplyT(func(v *DatasetAzureBlob) pulumi.StringOutput { return v.DataFactoryId }).(pulumi.StringOutput) } // The description for the Data Factory Dataset. func (o DatasetAzureBlobOutput) Description() pulumi.StringPtrOutput { return o.ApplyT(func(v *DatasetAzureBlob) pulumi.StringPtrOutput { return v.Description }).(pulumi.StringPtrOutput) } // Is the `filename` using dynamic expression, function or system variables? Defaults to `false`. func (o DatasetAzureBlobOutput) DynamicFilenameEnabled() pulumi.BoolPtrOutput { return o.ApplyT(func(v *DatasetAzureBlob) pulumi.BoolPtrOutput { return v.DynamicFilenameEnabled }).(pulumi.BoolPtrOutput) } // Is the `path` using dynamic expression, function or system variables? Defaults to `false`. func (o DatasetAzureBlobOutput) DynamicPathEnabled() pulumi.BoolPtrOutput { return o.ApplyT(func(v *DatasetAzureBlob) pulumi.BoolPtrOutput { return v.DynamicPathEnabled }).(pulumi.BoolPtrOutput) } // The filename of the Azure Blob. func (o DatasetAzureBlobOutput) Filename() pulumi.StringPtrOutput { return o.ApplyT(func(v *DatasetAzureBlob) pulumi.StringPtrOutput { return v.Filename }).(pulumi.StringPtrOutput) } // The folder that this Dataset is in. If not specified, the Dataset will appear at the root level. func (o DatasetAzureBlobOutput) Folder() pulumi.StringPtrOutput { return o.ApplyT(func(v *DatasetAzureBlob) pulumi.StringPtrOutput { return v.Folder }).(pulumi.StringPtrOutput) } // The Data Factory Linked Service name in which to associate the Dataset with. func (o DatasetAzureBlobOutput) LinkedServiceName() pulumi.StringOutput { return o.ApplyT(func(v *DatasetAzureBlob) pulumi.StringOutput { return v.LinkedServiceName }).(pulumi.StringOutput) } // Specifies the name of the Data Factory Dataset. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. func (o DatasetAzureBlobOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *DatasetAzureBlob) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // A map of parameters to associate with the Data Factory Dataset. func (o DatasetAzureBlobOutput) Parameters() pulumi.StringMapOutput { return o.ApplyT(func(v *DatasetAzureBlob) pulumi.StringMapOutput { return v.Parameters }).(pulumi.StringMapOutput) } // The path of the Azure Blob. func (o DatasetAzureBlobOutput) Path() pulumi.StringPtrOutput { return o.ApplyT(func(v *DatasetAzureBlob) pulumi.StringPtrOutput { return v.Path }).(pulumi.StringPtrOutput) } // A `schemaColumn` block as defined below. func (o DatasetAzureBlobOutput) SchemaColumns() DatasetAzureBlobSchemaColumnArrayOutput { return o.ApplyT(func(v *DatasetAzureBlob) DatasetAzureBlobSchemaColumnArrayOutput { return v.SchemaColumns }).(DatasetAzureBlobSchemaColumnArrayOutput) } type DatasetAzureBlobArrayOutput struct{ *pulumi.OutputState } func (DatasetAzureBlobArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*DatasetAzureBlob)(nil)).Elem() } func (o DatasetAzureBlobArrayOutput) ToDatasetAzureBlobArrayOutput() DatasetAzureBlobArrayOutput { return o } func (o DatasetAzureBlobArrayOutput) ToDatasetAzureBlobArrayOutputWithContext(ctx context.Context) DatasetAzureBlobArrayOutput { return o } func (o DatasetAzureBlobArrayOutput) Index(i pulumi.IntInput) DatasetAzureBlobOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *DatasetAzureBlob { return vs[0].([]*DatasetAzureBlob)[vs[1].(int)] }).(DatasetAzureBlobOutput) } type DatasetAzureBlobMapOutput struct{ *pulumi.OutputState } func (DatasetAzureBlobMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*DatasetAzureBlob)(nil)).Elem() } func (o DatasetAzureBlobMapOutput) ToDatasetAzureBlobMapOutput() DatasetAzureBlobMapOutput { return o } func (o DatasetAzureBlobMapOutput) ToDatasetAzureBlobMapOutputWithContext(ctx context.Context) DatasetAzureBlobMapOutput { return o } func (o DatasetAzureBlobMapOutput) MapIndex(k pulumi.StringInput) DatasetAzureBlobOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *DatasetAzureBlob { return vs[0].(map[string]*DatasetAzureBlob)[vs[1].(string)] }).(DatasetAzureBlobOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*DatasetAzureBlobInput)(nil)).Elem(), &DatasetAzureBlob{}) pulumi.RegisterInputType(reflect.TypeOf((*DatasetAzureBlobArrayInput)(nil)).Elem(), DatasetAzureBlobArray{}) pulumi.RegisterInputType(reflect.TypeOf((*DatasetAzureBlobMapInput)(nil)).Elem(), DatasetAzureBlobMap{}) pulumi.RegisterOutputType(DatasetAzureBlobOutput{}) pulumi.RegisterOutputType(DatasetAzureBlobArrayOutput{}) pulumi.RegisterOutputType(DatasetAzureBlobMapOutput{}) }
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/datafactory/managedPrivateEndpoint.go
sdk/go/azure/datafactory/managedPrivateEndpoint.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 datafactory import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a Data Factory Managed Private Endpoint. // // ## 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/datafactory" // "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 // } // exampleFactory, err := datafactory.NewFactory(ctx, "example", &datafactory.FactoryArgs{ // Name: pulumi.String("example"), // Location: example.Location, // ResourceGroupName: example.Name, // ManagedVirtualNetworkEnabled: pulumi.Bool(true), // }) // if err != nil { // return err // } // exampleAccount, err := storage.NewAccount(ctx, "example", &storage.AccountArgs{ // Name: pulumi.String("example"), // ResourceGroupName: example.Name, // Location: example.Location, // AccountKind: pulumi.String("BlobStorage"), // AccountTier: pulumi.String("Standard"), // AccountReplicationType: pulumi.String("LRS"), // }) // if err != nil { // return err // } // _, err = datafactory.NewManagedPrivateEndpoint(ctx, "example", &datafactory.ManagedPrivateEndpointArgs{ // Name: pulumi.String("example"), // DataFactoryId: exampleFactory.ID(), // TargetResourceId: exampleAccount.ID(), // SubresourceName: pulumi.String("blob"), // }) // 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.DataFactory` - 2018-06-01 // // ## Import // // Data Factory Managed Private Endpoint can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:datafactory/managedPrivateEndpoint:ManagedPrivateEndpoint example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example/providers/Microsoft.DataFactory/factories/example/managedVirtualNetworks/default/managedPrivateEndpoints/endpoint1 // ``` type ManagedPrivateEndpoint struct { pulumi.CustomResourceState // The ID of the Data Factory on which to create the Managed Private Endpoint. Changing this forces a new resource to be created. DataFactoryId pulumi.StringOutput `pulumi:"dataFactoryId"` // Fully qualified domain names. Changing this forces a new resource to be created. // // > **Note:** Possible values are listed in [documentation](https://docs.microsoft.com/azure/private-link/private-endpoint-overview#dns-configuration). Fqdns pulumi.StringArrayOutput `pulumi:"fqdns"` // Specifies the name which should be used for this Managed Private Endpoint. Changing this forces a new resource to be created. Name pulumi.StringOutput `pulumi:"name"` // Specifies the sub resource name which the Data Factory Private Endpoint is able to connect to. Changing this forces a new resource to be created. SubresourceName pulumi.StringPtrOutput `pulumi:"subresourceName"` // The ID of the Private Link Enabled Remote Resource which this Data Factory Private Endpoint should be connected to. Changing this forces a new resource to be created. TargetResourceId pulumi.StringOutput `pulumi:"targetResourceId"` } // NewManagedPrivateEndpoint registers a new resource with the given unique name, arguments, and options. func NewManagedPrivateEndpoint(ctx *pulumi.Context, name string, args *ManagedPrivateEndpointArgs, opts ...pulumi.ResourceOption) (*ManagedPrivateEndpoint, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.DataFactoryId == nil { return nil, errors.New("invalid value for required argument 'DataFactoryId'") } if args.TargetResourceId == nil { return nil, errors.New("invalid value for required argument 'TargetResourceId'") } opts = internal.PkgResourceDefaultOpts(opts) var resource ManagedPrivateEndpoint err := ctx.RegisterResource("azure:datafactory/managedPrivateEndpoint:ManagedPrivateEndpoint", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetManagedPrivateEndpoint gets an existing ManagedPrivateEndpoint 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 GetManagedPrivateEndpoint(ctx *pulumi.Context, name string, id pulumi.IDInput, state *ManagedPrivateEndpointState, opts ...pulumi.ResourceOption) (*ManagedPrivateEndpoint, error) { var resource ManagedPrivateEndpoint err := ctx.ReadResource("azure:datafactory/managedPrivateEndpoint:ManagedPrivateEndpoint", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering ManagedPrivateEndpoint resources. type managedPrivateEndpointState struct { // The ID of the Data Factory on which to create the Managed Private Endpoint. Changing this forces a new resource to be created. DataFactoryId *string `pulumi:"dataFactoryId"` // Fully qualified domain names. Changing this forces a new resource to be created. // // > **Note:** Possible values are listed in [documentation](https://docs.microsoft.com/azure/private-link/private-endpoint-overview#dns-configuration). Fqdns []string `pulumi:"fqdns"` // Specifies the name which should be used for this Managed Private Endpoint. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // Specifies the sub resource name which the Data Factory Private Endpoint is able to connect to. Changing this forces a new resource to be created. SubresourceName *string `pulumi:"subresourceName"` // The ID of the Private Link Enabled Remote Resource which this Data Factory Private Endpoint should be connected to. Changing this forces a new resource to be created. TargetResourceId *string `pulumi:"targetResourceId"` } type ManagedPrivateEndpointState struct { // The ID of the Data Factory on which to create the Managed Private Endpoint. Changing this forces a new resource to be created. DataFactoryId pulumi.StringPtrInput // Fully qualified domain names. Changing this forces a new resource to be created. // // > **Note:** Possible values are listed in [documentation](https://docs.microsoft.com/azure/private-link/private-endpoint-overview#dns-configuration). Fqdns pulumi.StringArrayInput // Specifies the name which should be used for this Managed Private Endpoint. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // Specifies the sub resource name which the Data Factory Private Endpoint is able to connect to. Changing this forces a new resource to be created. SubresourceName pulumi.StringPtrInput // The ID of the Private Link Enabled Remote Resource which this Data Factory Private Endpoint should be connected to. Changing this forces a new resource to be created. TargetResourceId pulumi.StringPtrInput } func (ManagedPrivateEndpointState) ElementType() reflect.Type { return reflect.TypeOf((*managedPrivateEndpointState)(nil)).Elem() } type managedPrivateEndpointArgs struct { // The ID of the Data Factory on which to create the Managed Private Endpoint. Changing this forces a new resource to be created. DataFactoryId string `pulumi:"dataFactoryId"` // Fully qualified domain names. Changing this forces a new resource to be created. // // > **Note:** Possible values are listed in [documentation](https://docs.microsoft.com/azure/private-link/private-endpoint-overview#dns-configuration). Fqdns []string `pulumi:"fqdns"` // Specifies the name which should be used for this Managed Private Endpoint. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // Specifies the sub resource name which the Data Factory Private Endpoint is able to connect to. Changing this forces a new resource to be created. SubresourceName *string `pulumi:"subresourceName"` // The ID of the Private Link Enabled Remote Resource which this Data Factory Private Endpoint should be connected to. Changing this forces a new resource to be created. TargetResourceId string `pulumi:"targetResourceId"` } // The set of arguments for constructing a ManagedPrivateEndpoint resource. type ManagedPrivateEndpointArgs struct { // The ID of the Data Factory on which to create the Managed Private Endpoint. Changing this forces a new resource to be created. DataFactoryId pulumi.StringInput // Fully qualified domain names. Changing this forces a new resource to be created. // // > **Note:** Possible values are listed in [documentation](https://docs.microsoft.com/azure/private-link/private-endpoint-overview#dns-configuration). Fqdns pulumi.StringArrayInput // Specifies the name which should be used for this Managed Private Endpoint. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // Specifies the sub resource name which the Data Factory Private Endpoint is able to connect to. Changing this forces a new resource to be created. SubresourceName pulumi.StringPtrInput // The ID of the Private Link Enabled Remote Resource which this Data Factory Private Endpoint should be connected to. Changing this forces a new resource to be created. TargetResourceId pulumi.StringInput } func (ManagedPrivateEndpointArgs) ElementType() reflect.Type { return reflect.TypeOf((*managedPrivateEndpointArgs)(nil)).Elem() } type ManagedPrivateEndpointInput interface { pulumi.Input ToManagedPrivateEndpointOutput() ManagedPrivateEndpointOutput ToManagedPrivateEndpointOutputWithContext(ctx context.Context) ManagedPrivateEndpointOutput } func (*ManagedPrivateEndpoint) ElementType() reflect.Type { return reflect.TypeOf((**ManagedPrivateEndpoint)(nil)).Elem() } func (i *ManagedPrivateEndpoint) ToManagedPrivateEndpointOutput() ManagedPrivateEndpointOutput { return i.ToManagedPrivateEndpointOutputWithContext(context.Background()) } func (i *ManagedPrivateEndpoint) ToManagedPrivateEndpointOutputWithContext(ctx context.Context) ManagedPrivateEndpointOutput { return pulumi.ToOutputWithContext(ctx, i).(ManagedPrivateEndpointOutput) } // ManagedPrivateEndpointArrayInput is an input type that accepts ManagedPrivateEndpointArray and ManagedPrivateEndpointArrayOutput values. // You can construct a concrete instance of `ManagedPrivateEndpointArrayInput` via: // // ManagedPrivateEndpointArray{ ManagedPrivateEndpointArgs{...} } type ManagedPrivateEndpointArrayInput interface { pulumi.Input ToManagedPrivateEndpointArrayOutput() ManagedPrivateEndpointArrayOutput ToManagedPrivateEndpointArrayOutputWithContext(context.Context) ManagedPrivateEndpointArrayOutput } type ManagedPrivateEndpointArray []ManagedPrivateEndpointInput func (ManagedPrivateEndpointArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*ManagedPrivateEndpoint)(nil)).Elem() } func (i ManagedPrivateEndpointArray) ToManagedPrivateEndpointArrayOutput() ManagedPrivateEndpointArrayOutput { return i.ToManagedPrivateEndpointArrayOutputWithContext(context.Background()) } func (i ManagedPrivateEndpointArray) ToManagedPrivateEndpointArrayOutputWithContext(ctx context.Context) ManagedPrivateEndpointArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(ManagedPrivateEndpointArrayOutput) } // ManagedPrivateEndpointMapInput is an input type that accepts ManagedPrivateEndpointMap and ManagedPrivateEndpointMapOutput values. // You can construct a concrete instance of `ManagedPrivateEndpointMapInput` via: // // ManagedPrivateEndpointMap{ "key": ManagedPrivateEndpointArgs{...} } type ManagedPrivateEndpointMapInput interface { pulumi.Input ToManagedPrivateEndpointMapOutput() ManagedPrivateEndpointMapOutput ToManagedPrivateEndpointMapOutputWithContext(context.Context) ManagedPrivateEndpointMapOutput } type ManagedPrivateEndpointMap map[string]ManagedPrivateEndpointInput func (ManagedPrivateEndpointMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*ManagedPrivateEndpoint)(nil)).Elem() } func (i ManagedPrivateEndpointMap) ToManagedPrivateEndpointMapOutput() ManagedPrivateEndpointMapOutput { return i.ToManagedPrivateEndpointMapOutputWithContext(context.Background()) } func (i ManagedPrivateEndpointMap) ToManagedPrivateEndpointMapOutputWithContext(ctx context.Context) ManagedPrivateEndpointMapOutput { return pulumi.ToOutputWithContext(ctx, i).(ManagedPrivateEndpointMapOutput) } type ManagedPrivateEndpointOutput struct{ *pulumi.OutputState } func (ManagedPrivateEndpointOutput) ElementType() reflect.Type { return reflect.TypeOf((**ManagedPrivateEndpoint)(nil)).Elem() } func (o ManagedPrivateEndpointOutput) ToManagedPrivateEndpointOutput() ManagedPrivateEndpointOutput { return o } func (o ManagedPrivateEndpointOutput) ToManagedPrivateEndpointOutputWithContext(ctx context.Context) ManagedPrivateEndpointOutput { return o } // The ID of the Data Factory on which to create the Managed Private Endpoint. Changing this forces a new resource to be created. func (o ManagedPrivateEndpointOutput) DataFactoryId() pulumi.StringOutput { return o.ApplyT(func(v *ManagedPrivateEndpoint) pulumi.StringOutput { return v.DataFactoryId }).(pulumi.StringOutput) } // Fully qualified domain names. Changing this forces a new resource to be created. // // > **Note:** Possible values are listed in [documentation](https://docs.microsoft.com/azure/private-link/private-endpoint-overview#dns-configuration). func (o ManagedPrivateEndpointOutput) Fqdns() pulumi.StringArrayOutput { return o.ApplyT(func(v *ManagedPrivateEndpoint) pulumi.StringArrayOutput { return v.Fqdns }).(pulumi.StringArrayOutput) } // Specifies the name which should be used for this Managed Private Endpoint. Changing this forces a new resource to be created. func (o ManagedPrivateEndpointOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *ManagedPrivateEndpoint) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // Specifies the sub resource name which the Data Factory Private Endpoint is able to connect to. Changing this forces a new resource to be created. func (o ManagedPrivateEndpointOutput) SubresourceName() pulumi.StringPtrOutput { return o.ApplyT(func(v *ManagedPrivateEndpoint) pulumi.StringPtrOutput { return v.SubresourceName }).(pulumi.StringPtrOutput) } // The ID of the Private Link Enabled Remote Resource which this Data Factory Private Endpoint should be connected to. Changing this forces a new resource to be created. func (o ManagedPrivateEndpointOutput) TargetResourceId() pulumi.StringOutput { return o.ApplyT(func(v *ManagedPrivateEndpoint) pulumi.StringOutput { return v.TargetResourceId }).(pulumi.StringOutput) } type ManagedPrivateEndpointArrayOutput struct{ *pulumi.OutputState } func (ManagedPrivateEndpointArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*ManagedPrivateEndpoint)(nil)).Elem() } func (o ManagedPrivateEndpointArrayOutput) ToManagedPrivateEndpointArrayOutput() ManagedPrivateEndpointArrayOutput { return o } func (o ManagedPrivateEndpointArrayOutput) ToManagedPrivateEndpointArrayOutputWithContext(ctx context.Context) ManagedPrivateEndpointArrayOutput { return o } func (o ManagedPrivateEndpointArrayOutput) Index(i pulumi.IntInput) ManagedPrivateEndpointOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *ManagedPrivateEndpoint { return vs[0].([]*ManagedPrivateEndpoint)[vs[1].(int)] }).(ManagedPrivateEndpointOutput) } type ManagedPrivateEndpointMapOutput struct{ *pulumi.OutputState } func (ManagedPrivateEndpointMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*ManagedPrivateEndpoint)(nil)).Elem() } func (o ManagedPrivateEndpointMapOutput) ToManagedPrivateEndpointMapOutput() ManagedPrivateEndpointMapOutput { return o } func (o ManagedPrivateEndpointMapOutput) ToManagedPrivateEndpointMapOutputWithContext(ctx context.Context) ManagedPrivateEndpointMapOutput { return o } func (o ManagedPrivateEndpointMapOutput) MapIndex(k pulumi.StringInput) ManagedPrivateEndpointOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *ManagedPrivateEndpoint { return vs[0].(map[string]*ManagedPrivateEndpoint)[vs[1].(string)] }).(ManagedPrivateEndpointOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*ManagedPrivateEndpointInput)(nil)).Elem(), &ManagedPrivateEndpoint{}) pulumi.RegisterInputType(reflect.TypeOf((*ManagedPrivateEndpointArrayInput)(nil)).Elem(), ManagedPrivateEndpointArray{}) pulumi.RegisterInputType(reflect.TypeOf((*ManagedPrivateEndpointMapInput)(nil)).Elem(), ManagedPrivateEndpointMap{}) pulumi.RegisterOutputType(ManagedPrivateEndpointOutput{}) pulumi.RegisterOutputType(ManagedPrivateEndpointArrayOutput{}) pulumi.RegisterOutputType(ManagedPrivateEndpointMapOutput{}) }
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/datafactory/linkedServiceOdbc.go
sdk/go/azure/datafactory/linkedServiceOdbc.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 datafactory import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a Linked Service (connection) between a Database and Azure Data Factory through ODBC protocol. // // > **Note:** All arguments including the connectionString will be stored in the raw state as plain-text. [Read more about sensitive data in state](https://www.terraform.io/docs/state/sensitive-data.html). // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/datafactory" // "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 // } // exampleFactory, err := datafactory.NewFactory(ctx, "example", &datafactory.FactoryArgs{ // Name: pulumi.String("example"), // Location: example.Location, // ResourceGroupName: example.Name, // }) // if err != nil { // return err // } // _, err = datafactory.NewLinkedServiceOdbc(ctx, "anonymous", &datafactory.LinkedServiceOdbcArgs{ // Name: pulumi.String("anonymous"), // DataFactoryId: exampleFactory.ID(), // ConnectionString: pulumi.String("Driver={SQL Server};Server=test;Database=test;Uid=test;Pwd=test;"), // }) // if err != nil { // return err // } // _, err = datafactory.NewLinkedServiceOdbc(ctx, "basic_auth", &datafactory.LinkedServiceOdbcArgs{ // Name: pulumi.String("basic_auth"), // DataFactoryId: exampleFactory.ID(), // ConnectionString: pulumi.String("Driver={SQL Server};Server=test;Database=test;Uid=test;Pwd=test;"), // BasicAuthentication: &datafactory.LinkedServiceOdbcBasicAuthenticationArgs{ // Username: pulumi.String("onrylmz"), // Password: pulumi.String("Ch4ngeM3!"), // }, // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## Import // // Data Factory ODBC Linked Service's can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:datafactory/linkedServiceOdbc:LinkedServiceOdbc example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example/providers/Microsoft.DataFactory/factories/example/linkedservices/example // ``` type LinkedServiceOdbc struct { pulumi.CustomResourceState // A map of additional properties to associate with the Data Factory Linked Service ODBC. AdditionalProperties pulumi.StringMapOutput `pulumi:"additionalProperties"` // List of tags that can be used for describing the Data Factory Linked Service ODBC. Annotations pulumi.StringArrayOutput `pulumi:"annotations"` // A `basicAuthentication` block as defined below. BasicAuthentication LinkedServiceOdbcBasicAuthenticationPtrOutput `pulumi:"basicAuthentication"` // The connection string in which to authenticate with ODBC. ConnectionString pulumi.StringOutput `pulumi:"connectionString"` // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId pulumi.StringOutput `pulumi:"dataFactoryId"` // The description for the Data Factory Linked Service ODBC. Description pulumi.StringPtrOutput `pulumi:"description"` // The integration runtime reference to associate with the Data Factory Linked Service ODBC. IntegrationRuntimeName pulumi.StringPtrOutput `pulumi:"integrationRuntimeName"` // Specifies the name of the Data Factory Linked Service ODBC. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringOutput `pulumi:"name"` // A map of parameters to associate with the Data Factory Linked Service ODBC. Parameters pulumi.StringMapOutput `pulumi:"parameters"` } // NewLinkedServiceOdbc registers a new resource with the given unique name, arguments, and options. func NewLinkedServiceOdbc(ctx *pulumi.Context, name string, args *LinkedServiceOdbcArgs, opts ...pulumi.ResourceOption) (*LinkedServiceOdbc, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.ConnectionString == nil { return nil, errors.New("invalid value for required argument 'ConnectionString'") } if args.DataFactoryId == nil { return nil, errors.New("invalid value for required argument 'DataFactoryId'") } opts = internal.PkgResourceDefaultOpts(opts) var resource LinkedServiceOdbc err := ctx.RegisterResource("azure:datafactory/linkedServiceOdbc:LinkedServiceOdbc", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetLinkedServiceOdbc gets an existing LinkedServiceOdbc 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 GetLinkedServiceOdbc(ctx *pulumi.Context, name string, id pulumi.IDInput, state *LinkedServiceOdbcState, opts ...pulumi.ResourceOption) (*LinkedServiceOdbc, error) { var resource LinkedServiceOdbc err := ctx.ReadResource("azure:datafactory/linkedServiceOdbc:LinkedServiceOdbc", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering LinkedServiceOdbc resources. type linkedServiceOdbcState struct { // A map of additional properties to associate with the Data Factory Linked Service ODBC. AdditionalProperties map[string]string `pulumi:"additionalProperties"` // List of tags that can be used for describing the Data Factory Linked Service ODBC. Annotations []string `pulumi:"annotations"` // A `basicAuthentication` block as defined below. BasicAuthentication *LinkedServiceOdbcBasicAuthentication `pulumi:"basicAuthentication"` // The connection string in which to authenticate with ODBC. ConnectionString *string `pulumi:"connectionString"` // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId *string `pulumi:"dataFactoryId"` // The description for the Data Factory Linked Service ODBC. Description *string `pulumi:"description"` // The integration runtime reference to associate with the Data Factory Linked Service ODBC. IntegrationRuntimeName *string `pulumi:"integrationRuntimeName"` // Specifies the name of the Data Factory Linked Service ODBC. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name *string `pulumi:"name"` // A map of parameters to associate with the Data Factory Linked Service ODBC. Parameters map[string]string `pulumi:"parameters"` } type LinkedServiceOdbcState struct { // A map of additional properties to associate with the Data Factory Linked Service ODBC. AdditionalProperties pulumi.StringMapInput // List of tags that can be used for describing the Data Factory Linked Service ODBC. Annotations pulumi.StringArrayInput // A `basicAuthentication` block as defined below. BasicAuthentication LinkedServiceOdbcBasicAuthenticationPtrInput // The connection string in which to authenticate with ODBC. ConnectionString pulumi.StringPtrInput // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId pulumi.StringPtrInput // The description for the Data Factory Linked Service ODBC. Description pulumi.StringPtrInput // The integration runtime reference to associate with the Data Factory Linked Service ODBC. IntegrationRuntimeName pulumi.StringPtrInput // Specifies the name of the Data Factory Linked Service ODBC. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringPtrInput // A map of parameters to associate with the Data Factory Linked Service ODBC. Parameters pulumi.StringMapInput } func (LinkedServiceOdbcState) ElementType() reflect.Type { return reflect.TypeOf((*linkedServiceOdbcState)(nil)).Elem() } type linkedServiceOdbcArgs struct { // A map of additional properties to associate with the Data Factory Linked Service ODBC. AdditionalProperties map[string]string `pulumi:"additionalProperties"` // List of tags that can be used for describing the Data Factory Linked Service ODBC. Annotations []string `pulumi:"annotations"` // A `basicAuthentication` block as defined below. BasicAuthentication *LinkedServiceOdbcBasicAuthentication `pulumi:"basicAuthentication"` // The connection string in which to authenticate with ODBC. ConnectionString string `pulumi:"connectionString"` // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId string `pulumi:"dataFactoryId"` // The description for the Data Factory Linked Service ODBC. Description *string `pulumi:"description"` // The integration runtime reference to associate with the Data Factory Linked Service ODBC. IntegrationRuntimeName *string `pulumi:"integrationRuntimeName"` // Specifies the name of the Data Factory Linked Service ODBC. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name *string `pulumi:"name"` // A map of parameters to associate with the Data Factory Linked Service ODBC. Parameters map[string]string `pulumi:"parameters"` } // The set of arguments for constructing a LinkedServiceOdbc resource. type LinkedServiceOdbcArgs struct { // A map of additional properties to associate with the Data Factory Linked Service ODBC. AdditionalProperties pulumi.StringMapInput // List of tags that can be used for describing the Data Factory Linked Service ODBC. Annotations pulumi.StringArrayInput // A `basicAuthentication` block as defined below. BasicAuthentication LinkedServiceOdbcBasicAuthenticationPtrInput // The connection string in which to authenticate with ODBC. ConnectionString pulumi.StringInput // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId pulumi.StringInput // The description for the Data Factory Linked Service ODBC. Description pulumi.StringPtrInput // The integration runtime reference to associate with the Data Factory Linked Service ODBC. IntegrationRuntimeName pulumi.StringPtrInput // Specifies the name of the Data Factory Linked Service ODBC. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringPtrInput // A map of parameters to associate with the Data Factory Linked Service ODBC. Parameters pulumi.StringMapInput } func (LinkedServiceOdbcArgs) ElementType() reflect.Type { return reflect.TypeOf((*linkedServiceOdbcArgs)(nil)).Elem() } type LinkedServiceOdbcInput interface { pulumi.Input ToLinkedServiceOdbcOutput() LinkedServiceOdbcOutput ToLinkedServiceOdbcOutputWithContext(ctx context.Context) LinkedServiceOdbcOutput } func (*LinkedServiceOdbc) ElementType() reflect.Type { return reflect.TypeOf((**LinkedServiceOdbc)(nil)).Elem() } func (i *LinkedServiceOdbc) ToLinkedServiceOdbcOutput() LinkedServiceOdbcOutput { return i.ToLinkedServiceOdbcOutputWithContext(context.Background()) } func (i *LinkedServiceOdbc) ToLinkedServiceOdbcOutputWithContext(ctx context.Context) LinkedServiceOdbcOutput { return pulumi.ToOutputWithContext(ctx, i).(LinkedServiceOdbcOutput) } // LinkedServiceOdbcArrayInput is an input type that accepts LinkedServiceOdbcArray and LinkedServiceOdbcArrayOutput values. // You can construct a concrete instance of `LinkedServiceOdbcArrayInput` via: // // LinkedServiceOdbcArray{ LinkedServiceOdbcArgs{...} } type LinkedServiceOdbcArrayInput interface { pulumi.Input ToLinkedServiceOdbcArrayOutput() LinkedServiceOdbcArrayOutput ToLinkedServiceOdbcArrayOutputWithContext(context.Context) LinkedServiceOdbcArrayOutput } type LinkedServiceOdbcArray []LinkedServiceOdbcInput func (LinkedServiceOdbcArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*LinkedServiceOdbc)(nil)).Elem() } func (i LinkedServiceOdbcArray) ToLinkedServiceOdbcArrayOutput() LinkedServiceOdbcArrayOutput { return i.ToLinkedServiceOdbcArrayOutputWithContext(context.Background()) } func (i LinkedServiceOdbcArray) ToLinkedServiceOdbcArrayOutputWithContext(ctx context.Context) LinkedServiceOdbcArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(LinkedServiceOdbcArrayOutput) } // LinkedServiceOdbcMapInput is an input type that accepts LinkedServiceOdbcMap and LinkedServiceOdbcMapOutput values. // You can construct a concrete instance of `LinkedServiceOdbcMapInput` via: // // LinkedServiceOdbcMap{ "key": LinkedServiceOdbcArgs{...} } type LinkedServiceOdbcMapInput interface { pulumi.Input ToLinkedServiceOdbcMapOutput() LinkedServiceOdbcMapOutput ToLinkedServiceOdbcMapOutputWithContext(context.Context) LinkedServiceOdbcMapOutput } type LinkedServiceOdbcMap map[string]LinkedServiceOdbcInput func (LinkedServiceOdbcMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*LinkedServiceOdbc)(nil)).Elem() } func (i LinkedServiceOdbcMap) ToLinkedServiceOdbcMapOutput() LinkedServiceOdbcMapOutput { return i.ToLinkedServiceOdbcMapOutputWithContext(context.Background()) } func (i LinkedServiceOdbcMap) ToLinkedServiceOdbcMapOutputWithContext(ctx context.Context) LinkedServiceOdbcMapOutput { return pulumi.ToOutputWithContext(ctx, i).(LinkedServiceOdbcMapOutput) } type LinkedServiceOdbcOutput struct{ *pulumi.OutputState } func (LinkedServiceOdbcOutput) ElementType() reflect.Type { return reflect.TypeOf((**LinkedServiceOdbc)(nil)).Elem() } func (o LinkedServiceOdbcOutput) ToLinkedServiceOdbcOutput() LinkedServiceOdbcOutput { return o } func (o LinkedServiceOdbcOutput) ToLinkedServiceOdbcOutputWithContext(ctx context.Context) LinkedServiceOdbcOutput { return o } // A map of additional properties to associate with the Data Factory Linked Service ODBC. func (o LinkedServiceOdbcOutput) AdditionalProperties() pulumi.StringMapOutput { return o.ApplyT(func(v *LinkedServiceOdbc) pulumi.StringMapOutput { return v.AdditionalProperties }).(pulumi.StringMapOutput) } // List of tags that can be used for describing the Data Factory Linked Service ODBC. func (o LinkedServiceOdbcOutput) Annotations() pulumi.StringArrayOutput { return o.ApplyT(func(v *LinkedServiceOdbc) pulumi.StringArrayOutput { return v.Annotations }).(pulumi.StringArrayOutput) } // A `basicAuthentication` block as defined below. func (o LinkedServiceOdbcOutput) BasicAuthentication() LinkedServiceOdbcBasicAuthenticationPtrOutput { return o.ApplyT(func(v *LinkedServiceOdbc) LinkedServiceOdbcBasicAuthenticationPtrOutput { return v.BasicAuthentication }).(LinkedServiceOdbcBasicAuthenticationPtrOutput) } // The connection string in which to authenticate with ODBC. func (o LinkedServiceOdbcOutput) ConnectionString() pulumi.StringOutput { return o.ApplyT(func(v *LinkedServiceOdbc) pulumi.StringOutput { return v.ConnectionString }).(pulumi.StringOutput) } // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. func (o LinkedServiceOdbcOutput) DataFactoryId() pulumi.StringOutput { return o.ApplyT(func(v *LinkedServiceOdbc) pulumi.StringOutput { return v.DataFactoryId }).(pulumi.StringOutput) } // The description for the Data Factory Linked Service ODBC. func (o LinkedServiceOdbcOutput) Description() pulumi.StringPtrOutput { return o.ApplyT(func(v *LinkedServiceOdbc) pulumi.StringPtrOutput { return v.Description }).(pulumi.StringPtrOutput) } // The integration runtime reference to associate with the Data Factory Linked Service ODBC. func (o LinkedServiceOdbcOutput) IntegrationRuntimeName() pulumi.StringPtrOutput { return o.ApplyT(func(v *LinkedServiceOdbc) pulumi.StringPtrOutput { return v.IntegrationRuntimeName }).(pulumi.StringPtrOutput) } // Specifies the name of the Data Factory Linked Service ODBC. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. func (o LinkedServiceOdbcOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *LinkedServiceOdbc) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // A map of parameters to associate with the Data Factory Linked Service ODBC. func (o LinkedServiceOdbcOutput) Parameters() pulumi.StringMapOutput { return o.ApplyT(func(v *LinkedServiceOdbc) pulumi.StringMapOutput { return v.Parameters }).(pulumi.StringMapOutput) } type LinkedServiceOdbcArrayOutput struct{ *pulumi.OutputState } func (LinkedServiceOdbcArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*LinkedServiceOdbc)(nil)).Elem() } func (o LinkedServiceOdbcArrayOutput) ToLinkedServiceOdbcArrayOutput() LinkedServiceOdbcArrayOutput { return o } func (o LinkedServiceOdbcArrayOutput) ToLinkedServiceOdbcArrayOutputWithContext(ctx context.Context) LinkedServiceOdbcArrayOutput { return o } func (o LinkedServiceOdbcArrayOutput) Index(i pulumi.IntInput) LinkedServiceOdbcOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *LinkedServiceOdbc { return vs[0].([]*LinkedServiceOdbc)[vs[1].(int)] }).(LinkedServiceOdbcOutput) } type LinkedServiceOdbcMapOutput struct{ *pulumi.OutputState } func (LinkedServiceOdbcMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*LinkedServiceOdbc)(nil)).Elem() } func (o LinkedServiceOdbcMapOutput) ToLinkedServiceOdbcMapOutput() LinkedServiceOdbcMapOutput { return o } func (o LinkedServiceOdbcMapOutput) ToLinkedServiceOdbcMapOutputWithContext(ctx context.Context) LinkedServiceOdbcMapOutput { return o } func (o LinkedServiceOdbcMapOutput) MapIndex(k pulumi.StringInput) LinkedServiceOdbcOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *LinkedServiceOdbc { return vs[0].(map[string]*LinkedServiceOdbc)[vs[1].(string)] }).(LinkedServiceOdbcOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*LinkedServiceOdbcInput)(nil)).Elem(), &LinkedServiceOdbc{}) pulumi.RegisterInputType(reflect.TypeOf((*LinkedServiceOdbcArrayInput)(nil)).Elem(), LinkedServiceOdbcArray{}) pulumi.RegisterInputType(reflect.TypeOf((*LinkedServiceOdbcMapInput)(nil)).Elem(), LinkedServiceOdbcMap{}) pulumi.RegisterOutputType(LinkedServiceOdbcOutput{}) pulumi.RegisterOutputType(LinkedServiceOdbcArrayOutput{}) pulumi.RegisterOutputType(LinkedServiceOdbcMapOutput{}) }
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/datafactory/datasetMysql.go
sdk/go/azure/datafactory/datasetMysql.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 datafactory import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a MySQL Dataset inside a Azure Data Factory. // // ## 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/datafactory" // "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 // } // exampleFactory, err := datafactory.NewFactory(ctx, "example", &datafactory.FactoryArgs{ // Name: pulumi.String("example"), // Location: example.Location, // ResourceGroupName: example.Name, // }) // if err != nil { // return err // } // exampleLinkedServiceMysql, err := datafactory.NewLinkedServiceMysql(ctx, "example", &datafactory.LinkedServiceMysqlArgs{ // Name: pulumi.String("example"), // DataFactoryId: exampleFactory.ID(), // ConnectionString: pulumi.String("Server=test;Port=3306;Database=test;User=test;SSLMode=1;UseSystemTrustStore=0;Password=test"), // }) // if err != nil { // return err // } // _, err = datafactory.NewDatasetMysql(ctx, "example", &datafactory.DatasetMysqlArgs{ // Name: pulumi.String("example"), // DataFactoryId: exampleFactory.ID(), // LinkedServiceName: exampleLinkedServiceMysql.Name, // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## Import // // Data Factory MySQL Datasets can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:datafactory/datasetMysql:DatasetMysql example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example/providers/Microsoft.DataFactory/factories/example/datasets/example // ``` type DatasetMysql struct { pulumi.CustomResourceState // A map of additional properties to associate with the Data Factory Dataset MySQL. // // The following supported arguments are specific to MySQL Dataset: AdditionalProperties pulumi.StringMapOutput `pulumi:"additionalProperties"` // List of tags that can be used for describing the Data Factory Dataset MySQL. Annotations pulumi.StringArrayOutput `pulumi:"annotations"` // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId pulumi.StringOutput `pulumi:"dataFactoryId"` // The description for the Data Factory Dataset MySQL. Description pulumi.StringPtrOutput `pulumi:"description"` // The folder that this Dataset is in. If not specified, the Dataset will appear at the root level. Folder pulumi.StringPtrOutput `pulumi:"folder"` // The Data Factory Linked Service name in which to associate the Dataset with. LinkedServiceName pulumi.StringOutput `pulumi:"linkedServiceName"` // Specifies the name of the Data Factory Dataset MySQL. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringOutput `pulumi:"name"` // A map of parameters to associate with the Data Factory Dataset MySQL. Parameters pulumi.StringMapOutput `pulumi:"parameters"` // A `schemaColumn` block as defined below. SchemaColumns DatasetMysqlSchemaColumnArrayOutput `pulumi:"schemaColumns"` // The table name of the Data Factory Dataset MySQL. TableName pulumi.StringPtrOutput `pulumi:"tableName"` } // NewDatasetMysql registers a new resource with the given unique name, arguments, and options. func NewDatasetMysql(ctx *pulumi.Context, name string, args *DatasetMysqlArgs, opts ...pulumi.ResourceOption) (*DatasetMysql, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.DataFactoryId == nil { return nil, errors.New("invalid value for required argument 'DataFactoryId'") } if args.LinkedServiceName == nil { return nil, errors.New("invalid value for required argument 'LinkedServiceName'") } opts = internal.PkgResourceDefaultOpts(opts) var resource DatasetMysql err := ctx.RegisterResource("azure:datafactory/datasetMysql:DatasetMysql", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetDatasetMysql gets an existing DatasetMysql 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 GetDatasetMysql(ctx *pulumi.Context, name string, id pulumi.IDInput, state *DatasetMysqlState, opts ...pulumi.ResourceOption) (*DatasetMysql, error) { var resource DatasetMysql err := ctx.ReadResource("azure:datafactory/datasetMysql:DatasetMysql", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering DatasetMysql resources. type datasetMysqlState struct { // A map of additional properties to associate with the Data Factory Dataset MySQL. // // The following supported arguments are specific to MySQL Dataset: AdditionalProperties map[string]string `pulumi:"additionalProperties"` // List of tags that can be used for describing the Data Factory Dataset MySQL. Annotations []string `pulumi:"annotations"` // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId *string `pulumi:"dataFactoryId"` // The description for the Data Factory Dataset MySQL. Description *string `pulumi:"description"` // The folder that this Dataset is in. If not specified, the Dataset will appear at the root level. Folder *string `pulumi:"folder"` // The Data Factory Linked Service name in which to associate the Dataset with. LinkedServiceName *string `pulumi:"linkedServiceName"` // Specifies the name of the Data Factory Dataset MySQL. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name *string `pulumi:"name"` // A map of parameters to associate with the Data Factory Dataset MySQL. Parameters map[string]string `pulumi:"parameters"` // A `schemaColumn` block as defined below. SchemaColumns []DatasetMysqlSchemaColumn `pulumi:"schemaColumns"` // The table name of the Data Factory Dataset MySQL. TableName *string `pulumi:"tableName"` } type DatasetMysqlState struct { // A map of additional properties to associate with the Data Factory Dataset MySQL. // // The following supported arguments are specific to MySQL Dataset: AdditionalProperties pulumi.StringMapInput // List of tags that can be used for describing the Data Factory Dataset MySQL. Annotations pulumi.StringArrayInput // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId pulumi.StringPtrInput // The description for the Data Factory Dataset MySQL. Description pulumi.StringPtrInput // The folder that this Dataset is in. If not specified, the Dataset will appear at the root level. Folder pulumi.StringPtrInput // The Data Factory Linked Service name in which to associate the Dataset with. LinkedServiceName pulumi.StringPtrInput // Specifies the name of the Data Factory Dataset MySQL. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringPtrInput // A map of parameters to associate with the Data Factory Dataset MySQL. Parameters pulumi.StringMapInput // A `schemaColumn` block as defined below. SchemaColumns DatasetMysqlSchemaColumnArrayInput // The table name of the Data Factory Dataset MySQL. TableName pulumi.StringPtrInput } func (DatasetMysqlState) ElementType() reflect.Type { return reflect.TypeOf((*datasetMysqlState)(nil)).Elem() } type datasetMysqlArgs struct { // A map of additional properties to associate with the Data Factory Dataset MySQL. // // The following supported arguments are specific to MySQL Dataset: AdditionalProperties map[string]string `pulumi:"additionalProperties"` // List of tags that can be used for describing the Data Factory Dataset MySQL. Annotations []string `pulumi:"annotations"` // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId string `pulumi:"dataFactoryId"` // The description for the Data Factory Dataset MySQL. Description *string `pulumi:"description"` // The folder that this Dataset is in. If not specified, the Dataset will appear at the root level. Folder *string `pulumi:"folder"` // The Data Factory Linked Service name in which to associate the Dataset with. LinkedServiceName string `pulumi:"linkedServiceName"` // Specifies the name of the Data Factory Dataset MySQL. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name *string `pulumi:"name"` // A map of parameters to associate with the Data Factory Dataset MySQL. Parameters map[string]string `pulumi:"parameters"` // A `schemaColumn` block as defined below. SchemaColumns []DatasetMysqlSchemaColumn `pulumi:"schemaColumns"` // The table name of the Data Factory Dataset MySQL. TableName *string `pulumi:"tableName"` } // The set of arguments for constructing a DatasetMysql resource. type DatasetMysqlArgs struct { // A map of additional properties to associate with the Data Factory Dataset MySQL. // // The following supported arguments are specific to MySQL Dataset: AdditionalProperties pulumi.StringMapInput // List of tags that can be used for describing the Data Factory Dataset MySQL. Annotations pulumi.StringArrayInput // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId pulumi.StringInput // The description for the Data Factory Dataset MySQL. Description pulumi.StringPtrInput // The folder that this Dataset is in. If not specified, the Dataset will appear at the root level. Folder pulumi.StringPtrInput // The Data Factory Linked Service name in which to associate the Dataset with. LinkedServiceName pulumi.StringInput // Specifies the name of the Data Factory Dataset MySQL. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringPtrInput // A map of parameters to associate with the Data Factory Dataset MySQL. Parameters pulumi.StringMapInput // A `schemaColumn` block as defined below. SchemaColumns DatasetMysqlSchemaColumnArrayInput // The table name of the Data Factory Dataset MySQL. TableName pulumi.StringPtrInput } func (DatasetMysqlArgs) ElementType() reflect.Type { return reflect.TypeOf((*datasetMysqlArgs)(nil)).Elem() } type DatasetMysqlInput interface { pulumi.Input ToDatasetMysqlOutput() DatasetMysqlOutput ToDatasetMysqlOutputWithContext(ctx context.Context) DatasetMysqlOutput } func (*DatasetMysql) ElementType() reflect.Type { return reflect.TypeOf((**DatasetMysql)(nil)).Elem() } func (i *DatasetMysql) ToDatasetMysqlOutput() DatasetMysqlOutput { return i.ToDatasetMysqlOutputWithContext(context.Background()) } func (i *DatasetMysql) ToDatasetMysqlOutputWithContext(ctx context.Context) DatasetMysqlOutput { return pulumi.ToOutputWithContext(ctx, i).(DatasetMysqlOutput) } // DatasetMysqlArrayInput is an input type that accepts DatasetMysqlArray and DatasetMysqlArrayOutput values. // You can construct a concrete instance of `DatasetMysqlArrayInput` via: // // DatasetMysqlArray{ DatasetMysqlArgs{...} } type DatasetMysqlArrayInput interface { pulumi.Input ToDatasetMysqlArrayOutput() DatasetMysqlArrayOutput ToDatasetMysqlArrayOutputWithContext(context.Context) DatasetMysqlArrayOutput } type DatasetMysqlArray []DatasetMysqlInput func (DatasetMysqlArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*DatasetMysql)(nil)).Elem() } func (i DatasetMysqlArray) ToDatasetMysqlArrayOutput() DatasetMysqlArrayOutput { return i.ToDatasetMysqlArrayOutputWithContext(context.Background()) } func (i DatasetMysqlArray) ToDatasetMysqlArrayOutputWithContext(ctx context.Context) DatasetMysqlArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(DatasetMysqlArrayOutput) } // DatasetMysqlMapInput is an input type that accepts DatasetMysqlMap and DatasetMysqlMapOutput values. // You can construct a concrete instance of `DatasetMysqlMapInput` via: // // DatasetMysqlMap{ "key": DatasetMysqlArgs{...} } type DatasetMysqlMapInput interface { pulumi.Input ToDatasetMysqlMapOutput() DatasetMysqlMapOutput ToDatasetMysqlMapOutputWithContext(context.Context) DatasetMysqlMapOutput } type DatasetMysqlMap map[string]DatasetMysqlInput func (DatasetMysqlMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*DatasetMysql)(nil)).Elem() } func (i DatasetMysqlMap) ToDatasetMysqlMapOutput() DatasetMysqlMapOutput { return i.ToDatasetMysqlMapOutputWithContext(context.Background()) } func (i DatasetMysqlMap) ToDatasetMysqlMapOutputWithContext(ctx context.Context) DatasetMysqlMapOutput { return pulumi.ToOutputWithContext(ctx, i).(DatasetMysqlMapOutput) } type DatasetMysqlOutput struct{ *pulumi.OutputState } func (DatasetMysqlOutput) ElementType() reflect.Type { return reflect.TypeOf((**DatasetMysql)(nil)).Elem() } func (o DatasetMysqlOutput) ToDatasetMysqlOutput() DatasetMysqlOutput { return o } func (o DatasetMysqlOutput) ToDatasetMysqlOutputWithContext(ctx context.Context) DatasetMysqlOutput { return o } // A map of additional properties to associate with the Data Factory Dataset MySQL. // // The following supported arguments are specific to MySQL Dataset: func (o DatasetMysqlOutput) AdditionalProperties() pulumi.StringMapOutput { return o.ApplyT(func(v *DatasetMysql) pulumi.StringMapOutput { return v.AdditionalProperties }).(pulumi.StringMapOutput) } // List of tags that can be used for describing the Data Factory Dataset MySQL. func (o DatasetMysqlOutput) Annotations() pulumi.StringArrayOutput { return o.ApplyT(func(v *DatasetMysql) pulumi.StringArrayOutput { return v.Annotations }).(pulumi.StringArrayOutput) } // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. func (o DatasetMysqlOutput) DataFactoryId() pulumi.StringOutput { return o.ApplyT(func(v *DatasetMysql) pulumi.StringOutput { return v.DataFactoryId }).(pulumi.StringOutput) } // The description for the Data Factory Dataset MySQL. func (o DatasetMysqlOutput) Description() pulumi.StringPtrOutput { return o.ApplyT(func(v *DatasetMysql) pulumi.StringPtrOutput { return v.Description }).(pulumi.StringPtrOutput) } // The folder that this Dataset is in. If not specified, the Dataset will appear at the root level. func (o DatasetMysqlOutput) Folder() pulumi.StringPtrOutput { return o.ApplyT(func(v *DatasetMysql) pulumi.StringPtrOutput { return v.Folder }).(pulumi.StringPtrOutput) } // The Data Factory Linked Service name in which to associate the Dataset with. func (o DatasetMysqlOutput) LinkedServiceName() pulumi.StringOutput { return o.ApplyT(func(v *DatasetMysql) pulumi.StringOutput { return v.LinkedServiceName }).(pulumi.StringOutput) } // Specifies the name of the Data Factory Dataset MySQL. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. func (o DatasetMysqlOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *DatasetMysql) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // A map of parameters to associate with the Data Factory Dataset MySQL. func (o DatasetMysqlOutput) Parameters() pulumi.StringMapOutput { return o.ApplyT(func(v *DatasetMysql) pulumi.StringMapOutput { return v.Parameters }).(pulumi.StringMapOutput) } // A `schemaColumn` block as defined below. func (o DatasetMysqlOutput) SchemaColumns() DatasetMysqlSchemaColumnArrayOutput { return o.ApplyT(func(v *DatasetMysql) DatasetMysqlSchemaColumnArrayOutput { return v.SchemaColumns }).(DatasetMysqlSchemaColumnArrayOutput) } // The table name of the Data Factory Dataset MySQL. func (o DatasetMysqlOutput) TableName() pulumi.StringPtrOutput { return o.ApplyT(func(v *DatasetMysql) pulumi.StringPtrOutput { return v.TableName }).(pulumi.StringPtrOutput) } type DatasetMysqlArrayOutput struct{ *pulumi.OutputState } func (DatasetMysqlArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*DatasetMysql)(nil)).Elem() } func (o DatasetMysqlArrayOutput) ToDatasetMysqlArrayOutput() DatasetMysqlArrayOutput { return o } func (o DatasetMysqlArrayOutput) ToDatasetMysqlArrayOutputWithContext(ctx context.Context) DatasetMysqlArrayOutput { return o } func (o DatasetMysqlArrayOutput) Index(i pulumi.IntInput) DatasetMysqlOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *DatasetMysql { return vs[0].([]*DatasetMysql)[vs[1].(int)] }).(DatasetMysqlOutput) } type DatasetMysqlMapOutput struct{ *pulumi.OutputState } func (DatasetMysqlMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*DatasetMysql)(nil)).Elem() } func (o DatasetMysqlMapOutput) ToDatasetMysqlMapOutput() DatasetMysqlMapOutput { return o } func (o DatasetMysqlMapOutput) ToDatasetMysqlMapOutputWithContext(ctx context.Context) DatasetMysqlMapOutput { return o } func (o DatasetMysqlMapOutput) MapIndex(k pulumi.StringInput) DatasetMysqlOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *DatasetMysql { return vs[0].(map[string]*DatasetMysql)[vs[1].(string)] }).(DatasetMysqlOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*DatasetMysqlInput)(nil)).Elem(), &DatasetMysql{}) pulumi.RegisterInputType(reflect.TypeOf((*DatasetMysqlArrayInput)(nil)).Elem(), DatasetMysqlArray{}) pulumi.RegisterInputType(reflect.TypeOf((*DatasetMysqlMapInput)(nil)).Elem(), DatasetMysqlMap{}) pulumi.RegisterOutputType(DatasetMysqlOutput{}) pulumi.RegisterOutputType(DatasetMysqlArrayOutput{}) pulumi.RegisterOutputType(DatasetMysqlMapOutput{}) }
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/datafactory/linkedServiceSftp.go
sdk/go/azure/datafactory/linkedServiceSftp.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 datafactory import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a Linked Service (connection) between a SFTP Server and Azure Data Factory. // // ## 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/datafactory" // "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 // } // exampleFactory, err := datafactory.NewFactory(ctx, "example", &datafactory.FactoryArgs{ // Name: pulumi.String("example"), // Location: example.Location, // ResourceGroupName: example.Name, // }) // if err != nil { // return err // } // _, err = datafactory.NewLinkedServiceSftp(ctx, "example", &datafactory.LinkedServiceSftpArgs{ // Name: pulumi.String("example"), // DataFactoryId: exampleFactory.ID(), // AuthenticationType: pulumi.String("Basic"), // Host: pulumi.String("http://www.bing.com"), // Port: pulumi.Int(22), // Username: pulumi.String("foo"), // Password: pulumi.String("bar"), // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## Import // // Data Factory Linked Service's can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:datafactory/linkedServiceSftp:LinkedServiceSftp example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example/providers/Microsoft.DataFactory/factories/example/linkedservices/example // ``` type LinkedServiceSftp struct { pulumi.CustomResourceState // A map of additional properties to associate with the Data Factory Linked Service. // // The following supported arguments are specific to SFTP Linked Service: AdditionalProperties pulumi.StringMapOutput `pulumi:"additionalProperties"` // List of tags that can be used for describing the Data Factory Linked Service. Annotations pulumi.StringArrayOutput `pulumi:"annotations"` // The type of authentication used to connect to the SFTP server. Valid options are `MultiFactor`, `Basic` and `SshPublicKey`. AuthenticationType pulumi.StringOutput `pulumi:"authenticationType"` // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId pulumi.StringOutput `pulumi:"dataFactoryId"` // The description for the Data Factory Linked Service. Description pulumi.StringPtrOutput `pulumi:"description"` // The SFTP server hostname. Host pulumi.StringOutput `pulumi:"host"` // The host key fingerprint of the SFTP server. HostKeyFingerprint pulumi.StringPtrOutput `pulumi:"hostKeyFingerprint"` // The name of the integration runtime to associate with the Data Factory Linked Service. IntegrationRuntimeName pulumi.StringPtrOutput `pulumi:"integrationRuntimeName"` // A `keyVaultPassword` block as defined below. // // > **Note:** Either `password` or `keyVaultPassword` is required when `authenticationType` is set to `Basic`. KeyVaultPasswords LinkedServiceSftpKeyVaultPasswordArrayOutput `pulumi:"keyVaultPasswords"` // A `keyVaultPrivateKeyContentBase64` block as defined below. KeyVaultPrivateKeyContentBase64 LinkedServiceSftpKeyVaultPrivateKeyContentBase64PtrOutput `pulumi:"keyVaultPrivateKeyContentBase64"` // A `keyVaultPrivateKeyPassphrase` block as defined below. // // > **Note:** One of `privateKeyContentBase64` or `privateKeyPath` (or their Key Vault equivalent) is required when `authenticationType` is set to `SshPublicKey`. KeyVaultPrivateKeyPassphrase LinkedServiceSftpKeyVaultPrivateKeyPassphrasePtrOutput `pulumi:"keyVaultPrivateKeyPassphrase"` // Specifies the name of the Data Factory Linked Service. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringOutput `pulumi:"name"` // A map of parameters to associate with the Data Factory Linked Service. Parameters pulumi.StringMapOutput `pulumi:"parameters"` // Password to log on to the SFTP Server for Basic Authentication. Password pulumi.StringPtrOutput `pulumi:"password"` // The TCP port number that the SFTP server uses to listen for client connection. Default value is 22. Port pulumi.IntOutput `pulumi:"port"` // The Base64 encoded private key content in OpenSSH format used to log on to the SFTP server. PrivateKeyContentBase64 pulumi.StringPtrOutput `pulumi:"privateKeyContentBase64"` // The passphrase for the private key if the key is encrypted. PrivateKeyPassphrase pulumi.StringPtrOutput `pulumi:"privateKeyPassphrase"` // The absolute path to the private key file that the self-hosted integration runtime can access. // // > **Note:** `privateKeyPath` only applies when using a self-hosted integration runtime (instead of the default Azure provided runtime), as indicated by supplying a value for `integrationRuntimeName`. PrivateKeyPath pulumi.StringPtrOutput `pulumi:"privateKeyPath"` // Whether to validate host key fingerprint while connecting. If set to `false`, `hostKeyFingerprint` must also be set. SkipHostKeyValidation pulumi.BoolPtrOutput `pulumi:"skipHostKeyValidation"` // The username used to log on to the SFTP server. Username pulumi.StringOutput `pulumi:"username"` } // NewLinkedServiceSftp registers a new resource with the given unique name, arguments, and options. func NewLinkedServiceSftp(ctx *pulumi.Context, name string, args *LinkedServiceSftpArgs, opts ...pulumi.ResourceOption) (*LinkedServiceSftp, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.AuthenticationType == nil { return nil, errors.New("invalid value for required argument 'AuthenticationType'") } if args.DataFactoryId == nil { return nil, errors.New("invalid value for required argument 'DataFactoryId'") } if args.Host == nil { return nil, errors.New("invalid value for required argument 'Host'") } if args.Port == nil { return nil, errors.New("invalid value for required argument 'Port'") } if args.Username == nil { return nil, errors.New("invalid value for required argument 'Username'") } if args.Password != nil { args.Password = pulumi.ToSecret(args.Password).(pulumi.StringPtrInput) } if args.PrivateKeyContentBase64 != nil { args.PrivateKeyContentBase64 = pulumi.ToSecret(args.PrivateKeyContentBase64).(pulumi.StringPtrInput) } if args.PrivateKeyPassphrase != nil { args.PrivateKeyPassphrase = pulumi.ToSecret(args.PrivateKeyPassphrase).(pulumi.StringPtrInput) } secrets := pulumi.AdditionalSecretOutputs([]string{ "password", "privateKeyContentBase64", "privateKeyPassphrase", }) opts = append(opts, secrets) opts = internal.PkgResourceDefaultOpts(opts) var resource LinkedServiceSftp err := ctx.RegisterResource("azure:datafactory/linkedServiceSftp:LinkedServiceSftp", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetLinkedServiceSftp gets an existing LinkedServiceSftp 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 GetLinkedServiceSftp(ctx *pulumi.Context, name string, id pulumi.IDInput, state *LinkedServiceSftpState, opts ...pulumi.ResourceOption) (*LinkedServiceSftp, error) { var resource LinkedServiceSftp err := ctx.ReadResource("azure:datafactory/linkedServiceSftp:LinkedServiceSftp", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering LinkedServiceSftp resources. type linkedServiceSftpState struct { // A map of additional properties to associate with the Data Factory Linked Service. // // The following supported arguments are specific to SFTP Linked Service: AdditionalProperties map[string]string `pulumi:"additionalProperties"` // List of tags that can be used for describing the Data Factory Linked Service. Annotations []string `pulumi:"annotations"` // The type of authentication used to connect to the SFTP server. Valid options are `MultiFactor`, `Basic` and `SshPublicKey`. AuthenticationType *string `pulumi:"authenticationType"` // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId *string `pulumi:"dataFactoryId"` // The description for the Data Factory Linked Service. Description *string `pulumi:"description"` // The SFTP server hostname. Host *string `pulumi:"host"` // The host key fingerprint of the SFTP server. HostKeyFingerprint *string `pulumi:"hostKeyFingerprint"` // The name of the integration runtime to associate with the Data Factory Linked Service. IntegrationRuntimeName *string `pulumi:"integrationRuntimeName"` // A `keyVaultPassword` block as defined below. // // > **Note:** Either `password` or `keyVaultPassword` is required when `authenticationType` is set to `Basic`. KeyVaultPasswords []LinkedServiceSftpKeyVaultPassword `pulumi:"keyVaultPasswords"` // A `keyVaultPrivateKeyContentBase64` block as defined below. KeyVaultPrivateKeyContentBase64 *LinkedServiceSftpKeyVaultPrivateKeyContentBase64 `pulumi:"keyVaultPrivateKeyContentBase64"` // A `keyVaultPrivateKeyPassphrase` block as defined below. // // > **Note:** One of `privateKeyContentBase64` or `privateKeyPath` (or their Key Vault equivalent) is required when `authenticationType` is set to `SshPublicKey`. KeyVaultPrivateKeyPassphrase *LinkedServiceSftpKeyVaultPrivateKeyPassphrase `pulumi:"keyVaultPrivateKeyPassphrase"` // Specifies the name of the Data Factory Linked Service. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name *string `pulumi:"name"` // A map of parameters to associate with the Data Factory Linked Service. Parameters map[string]string `pulumi:"parameters"` // Password to log on to the SFTP Server for Basic Authentication. Password *string `pulumi:"password"` // The TCP port number that the SFTP server uses to listen for client connection. Default value is 22. Port *int `pulumi:"port"` // The Base64 encoded private key content in OpenSSH format used to log on to the SFTP server. PrivateKeyContentBase64 *string `pulumi:"privateKeyContentBase64"` // The passphrase for the private key if the key is encrypted. PrivateKeyPassphrase *string `pulumi:"privateKeyPassphrase"` // The absolute path to the private key file that the self-hosted integration runtime can access. // // > **Note:** `privateKeyPath` only applies when using a self-hosted integration runtime (instead of the default Azure provided runtime), as indicated by supplying a value for `integrationRuntimeName`. PrivateKeyPath *string `pulumi:"privateKeyPath"` // Whether to validate host key fingerprint while connecting. If set to `false`, `hostKeyFingerprint` must also be set. SkipHostKeyValidation *bool `pulumi:"skipHostKeyValidation"` // The username used to log on to the SFTP server. Username *string `pulumi:"username"` } type LinkedServiceSftpState struct { // A map of additional properties to associate with the Data Factory Linked Service. // // The following supported arguments are specific to SFTP Linked Service: AdditionalProperties pulumi.StringMapInput // List of tags that can be used for describing the Data Factory Linked Service. Annotations pulumi.StringArrayInput // The type of authentication used to connect to the SFTP server. Valid options are `MultiFactor`, `Basic` and `SshPublicKey`. AuthenticationType pulumi.StringPtrInput // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId pulumi.StringPtrInput // The description for the Data Factory Linked Service. Description pulumi.StringPtrInput // The SFTP server hostname. Host pulumi.StringPtrInput // The host key fingerprint of the SFTP server. HostKeyFingerprint pulumi.StringPtrInput // The name of the integration runtime to associate with the Data Factory Linked Service. IntegrationRuntimeName pulumi.StringPtrInput // A `keyVaultPassword` block as defined below. // // > **Note:** Either `password` or `keyVaultPassword` is required when `authenticationType` is set to `Basic`. KeyVaultPasswords LinkedServiceSftpKeyVaultPasswordArrayInput // A `keyVaultPrivateKeyContentBase64` block as defined below. KeyVaultPrivateKeyContentBase64 LinkedServiceSftpKeyVaultPrivateKeyContentBase64PtrInput // A `keyVaultPrivateKeyPassphrase` block as defined below. // // > **Note:** One of `privateKeyContentBase64` or `privateKeyPath` (or their Key Vault equivalent) is required when `authenticationType` is set to `SshPublicKey`. KeyVaultPrivateKeyPassphrase LinkedServiceSftpKeyVaultPrivateKeyPassphrasePtrInput // Specifies the name of the Data Factory Linked Service. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringPtrInput // A map of parameters to associate with the Data Factory Linked Service. Parameters pulumi.StringMapInput // Password to log on to the SFTP Server for Basic Authentication. Password pulumi.StringPtrInput // The TCP port number that the SFTP server uses to listen for client connection. Default value is 22. Port pulumi.IntPtrInput // The Base64 encoded private key content in OpenSSH format used to log on to the SFTP server. PrivateKeyContentBase64 pulumi.StringPtrInput // The passphrase for the private key if the key is encrypted. PrivateKeyPassphrase pulumi.StringPtrInput // The absolute path to the private key file that the self-hosted integration runtime can access. // // > **Note:** `privateKeyPath` only applies when using a self-hosted integration runtime (instead of the default Azure provided runtime), as indicated by supplying a value for `integrationRuntimeName`. PrivateKeyPath pulumi.StringPtrInput // Whether to validate host key fingerprint while connecting. If set to `false`, `hostKeyFingerprint` must also be set. SkipHostKeyValidation pulumi.BoolPtrInput // The username used to log on to the SFTP server. Username pulumi.StringPtrInput } func (LinkedServiceSftpState) ElementType() reflect.Type { return reflect.TypeOf((*linkedServiceSftpState)(nil)).Elem() } type linkedServiceSftpArgs struct { // A map of additional properties to associate with the Data Factory Linked Service. // // The following supported arguments are specific to SFTP Linked Service: AdditionalProperties map[string]string `pulumi:"additionalProperties"` // List of tags that can be used for describing the Data Factory Linked Service. Annotations []string `pulumi:"annotations"` // The type of authentication used to connect to the SFTP server. Valid options are `MultiFactor`, `Basic` and `SshPublicKey`. AuthenticationType string `pulumi:"authenticationType"` // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId string `pulumi:"dataFactoryId"` // The description for the Data Factory Linked Service. Description *string `pulumi:"description"` // The SFTP server hostname. Host string `pulumi:"host"` // The host key fingerprint of the SFTP server. HostKeyFingerprint *string `pulumi:"hostKeyFingerprint"` // The name of the integration runtime to associate with the Data Factory Linked Service. IntegrationRuntimeName *string `pulumi:"integrationRuntimeName"` // A `keyVaultPassword` block as defined below. // // > **Note:** Either `password` or `keyVaultPassword` is required when `authenticationType` is set to `Basic`. KeyVaultPasswords []LinkedServiceSftpKeyVaultPassword `pulumi:"keyVaultPasswords"` // A `keyVaultPrivateKeyContentBase64` block as defined below. KeyVaultPrivateKeyContentBase64 *LinkedServiceSftpKeyVaultPrivateKeyContentBase64 `pulumi:"keyVaultPrivateKeyContentBase64"` // A `keyVaultPrivateKeyPassphrase` block as defined below. // // > **Note:** One of `privateKeyContentBase64` or `privateKeyPath` (or their Key Vault equivalent) is required when `authenticationType` is set to `SshPublicKey`. KeyVaultPrivateKeyPassphrase *LinkedServiceSftpKeyVaultPrivateKeyPassphrase `pulumi:"keyVaultPrivateKeyPassphrase"` // Specifies the name of the Data Factory Linked Service. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name *string `pulumi:"name"` // A map of parameters to associate with the Data Factory Linked Service. Parameters map[string]string `pulumi:"parameters"` // Password to log on to the SFTP Server for Basic Authentication. Password *string `pulumi:"password"` // The TCP port number that the SFTP server uses to listen for client connection. Default value is 22. Port int `pulumi:"port"` // The Base64 encoded private key content in OpenSSH format used to log on to the SFTP server. PrivateKeyContentBase64 *string `pulumi:"privateKeyContentBase64"` // The passphrase for the private key if the key is encrypted. PrivateKeyPassphrase *string `pulumi:"privateKeyPassphrase"` // The absolute path to the private key file that the self-hosted integration runtime can access. // // > **Note:** `privateKeyPath` only applies when using a self-hosted integration runtime (instead of the default Azure provided runtime), as indicated by supplying a value for `integrationRuntimeName`. PrivateKeyPath *string `pulumi:"privateKeyPath"` // Whether to validate host key fingerprint while connecting. If set to `false`, `hostKeyFingerprint` must also be set. SkipHostKeyValidation *bool `pulumi:"skipHostKeyValidation"` // The username used to log on to the SFTP server. Username string `pulumi:"username"` } // The set of arguments for constructing a LinkedServiceSftp resource. type LinkedServiceSftpArgs struct { // A map of additional properties to associate with the Data Factory Linked Service. // // The following supported arguments are specific to SFTP Linked Service: AdditionalProperties pulumi.StringMapInput // List of tags that can be used for describing the Data Factory Linked Service. Annotations pulumi.StringArrayInput // The type of authentication used to connect to the SFTP server. Valid options are `MultiFactor`, `Basic` and `SshPublicKey`. AuthenticationType pulumi.StringInput // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId pulumi.StringInput // The description for the Data Factory Linked Service. Description pulumi.StringPtrInput // The SFTP server hostname. Host pulumi.StringInput // The host key fingerprint of the SFTP server. HostKeyFingerprint pulumi.StringPtrInput // The name of the integration runtime to associate with the Data Factory Linked Service. IntegrationRuntimeName pulumi.StringPtrInput // A `keyVaultPassword` block as defined below. // // > **Note:** Either `password` or `keyVaultPassword` is required when `authenticationType` is set to `Basic`. KeyVaultPasswords LinkedServiceSftpKeyVaultPasswordArrayInput // A `keyVaultPrivateKeyContentBase64` block as defined below. KeyVaultPrivateKeyContentBase64 LinkedServiceSftpKeyVaultPrivateKeyContentBase64PtrInput // A `keyVaultPrivateKeyPassphrase` block as defined below. // // > **Note:** One of `privateKeyContentBase64` or `privateKeyPath` (or their Key Vault equivalent) is required when `authenticationType` is set to `SshPublicKey`. KeyVaultPrivateKeyPassphrase LinkedServiceSftpKeyVaultPrivateKeyPassphrasePtrInput // Specifies the name of the Data Factory Linked Service. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringPtrInput // A map of parameters to associate with the Data Factory Linked Service. Parameters pulumi.StringMapInput // Password to log on to the SFTP Server for Basic Authentication. Password pulumi.StringPtrInput // The TCP port number that the SFTP server uses to listen for client connection. Default value is 22. Port pulumi.IntInput // The Base64 encoded private key content in OpenSSH format used to log on to the SFTP server. PrivateKeyContentBase64 pulumi.StringPtrInput // The passphrase for the private key if the key is encrypted. PrivateKeyPassphrase pulumi.StringPtrInput // The absolute path to the private key file that the self-hosted integration runtime can access. // // > **Note:** `privateKeyPath` only applies when using a self-hosted integration runtime (instead of the default Azure provided runtime), as indicated by supplying a value for `integrationRuntimeName`. PrivateKeyPath pulumi.StringPtrInput // Whether to validate host key fingerprint while connecting. If set to `false`, `hostKeyFingerprint` must also be set. SkipHostKeyValidation pulumi.BoolPtrInput // The username used to log on to the SFTP server. Username pulumi.StringInput } func (LinkedServiceSftpArgs) ElementType() reflect.Type { return reflect.TypeOf((*linkedServiceSftpArgs)(nil)).Elem() } type LinkedServiceSftpInput interface { pulumi.Input ToLinkedServiceSftpOutput() LinkedServiceSftpOutput ToLinkedServiceSftpOutputWithContext(ctx context.Context) LinkedServiceSftpOutput } func (*LinkedServiceSftp) ElementType() reflect.Type { return reflect.TypeOf((**LinkedServiceSftp)(nil)).Elem() } func (i *LinkedServiceSftp) ToLinkedServiceSftpOutput() LinkedServiceSftpOutput { return i.ToLinkedServiceSftpOutputWithContext(context.Background()) } func (i *LinkedServiceSftp) ToLinkedServiceSftpOutputWithContext(ctx context.Context) LinkedServiceSftpOutput { return pulumi.ToOutputWithContext(ctx, i).(LinkedServiceSftpOutput) } // LinkedServiceSftpArrayInput is an input type that accepts LinkedServiceSftpArray and LinkedServiceSftpArrayOutput values. // You can construct a concrete instance of `LinkedServiceSftpArrayInput` via: // // LinkedServiceSftpArray{ LinkedServiceSftpArgs{...} } type LinkedServiceSftpArrayInput interface { pulumi.Input ToLinkedServiceSftpArrayOutput() LinkedServiceSftpArrayOutput ToLinkedServiceSftpArrayOutputWithContext(context.Context) LinkedServiceSftpArrayOutput } type LinkedServiceSftpArray []LinkedServiceSftpInput func (LinkedServiceSftpArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*LinkedServiceSftp)(nil)).Elem() } func (i LinkedServiceSftpArray) ToLinkedServiceSftpArrayOutput() LinkedServiceSftpArrayOutput { return i.ToLinkedServiceSftpArrayOutputWithContext(context.Background()) } func (i LinkedServiceSftpArray) ToLinkedServiceSftpArrayOutputWithContext(ctx context.Context) LinkedServiceSftpArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(LinkedServiceSftpArrayOutput) } // LinkedServiceSftpMapInput is an input type that accepts LinkedServiceSftpMap and LinkedServiceSftpMapOutput values. // You can construct a concrete instance of `LinkedServiceSftpMapInput` via: // // LinkedServiceSftpMap{ "key": LinkedServiceSftpArgs{...} } type LinkedServiceSftpMapInput interface { pulumi.Input ToLinkedServiceSftpMapOutput() LinkedServiceSftpMapOutput ToLinkedServiceSftpMapOutputWithContext(context.Context) LinkedServiceSftpMapOutput } type LinkedServiceSftpMap map[string]LinkedServiceSftpInput func (LinkedServiceSftpMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*LinkedServiceSftp)(nil)).Elem() } func (i LinkedServiceSftpMap) ToLinkedServiceSftpMapOutput() LinkedServiceSftpMapOutput { return i.ToLinkedServiceSftpMapOutputWithContext(context.Background()) } func (i LinkedServiceSftpMap) ToLinkedServiceSftpMapOutputWithContext(ctx context.Context) LinkedServiceSftpMapOutput { return pulumi.ToOutputWithContext(ctx, i).(LinkedServiceSftpMapOutput) } type LinkedServiceSftpOutput struct{ *pulumi.OutputState } func (LinkedServiceSftpOutput) ElementType() reflect.Type { return reflect.TypeOf((**LinkedServiceSftp)(nil)).Elem() } func (o LinkedServiceSftpOutput) ToLinkedServiceSftpOutput() LinkedServiceSftpOutput { return o } func (o LinkedServiceSftpOutput) ToLinkedServiceSftpOutputWithContext(ctx context.Context) LinkedServiceSftpOutput { return o } // A map of additional properties to associate with the Data Factory Linked Service. // // The following supported arguments are specific to SFTP Linked Service: func (o LinkedServiceSftpOutput) AdditionalProperties() pulumi.StringMapOutput { return o.ApplyT(func(v *LinkedServiceSftp) pulumi.StringMapOutput { return v.AdditionalProperties }).(pulumi.StringMapOutput) } // List of tags that can be used for describing the Data Factory Linked Service. func (o LinkedServiceSftpOutput) Annotations() pulumi.StringArrayOutput { return o.ApplyT(func(v *LinkedServiceSftp) pulumi.StringArrayOutput { return v.Annotations }).(pulumi.StringArrayOutput) } // The type of authentication used to connect to the SFTP server. Valid options are `MultiFactor`, `Basic` and `SshPublicKey`. func (o LinkedServiceSftpOutput) AuthenticationType() pulumi.StringOutput { return o.ApplyT(func(v *LinkedServiceSftp) pulumi.StringOutput { return v.AuthenticationType }).(pulumi.StringOutput) } // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. func (o LinkedServiceSftpOutput) DataFactoryId() pulumi.StringOutput { return o.ApplyT(func(v *LinkedServiceSftp) pulumi.StringOutput { return v.DataFactoryId }).(pulumi.StringOutput) } // The description for the Data Factory Linked Service. func (o LinkedServiceSftpOutput) Description() pulumi.StringPtrOutput { return o.ApplyT(func(v *LinkedServiceSftp) pulumi.StringPtrOutput { return v.Description }).(pulumi.StringPtrOutput) } // The SFTP server hostname. func (o LinkedServiceSftpOutput) Host() pulumi.StringOutput { return o.ApplyT(func(v *LinkedServiceSftp) pulumi.StringOutput { return v.Host }).(pulumi.StringOutput) } // The host key fingerprint of the SFTP server. func (o LinkedServiceSftpOutput) HostKeyFingerprint() pulumi.StringPtrOutput { return o.ApplyT(func(v *LinkedServiceSftp) pulumi.StringPtrOutput { return v.HostKeyFingerprint }).(pulumi.StringPtrOutput) } // The name of the integration runtime to associate with the Data Factory Linked Service. func (o LinkedServiceSftpOutput) IntegrationRuntimeName() pulumi.StringPtrOutput { return o.ApplyT(func(v *LinkedServiceSftp) pulumi.StringPtrOutput { return v.IntegrationRuntimeName }).(pulumi.StringPtrOutput) } // A `keyVaultPassword` block as defined below. // // > **Note:** Either `password` or `keyVaultPassword` is required when `authenticationType` is set to `Basic`. func (o LinkedServiceSftpOutput) KeyVaultPasswords() LinkedServiceSftpKeyVaultPasswordArrayOutput { return o.ApplyT(func(v *LinkedServiceSftp) LinkedServiceSftpKeyVaultPasswordArrayOutput { return v.KeyVaultPasswords }).(LinkedServiceSftpKeyVaultPasswordArrayOutput) } // A `keyVaultPrivateKeyContentBase64` block as defined below. func (o LinkedServiceSftpOutput) KeyVaultPrivateKeyContentBase64() LinkedServiceSftpKeyVaultPrivateKeyContentBase64PtrOutput { return o.ApplyT(func(v *LinkedServiceSftp) LinkedServiceSftpKeyVaultPrivateKeyContentBase64PtrOutput { return v.KeyVaultPrivateKeyContentBase64 }).(LinkedServiceSftpKeyVaultPrivateKeyContentBase64PtrOutput) } // A `keyVaultPrivateKeyPassphrase` block as defined below. // // > **Note:** One of `privateKeyContentBase64` or `privateKeyPath` (or their Key Vault equivalent) is required when `authenticationType` is set to `SshPublicKey`. func (o LinkedServiceSftpOutput) KeyVaultPrivateKeyPassphrase() LinkedServiceSftpKeyVaultPrivateKeyPassphrasePtrOutput { return o.ApplyT(func(v *LinkedServiceSftp) LinkedServiceSftpKeyVaultPrivateKeyPassphrasePtrOutput { return v.KeyVaultPrivateKeyPassphrase }).(LinkedServiceSftpKeyVaultPrivateKeyPassphrasePtrOutput) } // Specifies the name of the Data Factory Linked Service. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. func (o LinkedServiceSftpOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *LinkedServiceSftp) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // A map of parameters to associate with the Data Factory Linked Service. func (o LinkedServiceSftpOutput) Parameters() pulumi.StringMapOutput { return o.ApplyT(func(v *LinkedServiceSftp) pulumi.StringMapOutput { return v.Parameters }).(pulumi.StringMapOutput) } // Password to log on to the SFTP Server for Basic Authentication. func (o LinkedServiceSftpOutput) Password() pulumi.StringPtrOutput { return o.ApplyT(func(v *LinkedServiceSftp) pulumi.StringPtrOutput { return v.Password }).(pulumi.StringPtrOutput) } // The TCP port number that the SFTP server uses to listen for client connection. Default value is 22. func (o LinkedServiceSftpOutput) Port() pulumi.IntOutput { return o.ApplyT(func(v *LinkedServiceSftp) pulumi.IntOutput { return v.Port }).(pulumi.IntOutput) } // The Base64 encoded private key content in OpenSSH format used to log on to the SFTP server. func (o LinkedServiceSftpOutput) PrivateKeyContentBase64() pulumi.StringPtrOutput { return o.ApplyT(func(v *LinkedServiceSftp) pulumi.StringPtrOutput { return v.PrivateKeyContentBase64 }).(pulumi.StringPtrOutput) } // The passphrase for the private key if the key is encrypted. func (o LinkedServiceSftpOutput) PrivateKeyPassphrase() pulumi.StringPtrOutput { return o.ApplyT(func(v *LinkedServiceSftp) pulumi.StringPtrOutput { return v.PrivateKeyPassphrase }).(pulumi.StringPtrOutput) } // The absolute path to the private key file that the self-hosted integration runtime can access. // // > **Note:** `privateKeyPath` only applies when using a self-hosted integration runtime (instead of the default Azure provided runtime), as indicated by supplying a value for `integrationRuntimeName`. func (o LinkedServiceSftpOutput) PrivateKeyPath() pulumi.StringPtrOutput { return o.ApplyT(func(v *LinkedServiceSftp) pulumi.StringPtrOutput { return v.PrivateKeyPath }).(pulumi.StringPtrOutput) } // Whether to validate host key fingerprint while connecting. If set to `false`, `hostKeyFingerprint` must also be set. func (o LinkedServiceSftpOutput) SkipHostKeyValidation() pulumi.BoolPtrOutput { return o.ApplyT(func(v *LinkedServiceSftp) pulumi.BoolPtrOutput { return v.SkipHostKeyValidation }).(pulumi.BoolPtrOutput) } // The username used to log on to the SFTP server. func (o LinkedServiceSftpOutput) Username() pulumi.StringOutput { return o.ApplyT(func(v *LinkedServiceSftp) pulumi.StringOutput { return v.Username }).(pulumi.StringOutput) } type LinkedServiceSftpArrayOutput struct{ *pulumi.OutputState } func (LinkedServiceSftpArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*LinkedServiceSftp)(nil)).Elem() } func (o LinkedServiceSftpArrayOutput) ToLinkedServiceSftpArrayOutput() LinkedServiceSftpArrayOutput { return o } func (o LinkedServiceSftpArrayOutput) ToLinkedServiceSftpArrayOutputWithContext(ctx context.Context) LinkedServiceSftpArrayOutput { return o } func (o LinkedServiceSftpArrayOutput) Index(i pulumi.IntInput) LinkedServiceSftpOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *LinkedServiceSftp { return vs[0].([]*LinkedServiceSftp)[vs[1].(int)] }).(LinkedServiceSftpOutput) } type LinkedServiceSftpMapOutput struct{ *pulumi.OutputState } func (LinkedServiceSftpMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*LinkedServiceSftp)(nil)).Elem() } func (o LinkedServiceSftpMapOutput) ToLinkedServiceSftpMapOutput() LinkedServiceSftpMapOutput { 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/datafactory/integrationRuntimeRule.go
sdk/go/azure/datafactory/integrationRuntimeRule.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 datafactory import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a Data Factory Azure Integration Runtime. // // ## 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/datafactory" // "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 // } // exampleFactory, err := datafactory.NewFactory(ctx, "example", &datafactory.FactoryArgs{ // Name: pulumi.String("example"), // Location: example.Location, // ResourceGroupName: example.Name, // }) // if err != nil { // return err // } // _, err = datafactory.NewIntegrationRuntimeRule(ctx, "example", &datafactory.IntegrationRuntimeRuleArgs{ // Name: pulumi.String("example"), // DataFactoryId: exampleFactory.ID(), // Location: example.Location, // }) // 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.DataFactory` - 2018-06-01 // // ## Import // // Data Factory Azure Integration Runtimes can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:datafactory/integrationRuntimeRule:IntegrationRuntimeRule example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example/providers/Microsoft.DataFactory/factories/example/integrationRuntimes/example // ``` type IntegrationRuntimeRule struct { pulumi.CustomResourceState // Cluster will not be recycled and it will be used in next data flow activity run until TTL (time to live) is reached if this is set as `false`. Defaults to `true`. CleanupEnabled pulumi.BoolPtrOutput `pulumi:"cleanupEnabled"` // Compute type of the cluster which will execute data flow job. Valid values are `General`, `ComputeOptimized` and `MemoryOptimized`. Defaults to `General`. ComputeType pulumi.StringPtrOutput `pulumi:"computeType"` // Core count of the cluster which will execute data flow job. Valid values are `8`, `16`, `32`, `48`, `80`, `144` and `272`. Defaults to `8`. CoreCount pulumi.IntPtrOutput `pulumi:"coreCount"` // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId pulumi.StringOutput `pulumi:"dataFactoryId"` // Integration runtime description. Description pulumi.StringPtrOutput `pulumi:"description"` // Specifies the supported Azure location where the resource exists. Use `AutoResolve` to create an auto-resolve integration runtime. Changing this forces a new resource to be created. Location pulumi.StringOutput `pulumi:"location"` // Specifies the name of the Managed Integration Runtime. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringOutput `pulumi:"name"` // Time to live (in minutes) setting of the cluster which will execute data flow job. Defaults to `0`. TimeToLiveMin pulumi.IntPtrOutput `pulumi:"timeToLiveMin"` // Is Integration Runtime compute provisioned within Managed Virtual Network? Changing this forces a new resource to be created. VirtualNetworkEnabled pulumi.BoolPtrOutput `pulumi:"virtualNetworkEnabled"` } // NewIntegrationRuntimeRule registers a new resource with the given unique name, arguments, and options. func NewIntegrationRuntimeRule(ctx *pulumi.Context, name string, args *IntegrationRuntimeRuleArgs, opts ...pulumi.ResourceOption) (*IntegrationRuntimeRule, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.DataFactoryId == nil { return nil, errors.New("invalid value for required argument 'DataFactoryId'") } opts = internal.PkgResourceDefaultOpts(opts) var resource IntegrationRuntimeRule err := ctx.RegisterResource("azure:datafactory/integrationRuntimeRule:IntegrationRuntimeRule", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetIntegrationRuntimeRule gets an existing IntegrationRuntimeRule 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 GetIntegrationRuntimeRule(ctx *pulumi.Context, name string, id pulumi.IDInput, state *IntegrationRuntimeRuleState, opts ...pulumi.ResourceOption) (*IntegrationRuntimeRule, error) { var resource IntegrationRuntimeRule err := ctx.ReadResource("azure:datafactory/integrationRuntimeRule:IntegrationRuntimeRule", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering IntegrationRuntimeRule resources. type integrationRuntimeRuleState struct { // Cluster will not be recycled and it will be used in next data flow activity run until TTL (time to live) is reached if this is set as `false`. Defaults to `true`. CleanupEnabled *bool `pulumi:"cleanupEnabled"` // Compute type of the cluster which will execute data flow job. Valid values are `General`, `ComputeOptimized` and `MemoryOptimized`. Defaults to `General`. ComputeType *string `pulumi:"computeType"` // Core count of the cluster which will execute data flow job. Valid values are `8`, `16`, `32`, `48`, `80`, `144` and `272`. Defaults to `8`. CoreCount *int `pulumi:"coreCount"` // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId *string `pulumi:"dataFactoryId"` // Integration runtime description. Description *string `pulumi:"description"` // Specifies the supported Azure location where the resource exists. Use `AutoResolve` to create an auto-resolve integration runtime. Changing this forces a new resource to be created. Location *string `pulumi:"location"` // Specifies the name of the Managed Integration Runtime. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name *string `pulumi:"name"` // Time to live (in minutes) setting of the cluster which will execute data flow job. Defaults to `0`. TimeToLiveMin *int `pulumi:"timeToLiveMin"` // Is Integration Runtime compute provisioned within Managed Virtual Network? Changing this forces a new resource to be created. VirtualNetworkEnabled *bool `pulumi:"virtualNetworkEnabled"` } type IntegrationRuntimeRuleState struct { // Cluster will not be recycled and it will be used in next data flow activity run until TTL (time to live) is reached if this is set as `false`. Defaults to `true`. CleanupEnabled pulumi.BoolPtrInput // Compute type of the cluster which will execute data flow job. Valid values are `General`, `ComputeOptimized` and `MemoryOptimized`. Defaults to `General`. ComputeType pulumi.StringPtrInput // Core count of the cluster which will execute data flow job. Valid values are `8`, `16`, `32`, `48`, `80`, `144` and `272`. Defaults to `8`. CoreCount pulumi.IntPtrInput // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId pulumi.StringPtrInput // Integration runtime description. Description pulumi.StringPtrInput // Specifies the supported Azure location where the resource exists. Use `AutoResolve` to create an auto-resolve integration runtime. Changing this forces a new resource to be created. Location pulumi.StringPtrInput // Specifies the name of the Managed Integration Runtime. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringPtrInput // Time to live (in minutes) setting of the cluster which will execute data flow job. Defaults to `0`. TimeToLiveMin pulumi.IntPtrInput // Is Integration Runtime compute provisioned within Managed Virtual Network? Changing this forces a new resource to be created. VirtualNetworkEnabled pulumi.BoolPtrInput } func (IntegrationRuntimeRuleState) ElementType() reflect.Type { return reflect.TypeOf((*integrationRuntimeRuleState)(nil)).Elem() } type integrationRuntimeRuleArgs struct { // Cluster will not be recycled and it will be used in next data flow activity run until TTL (time to live) is reached if this is set as `false`. Defaults to `true`. CleanupEnabled *bool `pulumi:"cleanupEnabled"` // Compute type of the cluster which will execute data flow job. Valid values are `General`, `ComputeOptimized` and `MemoryOptimized`. Defaults to `General`. ComputeType *string `pulumi:"computeType"` // Core count of the cluster which will execute data flow job. Valid values are `8`, `16`, `32`, `48`, `80`, `144` and `272`. Defaults to `8`. CoreCount *int `pulumi:"coreCount"` // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId string `pulumi:"dataFactoryId"` // Integration runtime description. Description *string `pulumi:"description"` // Specifies the supported Azure location where the resource exists. Use `AutoResolve` to create an auto-resolve integration runtime. Changing this forces a new resource to be created. Location *string `pulumi:"location"` // Specifies the name of the Managed Integration Runtime. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name *string `pulumi:"name"` // Time to live (in minutes) setting of the cluster which will execute data flow job. Defaults to `0`. TimeToLiveMin *int `pulumi:"timeToLiveMin"` // Is Integration Runtime compute provisioned within Managed Virtual Network? Changing this forces a new resource to be created. VirtualNetworkEnabled *bool `pulumi:"virtualNetworkEnabled"` } // The set of arguments for constructing a IntegrationRuntimeRule resource. type IntegrationRuntimeRuleArgs struct { // Cluster will not be recycled and it will be used in next data flow activity run until TTL (time to live) is reached if this is set as `false`. Defaults to `true`. CleanupEnabled pulumi.BoolPtrInput // Compute type of the cluster which will execute data flow job. Valid values are `General`, `ComputeOptimized` and `MemoryOptimized`. Defaults to `General`. ComputeType pulumi.StringPtrInput // Core count of the cluster which will execute data flow job. Valid values are `8`, `16`, `32`, `48`, `80`, `144` and `272`. Defaults to `8`. CoreCount pulumi.IntPtrInput // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId pulumi.StringInput // Integration runtime description. Description pulumi.StringPtrInput // Specifies the supported Azure location where the resource exists. Use `AutoResolve` to create an auto-resolve integration runtime. Changing this forces a new resource to be created. Location pulumi.StringPtrInput // Specifies the name of the Managed Integration Runtime. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringPtrInput // Time to live (in minutes) setting of the cluster which will execute data flow job. Defaults to `0`. TimeToLiveMin pulumi.IntPtrInput // Is Integration Runtime compute provisioned within Managed Virtual Network? Changing this forces a new resource to be created. VirtualNetworkEnabled pulumi.BoolPtrInput } func (IntegrationRuntimeRuleArgs) ElementType() reflect.Type { return reflect.TypeOf((*integrationRuntimeRuleArgs)(nil)).Elem() } type IntegrationRuntimeRuleInput interface { pulumi.Input ToIntegrationRuntimeRuleOutput() IntegrationRuntimeRuleOutput ToIntegrationRuntimeRuleOutputWithContext(ctx context.Context) IntegrationRuntimeRuleOutput } func (*IntegrationRuntimeRule) ElementType() reflect.Type { return reflect.TypeOf((**IntegrationRuntimeRule)(nil)).Elem() } func (i *IntegrationRuntimeRule) ToIntegrationRuntimeRuleOutput() IntegrationRuntimeRuleOutput { return i.ToIntegrationRuntimeRuleOutputWithContext(context.Background()) } func (i *IntegrationRuntimeRule) ToIntegrationRuntimeRuleOutputWithContext(ctx context.Context) IntegrationRuntimeRuleOutput { return pulumi.ToOutputWithContext(ctx, i).(IntegrationRuntimeRuleOutput) } // IntegrationRuntimeRuleArrayInput is an input type that accepts IntegrationRuntimeRuleArray and IntegrationRuntimeRuleArrayOutput values. // You can construct a concrete instance of `IntegrationRuntimeRuleArrayInput` via: // // IntegrationRuntimeRuleArray{ IntegrationRuntimeRuleArgs{...} } type IntegrationRuntimeRuleArrayInput interface { pulumi.Input ToIntegrationRuntimeRuleArrayOutput() IntegrationRuntimeRuleArrayOutput ToIntegrationRuntimeRuleArrayOutputWithContext(context.Context) IntegrationRuntimeRuleArrayOutput } type IntegrationRuntimeRuleArray []IntegrationRuntimeRuleInput func (IntegrationRuntimeRuleArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*IntegrationRuntimeRule)(nil)).Elem() } func (i IntegrationRuntimeRuleArray) ToIntegrationRuntimeRuleArrayOutput() IntegrationRuntimeRuleArrayOutput { return i.ToIntegrationRuntimeRuleArrayOutputWithContext(context.Background()) } func (i IntegrationRuntimeRuleArray) ToIntegrationRuntimeRuleArrayOutputWithContext(ctx context.Context) IntegrationRuntimeRuleArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(IntegrationRuntimeRuleArrayOutput) } // IntegrationRuntimeRuleMapInput is an input type that accepts IntegrationRuntimeRuleMap and IntegrationRuntimeRuleMapOutput values. // You can construct a concrete instance of `IntegrationRuntimeRuleMapInput` via: // // IntegrationRuntimeRuleMap{ "key": IntegrationRuntimeRuleArgs{...} } type IntegrationRuntimeRuleMapInput interface { pulumi.Input ToIntegrationRuntimeRuleMapOutput() IntegrationRuntimeRuleMapOutput ToIntegrationRuntimeRuleMapOutputWithContext(context.Context) IntegrationRuntimeRuleMapOutput } type IntegrationRuntimeRuleMap map[string]IntegrationRuntimeRuleInput func (IntegrationRuntimeRuleMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*IntegrationRuntimeRule)(nil)).Elem() } func (i IntegrationRuntimeRuleMap) ToIntegrationRuntimeRuleMapOutput() IntegrationRuntimeRuleMapOutput { return i.ToIntegrationRuntimeRuleMapOutputWithContext(context.Background()) } func (i IntegrationRuntimeRuleMap) ToIntegrationRuntimeRuleMapOutputWithContext(ctx context.Context) IntegrationRuntimeRuleMapOutput { return pulumi.ToOutputWithContext(ctx, i).(IntegrationRuntimeRuleMapOutput) } type IntegrationRuntimeRuleOutput struct{ *pulumi.OutputState } func (IntegrationRuntimeRuleOutput) ElementType() reflect.Type { return reflect.TypeOf((**IntegrationRuntimeRule)(nil)).Elem() } func (o IntegrationRuntimeRuleOutput) ToIntegrationRuntimeRuleOutput() IntegrationRuntimeRuleOutput { return o } func (o IntegrationRuntimeRuleOutput) ToIntegrationRuntimeRuleOutputWithContext(ctx context.Context) IntegrationRuntimeRuleOutput { return o } // Cluster will not be recycled and it will be used in next data flow activity run until TTL (time to live) is reached if this is set as `false`. Defaults to `true`. func (o IntegrationRuntimeRuleOutput) CleanupEnabled() pulumi.BoolPtrOutput { return o.ApplyT(func(v *IntegrationRuntimeRule) pulumi.BoolPtrOutput { return v.CleanupEnabled }).(pulumi.BoolPtrOutput) } // Compute type of the cluster which will execute data flow job. Valid values are `General`, `ComputeOptimized` and `MemoryOptimized`. Defaults to `General`. func (o IntegrationRuntimeRuleOutput) ComputeType() pulumi.StringPtrOutput { return o.ApplyT(func(v *IntegrationRuntimeRule) pulumi.StringPtrOutput { return v.ComputeType }).(pulumi.StringPtrOutput) } // Core count of the cluster which will execute data flow job. Valid values are `8`, `16`, `32`, `48`, `80`, `144` and `272`. Defaults to `8`. func (o IntegrationRuntimeRuleOutput) CoreCount() pulumi.IntPtrOutput { return o.ApplyT(func(v *IntegrationRuntimeRule) pulumi.IntPtrOutput { return v.CoreCount }).(pulumi.IntPtrOutput) } // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. func (o IntegrationRuntimeRuleOutput) DataFactoryId() pulumi.StringOutput { return o.ApplyT(func(v *IntegrationRuntimeRule) pulumi.StringOutput { return v.DataFactoryId }).(pulumi.StringOutput) } // Integration runtime description. func (o IntegrationRuntimeRuleOutput) Description() pulumi.StringPtrOutput { return o.ApplyT(func(v *IntegrationRuntimeRule) pulumi.StringPtrOutput { return v.Description }).(pulumi.StringPtrOutput) } // Specifies the supported Azure location where the resource exists. Use `AutoResolve` to create an auto-resolve integration runtime. Changing this forces a new resource to be created. func (o IntegrationRuntimeRuleOutput) Location() pulumi.StringOutput { return o.ApplyT(func(v *IntegrationRuntimeRule) pulumi.StringOutput { return v.Location }).(pulumi.StringOutput) } // Specifies the name of the Managed Integration Runtime. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. func (o IntegrationRuntimeRuleOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *IntegrationRuntimeRule) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // Time to live (in minutes) setting of the cluster which will execute data flow job. Defaults to `0`. func (o IntegrationRuntimeRuleOutput) TimeToLiveMin() pulumi.IntPtrOutput { return o.ApplyT(func(v *IntegrationRuntimeRule) pulumi.IntPtrOutput { return v.TimeToLiveMin }).(pulumi.IntPtrOutput) } // Is Integration Runtime compute provisioned within Managed Virtual Network? Changing this forces a new resource to be created. func (o IntegrationRuntimeRuleOutput) VirtualNetworkEnabled() pulumi.BoolPtrOutput { return o.ApplyT(func(v *IntegrationRuntimeRule) pulumi.BoolPtrOutput { return v.VirtualNetworkEnabled }).(pulumi.BoolPtrOutput) } type IntegrationRuntimeRuleArrayOutput struct{ *pulumi.OutputState } func (IntegrationRuntimeRuleArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*IntegrationRuntimeRule)(nil)).Elem() } func (o IntegrationRuntimeRuleArrayOutput) ToIntegrationRuntimeRuleArrayOutput() IntegrationRuntimeRuleArrayOutput { return o } func (o IntegrationRuntimeRuleArrayOutput) ToIntegrationRuntimeRuleArrayOutputWithContext(ctx context.Context) IntegrationRuntimeRuleArrayOutput { return o } func (o IntegrationRuntimeRuleArrayOutput) Index(i pulumi.IntInput) IntegrationRuntimeRuleOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *IntegrationRuntimeRule { return vs[0].([]*IntegrationRuntimeRule)[vs[1].(int)] }).(IntegrationRuntimeRuleOutput) } type IntegrationRuntimeRuleMapOutput struct{ *pulumi.OutputState } func (IntegrationRuntimeRuleMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*IntegrationRuntimeRule)(nil)).Elem() } func (o IntegrationRuntimeRuleMapOutput) ToIntegrationRuntimeRuleMapOutput() IntegrationRuntimeRuleMapOutput { return o } func (o IntegrationRuntimeRuleMapOutput) ToIntegrationRuntimeRuleMapOutputWithContext(ctx context.Context) IntegrationRuntimeRuleMapOutput { return o } func (o IntegrationRuntimeRuleMapOutput) MapIndex(k pulumi.StringInput) IntegrationRuntimeRuleOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *IntegrationRuntimeRule { return vs[0].(map[string]*IntegrationRuntimeRule)[vs[1].(string)] }).(IntegrationRuntimeRuleOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*IntegrationRuntimeRuleInput)(nil)).Elem(), &IntegrationRuntimeRule{}) pulumi.RegisterInputType(reflect.TypeOf((*IntegrationRuntimeRuleArrayInput)(nil)).Elem(), IntegrationRuntimeRuleArray{}) pulumi.RegisterInputType(reflect.TypeOf((*IntegrationRuntimeRuleMapInput)(nil)).Elem(), IntegrationRuntimeRuleMap{}) pulumi.RegisterOutputType(IntegrationRuntimeRuleOutput{}) pulumi.RegisterOutputType(IntegrationRuntimeRuleArrayOutput{}) pulumi.RegisterOutputType(IntegrationRuntimeRuleMapOutput{}) }
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/datafactory/datasetAzureSqlTable.go
sdk/go/azure/datafactory/datasetAzureSqlTable.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 datafactory 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 SQL Table Dataset inside an Azure Data Factory. // // ## 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/datafactory" // "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 // } // exampleFactory, err := datafactory.NewFactory(ctx, "example", &datafactory.FactoryArgs{ // Name: pulumi.String("example"), // Location: example.Location, // ResourceGroupName: example.Name, // }) // if err != nil { // return err // } // exampleLinkedServiceAzureSqlDatabase, err := datafactory.NewLinkedServiceAzureSqlDatabase(ctx, "example", &datafactory.LinkedServiceAzureSqlDatabaseArgs{ // Name: pulumi.String("example"), // DataFactoryId: exampleFactory.ID(), // ConnectionString: pulumi.String("Integrated Security=False;Data Source=test;Initial Catalog=test;Initial Catalog=test;User ID=test;Password=test"), // }) // if err != nil { // return err // } // _, err = datafactory.NewDatasetAzureSqlTable(ctx, "example", &datafactory.DatasetAzureSqlTableArgs{ // Name: pulumi.String("example"), // DataFactoryId: exampleFactory.ID(), // LinkedServiceId: exampleLinkedServiceAzureSqlDatabase.ID(), // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## Import // // Data Factory Azure SQL Table Datasets can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:datafactory/datasetAzureSqlTable:DatasetAzureSqlTable example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example/providers/Microsoft.DataFactory/factories/example/datasets/example // ``` type DatasetAzureSqlTable struct { pulumi.CustomResourceState // A map of additional properties to associate with the Data Factory Dataset Azure SQL Table. AdditionalProperties pulumi.StringMapOutput `pulumi:"additionalProperties"` // List of tags that can be used for describing the Data Factory Dataset Azure SQL Table. Annotations pulumi.StringArrayOutput `pulumi:"annotations"` // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId pulumi.StringOutput `pulumi:"dataFactoryId"` // The description for the Data Factory Dataset Azure SQL Table. Description pulumi.StringPtrOutput `pulumi:"description"` // The folder that this Dataset is in. If not specified, the Dataset will appear at the root level. Folder pulumi.StringPtrOutput `pulumi:"folder"` // The Data Factory Linked Service ID in which to associate the Dataset with. LinkedServiceId pulumi.StringOutput `pulumi:"linkedServiceId"` // Specifies the name of the Data Factory Dataset Azure SQL Table. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringOutput `pulumi:"name"` // A map of parameters to associate with the Data Factory Dataset Azure SQL Table. Parameters pulumi.StringMapOutput `pulumi:"parameters"` // The schema name of the table in the Azure SQL Database. Schema pulumi.StringPtrOutput `pulumi:"schema"` // A `schemaColumn` block as defined below. SchemaColumns DatasetAzureSqlTableSchemaColumnArrayOutput `pulumi:"schemaColumns"` // The table name of the table in the Azure SQL Database. Table pulumi.StringPtrOutput `pulumi:"table"` } // NewDatasetAzureSqlTable registers a new resource with the given unique name, arguments, and options. func NewDatasetAzureSqlTable(ctx *pulumi.Context, name string, args *DatasetAzureSqlTableArgs, opts ...pulumi.ResourceOption) (*DatasetAzureSqlTable, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.DataFactoryId == nil { return nil, errors.New("invalid value for required argument 'DataFactoryId'") } if args.LinkedServiceId == nil { return nil, errors.New("invalid value for required argument 'LinkedServiceId'") } opts = internal.PkgResourceDefaultOpts(opts) var resource DatasetAzureSqlTable err := ctx.RegisterResource("azure:datafactory/datasetAzureSqlTable:DatasetAzureSqlTable", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetDatasetAzureSqlTable gets an existing DatasetAzureSqlTable 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 GetDatasetAzureSqlTable(ctx *pulumi.Context, name string, id pulumi.IDInput, state *DatasetAzureSqlTableState, opts ...pulumi.ResourceOption) (*DatasetAzureSqlTable, error) { var resource DatasetAzureSqlTable err := ctx.ReadResource("azure:datafactory/datasetAzureSqlTable:DatasetAzureSqlTable", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering DatasetAzureSqlTable resources. type datasetAzureSqlTableState struct { // A map of additional properties to associate with the Data Factory Dataset Azure SQL Table. AdditionalProperties map[string]string `pulumi:"additionalProperties"` // List of tags that can be used for describing the Data Factory Dataset Azure SQL Table. Annotations []string `pulumi:"annotations"` // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId *string `pulumi:"dataFactoryId"` // The description for the Data Factory Dataset Azure SQL Table. Description *string `pulumi:"description"` // The folder that this Dataset is in. If not specified, the Dataset will appear at the root level. Folder *string `pulumi:"folder"` // The Data Factory Linked Service ID in which to associate the Dataset with. LinkedServiceId *string `pulumi:"linkedServiceId"` // Specifies the name of the Data Factory Dataset Azure SQL Table. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name *string `pulumi:"name"` // A map of parameters to associate with the Data Factory Dataset Azure SQL Table. Parameters map[string]string `pulumi:"parameters"` // The schema name of the table in the Azure SQL Database. Schema *string `pulumi:"schema"` // A `schemaColumn` block as defined below. SchemaColumns []DatasetAzureSqlTableSchemaColumn `pulumi:"schemaColumns"` // The table name of the table in the Azure SQL Database. Table *string `pulumi:"table"` } type DatasetAzureSqlTableState struct { // A map of additional properties to associate with the Data Factory Dataset Azure SQL Table. AdditionalProperties pulumi.StringMapInput // List of tags that can be used for describing the Data Factory Dataset Azure SQL Table. Annotations pulumi.StringArrayInput // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId pulumi.StringPtrInput // The description for the Data Factory Dataset Azure SQL Table. Description pulumi.StringPtrInput // The folder that this Dataset is in. If not specified, the Dataset will appear at the root level. Folder pulumi.StringPtrInput // The Data Factory Linked Service ID in which to associate the Dataset with. LinkedServiceId pulumi.StringPtrInput // Specifies the name of the Data Factory Dataset Azure SQL Table. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringPtrInput // A map of parameters to associate with the Data Factory Dataset Azure SQL Table. Parameters pulumi.StringMapInput // The schema name of the table in the Azure SQL Database. Schema pulumi.StringPtrInput // A `schemaColumn` block as defined below. SchemaColumns DatasetAzureSqlTableSchemaColumnArrayInput // The table name of the table in the Azure SQL Database. Table pulumi.StringPtrInput } func (DatasetAzureSqlTableState) ElementType() reflect.Type { return reflect.TypeOf((*datasetAzureSqlTableState)(nil)).Elem() } type datasetAzureSqlTableArgs struct { // A map of additional properties to associate with the Data Factory Dataset Azure SQL Table. AdditionalProperties map[string]string `pulumi:"additionalProperties"` // List of tags that can be used for describing the Data Factory Dataset Azure SQL Table. Annotations []string `pulumi:"annotations"` // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId string `pulumi:"dataFactoryId"` // The description for the Data Factory Dataset Azure SQL Table. Description *string `pulumi:"description"` // The folder that this Dataset is in. If not specified, the Dataset will appear at the root level. Folder *string `pulumi:"folder"` // The Data Factory Linked Service ID in which to associate the Dataset with. LinkedServiceId string `pulumi:"linkedServiceId"` // Specifies the name of the Data Factory Dataset Azure SQL Table. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name *string `pulumi:"name"` // A map of parameters to associate with the Data Factory Dataset Azure SQL Table. Parameters map[string]string `pulumi:"parameters"` // The schema name of the table in the Azure SQL Database. Schema *string `pulumi:"schema"` // A `schemaColumn` block as defined below. SchemaColumns []DatasetAzureSqlTableSchemaColumn `pulumi:"schemaColumns"` // The table name of the table in the Azure SQL Database. Table *string `pulumi:"table"` } // The set of arguments for constructing a DatasetAzureSqlTable resource. type DatasetAzureSqlTableArgs struct { // A map of additional properties to associate with the Data Factory Dataset Azure SQL Table. AdditionalProperties pulumi.StringMapInput // List of tags that can be used for describing the Data Factory Dataset Azure SQL Table. Annotations pulumi.StringArrayInput // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId pulumi.StringInput // The description for the Data Factory Dataset Azure SQL Table. Description pulumi.StringPtrInput // The folder that this Dataset is in. If not specified, the Dataset will appear at the root level. Folder pulumi.StringPtrInput // The Data Factory Linked Service ID in which to associate the Dataset with. LinkedServiceId pulumi.StringInput // Specifies the name of the Data Factory Dataset Azure SQL Table. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringPtrInput // A map of parameters to associate with the Data Factory Dataset Azure SQL Table. Parameters pulumi.StringMapInput // The schema name of the table in the Azure SQL Database. Schema pulumi.StringPtrInput // A `schemaColumn` block as defined below. SchemaColumns DatasetAzureSqlTableSchemaColumnArrayInput // The table name of the table in the Azure SQL Database. Table pulumi.StringPtrInput } func (DatasetAzureSqlTableArgs) ElementType() reflect.Type { return reflect.TypeOf((*datasetAzureSqlTableArgs)(nil)).Elem() } type DatasetAzureSqlTableInput interface { pulumi.Input ToDatasetAzureSqlTableOutput() DatasetAzureSqlTableOutput ToDatasetAzureSqlTableOutputWithContext(ctx context.Context) DatasetAzureSqlTableOutput } func (*DatasetAzureSqlTable) ElementType() reflect.Type { return reflect.TypeOf((**DatasetAzureSqlTable)(nil)).Elem() } func (i *DatasetAzureSqlTable) ToDatasetAzureSqlTableOutput() DatasetAzureSqlTableOutput { return i.ToDatasetAzureSqlTableOutputWithContext(context.Background()) } func (i *DatasetAzureSqlTable) ToDatasetAzureSqlTableOutputWithContext(ctx context.Context) DatasetAzureSqlTableOutput { return pulumi.ToOutputWithContext(ctx, i).(DatasetAzureSqlTableOutput) } // DatasetAzureSqlTableArrayInput is an input type that accepts DatasetAzureSqlTableArray and DatasetAzureSqlTableArrayOutput values. // You can construct a concrete instance of `DatasetAzureSqlTableArrayInput` via: // // DatasetAzureSqlTableArray{ DatasetAzureSqlTableArgs{...} } type DatasetAzureSqlTableArrayInput interface { pulumi.Input ToDatasetAzureSqlTableArrayOutput() DatasetAzureSqlTableArrayOutput ToDatasetAzureSqlTableArrayOutputWithContext(context.Context) DatasetAzureSqlTableArrayOutput } type DatasetAzureSqlTableArray []DatasetAzureSqlTableInput func (DatasetAzureSqlTableArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*DatasetAzureSqlTable)(nil)).Elem() } func (i DatasetAzureSqlTableArray) ToDatasetAzureSqlTableArrayOutput() DatasetAzureSqlTableArrayOutput { return i.ToDatasetAzureSqlTableArrayOutputWithContext(context.Background()) } func (i DatasetAzureSqlTableArray) ToDatasetAzureSqlTableArrayOutputWithContext(ctx context.Context) DatasetAzureSqlTableArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(DatasetAzureSqlTableArrayOutput) } // DatasetAzureSqlTableMapInput is an input type that accepts DatasetAzureSqlTableMap and DatasetAzureSqlTableMapOutput values. // You can construct a concrete instance of `DatasetAzureSqlTableMapInput` via: // // DatasetAzureSqlTableMap{ "key": DatasetAzureSqlTableArgs{...} } type DatasetAzureSqlTableMapInput interface { pulumi.Input ToDatasetAzureSqlTableMapOutput() DatasetAzureSqlTableMapOutput ToDatasetAzureSqlTableMapOutputWithContext(context.Context) DatasetAzureSqlTableMapOutput } type DatasetAzureSqlTableMap map[string]DatasetAzureSqlTableInput func (DatasetAzureSqlTableMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*DatasetAzureSqlTable)(nil)).Elem() } func (i DatasetAzureSqlTableMap) ToDatasetAzureSqlTableMapOutput() DatasetAzureSqlTableMapOutput { return i.ToDatasetAzureSqlTableMapOutputWithContext(context.Background()) } func (i DatasetAzureSqlTableMap) ToDatasetAzureSqlTableMapOutputWithContext(ctx context.Context) DatasetAzureSqlTableMapOutput { return pulumi.ToOutputWithContext(ctx, i).(DatasetAzureSqlTableMapOutput) } type DatasetAzureSqlTableOutput struct{ *pulumi.OutputState } func (DatasetAzureSqlTableOutput) ElementType() reflect.Type { return reflect.TypeOf((**DatasetAzureSqlTable)(nil)).Elem() } func (o DatasetAzureSqlTableOutput) ToDatasetAzureSqlTableOutput() DatasetAzureSqlTableOutput { return o } func (o DatasetAzureSqlTableOutput) ToDatasetAzureSqlTableOutputWithContext(ctx context.Context) DatasetAzureSqlTableOutput { return o } // A map of additional properties to associate with the Data Factory Dataset Azure SQL Table. func (o DatasetAzureSqlTableOutput) AdditionalProperties() pulumi.StringMapOutput { return o.ApplyT(func(v *DatasetAzureSqlTable) pulumi.StringMapOutput { return v.AdditionalProperties }).(pulumi.StringMapOutput) } // List of tags that can be used for describing the Data Factory Dataset Azure SQL Table. func (o DatasetAzureSqlTableOutput) Annotations() pulumi.StringArrayOutput { return o.ApplyT(func(v *DatasetAzureSqlTable) pulumi.StringArrayOutput { return v.Annotations }).(pulumi.StringArrayOutput) } // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. func (o DatasetAzureSqlTableOutput) DataFactoryId() pulumi.StringOutput { return o.ApplyT(func(v *DatasetAzureSqlTable) pulumi.StringOutput { return v.DataFactoryId }).(pulumi.StringOutput) } // The description for the Data Factory Dataset Azure SQL Table. func (o DatasetAzureSqlTableOutput) Description() pulumi.StringPtrOutput { return o.ApplyT(func(v *DatasetAzureSqlTable) pulumi.StringPtrOutput { return v.Description }).(pulumi.StringPtrOutput) } // The folder that this Dataset is in. If not specified, the Dataset will appear at the root level. func (o DatasetAzureSqlTableOutput) Folder() pulumi.StringPtrOutput { return o.ApplyT(func(v *DatasetAzureSqlTable) pulumi.StringPtrOutput { return v.Folder }).(pulumi.StringPtrOutput) } // The Data Factory Linked Service ID in which to associate the Dataset with. func (o DatasetAzureSqlTableOutput) LinkedServiceId() pulumi.StringOutput { return o.ApplyT(func(v *DatasetAzureSqlTable) pulumi.StringOutput { return v.LinkedServiceId }).(pulumi.StringOutput) } // Specifies the name of the Data Factory Dataset Azure SQL Table. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. func (o DatasetAzureSqlTableOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *DatasetAzureSqlTable) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // A map of parameters to associate with the Data Factory Dataset Azure SQL Table. func (o DatasetAzureSqlTableOutput) Parameters() pulumi.StringMapOutput { return o.ApplyT(func(v *DatasetAzureSqlTable) pulumi.StringMapOutput { return v.Parameters }).(pulumi.StringMapOutput) } // The schema name of the table in the Azure SQL Database. func (o DatasetAzureSqlTableOutput) Schema() pulumi.StringPtrOutput { return o.ApplyT(func(v *DatasetAzureSqlTable) pulumi.StringPtrOutput { return v.Schema }).(pulumi.StringPtrOutput) } // A `schemaColumn` block as defined below. func (o DatasetAzureSqlTableOutput) SchemaColumns() DatasetAzureSqlTableSchemaColumnArrayOutput { return o.ApplyT(func(v *DatasetAzureSqlTable) DatasetAzureSqlTableSchemaColumnArrayOutput { return v.SchemaColumns }).(DatasetAzureSqlTableSchemaColumnArrayOutput) } // The table name of the table in the Azure SQL Database. func (o DatasetAzureSqlTableOutput) Table() pulumi.StringPtrOutput { return o.ApplyT(func(v *DatasetAzureSqlTable) pulumi.StringPtrOutput { return v.Table }).(pulumi.StringPtrOutput) } type DatasetAzureSqlTableArrayOutput struct{ *pulumi.OutputState } func (DatasetAzureSqlTableArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*DatasetAzureSqlTable)(nil)).Elem() } func (o DatasetAzureSqlTableArrayOutput) ToDatasetAzureSqlTableArrayOutput() DatasetAzureSqlTableArrayOutput { return o } func (o DatasetAzureSqlTableArrayOutput) ToDatasetAzureSqlTableArrayOutputWithContext(ctx context.Context) DatasetAzureSqlTableArrayOutput { return o } func (o DatasetAzureSqlTableArrayOutput) Index(i pulumi.IntInput) DatasetAzureSqlTableOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *DatasetAzureSqlTable { return vs[0].([]*DatasetAzureSqlTable)[vs[1].(int)] }).(DatasetAzureSqlTableOutput) } type DatasetAzureSqlTableMapOutput struct{ *pulumi.OutputState } func (DatasetAzureSqlTableMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*DatasetAzureSqlTable)(nil)).Elem() } func (o DatasetAzureSqlTableMapOutput) ToDatasetAzureSqlTableMapOutput() DatasetAzureSqlTableMapOutput { return o } func (o DatasetAzureSqlTableMapOutput) ToDatasetAzureSqlTableMapOutputWithContext(ctx context.Context) DatasetAzureSqlTableMapOutput { return o } func (o DatasetAzureSqlTableMapOutput) MapIndex(k pulumi.StringInput) DatasetAzureSqlTableOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *DatasetAzureSqlTable { return vs[0].(map[string]*DatasetAzureSqlTable)[vs[1].(string)] }).(DatasetAzureSqlTableOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*DatasetAzureSqlTableInput)(nil)).Elem(), &DatasetAzureSqlTable{}) pulumi.RegisterInputType(reflect.TypeOf((*DatasetAzureSqlTableArrayInput)(nil)).Elem(), DatasetAzureSqlTableArray{}) pulumi.RegisterInputType(reflect.TypeOf((*DatasetAzureSqlTableMapInput)(nil)).Elem(), DatasetAzureSqlTableMap{}) pulumi.RegisterOutputType(DatasetAzureSqlTableOutput{}) pulumi.RegisterOutputType(DatasetAzureSqlTableArrayOutput{}) pulumi.RegisterOutputType(DatasetAzureSqlTableMapOutput{}) }
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/datafactory/credentialUserManagedIdentity.go
sdk/go/azure/datafactory/credentialUserManagedIdentity.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 datafactory import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manage a Data Factory User Assigned Managed Identity credential resource. These resources are used by Data Factory to access data sources. // // ## 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/datafactory" // "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("westus"), // }) // if err != nil { // return err // } // exampleUserAssignedIdentity, err := authorization.NewUserAssignedIdentity(ctx, "example", &authorization.UserAssignedIdentityArgs{ // Location: example.Location, // Name: pulumi.String("my-user"), // ResourceGroupName: example.Name, // }) // if err != nil { // return err // } // exampleFactory, err := datafactory.NewFactory(ctx, "example", &datafactory.FactoryArgs{ // Name: pulumi.String("example"), // Location: example.Location, // ResourceGroupName: example.Name, // Identity: &datafactory.FactoryIdentityArgs{ // Type: pulumi.String("UserAssigned"), // IdentityIds: pulumi.StringArray{ // exampleUserAssignedIdentity.ID(), // }, // }, // }) // if err != nil { // return err // } // _, err = datafactory.NewCredentialUserManagedIdentity(ctx, "test", &datafactory.CredentialUserManagedIdentityArgs{ // Name: exampleUserAssignedIdentity.Name, // Description: pulumi.String("Short description of this credential"), // DataFactoryId: exampleFactory.ID(), // IdentityId: exampleUserAssignedIdentity.ID(), // Annotations: pulumi.StringArray{ // pulumi.String("example"), // pulumi.String("example2"), // }, // }) // 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.DataFactory` - 2018-06-01 // // ## Import // // Data Factory Credentials can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:datafactory/credentialUserManagedIdentity:CredentialUserManagedIdentity example /subscriptions/1f3d6e58-feed-4bb6-87e5-a52305ad3375/resourceGroups/example-resources/providers/Microsoft.DataFactory/factories/example/credentials/credential1 // ``` type CredentialUserManagedIdentity struct { pulumi.CustomResourceState // List of tags that can be used for describing the Data Factory Credential. // // > **Note:** Manually altering a Credential resource will cause annotations to be lost, resulting in a change being detected on the next run. Annotations pulumi.StringArrayOutput `pulumi:"annotations"` // The Data Factory ID in which to associate the Credential with. Changing this forces a new resource. DataFactoryId pulumi.StringOutput `pulumi:"dataFactoryId"` // The description for the Data Factory Credential. Description pulumi.StringPtrOutput `pulumi:"description"` // The Resouce ID of an existing User Assigned Managed Identity. This can be changed without recreating the resource. Changing this forces a new resource to be created. // // > **Note:** Attempting to create a Credential resource without first assigning the identity to the parent Data Factory will result in an Azure API error. IdentityId pulumi.StringOutput `pulumi:"identityId"` // Specifies the name of the Credential. Changing this forces a new resource to be created. Name pulumi.StringOutput `pulumi:"name"` } // NewCredentialUserManagedIdentity registers a new resource with the given unique name, arguments, and options. func NewCredentialUserManagedIdentity(ctx *pulumi.Context, name string, args *CredentialUserManagedIdentityArgs, opts ...pulumi.ResourceOption) (*CredentialUserManagedIdentity, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.DataFactoryId == nil { return nil, errors.New("invalid value for required argument 'DataFactoryId'") } if args.IdentityId == nil { return nil, errors.New("invalid value for required argument 'IdentityId'") } opts = internal.PkgResourceDefaultOpts(opts) var resource CredentialUserManagedIdentity err := ctx.RegisterResource("azure:datafactory/credentialUserManagedIdentity:CredentialUserManagedIdentity", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetCredentialUserManagedIdentity gets an existing CredentialUserManagedIdentity 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 GetCredentialUserManagedIdentity(ctx *pulumi.Context, name string, id pulumi.IDInput, state *CredentialUserManagedIdentityState, opts ...pulumi.ResourceOption) (*CredentialUserManagedIdentity, error) { var resource CredentialUserManagedIdentity err := ctx.ReadResource("azure:datafactory/credentialUserManagedIdentity:CredentialUserManagedIdentity", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering CredentialUserManagedIdentity resources. type credentialUserManagedIdentityState struct { // List of tags that can be used for describing the Data Factory Credential. // // > **Note:** Manually altering a Credential resource will cause annotations to be lost, resulting in a change being detected on the next run. Annotations []string `pulumi:"annotations"` // The Data Factory ID in which to associate the Credential with. Changing this forces a new resource. DataFactoryId *string `pulumi:"dataFactoryId"` // The description for the Data Factory Credential. Description *string `pulumi:"description"` // The Resouce ID of an existing User Assigned Managed Identity. This can be changed without recreating the resource. Changing this forces a new resource to be created. // // > **Note:** Attempting to create a Credential resource without first assigning the identity to the parent Data Factory will result in an Azure API error. IdentityId *string `pulumi:"identityId"` // Specifies the name of the Credential. Changing this forces a new resource to be created. Name *string `pulumi:"name"` } type CredentialUserManagedIdentityState struct { // List of tags that can be used for describing the Data Factory Credential. // // > **Note:** Manually altering a Credential resource will cause annotations to be lost, resulting in a change being detected on the next run. Annotations pulumi.StringArrayInput // The Data Factory ID in which to associate the Credential with. Changing this forces a new resource. DataFactoryId pulumi.StringPtrInput // The description for the Data Factory Credential. Description pulumi.StringPtrInput // The Resouce ID of an existing User Assigned Managed Identity. This can be changed without recreating the resource. Changing this forces a new resource to be created. // // > **Note:** Attempting to create a Credential resource without first assigning the identity to the parent Data Factory will result in an Azure API error. IdentityId pulumi.StringPtrInput // Specifies the name of the Credential. Changing this forces a new resource to be created. Name pulumi.StringPtrInput } func (CredentialUserManagedIdentityState) ElementType() reflect.Type { return reflect.TypeOf((*credentialUserManagedIdentityState)(nil)).Elem() } type credentialUserManagedIdentityArgs struct { // List of tags that can be used for describing the Data Factory Credential. // // > **Note:** Manually altering a Credential resource will cause annotations to be lost, resulting in a change being detected on the next run. Annotations []string `pulumi:"annotations"` // The Data Factory ID in which to associate the Credential with. Changing this forces a new resource. DataFactoryId string `pulumi:"dataFactoryId"` // The description for the Data Factory Credential. Description *string `pulumi:"description"` // The Resouce ID of an existing User Assigned Managed Identity. This can be changed without recreating the resource. Changing this forces a new resource to be created. // // > **Note:** Attempting to create a Credential resource without first assigning the identity to the parent Data Factory will result in an Azure API error. IdentityId string `pulumi:"identityId"` // Specifies the name of the Credential. Changing this forces a new resource to be created. Name *string `pulumi:"name"` } // The set of arguments for constructing a CredentialUserManagedIdentity resource. type CredentialUserManagedIdentityArgs struct { // List of tags that can be used for describing the Data Factory Credential. // // > **Note:** Manually altering a Credential resource will cause annotations to be lost, resulting in a change being detected on the next run. Annotations pulumi.StringArrayInput // The Data Factory ID in which to associate the Credential with. Changing this forces a new resource. DataFactoryId pulumi.StringInput // The description for the Data Factory Credential. Description pulumi.StringPtrInput // The Resouce ID of an existing User Assigned Managed Identity. This can be changed without recreating the resource. Changing this forces a new resource to be created. // // > **Note:** Attempting to create a Credential resource without first assigning the identity to the parent Data Factory will result in an Azure API error. IdentityId pulumi.StringInput // Specifies the name of the Credential. Changing this forces a new resource to be created. Name pulumi.StringPtrInput } func (CredentialUserManagedIdentityArgs) ElementType() reflect.Type { return reflect.TypeOf((*credentialUserManagedIdentityArgs)(nil)).Elem() } type CredentialUserManagedIdentityInput interface { pulumi.Input ToCredentialUserManagedIdentityOutput() CredentialUserManagedIdentityOutput ToCredentialUserManagedIdentityOutputWithContext(ctx context.Context) CredentialUserManagedIdentityOutput } func (*CredentialUserManagedIdentity) ElementType() reflect.Type { return reflect.TypeOf((**CredentialUserManagedIdentity)(nil)).Elem() } func (i *CredentialUserManagedIdentity) ToCredentialUserManagedIdentityOutput() CredentialUserManagedIdentityOutput { return i.ToCredentialUserManagedIdentityOutputWithContext(context.Background()) } func (i *CredentialUserManagedIdentity) ToCredentialUserManagedIdentityOutputWithContext(ctx context.Context) CredentialUserManagedIdentityOutput { return pulumi.ToOutputWithContext(ctx, i).(CredentialUserManagedIdentityOutput) } // CredentialUserManagedIdentityArrayInput is an input type that accepts CredentialUserManagedIdentityArray and CredentialUserManagedIdentityArrayOutput values. // You can construct a concrete instance of `CredentialUserManagedIdentityArrayInput` via: // // CredentialUserManagedIdentityArray{ CredentialUserManagedIdentityArgs{...} } type CredentialUserManagedIdentityArrayInput interface { pulumi.Input ToCredentialUserManagedIdentityArrayOutput() CredentialUserManagedIdentityArrayOutput ToCredentialUserManagedIdentityArrayOutputWithContext(context.Context) CredentialUserManagedIdentityArrayOutput } type CredentialUserManagedIdentityArray []CredentialUserManagedIdentityInput func (CredentialUserManagedIdentityArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*CredentialUserManagedIdentity)(nil)).Elem() } func (i CredentialUserManagedIdentityArray) ToCredentialUserManagedIdentityArrayOutput() CredentialUserManagedIdentityArrayOutput { return i.ToCredentialUserManagedIdentityArrayOutputWithContext(context.Background()) } func (i CredentialUserManagedIdentityArray) ToCredentialUserManagedIdentityArrayOutputWithContext(ctx context.Context) CredentialUserManagedIdentityArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(CredentialUserManagedIdentityArrayOutput) } // CredentialUserManagedIdentityMapInput is an input type that accepts CredentialUserManagedIdentityMap and CredentialUserManagedIdentityMapOutput values. // You can construct a concrete instance of `CredentialUserManagedIdentityMapInput` via: // // CredentialUserManagedIdentityMap{ "key": CredentialUserManagedIdentityArgs{...} } type CredentialUserManagedIdentityMapInput interface { pulumi.Input ToCredentialUserManagedIdentityMapOutput() CredentialUserManagedIdentityMapOutput ToCredentialUserManagedIdentityMapOutputWithContext(context.Context) CredentialUserManagedIdentityMapOutput } type CredentialUserManagedIdentityMap map[string]CredentialUserManagedIdentityInput func (CredentialUserManagedIdentityMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*CredentialUserManagedIdentity)(nil)).Elem() } func (i CredentialUserManagedIdentityMap) ToCredentialUserManagedIdentityMapOutput() CredentialUserManagedIdentityMapOutput { return i.ToCredentialUserManagedIdentityMapOutputWithContext(context.Background()) } func (i CredentialUserManagedIdentityMap) ToCredentialUserManagedIdentityMapOutputWithContext(ctx context.Context) CredentialUserManagedIdentityMapOutput { return pulumi.ToOutputWithContext(ctx, i).(CredentialUserManagedIdentityMapOutput) } type CredentialUserManagedIdentityOutput struct{ *pulumi.OutputState } func (CredentialUserManagedIdentityOutput) ElementType() reflect.Type { return reflect.TypeOf((**CredentialUserManagedIdentity)(nil)).Elem() } func (o CredentialUserManagedIdentityOutput) ToCredentialUserManagedIdentityOutput() CredentialUserManagedIdentityOutput { return o } func (o CredentialUserManagedIdentityOutput) ToCredentialUserManagedIdentityOutputWithContext(ctx context.Context) CredentialUserManagedIdentityOutput { return o } // List of tags that can be used for describing the Data Factory Credential. // // > **Note:** Manually altering a Credential resource will cause annotations to be lost, resulting in a change being detected on the next run. func (o CredentialUserManagedIdentityOutput) Annotations() pulumi.StringArrayOutput { return o.ApplyT(func(v *CredentialUserManagedIdentity) pulumi.StringArrayOutput { return v.Annotations }).(pulumi.StringArrayOutput) } // The Data Factory ID in which to associate the Credential with. Changing this forces a new resource. func (o CredentialUserManagedIdentityOutput) DataFactoryId() pulumi.StringOutput { return o.ApplyT(func(v *CredentialUserManagedIdentity) pulumi.StringOutput { return v.DataFactoryId }).(pulumi.StringOutput) } // The description for the Data Factory Credential. func (o CredentialUserManagedIdentityOutput) Description() pulumi.StringPtrOutput { return o.ApplyT(func(v *CredentialUserManagedIdentity) pulumi.StringPtrOutput { return v.Description }).(pulumi.StringPtrOutput) } // The Resouce ID of an existing User Assigned Managed Identity. This can be changed without recreating the resource. Changing this forces a new resource to be created. // // > **Note:** Attempting to create a Credential resource without first assigning the identity to the parent Data Factory will result in an Azure API error. func (o CredentialUserManagedIdentityOutput) IdentityId() pulumi.StringOutput { return o.ApplyT(func(v *CredentialUserManagedIdentity) pulumi.StringOutput { return v.IdentityId }).(pulumi.StringOutput) } // Specifies the name of the Credential. Changing this forces a new resource to be created. func (o CredentialUserManagedIdentityOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *CredentialUserManagedIdentity) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } type CredentialUserManagedIdentityArrayOutput struct{ *pulumi.OutputState } func (CredentialUserManagedIdentityArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*CredentialUserManagedIdentity)(nil)).Elem() } func (o CredentialUserManagedIdentityArrayOutput) ToCredentialUserManagedIdentityArrayOutput() CredentialUserManagedIdentityArrayOutput { return o } func (o CredentialUserManagedIdentityArrayOutput) ToCredentialUserManagedIdentityArrayOutputWithContext(ctx context.Context) CredentialUserManagedIdentityArrayOutput { return o } func (o CredentialUserManagedIdentityArrayOutput) Index(i pulumi.IntInput) CredentialUserManagedIdentityOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *CredentialUserManagedIdentity { return vs[0].([]*CredentialUserManagedIdentity)[vs[1].(int)] }).(CredentialUserManagedIdentityOutput) } type CredentialUserManagedIdentityMapOutput struct{ *pulumi.OutputState } func (CredentialUserManagedIdentityMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*CredentialUserManagedIdentity)(nil)).Elem() } func (o CredentialUserManagedIdentityMapOutput) ToCredentialUserManagedIdentityMapOutput() CredentialUserManagedIdentityMapOutput { return o } func (o CredentialUserManagedIdentityMapOutput) ToCredentialUserManagedIdentityMapOutputWithContext(ctx context.Context) CredentialUserManagedIdentityMapOutput { return o } func (o CredentialUserManagedIdentityMapOutput) MapIndex(k pulumi.StringInput) CredentialUserManagedIdentityOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *CredentialUserManagedIdentity { return vs[0].(map[string]*CredentialUserManagedIdentity)[vs[1].(string)] }).(CredentialUserManagedIdentityOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*CredentialUserManagedIdentityInput)(nil)).Elem(), &CredentialUserManagedIdentity{}) pulumi.RegisterInputType(reflect.TypeOf((*CredentialUserManagedIdentityArrayInput)(nil)).Elem(), CredentialUserManagedIdentityArray{}) pulumi.RegisterInputType(reflect.TypeOf((*CredentialUserManagedIdentityMapInput)(nil)).Elem(), CredentialUserManagedIdentityMap{}) pulumi.RegisterOutputType(CredentialUserManagedIdentityOutput{}) pulumi.RegisterOutputType(CredentialUserManagedIdentityArrayOutput{}) pulumi.RegisterOutputType(CredentialUserManagedIdentityMapOutput{}) }
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/datafactory/triggerSchedule.go
sdk/go/azure/datafactory/triggerSchedule.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 datafactory import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a Trigger Schedule inside a Azure Data Factory. // // ## 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/datafactory" // "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 // } // exampleFactory, err := datafactory.NewFactory(ctx, "example", &datafactory.FactoryArgs{ // Name: pulumi.String("example"), // Location: example.Location, // ResourceGroupName: example.Name, // }) // if err != nil { // return err // } // examplePipeline, err := datafactory.NewPipeline(ctx, "example", &datafactory.PipelineArgs{ // Name: pulumi.String("example"), // DataFactoryId: exampleFactory.ID(), // }) // if err != nil { // return err // } // _, err = datafactory.NewTriggerSchedule(ctx, "example", &datafactory.TriggerScheduleArgs{ // Name: pulumi.String("example"), // DataFactoryId: exampleFactory.ID(), // PipelineName: examplePipeline.Name, // Interval: pulumi.Int(5), // Frequency: pulumi.String("Day"), // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## Import // // Data Factory Schedule Trigger can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:datafactory/triggerSchedule:TriggerSchedule example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example/providers/Microsoft.DataFactory/factories/example/triggers/example // ``` type TriggerSchedule struct { pulumi.CustomResourceState // Specifies if the Data Factory Schedule Trigger is activated. Defaults to `true`. Activated pulumi.BoolPtrOutput `pulumi:"activated"` // List of tags that can be used for describing the Data Factory Schedule Trigger. Annotations pulumi.StringArrayOutput `pulumi:"annotations"` // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId pulumi.StringOutput `pulumi:"dataFactoryId"` // The Schedule Trigger's description. Description pulumi.StringPtrOutput `pulumi:"description"` // The time the Schedule Trigger should end. The time will be represented in UTC. EndTime pulumi.StringPtrOutput `pulumi:"endTime"` // The trigger frequency. Valid values include `Minute`, `Hour`, `Day`, `Week`, `Month`. Defaults to `Minute`. Frequency pulumi.StringPtrOutput `pulumi:"frequency"` // The interval for how often the trigger occurs. This defaults to `1`. Interval pulumi.IntPtrOutput `pulumi:"interval"` // Specifies the name of the Data Factory Schedule Trigger. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringOutput `pulumi:"name"` // The Data Factory Pipeline name that the trigger will act on. PipelineName pulumi.StringOutput `pulumi:"pipelineName"` // The pipeline parameters that the trigger will act upon. PipelineParameters pulumi.StringMapOutput `pulumi:"pipelineParameters"` // A `pipeline` block as defined below. Pipelines TriggerSchedulePipelineArrayOutput `pulumi:"pipelines"` // A `schedule` block as defined below, which further specifies the recurrence schedule for the trigger. A schedule is capable of limiting or increasing the number of trigger executions specified by the `frequency` and `interval` properties. Schedule TriggerScheduleSchedulePtrOutput `pulumi:"schedule"` // The time the Schedule Trigger will start. This defaults to the current time. The time will be represented in UTC. StartTime pulumi.StringOutput `pulumi:"startTime"` // The timezone of the start/end time. TimeZone pulumi.StringPtrOutput `pulumi:"timeZone"` } // NewTriggerSchedule registers a new resource with the given unique name, arguments, and options. func NewTriggerSchedule(ctx *pulumi.Context, name string, args *TriggerScheduleArgs, opts ...pulumi.ResourceOption) (*TriggerSchedule, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.DataFactoryId == nil { return nil, errors.New("invalid value for required argument 'DataFactoryId'") } opts = internal.PkgResourceDefaultOpts(opts) var resource TriggerSchedule err := ctx.RegisterResource("azure:datafactory/triggerSchedule:TriggerSchedule", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetTriggerSchedule gets an existing TriggerSchedule 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 GetTriggerSchedule(ctx *pulumi.Context, name string, id pulumi.IDInput, state *TriggerScheduleState, opts ...pulumi.ResourceOption) (*TriggerSchedule, error) { var resource TriggerSchedule err := ctx.ReadResource("azure:datafactory/triggerSchedule:TriggerSchedule", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering TriggerSchedule resources. type triggerScheduleState struct { // Specifies if the Data Factory Schedule Trigger is activated. Defaults to `true`. Activated *bool `pulumi:"activated"` // List of tags that can be used for describing the Data Factory Schedule Trigger. Annotations []string `pulumi:"annotations"` // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId *string `pulumi:"dataFactoryId"` // The Schedule Trigger's description. Description *string `pulumi:"description"` // The time the Schedule Trigger should end. The time will be represented in UTC. EndTime *string `pulumi:"endTime"` // The trigger frequency. Valid values include `Minute`, `Hour`, `Day`, `Week`, `Month`. Defaults to `Minute`. Frequency *string `pulumi:"frequency"` // The interval for how often the trigger occurs. This defaults to `1`. Interval *int `pulumi:"interval"` // Specifies the name of the Data Factory Schedule Trigger. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name *string `pulumi:"name"` // The Data Factory Pipeline name that the trigger will act on. PipelineName *string `pulumi:"pipelineName"` // The pipeline parameters that the trigger will act upon. PipelineParameters map[string]string `pulumi:"pipelineParameters"` // A `pipeline` block as defined below. Pipelines []TriggerSchedulePipeline `pulumi:"pipelines"` // A `schedule` block as defined below, which further specifies the recurrence schedule for the trigger. A schedule is capable of limiting or increasing the number of trigger executions specified by the `frequency` and `interval` properties. Schedule *TriggerScheduleSchedule `pulumi:"schedule"` // The time the Schedule Trigger will start. This defaults to the current time. The time will be represented in UTC. StartTime *string `pulumi:"startTime"` // The timezone of the start/end time. TimeZone *string `pulumi:"timeZone"` } type TriggerScheduleState struct { // Specifies if the Data Factory Schedule Trigger is activated. Defaults to `true`. Activated pulumi.BoolPtrInput // List of tags that can be used for describing the Data Factory Schedule Trigger. Annotations pulumi.StringArrayInput // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId pulumi.StringPtrInput // The Schedule Trigger's description. Description pulumi.StringPtrInput // The time the Schedule Trigger should end. The time will be represented in UTC. EndTime pulumi.StringPtrInput // The trigger frequency. Valid values include `Minute`, `Hour`, `Day`, `Week`, `Month`. Defaults to `Minute`. Frequency pulumi.StringPtrInput // The interval for how often the trigger occurs. This defaults to `1`. Interval pulumi.IntPtrInput // Specifies the name of the Data Factory Schedule Trigger. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringPtrInput // The Data Factory Pipeline name that the trigger will act on. PipelineName pulumi.StringPtrInput // The pipeline parameters that the trigger will act upon. PipelineParameters pulumi.StringMapInput // A `pipeline` block as defined below. Pipelines TriggerSchedulePipelineArrayInput // A `schedule` block as defined below, which further specifies the recurrence schedule for the trigger. A schedule is capable of limiting or increasing the number of trigger executions specified by the `frequency` and `interval` properties. Schedule TriggerScheduleSchedulePtrInput // The time the Schedule Trigger will start. This defaults to the current time. The time will be represented in UTC. StartTime pulumi.StringPtrInput // The timezone of the start/end time. TimeZone pulumi.StringPtrInput } func (TriggerScheduleState) ElementType() reflect.Type { return reflect.TypeOf((*triggerScheduleState)(nil)).Elem() } type triggerScheduleArgs struct { // Specifies if the Data Factory Schedule Trigger is activated. Defaults to `true`. Activated *bool `pulumi:"activated"` // List of tags that can be used for describing the Data Factory Schedule Trigger. Annotations []string `pulumi:"annotations"` // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId string `pulumi:"dataFactoryId"` // The Schedule Trigger's description. Description *string `pulumi:"description"` // The time the Schedule Trigger should end. The time will be represented in UTC. EndTime *string `pulumi:"endTime"` // The trigger frequency. Valid values include `Minute`, `Hour`, `Day`, `Week`, `Month`. Defaults to `Minute`. Frequency *string `pulumi:"frequency"` // The interval for how often the trigger occurs. This defaults to `1`. Interval *int `pulumi:"interval"` // Specifies the name of the Data Factory Schedule Trigger. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name *string `pulumi:"name"` // The Data Factory Pipeline name that the trigger will act on. PipelineName *string `pulumi:"pipelineName"` // The pipeline parameters that the trigger will act upon. PipelineParameters map[string]string `pulumi:"pipelineParameters"` // A `pipeline` block as defined below. Pipelines []TriggerSchedulePipeline `pulumi:"pipelines"` // A `schedule` block as defined below, which further specifies the recurrence schedule for the trigger. A schedule is capable of limiting or increasing the number of trigger executions specified by the `frequency` and `interval` properties. Schedule *TriggerScheduleSchedule `pulumi:"schedule"` // The time the Schedule Trigger will start. This defaults to the current time. The time will be represented in UTC. StartTime *string `pulumi:"startTime"` // The timezone of the start/end time. TimeZone *string `pulumi:"timeZone"` } // The set of arguments for constructing a TriggerSchedule resource. type TriggerScheduleArgs struct { // Specifies if the Data Factory Schedule Trigger is activated. Defaults to `true`. Activated pulumi.BoolPtrInput // List of tags that can be used for describing the Data Factory Schedule Trigger. Annotations pulumi.StringArrayInput // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId pulumi.StringInput // The Schedule Trigger's description. Description pulumi.StringPtrInput // The time the Schedule Trigger should end. The time will be represented in UTC. EndTime pulumi.StringPtrInput // The trigger frequency. Valid values include `Minute`, `Hour`, `Day`, `Week`, `Month`. Defaults to `Minute`. Frequency pulumi.StringPtrInput // The interval for how often the trigger occurs. This defaults to `1`. Interval pulumi.IntPtrInput // Specifies the name of the Data Factory Schedule Trigger. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringPtrInput // The Data Factory Pipeline name that the trigger will act on. PipelineName pulumi.StringPtrInput // The pipeline parameters that the trigger will act upon. PipelineParameters pulumi.StringMapInput // A `pipeline` block as defined below. Pipelines TriggerSchedulePipelineArrayInput // A `schedule` block as defined below, which further specifies the recurrence schedule for the trigger. A schedule is capable of limiting or increasing the number of trigger executions specified by the `frequency` and `interval` properties. Schedule TriggerScheduleSchedulePtrInput // The time the Schedule Trigger will start. This defaults to the current time. The time will be represented in UTC. StartTime pulumi.StringPtrInput // The timezone of the start/end time. TimeZone pulumi.StringPtrInput } func (TriggerScheduleArgs) ElementType() reflect.Type { return reflect.TypeOf((*triggerScheduleArgs)(nil)).Elem() } type TriggerScheduleInput interface { pulumi.Input ToTriggerScheduleOutput() TriggerScheduleOutput ToTriggerScheduleOutputWithContext(ctx context.Context) TriggerScheduleOutput } func (*TriggerSchedule) ElementType() reflect.Type { return reflect.TypeOf((**TriggerSchedule)(nil)).Elem() } func (i *TriggerSchedule) ToTriggerScheduleOutput() TriggerScheduleOutput { return i.ToTriggerScheduleOutputWithContext(context.Background()) } func (i *TriggerSchedule) ToTriggerScheduleOutputWithContext(ctx context.Context) TriggerScheduleOutput { return pulumi.ToOutputWithContext(ctx, i).(TriggerScheduleOutput) } // TriggerScheduleArrayInput is an input type that accepts TriggerScheduleArray and TriggerScheduleArrayOutput values. // You can construct a concrete instance of `TriggerScheduleArrayInput` via: // // TriggerScheduleArray{ TriggerScheduleArgs{...} } type TriggerScheduleArrayInput interface { pulumi.Input ToTriggerScheduleArrayOutput() TriggerScheduleArrayOutput ToTriggerScheduleArrayOutputWithContext(context.Context) TriggerScheduleArrayOutput } type TriggerScheduleArray []TriggerScheduleInput func (TriggerScheduleArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*TriggerSchedule)(nil)).Elem() } func (i TriggerScheduleArray) ToTriggerScheduleArrayOutput() TriggerScheduleArrayOutput { return i.ToTriggerScheduleArrayOutputWithContext(context.Background()) } func (i TriggerScheduleArray) ToTriggerScheduleArrayOutputWithContext(ctx context.Context) TriggerScheduleArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(TriggerScheduleArrayOutput) } // TriggerScheduleMapInput is an input type that accepts TriggerScheduleMap and TriggerScheduleMapOutput values. // You can construct a concrete instance of `TriggerScheduleMapInput` via: // // TriggerScheduleMap{ "key": TriggerScheduleArgs{...} } type TriggerScheduleMapInput interface { pulumi.Input ToTriggerScheduleMapOutput() TriggerScheduleMapOutput ToTriggerScheduleMapOutputWithContext(context.Context) TriggerScheduleMapOutput } type TriggerScheduleMap map[string]TriggerScheduleInput func (TriggerScheduleMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*TriggerSchedule)(nil)).Elem() } func (i TriggerScheduleMap) ToTriggerScheduleMapOutput() TriggerScheduleMapOutput { return i.ToTriggerScheduleMapOutputWithContext(context.Background()) } func (i TriggerScheduleMap) ToTriggerScheduleMapOutputWithContext(ctx context.Context) TriggerScheduleMapOutput { return pulumi.ToOutputWithContext(ctx, i).(TriggerScheduleMapOutput) } type TriggerScheduleOutput struct{ *pulumi.OutputState } func (TriggerScheduleOutput) ElementType() reflect.Type { return reflect.TypeOf((**TriggerSchedule)(nil)).Elem() } func (o TriggerScheduleOutput) ToTriggerScheduleOutput() TriggerScheduleOutput { return o } func (o TriggerScheduleOutput) ToTriggerScheduleOutputWithContext(ctx context.Context) TriggerScheduleOutput { return o } // Specifies if the Data Factory Schedule Trigger is activated. Defaults to `true`. func (o TriggerScheduleOutput) Activated() pulumi.BoolPtrOutput { return o.ApplyT(func(v *TriggerSchedule) pulumi.BoolPtrOutput { return v.Activated }).(pulumi.BoolPtrOutput) } // List of tags that can be used for describing the Data Factory Schedule Trigger. func (o TriggerScheduleOutput) Annotations() pulumi.StringArrayOutput { return o.ApplyT(func(v *TriggerSchedule) pulumi.StringArrayOutput { return v.Annotations }).(pulumi.StringArrayOutput) } // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. func (o TriggerScheduleOutput) DataFactoryId() pulumi.StringOutput { return o.ApplyT(func(v *TriggerSchedule) pulumi.StringOutput { return v.DataFactoryId }).(pulumi.StringOutput) } // The Schedule Trigger's description. func (o TriggerScheduleOutput) Description() pulumi.StringPtrOutput { return o.ApplyT(func(v *TriggerSchedule) pulumi.StringPtrOutput { return v.Description }).(pulumi.StringPtrOutput) } // The time the Schedule Trigger should end. The time will be represented in UTC. func (o TriggerScheduleOutput) EndTime() pulumi.StringPtrOutput { return o.ApplyT(func(v *TriggerSchedule) pulumi.StringPtrOutput { return v.EndTime }).(pulumi.StringPtrOutput) } // The trigger frequency. Valid values include `Minute`, `Hour`, `Day`, `Week`, `Month`. Defaults to `Minute`. func (o TriggerScheduleOutput) Frequency() pulumi.StringPtrOutput { return o.ApplyT(func(v *TriggerSchedule) pulumi.StringPtrOutput { return v.Frequency }).(pulumi.StringPtrOutput) } // The interval for how often the trigger occurs. This defaults to `1`. func (o TriggerScheduleOutput) Interval() pulumi.IntPtrOutput { return o.ApplyT(func(v *TriggerSchedule) pulumi.IntPtrOutput { return v.Interval }).(pulumi.IntPtrOutput) } // Specifies the name of the Data Factory Schedule Trigger. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. func (o TriggerScheduleOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *TriggerSchedule) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // The Data Factory Pipeline name that the trigger will act on. func (o TriggerScheduleOutput) PipelineName() pulumi.StringOutput { return o.ApplyT(func(v *TriggerSchedule) pulumi.StringOutput { return v.PipelineName }).(pulumi.StringOutput) } // The pipeline parameters that the trigger will act upon. func (o TriggerScheduleOutput) PipelineParameters() pulumi.StringMapOutput { return o.ApplyT(func(v *TriggerSchedule) pulumi.StringMapOutput { return v.PipelineParameters }).(pulumi.StringMapOutput) } // A `pipeline` block as defined below. func (o TriggerScheduleOutput) Pipelines() TriggerSchedulePipelineArrayOutput { return o.ApplyT(func(v *TriggerSchedule) TriggerSchedulePipelineArrayOutput { return v.Pipelines }).(TriggerSchedulePipelineArrayOutput) } // A `schedule` block as defined below, which further specifies the recurrence schedule for the trigger. A schedule is capable of limiting or increasing the number of trigger executions specified by the `frequency` and `interval` properties. func (o TriggerScheduleOutput) Schedule() TriggerScheduleSchedulePtrOutput { return o.ApplyT(func(v *TriggerSchedule) TriggerScheduleSchedulePtrOutput { return v.Schedule }).(TriggerScheduleSchedulePtrOutput) } // The time the Schedule Trigger will start. This defaults to the current time. The time will be represented in UTC. func (o TriggerScheduleOutput) StartTime() pulumi.StringOutput { return o.ApplyT(func(v *TriggerSchedule) pulumi.StringOutput { return v.StartTime }).(pulumi.StringOutput) } // The timezone of the start/end time. func (o TriggerScheduleOutput) TimeZone() pulumi.StringPtrOutput { return o.ApplyT(func(v *TriggerSchedule) pulumi.StringPtrOutput { return v.TimeZone }).(pulumi.StringPtrOutput) } type TriggerScheduleArrayOutput struct{ *pulumi.OutputState } func (TriggerScheduleArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*TriggerSchedule)(nil)).Elem() } func (o TriggerScheduleArrayOutput) ToTriggerScheduleArrayOutput() TriggerScheduleArrayOutput { return o } func (o TriggerScheduleArrayOutput) ToTriggerScheduleArrayOutputWithContext(ctx context.Context) TriggerScheduleArrayOutput { return o } func (o TriggerScheduleArrayOutput) Index(i pulumi.IntInput) TriggerScheduleOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *TriggerSchedule { return vs[0].([]*TriggerSchedule)[vs[1].(int)] }).(TriggerScheduleOutput) } type TriggerScheduleMapOutput struct{ *pulumi.OutputState } func (TriggerScheduleMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*TriggerSchedule)(nil)).Elem() } func (o TriggerScheduleMapOutput) ToTriggerScheduleMapOutput() TriggerScheduleMapOutput { return o } func (o TriggerScheduleMapOutput) ToTriggerScheduleMapOutputWithContext(ctx context.Context) TriggerScheduleMapOutput { return o } func (o TriggerScheduleMapOutput) MapIndex(k pulumi.StringInput) TriggerScheduleOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *TriggerSchedule { return vs[0].(map[string]*TriggerSchedule)[vs[1].(string)] }).(TriggerScheduleOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*TriggerScheduleInput)(nil)).Elem(), &TriggerSchedule{}) pulumi.RegisterInputType(reflect.TypeOf((*TriggerScheduleArrayInput)(nil)).Elem(), TriggerScheduleArray{}) pulumi.RegisterInputType(reflect.TypeOf((*TriggerScheduleMapInput)(nil)).Elem(), TriggerScheduleMap{}) pulumi.RegisterOutputType(TriggerScheduleOutput{}) pulumi.RegisterOutputType(TriggerScheduleArrayOutput{}) pulumi.RegisterOutputType(TriggerScheduleMapOutput{}) }
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/datafactory/linkedServiceKusto.go
sdk/go/azure/datafactory/linkedServiceKusto.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 datafactory import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a Linked Service (connection) between a Kusto Cluster and Azure Data Factory. // // ## 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/datafactory" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/kusto" // "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 // } // exampleFactory, err := datafactory.NewFactory(ctx, "example", &datafactory.FactoryArgs{ // Name: pulumi.String("example"), // Location: example.Location, // ResourceGroupName: example.Name, // Identity: &datafactory.FactoryIdentityArgs{ // Type: pulumi.String("SystemAssigned"), // }, // }) // if err != nil { // return err // } // exampleCluster, err := kusto.NewCluster(ctx, "example", &kusto.ClusterArgs{ // Name: pulumi.String("kustocluster"), // Location: example.Location, // ResourceGroupName: example.Name, // Sku: &kusto.ClusterSkuArgs{ // Name: pulumi.String("Standard_D13_v2"), // Capacity: pulumi.Int(2), // }, // }) // if err != nil { // return err // } // exampleDatabase, err := kusto.NewDatabase(ctx, "example", &kusto.DatabaseArgs{ // Name: pulumi.String("my-kusto-database"), // ResourceGroupName: example.Name, // Location: example.Location, // ClusterName: exampleCluster.Name, // }) // if err != nil { // return err // } // _, err = datafactory.NewLinkedServiceKusto(ctx, "example", &datafactory.LinkedServiceKustoArgs{ // Name: pulumi.String("example"), // DataFactoryId: exampleFactory.ID(), // KustoEndpoint: exampleCluster.Uri, // KustoDatabaseName: exampleDatabase.Name, // UseManagedIdentity: pulumi.Bool(true), // }) // if err != nil { // return err // } // _, err = kusto.NewDatabasePrincipalAssignment(ctx, "example", &kusto.DatabasePrincipalAssignmentArgs{ // Name: pulumi.String("KustoPrincipalAssignment"), // ResourceGroupName: example.Name, // ClusterName: exampleCluster.Name, // DatabaseName: exampleDatabase.Name, // TenantId: pulumi.String(exampleFactory.Identity.ApplyT(func(identity datafactory.FactoryIdentity) (*string, error) { // return &identity.TenantId, nil // }).(pulumi.StringPtrOutput)), // PrincipalId: pulumi.String(exampleFactory.Identity.ApplyT(func(identity datafactory.FactoryIdentity) (*string, error) { // return &identity.PrincipalId, nil // }).(pulumi.StringPtrOutput)), // PrincipalType: pulumi.String("App"), // Role: pulumi.String("Viewer"), // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## Import // // Data Factory Linked Service's can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:datafactory/linkedServiceKusto:LinkedServiceKusto example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example/providers/Microsoft.DataFactory/factories/example/linkedservices/example // ``` type LinkedServiceKusto struct { pulumi.CustomResourceState // A map of additional properties to associate with the Data Factory Linked Service. // // The following supported arguments are specific to Azure Kusto Linked Service: AdditionalProperties pulumi.StringMapOutput `pulumi:"additionalProperties"` // List of tags that can be used for describing the Data Factory Linked Service. Annotations pulumi.StringArrayOutput `pulumi:"annotations"` // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId pulumi.StringOutput `pulumi:"dataFactoryId"` // The description for the Data Factory Linked Service. Description pulumi.StringPtrOutput `pulumi:"description"` // The integration runtime reference to associate with the Data Factory Linked Service. IntegrationRuntimeName pulumi.StringPtrOutput `pulumi:"integrationRuntimeName"` // The Kusto Database Name. KustoDatabaseName pulumi.StringOutput `pulumi:"kustoDatabaseName"` // The URI of the Kusto Cluster endpoint. KustoEndpoint pulumi.StringOutput `pulumi:"kustoEndpoint"` // Specifies the name of the Data Factory Linked Service. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringOutput `pulumi:"name"` // A map of parameters to associate with the Data Factory Linked Service. Parameters pulumi.StringMapOutput `pulumi:"parameters"` // The service principal id in which to authenticate against the Kusto Database. ServicePrincipalId pulumi.StringPtrOutput `pulumi:"servicePrincipalId"` // The service principal key in which to authenticate against the Kusto Database. ServicePrincipalKey pulumi.StringPtrOutput `pulumi:"servicePrincipalKey"` // The service principal tenant id or name in which to authenticate against the Kusto Database. // // > **Note:** If `servicePrincipalId` is used, `servicePrincipalKey` and `tenant` is also required. // // > **Note:** One of Managed Identity authentication and Service Principal authentication must be set. Tenant pulumi.StringPtrOutput `pulumi:"tenant"` // Whether to use the Data Factory's managed identity to authenticate against the Kusto Database. UseManagedIdentity pulumi.BoolPtrOutput `pulumi:"useManagedIdentity"` } // NewLinkedServiceKusto registers a new resource with the given unique name, arguments, and options. func NewLinkedServiceKusto(ctx *pulumi.Context, name string, args *LinkedServiceKustoArgs, opts ...pulumi.ResourceOption) (*LinkedServiceKusto, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.DataFactoryId == nil { return nil, errors.New("invalid value for required argument 'DataFactoryId'") } if args.KustoDatabaseName == nil { return nil, errors.New("invalid value for required argument 'KustoDatabaseName'") } if args.KustoEndpoint == nil { return nil, errors.New("invalid value for required argument 'KustoEndpoint'") } if args.ServicePrincipalKey != nil { args.ServicePrincipalKey = pulumi.ToSecret(args.ServicePrincipalKey).(pulumi.StringPtrInput) } secrets := pulumi.AdditionalSecretOutputs([]string{ "servicePrincipalKey", }) opts = append(opts, secrets) opts = internal.PkgResourceDefaultOpts(opts) var resource LinkedServiceKusto err := ctx.RegisterResource("azure:datafactory/linkedServiceKusto:LinkedServiceKusto", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetLinkedServiceKusto gets an existing LinkedServiceKusto 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 GetLinkedServiceKusto(ctx *pulumi.Context, name string, id pulumi.IDInput, state *LinkedServiceKustoState, opts ...pulumi.ResourceOption) (*LinkedServiceKusto, error) { var resource LinkedServiceKusto err := ctx.ReadResource("azure:datafactory/linkedServiceKusto:LinkedServiceKusto", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering LinkedServiceKusto resources. type linkedServiceKustoState struct { // A map of additional properties to associate with the Data Factory Linked Service. // // The following supported arguments are specific to Azure Kusto Linked Service: AdditionalProperties map[string]string `pulumi:"additionalProperties"` // List of tags that can be used for describing the Data Factory Linked Service. Annotations []string `pulumi:"annotations"` // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId *string `pulumi:"dataFactoryId"` // The description for the Data Factory Linked Service. Description *string `pulumi:"description"` // The integration runtime reference to associate with the Data Factory Linked Service. IntegrationRuntimeName *string `pulumi:"integrationRuntimeName"` // The Kusto Database Name. KustoDatabaseName *string `pulumi:"kustoDatabaseName"` // The URI of the Kusto Cluster endpoint. KustoEndpoint *string `pulumi:"kustoEndpoint"` // Specifies the name of the Data Factory Linked Service. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name *string `pulumi:"name"` // A map of parameters to associate with the Data Factory Linked Service. Parameters map[string]string `pulumi:"parameters"` // The service principal id in which to authenticate against the Kusto Database. ServicePrincipalId *string `pulumi:"servicePrincipalId"` // The service principal key in which to authenticate against the Kusto Database. ServicePrincipalKey *string `pulumi:"servicePrincipalKey"` // The service principal tenant id or name in which to authenticate against the Kusto Database. // // > **Note:** If `servicePrincipalId` is used, `servicePrincipalKey` and `tenant` is also required. // // > **Note:** One of Managed Identity authentication and Service Principal authentication must be set. Tenant *string `pulumi:"tenant"` // Whether to use the Data Factory's managed identity to authenticate against the Kusto Database. UseManagedIdentity *bool `pulumi:"useManagedIdentity"` } type LinkedServiceKustoState struct { // A map of additional properties to associate with the Data Factory Linked Service. // // The following supported arguments are specific to Azure Kusto Linked Service: AdditionalProperties pulumi.StringMapInput // List of tags that can be used for describing the Data Factory Linked Service. Annotations pulumi.StringArrayInput // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId pulumi.StringPtrInput // The description for the Data Factory Linked Service. Description pulumi.StringPtrInput // The integration runtime reference to associate with the Data Factory Linked Service. IntegrationRuntimeName pulumi.StringPtrInput // The Kusto Database Name. KustoDatabaseName pulumi.StringPtrInput // The URI of the Kusto Cluster endpoint. KustoEndpoint pulumi.StringPtrInput // Specifies the name of the Data Factory Linked Service. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringPtrInput // A map of parameters to associate with the Data Factory Linked Service. Parameters pulumi.StringMapInput // The service principal id in which to authenticate against the Kusto Database. ServicePrincipalId pulumi.StringPtrInput // The service principal key in which to authenticate against the Kusto Database. ServicePrincipalKey pulumi.StringPtrInput // The service principal tenant id or name in which to authenticate against the Kusto Database. // // > **Note:** If `servicePrincipalId` is used, `servicePrincipalKey` and `tenant` is also required. // // > **Note:** One of Managed Identity authentication and Service Principal authentication must be set. Tenant pulumi.StringPtrInput // Whether to use the Data Factory's managed identity to authenticate against the Kusto Database. UseManagedIdentity pulumi.BoolPtrInput } func (LinkedServiceKustoState) ElementType() reflect.Type { return reflect.TypeOf((*linkedServiceKustoState)(nil)).Elem() } type linkedServiceKustoArgs struct { // A map of additional properties to associate with the Data Factory Linked Service. // // The following supported arguments are specific to Azure Kusto Linked Service: AdditionalProperties map[string]string `pulumi:"additionalProperties"` // List of tags that can be used for describing the Data Factory Linked Service. Annotations []string `pulumi:"annotations"` // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId string `pulumi:"dataFactoryId"` // The description for the Data Factory Linked Service. Description *string `pulumi:"description"` // The integration runtime reference to associate with the Data Factory Linked Service. IntegrationRuntimeName *string `pulumi:"integrationRuntimeName"` // The Kusto Database Name. KustoDatabaseName string `pulumi:"kustoDatabaseName"` // The URI of the Kusto Cluster endpoint. KustoEndpoint string `pulumi:"kustoEndpoint"` // Specifies the name of the Data Factory Linked Service. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name *string `pulumi:"name"` // A map of parameters to associate with the Data Factory Linked Service. Parameters map[string]string `pulumi:"parameters"` // The service principal id in which to authenticate against the Kusto Database. ServicePrincipalId *string `pulumi:"servicePrincipalId"` // The service principal key in which to authenticate against the Kusto Database. ServicePrincipalKey *string `pulumi:"servicePrincipalKey"` // The service principal tenant id or name in which to authenticate against the Kusto Database. // // > **Note:** If `servicePrincipalId` is used, `servicePrincipalKey` and `tenant` is also required. // // > **Note:** One of Managed Identity authentication and Service Principal authentication must be set. Tenant *string `pulumi:"tenant"` // Whether to use the Data Factory's managed identity to authenticate against the Kusto Database. UseManagedIdentity *bool `pulumi:"useManagedIdentity"` } // The set of arguments for constructing a LinkedServiceKusto resource. type LinkedServiceKustoArgs struct { // A map of additional properties to associate with the Data Factory Linked Service. // // The following supported arguments are specific to Azure Kusto Linked Service: AdditionalProperties pulumi.StringMapInput // List of tags that can be used for describing the Data Factory Linked Service. Annotations pulumi.StringArrayInput // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId pulumi.StringInput // The description for the Data Factory Linked Service. Description pulumi.StringPtrInput // The integration runtime reference to associate with the Data Factory Linked Service. IntegrationRuntimeName pulumi.StringPtrInput // The Kusto Database Name. KustoDatabaseName pulumi.StringInput // The URI of the Kusto Cluster endpoint. KustoEndpoint pulumi.StringInput // Specifies the name of the Data Factory Linked Service. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringPtrInput // A map of parameters to associate with the Data Factory Linked Service. Parameters pulumi.StringMapInput // The service principal id in which to authenticate against the Kusto Database. ServicePrincipalId pulumi.StringPtrInput // The service principal key in which to authenticate against the Kusto Database. ServicePrincipalKey pulumi.StringPtrInput // The service principal tenant id or name in which to authenticate against the Kusto Database. // // > **Note:** If `servicePrincipalId` is used, `servicePrincipalKey` and `tenant` is also required. // // > **Note:** One of Managed Identity authentication and Service Principal authentication must be set. Tenant pulumi.StringPtrInput // Whether to use the Data Factory's managed identity to authenticate against the Kusto Database. UseManagedIdentity pulumi.BoolPtrInput } func (LinkedServiceKustoArgs) ElementType() reflect.Type { return reflect.TypeOf((*linkedServiceKustoArgs)(nil)).Elem() } type LinkedServiceKustoInput interface { pulumi.Input ToLinkedServiceKustoOutput() LinkedServiceKustoOutput ToLinkedServiceKustoOutputWithContext(ctx context.Context) LinkedServiceKustoOutput } func (*LinkedServiceKusto) ElementType() reflect.Type { return reflect.TypeOf((**LinkedServiceKusto)(nil)).Elem() } func (i *LinkedServiceKusto) ToLinkedServiceKustoOutput() LinkedServiceKustoOutput { return i.ToLinkedServiceKustoOutputWithContext(context.Background()) } func (i *LinkedServiceKusto) ToLinkedServiceKustoOutputWithContext(ctx context.Context) LinkedServiceKustoOutput { return pulumi.ToOutputWithContext(ctx, i).(LinkedServiceKustoOutput) } // LinkedServiceKustoArrayInput is an input type that accepts LinkedServiceKustoArray and LinkedServiceKustoArrayOutput values. // You can construct a concrete instance of `LinkedServiceKustoArrayInput` via: // // LinkedServiceKustoArray{ LinkedServiceKustoArgs{...} } type LinkedServiceKustoArrayInput interface { pulumi.Input ToLinkedServiceKustoArrayOutput() LinkedServiceKustoArrayOutput ToLinkedServiceKustoArrayOutputWithContext(context.Context) LinkedServiceKustoArrayOutput } type LinkedServiceKustoArray []LinkedServiceKustoInput func (LinkedServiceKustoArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*LinkedServiceKusto)(nil)).Elem() } func (i LinkedServiceKustoArray) ToLinkedServiceKustoArrayOutput() LinkedServiceKustoArrayOutput { return i.ToLinkedServiceKustoArrayOutputWithContext(context.Background()) } func (i LinkedServiceKustoArray) ToLinkedServiceKustoArrayOutputWithContext(ctx context.Context) LinkedServiceKustoArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(LinkedServiceKustoArrayOutput) } // LinkedServiceKustoMapInput is an input type that accepts LinkedServiceKustoMap and LinkedServiceKustoMapOutput values. // You can construct a concrete instance of `LinkedServiceKustoMapInput` via: // // LinkedServiceKustoMap{ "key": LinkedServiceKustoArgs{...} } type LinkedServiceKustoMapInput interface { pulumi.Input ToLinkedServiceKustoMapOutput() LinkedServiceKustoMapOutput ToLinkedServiceKustoMapOutputWithContext(context.Context) LinkedServiceKustoMapOutput } type LinkedServiceKustoMap map[string]LinkedServiceKustoInput func (LinkedServiceKustoMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*LinkedServiceKusto)(nil)).Elem() } func (i LinkedServiceKustoMap) ToLinkedServiceKustoMapOutput() LinkedServiceKustoMapOutput { return i.ToLinkedServiceKustoMapOutputWithContext(context.Background()) } func (i LinkedServiceKustoMap) ToLinkedServiceKustoMapOutputWithContext(ctx context.Context) LinkedServiceKustoMapOutput { return pulumi.ToOutputWithContext(ctx, i).(LinkedServiceKustoMapOutput) } type LinkedServiceKustoOutput struct{ *pulumi.OutputState } func (LinkedServiceKustoOutput) ElementType() reflect.Type { return reflect.TypeOf((**LinkedServiceKusto)(nil)).Elem() } func (o LinkedServiceKustoOutput) ToLinkedServiceKustoOutput() LinkedServiceKustoOutput { return o } func (o LinkedServiceKustoOutput) ToLinkedServiceKustoOutputWithContext(ctx context.Context) LinkedServiceKustoOutput { return o } // A map of additional properties to associate with the Data Factory Linked Service. // // The following supported arguments are specific to Azure Kusto Linked Service: func (o LinkedServiceKustoOutput) AdditionalProperties() pulumi.StringMapOutput { return o.ApplyT(func(v *LinkedServiceKusto) pulumi.StringMapOutput { return v.AdditionalProperties }).(pulumi.StringMapOutput) } // List of tags that can be used for describing the Data Factory Linked Service. func (o LinkedServiceKustoOutput) Annotations() pulumi.StringArrayOutput { return o.ApplyT(func(v *LinkedServiceKusto) pulumi.StringArrayOutput { return v.Annotations }).(pulumi.StringArrayOutput) } // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. func (o LinkedServiceKustoOutput) DataFactoryId() pulumi.StringOutput { return o.ApplyT(func(v *LinkedServiceKusto) pulumi.StringOutput { return v.DataFactoryId }).(pulumi.StringOutput) } // The description for the Data Factory Linked Service. func (o LinkedServiceKustoOutput) Description() pulumi.StringPtrOutput { return o.ApplyT(func(v *LinkedServiceKusto) pulumi.StringPtrOutput { return v.Description }).(pulumi.StringPtrOutput) } // The integration runtime reference to associate with the Data Factory Linked Service. func (o LinkedServiceKustoOutput) IntegrationRuntimeName() pulumi.StringPtrOutput { return o.ApplyT(func(v *LinkedServiceKusto) pulumi.StringPtrOutput { return v.IntegrationRuntimeName }).(pulumi.StringPtrOutput) } // The Kusto Database Name. func (o LinkedServiceKustoOutput) KustoDatabaseName() pulumi.StringOutput { return o.ApplyT(func(v *LinkedServiceKusto) pulumi.StringOutput { return v.KustoDatabaseName }).(pulumi.StringOutput) } // The URI of the Kusto Cluster endpoint. func (o LinkedServiceKustoOutput) KustoEndpoint() pulumi.StringOutput { return o.ApplyT(func(v *LinkedServiceKusto) pulumi.StringOutput { return v.KustoEndpoint }).(pulumi.StringOutput) } // Specifies the name of the Data Factory Linked Service. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. func (o LinkedServiceKustoOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *LinkedServiceKusto) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // A map of parameters to associate with the Data Factory Linked Service. func (o LinkedServiceKustoOutput) Parameters() pulumi.StringMapOutput { return o.ApplyT(func(v *LinkedServiceKusto) pulumi.StringMapOutput { return v.Parameters }).(pulumi.StringMapOutput) } // The service principal id in which to authenticate against the Kusto Database. func (o LinkedServiceKustoOutput) ServicePrincipalId() pulumi.StringPtrOutput { return o.ApplyT(func(v *LinkedServiceKusto) pulumi.StringPtrOutput { return v.ServicePrincipalId }).(pulumi.StringPtrOutput) } // The service principal key in which to authenticate against the Kusto Database. func (o LinkedServiceKustoOutput) ServicePrincipalKey() pulumi.StringPtrOutput { return o.ApplyT(func(v *LinkedServiceKusto) pulumi.StringPtrOutput { return v.ServicePrincipalKey }).(pulumi.StringPtrOutput) } // The service principal tenant id or name in which to authenticate against the Kusto Database. // // > **Note:** If `servicePrincipalId` is used, `servicePrincipalKey` and `tenant` is also required. // // > **Note:** One of Managed Identity authentication and Service Principal authentication must be set. func (o LinkedServiceKustoOutput) Tenant() pulumi.StringPtrOutput { return o.ApplyT(func(v *LinkedServiceKusto) pulumi.StringPtrOutput { return v.Tenant }).(pulumi.StringPtrOutput) } // Whether to use the Data Factory's managed identity to authenticate against the Kusto Database. func (o LinkedServiceKustoOutput) UseManagedIdentity() pulumi.BoolPtrOutput { return o.ApplyT(func(v *LinkedServiceKusto) pulumi.BoolPtrOutput { return v.UseManagedIdentity }).(pulumi.BoolPtrOutput) } type LinkedServiceKustoArrayOutput struct{ *pulumi.OutputState } func (LinkedServiceKustoArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*LinkedServiceKusto)(nil)).Elem() } func (o LinkedServiceKustoArrayOutput) ToLinkedServiceKustoArrayOutput() LinkedServiceKustoArrayOutput { return o } func (o LinkedServiceKustoArrayOutput) ToLinkedServiceKustoArrayOutputWithContext(ctx context.Context) LinkedServiceKustoArrayOutput { return o } func (o LinkedServiceKustoArrayOutput) Index(i pulumi.IntInput) LinkedServiceKustoOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *LinkedServiceKusto { return vs[0].([]*LinkedServiceKusto)[vs[1].(int)] }).(LinkedServiceKustoOutput) } type LinkedServiceKustoMapOutput struct{ *pulumi.OutputState } func (LinkedServiceKustoMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*LinkedServiceKusto)(nil)).Elem() } func (o LinkedServiceKustoMapOutput) ToLinkedServiceKustoMapOutput() LinkedServiceKustoMapOutput { return o } func (o LinkedServiceKustoMapOutput) ToLinkedServiceKustoMapOutputWithContext(ctx context.Context) LinkedServiceKustoMapOutput { return o } func (o LinkedServiceKustoMapOutput) MapIndex(k pulumi.StringInput) LinkedServiceKustoOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *LinkedServiceKusto { return vs[0].(map[string]*LinkedServiceKusto)[vs[1].(string)] }).(LinkedServiceKustoOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*LinkedServiceKustoInput)(nil)).Elem(), &LinkedServiceKusto{}) pulumi.RegisterInputType(reflect.TypeOf((*LinkedServiceKustoArrayInput)(nil)).Elem(), LinkedServiceKustoArray{}) pulumi.RegisterInputType(reflect.TypeOf((*LinkedServiceKustoMapInput)(nil)).Elem(), LinkedServiceKustoMap{}) pulumi.RegisterOutputType(LinkedServiceKustoOutput{}) pulumi.RegisterOutputType(LinkedServiceKustoArrayOutput{}) pulumi.RegisterOutputType(LinkedServiceKustoMapOutput{}) }
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/datafactory/datasetHttp.go
sdk/go/azure/datafactory/datasetHttp.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 datafactory 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 HTTP Dataset inside an Azure Data Factory. // // ## 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/datafactory" // "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 // } // exampleFactory, err := datafactory.NewFactory(ctx, "example", &datafactory.FactoryArgs{ // Name: pulumi.String("example"), // Location: example.Location, // ResourceGroupName: example.Name, // }) // if err != nil { // return err // } // exampleLinkedServiceWeb, err := datafactory.NewLinkedServiceWeb(ctx, "example", &datafactory.LinkedServiceWebArgs{ // Name: pulumi.String("example"), // DataFactoryId: exampleFactory.ID(), // AuthenticationType: pulumi.String("Anonymous"), // Url: pulumi.String("https://www.bing.com"), // }) // if err != nil { // return err // } // _, err = datafactory.NewDatasetHttp(ctx, "example", &datafactory.DatasetHttpArgs{ // Name: pulumi.String("example"), // DataFactoryId: exampleFactory.ID(), // LinkedServiceName: exampleLinkedServiceWeb.Name, // RelativeUrl: pulumi.String("http://www.bing.com"), // RequestBody: pulumi.String("foo=bar"), // RequestMethod: pulumi.String("POST"), // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## Import // // Data Factory Datasets can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:datafactory/datasetHttp:DatasetHttp example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example/providers/Microsoft.DataFactory/factories/example/datasets/example // ``` type DatasetHttp struct { pulumi.CustomResourceState // A map of additional properties to associate with the Data Factory Dataset. // // The following supported arguments are specific to HTTP Dataset: AdditionalProperties pulumi.StringMapOutput `pulumi:"additionalProperties"` // List of tags that can be used for describing the Data Factory Dataset. Annotations pulumi.StringArrayOutput `pulumi:"annotations"` // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId pulumi.StringOutput `pulumi:"dataFactoryId"` // The description for the Data Factory Dataset. Description pulumi.StringPtrOutput `pulumi:"description"` // The folder that this Dataset is in. If not specified, the Dataset will appear at the root level. Folder pulumi.StringPtrOutput `pulumi:"folder"` // The Data Factory Linked Service name in which to associate the Dataset with. LinkedServiceName pulumi.StringOutput `pulumi:"linkedServiceName"` // Specifies the name of the Data Factory Dataset. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringOutput `pulumi:"name"` // A map of parameters to associate with the Data Factory Dataset. Parameters pulumi.StringMapOutput `pulumi:"parameters"` // The relative URL based on the URL in the HTTP Linked Service. RelativeUrl pulumi.StringPtrOutput `pulumi:"relativeUrl"` // The body for the HTTP request. RequestBody pulumi.StringPtrOutput `pulumi:"requestBody"` // The HTTP method for the HTTP request. (e.g. GET, POST) RequestMethod pulumi.StringPtrOutput `pulumi:"requestMethod"` // A `schemaColumn` block as defined below. SchemaColumns DatasetHttpSchemaColumnArrayOutput `pulumi:"schemaColumns"` } // NewDatasetHttp registers a new resource with the given unique name, arguments, and options. func NewDatasetHttp(ctx *pulumi.Context, name string, args *DatasetHttpArgs, opts ...pulumi.ResourceOption) (*DatasetHttp, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.DataFactoryId == nil { return nil, errors.New("invalid value for required argument 'DataFactoryId'") } if args.LinkedServiceName == nil { return nil, errors.New("invalid value for required argument 'LinkedServiceName'") } opts = internal.PkgResourceDefaultOpts(opts) var resource DatasetHttp err := ctx.RegisterResource("azure:datafactory/datasetHttp:DatasetHttp", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetDatasetHttp gets an existing DatasetHttp 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 GetDatasetHttp(ctx *pulumi.Context, name string, id pulumi.IDInput, state *DatasetHttpState, opts ...pulumi.ResourceOption) (*DatasetHttp, error) { var resource DatasetHttp err := ctx.ReadResource("azure:datafactory/datasetHttp:DatasetHttp", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering DatasetHttp resources. type datasetHttpState struct { // A map of additional properties to associate with the Data Factory Dataset. // // The following supported arguments are specific to HTTP Dataset: AdditionalProperties map[string]string `pulumi:"additionalProperties"` // List of tags that can be used for describing the Data Factory Dataset. Annotations []string `pulumi:"annotations"` // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId *string `pulumi:"dataFactoryId"` // The description for the Data Factory Dataset. Description *string `pulumi:"description"` // The folder that this Dataset is in. If not specified, the Dataset will appear at the root level. Folder *string `pulumi:"folder"` // The Data Factory Linked Service name in which to associate the Dataset with. LinkedServiceName *string `pulumi:"linkedServiceName"` // Specifies the name of the Data Factory Dataset. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name *string `pulumi:"name"` // A map of parameters to associate with the Data Factory Dataset. Parameters map[string]string `pulumi:"parameters"` // The relative URL based on the URL in the HTTP Linked Service. RelativeUrl *string `pulumi:"relativeUrl"` // The body for the HTTP request. RequestBody *string `pulumi:"requestBody"` // The HTTP method for the HTTP request. (e.g. GET, POST) RequestMethod *string `pulumi:"requestMethod"` // A `schemaColumn` block as defined below. SchemaColumns []DatasetHttpSchemaColumn `pulumi:"schemaColumns"` } type DatasetHttpState struct { // A map of additional properties to associate with the Data Factory Dataset. // // The following supported arguments are specific to HTTP Dataset: AdditionalProperties pulumi.StringMapInput // List of tags that can be used for describing the Data Factory Dataset. Annotations pulumi.StringArrayInput // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId pulumi.StringPtrInput // The description for the Data Factory Dataset. Description pulumi.StringPtrInput // The folder that this Dataset is in. If not specified, the Dataset will appear at the root level. Folder pulumi.StringPtrInput // The Data Factory Linked Service name in which to associate the Dataset with. LinkedServiceName pulumi.StringPtrInput // Specifies the name of the Data Factory Dataset. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringPtrInput // A map of parameters to associate with the Data Factory Dataset. Parameters pulumi.StringMapInput // The relative URL based on the URL in the HTTP Linked Service. RelativeUrl pulumi.StringPtrInput // The body for the HTTP request. RequestBody pulumi.StringPtrInput // The HTTP method for the HTTP request. (e.g. GET, POST) RequestMethod pulumi.StringPtrInput // A `schemaColumn` block as defined below. SchemaColumns DatasetHttpSchemaColumnArrayInput } func (DatasetHttpState) ElementType() reflect.Type { return reflect.TypeOf((*datasetHttpState)(nil)).Elem() } type datasetHttpArgs struct { // A map of additional properties to associate with the Data Factory Dataset. // // The following supported arguments are specific to HTTP Dataset: AdditionalProperties map[string]string `pulumi:"additionalProperties"` // List of tags that can be used for describing the Data Factory Dataset. Annotations []string `pulumi:"annotations"` // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId string `pulumi:"dataFactoryId"` // The description for the Data Factory Dataset. Description *string `pulumi:"description"` // The folder that this Dataset is in. If not specified, the Dataset will appear at the root level. Folder *string `pulumi:"folder"` // The Data Factory Linked Service name in which to associate the Dataset with. LinkedServiceName string `pulumi:"linkedServiceName"` // Specifies the name of the Data Factory Dataset. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name *string `pulumi:"name"` // A map of parameters to associate with the Data Factory Dataset. Parameters map[string]string `pulumi:"parameters"` // The relative URL based on the URL in the HTTP Linked Service. RelativeUrl *string `pulumi:"relativeUrl"` // The body for the HTTP request. RequestBody *string `pulumi:"requestBody"` // The HTTP method for the HTTP request. (e.g. GET, POST) RequestMethod *string `pulumi:"requestMethod"` // A `schemaColumn` block as defined below. SchemaColumns []DatasetHttpSchemaColumn `pulumi:"schemaColumns"` } // The set of arguments for constructing a DatasetHttp resource. type DatasetHttpArgs struct { // A map of additional properties to associate with the Data Factory Dataset. // // The following supported arguments are specific to HTTP Dataset: AdditionalProperties pulumi.StringMapInput // List of tags that can be used for describing the Data Factory Dataset. Annotations pulumi.StringArrayInput // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId pulumi.StringInput // The description for the Data Factory Dataset. Description pulumi.StringPtrInput // The folder that this Dataset is in. If not specified, the Dataset will appear at the root level. Folder pulumi.StringPtrInput // The Data Factory Linked Service name in which to associate the Dataset with. LinkedServiceName pulumi.StringInput // Specifies the name of the Data Factory Dataset. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringPtrInput // A map of parameters to associate with the Data Factory Dataset. Parameters pulumi.StringMapInput // The relative URL based on the URL in the HTTP Linked Service. RelativeUrl pulumi.StringPtrInput // The body for the HTTP request. RequestBody pulumi.StringPtrInput // The HTTP method for the HTTP request. (e.g. GET, POST) RequestMethod pulumi.StringPtrInput // A `schemaColumn` block as defined below. SchemaColumns DatasetHttpSchemaColumnArrayInput } func (DatasetHttpArgs) ElementType() reflect.Type { return reflect.TypeOf((*datasetHttpArgs)(nil)).Elem() } type DatasetHttpInput interface { pulumi.Input ToDatasetHttpOutput() DatasetHttpOutput ToDatasetHttpOutputWithContext(ctx context.Context) DatasetHttpOutput } func (*DatasetHttp) ElementType() reflect.Type { return reflect.TypeOf((**DatasetHttp)(nil)).Elem() } func (i *DatasetHttp) ToDatasetHttpOutput() DatasetHttpOutput { return i.ToDatasetHttpOutputWithContext(context.Background()) } func (i *DatasetHttp) ToDatasetHttpOutputWithContext(ctx context.Context) DatasetHttpOutput { return pulumi.ToOutputWithContext(ctx, i).(DatasetHttpOutput) } // DatasetHttpArrayInput is an input type that accepts DatasetHttpArray and DatasetHttpArrayOutput values. // You can construct a concrete instance of `DatasetHttpArrayInput` via: // // DatasetHttpArray{ DatasetHttpArgs{...} } type DatasetHttpArrayInput interface { pulumi.Input ToDatasetHttpArrayOutput() DatasetHttpArrayOutput ToDatasetHttpArrayOutputWithContext(context.Context) DatasetHttpArrayOutput } type DatasetHttpArray []DatasetHttpInput func (DatasetHttpArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*DatasetHttp)(nil)).Elem() } func (i DatasetHttpArray) ToDatasetHttpArrayOutput() DatasetHttpArrayOutput { return i.ToDatasetHttpArrayOutputWithContext(context.Background()) } func (i DatasetHttpArray) ToDatasetHttpArrayOutputWithContext(ctx context.Context) DatasetHttpArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(DatasetHttpArrayOutput) } // DatasetHttpMapInput is an input type that accepts DatasetHttpMap and DatasetHttpMapOutput values. // You can construct a concrete instance of `DatasetHttpMapInput` via: // // DatasetHttpMap{ "key": DatasetHttpArgs{...} } type DatasetHttpMapInput interface { pulumi.Input ToDatasetHttpMapOutput() DatasetHttpMapOutput ToDatasetHttpMapOutputWithContext(context.Context) DatasetHttpMapOutput } type DatasetHttpMap map[string]DatasetHttpInput func (DatasetHttpMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*DatasetHttp)(nil)).Elem() } func (i DatasetHttpMap) ToDatasetHttpMapOutput() DatasetHttpMapOutput { return i.ToDatasetHttpMapOutputWithContext(context.Background()) } func (i DatasetHttpMap) ToDatasetHttpMapOutputWithContext(ctx context.Context) DatasetHttpMapOutput { return pulumi.ToOutputWithContext(ctx, i).(DatasetHttpMapOutput) } type DatasetHttpOutput struct{ *pulumi.OutputState } func (DatasetHttpOutput) ElementType() reflect.Type { return reflect.TypeOf((**DatasetHttp)(nil)).Elem() } func (o DatasetHttpOutput) ToDatasetHttpOutput() DatasetHttpOutput { return o } func (o DatasetHttpOutput) ToDatasetHttpOutputWithContext(ctx context.Context) DatasetHttpOutput { return o } // A map of additional properties to associate with the Data Factory Dataset. // // The following supported arguments are specific to HTTP Dataset: func (o DatasetHttpOutput) AdditionalProperties() pulumi.StringMapOutput { return o.ApplyT(func(v *DatasetHttp) pulumi.StringMapOutput { return v.AdditionalProperties }).(pulumi.StringMapOutput) } // List of tags that can be used for describing the Data Factory Dataset. func (o DatasetHttpOutput) Annotations() pulumi.StringArrayOutput { return o.ApplyT(func(v *DatasetHttp) pulumi.StringArrayOutput { return v.Annotations }).(pulumi.StringArrayOutput) } // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. func (o DatasetHttpOutput) DataFactoryId() pulumi.StringOutput { return o.ApplyT(func(v *DatasetHttp) pulumi.StringOutput { return v.DataFactoryId }).(pulumi.StringOutput) } // The description for the Data Factory Dataset. func (o DatasetHttpOutput) Description() pulumi.StringPtrOutput { return o.ApplyT(func(v *DatasetHttp) pulumi.StringPtrOutput { return v.Description }).(pulumi.StringPtrOutput) } // The folder that this Dataset is in. If not specified, the Dataset will appear at the root level. func (o DatasetHttpOutput) Folder() pulumi.StringPtrOutput { return o.ApplyT(func(v *DatasetHttp) pulumi.StringPtrOutput { return v.Folder }).(pulumi.StringPtrOutput) } // The Data Factory Linked Service name in which to associate the Dataset with. func (o DatasetHttpOutput) LinkedServiceName() pulumi.StringOutput { return o.ApplyT(func(v *DatasetHttp) pulumi.StringOutput { return v.LinkedServiceName }).(pulumi.StringOutput) } // Specifies the name of the Data Factory Dataset. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. func (o DatasetHttpOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *DatasetHttp) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // A map of parameters to associate with the Data Factory Dataset. func (o DatasetHttpOutput) Parameters() pulumi.StringMapOutput { return o.ApplyT(func(v *DatasetHttp) pulumi.StringMapOutput { return v.Parameters }).(pulumi.StringMapOutput) } // The relative URL based on the URL in the HTTP Linked Service. func (o DatasetHttpOutput) RelativeUrl() pulumi.StringPtrOutput { return o.ApplyT(func(v *DatasetHttp) pulumi.StringPtrOutput { return v.RelativeUrl }).(pulumi.StringPtrOutput) } // The body for the HTTP request. func (o DatasetHttpOutput) RequestBody() pulumi.StringPtrOutput { return o.ApplyT(func(v *DatasetHttp) pulumi.StringPtrOutput { return v.RequestBody }).(pulumi.StringPtrOutput) } // The HTTP method for the HTTP request. (e.g. GET, POST) func (o DatasetHttpOutput) RequestMethod() pulumi.StringPtrOutput { return o.ApplyT(func(v *DatasetHttp) pulumi.StringPtrOutput { return v.RequestMethod }).(pulumi.StringPtrOutput) } // A `schemaColumn` block as defined below. func (o DatasetHttpOutput) SchemaColumns() DatasetHttpSchemaColumnArrayOutput { return o.ApplyT(func(v *DatasetHttp) DatasetHttpSchemaColumnArrayOutput { return v.SchemaColumns }).(DatasetHttpSchemaColumnArrayOutput) } type DatasetHttpArrayOutput struct{ *pulumi.OutputState } func (DatasetHttpArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*DatasetHttp)(nil)).Elem() } func (o DatasetHttpArrayOutput) ToDatasetHttpArrayOutput() DatasetHttpArrayOutput { return o } func (o DatasetHttpArrayOutput) ToDatasetHttpArrayOutputWithContext(ctx context.Context) DatasetHttpArrayOutput { return o } func (o DatasetHttpArrayOutput) Index(i pulumi.IntInput) DatasetHttpOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *DatasetHttp { return vs[0].([]*DatasetHttp)[vs[1].(int)] }).(DatasetHttpOutput) } type DatasetHttpMapOutput struct{ *pulumi.OutputState } func (DatasetHttpMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*DatasetHttp)(nil)).Elem() } func (o DatasetHttpMapOutput) ToDatasetHttpMapOutput() DatasetHttpMapOutput { return o } func (o DatasetHttpMapOutput) ToDatasetHttpMapOutputWithContext(ctx context.Context) DatasetHttpMapOutput { return o } func (o DatasetHttpMapOutput) MapIndex(k pulumi.StringInput) DatasetHttpOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *DatasetHttp { return vs[0].(map[string]*DatasetHttp)[vs[1].(string)] }).(DatasetHttpOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*DatasetHttpInput)(nil)).Elem(), &DatasetHttp{}) pulumi.RegisterInputType(reflect.TypeOf((*DatasetHttpArrayInput)(nil)).Elem(), DatasetHttpArray{}) pulumi.RegisterInputType(reflect.TypeOf((*DatasetHttpMapInput)(nil)).Elem(), DatasetHttpMap{}) pulumi.RegisterOutputType(DatasetHttpOutput{}) pulumi.RegisterOutputType(DatasetHttpArrayOutput{}) pulumi.RegisterOutputType(DatasetHttpMapOutput{}) }
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/datafactory/integrationRuntimeSelfHosted.go
sdk/go/azure/datafactory/integrationRuntimeSelfHosted.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 datafactory import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a Data Factory Self-hosted Integration Runtime. // // ## 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/datafactory" // "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 // } // exampleFactory, err := datafactory.NewFactory(ctx, "example", &datafactory.FactoryArgs{ // Name: pulumi.String("example"), // Location: example.Location, // ResourceGroupName: example.Name, // }) // if err != nil { // return err // } // _, err = datafactory.NewIntegrationRuntimeSelfHosted(ctx, "example", &datafactory.IntegrationRuntimeSelfHostedArgs{ // Name: pulumi.String("example"), // DataFactoryId: exampleFactory.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.DataFactory` - 2018-06-01 // // ## Import // // Data Factories can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:datafactory/integrationRuntimeSelfHosted:IntegrationRuntimeSelfHosted example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example/providers/Microsoft.DataFactory/factories/example/integrationRuntimes/example // ``` type IntegrationRuntimeSelfHosted struct { pulumi.CustomResourceState // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId pulumi.StringOutput `pulumi:"dataFactoryId"` // Integration runtime description. Description pulumi.StringPtrOutput `pulumi:"description"` // The name which should be used for this Data Factory. Changing this forces a new Data Factory Self-hosted Integration Runtime to be created. Name pulumi.StringOutput `pulumi:"name"` // The primary integration runtime authentication key. PrimaryAuthorizationKey pulumi.StringOutput `pulumi:"primaryAuthorizationKey"` // A `rbacAuthorization` block as defined below. Changing this forces a new resource to be created. RbacAuthorizations IntegrationRuntimeSelfHostedRbacAuthorizationArrayOutput `pulumi:"rbacAuthorizations"` // The secondary integration runtime authentication key. SecondaryAuthorizationKey pulumi.StringOutput `pulumi:"secondaryAuthorizationKey"` // Specifies whether enable interactive authoring function when your self-hosted integration runtime is unable to establish a connection with Azure Relay. SelfContainedInteractiveAuthoringEnabled pulumi.BoolPtrOutput `pulumi:"selfContainedInteractiveAuthoringEnabled"` } // NewIntegrationRuntimeSelfHosted registers a new resource with the given unique name, arguments, and options. func NewIntegrationRuntimeSelfHosted(ctx *pulumi.Context, name string, args *IntegrationRuntimeSelfHostedArgs, opts ...pulumi.ResourceOption) (*IntegrationRuntimeSelfHosted, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.DataFactoryId == nil { return nil, errors.New("invalid value for required argument 'DataFactoryId'") } opts = internal.PkgResourceDefaultOpts(opts) var resource IntegrationRuntimeSelfHosted err := ctx.RegisterResource("azure:datafactory/integrationRuntimeSelfHosted:IntegrationRuntimeSelfHosted", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetIntegrationRuntimeSelfHosted gets an existing IntegrationRuntimeSelfHosted 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 GetIntegrationRuntimeSelfHosted(ctx *pulumi.Context, name string, id pulumi.IDInput, state *IntegrationRuntimeSelfHostedState, opts ...pulumi.ResourceOption) (*IntegrationRuntimeSelfHosted, error) { var resource IntegrationRuntimeSelfHosted err := ctx.ReadResource("azure:datafactory/integrationRuntimeSelfHosted:IntegrationRuntimeSelfHosted", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering IntegrationRuntimeSelfHosted resources. type integrationRuntimeSelfHostedState struct { // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId *string `pulumi:"dataFactoryId"` // Integration runtime description. Description *string `pulumi:"description"` // The name which should be used for this Data Factory. Changing this forces a new Data Factory Self-hosted Integration Runtime to be created. Name *string `pulumi:"name"` // The primary integration runtime authentication key. PrimaryAuthorizationKey *string `pulumi:"primaryAuthorizationKey"` // A `rbacAuthorization` block as defined below. Changing this forces a new resource to be created. RbacAuthorizations []IntegrationRuntimeSelfHostedRbacAuthorization `pulumi:"rbacAuthorizations"` // The secondary integration runtime authentication key. SecondaryAuthorizationKey *string `pulumi:"secondaryAuthorizationKey"` // Specifies whether enable interactive authoring function when your self-hosted integration runtime is unable to establish a connection with Azure Relay. SelfContainedInteractiveAuthoringEnabled *bool `pulumi:"selfContainedInteractiveAuthoringEnabled"` } type IntegrationRuntimeSelfHostedState struct { // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId pulumi.StringPtrInput // Integration runtime description. Description pulumi.StringPtrInput // The name which should be used for this Data Factory. Changing this forces a new Data Factory Self-hosted Integration Runtime to be created. Name pulumi.StringPtrInput // The primary integration runtime authentication key. PrimaryAuthorizationKey pulumi.StringPtrInput // A `rbacAuthorization` block as defined below. Changing this forces a new resource to be created. RbacAuthorizations IntegrationRuntimeSelfHostedRbacAuthorizationArrayInput // The secondary integration runtime authentication key. SecondaryAuthorizationKey pulumi.StringPtrInput // Specifies whether enable interactive authoring function when your self-hosted integration runtime is unable to establish a connection with Azure Relay. SelfContainedInteractiveAuthoringEnabled pulumi.BoolPtrInput } func (IntegrationRuntimeSelfHostedState) ElementType() reflect.Type { return reflect.TypeOf((*integrationRuntimeSelfHostedState)(nil)).Elem() } type integrationRuntimeSelfHostedArgs struct { // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId string `pulumi:"dataFactoryId"` // Integration runtime description. Description *string `pulumi:"description"` // The name which should be used for this Data Factory. Changing this forces a new Data Factory Self-hosted Integration Runtime to be created. Name *string `pulumi:"name"` // A `rbacAuthorization` block as defined below. Changing this forces a new resource to be created. RbacAuthorizations []IntegrationRuntimeSelfHostedRbacAuthorization `pulumi:"rbacAuthorizations"` // Specifies whether enable interactive authoring function when your self-hosted integration runtime is unable to establish a connection with Azure Relay. SelfContainedInteractiveAuthoringEnabled *bool `pulumi:"selfContainedInteractiveAuthoringEnabled"` } // The set of arguments for constructing a IntegrationRuntimeSelfHosted resource. type IntegrationRuntimeSelfHostedArgs struct { // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId pulumi.StringInput // Integration runtime description. Description pulumi.StringPtrInput // The name which should be used for this Data Factory. Changing this forces a new Data Factory Self-hosted Integration Runtime to be created. Name pulumi.StringPtrInput // A `rbacAuthorization` block as defined below. Changing this forces a new resource to be created. RbacAuthorizations IntegrationRuntimeSelfHostedRbacAuthorizationArrayInput // Specifies whether enable interactive authoring function when your self-hosted integration runtime is unable to establish a connection with Azure Relay. SelfContainedInteractiveAuthoringEnabled pulumi.BoolPtrInput } func (IntegrationRuntimeSelfHostedArgs) ElementType() reflect.Type { return reflect.TypeOf((*integrationRuntimeSelfHostedArgs)(nil)).Elem() } type IntegrationRuntimeSelfHostedInput interface { pulumi.Input ToIntegrationRuntimeSelfHostedOutput() IntegrationRuntimeSelfHostedOutput ToIntegrationRuntimeSelfHostedOutputWithContext(ctx context.Context) IntegrationRuntimeSelfHostedOutput } func (*IntegrationRuntimeSelfHosted) ElementType() reflect.Type { return reflect.TypeOf((**IntegrationRuntimeSelfHosted)(nil)).Elem() } func (i *IntegrationRuntimeSelfHosted) ToIntegrationRuntimeSelfHostedOutput() IntegrationRuntimeSelfHostedOutput { return i.ToIntegrationRuntimeSelfHostedOutputWithContext(context.Background()) } func (i *IntegrationRuntimeSelfHosted) ToIntegrationRuntimeSelfHostedOutputWithContext(ctx context.Context) IntegrationRuntimeSelfHostedOutput { return pulumi.ToOutputWithContext(ctx, i).(IntegrationRuntimeSelfHostedOutput) } // IntegrationRuntimeSelfHostedArrayInput is an input type that accepts IntegrationRuntimeSelfHostedArray and IntegrationRuntimeSelfHostedArrayOutput values. // You can construct a concrete instance of `IntegrationRuntimeSelfHostedArrayInput` via: // // IntegrationRuntimeSelfHostedArray{ IntegrationRuntimeSelfHostedArgs{...} } type IntegrationRuntimeSelfHostedArrayInput interface { pulumi.Input ToIntegrationRuntimeSelfHostedArrayOutput() IntegrationRuntimeSelfHostedArrayOutput ToIntegrationRuntimeSelfHostedArrayOutputWithContext(context.Context) IntegrationRuntimeSelfHostedArrayOutput } type IntegrationRuntimeSelfHostedArray []IntegrationRuntimeSelfHostedInput func (IntegrationRuntimeSelfHostedArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*IntegrationRuntimeSelfHosted)(nil)).Elem() } func (i IntegrationRuntimeSelfHostedArray) ToIntegrationRuntimeSelfHostedArrayOutput() IntegrationRuntimeSelfHostedArrayOutput { return i.ToIntegrationRuntimeSelfHostedArrayOutputWithContext(context.Background()) } func (i IntegrationRuntimeSelfHostedArray) ToIntegrationRuntimeSelfHostedArrayOutputWithContext(ctx context.Context) IntegrationRuntimeSelfHostedArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(IntegrationRuntimeSelfHostedArrayOutput) } // IntegrationRuntimeSelfHostedMapInput is an input type that accepts IntegrationRuntimeSelfHostedMap and IntegrationRuntimeSelfHostedMapOutput values. // You can construct a concrete instance of `IntegrationRuntimeSelfHostedMapInput` via: // // IntegrationRuntimeSelfHostedMap{ "key": IntegrationRuntimeSelfHostedArgs{...} } type IntegrationRuntimeSelfHostedMapInput interface { pulumi.Input ToIntegrationRuntimeSelfHostedMapOutput() IntegrationRuntimeSelfHostedMapOutput ToIntegrationRuntimeSelfHostedMapOutputWithContext(context.Context) IntegrationRuntimeSelfHostedMapOutput } type IntegrationRuntimeSelfHostedMap map[string]IntegrationRuntimeSelfHostedInput func (IntegrationRuntimeSelfHostedMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*IntegrationRuntimeSelfHosted)(nil)).Elem() } func (i IntegrationRuntimeSelfHostedMap) ToIntegrationRuntimeSelfHostedMapOutput() IntegrationRuntimeSelfHostedMapOutput { return i.ToIntegrationRuntimeSelfHostedMapOutputWithContext(context.Background()) } func (i IntegrationRuntimeSelfHostedMap) ToIntegrationRuntimeSelfHostedMapOutputWithContext(ctx context.Context) IntegrationRuntimeSelfHostedMapOutput { return pulumi.ToOutputWithContext(ctx, i).(IntegrationRuntimeSelfHostedMapOutput) } type IntegrationRuntimeSelfHostedOutput struct{ *pulumi.OutputState } func (IntegrationRuntimeSelfHostedOutput) ElementType() reflect.Type { return reflect.TypeOf((**IntegrationRuntimeSelfHosted)(nil)).Elem() } func (o IntegrationRuntimeSelfHostedOutput) ToIntegrationRuntimeSelfHostedOutput() IntegrationRuntimeSelfHostedOutput { return o } func (o IntegrationRuntimeSelfHostedOutput) ToIntegrationRuntimeSelfHostedOutputWithContext(ctx context.Context) IntegrationRuntimeSelfHostedOutput { return o } // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. func (o IntegrationRuntimeSelfHostedOutput) DataFactoryId() pulumi.StringOutput { return o.ApplyT(func(v *IntegrationRuntimeSelfHosted) pulumi.StringOutput { return v.DataFactoryId }).(pulumi.StringOutput) } // Integration runtime description. func (o IntegrationRuntimeSelfHostedOutput) Description() pulumi.StringPtrOutput { return o.ApplyT(func(v *IntegrationRuntimeSelfHosted) pulumi.StringPtrOutput { return v.Description }).(pulumi.StringPtrOutput) } // The name which should be used for this Data Factory. Changing this forces a new Data Factory Self-hosted Integration Runtime to be created. func (o IntegrationRuntimeSelfHostedOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *IntegrationRuntimeSelfHosted) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // The primary integration runtime authentication key. func (o IntegrationRuntimeSelfHostedOutput) PrimaryAuthorizationKey() pulumi.StringOutput { return o.ApplyT(func(v *IntegrationRuntimeSelfHosted) pulumi.StringOutput { return v.PrimaryAuthorizationKey }).(pulumi.StringOutput) } // A `rbacAuthorization` block as defined below. Changing this forces a new resource to be created. func (o IntegrationRuntimeSelfHostedOutput) RbacAuthorizations() IntegrationRuntimeSelfHostedRbacAuthorizationArrayOutput { return o.ApplyT(func(v *IntegrationRuntimeSelfHosted) IntegrationRuntimeSelfHostedRbacAuthorizationArrayOutput { return v.RbacAuthorizations }).(IntegrationRuntimeSelfHostedRbacAuthorizationArrayOutput) } // The secondary integration runtime authentication key. func (o IntegrationRuntimeSelfHostedOutput) SecondaryAuthorizationKey() pulumi.StringOutput { return o.ApplyT(func(v *IntegrationRuntimeSelfHosted) pulumi.StringOutput { return v.SecondaryAuthorizationKey }).(pulumi.StringOutput) } // Specifies whether enable interactive authoring function when your self-hosted integration runtime is unable to establish a connection with Azure Relay. func (o IntegrationRuntimeSelfHostedOutput) SelfContainedInteractiveAuthoringEnabled() pulumi.BoolPtrOutput { return o.ApplyT(func(v *IntegrationRuntimeSelfHosted) pulumi.BoolPtrOutput { return v.SelfContainedInteractiveAuthoringEnabled }).(pulumi.BoolPtrOutput) } type IntegrationRuntimeSelfHostedArrayOutput struct{ *pulumi.OutputState } func (IntegrationRuntimeSelfHostedArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*IntegrationRuntimeSelfHosted)(nil)).Elem() } func (o IntegrationRuntimeSelfHostedArrayOutput) ToIntegrationRuntimeSelfHostedArrayOutput() IntegrationRuntimeSelfHostedArrayOutput { return o } func (o IntegrationRuntimeSelfHostedArrayOutput) ToIntegrationRuntimeSelfHostedArrayOutputWithContext(ctx context.Context) IntegrationRuntimeSelfHostedArrayOutput { return o } func (o IntegrationRuntimeSelfHostedArrayOutput) Index(i pulumi.IntInput) IntegrationRuntimeSelfHostedOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *IntegrationRuntimeSelfHosted { return vs[0].([]*IntegrationRuntimeSelfHosted)[vs[1].(int)] }).(IntegrationRuntimeSelfHostedOutput) } type IntegrationRuntimeSelfHostedMapOutput struct{ *pulumi.OutputState } func (IntegrationRuntimeSelfHostedMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*IntegrationRuntimeSelfHosted)(nil)).Elem() } func (o IntegrationRuntimeSelfHostedMapOutput) ToIntegrationRuntimeSelfHostedMapOutput() IntegrationRuntimeSelfHostedMapOutput { return o } func (o IntegrationRuntimeSelfHostedMapOutput) ToIntegrationRuntimeSelfHostedMapOutputWithContext(ctx context.Context) IntegrationRuntimeSelfHostedMapOutput { return o } func (o IntegrationRuntimeSelfHostedMapOutput) MapIndex(k pulumi.StringInput) IntegrationRuntimeSelfHostedOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *IntegrationRuntimeSelfHosted { return vs[0].(map[string]*IntegrationRuntimeSelfHosted)[vs[1].(string)] }).(IntegrationRuntimeSelfHostedOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*IntegrationRuntimeSelfHostedInput)(nil)).Elem(), &IntegrationRuntimeSelfHosted{}) pulumi.RegisterInputType(reflect.TypeOf((*IntegrationRuntimeSelfHostedArrayInput)(nil)).Elem(), IntegrationRuntimeSelfHostedArray{}) pulumi.RegisterInputType(reflect.TypeOf((*IntegrationRuntimeSelfHostedMapInput)(nil)).Elem(), IntegrationRuntimeSelfHostedMap{}) pulumi.RegisterOutputType(IntegrationRuntimeSelfHostedOutput{}) pulumi.RegisterOutputType(IntegrationRuntimeSelfHostedArrayOutput{}) pulumi.RegisterOutputType(IntegrationRuntimeSelfHostedMapOutput{}) }
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/datafactory/linkedServiceAzureFileStorage.go
sdk/go/azure/datafactory/linkedServiceAzureFileStorage.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 datafactory import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a Linked Service (connection) between a SFTP Server and Azure Data Factory. // // ## 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/datafactory" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/storage" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { // exampleResourceGroup, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{ // Name: pulumi.String("example-resources"), // Location: pulumi.String("West Europe"), // }) // if err != nil { // return err // } // example := storage.LookupAccountOutput(ctx, storage.GetAccountOutputArgs{ // Name: pulumi.String("storageaccountname"), // ResourceGroupName: exampleResourceGroup.Name, // }, nil) // exampleFactory, err := datafactory.NewFactory(ctx, "example", &datafactory.FactoryArgs{ // Name: pulumi.String("example"), // Location: exampleResourceGroup.Location, // ResourceGroupName: exampleResourceGroup.Name, // }) // if err != nil { // return err // } // _, err = datafactory.NewLinkedServiceAzureFileStorage(ctx, "example", &datafactory.LinkedServiceAzureFileStorageArgs{ // Name: pulumi.String("example"), // DataFactoryId: exampleFactory.ID(), // ConnectionString: pulumi.String(example.ApplyT(func(example storage.GetAccountResult) (*string, error) { // return &example.PrimaryConnectionString, nil // }).(pulumi.StringPtrOutput)), // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## Import // // Data Factory Linked Service's can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:datafactory/linkedServiceAzureFileStorage:LinkedServiceAzureFileStorage example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example/providers/Microsoft.DataFactory/factories/example/linkedservices/example // ``` type LinkedServiceAzureFileStorage struct { pulumi.CustomResourceState // A map of additional properties to associate with the Data Factory Linked Service. // // The following supported arguments are specific to Azure File Storage Linked Service: AdditionalProperties pulumi.StringMapOutput `pulumi:"additionalProperties"` // List of tags that can be used for describing the Data Factory Linked Service. Annotations pulumi.StringArrayOutput `pulumi:"annotations"` // The connection string. ConnectionString pulumi.StringOutput `pulumi:"connectionString"` // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId pulumi.StringOutput `pulumi:"dataFactoryId"` // The description for the Data Factory Linked Service. Description pulumi.StringPtrOutput `pulumi:"description"` // The name of the file share. FileShare pulumi.StringPtrOutput `pulumi:"fileShare"` // The Host name of the server. Host pulumi.StringPtrOutput `pulumi:"host"` // The integration runtime reference to associate with the Data Factory Linked Service. IntegrationRuntimeName pulumi.StringPtrOutput `pulumi:"integrationRuntimeName"` // A `keyVaultPassword` block as defined below. Use this argument to store Azure File Storage password in an existing Key Vault. It needs an existing Key Vault Data Factory Linked Service. KeyVaultPassword LinkedServiceAzureFileStorageKeyVaultPasswordPtrOutput `pulumi:"keyVaultPassword"` // Specifies the name of the Data Factory Linked Service. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringOutput `pulumi:"name"` // A map of parameters to associate with the Data Factory Linked Service. Parameters pulumi.StringMapOutput `pulumi:"parameters"` // The password to log in the server. Password pulumi.StringPtrOutput `pulumi:"password"` // The user ID to log in the server. UserId pulumi.StringPtrOutput `pulumi:"userId"` } // NewLinkedServiceAzureFileStorage registers a new resource with the given unique name, arguments, and options. func NewLinkedServiceAzureFileStorage(ctx *pulumi.Context, name string, args *LinkedServiceAzureFileStorageArgs, opts ...pulumi.ResourceOption) (*LinkedServiceAzureFileStorage, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.ConnectionString == nil { return nil, errors.New("invalid value for required argument 'ConnectionString'") } if args.DataFactoryId == nil { return nil, errors.New("invalid value for required argument 'DataFactoryId'") } if args.ConnectionString != nil { args.ConnectionString = pulumi.ToSecret(args.ConnectionString).(pulumi.StringInput) } if args.Password != nil { args.Password = pulumi.ToSecret(args.Password).(pulumi.StringPtrInput) } secrets := pulumi.AdditionalSecretOutputs([]string{ "connectionString", "password", }) opts = append(opts, secrets) opts = internal.PkgResourceDefaultOpts(opts) var resource LinkedServiceAzureFileStorage err := ctx.RegisterResource("azure:datafactory/linkedServiceAzureFileStorage:LinkedServiceAzureFileStorage", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetLinkedServiceAzureFileStorage gets an existing LinkedServiceAzureFileStorage 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 GetLinkedServiceAzureFileStorage(ctx *pulumi.Context, name string, id pulumi.IDInput, state *LinkedServiceAzureFileStorageState, opts ...pulumi.ResourceOption) (*LinkedServiceAzureFileStorage, error) { var resource LinkedServiceAzureFileStorage err := ctx.ReadResource("azure:datafactory/linkedServiceAzureFileStorage:LinkedServiceAzureFileStorage", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering LinkedServiceAzureFileStorage resources. type linkedServiceAzureFileStorageState struct { // A map of additional properties to associate with the Data Factory Linked Service. // // The following supported arguments are specific to Azure File Storage Linked Service: AdditionalProperties map[string]string `pulumi:"additionalProperties"` // List of tags that can be used for describing the Data Factory Linked Service. Annotations []string `pulumi:"annotations"` // The connection string. ConnectionString *string `pulumi:"connectionString"` // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId *string `pulumi:"dataFactoryId"` // The description for the Data Factory Linked Service. Description *string `pulumi:"description"` // The name of the file share. FileShare *string `pulumi:"fileShare"` // The Host name of the server. Host *string `pulumi:"host"` // The integration runtime reference to associate with the Data Factory Linked Service. IntegrationRuntimeName *string `pulumi:"integrationRuntimeName"` // A `keyVaultPassword` block as defined below. Use this argument to store Azure File Storage password in an existing Key Vault. It needs an existing Key Vault Data Factory Linked Service. KeyVaultPassword *LinkedServiceAzureFileStorageKeyVaultPassword `pulumi:"keyVaultPassword"` // Specifies the name of the Data Factory Linked Service. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name *string `pulumi:"name"` // A map of parameters to associate with the Data Factory Linked Service. Parameters map[string]string `pulumi:"parameters"` // The password to log in the server. Password *string `pulumi:"password"` // The user ID to log in the server. UserId *string `pulumi:"userId"` } type LinkedServiceAzureFileStorageState struct { // A map of additional properties to associate with the Data Factory Linked Service. // // The following supported arguments are specific to Azure File Storage Linked Service: AdditionalProperties pulumi.StringMapInput // List of tags that can be used for describing the Data Factory Linked Service. Annotations pulumi.StringArrayInput // The connection string. ConnectionString pulumi.StringPtrInput // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId pulumi.StringPtrInput // The description for the Data Factory Linked Service. Description pulumi.StringPtrInput // The name of the file share. FileShare pulumi.StringPtrInput // The Host name of the server. Host pulumi.StringPtrInput // The integration runtime reference to associate with the Data Factory Linked Service. IntegrationRuntimeName pulumi.StringPtrInput // A `keyVaultPassword` block as defined below. Use this argument to store Azure File Storage password in an existing Key Vault. It needs an existing Key Vault Data Factory Linked Service. KeyVaultPassword LinkedServiceAzureFileStorageKeyVaultPasswordPtrInput // Specifies the name of the Data Factory Linked Service. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringPtrInput // A map of parameters to associate with the Data Factory Linked Service. Parameters pulumi.StringMapInput // The password to log in the server. Password pulumi.StringPtrInput // The user ID to log in the server. UserId pulumi.StringPtrInput } func (LinkedServiceAzureFileStorageState) ElementType() reflect.Type { return reflect.TypeOf((*linkedServiceAzureFileStorageState)(nil)).Elem() } type linkedServiceAzureFileStorageArgs struct { // A map of additional properties to associate with the Data Factory Linked Service. // // The following supported arguments are specific to Azure File Storage Linked Service: AdditionalProperties map[string]string `pulumi:"additionalProperties"` // List of tags that can be used for describing the Data Factory Linked Service. Annotations []string `pulumi:"annotations"` // The connection string. ConnectionString string `pulumi:"connectionString"` // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId string `pulumi:"dataFactoryId"` // The description for the Data Factory Linked Service. Description *string `pulumi:"description"` // The name of the file share. FileShare *string `pulumi:"fileShare"` // The Host name of the server. Host *string `pulumi:"host"` // The integration runtime reference to associate with the Data Factory Linked Service. IntegrationRuntimeName *string `pulumi:"integrationRuntimeName"` // A `keyVaultPassword` block as defined below. Use this argument to store Azure File Storage password in an existing Key Vault. It needs an existing Key Vault Data Factory Linked Service. KeyVaultPassword *LinkedServiceAzureFileStorageKeyVaultPassword `pulumi:"keyVaultPassword"` // Specifies the name of the Data Factory Linked Service. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name *string `pulumi:"name"` // A map of parameters to associate with the Data Factory Linked Service. Parameters map[string]string `pulumi:"parameters"` // The password to log in the server. Password *string `pulumi:"password"` // The user ID to log in the server. UserId *string `pulumi:"userId"` } // The set of arguments for constructing a LinkedServiceAzureFileStorage resource. type LinkedServiceAzureFileStorageArgs struct { // A map of additional properties to associate with the Data Factory Linked Service. // // The following supported arguments are specific to Azure File Storage Linked Service: AdditionalProperties pulumi.StringMapInput // List of tags that can be used for describing the Data Factory Linked Service. Annotations pulumi.StringArrayInput // The connection string. ConnectionString pulumi.StringInput // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId pulumi.StringInput // The description for the Data Factory Linked Service. Description pulumi.StringPtrInput // The name of the file share. FileShare pulumi.StringPtrInput // The Host name of the server. Host pulumi.StringPtrInput // The integration runtime reference to associate with the Data Factory Linked Service. IntegrationRuntimeName pulumi.StringPtrInput // A `keyVaultPassword` block as defined below. Use this argument to store Azure File Storage password in an existing Key Vault. It needs an existing Key Vault Data Factory Linked Service. KeyVaultPassword LinkedServiceAzureFileStorageKeyVaultPasswordPtrInput // Specifies the name of the Data Factory Linked Service. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringPtrInput // A map of parameters to associate with the Data Factory Linked Service. Parameters pulumi.StringMapInput // The password to log in the server. Password pulumi.StringPtrInput // The user ID to log in the server. UserId pulumi.StringPtrInput } func (LinkedServiceAzureFileStorageArgs) ElementType() reflect.Type { return reflect.TypeOf((*linkedServiceAzureFileStorageArgs)(nil)).Elem() } type LinkedServiceAzureFileStorageInput interface { pulumi.Input ToLinkedServiceAzureFileStorageOutput() LinkedServiceAzureFileStorageOutput ToLinkedServiceAzureFileStorageOutputWithContext(ctx context.Context) LinkedServiceAzureFileStorageOutput } func (*LinkedServiceAzureFileStorage) ElementType() reflect.Type { return reflect.TypeOf((**LinkedServiceAzureFileStorage)(nil)).Elem() } func (i *LinkedServiceAzureFileStorage) ToLinkedServiceAzureFileStorageOutput() LinkedServiceAzureFileStorageOutput { return i.ToLinkedServiceAzureFileStorageOutputWithContext(context.Background()) } func (i *LinkedServiceAzureFileStorage) ToLinkedServiceAzureFileStorageOutputWithContext(ctx context.Context) LinkedServiceAzureFileStorageOutput { return pulumi.ToOutputWithContext(ctx, i).(LinkedServiceAzureFileStorageOutput) } // LinkedServiceAzureFileStorageArrayInput is an input type that accepts LinkedServiceAzureFileStorageArray and LinkedServiceAzureFileStorageArrayOutput values. // You can construct a concrete instance of `LinkedServiceAzureFileStorageArrayInput` via: // // LinkedServiceAzureFileStorageArray{ LinkedServiceAzureFileStorageArgs{...} } type LinkedServiceAzureFileStorageArrayInput interface { pulumi.Input ToLinkedServiceAzureFileStorageArrayOutput() LinkedServiceAzureFileStorageArrayOutput ToLinkedServiceAzureFileStorageArrayOutputWithContext(context.Context) LinkedServiceAzureFileStorageArrayOutput } type LinkedServiceAzureFileStorageArray []LinkedServiceAzureFileStorageInput func (LinkedServiceAzureFileStorageArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*LinkedServiceAzureFileStorage)(nil)).Elem() } func (i LinkedServiceAzureFileStorageArray) ToLinkedServiceAzureFileStorageArrayOutput() LinkedServiceAzureFileStorageArrayOutput { return i.ToLinkedServiceAzureFileStorageArrayOutputWithContext(context.Background()) } func (i LinkedServiceAzureFileStorageArray) ToLinkedServiceAzureFileStorageArrayOutputWithContext(ctx context.Context) LinkedServiceAzureFileStorageArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(LinkedServiceAzureFileStorageArrayOutput) } // LinkedServiceAzureFileStorageMapInput is an input type that accepts LinkedServiceAzureFileStorageMap and LinkedServiceAzureFileStorageMapOutput values. // You can construct a concrete instance of `LinkedServiceAzureFileStorageMapInput` via: // // LinkedServiceAzureFileStorageMap{ "key": LinkedServiceAzureFileStorageArgs{...} } type LinkedServiceAzureFileStorageMapInput interface { pulumi.Input ToLinkedServiceAzureFileStorageMapOutput() LinkedServiceAzureFileStorageMapOutput ToLinkedServiceAzureFileStorageMapOutputWithContext(context.Context) LinkedServiceAzureFileStorageMapOutput } type LinkedServiceAzureFileStorageMap map[string]LinkedServiceAzureFileStorageInput func (LinkedServiceAzureFileStorageMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*LinkedServiceAzureFileStorage)(nil)).Elem() } func (i LinkedServiceAzureFileStorageMap) ToLinkedServiceAzureFileStorageMapOutput() LinkedServiceAzureFileStorageMapOutput { return i.ToLinkedServiceAzureFileStorageMapOutputWithContext(context.Background()) } func (i LinkedServiceAzureFileStorageMap) ToLinkedServiceAzureFileStorageMapOutputWithContext(ctx context.Context) LinkedServiceAzureFileStorageMapOutput { return pulumi.ToOutputWithContext(ctx, i).(LinkedServiceAzureFileStorageMapOutput) } type LinkedServiceAzureFileStorageOutput struct{ *pulumi.OutputState } func (LinkedServiceAzureFileStorageOutput) ElementType() reflect.Type { return reflect.TypeOf((**LinkedServiceAzureFileStorage)(nil)).Elem() } func (o LinkedServiceAzureFileStorageOutput) ToLinkedServiceAzureFileStorageOutput() LinkedServiceAzureFileStorageOutput { return o } func (o LinkedServiceAzureFileStorageOutput) ToLinkedServiceAzureFileStorageOutputWithContext(ctx context.Context) LinkedServiceAzureFileStorageOutput { return o } // A map of additional properties to associate with the Data Factory Linked Service. // // The following supported arguments are specific to Azure File Storage Linked Service: func (o LinkedServiceAzureFileStorageOutput) AdditionalProperties() pulumi.StringMapOutput { return o.ApplyT(func(v *LinkedServiceAzureFileStorage) pulumi.StringMapOutput { return v.AdditionalProperties }).(pulumi.StringMapOutput) } // List of tags that can be used for describing the Data Factory Linked Service. func (o LinkedServiceAzureFileStorageOutput) Annotations() pulumi.StringArrayOutput { return o.ApplyT(func(v *LinkedServiceAzureFileStorage) pulumi.StringArrayOutput { return v.Annotations }).(pulumi.StringArrayOutput) } // The connection string. func (o LinkedServiceAzureFileStorageOutput) ConnectionString() pulumi.StringOutput { return o.ApplyT(func(v *LinkedServiceAzureFileStorage) pulumi.StringOutput { return v.ConnectionString }).(pulumi.StringOutput) } // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. func (o LinkedServiceAzureFileStorageOutput) DataFactoryId() pulumi.StringOutput { return o.ApplyT(func(v *LinkedServiceAzureFileStorage) pulumi.StringOutput { return v.DataFactoryId }).(pulumi.StringOutput) } // The description for the Data Factory Linked Service. func (o LinkedServiceAzureFileStorageOutput) Description() pulumi.StringPtrOutput { return o.ApplyT(func(v *LinkedServiceAzureFileStorage) pulumi.StringPtrOutput { return v.Description }).(pulumi.StringPtrOutput) } // The name of the file share. func (o LinkedServiceAzureFileStorageOutput) FileShare() pulumi.StringPtrOutput { return o.ApplyT(func(v *LinkedServiceAzureFileStorage) pulumi.StringPtrOutput { return v.FileShare }).(pulumi.StringPtrOutput) } // The Host name of the server. func (o LinkedServiceAzureFileStorageOutput) Host() pulumi.StringPtrOutput { return o.ApplyT(func(v *LinkedServiceAzureFileStorage) pulumi.StringPtrOutput { return v.Host }).(pulumi.StringPtrOutput) } // The integration runtime reference to associate with the Data Factory Linked Service. func (o LinkedServiceAzureFileStorageOutput) IntegrationRuntimeName() pulumi.StringPtrOutput { return o.ApplyT(func(v *LinkedServiceAzureFileStorage) pulumi.StringPtrOutput { return v.IntegrationRuntimeName }).(pulumi.StringPtrOutput) } // A `keyVaultPassword` block as defined below. Use this argument to store Azure File Storage password in an existing Key Vault. It needs an existing Key Vault Data Factory Linked Service. func (o LinkedServiceAzureFileStorageOutput) KeyVaultPassword() LinkedServiceAzureFileStorageKeyVaultPasswordPtrOutput { return o.ApplyT(func(v *LinkedServiceAzureFileStorage) LinkedServiceAzureFileStorageKeyVaultPasswordPtrOutput { return v.KeyVaultPassword }).(LinkedServiceAzureFileStorageKeyVaultPasswordPtrOutput) } // Specifies the name of the Data Factory Linked Service. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. func (o LinkedServiceAzureFileStorageOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *LinkedServiceAzureFileStorage) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // A map of parameters to associate with the Data Factory Linked Service. func (o LinkedServiceAzureFileStorageOutput) Parameters() pulumi.StringMapOutput { return o.ApplyT(func(v *LinkedServiceAzureFileStorage) pulumi.StringMapOutput { return v.Parameters }).(pulumi.StringMapOutput) } // The password to log in the server. func (o LinkedServiceAzureFileStorageOutput) Password() pulumi.StringPtrOutput { return o.ApplyT(func(v *LinkedServiceAzureFileStorage) pulumi.StringPtrOutput { return v.Password }).(pulumi.StringPtrOutput) } // The user ID to log in the server. func (o LinkedServiceAzureFileStorageOutput) UserId() pulumi.StringPtrOutput { return o.ApplyT(func(v *LinkedServiceAzureFileStorage) pulumi.StringPtrOutput { return v.UserId }).(pulumi.StringPtrOutput) } type LinkedServiceAzureFileStorageArrayOutput struct{ *pulumi.OutputState } func (LinkedServiceAzureFileStorageArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*LinkedServiceAzureFileStorage)(nil)).Elem() } func (o LinkedServiceAzureFileStorageArrayOutput) ToLinkedServiceAzureFileStorageArrayOutput() LinkedServiceAzureFileStorageArrayOutput { return o } func (o LinkedServiceAzureFileStorageArrayOutput) ToLinkedServiceAzureFileStorageArrayOutputWithContext(ctx context.Context) LinkedServiceAzureFileStorageArrayOutput { return o } func (o LinkedServiceAzureFileStorageArrayOutput) Index(i pulumi.IntInput) LinkedServiceAzureFileStorageOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *LinkedServiceAzureFileStorage { return vs[0].([]*LinkedServiceAzureFileStorage)[vs[1].(int)] }).(LinkedServiceAzureFileStorageOutput) } type LinkedServiceAzureFileStorageMapOutput struct{ *pulumi.OutputState } func (LinkedServiceAzureFileStorageMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*LinkedServiceAzureFileStorage)(nil)).Elem() } func (o LinkedServiceAzureFileStorageMapOutput) ToLinkedServiceAzureFileStorageMapOutput() LinkedServiceAzureFileStorageMapOutput { return o } func (o LinkedServiceAzureFileStorageMapOutput) ToLinkedServiceAzureFileStorageMapOutputWithContext(ctx context.Context) LinkedServiceAzureFileStorageMapOutput { return o } func (o LinkedServiceAzureFileStorageMapOutput) MapIndex(k pulumi.StringInput) LinkedServiceAzureFileStorageOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *LinkedServiceAzureFileStorage { return vs[0].(map[string]*LinkedServiceAzureFileStorage)[vs[1].(string)] }).(LinkedServiceAzureFileStorageOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*LinkedServiceAzureFileStorageInput)(nil)).Elem(), &LinkedServiceAzureFileStorage{}) pulumi.RegisterInputType(reflect.TypeOf((*LinkedServiceAzureFileStorageArrayInput)(nil)).Elem(), LinkedServiceAzureFileStorageArray{}) pulumi.RegisterInputType(reflect.TypeOf((*LinkedServiceAzureFileStorageMapInput)(nil)).Elem(), LinkedServiceAzureFileStorageMap{}) pulumi.RegisterOutputType(LinkedServiceAzureFileStorageOutput{}) pulumi.RegisterOutputType(LinkedServiceAzureFileStorageArrayOutput{}) pulumi.RegisterOutputType(LinkedServiceAzureFileStorageMapOutput{}) }
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/datafactory/getTriggerSchedule.go
sdk/go/azure/datafactory/getTriggerSchedule.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 datafactory import ( "context" "reflect" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Use this data source to access information about a trigger schedule in Azure Data Factory. // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/datafactory" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { // example, err := datafactory.LookupTriggerSchedule(ctx, &datafactory.LookupTriggerScheduleArgs{ // Name: "example_trigger", // DataFactoryId: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.DataFactory/factories/datafactory1", // }, nil) // if err != nil { // return err // } // ctx.Export("id", example.Id) // return nil // }) // } // // ``` func LookupTriggerSchedule(ctx *pulumi.Context, args *LookupTriggerScheduleArgs, opts ...pulumi.InvokeOption) (*LookupTriggerScheduleResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupTriggerScheduleResult err := ctx.Invoke("azure:datafactory/getTriggerSchedule:getTriggerSchedule", args, &rv, opts...) if err != nil { return nil, err } return &rv, nil } // A collection of arguments for invoking getTriggerSchedule. type LookupTriggerScheduleArgs struct { // The ID of the Azure Data Factory to fetch trigger schedule from. DataFactoryId string `pulumi:"dataFactoryId"` // The name of the trigger schedule. Name string `pulumi:"name"` } // A collection of values returned by getTriggerSchedule. type LookupTriggerScheduleResult struct { // Specifies if the Data Factory Schedule Trigger is activated. Activated bool `pulumi:"activated"` // List of tags that can be used for describing the Data Factory Schedule Trigger. Annotations []string `pulumi:"annotations"` DataFactoryId string `pulumi:"dataFactoryId"` // The Schedule Trigger's description. Description string `pulumi:"description"` // The time the Schedule Trigger should end. The time will be represented in UTC. EndTime string `pulumi:"endTime"` // The trigger frequency. Frequency string `pulumi:"frequency"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` // The interval for how often the trigger occurs. Interval int `pulumi:"interval"` Name string `pulumi:"name"` // The Data Factory Pipeline name that the trigger will act on. PipelineName string `pulumi:"pipelineName"` // A `schedule` block as described below, which further specifies the recurrence schedule for the trigger. Schedules []GetTriggerScheduleSchedule `pulumi:"schedules"` // The time the Schedule Trigger will start. The time will be represented in UTC. StartTime string `pulumi:"startTime"` // The timezone of the start/end time. TimeZone string `pulumi:"timeZone"` } func LookupTriggerScheduleOutput(ctx *pulumi.Context, args LookupTriggerScheduleOutputArgs, opts ...pulumi.InvokeOption) LookupTriggerScheduleResultOutput { return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupTriggerScheduleResultOutput, error) { args := v.(LookupTriggerScheduleArgs) options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} return ctx.InvokeOutput("azure:datafactory/getTriggerSchedule:getTriggerSchedule", args, LookupTriggerScheduleResultOutput{}, options).(LookupTriggerScheduleResultOutput), nil }).(LookupTriggerScheduleResultOutput) } // A collection of arguments for invoking getTriggerSchedule. type LookupTriggerScheduleOutputArgs struct { // The ID of the Azure Data Factory to fetch trigger schedule from. DataFactoryId pulumi.StringInput `pulumi:"dataFactoryId"` // The name of the trigger schedule. Name pulumi.StringInput `pulumi:"name"` } func (LookupTriggerScheduleOutputArgs) ElementType() reflect.Type { return reflect.TypeOf((*LookupTriggerScheduleArgs)(nil)).Elem() } // A collection of values returned by getTriggerSchedule. type LookupTriggerScheduleResultOutput struct{ *pulumi.OutputState } func (LookupTriggerScheduleResultOutput) ElementType() reflect.Type { return reflect.TypeOf((*LookupTriggerScheduleResult)(nil)).Elem() } func (o LookupTriggerScheduleResultOutput) ToLookupTriggerScheduleResultOutput() LookupTriggerScheduleResultOutput { return o } func (o LookupTriggerScheduleResultOutput) ToLookupTriggerScheduleResultOutputWithContext(ctx context.Context) LookupTriggerScheduleResultOutput { return o } // Specifies if the Data Factory Schedule Trigger is activated. func (o LookupTriggerScheduleResultOutput) Activated() pulumi.BoolOutput { return o.ApplyT(func(v LookupTriggerScheduleResult) bool { return v.Activated }).(pulumi.BoolOutput) } // List of tags that can be used for describing the Data Factory Schedule Trigger. func (o LookupTriggerScheduleResultOutput) Annotations() pulumi.StringArrayOutput { return o.ApplyT(func(v LookupTriggerScheduleResult) []string { return v.Annotations }).(pulumi.StringArrayOutput) } func (o LookupTriggerScheduleResultOutput) DataFactoryId() pulumi.StringOutput { return o.ApplyT(func(v LookupTriggerScheduleResult) string { return v.DataFactoryId }).(pulumi.StringOutput) } // The Schedule Trigger's description. func (o LookupTriggerScheduleResultOutput) Description() pulumi.StringOutput { return o.ApplyT(func(v LookupTriggerScheduleResult) string { return v.Description }).(pulumi.StringOutput) } // The time the Schedule Trigger should end. The time will be represented in UTC. func (o LookupTriggerScheduleResultOutput) EndTime() pulumi.StringOutput { return o.ApplyT(func(v LookupTriggerScheduleResult) string { return v.EndTime }).(pulumi.StringOutput) } // The trigger frequency. func (o LookupTriggerScheduleResultOutput) Frequency() pulumi.StringOutput { return o.ApplyT(func(v LookupTriggerScheduleResult) string { return v.Frequency }).(pulumi.StringOutput) } // The provider-assigned unique ID for this managed resource. func (o LookupTriggerScheduleResultOutput) Id() pulumi.StringOutput { return o.ApplyT(func(v LookupTriggerScheduleResult) string { return v.Id }).(pulumi.StringOutput) } // The interval for how often the trigger occurs. func (o LookupTriggerScheduleResultOutput) Interval() pulumi.IntOutput { return o.ApplyT(func(v LookupTriggerScheduleResult) int { return v.Interval }).(pulumi.IntOutput) } func (o LookupTriggerScheduleResultOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v LookupTriggerScheduleResult) string { return v.Name }).(pulumi.StringOutput) } // The Data Factory Pipeline name that the trigger will act on. func (o LookupTriggerScheduleResultOutput) PipelineName() pulumi.StringOutput { return o.ApplyT(func(v LookupTriggerScheduleResult) string { return v.PipelineName }).(pulumi.StringOutput) } // A `schedule` block as described below, which further specifies the recurrence schedule for the trigger. func (o LookupTriggerScheduleResultOutput) Schedules() GetTriggerScheduleScheduleArrayOutput { return o.ApplyT(func(v LookupTriggerScheduleResult) []GetTriggerScheduleSchedule { return v.Schedules }).(GetTriggerScheduleScheduleArrayOutput) } // The time the Schedule Trigger will start. The time will be represented in UTC. func (o LookupTriggerScheduleResultOutput) StartTime() pulumi.StringOutput { return o.ApplyT(func(v LookupTriggerScheduleResult) string { return v.StartTime }).(pulumi.StringOutput) } // The timezone of the start/end time. func (o LookupTriggerScheduleResultOutput) TimeZone() pulumi.StringOutput { return o.ApplyT(func(v LookupTriggerScheduleResult) string { return v.TimeZone }).(pulumi.StringOutput) } func init() { pulumi.RegisterOutputType(LookupTriggerScheduleResultOutput{}) }
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/datafactory/credentialServicePrincipal.go
sdk/go/azure/datafactory/credentialServicePrincipal.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 datafactory import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manage a Data Factory Service Principal credential resource. These resources are used by Data Factory to access data sources. // // ## 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/datafactory" // "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 { // 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("westeurope"), // }) // if err != nil { // return err // } // exampleFactory, err := datafactory.NewFactory(ctx, "example", &datafactory.FactoryArgs{ // Name: pulumi.String("example"), // Location: example.Location, // ResourceGroupName: example.Name, // }) // if err != nil { // return err // } // exampleKeyVault, err := keyvault.NewKeyVault(ctx, "example", &keyvault.KeyVaultArgs{ // Name: pulumi.String("example"), // Location: example.Location, // ResourceGroupName: example.Name, // TenantId: pulumi.String(current.TenantId), // SkuName: pulumi.String("premium"), // SoftDeleteRetentionDays: pulumi.Int(7), // AccessPolicies: keyvault.KeyVaultAccessPolicyArray{ // &keyvault.KeyVaultAccessPolicyArgs{ // TenantId: pulumi.String(current.TenantId), // ObjectId: pulumi.String(current.ObjectId), // KeyPermissions: pulumi.StringArray{ // pulumi.String("Create"), // pulumi.String("Get"), // }, // SecretPermissions: pulumi.StringArray{ // pulumi.String("Set"), // pulumi.String("Get"), // pulumi.String("Delete"), // pulumi.String("Purge"), // pulumi.String("Recover"), // }, // }, // }, // }) // if err != nil { // return err // } // exampleSecret, err := keyvault.NewSecret(ctx, "example", &keyvault.SecretArgs{ // Name: pulumi.String("example"), // Value: pulumi.String("example-secret"), // KeyVaultId: exampleKeyVault.ID(), // }) // if err != nil { // return err // } // exampleLinkedServiceKeyVault, err := datafactory.NewLinkedServiceKeyVault(ctx, "example", &datafactory.LinkedServiceKeyVaultArgs{ // Name: pulumi.String("example"), // DataFactoryId: exampleFactory.ID(), // KeyVaultId: exampleKeyVault.ID(), // }) // if err != nil { // return err // } // _, err = datafactory.NewCredentialServicePrincipal(ctx, "example", &datafactory.CredentialServicePrincipalArgs{ // Name: pulumi.String("example"), // Description: pulumi.String("example description"), // DataFactoryId: exampleFactory.ID(), // TenantId: pulumi.String(current.TenantId), // ServicePrincipalId: pulumi.String(current.ClientId), // ServicePrincipalKey: &datafactory.CredentialServicePrincipalServicePrincipalKeyArgs{ // LinkedServiceName: exampleLinkedServiceKeyVault.Name, // SecretName: exampleSecret.Name, // SecretVersion: exampleSecret.Version, // }, // Annotations: pulumi.StringArray{ // pulumi.String("1"), // pulumi.String("2"), // }, // }) // 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.DataFactory` - 2018-06-01 // // ## Import // // Data Factory Credentials can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:datafactory/credentialServicePrincipal:CredentialServicePrincipal example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example-resources/providers/Microsoft.DataFactory/factories/example/credentials/credential1 // ``` type CredentialServicePrincipal struct { pulumi.CustomResourceState // List of tags that can be used for describing the Data Factory Credential. Annotations pulumi.StringArrayOutput `pulumi:"annotations"` // The Data Factory ID in which to associate the Credential with. Changing this forces a new resource. DataFactoryId pulumi.StringOutput `pulumi:"dataFactoryId"` // The description for the Data Factory Credential. Description pulumi.StringPtrOutput `pulumi:"description"` // Specifies the name of the Credential. Changing this forces a new resource to be created. Name pulumi.StringOutput `pulumi:"name"` // The Client ID of the Service Principal. ServicePrincipalId pulumi.StringOutput `pulumi:"servicePrincipalId"` // A `servicePrincipalKey` block as defined below. ServicePrincipalKey CredentialServicePrincipalServicePrincipalKeyPtrOutput `pulumi:"servicePrincipalKey"` // The Tenant ID of the Service Principal. TenantId pulumi.StringOutput `pulumi:"tenantId"` } // NewCredentialServicePrincipal registers a new resource with the given unique name, arguments, and options. func NewCredentialServicePrincipal(ctx *pulumi.Context, name string, args *CredentialServicePrincipalArgs, opts ...pulumi.ResourceOption) (*CredentialServicePrincipal, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.DataFactoryId == nil { return nil, errors.New("invalid value for required argument 'DataFactoryId'") } if args.ServicePrincipalId == nil { return nil, errors.New("invalid value for required argument 'ServicePrincipalId'") } if args.TenantId == nil { return nil, errors.New("invalid value for required argument 'TenantId'") } opts = internal.PkgResourceDefaultOpts(opts) var resource CredentialServicePrincipal err := ctx.RegisterResource("azure:datafactory/credentialServicePrincipal:CredentialServicePrincipal", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetCredentialServicePrincipal gets an existing CredentialServicePrincipal 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 GetCredentialServicePrincipal(ctx *pulumi.Context, name string, id pulumi.IDInput, state *CredentialServicePrincipalState, opts ...pulumi.ResourceOption) (*CredentialServicePrincipal, error) { var resource CredentialServicePrincipal err := ctx.ReadResource("azure:datafactory/credentialServicePrincipal:CredentialServicePrincipal", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering CredentialServicePrincipal resources. type credentialServicePrincipalState struct { // List of tags that can be used for describing the Data Factory Credential. Annotations []string `pulumi:"annotations"` // The Data Factory ID in which to associate the Credential with. Changing this forces a new resource. DataFactoryId *string `pulumi:"dataFactoryId"` // The description for the Data Factory Credential. Description *string `pulumi:"description"` // Specifies the name of the Credential. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // The Client ID of the Service Principal. ServicePrincipalId *string `pulumi:"servicePrincipalId"` // A `servicePrincipalKey` block as defined below. ServicePrincipalKey *CredentialServicePrincipalServicePrincipalKey `pulumi:"servicePrincipalKey"` // The Tenant ID of the Service Principal. TenantId *string `pulumi:"tenantId"` } type CredentialServicePrincipalState struct { // List of tags that can be used for describing the Data Factory Credential. Annotations pulumi.StringArrayInput // The Data Factory ID in which to associate the Credential with. Changing this forces a new resource. DataFactoryId pulumi.StringPtrInput // The description for the Data Factory Credential. Description pulumi.StringPtrInput // Specifies the name of the Credential. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // The Client ID of the Service Principal. ServicePrincipalId pulumi.StringPtrInput // A `servicePrincipalKey` block as defined below. ServicePrincipalKey CredentialServicePrincipalServicePrincipalKeyPtrInput // The Tenant ID of the Service Principal. TenantId pulumi.StringPtrInput } func (CredentialServicePrincipalState) ElementType() reflect.Type { return reflect.TypeOf((*credentialServicePrincipalState)(nil)).Elem() } type credentialServicePrincipalArgs struct { // List of tags that can be used for describing the Data Factory Credential. Annotations []string `pulumi:"annotations"` // The Data Factory ID in which to associate the Credential with. Changing this forces a new resource. DataFactoryId string `pulumi:"dataFactoryId"` // The description for the Data Factory Credential. Description *string `pulumi:"description"` // Specifies the name of the Credential. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // The Client ID of the Service Principal. ServicePrincipalId string `pulumi:"servicePrincipalId"` // A `servicePrincipalKey` block as defined below. ServicePrincipalKey *CredentialServicePrincipalServicePrincipalKey `pulumi:"servicePrincipalKey"` // The Tenant ID of the Service Principal. TenantId string `pulumi:"tenantId"` } // The set of arguments for constructing a CredentialServicePrincipal resource. type CredentialServicePrincipalArgs struct { // List of tags that can be used for describing the Data Factory Credential. Annotations pulumi.StringArrayInput // The Data Factory ID in which to associate the Credential with. Changing this forces a new resource. DataFactoryId pulumi.StringInput // The description for the Data Factory Credential. Description pulumi.StringPtrInput // Specifies the name of the Credential. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // The Client ID of the Service Principal. ServicePrincipalId pulumi.StringInput // A `servicePrincipalKey` block as defined below. ServicePrincipalKey CredentialServicePrincipalServicePrincipalKeyPtrInput // The Tenant ID of the Service Principal. TenantId pulumi.StringInput } func (CredentialServicePrincipalArgs) ElementType() reflect.Type { return reflect.TypeOf((*credentialServicePrincipalArgs)(nil)).Elem() } type CredentialServicePrincipalInput interface { pulumi.Input ToCredentialServicePrincipalOutput() CredentialServicePrincipalOutput ToCredentialServicePrincipalOutputWithContext(ctx context.Context) CredentialServicePrincipalOutput } func (*CredentialServicePrincipal) ElementType() reflect.Type { return reflect.TypeOf((**CredentialServicePrincipal)(nil)).Elem() } func (i *CredentialServicePrincipal) ToCredentialServicePrincipalOutput() CredentialServicePrincipalOutput { return i.ToCredentialServicePrincipalOutputWithContext(context.Background()) } func (i *CredentialServicePrincipal) ToCredentialServicePrincipalOutputWithContext(ctx context.Context) CredentialServicePrincipalOutput { return pulumi.ToOutputWithContext(ctx, i).(CredentialServicePrincipalOutput) } // CredentialServicePrincipalArrayInput is an input type that accepts CredentialServicePrincipalArray and CredentialServicePrincipalArrayOutput values. // You can construct a concrete instance of `CredentialServicePrincipalArrayInput` via: // // CredentialServicePrincipalArray{ CredentialServicePrincipalArgs{...} } type CredentialServicePrincipalArrayInput interface { pulumi.Input ToCredentialServicePrincipalArrayOutput() CredentialServicePrincipalArrayOutput ToCredentialServicePrincipalArrayOutputWithContext(context.Context) CredentialServicePrincipalArrayOutput } type CredentialServicePrincipalArray []CredentialServicePrincipalInput func (CredentialServicePrincipalArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*CredentialServicePrincipal)(nil)).Elem() } func (i CredentialServicePrincipalArray) ToCredentialServicePrincipalArrayOutput() CredentialServicePrincipalArrayOutput { return i.ToCredentialServicePrincipalArrayOutputWithContext(context.Background()) } func (i CredentialServicePrincipalArray) ToCredentialServicePrincipalArrayOutputWithContext(ctx context.Context) CredentialServicePrincipalArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(CredentialServicePrincipalArrayOutput) } // CredentialServicePrincipalMapInput is an input type that accepts CredentialServicePrincipalMap and CredentialServicePrincipalMapOutput values. // You can construct a concrete instance of `CredentialServicePrincipalMapInput` via: // // CredentialServicePrincipalMap{ "key": CredentialServicePrincipalArgs{...} } type CredentialServicePrincipalMapInput interface { pulumi.Input ToCredentialServicePrincipalMapOutput() CredentialServicePrincipalMapOutput ToCredentialServicePrincipalMapOutputWithContext(context.Context) CredentialServicePrincipalMapOutput } type CredentialServicePrincipalMap map[string]CredentialServicePrincipalInput func (CredentialServicePrincipalMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*CredentialServicePrincipal)(nil)).Elem() } func (i CredentialServicePrincipalMap) ToCredentialServicePrincipalMapOutput() CredentialServicePrincipalMapOutput { return i.ToCredentialServicePrincipalMapOutputWithContext(context.Background()) } func (i CredentialServicePrincipalMap) ToCredentialServicePrincipalMapOutputWithContext(ctx context.Context) CredentialServicePrincipalMapOutput { return pulumi.ToOutputWithContext(ctx, i).(CredentialServicePrincipalMapOutput) } type CredentialServicePrincipalOutput struct{ *pulumi.OutputState } func (CredentialServicePrincipalOutput) ElementType() reflect.Type { return reflect.TypeOf((**CredentialServicePrincipal)(nil)).Elem() } func (o CredentialServicePrincipalOutput) ToCredentialServicePrincipalOutput() CredentialServicePrincipalOutput { return o } func (o CredentialServicePrincipalOutput) ToCredentialServicePrincipalOutputWithContext(ctx context.Context) CredentialServicePrincipalOutput { return o } // List of tags that can be used for describing the Data Factory Credential. func (o CredentialServicePrincipalOutput) Annotations() pulumi.StringArrayOutput { return o.ApplyT(func(v *CredentialServicePrincipal) pulumi.StringArrayOutput { return v.Annotations }).(pulumi.StringArrayOutput) } // The Data Factory ID in which to associate the Credential with. Changing this forces a new resource. func (o CredentialServicePrincipalOutput) DataFactoryId() pulumi.StringOutput { return o.ApplyT(func(v *CredentialServicePrincipal) pulumi.StringOutput { return v.DataFactoryId }).(pulumi.StringOutput) } // The description for the Data Factory Credential. func (o CredentialServicePrincipalOutput) Description() pulumi.StringPtrOutput { return o.ApplyT(func(v *CredentialServicePrincipal) pulumi.StringPtrOutput { return v.Description }).(pulumi.StringPtrOutput) } // Specifies the name of the Credential. Changing this forces a new resource to be created. func (o CredentialServicePrincipalOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *CredentialServicePrincipal) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // The Client ID of the Service Principal. func (o CredentialServicePrincipalOutput) ServicePrincipalId() pulumi.StringOutput { return o.ApplyT(func(v *CredentialServicePrincipal) pulumi.StringOutput { return v.ServicePrincipalId }).(pulumi.StringOutput) } // A `servicePrincipalKey` block as defined below. func (o CredentialServicePrincipalOutput) ServicePrincipalKey() CredentialServicePrincipalServicePrincipalKeyPtrOutput { return o.ApplyT(func(v *CredentialServicePrincipal) CredentialServicePrincipalServicePrincipalKeyPtrOutput { return v.ServicePrincipalKey }).(CredentialServicePrincipalServicePrincipalKeyPtrOutput) } // The Tenant ID of the Service Principal. func (o CredentialServicePrincipalOutput) TenantId() pulumi.StringOutput { return o.ApplyT(func(v *CredentialServicePrincipal) pulumi.StringOutput { return v.TenantId }).(pulumi.StringOutput) } type CredentialServicePrincipalArrayOutput struct{ *pulumi.OutputState } func (CredentialServicePrincipalArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*CredentialServicePrincipal)(nil)).Elem() } func (o CredentialServicePrincipalArrayOutput) ToCredentialServicePrincipalArrayOutput() CredentialServicePrincipalArrayOutput { return o } func (o CredentialServicePrincipalArrayOutput) ToCredentialServicePrincipalArrayOutputWithContext(ctx context.Context) CredentialServicePrincipalArrayOutput { return o } func (o CredentialServicePrincipalArrayOutput) Index(i pulumi.IntInput) CredentialServicePrincipalOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *CredentialServicePrincipal { return vs[0].([]*CredentialServicePrincipal)[vs[1].(int)] }).(CredentialServicePrincipalOutput) } type CredentialServicePrincipalMapOutput struct{ *pulumi.OutputState } func (CredentialServicePrincipalMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*CredentialServicePrincipal)(nil)).Elem() } func (o CredentialServicePrincipalMapOutput) ToCredentialServicePrincipalMapOutput() CredentialServicePrincipalMapOutput { return o } func (o CredentialServicePrincipalMapOutput) ToCredentialServicePrincipalMapOutputWithContext(ctx context.Context) CredentialServicePrincipalMapOutput { return o } func (o CredentialServicePrincipalMapOutput) MapIndex(k pulumi.StringInput) CredentialServicePrincipalOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *CredentialServicePrincipal { return vs[0].(map[string]*CredentialServicePrincipal)[vs[1].(string)] }).(CredentialServicePrincipalOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*CredentialServicePrincipalInput)(nil)).Elem(), &CredentialServicePrincipal{}) pulumi.RegisterInputType(reflect.TypeOf((*CredentialServicePrincipalArrayInput)(nil)).Elem(), CredentialServicePrincipalArray{}) pulumi.RegisterInputType(reflect.TypeOf((*CredentialServicePrincipalMapInput)(nil)).Elem(), CredentialServicePrincipalMap{}) pulumi.RegisterOutputType(CredentialServicePrincipalOutput{}) pulumi.RegisterOutputType(CredentialServicePrincipalArrayOutput{}) pulumi.RegisterOutputType(CredentialServicePrincipalMapOutput{}) }
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/datafactory/linkedServiceWeb.go
sdk/go/azure/datafactory/linkedServiceWeb.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 datafactory import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a Linked Service (connection) between a Web Server and Azure Data Factory. // // ## 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/datafactory" // "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 // } // exampleFactory, err := datafactory.NewFactory(ctx, "example", &datafactory.FactoryArgs{ // Name: pulumi.String("example"), // Location: example.Location, // ResourceGroupName: example.Name, // }) // if err != nil { // return err // } // _, err = datafactory.NewLinkedServiceWeb(ctx, "example", &datafactory.LinkedServiceWebArgs{ // Name: pulumi.String("example"), // DataFactoryId: exampleFactory.ID(), // AuthenticationType: pulumi.String("Anonymous"), // Url: pulumi.String("http://www.bing.com"), // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## Import // // Data Factory Linked Service's can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:datafactory/linkedServiceWeb:LinkedServiceWeb example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example/providers/Microsoft.DataFactory/factories/example/linkedservices/example // ``` type LinkedServiceWeb struct { pulumi.CustomResourceState // A map of additional properties to associate with the Data Factory Linked Service. // // The following supported arguments are specific to Web Linked Service: AdditionalProperties pulumi.StringMapOutput `pulumi:"additionalProperties"` // List of tags that can be used for describing the Data Factory Linked Service. Annotations pulumi.StringArrayOutput `pulumi:"annotations"` // The type of authentication used to connect to the web table source. Valid options are `Anonymous`, `Basic` and `ClientCertificate`. AuthenticationType pulumi.StringOutput `pulumi:"authenticationType"` // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId pulumi.StringOutput `pulumi:"dataFactoryId"` // The description for the Data Factory Linked Service. Description pulumi.StringPtrOutput `pulumi:"description"` // The integration runtime reference to associate with the Data Factory Linked Service. IntegrationRuntimeName pulumi.StringPtrOutput `pulumi:"integrationRuntimeName"` // Specifies the name of the Data Factory Linked Service. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringOutput `pulumi:"name"` // A map of parameters to associate with the Data Factory Linked Service. Parameters pulumi.StringMapOutput `pulumi:"parameters"` // The password for Basic authentication. Required if `authenticationType` sets to `Basic`. Password pulumi.StringPtrOutput `pulumi:"password"` // The URL of the web service endpoint (e.g. <https://www.microsoft.com>). Url pulumi.StringOutput `pulumi:"url"` // The username for Basic authentication. Required if `authenticationType` sets to `Basic`. Username pulumi.StringPtrOutput `pulumi:"username"` } // NewLinkedServiceWeb registers a new resource with the given unique name, arguments, and options. func NewLinkedServiceWeb(ctx *pulumi.Context, name string, args *LinkedServiceWebArgs, opts ...pulumi.ResourceOption) (*LinkedServiceWeb, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.AuthenticationType == nil { return nil, errors.New("invalid value for required argument 'AuthenticationType'") } if args.DataFactoryId == nil { return nil, errors.New("invalid value for required argument 'DataFactoryId'") } if args.Url == nil { return nil, errors.New("invalid value for required argument 'Url'") } if args.Password != nil { args.Password = pulumi.ToSecret(args.Password).(pulumi.StringPtrInput) } secrets := pulumi.AdditionalSecretOutputs([]string{ "password", }) opts = append(opts, secrets) opts = internal.PkgResourceDefaultOpts(opts) var resource LinkedServiceWeb err := ctx.RegisterResource("azure:datafactory/linkedServiceWeb:LinkedServiceWeb", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetLinkedServiceWeb gets an existing LinkedServiceWeb 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 GetLinkedServiceWeb(ctx *pulumi.Context, name string, id pulumi.IDInput, state *LinkedServiceWebState, opts ...pulumi.ResourceOption) (*LinkedServiceWeb, error) { var resource LinkedServiceWeb err := ctx.ReadResource("azure:datafactory/linkedServiceWeb:LinkedServiceWeb", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering LinkedServiceWeb resources. type linkedServiceWebState struct { // A map of additional properties to associate with the Data Factory Linked Service. // // The following supported arguments are specific to Web Linked Service: AdditionalProperties map[string]string `pulumi:"additionalProperties"` // List of tags that can be used for describing the Data Factory Linked Service. Annotations []string `pulumi:"annotations"` // The type of authentication used to connect to the web table source. Valid options are `Anonymous`, `Basic` and `ClientCertificate`. AuthenticationType *string `pulumi:"authenticationType"` // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId *string `pulumi:"dataFactoryId"` // The description for the Data Factory Linked Service. Description *string `pulumi:"description"` // The integration runtime reference to associate with the Data Factory Linked Service. IntegrationRuntimeName *string `pulumi:"integrationRuntimeName"` // Specifies the name of the Data Factory Linked Service. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name *string `pulumi:"name"` // A map of parameters to associate with the Data Factory Linked Service. Parameters map[string]string `pulumi:"parameters"` // The password for Basic authentication. Required if `authenticationType` sets to `Basic`. Password *string `pulumi:"password"` // The URL of the web service endpoint (e.g. <https://www.microsoft.com>). Url *string `pulumi:"url"` // The username for Basic authentication. Required if `authenticationType` sets to `Basic`. Username *string `pulumi:"username"` } type LinkedServiceWebState struct { // A map of additional properties to associate with the Data Factory Linked Service. // // The following supported arguments are specific to Web Linked Service: AdditionalProperties pulumi.StringMapInput // List of tags that can be used for describing the Data Factory Linked Service. Annotations pulumi.StringArrayInput // The type of authentication used to connect to the web table source. Valid options are `Anonymous`, `Basic` and `ClientCertificate`. AuthenticationType pulumi.StringPtrInput // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId pulumi.StringPtrInput // The description for the Data Factory Linked Service. Description pulumi.StringPtrInput // The integration runtime reference to associate with the Data Factory Linked Service. IntegrationRuntimeName pulumi.StringPtrInput // Specifies the name of the Data Factory Linked Service. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringPtrInput // A map of parameters to associate with the Data Factory Linked Service. Parameters pulumi.StringMapInput // The password for Basic authentication. Required if `authenticationType` sets to `Basic`. Password pulumi.StringPtrInput // The URL of the web service endpoint (e.g. <https://www.microsoft.com>). Url pulumi.StringPtrInput // The username for Basic authentication. Required if `authenticationType` sets to `Basic`. Username pulumi.StringPtrInput } func (LinkedServiceWebState) ElementType() reflect.Type { return reflect.TypeOf((*linkedServiceWebState)(nil)).Elem() } type linkedServiceWebArgs struct { // A map of additional properties to associate with the Data Factory Linked Service. // // The following supported arguments are specific to Web Linked Service: AdditionalProperties map[string]string `pulumi:"additionalProperties"` // List of tags that can be used for describing the Data Factory Linked Service. Annotations []string `pulumi:"annotations"` // The type of authentication used to connect to the web table source. Valid options are `Anonymous`, `Basic` and `ClientCertificate`. AuthenticationType string `pulumi:"authenticationType"` // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId string `pulumi:"dataFactoryId"` // The description for the Data Factory Linked Service. Description *string `pulumi:"description"` // The integration runtime reference to associate with the Data Factory Linked Service. IntegrationRuntimeName *string `pulumi:"integrationRuntimeName"` // Specifies the name of the Data Factory Linked Service. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name *string `pulumi:"name"` // A map of parameters to associate with the Data Factory Linked Service. Parameters map[string]string `pulumi:"parameters"` // The password for Basic authentication. Required if `authenticationType` sets to `Basic`. Password *string `pulumi:"password"` // The URL of the web service endpoint (e.g. <https://www.microsoft.com>). Url string `pulumi:"url"` // The username for Basic authentication. Required if `authenticationType` sets to `Basic`. Username *string `pulumi:"username"` } // The set of arguments for constructing a LinkedServiceWeb resource. type LinkedServiceWebArgs struct { // A map of additional properties to associate with the Data Factory Linked Service. // // The following supported arguments are specific to Web Linked Service: AdditionalProperties pulumi.StringMapInput // List of tags that can be used for describing the Data Factory Linked Service. Annotations pulumi.StringArrayInput // The type of authentication used to connect to the web table source. Valid options are `Anonymous`, `Basic` and `ClientCertificate`. AuthenticationType pulumi.StringInput // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId pulumi.StringInput // The description for the Data Factory Linked Service. Description pulumi.StringPtrInput // The integration runtime reference to associate with the Data Factory Linked Service. IntegrationRuntimeName pulumi.StringPtrInput // Specifies the name of the Data Factory Linked Service. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringPtrInput // A map of parameters to associate with the Data Factory Linked Service. Parameters pulumi.StringMapInput // The password for Basic authentication. Required if `authenticationType` sets to `Basic`. Password pulumi.StringPtrInput // The URL of the web service endpoint (e.g. <https://www.microsoft.com>). Url pulumi.StringInput // The username for Basic authentication. Required if `authenticationType` sets to `Basic`. Username pulumi.StringPtrInput } func (LinkedServiceWebArgs) ElementType() reflect.Type { return reflect.TypeOf((*linkedServiceWebArgs)(nil)).Elem() } type LinkedServiceWebInput interface { pulumi.Input ToLinkedServiceWebOutput() LinkedServiceWebOutput ToLinkedServiceWebOutputWithContext(ctx context.Context) LinkedServiceWebOutput } func (*LinkedServiceWeb) ElementType() reflect.Type { return reflect.TypeOf((**LinkedServiceWeb)(nil)).Elem() } func (i *LinkedServiceWeb) ToLinkedServiceWebOutput() LinkedServiceWebOutput { return i.ToLinkedServiceWebOutputWithContext(context.Background()) } func (i *LinkedServiceWeb) ToLinkedServiceWebOutputWithContext(ctx context.Context) LinkedServiceWebOutput { return pulumi.ToOutputWithContext(ctx, i).(LinkedServiceWebOutput) } // LinkedServiceWebArrayInput is an input type that accepts LinkedServiceWebArray and LinkedServiceWebArrayOutput values. // You can construct a concrete instance of `LinkedServiceWebArrayInput` via: // // LinkedServiceWebArray{ LinkedServiceWebArgs{...} } type LinkedServiceWebArrayInput interface { pulumi.Input ToLinkedServiceWebArrayOutput() LinkedServiceWebArrayOutput ToLinkedServiceWebArrayOutputWithContext(context.Context) LinkedServiceWebArrayOutput } type LinkedServiceWebArray []LinkedServiceWebInput func (LinkedServiceWebArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*LinkedServiceWeb)(nil)).Elem() } func (i LinkedServiceWebArray) ToLinkedServiceWebArrayOutput() LinkedServiceWebArrayOutput { return i.ToLinkedServiceWebArrayOutputWithContext(context.Background()) } func (i LinkedServiceWebArray) ToLinkedServiceWebArrayOutputWithContext(ctx context.Context) LinkedServiceWebArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(LinkedServiceWebArrayOutput) } // LinkedServiceWebMapInput is an input type that accepts LinkedServiceWebMap and LinkedServiceWebMapOutput values. // You can construct a concrete instance of `LinkedServiceWebMapInput` via: // // LinkedServiceWebMap{ "key": LinkedServiceWebArgs{...} } type LinkedServiceWebMapInput interface { pulumi.Input ToLinkedServiceWebMapOutput() LinkedServiceWebMapOutput ToLinkedServiceWebMapOutputWithContext(context.Context) LinkedServiceWebMapOutput } type LinkedServiceWebMap map[string]LinkedServiceWebInput func (LinkedServiceWebMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*LinkedServiceWeb)(nil)).Elem() } func (i LinkedServiceWebMap) ToLinkedServiceWebMapOutput() LinkedServiceWebMapOutput { return i.ToLinkedServiceWebMapOutputWithContext(context.Background()) } func (i LinkedServiceWebMap) ToLinkedServiceWebMapOutputWithContext(ctx context.Context) LinkedServiceWebMapOutput { return pulumi.ToOutputWithContext(ctx, i).(LinkedServiceWebMapOutput) } type LinkedServiceWebOutput struct{ *pulumi.OutputState } func (LinkedServiceWebOutput) ElementType() reflect.Type { return reflect.TypeOf((**LinkedServiceWeb)(nil)).Elem() } func (o LinkedServiceWebOutput) ToLinkedServiceWebOutput() LinkedServiceWebOutput { return o } func (o LinkedServiceWebOutput) ToLinkedServiceWebOutputWithContext(ctx context.Context) LinkedServiceWebOutput { return o } // A map of additional properties to associate with the Data Factory Linked Service. // // The following supported arguments are specific to Web Linked Service: func (o LinkedServiceWebOutput) AdditionalProperties() pulumi.StringMapOutput { return o.ApplyT(func(v *LinkedServiceWeb) pulumi.StringMapOutput { return v.AdditionalProperties }).(pulumi.StringMapOutput) } // List of tags that can be used for describing the Data Factory Linked Service. func (o LinkedServiceWebOutput) Annotations() pulumi.StringArrayOutput { return o.ApplyT(func(v *LinkedServiceWeb) pulumi.StringArrayOutput { return v.Annotations }).(pulumi.StringArrayOutput) } // The type of authentication used to connect to the web table source. Valid options are `Anonymous`, `Basic` and `ClientCertificate`. func (o LinkedServiceWebOutput) AuthenticationType() pulumi.StringOutput { return o.ApplyT(func(v *LinkedServiceWeb) pulumi.StringOutput { return v.AuthenticationType }).(pulumi.StringOutput) } // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. func (o LinkedServiceWebOutput) DataFactoryId() pulumi.StringOutput { return o.ApplyT(func(v *LinkedServiceWeb) pulumi.StringOutput { return v.DataFactoryId }).(pulumi.StringOutput) } // The description for the Data Factory Linked Service. func (o LinkedServiceWebOutput) Description() pulumi.StringPtrOutput { return o.ApplyT(func(v *LinkedServiceWeb) pulumi.StringPtrOutput { return v.Description }).(pulumi.StringPtrOutput) } // The integration runtime reference to associate with the Data Factory Linked Service. func (o LinkedServiceWebOutput) IntegrationRuntimeName() pulumi.StringPtrOutput { return o.ApplyT(func(v *LinkedServiceWeb) pulumi.StringPtrOutput { return v.IntegrationRuntimeName }).(pulumi.StringPtrOutput) } // Specifies the name of the Data Factory Linked Service. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. func (o LinkedServiceWebOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *LinkedServiceWeb) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // A map of parameters to associate with the Data Factory Linked Service. func (o LinkedServiceWebOutput) Parameters() pulumi.StringMapOutput { return o.ApplyT(func(v *LinkedServiceWeb) pulumi.StringMapOutput { return v.Parameters }).(pulumi.StringMapOutput) } // The password for Basic authentication. Required if `authenticationType` sets to `Basic`. func (o LinkedServiceWebOutput) Password() pulumi.StringPtrOutput { return o.ApplyT(func(v *LinkedServiceWeb) pulumi.StringPtrOutput { return v.Password }).(pulumi.StringPtrOutput) } // The URL of the web service endpoint (e.g. <https://www.microsoft.com>). func (o LinkedServiceWebOutput) Url() pulumi.StringOutput { return o.ApplyT(func(v *LinkedServiceWeb) pulumi.StringOutput { return v.Url }).(pulumi.StringOutput) } // The username for Basic authentication. Required if `authenticationType` sets to `Basic`. func (o LinkedServiceWebOutput) Username() pulumi.StringPtrOutput { return o.ApplyT(func(v *LinkedServiceWeb) pulumi.StringPtrOutput { return v.Username }).(pulumi.StringPtrOutput) } type LinkedServiceWebArrayOutput struct{ *pulumi.OutputState } func (LinkedServiceWebArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*LinkedServiceWeb)(nil)).Elem() } func (o LinkedServiceWebArrayOutput) ToLinkedServiceWebArrayOutput() LinkedServiceWebArrayOutput { return o } func (o LinkedServiceWebArrayOutput) ToLinkedServiceWebArrayOutputWithContext(ctx context.Context) LinkedServiceWebArrayOutput { return o } func (o LinkedServiceWebArrayOutput) Index(i pulumi.IntInput) LinkedServiceWebOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *LinkedServiceWeb { return vs[0].([]*LinkedServiceWeb)[vs[1].(int)] }).(LinkedServiceWebOutput) } type LinkedServiceWebMapOutput struct{ *pulumi.OutputState } func (LinkedServiceWebMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*LinkedServiceWeb)(nil)).Elem() } func (o LinkedServiceWebMapOutput) ToLinkedServiceWebMapOutput() LinkedServiceWebMapOutput { return o } func (o LinkedServiceWebMapOutput) ToLinkedServiceWebMapOutputWithContext(ctx context.Context) LinkedServiceWebMapOutput { return o } func (o LinkedServiceWebMapOutput) MapIndex(k pulumi.StringInput) LinkedServiceWebOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *LinkedServiceWeb { return vs[0].(map[string]*LinkedServiceWeb)[vs[1].(string)] }).(LinkedServiceWebOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*LinkedServiceWebInput)(nil)).Elem(), &LinkedServiceWeb{}) pulumi.RegisterInputType(reflect.TypeOf((*LinkedServiceWebArrayInput)(nil)).Elem(), LinkedServiceWebArray{}) pulumi.RegisterInputType(reflect.TypeOf((*LinkedServiceWebMapInput)(nil)).Elem(), LinkedServiceWebMap{}) pulumi.RegisterOutputType(LinkedServiceWebOutput{}) pulumi.RegisterOutputType(LinkedServiceWebArrayOutput{}) pulumi.RegisterOutputType(LinkedServiceWebMapOutput{}) }
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/datafactory/linkedServicePostgresql.go
sdk/go/azure/datafactory/linkedServicePostgresql.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 datafactory import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a Linked Service (connection) between PostgreSQL and Azure Data Factory. // // ## 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/datafactory" // "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 // } // exampleFactory, err := datafactory.NewFactory(ctx, "example", &datafactory.FactoryArgs{ // Name: pulumi.String("example"), // Location: example.Location, // ResourceGroupName: example.Name, // }) // if err != nil { // return err // } // _, err = datafactory.NewLinkedServicePostgresql(ctx, "example", &datafactory.LinkedServicePostgresqlArgs{ // Name: pulumi.String("example"), // DataFactoryId: exampleFactory.ID(), // ConnectionString: pulumi.String("Host=example;Port=5432;Database=example;UID=example;EncryptionMethod=0;Password=example"), // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## Import // // Data Factory PostgreSQL Linked Service's can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:datafactory/linkedServicePostgresql:LinkedServicePostgresql example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example/providers/Microsoft.DataFactory/factories/example/linkedservices/example // ``` type LinkedServicePostgresql struct { pulumi.CustomResourceState // A map of additional properties to associate with the Data Factory Linked Service PostgreSQL. AdditionalProperties pulumi.StringMapOutput `pulumi:"additionalProperties"` // List of tags that can be used for describing the Data Factory Linked Service PostgreSQL. Annotations pulumi.StringArrayOutput `pulumi:"annotations"` // The connection string in which to authenticate with PostgreSQL. ConnectionString pulumi.StringOutput `pulumi:"connectionString"` // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId pulumi.StringOutput `pulumi:"dataFactoryId"` // The description for the Data Factory Linked Service PostgreSQL. Description pulumi.StringPtrOutput `pulumi:"description"` // The integration runtime reference to associate with the Data Factory Linked Service PostgreSQL. IntegrationRuntimeName pulumi.StringPtrOutput `pulumi:"integrationRuntimeName"` // Specifies the name of the Data Factory Linked Service PostgreSQL. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringOutput `pulumi:"name"` // A map of parameters to associate with the Data Factory Linked Service PostgreSQL. Parameters pulumi.StringMapOutput `pulumi:"parameters"` } // NewLinkedServicePostgresql registers a new resource with the given unique name, arguments, and options. func NewLinkedServicePostgresql(ctx *pulumi.Context, name string, args *LinkedServicePostgresqlArgs, opts ...pulumi.ResourceOption) (*LinkedServicePostgresql, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.ConnectionString == nil { return nil, errors.New("invalid value for required argument 'ConnectionString'") } if args.DataFactoryId == nil { return nil, errors.New("invalid value for required argument 'DataFactoryId'") } opts = internal.PkgResourceDefaultOpts(opts) var resource LinkedServicePostgresql err := ctx.RegisterResource("azure:datafactory/linkedServicePostgresql:LinkedServicePostgresql", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetLinkedServicePostgresql gets an existing LinkedServicePostgresql 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 GetLinkedServicePostgresql(ctx *pulumi.Context, name string, id pulumi.IDInput, state *LinkedServicePostgresqlState, opts ...pulumi.ResourceOption) (*LinkedServicePostgresql, error) { var resource LinkedServicePostgresql err := ctx.ReadResource("azure:datafactory/linkedServicePostgresql:LinkedServicePostgresql", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering LinkedServicePostgresql resources. type linkedServicePostgresqlState struct { // A map of additional properties to associate with the Data Factory Linked Service PostgreSQL. AdditionalProperties map[string]string `pulumi:"additionalProperties"` // List of tags that can be used for describing the Data Factory Linked Service PostgreSQL. Annotations []string `pulumi:"annotations"` // The connection string in which to authenticate with PostgreSQL. ConnectionString *string `pulumi:"connectionString"` // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId *string `pulumi:"dataFactoryId"` // The description for the Data Factory Linked Service PostgreSQL. Description *string `pulumi:"description"` // The integration runtime reference to associate with the Data Factory Linked Service PostgreSQL. IntegrationRuntimeName *string `pulumi:"integrationRuntimeName"` // Specifies the name of the Data Factory Linked Service PostgreSQL. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name *string `pulumi:"name"` // A map of parameters to associate with the Data Factory Linked Service PostgreSQL. Parameters map[string]string `pulumi:"parameters"` } type LinkedServicePostgresqlState struct { // A map of additional properties to associate with the Data Factory Linked Service PostgreSQL. AdditionalProperties pulumi.StringMapInput // List of tags that can be used for describing the Data Factory Linked Service PostgreSQL. Annotations pulumi.StringArrayInput // The connection string in which to authenticate with PostgreSQL. ConnectionString pulumi.StringPtrInput // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId pulumi.StringPtrInput // The description for the Data Factory Linked Service PostgreSQL. Description pulumi.StringPtrInput // The integration runtime reference to associate with the Data Factory Linked Service PostgreSQL. IntegrationRuntimeName pulumi.StringPtrInput // Specifies the name of the Data Factory Linked Service PostgreSQL. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringPtrInput // A map of parameters to associate with the Data Factory Linked Service PostgreSQL. Parameters pulumi.StringMapInput } func (LinkedServicePostgresqlState) ElementType() reflect.Type { return reflect.TypeOf((*linkedServicePostgresqlState)(nil)).Elem() } type linkedServicePostgresqlArgs struct { // A map of additional properties to associate with the Data Factory Linked Service PostgreSQL. AdditionalProperties map[string]string `pulumi:"additionalProperties"` // List of tags that can be used for describing the Data Factory Linked Service PostgreSQL. Annotations []string `pulumi:"annotations"` // The connection string in which to authenticate with PostgreSQL. ConnectionString string `pulumi:"connectionString"` // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId string `pulumi:"dataFactoryId"` // The description for the Data Factory Linked Service PostgreSQL. Description *string `pulumi:"description"` // The integration runtime reference to associate with the Data Factory Linked Service PostgreSQL. IntegrationRuntimeName *string `pulumi:"integrationRuntimeName"` // Specifies the name of the Data Factory Linked Service PostgreSQL. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name *string `pulumi:"name"` // A map of parameters to associate with the Data Factory Linked Service PostgreSQL. Parameters map[string]string `pulumi:"parameters"` } // The set of arguments for constructing a LinkedServicePostgresql resource. type LinkedServicePostgresqlArgs struct { // A map of additional properties to associate with the Data Factory Linked Service PostgreSQL. AdditionalProperties pulumi.StringMapInput // List of tags that can be used for describing the Data Factory Linked Service PostgreSQL. Annotations pulumi.StringArrayInput // The connection string in which to authenticate with PostgreSQL. ConnectionString pulumi.StringInput // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId pulumi.StringInput // The description for the Data Factory Linked Service PostgreSQL. Description pulumi.StringPtrInput // The integration runtime reference to associate with the Data Factory Linked Service PostgreSQL. IntegrationRuntimeName pulumi.StringPtrInput // Specifies the name of the Data Factory Linked Service PostgreSQL. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringPtrInput // A map of parameters to associate with the Data Factory Linked Service PostgreSQL. Parameters pulumi.StringMapInput } func (LinkedServicePostgresqlArgs) ElementType() reflect.Type { return reflect.TypeOf((*linkedServicePostgresqlArgs)(nil)).Elem() } type LinkedServicePostgresqlInput interface { pulumi.Input ToLinkedServicePostgresqlOutput() LinkedServicePostgresqlOutput ToLinkedServicePostgresqlOutputWithContext(ctx context.Context) LinkedServicePostgresqlOutput } func (*LinkedServicePostgresql) ElementType() reflect.Type { return reflect.TypeOf((**LinkedServicePostgresql)(nil)).Elem() } func (i *LinkedServicePostgresql) ToLinkedServicePostgresqlOutput() LinkedServicePostgresqlOutput { return i.ToLinkedServicePostgresqlOutputWithContext(context.Background()) } func (i *LinkedServicePostgresql) ToLinkedServicePostgresqlOutputWithContext(ctx context.Context) LinkedServicePostgresqlOutput { return pulumi.ToOutputWithContext(ctx, i).(LinkedServicePostgresqlOutput) } // LinkedServicePostgresqlArrayInput is an input type that accepts LinkedServicePostgresqlArray and LinkedServicePostgresqlArrayOutput values. // You can construct a concrete instance of `LinkedServicePostgresqlArrayInput` via: // // LinkedServicePostgresqlArray{ LinkedServicePostgresqlArgs{...} } type LinkedServicePostgresqlArrayInput interface { pulumi.Input ToLinkedServicePostgresqlArrayOutput() LinkedServicePostgresqlArrayOutput ToLinkedServicePostgresqlArrayOutputWithContext(context.Context) LinkedServicePostgresqlArrayOutput } type LinkedServicePostgresqlArray []LinkedServicePostgresqlInput func (LinkedServicePostgresqlArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*LinkedServicePostgresql)(nil)).Elem() } func (i LinkedServicePostgresqlArray) ToLinkedServicePostgresqlArrayOutput() LinkedServicePostgresqlArrayOutput { return i.ToLinkedServicePostgresqlArrayOutputWithContext(context.Background()) } func (i LinkedServicePostgresqlArray) ToLinkedServicePostgresqlArrayOutputWithContext(ctx context.Context) LinkedServicePostgresqlArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(LinkedServicePostgresqlArrayOutput) } // LinkedServicePostgresqlMapInput is an input type that accepts LinkedServicePostgresqlMap and LinkedServicePostgresqlMapOutput values. // You can construct a concrete instance of `LinkedServicePostgresqlMapInput` via: // // LinkedServicePostgresqlMap{ "key": LinkedServicePostgresqlArgs{...} } type LinkedServicePostgresqlMapInput interface { pulumi.Input ToLinkedServicePostgresqlMapOutput() LinkedServicePostgresqlMapOutput ToLinkedServicePostgresqlMapOutputWithContext(context.Context) LinkedServicePostgresqlMapOutput } type LinkedServicePostgresqlMap map[string]LinkedServicePostgresqlInput func (LinkedServicePostgresqlMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*LinkedServicePostgresql)(nil)).Elem() } func (i LinkedServicePostgresqlMap) ToLinkedServicePostgresqlMapOutput() LinkedServicePostgresqlMapOutput { return i.ToLinkedServicePostgresqlMapOutputWithContext(context.Background()) } func (i LinkedServicePostgresqlMap) ToLinkedServicePostgresqlMapOutputWithContext(ctx context.Context) LinkedServicePostgresqlMapOutput { return pulumi.ToOutputWithContext(ctx, i).(LinkedServicePostgresqlMapOutput) } type LinkedServicePostgresqlOutput struct{ *pulumi.OutputState } func (LinkedServicePostgresqlOutput) ElementType() reflect.Type { return reflect.TypeOf((**LinkedServicePostgresql)(nil)).Elem() } func (o LinkedServicePostgresqlOutput) ToLinkedServicePostgresqlOutput() LinkedServicePostgresqlOutput { return o } func (o LinkedServicePostgresqlOutput) ToLinkedServicePostgresqlOutputWithContext(ctx context.Context) LinkedServicePostgresqlOutput { return o } // A map of additional properties to associate with the Data Factory Linked Service PostgreSQL. func (o LinkedServicePostgresqlOutput) AdditionalProperties() pulumi.StringMapOutput { return o.ApplyT(func(v *LinkedServicePostgresql) pulumi.StringMapOutput { return v.AdditionalProperties }).(pulumi.StringMapOutput) } // List of tags that can be used for describing the Data Factory Linked Service PostgreSQL. func (o LinkedServicePostgresqlOutput) Annotations() pulumi.StringArrayOutput { return o.ApplyT(func(v *LinkedServicePostgresql) pulumi.StringArrayOutput { return v.Annotations }).(pulumi.StringArrayOutput) } // The connection string in which to authenticate with PostgreSQL. func (o LinkedServicePostgresqlOutput) ConnectionString() pulumi.StringOutput { return o.ApplyT(func(v *LinkedServicePostgresql) pulumi.StringOutput { return v.ConnectionString }).(pulumi.StringOutput) } // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. func (o LinkedServicePostgresqlOutput) DataFactoryId() pulumi.StringOutput { return o.ApplyT(func(v *LinkedServicePostgresql) pulumi.StringOutput { return v.DataFactoryId }).(pulumi.StringOutput) } // The description for the Data Factory Linked Service PostgreSQL. func (o LinkedServicePostgresqlOutput) Description() pulumi.StringPtrOutput { return o.ApplyT(func(v *LinkedServicePostgresql) pulumi.StringPtrOutput { return v.Description }).(pulumi.StringPtrOutput) } // The integration runtime reference to associate with the Data Factory Linked Service PostgreSQL. func (o LinkedServicePostgresqlOutput) IntegrationRuntimeName() pulumi.StringPtrOutput { return o.ApplyT(func(v *LinkedServicePostgresql) pulumi.StringPtrOutput { return v.IntegrationRuntimeName }).(pulumi.StringPtrOutput) } // Specifies the name of the Data Factory Linked Service PostgreSQL. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. func (o LinkedServicePostgresqlOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *LinkedServicePostgresql) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // A map of parameters to associate with the Data Factory Linked Service PostgreSQL. func (o LinkedServicePostgresqlOutput) Parameters() pulumi.StringMapOutput { return o.ApplyT(func(v *LinkedServicePostgresql) pulumi.StringMapOutput { return v.Parameters }).(pulumi.StringMapOutput) } type LinkedServicePostgresqlArrayOutput struct{ *pulumi.OutputState } func (LinkedServicePostgresqlArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*LinkedServicePostgresql)(nil)).Elem() } func (o LinkedServicePostgresqlArrayOutput) ToLinkedServicePostgresqlArrayOutput() LinkedServicePostgresqlArrayOutput { return o } func (o LinkedServicePostgresqlArrayOutput) ToLinkedServicePostgresqlArrayOutputWithContext(ctx context.Context) LinkedServicePostgresqlArrayOutput { return o } func (o LinkedServicePostgresqlArrayOutput) Index(i pulumi.IntInput) LinkedServicePostgresqlOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *LinkedServicePostgresql { return vs[0].([]*LinkedServicePostgresql)[vs[1].(int)] }).(LinkedServicePostgresqlOutput) } type LinkedServicePostgresqlMapOutput struct{ *pulumi.OutputState } func (LinkedServicePostgresqlMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*LinkedServicePostgresql)(nil)).Elem() } func (o LinkedServicePostgresqlMapOutput) ToLinkedServicePostgresqlMapOutput() LinkedServicePostgresqlMapOutput { return o } func (o LinkedServicePostgresqlMapOutput) ToLinkedServicePostgresqlMapOutputWithContext(ctx context.Context) LinkedServicePostgresqlMapOutput { return o } func (o LinkedServicePostgresqlMapOutput) MapIndex(k pulumi.StringInput) LinkedServicePostgresqlOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *LinkedServicePostgresql { return vs[0].(map[string]*LinkedServicePostgresql)[vs[1].(string)] }).(LinkedServicePostgresqlOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*LinkedServicePostgresqlInput)(nil)).Elem(), &LinkedServicePostgresql{}) pulumi.RegisterInputType(reflect.TypeOf((*LinkedServicePostgresqlArrayInput)(nil)).Elem(), LinkedServicePostgresqlArray{}) pulumi.RegisterInputType(reflect.TypeOf((*LinkedServicePostgresqlMapInput)(nil)).Elem(), LinkedServicePostgresqlMap{}) pulumi.RegisterOutputType(LinkedServicePostgresqlOutput{}) pulumi.RegisterOutputType(LinkedServicePostgresqlArrayOutput{}) pulumi.RegisterOutputType(LinkedServicePostgresqlMapOutput{}) }
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/datafactory/datasetDelimitedText.go
sdk/go/azure/datafactory/datasetDelimitedText.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 datafactory 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 Delimited Text Dataset inside an Azure Data Factory. // // ## 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/datafactory" // "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 // } // exampleFactory, err := datafactory.NewFactory(ctx, "example", &datafactory.FactoryArgs{ // Name: pulumi.String("example"), // Location: example.Location, // ResourceGroupName: example.Name, // }) // if err != nil { // return err // } // exampleLinkedServiceWeb, err := datafactory.NewLinkedServiceWeb(ctx, "example", &datafactory.LinkedServiceWebArgs{ // Name: pulumi.String("example"), // DataFactoryId: exampleFactory.ID(), // AuthenticationType: pulumi.String("Anonymous"), // Url: pulumi.String("https://www.bing.com"), // }) // if err != nil { // return err // } // _, err = datafactory.NewDatasetDelimitedText(ctx, "example", &datafactory.DatasetDelimitedTextArgs{ // Name: pulumi.String("example"), // DataFactoryId: exampleFactory.ID(), // LinkedServiceName: exampleLinkedServiceWeb.Name, // HttpServerLocation: &datafactory.DatasetDelimitedTextHttpServerLocationArgs{ // RelativeUrl: pulumi.String("http://www.bing.com"), // Path: pulumi.String("foo/bar/"), // Filename: pulumi.String("fizz.txt"), // }, // ColumnDelimiter: pulumi.String(","), // RowDelimiter: pulumi.String("NEW"), // Encoding: pulumi.String("UTF-8"), // QuoteCharacter: pulumi.String("x"), // EscapeCharacter: pulumi.String("f"), // FirstRowAsHeader: pulumi.Bool(true), // NullValue: pulumi.String("NULL"), // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## Import // // Data Factory Datasets can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:datafactory/datasetDelimitedText:DatasetDelimitedText example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example/providers/Microsoft.DataFactory/factories/example/datasets/example // ``` type DatasetDelimitedText struct { pulumi.CustomResourceState // A map of additional properties to associate with the Data Factory Dataset. // // The following supported locations for a Delimited Text Dataset (exactly one of them must be set): AdditionalProperties pulumi.StringMapOutput `pulumi:"additionalProperties"` // List of tags that can be used for describing the Data Factory Dataset. Annotations pulumi.StringArrayOutput `pulumi:"annotations"` // An `azureBlobFsLocation` block as defined below. AzureBlobFsLocation DatasetDelimitedTextAzureBlobFsLocationPtrOutput `pulumi:"azureBlobFsLocation"` // An `azureBlobStorageLocation` block as defined below. AzureBlobStorageLocation DatasetDelimitedTextAzureBlobStorageLocationPtrOutput `pulumi:"azureBlobStorageLocation"` // The column delimiter. Defaults to `,`. ColumnDelimiter pulumi.StringPtrOutput `pulumi:"columnDelimiter"` // The compression codec used to read/write text files. Valid values are `None`, `bzip2`, `gzip`, `deflate`, `ZipDeflate`, `TarGzip`, `Tar`, `snappy` and `lz4`. Please note these values are case sensitive. CompressionCodec pulumi.StringPtrOutput `pulumi:"compressionCodec"` // The compression ratio for the Data Factory Dataset. Valid values are `Fastest` or `Optimal`. Please note these values are case sensitive. CompressionLevel pulumi.StringPtrOutput `pulumi:"compressionLevel"` // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId pulumi.StringOutput `pulumi:"dataFactoryId"` // The description for the Data Factory Dataset. Description pulumi.StringPtrOutput `pulumi:"description"` // The encoding format for the file. Encoding pulumi.StringPtrOutput `pulumi:"encoding"` // The escape character. Defaults to `\`. EscapeCharacter pulumi.StringPtrOutput `pulumi:"escapeCharacter"` // When used as input, treat the first row of data as headers. When used as output, write the headers into the output as the first row of data. Defaults to `false`. FirstRowAsHeader pulumi.BoolPtrOutput `pulumi:"firstRowAsHeader"` // The folder that this Dataset is in. If not specified, the Dataset will appear at the root level. Folder pulumi.StringPtrOutput `pulumi:"folder"` // A `httpServerLocation` block as defined below. // // The following supported arguments are specific to Delimited Text Dataset: HttpServerLocation DatasetDelimitedTextHttpServerLocationPtrOutput `pulumi:"httpServerLocation"` // The Data Factory Linked Service name in which to associate the Dataset with. LinkedServiceName pulumi.StringOutput `pulumi:"linkedServiceName"` // Specifies the name of the Data Factory Dataset. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringOutput `pulumi:"name"` // The null value string. Defaults to `""`. NullValue pulumi.StringPtrOutput `pulumi:"nullValue"` // A map of parameters to associate with the Data Factory Dataset. Parameters pulumi.StringMapOutput `pulumi:"parameters"` // The quote character. Defaults to `"`. QuoteCharacter pulumi.StringPtrOutput `pulumi:"quoteCharacter"` // The row delimiter. Defaults to any of the following values on read: `\r\n`, `\r`, `\n`, and `\n` or `\r\n` on write by mapping data flow and Copy activity respectively. RowDelimiter pulumi.StringPtrOutput `pulumi:"rowDelimiter"` // A `schemaColumn` block as defined below. SchemaColumns DatasetDelimitedTextSchemaColumnArrayOutput `pulumi:"schemaColumns"` } // NewDatasetDelimitedText registers a new resource with the given unique name, arguments, and options. func NewDatasetDelimitedText(ctx *pulumi.Context, name string, args *DatasetDelimitedTextArgs, opts ...pulumi.ResourceOption) (*DatasetDelimitedText, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.DataFactoryId == nil { return nil, errors.New("invalid value for required argument 'DataFactoryId'") } if args.LinkedServiceName == nil { return nil, errors.New("invalid value for required argument 'LinkedServiceName'") } opts = internal.PkgResourceDefaultOpts(opts) var resource DatasetDelimitedText err := ctx.RegisterResource("azure:datafactory/datasetDelimitedText:DatasetDelimitedText", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetDatasetDelimitedText gets an existing DatasetDelimitedText 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 GetDatasetDelimitedText(ctx *pulumi.Context, name string, id pulumi.IDInput, state *DatasetDelimitedTextState, opts ...pulumi.ResourceOption) (*DatasetDelimitedText, error) { var resource DatasetDelimitedText err := ctx.ReadResource("azure:datafactory/datasetDelimitedText:DatasetDelimitedText", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering DatasetDelimitedText resources. type datasetDelimitedTextState struct { // A map of additional properties to associate with the Data Factory Dataset. // // The following supported locations for a Delimited Text Dataset (exactly one of them must be set): AdditionalProperties map[string]string `pulumi:"additionalProperties"` // List of tags that can be used for describing the Data Factory Dataset. Annotations []string `pulumi:"annotations"` // An `azureBlobFsLocation` block as defined below. AzureBlobFsLocation *DatasetDelimitedTextAzureBlobFsLocation `pulumi:"azureBlobFsLocation"` // An `azureBlobStorageLocation` block as defined below. AzureBlobStorageLocation *DatasetDelimitedTextAzureBlobStorageLocation `pulumi:"azureBlobStorageLocation"` // The column delimiter. Defaults to `,`. ColumnDelimiter *string `pulumi:"columnDelimiter"` // The compression codec used to read/write text files. Valid values are `None`, `bzip2`, `gzip`, `deflate`, `ZipDeflate`, `TarGzip`, `Tar`, `snappy` and `lz4`. Please note these values are case sensitive. CompressionCodec *string `pulumi:"compressionCodec"` // The compression ratio for the Data Factory Dataset. Valid values are `Fastest` or `Optimal`. Please note these values are case sensitive. CompressionLevel *string `pulumi:"compressionLevel"` // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId *string `pulumi:"dataFactoryId"` // The description for the Data Factory Dataset. Description *string `pulumi:"description"` // The encoding format for the file. Encoding *string `pulumi:"encoding"` // The escape character. Defaults to `\`. EscapeCharacter *string `pulumi:"escapeCharacter"` // When used as input, treat the first row of data as headers. When used as output, write the headers into the output as the first row of data. Defaults to `false`. FirstRowAsHeader *bool `pulumi:"firstRowAsHeader"` // The folder that this Dataset is in. If not specified, the Dataset will appear at the root level. Folder *string `pulumi:"folder"` // A `httpServerLocation` block as defined below. // // The following supported arguments are specific to Delimited Text Dataset: HttpServerLocation *DatasetDelimitedTextHttpServerLocation `pulumi:"httpServerLocation"` // The Data Factory Linked Service name in which to associate the Dataset with. LinkedServiceName *string `pulumi:"linkedServiceName"` // Specifies the name of the Data Factory Dataset. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name *string `pulumi:"name"` // The null value string. Defaults to `""`. NullValue *string `pulumi:"nullValue"` // A map of parameters to associate with the Data Factory Dataset. Parameters map[string]string `pulumi:"parameters"` // The quote character. Defaults to `"`. QuoteCharacter *string `pulumi:"quoteCharacter"` // The row delimiter. Defaults to any of the following values on read: `\r\n`, `\r`, `\n`, and `\n` or `\r\n` on write by mapping data flow and Copy activity respectively. RowDelimiter *string `pulumi:"rowDelimiter"` // A `schemaColumn` block as defined below. SchemaColumns []DatasetDelimitedTextSchemaColumn `pulumi:"schemaColumns"` } type DatasetDelimitedTextState struct { // A map of additional properties to associate with the Data Factory Dataset. // // The following supported locations for a Delimited Text Dataset (exactly one of them must be set): AdditionalProperties pulumi.StringMapInput // List of tags that can be used for describing the Data Factory Dataset. Annotations pulumi.StringArrayInput // An `azureBlobFsLocation` block as defined below. AzureBlobFsLocation DatasetDelimitedTextAzureBlobFsLocationPtrInput // An `azureBlobStorageLocation` block as defined below. AzureBlobStorageLocation DatasetDelimitedTextAzureBlobStorageLocationPtrInput // The column delimiter. Defaults to `,`. ColumnDelimiter pulumi.StringPtrInput // The compression codec used to read/write text files. Valid values are `None`, `bzip2`, `gzip`, `deflate`, `ZipDeflate`, `TarGzip`, `Tar`, `snappy` and `lz4`. Please note these values are case sensitive. CompressionCodec pulumi.StringPtrInput // The compression ratio for the Data Factory Dataset. Valid values are `Fastest` or `Optimal`. Please note these values are case sensitive. CompressionLevel pulumi.StringPtrInput // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId pulumi.StringPtrInput // The description for the Data Factory Dataset. Description pulumi.StringPtrInput // The encoding format for the file. Encoding pulumi.StringPtrInput // The escape character. Defaults to `\`. EscapeCharacter pulumi.StringPtrInput // When used as input, treat the first row of data as headers. When used as output, write the headers into the output as the first row of data. Defaults to `false`. FirstRowAsHeader pulumi.BoolPtrInput // The folder that this Dataset is in. If not specified, the Dataset will appear at the root level. Folder pulumi.StringPtrInput // A `httpServerLocation` block as defined below. // // The following supported arguments are specific to Delimited Text Dataset: HttpServerLocation DatasetDelimitedTextHttpServerLocationPtrInput // The Data Factory Linked Service name in which to associate the Dataset with. LinkedServiceName pulumi.StringPtrInput // Specifies the name of the Data Factory Dataset. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringPtrInput // The null value string. Defaults to `""`. NullValue pulumi.StringPtrInput // A map of parameters to associate with the Data Factory Dataset. Parameters pulumi.StringMapInput // The quote character. Defaults to `"`. QuoteCharacter pulumi.StringPtrInput // The row delimiter. Defaults to any of the following values on read: `\r\n`, `\r`, `\n`, and `\n` or `\r\n` on write by mapping data flow and Copy activity respectively. RowDelimiter pulumi.StringPtrInput // A `schemaColumn` block as defined below. SchemaColumns DatasetDelimitedTextSchemaColumnArrayInput } func (DatasetDelimitedTextState) ElementType() reflect.Type { return reflect.TypeOf((*datasetDelimitedTextState)(nil)).Elem() } type datasetDelimitedTextArgs struct { // A map of additional properties to associate with the Data Factory Dataset. // // The following supported locations for a Delimited Text Dataset (exactly one of them must be set): AdditionalProperties map[string]string `pulumi:"additionalProperties"` // List of tags that can be used for describing the Data Factory Dataset. Annotations []string `pulumi:"annotations"` // An `azureBlobFsLocation` block as defined below. AzureBlobFsLocation *DatasetDelimitedTextAzureBlobFsLocation `pulumi:"azureBlobFsLocation"` // An `azureBlobStorageLocation` block as defined below. AzureBlobStorageLocation *DatasetDelimitedTextAzureBlobStorageLocation `pulumi:"azureBlobStorageLocation"` // The column delimiter. Defaults to `,`. ColumnDelimiter *string `pulumi:"columnDelimiter"` // The compression codec used to read/write text files. Valid values are `None`, `bzip2`, `gzip`, `deflate`, `ZipDeflate`, `TarGzip`, `Tar`, `snappy` and `lz4`. Please note these values are case sensitive. CompressionCodec *string `pulumi:"compressionCodec"` // The compression ratio for the Data Factory Dataset. Valid values are `Fastest` or `Optimal`. Please note these values are case sensitive. CompressionLevel *string `pulumi:"compressionLevel"` // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId string `pulumi:"dataFactoryId"` // The description for the Data Factory Dataset. Description *string `pulumi:"description"` // The encoding format for the file. Encoding *string `pulumi:"encoding"` // The escape character. Defaults to `\`. EscapeCharacter *string `pulumi:"escapeCharacter"` // When used as input, treat the first row of data as headers. When used as output, write the headers into the output as the first row of data. Defaults to `false`. FirstRowAsHeader *bool `pulumi:"firstRowAsHeader"` // The folder that this Dataset is in. If not specified, the Dataset will appear at the root level. Folder *string `pulumi:"folder"` // A `httpServerLocation` block as defined below. // // The following supported arguments are specific to Delimited Text Dataset: HttpServerLocation *DatasetDelimitedTextHttpServerLocation `pulumi:"httpServerLocation"` // The Data Factory Linked Service name in which to associate the Dataset with. LinkedServiceName string `pulumi:"linkedServiceName"` // Specifies the name of the Data Factory Dataset. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name *string `pulumi:"name"` // The null value string. Defaults to `""`. NullValue *string `pulumi:"nullValue"` // A map of parameters to associate with the Data Factory Dataset. Parameters map[string]string `pulumi:"parameters"` // The quote character. Defaults to `"`. QuoteCharacter *string `pulumi:"quoteCharacter"` // The row delimiter. Defaults to any of the following values on read: `\r\n`, `\r`, `\n`, and `\n` or `\r\n` on write by mapping data flow and Copy activity respectively. RowDelimiter *string `pulumi:"rowDelimiter"` // A `schemaColumn` block as defined below. SchemaColumns []DatasetDelimitedTextSchemaColumn `pulumi:"schemaColumns"` } // The set of arguments for constructing a DatasetDelimitedText resource. type DatasetDelimitedTextArgs struct { // A map of additional properties to associate with the Data Factory Dataset. // // The following supported locations for a Delimited Text Dataset (exactly one of them must be set): AdditionalProperties pulumi.StringMapInput // List of tags that can be used for describing the Data Factory Dataset. Annotations pulumi.StringArrayInput // An `azureBlobFsLocation` block as defined below. AzureBlobFsLocation DatasetDelimitedTextAzureBlobFsLocationPtrInput // An `azureBlobStorageLocation` block as defined below. AzureBlobStorageLocation DatasetDelimitedTextAzureBlobStorageLocationPtrInput // The column delimiter. Defaults to `,`. ColumnDelimiter pulumi.StringPtrInput // The compression codec used to read/write text files. Valid values are `None`, `bzip2`, `gzip`, `deflate`, `ZipDeflate`, `TarGzip`, `Tar`, `snappy` and `lz4`. Please note these values are case sensitive. CompressionCodec pulumi.StringPtrInput // The compression ratio for the Data Factory Dataset. Valid values are `Fastest` or `Optimal`. Please note these values are case sensitive. CompressionLevel pulumi.StringPtrInput // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId pulumi.StringInput // The description for the Data Factory Dataset. Description pulumi.StringPtrInput // The encoding format for the file. Encoding pulumi.StringPtrInput // The escape character. Defaults to `\`. EscapeCharacter pulumi.StringPtrInput // When used as input, treat the first row of data as headers. When used as output, write the headers into the output as the first row of data. Defaults to `false`. FirstRowAsHeader pulumi.BoolPtrInput // The folder that this Dataset is in. If not specified, the Dataset will appear at the root level. Folder pulumi.StringPtrInput // A `httpServerLocation` block as defined below. // // The following supported arguments are specific to Delimited Text Dataset: HttpServerLocation DatasetDelimitedTextHttpServerLocationPtrInput // The Data Factory Linked Service name in which to associate the Dataset with. LinkedServiceName pulumi.StringInput // Specifies the name of the Data Factory Dataset. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringPtrInput // The null value string. Defaults to `""`. NullValue pulumi.StringPtrInput // A map of parameters to associate with the Data Factory Dataset. Parameters pulumi.StringMapInput // The quote character. Defaults to `"`. QuoteCharacter pulumi.StringPtrInput // The row delimiter. Defaults to any of the following values on read: `\r\n`, `\r`, `\n`, and `\n` or `\r\n` on write by mapping data flow and Copy activity respectively. RowDelimiter pulumi.StringPtrInput // A `schemaColumn` block as defined below. SchemaColumns DatasetDelimitedTextSchemaColumnArrayInput } func (DatasetDelimitedTextArgs) ElementType() reflect.Type { return reflect.TypeOf((*datasetDelimitedTextArgs)(nil)).Elem() } type DatasetDelimitedTextInput interface { pulumi.Input ToDatasetDelimitedTextOutput() DatasetDelimitedTextOutput ToDatasetDelimitedTextOutputWithContext(ctx context.Context) DatasetDelimitedTextOutput } func (*DatasetDelimitedText) ElementType() reflect.Type { return reflect.TypeOf((**DatasetDelimitedText)(nil)).Elem() } func (i *DatasetDelimitedText) ToDatasetDelimitedTextOutput() DatasetDelimitedTextOutput { return i.ToDatasetDelimitedTextOutputWithContext(context.Background()) } func (i *DatasetDelimitedText) ToDatasetDelimitedTextOutputWithContext(ctx context.Context) DatasetDelimitedTextOutput { return pulumi.ToOutputWithContext(ctx, i).(DatasetDelimitedTextOutput) } // DatasetDelimitedTextArrayInput is an input type that accepts DatasetDelimitedTextArray and DatasetDelimitedTextArrayOutput values. // You can construct a concrete instance of `DatasetDelimitedTextArrayInput` via: // // DatasetDelimitedTextArray{ DatasetDelimitedTextArgs{...} } type DatasetDelimitedTextArrayInput interface { pulumi.Input ToDatasetDelimitedTextArrayOutput() DatasetDelimitedTextArrayOutput ToDatasetDelimitedTextArrayOutputWithContext(context.Context) DatasetDelimitedTextArrayOutput } type DatasetDelimitedTextArray []DatasetDelimitedTextInput func (DatasetDelimitedTextArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*DatasetDelimitedText)(nil)).Elem() } func (i DatasetDelimitedTextArray) ToDatasetDelimitedTextArrayOutput() DatasetDelimitedTextArrayOutput { return i.ToDatasetDelimitedTextArrayOutputWithContext(context.Background()) } func (i DatasetDelimitedTextArray) ToDatasetDelimitedTextArrayOutputWithContext(ctx context.Context) DatasetDelimitedTextArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(DatasetDelimitedTextArrayOutput) } // DatasetDelimitedTextMapInput is an input type that accepts DatasetDelimitedTextMap and DatasetDelimitedTextMapOutput values. // You can construct a concrete instance of `DatasetDelimitedTextMapInput` via: // // DatasetDelimitedTextMap{ "key": DatasetDelimitedTextArgs{...} } type DatasetDelimitedTextMapInput interface { pulumi.Input ToDatasetDelimitedTextMapOutput() DatasetDelimitedTextMapOutput ToDatasetDelimitedTextMapOutputWithContext(context.Context) DatasetDelimitedTextMapOutput } type DatasetDelimitedTextMap map[string]DatasetDelimitedTextInput func (DatasetDelimitedTextMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*DatasetDelimitedText)(nil)).Elem() } func (i DatasetDelimitedTextMap) ToDatasetDelimitedTextMapOutput() DatasetDelimitedTextMapOutput { return i.ToDatasetDelimitedTextMapOutputWithContext(context.Background()) } func (i DatasetDelimitedTextMap) ToDatasetDelimitedTextMapOutputWithContext(ctx context.Context) DatasetDelimitedTextMapOutput { return pulumi.ToOutputWithContext(ctx, i).(DatasetDelimitedTextMapOutput) } type DatasetDelimitedTextOutput struct{ *pulumi.OutputState } func (DatasetDelimitedTextOutput) ElementType() reflect.Type { return reflect.TypeOf((**DatasetDelimitedText)(nil)).Elem() } func (o DatasetDelimitedTextOutput) ToDatasetDelimitedTextOutput() DatasetDelimitedTextOutput { return o } func (o DatasetDelimitedTextOutput) ToDatasetDelimitedTextOutputWithContext(ctx context.Context) DatasetDelimitedTextOutput { return o } // A map of additional properties to associate with the Data Factory Dataset. // // The following supported locations for a Delimited Text Dataset (exactly one of them must be set): func (o DatasetDelimitedTextOutput) AdditionalProperties() pulumi.StringMapOutput { return o.ApplyT(func(v *DatasetDelimitedText) pulumi.StringMapOutput { return v.AdditionalProperties }).(pulumi.StringMapOutput) } // List of tags that can be used for describing the Data Factory Dataset. func (o DatasetDelimitedTextOutput) Annotations() pulumi.StringArrayOutput { return o.ApplyT(func(v *DatasetDelimitedText) pulumi.StringArrayOutput { return v.Annotations }).(pulumi.StringArrayOutput) } // An `azureBlobFsLocation` block as defined below. func (o DatasetDelimitedTextOutput) AzureBlobFsLocation() DatasetDelimitedTextAzureBlobFsLocationPtrOutput { return o.ApplyT(func(v *DatasetDelimitedText) DatasetDelimitedTextAzureBlobFsLocationPtrOutput { return v.AzureBlobFsLocation }).(DatasetDelimitedTextAzureBlobFsLocationPtrOutput) } // An `azureBlobStorageLocation` block as defined below. func (o DatasetDelimitedTextOutput) AzureBlobStorageLocation() DatasetDelimitedTextAzureBlobStorageLocationPtrOutput { return o.ApplyT(func(v *DatasetDelimitedText) DatasetDelimitedTextAzureBlobStorageLocationPtrOutput { return v.AzureBlobStorageLocation }).(DatasetDelimitedTextAzureBlobStorageLocationPtrOutput) } // The column delimiter. Defaults to `,`. func (o DatasetDelimitedTextOutput) ColumnDelimiter() pulumi.StringPtrOutput { return o.ApplyT(func(v *DatasetDelimitedText) pulumi.StringPtrOutput { return v.ColumnDelimiter }).(pulumi.StringPtrOutput) } // The compression codec used to read/write text files. Valid values are `None`, `bzip2`, `gzip`, `deflate`, `ZipDeflate`, `TarGzip`, `Tar`, `snappy` and `lz4`. Please note these values are case sensitive. func (o DatasetDelimitedTextOutput) CompressionCodec() pulumi.StringPtrOutput { return o.ApplyT(func(v *DatasetDelimitedText) pulumi.StringPtrOutput { return v.CompressionCodec }).(pulumi.StringPtrOutput) } // The compression ratio for the Data Factory Dataset. Valid values are `Fastest` or `Optimal`. Please note these values are case sensitive. func (o DatasetDelimitedTextOutput) CompressionLevel() pulumi.StringPtrOutput { return o.ApplyT(func(v *DatasetDelimitedText) pulumi.StringPtrOutput { return v.CompressionLevel }).(pulumi.StringPtrOutput) } // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. func (o DatasetDelimitedTextOutput) DataFactoryId() pulumi.StringOutput { return o.ApplyT(func(v *DatasetDelimitedText) pulumi.StringOutput { return v.DataFactoryId }).(pulumi.StringOutput) } // The description for the Data Factory Dataset. func (o DatasetDelimitedTextOutput) Description() pulumi.StringPtrOutput { return o.ApplyT(func(v *DatasetDelimitedText) pulumi.StringPtrOutput { return v.Description }).(pulumi.StringPtrOutput) } // The encoding format for the file. func (o DatasetDelimitedTextOutput) Encoding() pulumi.StringPtrOutput { return o.ApplyT(func(v *DatasetDelimitedText) pulumi.StringPtrOutput { return v.Encoding }).(pulumi.StringPtrOutput) } // The escape character. Defaults to `\`. func (o DatasetDelimitedTextOutput) EscapeCharacter() pulumi.StringPtrOutput { return o.ApplyT(func(v *DatasetDelimitedText) pulumi.StringPtrOutput { return v.EscapeCharacter }).(pulumi.StringPtrOutput) } // When used as input, treat the first row of data as headers. When used as output, write the headers into the output as the first row of data. Defaults to `false`. func (o DatasetDelimitedTextOutput) FirstRowAsHeader() pulumi.BoolPtrOutput { return o.ApplyT(func(v *DatasetDelimitedText) pulumi.BoolPtrOutput { return v.FirstRowAsHeader }).(pulumi.BoolPtrOutput) } // The folder that this Dataset is in. If not specified, the Dataset will appear at the root level. func (o DatasetDelimitedTextOutput) Folder() pulumi.StringPtrOutput { return o.ApplyT(func(v *DatasetDelimitedText) pulumi.StringPtrOutput { return v.Folder }).(pulumi.StringPtrOutput) } // A `httpServerLocation` block as defined below. // // The following supported arguments are specific to Delimited Text Dataset: func (o DatasetDelimitedTextOutput) HttpServerLocation() DatasetDelimitedTextHttpServerLocationPtrOutput { return o.ApplyT(func(v *DatasetDelimitedText) DatasetDelimitedTextHttpServerLocationPtrOutput { return v.HttpServerLocation }).(DatasetDelimitedTextHttpServerLocationPtrOutput) } // The Data Factory Linked Service name in which to associate the Dataset with. func (o DatasetDelimitedTextOutput) LinkedServiceName() pulumi.StringOutput { return o.ApplyT(func(v *DatasetDelimitedText) pulumi.StringOutput { return v.LinkedServiceName }).(pulumi.StringOutput) } // Specifies the name of the Data Factory Dataset. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. func (o DatasetDelimitedTextOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *DatasetDelimitedText) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // The null value string. Defaults to `""`. func (o DatasetDelimitedTextOutput) NullValue() pulumi.StringPtrOutput { return o.ApplyT(func(v *DatasetDelimitedText) pulumi.StringPtrOutput { return v.NullValue }).(pulumi.StringPtrOutput) } // A map of parameters to associate with the Data Factory Dataset. func (o DatasetDelimitedTextOutput) Parameters() pulumi.StringMapOutput { return o.ApplyT(func(v *DatasetDelimitedText) pulumi.StringMapOutput { return v.Parameters }).(pulumi.StringMapOutput) } // The quote character. Defaults to `"`. func (o DatasetDelimitedTextOutput) QuoteCharacter() pulumi.StringPtrOutput { return o.ApplyT(func(v *DatasetDelimitedText) pulumi.StringPtrOutput { return v.QuoteCharacter }).(pulumi.StringPtrOutput) } // The row delimiter. Defaults to any of the following values on read: `\r\n`, `\r`, `\n`, and `\n` or `\r\n` on write by mapping data flow and Copy activity respectively. func (o DatasetDelimitedTextOutput) RowDelimiter() pulumi.StringPtrOutput { return o.ApplyT(func(v *DatasetDelimitedText) pulumi.StringPtrOutput { return v.RowDelimiter }).(pulumi.StringPtrOutput) } // A `schemaColumn` block as defined below. func (o DatasetDelimitedTextOutput) SchemaColumns() DatasetDelimitedTextSchemaColumnArrayOutput { return o.ApplyT(func(v *DatasetDelimitedText) DatasetDelimitedTextSchemaColumnArrayOutput { return v.SchemaColumns }).(DatasetDelimitedTextSchemaColumnArrayOutput) } type DatasetDelimitedTextArrayOutput struct{ *pulumi.OutputState } func (DatasetDelimitedTextArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*DatasetDelimitedText)(nil)).Elem() } func (o DatasetDelimitedTextArrayOutput) ToDatasetDelimitedTextArrayOutput() DatasetDelimitedTextArrayOutput { return o } func (o DatasetDelimitedTextArrayOutput) ToDatasetDelimitedTextArrayOutputWithContext(ctx context.Context) DatasetDelimitedTextArrayOutput { return o } func (o DatasetDelimitedTextArrayOutput) Index(i pulumi.IntInput) DatasetDelimitedTextOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *DatasetDelimitedText { return vs[0].([]*DatasetDelimitedText)[vs[1].(int)] }).(DatasetDelimitedTextOutput) } type DatasetDelimitedTextMapOutput struct{ *pulumi.OutputState } func (DatasetDelimitedTextMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*DatasetDelimitedText)(nil)).Elem() } func (o DatasetDelimitedTextMapOutput) ToDatasetDelimitedTextMapOutput() DatasetDelimitedTextMapOutput { return o } func (o DatasetDelimitedTextMapOutput) ToDatasetDelimitedTextMapOutputWithContext(ctx context.Context) DatasetDelimitedTextMapOutput { return o } func (o DatasetDelimitedTextMapOutput) MapIndex(k pulumi.StringInput) DatasetDelimitedTextOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *DatasetDelimitedText { return vs[0].(map[string]*DatasetDelimitedText)[vs[1].(string)] }).(DatasetDelimitedTextOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*DatasetDelimitedTextInput)(nil)).Elem(), &DatasetDelimitedText{})
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/datafactory/linkedServiceAzureTableStorage.go
sdk/go/azure/datafactory/linkedServiceAzureTableStorage.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 datafactory import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a Linked Service (connection) between an Azure Table Storage and Azure Data Factory. // // ## 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/datafactory" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/storage" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { // exampleResourceGroup, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{ // Name: pulumi.String("example-resources"), // Location: pulumi.String("West Europe"), // }) // if err != nil { // return err // } // example := storage.LookupAccountOutput(ctx, storage.GetAccountOutputArgs{ // Name: pulumi.String("storageaccountname"), // ResourceGroupName: exampleResourceGroup.Name, // }, nil) // exampleFactory, err := datafactory.NewFactory(ctx, "example", &datafactory.FactoryArgs{ // Name: pulumi.String("example"), // Location: exampleResourceGroup.Location, // ResourceGroupName: exampleResourceGroup.Name, // }) // if err != nil { // return err // } // _, err = datafactory.NewLinkedServiceAzureTableStorage(ctx, "example", &datafactory.LinkedServiceAzureTableStorageArgs{ // Name: pulumi.String("example"), // DataFactoryId: exampleFactory.ID(), // ConnectionString: pulumi.String(example.ApplyT(func(example storage.GetAccountResult) (*string, error) { // return &example.PrimaryConnectionString, nil // }).(pulumi.StringPtrOutput)), // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## Import // // Data Factory Linked Service's can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:datafactory/linkedServiceAzureTableStorage:LinkedServiceAzureTableStorage example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example/providers/Microsoft.DataFactory/factories/example/linkedservices/example // ``` type LinkedServiceAzureTableStorage struct { pulumi.CustomResourceState // A map of additional properties to associate with the Data Factory Linked Service. // // The following supported arguments are specific to Azure Table Storage Linked Service: AdditionalProperties pulumi.StringMapOutput `pulumi:"additionalProperties"` // List of tags that can be used for describing the Data Factory Linked Service. Annotations pulumi.StringArrayOutput `pulumi:"annotations"` // The connection string to an Azure Storage Account. ConnectionString pulumi.StringOutput `pulumi:"connectionString"` // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId pulumi.StringOutput `pulumi:"dataFactoryId"` // The description for the Data Factory Linked Service. Description pulumi.StringPtrOutput `pulumi:"description"` // The integration runtime reference to associate with the Data Factory Linked Service. IntegrationRuntimeName pulumi.StringPtrOutput `pulumi:"integrationRuntimeName"` // Specifies the name of the Data Factory Linked Service. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringOutput `pulumi:"name"` // A map of parameters to associate with the Data Factory Linked Service. Parameters pulumi.StringMapOutput `pulumi:"parameters"` } // NewLinkedServiceAzureTableStorage registers a new resource with the given unique name, arguments, and options. func NewLinkedServiceAzureTableStorage(ctx *pulumi.Context, name string, args *LinkedServiceAzureTableStorageArgs, opts ...pulumi.ResourceOption) (*LinkedServiceAzureTableStorage, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.ConnectionString == nil { return nil, errors.New("invalid value for required argument 'ConnectionString'") } if args.DataFactoryId == nil { return nil, errors.New("invalid value for required argument 'DataFactoryId'") } if args.ConnectionString != nil { args.ConnectionString = pulumi.ToSecret(args.ConnectionString).(pulumi.StringInput) } secrets := pulumi.AdditionalSecretOutputs([]string{ "connectionString", }) opts = append(opts, secrets) opts = internal.PkgResourceDefaultOpts(opts) var resource LinkedServiceAzureTableStorage err := ctx.RegisterResource("azure:datafactory/linkedServiceAzureTableStorage:LinkedServiceAzureTableStorage", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetLinkedServiceAzureTableStorage gets an existing LinkedServiceAzureTableStorage 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 GetLinkedServiceAzureTableStorage(ctx *pulumi.Context, name string, id pulumi.IDInput, state *LinkedServiceAzureTableStorageState, opts ...pulumi.ResourceOption) (*LinkedServiceAzureTableStorage, error) { var resource LinkedServiceAzureTableStorage err := ctx.ReadResource("azure:datafactory/linkedServiceAzureTableStorage:LinkedServiceAzureTableStorage", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering LinkedServiceAzureTableStorage resources. type linkedServiceAzureTableStorageState struct { // A map of additional properties to associate with the Data Factory Linked Service. // // The following supported arguments are specific to Azure Table Storage Linked Service: AdditionalProperties map[string]string `pulumi:"additionalProperties"` // List of tags that can be used for describing the Data Factory Linked Service. Annotations []string `pulumi:"annotations"` // The connection string to an Azure Storage Account. ConnectionString *string `pulumi:"connectionString"` // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId *string `pulumi:"dataFactoryId"` // The description for the Data Factory Linked Service. Description *string `pulumi:"description"` // The integration runtime reference to associate with the Data Factory Linked Service. IntegrationRuntimeName *string `pulumi:"integrationRuntimeName"` // Specifies the name of the Data Factory Linked Service. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name *string `pulumi:"name"` // A map of parameters to associate with the Data Factory Linked Service. Parameters map[string]string `pulumi:"parameters"` } type LinkedServiceAzureTableStorageState struct { // A map of additional properties to associate with the Data Factory Linked Service. // // The following supported arguments are specific to Azure Table Storage Linked Service: AdditionalProperties pulumi.StringMapInput // List of tags that can be used for describing the Data Factory Linked Service. Annotations pulumi.StringArrayInput // The connection string to an Azure Storage Account. ConnectionString pulumi.StringPtrInput // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId pulumi.StringPtrInput // The description for the Data Factory Linked Service. Description pulumi.StringPtrInput // The integration runtime reference to associate with the Data Factory Linked Service. IntegrationRuntimeName pulumi.StringPtrInput // Specifies the name of the Data Factory Linked Service. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringPtrInput // A map of parameters to associate with the Data Factory Linked Service. Parameters pulumi.StringMapInput } func (LinkedServiceAzureTableStorageState) ElementType() reflect.Type { return reflect.TypeOf((*linkedServiceAzureTableStorageState)(nil)).Elem() } type linkedServiceAzureTableStorageArgs struct { // A map of additional properties to associate with the Data Factory Linked Service. // // The following supported arguments are specific to Azure Table Storage Linked Service: AdditionalProperties map[string]string `pulumi:"additionalProperties"` // List of tags that can be used for describing the Data Factory Linked Service. Annotations []string `pulumi:"annotations"` // The connection string to an Azure Storage Account. ConnectionString string `pulumi:"connectionString"` // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId string `pulumi:"dataFactoryId"` // The description for the Data Factory Linked Service. Description *string `pulumi:"description"` // The integration runtime reference to associate with the Data Factory Linked Service. IntegrationRuntimeName *string `pulumi:"integrationRuntimeName"` // Specifies the name of the Data Factory Linked Service. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name *string `pulumi:"name"` // A map of parameters to associate with the Data Factory Linked Service. Parameters map[string]string `pulumi:"parameters"` } // The set of arguments for constructing a LinkedServiceAzureTableStorage resource. type LinkedServiceAzureTableStorageArgs struct { // A map of additional properties to associate with the Data Factory Linked Service. // // The following supported arguments are specific to Azure Table Storage Linked Service: AdditionalProperties pulumi.StringMapInput // List of tags that can be used for describing the Data Factory Linked Service. Annotations pulumi.StringArrayInput // The connection string to an Azure Storage Account. ConnectionString pulumi.StringInput // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId pulumi.StringInput // The description for the Data Factory Linked Service. Description pulumi.StringPtrInput // The integration runtime reference to associate with the Data Factory Linked Service. IntegrationRuntimeName pulumi.StringPtrInput // Specifies the name of the Data Factory Linked Service. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringPtrInput // A map of parameters to associate with the Data Factory Linked Service. Parameters pulumi.StringMapInput } func (LinkedServiceAzureTableStorageArgs) ElementType() reflect.Type { return reflect.TypeOf((*linkedServiceAzureTableStorageArgs)(nil)).Elem() } type LinkedServiceAzureTableStorageInput interface { pulumi.Input ToLinkedServiceAzureTableStorageOutput() LinkedServiceAzureTableStorageOutput ToLinkedServiceAzureTableStorageOutputWithContext(ctx context.Context) LinkedServiceAzureTableStorageOutput } func (*LinkedServiceAzureTableStorage) ElementType() reflect.Type { return reflect.TypeOf((**LinkedServiceAzureTableStorage)(nil)).Elem() } func (i *LinkedServiceAzureTableStorage) ToLinkedServiceAzureTableStorageOutput() LinkedServiceAzureTableStorageOutput { return i.ToLinkedServiceAzureTableStorageOutputWithContext(context.Background()) } func (i *LinkedServiceAzureTableStorage) ToLinkedServiceAzureTableStorageOutputWithContext(ctx context.Context) LinkedServiceAzureTableStorageOutput { return pulumi.ToOutputWithContext(ctx, i).(LinkedServiceAzureTableStorageOutput) } // LinkedServiceAzureTableStorageArrayInput is an input type that accepts LinkedServiceAzureTableStorageArray and LinkedServiceAzureTableStorageArrayOutput values. // You can construct a concrete instance of `LinkedServiceAzureTableStorageArrayInput` via: // // LinkedServiceAzureTableStorageArray{ LinkedServiceAzureTableStorageArgs{...} } type LinkedServiceAzureTableStorageArrayInput interface { pulumi.Input ToLinkedServiceAzureTableStorageArrayOutput() LinkedServiceAzureTableStorageArrayOutput ToLinkedServiceAzureTableStorageArrayOutputWithContext(context.Context) LinkedServiceAzureTableStorageArrayOutput } type LinkedServiceAzureTableStorageArray []LinkedServiceAzureTableStorageInput func (LinkedServiceAzureTableStorageArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*LinkedServiceAzureTableStorage)(nil)).Elem() } func (i LinkedServiceAzureTableStorageArray) ToLinkedServiceAzureTableStorageArrayOutput() LinkedServiceAzureTableStorageArrayOutput { return i.ToLinkedServiceAzureTableStorageArrayOutputWithContext(context.Background()) } func (i LinkedServiceAzureTableStorageArray) ToLinkedServiceAzureTableStorageArrayOutputWithContext(ctx context.Context) LinkedServiceAzureTableStorageArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(LinkedServiceAzureTableStorageArrayOutput) } // LinkedServiceAzureTableStorageMapInput is an input type that accepts LinkedServiceAzureTableStorageMap and LinkedServiceAzureTableStorageMapOutput values. // You can construct a concrete instance of `LinkedServiceAzureTableStorageMapInput` via: // // LinkedServiceAzureTableStorageMap{ "key": LinkedServiceAzureTableStorageArgs{...} } type LinkedServiceAzureTableStorageMapInput interface { pulumi.Input ToLinkedServiceAzureTableStorageMapOutput() LinkedServiceAzureTableStorageMapOutput ToLinkedServiceAzureTableStorageMapOutputWithContext(context.Context) LinkedServiceAzureTableStorageMapOutput } type LinkedServiceAzureTableStorageMap map[string]LinkedServiceAzureTableStorageInput func (LinkedServiceAzureTableStorageMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*LinkedServiceAzureTableStorage)(nil)).Elem() } func (i LinkedServiceAzureTableStorageMap) ToLinkedServiceAzureTableStorageMapOutput() LinkedServiceAzureTableStorageMapOutput { return i.ToLinkedServiceAzureTableStorageMapOutputWithContext(context.Background()) } func (i LinkedServiceAzureTableStorageMap) ToLinkedServiceAzureTableStorageMapOutputWithContext(ctx context.Context) LinkedServiceAzureTableStorageMapOutput { return pulumi.ToOutputWithContext(ctx, i).(LinkedServiceAzureTableStorageMapOutput) } type LinkedServiceAzureTableStorageOutput struct{ *pulumi.OutputState } func (LinkedServiceAzureTableStorageOutput) ElementType() reflect.Type { return reflect.TypeOf((**LinkedServiceAzureTableStorage)(nil)).Elem() } func (o LinkedServiceAzureTableStorageOutput) ToLinkedServiceAzureTableStorageOutput() LinkedServiceAzureTableStorageOutput { return o } func (o LinkedServiceAzureTableStorageOutput) ToLinkedServiceAzureTableStorageOutputWithContext(ctx context.Context) LinkedServiceAzureTableStorageOutput { return o } // A map of additional properties to associate with the Data Factory Linked Service. // // The following supported arguments are specific to Azure Table Storage Linked Service: func (o LinkedServiceAzureTableStorageOutput) AdditionalProperties() pulumi.StringMapOutput { return o.ApplyT(func(v *LinkedServiceAzureTableStorage) pulumi.StringMapOutput { return v.AdditionalProperties }).(pulumi.StringMapOutput) } // List of tags that can be used for describing the Data Factory Linked Service. func (o LinkedServiceAzureTableStorageOutput) Annotations() pulumi.StringArrayOutput { return o.ApplyT(func(v *LinkedServiceAzureTableStorage) pulumi.StringArrayOutput { return v.Annotations }).(pulumi.StringArrayOutput) } // The connection string to an Azure Storage Account. func (o LinkedServiceAzureTableStorageOutput) ConnectionString() pulumi.StringOutput { return o.ApplyT(func(v *LinkedServiceAzureTableStorage) pulumi.StringOutput { return v.ConnectionString }).(pulumi.StringOutput) } // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. func (o LinkedServiceAzureTableStorageOutput) DataFactoryId() pulumi.StringOutput { return o.ApplyT(func(v *LinkedServiceAzureTableStorage) pulumi.StringOutput { return v.DataFactoryId }).(pulumi.StringOutput) } // The description for the Data Factory Linked Service. func (o LinkedServiceAzureTableStorageOutput) Description() pulumi.StringPtrOutput { return o.ApplyT(func(v *LinkedServiceAzureTableStorage) pulumi.StringPtrOutput { return v.Description }).(pulumi.StringPtrOutput) } // The integration runtime reference to associate with the Data Factory Linked Service. func (o LinkedServiceAzureTableStorageOutput) IntegrationRuntimeName() pulumi.StringPtrOutput { return o.ApplyT(func(v *LinkedServiceAzureTableStorage) pulumi.StringPtrOutput { return v.IntegrationRuntimeName }).(pulumi.StringPtrOutput) } // Specifies the name of the Data Factory Linked Service. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. func (o LinkedServiceAzureTableStorageOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *LinkedServiceAzureTableStorage) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // A map of parameters to associate with the Data Factory Linked Service. func (o LinkedServiceAzureTableStorageOutput) Parameters() pulumi.StringMapOutput { return o.ApplyT(func(v *LinkedServiceAzureTableStorage) pulumi.StringMapOutput { return v.Parameters }).(pulumi.StringMapOutput) } type LinkedServiceAzureTableStorageArrayOutput struct{ *pulumi.OutputState } func (LinkedServiceAzureTableStorageArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*LinkedServiceAzureTableStorage)(nil)).Elem() } func (o LinkedServiceAzureTableStorageArrayOutput) ToLinkedServiceAzureTableStorageArrayOutput() LinkedServiceAzureTableStorageArrayOutput { return o } func (o LinkedServiceAzureTableStorageArrayOutput) ToLinkedServiceAzureTableStorageArrayOutputWithContext(ctx context.Context) LinkedServiceAzureTableStorageArrayOutput { return o } func (o LinkedServiceAzureTableStorageArrayOutput) Index(i pulumi.IntInput) LinkedServiceAzureTableStorageOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *LinkedServiceAzureTableStorage { return vs[0].([]*LinkedServiceAzureTableStorage)[vs[1].(int)] }).(LinkedServiceAzureTableStorageOutput) } type LinkedServiceAzureTableStorageMapOutput struct{ *pulumi.OutputState } func (LinkedServiceAzureTableStorageMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*LinkedServiceAzureTableStorage)(nil)).Elem() } func (o LinkedServiceAzureTableStorageMapOutput) ToLinkedServiceAzureTableStorageMapOutput() LinkedServiceAzureTableStorageMapOutput { return o } func (o LinkedServiceAzureTableStorageMapOutput) ToLinkedServiceAzureTableStorageMapOutputWithContext(ctx context.Context) LinkedServiceAzureTableStorageMapOutput { return o } func (o LinkedServiceAzureTableStorageMapOutput) MapIndex(k pulumi.StringInput) LinkedServiceAzureTableStorageOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *LinkedServiceAzureTableStorage { return vs[0].(map[string]*LinkedServiceAzureTableStorage)[vs[1].(string)] }).(LinkedServiceAzureTableStorageOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*LinkedServiceAzureTableStorageInput)(nil)).Elem(), &LinkedServiceAzureTableStorage{}) pulumi.RegisterInputType(reflect.TypeOf((*LinkedServiceAzureTableStorageArrayInput)(nil)).Elem(), LinkedServiceAzureTableStorageArray{}) pulumi.RegisterInputType(reflect.TypeOf((*LinkedServiceAzureTableStorageMapInput)(nil)).Elem(), LinkedServiceAzureTableStorageMap{}) pulumi.RegisterOutputType(LinkedServiceAzureTableStorageOutput{}) pulumi.RegisterOutputType(LinkedServiceAzureTableStorageArrayOutput{}) pulumi.RegisterOutputType(LinkedServiceAzureTableStorageMapOutput{}) }
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/datafactory/integrationRuntimeSsis.go
sdk/go/azure/datafactory/integrationRuntimeSsis.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 datafactory import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a Data Factory Azure-SSIS Integration Runtime. // // ## 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/datafactory" // "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 // } // exampleFactory, err := datafactory.NewFactory(ctx, "example", &datafactory.FactoryArgs{ // Name: pulumi.String("example"), // Location: example.Location, // ResourceGroupName: example.Name, // }) // if err != nil { // return err // } // _, err = datafactory.NewIntegrationRuntimeSsis(ctx, "example", &datafactory.IntegrationRuntimeSsisArgs{ // Name: pulumi.String("example"), // DataFactoryId: exampleFactory.ID(), // Location: example.Location, // NodeSize: pulumi.String("Standard_D8_v3"), // }) // 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.DataFactory` - 2018-06-01 // // ## Import // // Data Factory Azure-SSIS Integration Runtimes can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:datafactory/integrationRuntimeSsis:IntegrationRuntimeSsis example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example/providers/Microsoft.DataFactory/factories/example/integrationRuntimes/example // ``` type IntegrationRuntimeSsis struct { pulumi.CustomResourceState // A `catalogInfo` block as defined below. CatalogInfo IntegrationRuntimeSsisCatalogInfoPtrOutput `pulumi:"catalogInfo"` // One `copyComputeScale` block as defined below. CopyComputeScale IntegrationRuntimeSsisCopyComputeScalePtrOutput `pulumi:"copyComputeScale"` // The name of a Data Factory Credential that the SSIS integration will use to access data sources. For example, `datafactory.CredentialUserManagedIdentity` // // > **Note:** If `credentialName` is omitted, the integration runtime will use the Data Factory assigned identity. CredentialName pulumi.StringPtrOutput `pulumi:"credentialName"` // A `customSetupScript` block as defined below. CustomSetupScript IntegrationRuntimeSsisCustomSetupScriptPtrOutput `pulumi:"customSetupScript"` // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId pulumi.StringOutput `pulumi:"dataFactoryId"` // Integration runtime description. Description pulumi.StringPtrOutput `pulumi:"description"` // The Azure-SSIS Integration Runtime edition. Valid values are `Standard` and `Enterprise`. Defaults to `Standard`. Edition pulumi.StringPtrOutput `pulumi:"edition"` // An `expressCustomSetup` block as defined below. ExpressCustomSetup IntegrationRuntimeSsisExpressCustomSetupPtrOutput `pulumi:"expressCustomSetup"` // A `expressVnetIntegration` block as defined below. ExpressVnetIntegration IntegrationRuntimeSsisExpressVnetIntegrationPtrOutput `pulumi:"expressVnetIntegration"` // The type of the license that is used. Valid values are `LicenseIncluded` and `BasePrice`. Defaults to `LicenseIncluded`. LicenseType pulumi.StringPtrOutput `pulumi:"licenseType"` // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location pulumi.StringOutput `pulumi:"location"` // Defines the maximum parallel executions per node. Defaults to `1`. Max is `1`. MaxParallelExecutionsPerNode pulumi.IntPtrOutput `pulumi:"maxParallelExecutionsPerNode"` // Specifies the name of the Azure-SSIS Integration Runtime. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringOutput `pulumi:"name"` // The size of the nodes on which the Azure-SSIS Integration Runtime runs. Valid values are: `Standard_D2_v3`, `Standard_D4_v3`, `Standard_D8_v3`, `Standard_D16_v3`, `Standard_D32_v3`, `Standard_D64_v3`, `Standard_E2_v3`, `Standard_E4_v3`, `Standard_E8_v3`, `Standard_E16_v3`, `Standard_E32_v3`, `Standard_E64_v3`, `Standard_D1_v2`, `Standard_D2_v2`, `Standard_D3_v2`, `Standard_D4_v2`, `Standard_A4_v2` and `Standard_A8_v2` NodeSize pulumi.StringOutput `pulumi:"nodeSize"` // Number of nodes for the Azure-SSIS Integration Runtime. Max is `10`. Defaults to `1`. NumberOfNodes pulumi.IntPtrOutput `pulumi:"numberOfNodes"` // One or more `packageStore` block as defined below. PackageStores IntegrationRuntimeSsisPackageStoreArrayOutput `pulumi:"packageStores"` // One `pipelineExternalComputeScale` block as defined below. PipelineExternalComputeScale IntegrationRuntimeSsisPipelineExternalComputeScalePtrOutput `pulumi:"pipelineExternalComputeScale"` // A `proxy` block as defined below. Proxy IntegrationRuntimeSsisProxyPtrOutput `pulumi:"proxy"` // A `vnetIntegration` block as defined below. VnetIntegration IntegrationRuntimeSsisVnetIntegrationPtrOutput `pulumi:"vnetIntegration"` } // NewIntegrationRuntimeSsis registers a new resource with the given unique name, arguments, and options. func NewIntegrationRuntimeSsis(ctx *pulumi.Context, name string, args *IntegrationRuntimeSsisArgs, opts ...pulumi.ResourceOption) (*IntegrationRuntimeSsis, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.DataFactoryId == nil { return nil, errors.New("invalid value for required argument 'DataFactoryId'") } if args.NodeSize == nil { return nil, errors.New("invalid value for required argument 'NodeSize'") } aliases := pulumi.Aliases([]pulumi.Alias{ { Type: pulumi.String("azure:datafactory/integrationRuntimeManaged:IntegrationRuntimeManaged"), }, }) opts = append(opts, aliases) opts = internal.PkgResourceDefaultOpts(opts) var resource IntegrationRuntimeSsis err := ctx.RegisterResource("azure:datafactory/integrationRuntimeSsis:IntegrationRuntimeSsis", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetIntegrationRuntimeSsis gets an existing IntegrationRuntimeSsis 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 GetIntegrationRuntimeSsis(ctx *pulumi.Context, name string, id pulumi.IDInput, state *IntegrationRuntimeSsisState, opts ...pulumi.ResourceOption) (*IntegrationRuntimeSsis, error) { var resource IntegrationRuntimeSsis err := ctx.ReadResource("azure:datafactory/integrationRuntimeSsis:IntegrationRuntimeSsis", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering IntegrationRuntimeSsis resources. type integrationRuntimeSsisState struct { // A `catalogInfo` block as defined below. CatalogInfo *IntegrationRuntimeSsisCatalogInfo `pulumi:"catalogInfo"` // One `copyComputeScale` block as defined below. CopyComputeScale *IntegrationRuntimeSsisCopyComputeScale `pulumi:"copyComputeScale"` // The name of a Data Factory Credential that the SSIS integration will use to access data sources. For example, `datafactory.CredentialUserManagedIdentity` // // > **Note:** If `credentialName` is omitted, the integration runtime will use the Data Factory assigned identity. CredentialName *string `pulumi:"credentialName"` // A `customSetupScript` block as defined below. CustomSetupScript *IntegrationRuntimeSsisCustomSetupScript `pulumi:"customSetupScript"` // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId *string `pulumi:"dataFactoryId"` // Integration runtime description. Description *string `pulumi:"description"` // The Azure-SSIS Integration Runtime edition. Valid values are `Standard` and `Enterprise`. Defaults to `Standard`. Edition *string `pulumi:"edition"` // An `expressCustomSetup` block as defined below. ExpressCustomSetup *IntegrationRuntimeSsisExpressCustomSetup `pulumi:"expressCustomSetup"` // A `expressVnetIntegration` block as defined below. ExpressVnetIntegration *IntegrationRuntimeSsisExpressVnetIntegration `pulumi:"expressVnetIntegration"` // The type of the license that is used. Valid values are `LicenseIncluded` and `BasePrice`. Defaults to `LicenseIncluded`. LicenseType *string `pulumi:"licenseType"` // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location *string `pulumi:"location"` // Defines the maximum parallel executions per node. Defaults to `1`. Max is `1`. MaxParallelExecutionsPerNode *int `pulumi:"maxParallelExecutionsPerNode"` // Specifies the name of the Azure-SSIS Integration Runtime. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name *string `pulumi:"name"` // The size of the nodes on which the Azure-SSIS Integration Runtime runs. Valid values are: `Standard_D2_v3`, `Standard_D4_v3`, `Standard_D8_v3`, `Standard_D16_v3`, `Standard_D32_v3`, `Standard_D64_v3`, `Standard_E2_v3`, `Standard_E4_v3`, `Standard_E8_v3`, `Standard_E16_v3`, `Standard_E32_v3`, `Standard_E64_v3`, `Standard_D1_v2`, `Standard_D2_v2`, `Standard_D3_v2`, `Standard_D4_v2`, `Standard_A4_v2` and `Standard_A8_v2` NodeSize *string `pulumi:"nodeSize"` // Number of nodes for the Azure-SSIS Integration Runtime. Max is `10`. Defaults to `1`. NumberOfNodes *int `pulumi:"numberOfNodes"` // One or more `packageStore` block as defined below. PackageStores []IntegrationRuntimeSsisPackageStore `pulumi:"packageStores"` // One `pipelineExternalComputeScale` block as defined below. PipelineExternalComputeScale *IntegrationRuntimeSsisPipelineExternalComputeScale `pulumi:"pipelineExternalComputeScale"` // A `proxy` block as defined below. Proxy *IntegrationRuntimeSsisProxy `pulumi:"proxy"` // A `vnetIntegration` block as defined below. VnetIntegration *IntegrationRuntimeSsisVnetIntegration `pulumi:"vnetIntegration"` } type IntegrationRuntimeSsisState struct { // A `catalogInfo` block as defined below. CatalogInfo IntegrationRuntimeSsisCatalogInfoPtrInput // One `copyComputeScale` block as defined below. CopyComputeScale IntegrationRuntimeSsisCopyComputeScalePtrInput // The name of a Data Factory Credential that the SSIS integration will use to access data sources. For example, `datafactory.CredentialUserManagedIdentity` // // > **Note:** If `credentialName` is omitted, the integration runtime will use the Data Factory assigned identity. CredentialName pulumi.StringPtrInput // A `customSetupScript` block as defined below. CustomSetupScript IntegrationRuntimeSsisCustomSetupScriptPtrInput // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId pulumi.StringPtrInput // Integration runtime description. Description pulumi.StringPtrInput // The Azure-SSIS Integration Runtime edition. Valid values are `Standard` and `Enterprise`. Defaults to `Standard`. Edition pulumi.StringPtrInput // An `expressCustomSetup` block as defined below. ExpressCustomSetup IntegrationRuntimeSsisExpressCustomSetupPtrInput // A `expressVnetIntegration` block as defined below. ExpressVnetIntegration IntegrationRuntimeSsisExpressVnetIntegrationPtrInput // The type of the license that is used. Valid values are `LicenseIncluded` and `BasePrice`. Defaults to `LicenseIncluded`. LicenseType pulumi.StringPtrInput // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location pulumi.StringPtrInput // Defines the maximum parallel executions per node. Defaults to `1`. Max is `1`. MaxParallelExecutionsPerNode pulumi.IntPtrInput // Specifies the name of the Azure-SSIS Integration Runtime. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringPtrInput // The size of the nodes on which the Azure-SSIS Integration Runtime runs. Valid values are: `Standard_D2_v3`, `Standard_D4_v3`, `Standard_D8_v3`, `Standard_D16_v3`, `Standard_D32_v3`, `Standard_D64_v3`, `Standard_E2_v3`, `Standard_E4_v3`, `Standard_E8_v3`, `Standard_E16_v3`, `Standard_E32_v3`, `Standard_E64_v3`, `Standard_D1_v2`, `Standard_D2_v2`, `Standard_D3_v2`, `Standard_D4_v2`, `Standard_A4_v2` and `Standard_A8_v2` NodeSize pulumi.StringPtrInput // Number of nodes for the Azure-SSIS Integration Runtime. Max is `10`. Defaults to `1`. NumberOfNodes pulumi.IntPtrInput // One or more `packageStore` block as defined below. PackageStores IntegrationRuntimeSsisPackageStoreArrayInput // One `pipelineExternalComputeScale` block as defined below. PipelineExternalComputeScale IntegrationRuntimeSsisPipelineExternalComputeScalePtrInput // A `proxy` block as defined below. Proxy IntegrationRuntimeSsisProxyPtrInput // A `vnetIntegration` block as defined below. VnetIntegration IntegrationRuntimeSsisVnetIntegrationPtrInput } func (IntegrationRuntimeSsisState) ElementType() reflect.Type { return reflect.TypeOf((*integrationRuntimeSsisState)(nil)).Elem() } type integrationRuntimeSsisArgs struct { // A `catalogInfo` block as defined below. CatalogInfo *IntegrationRuntimeSsisCatalogInfo `pulumi:"catalogInfo"` // One `copyComputeScale` block as defined below. CopyComputeScale *IntegrationRuntimeSsisCopyComputeScale `pulumi:"copyComputeScale"` // The name of a Data Factory Credential that the SSIS integration will use to access data sources. For example, `datafactory.CredentialUserManagedIdentity` // // > **Note:** If `credentialName` is omitted, the integration runtime will use the Data Factory assigned identity. CredentialName *string `pulumi:"credentialName"` // A `customSetupScript` block as defined below. CustomSetupScript *IntegrationRuntimeSsisCustomSetupScript `pulumi:"customSetupScript"` // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId string `pulumi:"dataFactoryId"` // Integration runtime description. Description *string `pulumi:"description"` // The Azure-SSIS Integration Runtime edition. Valid values are `Standard` and `Enterprise`. Defaults to `Standard`. Edition *string `pulumi:"edition"` // An `expressCustomSetup` block as defined below. ExpressCustomSetup *IntegrationRuntimeSsisExpressCustomSetup `pulumi:"expressCustomSetup"` // A `expressVnetIntegration` block as defined below. ExpressVnetIntegration *IntegrationRuntimeSsisExpressVnetIntegration `pulumi:"expressVnetIntegration"` // The type of the license that is used. Valid values are `LicenseIncluded` and `BasePrice`. Defaults to `LicenseIncluded`. LicenseType *string `pulumi:"licenseType"` // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location *string `pulumi:"location"` // Defines the maximum parallel executions per node. Defaults to `1`. Max is `1`. MaxParallelExecutionsPerNode *int `pulumi:"maxParallelExecutionsPerNode"` // Specifies the name of the Azure-SSIS Integration Runtime. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name *string `pulumi:"name"` // The size of the nodes on which the Azure-SSIS Integration Runtime runs. Valid values are: `Standard_D2_v3`, `Standard_D4_v3`, `Standard_D8_v3`, `Standard_D16_v3`, `Standard_D32_v3`, `Standard_D64_v3`, `Standard_E2_v3`, `Standard_E4_v3`, `Standard_E8_v3`, `Standard_E16_v3`, `Standard_E32_v3`, `Standard_E64_v3`, `Standard_D1_v2`, `Standard_D2_v2`, `Standard_D3_v2`, `Standard_D4_v2`, `Standard_A4_v2` and `Standard_A8_v2` NodeSize string `pulumi:"nodeSize"` // Number of nodes for the Azure-SSIS Integration Runtime. Max is `10`. Defaults to `1`. NumberOfNodes *int `pulumi:"numberOfNodes"` // One or more `packageStore` block as defined below. PackageStores []IntegrationRuntimeSsisPackageStore `pulumi:"packageStores"` // One `pipelineExternalComputeScale` block as defined below. PipelineExternalComputeScale *IntegrationRuntimeSsisPipelineExternalComputeScale `pulumi:"pipelineExternalComputeScale"` // A `proxy` block as defined below. Proxy *IntegrationRuntimeSsisProxy `pulumi:"proxy"` // A `vnetIntegration` block as defined below. VnetIntegration *IntegrationRuntimeSsisVnetIntegration `pulumi:"vnetIntegration"` } // The set of arguments for constructing a IntegrationRuntimeSsis resource. type IntegrationRuntimeSsisArgs struct { // A `catalogInfo` block as defined below. CatalogInfo IntegrationRuntimeSsisCatalogInfoPtrInput // One `copyComputeScale` block as defined below. CopyComputeScale IntegrationRuntimeSsisCopyComputeScalePtrInput // The name of a Data Factory Credential that the SSIS integration will use to access data sources. For example, `datafactory.CredentialUserManagedIdentity` // // > **Note:** If `credentialName` is omitted, the integration runtime will use the Data Factory assigned identity. CredentialName pulumi.StringPtrInput // A `customSetupScript` block as defined below. CustomSetupScript IntegrationRuntimeSsisCustomSetupScriptPtrInput // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId pulumi.StringInput // Integration runtime description. Description pulumi.StringPtrInput // The Azure-SSIS Integration Runtime edition. Valid values are `Standard` and `Enterprise`. Defaults to `Standard`. Edition pulumi.StringPtrInput // An `expressCustomSetup` block as defined below. ExpressCustomSetup IntegrationRuntimeSsisExpressCustomSetupPtrInput // A `expressVnetIntegration` block as defined below. ExpressVnetIntegration IntegrationRuntimeSsisExpressVnetIntegrationPtrInput // The type of the license that is used. Valid values are `LicenseIncluded` and `BasePrice`. Defaults to `LicenseIncluded`. LicenseType pulumi.StringPtrInput // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location pulumi.StringPtrInput // Defines the maximum parallel executions per node. Defaults to `1`. Max is `1`. MaxParallelExecutionsPerNode pulumi.IntPtrInput // Specifies the name of the Azure-SSIS Integration Runtime. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringPtrInput // The size of the nodes on which the Azure-SSIS Integration Runtime runs. Valid values are: `Standard_D2_v3`, `Standard_D4_v3`, `Standard_D8_v3`, `Standard_D16_v3`, `Standard_D32_v3`, `Standard_D64_v3`, `Standard_E2_v3`, `Standard_E4_v3`, `Standard_E8_v3`, `Standard_E16_v3`, `Standard_E32_v3`, `Standard_E64_v3`, `Standard_D1_v2`, `Standard_D2_v2`, `Standard_D3_v2`, `Standard_D4_v2`, `Standard_A4_v2` and `Standard_A8_v2` NodeSize pulumi.StringInput // Number of nodes for the Azure-SSIS Integration Runtime. Max is `10`. Defaults to `1`. NumberOfNodes pulumi.IntPtrInput // One or more `packageStore` block as defined below. PackageStores IntegrationRuntimeSsisPackageStoreArrayInput // One `pipelineExternalComputeScale` block as defined below. PipelineExternalComputeScale IntegrationRuntimeSsisPipelineExternalComputeScalePtrInput // A `proxy` block as defined below. Proxy IntegrationRuntimeSsisProxyPtrInput // A `vnetIntegration` block as defined below. VnetIntegration IntegrationRuntimeSsisVnetIntegrationPtrInput } func (IntegrationRuntimeSsisArgs) ElementType() reflect.Type { return reflect.TypeOf((*integrationRuntimeSsisArgs)(nil)).Elem() } type IntegrationRuntimeSsisInput interface { pulumi.Input ToIntegrationRuntimeSsisOutput() IntegrationRuntimeSsisOutput ToIntegrationRuntimeSsisOutputWithContext(ctx context.Context) IntegrationRuntimeSsisOutput } func (*IntegrationRuntimeSsis) ElementType() reflect.Type { return reflect.TypeOf((**IntegrationRuntimeSsis)(nil)).Elem() } func (i *IntegrationRuntimeSsis) ToIntegrationRuntimeSsisOutput() IntegrationRuntimeSsisOutput { return i.ToIntegrationRuntimeSsisOutputWithContext(context.Background()) } func (i *IntegrationRuntimeSsis) ToIntegrationRuntimeSsisOutputWithContext(ctx context.Context) IntegrationRuntimeSsisOutput { return pulumi.ToOutputWithContext(ctx, i).(IntegrationRuntimeSsisOutput) } // IntegrationRuntimeSsisArrayInput is an input type that accepts IntegrationRuntimeSsisArray and IntegrationRuntimeSsisArrayOutput values. // You can construct a concrete instance of `IntegrationRuntimeSsisArrayInput` via: // // IntegrationRuntimeSsisArray{ IntegrationRuntimeSsisArgs{...} } type IntegrationRuntimeSsisArrayInput interface { pulumi.Input ToIntegrationRuntimeSsisArrayOutput() IntegrationRuntimeSsisArrayOutput ToIntegrationRuntimeSsisArrayOutputWithContext(context.Context) IntegrationRuntimeSsisArrayOutput } type IntegrationRuntimeSsisArray []IntegrationRuntimeSsisInput func (IntegrationRuntimeSsisArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*IntegrationRuntimeSsis)(nil)).Elem() } func (i IntegrationRuntimeSsisArray) ToIntegrationRuntimeSsisArrayOutput() IntegrationRuntimeSsisArrayOutput { return i.ToIntegrationRuntimeSsisArrayOutputWithContext(context.Background()) } func (i IntegrationRuntimeSsisArray) ToIntegrationRuntimeSsisArrayOutputWithContext(ctx context.Context) IntegrationRuntimeSsisArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(IntegrationRuntimeSsisArrayOutput) } // IntegrationRuntimeSsisMapInput is an input type that accepts IntegrationRuntimeSsisMap and IntegrationRuntimeSsisMapOutput values. // You can construct a concrete instance of `IntegrationRuntimeSsisMapInput` via: // // IntegrationRuntimeSsisMap{ "key": IntegrationRuntimeSsisArgs{...} } type IntegrationRuntimeSsisMapInput interface { pulumi.Input ToIntegrationRuntimeSsisMapOutput() IntegrationRuntimeSsisMapOutput ToIntegrationRuntimeSsisMapOutputWithContext(context.Context) IntegrationRuntimeSsisMapOutput } type IntegrationRuntimeSsisMap map[string]IntegrationRuntimeSsisInput func (IntegrationRuntimeSsisMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*IntegrationRuntimeSsis)(nil)).Elem() } func (i IntegrationRuntimeSsisMap) ToIntegrationRuntimeSsisMapOutput() IntegrationRuntimeSsisMapOutput { return i.ToIntegrationRuntimeSsisMapOutputWithContext(context.Background()) } func (i IntegrationRuntimeSsisMap) ToIntegrationRuntimeSsisMapOutputWithContext(ctx context.Context) IntegrationRuntimeSsisMapOutput { return pulumi.ToOutputWithContext(ctx, i).(IntegrationRuntimeSsisMapOutput) } type IntegrationRuntimeSsisOutput struct{ *pulumi.OutputState } func (IntegrationRuntimeSsisOutput) ElementType() reflect.Type { return reflect.TypeOf((**IntegrationRuntimeSsis)(nil)).Elem() } func (o IntegrationRuntimeSsisOutput) ToIntegrationRuntimeSsisOutput() IntegrationRuntimeSsisOutput { return o } func (o IntegrationRuntimeSsisOutput) ToIntegrationRuntimeSsisOutputWithContext(ctx context.Context) IntegrationRuntimeSsisOutput { return o } // A `catalogInfo` block as defined below. func (o IntegrationRuntimeSsisOutput) CatalogInfo() IntegrationRuntimeSsisCatalogInfoPtrOutput { return o.ApplyT(func(v *IntegrationRuntimeSsis) IntegrationRuntimeSsisCatalogInfoPtrOutput { return v.CatalogInfo }).(IntegrationRuntimeSsisCatalogInfoPtrOutput) } // One `copyComputeScale` block as defined below. func (o IntegrationRuntimeSsisOutput) CopyComputeScale() IntegrationRuntimeSsisCopyComputeScalePtrOutput { return o.ApplyT(func(v *IntegrationRuntimeSsis) IntegrationRuntimeSsisCopyComputeScalePtrOutput { return v.CopyComputeScale }).(IntegrationRuntimeSsisCopyComputeScalePtrOutput) } // The name of a Data Factory Credential that the SSIS integration will use to access data sources. For example, `datafactory.CredentialUserManagedIdentity` // // > **Note:** If `credentialName` is omitted, the integration runtime will use the Data Factory assigned identity. func (o IntegrationRuntimeSsisOutput) CredentialName() pulumi.StringPtrOutput { return o.ApplyT(func(v *IntegrationRuntimeSsis) pulumi.StringPtrOutput { return v.CredentialName }).(pulumi.StringPtrOutput) } // A `customSetupScript` block as defined below. func (o IntegrationRuntimeSsisOutput) CustomSetupScript() IntegrationRuntimeSsisCustomSetupScriptPtrOutput { return o.ApplyT(func(v *IntegrationRuntimeSsis) IntegrationRuntimeSsisCustomSetupScriptPtrOutput { return v.CustomSetupScript }).(IntegrationRuntimeSsisCustomSetupScriptPtrOutput) } // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. func (o IntegrationRuntimeSsisOutput) DataFactoryId() pulumi.StringOutput { return o.ApplyT(func(v *IntegrationRuntimeSsis) pulumi.StringOutput { return v.DataFactoryId }).(pulumi.StringOutput) } // Integration runtime description. func (o IntegrationRuntimeSsisOutput) Description() pulumi.StringPtrOutput { return o.ApplyT(func(v *IntegrationRuntimeSsis) pulumi.StringPtrOutput { return v.Description }).(pulumi.StringPtrOutput) } // The Azure-SSIS Integration Runtime edition. Valid values are `Standard` and `Enterprise`. Defaults to `Standard`. func (o IntegrationRuntimeSsisOutput) Edition() pulumi.StringPtrOutput { return o.ApplyT(func(v *IntegrationRuntimeSsis) pulumi.StringPtrOutput { return v.Edition }).(pulumi.StringPtrOutput) } // An `expressCustomSetup` block as defined below. func (o IntegrationRuntimeSsisOutput) ExpressCustomSetup() IntegrationRuntimeSsisExpressCustomSetupPtrOutput { return o.ApplyT(func(v *IntegrationRuntimeSsis) IntegrationRuntimeSsisExpressCustomSetupPtrOutput { return v.ExpressCustomSetup }).(IntegrationRuntimeSsisExpressCustomSetupPtrOutput) } // A `expressVnetIntegration` block as defined below. func (o IntegrationRuntimeSsisOutput) ExpressVnetIntegration() IntegrationRuntimeSsisExpressVnetIntegrationPtrOutput { return o.ApplyT(func(v *IntegrationRuntimeSsis) IntegrationRuntimeSsisExpressVnetIntegrationPtrOutput { return v.ExpressVnetIntegration }).(IntegrationRuntimeSsisExpressVnetIntegrationPtrOutput) } // The type of the license that is used. Valid values are `LicenseIncluded` and `BasePrice`. Defaults to `LicenseIncluded`. func (o IntegrationRuntimeSsisOutput) LicenseType() pulumi.StringPtrOutput { return o.ApplyT(func(v *IntegrationRuntimeSsis) pulumi.StringPtrOutput { return v.LicenseType }).(pulumi.StringPtrOutput) } // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. func (o IntegrationRuntimeSsisOutput) Location() pulumi.StringOutput { return o.ApplyT(func(v *IntegrationRuntimeSsis) pulumi.StringOutput { return v.Location }).(pulumi.StringOutput) } // Defines the maximum parallel executions per node. Defaults to `1`. Max is `1`. func (o IntegrationRuntimeSsisOutput) MaxParallelExecutionsPerNode() pulumi.IntPtrOutput { return o.ApplyT(func(v *IntegrationRuntimeSsis) pulumi.IntPtrOutput { return v.MaxParallelExecutionsPerNode }).(pulumi.IntPtrOutput) } // Specifies the name of the Azure-SSIS Integration Runtime. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. func (o IntegrationRuntimeSsisOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *IntegrationRuntimeSsis) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // The size of the nodes on which the Azure-SSIS Integration Runtime runs. Valid values are: `Standard_D2_v3`, `Standard_D4_v3`, `Standard_D8_v3`, `Standard_D16_v3`, `Standard_D32_v3`, `Standard_D64_v3`, `Standard_E2_v3`, `Standard_E4_v3`, `Standard_E8_v3`, `Standard_E16_v3`, `Standard_E32_v3`, `Standard_E64_v3`, `Standard_D1_v2`, `Standard_D2_v2`, `Standard_D3_v2`, `Standard_D4_v2`, `Standard_A4_v2` and `Standard_A8_v2` func (o IntegrationRuntimeSsisOutput) NodeSize() pulumi.StringOutput { return o.ApplyT(func(v *IntegrationRuntimeSsis) pulumi.StringOutput { return v.NodeSize }).(pulumi.StringOutput) } // Number of nodes for the Azure-SSIS Integration Runtime. Max is `10`. Defaults to `1`. func (o IntegrationRuntimeSsisOutput) NumberOfNodes() pulumi.IntPtrOutput { return o.ApplyT(func(v *IntegrationRuntimeSsis) pulumi.IntPtrOutput { return v.NumberOfNodes }).(pulumi.IntPtrOutput) } // One or more `packageStore` block as defined below. func (o IntegrationRuntimeSsisOutput) PackageStores() IntegrationRuntimeSsisPackageStoreArrayOutput { return o.ApplyT(func(v *IntegrationRuntimeSsis) IntegrationRuntimeSsisPackageStoreArrayOutput { return v.PackageStores }).(IntegrationRuntimeSsisPackageStoreArrayOutput) } // One `pipelineExternalComputeScale` block as defined below. func (o IntegrationRuntimeSsisOutput) PipelineExternalComputeScale() IntegrationRuntimeSsisPipelineExternalComputeScalePtrOutput { return o.ApplyT(func(v *IntegrationRuntimeSsis) IntegrationRuntimeSsisPipelineExternalComputeScalePtrOutput { return v.PipelineExternalComputeScale }).(IntegrationRuntimeSsisPipelineExternalComputeScalePtrOutput) } // A `proxy` block as defined below. func (o IntegrationRuntimeSsisOutput) Proxy() IntegrationRuntimeSsisProxyPtrOutput { return o.ApplyT(func(v *IntegrationRuntimeSsis) IntegrationRuntimeSsisProxyPtrOutput { return v.Proxy }).(IntegrationRuntimeSsisProxyPtrOutput) } // A `vnetIntegration` block as defined below. func (o IntegrationRuntimeSsisOutput) VnetIntegration() IntegrationRuntimeSsisVnetIntegrationPtrOutput { return o.ApplyT(func(v *IntegrationRuntimeSsis) IntegrationRuntimeSsisVnetIntegrationPtrOutput { return v.VnetIntegration }).(IntegrationRuntimeSsisVnetIntegrationPtrOutput) } type IntegrationRuntimeSsisArrayOutput struct{ *pulumi.OutputState } func (IntegrationRuntimeSsisArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*IntegrationRuntimeSsis)(nil)).Elem() } func (o IntegrationRuntimeSsisArrayOutput) ToIntegrationRuntimeSsisArrayOutput() IntegrationRuntimeSsisArrayOutput { return o } func (o IntegrationRuntimeSsisArrayOutput) ToIntegrationRuntimeSsisArrayOutputWithContext(ctx context.Context) IntegrationRuntimeSsisArrayOutput { return o } func (o IntegrationRuntimeSsisArrayOutput) Index(i pulumi.IntInput) IntegrationRuntimeSsisOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *IntegrationRuntimeSsis { return vs[0].([]*IntegrationRuntimeSsis)[vs[1].(int)] }).(IntegrationRuntimeSsisOutput) } type IntegrationRuntimeSsisMapOutput struct{ *pulumi.OutputState } func (IntegrationRuntimeSsisMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*IntegrationRuntimeSsis)(nil)).Elem() } func (o IntegrationRuntimeSsisMapOutput) ToIntegrationRuntimeSsisMapOutput() IntegrationRuntimeSsisMapOutput { return o } func (o IntegrationRuntimeSsisMapOutput) ToIntegrationRuntimeSsisMapOutputWithContext(ctx context.Context) IntegrationRuntimeSsisMapOutput { return o } func (o IntegrationRuntimeSsisMapOutput) MapIndex(k pulumi.StringInput) IntegrationRuntimeSsisOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *IntegrationRuntimeSsis { return vs[0].(map[string]*IntegrationRuntimeSsis)[vs[1].(string)] }).(IntegrationRuntimeSsisOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*IntegrationRuntimeSsisInput)(nil)).Elem(), &IntegrationRuntimeSsis{}) pulumi.RegisterInputType(reflect.TypeOf((*IntegrationRuntimeSsisArrayInput)(nil)).Elem(), IntegrationRuntimeSsisArray{})
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/datafactory/linkedServiceSqlServer.go
sdk/go/azure/datafactory/linkedServiceSqlServer.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 datafactory import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a Linked Service (connection) between a SQL Server and Azure Data Factory. // // ## 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/datafactory" // "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 // } // exampleFactory, err := datafactory.NewFactory(ctx, "example", &datafactory.FactoryArgs{ // Name: pulumi.String("example"), // Location: example.Location, // ResourceGroupName: example.Name, // }) // if err != nil { // return err // } // _, err = datafactory.NewLinkedServiceSqlServer(ctx, "example", &datafactory.LinkedServiceSqlServerArgs{ // Name: pulumi.String("example"), // DataFactoryId: exampleFactory.ID(), // ConnectionString: pulumi.String("Integrated Security=False;Data Source=test;Initial Catalog=test;User ID=test;Password=test"), // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ### With Password In Key Vault // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/datafactory" // "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 { // 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 // } // exampleKeyVault, err := keyvault.NewKeyVault(ctx, "example", &keyvault.KeyVaultArgs{ // Name: pulumi.String("example"), // Location: example.Location, // ResourceGroupName: example.Name, // TenantId: pulumi.String(current.TenantId), // SkuName: pulumi.String("standard"), // }) // if err != nil { // return err // } // exampleFactory, err := datafactory.NewFactory(ctx, "example", &datafactory.FactoryArgs{ // Name: pulumi.String("example"), // Location: example.Location, // ResourceGroupName: example.Name, // }) // if err != nil { // return err // } // exampleLinkedServiceKeyVault, err := datafactory.NewLinkedServiceKeyVault(ctx, "example", &datafactory.LinkedServiceKeyVaultArgs{ // Name: pulumi.String("kvlink"), // DataFactoryId: exampleFactory.ID(), // KeyVaultId: exampleKeyVault.ID(), // }) // if err != nil { // return err // } // _, err = datafactory.NewLinkedServiceSqlServer(ctx, "example", &datafactory.LinkedServiceSqlServerArgs{ // Name: pulumi.String("example"), // DataFactoryId: exampleFactory.ID(), // ConnectionString: pulumi.String("Integrated Security=False;Data Source=test;Initial Catalog=test;User ID=test;"), // KeyVaultPassword: &datafactory.LinkedServiceSqlServerKeyVaultPasswordArgs{ // LinkedServiceName: exampleLinkedServiceKeyVault.Name, // SecretName: pulumi.String("secret"), // }, // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## Import // // Data Factory SQL Server Linked Service's can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:datafactory/linkedServiceSqlServer:LinkedServiceSqlServer example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example/providers/Microsoft.DataFactory/factories/example/linkedservices/example // ``` type LinkedServiceSqlServer struct { pulumi.CustomResourceState // A map of additional properties to associate with the Data Factory Linked Service SQL Server. AdditionalProperties pulumi.StringMapOutput `pulumi:"additionalProperties"` // List of tags that can be used for describing the Data Factory Linked Service SQL Server. Annotations pulumi.StringArrayOutput `pulumi:"annotations"` // The connection string in which to authenticate with the SQL Server. Exactly one of either `connectionString` or `keyVaultConnectionString` is required. ConnectionString pulumi.StringPtrOutput `pulumi:"connectionString"` // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId pulumi.StringOutput `pulumi:"dataFactoryId"` // The description for the Data Factory Linked Service SQL Server. Description pulumi.StringPtrOutput `pulumi:"description"` // The integration runtime reference to associate with the Data Factory Linked Service SQL Server. IntegrationRuntimeName pulumi.StringPtrOutput `pulumi:"integrationRuntimeName"` // A `keyVaultConnectionString` block as defined below. Use this argument to store SQL Server connection string in an existing Key Vault. It needs an existing Key Vault Data Factory Linked Service. Exactly one of either `connectionString` or `keyVaultConnectionString` is required. KeyVaultConnectionString LinkedServiceSqlServerKeyVaultConnectionStringPtrOutput `pulumi:"keyVaultConnectionString"` // A `keyVaultPassword` block as defined below. Use this argument to store SQL Server password in an existing Key Vault. It needs an existing Key Vault Data Factory Linked Service. KeyVaultPassword LinkedServiceSqlServerKeyVaultPasswordPtrOutput `pulumi:"keyVaultPassword"` // Specifies the name of the Data Factory Linked Service SQL Server. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringOutput `pulumi:"name"` // A map of parameters to associate with the Data Factory Linked Service SQL Server. Parameters pulumi.StringMapOutput `pulumi:"parameters"` // The on-premises Windows authentication user name. UserName pulumi.StringPtrOutput `pulumi:"userName"` } // NewLinkedServiceSqlServer registers a new resource with the given unique name, arguments, and options. func NewLinkedServiceSqlServer(ctx *pulumi.Context, name string, args *LinkedServiceSqlServerArgs, opts ...pulumi.ResourceOption) (*LinkedServiceSqlServer, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.DataFactoryId == nil { return nil, errors.New("invalid value for required argument 'DataFactoryId'") } opts = internal.PkgResourceDefaultOpts(opts) var resource LinkedServiceSqlServer err := ctx.RegisterResource("azure:datafactory/linkedServiceSqlServer:LinkedServiceSqlServer", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetLinkedServiceSqlServer gets an existing LinkedServiceSqlServer 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 GetLinkedServiceSqlServer(ctx *pulumi.Context, name string, id pulumi.IDInput, state *LinkedServiceSqlServerState, opts ...pulumi.ResourceOption) (*LinkedServiceSqlServer, error) { var resource LinkedServiceSqlServer err := ctx.ReadResource("azure:datafactory/linkedServiceSqlServer:LinkedServiceSqlServer", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering LinkedServiceSqlServer resources. type linkedServiceSqlServerState struct { // A map of additional properties to associate with the Data Factory Linked Service SQL Server. AdditionalProperties map[string]string `pulumi:"additionalProperties"` // List of tags that can be used for describing the Data Factory Linked Service SQL Server. Annotations []string `pulumi:"annotations"` // The connection string in which to authenticate with the SQL Server. Exactly one of either `connectionString` or `keyVaultConnectionString` is required. ConnectionString *string `pulumi:"connectionString"` // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId *string `pulumi:"dataFactoryId"` // The description for the Data Factory Linked Service SQL Server. Description *string `pulumi:"description"` // The integration runtime reference to associate with the Data Factory Linked Service SQL Server. IntegrationRuntimeName *string `pulumi:"integrationRuntimeName"` // A `keyVaultConnectionString` block as defined below. Use this argument to store SQL Server connection string in an existing Key Vault. It needs an existing Key Vault Data Factory Linked Service. Exactly one of either `connectionString` or `keyVaultConnectionString` is required. KeyVaultConnectionString *LinkedServiceSqlServerKeyVaultConnectionString `pulumi:"keyVaultConnectionString"` // A `keyVaultPassword` block as defined below. Use this argument to store SQL Server password in an existing Key Vault. It needs an existing Key Vault Data Factory Linked Service. KeyVaultPassword *LinkedServiceSqlServerKeyVaultPassword `pulumi:"keyVaultPassword"` // Specifies the name of the Data Factory Linked Service SQL Server. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name *string `pulumi:"name"` // A map of parameters to associate with the Data Factory Linked Service SQL Server. Parameters map[string]string `pulumi:"parameters"` // The on-premises Windows authentication user name. UserName *string `pulumi:"userName"` } type LinkedServiceSqlServerState struct { // A map of additional properties to associate with the Data Factory Linked Service SQL Server. AdditionalProperties pulumi.StringMapInput // List of tags that can be used for describing the Data Factory Linked Service SQL Server. Annotations pulumi.StringArrayInput // The connection string in which to authenticate with the SQL Server. Exactly one of either `connectionString` or `keyVaultConnectionString` is required. ConnectionString pulumi.StringPtrInput // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId pulumi.StringPtrInput // The description for the Data Factory Linked Service SQL Server. Description pulumi.StringPtrInput // The integration runtime reference to associate with the Data Factory Linked Service SQL Server. IntegrationRuntimeName pulumi.StringPtrInput // A `keyVaultConnectionString` block as defined below. Use this argument to store SQL Server connection string in an existing Key Vault. It needs an existing Key Vault Data Factory Linked Service. Exactly one of either `connectionString` or `keyVaultConnectionString` is required. KeyVaultConnectionString LinkedServiceSqlServerKeyVaultConnectionStringPtrInput // A `keyVaultPassword` block as defined below. Use this argument to store SQL Server password in an existing Key Vault. It needs an existing Key Vault Data Factory Linked Service. KeyVaultPassword LinkedServiceSqlServerKeyVaultPasswordPtrInput // Specifies the name of the Data Factory Linked Service SQL Server. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringPtrInput // A map of parameters to associate with the Data Factory Linked Service SQL Server. Parameters pulumi.StringMapInput // The on-premises Windows authentication user name. UserName pulumi.StringPtrInput } func (LinkedServiceSqlServerState) ElementType() reflect.Type { return reflect.TypeOf((*linkedServiceSqlServerState)(nil)).Elem() } type linkedServiceSqlServerArgs struct { // A map of additional properties to associate with the Data Factory Linked Service SQL Server. AdditionalProperties map[string]string `pulumi:"additionalProperties"` // List of tags that can be used for describing the Data Factory Linked Service SQL Server. Annotations []string `pulumi:"annotations"` // The connection string in which to authenticate with the SQL Server. Exactly one of either `connectionString` or `keyVaultConnectionString` is required. ConnectionString *string `pulumi:"connectionString"` // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId string `pulumi:"dataFactoryId"` // The description for the Data Factory Linked Service SQL Server. Description *string `pulumi:"description"` // The integration runtime reference to associate with the Data Factory Linked Service SQL Server. IntegrationRuntimeName *string `pulumi:"integrationRuntimeName"` // A `keyVaultConnectionString` block as defined below. Use this argument to store SQL Server connection string in an existing Key Vault. It needs an existing Key Vault Data Factory Linked Service. Exactly one of either `connectionString` or `keyVaultConnectionString` is required. KeyVaultConnectionString *LinkedServiceSqlServerKeyVaultConnectionString `pulumi:"keyVaultConnectionString"` // A `keyVaultPassword` block as defined below. Use this argument to store SQL Server password in an existing Key Vault. It needs an existing Key Vault Data Factory Linked Service. KeyVaultPassword *LinkedServiceSqlServerKeyVaultPassword `pulumi:"keyVaultPassword"` // Specifies the name of the Data Factory Linked Service SQL Server. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name *string `pulumi:"name"` // A map of parameters to associate with the Data Factory Linked Service SQL Server. Parameters map[string]string `pulumi:"parameters"` // The on-premises Windows authentication user name. UserName *string `pulumi:"userName"` } // The set of arguments for constructing a LinkedServiceSqlServer resource. type LinkedServiceSqlServerArgs struct { // A map of additional properties to associate with the Data Factory Linked Service SQL Server. AdditionalProperties pulumi.StringMapInput // List of tags that can be used for describing the Data Factory Linked Service SQL Server. Annotations pulumi.StringArrayInput // The connection string in which to authenticate with the SQL Server. Exactly one of either `connectionString` or `keyVaultConnectionString` is required. ConnectionString pulumi.StringPtrInput // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId pulumi.StringInput // The description for the Data Factory Linked Service SQL Server. Description pulumi.StringPtrInput // The integration runtime reference to associate with the Data Factory Linked Service SQL Server. IntegrationRuntimeName pulumi.StringPtrInput // A `keyVaultConnectionString` block as defined below. Use this argument to store SQL Server connection string in an existing Key Vault. It needs an existing Key Vault Data Factory Linked Service. Exactly one of either `connectionString` or `keyVaultConnectionString` is required. KeyVaultConnectionString LinkedServiceSqlServerKeyVaultConnectionStringPtrInput // A `keyVaultPassword` block as defined below. Use this argument to store SQL Server password in an existing Key Vault. It needs an existing Key Vault Data Factory Linked Service. KeyVaultPassword LinkedServiceSqlServerKeyVaultPasswordPtrInput // Specifies the name of the Data Factory Linked Service SQL Server. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringPtrInput // A map of parameters to associate with the Data Factory Linked Service SQL Server. Parameters pulumi.StringMapInput // The on-premises Windows authentication user name. UserName pulumi.StringPtrInput } func (LinkedServiceSqlServerArgs) ElementType() reflect.Type { return reflect.TypeOf((*linkedServiceSqlServerArgs)(nil)).Elem() } type LinkedServiceSqlServerInput interface { pulumi.Input ToLinkedServiceSqlServerOutput() LinkedServiceSqlServerOutput ToLinkedServiceSqlServerOutputWithContext(ctx context.Context) LinkedServiceSqlServerOutput } func (*LinkedServiceSqlServer) ElementType() reflect.Type { return reflect.TypeOf((**LinkedServiceSqlServer)(nil)).Elem() } func (i *LinkedServiceSqlServer) ToLinkedServiceSqlServerOutput() LinkedServiceSqlServerOutput { return i.ToLinkedServiceSqlServerOutputWithContext(context.Background()) } func (i *LinkedServiceSqlServer) ToLinkedServiceSqlServerOutputWithContext(ctx context.Context) LinkedServiceSqlServerOutput { return pulumi.ToOutputWithContext(ctx, i).(LinkedServiceSqlServerOutput) } // LinkedServiceSqlServerArrayInput is an input type that accepts LinkedServiceSqlServerArray and LinkedServiceSqlServerArrayOutput values. // You can construct a concrete instance of `LinkedServiceSqlServerArrayInput` via: // // LinkedServiceSqlServerArray{ LinkedServiceSqlServerArgs{...} } type LinkedServiceSqlServerArrayInput interface { pulumi.Input ToLinkedServiceSqlServerArrayOutput() LinkedServiceSqlServerArrayOutput ToLinkedServiceSqlServerArrayOutputWithContext(context.Context) LinkedServiceSqlServerArrayOutput } type LinkedServiceSqlServerArray []LinkedServiceSqlServerInput func (LinkedServiceSqlServerArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*LinkedServiceSqlServer)(nil)).Elem() } func (i LinkedServiceSqlServerArray) ToLinkedServiceSqlServerArrayOutput() LinkedServiceSqlServerArrayOutput { return i.ToLinkedServiceSqlServerArrayOutputWithContext(context.Background()) } func (i LinkedServiceSqlServerArray) ToLinkedServiceSqlServerArrayOutputWithContext(ctx context.Context) LinkedServiceSqlServerArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(LinkedServiceSqlServerArrayOutput) } // LinkedServiceSqlServerMapInput is an input type that accepts LinkedServiceSqlServerMap and LinkedServiceSqlServerMapOutput values. // You can construct a concrete instance of `LinkedServiceSqlServerMapInput` via: // // LinkedServiceSqlServerMap{ "key": LinkedServiceSqlServerArgs{...} } type LinkedServiceSqlServerMapInput interface { pulumi.Input ToLinkedServiceSqlServerMapOutput() LinkedServiceSqlServerMapOutput ToLinkedServiceSqlServerMapOutputWithContext(context.Context) LinkedServiceSqlServerMapOutput } type LinkedServiceSqlServerMap map[string]LinkedServiceSqlServerInput func (LinkedServiceSqlServerMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*LinkedServiceSqlServer)(nil)).Elem() } func (i LinkedServiceSqlServerMap) ToLinkedServiceSqlServerMapOutput() LinkedServiceSqlServerMapOutput { return i.ToLinkedServiceSqlServerMapOutputWithContext(context.Background()) } func (i LinkedServiceSqlServerMap) ToLinkedServiceSqlServerMapOutputWithContext(ctx context.Context) LinkedServiceSqlServerMapOutput { return pulumi.ToOutputWithContext(ctx, i).(LinkedServiceSqlServerMapOutput) } type LinkedServiceSqlServerOutput struct{ *pulumi.OutputState } func (LinkedServiceSqlServerOutput) ElementType() reflect.Type { return reflect.TypeOf((**LinkedServiceSqlServer)(nil)).Elem() } func (o LinkedServiceSqlServerOutput) ToLinkedServiceSqlServerOutput() LinkedServiceSqlServerOutput { return o } func (o LinkedServiceSqlServerOutput) ToLinkedServiceSqlServerOutputWithContext(ctx context.Context) LinkedServiceSqlServerOutput { return o } // A map of additional properties to associate with the Data Factory Linked Service SQL Server. func (o LinkedServiceSqlServerOutput) AdditionalProperties() pulumi.StringMapOutput { return o.ApplyT(func(v *LinkedServiceSqlServer) pulumi.StringMapOutput { return v.AdditionalProperties }).(pulumi.StringMapOutput) } // List of tags that can be used for describing the Data Factory Linked Service SQL Server. func (o LinkedServiceSqlServerOutput) Annotations() pulumi.StringArrayOutput { return o.ApplyT(func(v *LinkedServiceSqlServer) pulumi.StringArrayOutput { return v.Annotations }).(pulumi.StringArrayOutput) } // The connection string in which to authenticate with the SQL Server. Exactly one of either `connectionString` or `keyVaultConnectionString` is required. func (o LinkedServiceSqlServerOutput) ConnectionString() pulumi.StringPtrOutput { return o.ApplyT(func(v *LinkedServiceSqlServer) pulumi.StringPtrOutput { return v.ConnectionString }).(pulumi.StringPtrOutput) } // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. func (o LinkedServiceSqlServerOutput) DataFactoryId() pulumi.StringOutput { return o.ApplyT(func(v *LinkedServiceSqlServer) pulumi.StringOutput { return v.DataFactoryId }).(pulumi.StringOutput) } // The description for the Data Factory Linked Service SQL Server. func (o LinkedServiceSqlServerOutput) Description() pulumi.StringPtrOutput { return o.ApplyT(func(v *LinkedServiceSqlServer) pulumi.StringPtrOutput { return v.Description }).(pulumi.StringPtrOutput) } // The integration runtime reference to associate with the Data Factory Linked Service SQL Server. func (o LinkedServiceSqlServerOutput) IntegrationRuntimeName() pulumi.StringPtrOutput { return o.ApplyT(func(v *LinkedServiceSqlServer) pulumi.StringPtrOutput { return v.IntegrationRuntimeName }).(pulumi.StringPtrOutput) } // A `keyVaultConnectionString` block as defined below. Use this argument to store SQL Server connection string in an existing Key Vault. It needs an existing Key Vault Data Factory Linked Service. Exactly one of either `connectionString` or `keyVaultConnectionString` is required. func (o LinkedServiceSqlServerOutput) KeyVaultConnectionString() LinkedServiceSqlServerKeyVaultConnectionStringPtrOutput { return o.ApplyT(func(v *LinkedServiceSqlServer) LinkedServiceSqlServerKeyVaultConnectionStringPtrOutput { return v.KeyVaultConnectionString }).(LinkedServiceSqlServerKeyVaultConnectionStringPtrOutput) } // A `keyVaultPassword` block as defined below. Use this argument to store SQL Server password in an existing Key Vault. It needs an existing Key Vault Data Factory Linked Service. func (o LinkedServiceSqlServerOutput) KeyVaultPassword() LinkedServiceSqlServerKeyVaultPasswordPtrOutput { return o.ApplyT(func(v *LinkedServiceSqlServer) LinkedServiceSqlServerKeyVaultPasswordPtrOutput { return v.KeyVaultPassword }).(LinkedServiceSqlServerKeyVaultPasswordPtrOutput) } // Specifies the name of the Data Factory Linked Service SQL Server. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. func (o LinkedServiceSqlServerOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *LinkedServiceSqlServer) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // A map of parameters to associate with the Data Factory Linked Service SQL Server. func (o LinkedServiceSqlServerOutput) Parameters() pulumi.StringMapOutput { return o.ApplyT(func(v *LinkedServiceSqlServer) pulumi.StringMapOutput { return v.Parameters }).(pulumi.StringMapOutput) } // The on-premises Windows authentication user name. func (o LinkedServiceSqlServerOutput) UserName() pulumi.StringPtrOutput { return o.ApplyT(func(v *LinkedServiceSqlServer) pulumi.StringPtrOutput { return v.UserName }).(pulumi.StringPtrOutput) } type LinkedServiceSqlServerArrayOutput struct{ *pulumi.OutputState } func (LinkedServiceSqlServerArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*LinkedServiceSqlServer)(nil)).Elem() } func (o LinkedServiceSqlServerArrayOutput) ToLinkedServiceSqlServerArrayOutput() LinkedServiceSqlServerArrayOutput { return o } func (o LinkedServiceSqlServerArrayOutput) ToLinkedServiceSqlServerArrayOutputWithContext(ctx context.Context) LinkedServiceSqlServerArrayOutput { return o } func (o LinkedServiceSqlServerArrayOutput) Index(i pulumi.IntInput) LinkedServiceSqlServerOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *LinkedServiceSqlServer { return vs[0].([]*LinkedServiceSqlServer)[vs[1].(int)] }).(LinkedServiceSqlServerOutput) } type LinkedServiceSqlServerMapOutput struct{ *pulumi.OutputState } func (LinkedServiceSqlServerMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*LinkedServiceSqlServer)(nil)).Elem() } func (o LinkedServiceSqlServerMapOutput) ToLinkedServiceSqlServerMapOutput() LinkedServiceSqlServerMapOutput { return o } func (o LinkedServiceSqlServerMapOutput) ToLinkedServiceSqlServerMapOutputWithContext(ctx context.Context) LinkedServiceSqlServerMapOutput { return o } func (o LinkedServiceSqlServerMapOutput) MapIndex(k pulumi.StringInput) LinkedServiceSqlServerOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *LinkedServiceSqlServer { return vs[0].(map[string]*LinkedServiceSqlServer)[vs[1].(string)] }).(LinkedServiceSqlServerOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*LinkedServiceSqlServerInput)(nil)).Elem(), &LinkedServiceSqlServer{}) pulumi.RegisterInputType(reflect.TypeOf((*LinkedServiceSqlServerArrayInput)(nil)).Elem(), LinkedServiceSqlServerArray{}) pulumi.RegisterInputType(reflect.TypeOf((*LinkedServiceSqlServerMapInput)(nil)).Elem(), LinkedServiceSqlServerMap{}) pulumi.RegisterOutputType(LinkedServiceSqlServerOutput{}) pulumi.RegisterOutputType(LinkedServiceSqlServerArrayOutput{}) pulumi.RegisterOutputType(LinkedServiceSqlServerMapOutput{}) }
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/datafactory/linkedServiceDataLakeStorageGen2.go
sdk/go/azure/datafactory/linkedServiceDataLakeStorageGen2.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 datafactory import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a Linked Service (connection) between Data Lake Storage Gen2 and Azure Data Factory. // // ## 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/datafactory" // "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 // } // exampleFactory, err := datafactory.NewFactory(ctx, "example", &datafactory.FactoryArgs{ // Name: pulumi.String("example"), // Location: example.Location, // ResourceGroupName: example.Name, // }) // if err != nil { // return err // } // current, err := core.GetClientConfig(ctx, map[string]interface{}{}, nil) // if err != nil { // return err // } // _, err = datafactory.NewLinkedServiceDataLakeStorageGen2(ctx, "example", &datafactory.LinkedServiceDataLakeStorageGen2Args{ // Name: pulumi.String("example"), // DataFactoryId: exampleFactory.ID(), // ServicePrincipalId: pulumi.String(current.ClientId), // ServicePrincipalKey: pulumi.String("exampleKey"), // Tenant: pulumi.String("11111111-1111-1111-1111-111111111111"), // Url: pulumi.String("https://datalakestoragegen2"), // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## Import // // Data Factory Data Lake Storage Gen2 Linked Services can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:datafactory/linkedServiceDataLakeStorageGen2:LinkedServiceDataLakeStorageGen2 example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example/providers/Microsoft.DataFactory/factories/example/linkedservices/example // ``` type LinkedServiceDataLakeStorageGen2 struct { pulumi.CustomResourceState // A map of additional properties to associate with the Data Factory Linked Service. // // The following supported arguments are specific to Data Lake Storage Gen2 Linked Service: AdditionalProperties pulumi.StringMapOutput `pulumi:"additionalProperties"` // List of tags that can be used for describing the Data Factory Linked Service. Annotations pulumi.StringArrayOutput `pulumi:"annotations"` // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId pulumi.StringOutput `pulumi:"dataFactoryId"` // The description for the Data Factory Linked Service. Description pulumi.StringPtrOutput `pulumi:"description"` // The integration runtime reference to associate with the Data Factory Linked Service. IntegrationRuntimeName pulumi.StringPtrOutput `pulumi:"integrationRuntimeName"` // Specifies the name of the Data Factory Linked Service. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringOutput `pulumi:"name"` // A map of parameters to associate with the Data Factory Linked Service. Parameters pulumi.StringMapOutput `pulumi:"parameters"` // The service principal id with which to authenticate against the Azure Data Lake Storage Gen2 account. Incompatible with `storageAccountKey` and `useManagedIdentity`. ServicePrincipalId pulumi.StringPtrOutput `pulumi:"servicePrincipalId"` // The service principal key with which to authenticate against the Azure Data Lake Storage Gen2 account. ServicePrincipalKey pulumi.StringPtrOutput `pulumi:"servicePrincipalKey"` // The Storage Account Key with which to authenticate against the Azure Data Lake Storage Gen2 account. Incompatible with `servicePrincipalId`, `servicePrincipalKey`, `tenant` and `useManagedIdentity`. StorageAccountKey pulumi.StringPtrOutput `pulumi:"storageAccountKey"` // The tenant id or name in which the service principal exists to authenticate against the Azure Data Lake Storage Gen2 account. // // > **Note:** If `servicePrincipalId` is used, `servicePrincipalKey` and `tenant` are also required. Tenant pulumi.StringPtrOutput `pulumi:"tenant"` // The endpoint for the Azure Data Lake Storage Gen2 service. // // > **Note:** Users should specify only one of the following three authentication strategies: storage account key, managed identity, service principal. Url pulumi.StringOutput `pulumi:"url"` // Whether to use the Data Factory's managed identity to authenticate against the Azure Data Lake Storage Gen2 account. Incompatible with `servicePrincipalId`, `servicePrincipalKey`, `tenant` and `storageAccountKey`. UseManagedIdentity pulumi.BoolPtrOutput `pulumi:"useManagedIdentity"` } // NewLinkedServiceDataLakeStorageGen2 registers a new resource with the given unique name, arguments, and options. func NewLinkedServiceDataLakeStorageGen2(ctx *pulumi.Context, name string, args *LinkedServiceDataLakeStorageGen2Args, opts ...pulumi.ResourceOption) (*LinkedServiceDataLakeStorageGen2, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.DataFactoryId == nil { return nil, errors.New("invalid value for required argument 'DataFactoryId'") } if args.Url == nil { return nil, errors.New("invalid value for required argument 'Url'") } opts = internal.PkgResourceDefaultOpts(opts) var resource LinkedServiceDataLakeStorageGen2 err := ctx.RegisterResource("azure:datafactory/linkedServiceDataLakeStorageGen2:LinkedServiceDataLakeStorageGen2", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetLinkedServiceDataLakeStorageGen2 gets an existing LinkedServiceDataLakeStorageGen2 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 GetLinkedServiceDataLakeStorageGen2(ctx *pulumi.Context, name string, id pulumi.IDInput, state *LinkedServiceDataLakeStorageGen2State, opts ...pulumi.ResourceOption) (*LinkedServiceDataLakeStorageGen2, error) { var resource LinkedServiceDataLakeStorageGen2 err := ctx.ReadResource("azure:datafactory/linkedServiceDataLakeStorageGen2:LinkedServiceDataLakeStorageGen2", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering LinkedServiceDataLakeStorageGen2 resources. type linkedServiceDataLakeStorageGen2State struct { // A map of additional properties to associate with the Data Factory Linked Service. // // The following supported arguments are specific to Data Lake Storage Gen2 Linked Service: AdditionalProperties map[string]string `pulumi:"additionalProperties"` // List of tags that can be used for describing the Data Factory Linked Service. Annotations []string `pulumi:"annotations"` // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId *string `pulumi:"dataFactoryId"` // The description for the Data Factory Linked Service. Description *string `pulumi:"description"` // The integration runtime reference to associate with the Data Factory Linked Service. IntegrationRuntimeName *string `pulumi:"integrationRuntimeName"` // Specifies the name of the Data Factory Linked Service. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name *string `pulumi:"name"` // A map of parameters to associate with the Data Factory Linked Service. Parameters map[string]string `pulumi:"parameters"` // The service principal id with which to authenticate against the Azure Data Lake Storage Gen2 account. Incompatible with `storageAccountKey` and `useManagedIdentity`. ServicePrincipalId *string `pulumi:"servicePrincipalId"` // The service principal key with which to authenticate against the Azure Data Lake Storage Gen2 account. ServicePrincipalKey *string `pulumi:"servicePrincipalKey"` // The Storage Account Key with which to authenticate against the Azure Data Lake Storage Gen2 account. Incompatible with `servicePrincipalId`, `servicePrincipalKey`, `tenant` and `useManagedIdentity`. StorageAccountKey *string `pulumi:"storageAccountKey"` // The tenant id or name in which the service principal exists to authenticate against the Azure Data Lake Storage Gen2 account. // // > **Note:** If `servicePrincipalId` is used, `servicePrincipalKey` and `tenant` are also required. Tenant *string `pulumi:"tenant"` // The endpoint for the Azure Data Lake Storage Gen2 service. // // > **Note:** Users should specify only one of the following three authentication strategies: storage account key, managed identity, service principal. Url *string `pulumi:"url"` // Whether to use the Data Factory's managed identity to authenticate against the Azure Data Lake Storage Gen2 account. Incompatible with `servicePrincipalId`, `servicePrincipalKey`, `tenant` and `storageAccountKey`. UseManagedIdentity *bool `pulumi:"useManagedIdentity"` } type LinkedServiceDataLakeStorageGen2State struct { // A map of additional properties to associate with the Data Factory Linked Service. // // The following supported arguments are specific to Data Lake Storage Gen2 Linked Service: AdditionalProperties pulumi.StringMapInput // List of tags that can be used for describing the Data Factory Linked Service. Annotations pulumi.StringArrayInput // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId pulumi.StringPtrInput // The description for the Data Factory Linked Service. Description pulumi.StringPtrInput // The integration runtime reference to associate with the Data Factory Linked Service. IntegrationRuntimeName pulumi.StringPtrInput // Specifies the name of the Data Factory Linked Service. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringPtrInput // A map of parameters to associate with the Data Factory Linked Service. Parameters pulumi.StringMapInput // The service principal id with which to authenticate against the Azure Data Lake Storage Gen2 account. Incompatible with `storageAccountKey` and `useManagedIdentity`. ServicePrincipalId pulumi.StringPtrInput // The service principal key with which to authenticate against the Azure Data Lake Storage Gen2 account. ServicePrincipalKey pulumi.StringPtrInput // The Storage Account Key with which to authenticate against the Azure Data Lake Storage Gen2 account. Incompatible with `servicePrincipalId`, `servicePrincipalKey`, `tenant` and `useManagedIdentity`. StorageAccountKey pulumi.StringPtrInput // The tenant id or name in which the service principal exists to authenticate against the Azure Data Lake Storage Gen2 account. // // > **Note:** If `servicePrincipalId` is used, `servicePrincipalKey` and `tenant` are also required. Tenant pulumi.StringPtrInput // The endpoint for the Azure Data Lake Storage Gen2 service. // // > **Note:** Users should specify only one of the following three authentication strategies: storage account key, managed identity, service principal. Url pulumi.StringPtrInput // Whether to use the Data Factory's managed identity to authenticate against the Azure Data Lake Storage Gen2 account. Incompatible with `servicePrincipalId`, `servicePrincipalKey`, `tenant` and `storageAccountKey`. UseManagedIdentity pulumi.BoolPtrInput } func (LinkedServiceDataLakeStorageGen2State) ElementType() reflect.Type { return reflect.TypeOf((*linkedServiceDataLakeStorageGen2State)(nil)).Elem() } type linkedServiceDataLakeStorageGen2Args struct { // A map of additional properties to associate with the Data Factory Linked Service. // // The following supported arguments are specific to Data Lake Storage Gen2 Linked Service: AdditionalProperties map[string]string `pulumi:"additionalProperties"` // List of tags that can be used for describing the Data Factory Linked Service. Annotations []string `pulumi:"annotations"` // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId string `pulumi:"dataFactoryId"` // The description for the Data Factory Linked Service. Description *string `pulumi:"description"` // The integration runtime reference to associate with the Data Factory Linked Service. IntegrationRuntimeName *string `pulumi:"integrationRuntimeName"` // Specifies the name of the Data Factory Linked Service. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name *string `pulumi:"name"` // A map of parameters to associate with the Data Factory Linked Service. Parameters map[string]string `pulumi:"parameters"` // The service principal id with which to authenticate against the Azure Data Lake Storage Gen2 account. Incompatible with `storageAccountKey` and `useManagedIdentity`. ServicePrincipalId *string `pulumi:"servicePrincipalId"` // The service principal key with which to authenticate against the Azure Data Lake Storage Gen2 account. ServicePrincipalKey *string `pulumi:"servicePrincipalKey"` // The Storage Account Key with which to authenticate against the Azure Data Lake Storage Gen2 account. Incompatible with `servicePrincipalId`, `servicePrincipalKey`, `tenant` and `useManagedIdentity`. StorageAccountKey *string `pulumi:"storageAccountKey"` // The tenant id or name in which the service principal exists to authenticate against the Azure Data Lake Storage Gen2 account. // // > **Note:** If `servicePrincipalId` is used, `servicePrincipalKey` and `tenant` are also required. Tenant *string `pulumi:"tenant"` // The endpoint for the Azure Data Lake Storage Gen2 service. // // > **Note:** Users should specify only one of the following three authentication strategies: storage account key, managed identity, service principal. Url string `pulumi:"url"` // Whether to use the Data Factory's managed identity to authenticate against the Azure Data Lake Storage Gen2 account. Incompatible with `servicePrincipalId`, `servicePrincipalKey`, `tenant` and `storageAccountKey`. UseManagedIdentity *bool `pulumi:"useManagedIdentity"` } // The set of arguments for constructing a LinkedServiceDataLakeStorageGen2 resource. type LinkedServiceDataLakeStorageGen2Args struct { // A map of additional properties to associate with the Data Factory Linked Service. // // The following supported arguments are specific to Data Lake Storage Gen2 Linked Service: AdditionalProperties pulumi.StringMapInput // List of tags that can be used for describing the Data Factory Linked Service. Annotations pulumi.StringArrayInput // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId pulumi.StringInput // The description for the Data Factory Linked Service. Description pulumi.StringPtrInput // The integration runtime reference to associate with the Data Factory Linked Service. IntegrationRuntimeName pulumi.StringPtrInput // Specifies the name of the Data Factory Linked Service. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringPtrInput // A map of parameters to associate with the Data Factory Linked Service. Parameters pulumi.StringMapInput // The service principal id with which to authenticate against the Azure Data Lake Storage Gen2 account. Incompatible with `storageAccountKey` and `useManagedIdentity`. ServicePrincipalId pulumi.StringPtrInput // The service principal key with which to authenticate against the Azure Data Lake Storage Gen2 account. ServicePrincipalKey pulumi.StringPtrInput // The Storage Account Key with which to authenticate against the Azure Data Lake Storage Gen2 account. Incompatible with `servicePrincipalId`, `servicePrincipalKey`, `tenant` and `useManagedIdentity`. StorageAccountKey pulumi.StringPtrInput // The tenant id or name in which the service principal exists to authenticate against the Azure Data Lake Storage Gen2 account. // // > **Note:** If `servicePrincipalId` is used, `servicePrincipalKey` and `tenant` are also required. Tenant pulumi.StringPtrInput // The endpoint for the Azure Data Lake Storage Gen2 service. // // > **Note:** Users should specify only one of the following three authentication strategies: storage account key, managed identity, service principal. Url pulumi.StringInput // Whether to use the Data Factory's managed identity to authenticate against the Azure Data Lake Storage Gen2 account. Incompatible with `servicePrincipalId`, `servicePrincipalKey`, `tenant` and `storageAccountKey`. UseManagedIdentity pulumi.BoolPtrInput } func (LinkedServiceDataLakeStorageGen2Args) ElementType() reflect.Type { return reflect.TypeOf((*linkedServiceDataLakeStorageGen2Args)(nil)).Elem() } type LinkedServiceDataLakeStorageGen2Input interface { pulumi.Input ToLinkedServiceDataLakeStorageGen2Output() LinkedServiceDataLakeStorageGen2Output ToLinkedServiceDataLakeStorageGen2OutputWithContext(ctx context.Context) LinkedServiceDataLakeStorageGen2Output } func (*LinkedServiceDataLakeStorageGen2) ElementType() reflect.Type { return reflect.TypeOf((**LinkedServiceDataLakeStorageGen2)(nil)).Elem() } func (i *LinkedServiceDataLakeStorageGen2) ToLinkedServiceDataLakeStorageGen2Output() LinkedServiceDataLakeStorageGen2Output { return i.ToLinkedServiceDataLakeStorageGen2OutputWithContext(context.Background()) } func (i *LinkedServiceDataLakeStorageGen2) ToLinkedServiceDataLakeStorageGen2OutputWithContext(ctx context.Context) LinkedServiceDataLakeStorageGen2Output { return pulumi.ToOutputWithContext(ctx, i).(LinkedServiceDataLakeStorageGen2Output) } // LinkedServiceDataLakeStorageGen2ArrayInput is an input type that accepts LinkedServiceDataLakeStorageGen2Array and LinkedServiceDataLakeStorageGen2ArrayOutput values. // You can construct a concrete instance of `LinkedServiceDataLakeStorageGen2ArrayInput` via: // // LinkedServiceDataLakeStorageGen2Array{ LinkedServiceDataLakeStorageGen2Args{...} } type LinkedServiceDataLakeStorageGen2ArrayInput interface { pulumi.Input ToLinkedServiceDataLakeStorageGen2ArrayOutput() LinkedServiceDataLakeStorageGen2ArrayOutput ToLinkedServiceDataLakeStorageGen2ArrayOutputWithContext(context.Context) LinkedServiceDataLakeStorageGen2ArrayOutput } type LinkedServiceDataLakeStorageGen2Array []LinkedServiceDataLakeStorageGen2Input func (LinkedServiceDataLakeStorageGen2Array) ElementType() reflect.Type { return reflect.TypeOf((*[]*LinkedServiceDataLakeStorageGen2)(nil)).Elem() } func (i LinkedServiceDataLakeStorageGen2Array) ToLinkedServiceDataLakeStorageGen2ArrayOutput() LinkedServiceDataLakeStorageGen2ArrayOutput { return i.ToLinkedServiceDataLakeStorageGen2ArrayOutputWithContext(context.Background()) } func (i LinkedServiceDataLakeStorageGen2Array) ToLinkedServiceDataLakeStorageGen2ArrayOutputWithContext(ctx context.Context) LinkedServiceDataLakeStorageGen2ArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(LinkedServiceDataLakeStorageGen2ArrayOutput) } // LinkedServiceDataLakeStorageGen2MapInput is an input type that accepts LinkedServiceDataLakeStorageGen2Map and LinkedServiceDataLakeStorageGen2MapOutput values. // You can construct a concrete instance of `LinkedServiceDataLakeStorageGen2MapInput` via: // // LinkedServiceDataLakeStorageGen2Map{ "key": LinkedServiceDataLakeStorageGen2Args{...} } type LinkedServiceDataLakeStorageGen2MapInput interface { pulumi.Input ToLinkedServiceDataLakeStorageGen2MapOutput() LinkedServiceDataLakeStorageGen2MapOutput ToLinkedServiceDataLakeStorageGen2MapOutputWithContext(context.Context) LinkedServiceDataLakeStorageGen2MapOutput } type LinkedServiceDataLakeStorageGen2Map map[string]LinkedServiceDataLakeStorageGen2Input func (LinkedServiceDataLakeStorageGen2Map) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*LinkedServiceDataLakeStorageGen2)(nil)).Elem() } func (i LinkedServiceDataLakeStorageGen2Map) ToLinkedServiceDataLakeStorageGen2MapOutput() LinkedServiceDataLakeStorageGen2MapOutput { return i.ToLinkedServiceDataLakeStorageGen2MapOutputWithContext(context.Background()) } func (i LinkedServiceDataLakeStorageGen2Map) ToLinkedServiceDataLakeStorageGen2MapOutputWithContext(ctx context.Context) LinkedServiceDataLakeStorageGen2MapOutput { return pulumi.ToOutputWithContext(ctx, i).(LinkedServiceDataLakeStorageGen2MapOutput) } type LinkedServiceDataLakeStorageGen2Output struct{ *pulumi.OutputState } func (LinkedServiceDataLakeStorageGen2Output) ElementType() reflect.Type { return reflect.TypeOf((**LinkedServiceDataLakeStorageGen2)(nil)).Elem() } func (o LinkedServiceDataLakeStorageGen2Output) ToLinkedServiceDataLakeStorageGen2Output() LinkedServiceDataLakeStorageGen2Output { return o } func (o LinkedServiceDataLakeStorageGen2Output) ToLinkedServiceDataLakeStorageGen2OutputWithContext(ctx context.Context) LinkedServiceDataLakeStorageGen2Output { return o } // A map of additional properties to associate with the Data Factory Linked Service. // // The following supported arguments are specific to Data Lake Storage Gen2 Linked Service: func (o LinkedServiceDataLakeStorageGen2Output) AdditionalProperties() pulumi.StringMapOutput { return o.ApplyT(func(v *LinkedServiceDataLakeStorageGen2) pulumi.StringMapOutput { return v.AdditionalProperties }).(pulumi.StringMapOutput) } // List of tags that can be used for describing the Data Factory Linked Service. func (o LinkedServiceDataLakeStorageGen2Output) Annotations() pulumi.StringArrayOutput { return o.ApplyT(func(v *LinkedServiceDataLakeStorageGen2) pulumi.StringArrayOutput { return v.Annotations }).(pulumi.StringArrayOutput) } // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. func (o LinkedServiceDataLakeStorageGen2Output) DataFactoryId() pulumi.StringOutput { return o.ApplyT(func(v *LinkedServiceDataLakeStorageGen2) pulumi.StringOutput { return v.DataFactoryId }).(pulumi.StringOutput) } // The description for the Data Factory Linked Service. func (o LinkedServiceDataLakeStorageGen2Output) Description() pulumi.StringPtrOutput { return o.ApplyT(func(v *LinkedServiceDataLakeStorageGen2) pulumi.StringPtrOutput { return v.Description }).(pulumi.StringPtrOutput) } // The integration runtime reference to associate with the Data Factory Linked Service. func (o LinkedServiceDataLakeStorageGen2Output) IntegrationRuntimeName() pulumi.StringPtrOutput { return o.ApplyT(func(v *LinkedServiceDataLakeStorageGen2) pulumi.StringPtrOutput { return v.IntegrationRuntimeName }).(pulumi.StringPtrOutput) } // Specifies the name of the Data Factory Linked Service. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. func (o LinkedServiceDataLakeStorageGen2Output) Name() pulumi.StringOutput { return o.ApplyT(func(v *LinkedServiceDataLakeStorageGen2) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // A map of parameters to associate with the Data Factory Linked Service. func (o LinkedServiceDataLakeStorageGen2Output) Parameters() pulumi.StringMapOutput { return o.ApplyT(func(v *LinkedServiceDataLakeStorageGen2) pulumi.StringMapOutput { return v.Parameters }).(pulumi.StringMapOutput) } // The service principal id with which to authenticate against the Azure Data Lake Storage Gen2 account. Incompatible with `storageAccountKey` and `useManagedIdentity`. func (o LinkedServiceDataLakeStorageGen2Output) ServicePrincipalId() pulumi.StringPtrOutput { return o.ApplyT(func(v *LinkedServiceDataLakeStorageGen2) pulumi.StringPtrOutput { return v.ServicePrincipalId }).(pulumi.StringPtrOutput) } // The service principal key with which to authenticate against the Azure Data Lake Storage Gen2 account. func (o LinkedServiceDataLakeStorageGen2Output) ServicePrincipalKey() pulumi.StringPtrOutput { return o.ApplyT(func(v *LinkedServiceDataLakeStorageGen2) pulumi.StringPtrOutput { return v.ServicePrincipalKey }).(pulumi.StringPtrOutput) } // The Storage Account Key with which to authenticate against the Azure Data Lake Storage Gen2 account. Incompatible with `servicePrincipalId`, `servicePrincipalKey`, `tenant` and `useManagedIdentity`. func (o LinkedServiceDataLakeStorageGen2Output) StorageAccountKey() pulumi.StringPtrOutput { return o.ApplyT(func(v *LinkedServiceDataLakeStorageGen2) pulumi.StringPtrOutput { return v.StorageAccountKey }).(pulumi.StringPtrOutput) } // The tenant id or name in which the service principal exists to authenticate against the Azure Data Lake Storage Gen2 account. // // > **Note:** If `servicePrincipalId` is used, `servicePrincipalKey` and `tenant` are also required. func (o LinkedServiceDataLakeStorageGen2Output) Tenant() pulumi.StringPtrOutput { return o.ApplyT(func(v *LinkedServiceDataLakeStorageGen2) pulumi.StringPtrOutput { return v.Tenant }).(pulumi.StringPtrOutput) } // The endpoint for the Azure Data Lake Storage Gen2 service. // // > **Note:** Users should specify only one of the following three authentication strategies: storage account key, managed identity, service principal. func (o LinkedServiceDataLakeStorageGen2Output) Url() pulumi.StringOutput { return o.ApplyT(func(v *LinkedServiceDataLakeStorageGen2) pulumi.StringOutput { return v.Url }).(pulumi.StringOutput) } // Whether to use the Data Factory's managed identity to authenticate against the Azure Data Lake Storage Gen2 account. Incompatible with `servicePrincipalId`, `servicePrincipalKey`, `tenant` and `storageAccountKey`. func (o LinkedServiceDataLakeStorageGen2Output) UseManagedIdentity() pulumi.BoolPtrOutput { return o.ApplyT(func(v *LinkedServiceDataLakeStorageGen2) pulumi.BoolPtrOutput { return v.UseManagedIdentity }).(pulumi.BoolPtrOutput) } type LinkedServiceDataLakeStorageGen2ArrayOutput struct{ *pulumi.OutputState } func (LinkedServiceDataLakeStorageGen2ArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*LinkedServiceDataLakeStorageGen2)(nil)).Elem() } func (o LinkedServiceDataLakeStorageGen2ArrayOutput) ToLinkedServiceDataLakeStorageGen2ArrayOutput() LinkedServiceDataLakeStorageGen2ArrayOutput { return o } func (o LinkedServiceDataLakeStorageGen2ArrayOutput) ToLinkedServiceDataLakeStorageGen2ArrayOutputWithContext(ctx context.Context) LinkedServiceDataLakeStorageGen2ArrayOutput { return o } func (o LinkedServiceDataLakeStorageGen2ArrayOutput) Index(i pulumi.IntInput) LinkedServiceDataLakeStorageGen2Output { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *LinkedServiceDataLakeStorageGen2 { return vs[0].([]*LinkedServiceDataLakeStorageGen2)[vs[1].(int)] }).(LinkedServiceDataLakeStorageGen2Output) } type LinkedServiceDataLakeStorageGen2MapOutput struct{ *pulumi.OutputState } func (LinkedServiceDataLakeStorageGen2MapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*LinkedServiceDataLakeStorageGen2)(nil)).Elem() } func (o LinkedServiceDataLakeStorageGen2MapOutput) ToLinkedServiceDataLakeStorageGen2MapOutput() LinkedServiceDataLakeStorageGen2MapOutput { return o } func (o LinkedServiceDataLakeStorageGen2MapOutput) ToLinkedServiceDataLakeStorageGen2MapOutputWithContext(ctx context.Context) LinkedServiceDataLakeStorageGen2MapOutput { return o } func (o LinkedServiceDataLakeStorageGen2MapOutput) MapIndex(k pulumi.StringInput) LinkedServiceDataLakeStorageGen2Output { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *LinkedServiceDataLakeStorageGen2 { return vs[0].(map[string]*LinkedServiceDataLakeStorageGen2)[vs[1].(string)] }).(LinkedServiceDataLakeStorageGen2Output) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*LinkedServiceDataLakeStorageGen2Input)(nil)).Elem(), &LinkedServiceDataLakeStorageGen2{}) pulumi.RegisterInputType(reflect.TypeOf((*LinkedServiceDataLakeStorageGen2ArrayInput)(nil)).Elem(), LinkedServiceDataLakeStorageGen2Array{}) pulumi.RegisterInputType(reflect.TypeOf((*LinkedServiceDataLakeStorageGen2MapInput)(nil)).Elem(), LinkedServiceDataLakeStorageGen2Map{}) pulumi.RegisterOutputType(LinkedServiceDataLakeStorageGen2Output{}) pulumi.RegisterOutputType(LinkedServiceDataLakeStorageGen2ArrayOutput{}) pulumi.RegisterOutputType(LinkedServiceDataLakeStorageGen2MapOutput{}) }
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/datafactory/linkedServiceAzureDatabricks.go
sdk/go/azure/datafactory/linkedServiceAzureDatabricks.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 datafactory import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a Linked Service (connection) between Azure Databricks and Azure Data Factory. // // ## Example Usage // // ### With Managed Identity & New Cluster // // ```go // package main // // import ( // // "fmt" // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/databricks" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/datafactory" // "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("East US"), // }) // if err != nil { // return err // } // // Create a Linked Service using managed identity and new cluster config // exampleFactory, err := datafactory.NewFactory(ctx, "example", &datafactory.FactoryArgs{ // Name: pulumi.String("TestDtaFactory92783401247"), // Location: example.Location, // ResourceGroupName: example.Name, // Identity: &datafactory.FactoryIdentityArgs{ // Type: pulumi.String("SystemAssigned"), // }, // }) // if err != nil { // return err // } // // Create a databricks instance // exampleWorkspace, err := databricks.NewWorkspace(ctx, "example", &databricks.WorkspaceArgs{ // Name: pulumi.String("databricks-test"), // ResourceGroupName: example.Name, // Location: example.Location, // Sku: pulumi.String("standard"), // }) // if err != nil { // return err // } // _, err = datafactory.NewLinkedServiceAzureDatabricks(ctx, "msi_linked", &datafactory.LinkedServiceAzureDatabricksArgs{ // Name: pulumi.String("ADBLinkedServiceViaMSI"), // DataFactoryId: exampleFactory.ID(), // Description: pulumi.String("ADB Linked Service via MSI"), // AdbDomain: exampleWorkspace.WorkspaceUrl.ApplyT(func(workspaceUrl string) (string, error) { // return fmt.Sprintf("https://%v", workspaceUrl), nil // }).(pulumi.StringOutput), // MsiWorkSpaceResourceId: exampleWorkspace.ID(), // NewClusterConfig: &datafactory.LinkedServiceAzureDatabricksNewClusterConfigArgs{ // NodeType: pulumi.String("Standard_NC12"), // ClusterVersion: pulumi.String("5.5.x-gpu-scala2.11"), // MinNumberOfWorkers: pulumi.Int(1), // MaxNumberOfWorkers: pulumi.Int(5), // DriverNodeType: pulumi.String("Standard_NC12"), // LogDestination: pulumi.String("dbfs:/logs"), // CustomTags: pulumi.StringMap{ // "custom_tag1": pulumi.String("sct_value_1"), // "custom_tag2": pulumi.String("sct_value_2"), // }, // SparkConfig: pulumi.StringMap{ // "config1": pulumi.String("value1"), // "config2": pulumi.String("value2"), // }, // SparkEnvironmentVariables: pulumi.StringMap{ // "envVar1": pulumi.String("value1"), // "envVar2": pulumi.String("value2"), // }, // InitScripts: pulumi.StringArray{ // pulumi.String("init.sh"), // pulumi.String("init2.sh"), // }, // }, // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ### With Access Token & Existing Cluster // // ```go // package main // // import ( // // "fmt" // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/databricks" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/datafactory" // "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("East US"), // }) // if err != nil { // return err // } // // Link to an existing cluster via access token // exampleFactory, err := datafactory.NewFactory(ctx, "example", &datafactory.FactoryArgs{ // Name: pulumi.String("TestDtaFactory92783401247"), // Location: example.Location, // ResourceGroupName: example.Name, // }) // if err != nil { // return err // } // // Create a databricks instance // exampleWorkspace, err := databricks.NewWorkspace(ctx, "example", &databricks.WorkspaceArgs{ // Name: pulumi.String("databricks-test"), // ResourceGroupName: example.Name, // Location: example.Location, // Sku: pulumi.String("standard"), // }) // if err != nil { // return err // } // _, err = datafactory.NewLinkedServiceAzureDatabricks(ctx, "at_linked", &datafactory.LinkedServiceAzureDatabricksArgs{ // Name: pulumi.String("ADBLinkedServiceViaAccessToken"), // DataFactoryId: exampleFactory.ID(), // Description: pulumi.String("ADB Linked Service via Access Token"), // ExistingClusterId: pulumi.String("0308-201146-sly615"), // AccessToken: pulumi.String("SomeDatabricksAccessToken"), // AdbDomain: exampleWorkspace.WorkspaceUrl.ApplyT(func(workspaceUrl string) (string, error) { // return fmt.Sprintf("https://%v", workspaceUrl), nil // }).(pulumi.StringOutput), // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## Import // // Data Factory Linked Services can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:datafactory/linkedServiceAzureDatabricks:LinkedServiceAzureDatabricks example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example/providers/Microsoft.DataFactory/factories/example/linkedservices/example // ``` type LinkedServiceAzureDatabricks struct { pulumi.CustomResourceState // Authenticate to ADB via an access token. AccessToken pulumi.StringPtrOutput `pulumi:"accessToken"` // The domain URL of the databricks instance. AdbDomain pulumi.StringOutput `pulumi:"adbDomain"` // A map of additional properties to associate with the Data Factory Linked Service. AdditionalProperties pulumi.StringMapOutput `pulumi:"additionalProperties"` // List of tags that can be used for describing the Data Factory Linked Service. Annotations pulumi.StringArrayOutput `pulumi:"annotations"` // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId pulumi.StringOutput `pulumi:"dataFactoryId"` // The description for the Data Factory Linked Service. Description pulumi.StringPtrOutput `pulumi:"description"` // The clusterId of an existing cluster within the linked ADB instance. ExistingClusterId pulumi.StringPtrOutput `pulumi:"existingClusterId"` // Leverages an instance pool within the linked ADB instance as one `instancePool` block defined below. InstancePool LinkedServiceAzureDatabricksInstancePoolPtrOutput `pulumi:"instancePool"` // The integration runtime reference to associate with the Data Factory Linked Service. IntegrationRuntimeName pulumi.StringPtrOutput `pulumi:"integrationRuntimeName"` // Authenticate to ADB via Azure Key Vault Linked Service as defined in the `keyVaultPassword` block below. KeyVaultPassword LinkedServiceAzureDatabricksKeyVaultPasswordPtrOutput `pulumi:"keyVaultPassword"` // Authenticate to ADB via managed service identity. MsiWorkSpaceResourceId pulumi.StringPtrOutput `pulumi:"msiWorkSpaceResourceId"` // Specifies the name of the Data Factory Linked Service. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringOutput `pulumi:"name"` // Creates new clusters within the linked ADB instance as defined in the `newClusterConfig` block below. NewClusterConfig LinkedServiceAzureDatabricksNewClusterConfigPtrOutput `pulumi:"newClusterConfig"` // A map of parameters to associate with the Data Factory Linked Service. Parameters pulumi.StringMapOutput `pulumi:"parameters"` } // NewLinkedServiceAzureDatabricks registers a new resource with the given unique name, arguments, and options. func NewLinkedServiceAzureDatabricks(ctx *pulumi.Context, name string, args *LinkedServiceAzureDatabricksArgs, opts ...pulumi.ResourceOption) (*LinkedServiceAzureDatabricks, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.AdbDomain == nil { return nil, errors.New("invalid value for required argument 'AdbDomain'") } if args.DataFactoryId == nil { return nil, errors.New("invalid value for required argument 'DataFactoryId'") } if args.AccessToken != nil { args.AccessToken = pulumi.ToSecret(args.AccessToken).(pulumi.StringPtrInput) } secrets := pulumi.AdditionalSecretOutputs([]string{ "accessToken", }) opts = append(opts, secrets) opts = internal.PkgResourceDefaultOpts(opts) var resource LinkedServiceAzureDatabricks err := ctx.RegisterResource("azure:datafactory/linkedServiceAzureDatabricks:LinkedServiceAzureDatabricks", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetLinkedServiceAzureDatabricks gets an existing LinkedServiceAzureDatabricks 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 GetLinkedServiceAzureDatabricks(ctx *pulumi.Context, name string, id pulumi.IDInput, state *LinkedServiceAzureDatabricksState, opts ...pulumi.ResourceOption) (*LinkedServiceAzureDatabricks, error) { var resource LinkedServiceAzureDatabricks err := ctx.ReadResource("azure:datafactory/linkedServiceAzureDatabricks:LinkedServiceAzureDatabricks", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering LinkedServiceAzureDatabricks resources. type linkedServiceAzureDatabricksState struct { // Authenticate to ADB via an access token. AccessToken *string `pulumi:"accessToken"` // The domain URL of the databricks instance. AdbDomain *string `pulumi:"adbDomain"` // A map of additional properties to associate with the Data Factory Linked Service. AdditionalProperties map[string]string `pulumi:"additionalProperties"` // List of tags that can be used for describing the Data Factory Linked Service. Annotations []string `pulumi:"annotations"` // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId *string `pulumi:"dataFactoryId"` // The description for the Data Factory Linked Service. Description *string `pulumi:"description"` // The clusterId of an existing cluster within the linked ADB instance. ExistingClusterId *string `pulumi:"existingClusterId"` // Leverages an instance pool within the linked ADB instance as one `instancePool` block defined below. InstancePool *LinkedServiceAzureDatabricksInstancePool `pulumi:"instancePool"` // The integration runtime reference to associate with the Data Factory Linked Service. IntegrationRuntimeName *string `pulumi:"integrationRuntimeName"` // Authenticate to ADB via Azure Key Vault Linked Service as defined in the `keyVaultPassword` block below. KeyVaultPassword *LinkedServiceAzureDatabricksKeyVaultPassword `pulumi:"keyVaultPassword"` // Authenticate to ADB via managed service identity. MsiWorkSpaceResourceId *string `pulumi:"msiWorkSpaceResourceId"` // Specifies the name of the Data Factory Linked Service. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name *string `pulumi:"name"` // Creates new clusters within the linked ADB instance as defined in the `newClusterConfig` block below. NewClusterConfig *LinkedServiceAzureDatabricksNewClusterConfig `pulumi:"newClusterConfig"` // A map of parameters to associate with the Data Factory Linked Service. Parameters map[string]string `pulumi:"parameters"` } type LinkedServiceAzureDatabricksState struct { // Authenticate to ADB via an access token. AccessToken pulumi.StringPtrInput // The domain URL of the databricks instance. AdbDomain pulumi.StringPtrInput // A map of additional properties to associate with the Data Factory Linked Service. AdditionalProperties pulumi.StringMapInput // List of tags that can be used for describing the Data Factory Linked Service. Annotations pulumi.StringArrayInput // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId pulumi.StringPtrInput // The description for the Data Factory Linked Service. Description pulumi.StringPtrInput // The clusterId of an existing cluster within the linked ADB instance. ExistingClusterId pulumi.StringPtrInput // Leverages an instance pool within the linked ADB instance as one `instancePool` block defined below. InstancePool LinkedServiceAzureDatabricksInstancePoolPtrInput // The integration runtime reference to associate with the Data Factory Linked Service. IntegrationRuntimeName pulumi.StringPtrInput // Authenticate to ADB via Azure Key Vault Linked Service as defined in the `keyVaultPassword` block below. KeyVaultPassword LinkedServiceAzureDatabricksKeyVaultPasswordPtrInput // Authenticate to ADB via managed service identity. MsiWorkSpaceResourceId pulumi.StringPtrInput // Specifies the name of the Data Factory Linked Service. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringPtrInput // Creates new clusters within the linked ADB instance as defined in the `newClusterConfig` block below. NewClusterConfig LinkedServiceAzureDatabricksNewClusterConfigPtrInput // A map of parameters to associate with the Data Factory Linked Service. Parameters pulumi.StringMapInput } func (LinkedServiceAzureDatabricksState) ElementType() reflect.Type { return reflect.TypeOf((*linkedServiceAzureDatabricksState)(nil)).Elem() } type linkedServiceAzureDatabricksArgs struct { // Authenticate to ADB via an access token. AccessToken *string `pulumi:"accessToken"` // The domain URL of the databricks instance. AdbDomain string `pulumi:"adbDomain"` // A map of additional properties to associate with the Data Factory Linked Service. AdditionalProperties map[string]string `pulumi:"additionalProperties"` // List of tags that can be used for describing the Data Factory Linked Service. Annotations []string `pulumi:"annotations"` // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId string `pulumi:"dataFactoryId"` // The description for the Data Factory Linked Service. Description *string `pulumi:"description"` // The clusterId of an existing cluster within the linked ADB instance. ExistingClusterId *string `pulumi:"existingClusterId"` // Leverages an instance pool within the linked ADB instance as one `instancePool` block defined below. InstancePool *LinkedServiceAzureDatabricksInstancePool `pulumi:"instancePool"` // The integration runtime reference to associate with the Data Factory Linked Service. IntegrationRuntimeName *string `pulumi:"integrationRuntimeName"` // Authenticate to ADB via Azure Key Vault Linked Service as defined in the `keyVaultPassword` block below. KeyVaultPassword *LinkedServiceAzureDatabricksKeyVaultPassword `pulumi:"keyVaultPassword"` // Authenticate to ADB via managed service identity. MsiWorkSpaceResourceId *string `pulumi:"msiWorkSpaceResourceId"` // Specifies the name of the Data Factory Linked Service. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name *string `pulumi:"name"` // Creates new clusters within the linked ADB instance as defined in the `newClusterConfig` block below. NewClusterConfig *LinkedServiceAzureDatabricksNewClusterConfig `pulumi:"newClusterConfig"` // A map of parameters to associate with the Data Factory Linked Service. Parameters map[string]string `pulumi:"parameters"` } // The set of arguments for constructing a LinkedServiceAzureDatabricks resource. type LinkedServiceAzureDatabricksArgs struct { // Authenticate to ADB via an access token. AccessToken pulumi.StringPtrInput // The domain URL of the databricks instance. AdbDomain pulumi.StringInput // A map of additional properties to associate with the Data Factory Linked Service. AdditionalProperties pulumi.StringMapInput // List of tags that can be used for describing the Data Factory Linked Service. Annotations pulumi.StringArrayInput // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId pulumi.StringInput // The description for the Data Factory Linked Service. Description pulumi.StringPtrInput // The clusterId of an existing cluster within the linked ADB instance. ExistingClusterId pulumi.StringPtrInput // Leverages an instance pool within the linked ADB instance as one `instancePool` block defined below. InstancePool LinkedServiceAzureDatabricksInstancePoolPtrInput // The integration runtime reference to associate with the Data Factory Linked Service. IntegrationRuntimeName pulumi.StringPtrInput // Authenticate to ADB via Azure Key Vault Linked Service as defined in the `keyVaultPassword` block below. KeyVaultPassword LinkedServiceAzureDatabricksKeyVaultPasswordPtrInput // Authenticate to ADB via managed service identity. MsiWorkSpaceResourceId pulumi.StringPtrInput // Specifies the name of the Data Factory Linked Service. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringPtrInput // Creates new clusters within the linked ADB instance as defined in the `newClusterConfig` block below. NewClusterConfig LinkedServiceAzureDatabricksNewClusterConfigPtrInput // A map of parameters to associate with the Data Factory Linked Service. Parameters pulumi.StringMapInput } func (LinkedServiceAzureDatabricksArgs) ElementType() reflect.Type { return reflect.TypeOf((*linkedServiceAzureDatabricksArgs)(nil)).Elem() } type LinkedServiceAzureDatabricksInput interface { pulumi.Input ToLinkedServiceAzureDatabricksOutput() LinkedServiceAzureDatabricksOutput ToLinkedServiceAzureDatabricksOutputWithContext(ctx context.Context) LinkedServiceAzureDatabricksOutput } func (*LinkedServiceAzureDatabricks) ElementType() reflect.Type { return reflect.TypeOf((**LinkedServiceAzureDatabricks)(nil)).Elem() } func (i *LinkedServiceAzureDatabricks) ToLinkedServiceAzureDatabricksOutput() LinkedServiceAzureDatabricksOutput { return i.ToLinkedServiceAzureDatabricksOutputWithContext(context.Background()) } func (i *LinkedServiceAzureDatabricks) ToLinkedServiceAzureDatabricksOutputWithContext(ctx context.Context) LinkedServiceAzureDatabricksOutput { return pulumi.ToOutputWithContext(ctx, i).(LinkedServiceAzureDatabricksOutput) } // LinkedServiceAzureDatabricksArrayInput is an input type that accepts LinkedServiceAzureDatabricksArray and LinkedServiceAzureDatabricksArrayOutput values. // You can construct a concrete instance of `LinkedServiceAzureDatabricksArrayInput` via: // // LinkedServiceAzureDatabricksArray{ LinkedServiceAzureDatabricksArgs{...} } type LinkedServiceAzureDatabricksArrayInput interface { pulumi.Input ToLinkedServiceAzureDatabricksArrayOutput() LinkedServiceAzureDatabricksArrayOutput ToLinkedServiceAzureDatabricksArrayOutputWithContext(context.Context) LinkedServiceAzureDatabricksArrayOutput } type LinkedServiceAzureDatabricksArray []LinkedServiceAzureDatabricksInput func (LinkedServiceAzureDatabricksArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*LinkedServiceAzureDatabricks)(nil)).Elem() } func (i LinkedServiceAzureDatabricksArray) ToLinkedServiceAzureDatabricksArrayOutput() LinkedServiceAzureDatabricksArrayOutput { return i.ToLinkedServiceAzureDatabricksArrayOutputWithContext(context.Background()) } func (i LinkedServiceAzureDatabricksArray) ToLinkedServiceAzureDatabricksArrayOutputWithContext(ctx context.Context) LinkedServiceAzureDatabricksArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(LinkedServiceAzureDatabricksArrayOutput) } // LinkedServiceAzureDatabricksMapInput is an input type that accepts LinkedServiceAzureDatabricksMap and LinkedServiceAzureDatabricksMapOutput values. // You can construct a concrete instance of `LinkedServiceAzureDatabricksMapInput` via: // // LinkedServiceAzureDatabricksMap{ "key": LinkedServiceAzureDatabricksArgs{...} } type LinkedServiceAzureDatabricksMapInput interface { pulumi.Input ToLinkedServiceAzureDatabricksMapOutput() LinkedServiceAzureDatabricksMapOutput ToLinkedServiceAzureDatabricksMapOutputWithContext(context.Context) LinkedServiceAzureDatabricksMapOutput } type LinkedServiceAzureDatabricksMap map[string]LinkedServiceAzureDatabricksInput func (LinkedServiceAzureDatabricksMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*LinkedServiceAzureDatabricks)(nil)).Elem() } func (i LinkedServiceAzureDatabricksMap) ToLinkedServiceAzureDatabricksMapOutput() LinkedServiceAzureDatabricksMapOutput { return i.ToLinkedServiceAzureDatabricksMapOutputWithContext(context.Background()) } func (i LinkedServiceAzureDatabricksMap) ToLinkedServiceAzureDatabricksMapOutputWithContext(ctx context.Context) LinkedServiceAzureDatabricksMapOutput { return pulumi.ToOutputWithContext(ctx, i).(LinkedServiceAzureDatabricksMapOutput) } type LinkedServiceAzureDatabricksOutput struct{ *pulumi.OutputState } func (LinkedServiceAzureDatabricksOutput) ElementType() reflect.Type { return reflect.TypeOf((**LinkedServiceAzureDatabricks)(nil)).Elem() } func (o LinkedServiceAzureDatabricksOutput) ToLinkedServiceAzureDatabricksOutput() LinkedServiceAzureDatabricksOutput { return o } func (o LinkedServiceAzureDatabricksOutput) ToLinkedServiceAzureDatabricksOutputWithContext(ctx context.Context) LinkedServiceAzureDatabricksOutput { return o } // Authenticate to ADB via an access token. func (o LinkedServiceAzureDatabricksOutput) AccessToken() pulumi.StringPtrOutput { return o.ApplyT(func(v *LinkedServiceAzureDatabricks) pulumi.StringPtrOutput { return v.AccessToken }).(pulumi.StringPtrOutput) } // The domain URL of the databricks instance. func (o LinkedServiceAzureDatabricksOutput) AdbDomain() pulumi.StringOutput { return o.ApplyT(func(v *LinkedServiceAzureDatabricks) pulumi.StringOutput { return v.AdbDomain }).(pulumi.StringOutput) } // A map of additional properties to associate with the Data Factory Linked Service. func (o LinkedServiceAzureDatabricksOutput) AdditionalProperties() pulumi.StringMapOutput { return o.ApplyT(func(v *LinkedServiceAzureDatabricks) pulumi.StringMapOutput { return v.AdditionalProperties }).(pulumi.StringMapOutput) } // List of tags that can be used for describing the Data Factory Linked Service. func (o LinkedServiceAzureDatabricksOutput) Annotations() pulumi.StringArrayOutput { return o.ApplyT(func(v *LinkedServiceAzureDatabricks) pulumi.StringArrayOutput { return v.Annotations }).(pulumi.StringArrayOutput) } // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. func (o LinkedServiceAzureDatabricksOutput) DataFactoryId() pulumi.StringOutput { return o.ApplyT(func(v *LinkedServiceAzureDatabricks) pulumi.StringOutput { return v.DataFactoryId }).(pulumi.StringOutput) } // The description for the Data Factory Linked Service. func (o LinkedServiceAzureDatabricksOutput) Description() pulumi.StringPtrOutput { return o.ApplyT(func(v *LinkedServiceAzureDatabricks) pulumi.StringPtrOutput { return v.Description }).(pulumi.StringPtrOutput) } // The clusterId of an existing cluster within the linked ADB instance. func (o LinkedServiceAzureDatabricksOutput) ExistingClusterId() pulumi.StringPtrOutput { return o.ApplyT(func(v *LinkedServiceAzureDatabricks) pulumi.StringPtrOutput { return v.ExistingClusterId }).(pulumi.StringPtrOutput) } // Leverages an instance pool within the linked ADB instance as one `instancePool` block defined below. func (o LinkedServiceAzureDatabricksOutput) InstancePool() LinkedServiceAzureDatabricksInstancePoolPtrOutput { return o.ApplyT(func(v *LinkedServiceAzureDatabricks) LinkedServiceAzureDatabricksInstancePoolPtrOutput { return v.InstancePool }).(LinkedServiceAzureDatabricksInstancePoolPtrOutput) } // The integration runtime reference to associate with the Data Factory Linked Service. func (o LinkedServiceAzureDatabricksOutput) IntegrationRuntimeName() pulumi.StringPtrOutput { return o.ApplyT(func(v *LinkedServiceAzureDatabricks) pulumi.StringPtrOutput { return v.IntegrationRuntimeName }).(pulumi.StringPtrOutput) } // Authenticate to ADB via Azure Key Vault Linked Service as defined in the `keyVaultPassword` block below. func (o LinkedServiceAzureDatabricksOutput) KeyVaultPassword() LinkedServiceAzureDatabricksKeyVaultPasswordPtrOutput { return o.ApplyT(func(v *LinkedServiceAzureDatabricks) LinkedServiceAzureDatabricksKeyVaultPasswordPtrOutput { return v.KeyVaultPassword }).(LinkedServiceAzureDatabricksKeyVaultPasswordPtrOutput) } // Authenticate to ADB via managed service identity. func (o LinkedServiceAzureDatabricksOutput) MsiWorkSpaceResourceId() pulumi.StringPtrOutput { return o.ApplyT(func(v *LinkedServiceAzureDatabricks) pulumi.StringPtrOutput { return v.MsiWorkSpaceResourceId }).(pulumi.StringPtrOutput) } // Specifies the name of the Data Factory Linked Service. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. func (o LinkedServiceAzureDatabricksOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *LinkedServiceAzureDatabricks) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // Creates new clusters within the linked ADB instance as defined in the `newClusterConfig` block below. func (o LinkedServiceAzureDatabricksOutput) NewClusterConfig() LinkedServiceAzureDatabricksNewClusterConfigPtrOutput { return o.ApplyT(func(v *LinkedServiceAzureDatabricks) LinkedServiceAzureDatabricksNewClusterConfigPtrOutput { return v.NewClusterConfig }).(LinkedServiceAzureDatabricksNewClusterConfigPtrOutput) } // A map of parameters to associate with the Data Factory Linked Service. func (o LinkedServiceAzureDatabricksOutput) Parameters() pulumi.StringMapOutput { return o.ApplyT(func(v *LinkedServiceAzureDatabricks) pulumi.StringMapOutput { return v.Parameters }).(pulumi.StringMapOutput) } type LinkedServiceAzureDatabricksArrayOutput struct{ *pulumi.OutputState } func (LinkedServiceAzureDatabricksArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*LinkedServiceAzureDatabricks)(nil)).Elem() } func (o LinkedServiceAzureDatabricksArrayOutput) ToLinkedServiceAzureDatabricksArrayOutput() LinkedServiceAzureDatabricksArrayOutput { return o } func (o LinkedServiceAzureDatabricksArrayOutput) ToLinkedServiceAzureDatabricksArrayOutputWithContext(ctx context.Context) LinkedServiceAzureDatabricksArrayOutput { return o } func (o LinkedServiceAzureDatabricksArrayOutput) Index(i pulumi.IntInput) LinkedServiceAzureDatabricksOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *LinkedServiceAzureDatabricks { return vs[0].([]*LinkedServiceAzureDatabricks)[vs[1].(int)] }).(LinkedServiceAzureDatabricksOutput) } type LinkedServiceAzureDatabricksMapOutput struct{ *pulumi.OutputState } func (LinkedServiceAzureDatabricksMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*LinkedServiceAzureDatabricks)(nil)).Elem() } func (o LinkedServiceAzureDatabricksMapOutput) ToLinkedServiceAzureDatabricksMapOutput() LinkedServiceAzureDatabricksMapOutput { return o } func (o LinkedServiceAzureDatabricksMapOutput) ToLinkedServiceAzureDatabricksMapOutputWithContext(ctx context.Context) LinkedServiceAzureDatabricksMapOutput { return o } func (o LinkedServiceAzureDatabricksMapOutput) MapIndex(k pulumi.StringInput) LinkedServiceAzureDatabricksOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *LinkedServiceAzureDatabricks { return vs[0].(map[string]*LinkedServiceAzureDatabricks)[vs[1].(string)] }).(LinkedServiceAzureDatabricksOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*LinkedServiceAzureDatabricksInput)(nil)).Elem(), &LinkedServiceAzureDatabricks{}) pulumi.RegisterInputType(reflect.TypeOf((*LinkedServiceAzureDatabricksArrayInput)(nil)).Elem(), LinkedServiceAzureDatabricksArray{}) pulumi.RegisterInputType(reflect.TypeOf((*LinkedServiceAzureDatabricksMapInput)(nil)).Elem(), LinkedServiceAzureDatabricksMap{}) pulumi.RegisterOutputType(LinkedServiceAzureDatabricksOutput{}) pulumi.RegisterOutputType(LinkedServiceAzureDatabricksArrayOutput{}) pulumi.RegisterOutputType(LinkedServiceAzureDatabricksMapOutput{}) }
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/datafactory/datasetPostgresql.go
sdk/go/azure/datafactory/datasetPostgresql.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 datafactory import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a PostgreSQL Dataset inside a Azure Data Factory. // // ## 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/datafactory" // "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 // } // exampleFactory, err := datafactory.NewFactory(ctx, "example", &datafactory.FactoryArgs{ // Name: pulumi.String("example"), // Location: example.Location, // ResourceGroupName: example.Name, // }) // if err != nil { // return err // } // exampleLinkedServicePostgresql, err := datafactory.NewLinkedServicePostgresql(ctx, "example", &datafactory.LinkedServicePostgresqlArgs{ // Name: pulumi.String("example"), // DataFactoryId: exampleFactory.ID(), // ConnectionString: pulumi.String("Host=example;Port=5432;Database=example;UID=example;EncryptionMethod=0;Password=example"), // }) // if err != nil { // return err // } // _, err = datafactory.NewDatasetPostgresql(ctx, "example", &datafactory.DatasetPostgresqlArgs{ // Name: pulumi.String("example"), // DataFactoryId: exampleFactory.ID(), // LinkedServiceName: exampleLinkedServicePostgresql.Name, // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## Import // // Data Factory PostgreSQL Datasets can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:datafactory/datasetPostgresql:DatasetPostgresql example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example/providers/Microsoft.DataFactory/factories/example/datasets/example // ``` type DatasetPostgresql struct { pulumi.CustomResourceState // A map of additional properties to associate with the Data Factory Dataset PostgreSQL. AdditionalProperties pulumi.StringMapOutput `pulumi:"additionalProperties"` // List of tags that can be used for describing the Data Factory Dataset PostgreSQL. Annotations pulumi.StringArrayOutput `pulumi:"annotations"` // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId pulumi.StringOutput `pulumi:"dataFactoryId"` // The description for the Data Factory Dataset PostgreSQL. Description pulumi.StringPtrOutput `pulumi:"description"` // The folder that this Dataset is in. If not specified, the Dataset will appear at the root level. Folder pulumi.StringPtrOutput `pulumi:"folder"` // The Data Factory Linked Service name in which to associate the Dataset with. LinkedServiceName pulumi.StringOutput `pulumi:"linkedServiceName"` // Specifies the name of the Data Factory Dataset PostgreSQL. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringOutput `pulumi:"name"` // A map of parameters to associate with the Data Factory Dataset PostgreSQL. Parameters pulumi.StringMapOutput `pulumi:"parameters"` // A `schemaColumn` block as defined below. SchemaColumns DatasetPostgresqlSchemaColumnArrayOutput `pulumi:"schemaColumns"` // The table name of the Data Factory Dataset PostgreSQL. TableName pulumi.StringPtrOutput `pulumi:"tableName"` } // NewDatasetPostgresql registers a new resource with the given unique name, arguments, and options. func NewDatasetPostgresql(ctx *pulumi.Context, name string, args *DatasetPostgresqlArgs, opts ...pulumi.ResourceOption) (*DatasetPostgresql, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.DataFactoryId == nil { return nil, errors.New("invalid value for required argument 'DataFactoryId'") } if args.LinkedServiceName == nil { return nil, errors.New("invalid value for required argument 'LinkedServiceName'") } opts = internal.PkgResourceDefaultOpts(opts) var resource DatasetPostgresql err := ctx.RegisterResource("azure:datafactory/datasetPostgresql:DatasetPostgresql", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetDatasetPostgresql gets an existing DatasetPostgresql 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 GetDatasetPostgresql(ctx *pulumi.Context, name string, id pulumi.IDInput, state *DatasetPostgresqlState, opts ...pulumi.ResourceOption) (*DatasetPostgresql, error) { var resource DatasetPostgresql err := ctx.ReadResource("azure:datafactory/datasetPostgresql:DatasetPostgresql", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering DatasetPostgresql resources. type datasetPostgresqlState struct { // A map of additional properties to associate with the Data Factory Dataset PostgreSQL. AdditionalProperties map[string]string `pulumi:"additionalProperties"` // List of tags that can be used for describing the Data Factory Dataset PostgreSQL. Annotations []string `pulumi:"annotations"` // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId *string `pulumi:"dataFactoryId"` // The description for the Data Factory Dataset PostgreSQL. Description *string `pulumi:"description"` // The folder that this Dataset is in. If not specified, the Dataset will appear at the root level. Folder *string `pulumi:"folder"` // The Data Factory Linked Service name in which to associate the Dataset with. LinkedServiceName *string `pulumi:"linkedServiceName"` // Specifies the name of the Data Factory Dataset PostgreSQL. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name *string `pulumi:"name"` // A map of parameters to associate with the Data Factory Dataset PostgreSQL. Parameters map[string]string `pulumi:"parameters"` // A `schemaColumn` block as defined below. SchemaColumns []DatasetPostgresqlSchemaColumn `pulumi:"schemaColumns"` // The table name of the Data Factory Dataset PostgreSQL. TableName *string `pulumi:"tableName"` } type DatasetPostgresqlState struct { // A map of additional properties to associate with the Data Factory Dataset PostgreSQL. AdditionalProperties pulumi.StringMapInput // List of tags that can be used for describing the Data Factory Dataset PostgreSQL. Annotations pulumi.StringArrayInput // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId pulumi.StringPtrInput // The description for the Data Factory Dataset PostgreSQL. Description pulumi.StringPtrInput // The folder that this Dataset is in. If not specified, the Dataset will appear at the root level. Folder pulumi.StringPtrInput // The Data Factory Linked Service name in which to associate the Dataset with. LinkedServiceName pulumi.StringPtrInput // Specifies the name of the Data Factory Dataset PostgreSQL. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringPtrInput // A map of parameters to associate with the Data Factory Dataset PostgreSQL. Parameters pulumi.StringMapInput // A `schemaColumn` block as defined below. SchemaColumns DatasetPostgresqlSchemaColumnArrayInput // The table name of the Data Factory Dataset PostgreSQL. TableName pulumi.StringPtrInput } func (DatasetPostgresqlState) ElementType() reflect.Type { return reflect.TypeOf((*datasetPostgresqlState)(nil)).Elem() } type datasetPostgresqlArgs struct { // A map of additional properties to associate with the Data Factory Dataset PostgreSQL. AdditionalProperties map[string]string `pulumi:"additionalProperties"` // List of tags that can be used for describing the Data Factory Dataset PostgreSQL. Annotations []string `pulumi:"annotations"` // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId string `pulumi:"dataFactoryId"` // The description for the Data Factory Dataset PostgreSQL. Description *string `pulumi:"description"` // The folder that this Dataset is in. If not specified, the Dataset will appear at the root level. Folder *string `pulumi:"folder"` // The Data Factory Linked Service name in which to associate the Dataset with. LinkedServiceName string `pulumi:"linkedServiceName"` // Specifies the name of the Data Factory Dataset PostgreSQL. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name *string `pulumi:"name"` // A map of parameters to associate with the Data Factory Dataset PostgreSQL. Parameters map[string]string `pulumi:"parameters"` // A `schemaColumn` block as defined below. SchemaColumns []DatasetPostgresqlSchemaColumn `pulumi:"schemaColumns"` // The table name of the Data Factory Dataset PostgreSQL. TableName *string `pulumi:"tableName"` } // The set of arguments for constructing a DatasetPostgresql resource. type DatasetPostgresqlArgs struct { // A map of additional properties to associate with the Data Factory Dataset PostgreSQL. AdditionalProperties pulumi.StringMapInput // List of tags that can be used for describing the Data Factory Dataset PostgreSQL. Annotations pulumi.StringArrayInput // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId pulumi.StringInput // The description for the Data Factory Dataset PostgreSQL. Description pulumi.StringPtrInput // The folder that this Dataset is in. If not specified, the Dataset will appear at the root level. Folder pulumi.StringPtrInput // The Data Factory Linked Service name in which to associate the Dataset with. LinkedServiceName pulumi.StringInput // Specifies the name of the Data Factory Dataset PostgreSQL. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringPtrInput // A map of parameters to associate with the Data Factory Dataset PostgreSQL. Parameters pulumi.StringMapInput // A `schemaColumn` block as defined below. SchemaColumns DatasetPostgresqlSchemaColumnArrayInput // The table name of the Data Factory Dataset PostgreSQL. TableName pulumi.StringPtrInput } func (DatasetPostgresqlArgs) ElementType() reflect.Type { return reflect.TypeOf((*datasetPostgresqlArgs)(nil)).Elem() } type DatasetPostgresqlInput interface { pulumi.Input ToDatasetPostgresqlOutput() DatasetPostgresqlOutput ToDatasetPostgresqlOutputWithContext(ctx context.Context) DatasetPostgresqlOutput } func (*DatasetPostgresql) ElementType() reflect.Type { return reflect.TypeOf((**DatasetPostgresql)(nil)).Elem() } func (i *DatasetPostgresql) ToDatasetPostgresqlOutput() DatasetPostgresqlOutput { return i.ToDatasetPostgresqlOutputWithContext(context.Background()) } func (i *DatasetPostgresql) ToDatasetPostgresqlOutputWithContext(ctx context.Context) DatasetPostgresqlOutput { return pulumi.ToOutputWithContext(ctx, i).(DatasetPostgresqlOutput) } // DatasetPostgresqlArrayInput is an input type that accepts DatasetPostgresqlArray and DatasetPostgresqlArrayOutput values. // You can construct a concrete instance of `DatasetPostgresqlArrayInput` via: // // DatasetPostgresqlArray{ DatasetPostgresqlArgs{...} } type DatasetPostgresqlArrayInput interface { pulumi.Input ToDatasetPostgresqlArrayOutput() DatasetPostgresqlArrayOutput ToDatasetPostgresqlArrayOutputWithContext(context.Context) DatasetPostgresqlArrayOutput } type DatasetPostgresqlArray []DatasetPostgresqlInput func (DatasetPostgresqlArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*DatasetPostgresql)(nil)).Elem() } func (i DatasetPostgresqlArray) ToDatasetPostgresqlArrayOutput() DatasetPostgresqlArrayOutput { return i.ToDatasetPostgresqlArrayOutputWithContext(context.Background()) } func (i DatasetPostgresqlArray) ToDatasetPostgresqlArrayOutputWithContext(ctx context.Context) DatasetPostgresqlArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(DatasetPostgresqlArrayOutput) } // DatasetPostgresqlMapInput is an input type that accepts DatasetPostgresqlMap and DatasetPostgresqlMapOutput values. // You can construct a concrete instance of `DatasetPostgresqlMapInput` via: // // DatasetPostgresqlMap{ "key": DatasetPostgresqlArgs{...} } type DatasetPostgresqlMapInput interface { pulumi.Input ToDatasetPostgresqlMapOutput() DatasetPostgresqlMapOutput ToDatasetPostgresqlMapOutputWithContext(context.Context) DatasetPostgresqlMapOutput } type DatasetPostgresqlMap map[string]DatasetPostgresqlInput func (DatasetPostgresqlMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*DatasetPostgresql)(nil)).Elem() } func (i DatasetPostgresqlMap) ToDatasetPostgresqlMapOutput() DatasetPostgresqlMapOutput { return i.ToDatasetPostgresqlMapOutputWithContext(context.Background()) } func (i DatasetPostgresqlMap) ToDatasetPostgresqlMapOutputWithContext(ctx context.Context) DatasetPostgresqlMapOutput { return pulumi.ToOutputWithContext(ctx, i).(DatasetPostgresqlMapOutput) } type DatasetPostgresqlOutput struct{ *pulumi.OutputState } func (DatasetPostgresqlOutput) ElementType() reflect.Type { return reflect.TypeOf((**DatasetPostgresql)(nil)).Elem() } func (o DatasetPostgresqlOutput) ToDatasetPostgresqlOutput() DatasetPostgresqlOutput { return o } func (o DatasetPostgresqlOutput) ToDatasetPostgresqlOutputWithContext(ctx context.Context) DatasetPostgresqlOutput { return o } // A map of additional properties to associate with the Data Factory Dataset PostgreSQL. func (o DatasetPostgresqlOutput) AdditionalProperties() pulumi.StringMapOutput { return o.ApplyT(func(v *DatasetPostgresql) pulumi.StringMapOutput { return v.AdditionalProperties }).(pulumi.StringMapOutput) } // List of tags that can be used for describing the Data Factory Dataset PostgreSQL. func (o DatasetPostgresqlOutput) Annotations() pulumi.StringArrayOutput { return o.ApplyT(func(v *DatasetPostgresql) pulumi.StringArrayOutput { return v.Annotations }).(pulumi.StringArrayOutput) } // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. func (o DatasetPostgresqlOutput) DataFactoryId() pulumi.StringOutput { return o.ApplyT(func(v *DatasetPostgresql) pulumi.StringOutput { return v.DataFactoryId }).(pulumi.StringOutput) } // The description for the Data Factory Dataset PostgreSQL. func (o DatasetPostgresqlOutput) Description() pulumi.StringPtrOutput { return o.ApplyT(func(v *DatasetPostgresql) pulumi.StringPtrOutput { return v.Description }).(pulumi.StringPtrOutput) } // The folder that this Dataset is in. If not specified, the Dataset will appear at the root level. func (o DatasetPostgresqlOutput) Folder() pulumi.StringPtrOutput { return o.ApplyT(func(v *DatasetPostgresql) pulumi.StringPtrOutput { return v.Folder }).(pulumi.StringPtrOutput) } // The Data Factory Linked Service name in which to associate the Dataset with. func (o DatasetPostgresqlOutput) LinkedServiceName() pulumi.StringOutput { return o.ApplyT(func(v *DatasetPostgresql) pulumi.StringOutput { return v.LinkedServiceName }).(pulumi.StringOutput) } // Specifies the name of the Data Factory Dataset PostgreSQL. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. func (o DatasetPostgresqlOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *DatasetPostgresql) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // A map of parameters to associate with the Data Factory Dataset PostgreSQL. func (o DatasetPostgresqlOutput) Parameters() pulumi.StringMapOutput { return o.ApplyT(func(v *DatasetPostgresql) pulumi.StringMapOutput { return v.Parameters }).(pulumi.StringMapOutput) } // A `schemaColumn` block as defined below. func (o DatasetPostgresqlOutput) SchemaColumns() DatasetPostgresqlSchemaColumnArrayOutput { return o.ApplyT(func(v *DatasetPostgresql) DatasetPostgresqlSchemaColumnArrayOutput { return v.SchemaColumns }).(DatasetPostgresqlSchemaColumnArrayOutput) } // The table name of the Data Factory Dataset PostgreSQL. func (o DatasetPostgresqlOutput) TableName() pulumi.StringPtrOutput { return o.ApplyT(func(v *DatasetPostgresql) pulumi.StringPtrOutput { return v.TableName }).(pulumi.StringPtrOutput) } type DatasetPostgresqlArrayOutput struct{ *pulumi.OutputState } func (DatasetPostgresqlArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*DatasetPostgresql)(nil)).Elem() } func (o DatasetPostgresqlArrayOutput) ToDatasetPostgresqlArrayOutput() DatasetPostgresqlArrayOutput { return o } func (o DatasetPostgresqlArrayOutput) ToDatasetPostgresqlArrayOutputWithContext(ctx context.Context) DatasetPostgresqlArrayOutput { return o } func (o DatasetPostgresqlArrayOutput) Index(i pulumi.IntInput) DatasetPostgresqlOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *DatasetPostgresql { return vs[0].([]*DatasetPostgresql)[vs[1].(int)] }).(DatasetPostgresqlOutput) } type DatasetPostgresqlMapOutput struct{ *pulumi.OutputState } func (DatasetPostgresqlMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*DatasetPostgresql)(nil)).Elem() } func (o DatasetPostgresqlMapOutput) ToDatasetPostgresqlMapOutput() DatasetPostgresqlMapOutput { return o } func (o DatasetPostgresqlMapOutput) ToDatasetPostgresqlMapOutputWithContext(ctx context.Context) DatasetPostgresqlMapOutput { return o } func (o DatasetPostgresqlMapOutput) MapIndex(k pulumi.StringInput) DatasetPostgresqlOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *DatasetPostgresql { return vs[0].(map[string]*DatasetPostgresql)[vs[1].(string)] }).(DatasetPostgresqlOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*DatasetPostgresqlInput)(nil)).Elem(), &DatasetPostgresql{}) pulumi.RegisterInputType(reflect.TypeOf((*DatasetPostgresqlArrayInput)(nil)).Elem(), DatasetPostgresqlArray{}) pulumi.RegisterInputType(reflect.TypeOf((*DatasetPostgresqlMapInput)(nil)).Elem(), DatasetPostgresqlMap{}) pulumi.RegisterOutputType(DatasetPostgresqlOutput{}) pulumi.RegisterOutputType(DatasetPostgresqlArrayOutput{}) pulumi.RegisterOutputType(DatasetPostgresqlMapOutput{}) }
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/datafactory/linkedServiceAzureSearch.go
sdk/go/azure/datafactory/linkedServiceAzureSearch.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 datafactory import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a Linked Service (connection) between Azure Search Service and Azure Data Factory. // // ## 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/datafactory" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/search" // "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 // } // exampleFactory, err := datafactory.NewFactory(ctx, "example", &datafactory.FactoryArgs{ // Name: pulumi.String("example"), // Location: example.Location, // ResourceGroupName: example.Name, // }) // if err != nil { // return err // } // exampleService, err := search.NewService(ctx, "example", &search.ServiceArgs{ // Name: pulumi.String("example-search-service"), // ResourceGroupName: example.Name, // Location: example.Location, // Sku: pulumi.String("standard"), // }) // if err != nil { // return err // } // _, err = datafactory.NewLinkedServiceAzureSearch(ctx, "test", &datafactory.LinkedServiceAzureSearchArgs{ // Name: pulumi.String("example"), // DataFactoryId: exampleFactory.ID(), // Url: pulumi.String(std.JoinOutput(ctx, std.JoinOutputArgs{ // Separator: pulumi.String(""), // Input: pulumi.StringArray{ // pulumi.String("https://"), // exampleService.Name, // pulumi.String(".search.windows.net"), // }, // }, nil).ApplyT(func(invoke std.JoinResult) (*string, error) { // return invoke.Result, nil // }).(pulumi.StringPtrOutput)), // SearchServiceKey: exampleService.PrimaryKey, // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## Import // // Data Factory Linked Service's can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:datafactory/linkedServiceAzureSearch:LinkedServiceAzureSearch example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example/providers/Microsoft.DataFactory/factories/example/linkedservices/example // ``` type LinkedServiceAzureSearch struct { pulumi.CustomResourceState // A map of additional properties to associate with the Data Factory Linked Service. // // The following supported arguments are specific to Azure Search Linked Service: AdditionalProperties pulumi.StringMapOutput `pulumi:"additionalProperties"` // List of tags that can be used for describing the Data Factory Linked Service. Annotations pulumi.StringArrayOutput `pulumi:"annotations"` // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId pulumi.StringOutput `pulumi:"dataFactoryId"` // The description for the Data Factory Linked Service. Description pulumi.StringPtrOutput `pulumi:"description"` // The encrypted credential to connect to Azure Search Service. EncryptedCredential pulumi.StringOutput `pulumi:"encryptedCredential"` // The integration runtime reference to associate with the Data Factory Linked Service. IntegrationRuntimeName pulumi.StringPtrOutput `pulumi:"integrationRuntimeName"` // Specifies the name of the Data Factory Linked Service. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringOutput `pulumi:"name"` // A map of parameters to associate with the Data Factory Linked Service. Parameters pulumi.StringMapOutput `pulumi:"parameters"` // The key of the Azure Search Service. SearchServiceKey pulumi.StringOutput `pulumi:"searchServiceKey"` // The URL of the Search Service endpoint (e.g. <https://{searchServiceName}.search.windows.net>). Url pulumi.StringOutput `pulumi:"url"` } // NewLinkedServiceAzureSearch registers a new resource with the given unique name, arguments, and options. func NewLinkedServiceAzureSearch(ctx *pulumi.Context, name string, args *LinkedServiceAzureSearchArgs, opts ...pulumi.ResourceOption) (*LinkedServiceAzureSearch, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.DataFactoryId == nil { return nil, errors.New("invalid value for required argument 'DataFactoryId'") } if args.SearchServiceKey == nil { return nil, errors.New("invalid value for required argument 'SearchServiceKey'") } if args.Url == nil { return nil, errors.New("invalid value for required argument 'Url'") } opts = internal.PkgResourceDefaultOpts(opts) var resource LinkedServiceAzureSearch err := ctx.RegisterResource("azure:datafactory/linkedServiceAzureSearch:LinkedServiceAzureSearch", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetLinkedServiceAzureSearch gets an existing LinkedServiceAzureSearch 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 GetLinkedServiceAzureSearch(ctx *pulumi.Context, name string, id pulumi.IDInput, state *LinkedServiceAzureSearchState, opts ...pulumi.ResourceOption) (*LinkedServiceAzureSearch, error) { var resource LinkedServiceAzureSearch err := ctx.ReadResource("azure:datafactory/linkedServiceAzureSearch:LinkedServiceAzureSearch", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering LinkedServiceAzureSearch resources. type linkedServiceAzureSearchState struct { // A map of additional properties to associate with the Data Factory Linked Service. // // The following supported arguments are specific to Azure Search Linked Service: AdditionalProperties map[string]string `pulumi:"additionalProperties"` // List of tags that can be used for describing the Data Factory Linked Service. Annotations []string `pulumi:"annotations"` // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId *string `pulumi:"dataFactoryId"` // The description for the Data Factory Linked Service. Description *string `pulumi:"description"` // The encrypted credential to connect to Azure Search Service. EncryptedCredential *string `pulumi:"encryptedCredential"` // The integration runtime reference to associate with the Data Factory Linked Service. IntegrationRuntimeName *string `pulumi:"integrationRuntimeName"` // Specifies the name of the Data Factory Linked Service. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name *string `pulumi:"name"` // A map of parameters to associate with the Data Factory Linked Service. Parameters map[string]string `pulumi:"parameters"` // The key of the Azure Search Service. SearchServiceKey *string `pulumi:"searchServiceKey"` // The URL of the Search Service endpoint (e.g. <https://{searchServiceName}.search.windows.net>). Url *string `pulumi:"url"` } type LinkedServiceAzureSearchState struct { // A map of additional properties to associate with the Data Factory Linked Service. // // The following supported arguments are specific to Azure Search Linked Service: AdditionalProperties pulumi.StringMapInput // List of tags that can be used for describing the Data Factory Linked Service. Annotations pulumi.StringArrayInput // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId pulumi.StringPtrInput // The description for the Data Factory Linked Service. Description pulumi.StringPtrInput // The encrypted credential to connect to Azure Search Service. EncryptedCredential pulumi.StringPtrInput // The integration runtime reference to associate with the Data Factory Linked Service. IntegrationRuntimeName pulumi.StringPtrInput // Specifies the name of the Data Factory Linked Service. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringPtrInput // A map of parameters to associate with the Data Factory Linked Service. Parameters pulumi.StringMapInput // The key of the Azure Search Service. SearchServiceKey pulumi.StringPtrInput // The URL of the Search Service endpoint (e.g. <https://{searchServiceName}.search.windows.net>). Url pulumi.StringPtrInput } func (LinkedServiceAzureSearchState) ElementType() reflect.Type { return reflect.TypeOf((*linkedServiceAzureSearchState)(nil)).Elem() } type linkedServiceAzureSearchArgs struct { // A map of additional properties to associate with the Data Factory Linked Service. // // The following supported arguments are specific to Azure Search Linked Service: AdditionalProperties map[string]string `pulumi:"additionalProperties"` // List of tags that can be used for describing the Data Factory Linked Service. Annotations []string `pulumi:"annotations"` // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId string `pulumi:"dataFactoryId"` // The description for the Data Factory Linked Service. Description *string `pulumi:"description"` // The integration runtime reference to associate with the Data Factory Linked Service. IntegrationRuntimeName *string `pulumi:"integrationRuntimeName"` // Specifies the name of the Data Factory Linked Service. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name *string `pulumi:"name"` // A map of parameters to associate with the Data Factory Linked Service. Parameters map[string]string `pulumi:"parameters"` // The key of the Azure Search Service. SearchServiceKey string `pulumi:"searchServiceKey"` // The URL of the Search Service endpoint (e.g. <https://{searchServiceName}.search.windows.net>). Url string `pulumi:"url"` } // The set of arguments for constructing a LinkedServiceAzureSearch resource. type LinkedServiceAzureSearchArgs struct { // A map of additional properties to associate with the Data Factory Linked Service. // // The following supported arguments are specific to Azure Search Linked Service: AdditionalProperties pulumi.StringMapInput // List of tags that can be used for describing the Data Factory Linked Service. Annotations pulumi.StringArrayInput // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId pulumi.StringInput // The description for the Data Factory Linked Service. Description pulumi.StringPtrInput // The integration runtime reference to associate with the Data Factory Linked Service. IntegrationRuntimeName pulumi.StringPtrInput // Specifies the name of the Data Factory Linked Service. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringPtrInput // A map of parameters to associate with the Data Factory Linked Service. Parameters pulumi.StringMapInput // The key of the Azure Search Service. SearchServiceKey pulumi.StringInput // The URL of the Search Service endpoint (e.g. <https://{searchServiceName}.search.windows.net>). Url pulumi.StringInput } func (LinkedServiceAzureSearchArgs) ElementType() reflect.Type { return reflect.TypeOf((*linkedServiceAzureSearchArgs)(nil)).Elem() } type LinkedServiceAzureSearchInput interface { pulumi.Input ToLinkedServiceAzureSearchOutput() LinkedServiceAzureSearchOutput ToLinkedServiceAzureSearchOutputWithContext(ctx context.Context) LinkedServiceAzureSearchOutput } func (*LinkedServiceAzureSearch) ElementType() reflect.Type { return reflect.TypeOf((**LinkedServiceAzureSearch)(nil)).Elem() } func (i *LinkedServiceAzureSearch) ToLinkedServiceAzureSearchOutput() LinkedServiceAzureSearchOutput { return i.ToLinkedServiceAzureSearchOutputWithContext(context.Background()) } func (i *LinkedServiceAzureSearch) ToLinkedServiceAzureSearchOutputWithContext(ctx context.Context) LinkedServiceAzureSearchOutput { return pulumi.ToOutputWithContext(ctx, i).(LinkedServiceAzureSearchOutput) } // LinkedServiceAzureSearchArrayInput is an input type that accepts LinkedServiceAzureSearchArray and LinkedServiceAzureSearchArrayOutput values. // You can construct a concrete instance of `LinkedServiceAzureSearchArrayInput` via: // // LinkedServiceAzureSearchArray{ LinkedServiceAzureSearchArgs{...} } type LinkedServiceAzureSearchArrayInput interface { pulumi.Input ToLinkedServiceAzureSearchArrayOutput() LinkedServiceAzureSearchArrayOutput ToLinkedServiceAzureSearchArrayOutputWithContext(context.Context) LinkedServiceAzureSearchArrayOutput } type LinkedServiceAzureSearchArray []LinkedServiceAzureSearchInput func (LinkedServiceAzureSearchArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*LinkedServiceAzureSearch)(nil)).Elem() } func (i LinkedServiceAzureSearchArray) ToLinkedServiceAzureSearchArrayOutput() LinkedServiceAzureSearchArrayOutput { return i.ToLinkedServiceAzureSearchArrayOutputWithContext(context.Background()) } func (i LinkedServiceAzureSearchArray) ToLinkedServiceAzureSearchArrayOutputWithContext(ctx context.Context) LinkedServiceAzureSearchArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(LinkedServiceAzureSearchArrayOutput) } // LinkedServiceAzureSearchMapInput is an input type that accepts LinkedServiceAzureSearchMap and LinkedServiceAzureSearchMapOutput values. // You can construct a concrete instance of `LinkedServiceAzureSearchMapInput` via: // // LinkedServiceAzureSearchMap{ "key": LinkedServiceAzureSearchArgs{...} } type LinkedServiceAzureSearchMapInput interface { pulumi.Input ToLinkedServiceAzureSearchMapOutput() LinkedServiceAzureSearchMapOutput ToLinkedServiceAzureSearchMapOutputWithContext(context.Context) LinkedServiceAzureSearchMapOutput } type LinkedServiceAzureSearchMap map[string]LinkedServiceAzureSearchInput func (LinkedServiceAzureSearchMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*LinkedServiceAzureSearch)(nil)).Elem() } func (i LinkedServiceAzureSearchMap) ToLinkedServiceAzureSearchMapOutput() LinkedServiceAzureSearchMapOutput { return i.ToLinkedServiceAzureSearchMapOutputWithContext(context.Background()) } func (i LinkedServiceAzureSearchMap) ToLinkedServiceAzureSearchMapOutputWithContext(ctx context.Context) LinkedServiceAzureSearchMapOutput { return pulumi.ToOutputWithContext(ctx, i).(LinkedServiceAzureSearchMapOutput) } type LinkedServiceAzureSearchOutput struct{ *pulumi.OutputState } func (LinkedServiceAzureSearchOutput) ElementType() reflect.Type { return reflect.TypeOf((**LinkedServiceAzureSearch)(nil)).Elem() } func (o LinkedServiceAzureSearchOutput) ToLinkedServiceAzureSearchOutput() LinkedServiceAzureSearchOutput { return o } func (o LinkedServiceAzureSearchOutput) ToLinkedServiceAzureSearchOutputWithContext(ctx context.Context) LinkedServiceAzureSearchOutput { return o } // A map of additional properties to associate with the Data Factory Linked Service. // // The following supported arguments are specific to Azure Search Linked Service: func (o LinkedServiceAzureSearchOutput) AdditionalProperties() pulumi.StringMapOutput { return o.ApplyT(func(v *LinkedServiceAzureSearch) pulumi.StringMapOutput { return v.AdditionalProperties }).(pulumi.StringMapOutput) } // List of tags that can be used for describing the Data Factory Linked Service. func (o LinkedServiceAzureSearchOutput) Annotations() pulumi.StringArrayOutput { return o.ApplyT(func(v *LinkedServiceAzureSearch) pulumi.StringArrayOutput { return v.Annotations }).(pulumi.StringArrayOutput) } // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. func (o LinkedServiceAzureSearchOutput) DataFactoryId() pulumi.StringOutput { return o.ApplyT(func(v *LinkedServiceAzureSearch) pulumi.StringOutput { return v.DataFactoryId }).(pulumi.StringOutput) } // The description for the Data Factory Linked Service. func (o LinkedServiceAzureSearchOutput) Description() pulumi.StringPtrOutput { return o.ApplyT(func(v *LinkedServiceAzureSearch) pulumi.StringPtrOutput { return v.Description }).(pulumi.StringPtrOutput) } // The encrypted credential to connect to Azure Search Service. func (o LinkedServiceAzureSearchOutput) EncryptedCredential() pulumi.StringOutput { return o.ApplyT(func(v *LinkedServiceAzureSearch) pulumi.StringOutput { return v.EncryptedCredential }).(pulumi.StringOutput) } // The integration runtime reference to associate with the Data Factory Linked Service. func (o LinkedServiceAzureSearchOutput) IntegrationRuntimeName() pulumi.StringPtrOutput { return o.ApplyT(func(v *LinkedServiceAzureSearch) pulumi.StringPtrOutput { return v.IntegrationRuntimeName }).(pulumi.StringPtrOutput) } // Specifies the name of the Data Factory Linked Service. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. func (o LinkedServiceAzureSearchOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *LinkedServiceAzureSearch) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // A map of parameters to associate with the Data Factory Linked Service. func (o LinkedServiceAzureSearchOutput) Parameters() pulumi.StringMapOutput { return o.ApplyT(func(v *LinkedServiceAzureSearch) pulumi.StringMapOutput { return v.Parameters }).(pulumi.StringMapOutput) } // The key of the Azure Search Service. func (o LinkedServiceAzureSearchOutput) SearchServiceKey() pulumi.StringOutput { return o.ApplyT(func(v *LinkedServiceAzureSearch) pulumi.StringOutput { return v.SearchServiceKey }).(pulumi.StringOutput) } // The URL of the Search Service endpoint (e.g. <https://{searchServiceName}.search.windows.net>). func (o LinkedServiceAzureSearchOutput) Url() pulumi.StringOutput { return o.ApplyT(func(v *LinkedServiceAzureSearch) pulumi.StringOutput { return v.Url }).(pulumi.StringOutput) } type LinkedServiceAzureSearchArrayOutput struct{ *pulumi.OutputState } func (LinkedServiceAzureSearchArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*LinkedServiceAzureSearch)(nil)).Elem() } func (o LinkedServiceAzureSearchArrayOutput) ToLinkedServiceAzureSearchArrayOutput() LinkedServiceAzureSearchArrayOutput { return o } func (o LinkedServiceAzureSearchArrayOutput) ToLinkedServiceAzureSearchArrayOutputWithContext(ctx context.Context) LinkedServiceAzureSearchArrayOutput { return o } func (o LinkedServiceAzureSearchArrayOutput) Index(i pulumi.IntInput) LinkedServiceAzureSearchOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *LinkedServiceAzureSearch { return vs[0].([]*LinkedServiceAzureSearch)[vs[1].(int)] }).(LinkedServiceAzureSearchOutput) } type LinkedServiceAzureSearchMapOutput struct{ *pulumi.OutputState } func (LinkedServiceAzureSearchMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*LinkedServiceAzureSearch)(nil)).Elem() } func (o LinkedServiceAzureSearchMapOutput) ToLinkedServiceAzureSearchMapOutput() LinkedServiceAzureSearchMapOutput { return o } func (o LinkedServiceAzureSearchMapOutput) ToLinkedServiceAzureSearchMapOutputWithContext(ctx context.Context) LinkedServiceAzureSearchMapOutput { return o } func (o LinkedServiceAzureSearchMapOutput) MapIndex(k pulumi.StringInput) LinkedServiceAzureSearchOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *LinkedServiceAzureSearch { return vs[0].(map[string]*LinkedServiceAzureSearch)[vs[1].(string)] }).(LinkedServiceAzureSearchOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*LinkedServiceAzureSearchInput)(nil)).Elem(), &LinkedServiceAzureSearch{}) pulumi.RegisterInputType(reflect.TypeOf((*LinkedServiceAzureSearchArrayInput)(nil)).Elem(), LinkedServiceAzureSearchArray{}) pulumi.RegisterInputType(reflect.TypeOf((*LinkedServiceAzureSearchMapInput)(nil)).Elem(), LinkedServiceAzureSearchMap{}) pulumi.RegisterOutputType(LinkedServiceAzureSearchOutput{}) pulumi.RegisterOutputType(LinkedServiceAzureSearchArrayOutput{}) pulumi.RegisterOutputType(LinkedServiceAzureSearchMapOutput{}) }
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/datafactory/factory.go
sdk/go/azure/datafactory/factory.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 datafactory 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 Data Factory (Version 2). // // ## 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/datafactory" // "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 = datafactory.NewFactory(ctx, "example", &datafactory.FactoryArgs{ // Name: pulumi.String("example"), // 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.DataFactory` - 2018-06-01 // // ## Import // // Data Factory can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:datafactory/factory:Factory example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example/providers/Microsoft.DataFactory/factories/example // ``` type Factory struct { pulumi.CustomResourceState // Specifies the Azure Key Vault Key ID to be used as the Customer Managed Key (CMK) for double encryption. Required with user assigned identity. CustomerManagedKeyId pulumi.StringOutput `pulumi:"customerManagedKeyId"` // Specifies the ID of the user assigned identity associated with the Customer Managed Key. Must be supplied at factory creation if `customerManagedKeyId` is set. Can be left empty once factory is created to use the system assigned identity. See the [Microsoft documentation](https://learn.microsoft.com/en-us/azure/data-factory/enable-customer-managed-key) for more information. CustomerManagedKeyIdentityId pulumi.StringOutput `pulumi:"customerManagedKeyIdentityId"` // A `githubConfiguration` block as defined below. GithubConfiguration FactoryGithubConfigurationPtrOutput `pulumi:"githubConfiguration"` // A list of `globalParameter` blocks as defined above. GlobalParameters FactoryGlobalParameterArrayOutput `pulumi:"globalParameters"` // An `identity` block as defined below. Identity FactoryIdentityPtrOutput `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"` // Is Managed Virtual Network enabled? ManagedVirtualNetworkEnabled pulumi.BoolPtrOutput `pulumi:"managedVirtualNetworkEnabled"` // Specifies the name of the Data Factory. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringOutput `pulumi:"name"` // Is the Data Factory visible to the public network? Defaults to `true`. PublicNetworkEnabled pulumi.BoolPtrOutput `pulumi:"publicNetworkEnabled"` // Specifies the ID of the purview account resource associated with the Data Factory. PurviewId pulumi.StringPtrOutput `pulumi:"purviewId"` // The name of the resource group in which to create the Data Factory. 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"` // A `vstsConfiguration` block as defined below. VstsConfiguration FactoryVstsConfigurationPtrOutput `pulumi:"vstsConfiguration"` } // NewFactory registers a new resource with the given unique name, arguments, and options. func NewFactory(ctx *pulumi.Context, name string, args *FactoryArgs, opts ...pulumi.ResourceOption) (*Factory, 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 Factory err := ctx.RegisterResource("azure:datafactory/factory:Factory", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetFactory gets an existing Factory 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 GetFactory(ctx *pulumi.Context, name string, id pulumi.IDInput, state *FactoryState, opts ...pulumi.ResourceOption) (*Factory, error) { var resource Factory err := ctx.ReadResource("azure:datafactory/factory:Factory", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering Factory resources. type factoryState struct { // Specifies the Azure Key Vault Key ID to be used as the Customer Managed Key (CMK) for double encryption. Required with user assigned identity. CustomerManagedKeyId *string `pulumi:"customerManagedKeyId"` // Specifies the ID of the user assigned identity associated with the Customer Managed Key. Must be supplied at factory creation if `customerManagedKeyId` is set. Can be left empty once factory is created to use the system assigned identity. See the [Microsoft documentation](https://learn.microsoft.com/en-us/azure/data-factory/enable-customer-managed-key) for more information. CustomerManagedKeyIdentityId *string `pulumi:"customerManagedKeyIdentityId"` // A `githubConfiguration` block as defined below. GithubConfiguration *FactoryGithubConfiguration `pulumi:"githubConfiguration"` // A list of `globalParameter` blocks as defined above. GlobalParameters []FactoryGlobalParameter `pulumi:"globalParameters"` // An `identity` block as defined below. Identity *FactoryIdentity `pulumi:"identity"` // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location *string `pulumi:"location"` // Is Managed Virtual Network enabled? ManagedVirtualNetworkEnabled *bool `pulumi:"managedVirtualNetworkEnabled"` // Specifies the name of the Data Factory. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name *string `pulumi:"name"` // Is the Data Factory visible to the public network? Defaults to `true`. PublicNetworkEnabled *bool `pulumi:"publicNetworkEnabled"` // Specifies the ID of the purview account resource associated with the Data Factory. PurviewId *string `pulumi:"purviewId"` // The name of the resource group in which to create the Data Factory. 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"` // A `vstsConfiguration` block as defined below. VstsConfiguration *FactoryVstsConfiguration `pulumi:"vstsConfiguration"` } type FactoryState struct { // Specifies the Azure Key Vault Key ID to be used as the Customer Managed Key (CMK) for double encryption. Required with user assigned identity. CustomerManagedKeyId pulumi.StringPtrInput // Specifies the ID of the user assigned identity associated with the Customer Managed Key. Must be supplied at factory creation if `customerManagedKeyId` is set. Can be left empty once factory is created to use the system assigned identity. See the [Microsoft documentation](https://learn.microsoft.com/en-us/azure/data-factory/enable-customer-managed-key) for more information. CustomerManagedKeyIdentityId pulumi.StringPtrInput // A `githubConfiguration` block as defined below. GithubConfiguration FactoryGithubConfigurationPtrInput // A list of `globalParameter` blocks as defined above. GlobalParameters FactoryGlobalParameterArrayInput // An `identity` block as defined below. Identity FactoryIdentityPtrInput // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location pulumi.StringPtrInput // Is Managed Virtual Network enabled? ManagedVirtualNetworkEnabled pulumi.BoolPtrInput // Specifies the name of the Data Factory. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringPtrInput // Is the Data Factory visible to the public network? Defaults to `true`. PublicNetworkEnabled pulumi.BoolPtrInput // Specifies the ID of the purview account resource associated with the Data Factory. PurviewId pulumi.StringPtrInput // The name of the resource group in which to create the Data Factory. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringPtrInput // A mapping of tags to assign to the resource. Tags pulumi.StringMapInput // A `vstsConfiguration` block as defined below. VstsConfiguration FactoryVstsConfigurationPtrInput } func (FactoryState) ElementType() reflect.Type { return reflect.TypeOf((*factoryState)(nil)).Elem() } type factoryArgs struct { // Specifies the Azure Key Vault Key ID to be used as the Customer Managed Key (CMK) for double encryption. Required with user assigned identity. CustomerManagedKeyId *string `pulumi:"customerManagedKeyId"` // Specifies the ID of the user assigned identity associated with the Customer Managed Key. Must be supplied at factory creation if `customerManagedKeyId` is set. Can be left empty once factory is created to use the system assigned identity. See the [Microsoft documentation](https://learn.microsoft.com/en-us/azure/data-factory/enable-customer-managed-key) for more information. CustomerManagedKeyIdentityId *string `pulumi:"customerManagedKeyIdentityId"` // A `githubConfiguration` block as defined below. GithubConfiguration *FactoryGithubConfiguration `pulumi:"githubConfiguration"` // A list of `globalParameter` blocks as defined above. GlobalParameters []FactoryGlobalParameter `pulumi:"globalParameters"` // An `identity` block as defined below. Identity *FactoryIdentity `pulumi:"identity"` // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location *string `pulumi:"location"` // Is Managed Virtual Network enabled? ManagedVirtualNetworkEnabled *bool `pulumi:"managedVirtualNetworkEnabled"` // Specifies the name of the Data Factory. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name *string `pulumi:"name"` // Is the Data Factory visible to the public network? Defaults to `true`. PublicNetworkEnabled *bool `pulumi:"publicNetworkEnabled"` // Specifies the ID of the purview account resource associated with the Data Factory. PurviewId *string `pulumi:"purviewId"` // The name of the resource group in which to create the Data Factory. 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"` // A `vstsConfiguration` block as defined below. VstsConfiguration *FactoryVstsConfiguration `pulumi:"vstsConfiguration"` } // The set of arguments for constructing a Factory resource. type FactoryArgs struct { // Specifies the Azure Key Vault Key ID to be used as the Customer Managed Key (CMK) for double encryption. Required with user assigned identity. CustomerManagedKeyId pulumi.StringPtrInput // Specifies the ID of the user assigned identity associated with the Customer Managed Key. Must be supplied at factory creation if `customerManagedKeyId` is set. Can be left empty once factory is created to use the system assigned identity. See the [Microsoft documentation](https://learn.microsoft.com/en-us/azure/data-factory/enable-customer-managed-key) for more information. CustomerManagedKeyIdentityId pulumi.StringPtrInput // A `githubConfiguration` block as defined below. GithubConfiguration FactoryGithubConfigurationPtrInput // A list of `globalParameter` blocks as defined above. GlobalParameters FactoryGlobalParameterArrayInput // An `identity` block as defined below. Identity FactoryIdentityPtrInput // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location pulumi.StringPtrInput // Is Managed Virtual Network enabled? ManagedVirtualNetworkEnabled pulumi.BoolPtrInput // Specifies the name of the Data Factory. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringPtrInput // Is the Data Factory visible to the public network? Defaults to `true`. PublicNetworkEnabled pulumi.BoolPtrInput // Specifies the ID of the purview account resource associated with the Data Factory. PurviewId pulumi.StringPtrInput // The name of the resource group in which to create the Data Factory. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringInput // A mapping of tags to assign to the resource. Tags pulumi.StringMapInput // A `vstsConfiguration` block as defined below. VstsConfiguration FactoryVstsConfigurationPtrInput } func (FactoryArgs) ElementType() reflect.Type { return reflect.TypeOf((*factoryArgs)(nil)).Elem() } type FactoryInput interface { pulumi.Input ToFactoryOutput() FactoryOutput ToFactoryOutputWithContext(ctx context.Context) FactoryOutput } func (*Factory) ElementType() reflect.Type { return reflect.TypeOf((**Factory)(nil)).Elem() } func (i *Factory) ToFactoryOutput() FactoryOutput { return i.ToFactoryOutputWithContext(context.Background()) } func (i *Factory) ToFactoryOutputWithContext(ctx context.Context) FactoryOutput { return pulumi.ToOutputWithContext(ctx, i).(FactoryOutput) } // FactoryArrayInput is an input type that accepts FactoryArray and FactoryArrayOutput values. // You can construct a concrete instance of `FactoryArrayInput` via: // // FactoryArray{ FactoryArgs{...} } type FactoryArrayInput interface { pulumi.Input ToFactoryArrayOutput() FactoryArrayOutput ToFactoryArrayOutputWithContext(context.Context) FactoryArrayOutput } type FactoryArray []FactoryInput func (FactoryArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*Factory)(nil)).Elem() } func (i FactoryArray) ToFactoryArrayOutput() FactoryArrayOutput { return i.ToFactoryArrayOutputWithContext(context.Background()) } func (i FactoryArray) ToFactoryArrayOutputWithContext(ctx context.Context) FactoryArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(FactoryArrayOutput) } // FactoryMapInput is an input type that accepts FactoryMap and FactoryMapOutput values. // You can construct a concrete instance of `FactoryMapInput` via: // // FactoryMap{ "key": FactoryArgs{...} } type FactoryMapInput interface { pulumi.Input ToFactoryMapOutput() FactoryMapOutput ToFactoryMapOutputWithContext(context.Context) FactoryMapOutput } type FactoryMap map[string]FactoryInput func (FactoryMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*Factory)(nil)).Elem() } func (i FactoryMap) ToFactoryMapOutput() FactoryMapOutput { return i.ToFactoryMapOutputWithContext(context.Background()) } func (i FactoryMap) ToFactoryMapOutputWithContext(ctx context.Context) FactoryMapOutput { return pulumi.ToOutputWithContext(ctx, i).(FactoryMapOutput) } type FactoryOutput struct{ *pulumi.OutputState } func (FactoryOutput) ElementType() reflect.Type { return reflect.TypeOf((**Factory)(nil)).Elem() } func (o FactoryOutput) ToFactoryOutput() FactoryOutput { return o } func (o FactoryOutput) ToFactoryOutputWithContext(ctx context.Context) FactoryOutput { return o } // Specifies the Azure Key Vault Key ID to be used as the Customer Managed Key (CMK) for double encryption. Required with user assigned identity. func (o FactoryOutput) CustomerManagedKeyId() pulumi.StringOutput { return o.ApplyT(func(v *Factory) pulumi.StringOutput { return v.CustomerManagedKeyId }).(pulumi.StringOutput) } // Specifies the ID of the user assigned identity associated with the Customer Managed Key. Must be supplied at factory creation if `customerManagedKeyId` is set. Can be left empty once factory is created to use the system assigned identity. See the [Microsoft documentation](https://learn.microsoft.com/en-us/azure/data-factory/enable-customer-managed-key) for more information. func (o FactoryOutput) CustomerManagedKeyIdentityId() pulumi.StringOutput { return o.ApplyT(func(v *Factory) pulumi.StringOutput { return v.CustomerManagedKeyIdentityId }).(pulumi.StringOutput) } // A `githubConfiguration` block as defined below. func (o FactoryOutput) GithubConfiguration() FactoryGithubConfigurationPtrOutput { return o.ApplyT(func(v *Factory) FactoryGithubConfigurationPtrOutput { return v.GithubConfiguration }).(FactoryGithubConfigurationPtrOutput) } // A list of `globalParameter` blocks as defined above. func (o FactoryOutput) GlobalParameters() FactoryGlobalParameterArrayOutput { return o.ApplyT(func(v *Factory) FactoryGlobalParameterArrayOutput { return v.GlobalParameters }).(FactoryGlobalParameterArrayOutput) } // An `identity` block as defined below. func (o FactoryOutput) Identity() FactoryIdentityPtrOutput { return o.ApplyT(func(v *Factory) FactoryIdentityPtrOutput { return v.Identity }).(FactoryIdentityPtrOutput) } // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. func (o FactoryOutput) Location() pulumi.StringOutput { return o.ApplyT(func(v *Factory) pulumi.StringOutput { return v.Location }).(pulumi.StringOutput) } // Is Managed Virtual Network enabled? func (o FactoryOutput) ManagedVirtualNetworkEnabled() pulumi.BoolPtrOutput { return o.ApplyT(func(v *Factory) pulumi.BoolPtrOutput { return v.ManagedVirtualNetworkEnabled }).(pulumi.BoolPtrOutput) } // Specifies the name of the Data Factory. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. func (o FactoryOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *Factory) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // Is the Data Factory visible to the public network? Defaults to `true`. func (o FactoryOutput) PublicNetworkEnabled() pulumi.BoolPtrOutput { return o.ApplyT(func(v *Factory) pulumi.BoolPtrOutput { return v.PublicNetworkEnabled }).(pulumi.BoolPtrOutput) } // Specifies the ID of the purview account resource associated with the Data Factory. func (o FactoryOutput) PurviewId() pulumi.StringPtrOutput { return o.ApplyT(func(v *Factory) pulumi.StringPtrOutput { return v.PurviewId }).(pulumi.StringPtrOutput) } // The name of the resource group in which to create the Data Factory. Changing this forces a new resource to be created. func (o FactoryOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v *Factory) pulumi.StringOutput { return v.ResourceGroupName }).(pulumi.StringOutput) } // A mapping of tags to assign to the resource. func (o FactoryOutput) Tags() pulumi.StringMapOutput { return o.ApplyT(func(v *Factory) pulumi.StringMapOutput { return v.Tags }).(pulumi.StringMapOutput) } // A `vstsConfiguration` block as defined below. func (o FactoryOutput) VstsConfiguration() FactoryVstsConfigurationPtrOutput { return o.ApplyT(func(v *Factory) FactoryVstsConfigurationPtrOutput { return v.VstsConfiguration }).(FactoryVstsConfigurationPtrOutput) } type FactoryArrayOutput struct{ *pulumi.OutputState } func (FactoryArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*Factory)(nil)).Elem() } func (o FactoryArrayOutput) ToFactoryArrayOutput() FactoryArrayOutput { return o } func (o FactoryArrayOutput) ToFactoryArrayOutputWithContext(ctx context.Context) FactoryArrayOutput { return o } func (o FactoryArrayOutput) Index(i pulumi.IntInput) FactoryOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *Factory { return vs[0].([]*Factory)[vs[1].(int)] }).(FactoryOutput) } type FactoryMapOutput struct{ *pulumi.OutputState } func (FactoryMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*Factory)(nil)).Elem() } func (o FactoryMapOutput) ToFactoryMapOutput() FactoryMapOutput { return o } func (o FactoryMapOutput) ToFactoryMapOutputWithContext(ctx context.Context) FactoryMapOutput { return o } func (o FactoryMapOutput) MapIndex(k pulumi.StringInput) FactoryOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *Factory { return vs[0].(map[string]*Factory)[vs[1].(string)] }).(FactoryOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*FactoryInput)(nil)).Elem(), &Factory{}) pulumi.RegisterInputType(reflect.TypeOf((*FactoryArrayInput)(nil)).Elem(), FactoryArray{}) pulumi.RegisterInputType(reflect.TypeOf((*FactoryMapInput)(nil)).Elem(), FactoryMap{}) pulumi.RegisterOutputType(FactoryOutput{}) pulumi.RegisterOutputType(FactoryArrayOutput{}) pulumi.RegisterOutputType(FactoryMapOutput{}) }
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/datafactory/linkedServiceKeyVault.go
sdk/go/azure/datafactory/linkedServiceKeyVault.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 datafactory import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a Linked Service (connection) between Key Vault and Azure Data Factory. // // ## 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/datafactory" // "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 { // 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 // } // exampleKeyVault, err := keyvault.NewKeyVault(ctx, "example", &keyvault.KeyVaultArgs{ // Name: pulumi.String("example"), // Location: example.Location, // ResourceGroupName: example.Name, // TenantId: pulumi.String(current.TenantId), // SkuName: pulumi.String("standard"), // }) // if err != nil { // return err // } // exampleFactory, err := datafactory.NewFactory(ctx, "example", &datafactory.FactoryArgs{ // Name: pulumi.String("example"), // Location: example.Location, // ResourceGroupName: example.Name, // }) // if err != nil { // return err // } // _, err = datafactory.NewLinkedServiceKeyVault(ctx, "example", &datafactory.LinkedServiceKeyVaultArgs{ // Name: pulumi.String("example"), // DataFactoryId: exampleFactory.ID(), // KeyVaultId: exampleKeyVault.ID(), // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## Import // // Data Factory Key Vault Linked Service's can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:datafactory/linkedServiceKeyVault:LinkedServiceKeyVault example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example/providers/Microsoft.DataFactory/factories/example/linkedservices/example // ``` type LinkedServiceKeyVault struct { pulumi.CustomResourceState // A map of additional properties to associate with the Data Factory Linked Service Key Vault. AdditionalProperties pulumi.StringMapOutput `pulumi:"additionalProperties"` // List of tags that can be used for describing the Data Factory Linked Service Key Vault. Annotations pulumi.StringArrayOutput `pulumi:"annotations"` // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId pulumi.StringOutput `pulumi:"dataFactoryId"` // The description for the Data Factory Linked Service Key Vault. Description pulumi.StringPtrOutput `pulumi:"description"` // The integration runtime reference to associate with the Data Factory Linked Service Key Vault. IntegrationRuntimeName pulumi.StringPtrOutput `pulumi:"integrationRuntimeName"` // The ID the Azure Key Vault resource. KeyVaultId pulumi.StringOutput `pulumi:"keyVaultId"` // Specifies the name of the Data Factory Linked Service Key Vault. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringOutput `pulumi:"name"` // A map of parameters to associate with the Data Factory Linked Service Key Vault. Parameters pulumi.StringMapOutput `pulumi:"parameters"` } // NewLinkedServiceKeyVault registers a new resource with the given unique name, arguments, and options. func NewLinkedServiceKeyVault(ctx *pulumi.Context, name string, args *LinkedServiceKeyVaultArgs, opts ...pulumi.ResourceOption) (*LinkedServiceKeyVault, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.DataFactoryId == nil { return nil, errors.New("invalid value for required argument 'DataFactoryId'") } if args.KeyVaultId == nil { return nil, errors.New("invalid value for required argument 'KeyVaultId'") } opts = internal.PkgResourceDefaultOpts(opts) var resource LinkedServiceKeyVault err := ctx.RegisterResource("azure:datafactory/linkedServiceKeyVault:LinkedServiceKeyVault", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetLinkedServiceKeyVault gets an existing LinkedServiceKeyVault 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 GetLinkedServiceKeyVault(ctx *pulumi.Context, name string, id pulumi.IDInput, state *LinkedServiceKeyVaultState, opts ...pulumi.ResourceOption) (*LinkedServiceKeyVault, error) { var resource LinkedServiceKeyVault err := ctx.ReadResource("azure:datafactory/linkedServiceKeyVault:LinkedServiceKeyVault", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering LinkedServiceKeyVault resources. type linkedServiceKeyVaultState struct { // A map of additional properties to associate with the Data Factory Linked Service Key Vault. AdditionalProperties map[string]string `pulumi:"additionalProperties"` // List of tags that can be used for describing the Data Factory Linked Service Key Vault. Annotations []string `pulumi:"annotations"` // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId *string `pulumi:"dataFactoryId"` // The description for the Data Factory Linked Service Key Vault. Description *string `pulumi:"description"` // The integration runtime reference to associate with the Data Factory Linked Service Key Vault. IntegrationRuntimeName *string `pulumi:"integrationRuntimeName"` // The ID the Azure Key Vault resource. KeyVaultId *string `pulumi:"keyVaultId"` // Specifies the name of the Data Factory Linked Service Key Vault. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name *string `pulumi:"name"` // A map of parameters to associate with the Data Factory Linked Service Key Vault. Parameters map[string]string `pulumi:"parameters"` } type LinkedServiceKeyVaultState struct { // A map of additional properties to associate with the Data Factory Linked Service Key Vault. AdditionalProperties pulumi.StringMapInput // List of tags that can be used for describing the Data Factory Linked Service Key Vault. Annotations pulumi.StringArrayInput // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId pulumi.StringPtrInput // The description for the Data Factory Linked Service Key Vault. Description pulumi.StringPtrInput // The integration runtime reference to associate with the Data Factory Linked Service Key Vault. IntegrationRuntimeName pulumi.StringPtrInput // The ID the Azure Key Vault resource. KeyVaultId pulumi.StringPtrInput // Specifies the name of the Data Factory Linked Service Key Vault. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringPtrInput // A map of parameters to associate with the Data Factory Linked Service Key Vault. Parameters pulumi.StringMapInput } func (LinkedServiceKeyVaultState) ElementType() reflect.Type { return reflect.TypeOf((*linkedServiceKeyVaultState)(nil)).Elem() } type linkedServiceKeyVaultArgs struct { // A map of additional properties to associate with the Data Factory Linked Service Key Vault. AdditionalProperties map[string]string `pulumi:"additionalProperties"` // List of tags that can be used for describing the Data Factory Linked Service Key Vault. Annotations []string `pulumi:"annotations"` // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId string `pulumi:"dataFactoryId"` // The description for the Data Factory Linked Service Key Vault. Description *string `pulumi:"description"` // The integration runtime reference to associate with the Data Factory Linked Service Key Vault. IntegrationRuntimeName *string `pulumi:"integrationRuntimeName"` // The ID the Azure Key Vault resource. KeyVaultId string `pulumi:"keyVaultId"` // Specifies the name of the Data Factory Linked Service Key Vault. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name *string `pulumi:"name"` // A map of parameters to associate with the Data Factory Linked Service Key Vault. Parameters map[string]string `pulumi:"parameters"` } // The set of arguments for constructing a LinkedServiceKeyVault resource. type LinkedServiceKeyVaultArgs struct { // A map of additional properties to associate with the Data Factory Linked Service Key Vault. AdditionalProperties pulumi.StringMapInput // List of tags that can be used for describing the Data Factory Linked Service Key Vault. Annotations pulumi.StringArrayInput // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId pulumi.StringInput // The description for the Data Factory Linked Service Key Vault. Description pulumi.StringPtrInput // The integration runtime reference to associate with the Data Factory Linked Service Key Vault. IntegrationRuntimeName pulumi.StringPtrInput // The ID the Azure Key Vault resource. KeyVaultId pulumi.StringInput // Specifies the name of the Data Factory Linked Service Key Vault. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringPtrInput // A map of parameters to associate with the Data Factory Linked Service Key Vault. Parameters pulumi.StringMapInput } func (LinkedServiceKeyVaultArgs) ElementType() reflect.Type { return reflect.TypeOf((*linkedServiceKeyVaultArgs)(nil)).Elem() } type LinkedServiceKeyVaultInput interface { pulumi.Input ToLinkedServiceKeyVaultOutput() LinkedServiceKeyVaultOutput ToLinkedServiceKeyVaultOutputWithContext(ctx context.Context) LinkedServiceKeyVaultOutput } func (*LinkedServiceKeyVault) ElementType() reflect.Type { return reflect.TypeOf((**LinkedServiceKeyVault)(nil)).Elem() } func (i *LinkedServiceKeyVault) ToLinkedServiceKeyVaultOutput() LinkedServiceKeyVaultOutput { return i.ToLinkedServiceKeyVaultOutputWithContext(context.Background()) } func (i *LinkedServiceKeyVault) ToLinkedServiceKeyVaultOutputWithContext(ctx context.Context) LinkedServiceKeyVaultOutput { return pulumi.ToOutputWithContext(ctx, i).(LinkedServiceKeyVaultOutput) } // LinkedServiceKeyVaultArrayInput is an input type that accepts LinkedServiceKeyVaultArray and LinkedServiceKeyVaultArrayOutput values. // You can construct a concrete instance of `LinkedServiceKeyVaultArrayInput` via: // // LinkedServiceKeyVaultArray{ LinkedServiceKeyVaultArgs{...} } type LinkedServiceKeyVaultArrayInput interface { pulumi.Input ToLinkedServiceKeyVaultArrayOutput() LinkedServiceKeyVaultArrayOutput ToLinkedServiceKeyVaultArrayOutputWithContext(context.Context) LinkedServiceKeyVaultArrayOutput } type LinkedServiceKeyVaultArray []LinkedServiceKeyVaultInput func (LinkedServiceKeyVaultArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*LinkedServiceKeyVault)(nil)).Elem() } func (i LinkedServiceKeyVaultArray) ToLinkedServiceKeyVaultArrayOutput() LinkedServiceKeyVaultArrayOutput { return i.ToLinkedServiceKeyVaultArrayOutputWithContext(context.Background()) } func (i LinkedServiceKeyVaultArray) ToLinkedServiceKeyVaultArrayOutputWithContext(ctx context.Context) LinkedServiceKeyVaultArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(LinkedServiceKeyVaultArrayOutput) } // LinkedServiceKeyVaultMapInput is an input type that accepts LinkedServiceKeyVaultMap and LinkedServiceKeyVaultMapOutput values. // You can construct a concrete instance of `LinkedServiceKeyVaultMapInput` via: // // LinkedServiceKeyVaultMap{ "key": LinkedServiceKeyVaultArgs{...} } type LinkedServiceKeyVaultMapInput interface { pulumi.Input ToLinkedServiceKeyVaultMapOutput() LinkedServiceKeyVaultMapOutput ToLinkedServiceKeyVaultMapOutputWithContext(context.Context) LinkedServiceKeyVaultMapOutput } type LinkedServiceKeyVaultMap map[string]LinkedServiceKeyVaultInput func (LinkedServiceKeyVaultMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*LinkedServiceKeyVault)(nil)).Elem() } func (i LinkedServiceKeyVaultMap) ToLinkedServiceKeyVaultMapOutput() LinkedServiceKeyVaultMapOutput { return i.ToLinkedServiceKeyVaultMapOutputWithContext(context.Background()) } func (i LinkedServiceKeyVaultMap) ToLinkedServiceKeyVaultMapOutputWithContext(ctx context.Context) LinkedServiceKeyVaultMapOutput { return pulumi.ToOutputWithContext(ctx, i).(LinkedServiceKeyVaultMapOutput) } type LinkedServiceKeyVaultOutput struct{ *pulumi.OutputState } func (LinkedServiceKeyVaultOutput) ElementType() reflect.Type { return reflect.TypeOf((**LinkedServiceKeyVault)(nil)).Elem() } func (o LinkedServiceKeyVaultOutput) ToLinkedServiceKeyVaultOutput() LinkedServiceKeyVaultOutput { return o } func (o LinkedServiceKeyVaultOutput) ToLinkedServiceKeyVaultOutputWithContext(ctx context.Context) LinkedServiceKeyVaultOutput { return o } // A map of additional properties to associate with the Data Factory Linked Service Key Vault. func (o LinkedServiceKeyVaultOutput) AdditionalProperties() pulumi.StringMapOutput { return o.ApplyT(func(v *LinkedServiceKeyVault) pulumi.StringMapOutput { return v.AdditionalProperties }).(pulumi.StringMapOutput) } // List of tags that can be used for describing the Data Factory Linked Service Key Vault. func (o LinkedServiceKeyVaultOutput) Annotations() pulumi.StringArrayOutput { return o.ApplyT(func(v *LinkedServiceKeyVault) pulumi.StringArrayOutput { return v.Annotations }).(pulumi.StringArrayOutput) } // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. func (o LinkedServiceKeyVaultOutput) DataFactoryId() pulumi.StringOutput { return o.ApplyT(func(v *LinkedServiceKeyVault) pulumi.StringOutput { return v.DataFactoryId }).(pulumi.StringOutput) } // The description for the Data Factory Linked Service Key Vault. func (o LinkedServiceKeyVaultOutput) Description() pulumi.StringPtrOutput { return o.ApplyT(func(v *LinkedServiceKeyVault) pulumi.StringPtrOutput { return v.Description }).(pulumi.StringPtrOutput) } // The integration runtime reference to associate with the Data Factory Linked Service Key Vault. func (o LinkedServiceKeyVaultOutput) IntegrationRuntimeName() pulumi.StringPtrOutput { return o.ApplyT(func(v *LinkedServiceKeyVault) pulumi.StringPtrOutput { return v.IntegrationRuntimeName }).(pulumi.StringPtrOutput) } // The ID the Azure Key Vault resource. func (o LinkedServiceKeyVaultOutput) KeyVaultId() pulumi.StringOutput { return o.ApplyT(func(v *LinkedServiceKeyVault) pulumi.StringOutput { return v.KeyVaultId }).(pulumi.StringOutput) } // Specifies the name of the Data Factory Linked Service Key Vault. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. func (o LinkedServiceKeyVaultOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *LinkedServiceKeyVault) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // A map of parameters to associate with the Data Factory Linked Service Key Vault. func (o LinkedServiceKeyVaultOutput) Parameters() pulumi.StringMapOutput { return o.ApplyT(func(v *LinkedServiceKeyVault) pulumi.StringMapOutput { return v.Parameters }).(pulumi.StringMapOutput) } type LinkedServiceKeyVaultArrayOutput struct{ *pulumi.OutputState } func (LinkedServiceKeyVaultArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*LinkedServiceKeyVault)(nil)).Elem() } func (o LinkedServiceKeyVaultArrayOutput) ToLinkedServiceKeyVaultArrayOutput() LinkedServiceKeyVaultArrayOutput { return o } func (o LinkedServiceKeyVaultArrayOutput) ToLinkedServiceKeyVaultArrayOutputWithContext(ctx context.Context) LinkedServiceKeyVaultArrayOutput { return o } func (o LinkedServiceKeyVaultArrayOutput) Index(i pulumi.IntInput) LinkedServiceKeyVaultOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *LinkedServiceKeyVault { return vs[0].([]*LinkedServiceKeyVault)[vs[1].(int)] }).(LinkedServiceKeyVaultOutput) } type LinkedServiceKeyVaultMapOutput struct{ *pulumi.OutputState } func (LinkedServiceKeyVaultMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*LinkedServiceKeyVault)(nil)).Elem() } func (o LinkedServiceKeyVaultMapOutput) ToLinkedServiceKeyVaultMapOutput() LinkedServiceKeyVaultMapOutput { return o } func (o LinkedServiceKeyVaultMapOutput) ToLinkedServiceKeyVaultMapOutputWithContext(ctx context.Context) LinkedServiceKeyVaultMapOutput { return o } func (o LinkedServiceKeyVaultMapOutput) MapIndex(k pulumi.StringInput) LinkedServiceKeyVaultOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *LinkedServiceKeyVault { return vs[0].(map[string]*LinkedServiceKeyVault)[vs[1].(string)] }).(LinkedServiceKeyVaultOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*LinkedServiceKeyVaultInput)(nil)).Elem(), &LinkedServiceKeyVault{}) pulumi.RegisterInputType(reflect.TypeOf((*LinkedServiceKeyVaultArrayInput)(nil)).Elem(), LinkedServiceKeyVaultArray{}) pulumi.RegisterInputType(reflect.TypeOf((*LinkedServiceKeyVaultMapInput)(nil)).Elem(), LinkedServiceKeyVaultMap{}) pulumi.RegisterOutputType(LinkedServiceKeyVaultOutput{}) pulumi.RegisterOutputType(LinkedServiceKeyVaultArrayOutput{}) pulumi.RegisterOutputType(LinkedServiceKeyVaultMapOutput{}) }
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/datafactory/getTriggerSchedules.go
sdk/go/azure/datafactory/getTriggerSchedules.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 datafactory 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 all existing trigger schedules in Azure Data Factory. // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/datafactory" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { // example, err := datafactory.GetTriggerSchedules(ctx, &datafactory.GetTriggerSchedulesArgs{ // DataFactoryId: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.DataFactory/factories/datafactory1", // }, nil) // if err != nil { // return err // } // ctx.Export("items", example.Items) // return nil // }) // } // // ``` func GetTriggerSchedules(ctx *pulumi.Context, args *GetTriggerSchedulesArgs, opts ...pulumi.InvokeOption) (*GetTriggerSchedulesResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv GetTriggerSchedulesResult err := ctx.Invoke("azure:datafactory/getTriggerSchedules:getTriggerSchedules", args, &rv, opts...) if err != nil { return nil, err } return &rv, nil } // A collection of arguments for invoking getTriggerSchedules. type GetTriggerSchedulesArgs struct { // The ID of the Azure Data Factory to fetch trigger schedules from. DataFactoryId string `pulumi:"dataFactoryId"` } // A collection of values returned by getTriggerSchedules. type GetTriggerSchedulesResult struct { DataFactoryId string `pulumi:"dataFactoryId"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` // A list of trigger schedule names available in this Azure Data Factory. Items []string `pulumi:"items"` } func GetTriggerSchedulesOutput(ctx *pulumi.Context, args GetTriggerSchedulesOutputArgs, opts ...pulumi.InvokeOption) GetTriggerSchedulesResultOutput { return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetTriggerSchedulesResultOutput, error) { args := v.(GetTriggerSchedulesArgs) options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} return ctx.InvokeOutput("azure:datafactory/getTriggerSchedules:getTriggerSchedules", args, GetTriggerSchedulesResultOutput{}, options).(GetTriggerSchedulesResultOutput), nil }).(GetTriggerSchedulesResultOutput) } // A collection of arguments for invoking getTriggerSchedules. type GetTriggerSchedulesOutputArgs struct { // The ID of the Azure Data Factory to fetch trigger schedules from. DataFactoryId pulumi.StringInput `pulumi:"dataFactoryId"` } func (GetTriggerSchedulesOutputArgs) ElementType() reflect.Type { return reflect.TypeOf((*GetTriggerSchedulesArgs)(nil)).Elem() } // A collection of values returned by getTriggerSchedules. type GetTriggerSchedulesResultOutput struct{ *pulumi.OutputState } func (GetTriggerSchedulesResultOutput) ElementType() reflect.Type { return reflect.TypeOf((*GetTriggerSchedulesResult)(nil)).Elem() } func (o GetTriggerSchedulesResultOutput) ToGetTriggerSchedulesResultOutput() GetTriggerSchedulesResultOutput { return o } func (o GetTriggerSchedulesResultOutput) ToGetTriggerSchedulesResultOutputWithContext(ctx context.Context) GetTriggerSchedulesResultOutput { return o } func (o GetTriggerSchedulesResultOutput) DataFactoryId() pulumi.StringOutput { return o.ApplyT(func(v GetTriggerSchedulesResult) string { return v.DataFactoryId }).(pulumi.StringOutput) } // The provider-assigned unique ID for this managed resource. func (o GetTriggerSchedulesResultOutput) Id() pulumi.StringOutput { return o.ApplyT(func(v GetTriggerSchedulesResult) string { return v.Id }).(pulumi.StringOutput) } // A list of trigger schedule names available in this Azure Data Factory. func (o GetTriggerSchedulesResultOutput) Items() pulumi.StringArrayOutput { return o.ApplyT(func(v GetTriggerSchedulesResult) []string { return v.Items }).(pulumi.StringArrayOutput) } func init() { pulumi.RegisterOutputType(GetTriggerSchedulesResultOutput{}) }
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/datafactory/linkedServiceCosmosDb.go
sdk/go/azure/datafactory/linkedServiceCosmosDb.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 datafactory import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a Linked Service (connection) between a CosmosDB and Azure Data Factory using SQL API. // // ## 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/cosmosdb" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/datafactory" // "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 := cosmosdb.LookupAccount(ctx, &cosmosdb.LookupAccountArgs{ // Name: "tfex-cosmosdb-account", // ResourceGroupName: "tfex-cosmosdb-account-rg", // }, nil) // if err != nil { // return err // } // exampleFactory, err := datafactory.NewFactory(ctx, "example", &datafactory.FactoryArgs{ // Name: pulumi.String("example"), // Location: exampleResourceGroup.Location, // ResourceGroupName: exampleResourceGroup.Name, // }) // if err != nil { // return err // } // _, err = datafactory.NewLinkedServiceCosmosDb(ctx, "example", &datafactory.LinkedServiceCosmosDbArgs{ // Name: pulumi.String("example"), // DataFactoryId: exampleFactory.ID(), // AccountEndpoint: pulumi.String(example.Endpoint), // AccountKey: pulumi.String(example.PrimaryKey), // Database: pulumi.String("foo"), // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## Import // // Data Factory Linked Service's can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:datafactory/linkedServiceCosmosDb:LinkedServiceCosmosDb example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example/providers/Microsoft.DataFactory/factories/example/linkedservices/example // ``` type LinkedServiceCosmosDb struct { pulumi.CustomResourceState // The endpoint of the Azure CosmosDB account. Required if `connectionString` is unspecified. AccountEndpoint pulumi.StringPtrOutput `pulumi:"accountEndpoint"` // The account key of the Azure Cosmos DB account. Required if `connectionString` is unspecified. AccountKey pulumi.StringPtrOutput `pulumi:"accountKey"` // A map of additional properties to associate with the Data Factory Linked Service. // // The following supported arguments are specific to CosmosDB Linked Service: AdditionalProperties pulumi.StringMapOutput `pulumi:"additionalProperties"` // List of tags that can be used for describing the Data Factory Linked Service. Annotations pulumi.StringArrayOutput `pulumi:"annotations"` // The connection string. Required if `accountEndpoint`, `accountKey`, and `database` are unspecified. ConnectionString pulumi.StringPtrOutput `pulumi:"connectionString"` // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId pulumi.StringOutput `pulumi:"dataFactoryId"` // The name of the database. Required if `connectionString` is unspecified. Database pulumi.StringPtrOutput `pulumi:"database"` // The description for the Data Factory Linked Service. Description pulumi.StringPtrOutput `pulumi:"description"` // The integration runtime reference to associate with the Data Factory Linked Service. IntegrationRuntimeName pulumi.StringPtrOutput `pulumi:"integrationRuntimeName"` // Specifies the name of the Data Factory Linked Service. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringOutput `pulumi:"name"` // A map of parameters to associate with the Data Factory Linked Service. Parameters pulumi.StringMapOutput `pulumi:"parameters"` } // NewLinkedServiceCosmosDb registers a new resource with the given unique name, arguments, and options. func NewLinkedServiceCosmosDb(ctx *pulumi.Context, name string, args *LinkedServiceCosmosDbArgs, opts ...pulumi.ResourceOption) (*LinkedServiceCosmosDb, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.DataFactoryId == nil { return nil, errors.New("invalid value for required argument 'DataFactoryId'") } if args.AccountKey != nil { args.AccountKey = pulumi.ToSecret(args.AccountKey).(pulumi.StringPtrInput) } if args.ConnectionString != nil { args.ConnectionString = pulumi.ToSecret(args.ConnectionString).(pulumi.StringPtrInput) } secrets := pulumi.AdditionalSecretOutputs([]string{ "accountKey", "connectionString", }) opts = append(opts, secrets) opts = internal.PkgResourceDefaultOpts(opts) var resource LinkedServiceCosmosDb err := ctx.RegisterResource("azure:datafactory/linkedServiceCosmosDb:LinkedServiceCosmosDb", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetLinkedServiceCosmosDb gets an existing LinkedServiceCosmosDb 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 GetLinkedServiceCosmosDb(ctx *pulumi.Context, name string, id pulumi.IDInput, state *LinkedServiceCosmosDbState, opts ...pulumi.ResourceOption) (*LinkedServiceCosmosDb, error) { var resource LinkedServiceCosmosDb err := ctx.ReadResource("azure:datafactory/linkedServiceCosmosDb:LinkedServiceCosmosDb", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering LinkedServiceCosmosDb resources. type linkedServiceCosmosDbState struct { // The endpoint of the Azure CosmosDB account. Required if `connectionString` is unspecified. AccountEndpoint *string `pulumi:"accountEndpoint"` // The account key of the Azure Cosmos DB account. Required if `connectionString` is unspecified. AccountKey *string `pulumi:"accountKey"` // A map of additional properties to associate with the Data Factory Linked Service. // // The following supported arguments are specific to CosmosDB Linked Service: AdditionalProperties map[string]string `pulumi:"additionalProperties"` // List of tags that can be used for describing the Data Factory Linked Service. Annotations []string `pulumi:"annotations"` // The connection string. Required if `accountEndpoint`, `accountKey`, and `database` are unspecified. ConnectionString *string `pulumi:"connectionString"` // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId *string `pulumi:"dataFactoryId"` // The name of the database. Required if `connectionString` is unspecified. Database *string `pulumi:"database"` // The description for the Data Factory Linked Service. Description *string `pulumi:"description"` // The integration runtime reference to associate with the Data Factory Linked Service. IntegrationRuntimeName *string `pulumi:"integrationRuntimeName"` // Specifies the name of the Data Factory Linked Service. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name *string `pulumi:"name"` // A map of parameters to associate with the Data Factory Linked Service. Parameters map[string]string `pulumi:"parameters"` } type LinkedServiceCosmosDbState struct { // The endpoint of the Azure CosmosDB account. Required if `connectionString` is unspecified. AccountEndpoint pulumi.StringPtrInput // The account key of the Azure Cosmos DB account. Required if `connectionString` is unspecified. AccountKey pulumi.StringPtrInput // A map of additional properties to associate with the Data Factory Linked Service. // // The following supported arguments are specific to CosmosDB Linked Service: AdditionalProperties pulumi.StringMapInput // List of tags that can be used for describing the Data Factory Linked Service. Annotations pulumi.StringArrayInput // The connection string. Required if `accountEndpoint`, `accountKey`, and `database` are unspecified. ConnectionString pulumi.StringPtrInput // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId pulumi.StringPtrInput // The name of the database. Required if `connectionString` is unspecified. Database pulumi.StringPtrInput // The description for the Data Factory Linked Service. Description pulumi.StringPtrInput // The integration runtime reference to associate with the Data Factory Linked Service. IntegrationRuntimeName pulumi.StringPtrInput // Specifies the name of the Data Factory Linked Service. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringPtrInput // A map of parameters to associate with the Data Factory Linked Service. Parameters pulumi.StringMapInput } func (LinkedServiceCosmosDbState) ElementType() reflect.Type { return reflect.TypeOf((*linkedServiceCosmosDbState)(nil)).Elem() } type linkedServiceCosmosDbArgs struct { // The endpoint of the Azure CosmosDB account. Required if `connectionString` is unspecified. AccountEndpoint *string `pulumi:"accountEndpoint"` // The account key of the Azure Cosmos DB account. Required if `connectionString` is unspecified. AccountKey *string `pulumi:"accountKey"` // A map of additional properties to associate with the Data Factory Linked Service. // // The following supported arguments are specific to CosmosDB Linked Service: AdditionalProperties map[string]string `pulumi:"additionalProperties"` // List of tags that can be used for describing the Data Factory Linked Service. Annotations []string `pulumi:"annotations"` // The connection string. Required if `accountEndpoint`, `accountKey`, and `database` are unspecified. ConnectionString *string `pulumi:"connectionString"` // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId string `pulumi:"dataFactoryId"` // The name of the database. Required if `connectionString` is unspecified. Database *string `pulumi:"database"` // The description for the Data Factory Linked Service. Description *string `pulumi:"description"` // The integration runtime reference to associate with the Data Factory Linked Service. IntegrationRuntimeName *string `pulumi:"integrationRuntimeName"` // Specifies the name of the Data Factory Linked Service. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name *string `pulumi:"name"` // A map of parameters to associate with the Data Factory Linked Service. Parameters map[string]string `pulumi:"parameters"` } // The set of arguments for constructing a LinkedServiceCosmosDb resource. type LinkedServiceCosmosDbArgs struct { // The endpoint of the Azure CosmosDB account. Required if `connectionString` is unspecified. AccountEndpoint pulumi.StringPtrInput // The account key of the Azure Cosmos DB account. Required if `connectionString` is unspecified. AccountKey pulumi.StringPtrInput // A map of additional properties to associate with the Data Factory Linked Service. // // The following supported arguments are specific to CosmosDB Linked Service: AdditionalProperties pulumi.StringMapInput // List of tags that can be used for describing the Data Factory Linked Service. Annotations pulumi.StringArrayInput // The connection string. Required if `accountEndpoint`, `accountKey`, and `database` are unspecified. ConnectionString pulumi.StringPtrInput // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId pulumi.StringInput // The name of the database. Required if `connectionString` is unspecified. Database pulumi.StringPtrInput // The description for the Data Factory Linked Service. Description pulumi.StringPtrInput // The integration runtime reference to associate with the Data Factory Linked Service. IntegrationRuntimeName pulumi.StringPtrInput // Specifies the name of the Data Factory Linked Service. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringPtrInput // A map of parameters to associate with the Data Factory Linked Service. Parameters pulumi.StringMapInput } func (LinkedServiceCosmosDbArgs) ElementType() reflect.Type { return reflect.TypeOf((*linkedServiceCosmosDbArgs)(nil)).Elem() } type LinkedServiceCosmosDbInput interface { pulumi.Input ToLinkedServiceCosmosDbOutput() LinkedServiceCosmosDbOutput ToLinkedServiceCosmosDbOutputWithContext(ctx context.Context) LinkedServiceCosmosDbOutput } func (*LinkedServiceCosmosDb) ElementType() reflect.Type { return reflect.TypeOf((**LinkedServiceCosmosDb)(nil)).Elem() } func (i *LinkedServiceCosmosDb) ToLinkedServiceCosmosDbOutput() LinkedServiceCosmosDbOutput { return i.ToLinkedServiceCosmosDbOutputWithContext(context.Background()) } func (i *LinkedServiceCosmosDb) ToLinkedServiceCosmosDbOutputWithContext(ctx context.Context) LinkedServiceCosmosDbOutput { return pulumi.ToOutputWithContext(ctx, i).(LinkedServiceCosmosDbOutput) } // LinkedServiceCosmosDbArrayInput is an input type that accepts LinkedServiceCosmosDbArray and LinkedServiceCosmosDbArrayOutput values. // You can construct a concrete instance of `LinkedServiceCosmosDbArrayInput` via: // // LinkedServiceCosmosDbArray{ LinkedServiceCosmosDbArgs{...} } type LinkedServiceCosmosDbArrayInput interface { pulumi.Input ToLinkedServiceCosmosDbArrayOutput() LinkedServiceCosmosDbArrayOutput ToLinkedServiceCosmosDbArrayOutputWithContext(context.Context) LinkedServiceCosmosDbArrayOutput } type LinkedServiceCosmosDbArray []LinkedServiceCosmosDbInput func (LinkedServiceCosmosDbArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*LinkedServiceCosmosDb)(nil)).Elem() } func (i LinkedServiceCosmosDbArray) ToLinkedServiceCosmosDbArrayOutput() LinkedServiceCosmosDbArrayOutput { return i.ToLinkedServiceCosmosDbArrayOutputWithContext(context.Background()) } func (i LinkedServiceCosmosDbArray) ToLinkedServiceCosmosDbArrayOutputWithContext(ctx context.Context) LinkedServiceCosmosDbArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(LinkedServiceCosmosDbArrayOutput) } // LinkedServiceCosmosDbMapInput is an input type that accepts LinkedServiceCosmosDbMap and LinkedServiceCosmosDbMapOutput values. // You can construct a concrete instance of `LinkedServiceCosmosDbMapInput` via: // // LinkedServiceCosmosDbMap{ "key": LinkedServiceCosmosDbArgs{...} } type LinkedServiceCosmosDbMapInput interface { pulumi.Input ToLinkedServiceCosmosDbMapOutput() LinkedServiceCosmosDbMapOutput ToLinkedServiceCosmosDbMapOutputWithContext(context.Context) LinkedServiceCosmosDbMapOutput } type LinkedServiceCosmosDbMap map[string]LinkedServiceCosmosDbInput func (LinkedServiceCosmosDbMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*LinkedServiceCosmosDb)(nil)).Elem() } func (i LinkedServiceCosmosDbMap) ToLinkedServiceCosmosDbMapOutput() LinkedServiceCosmosDbMapOutput { return i.ToLinkedServiceCosmosDbMapOutputWithContext(context.Background()) } func (i LinkedServiceCosmosDbMap) ToLinkedServiceCosmosDbMapOutputWithContext(ctx context.Context) LinkedServiceCosmosDbMapOutput { return pulumi.ToOutputWithContext(ctx, i).(LinkedServiceCosmosDbMapOutput) } type LinkedServiceCosmosDbOutput struct{ *pulumi.OutputState } func (LinkedServiceCosmosDbOutput) ElementType() reflect.Type { return reflect.TypeOf((**LinkedServiceCosmosDb)(nil)).Elem() } func (o LinkedServiceCosmosDbOutput) ToLinkedServiceCosmosDbOutput() LinkedServiceCosmosDbOutput { return o } func (o LinkedServiceCosmosDbOutput) ToLinkedServiceCosmosDbOutputWithContext(ctx context.Context) LinkedServiceCosmosDbOutput { return o } // The endpoint of the Azure CosmosDB account. Required if `connectionString` is unspecified. func (o LinkedServiceCosmosDbOutput) AccountEndpoint() pulumi.StringPtrOutput { return o.ApplyT(func(v *LinkedServiceCosmosDb) pulumi.StringPtrOutput { return v.AccountEndpoint }).(pulumi.StringPtrOutput) } // The account key of the Azure Cosmos DB account. Required if `connectionString` is unspecified. func (o LinkedServiceCosmosDbOutput) AccountKey() pulumi.StringPtrOutput { return o.ApplyT(func(v *LinkedServiceCosmosDb) pulumi.StringPtrOutput { return v.AccountKey }).(pulumi.StringPtrOutput) } // A map of additional properties to associate with the Data Factory Linked Service. // // The following supported arguments are specific to CosmosDB Linked Service: func (o LinkedServiceCosmosDbOutput) AdditionalProperties() pulumi.StringMapOutput { return o.ApplyT(func(v *LinkedServiceCosmosDb) pulumi.StringMapOutput { return v.AdditionalProperties }).(pulumi.StringMapOutput) } // List of tags that can be used for describing the Data Factory Linked Service. func (o LinkedServiceCosmosDbOutput) Annotations() pulumi.StringArrayOutput { return o.ApplyT(func(v *LinkedServiceCosmosDb) pulumi.StringArrayOutput { return v.Annotations }).(pulumi.StringArrayOutput) } // The connection string. Required if `accountEndpoint`, `accountKey`, and `database` are unspecified. func (o LinkedServiceCosmosDbOutput) ConnectionString() pulumi.StringPtrOutput { return o.ApplyT(func(v *LinkedServiceCosmosDb) pulumi.StringPtrOutput { return v.ConnectionString }).(pulumi.StringPtrOutput) } // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. func (o LinkedServiceCosmosDbOutput) DataFactoryId() pulumi.StringOutput { return o.ApplyT(func(v *LinkedServiceCosmosDb) pulumi.StringOutput { return v.DataFactoryId }).(pulumi.StringOutput) } // The name of the database. Required if `connectionString` is unspecified. func (o LinkedServiceCosmosDbOutput) Database() pulumi.StringPtrOutput { return o.ApplyT(func(v *LinkedServiceCosmosDb) pulumi.StringPtrOutput { return v.Database }).(pulumi.StringPtrOutput) } // The description for the Data Factory Linked Service. func (o LinkedServiceCosmosDbOutput) Description() pulumi.StringPtrOutput { return o.ApplyT(func(v *LinkedServiceCosmosDb) pulumi.StringPtrOutput { return v.Description }).(pulumi.StringPtrOutput) } // The integration runtime reference to associate with the Data Factory Linked Service. func (o LinkedServiceCosmosDbOutput) IntegrationRuntimeName() pulumi.StringPtrOutput { return o.ApplyT(func(v *LinkedServiceCosmosDb) pulumi.StringPtrOutput { return v.IntegrationRuntimeName }).(pulumi.StringPtrOutput) } // Specifies the name of the Data Factory Linked Service. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. func (o LinkedServiceCosmosDbOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *LinkedServiceCosmosDb) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // A map of parameters to associate with the Data Factory Linked Service. func (o LinkedServiceCosmosDbOutput) Parameters() pulumi.StringMapOutput { return o.ApplyT(func(v *LinkedServiceCosmosDb) pulumi.StringMapOutput { return v.Parameters }).(pulumi.StringMapOutput) } type LinkedServiceCosmosDbArrayOutput struct{ *pulumi.OutputState } func (LinkedServiceCosmosDbArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*LinkedServiceCosmosDb)(nil)).Elem() } func (o LinkedServiceCosmosDbArrayOutput) ToLinkedServiceCosmosDbArrayOutput() LinkedServiceCosmosDbArrayOutput { return o } func (o LinkedServiceCosmosDbArrayOutput) ToLinkedServiceCosmosDbArrayOutputWithContext(ctx context.Context) LinkedServiceCosmosDbArrayOutput { return o } func (o LinkedServiceCosmosDbArrayOutput) Index(i pulumi.IntInput) LinkedServiceCosmosDbOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *LinkedServiceCosmosDb { return vs[0].([]*LinkedServiceCosmosDb)[vs[1].(int)] }).(LinkedServiceCosmosDbOutput) } type LinkedServiceCosmosDbMapOutput struct{ *pulumi.OutputState } func (LinkedServiceCosmosDbMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*LinkedServiceCosmosDb)(nil)).Elem() } func (o LinkedServiceCosmosDbMapOutput) ToLinkedServiceCosmosDbMapOutput() LinkedServiceCosmosDbMapOutput { return o } func (o LinkedServiceCosmosDbMapOutput) ToLinkedServiceCosmosDbMapOutputWithContext(ctx context.Context) LinkedServiceCosmosDbMapOutput { return o } func (o LinkedServiceCosmosDbMapOutput) MapIndex(k pulumi.StringInput) LinkedServiceCosmosDbOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *LinkedServiceCosmosDb { return vs[0].(map[string]*LinkedServiceCosmosDb)[vs[1].(string)] }).(LinkedServiceCosmosDbOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*LinkedServiceCosmosDbInput)(nil)).Elem(), &LinkedServiceCosmosDb{}) pulumi.RegisterInputType(reflect.TypeOf((*LinkedServiceCosmosDbArrayInput)(nil)).Elem(), LinkedServiceCosmosDbArray{}) pulumi.RegisterInputType(reflect.TypeOf((*LinkedServiceCosmosDbMapInput)(nil)).Elem(), LinkedServiceCosmosDbMap{}) pulumi.RegisterOutputType(LinkedServiceCosmosDbOutput{}) pulumi.RegisterOutputType(LinkedServiceCosmosDbArrayOutput{}) pulumi.RegisterOutputType(LinkedServiceCosmosDbMapOutput{}) }
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/datafactory/datasetJson.go
sdk/go/azure/datafactory/datasetJson.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 datafactory 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 JSON Dataset inside an Azure Data Factory. // // ## 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/datafactory" // "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 // } // exampleFactory, err := datafactory.NewFactory(ctx, "example", &datafactory.FactoryArgs{ // Name: pulumi.String("example"), // Location: example.Location, // ResourceGroupName: example.Name, // }) // if err != nil { // return err // } // exampleLinkedServiceWeb, err := datafactory.NewLinkedServiceWeb(ctx, "example", &datafactory.LinkedServiceWebArgs{ // Name: pulumi.String("example"), // DataFactoryId: exampleFactory.ID(), // AuthenticationType: pulumi.String("Anonymous"), // Url: pulumi.String("https://www.bing.com"), // }) // if err != nil { // return err // } // _, err = datafactory.NewDatasetJson(ctx, "example", &datafactory.DatasetJsonArgs{ // Name: pulumi.String("example"), // DataFactoryId: exampleFactory.ID(), // LinkedServiceName: exampleLinkedServiceWeb.Name, // HttpServerLocation: &datafactory.DatasetJsonHttpServerLocationArgs{ // RelativeUrl: pulumi.String("/fizz/buzz/"), // Path: pulumi.String("foo/bar/"), // Filename: pulumi.String("foo.txt"), // }, // Encoding: pulumi.String("UTF-8"), // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## Import // // Data Factory Datasets can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:datafactory/datasetJson:DatasetJson example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example/providers/Microsoft.DataFactory/factories/example/datasets/example // ``` type DatasetJson struct { pulumi.CustomResourceState // A map of additional properties to associate with the Data Factory Dataset. // // The following supported arguments are specific to JSON Dataset: AdditionalProperties pulumi.StringMapOutput `pulumi:"additionalProperties"` // List of tags that can be used for describing the Data Factory Dataset. Annotations pulumi.StringArrayOutput `pulumi:"annotations"` // A `azureBlobStorageLocation` block as defined below. // // The following supported arguments are specific to Delimited Text Dataset: AzureBlobStorageLocation DatasetJsonAzureBlobStorageLocationPtrOutput `pulumi:"azureBlobStorageLocation"` // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId pulumi.StringOutput `pulumi:"dataFactoryId"` // The description for the Data Factory Dataset. Description pulumi.StringPtrOutput `pulumi:"description"` // The encoding format for the file. Encoding pulumi.StringPtrOutput `pulumi:"encoding"` // The folder that this Dataset is in. If not specified, the Dataset will appear at the root level. Folder pulumi.StringPtrOutput `pulumi:"folder"` // A `httpServerLocation` block as defined below. HttpServerLocation DatasetJsonHttpServerLocationPtrOutput `pulumi:"httpServerLocation"` // The Data Factory Linked Service name in which to associate the Dataset with. LinkedServiceName pulumi.StringOutput `pulumi:"linkedServiceName"` // Specifies the name of the Data Factory Dataset. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringOutput `pulumi:"name"` // A map of parameters to associate with the Data Factory Dataset. Parameters pulumi.StringMapOutput `pulumi:"parameters"` // A `schemaColumn` block as defined below. SchemaColumns DatasetJsonSchemaColumnArrayOutput `pulumi:"schemaColumns"` } // NewDatasetJson registers a new resource with the given unique name, arguments, and options. func NewDatasetJson(ctx *pulumi.Context, name string, args *DatasetJsonArgs, opts ...pulumi.ResourceOption) (*DatasetJson, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.DataFactoryId == nil { return nil, errors.New("invalid value for required argument 'DataFactoryId'") } if args.LinkedServiceName == nil { return nil, errors.New("invalid value for required argument 'LinkedServiceName'") } opts = internal.PkgResourceDefaultOpts(opts) var resource DatasetJson err := ctx.RegisterResource("azure:datafactory/datasetJson:DatasetJson", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetDatasetJson gets an existing DatasetJson 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 GetDatasetJson(ctx *pulumi.Context, name string, id pulumi.IDInput, state *DatasetJsonState, opts ...pulumi.ResourceOption) (*DatasetJson, error) { var resource DatasetJson err := ctx.ReadResource("azure:datafactory/datasetJson:DatasetJson", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering DatasetJson resources. type datasetJsonState struct { // A map of additional properties to associate with the Data Factory Dataset. // // The following supported arguments are specific to JSON Dataset: AdditionalProperties map[string]string `pulumi:"additionalProperties"` // List of tags that can be used for describing the Data Factory Dataset. Annotations []string `pulumi:"annotations"` // A `azureBlobStorageLocation` block as defined below. // // The following supported arguments are specific to Delimited Text Dataset: AzureBlobStorageLocation *DatasetJsonAzureBlobStorageLocation `pulumi:"azureBlobStorageLocation"` // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId *string `pulumi:"dataFactoryId"` // The description for the Data Factory Dataset. Description *string `pulumi:"description"` // The encoding format for the file. Encoding *string `pulumi:"encoding"` // The folder that this Dataset is in. If not specified, the Dataset will appear at the root level. Folder *string `pulumi:"folder"` // A `httpServerLocation` block as defined below. HttpServerLocation *DatasetJsonHttpServerLocation `pulumi:"httpServerLocation"` // The Data Factory Linked Service name in which to associate the Dataset with. LinkedServiceName *string `pulumi:"linkedServiceName"` // Specifies the name of the Data Factory Dataset. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name *string `pulumi:"name"` // A map of parameters to associate with the Data Factory Dataset. Parameters map[string]string `pulumi:"parameters"` // A `schemaColumn` block as defined below. SchemaColumns []DatasetJsonSchemaColumn `pulumi:"schemaColumns"` } type DatasetJsonState struct { // A map of additional properties to associate with the Data Factory Dataset. // // The following supported arguments are specific to JSON Dataset: AdditionalProperties pulumi.StringMapInput // List of tags that can be used for describing the Data Factory Dataset. Annotations pulumi.StringArrayInput // A `azureBlobStorageLocation` block as defined below. // // The following supported arguments are specific to Delimited Text Dataset: AzureBlobStorageLocation DatasetJsonAzureBlobStorageLocationPtrInput // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId pulumi.StringPtrInput // The description for the Data Factory Dataset. Description pulumi.StringPtrInput // The encoding format for the file. Encoding pulumi.StringPtrInput // The folder that this Dataset is in. If not specified, the Dataset will appear at the root level. Folder pulumi.StringPtrInput // A `httpServerLocation` block as defined below. HttpServerLocation DatasetJsonHttpServerLocationPtrInput // The Data Factory Linked Service name in which to associate the Dataset with. LinkedServiceName pulumi.StringPtrInput // Specifies the name of the Data Factory Dataset. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringPtrInput // A map of parameters to associate with the Data Factory Dataset. Parameters pulumi.StringMapInput // A `schemaColumn` block as defined below. SchemaColumns DatasetJsonSchemaColumnArrayInput } func (DatasetJsonState) ElementType() reflect.Type { return reflect.TypeOf((*datasetJsonState)(nil)).Elem() } type datasetJsonArgs struct { // A map of additional properties to associate with the Data Factory Dataset. // // The following supported arguments are specific to JSON Dataset: AdditionalProperties map[string]string `pulumi:"additionalProperties"` // List of tags that can be used for describing the Data Factory Dataset. Annotations []string `pulumi:"annotations"` // A `azureBlobStorageLocation` block as defined below. // // The following supported arguments are specific to Delimited Text Dataset: AzureBlobStorageLocation *DatasetJsonAzureBlobStorageLocation `pulumi:"azureBlobStorageLocation"` // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId string `pulumi:"dataFactoryId"` // The description for the Data Factory Dataset. Description *string `pulumi:"description"` // The encoding format for the file. Encoding *string `pulumi:"encoding"` // The folder that this Dataset is in. If not specified, the Dataset will appear at the root level. Folder *string `pulumi:"folder"` // A `httpServerLocation` block as defined below. HttpServerLocation *DatasetJsonHttpServerLocation `pulumi:"httpServerLocation"` // The Data Factory Linked Service name in which to associate the Dataset with. LinkedServiceName string `pulumi:"linkedServiceName"` // Specifies the name of the Data Factory Dataset. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name *string `pulumi:"name"` // A map of parameters to associate with the Data Factory Dataset. Parameters map[string]string `pulumi:"parameters"` // A `schemaColumn` block as defined below. SchemaColumns []DatasetJsonSchemaColumn `pulumi:"schemaColumns"` } // The set of arguments for constructing a DatasetJson resource. type DatasetJsonArgs struct { // A map of additional properties to associate with the Data Factory Dataset. // // The following supported arguments are specific to JSON Dataset: AdditionalProperties pulumi.StringMapInput // List of tags that can be used for describing the Data Factory Dataset. Annotations pulumi.StringArrayInput // A `azureBlobStorageLocation` block as defined below. // // The following supported arguments are specific to Delimited Text Dataset: AzureBlobStorageLocation DatasetJsonAzureBlobStorageLocationPtrInput // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId pulumi.StringInput // The description for the Data Factory Dataset. Description pulumi.StringPtrInput // The encoding format for the file. Encoding pulumi.StringPtrInput // The folder that this Dataset is in. If not specified, the Dataset will appear at the root level. Folder pulumi.StringPtrInput // A `httpServerLocation` block as defined below. HttpServerLocation DatasetJsonHttpServerLocationPtrInput // The Data Factory Linked Service name in which to associate the Dataset with. LinkedServiceName pulumi.StringInput // Specifies the name of the Data Factory Dataset. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringPtrInput // A map of parameters to associate with the Data Factory Dataset. Parameters pulumi.StringMapInput // A `schemaColumn` block as defined below. SchemaColumns DatasetJsonSchemaColumnArrayInput } func (DatasetJsonArgs) ElementType() reflect.Type { return reflect.TypeOf((*datasetJsonArgs)(nil)).Elem() } type DatasetJsonInput interface { pulumi.Input ToDatasetJsonOutput() DatasetJsonOutput ToDatasetJsonOutputWithContext(ctx context.Context) DatasetJsonOutput } func (*DatasetJson) ElementType() reflect.Type { return reflect.TypeOf((**DatasetJson)(nil)).Elem() } func (i *DatasetJson) ToDatasetJsonOutput() DatasetJsonOutput { return i.ToDatasetJsonOutputWithContext(context.Background()) } func (i *DatasetJson) ToDatasetJsonOutputWithContext(ctx context.Context) DatasetJsonOutput { return pulumi.ToOutputWithContext(ctx, i).(DatasetJsonOutput) } // DatasetJsonArrayInput is an input type that accepts DatasetJsonArray and DatasetJsonArrayOutput values. // You can construct a concrete instance of `DatasetJsonArrayInput` via: // // DatasetJsonArray{ DatasetJsonArgs{...} } type DatasetJsonArrayInput interface { pulumi.Input ToDatasetJsonArrayOutput() DatasetJsonArrayOutput ToDatasetJsonArrayOutputWithContext(context.Context) DatasetJsonArrayOutput } type DatasetJsonArray []DatasetJsonInput func (DatasetJsonArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*DatasetJson)(nil)).Elem() } func (i DatasetJsonArray) ToDatasetJsonArrayOutput() DatasetJsonArrayOutput { return i.ToDatasetJsonArrayOutputWithContext(context.Background()) } func (i DatasetJsonArray) ToDatasetJsonArrayOutputWithContext(ctx context.Context) DatasetJsonArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(DatasetJsonArrayOutput) } // DatasetJsonMapInput is an input type that accepts DatasetJsonMap and DatasetJsonMapOutput values. // You can construct a concrete instance of `DatasetJsonMapInput` via: // // DatasetJsonMap{ "key": DatasetJsonArgs{...} } type DatasetJsonMapInput interface { pulumi.Input ToDatasetJsonMapOutput() DatasetJsonMapOutput ToDatasetJsonMapOutputWithContext(context.Context) DatasetJsonMapOutput } type DatasetJsonMap map[string]DatasetJsonInput func (DatasetJsonMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*DatasetJson)(nil)).Elem() } func (i DatasetJsonMap) ToDatasetJsonMapOutput() DatasetJsonMapOutput { return i.ToDatasetJsonMapOutputWithContext(context.Background()) } func (i DatasetJsonMap) ToDatasetJsonMapOutputWithContext(ctx context.Context) DatasetJsonMapOutput { return pulumi.ToOutputWithContext(ctx, i).(DatasetJsonMapOutput) } type DatasetJsonOutput struct{ *pulumi.OutputState } func (DatasetJsonOutput) ElementType() reflect.Type { return reflect.TypeOf((**DatasetJson)(nil)).Elem() } func (o DatasetJsonOutput) ToDatasetJsonOutput() DatasetJsonOutput { return o } func (o DatasetJsonOutput) ToDatasetJsonOutputWithContext(ctx context.Context) DatasetJsonOutput { return o } // A map of additional properties to associate with the Data Factory Dataset. // // The following supported arguments are specific to JSON Dataset: func (o DatasetJsonOutput) AdditionalProperties() pulumi.StringMapOutput { return o.ApplyT(func(v *DatasetJson) pulumi.StringMapOutput { return v.AdditionalProperties }).(pulumi.StringMapOutput) } // List of tags that can be used for describing the Data Factory Dataset. func (o DatasetJsonOutput) Annotations() pulumi.StringArrayOutput { return o.ApplyT(func(v *DatasetJson) pulumi.StringArrayOutput { return v.Annotations }).(pulumi.StringArrayOutput) } // A `azureBlobStorageLocation` block as defined below. // // The following supported arguments are specific to Delimited Text Dataset: func (o DatasetJsonOutput) AzureBlobStorageLocation() DatasetJsonAzureBlobStorageLocationPtrOutput { return o.ApplyT(func(v *DatasetJson) DatasetJsonAzureBlobStorageLocationPtrOutput { return v.AzureBlobStorageLocation }).(DatasetJsonAzureBlobStorageLocationPtrOutput) } // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. func (o DatasetJsonOutput) DataFactoryId() pulumi.StringOutput { return o.ApplyT(func(v *DatasetJson) pulumi.StringOutput { return v.DataFactoryId }).(pulumi.StringOutput) } // The description for the Data Factory Dataset. func (o DatasetJsonOutput) Description() pulumi.StringPtrOutput { return o.ApplyT(func(v *DatasetJson) pulumi.StringPtrOutput { return v.Description }).(pulumi.StringPtrOutput) } // The encoding format for the file. func (o DatasetJsonOutput) Encoding() pulumi.StringPtrOutput { return o.ApplyT(func(v *DatasetJson) pulumi.StringPtrOutput { return v.Encoding }).(pulumi.StringPtrOutput) } // The folder that this Dataset is in. If not specified, the Dataset will appear at the root level. func (o DatasetJsonOutput) Folder() pulumi.StringPtrOutput { return o.ApplyT(func(v *DatasetJson) pulumi.StringPtrOutput { return v.Folder }).(pulumi.StringPtrOutput) } // A `httpServerLocation` block as defined below. func (o DatasetJsonOutput) HttpServerLocation() DatasetJsonHttpServerLocationPtrOutput { return o.ApplyT(func(v *DatasetJson) DatasetJsonHttpServerLocationPtrOutput { return v.HttpServerLocation }).(DatasetJsonHttpServerLocationPtrOutput) } // The Data Factory Linked Service name in which to associate the Dataset with. func (o DatasetJsonOutput) LinkedServiceName() pulumi.StringOutput { return o.ApplyT(func(v *DatasetJson) pulumi.StringOutput { return v.LinkedServiceName }).(pulumi.StringOutput) } // Specifies the name of the Data Factory Dataset. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. func (o DatasetJsonOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *DatasetJson) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // A map of parameters to associate with the Data Factory Dataset. func (o DatasetJsonOutput) Parameters() pulumi.StringMapOutput { return o.ApplyT(func(v *DatasetJson) pulumi.StringMapOutput { return v.Parameters }).(pulumi.StringMapOutput) } // A `schemaColumn` block as defined below. func (o DatasetJsonOutput) SchemaColumns() DatasetJsonSchemaColumnArrayOutput { return o.ApplyT(func(v *DatasetJson) DatasetJsonSchemaColumnArrayOutput { return v.SchemaColumns }).(DatasetJsonSchemaColumnArrayOutput) } type DatasetJsonArrayOutput struct{ *pulumi.OutputState } func (DatasetJsonArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*DatasetJson)(nil)).Elem() } func (o DatasetJsonArrayOutput) ToDatasetJsonArrayOutput() DatasetJsonArrayOutput { return o } func (o DatasetJsonArrayOutput) ToDatasetJsonArrayOutputWithContext(ctx context.Context) DatasetJsonArrayOutput { return o } func (o DatasetJsonArrayOutput) Index(i pulumi.IntInput) DatasetJsonOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *DatasetJson { return vs[0].([]*DatasetJson)[vs[1].(int)] }).(DatasetJsonOutput) } type DatasetJsonMapOutput struct{ *pulumi.OutputState } func (DatasetJsonMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*DatasetJson)(nil)).Elem() } func (o DatasetJsonMapOutput) ToDatasetJsonMapOutput() DatasetJsonMapOutput { return o } func (o DatasetJsonMapOutput) ToDatasetJsonMapOutputWithContext(ctx context.Context) DatasetJsonMapOutput { return o } func (o DatasetJsonMapOutput) MapIndex(k pulumi.StringInput) DatasetJsonOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *DatasetJson { return vs[0].(map[string]*DatasetJson)[vs[1].(string)] }).(DatasetJsonOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*DatasetJsonInput)(nil)).Elem(), &DatasetJson{}) pulumi.RegisterInputType(reflect.TypeOf((*DatasetJsonArrayInput)(nil)).Elem(), DatasetJsonArray{}) pulumi.RegisterInputType(reflect.TypeOf((*DatasetJsonMapInput)(nil)).Elem(), DatasetJsonMap{}) pulumi.RegisterOutputType(DatasetJsonOutput{}) pulumi.RegisterOutputType(DatasetJsonArrayOutput{}) pulumi.RegisterOutputType(DatasetJsonMapOutput{}) }
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/datafactory/datasetBinary.go
sdk/go/azure/datafactory/datasetBinary.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 datafactory import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a Data Factory Binary Dataset inside an Azure Data Factory. // // ## 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/datafactory" // "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 // } // exampleFactory, err := datafactory.NewFactory(ctx, "example", &datafactory.FactoryArgs{ // Name: pulumi.String("example"), // Location: example.Location, // ResourceGroupName: example.Name, // }) // if err != nil { // return err // } // exampleLinkedServiceSftp, err := datafactory.NewLinkedServiceSftp(ctx, "example", &datafactory.LinkedServiceSftpArgs{ // Name: pulumi.String("example"), // DataFactoryId: exampleFactory.ID(), // AuthenticationType: pulumi.String("Basic"), // Host: pulumi.String("http://www.bing.com"), // Port: pulumi.Int(22), // Username: pulumi.String("foo"), // Password: pulumi.String("bar"), // }) // if err != nil { // return err // } // _, err = datafactory.NewDatasetBinary(ctx, "example", &datafactory.DatasetBinaryArgs{ // Name: pulumi.String("example"), // DataFactoryId: exampleFactory.ID(), // LinkedServiceName: exampleLinkedServiceSftp.Name, // SftpServerLocation: &datafactory.DatasetBinarySftpServerLocationArgs{ // Path: pulumi.String("/test/"), // Filename: pulumi.String("**"), // }, // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## Import // // Data Factory Binary Datasets can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:datafactory/datasetBinary:DatasetBinary example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example/providers/Microsoft.DataFactory/factories/example/datasets/example // ``` type DatasetBinary struct { pulumi.CustomResourceState // A map of additional properties to associate with the Data Factory Binary Dataset. AdditionalProperties pulumi.StringMapOutput `pulumi:"additionalProperties"` // List of tags that can be used for describing the Data Factory Binary Dataset. Annotations pulumi.StringArrayOutput `pulumi:"annotations"` // A `azureBlobStorageLocation` block as defined below. AzureBlobStorageLocation DatasetBinaryAzureBlobStorageLocationPtrOutput `pulumi:"azureBlobStorageLocation"` // A `compression` block as defined below. Compression DatasetBinaryCompressionPtrOutput `pulumi:"compression"` // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId pulumi.StringOutput `pulumi:"dataFactoryId"` // The description for the Data Factory Dataset. Description pulumi.StringPtrOutput `pulumi:"description"` // The folder that this Dataset is in. If not specified, the Dataset will appear at the root level. Folder pulumi.StringPtrOutput `pulumi:"folder"` // A `httpServerLocation` block as defined below. HttpServerLocation DatasetBinaryHttpServerLocationPtrOutput `pulumi:"httpServerLocation"` // The Data Factory Linked Service name in which to associate the Binary Dataset with. LinkedServiceName pulumi.StringOutput `pulumi:"linkedServiceName"` // Specifies the name of the Data Factory Binary Dataset. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringOutput `pulumi:"name"` // Specifies a list of parameters to associate with the Data Factory Binary Dataset. // // The following supported locations for a Binary Dataset. One of these should be specified: Parameters pulumi.StringMapOutput `pulumi:"parameters"` // A `sftpServerLocation` block as defined below. SftpServerLocation DatasetBinarySftpServerLocationPtrOutput `pulumi:"sftpServerLocation"` } // NewDatasetBinary registers a new resource with the given unique name, arguments, and options. func NewDatasetBinary(ctx *pulumi.Context, name string, args *DatasetBinaryArgs, opts ...pulumi.ResourceOption) (*DatasetBinary, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.DataFactoryId == nil { return nil, errors.New("invalid value for required argument 'DataFactoryId'") } if args.LinkedServiceName == nil { return nil, errors.New("invalid value for required argument 'LinkedServiceName'") } opts = internal.PkgResourceDefaultOpts(opts) var resource DatasetBinary err := ctx.RegisterResource("azure:datafactory/datasetBinary:DatasetBinary", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetDatasetBinary gets an existing DatasetBinary 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 GetDatasetBinary(ctx *pulumi.Context, name string, id pulumi.IDInput, state *DatasetBinaryState, opts ...pulumi.ResourceOption) (*DatasetBinary, error) { var resource DatasetBinary err := ctx.ReadResource("azure:datafactory/datasetBinary:DatasetBinary", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering DatasetBinary resources. type datasetBinaryState struct { // A map of additional properties to associate with the Data Factory Binary Dataset. AdditionalProperties map[string]string `pulumi:"additionalProperties"` // List of tags that can be used for describing the Data Factory Binary Dataset. Annotations []string `pulumi:"annotations"` // A `azureBlobStorageLocation` block as defined below. AzureBlobStorageLocation *DatasetBinaryAzureBlobStorageLocation `pulumi:"azureBlobStorageLocation"` // A `compression` block as defined below. Compression *DatasetBinaryCompression `pulumi:"compression"` // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId *string `pulumi:"dataFactoryId"` // The description for the Data Factory Dataset. Description *string `pulumi:"description"` // The folder that this Dataset is in. If not specified, the Dataset will appear at the root level. Folder *string `pulumi:"folder"` // A `httpServerLocation` block as defined below. HttpServerLocation *DatasetBinaryHttpServerLocation `pulumi:"httpServerLocation"` // The Data Factory Linked Service name in which to associate the Binary Dataset with. LinkedServiceName *string `pulumi:"linkedServiceName"` // Specifies the name of the Data Factory Binary Dataset. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name *string `pulumi:"name"` // Specifies a list of parameters to associate with the Data Factory Binary Dataset. // // The following supported locations for a Binary Dataset. One of these should be specified: Parameters map[string]string `pulumi:"parameters"` // A `sftpServerLocation` block as defined below. SftpServerLocation *DatasetBinarySftpServerLocation `pulumi:"sftpServerLocation"` } type DatasetBinaryState struct { // A map of additional properties to associate with the Data Factory Binary Dataset. AdditionalProperties pulumi.StringMapInput // List of tags that can be used for describing the Data Factory Binary Dataset. Annotations pulumi.StringArrayInput // A `azureBlobStorageLocation` block as defined below. AzureBlobStorageLocation DatasetBinaryAzureBlobStorageLocationPtrInput // A `compression` block as defined below. Compression DatasetBinaryCompressionPtrInput // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId pulumi.StringPtrInput // The description for the Data Factory Dataset. Description pulumi.StringPtrInput // The folder that this Dataset is in. If not specified, the Dataset will appear at the root level. Folder pulumi.StringPtrInput // A `httpServerLocation` block as defined below. HttpServerLocation DatasetBinaryHttpServerLocationPtrInput // The Data Factory Linked Service name in which to associate the Binary Dataset with. LinkedServiceName pulumi.StringPtrInput // Specifies the name of the Data Factory Binary Dataset. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringPtrInput // Specifies a list of parameters to associate with the Data Factory Binary Dataset. // // The following supported locations for a Binary Dataset. One of these should be specified: Parameters pulumi.StringMapInput // A `sftpServerLocation` block as defined below. SftpServerLocation DatasetBinarySftpServerLocationPtrInput } func (DatasetBinaryState) ElementType() reflect.Type { return reflect.TypeOf((*datasetBinaryState)(nil)).Elem() } type datasetBinaryArgs struct { // A map of additional properties to associate with the Data Factory Binary Dataset. AdditionalProperties map[string]string `pulumi:"additionalProperties"` // List of tags that can be used for describing the Data Factory Binary Dataset. Annotations []string `pulumi:"annotations"` // A `azureBlobStorageLocation` block as defined below. AzureBlobStorageLocation *DatasetBinaryAzureBlobStorageLocation `pulumi:"azureBlobStorageLocation"` // A `compression` block as defined below. Compression *DatasetBinaryCompression `pulumi:"compression"` // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId string `pulumi:"dataFactoryId"` // The description for the Data Factory Dataset. Description *string `pulumi:"description"` // The folder that this Dataset is in. If not specified, the Dataset will appear at the root level. Folder *string `pulumi:"folder"` // A `httpServerLocation` block as defined below. HttpServerLocation *DatasetBinaryHttpServerLocation `pulumi:"httpServerLocation"` // The Data Factory Linked Service name in which to associate the Binary Dataset with. LinkedServiceName string `pulumi:"linkedServiceName"` // Specifies the name of the Data Factory Binary Dataset. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name *string `pulumi:"name"` // Specifies a list of parameters to associate with the Data Factory Binary Dataset. // // The following supported locations for a Binary Dataset. One of these should be specified: Parameters map[string]string `pulumi:"parameters"` // A `sftpServerLocation` block as defined below. SftpServerLocation *DatasetBinarySftpServerLocation `pulumi:"sftpServerLocation"` } // The set of arguments for constructing a DatasetBinary resource. type DatasetBinaryArgs struct { // A map of additional properties to associate with the Data Factory Binary Dataset. AdditionalProperties pulumi.StringMapInput // List of tags that can be used for describing the Data Factory Binary Dataset. Annotations pulumi.StringArrayInput // A `azureBlobStorageLocation` block as defined below. AzureBlobStorageLocation DatasetBinaryAzureBlobStorageLocationPtrInput // A `compression` block as defined below. Compression DatasetBinaryCompressionPtrInput // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId pulumi.StringInput // The description for the Data Factory Dataset. Description pulumi.StringPtrInput // The folder that this Dataset is in. If not specified, the Dataset will appear at the root level. Folder pulumi.StringPtrInput // A `httpServerLocation` block as defined below. HttpServerLocation DatasetBinaryHttpServerLocationPtrInput // The Data Factory Linked Service name in which to associate the Binary Dataset with. LinkedServiceName pulumi.StringInput // Specifies the name of the Data Factory Binary Dataset. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringPtrInput // Specifies a list of parameters to associate with the Data Factory Binary Dataset. // // The following supported locations for a Binary Dataset. One of these should be specified: Parameters pulumi.StringMapInput // A `sftpServerLocation` block as defined below. SftpServerLocation DatasetBinarySftpServerLocationPtrInput } func (DatasetBinaryArgs) ElementType() reflect.Type { return reflect.TypeOf((*datasetBinaryArgs)(nil)).Elem() } type DatasetBinaryInput interface { pulumi.Input ToDatasetBinaryOutput() DatasetBinaryOutput ToDatasetBinaryOutputWithContext(ctx context.Context) DatasetBinaryOutput } func (*DatasetBinary) ElementType() reflect.Type { return reflect.TypeOf((**DatasetBinary)(nil)).Elem() } func (i *DatasetBinary) ToDatasetBinaryOutput() DatasetBinaryOutput { return i.ToDatasetBinaryOutputWithContext(context.Background()) } func (i *DatasetBinary) ToDatasetBinaryOutputWithContext(ctx context.Context) DatasetBinaryOutput { return pulumi.ToOutputWithContext(ctx, i).(DatasetBinaryOutput) } // DatasetBinaryArrayInput is an input type that accepts DatasetBinaryArray and DatasetBinaryArrayOutput values. // You can construct a concrete instance of `DatasetBinaryArrayInput` via: // // DatasetBinaryArray{ DatasetBinaryArgs{...} } type DatasetBinaryArrayInput interface { pulumi.Input ToDatasetBinaryArrayOutput() DatasetBinaryArrayOutput ToDatasetBinaryArrayOutputWithContext(context.Context) DatasetBinaryArrayOutput } type DatasetBinaryArray []DatasetBinaryInput func (DatasetBinaryArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*DatasetBinary)(nil)).Elem() } func (i DatasetBinaryArray) ToDatasetBinaryArrayOutput() DatasetBinaryArrayOutput { return i.ToDatasetBinaryArrayOutputWithContext(context.Background()) } func (i DatasetBinaryArray) ToDatasetBinaryArrayOutputWithContext(ctx context.Context) DatasetBinaryArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(DatasetBinaryArrayOutput) } // DatasetBinaryMapInput is an input type that accepts DatasetBinaryMap and DatasetBinaryMapOutput values. // You can construct a concrete instance of `DatasetBinaryMapInput` via: // // DatasetBinaryMap{ "key": DatasetBinaryArgs{...} } type DatasetBinaryMapInput interface { pulumi.Input ToDatasetBinaryMapOutput() DatasetBinaryMapOutput ToDatasetBinaryMapOutputWithContext(context.Context) DatasetBinaryMapOutput } type DatasetBinaryMap map[string]DatasetBinaryInput func (DatasetBinaryMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*DatasetBinary)(nil)).Elem() } func (i DatasetBinaryMap) ToDatasetBinaryMapOutput() DatasetBinaryMapOutput { return i.ToDatasetBinaryMapOutputWithContext(context.Background()) } func (i DatasetBinaryMap) ToDatasetBinaryMapOutputWithContext(ctx context.Context) DatasetBinaryMapOutput { return pulumi.ToOutputWithContext(ctx, i).(DatasetBinaryMapOutput) } type DatasetBinaryOutput struct{ *pulumi.OutputState } func (DatasetBinaryOutput) ElementType() reflect.Type { return reflect.TypeOf((**DatasetBinary)(nil)).Elem() } func (o DatasetBinaryOutput) ToDatasetBinaryOutput() DatasetBinaryOutput { return o } func (o DatasetBinaryOutput) ToDatasetBinaryOutputWithContext(ctx context.Context) DatasetBinaryOutput { return o } // A map of additional properties to associate with the Data Factory Binary Dataset. func (o DatasetBinaryOutput) AdditionalProperties() pulumi.StringMapOutput { return o.ApplyT(func(v *DatasetBinary) pulumi.StringMapOutput { return v.AdditionalProperties }).(pulumi.StringMapOutput) } // List of tags that can be used for describing the Data Factory Binary Dataset. func (o DatasetBinaryOutput) Annotations() pulumi.StringArrayOutput { return o.ApplyT(func(v *DatasetBinary) pulumi.StringArrayOutput { return v.Annotations }).(pulumi.StringArrayOutput) } // A `azureBlobStorageLocation` block as defined below. func (o DatasetBinaryOutput) AzureBlobStorageLocation() DatasetBinaryAzureBlobStorageLocationPtrOutput { return o.ApplyT(func(v *DatasetBinary) DatasetBinaryAzureBlobStorageLocationPtrOutput { return v.AzureBlobStorageLocation }).(DatasetBinaryAzureBlobStorageLocationPtrOutput) } // A `compression` block as defined below. func (o DatasetBinaryOutput) Compression() DatasetBinaryCompressionPtrOutput { return o.ApplyT(func(v *DatasetBinary) DatasetBinaryCompressionPtrOutput { return v.Compression }).(DatasetBinaryCompressionPtrOutput) } // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. func (o DatasetBinaryOutput) DataFactoryId() pulumi.StringOutput { return o.ApplyT(func(v *DatasetBinary) pulumi.StringOutput { return v.DataFactoryId }).(pulumi.StringOutput) } // The description for the Data Factory Dataset. func (o DatasetBinaryOutput) Description() pulumi.StringPtrOutput { return o.ApplyT(func(v *DatasetBinary) pulumi.StringPtrOutput { return v.Description }).(pulumi.StringPtrOutput) } // The folder that this Dataset is in. If not specified, the Dataset will appear at the root level. func (o DatasetBinaryOutput) Folder() pulumi.StringPtrOutput { return o.ApplyT(func(v *DatasetBinary) pulumi.StringPtrOutput { return v.Folder }).(pulumi.StringPtrOutput) } // A `httpServerLocation` block as defined below. func (o DatasetBinaryOutput) HttpServerLocation() DatasetBinaryHttpServerLocationPtrOutput { return o.ApplyT(func(v *DatasetBinary) DatasetBinaryHttpServerLocationPtrOutput { return v.HttpServerLocation }).(DatasetBinaryHttpServerLocationPtrOutput) } // The Data Factory Linked Service name in which to associate the Binary Dataset with. func (o DatasetBinaryOutput) LinkedServiceName() pulumi.StringOutput { return o.ApplyT(func(v *DatasetBinary) pulumi.StringOutput { return v.LinkedServiceName }).(pulumi.StringOutput) } // Specifies the name of the Data Factory Binary Dataset. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. func (o DatasetBinaryOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *DatasetBinary) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // Specifies a list of parameters to associate with the Data Factory Binary Dataset. // // The following supported locations for a Binary Dataset. One of these should be specified: func (o DatasetBinaryOutput) Parameters() pulumi.StringMapOutput { return o.ApplyT(func(v *DatasetBinary) pulumi.StringMapOutput { return v.Parameters }).(pulumi.StringMapOutput) } // A `sftpServerLocation` block as defined below. func (o DatasetBinaryOutput) SftpServerLocation() DatasetBinarySftpServerLocationPtrOutput { return o.ApplyT(func(v *DatasetBinary) DatasetBinarySftpServerLocationPtrOutput { return v.SftpServerLocation }).(DatasetBinarySftpServerLocationPtrOutput) } type DatasetBinaryArrayOutput struct{ *pulumi.OutputState } func (DatasetBinaryArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*DatasetBinary)(nil)).Elem() } func (o DatasetBinaryArrayOutput) ToDatasetBinaryArrayOutput() DatasetBinaryArrayOutput { return o } func (o DatasetBinaryArrayOutput) ToDatasetBinaryArrayOutputWithContext(ctx context.Context) DatasetBinaryArrayOutput { return o } func (o DatasetBinaryArrayOutput) Index(i pulumi.IntInput) DatasetBinaryOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *DatasetBinary { return vs[0].([]*DatasetBinary)[vs[1].(int)] }).(DatasetBinaryOutput) } type DatasetBinaryMapOutput struct{ *pulumi.OutputState } func (DatasetBinaryMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*DatasetBinary)(nil)).Elem() } func (o DatasetBinaryMapOutput) ToDatasetBinaryMapOutput() DatasetBinaryMapOutput { return o } func (o DatasetBinaryMapOutput) ToDatasetBinaryMapOutputWithContext(ctx context.Context) DatasetBinaryMapOutput { return o } func (o DatasetBinaryMapOutput) MapIndex(k pulumi.StringInput) DatasetBinaryOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *DatasetBinary { return vs[0].(map[string]*DatasetBinary)[vs[1].(string)] }).(DatasetBinaryOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*DatasetBinaryInput)(nil)).Elem(), &DatasetBinary{}) pulumi.RegisterInputType(reflect.TypeOf((*DatasetBinaryArrayInput)(nil)).Elem(), DatasetBinaryArray{}) pulumi.RegisterInputType(reflect.TypeOf((*DatasetBinaryMapInput)(nil)).Elem(), DatasetBinaryMap{}) pulumi.RegisterOutputType(DatasetBinaryOutput{}) pulumi.RegisterOutputType(DatasetBinaryArrayOutput{}) pulumi.RegisterOutputType(DatasetBinaryMapOutput{}) }
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/datafactory/customDataset.go
sdk/go/azure/datafactory/customDataset.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 datafactory import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a Dataset inside an Azure Data Factory. This is a generic resource that supports all different Dataset Types. // // ## 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/datafactory" // "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 // } // exampleFactory, err := datafactory.NewFactory(ctx, "example", &datafactory.FactoryArgs{ // Name: pulumi.String("example"), // Location: example.Location, // ResourceGroupName: example.Name, // Identity: &datafactory.FactoryIdentityArgs{ // Type: pulumi.String("SystemAssigned"), // }, // }) // if err != nil { // return err // } // exampleAccount, err := storage.NewAccount(ctx, "example", &storage.AccountArgs{ // Name: pulumi.String("example"), // ResourceGroupName: example.Name, // Location: example.Location, // AccountKind: pulumi.String("BlobStorage"), // AccountTier: pulumi.String("Standard"), // AccountReplicationType: pulumi.String("LRS"), // }) // if err != nil { // return err // } // exampleLinkedCustomService, err := datafactory.NewLinkedCustomService(ctx, "example", &datafactory.LinkedCustomServiceArgs{ // Name: pulumi.String("example"), // DataFactoryId: exampleFactory.ID(), // Type: pulumi.String("AzureBlobStorage"), // TypePropertiesJson: exampleAccount.PrimaryConnectionString.ApplyT(func(primaryConnectionString string) (string, error) { // return fmt.Sprintf("{\n \\\"connectionString\\\":\\\"%v\\\"\n}\n", primaryConnectionString), nil // }).(pulumi.StringOutput), // }) // if err != nil { // return err // } // exampleContainer, err := storage.NewContainer(ctx, "example", &storage.ContainerArgs{ // Name: pulumi.String("content"), // StorageAccountName: exampleAccount.Name, // ContainerAccessType: pulumi.String("private"), // }) // if err != nil { // return err // } // _, err = datafactory.NewCustomDataset(ctx, "example", &datafactory.CustomDatasetArgs{ // Name: pulumi.String("example"), // DataFactoryId: exampleFactory.ID(), // Type: pulumi.String("Json"), // LinkedService: &datafactory.CustomDatasetLinkedServiceArgs{ // Name: exampleLinkedCustomService.Name, // Parameters: pulumi.StringMap{ // "key1": pulumi.String("value1"), // }, // }, // TypePropertiesJson: exampleContainer.Name.ApplyT(func(name string) (string, error) { // return fmt.Sprintf(`{ // \"location\": { // \"container\":\"%v\", // \"fileName\":\"foo.txt\", // \"folderPath\": \"foo/bar/\", // \"type\":\"AzureBlobStorageLocation\" // }, // \"encodingName\":\"UTF-8\" // } // // `, name), nil // // }).(pulumi.StringOutput), // Description: pulumi.String("test description"), // Annotations: pulumi.StringArray{ // pulumi.String("test1"), // pulumi.String("test2"), // pulumi.String("test3"), // }, // Folder: pulumi.String("testFolder"), // Parameters: pulumi.StringMap{ // "foo": pulumi.String("test1"), // "Bar": pulumi.String("Test2"), // }, // AdditionalProperties: pulumi.StringMap{ // "foo": pulumi.String("test1"), // "bar": pulumi.String("test2"), // }, // SchemaJson: pulumi.String(`{ // \"type\": \"object\", // \"properties\": { // \"name\": { // \"type\": \"object\", // \"properties\": { // \"firstName\": { // \"type\": \"string\" // }, // \"lastName\": { // \"type\": \"string\" // } // } // }, // \"age\": { // \"type\": \"integer\" // } // } // } // // `), // // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## Import // // Data Factory Datasets can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:datafactory/customDataset:CustomDataset example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example/providers/Microsoft.DataFactory/factories/example/datasets/example // ``` type CustomDataset struct { pulumi.CustomResourceState // A map of additional properties to associate with the Data Factory Dataset. AdditionalProperties pulumi.StringMapOutput `pulumi:"additionalProperties"` // List of tags that can be used for describing the Data Factory Dataset. Annotations pulumi.StringArrayOutput `pulumi:"annotations"` // The Data Factory ID in which to associate the Dataset with. Changing this forces a new resource. DataFactoryId pulumi.StringOutput `pulumi:"dataFactoryId"` // The description for the Data Factory Dataset. Description pulumi.StringPtrOutput `pulumi:"description"` // The folder that this Dataset is in. If not specified, the Dataset will appear at the root level. Folder pulumi.StringPtrOutput `pulumi:"folder"` // A `linkedService` block as defined below. LinkedService CustomDatasetLinkedServiceOutput `pulumi:"linkedService"` // Specifies the name of the Data Factory Dataset. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringOutput `pulumi:"name"` // A map of parameters to associate with the Data Factory Dataset. Parameters pulumi.StringMapOutput `pulumi:"parameters"` // A JSON object that contains the schema of the Data Factory Dataset. SchemaJson pulumi.StringPtrOutput `pulumi:"schemaJson"` // The type of dataset that will be associated with Data Factory. Changing this forces a new resource to be created. Type pulumi.StringOutput `pulumi:"type"` // A JSON object that contains the properties of the Data Factory Dataset. TypePropertiesJson pulumi.StringOutput `pulumi:"typePropertiesJson"` } // NewCustomDataset registers a new resource with the given unique name, arguments, and options. func NewCustomDataset(ctx *pulumi.Context, name string, args *CustomDatasetArgs, opts ...pulumi.ResourceOption) (*CustomDataset, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.DataFactoryId == nil { return nil, errors.New("invalid value for required argument 'DataFactoryId'") } if args.LinkedService == nil { return nil, errors.New("invalid value for required argument 'LinkedService'") } if args.Type == nil { return nil, errors.New("invalid value for required argument 'Type'") } if args.TypePropertiesJson == nil { return nil, errors.New("invalid value for required argument 'TypePropertiesJson'") } opts = internal.PkgResourceDefaultOpts(opts) var resource CustomDataset err := ctx.RegisterResource("azure:datafactory/customDataset:CustomDataset", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetCustomDataset gets an existing CustomDataset 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 GetCustomDataset(ctx *pulumi.Context, name string, id pulumi.IDInput, state *CustomDatasetState, opts ...pulumi.ResourceOption) (*CustomDataset, error) { var resource CustomDataset err := ctx.ReadResource("azure:datafactory/customDataset:CustomDataset", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering CustomDataset resources. type customDatasetState struct { // A map of additional properties to associate with the Data Factory Dataset. AdditionalProperties map[string]string `pulumi:"additionalProperties"` // List of tags that can be used for describing the Data Factory Dataset. Annotations []string `pulumi:"annotations"` // The Data Factory ID in which to associate the Dataset with. Changing this forces a new resource. DataFactoryId *string `pulumi:"dataFactoryId"` // The description for the Data Factory Dataset. Description *string `pulumi:"description"` // The folder that this Dataset is in. If not specified, the Dataset will appear at the root level. Folder *string `pulumi:"folder"` // A `linkedService` block as defined below. LinkedService *CustomDatasetLinkedService `pulumi:"linkedService"` // Specifies the name of the Data Factory Dataset. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name *string `pulumi:"name"` // A map of parameters to associate with the Data Factory Dataset. Parameters map[string]string `pulumi:"parameters"` // A JSON object that contains the schema of the Data Factory Dataset. SchemaJson *string `pulumi:"schemaJson"` // The type of dataset that will be associated with Data Factory. Changing this forces a new resource to be created. Type *string `pulumi:"type"` // A JSON object that contains the properties of the Data Factory Dataset. TypePropertiesJson *string `pulumi:"typePropertiesJson"` } type CustomDatasetState struct { // A map of additional properties to associate with the Data Factory Dataset. AdditionalProperties pulumi.StringMapInput // List of tags that can be used for describing the Data Factory Dataset. Annotations pulumi.StringArrayInput // The Data Factory ID in which to associate the Dataset with. Changing this forces a new resource. DataFactoryId pulumi.StringPtrInput // The description for the Data Factory Dataset. Description pulumi.StringPtrInput // The folder that this Dataset is in. If not specified, the Dataset will appear at the root level. Folder pulumi.StringPtrInput // A `linkedService` block as defined below. LinkedService CustomDatasetLinkedServicePtrInput // Specifies the name of the Data Factory Dataset. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringPtrInput // A map of parameters to associate with the Data Factory Dataset. Parameters pulumi.StringMapInput // A JSON object that contains the schema of the Data Factory Dataset. SchemaJson pulumi.StringPtrInput // The type of dataset that will be associated with Data Factory. Changing this forces a new resource to be created. Type pulumi.StringPtrInput // A JSON object that contains the properties of the Data Factory Dataset. TypePropertiesJson pulumi.StringPtrInput } func (CustomDatasetState) ElementType() reflect.Type { return reflect.TypeOf((*customDatasetState)(nil)).Elem() } type customDatasetArgs struct { // A map of additional properties to associate with the Data Factory Dataset. AdditionalProperties map[string]string `pulumi:"additionalProperties"` // List of tags that can be used for describing the Data Factory Dataset. Annotations []string `pulumi:"annotations"` // The Data Factory ID in which to associate the Dataset with. Changing this forces a new resource. DataFactoryId string `pulumi:"dataFactoryId"` // The description for the Data Factory Dataset. Description *string `pulumi:"description"` // The folder that this Dataset is in. If not specified, the Dataset will appear at the root level. Folder *string `pulumi:"folder"` // A `linkedService` block as defined below. LinkedService CustomDatasetLinkedService `pulumi:"linkedService"` // Specifies the name of the Data Factory Dataset. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name *string `pulumi:"name"` // A map of parameters to associate with the Data Factory Dataset. Parameters map[string]string `pulumi:"parameters"` // A JSON object that contains the schema of the Data Factory Dataset. SchemaJson *string `pulumi:"schemaJson"` // The type of dataset that will be associated with Data Factory. Changing this forces a new resource to be created. Type string `pulumi:"type"` // A JSON object that contains the properties of the Data Factory Dataset. TypePropertiesJson string `pulumi:"typePropertiesJson"` } // The set of arguments for constructing a CustomDataset resource. type CustomDatasetArgs struct { // A map of additional properties to associate with the Data Factory Dataset. AdditionalProperties pulumi.StringMapInput // List of tags that can be used for describing the Data Factory Dataset. Annotations pulumi.StringArrayInput // The Data Factory ID in which to associate the Dataset with. Changing this forces a new resource. DataFactoryId pulumi.StringInput // The description for the Data Factory Dataset. Description pulumi.StringPtrInput // The folder that this Dataset is in. If not specified, the Dataset will appear at the root level. Folder pulumi.StringPtrInput // A `linkedService` block as defined below. LinkedService CustomDatasetLinkedServiceInput // Specifies the name of the Data Factory Dataset. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringPtrInput // A map of parameters to associate with the Data Factory Dataset. Parameters pulumi.StringMapInput // A JSON object that contains the schema of the Data Factory Dataset. SchemaJson pulumi.StringPtrInput // The type of dataset that will be associated with Data Factory. Changing this forces a new resource to be created. Type pulumi.StringInput // A JSON object that contains the properties of the Data Factory Dataset. TypePropertiesJson pulumi.StringInput } func (CustomDatasetArgs) ElementType() reflect.Type { return reflect.TypeOf((*customDatasetArgs)(nil)).Elem() } type CustomDatasetInput interface { pulumi.Input ToCustomDatasetOutput() CustomDatasetOutput ToCustomDatasetOutputWithContext(ctx context.Context) CustomDatasetOutput } func (*CustomDataset) ElementType() reflect.Type { return reflect.TypeOf((**CustomDataset)(nil)).Elem() } func (i *CustomDataset) ToCustomDatasetOutput() CustomDatasetOutput { return i.ToCustomDatasetOutputWithContext(context.Background()) } func (i *CustomDataset) ToCustomDatasetOutputWithContext(ctx context.Context) CustomDatasetOutput { return pulumi.ToOutputWithContext(ctx, i).(CustomDatasetOutput) } // CustomDatasetArrayInput is an input type that accepts CustomDatasetArray and CustomDatasetArrayOutput values. // You can construct a concrete instance of `CustomDatasetArrayInput` via: // // CustomDatasetArray{ CustomDatasetArgs{...} } type CustomDatasetArrayInput interface { pulumi.Input ToCustomDatasetArrayOutput() CustomDatasetArrayOutput ToCustomDatasetArrayOutputWithContext(context.Context) CustomDatasetArrayOutput } type CustomDatasetArray []CustomDatasetInput func (CustomDatasetArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*CustomDataset)(nil)).Elem() } func (i CustomDatasetArray) ToCustomDatasetArrayOutput() CustomDatasetArrayOutput { return i.ToCustomDatasetArrayOutputWithContext(context.Background()) } func (i CustomDatasetArray) ToCustomDatasetArrayOutputWithContext(ctx context.Context) CustomDatasetArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(CustomDatasetArrayOutput) } // CustomDatasetMapInput is an input type that accepts CustomDatasetMap and CustomDatasetMapOutput values. // You can construct a concrete instance of `CustomDatasetMapInput` via: // // CustomDatasetMap{ "key": CustomDatasetArgs{...} } type CustomDatasetMapInput interface { pulumi.Input ToCustomDatasetMapOutput() CustomDatasetMapOutput ToCustomDatasetMapOutputWithContext(context.Context) CustomDatasetMapOutput } type CustomDatasetMap map[string]CustomDatasetInput func (CustomDatasetMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*CustomDataset)(nil)).Elem() } func (i CustomDatasetMap) ToCustomDatasetMapOutput() CustomDatasetMapOutput { return i.ToCustomDatasetMapOutputWithContext(context.Background()) } func (i CustomDatasetMap) ToCustomDatasetMapOutputWithContext(ctx context.Context) CustomDatasetMapOutput { return pulumi.ToOutputWithContext(ctx, i).(CustomDatasetMapOutput) } type CustomDatasetOutput struct{ *pulumi.OutputState } func (CustomDatasetOutput) ElementType() reflect.Type { return reflect.TypeOf((**CustomDataset)(nil)).Elem() } func (o CustomDatasetOutput) ToCustomDatasetOutput() CustomDatasetOutput { return o } func (o CustomDatasetOutput) ToCustomDatasetOutputWithContext(ctx context.Context) CustomDatasetOutput { return o } // A map of additional properties to associate with the Data Factory Dataset. func (o CustomDatasetOutput) AdditionalProperties() pulumi.StringMapOutput { return o.ApplyT(func(v *CustomDataset) pulumi.StringMapOutput { return v.AdditionalProperties }).(pulumi.StringMapOutput) } // List of tags that can be used for describing the Data Factory Dataset. func (o CustomDatasetOutput) Annotations() pulumi.StringArrayOutput { return o.ApplyT(func(v *CustomDataset) pulumi.StringArrayOutput { return v.Annotations }).(pulumi.StringArrayOutput) } // The Data Factory ID in which to associate the Dataset with. Changing this forces a new resource. func (o CustomDatasetOutput) DataFactoryId() pulumi.StringOutput { return o.ApplyT(func(v *CustomDataset) pulumi.StringOutput { return v.DataFactoryId }).(pulumi.StringOutput) } // The description for the Data Factory Dataset. func (o CustomDatasetOutput) Description() pulumi.StringPtrOutput { return o.ApplyT(func(v *CustomDataset) pulumi.StringPtrOutput { return v.Description }).(pulumi.StringPtrOutput) } // The folder that this Dataset is in. If not specified, the Dataset will appear at the root level. func (o CustomDatasetOutput) Folder() pulumi.StringPtrOutput { return o.ApplyT(func(v *CustomDataset) pulumi.StringPtrOutput { return v.Folder }).(pulumi.StringPtrOutput) } // A `linkedService` block as defined below. func (o CustomDatasetOutput) LinkedService() CustomDatasetLinkedServiceOutput { return o.ApplyT(func(v *CustomDataset) CustomDatasetLinkedServiceOutput { return v.LinkedService }).(CustomDatasetLinkedServiceOutput) } // Specifies the name of the Data Factory Dataset. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. func (o CustomDatasetOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *CustomDataset) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // A map of parameters to associate with the Data Factory Dataset. func (o CustomDatasetOutput) Parameters() pulumi.StringMapOutput { return o.ApplyT(func(v *CustomDataset) pulumi.StringMapOutput { return v.Parameters }).(pulumi.StringMapOutput) } // A JSON object that contains the schema of the Data Factory Dataset. func (o CustomDatasetOutput) SchemaJson() pulumi.StringPtrOutput { return o.ApplyT(func(v *CustomDataset) pulumi.StringPtrOutput { return v.SchemaJson }).(pulumi.StringPtrOutput) } // The type of dataset that will be associated with Data Factory. Changing this forces a new resource to be created. func (o CustomDatasetOutput) Type() pulumi.StringOutput { return o.ApplyT(func(v *CustomDataset) pulumi.StringOutput { return v.Type }).(pulumi.StringOutput) } // A JSON object that contains the properties of the Data Factory Dataset. func (o CustomDatasetOutput) TypePropertiesJson() pulumi.StringOutput { return o.ApplyT(func(v *CustomDataset) pulumi.StringOutput { return v.TypePropertiesJson }).(pulumi.StringOutput) } type CustomDatasetArrayOutput struct{ *pulumi.OutputState } func (CustomDatasetArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*CustomDataset)(nil)).Elem() } func (o CustomDatasetArrayOutput) ToCustomDatasetArrayOutput() CustomDatasetArrayOutput { return o } func (o CustomDatasetArrayOutput) ToCustomDatasetArrayOutputWithContext(ctx context.Context) CustomDatasetArrayOutput { return o } func (o CustomDatasetArrayOutput) Index(i pulumi.IntInput) CustomDatasetOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *CustomDataset { return vs[0].([]*CustomDataset)[vs[1].(int)] }).(CustomDatasetOutput) } type CustomDatasetMapOutput struct{ *pulumi.OutputState } func (CustomDatasetMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*CustomDataset)(nil)).Elem() } func (o CustomDatasetMapOutput) ToCustomDatasetMapOutput() CustomDatasetMapOutput { return o } func (o CustomDatasetMapOutput) ToCustomDatasetMapOutputWithContext(ctx context.Context) CustomDatasetMapOutput { return o } func (o CustomDatasetMapOutput) MapIndex(k pulumi.StringInput) CustomDatasetOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *CustomDataset { return vs[0].(map[string]*CustomDataset)[vs[1].(string)] }).(CustomDatasetOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*CustomDatasetInput)(nil)).Elem(), &CustomDataset{}) pulumi.RegisterInputType(reflect.TypeOf((*CustomDatasetArrayInput)(nil)).Elem(), CustomDatasetArray{}) pulumi.RegisterInputType(reflect.TypeOf((*CustomDatasetMapInput)(nil)).Elem(), CustomDatasetMap{}) pulumi.RegisterOutputType(CustomDatasetOutput{}) pulumi.RegisterOutputType(CustomDatasetArrayOutput{}) pulumi.RegisterOutputType(CustomDatasetMapOutput{}) }
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/datafactory/customerManagedKey.go
sdk/go/azure/datafactory/customerManagedKey.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 datafactory import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a Customer Managed Key for a Data Factory. // // > **Note:** The Customer Managed Key cannot be removed from the Data Factory once added. To remove the Customer Managed Key delete and recreate the parent Data Factory. // // ## Example Usage // // ### With System Assigned Identity // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/datafactory" // "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 { // 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 // } // exampleKeyVault, err := keyvault.NewKeyVault(ctx, "example", &keyvault.KeyVaultArgs{ // Name: pulumi.String("example-key-vault"), // Location: example.Location, // ResourceGroupName: example.Name, // TenantId: pulumi.String(current.TenantId), // SkuName: pulumi.String("standard"), // PurgeProtectionEnabled: pulumi.Bool(true), // }) // if err != nil { // return err // } // exampleKey, err := keyvault.NewKey(ctx, "example", &keyvault.KeyArgs{ // Name: pulumi.String("examplekey"), // KeyVaultId: exampleKeyVault.ID(), // KeyType: pulumi.String("RSA"), // KeySize: pulumi.Int(2048), // KeyOpts: pulumi.StringArray{ // pulumi.String("unwrapKey"), // pulumi.String("wrapKey"), // }, // }) // if err != nil { // return err // } // _, err = keyvault.NewAccessPolicy(ctx, "current_client_policy", &keyvault.AccessPolicyArgs{ // KeyVaultId: exampleKeyVault.ID(), // TenantId: pulumi.String(current.TenantId), // ObjectId: pulumi.String(current.ObjectId), // KeyPermissions: pulumi.StringArray{ // pulumi.String("Create"), // pulumi.String("Delete"), // pulumi.String("Get"), // pulumi.String("Purge"), // pulumi.String("Recover"), // pulumi.String("Update"), // pulumi.String("GetRotationPolicy"), // }, // SecretPermissions: pulumi.StringArray{ // pulumi.String("Delete"), // pulumi.String("Get"), // pulumi.String("Set"), // }, // }) // if err != nil { // return err // } // exampleFactory, err := datafactory.NewFactory(ctx, "example", &datafactory.FactoryArgs{ // Name: pulumi.String("example_data_factory"), // Location: example.Location, // ResourceGroupName: example.Name, // Identity: &datafactory.FactoryIdentityArgs{ // Type: pulumi.String("SystemAssigned"), // IdentityIds: pulumi.StringArray{ // exampleAzurermUserAssignedIdentity.Id, // }, // }, // }) // if err != nil { // return err // } // _, err = keyvault.NewAccessPolicy(ctx, "datafactory", &keyvault.AccessPolicyArgs{ // KeyVaultId: exampleKeyVault.ID(), // TenantId: pulumi.String(exampleFactory.Identity.ApplyT(func(identity datafactory.FactoryIdentity) (*string, error) { // return &identity.TenantId, nil // }).(pulumi.StringPtrOutput)), // ObjectId: pulumi.String(exampleFactory.Identity.ApplyT(func(identity datafactory.FactoryIdentity) (*string, error) { // return &identity.PrincipalId, nil // }).(pulumi.StringPtrOutput)), // KeyPermissions: pulumi.StringArray{ // pulumi.String("Create"), // pulumi.String("Delete"), // pulumi.String("Get"), // pulumi.String("Purge"), // pulumi.String("Recover"), // pulumi.String("Update"), // pulumi.String("GetRotationPolicy"), // pulumi.String("WrapKey"), // pulumi.String("UnwrapKey"), // }, // SecretPermissions: pulumi.StringArray{ // pulumi.String("Delete"), // pulumi.String("Get"), // pulumi.String("Set"), // }, // }) // if err != nil { // return err // } // _, err = datafactory.NewCustomerManagedKey(ctx, "example", &datafactory.CustomerManagedKeyArgs{ // DataFactoryId: exampleFactory.ID(), // CustomerManagedKeyId: exampleKey.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.DataFactory` - 2018-06-01 // // ## Import // // Data Factory Customer Managed Keys can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:datafactory/customerManagedKey:CustomerManagedKey example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example/providers/Microsoft.DataFactory/factories/example // ``` type CustomerManagedKey struct { pulumi.CustomResourceState // The ID the of the Customer Managed Key to associate with the Data Factory. CustomerManagedKeyId pulumi.StringOutput `pulumi:"customerManagedKeyId"` // The ID of the Data Factory Resource the Customer Managed Key will be associated with. Changing this forces a new resource to be created. DataFactoryId pulumi.StringOutput `pulumi:"dataFactoryId"` // The User Assigned Identity ID that will be used to access Key Vaults that contain the encryption keys. UserAssignedIdentityId pulumi.StringPtrOutput `pulumi:"userAssignedIdentityId"` } // NewCustomerManagedKey registers a new resource with the given unique name, arguments, and options. func NewCustomerManagedKey(ctx *pulumi.Context, name string, args *CustomerManagedKeyArgs, opts ...pulumi.ResourceOption) (*CustomerManagedKey, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.CustomerManagedKeyId == nil { return nil, errors.New("invalid value for required argument 'CustomerManagedKeyId'") } if args.DataFactoryId == nil { return nil, errors.New("invalid value for required argument 'DataFactoryId'") } opts = internal.PkgResourceDefaultOpts(opts) var resource CustomerManagedKey err := ctx.RegisterResource("azure:datafactory/customerManagedKey:CustomerManagedKey", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetCustomerManagedKey gets an existing CustomerManagedKey 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 GetCustomerManagedKey(ctx *pulumi.Context, name string, id pulumi.IDInput, state *CustomerManagedKeyState, opts ...pulumi.ResourceOption) (*CustomerManagedKey, error) { var resource CustomerManagedKey err := ctx.ReadResource("azure:datafactory/customerManagedKey:CustomerManagedKey", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering CustomerManagedKey resources. type customerManagedKeyState struct { // The ID the of the Customer Managed Key to associate with the Data Factory. CustomerManagedKeyId *string `pulumi:"customerManagedKeyId"` // The ID of the Data Factory Resource the Customer Managed Key will be associated with. Changing this forces a new resource to be created. DataFactoryId *string `pulumi:"dataFactoryId"` // The User Assigned Identity ID that will be used to access Key Vaults that contain the encryption keys. UserAssignedIdentityId *string `pulumi:"userAssignedIdentityId"` } type CustomerManagedKeyState struct { // The ID the of the Customer Managed Key to associate with the Data Factory. CustomerManagedKeyId pulumi.StringPtrInput // The ID of the Data Factory Resource the Customer Managed Key will be associated with. Changing this forces a new resource to be created. DataFactoryId pulumi.StringPtrInput // The User Assigned Identity ID that will be used to access Key Vaults that contain the encryption keys. UserAssignedIdentityId pulumi.StringPtrInput } func (CustomerManagedKeyState) ElementType() reflect.Type { return reflect.TypeOf((*customerManagedKeyState)(nil)).Elem() } type customerManagedKeyArgs struct { // The ID the of the Customer Managed Key to associate with the Data Factory. CustomerManagedKeyId string `pulumi:"customerManagedKeyId"` // The ID of the Data Factory Resource the Customer Managed Key will be associated with. Changing this forces a new resource to be created. DataFactoryId string `pulumi:"dataFactoryId"` // The User Assigned Identity ID that will be used to access Key Vaults that contain the encryption keys. UserAssignedIdentityId *string `pulumi:"userAssignedIdentityId"` } // The set of arguments for constructing a CustomerManagedKey resource. type CustomerManagedKeyArgs struct { // The ID the of the Customer Managed Key to associate with the Data Factory. CustomerManagedKeyId pulumi.StringInput // The ID of the Data Factory Resource the Customer Managed Key will be associated with. Changing this forces a new resource to be created. DataFactoryId pulumi.StringInput // The User Assigned Identity ID that will be used to access Key Vaults that contain the encryption keys. UserAssignedIdentityId pulumi.StringPtrInput } func (CustomerManagedKeyArgs) ElementType() reflect.Type { return reflect.TypeOf((*customerManagedKeyArgs)(nil)).Elem() } type CustomerManagedKeyInput interface { pulumi.Input ToCustomerManagedKeyOutput() CustomerManagedKeyOutput ToCustomerManagedKeyOutputWithContext(ctx context.Context) CustomerManagedKeyOutput } func (*CustomerManagedKey) ElementType() reflect.Type { return reflect.TypeOf((**CustomerManagedKey)(nil)).Elem() } func (i *CustomerManagedKey) ToCustomerManagedKeyOutput() CustomerManagedKeyOutput { return i.ToCustomerManagedKeyOutputWithContext(context.Background()) } func (i *CustomerManagedKey) ToCustomerManagedKeyOutputWithContext(ctx context.Context) CustomerManagedKeyOutput { return pulumi.ToOutputWithContext(ctx, i).(CustomerManagedKeyOutput) } // CustomerManagedKeyArrayInput is an input type that accepts CustomerManagedKeyArray and CustomerManagedKeyArrayOutput values. // You can construct a concrete instance of `CustomerManagedKeyArrayInput` via: // // CustomerManagedKeyArray{ CustomerManagedKeyArgs{...} } type CustomerManagedKeyArrayInput interface { pulumi.Input ToCustomerManagedKeyArrayOutput() CustomerManagedKeyArrayOutput ToCustomerManagedKeyArrayOutputWithContext(context.Context) CustomerManagedKeyArrayOutput } type CustomerManagedKeyArray []CustomerManagedKeyInput func (CustomerManagedKeyArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*CustomerManagedKey)(nil)).Elem() } func (i CustomerManagedKeyArray) ToCustomerManagedKeyArrayOutput() CustomerManagedKeyArrayOutput { return i.ToCustomerManagedKeyArrayOutputWithContext(context.Background()) } func (i CustomerManagedKeyArray) ToCustomerManagedKeyArrayOutputWithContext(ctx context.Context) CustomerManagedKeyArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(CustomerManagedKeyArrayOutput) } // CustomerManagedKeyMapInput is an input type that accepts CustomerManagedKeyMap and CustomerManagedKeyMapOutput values. // You can construct a concrete instance of `CustomerManagedKeyMapInput` via: // // CustomerManagedKeyMap{ "key": CustomerManagedKeyArgs{...} } type CustomerManagedKeyMapInput interface { pulumi.Input ToCustomerManagedKeyMapOutput() CustomerManagedKeyMapOutput ToCustomerManagedKeyMapOutputWithContext(context.Context) CustomerManagedKeyMapOutput } type CustomerManagedKeyMap map[string]CustomerManagedKeyInput func (CustomerManagedKeyMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*CustomerManagedKey)(nil)).Elem() } func (i CustomerManagedKeyMap) ToCustomerManagedKeyMapOutput() CustomerManagedKeyMapOutput { return i.ToCustomerManagedKeyMapOutputWithContext(context.Background()) } func (i CustomerManagedKeyMap) ToCustomerManagedKeyMapOutputWithContext(ctx context.Context) CustomerManagedKeyMapOutput { return pulumi.ToOutputWithContext(ctx, i).(CustomerManagedKeyMapOutput) } type CustomerManagedKeyOutput struct{ *pulumi.OutputState } func (CustomerManagedKeyOutput) ElementType() reflect.Type { return reflect.TypeOf((**CustomerManagedKey)(nil)).Elem() } func (o CustomerManagedKeyOutput) ToCustomerManagedKeyOutput() CustomerManagedKeyOutput { return o } func (o CustomerManagedKeyOutput) ToCustomerManagedKeyOutputWithContext(ctx context.Context) CustomerManagedKeyOutput { return o } // The ID the of the Customer Managed Key to associate with the Data Factory. func (o CustomerManagedKeyOutput) CustomerManagedKeyId() pulumi.StringOutput { return o.ApplyT(func(v *CustomerManagedKey) pulumi.StringOutput { return v.CustomerManagedKeyId }).(pulumi.StringOutput) } // The ID of the Data Factory Resource the Customer Managed Key will be associated with. Changing this forces a new resource to be created. func (o CustomerManagedKeyOutput) DataFactoryId() pulumi.StringOutput { return o.ApplyT(func(v *CustomerManagedKey) pulumi.StringOutput { return v.DataFactoryId }).(pulumi.StringOutput) } // The User Assigned Identity ID that will be used to access Key Vaults that contain the encryption keys. func (o CustomerManagedKeyOutput) UserAssignedIdentityId() pulumi.StringPtrOutput { return o.ApplyT(func(v *CustomerManagedKey) pulumi.StringPtrOutput { return v.UserAssignedIdentityId }).(pulumi.StringPtrOutput) } type CustomerManagedKeyArrayOutput struct{ *pulumi.OutputState } func (CustomerManagedKeyArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*CustomerManagedKey)(nil)).Elem() } func (o CustomerManagedKeyArrayOutput) ToCustomerManagedKeyArrayOutput() CustomerManagedKeyArrayOutput { return o } func (o CustomerManagedKeyArrayOutput) ToCustomerManagedKeyArrayOutputWithContext(ctx context.Context) CustomerManagedKeyArrayOutput { return o } func (o CustomerManagedKeyArrayOutput) Index(i pulumi.IntInput) CustomerManagedKeyOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *CustomerManagedKey { return vs[0].([]*CustomerManagedKey)[vs[1].(int)] }).(CustomerManagedKeyOutput) } type CustomerManagedKeyMapOutput struct{ *pulumi.OutputState } func (CustomerManagedKeyMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*CustomerManagedKey)(nil)).Elem() } func (o CustomerManagedKeyMapOutput) ToCustomerManagedKeyMapOutput() CustomerManagedKeyMapOutput { return o } func (o CustomerManagedKeyMapOutput) ToCustomerManagedKeyMapOutputWithContext(ctx context.Context) CustomerManagedKeyMapOutput { return o } func (o CustomerManagedKeyMapOutput) MapIndex(k pulumi.StringInput) CustomerManagedKeyOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *CustomerManagedKey { return vs[0].(map[string]*CustomerManagedKey)[vs[1].(string)] }).(CustomerManagedKeyOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*CustomerManagedKeyInput)(nil)).Elem(), &CustomerManagedKey{}) pulumi.RegisterInputType(reflect.TypeOf((*CustomerManagedKeyArrayInput)(nil)).Elem(), CustomerManagedKeyArray{}) pulumi.RegisterInputType(reflect.TypeOf((*CustomerManagedKeyMapInput)(nil)).Elem(), CustomerManagedKeyMap{}) pulumi.RegisterOutputType(CustomerManagedKeyOutput{}) pulumi.RegisterOutputType(CustomerManagedKeyArrayOutput{}) pulumi.RegisterOutputType(CustomerManagedKeyMapOutput{}) }
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/datafactory/flowletDataFlow.go
sdk/go/azure/datafactory/flowletDataFlow.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 datafactory import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a Flowlet Data Flow inside an Azure Data Factory. // // ## 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/datafactory" // "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("example"), // Location: example.Location, // ResourceGroupName: example.Name, // AccountTier: pulumi.String("Standard"), // AccountReplicationType: pulumi.String("LRS"), // }) // if err != nil { // return err // } // exampleFactory, err := datafactory.NewFactory(ctx, "example", &datafactory.FactoryArgs{ // Name: pulumi.String("example"), // Location: example.Location, // ResourceGroupName: example.Name, // }) // if err != nil { // return err // } // exampleLinkedCustomService, err := datafactory.NewLinkedCustomService(ctx, "example", &datafactory.LinkedCustomServiceArgs{ // Name: pulumi.String("linked_service"), // DataFactoryId: exampleFactory.ID(), // Type: pulumi.String("AzureBlobStorage"), // TypePropertiesJson: exampleAccount.PrimaryConnectionString.ApplyT(func(primaryConnectionString string) (string, error) { // return fmt.Sprintf("{\n \\\"connectionString\\\": \\\"%v\\\"\n}\n", primaryConnectionString), nil // }).(pulumi.StringOutput), // }) // if err != nil { // return err // } // _, err = datafactory.NewDatasetJson(ctx, "example1", &datafactory.DatasetJsonArgs{ // Name: pulumi.String("dataset1"), // DataFactoryId: exampleFactory.ID(), // LinkedServiceName: exampleLinkedCustomService.Name, // AzureBlobStorageLocation: &datafactory.DatasetJsonAzureBlobStorageLocationArgs{ // Container: pulumi.String("container"), // Path: pulumi.String("foo/bar/"), // Filename: pulumi.String("foo.txt"), // }, // Encoding: pulumi.String("UTF-8"), // }) // if err != nil { // return err // } // _, err = datafactory.NewDatasetJson(ctx, "example2", &datafactory.DatasetJsonArgs{ // Name: pulumi.String("dataset2"), // DataFactoryId: exampleFactory.ID(), // LinkedServiceName: exampleLinkedCustomService.Name, // AzureBlobStorageLocation: &datafactory.DatasetJsonAzureBlobStorageLocationArgs{ // Container: pulumi.String("container"), // Path: pulumi.String("foo/bar/"), // Filename: pulumi.String("bar.txt"), // }, // Encoding: pulumi.String("UTF-8"), // }) // if err != nil { // return err // } // example1FlowletDataFlow, err := datafactory.NewFlowletDataFlow(ctx, "example1", &datafactory.FlowletDataFlowArgs{ // Name: pulumi.String("example"), // DataFactoryId: exampleFactory.ID(), // Sources: datafactory.FlowletDataFlowSourceArray{ // &datafactory.FlowletDataFlowSourceArgs{ // Name: pulumi.String("source1"), // LinkedService: &datafactory.FlowletDataFlowSourceLinkedServiceArgs{ // Name: exampleLinkedCustomService.Name, // }, // }, // }, // Sinks: datafactory.FlowletDataFlowSinkArray{ // &datafactory.FlowletDataFlowSinkArgs{ // Name: pulumi.String("sink1"), // LinkedService: &datafactory.FlowletDataFlowSinkLinkedServiceArgs{ // Name: exampleLinkedCustomService.Name, // }, // }, // }, // Script: pulumi.String(`source( // allowSchemaDrift: true, // validateSchema: false, // limit: 100, // ignoreNoFilesFound: false, // documentForm: 'documentPerLine') ~> source1 // // source1 sink( // // allowSchemaDrift: true, // validateSchema: false, // skipDuplicateMapInputs: true, // skipDuplicateMapOutputs: true) ~> sink1 // // `), // // }) // if err != nil { // return err // } // example2FlowletDataFlow, err := datafactory.NewFlowletDataFlow(ctx, "example2", &datafactory.FlowletDataFlowArgs{ // Name: pulumi.String("example"), // DataFactoryId: exampleFactory.ID(), // Sources: datafactory.FlowletDataFlowSourceArray{ // &datafactory.FlowletDataFlowSourceArgs{ // Name: pulumi.String("source1"), // LinkedService: &datafactory.FlowletDataFlowSourceLinkedServiceArgs{ // Name: exampleLinkedCustomService.Name, // }, // }, // }, // Sinks: datafactory.FlowletDataFlowSinkArray{ // &datafactory.FlowletDataFlowSinkArgs{ // Name: pulumi.String("sink1"), // LinkedService: &datafactory.FlowletDataFlowSinkLinkedServiceArgs{ // Name: exampleLinkedCustomService.Name, // }, // }, // }, // Script: pulumi.String(`source( // allowSchemaDrift: true, // validateSchema: false, // limit: 100, // ignoreNoFilesFound: false, // documentForm: 'documentPerLine') ~> source1 // // source1 sink( // // allowSchemaDrift: true, // validateSchema: false, // skipDuplicateMapInputs: true, // skipDuplicateMapOutputs: true) ~> sink1 // // `), // // }) // if err != nil { // return err // } // _, err = datafactory.NewFlowletDataFlow(ctx, "example", &datafactory.FlowletDataFlowArgs{ // Name: pulumi.String("example"), // DataFactoryId: exampleFactory.ID(), // Sources: datafactory.FlowletDataFlowSourceArray{ // &datafactory.FlowletDataFlowSourceArgs{ // Name: pulumi.String("source1"), // Flowlet: &datafactory.FlowletDataFlowSourceFlowletArgs{ // Name: example1FlowletDataFlow.Name, // }, // LinkedService: &datafactory.FlowletDataFlowSourceLinkedServiceArgs{ // Name: exampleLinkedCustomService.Name, // }, // }, // }, // Sinks: datafactory.FlowletDataFlowSinkArray{ // &datafactory.FlowletDataFlowSinkArgs{ // Name: pulumi.String("sink1"), // Flowlet: &datafactory.FlowletDataFlowSinkFlowletArgs{ // Name: example2FlowletDataFlow.Name, // }, // LinkedService: &datafactory.FlowletDataFlowSinkLinkedServiceArgs{ // Name: exampleLinkedCustomService.Name, // }, // }, // }, // Script: pulumi.String(`source( // allowSchemaDrift: true, // validateSchema: false, // limit: 100, // ignoreNoFilesFound: false, // documentForm: 'documentPerLine') ~> source1 // // source1 sink( // // allowSchemaDrift: true, // validateSchema: false, // skipDuplicateMapInputs: true, // skipDuplicateMapOutputs: true) ~> sink1 // // `), // // }) // 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.DataFactory` - 2018-06-01 // // ## Import // // Data Factory Flowlet Data Flow can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:datafactory/flowletDataFlow:FlowletDataFlow example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example/providers/Microsoft.DataFactory/factories/example/dataflows/example // ``` type FlowletDataFlow struct { pulumi.CustomResourceState // List of tags that can be used for describing the Data Factory Flowlet Data Flow. Annotations pulumi.StringArrayOutput `pulumi:"annotations"` // The ID of Data Factory in which to associate the Data Flow with. Changing this forces a new resource. DataFactoryId pulumi.StringOutput `pulumi:"dataFactoryId"` // The description for the Data Factory Flowlet Data Flow. Description pulumi.StringPtrOutput `pulumi:"description"` // The folder that this Data Flow is in. If not specified, the Data Flow will appear at the root level. Folder pulumi.StringPtrOutput `pulumi:"folder"` // Specifies the name of the Data Factory Flowlet Data Flow. Changing this forces a new resource to be created. Name pulumi.StringOutput `pulumi:"name"` // The script for the Data Factory Flowlet Data Flow. Script pulumi.StringPtrOutput `pulumi:"script"` // The script lines for the Data Factory Flowlet Data Flow. ScriptLines pulumi.StringArrayOutput `pulumi:"scriptLines"` // One or more `sink` blocks as defined below. Sinks FlowletDataFlowSinkArrayOutput `pulumi:"sinks"` // One or more `source` blocks as defined below. Sources FlowletDataFlowSourceArrayOutput `pulumi:"sources"` // One or more `transformation` blocks as defined below. Transformations FlowletDataFlowTransformationArrayOutput `pulumi:"transformations"` } // NewFlowletDataFlow registers a new resource with the given unique name, arguments, and options. func NewFlowletDataFlow(ctx *pulumi.Context, name string, args *FlowletDataFlowArgs, opts ...pulumi.ResourceOption) (*FlowletDataFlow, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.DataFactoryId == nil { return nil, errors.New("invalid value for required argument 'DataFactoryId'") } opts = internal.PkgResourceDefaultOpts(opts) var resource FlowletDataFlow err := ctx.RegisterResource("azure:datafactory/flowletDataFlow:FlowletDataFlow", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetFlowletDataFlow gets an existing FlowletDataFlow 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 GetFlowletDataFlow(ctx *pulumi.Context, name string, id pulumi.IDInput, state *FlowletDataFlowState, opts ...pulumi.ResourceOption) (*FlowletDataFlow, error) { var resource FlowletDataFlow err := ctx.ReadResource("azure:datafactory/flowletDataFlow:FlowletDataFlow", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering FlowletDataFlow resources. type flowletDataFlowState struct { // List of tags that can be used for describing the Data Factory Flowlet Data Flow. Annotations []string `pulumi:"annotations"` // The ID of Data Factory in which to associate the Data Flow with. Changing this forces a new resource. DataFactoryId *string `pulumi:"dataFactoryId"` // The description for the Data Factory Flowlet Data Flow. Description *string `pulumi:"description"` // The folder that this Data Flow is in. If not specified, the Data Flow will appear at the root level. Folder *string `pulumi:"folder"` // Specifies the name of the Data Factory Flowlet Data Flow. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // The script for the Data Factory Flowlet Data Flow. Script *string `pulumi:"script"` // The script lines for the Data Factory Flowlet Data Flow. ScriptLines []string `pulumi:"scriptLines"` // One or more `sink` blocks as defined below. Sinks []FlowletDataFlowSink `pulumi:"sinks"` // One or more `source` blocks as defined below. Sources []FlowletDataFlowSource `pulumi:"sources"` // One or more `transformation` blocks as defined below. Transformations []FlowletDataFlowTransformation `pulumi:"transformations"` } type FlowletDataFlowState struct { // List of tags that can be used for describing the Data Factory Flowlet Data Flow. Annotations pulumi.StringArrayInput // The ID of Data Factory in which to associate the Data Flow with. Changing this forces a new resource. DataFactoryId pulumi.StringPtrInput // The description for the Data Factory Flowlet Data Flow. Description pulumi.StringPtrInput // The folder that this Data Flow is in. If not specified, the Data Flow will appear at the root level. Folder pulumi.StringPtrInput // Specifies the name of the Data Factory Flowlet Data Flow. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // The script for the Data Factory Flowlet Data Flow. Script pulumi.StringPtrInput // The script lines for the Data Factory Flowlet Data Flow. ScriptLines pulumi.StringArrayInput // One or more `sink` blocks as defined below. Sinks FlowletDataFlowSinkArrayInput // One or more `source` blocks as defined below. Sources FlowletDataFlowSourceArrayInput // One or more `transformation` blocks as defined below. Transformations FlowletDataFlowTransformationArrayInput } func (FlowletDataFlowState) ElementType() reflect.Type { return reflect.TypeOf((*flowletDataFlowState)(nil)).Elem() } type flowletDataFlowArgs struct { // List of tags that can be used for describing the Data Factory Flowlet Data Flow. Annotations []string `pulumi:"annotations"` // The ID of Data Factory in which to associate the Data Flow with. Changing this forces a new resource. DataFactoryId string `pulumi:"dataFactoryId"` // The description for the Data Factory Flowlet Data Flow. Description *string `pulumi:"description"` // The folder that this Data Flow is in. If not specified, the Data Flow will appear at the root level. Folder *string `pulumi:"folder"` // Specifies the name of the Data Factory Flowlet Data Flow. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // The script for the Data Factory Flowlet Data Flow. Script *string `pulumi:"script"` // The script lines for the Data Factory Flowlet Data Flow. ScriptLines []string `pulumi:"scriptLines"` // One or more `sink` blocks as defined below. Sinks []FlowletDataFlowSink `pulumi:"sinks"` // One or more `source` blocks as defined below. Sources []FlowletDataFlowSource `pulumi:"sources"` // One or more `transformation` blocks as defined below. Transformations []FlowletDataFlowTransformation `pulumi:"transformations"` } // The set of arguments for constructing a FlowletDataFlow resource. type FlowletDataFlowArgs struct { // List of tags that can be used for describing the Data Factory Flowlet Data Flow. Annotations pulumi.StringArrayInput // The ID of Data Factory in which to associate the Data Flow with. Changing this forces a new resource. DataFactoryId pulumi.StringInput // The description for the Data Factory Flowlet Data Flow. Description pulumi.StringPtrInput // The folder that this Data Flow is in. If not specified, the Data Flow will appear at the root level. Folder pulumi.StringPtrInput // Specifies the name of the Data Factory Flowlet Data Flow. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // The script for the Data Factory Flowlet Data Flow. Script pulumi.StringPtrInput // The script lines for the Data Factory Flowlet Data Flow. ScriptLines pulumi.StringArrayInput // One or more `sink` blocks as defined below. Sinks FlowletDataFlowSinkArrayInput // One or more `source` blocks as defined below. Sources FlowletDataFlowSourceArrayInput // One or more `transformation` blocks as defined below. Transformations FlowletDataFlowTransformationArrayInput } func (FlowletDataFlowArgs) ElementType() reflect.Type { return reflect.TypeOf((*flowletDataFlowArgs)(nil)).Elem() } type FlowletDataFlowInput interface { pulumi.Input ToFlowletDataFlowOutput() FlowletDataFlowOutput ToFlowletDataFlowOutputWithContext(ctx context.Context) FlowletDataFlowOutput } func (*FlowletDataFlow) ElementType() reflect.Type { return reflect.TypeOf((**FlowletDataFlow)(nil)).Elem() } func (i *FlowletDataFlow) ToFlowletDataFlowOutput() FlowletDataFlowOutput { return i.ToFlowletDataFlowOutputWithContext(context.Background()) } func (i *FlowletDataFlow) ToFlowletDataFlowOutputWithContext(ctx context.Context) FlowletDataFlowOutput { return pulumi.ToOutputWithContext(ctx, i).(FlowletDataFlowOutput) } // FlowletDataFlowArrayInput is an input type that accepts FlowletDataFlowArray and FlowletDataFlowArrayOutput values. // You can construct a concrete instance of `FlowletDataFlowArrayInput` via: // // FlowletDataFlowArray{ FlowletDataFlowArgs{...} } type FlowletDataFlowArrayInput interface { pulumi.Input ToFlowletDataFlowArrayOutput() FlowletDataFlowArrayOutput ToFlowletDataFlowArrayOutputWithContext(context.Context) FlowletDataFlowArrayOutput } type FlowletDataFlowArray []FlowletDataFlowInput func (FlowletDataFlowArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*FlowletDataFlow)(nil)).Elem() } func (i FlowletDataFlowArray) ToFlowletDataFlowArrayOutput() FlowletDataFlowArrayOutput { return i.ToFlowletDataFlowArrayOutputWithContext(context.Background()) } func (i FlowletDataFlowArray) ToFlowletDataFlowArrayOutputWithContext(ctx context.Context) FlowletDataFlowArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(FlowletDataFlowArrayOutput) } // FlowletDataFlowMapInput is an input type that accepts FlowletDataFlowMap and FlowletDataFlowMapOutput values. // You can construct a concrete instance of `FlowletDataFlowMapInput` via: // // FlowletDataFlowMap{ "key": FlowletDataFlowArgs{...} } type FlowletDataFlowMapInput interface { pulumi.Input ToFlowletDataFlowMapOutput() FlowletDataFlowMapOutput ToFlowletDataFlowMapOutputWithContext(context.Context) FlowletDataFlowMapOutput } type FlowletDataFlowMap map[string]FlowletDataFlowInput func (FlowletDataFlowMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*FlowletDataFlow)(nil)).Elem() } func (i FlowletDataFlowMap) ToFlowletDataFlowMapOutput() FlowletDataFlowMapOutput { return i.ToFlowletDataFlowMapOutputWithContext(context.Background()) } func (i FlowletDataFlowMap) ToFlowletDataFlowMapOutputWithContext(ctx context.Context) FlowletDataFlowMapOutput { return pulumi.ToOutputWithContext(ctx, i).(FlowletDataFlowMapOutput) } type FlowletDataFlowOutput struct{ *pulumi.OutputState } func (FlowletDataFlowOutput) ElementType() reflect.Type { return reflect.TypeOf((**FlowletDataFlow)(nil)).Elem() } func (o FlowletDataFlowOutput) ToFlowletDataFlowOutput() FlowletDataFlowOutput { return o } func (o FlowletDataFlowOutput) ToFlowletDataFlowOutputWithContext(ctx context.Context) FlowletDataFlowOutput { return o } // List of tags that can be used for describing the Data Factory Flowlet Data Flow. func (o FlowletDataFlowOutput) Annotations() pulumi.StringArrayOutput { return o.ApplyT(func(v *FlowletDataFlow) pulumi.StringArrayOutput { return v.Annotations }).(pulumi.StringArrayOutput) } // The ID of Data Factory in which to associate the Data Flow with. Changing this forces a new resource. func (o FlowletDataFlowOutput) DataFactoryId() pulumi.StringOutput { return o.ApplyT(func(v *FlowletDataFlow) pulumi.StringOutput { return v.DataFactoryId }).(pulumi.StringOutput) } // The description for the Data Factory Flowlet Data Flow. func (o FlowletDataFlowOutput) Description() pulumi.StringPtrOutput { return o.ApplyT(func(v *FlowletDataFlow) pulumi.StringPtrOutput { return v.Description }).(pulumi.StringPtrOutput) } // The folder that this Data Flow is in. If not specified, the Data Flow will appear at the root level. func (o FlowletDataFlowOutput) Folder() pulumi.StringPtrOutput { return o.ApplyT(func(v *FlowletDataFlow) pulumi.StringPtrOutput { return v.Folder }).(pulumi.StringPtrOutput) } // Specifies the name of the Data Factory Flowlet Data Flow. Changing this forces a new resource to be created. func (o FlowletDataFlowOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *FlowletDataFlow) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // The script for the Data Factory Flowlet Data Flow. func (o FlowletDataFlowOutput) Script() pulumi.StringPtrOutput { return o.ApplyT(func(v *FlowletDataFlow) pulumi.StringPtrOutput { return v.Script }).(pulumi.StringPtrOutput) } // The script lines for the Data Factory Flowlet Data Flow. func (o FlowletDataFlowOutput) ScriptLines() pulumi.StringArrayOutput { return o.ApplyT(func(v *FlowletDataFlow) pulumi.StringArrayOutput { return v.ScriptLines }).(pulumi.StringArrayOutput) } // One or more `sink` blocks as defined below. func (o FlowletDataFlowOutput) Sinks() FlowletDataFlowSinkArrayOutput { return o.ApplyT(func(v *FlowletDataFlow) FlowletDataFlowSinkArrayOutput { return v.Sinks }).(FlowletDataFlowSinkArrayOutput) } // One or more `source` blocks as defined below. func (o FlowletDataFlowOutput) Sources() FlowletDataFlowSourceArrayOutput { return o.ApplyT(func(v *FlowletDataFlow) FlowletDataFlowSourceArrayOutput { return v.Sources }).(FlowletDataFlowSourceArrayOutput) } // One or more `transformation` blocks as defined below. func (o FlowletDataFlowOutput) Transformations() FlowletDataFlowTransformationArrayOutput { return o.ApplyT(func(v *FlowletDataFlow) FlowletDataFlowTransformationArrayOutput { return v.Transformations }).(FlowletDataFlowTransformationArrayOutput) } type FlowletDataFlowArrayOutput struct{ *pulumi.OutputState } func (FlowletDataFlowArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*FlowletDataFlow)(nil)).Elem() } func (o FlowletDataFlowArrayOutput) ToFlowletDataFlowArrayOutput() FlowletDataFlowArrayOutput { return o } func (o FlowletDataFlowArrayOutput) ToFlowletDataFlowArrayOutputWithContext(ctx context.Context) FlowletDataFlowArrayOutput { return o } func (o FlowletDataFlowArrayOutput) Index(i pulumi.IntInput) FlowletDataFlowOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *FlowletDataFlow { return vs[0].([]*FlowletDataFlow)[vs[1].(int)] }).(FlowletDataFlowOutput) } type FlowletDataFlowMapOutput struct{ *pulumi.OutputState } func (FlowletDataFlowMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*FlowletDataFlow)(nil)).Elem() } func (o FlowletDataFlowMapOutput) ToFlowletDataFlowMapOutput() FlowletDataFlowMapOutput { return o } func (o FlowletDataFlowMapOutput) ToFlowletDataFlowMapOutputWithContext(ctx context.Context) FlowletDataFlowMapOutput { return o } func (o FlowletDataFlowMapOutput) MapIndex(k pulumi.StringInput) FlowletDataFlowOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *FlowletDataFlow { return vs[0].(map[string]*FlowletDataFlow)[vs[1].(string)] }).(FlowletDataFlowOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*FlowletDataFlowInput)(nil)).Elem(), &FlowletDataFlow{}) pulumi.RegisterInputType(reflect.TypeOf((*FlowletDataFlowArrayInput)(nil)).Elem(), FlowletDataFlowArray{}) pulumi.RegisterInputType(reflect.TypeOf((*FlowletDataFlowMapInput)(nil)).Elem(), FlowletDataFlowMap{}) pulumi.RegisterOutputType(FlowletDataFlowOutput{}) pulumi.RegisterOutputType(FlowletDataFlowArrayOutput{}) pulumi.RegisterOutputType(FlowletDataFlowMapOutput{}) }
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/datafactory/datasetParquet.go
sdk/go/azure/datafactory/datasetParquet.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 datafactory 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 Parquet Dataset inside an Azure Data Factory. // // ## 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/datafactory" // "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 // } // exampleFactory, err := datafactory.NewFactory(ctx, "example", &datafactory.FactoryArgs{ // Name: pulumi.String("example"), // Location: example.Location, // ResourceGroupName: example.Name, // }) // if err != nil { // return err // } // exampleLinkedServiceWeb, err := datafactory.NewLinkedServiceWeb(ctx, "example", &datafactory.LinkedServiceWebArgs{ // Name: pulumi.String("example"), // DataFactoryId: exampleFactory.ID(), // AuthenticationType: pulumi.String("Anonymous"), // Url: pulumi.String("https://www.bing.com"), // }) // if err != nil { // return err // } // _, err = datafactory.NewDatasetParquet(ctx, "example", &datafactory.DatasetParquetArgs{ // Name: pulumi.String("example"), // DataFactoryId: exampleFactory.ID(), // LinkedServiceName: exampleLinkedServiceWeb.Name, // HttpServerLocation: &datafactory.DatasetParquetHttpServerLocationArgs{ // RelativeUrl: pulumi.String("http://www.bing.com"), // Path: pulumi.String("foo/bar/"), // Filename: pulumi.String("fizz.txt"), // }, // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## Import // // Data Factory Datasets can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:datafactory/datasetParquet:DatasetParquet example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example/providers/Microsoft.DataFactory/factories/example/datasets/example // ``` type DatasetParquet struct { pulumi.CustomResourceState // A map of additional properties to associate with the Data Factory Dataset. // // The following supported locations for a Parquet Dataset: AdditionalProperties pulumi.StringMapOutput `pulumi:"additionalProperties"` // List of tags that can be used for describing the Data Factory Dataset. Annotations pulumi.StringArrayOutput `pulumi:"annotations"` // A `azureBlobFsLocation` block as defined below. AzureBlobFsLocation DatasetParquetAzureBlobFsLocationPtrOutput `pulumi:"azureBlobFsLocation"` // A `azureBlobStorageLocation` block as defined below. // // The following supported arguments are specific to Parquet Dataset: AzureBlobStorageLocation DatasetParquetAzureBlobStorageLocationPtrOutput `pulumi:"azureBlobStorageLocation"` // The compression codec used to read/write text files. Valid values are `bzip2`, `gzip`, `deflate`, `ZipDeflate`, `TarGzip`, `Tar`, `snappy`, or `lz4`. Please note these values are case-sensitive. CompressionCodec pulumi.StringPtrOutput `pulumi:"compressionCodec"` // Specifies the compression level. Possible values are `Optimal` and `Fastest`, CompressionLevel pulumi.StringPtrOutput `pulumi:"compressionLevel"` // The Data Factory ID in which to associate the Dataset with. Changing this forces a new resource. DataFactoryId pulumi.StringOutput `pulumi:"dataFactoryId"` // The description for the Data Factory Dataset. Description pulumi.StringPtrOutput `pulumi:"description"` // The folder that this Dataset is in. If not specified, the Dataset will appear at the root level. Folder pulumi.StringPtrOutput `pulumi:"folder"` // A `httpServerLocation` block as defined below. HttpServerLocation DatasetParquetHttpServerLocationPtrOutput `pulumi:"httpServerLocation"` // The Data Factory Linked Service name in which to associate the Dataset with. LinkedServiceName pulumi.StringOutput `pulumi:"linkedServiceName"` // Specifies the name of the Data Factory Dataset. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringOutput `pulumi:"name"` // A map of parameters to associate with the Data Factory Dataset. Parameters pulumi.StringMapOutput `pulumi:"parameters"` // A `schemaColumn` block as defined below. SchemaColumns DatasetParquetSchemaColumnArrayOutput `pulumi:"schemaColumns"` } // NewDatasetParquet registers a new resource with the given unique name, arguments, and options. func NewDatasetParquet(ctx *pulumi.Context, name string, args *DatasetParquetArgs, opts ...pulumi.ResourceOption) (*DatasetParquet, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.DataFactoryId == nil { return nil, errors.New("invalid value for required argument 'DataFactoryId'") } if args.LinkedServiceName == nil { return nil, errors.New("invalid value for required argument 'LinkedServiceName'") } opts = internal.PkgResourceDefaultOpts(opts) var resource DatasetParquet err := ctx.RegisterResource("azure:datafactory/datasetParquet:DatasetParquet", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetDatasetParquet gets an existing DatasetParquet 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 GetDatasetParquet(ctx *pulumi.Context, name string, id pulumi.IDInput, state *DatasetParquetState, opts ...pulumi.ResourceOption) (*DatasetParquet, error) { var resource DatasetParquet err := ctx.ReadResource("azure:datafactory/datasetParquet:DatasetParquet", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering DatasetParquet resources. type datasetParquetState struct { // A map of additional properties to associate with the Data Factory Dataset. // // The following supported locations for a Parquet Dataset: AdditionalProperties map[string]string `pulumi:"additionalProperties"` // List of tags that can be used for describing the Data Factory Dataset. Annotations []string `pulumi:"annotations"` // A `azureBlobFsLocation` block as defined below. AzureBlobFsLocation *DatasetParquetAzureBlobFsLocation `pulumi:"azureBlobFsLocation"` // A `azureBlobStorageLocation` block as defined below. // // The following supported arguments are specific to Parquet Dataset: AzureBlobStorageLocation *DatasetParquetAzureBlobStorageLocation `pulumi:"azureBlobStorageLocation"` // The compression codec used to read/write text files. Valid values are `bzip2`, `gzip`, `deflate`, `ZipDeflate`, `TarGzip`, `Tar`, `snappy`, or `lz4`. Please note these values are case-sensitive. CompressionCodec *string `pulumi:"compressionCodec"` // Specifies the compression level. Possible values are `Optimal` and `Fastest`, CompressionLevel *string `pulumi:"compressionLevel"` // The Data Factory ID in which to associate the Dataset with. Changing this forces a new resource. DataFactoryId *string `pulumi:"dataFactoryId"` // The description for the Data Factory Dataset. Description *string `pulumi:"description"` // The folder that this Dataset is in. If not specified, the Dataset will appear at the root level. Folder *string `pulumi:"folder"` // A `httpServerLocation` block as defined below. HttpServerLocation *DatasetParquetHttpServerLocation `pulumi:"httpServerLocation"` // The Data Factory Linked Service name in which to associate the Dataset with. LinkedServiceName *string `pulumi:"linkedServiceName"` // Specifies the name of the Data Factory Dataset. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name *string `pulumi:"name"` // A map of parameters to associate with the Data Factory Dataset. Parameters map[string]string `pulumi:"parameters"` // A `schemaColumn` block as defined below. SchemaColumns []DatasetParquetSchemaColumn `pulumi:"schemaColumns"` } type DatasetParquetState struct { // A map of additional properties to associate with the Data Factory Dataset. // // The following supported locations for a Parquet Dataset: AdditionalProperties pulumi.StringMapInput // List of tags that can be used for describing the Data Factory Dataset. Annotations pulumi.StringArrayInput // A `azureBlobFsLocation` block as defined below. AzureBlobFsLocation DatasetParquetAzureBlobFsLocationPtrInput // A `azureBlobStorageLocation` block as defined below. // // The following supported arguments are specific to Parquet Dataset: AzureBlobStorageLocation DatasetParquetAzureBlobStorageLocationPtrInput // The compression codec used to read/write text files. Valid values are `bzip2`, `gzip`, `deflate`, `ZipDeflate`, `TarGzip`, `Tar`, `snappy`, or `lz4`. Please note these values are case-sensitive. CompressionCodec pulumi.StringPtrInput // Specifies the compression level. Possible values are `Optimal` and `Fastest`, CompressionLevel pulumi.StringPtrInput // The Data Factory ID in which to associate the Dataset with. Changing this forces a new resource. DataFactoryId pulumi.StringPtrInput // The description for the Data Factory Dataset. Description pulumi.StringPtrInput // The folder that this Dataset is in. If not specified, the Dataset will appear at the root level. Folder pulumi.StringPtrInput // A `httpServerLocation` block as defined below. HttpServerLocation DatasetParquetHttpServerLocationPtrInput // The Data Factory Linked Service name in which to associate the Dataset with. LinkedServiceName pulumi.StringPtrInput // Specifies the name of the Data Factory Dataset. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringPtrInput // A map of parameters to associate with the Data Factory Dataset. Parameters pulumi.StringMapInput // A `schemaColumn` block as defined below. SchemaColumns DatasetParquetSchemaColumnArrayInput } func (DatasetParquetState) ElementType() reflect.Type { return reflect.TypeOf((*datasetParquetState)(nil)).Elem() } type datasetParquetArgs struct { // A map of additional properties to associate with the Data Factory Dataset. // // The following supported locations for a Parquet Dataset: AdditionalProperties map[string]string `pulumi:"additionalProperties"` // List of tags that can be used for describing the Data Factory Dataset. Annotations []string `pulumi:"annotations"` // A `azureBlobFsLocation` block as defined below. AzureBlobFsLocation *DatasetParquetAzureBlobFsLocation `pulumi:"azureBlobFsLocation"` // A `azureBlobStorageLocation` block as defined below. // // The following supported arguments are specific to Parquet Dataset: AzureBlobStorageLocation *DatasetParquetAzureBlobStorageLocation `pulumi:"azureBlobStorageLocation"` // The compression codec used to read/write text files. Valid values are `bzip2`, `gzip`, `deflate`, `ZipDeflate`, `TarGzip`, `Tar`, `snappy`, or `lz4`. Please note these values are case-sensitive. CompressionCodec *string `pulumi:"compressionCodec"` // Specifies the compression level. Possible values are `Optimal` and `Fastest`, CompressionLevel *string `pulumi:"compressionLevel"` // The Data Factory ID in which to associate the Dataset with. Changing this forces a new resource. DataFactoryId string `pulumi:"dataFactoryId"` // The description for the Data Factory Dataset. Description *string `pulumi:"description"` // The folder that this Dataset is in. If not specified, the Dataset will appear at the root level. Folder *string `pulumi:"folder"` // A `httpServerLocation` block as defined below. HttpServerLocation *DatasetParquetHttpServerLocation `pulumi:"httpServerLocation"` // The Data Factory Linked Service name in which to associate the Dataset with. LinkedServiceName string `pulumi:"linkedServiceName"` // Specifies the name of the Data Factory Dataset. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name *string `pulumi:"name"` // A map of parameters to associate with the Data Factory Dataset. Parameters map[string]string `pulumi:"parameters"` // A `schemaColumn` block as defined below. SchemaColumns []DatasetParquetSchemaColumn `pulumi:"schemaColumns"` } // The set of arguments for constructing a DatasetParquet resource. type DatasetParquetArgs struct { // A map of additional properties to associate with the Data Factory Dataset. // // The following supported locations for a Parquet Dataset: AdditionalProperties pulumi.StringMapInput // List of tags that can be used for describing the Data Factory Dataset. Annotations pulumi.StringArrayInput // A `azureBlobFsLocation` block as defined below. AzureBlobFsLocation DatasetParquetAzureBlobFsLocationPtrInput // A `azureBlobStorageLocation` block as defined below. // // The following supported arguments are specific to Parquet Dataset: AzureBlobStorageLocation DatasetParquetAzureBlobStorageLocationPtrInput // The compression codec used to read/write text files. Valid values are `bzip2`, `gzip`, `deflate`, `ZipDeflate`, `TarGzip`, `Tar`, `snappy`, or `lz4`. Please note these values are case-sensitive. CompressionCodec pulumi.StringPtrInput // Specifies the compression level. Possible values are `Optimal` and `Fastest`, CompressionLevel pulumi.StringPtrInput // The Data Factory ID in which to associate the Dataset with. Changing this forces a new resource. DataFactoryId pulumi.StringInput // The description for the Data Factory Dataset. Description pulumi.StringPtrInput // The folder that this Dataset is in. If not specified, the Dataset will appear at the root level. Folder pulumi.StringPtrInput // A `httpServerLocation` block as defined below. HttpServerLocation DatasetParquetHttpServerLocationPtrInput // The Data Factory Linked Service name in which to associate the Dataset with. LinkedServiceName pulumi.StringInput // Specifies the name of the Data Factory Dataset. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringPtrInput // A map of parameters to associate with the Data Factory Dataset. Parameters pulumi.StringMapInput // A `schemaColumn` block as defined below. SchemaColumns DatasetParquetSchemaColumnArrayInput } func (DatasetParquetArgs) ElementType() reflect.Type { return reflect.TypeOf((*datasetParquetArgs)(nil)).Elem() } type DatasetParquetInput interface { pulumi.Input ToDatasetParquetOutput() DatasetParquetOutput ToDatasetParquetOutputWithContext(ctx context.Context) DatasetParquetOutput } func (*DatasetParquet) ElementType() reflect.Type { return reflect.TypeOf((**DatasetParquet)(nil)).Elem() } func (i *DatasetParquet) ToDatasetParquetOutput() DatasetParquetOutput { return i.ToDatasetParquetOutputWithContext(context.Background()) } func (i *DatasetParquet) ToDatasetParquetOutputWithContext(ctx context.Context) DatasetParquetOutput { return pulumi.ToOutputWithContext(ctx, i).(DatasetParquetOutput) } // DatasetParquetArrayInput is an input type that accepts DatasetParquetArray and DatasetParquetArrayOutput values. // You can construct a concrete instance of `DatasetParquetArrayInput` via: // // DatasetParquetArray{ DatasetParquetArgs{...} } type DatasetParquetArrayInput interface { pulumi.Input ToDatasetParquetArrayOutput() DatasetParquetArrayOutput ToDatasetParquetArrayOutputWithContext(context.Context) DatasetParquetArrayOutput } type DatasetParquetArray []DatasetParquetInput func (DatasetParquetArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*DatasetParquet)(nil)).Elem() } func (i DatasetParquetArray) ToDatasetParquetArrayOutput() DatasetParquetArrayOutput { return i.ToDatasetParquetArrayOutputWithContext(context.Background()) } func (i DatasetParquetArray) ToDatasetParquetArrayOutputWithContext(ctx context.Context) DatasetParquetArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(DatasetParquetArrayOutput) } // DatasetParquetMapInput is an input type that accepts DatasetParquetMap and DatasetParquetMapOutput values. // You can construct a concrete instance of `DatasetParquetMapInput` via: // // DatasetParquetMap{ "key": DatasetParquetArgs{...} } type DatasetParquetMapInput interface { pulumi.Input ToDatasetParquetMapOutput() DatasetParquetMapOutput ToDatasetParquetMapOutputWithContext(context.Context) DatasetParquetMapOutput } type DatasetParquetMap map[string]DatasetParquetInput func (DatasetParquetMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*DatasetParquet)(nil)).Elem() } func (i DatasetParquetMap) ToDatasetParquetMapOutput() DatasetParquetMapOutput { return i.ToDatasetParquetMapOutputWithContext(context.Background()) } func (i DatasetParquetMap) ToDatasetParquetMapOutputWithContext(ctx context.Context) DatasetParquetMapOutput { return pulumi.ToOutputWithContext(ctx, i).(DatasetParquetMapOutput) } type DatasetParquetOutput struct{ *pulumi.OutputState } func (DatasetParquetOutput) ElementType() reflect.Type { return reflect.TypeOf((**DatasetParquet)(nil)).Elem() } func (o DatasetParquetOutput) ToDatasetParquetOutput() DatasetParquetOutput { return o } func (o DatasetParquetOutput) ToDatasetParquetOutputWithContext(ctx context.Context) DatasetParquetOutput { return o } // A map of additional properties to associate with the Data Factory Dataset. // // The following supported locations for a Parquet Dataset: func (o DatasetParquetOutput) AdditionalProperties() pulumi.StringMapOutput { return o.ApplyT(func(v *DatasetParquet) pulumi.StringMapOutput { return v.AdditionalProperties }).(pulumi.StringMapOutput) } // List of tags that can be used for describing the Data Factory Dataset. func (o DatasetParquetOutput) Annotations() pulumi.StringArrayOutput { return o.ApplyT(func(v *DatasetParquet) pulumi.StringArrayOutput { return v.Annotations }).(pulumi.StringArrayOutput) } // A `azureBlobFsLocation` block as defined below. func (o DatasetParquetOutput) AzureBlobFsLocation() DatasetParquetAzureBlobFsLocationPtrOutput { return o.ApplyT(func(v *DatasetParquet) DatasetParquetAzureBlobFsLocationPtrOutput { return v.AzureBlobFsLocation }).(DatasetParquetAzureBlobFsLocationPtrOutput) } // A `azureBlobStorageLocation` block as defined below. // // The following supported arguments are specific to Parquet Dataset: func (o DatasetParquetOutput) AzureBlobStorageLocation() DatasetParquetAzureBlobStorageLocationPtrOutput { return o.ApplyT(func(v *DatasetParquet) DatasetParquetAzureBlobStorageLocationPtrOutput { return v.AzureBlobStorageLocation }).(DatasetParquetAzureBlobStorageLocationPtrOutput) } // The compression codec used to read/write text files. Valid values are `bzip2`, `gzip`, `deflate`, `ZipDeflate`, `TarGzip`, `Tar`, `snappy`, or `lz4`. Please note these values are case-sensitive. func (o DatasetParquetOutput) CompressionCodec() pulumi.StringPtrOutput { return o.ApplyT(func(v *DatasetParquet) pulumi.StringPtrOutput { return v.CompressionCodec }).(pulumi.StringPtrOutput) } // Specifies the compression level. Possible values are `Optimal` and `Fastest`, func (o DatasetParquetOutput) CompressionLevel() pulumi.StringPtrOutput { return o.ApplyT(func(v *DatasetParquet) pulumi.StringPtrOutput { return v.CompressionLevel }).(pulumi.StringPtrOutput) } // The Data Factory ID in which to associate the Dataset with. Changing this forces a new resource. func (o DatasetParquetOutput) DataFactoryId() pulumi.StringOutput { return o.ApplyT(func(v *DatasetParquet) pulumi.StringOutput { return v.DataFactoryId }).(pulumi.StringOutput) } // The description for the Data Factory Dataset. func (o DatasetParquetOutput) Description() pulumi.StringPtrOutput { return o.ApplyT(func(v *DatasetParquet) pulumi.StringPtrOutput { return v.Description }).(pulumi.StringPtrOutput) } // The folder that this Dataset is in. If not specified, the Dataset will appear at the root level. func (o DatasetParquetOutput) Folder() pulumi.StringPtrOutput { return o.ApplyT(func(v *DatasetParquet) pulumi.StringPtrOutput { return v.Folder }).(pulumi.StringPtrOutput) } // A `httpServerLocation` block as defined below. func (o DatasetParquetOutput) HttpServerLocation() DatasetParquetHttpServerLocationPtrOutput { return o.ApplyT(func(v *DatasetParquet) DatasetParquetHttpServerLocationPtrOutput { return v.HttpServerLocation }).(DatasetParquetHttpServerLocationPtrOutput) } // The Data Factory Linked Service name in which to associate the Dataset with. func (o DatasetParquetOutput) LinkedServiceName() pulumi.StringOutput { return o.ApplyT(func(v *DatasetParquet) pulumi.StringOutput { return v.LinkedServiceName }).(pulumi.StringOutput) } // Specifies the name of the Data Factory Dataset. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. func (o DatasetParquetOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *DatasetParquet) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // A map of parameters to associate with the Data Factory Dataset. func (o DatasetParquetOutput) Parameters() pulumi.StringMapOutput { return o.ApplyT(func(v *DatasetParquet) pulumi.StringMapOutput { return v.Parameters }).(pulumi.StringMapOutput) } // A `schemaColumn` block as defined below. func (o DatasetParquetOutput) SchemaColumns() DatasetParquetSchemaColumnArrayOutput { return o.ApplyT(func(v *DatasetParquet) DatasetParquetSchemaColumnArrayOutput { return v.SchemaColumns }).(DatasetParquetSchemaColumnArrayOutput) } type DatasetParquetArrayOutput struct{ *pulumi.OutputState } func (DatasetParquetArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*DatasetParquet)(nil)).Elem() } func (o DatasetParquetArrayOutput) ToDatasetParquetArrayOutput() DatasetParquetArrayOutput { return o } func (o DatasetParquetArrayOutput) ToDatasetParquetArrayOutputWithContext(ctx context.Context) DatasetParquetArrayOutput { return o } func (o DatasetParquetArrayOutput) Index(i pulumi.IntInput) DatasetParquetOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *DatasetParquet { return vs[0].([]*DatasetParquet)[vs[1].(int)] }).(DatasetParquetOutput) } type DatasetParquetMapOutput struct{ *pulumi.OutputState } func (DatasetParquetMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*DatasetParquet)(nil)).Elem() } func (o DatasetParquetMapOutput) ToDatasetParquetMapOutput() DatasetParquetMapOutput { return o } func (o DatasetParquetMapOutput) ToDatasetParquetMapOutputWithContext(ctx context.Context) DatasetParquetMapOutput { return o } func (o DatasetParquetMapOutput) MapIndex(k pulumi.StringInput) DatasetParquetOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *DatasetParquet { return vs[0].(map[string]*DatasetParquet)[vs[1].(string)] }).(DatasetParquetOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*DatasetParquetInput)(nil)).Elem(), &DatasetParquet{}) pulumi.RegisterInputType(reflect.TypeOf((*DatasetParquetArrayInput)(nil)).Elem(), DatasetParquetArray{}) pulumi.RegisterInputType(reflect.TypeOf((*DatasetParquetMapInput)(nil)).Elem(), DatasetParquetMap{}) pulumi.RegisterOutputType(DatasetParquetOutput{}) pulumi.RegisterOutputType(DatasetParquetArrayOutput{}) pulumi.RegisterOutputType(DatasetParquetMapOutput{}) }
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/datafactory/triggerCustomEvent.go
sdk/go/azure/datafactory/triggerCustomEvent.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 datafactory 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 Event Trigger inside an Azure Data Factory. // // ## 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/datafactory" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/eventgrid" // "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 // } // exampleFactory, err := datafactory.NewFactory(ctx, "example", &datafactory.FactoryArgs{ // Name: pulumi.String("example"), // Location: example.Location, // ResourceGroupName: example.Name, // }) // if err != nil { // return err // } // examplePipeline, err := datafactory.NewPipeline(ctx, "example", &datafactory.PipelineArgs{ // Name: pulumi.String("example"), // DataFactoryId: exampleFactory.ID(), // }) // if err != nil { // return err // } // exampleTopic, err := eventgrid.NewTopic(ctx, "example", &eventgrid.TopicArgs{ // Name: pulumi.String("example-topic"), // Location: example.Location, // ResourceGroupName: example.Name, // }) // if err != nil { // return err // } // _, err = datafactory.NewTriggerCustomEvent(ctx, "example", &datafactory.TriggerCustomEventArgs{ // Name: pulumi.String("example"), // DataFactoryId: exampleFactory.ID(), // EventgridTopicId: exampleTopic.ID(), // Events: pulumi.StringArray{ // pulumi.String("event1"), // pulumi.String("event2"), // }, // SubjectBeginsWith: pulumi.String("abc"), // SubjectEndsWith: pulumi.String("xyz"), // Annotations: pulumi.StringArray{ // pulumi.String("example1"), // pulumi.String("example2"), // pulumi.String("example3"), // }, // Description: pulumi.String("example description"), // Pipelines: datafactory.TriggerCustomEventPipelineArray{ // &datafactory.TriggerCustomEventPipelineArgs{ // Name: examplePipeline.Name, // Parameters: pulumi.StringMap{ // "Env": pulumi.String("Prod"), // }, // }, // }, // AdditionalProperties: pulumi.StringMap{ // "foo": pulumi.String("foo1"), // "bar": pulumi.String("bar2"), // }, // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## Import // // Data Factory Custom Event Trigger can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:datafactory/triggerCustomEvent:TriggerCustomEvent example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example/providers/Microsoft.DataFactory/factories/example/triggers/example // ``` type TriggerCustomEvent struct { pulumi.CustomResourceState // Specifies if the Data Factory Custom Event Trigger is activated. Defaults to `true`. Activated pulumi.BoolPtrOutput `pulumi:"activated"` // A map of additional properties to associate with the Data Factory Custom Event Trigger. AdditionalProperties pulumi.StringMapOutput `pulumi:"additionalProperties"` // List of tags that can be used for describing the Data Factory Custom Event Trigger. Annotations pulumi.StringArrayOutput `pulumi:"annotations"` // The ID of Data Factory in which to associate the Trigger with. Changing this forces a new resource. DataFactoryId pulumi.StringOutput `pulumi:"dataFactoryId"` // The description for the Data Factory Custom Event Trigger. Description pulumi.StringPtrOutput `pulumi:"description"` // The ID of Event Grid Topic in which event will be listened. Changing this forces a new resource. EventgridTopicId pulumi.StringOutput `pulumi:"eventgridTopicId"` // List of events that will fire this trigger. At least one event must be specified. Events pulumi.StringArrayOutput `pulumi:"events"` // Specifies the name of the Data Factory Custom Event Trigger. Changing this forces a new resource to be created. Name pulumi.StringOutput `pulumi:"name"` // One or more `pipeline` blocks as defined below. Pipelines TriggerCustomEventPipelineArrayOutput `pulumi:"pipelines"` // The pattern that event subject starts with for trigger to fire. SubjectBeginsWith pulumi.StringPtrOutput `pulumi:"subjectBeginsWith"` // The pattern that event subject ends with for trigger to fire. SubjectEndsWith pulumi.StringPtrOutput `pulumi:"subjectEndsWith"` } // NewTriggerCustomEvent registers a new resource with the given unique name, arguments, and options. func NewTriggerCustomEvent(ctx *pulumi.Context, name string, args *TriggerCustomEventArgs, opts ...pulumi.ResourceOption) (*TriggerCustomEvent, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.DataFactoryId == nil { return nil, errors.New("invalid value for required argument 'DataFactoryId'") } if args.EventgridTopicId == nil { return nil, errors.New("invalid value for required argument 'EventgridTopicId'") } if args.Events == nil { return nil, errors.New("invalid value for required argument 'Events'") } if args.Pipelines == nil { return nil, errors.New("invalid value for required argument 'Pipelines'") } opts = internal.PkgResourceDefaultOpts(opts) var resource TriggerCustomEvent err := ctx.RegisterResource("azure:datafactory/triggerCustomEvent:TriggerCustomEvent", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetTriggerCustomEvent gets an existing TriggerCustomEvent 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 GetTriggerCustomEvent(ctx *pulumi.Context, name string, id pulumi.IDInput, state *TriggerCustomEventState, opts ...pulumi.ResourceOption) (*TriggerCustomEvent, error) { var resource TriggerCustomEvent err := ctx.ReadResource("azure:datafactory/triggerCustomEvent:TriggerCustomEvent", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering TriggerCustomEvent resources. type triggerCustomEventState struct { // Specifies if the Data Factory Custom Event Trigger is activated. Defaults to `true`. Activated *bool `pulumi:"activated"` // A map of additional properties to associate with the Data Factory Custom Event Trigger. AdditionalProperties map[string]string `pulumi:"additionalProperties"` // List of tags that can be used for describing the Data Factory Custom Event Trigger. Annotations []string `pulumi:"annotations"` // The ID of Data Factory in which to associate the Trigger with. Changing this forces a new resource. DataFactoryId *string `pulumi:"dataFactoryId"` // The description for the Data Factory Custom Event Trigger. Description *string `pulumi:"description"` // The ID of Event Grid Topic in which event will be listened. Changing this forces a new resource. EventgridTopicId *string `pulumi:"eventgridTopicId"` // List of events that will fire this trigger. At least one event must be specified. Events []string `pulumi:"events"` // Specifies the name of the Data Factory Custom Event Trigger. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // One or more `pipeline` blocks as defined below. Pipelines []TriggerCustomEventPipeline `pulumi:"pipelines"` // The pattern that event subject starts with for trigger to fire. SubjectBeginsWith *string `pulumi:"subjectBeginsWith"` // The pattern that event subject ends with for trigger to fire. SubjectEndsWith *string `pulumi:"subjectEndsWith"` } type TriggerCustomEventState struct { // Specifies if the Data Factory Custom Event Trigger is activated. Defaults to `true`. Activated pulumi.BoolPtrInput // A map of additional properties to associate with the Data Factory Custom Event Trigger. AdditionalProperties pulumi.StringMapInput // List of tags that can be used for describing the Data Factory Custom Event Trigger. Annotations pulumi.StringArrayInput // The ID of Data Factory in which to associate the Trigger with. Changing this forces a new resource. DataFactoryId pulumi.StringPtrInput // The description for the Data Factory Custom Event Trigger. Description pulumi.StringPtrInput // The ID of Event Grid Topic in which event will be listened. Changing this forces a new resource. EventgridTopicId pulumi.StringPtrInput // List of events that will fire this trigger. At least one event must be specified. Events pulumi.StringArrayInput // Specifies the name of the Data Factory Custom Event Trigger. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // One or more `pipeline` blocks as defined below. Pipelines TriggerCustomEventPipelineArrayInput // The pattern that event subject starts with for trigger to fire. SubjectBeginsWith pulumi.StringPtrInput // The pattern that event subject ends with for trigger to fire. SubjectEndsWith pulumi.StringPtrInput } func (TriggerCustomEventState) ElementType() reflect.Type { return reflect.TypeOf((*triggerCustomEventState)(nil)).Elem() } type triggerCustomEventArgs struct { // Specifies if the Data Factory Custom Event Trigger is activated. Defaults to `true`. Activated *bool `pulumi:"activated"` // A map of additional properties to associate with the Data Factory Custom Event Trigger. AdditionalProperties map[string]string `pulumi:"additionalProperties"` // List of tags that can be used for describing the Data Factory Custom Event Trigger. Annotations []string `pulumi:"annotations"` // The ID of Data Factory in which to associate the Trigger with. Changing this forces a new resource. DataFactoryId string `pulumi:"dataFactoryId"` // The description for the Data Factory Custom Event Trigger. Description *string `pulumi:"description"` // The ID of Event Grid Topic in which event will be listened. Changing this forces a new resource. EventgridTopicId string `pulumi:"eventgridTopicId"` // List of events that will fire this trigger. At least one event must be specified. Events []string `pulumi:"events"` // Specifies the name of the Data Factory Custom Event Trigger. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // One or more `pipeline` blocks as defined below. Pipelines []TriggerCustomEventPipeline `pulumi:"pipelines"` // The pattern that event subject starts with for trigger to fire. SubjectBeginsWith *string `pulumi:"subjectBeginsWith"` // The pattern that event subject ends with for trigger to fire. SubjectEndsWith *string `pulumi:"subjectEndsWith"` } // The set of arguments for constructing a TriggerCustomEvent resource. type TriggerCustomEventArgs struct { // Specifies if the Data Factory Custom Event Trigger is activated. Defaults to `true`. Activated pulumi.BoolPtrInput // A map of additional properties to associate with the Data Factory Custom Event Trigger. AdditionalProperties pulumi.StringMapInput // List of tags that can be used for describing the Data Factory Custom Event Trigger. Annotations pulumi.StringArrayInput // The ID of Data Factory in which to associate the Trigger with. Changing this forces a new resource. DataFactoryId pulumi.StringInput // The description for the Data Factory Custom Event Trigger. Description pulumi.StringPtrInput // The ID of Event Grid Topic in which event will be listened. Changing this forces a new resource. EventgridTopicId pulumi.StringInput // List of events that will fire this trigger. At least one event must be specified. Events pulumi.StringArrayInput // Specifies the name of the Data Factory Custom Event Trigger. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // One or more `pipeline` blocks as defined below. Pipelines TriggerCustomEventPipelineArrayInput // The pattern that event subject starts with for trigger to fire. SubjectBeginsWith pulumi.StringPtrInput // The pattern that event subject ends with for trigger to fire. SubjectEndsWith pulumi.StringPtrInput } func (TriggerCustomEventArgs) ElementType() reflect.Type { return reflect.TypeOf((*triggerCustomEventArgs)(nil)).Elem() } type TriggerCustomEventInput interface { pulumi.Input ToTriggerCustomEventOutput() TriggerCustomEventOutput ToTriggerCustomEventOutputWithContext(ctx context.Context) TriggerCustomEventOutput } func (*TriggerCustomEvent) ElementType() reflect.Type { return reflect.TypeOf((**TriggerCustomEvent)(nil)).Elem() } func (i *TriggerCustomEvent) ToTriggerCustomEventOutput() TriggerCustomEventOutput { return i.ToTriggerCustomEventOutputWithContext(context.Background()) } func (i *TriggerCustomEvent) ToTriggerCustomEventOutputWithContext(ctx context.Context) TriggerCustomEventOutput { return pulumi.ToOutputWithContext(ctx, i).(TriggerCustomEventOutput) } // TriggerCustomEventArrayInput is an input type that accepts TriggerCustomEventArray and TriggerCustomEventArrayOutput values. // You can construct a concrete instance of `TriggerCustomEventArrayInput` via: // // TriggerCustomEventArray{ TriggerCustomEventArgs{...} } type TriggerCustomEventArrayInput interface { pulumi.Input ToTriggerCustomEventArrayOutput() TriggerCustomEventArrayOutput ToTriggerCustomEventArrayOutputWithContext(context.Context) TriggerCustomEventArrayOutput } type TriggerCustomEventArray []TriggerCustomEventInput func (TriggerCustomEventArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*TriggerCustomEvent)(nil)).Elem() } func (i TriggerCustomEventArray) ToTriggerCustomEventArrayOutput() TriggerCustomEventArrayOutput { return i.ToTriggerCustomEventArrayOutputWithContext(context.Background()) } func (i TriggerCustomEventArray) ToTriggerCustomEventArrayOutputWithContext(ctx context.Context) TriggerCustomEventArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(TriggerCustomEventArrayOutput) } // TriggerCustomEventMapInput is an input type that accepts TriggerCustomEventMap and TriggerCustomEventMapOutput values. // You can construct a concrete instance of `TriggerCustomEventMapInput` via: // // TriggerCustomEventMap{ "key": TriggerCustomEventArgs{...} } type TriggerCustomEventMapInput interface { pulumi.Input ToTriggerCustomEventMapOutput() TriggerCustomEventMapOutput ToTriggerCustomEventMapOutputWithContext(context.Context) TriggerCustomEventMapOutput } type TriggerCustomEventMap map[string]TriggerCustomEventInput func (TriggerCustomEventMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*TriggerCustomEvent)(nil)).Elem() } func (i TriggerCustomEventMap) ToTriggerCustomEventMapOutput() TriggerCustomEventMapOutput { return i.ToTriggerCustomEventMapOutputWithContext(context.Background()) } func (i TriggerCustomEventMap) ToTriggerCustomEventMapOutputWithContext(ctx context.Context) TriggerCustomEventMapOutput { return pulumi.ToOutputWithContext(ctx, i).(TriggerCustomEventMapOutput) } type TriggerCustomEventOutput struct{ *pulumi.OutputState } func (TriggerCustomEventOutput) ElementType() reflect.Type { return reflect.TypeOf((**TriggerCustomEvent)(nil)).Elem() } func (o TriggerCustomEventOutput) ToTriggerCustomEventOutput() TriggerCustomEventOutput { return o } func (o TriggerCustomEventOutput) ToTriggerCustomEventOutputWithContext(ctx context.Context) TriggerCustomEventOutput { return o } // Specifies if the Data Factory Custom Event Trigger is activated. Defaults to `true`. func (o TriggerCustomEventOutput) Activated() pulumi.BoolPtrOutput { return o.ApplyT(func(v *TriggerCustomEvent) pulumi.BoolPtrOutput { return v.Activated }).(pulumi.BoolPtrOutput) } // A map of additional properties to associate with the Data Factory Custom Event Trigger. func (o TriggerCustomEventOutput) AdditionalProperties() pulumi.StringMapOutput { return o.ApplyT(func(v *TriggerCustomEvent) pulumi.StringMapOutput { return v.AdditionalProperties }).(pulumi.StringMapOutput) } // List of tags that can be used for describing the Data Factory Custom Event Trigger. func (o TriggerCustomEventOutput) Annotations() pulumi.StringArrayOutput { return o.ApplyT(func(v *TriggerCustomEvent) pulumi.StringArrayOutput { return v.Annotations }).(pulumi.StringArrayOutput) } // The ID of Data Factory in which to associate the Trigger with. Changing this forces a new resource. func (o TriggerCustomEventOutput) DataFactoryId() pulumi.StringOutput { return o.ApplyT(func(v *TriggerCustomEvent) pulumi.StringOutput { return v.DataFactoryId }).(pulumi.StringOutput) } // The description for the Data Factory Custom Event Trigger. func (o TriggerCustomEventOutput) Description() pulumi.StringPtrOutput { return o.ApplyT(func(v *TriggerCustomEvent) pulumi.StringPtrOutput { return v.Description }).(pulumi.StringPtrOutput) } // The ID of Event Grid Topic in which event will be listened. Changing this forces a new resource. func (o TriggerCustomEventOutput) EventgridTopicId() pulumi.StringOutput { return o.ApplyT(func(v *TriggerCustomEvent) pulumi.StringOutput { return v.EventgridTopicId }).(pulumi.StringOutput) } // List of events that will fire this trigger. At least one event must be specified. func (o TriggerCustomEventOutput) Events() pulumi.StringArrayOutput { return o.ApplyT(func(v *TriggerCustomEvent) pulumi.StringArrayOutput { return v.Events }).(pulumi.StringArrayOutput) } // Specifies the name of the Data Factory Custom Event Trigger. Changing this forces a new resource to be created. func (o TriggerCustomEventOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *TriggerCustomEvent) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // One or more `pipeline` blocks as defined below. func (o TriggerCustomEventOutput) Pipelines() TriggerCustomEventPipelineArrayOutput { return o.ApplyT(func(v *TriggerCustomEvent) TriggerCustomEventPipelineArrayOutput { return v.Pipelines }).(TriggerCustomEventPipelineArrayOutput) } // The pattern that event subject starts with for trigger to fire. func (o TriggerCustomEventOutput) SubjectBeginsWith() pulumi.StringPtrOutput { return o.ApplyT(func(v *TriggerCustomEvent) pulumi.StringPtrOutput { return v.SubjectBeginsWith }).(pulumi.StringPtrOutput) } // The pattern that event subject ends with for trigger to fire. func (o TriggerCustomEventOutput) SubjectEndsWith() pulumi.StringPtrOutput { return o.ApplyT(func(v *TriggerCustomEvent) pulumi.StringPtrOutput { return v.SubjectEndsWith }).(pulumi.StringPtrOutput) } type TriggerCustomEventArrayOutput struct{ *pulumi.OutputState } func (TriggerCustomEventArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*TriggerCustomEvent)(nil)).Elem() } func (o TriggerCustomEventArrayOutput) ToTriggerCustomEventArrayOutput() TriggerCustomEventArrayOutput { return o } func (o TriggerCustomEventArrayOutput) ToTriggerCustomEventArrayOutputWithContext(ctx context.Context) TriggerCustomEventArrayOutput { return o } func (o TriggerCustomEventArrayOutput) Index(i pulumi.IntInput) TriggerCustomEventOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *TriggerCustomEvent { return vs[0].([]*TriggerCustomEvent)[vs[1].(int)] }).(TriggerCustomEventOutput) } type TriggerCustomEventMapOutput struct{ *pulumi.OutputState } func (TriggerCustomEventMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*TriggerCustomEvent)(nil)).Elem() } func (o TriggerCustomEventMapOutput) ToTriggerCustomEventMapOutput() TriggerCustomEventMapOutput { return o } func (o TriggerCustomEventMapOutput) ToTriggerCustomEventMapOutputWithContext(ctx context.Context) TriggerCustomEventMapOutput { return o } func (o TriggerCustomEventMapOutput) MapIndex(k pulumi.StringInput) TriggerCustomEventOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *TriggerCustomEvent { return vs[0].(map[string]*TriggerCustomEvent)[vs[1].(string)] }).(TriggerCustomEventOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*TriggerCustomEventInput)(nil)).Elem(), &TriggerCustomEvent{}) pulumi.RegisterInputType(reflect.TypeOf((*TriggerCustomEventArrayInput)(nil)).Elem(), TriggerCustomEventArray{}) pulumi.RegisterInputType(reflect.TypeOf((*TriggerCustomEventMapInput)(nil)).Elem(), TriggerCustomEventMap{}) pulumi.RegisterOutputType(TriggerCustomEventOutput{}) pulumi.RegisterOutputType(TriggerCustomEventArrayOutput{}) pulumi.RegisterOutputType(TriggerCustomEventMapOutput{}) }
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/datafactory/linkedServiceCosmosDbMongoApi.go
sdk/go/azure/datafactory/linkedServiceCosmosDbMongoApi.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 datafactory import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a Linked Service (connection) between a CosmosDB and Azure Data Factory using Mongo API. // // > **Note:** All arguments including the client secret will be stored in the raw state as plain-text. [Read more about sensitive data in state](https://www.terraform.io/docs/state/sensitive-data.html). // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/datafactory" // "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 // } // exampleFactory, err := datafactory.NewFactory(ctx, "example", &datafactory.FactoryArgs{ // Name: pulumi.String("example"), // Location: example.Location, // ResourceGroupName: example.Name, // }) // if err != nil { // return err // } // _, err = datafactory.NewLinkedServiceCosmosDbMongoApi(ctx, "example", &datafactory.LinkedServiceCosmosDbMongoApiArgs{ // Name: pulumi.String("example"), // DataFactoryId: exampleFactory.ID(), // ConnectionString: pulumi.String("mongodb://testinstance:testkey@testinstance.documents.azure.com:10255/?ssl=true"), // Database: pulumi.String("foo"), // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## Import // // Data Factory Linked Service's can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:datafactory/linkedServiceCosmosDbMongoApi:LinkedServiceCosmosDbMongoApi example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example/providers/Microsoft.DataFactory/factories/example/linkedservices/example // ``` type LinkedServiceCosmosDbMongoApi struct { pulumi.CustomResourceState // A map of additional properties to associate with the Data Factory Linked Service. // // The following supported arguments are specific to CosmosDB Linked Service: AdditionalProperties pulumi.StringMapOutput `pulumi:"additionalProperties"` // List of tags that can be used for describing the Data Factory Linked Service. Annotations pulumi.StringArrayOutput `pulumi:"annotations"` // The connection string. ConnectionString pulumi.StringPtrOutput `pulumi:"connectionString"` // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId pulumi.StringOutput `pulumi:"dataFactoryId"` // The name of the database. Database pulumi.StringPtrOutput `pulumi:"database"` // The description for the Data Factory Linked Service. Description pulumi.StringPtrOutput `pulumi:"description"` // The integration runtime reference to associate with the Data Factory Linked Service. IntegrationRuntimeName pulumi.StringPtrOutput `pulumi:"integrationRuntimeName"` // Specifies the name of the Data Factory Linked Service. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringOutput `pulumi:"name"` // A map of parameters to associate with the Data Factory Linked Service. Parameters pulumi.StringMapOutput `pulumi:"parameters"` // Whether API server version is 3.2 or higher. Defaults to `false`. ServerVersionIs32OrHigher pulumi.BoolPtrOutput `pulumi:"serverVersionIs32OrHigher"` } // NewLinkedServiceCosmosDbMongoApi registers a new resource with the given unique name, arguments, and options. func NewLinkedServiceCosmosDbMongoApi(ctx *pulumi.Context, name string, args *LinkedServiceCosmosDbMongoApiArgs, opts ...pulumi.ResourceOption) (*LinkedServiceCosmosDbMongoApi, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.DataFactoryId == nil { return nil, errors.New("invalid value for required argument 'DataFactoryId'") } if args.ConnectionString != nil { args.ConnectionString = pulumi.ToSecret(args.ConnectionString).(pulumi.StringPtrInput) } secrets := pulumi.AdditionalSecretOutputs([]string{ "connectionString", }) opts = append(opts, secrets) opts = internal.PkgResourceDefaultOpts(opts) var resource LinkedServiceCosmosDbMongoApi err := ctx.RegisterResource("azure:datafactory/linkedServiceCosmosDbMongoApi:LinkedServiceCosmosDbMongoApi", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetLinkedServiceCosmosDbMongoApi gets an existing LinkedServiceCosmosDbMongoApi 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 GetLinkedServiceCosmosDbMongoApi(ctx *pulumi.Context, name string, id pulumi.IDInput, state *LinkedServiceCosmosDbMongoApiState, opts ...pulumi.ResourceOption) (*LinkedServiceCosmosDbMongoApi, error) { var resource LinkedServiceCosmosDbMongoApi err := ctx.ReadResource("azure:datafactory/linkedServiceCosmosDbMongoApi:LinkedServiceCosmosDbMongoApi", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering LinkedServiceCosmosDbMongoApi resources. type linkedServiceCosmosDbMongoApiState struct { // A map of additional properties to associate with the Data Factory Linked Service. // // The following supported arguments are specific to CosmosDB Linked Service: AdditionalProperties map[string]string `pulumi:"additionalProperties"` // List of tags that can be used for describing the Data Factory Linked Service. Annotations []string `pulumi:"annotations"` // The connection string. ConnectionString *string `pulumi:"connectionString"` // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId *string `pulumi:"dataFactoryId"` // The name of the database. Database *string `pulumi:"database"` // The description for the Data Factory Linked Service. Description *string `pulumi:"description"` // The integration runtime reference to associate with the Data Factory Linked Service. IntegrationRuntimeName *string `pulumi:"integrationRuntimeName"` // Specifies the name of the Data Factory Linked Service. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name *string `pulumi:"name"` // A map of parameters to associate with the Data Factory Linked Service. Parameters map[string]string `pulumi:"parameters"` // Whether API server version is 3.2 or higher. Defaults to `false`. ServerVersionIs32OrHigher *bool `pulumi:"serverVersionIs32OrHigher"` } type LinkedServiceCosmosDbMongoApiState struct { // A map of additional properties to associate with the Data Factory Linked Service. // // The following supported arguments are specific to CosmosDB Linked Service: AdditionalProperties pulumi.StringMapInput // List of tags that can be used for describing the Data Factory Linked Service. Annotations pulumi.StringArrayInput // The connection string. ConnectionString pulumi.StringPtrInput // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId pulumi.StringPtrInput // The name of the database. Database pulumi.StringPtrInput // The description for the Data Factory Linked Service. Description pulumi.StringPtrInput // The integration runtime reference to associate with the Data Factory Linked Service. IntegrationRuntimeName pulumi.StringPtrInput // Specifies the name of the Data Factory Linked Service. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringPtrInput // A map of parameters to associate with the Data Factory Linked Service. Parameters pulumi.StringMapInput // Whether API server version is 3.2 or higher. Defaults to `false`. ServerVersionIs32OrHigher pulumi.BoolPtrInput } func (LinkedServiceCosmosDbMongoApiState) ElementType() reflect.Type { return reflect.TypeOf((*linkedServiceCosmosDbMongoApiState)(nil)).Elem() } type linkedServiceCosmosDbMongoApiArgs struct { // A map of additional properties to associate with the Data Factory Linked Service. // // The following supported arguments are specific to CosmosDB Linked Service: AdditionalProperties map[string]string `pulumi:"additionalProperties"` // List of tags that can be used for describing the Data Factory Linked Service. Annotations []string `pulumi:"annotations"` // The connection string. ConnectionString *string `pulumi:"connectionString"` // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId string `pulumi:"dataFactoryId"` // The name of the database. Database *string `pulumi:"database"` // The description for the Data Factory Linked Service. Description *string `pulumi:"description"` // The integration runtime reference to associate with the Data Factory Linked Service. IntegrationRuntimeName *string `pulumi:"integrationRuntimeName"` // Specifies the name of the Data Factory Linked Service. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name *string `pulumi:"name"` // A map of parameters to associate with the Data Factory Linked Service. Parameters map[string]string `pulumi:"parameters"` // Whether API server version is 3.2 or higher. Defaults to `false`. ServerVersionIs32OrHigher *bool `pulumi:"serverVersionIs32OrHigher"` } // The set of arguments for constructing a LinkedServiceCosmosDbMongoApi resource. type LinkedServiceCosmosDbMongoApiArgs struct { // A map of additional properties to associate with the Data Factory Linked Service. // // The following supported arguments are specific to CosmosDB Linked Service: AdditionalProperties pulumi.StringMapInput // List of tags that can be used for describing the Data Factory Linked Service. Annotations pulumi.StringArrayInput // The connection string. ConnectionString pulumi.StringPtrInput // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId pulumi.StringInput // The name of the database. Database pulumi.StringPtrInput // The description for the Data Factory Linked Service. Description pulumi.StringPtrInput // The integration runtime reference to associate with the Data Factory Linked Service. IntegrationRuntimeName pulumi.StringPtrInput // Specifies the name of the Data Factory Linked Service. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringPtrInput // A map of parameters to associate with the Data Factory Linked Service. Parameters pulumi.StringMapInput // Whether API server version is 3.2 or higher. Defaults to `false`. ServerVersionIs32OrHigher pulumi.BoolPtrInput } func (LinkedServiceCosmosDbMongoApiArgs) ElementType() reflect.Type { return reflect.TypeOf((*linkedServiceCosmosDbMongoApiArgs)(nil)).Elem() } type LinkedServiceCosmosDbMongoApiInput interface { pulumi.Input ToLinkedServiceCosmosDbMongoApiOutput() LinkedServiceCosmosDbMongoApiOutput ToLinkedServiceCosmosDbMongoApiOutputWithContext(ctx context.Context) LinkedServiceCosmosDbMongoApiOutput } func (*LinkedServiceCosmosDbMongoApi) ElementType() reflect.Type { return reflect.TypeOf((**LinkedServiceCosmosDbMongoApi)(nil)).Elem() } func (i *LinkedServiceCosmosDbMongoApi) ToLinkedServiceCosmosDbMongoApiOutput() LinkedServiceCosmosDbMongoApiOutput { return i.ToLinkedServiceCosmosDbMongoApiOutputWithContext(context.Background()) } func (i *LinkedServiceCosmosDbMongoApi) ToLinkedServiceCosmosDbMongoApiOutputWithContext(ctx context.Context) LinkedServiceCosmosDbMongoApiOutput { return pulumi.ToOutputWithContext(ctx, i).(LinkedServiceCosmosDbMongoApiOutput) } // LinkedServiceCosmosDbMongoApiArrayInput is an input type that accepts LinkedServiceCosmosDbMongoApiArray and LinkedServiceCosmosDbMongoApiArrayOutput values. // You can construct a concrete instance of `LinkedServiceCosmosDbMongoApiArrayInput` via: // // LinkedServiceCosmosDbMongoApiArray{ LinkedServiceCosmosDbMongoApiArgs{...} } type LinkedServiceCosmosDbMongoApiArrayInput interface { pulumi.Input ToLinkedServiceCosmosDbMongoApiArrayOutput() LinkedServiceCosmosDbMongoApiArrayOutput ToLinkedServiceCosmosDbMongoApiArrayOutputWithContext(context.Context) LinkedServiceCosmosDbMongoApiArrayOutput } type LinkedServiceCosmosDbMongoApiArray []LinkedServiceCosmosDbMongoApiInput func (LinkedServiceCosmosDbMongoApiArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*LinkedServiceCosmosDbMongoApi)(nil)).Elem() } func (i LinkedServiceCosmosDbMongoApiArray) ToLinkedServiceCosmosDbMongoApiArrayOutput() LinkedServiceCosmosDbMongoApiArrayOutput { return i.ToLinkedServiceCosmosDbMongoApiArrayOutputWithContext(context.Background()) } func (i LinkedServiceCosmosDbMongoApiArray) ToLinkedServiceCosmosDbMongoApiArrayOutputWithContext(ctx context.Context) LinkedServiceCosmosDbMongoApiArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(LinkedServiceCosmosDbMongoApiArrayOutput) } // LinkedServiceCosmosDbMongoApiMapInput is an input type that accepts LinkedServiceCosmosDbMongoApiMap and LinkedServiceCosmosDbMongoApiMapOutput values. // You can construct a concrete instance of `LinkedServiceCosmosDbMongoApiMapInput` via: // // LinkedServiceCosmosDbMongoApiMap{ "key": LinkedServiceCosmosDbMongoApiArgs{...} } type LinkedServiceCosmosDbMongoApiMapInput interface { pulumi.Input ToLinkedServiceCosmosDbMongoApiMapOutput() LinkedServiceCosmosDbMongoApiMapOutput ToLinkedServiceCosmosDbMongoApiMapOutputWithContext(context.Context) LinkedServiceCosmosDbMongoApiMapOutput } type LinkedServiceCosmosDbMongoApiMap map[string]LinkedServiceCosmosDbMongoApiInput func (LinkedServiceCosmosDbMongoApiMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*LinkedServiceCosmosDbMongoApi)(nil)).Elem() } func (i LinkedServiceCosmosDbMongoApiMap) ToLinkedServiceCosmosDbMongoApiMapOutput() LinkedServiceCosmosDbMongoApiMapOutput { return i.ToLinkedServiceCosmosDbMongoApiMapOutputWithContext(context.Background()) } func (i LinkedServiceCosmosDbMongoApiMap) ToLinkedServiceCosmosDbMongoApiMapOutputWithContext(ctx context.Context) LinkedServiceCosmosDbMongoApiMapOutput { return pulumi.ToOutputWithContext(ctx, i).(LinkedServiceCosmosDbMongoApiMapOutput) } type LinkedServiceCosmosDbMongoApiOutput struct{ *pulumi.OutputState } func (LinkedServiceCosmosDbMongoApiOutput) ElementType() reflect.Type { return reflect.TypeOf((**LinkedServiceCosmosDbMongoApi)(nil)).Elem() } func (o LinkedServiceCosmosDbMongoApiOutput) ToLinkedServiceCosmosDbMongoApiOutput() LinkedServiceCosmosDbMongoApiOutput { return o } func (o LinkedServiceCosmosDbMongoApiOutput) ToLinkedServiceCosmosDbMongoApiOutputWithContext(ctx context.Context) LinkedServiceCosmosDbMongoApiOutput { return o } // A map of additional properties to associate with the Data Factory Linked Service. // // The following supported arguments are specific to CosmosDB Linked Service: func (o LinkedServiceCosmosDbMongoApiOutput) AdditionalProperties() pulumi.StringMapOutput { return o.ApplyT(func(v *LinkedServiceCosmosDbMongoApi) pulumi.StringMapOutput { return v.AdditionalProperties }).(pulumi.StringMapOutput) } // List of tags that can be used for describing the Data Factory Linked Service. func (o LinkedServiceCosmosDbMongoApiOutput) Annotations() pulumi.StringArrayOutput { return o.ApplyT(func(v *LinkedServiceCosmosDbMongoApi) pulumi.StringArrayOutput { return v.Annotations }).(pulumi.StringArrayOutput) } // The connection string. func (o LinkedServiceCosmosDbMongoApiOutput) ConnectionString() pulumi.StringPtrOutput { return o.ApplyT(func(v *LinkedServiceCosmosDbMongoApi) pulumi.StringPtrOutput { return v.ConnectionString }).(pulumi.StringPtrOutput) } // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. func (o LinkedServiceCosmosDbMongoApiOutput) DataFactoryId() pulumi.StringOutput { return o.ApplyT(func(v *LinkedServiceCosmosDbMongoApi) pulumi.StringOutput { return v.DataFactoryId }).(pulumi.StringOutput) } // The name of the database. func (o LinkedServiceCosmosDbMongoApiOutput) Database() pulumi.StringPtrOutput { return o.ApplyT(func(v *LinkedServiceCosmosDbMongoApi) pulumi.StringPtrOutput { return v.Database }).(pulumi.StringPtrOutput) } // The description for the Data Factory Linked Service. func (o LinkedServiceCosmosDbMongoApiOutput) Description() pulumi.StringPtrOutput { return o.ApplyT(func(v *LinkedServiceCosmosDbMongoApi) pulumi.StringPtrOutput { return v.Description }).(pulumi.StringPtrOutput) } // The integration runtime reference to associate with the Data Factory Linked Service. func (o LinkedServiceCosmosDbMongoApiOutput) IntegrationRuntimeName() pulumi.StringPtrOutput { return o.ApplyT(func(v *LinkedServiceCosmosDbMongoApi) pulumi.StringPtrOutput { return v.IntegrationRuntimeName }).(pulumi.StringPtrOutput) } // Specifies the name of the Data Factory Linked Service. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. func (o LinkedServiceCosmosDbMongoApiOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *LinkedServiceCosmosDbMongoApi) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // A map of parameters to associate with the Data Factory Linked Service. func (o LinkedServiceCosmosDbMongoApiOutput) Parameters() pulumi.StringMapOutput { return o.ApplyT(func(v *LinkedServiceCosmosDbMongoApi) pulumi.StringMapOutput { return v.Parameters }).(pulumi.StringMapOutput) } // Whether API server version is 3.2 or higher. Defaults to `false`. func (o LinkedServiceCosmosDbMongoApiOutput) ServerVersionIs32OrHigher() pulumi.BoolPtrOutput { return o.ApplyT(func(v *LinkedServiceCosmosDbMongoApi) pulumi.BoolPtrOutput { return v.ServerVersionIs32OrHigher }).(pulumi.BoolPtrOutput) } type LinkedServiceCosmosDbMongoApiArrayOutput struct{ *pulumi.OutputState } func (LinkedServiceCosmosDbMongoApiArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*LinkedServiceCosmosDbMongoApi)(nil)).Elem() } func (o LinkedServiceCosmosDbMongoApiArrayOutput) ToLinkedServiceCosmosDbMongoApiArrayOutput() LinkedServiceCosmosDbMongoApiArrayOutput { return o } func (o LinkedServiceCosmosDbMongoApiArrayOutput) ToLinkedServiceCosmosDbMongoApiArrayOutputWithContext(ctx context.Context) LinkedServiceCosmosDbMongoApiArrayOutput { return o } func (o LinkedServiceCosmosDbMongoApiArrayOutput) Index(i pulumi.IntInput) LinkedServiceCosmosDbMongoApiOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *LinkedServiceCosmosDbMongoApi { return vs[0].([]*LinkedServiceCosmosDbMongoApi)[vs[1].(int)] }).(LinkedServiceCosmosDbMongoApiOutput) } type LinkedServiceCosmosDbMongoApiMapOutput struct{ *pulumi.OutputState } func (LinkedServiceCosmosDbMongoApiMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*LinkedServiceCosmosDbMongoApi)(nil)).Elem() } func (o LinkedServiceCosmosDbMongoApiMapOutput) ToLinkedServiceCosmosDbMongoApiMapOutput() LinkedServiceCosmosDbMongoApiMapOutput { return o } func (o LinkedServiceCosmosDbMongoApiMapOutput) ToLinkedServiceCosmosDbMongoApiMapOutputWithContext(ctx context.Context) LinkedServiceCosmosDbMongoApiMapOutput { return o } func (o LinkedServiceCosmosDbMongoApiMapOutput) MapIndex(k pulumi.StringInput) LinkedServiceCosmosDbMongoApiOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *LinkedServiceCosmosDbMongoApi { return vs[0].(map[string]*LinkedServiceCosmosDbMongoApi)[vs[1].(string)] }).(LinkedServiceCosmosDbMongoApiOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*LinkedServiceCosmosDbMongoApiInput)(nil)).Elem(), &LinkedServiceCosmosDbMongoApi{}) pulumi.RegisterInputType(reflect.TypeOf((*LinkedServiceCosmosDbMongoApiArrayInput)(nil)).Elem(), LinkedServiceCosmosDbMongoApiArray{}) pulumi.RegisterInputType(reflect.TypeOf((*LinkedServiceCosmosDbMongoApiMapInput)(nil)).Elem(), LinkedServiceCosmosDbMongoApiMap{}) pulumi.RegisterOutputType(LinkedServiceCosmosDbMongoApiOutput{}) pulumi.RegisterOutputType(LinkedServiceCosmosDbMongoApiArrayOutput{}) pulumi.RegisterOutputType(LinkedServiceCosmosDbMongoApiMapOutput{}) }
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/datafactory/datasetSnowflake.go
sdk/go/azure/datafactory/datasetSnowflake.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 datafactory import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a Snowflake Dataset inside an Azure Data Factory. // // ## 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/datafactory" // "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 // } // exampleFactory, err := datafactory.NewFactory(ctx, "example", &datafactory.FactoryArgs{ // Name: pulumi.String("example"), // Location: example.Location, // ResourceGroupName: example.Name, // }) // if err != nil { // return err // } // exampleLinkedServiceSnowflake, err := datafactory.NewLinkedServiceSnowflake(ctx, "example", &datafactory.LinkedServiceSnowflakeArgs{ // Name: pulumi.String("example"), // DataFactoryId: exampleFactory.ID(), // ConnectionString: pulumi.String("jdbc:snowflake://account.region.snowflakecomputing.com/?user=user&db=db&warehouse=wh"), // }) // if err != nil { // return err // } // _, err = datafactory.NewDatasetSnowflake(ctx, "example", &datafactory.DatasetSnowflakeArgs{ // Name: pulumi.String("example"), // DataFactoryId: exampleFactory.ID(), // LinkedServiceName: exampleLinkedServiceSnowflake.Name, // SchemaName: pulumi.String("foo_schema"), // TableName: pulumi.String("foo_table"), // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## Import // // Data Factory Snowflake Datasets can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:datafactory/datasetSnowflake:DatasetSnowflake example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example/providers/Microsoft.DataFactory/factories/example/datasets/example // ``` type DatasetSnowflake struct { pulumi.CustomResourceState // A map of additional properties to associate with the Data Factory Dataset Snowflake. AdditionalProperties pulumi.StringMapOutput `pulumi:"additionalProperties"` // List of tags that can be used for describing the Data Factory Dataset Snowflake. Annotations pulumi.StringArrayOutput `pulumi:"annotations"` // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId pulumi.StringOutput `pulumi:"dataFactoryId"` // The description for the Data Factory Dataset Snowflake. Description pulumi.StringPtrOutput `pulumi:"description"` // The folder that this Dataset is in. If not specified, the Dataset will appear at the root level. Folder pulumi.StringPtrOutput `pulumi:"folder"` // The Data Factory Linked Service name in which to associate the Dataset with. LinkedServiceName pulumi.StringOutput `pulumi:"linkedServiceName"` // Specifies the name of the Data Factory Dataset Snowflake. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringOutput `pulumi:"name"` // A map of parameters to associate with the Data Factory Dataset Snowflake. Parameters pulumi.StringMapOutput `pulumi:"parameters"` // A `schemaColumn` block as defined below. SchemaColumns DatasetSnowflakeSchemaColumnArrayOutput `pulumi:"schemaColumns"` // The schema name of the Data Factory Dataset Snowflake. SchemaName pulumi.StringPtrOutput `pulumi:"schemaName"` // The table name of the Data Factory Dataset Snowflake. TableName pulumi.StringPtrOutput `pulumi:"tableName"` } // NewDatasetSnowflake registers a new resource with the given unique name, arguments, and options. func NewDatasetSnowflake(ctx *pulumi.Context, name string, args *DatasetSnowflakeArgs, opts ...pulumi.ResourceOption) (*DatasetSnowflake, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.DataFactoryId == nil { return nil, errors.New("invalid value for required argument 'DataFactoryId'") } if args.LinkedServiceName == nil { return nil, errors.New("invalid value for required argument 'LinkedServiceName'") } opts = internal.PkgResourceDefaultOpts(opts) var resource DatasetSnowflake err := ctx.RegisterResource("azure:datafactory/datasetSnowflake:DatasetSnowflake", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetDatasetSnowflake gets an existing DatasetSnowflake 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 GetDatasetSnowflake(ctx *pulumi.Context, name string, id pulumi.IDInput, state *DatasetSnowflakeState, opts ...pulumi.ResourceOption) (*DatasetSnowflake, error) { var resource DatasetSnowflake err := ctx.ReadResource("azure:datafactory/datasetSnowflake:DatasetSnowflake", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering DatasetSnowflake resources. type datasetSnowflakeState struct { // A map of additional properties to associate with the Data Factory Dataset Snowflake. AdditionalProperties map[string]string `pulumi:"additionalProperties"` // List of tags that can be used for describing the Data Factory Dataset Snowflake. Annotations []string `pulumi:"annotations"` // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId *string `pulumi:"dataFactoryId"` // The description for the Data Factory Dataset Snowflake. Description *string `pulumi:"description"` // The folder that this Dataset is in. If not specified, the Dataset will appear at the root level. Folder *string `pulumi:"folder"` // The Data Factory Linked Service name in which to associate the Dataset with. LinkedServiceName *string `pulumi:"linkedServiceName"` // Specifies the name of the Data Factory Dataset Snowflake. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name *string `pulumi:"name"` // A map of parameters to associate with the Data Factory Dataset Snowflake. Parameters map[string]string `pulumi:"parameters"` // A `schemaColumn` block as defined below. SchemaColumns []DatasetSnowflakeSchemaColumn `pulumi:"schemaColumns"` // The schema name of the Data Factory Dataset Snowflake. SchemaName *string `pulumi:"schemaName"` // The table name of the Data Factory Dataset Snowflake. TableName *string `pulumi:"tableName"` } type DatasetSnowflakeState struct { // A map of additional properties to associate with the Data Factory Dataset Snowflake. AdditionalProperties pulumi.StringMapInput // List of tags that can be used for describing the Data Factory Dataset Snowflake. Annotations pulumi.StringArrayInput // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId pulumi.StringPtrInput // The description for the Data Factory Dataset Snowflake. Description pulumi.StringPtrInput // The folder that this Dataset is in. If not specified, the Dataset will appear at the root level. Folder pulumi.StringPtrInput // The Data Factory Linked Service name in which to associate the Dataset with. LinkedServiceName pulumi.StringPtrInput // Specifies the name of the Data Factory Dataset Snowflake. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringPtrInput // A map of parameters to associate with the Data Factory Dataset Snowflake. Parameters pulumi.StringMapInput // A `schemaColumn` block as defined below. SchemaColumns DatasetSnowflakeSchemaColumnArrayInput // The schema name of the Data Factory Dataset Snowflake. SchemaName pulumi.StringPtrInput // The table name of the Data Factory Dataset Snowflake. TableName pulumi.StringPtrInput } func (DatasetSnowflakeState) ElementType() reflect.Type { return reflect.TypeOf((*datasetSnowflakeState)(nil)).Elem() } type datasetSnowflakeArgs struct { // A map of additional properties to associate with the Data Factory Dataset Snowflake. AdditionalProperties map[string]string `pulumi:"additionalProperties"` // List of tags that can be used for describing the Data Factory Dataset Snowflake. Annotations []string `pulumi:"annotations"` // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId string `pulumi:"dataFactoryId"` // The description for the Data Factory Dataset Snowflake. Description *string `pulumi:"description"` // The folder that this Dataset is in. If not specified, the Dataset will appear at the root level. Folder *string `pulumi:"folder"` // The Data Factory Linked Service name in which to associate the Dataset with. LinkedServiceName string `pulumi:"linkedServiceName"` // Specifies the name of the Data Factory Dataset Snowflake. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name *string `pulumi:"name"` // A map of parameters to associate with the Data Factory Dataset Snowflake. Parameters map[string]string `pulumi:"parameters"` // A `schemaColumn` block as defined below. SchemaColumns []DatasetSnowflakeSchemaColumn `pulumi:"schemaColumns"` // The schema name of the Data Factory Dataset Snowflake. SchemaName *string `pulumi:"schemaName"` // The table name of the Data Factory Dataset Snowflake. TableName *string `pulumi:"tableName"` } // The set of arguments for constructing a DatasetSnowflake resource. type DatasetSnowflakeArgs struct { // A map of additional properties to associate with the Data Factory Dataset Snowflake. AdditionalProperties pulumi.StringMapInput // List of tags that can be used for describing the Data Factory Dataset Snowflake. Annotations pulumi.StringArrayInput // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId pulumi.StringInput // The description for the Data Factory Dataset Snowflake. Description pulumi.StringPtrInput // The folder that this Dataset is in. If not specified, the Dataset will appear at the root level. Folder pulumi.StringPtrInput // The Data Factory Linked Service name in which to associate the Dataset with. LinkedServiceName pulumi.StringInput // Specifies the name of the Data Factory Dataset Snowflake. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringPtrInput // A map of parameters to associate with the Data Factory Dataset Snowflake. Parameters pulumi.StringMapInput // A `schemaColumn` block as defined below. SchemaColumns DatasetSnowflakeSchemaColumnArrayInput // The schema name of the Data Factory Dataset Snowflake. SchemaName pulumi.StringPtrInput // The table name of the Data Factory Dataset Snowflake. TableName pulumi.StringPtrInput } func (DatasetSnowflakeArgs) ElementType() reflect.Type { return reflect.TypeOf((*datasetSnowflakeArgs)(nil)).Elem() } type DatasetSnowflakeInput interface { pulumi.Input ToDatasetSnowflakeOutput() DatasetSnowflakeOutput ToDatasetSnowflakeOutputWithContext(ctx context.Context) DatasetSnowflakeOutput } func (*DatasetSnowflake) ElementType() reflect.Type { return reflect.TypeOf((**DatasetSnowflake)(nil)).Elem() } func (i *DatasetSnowflake) ToDatasetSnowflakeOutput() DatasetSnowflakeOutput { return i.ToDatasetSnowflakeOutputWithContext(context.Background()) } func (i *DatasetSnowflake) ToDatasetSnowflakeOutputWithContext(ctx context.Context) DatasetSnowflakeOutput { return pulumi.ToOutputWithContext(ctx, i).(DatasetSnowflakeOutput) } // DatasetSnowflakeArrayInput is an input type that accepts DatasetSnowflakeArray and DatasetSnowflakeArrayOutput values. // You can construct a concrete instance of `DatasetSnowflakeArrayInput` via: // // DatasetSnowflakeArray{ DatasetSnowflakeArgs{...} } type DatasetSnowflakeArrayInput interface { pulumi.Input ToDatasetSnowflakeArrayOutput() DatasetSnowflakeArrayOutput ToDatasetSnowflakeArrayOutputWithContext(context.Context) DatasetSnowflakeArrayOutput } type DatasetSnowflakeArray []DatasetSnowflakeInput func (DatasetSnowflakeArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*DatasetSnowflake)(nil)).Elem() } func (i DatasetSnowflakeArray) ToDatasetSnowflakeArrayOutput() DatasetSnowflakeArrayOutput { return i.ToDatasetSnowflakeArrayOutputWithContext(context.Background()) } func (i DatasetSnowflakeArray) ToDatasetSnowflakeArrayOutputWithContext(ctx context.Context) DatasetSnowflakeArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(DatasetSnowflakeArrayOutput) } // DatasetSnowflakeMapInput is an input type that accepts DatasetSnowflakeMap and DatasetSnowflakeMapOutput values. // You can construct a concrete instance of `DatasetSnowflakeMapInput` via: // // DatasetSnowflakeMap{ "key": DatasetSnowflakeArgs{...} } type DatasetSnowflakeMapInput interface { pulumi.Input ToDatasetSnowflakeMapOutput() DatasetSnowflakeMapOutput ToDatasetSnowflakeMapOutputWithContext(context.Context) DatasetSnowflakeMapOutput } type DatasetSnowflakeMap map[string]DatasetSnowflakeInput func (DatasetSnowflakeMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*DatasetSnowflake)(nil)).Elem() } func (i DatasetSnowflakeMap) ToDatasetSnowflakeMapOutput() DatasetSnowflakeMapOutput { return i.ToDatasetSnowflakeMapOutputWithContext(context.Background()) } func (i DatasetSnowflakeMap) ToDatasetSnowflakeMapOutputWithContext(ctx context.Context) DatasetSnowflakeMapOutput { return pulumi.ToOutputWithContext(ctx, i).(DatasetSnowflakeMapOutput) } type DatasetSnowflakeOutput struct{ *pulumi.OutputState } func (DatasetSnowflakeOutput) ElementType() reflect.Type { return reflect.TypeOf((**DatasetSnowflake)(nil)).Elem() } func (o DatasetSnowflakeOutput) ToDatasetSnowflakeOutput() DatasetSnowflakeOutput { return o } func (o DatasetSnowflakeOutput) ToDatasetSnowflakeOutputWithContext(ctx context.Context) DatasetSnowflakeOutput { return o } // A map of additional properties to associate with the Data Factory Dataset Snowflake. func (o DatasetSnowflakeOutput) AdditionalProperties() pulumi.StringMapOutput { return o.ApplyT(func(v *DatasetSnowflake) pulumi.StringMapOutput { return v.AdditionalProperties }).(pulumi.StringMapOutput) } // List of tags that can be used for describing the Data Factory Dataset Snowflake. func (o DatasetSnowflakeOutput) Annotations() pulumi.StringArrayOutput { return o.ApplyT(func(v *DatasetSnowflake) pulumi.StringArrayOutput { return v.Annotations }).(pulumi.StringArrayOutput) } // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. func (o DatasetSnowflakeOutput) DataFactoryId() pulumi.StringOutput { return o.ApplyT(func(v *DatasetSnowflake) pulumi.StringOutput { return v.DataFactoryId }).(pulumi.StringOutput) } // The description for the Data Factory Dataset Snowflake. func (o DatasetSnowflakeOutput) Description() pulumi.StringPtrOutput { return o.ApplyT(func(v *DatasetSnowflake) pulumi.StringPtrOutput { return v.Description }).(pulumi.StringPtrOutput) } // The folder that this Dataset is in. If not specified, the Dataset will appear at the root level. func (o DatasetSnowflakeOutput) Folder() pulumi.StringPtrOutput { return o.ApplyT(func(v *DatasetSnowflake) pulumi.StringPtrOutput { return v.Folder }).(pulumi.StringPtrOutput) } // The Data Factory Linked Service name in which to associate the Dataset with. func (o DatasetSnowflakeOutput) LinkedServiceName() pulumi.StringOutput { return o.ApplyT(func(v *DatasetSnowflake) pulumi.StringOutput { return v.LinkedServiceName }).(pulumi.StringOutput) } // Specifies the name of the Data Factory Dataset Snowflake. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. func (o DatasetSnowflakeOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *DatasetSnowflake) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // A map of parameters to associate with the Data Factory Dataset Snowflake. func (o DatasetSnowflakeOutput) Parameters() pulumi.StringMapOutput { return o.ApplyT(func(v *DatasetSnowflake) pulumi.StringMapOutput { return v.Parameters }).(pulumi.StringMapOutput) } // A `schemaColumn` block as defined below. func (o DatasetSnowflakeOutput) SchemaColumns() DatasetSnowflakeSchemaColumnArrayOutput { return o.ApplyT(func(v *DatasetSnowflake) DatasetSnowflakeSchemaColumnArrayOutput { return v.SchemaColumns }).(DatasetSnowflakeSchemaColumnArrayOutput) } // The schema name of the Data Factory Dataset Snowflake. func (o DatasetSnowflakeOutput) SchemaName() pulumi.StringPtrOutput { return o.ApplyT(func(v *DatasetSnowflake) pulumi.StringPtrOutput { return v.SchemaName }).(pulumi.StringPtrOutput) } // The table name of the Data Factory Dataset Snowflake. func (o DatasetSnowflakeOutput) TableName() pulumi.StringPtrOutput { return o.ApplyT(func(v *DatasetSnowflake) pulumi.StringPtrOutput { return v.TableName }).(pulumi.StringPtrOutput) } type DatasetSnowflakeArrayOutput struct{ *pulumi.OutputState } func (DatasetSnowflakeArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*DatasetSnowflake)(nil)).Elem() } func (o DatasetSnowflakeArrayOutput) ToDatasetSnowflakeArrayOutput() DatasetSnowflakeArrayOutput { return o } func (o DatasetSnowflakeArrayOutput) ToDatasetSnowflakeArrayOutputWithContext(ctx context.Context) DatasetSnowflakeArrayOutput { return o } func (o DatasetSnowflakeArrayOutput) Index(i pulumi.IntInput) DatasetSnowflakeOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *DatasetSnowflake { return vs[0].([]*DatasetSnowflake)[vs[1].(int)] }).(DatasetSnowflakeOutput) } type DatasetSnowflakeMapOutput struct{ *pulumi.OutputState } func (DatasetSnowflakeMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*DatasetSnowflake)(nil)).Elem() } func (o DatasetSnowflakeMapOutput) ToDatasetSnowflakeMapOutput() DatasetSnowflakeMapOutput { return o } func (o DatasetSnowflakeMapOutput) ToDatasetSnowflakeMapOutputWithContext(ctx context.Context) DatasetSnowflakeMapOutput { return o } func (o DatasetSnowflakeMapOutput) MapIndex(k pulumi.StringInput) DatasetSnowflakeOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *DatasetSnowflake { return vs[0].(map[string]*DatasetSnowflake)[vs[1].(string)] }).(DatasetSnowflakeOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*DatasetSnowflakeInput)(nil)).Elem(), &DatasetSnowflake{}) pulumi.RegisterInputType(reflect.TypeOf((*DatasetSnowflakeArrayInput)(nil)).Elem(), DatasetSnowflakeArray{}) pulumi.RegisterInputType(reflect.TypeOf((*DatasetSnowflakeMapInput)(nil)).Elem(), DatasetSnowflakeMap{}) pulumi.RegisterOutputType(DatasetSnowflakeOutput{}) pulumi.RegisterOutputType(DatasetSnowflakeArrayOutput{}) pulumi.RegisterOutputType(DatasetSnowflakeMapOutput{}) }
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/datafactory/pipeline.go
sdk/go/azure/datafactory/pipeline.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 datafactory import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a Pipeline inside a Azure Data Factory. // // ## 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/datafactory" // "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 // } // exampleFactory, err := datafactory.NewFactory(ctx, "example", &datafactory.FactoryArgs{ // Name: pulumi.String("example"), // Location: example.Location, // ResourceGroupName: example.Name, // }) // if err != nil { // return err // } // _, err = datafactory.NewPipeline(ctx, "example", &datafactory.PipelineArgs{ // Name: pulumi.String("example"), // DataFactoryId: exampleFactory.ID(), // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ### With Activities // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/datafactory" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { // _, err := datafactory.NewPipeline(ctx, "test", &datafactory.PipelineArgs{ // Name: pulumi.String("example"), // DataFactoryId: pulumi.Any(testAzurermDataFactory.Id), // Variables: pulumi.StringMap{ // "bob": pulumi.String("item1"), // }, // ActivitiesJson: pulumi.String(`[ // { // \"name\": \"Append variable1\", // \"type\": \"AppendVariable\", // \"dependsOn\": [], // \"userProperties\": [], // \"typeProperties\": { // \"variableName\": \"bob\", // \"value\": \"something\" // } // } // // ] // `), // // }) // 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.DataFactory` - 2018-06-01 // // ## Import // // Data Factory Pipeline's can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:datafactory/pipeline:Pipeline example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example/providers/Microsoft.DataFactory/factories/example/pipelines/example // ``` type Pipeline struct { pulumi.CustomResourceState // A JSON object that contains the activities that will be associated with the Data Factory Pipeline. ActivitiesJson pulumi.StringPtrOutput `pulumi:"activitiesJson"` // List of tags that can be used for describing the Data Factory Pipeline. Annotations pulumi.StringArrayOutput `pulumi:"annotations"` // The max number of concurrent runs for the Data Factory Pipeline. Must be between `1` and `50`. Concurrency pulumi.IntPtrOutput `pulumi:"concurrency"` // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId pulumi.StringOutput `pulumi:"dataFactoryId"` // The description for the Data Factory Pipeline. Description pulumi.StringPtrOutput `pulumi:"description"` // The folder that this Pipeline is in. If not specified, the Pipeline will appear at the root level. Folder pulumi.StringPtrOutput `pulumi:"folder"` // The TimeSpan value after which an Azure Monitoring Metric is fired. MoniterMetricsAfterDuration pulumi.StringPtrOutput `pulumi:"moniterMetricsAfterDuration"` // Specifies the name of the Data Factory Pipeline. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringOutput `pulumi:"name"` // A map of parameters to associate with the Data Factory Pipeline. Parameters pulumi.StringMapOutput `pulumi:"parameters"` // A map of variables to associate with the Data Factory Pipeline. Variables pulumi.StringMapOutput `pulumi:"variables"` } // NewPipeline registers a new resource with the given unique name, arguments, and options. func NewPipeline(ctx *pulumi.Context, name string, args *PipelineArgs, opts ...pulumi.ResourceOption) (*Pipeline, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.DataFactoryId == nil { return nil, errors.New("invalid value for required argument 'DataFactoryId'") } opts = internal.PkgResourceDefaultOpts(opts) var resource Pipeline err := ctx.RegisterResource("azure:datafactory/pipeline:Pipeline", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetPipeline gets an existing Pipeline 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 GetPipeline(ctx *pulumi.Context, name string, id pulumi.IDInput, state *PipelineState, opts ...pulumi.ResourceOption) (*Pipeline, error) { var resource Pipeline err := ctx.ReadResource("azure:datafactory/pipeline:Pipeline", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering Pipeline resources. type pipelineState struct { // A JSON object that contains the activities that will be associated with the Data Factory Pipeline. ActivitiesJson *string `pulumi:"activitiesJson"` // List of tags that can be used for describing the Data Factory Pipeline. Annotations []string `pulumi:"annotations"` // The max number of concurrent runs for the Data Factory Pipeline. Must be between `1` and `50`. Concurrency *int `pulumi:"concurrency"` // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId *string `pulumi:"dataFactoryId"` // The description for the Data Factory Pipeline. Description *string `pulumi:"description"` // The folder that this Pipeline is in. If not specified, the Pipeline will appear at the root level. Folder *string `pulumi:"folder"` // The TimeSpan value after which an Azure Monitoring Metric is fired. MoniterMetricsAfterDuration *string `pulumi:"moniterMetricsAfterDuration"` // Specifies the name of the Data Factory Pipeline. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name *string `pulumi:"name"` // A map of parameters to associate with the Data Factory Pipeline. Parameters map[string]string `pulumi:"parameters"` // A map of variables to associate with the Data Factory Pipeline. Variables map[string]string `pulumi:"variables"` } type PipelineState struct { // A JSON object that contains the activities that will be associated with the Data Factory Pipeline. ActivitiesJson pulumi.StringPtrInput // List of tags that can be used for describing the Data Factory Pipeline. Annotations pulumi.StringArrayInput // The max number of concurrent runs for the Data Factory Pipeline. Must be between `1` and `50`. Concurrency pulumi.IntPtrInput // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId pulumi.StringPtrInput // The description for the Data Factory Pipeline. Description pulumi.StringPtrInput // The folder that this Pipeline is in. If not specified, the Pipeline will appear at the root level. Folder pulumi.StringPtrInput // The TimeSpan value after which an Azure Monitoring Metric is fired. MoniterMetricsAfterDuration pulumi.StringPtrInput // Specifies the name of the Data Factory Pipeline. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringPtrInput // A map of parameters to associate with the Data Factory Pipeline. Parameters pulumi.StringMapInput // A map of variables to associate with the Data Factory Pipeline. Variables pulumi.StringMapInput } func (PipelineState) ElementType() reflect.Type { return reflect.TypeOf((*pipelineState)(nil)).Elem() } type pipelineArgs struct { // A JSON object that contains the activities that will be associated with the Data Factory Pipeline. ActivitiesJson *string `pulumi:"activitiesJson"` // List of tags that can be used for describing the Data Factory Pipeline. Annotations []string `pulumi:"annotations"` // The max number of concurrent runs for the Data Factory Pipeline. Must be between `1` and `50`. Concurrency *int `pulumi:"concurrency"` // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId string `pulumi:"dataFactoryId"` // The description for the Data Factory Pipeline. Description *string `pulumi:"description"` // The folder that this Pipeline is in. If not specified, the Pipeline will appear at the root level. Folder *string `pulumi:"folder"` // The TimeSpan value after which an Azure Monitoring Metric is fired. MoniterMetricsAfterDuration *string `pulumi:"moniterMetricsAfterDuration"` // Specifies the name of the Data Factory Pipeline. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name *string `pulumi:"name"` // A map of parameters to associate with the Data Factory Pipeline. Parameters map[string]string `pulumi:"parameters"` // A map of variables to associate with the Data Factory Pipeline. Variables map[string]string `pulumi:"variables"` } // The set of arguments for constructing a Pipeline resource. type PipelineArgs struct { // A JSON object that contains the activities that will be associated with the Data Factory Pipeline. ActivitiesJson pulumi.StringPtrInput // List of tags that can be used for describing the Data Factory Pipeline. Annotations pulumi.StringArrayInput // The max number of concurrent runs for the Data Factory Pipeline. Must be between `1` and `50`. Concurrency pulumi.IntPtrInput // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId pulumi.StringInput // The description for the Data Factory Pipeline. Description pulumi.StringPtrInput // The folder that this Pipeline is in. If not specified, the Pipeline will appear at the root level. Folder pulumi.StringPtrInput // The TimeSpan value after which an Azure Monitoring Metric is fired. MoniterMetricsAfterDuration pulumi.StringPtrInput // Specifies the name of the Data Factory Pipeline. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringPtrInput // A map of parameters to associate with the Data Factory Pipeline. Parameters pulumi.StringMapInput // A map of variables to associate with the Data Factory Pipeline. Variables pulumi.StringMapInput } func (PipelineArgs) ElementType() reflect.Type { return reflect.TypeOf((*pipelineArgs)(nil)).Elem() } type PipelineInput interface { pulumi.Input ToPipelineOutput() PipelineOutput ToPipelineOutputWithContext(ctx context.Context) PipelineOutput } func (*Pipeline) ElementType() reflect.Type { return reflect.TypeOf((**Pipeline)(nil)).Elem() } func (i *Pipeline) ToPipelineOutput() PipelineOutput { return i.ToPipelineOutputWithContext(context.Background()) } func (i *Pipeline) ToPipelineOutputWithContext(ctx context.Context) PipelineOutput { return pulumi.ToOutputWithContext(ctx, i).(PipelineOutput) } // PipelineArrayInput is an input type that accepts PipelineArray and PipelineArrayOutput values. // You can construct a concrete instance of `PipelineArrayInput` via: // // PipelineArray{ PipelineArgs{...} } type PipelineArrayInput interface { pulumi.Input ToPipelineArrayOutput() PipelineArrayOutput ToPipelineArrayOutputWithContext(context.Context) PipelineArrayOutput } type PipelineArray []PipelineInput func (PipelineArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*Pipeline)(nil)).Elem() } func (i PipelineArray) ToPipelineArrayOutput() PipelineArrayOutput { return i.ToPipelineArrayOutputWithContext(context.Background()) } func (i PipelineArray) ToPipelineArrayOutputWithContext(ctx context.Context) PipelineArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(PipelineArrayOutput) } // PipelineMapInput is an input type that accepts PipelineMap and PipelineMapOutput values. // You can construct a concrete instance of `PipelineMapInput` via: // // PipelineMap{ "key": PipelineArgs{...} } type PipelineMapInput interface { pulumi.Input ToPipelineMapOutput() PipelineMapOutput ToPipelineMapOutputWithContext(context.Context) PipelineMapOutput } type PipelineMap map[string]PipelineInput func (PipelineMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*Pipeline)(nil)).Elem() } func (i PipelineMap) ToPipelineMapOutput() PipelineMapOutput { return i.ToPipelineMapOutputWithContext(context.Background()) } func (i PipelineMap) ToPipelineMapOutputWithContext(ctx context.Context) PipelineMapOutput { return pulumi.ToOutputWithContext(ctx, i).(PipelineMapOutput) } type PipelineOutput struct{ *pulumi.OutputState } func (PipelineOutput) ElementType() reflect.Type { return reflect.TypeOf((**Pipeline)(nil)).Elem() } func (o PipelineOutput) ToPipelineOutput() PipelineOutput { return o } func (o PipelineOutput) ToPipelineOutputWithContext(ctx context.Context) PipelineOutput { return o } // A JSON object that contains the activities that will be associated with the Data Factory Pipeline. func (o PipelineOutput) ActivitiesJson() pulumi.StringPtrOutput { return o.ApplyT(func(v *Pipeline) pulumi.StringPtrOutput { return v.ActivitiesJson }).(pulumi.StringPtrOutput) } // List of tags that can be used for describing the Data Factory Pipeline. func (o PipelineOutput) Annotations() pulumi.StringArrayOutput { return o.ApplyT(func(v *Pipeline) pulumi.StringArrayOutput { return v.Annotations }).(pulumi.StringArrayOutput) } // The max number of concurrent runs for the Data Factory Pipeline. Must be between `1` and `50`. func (o PipelineOutput) Concurrency() pulumi.IntPtrOutput { return o.ApplyT(func(v *Pipeline) pulumi.IntPtrOutput { return v.Concurrency }).(pulumi.IntPtrOutput) } // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. func (o PipelineOutput) DataFactoryId() pulumi.StringOutput { return o.ApplyT(func(v *Pipeline) pulumi.StringOutput { return v.DataFactoryId }).(pulumi.StringOutput) } // The description for the Data Factory Pipeline. func (o PipelineOutput) Description() pulumi.StringPtrOutput { return o.ApplyT(func(v *Pipeline) pulumi.StringPtrOutput { return v.Description }).(pulumi.StringPtrOutput) } // The folder that this Pipeline is in. If not specified, the Pipeline will appear at the root level. func (o PipelineOutput) Folder() pulumi.StringPtrOutput { return o.ApplyT(func(v *Pipeline) pulumi.StringPtrOutput { return v.Folder }).(pulumi.StringPtrOutput) } // The TimeSpan value after which an Azure Monitoring Metric is fired. func (o PipelineOutput) MoniterMetricsAfterDuration() pulumi.StringPtrOutput { return o.ApplyT(func(v *Pipeline) pulumi.StringPtrOutput { return v.MoniterMetricsAfterDuration }).(pulumi.StringPtrOutput) } // Specifies the name of the Data Factory Pipeline. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. func (o PipelineOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *Pipeline) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // A map of parameters to associate with the Data Factory Pipeline. func (o PipelineOutput) Parameters() pulumi.StringMapOutput { return o.ApplyT(func(v *Pipeline) pulumi.StringMapOutput { return v.Parameters }).(pulumi.StringMapOutput) } // A map of variables to associate with the Data Factory Pipeline. func (o PipelineOutput) Variables() pulumi.StringMapOutput { return o.ApplyT(func(v *Pipeline) pulumi.StringMapOutput { return v.Variables }).(pulumi.StringMapOutput) } type PipelineArrayOutput struct{ *pulumi.OutputState } func (PipelineArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*Pipeline)(nil)).Elem() } func (o PipelineArrayOutput) ToPipelineArrayOutput() PipelineArrayOutput { return o } func (o PipelineArrayOutput) ToPipelineArrayOutputWithContext(ctx context.Context) PipelineArrayOutput { return o } func (o PipelineArrayOutput) Index(i pulumi.IntInput) PipelineOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *Pipeline { return vs[0].([]*Pipeline)[vs[1].(int)] }).(PipelineOutput) } type PipelineMapOutput struct{ *pulumi.OutputState } func (PipelineMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*Pipeline)(nil)).Elem() } func (o PipelineMapOutput) ToPipelineMapOutput() PipelineMapOutput { return o } func (o PipelineMapOutput) ToPipelineMapOutputWithContext(ctx context.Context) PipelineMapOutput { return o } func (o PipelineMapOutput) MapIndex(k pulumi.StringInput) PipelineOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *Pipeline { return vs[0].(map[string]*Pipeline)[vs[1].(string)] }).(PipelineOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*PipelineInput)(nil)).Elem(), &Pipeline{}) pulumi.RegisterInputType(reflect.TypeOf((*PipelineArrayInput)(nil)).Elem(), PipelineArray{}) pulumi.RegisterInputType(reflect.TypeOf((*PipelineMapInput)(nil)).Elem(), PipelineMap{}) pulumi.RegisterOutputType(PipelineOutput{}) pulumi.RegisterOutputType(PipelineArrayOutput{}) pulumi.RegisterOutputType(PipelineMapOutput{}) }
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/datafactory/datasetCosmosDBApi.go
sdk/go/azure/datafactory/datasetCosmosDBApi.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 datafactory 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 Cosmos DB SQL API Dataset inside an Azure Data Factory. // // ## 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/cosmosdb" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/datafactory" // "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 := cosmosdb.LookupAccount(ctx, &cosmosdb.LookupAccountArgs{ // Name: "tfex-cosmosdb-account", // ResourceGroupName: "tfex-cosmosdb-account-rg", // }, nil) // if err != nil { // return err // } // exampleFactory, err := datafactory.NewFactory(ctx, "example", &datafactory.FactoryArgs{ // Name: pulumi.String("example"), // Location: exampleResourceGroup.Location, // ResourceGroupName: exampleResourceGroup.Name, // }) // if err != nil { // return err // } // exampleLinkedServiceCosmosDb, err := datafactory.NewLinkedServiceCosmosDb(ctx, "example", &datafactory.LinkedServiceCosmosDbArgs{ // Name: pulumi.String("example"), // DataFactoryId: exampleFactory.ID(), // AccountEndpoint: pulumi.String(example.Endpoint), // Database: pulumi.String("foo"), // }) // if err != nil { // return err // } // _, err = datafactory.NewDatasetCosmosDBApi(ctx, "example", &datafactory.DatasetCosmosDBApiArgs{ // Name: pulumi.String("example"), // DataFactoryId: exampleFactory.ID(), // LinkedServiceName: exampleLinkedServiceCosmosDb.Name, // CollectionName: pulumi.String("bar"), // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## Import // // Data Factory Datasets can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:datafactory/datasetCosmosDBApi:DatasetCosmosDBApi example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example/providers/Microsoft.DataFactory/factories/example/datasets/example // ``` type DatasetCosmosDBApi struct { pulumi.CustomResourceState // A map of additional properties to associate with the Data Factory Dataset. // // The following supported arguments are specific to Azure Cosmos DB SQL API Dataset: AdditionalProperties pulumi.StringMapOutput `pulumi:"additionalProperties"` // List of tags that can be used for describing the Data Factory Dataset. Annotations pulumi.StringArrayOutput `pulumi:"annotations"` // The collection name of the Data Factory Dataset Azure Cosmos DB SQL API. CollectionName pulumi.StringPtrOutput `pulumi:"collectionName"` // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId pulumi.StringOutput `pulumi:"dataFactoryId"` // The description for the Data Factory Dataset. Description pulumi.StringPtrOutput `pulumi:"description"` // The folder that this Dataset is in. If not specified, the Dataset will appear at the root level. Folder pulumi.StringPtrOutput `pulumi:"folder"` // The Data Factory Linked Service name in which to associate the Dataset with. LinkedServiceName pulumi.StringOutput `pulumi:"linkedServiceName"` // Specifies the name of the Data Factory Dataset. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringOutput `pulumi:"name"` // A map of parameters to associate with the Data Factory Dataset. Parameters pulumi.StringMapOutput `pulumi:"parameters"` // A `schemaColumn` block as defined below. SchemaColumns DatasetCosmosDBApiSchemaColumnArrayOutput `pulumi:"schemaColumns"` } // NewDatasetCosmosDBApi registers a new resource with the given unique name, arguments, and options. func NewDatasetCosmosDBApi(ctx *pulumi.Context, name string, args *DatasetCosmosDBApiArgs, opts ...pulumi.ResourceOption) (*DatasetCosmosDBApi, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.DataFactoryId == nil { return nil, errors.New("invalid value for required argument 'DataFactoryId'") } if args.LinkedServiceName == nil { return nil, errors.New("invalid value for required argument 'LinkedServiceName'") } opts = internal.PkgResourceDefaultOpts(opts) var resource DatasetCosmosDBApi err := ctx.RegisterResource("azure:datafactory/datasetCosmosDBApi:DatasetCosmosDBApi", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetDatasetCosmosDBApi gets an existing DatasetCosmosDBApi 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 GetDatasetCosmosDBApi(ctx *pulumi.Context, name string, id pulumi.IDInput, state *DatasetCosmosDBApiState, opts ...pulumi.ResourceOption) (*DatasetCosmosDBApi, error) { var resource DatasetCosmosDBApi err := ctx.ReadResource("azure:datafactory/datasetCosmosDBApi:DatasetCosmosDBApi", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering DatasetCosmosDBApi resources. type datasetCosmosDBApiState struct { // A map of additional properties to associate with the Data Factory Dataset. // // The following supported arguments are specific to Azure Cosmos DB SQL API Dataset: AdditionalProperties map[string]string `pulumi:"additionalProperties"` // List of tags that can be used for describing the Data Factory Dataset. Annotations []string `pulumi:"annotations"` // The collection name of the Data Factory Dataset Azure Cosmos DB SQL API. CollectionName *string `pulumi:"collectionName"` // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId *string `pulumi:"dataFactoryId"` // The description for the Data Factory Dataset. Description *string `pulumi:"description"` // The folder that this Dataset is in. If not specified, the Dataset will appear at the root level. Folder *string `pulumi:"folder"` // The Data Factory Linked Service name in which to associate the Dataset with. LinkedServiceName *string `pulumi:"linkedServiceName"` // Specifies the name of the Data Factory Dataset. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name *string `pulumi:"name"` // A map of parameters to associate with the Data Factory Dataset. Parameters map[string]string `pulumi:"parameters"` // A `schemaColumn` block as defined below. SchemaColumns []DatasetCosmosDBApiSchemaColumn `pulumi:"schemaColumns"` } type DatasetCosmosDBApiState struct { // A map of additional properties to associate with the Data Factory Dataset. // // The following supported arguments are specific to Azure Cosmos DB SQL API Dataset: AdditionalProperties pulumi.StringMapInput // List of tags that can be used for describing the Data Factory Dataset. Annotations pulumi.StringArrayInput // The collection name of the Data Factory Dataset Azure Cosmos DB SQL API. CollectionName pulumi.StringPtrInput // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId pulumi.StringPtrInput // The description for the Data Factory Dataset. Description pulumi.StringPtrInput // The folder that this Dataset is in. If not specified, the Dataset will appear at the root level. Folder pulumi.StringPtrInput // The Data Factory Linked Service name in which to associate the Dataset with. LinkedServiceName pulumi.StringPtrInput // Specifies the name of the Data Factory Dataset. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringPtrInput // A map of parameters to associate with the Data Factory Dataset. Parameters pulumi.StringMapInput // A `schemaColumn` block as defined below. SchemaColumns DatasetCosmosDBApiSchemaColumnArrayInput } func (DatasetCosmosDBApiState) ElementType() reflect.Type { return reflect.TypeOf((*datasetCosmosDBApiState)(nil)).Elem() } type datasetCosmosDBApiArgs struct { // A map of additional properties to associate with the Data Factory Dataset. // // The following supported arguments are specific to Azure Cosmos DB SQL API Dataset: AdditionalProperties map[string]string `pulumi:"additionalProperties"` // List of tags that can be used for describing the Data Factory Dataset. Annotations []string `pulumi:"annotations"` // The collection name of the Data Factory Dataset Azure Cosmos DB SQL API. CollectionName *string `pulumi:"collectionName"` // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId string `pulumi:"dataFactoryId"` // The description for the Data Factory Dataset. Description *string `pulumi:"description"` // The folder that this Dataset is in. If not specified, the Dataset will appear at the root level. Folder *string `pulumi:"folder"` // The Data Factory Linked Service name in which to associate the Dataset with. LinkedServiceName string `pulumi:"linkedServiceName"` // Specifies the name of the Data Factory Dataset. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name *string `pulumi:"name"` // A map of parameters to associate with the Data Factory Dataset. Parameters map[string]string `pulumi:"parameters"` // A `schemaColumn` block as defined below. SchemaColumns []DatasetCosmosDBApiSchemaColumn `pulumi:"schemaColumns"` } // The set of arguments for constructing a DatasetCosmosDBApi resource. type DatasetCosmosDBApiArgs struct { // A map of additional properties to associate with the Data Factory Dataset. // // The following supported arguments are specific to Azure Cosmos DB SQL API Dataset: AdditionalProperties pulumi.StringMapInput // List of tags that can be used for describing the Data Factory Dataset. Annotations pulumi.StringArrayInput // The collection name of the Data Factory Dataset Azure Cosmos DB SQL API. CollectionName pulumi.StringPtrInput // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId pulumi.StringInput // The description for the Data Factory Dataset. Description pulumi.StringPtrInput // The folder that this Dataset is in. If not specified, the Dataset will appear at the root level. Folder pulumi.StringPtrInput // The Data Factory Linked Service name in which to associate the Dataset with. LinkedServiceName pulumi.StringInput // Specifies the name of the Data Factory Dataset. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringPtrInput // A map of parameters to associate with the Data Factory Dataset. Parameters pulumi.StringMapInput // A `schemaColumn` block as defined below. SchemaColumns DatasetCosmosDBApiSchemaColumnArrayInput } func (DatasetCosmosDBApiArgs) ElementType() reflect.Type { return reflect.TypeOf((*datasetCosmosDBApiArgs)(nil)).Elem() } type DatasetCosmosDBApiInput interface { pulumi.Input ToDatasetCosmosDBApiOutput() DatasetCosmosDBApiOutput ToDatasetCosmosDBApiOutputWithContext(ctx context.Context) DatasetCosmosDBApiOutput } func (*DatasetCosmosDBApi) ElementType() reflect.Type { return reflect.TypeOf((**DatasetCosmosDBApi)(nil)).Elem() } func (i *DatasetCosmosDBApi) ToDatasetCosmosDBApiOutput() DatasetCosmosDBApiOutput { return i.ToDatasetCosmosDBApiOutputWithContext(context.Background()) } func (i *DatasetCosmosDBApi) ToDatasetCosmosDBApiOutputWithContext(ctx context.Context) DatasetCosmosDBApiOutput { return pulumi.ToOutputWithContext(ctx, i).(DatasetCosmosDBApiOutput) } // DatasetCosmosDBApiArrayInput is an input type that accepts DatasetCosmosDBApiArray and DatasetCosmosDBApiArrayOutput values. // You can construct a concrete instance of `DatasetCosmosDBApiArrayInput` via: // // DatasetCosmosDBApiArray{ DatasetCosmosDBApiArgs{...} } type DatasetCosmosDBApiArrayInput interface { pulumi.Input ToDatasetCosmosDBApiArrayOutput() DatasetCosmosDBApiArrayOutput ToDatasetCosmosDBApiArrayOutputWithContext(context.Context) DatasetCosmosDBApiArrayOutput } type DatasetCosmosDBApiArray []DatasetCosmosDBApiInput func (DatasetCosmosDBApiArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*DatasetCosmosDBApi)(nil)).Elem() } func (i DatasetCosmosDBApiArray) ToDatasetCosmosDBApiArrayOutput() DatasetCosmosDBApiArrayOutput { return i.ToDatasetCosmosDBApiArrayOutputWithContext(context.Background()) } func (i DatasetCosmosDBApiArray) ToDatasetCosmosDBApiArrayOutputWithContext(ctx context.Context) DatasetCosmosDBApiArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(DatasetCosmosDBApiArrayOutput) } // DatasetCosmosDBApiMapInput is an input type that accepts DatasetCosmosDBApiMap and DatasetCosmosDBApiMapOutput values. // You can construct a concrete instance of `DatasetCosmosDBApiMapInput` via: // // DatasetCosmosDBApiMap{ "key": DatasetCosmosDBApiArgs{...} } type DatasetCosmosDBApiMapInput interface { pulumi.Input ToDatasetCosmosDBApiMapOutput() DatasetCosmosDBApiMapOutput ToDatasetCosmosDBApiMapOutputWithContext(context.Context) DatasetCosmosDBApiMapOutput } type DatasetCosmosDBApiMap map[string]DatasetCosmosDBApiInput func (DatasetCosmosDBApiMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*DatasetCosmosDBApi)(nil)).Elem() } func (i DatasetCosmosDBApiMap) ToDatasetCosmosDBApiMapOutput() DatasetCosmosDBApiMapOutput { return i.ToDatasetCosmosDBApiMapOutputWithContext(context.Background()) } func (i DatasetCosmosDBApiMap) ToDatasetCosmosDBApiMapOutputWithContext(ctx context.Context) DatasetCosmosDBApiMapOutput { return pulumi.ToOutputWithContext(ctx, i).(DatasetCosmosDBApiMapOutput) } type DatasetCosmosDBApiOutput struct{ *pulumi.OutputState } func (DatasetCosmosDBApiOutput) ElementType() reflect.Type { return reflect.TypeOf((**DatasetCosmosDBApi)(nil)).Elem() } func (o DatasetCosmosDBApiOutput) ToDatasetCosmosDBApiOutput() DatasetCosmosDBApiOutput { return o } func (o DatasetCosmosDBApiOutput) ToDatasetCosmosDBApiOutputWithContext(ctx context.Context) DatasetCosmosDBApiOutput { return o } // A map of additional properties to associate with the Data Factory Dataset. // // The following supported arguments are specific to Azure Cosmos DB SQL API Dataset: func (o DatasetCosmosDBApiOutput) AdditionalProperties() pulumi.StringMapOutput { return o.ApplyT(func(v *DatasetCosmosDBApi) pulumi.StringMapOutput { return v.AdditionalProperties }).(pulumi.StringMapOutput) } // List of tags that can be used for describing the Data Factory Dataset. func (o DatasetCosmosDBApiOutput) Annotations() pulumi.StringArrayOutput { return o.ApplyT(func(v *DatasetCosmosDBApi) pulumi.StringArrayOutput { return v.Annotations }).(pulumi.StringArrayOutput) } // The collection name of the Data Factory Dataset Azure Cosmos DB SQL API. func (o DatasetCosmosDBApiOutput) CollectionName() pulumi.StringPtrOutput { return o.ApplyT(func(v *DatasetCosmosDBApi) pulumi.StringPtrOutput { return v.CollectionName }).(pulumi.StringPtrOutput) } // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. func (o DatasetCosmosDBApiOutput) DataFactoryId() pulumi.StringOutput { return o.ApplyT(func(v *DatasetCosmosDBApi) pulumi.StringOutput { return v.DataFactoryId }).(pulumi.StringOutput) } // The description for the Data Factory Dataset. func (o DatasetCosmosDBApiOutput) Description() pulumi.StringPtrOutput { return o.ApplyT(func(v *DatasetCosmosDBApi) pulumi.StringPtrOutput { return v.Description }).(pulumi.StringPtrOutput) } // The folder that this Dataset is in. If not specified, the Dataset will appear at the root level. func (o DatasetCosmosDBApiOutput) Folder() pulumi.StringPtrOutput { return o.ApplyT(func(v *DatasetCosmosDBApi) pulumi.StringPtrOutput { return v.Folder }).(pulumi.StringPtrOutput) } // The Data Factory Linked Service name in which to associate the Dataset with. func (o DatasetCosmosDBApiOutput) LinkedServiceName() pulumi.StringOutput { return o.ApplyT(func(v *DatasetCosmosDBApi) pulumi.StringOutput { return v.LinkedServiceName }).(pulumi.StringOutput) } // Specifies the name of the Data Factory Dataset. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. func (o DatasetCosmosDBApiOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *DatasetCosmosDBApi) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // A map of parameters to associate with the Data Factory Dataset. func (o DatasetCosmosDBApiOutput) Parameters() pulumi.StringMapOutput { return o.ApplyT(func(v *DatasetCosmosDBApi) pulumi.StringMapOutput { return v.Parameters }).(pulumi.StringMapOutput) } // A `schemaColumn` block as defined below. func (o DatasetCosmosDBApiOutput) SchemaColumns() DatasetCosmosDBApiSchemaColumnArrayOutput { return o.ApplyT(func(v *DatasetCosmosDBApi) DatasetCosmosDBApiSchemaColumnArrayOutput { return v.SchemaColumns }).(DatasetCosmosDBApiSchemaColumnArrayOutput) } type DatasetCosmosDBApiArrayOutput struct{ *pulumi.OutputState } func (DatasetCosmosDBApiArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*DatasetCosmosDBApi)(nil)).Elem() } func (o DatasetCosmosDBApiArrayOutput) ToDatasetCosmosDBApiArrayOutput() DatasetCosmosDBApiArrayOutput { return o } func (o DatasetCosmosDBApiArrayOutput) ToDatasetCosmosDBApiArrayOutputWithContext(ctx context.Context) DatasetCosmosDBApiArrayOutput { return o } func (o DatasetCosmosDBApiArrayOutput) Index(i pulumi.IntInput) DatasetCosmosDBApiOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *DatasetCosmosDBApi { return vs[0].([]*DatasetCosmosDBApi)[vs[1].(int)] }).(DatasetCosmosDBApiOutput) } type DatasetCosmosDBApiMapOutput struct{ *pulumi.OutputState } func (DatasetCosmosDBApiMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*DatasetCosmosDBApi)(nil)).Elem() } func (o DatasetCosmosDBApiMapOutput) ToDatasetCosmosDBApiMapOutput() DatasetCosmosDBApiMapOutput { return o } func (o DatasetCosmosDBApiMapOutput) ToDatasetCosmosDBApiMapOutputWithContext(ctx context.Context) DatasetCosmosDBApiMapOutput { return o } func (o DatasetCosmosDBApiMapOutput) MapIndex(k pulumi.StringInput) DatasetCosmosDBApiOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *DatasetCosmosDBApi { return vs[0].(map[string]*DatasetCosmosDBApi)[vs[1].(string)] }).(DatasetCosmosDBApiOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*DatasetCosmosDBApiInput)(nil)).Elem(), &DatasetCosmosDBApi{}) pulumi.RegisterInputType(reflect.TypeOf((*DatasetCosmosDBApiArrayInput)(nil)).Elem(), DatasetCosmosDBApiArray{}) pulumi.RegisterInputType(reflect.TypeOf((*DatasetCosmosDBApiMapInput)(nil)).Elem(), DatasetCosmosDBApiMap{}) pulumi.RegisterOutputType(DatasetCosmosDBApiOutput{}) pulumi.RegisterOutputType(DatasetCosmosDBApiArrayOutput{}) pulumi.RegisterOutputType(DatasetCosmosDBApiMapOutput{}) }
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/datafactory/linkedServiceOdata.go
sdk/go/azure/datafactory/linkedServiceOdata.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 datafactory import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a Linked Service (connection) between a Database and Azure Data Factory through OData protocol. // // > **Note:** All arguments including the connectionString will be stored in the raw state as plain-text. [Read more about sensitive data in state](https://www.terraform.io/docs/state/sensitive-data.html). // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/datafactory" // "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 // } // exampleFactory, err := datafactory.NewFactory(ctx, "example", &datafactory.FactoryArgs{ // Name: pulumi.String("example"), // Location: example.Location, // ResourceGroupName: example.Name, // }) // if err != nil { // return err // } // _, err = datafactory.NewLinkedServiceOdata(ctx, "anonymous", &datafactory.LinkedServiceOdataArgs{ // Name: pulumi.String("anonymous"), // DataFactoryId: exampleFactory.ID(), // Url: pulumi.String("https://services.odata.org/v4/TripPinServiceRW/People"), // }) // if err != nil { // return err // } // _, err = datafactory.NewLinkedServiceOdata(ctx, "basic_auth", &datafactory.LinkedServiceOdataArgs{ // Name: pulumi.String("basic_auth"), // DataFactoryId: exampleFactory.ID(), // Url: pulumi.String("https://services.odata.org/v4/TripPinServiceRW/People"), // BasicAuthentication: &datafactory.LinkedServiceOdataBasicAuthenticationArgs{ // Username: pulumi.String("emma"), // Password: pulumi.String("Ch4ngeM3!"), // }, // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## Import // // Data Factory OData Linked Service's can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:datafactory/linkedServiceOdata:LinkedServiceOdata example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example/providers/Microsoft.DataFactory/factories/example/linkedservices/example // ``` type LinkedServiceOdata struct { pulumi.CustomResourceState // A map of additional properties to associate with the Data Factory Linked Service OData. AdditionalProperties pulumi.StringMapOutput `pulumi:"additionalProperties"` // List of tags that can be used for describing the Data Factory Linked Service OData. Annotations pulumi.StringArrayOutput `pulumi:"annotations"` // A `basicAuthentication` block as defined below. BasicAuthentication LinkedServiceOdataBasicAuthenticationPtrOutput `pulumi:"basicAuthentication"` // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId pulumi.StringOutput `pulumi:"dataFactoryId"` // The description for the Data Factory Linked Service OData. Description pulumi.StringPtrOutput `pulumi:"description"` // The integration runtime reference to associate with the Data Factory Linked Service OData. IntegrationRuntimeName pulumi.StringPtrOutput `pulumi:"integrationRuntimeName"` // Specifies the name of the Data Factory Linked Service OData. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringOutput `pulumi:"name"` // A map of parameters to associate with the Data Factory Linked Service OData. Parameters pulumi.StringMapOutput `pulumi:"parameters"` // The URL of the OData service endpoint. Url pulumi.StringOutput `pulumi:"url"` } // NewLinkedServiceOdata registers a new resource with the given unique name, arguments, and options. func NewLinkedServiceOdata(ctx *pulumi.Context, name string, args *LinkedServiceOdataArgs, opts ...pulumi.ResourceOption) (*LinkedServiceOdata, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.DataFactoryId == nil { return nil, errors.New("invalid value for required argument 'DataFactoryId'") } if args.Url == nil { return nil, errors.New("invalid value for required argument 'Url'") } opts = internal.PkgResourceDefaultOpts(opts) var resource LinkedServiceOdata err := ctx.RegisterResource("azure:datafactory/linkedServiceOdata:LinkedServiceOdata", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetLinkedServiceOdata gets an existing LinkedServiceOdata 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 GetLinkedServiceOdata(ctx *pulumi.Context, name string, id pulumi.IDInput, state *LinkedServiceOdataState, opts ...pulumi.ResourceOption) (*LinkedServiceOdata, error) { var resource LinkedServiceOdata err := ctx.ReadResource("azure:datafactory/linkedServiceOdata:LinkedServiceOdata", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering LinkedServiceOdata resources. type linkedServiceOdataState struct { // A map of additional properties to associate with the Data Factory Linked Service OData. AdditionalProperties map[string]string `pulumi:"additionalProperties"` // List of tags that can be used for describing the Data Factory Linked Service OData. Annotations []string `pulumi:"annotations"` // A `basicAuthentication` block as defined below. BasicAuthentication *LinkedServiceOdataBasicAuthentication `pulumi:"basicAuthentication"` // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId *string `pulumi:"dataFactoryId"` // The description for the Data Factory Linked Service OData. Description *string `pulumi:"description"` // The integration runtime reference to associate with the Data Factory Linked Service OData. IntegrationRuntimeName *string `pulumi:"integrationRuntimeName"` // Specifies the name of the Data Factory Linked Service OData. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name *string `pulumi:"name"` // A map of parameters to associate with the Data Factory Linked Service OData. Parameters map[string]string `pulumi:"parameters"` // The URL of the OData service endpoint. Url *string `pulumi:"url"` } type LinkedServiceOdataState struct { // A map of additional properties to associate with the Data Factory Linked Service OData. AdditionalProperties pulumi.StringMapInput // List of tags that can be used for describing the Data Factory Linked Service OData. Annotations pulumi.StringArrayInput // A `basicAuthentication` block as defined below. BasicAuthentication LinkedServiceOdataBasicAuthenticationPtrInput // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId pulumi.StringPtrInput // The description for the Data Factory Linked Service OData. Description pulumi.StringPtrInput // The integration runtime reference to associate with the Data Factory Linked Service OData. IntegrationRuntimeName pulumi.StringPtrInput // Specifies the name of the Data Factory Linked Service OData. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringPtrInput // A map of parameters to associate with the Data Factory Linked Service OData. Parameters pulumi.StringMapInput // The URL of the OData service endpoint. Url pulumi.StringPtrInput } func (LinkedServiceOdataState) ElementType() reflect.Type { return reflect.TypeOf((*linkedServiceOdataState)(nil)).Elem() } type linkedServiceOdataArgs struct { // A map of additional properties to associate with the Data Factory Linked Service OData. AdditionalProperties map[string]string `pulumi:"additionalProperties"` // List of tags that can be used for describing the Data Factory Linked Service OData. Annotations []string `pulumi:"annotations"` // A `basicAuthentication` block as defined below. BasicAuthentication *LinkedServiceOdataBasicAuthentication `pulumi:"basicAuthentication"` // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId string `pulumi:"dataFactoryId"` // The description for the Data Factory Linked Service OData. Description *string `pulumi:"description"` // The integration runtime reference to associate with the Data Factory Linked Service OData. IntegrationRuntimeName *string `pulumi:"integrationRuntimeName"` // Specifies the name of the Data Factory Linked Service OData. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name *string `pulumi:"name"` // A map of parameters to associate with the Data Factory Linked Service OData. Parameters map[string]string `pulumi:"parameters"` // The URL of the OData service endpoint. Url string `pulumi:"url"` } // The set of arguments for constructing a LinkedServiceOdata resource. type LinkedServiceOdataArgs struct { // A map of additional properties to associate with the Data Factory Linked Service OData. AdditionalProperties pulumi.StringMapInput // List of tags that can be used for describing the Data Factory Linked Service OData. Annotations pulumi.StringArrayInput // A `basicAuthentication` block as defined below. BasicAuthentication LinkedServiceOdataBasicAuthenticationPtrInput // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId pulumi.StringInput // The description for the Data Factory Linked Service OData. Description pulumi.StringPtrInput // The integration runtime reference to associate with the Data Factory Linked Service OData. IntegrationRuntimeName pulumi.StringPtrInput // Specifies the name of the Data Factory Linked Service OData. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringPtrInput // A map of parameters to associate with the Data Factory Linked Service OData. Parameters pulumi.StringMapInput // The URL of the OData service endpoint. Url pulumi.StringInput } func (LinkedServiceOdataArgs) ElementType() reflect.Type { return reflect.TypeOf((*linkedServiceOdataArgs)(nil)).Elem() } type LinkedServiceOdataInput interface { pulumi.Input ToLinkedServiceOdataOutput() LinkedServiceOdataOutput ToLinkedServiceOdataOutputWithContext(ctx context.Context) LinkedServiceOdataOutput } func (*LinkedServiceOdata) ElementType() reflect.Type { return reflect.TypeOf((**LinkedServiceOdata)(nil)).Elem() } func (i *LinkedServiceOdata) ToLinkedServiceOdataOutput() LinkedServiceOdataOutput { return i.ToLinkedServiceOdataOutputWithContext(context.Background()) } func (i *LinkedServiceOdata) ToLinkedServiceOdataOutputWithContext(ctx context.Context) LinkedServiceOdataOutput { return pulumi.ToOutputWithContext(ctx, i).(LinkedServiceOdataOutput) } // LinkedServiceOdataArrayInput is an input type that accepts LinkedServiceOdataArray and LinkedServiceOdataArrayOutput values. // You can construct a concrete instance of `LinkedServiceOdataArrayInput` via: // // LinkedServiceOdataArray{ LinkedServiceOdataArgs{...} } type LinkedServiceOdataArrayInput interface { pulumi.Input ToLinkedServiceOdataArrayOutput() LinkedServiceOdataArrayOutput ToLinkedServiceOdataArrayOutputWithContext(context.Context) LinkedServiceOdataArrayOutput } type LinkedServiceOdataArray []LinkedServiceOdataInput func (LinkedServiceOdataArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*LinkedServiceOdata)(nil)).Elem() } func (i LinkedServiceOdataArray) ToLinkedServiceOdataArrayOutput() LinkedServiceOdataArrayOutput { return i.ToLinkedServiceOdataArrayOutputWithContext(context.Background()) } func (i LinkedServiceOdataArray) ToLinkedServiceOdataArrayOutputWithContext(ctx context.Context) LinkedServiceOdataArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(LinkedServiceOdataArrayOutput) } // LinkedServiceOdataMapInput is an input type that accepts LinkedServiceOdataMap and LinkedServiceOdataMapOutput values. // You can construct a concrete instance of `LinkedServiceOdataMapInput` via: // // LinkedServiceOdataMap{ "key": LinkedServiceOdataArgs{...} } type LinkedServiceOdataMapInput interface { pulumi.Input ToLinkedServiceOdataMapOutput() LinkedServiceOdataMapOutput ToLinkedServiceOdataMapOutputWithContext(context.Context) LinkedServiceOdataMapOutput } type LinkedServiceOdataMap map[string]LinkedServiceOdataInput func (LinkedServiceOdataMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*LinkedServiceOdata)(nil)).Elem() } func (i LinkedServiceOdataMap) ToLinkedServiceOdataMapOutput() LinkedServiceOdataMapOutput { return i.ToLinkedServiceOdataMapOutputWithContext(context.Background()) } func (i LinkedServiceOdataMap) ToLinkedServiceOdataMapOutputWithContext(ctx context.Context) LinkedServiceOdataMapOutput { return pulumi.ToOutputWithContext(ctx, i).(LinkedServiceOdataMapOutput) } type LinkedServiceOdataOutput struct{ *pulumi.OutputState } func (LinkedServiceOdataOutput) ElementType() reflect.Type { return reflect.TypeOf((**LinkedServiceOdata)(nil)).Elem() } func (o LinkedServiceOdataOutput) ToLinkedServiceOdataOutput() LinkedServiceOdataOutput { return o } func (o LinkedServiceOdataOutput) ToLinkedServiceOdataOutputWithContext(ctx context.Context) LinkedServiceOdataOutput { return o } // A map of additional properties to associate with the Data Factory Linked Service OData. func (o LinkedServiceOdataOutput) AdditionalProperties() pulumi.StringMapOutput { return o.ApplyT(func(v *LinkedServiceOdata) pulumi.StringMapOutput { return v.AdditionalProperties }).(pulumi.StringMapOutput) } // List of tags that can be used for describing the Data Factory Linked Service OData. func (o LinkedServiceOdataOutput) Annotations() pulumi.StringArrayOutput { return o.ApplyT(func(v *LinkedServiceOdata) pulumi.StringArrayOutput { return v.Annotations }).(pulumi.StringArrayOutput) } // A `basicAuthentication` block as defined below. func (o LinkedServiceOdataOutput) BasicAuthentication() LinkedServiceOdataBasicAuthenticationPtrOutput { return o.ApplyT(func(v *LinkedServiceOdata) LinkedServiceOdataBasicAuthenticationPtrOutput { return v.BasicAuthentication }).(LinkedServiceOdataBasicAuthenticationPtrOutput) } // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. func (o LinkedServiceOdataOutput) DataFactoryId() pulumi.StringOutput { return o.ApplyT(func(v *LinkedServiceOdata) pulumi.StringOutput { return v.DataFactoryId }).(pulumi.StringOutput) } // The description for the Data Factory Linked Service OData. func (o LinkedServiceOdataOutput) Description() pulumi.StringPtrOutput { return o.ApplyT(func(v *LinkedServiceOdata) pulumi.StringPtrOutput { return v.Description }).(pulumi.StringPtrOutput) } // The integration runtime reference to associate with the Data Factory Linked Service OData. func (o LinkedServiceOdataOutput) IntegrationRuntimeName() pulumi.StringPtrOutput { return o.ApplyT(func(v *LinkedServiceOdata) pulumi.StringPtrOutput { return v.IntegrationRuntimeName }).(pulumi.StringPtrOutput) } // Specifies the name of the Data Factory Linked Service OData. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. func (o LinkedServiceOdataOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *LinkedServiceOdata) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // A map of parameters to associate with the Data Factory Linked Service OData. func (o LinkedServiceOdataOutput) Parameters() pulumi.StringMapOutput { return o.ApplyT(func(v *LinkedServiceOdata) pulumi.StringMapOutput { return v.Parameters }).(pulumi.StringMapOutput) } // The URL of the OData service endpoint. func (o LinkedServiceOdataOutput) Url() pulumi.StringOutput { return o.ApplyT(func(v *LinkedServiceOdata) pulumi.StringOutput { return v.Url }).(pulumi.StringOutput) } type LinkedServiceOdataArrayOutput struct{ *pulumi.OutputState } func (LinkedServiceOdataArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*LinkedServiceOdata)(nil)).Elem() } func (o LinkedServiceOdataArrayOutput) ToLinkedServiceOdataArrayOutput() LinkedServiceOdataArrayOutput { return o } func (o LinkedServiceOdataArrayOutput) ToLinkedServiceOdataArrayOutputWithContext(ctx context.Context) LinkedServiceOdataArrayOutput { return o } func (o LinkedServiceOdataArrayOutput) Index(i pulumi.IntInput) LinkedServiceOdataOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *LinkedServiceOdata { return vs[0].([]*LinkedServiceOdata)[vs[1].(int)] }).(LinkedServiceOdataOutput) } type LinkedServiceOdataMapOutput struct{ *pulumi.OutputState } func (LinkedServiceOdataMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*LinkedServiceOdata)(nil)).Elem() } func (o LinkedServiceOdataMapOutput) ToLinkedServiceOdataMapOutput() LinkedServiceOdataMapOutput { return o } func (o LinkedServiceOdataMapOutput) ToLinkedServiceOdataMapOutputWithContext(ctx context.Context) LinkedServiceOdataMapOutput { return o } func (o LinkedServiceOdataMapOutput) MapIndex(k pulumi.StringInput) LinkedServiceOdataOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *LinkedServiceOdata { return vs[0].(map[string]*LinkedServiceOdata)[vs[1].(string)] }).(LinkedServiceOdataOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*LinkedServiceOdataInput)(nil)).Elem(), &LinkedServiceOdata{}) pulumi.RegisterInputType(reflect.TypeOf((*LinkedServiceOdataArrayInput)(nil)).Elem(), LinkedServiceOdataArray{}) pulumi.RegisterInputType(reflect.TypeOf((*LinkedServiceOdataMapInput)(nil)).Elem(), LinkedServiceOdataMap{}) pulumi.RegisterOutputType(LinkedServiceOdataOutput{}) pulumi.RegisterOutputType(LinkedServiceOdataArrayOutput{}) pulumi.RegisterOutputType(LinkedServiceOdataMapOutput{}) }
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/datafactory/dataFlow.go
sdk/go/azure/datafactory/dataFlow.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 datafactory import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a Data Flow inside an Azure Data Factory. // // ## 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/datafactory" // "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("example"), // Location: example.Location, // ResourceGroupName: example.Name, // AccountTier: pulumi.String("Standard"), // AccountReplicationType: pulumi.String("LRS"), // }) // if err != nil { // return err // } // exampleFactory, err := datafactory.NewFactory(ctx, "example", &datafactory.FactoryArgs{ // Name: pulumi.String("example"), // Location: example.Location, // ResourceGroupName: example.Name, // }) // if err != nil { // return err // } // exampleLinkedCustomService, err := datafactory.NewLinkedCustomService(ctx, "example", &datafactory.LinkedCustomServiceArgs{ // Name: pulumi.String("linked_service"), // DataFactoryId: exampleFactory.ID(), // Type: pulumi.String("AzureBlobStorage"), // TypePropertiesJson: exampleAccount.PrimaryConnectionString.ApplyT(func(primaryConnectionString string) (string, error) { // return fmt.Sprintf("{\n \\\"connectionString\\\": \\\"%v\\\"\n}\n", primaryConnectionString), nil // }).(pulumi.StringOutput), // }) // if err != nil { // return err // } // example1, err := datafactory.NewDatasetJson(ctx, "example1", &datafactory.DatasetJsonArgs{ // Name: pulumi.String("dataset1"), // DataFactoryId: exampleFactory.ID(), // LinkedServiceName: exampleLinkedCustomService.Name, // AzureBlobStorageLocation: &datafactory.DatasetJsonAzureBlobStorageLocationArgs{ // Container: pulumi.String("container"), // Path: pulumi.String("foo/bar/"), // Filename: pulumi.String("foo.txt"), // }, // Encoding: pulumi.String("UTF-8"), // }) // if err != nil { // return err // } // example2, err := datafactory.NewDatasetJson(ctx, "example2", &datafactory.DatasetJsonArgs{ // Name: pulumi.String("dataset2"), // DataFactoryId: exampleFactory.ID(), // LinkedServiceName: exampleLinkedCustomService.Name, // AzureBlobStorageLocation: &datafactory.DatasetJsonAzureBlobStorageLocationArgs{ // Container: pulumi.String("container"), // Path: pulumi.String("foo/bar/"), // Filename: pulumi.String("bar.txt"), // }, // Encoding: pulumi.String("UTF-8"), // }) // if err != nil { // return err // } // example1FlowletDataFlow, err := datafactory.NewFlowletDataFlow(ctx, "example1", &datafactory.FlowletDataFlowArgs{ // Name: pulumi.String("example"), // DataFactoryId: exampleFactory.ID(), // Sources: datafactory.FlowletDataFlowSourceArray{ // &datafactory.FlowletDataFlowSourceArgs{ // Name: pulumi.String("source1"), // LinkedService: &datafactory.FlowletDataFlowSourceLinkedServiceArgs{ // Name: exampleLinkedCustomService.Name, // }, // }, // }, // Sinks: datafactory.FlowletDataFlowSinkArray{ // &datafactory.FlowletDataFlowSinkArgs{ // Name: pulumi.String("sink1"), // LinkedService: &datafactory.FlowletDataFlowSinkLinkedServiceArgs{ // Name: exampleLinkedCustomService.Name, // }, // }, // }, // Script: pulumi.String(`source( // allowSchemaDrift: true, // validateSchema: false, // limit: 100, // ignoreNoFilesFound: false, // documentForm: 'documentPerLine') ~> source1 // // source1 sink( // // allowSchemaDrift: true, // validateSchema: false, // skipDuplicateMapInputs: true, // skipDuplicateMapOutputs: true) ~> sink1 // // `), // // }) // if err != nil { // return err // } // example2FlowletDataFlow, err := datafactory.NewFlowletDataFlow(ctx, "example2", &datafactory.FlowletDataFlowArgs{ // Name: pulumi.String("example"), // DataFactoryId: exampleFactory.ID(), // Sources: datafactory.FlowletDataFlowSourceArray{ // &datafactory.FlowletDataFlowSourceArgs{ // Name: pulumi.String("source1"), // LinkedService: &datafactory.FlowletDataFlowSourceLinkedServiceArgs{ // Name: exampleLinkedCustomService.Name, // }, // }, // }, // Sinks: datafactory.FlowletDataFlowSinkArray{ // &datafactory.FlowletDataFlowSinkArgs{ // Name: pulumi.String("sink1"), // LinkedService: &datafactory.FlowletDataFlowSinkLinkedServiceArgs{ // Name: exampleLinkedCustomService.Name, // }, // }, // }, // Script: pulumi.String(`source( // allowSchemaDrift: true, // validateSchema: false, // limit: 100, // ignoreNoFilesFound: false, // documentForm: 'documentPerLine') ~> source1 // // source1 sink( // // allowSchemaDrift: true, // validateSchema: false, // skipDuplicateMapInputs: true, // skipDuplicateMapOutputs: true) ~> sink1 // // `), // // }) // if err != nil { // return err // } // _, err = datafactory.NewDataFlow(ctx, "example", &datafactory.DataFlowArgs{ // Name: pulumi.String("example"), // DataFactoryId: exampleFactory.ID(), // Sources: datafactory.DataFlowSourceArray{ // &datafactory.DataFlowSourceArgs{ // Name: pulumi.String("source1"), // Flowlet: &datafactory.DataFlowSourceFlowletArgs{ // Name: example1FlowletDataFlow.Name, // Parameters: pulumi.StringMap{ // "Key1": pulumi.String("value1"), // }, // }, // Dataset: &datafactory.DataFlowSourceDatasetArgs{ // Name: example1.Name, // }, // }, // }, // Sinks: datafactory.DataFlowSinkArray{ // &datafactory.DataFlowSinkArgs{ // Name: pulumi.String("sink1"), // Flowlet: &datafactory.DataFlowSinkFlowletArgs{ // Name: example2FlowletDataFlow.Name, // Parameters: pulumi.StringMap{ // "Key1": pulumi.String("value1"), // }, // }, // Dataset: &datafactory.DataFlowSinkDatasetArgs{ // Name: example2.Name, // }, // }, // }, // Script: pulumi.String(`source( // allowSchemaDrift: true, // validateSchema: false, // limit: 100, // ignoreNoFilesFound: false, // documentForm: 'documentPerLine') ~> source1 // // source1 sink( // // allowSchemaDrift: true, // validateSchema: false, // skipDuplicateMapInputs: true, // skipDuplicateMapOutputs: true) ~> sink1 // // `), // // }) // 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.DataFactory` - 2018-06-01 // // ## Import // // Data Factory Data Flow can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:datafactory/dataFlow:DataFlow example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example/providers/Microsoft.DataFactory/factories/example/dataflows/example // ``` type DataFlow struct { pulumi.CustomResourceState // List of tags that can be used for describing the Data Factory Data Flow. Annotations pulumi.StringArrayOutput `pulumi:"annotations"` // The ID of Data Factory in which to associate the Data Flow with. Changing this forces a new resource. DataFactoryId pulumi.StringOutput `pulumi:"dataFactoryId"` // The description for the Data Factory Data Flow. Description pulumi.StringPtrOutput `pulumi:"description"` // The folder that this Data Flow is in. If not specified, the Data Flow will appear at the root level. Folder pulumi.StringPtrOutput `pulumi:"folder"` // Specifies the name of the Data Factory Data Flow. Changing this forces a new resource to be created. Name pulumi.StringOutput `pulumi:"name"` // The script for the Data Factory Data Flow. Script pulumi.StringPtrOutput `pulumi:"script"` // The script lines for the Data Factory Data Flow. ScriptLines pulumi.StringArrayOutput `pulumi:"scriptLines"` // One or more `sink` blocks as defined below. Sinks DataFlowSinkArrayOutput `pulumi:"sinks"` // One or more `source` blocks as defined below. Sources DataFlowSourceArrayOutput `pulumi:"sources"` // One or more `transformation` blocks as defined below. Transformations DataFlowTransformationArrayOutput `pulumi:"transformations"` } // NewDataFlow registers a new resource with the given unique name, arguments, and options. func NewDataFlow(ctx *pulumi.Context, name string, args *DataFlowArgs, opts ...pulumi.ResourceOption) (*DataFlow, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.DataFactoryId == nil { return nil, errors.New("invalid value for required argument 'DataFactoryId'") } if args.Sinks == nil { return nil, errors.New("invalid value for required argument 'Sinks'") } if args.Sources == nil { return nil, errors.New("invalid value for required argument 'Sources'") } opts = internal.PkgResourceDefaultOpts(opts) var resource DataFlow err := ctx.RegisterResource("azure:datafactory/dataFlow:DataFlow", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetDataFlow gets an existing DataFlow 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 GetDataFlow(ctx *pulumi.Context, name string, id pulumi.IDInput, state *DataFlowState, opts ...pulumi.ResourceOption) (*DataFlow, error) { var resource DataFlow err := ctx.ReadResource("azure:datafactory/dataFlow:DataFlow", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering DataFlow resources. type dataFlowState struct { // List of tags that can be used for describing the Data Factory Data Flow. Annotations []string `pulumi:"annotations"` // The ID of Data Factory in which to associate the Data Flow with. Changing this forces a new resource. DataFactoryId *string `pulumi:"dataFactoryId"` // The description for the Data Factory Data Flow. Description *string `pulumi:"description"` // The folder that this Data Flow is in. If not specified, the Data Flow will appear at the root level. Folder *string `pulumi:"folder"` // Specifies the name of the Data Factory Data Flow. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // The script for the Data Factory Data Flow. Script *string `pulumi:"script"` // The script lines for the Data Factory Data Flow. ScriptLines []string `pulumi:"scriptLines"` // One or more `sink` blocks as defined below. Sinks []DataFlowSink `pulumi:"sinks"` // One or more `source` blocks as defined below. Sources []DataFlowSource `pulumi:"sources"` // One or more `transformation` blocks as defined below. Transformations []DataFlowTransformation `pulumi:"transformations"` } type DataFlowState struct { // List of tags that can be used for describing the Data Factory Data Flow. Annotations pulumi.StringArrayInput // The ID of Data Factory in which to associate the Data Flow with. Changing this forces a new resource. DataFactoryId pulumi.StringPtrInput // The description for the Data Factory Data Flow. Description pulumi.StringPtrInput // The folder that this Data Flow is in. If not specified, the Data Flow will appear at the root level. Folder pulumi.StringPtrInput // Specifies the name of the Data Factory Data Flow. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // The script for the Data Factory Data Flow. Script pulumi.StringPtrInput // The script lines for the Data Factory Data Flow. ScriptLines pulumi.StringArrayInput // One or more `sink` blocks as defined below. Sinks DataFlowSinkArrayInput // One or more `source` blocks as defined below. Sources DataFlowSourceArrayInput // One or more `transformation` blocks as defined below. Transformations DataFlowTransformationArrayInput } func (DataFlowState) ElementType() reflect.Type { return reflect.TypeOf((*dataFlowState)(nil)).Elem() } type dataFlowArgs struct { // List of tags that can be used for describing the Data Factory Data Flow. Annotations []string `pulumi:"annotations"` // The ID of Data Factory in which to associate the Data Flow with. Changing this forces a new resource. DataFactoryId string `pulumi:"dataFactoryId"` // The description for the Data Factory Data Flow. Description *string `pulumi:"description"` // The folder that this Data Flow is in. If not specified, the Data Flow will appear at the root level. Folder *string `pulumi:"folder"` // Specifies the name of the Data Factory Data Flow. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // The script for the Data Factory Data Flow. Script *string `pulumi:"script"` // The script lines for the Data Factory Data Flow. ScriptLines []string `pulumi:"scriptLines"` // One or more `sink` blocks as defined below. Sinks []DataFlowSink `pulumi:"sinks"` // One or more `source` blocks as defined below. Sources []DataFlowSource `pulumi:"sources"` // One or more `transformation` blocks as defined below. Transformations []DataFlowTransformation `pulumi:"transformations"` } // The set of arguments for constructing a DataFlow resource. type DataFlowArgs struct { // List of tags that can be used for describing the Data Factory Data Flow. Annotations pulumi.StringArrayInput // The ID of Data Factory in which to associate the Data Flow with. Changing this forces a new resource. DataFactoryId pulumi.StringInput // The description for the Data Factory Data Flow. Description pulumi.StringPtrInput // The folder that this Data Flow is in. If not specified, the Data Flow will appear at the root level. Folder pulumi.StringPtrInput // Specifies the name of the Data Factory Data Flow. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // The script for the Data Factory Data Flow. Script pulumi.StringPtrInput // The script lines for the Data Factory Data Flow. ScriptLines pulumi.StringArrayInput // One or more `sink` blocks as defined below. Sinks DataFlowSinkArrayInput // One or more `source` blocks as defined below. Sources DataFlowSourceArrayInput // One or more `transformation` blocks as defined below. Transformations DataFlowTransformationArrayInput } func (DataFlowArgs) ElementType() reflect.Type { return reflect.TypeOf((*dataFlowArgs)(nil)).Elem() } type DataFlowInput interface { pulumi.Input ToDataFlowOutput() DataFlowOutput ToDataFlowOutputWithContext(ctx context.Context) DataFlowOutput } func (*DataFlow) ElementType() reflect.Type { return reflect.TypeOf((**DataFlow)(nil)).Elem() } func (i *DataFlow) ToDataFlowOutput() DataFlowOutput { return i.ToDataFlowOutputWithContext(context.Background()) } func (i *DataFlow) ToDataFlowOutputWithContext(ctx context.Context) DataFlowOutput { return pulumi.ToOutputWithContext(ctx, i).(DataFlowOutput) } // DataFlowArrayInput is an input type that accepts DataFlowArray and DataFlowArrayOutput values. // You can construct a concrete instance of `DataFlowArrayInput` via: // // DataFlowArray{ DataFlowArgs{...} } type DataFlowArrayInput interface { pulumi.Input ToDataFlowArrayOutput() DataFlowArrayOutput ToDataFlowArrayOutputWithContext(context.Context) DataFlowArrayOutput } type DataFlowArray []DataFlowInput func (DataFlowArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*DataFlow)(nil)).Elem() } func (i DataFlowArray) ToDataFlowArrayOutput() DataFlowArrayOutput { return i.ToDataFlowArrayOutputWithContext(context.Background()) } func (i DataFlowArray) ToDataFlowArrayOutputWithContext(ctx context.Context) DataFlowArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(DataFlowArrayOutput) } // DataFlowMapInput is an input type that accepts DataFlowMap and DataFlowMapOutput values. // You can construct a concrete instance of `DataFlowMapInput` via: // // DataFlowMap{ "key": DataFlowArgs{...} } type DataFlowMapInput interface { pulumi.Input ToDataFlowMapOutput() DataFlowMapOutput ToDataFlowMapOutputWithContext(context.Context) DataFlowMapOutput } type DataFlowMap map[string]DataFlowInput func (DataFlowMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*DataFlow)(nil)).Elem() } func (i DataFlowMap) ToDataFlowMapOutput() DataFlowMapOutput { return i.ToDataFlowMapOutputWithContext(context.Background()) } func (i DataFlowMap) ToDataFlowMapOutputWithContext(ctx context.Context) DataFlowMapOutput { return pulumi.ToOutputWithContext(ctx, i).(DataFlowMapOutput) } type DataFlowOutput struct{ *pulumi.OutputState } func (DataFlowOutput) ElementType() reflect.Type { return reflect.TypeOf((**DataFlow)(nil)).Elem() } func (o DataFlowOutput) ToDataFlowOutput() DataFlowOutput { return o } func (o DataFlowOutput) ToDataFlowOutputWithContext(ctx context.Context) DataFlowOutput { return o } // List of tags that can be used for describing the Data Factory Data Flow. func (o DataFlowOutput) Annotations() pulumi.StringArrayOutput { return o.ApplyT(func(v *DataFlow) pulumi.StringArrayOutput { return v.Annotations }).(pulumi.StringArrayOutput) } // The ID of Data Factory in which to associate the Data Flow with. Changing this forces a new resource. func (o DataFlowOutput) DataFactoryId() pulumi.StringOutput { return o.ApplyT(func(v *DataFlow) pulumi.StringOutput { return v.DataFactoryId }).(pulumi.StringOutput) } // The description for the Data Factory Data Flow. func (o DataFlowOutput) Description() pulumi.StringPtrOutput { return o.ApplyT(func(v *DataFlow) pulumi.StringPtrOutput { return v.Description }).(pulumi.StringPtrOutput) } // The folder that this Data Flow is in. If not specified, the Data Flow will appear at the root level. func (o DataFlowOutput) Folder() pulumi.StringPtrOutput { return o.ApplyT(func(v *DataFlow) pulumi.StringPtrOutput { return v.Folder }).(pulumi.StringPtrOutput) } // Specifies the name of the Data Factory Data Flow. Changing this forces a new resource to be created. func (o DataFlowOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *DataFlow) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // The script for the Data Factory Data Flow. func (o DataFlowOutput) Script() pulumi.StringPtrOutput { return o.ApplyT(func(v *DataFlow) pulumi.StringPtrOutput { return v.Script }).(pulumi.StringPtrOutput) } // The script lines for the Data Factory Data Flow. func (o DataFlowOutput) ScriptLines() pulumi.StringArrayOutput { return o.ApplyT(func(v *DataFlow) pulumi.StringArrayOutput { return v.ScriptLines }).(pulumi.StringArrayOutput) } // One or more `sink` blocks as defined below. func (o DataFlowOutput) Sinks() DataFlowSinkArrayOutput { return o.ApplyT(func(v *DataFlow) DataFlowSinkArrayOutput { return v.Sinks }).(DataFlowSinkArrayOutput) } // One or more `source` blocks as defined below. func (o DataFlowOutput) Sources() DataFlowSourceArrayOutput { return o.ApplyT(func(v *DataFlow) DataFlowSourceArrayOutput { return v.Sources }).(DataFlowSourceArrayOutput) } // One or more `transformation` blocks as defined below. func (o DataFlowOutput) Transformations() DataFlowTransformationArrayOutput { return o.ApplyT(func(v *DataFlow) DataFlowTransformationArrayOutput { return v.Transformations }).(DataFlowTransformationArrayOutput) } type DataFlowArrayOutput struct{ *pulumi.OutputState } func (DataFlowArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*DataFlow)(nil)).Elem() } func (o DataFlowArrayOutput) ToDataFlowArrayOutput() DataFlowArrayOutput { return o } func (o DataFlowArrayOutput) ToDataFlowArrayOutputWithContext(ctx context.Context) DataFlowArrayOutput { return o } func (o DataFlowArrayOutput) Index(i pulumi.IntInput) DataFlowOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *DataFlow { return vs[0].([]*DataFlow)[vs[1].(int)] }).(DataFlowOutput) } type DataFlowMapOutput struct{ *pulumi.OutputState } func (DataFlowMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*DataFlow)(nil)).Elem() } func (o DataFlowMapOutput) ToDataFlowMapOutput() DataFlowMapOutput { return o } func (o DataFlowMapOutput) ToDataFlowMapOutputWithContext(ctx context.Context) DataFlowMapOutput { return o } func (o DataFlowMapOutput) MapIndex(k pulumi.StringInput) DataFlowOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *DataFlow { return vs[0].(map[string]*DataFlow)[vs[1].(string)] }).(DataFlowOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*DataFlowInput)(nil)).Elem(), &DataFlow{}) pulumi.RegisterInputType(reflect.TypeOf((*DataFlowArrayInput)(nil)).Elem(), DataFlowArray{}) pulumi.RegisterInputType(reflect.TypeOf((*DataFlowMapInput)(nil)).Elem(), DataFlowMap{}) pulumi.RegisterOutputType(DataFlowOutput{}) pulumi.RegisterOutputType(DataFlowArrayOutput{}) pulumi.RegisterOutputType(DataFlowMapOutput{}) }
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/datafactory/getFactory.go
sdk/go/azure/datafactory/getFactory.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 datafactory 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 Data Factory (Version 2). // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/datafactory" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { // example, err := datafactory.LookupFactory(ctx, &datafactory.LookupFactoryArgs{ // Name: "existing-adf", // ResourceGroupName: "existing-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.DataFactory` - 2018-06-01 func LookupFactory(ctx *pulumi.Context, args *LookupFactoryArgs, opts ...pulumi.InvokeOption) (*LookupFactoryResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupFactoryResult err := ctx.Invoke("azure:datafactory/getFactory:getFactory", args, &rv, opts...) if err != nil { return nil, err } return &rv, nil } // A collection of arguments for invoking getFactory. type LookupFactoryArgs struct { // The name of this Azure Data Factory. Name string `pulumi:"name"` // The name of the Resource Group where the Azure Data Factory exists. ResourceGroupName string `pulumi:"resourceGroupName"` } // A collection of values returned by getFactory. type LookupFactoryResult struct { // A `githubConfiguration` block as defined below. GithubConfigurations []GetFactoryGithubConfiguration `pulumi:"githubConfigurations"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` // An `identity` block as defined below. Identities []GetFactoryIdentity `pulumi:"identities"` // The Azure Region where the Azure Data Factory exists. Location string `pulumi:"location"` Name string `pulumi:"name"` ResourceGroupName string `pulumi:"resourceGroupName"` // A mapping of tags assigned to the Azure Data Factory. Tags map[string]string `pulumi:"tags"` // A `vstsConfiguration` block as defined below. VstsConfigurations []GetFactoryVstsConfiguration `pulumi:"vstsConfigurations"` } func LookupFactoryOutput(ctx *pulumi.Context, args LookupFactoryOutputArgs, opts ...pulumi.InvokeOption) LookupFactoryResultOutput { return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupFactoryResultOutput, error) { args := v.(LookupFactoryArgs) options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} return ctx.InvokeOutput("azure:datafactory/getFactory:getFactory", args, LookupFactoryResultOutput{}, options).(LookupFactoryResultOutput), nil }).(LookupFactoryResultOutput) } // A collection of arguments for invoking getFactory. type LookupFactoryOutputArgs struct { // The name of this Azure Data Factory. Name pulumi.StringInput `pulumi:"name"` // The name of the Resource Group where the Azure Data Factory exists. ResourceGroupName pulumi.StringInput `pulumi:"resourceGroupName"` } func (LookupFactoryOutputArgs) ElementType() reflect.Type { return reflect.TypeOf((*LookupFactoryArgs)(nil)).Elem() } // A collection of values returned by getFactory. type LookupFactoryResultOutput struct{ *pulumi.OutputState } func (LookupFactoryResultOutput) ElementType() reflect.Type { return reflect.TypeOf((*LookupFactoryResult)(nil)).Elem() } func (o LookupFactoryResultOutput) ToLookupFactoryResultOutput() LookupFactoryResultOutput { return o } func (o LookupFactoryResultOutput) ToLookupFactoryResultOutputWithContext(ctx context.Context) LookupFactoryResultOutput { return o } // A `githubConfiguration` block as defined below. func (o LookupFactoryResultOutput) GithubConfigurations() GetFactoryGithubConfigurationArrayOutput { return o.ApplyT(func(v LookupFactoryResult) []GetFactoryGithubConfiguration { return v.GithubConfigurations }).(GetFactoryGithubConfigurationArrayOutput) } // The provider-assigned unique ID for this managed resource. func (o LookupFactoryResultOutput) Id() pulumi.StringOutput { return o.ApplyT(func(v LookupFactoryResult) string { return v.Id }).(pulumi.StringOutput) } // An `identity` block as defined below. func (o LookupFactoryResultOutput) Identities() GetFactoryIdentityArrayOutput { return o.ApplyT(func(v LookupFactoryResult) []GetFactoryIdentity { return v.Identities }).(GetFactoryIdentityArrayOutput) } // The Azure Region where the Azure Data Factory exists. func (o LookupFactoryResultOutput) Location() pulumi.StringOutput { return o.ApplyT(func(v LookupFactoryResult) string { return v.Location }).(pulumi.StringOutput) } func (o LookupFactoryResultOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v LookupFactoryResult) string { return v.Name }).(pulumi.StringOutput) } func (o LookupFactoryResultOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v LookupFactoryResult) string { return v.ResourceGroupName }).(pulumi.StringOutput) } // A mapping of tags assigned to the Azure Data Factory. func (o LookupFactoryResultOutput) Tags() pulumi.StringMapOutput { return o.ApplyT(func(v LookupFactoryResult) map[string]string { return v.Tags }).(pulumi.StringMapOutput) } // A `vstsConfiguration` block as defined below. func (o LookupFactoryResultOutput) VstsConfigurations() GetFactoryVstsConfigurationArrayOutput { return o.ApplyT(func(v LookupFactoryResult) []GetFactoryVstsConfiguration { return v.VstsConfigurations }).(GetFactoryVstsConfigurationArrayOutput) } func init() { pulumi.RegisterOutputType(LookupFactoryResultOutput{}) }
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/datafactory/linkedCustomService.go
sdk/go/azure/datafactory/linkedCustomService.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 datafactory import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a Linked Service (connection) between a resource and Azure Data Factory. This is a generic resource that supports all different Linked Service Types. // // ## 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/datafactory" // "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 // } // exampleFactory, err := datafactory.NewFactory(ctx, "example", &datafactory.FactoryArgs{ // Name: pulumi.String("example"), // Location: example.Location, // ResourceGroupName: example.Name, // Identity: &datafactory.FactoryIdentityArgs{ // Type: pulumi.String("SystemAssigned"), // }, // }) // if err != nil { // return err // } // exampleAccount, err := storage.NewAccount(ctx, "example", &storage.AccountArgs{ // Name: pulumi.String("example"), // ResourceGroupName: example.Name, // Location: example.Location, // AccountKind: pulumi.String("BlobStorage"), // AccountTier: pulumi.String("Standard"), // AccountReplicationType: pulumi.String("LRS"), // }) // if err != nil { // return err // } // _, err = datafactory.NewLinkedCustomService(ctx, "example", &datafactory.LinkedCustomServiceArgs{ // Name: pulumi.String("example"), // DataFactoryId: exampleFactory.ID(), // Type: pulumi.String("AzureBlobStorage"), // Description: pulumi.String("test description"), // TypePropertiesJson: exampleAccount.PrimaryConnectionString.ApplyT(func(primaryConnectionString string) (string, error) { // return fmt.Sprintf("{\n \\\"connectionString\\\":\\\"%v\\\"\n}\n", primaryConnectionString), nil // }).(pulumi.StringOutput), // Parameters: pulumi.StringMap{ // "foo": pulumi.String("bar"), // "Env": pulumi.String("Test"), // }, // Annotations: pulumi.StringArray{ // pulumi.String("test1"), // pulumi.String("test2"), // pulumi.String("test3"), // }, // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## Import // // Data Factory Linked Service's can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:datafactory/linkedCustomService:LinkedCustomService example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example/providers/Microsoft.DataFactory/factories/example/linkedservices/example // ``` type LinkedCustomService struct { pulumi.CustomResourceState // A map of additional properties to associate with the Data Factory Linked Service. AdditionalProperties pulumi.StringMapOutput `pulumi:"additionalProperties"` // List of tags that can be used for describing the Data Factory Linked Service. Annotations pulumi.StringArrayOutput `pulumi:"annotations"` // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId pulumi.StringOutput `pulumi:"dataFactoryId"` // The description for the Data Factory Linked Service. Description pulumi.StringPtrOutput `pulumi:"description"` // An `integrationRuntime` block as defined below. IntegrationRuntime LinkedCustomServiceIntegrationRuntimePtrOutput `pulumi:"integrationRuntime"` // Specifies the name of the Data Factory Linked Service. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringOutput `pulumi:"name"` // A map of parameters to associate with the Data Factory Linked Service. Parameters pulumi.StringMapOutput `pulumi:"parameters"` // The type of data stores that will be connected to Data Factory. For full list of supported data stores, please refer to [Azure Data Factory connector](https://docs.microsoft.com/azure/data-factory/connector-overview). Please refer to Microsoft.DataFactory factories/linkedservices for the type values syntax. Changing this forces a new resource to be created. Type pulumi.StringOutput `pulumi:"type"` // A JSON object that contains the properties of the Data Factory Linked Service. TypePropertiesJson pulumi.StringOutput `pulumi:"typePropertiesJson"` } // NewLinkedCustomService registers a new resource with the given unique name, arguments, and options. func NewLinkedCustomService(ctx *pulumi.Context, name string, args *LinkedCustomServiceArgs, opts ...pulumi.ResourceOption) (*LinkedCustomService, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.DataFactoryId == nil { return nil, errors.New("invalid value for required argument 'DataFactoryId'") } if args.Type == nil { return nil, errors.New("invalid value for required argument 'Type'") } if args.TypePropertiesJson == nil { return nil, errors.New("invalid value for required argument 'TypePropertiesJson'") } opts = internal.PkgResourceDefaultOpts(opts) var resource LinkedCustomService err := ctx.RegisterResource("azure:datafactory/linkedCustomService:LinkedCustomService", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetLinkedCustomService gets an existing LinkedCustomService 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 GetLinkedCustomService(ctx *pulumi.Context, name string, id pulumi.IDInput, state *LinkedCustomServiceState, opts ...pulumi.ResourceOption) (*LinkedCustomService, error) { var resource LinkedCustomService err := ctx.ReadResource("azure:datafactory/linkedCustomService:LinkedCustomService", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering LinkedCustomService resources. type linkedCustomServiceState struct { // A map of additional properties to associate with the Data Factory Linked Service. AdditionalProperties map[string]string `pulumi:"additionalProperties"` // List of tags that can be used for describing the Data Factory Linked Service. Annotations []string `pulumi:"annotations"` // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId *string `pulumi:"dataFactoryId"` // The description for the Data Factory Linked Service. Description *string `pulumi:"description"` // An `integrationRuntime` block as defined below. IntegrationRuntime *LinkedCustomServiceIntegrationRuntime `pulumi:"integrationRuntime"` // Specifies the name of the Data Factory Linked Service. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name *string `pulumi:"name"` // A map of parameters to associate with the Data Factory Linked Service. Parameters map[string]string `pulumi:"parameters"` // The type of data stores that will be connected to Data Factory. For full list of supported data stores, please refer to [Azure Data Factory connector](https://docs.microsoft.com/azure/data-factory/connector-overview). Please refer to Microsoft.DataFactory factories/linkedservices for the type values syntax. Changing this forces a new resource to be created. Type *string `pulumi:"type"` // A JSON object that contains the properties of the Data Factory Linked Service. TypePropertiesJson *string `pulumi:"typePropertiesJson"` } type LinkedCustomServiceState struct { // A map of additional properties to associate with the Data Factory Linked Service. AdditionalProperties pulumi.StringMapInput // List of tags that can be used for describing the Data Factory Linked Service. Annotations pulumi.StringArrayInput // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId pulumi.StringPtrInput // The description for the Data Factory Linked Service. Description pulumi.StringPtrInput // An `integrationRuntime` block as defined below. IntegrationRuntime LinkedCustomServiceIntegrationRuntimePtrInput // Specifies the name of the Data Factory Linked Service. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringPtrInput // A map of parameters to associate with the Data Factory Linked Service. Parameters pulumi.StringMapInput // The type of data stores that will be connected to Data Factory. For full list of supported data stores, please refer to [Azure Data Factory connector](https://docs.microsoft.com/azure/data-factory/connector-overview). Please refer to Microsoft.DataFactory factories/linkedservices for the type values syntax. Changing this forces a new resource to be created. Type pulumi.StringPtrInput // A JSON object that contains the properties of the Data Factory Linked Service. TypePropertiesJson pulumi.StringPtrInput } func (LinkedCustomServiceState) ElementType() reflect.Type { return reflect.TypeOf((*linkedCustomServiceState)(nil)).Elem() } type linkedCustomServiceArgs struct { // A map of additional properties to associate with the Data Factory Linked Service. AdditionalProperties map[string]string `pulumi:"additionalProperties"` // List of tags that can be used for describing the Data Factory Linked Service. Annotations []string `pulumi:"annotations"` // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId string `pulumi:"dataFactoryId"` // The description for the Data Factory Linked Service. Description *string `pulumi:"description"` // An `integrationRuntime` block as defined below. IntegrationRuntime *LinkedCustomServiceIntegrationRuntime `pulumi:"integrationRuntime"` // Specifies the name of the Data Factory Linked Service. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name *string `pulumi:"name"` // A map of parameters to associate with the Data Factory Linked Service. Parameters map[string]string `pulumi:"parameters"` // The type of data stores that will be connected to Data Factory. For full list of supported data stores, please refer to [Azure Data Factory connector](https://docs.microsoft.com/azure/data-factory/connector-overview). Please refer to Microsoft.DataFactory factories/linkedservices for the type values syntax. Changing this forces a new resource to be created. Type string `pulumi:"type"` // A JSON object that contains the properties of the Data Factory Linked Service. TypePropertiesJson string `pulumi:"typePropertiesJson"` } // The set of arguments for constructing a LinkedCustomService resource. type LinkedCustomServiceArgs struct { // A map of additional properties to associate with the Data Factory Linked Service. AdditionalProperties pulumi.StringMapInput // List of tags that can be used for describing the Data Factory Linked Service. Annotations pulumi.StringArrayInput // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId pulumi.StringInput // The description for the Data Factory Linked Service. Description pulumi.StringPtrInput // An `integrationRuntime` block as defined below. IntegrationRuntime LinkedCustomServiceIntegrationRuntimePtrInput // Specifies the name of the Data Factory Linked Service. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringPtrInput // A map of parameters to associate with the Data Factory Linked Service. Parameters pulumi.StringMapInput // The type of data stores that will be connected to Data Factory. For full list of supported data stores, please refer to [Azure Data Factory connector](https://docs.microsoft.com/azure/data-factory/connector-overview). Please refer to Microsoft.DataFactory factories/linkedservices for the type values syntax. Changing this forces a new resource to be created. Type pulumi.StringInput // A JSON object that contains the properties of the Data Factory Linked Service. TypePropertiesJson pulumi.StringInput } func (LinkedCustomServiceArgs) ElementType() reflect.Type { return reflect.TypeOf((*linkedCustomServiceArgs)(nil)).Elem() } type LinkedCustomServiceInput interface { pulumi.Input ToLinkedCustomServiceOutput() LinkedCustomServiceOutput ToLinkedCustomServiceOutputWithContext(ctx context.Context) LinkedCustomServiceOutput } func (*LinkedCustomService) ElementType() reflect.Type { return reflect.TypeOf((**LinkedCustomService)(nil)).Elem() } func (i *LinkedCustomService) ToLinkedCustomServiceOutput() LinkedCustomServiceOutput { return i.ToLinkedCustomServiceOutputWithContext(context.Background()) } func (i *LinkedCustomService) ToLinkedCustomServiceOutputWithContext(ctx context.Context) LinkedCustomServiceOutput { return pulumi.ToOutputWithContext(ctx, i).(LinkedCustomServiceOutput) } // LinkedCustomServiceArrayInput is an input type that accepts LinkedCustomServiceArray and LinkedCustomServiceArrayOutput values. // You can construct a concrete instance of `LinkedCustomServiceArrayInput` via: // // LinkedCustomServiceArray{ LinkedCustomServiceArgs{...} } type LinkedCustomServiceArrayInput interface { pulumi.Input ToLinkedCustomServiceArrayOutput() LinkedCustomServiceArrayOutput ToLinkedCustomServiceArrayOutputWithContext(context.Context) LinkedCustomServiceArrayOutput } type LinkedCustomServiceArray []LinkedCustomServiceInput func (LinkedCustomServiceArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*LinkedCustomService)(nil)).Elem() } func (i LinkedCustomServiceArray) ToLinkedCustomServiceArrayOutput() LinkedCustomServiceArrayOutput { return i.ToLinkedCustomServiceArrayOutputWithContext(context.Background()) } func (i LinkedCustomServiceArray) ToLinkedCustomServiceArrayOutputWithContext(ctx context.Context) LinkedCustomServiceArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(LinkedCustomServiceArrayOutput) } // LinkedCustomServiceMapInput is an input type that accepts LinkedCustomServiceMap and LinkedCustomServiceMapOutput values. // You can construct a concrete instance of `LinkedCustomServiceMapInput` via: // // LinkedCustomServiceMap{ "key": LinkedCustomServiceArgs{...} } type LinkedCustomServiceMapInput interface { pulumi.Input ToLinkedCustomServiceMapOutput() LinkedCustomServiceMapOutput ToLinkedCustomServiceMapOutputWithContext(context.Context) LinkedCustomServiceMapOutput } type LinkedCustomServiceMap map[string]LinkedCustomServiceInput func (LinkedCustomServiceMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*LinkedCustomService)(nil)).Elem() } func (i LinkedCustomServiceMap) ToLinkedCustomServiceMapOutput() LinkedCustomServiceMapOutput { return i.ToLinkedCustomServiceMapOutputWithContext(context.Background()) } func (i LinkedCustomServiceMap) ToLinkedCustomServiceMapOutputWithContext(ctx context.Context) LinkedCustomServiceMapOutput { return pulumi.ToOutputWithContext(ctx, i).(LinkedCustomServiceMapOutput) } type LinkedCustomServiceOutput struct{ *pulumi.OutputState } func (LinkedCustomServiceOutput) ElementType() reflect.Type { return reflect.TypeOf((**LinkedCustomService)(nil)).Elem() } func (o LinkedCustomServiceOutput) ToLinkedCustomServiceOutput() LinkedCustomServiceOutput { return o } func (o LinkedCustomServiceOutput) ToLinkedCustomServiceOutputWithContext(ctx context.Context) LinkedCustomServiceOutput { return o } // A map of additional properties to associate with the Data Factory Linked Service. func (o LinkedCustomServiceOutput) AdditionalProperties() pulumi.StringMapOutput { return o.ApplyT(func(v *LinkedCustomService) pulumi.StringMapOutput { return v.AdditionalProperties }).(pulumi.StringMapOutput) } // List of tags that can be used for describing the Data Factory Linked Service. func (o LinkedCustomServiceOutput) Annotations() pulumi.StringArrayOutput { return o.ApplyT(func(v *LinkedCustomService) pulumi.StringArrayOutput { return v.Annotations }).(pulumi.StringArrayOutput) } // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. func (o LinkedCustomServiceOutput) DataFactoryId() pulumi.StringOutput { return o.ApplyT(func(v *LinkedCustomService) pulumi.StringOutput { return v.DataFactoryId }).(pulumi.StringOutput) } // The description for the Data Factory Linked Service. func (o LinkedCustomServiceOutput) Description() pulumi.StringPtrOutput { return o.ApplyT(func(v *LinkedCustomService) pulumi.StringPtrOutput { return v.Description }).(pulumi.StringPtrOutput) } // An `integrationRuntime` block as defined below. func (o LinkedCustomServiceOutput) IntegrationRuntime() LinkedCustomServiceIntegrationRuntimePtrOutput { return o.ApplyT(func(v *LinkedCustomService) LinkedCustomServiceIntegrationRuntimePtrOutput { return v.IntegrationRuntime }).(LinkedCustomServiceIntegrationRuntimePtrOutput) } // Specifies the name of the Data Factory Linked Service. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. func (o LinkedCustomServiceOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *LinkedCustomService) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // A map of parameters to associate with the Data Factory Linked Service. func (o LinkedCustomServiceOutput) Parameters() pulumi.StringMapOutput { return o.ApplyT(func(v *LinkedCustomService) pulumi.StringMapOutput { return v.Parameters }).(pulumi.StringMapOutput) } // The type of data stores that will be connected to Data Factory. For full list of supported data stores, please refer to [Azure Data Factory connector](https://docs.microsoft.com/azure/data-factory/connector-overview). Please refer to Microsoft.DataFactory factories/linkedservices for the type values syntax. Changing this forces a new resource to be created. func (o LinkedCustomServiceOutput) Type() pulumi.StringOutput { return o.ApplyT(func(v *LinkedCustomService) pulumi.StringOutput { return v.Type }).(pulumi.StringOutput) } // A JSON object that contains the properties of the Data Factory Linked Service. func (o LinkedCustomServiceOutput) TypePropertiesJson() pulumi.StringOutput { return o.ApplyT(func(v *LinkedCustomService) pulumi.StringOutput { return v.TypePropertiesJson }).(pulumi.StringOutput) } type LinkedCustomServiceArrayOutput struct{ *pulumi.OutputState } func (LinkedCustomServiceArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*LinkedCustomService)(nil)).Elem() } func (o LinkedCustomServiceArrayOutput) ToLinkedCustomServiceArrayOutput() LinkedCustomServiceArrayOutput { return o } func (o LinkedCustomServiceArrayOutput) ToLinkedCustomServiceArrayOutputWithContext(ctx context.Context) LinkedCustomServiceArrayOutput { return o } func (o LinkedCustomServiceArrayOutput) Index(i pulumi.IntInput) LinkedCustomServiceOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *LinkedCustomService { return vs[0].([]*LinkedCustomService)[vs[1].(int)] }).(LinkedCustomServiceOutput) } type LinkedCustomServiceMapOutput struct{ *pulumi.OutputState } func (LinkedCustomServiceMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*LinkedCustomService)(nil)).Elem() } func (o LinkedCustomServiceMapOutput) ToLinkedCustomServiceMapOutput() LinkedCustomServiceMapOutput { return o } func (o LinkedCustomServiceMapOutput) ToLinkedCustomServiceMapOutputWithContext(ctx context.Context) LinkedCustomServiceMapOutput { return o } func (o LinkedCustomServiceMapOutput) MapIndex(k pulumi.StringInput) LinkedCustomServiceOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *LinkedCustomService { return vs[0].(map[string]*LinkedCustomService)[vs[1].(string)] }).(LinkedCustomServiceOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*LinkedCustomServiceInput)(nil)).Elem(), &LinkedCustomService{}) pulumi.RegisterInputType(reflect.TypeOf((*LinkedCustomServiceArrayInput)(nil)).Elem(), LinkedCustomServiceArray{}) pulumi.RegisterInputType(reflect.TypeOf((*LinkedCustomServiceMapInput)(nil)).Elem(), LinkedCustomServiceMap{}) pulumi.RegisterOutputType(LinkedCustomServiceOutput{}) pulumi.RegisterOutputType(LinkedCustomServiceArrayOutput{}) pulumi.RegisterOutputType(LinkedCustomServiceMapOutput{}) }
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/datafactory/triggerBlobEvent.go
sdk/go/azure/datafactory/triggerBlobEvent.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 datafactory import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a Blob Event Trigger inside an Azure Data Factory. // // ## 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/datafactory" // "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 // } // exampleFactory, err := datafactory.NewFactory(ctx, "example", &datafactory.FactoryArgs{ // Name: pulumi.String("example"), // Location: example.Location, // ResourceGroupName: example.Name, // }) // if err != nil { // return err // } // examplePipeline, err := datafactory.NewPipeline(ctx, "example", &datafactory.PipelineArgs{ // Name: pulumi.String("example"), // DataFactoryId: exampleFactory.ID(), // }) // if err != nil { // return err // } // exampleAccount, err := storage.NewAccount(ctx, "example", &storage.AccountArgs{ // Name: pulumi.String("example"), // ResourceGroupName: example.Name, // Location: example.Location, // AccountTier: pulumi.String("Standard"), // AccountReplicationType: pulumi.String("LRS"), // }) // if err != nil { // return err // } // _, err = datafactory.NewTriggerBlobEvent(ctx, "example", &datafactory.TriggerBlobEventArgs{ // Name: pulumi.String("example"), // DataFactoryId: exampleFactory.ID(), // StorageAccountId: exampleAccount.ID(), // Events: pulumi.StringArray{ // pulumi.String("Microsoft.Storage.BlobCreated"), // pulumi.String("Microsoft.Storage.BlobDeleted"), // }, // BlobPathEndsWith: pulumi.String(".txt"), // IgnoreEmptyBlobs: pulumi.Bool(true), // Activated: pulumi.Bool(true), // Annotations: pulumi.StringArray{ // pulumi.String("test1"), // pulumi.String("test2"), // pulumi.String("test3"), // }, // Description: pulumi.String("example description"), // Pipelines: datafactory.TriggerBlobEventPipelineArray{ // &datafactory.TriggerBlobEventPipelineArgs{ // Name: examplePipeline.Name, // Parameters: pulumi.StringMap{ // "Env": pulumi.String("Prod"), // }, // }, // }, // AdditionalProperties: pulumi.StringMap{ // "foo": pulumi.String("foo1"), // "bar": pulumi.String("bar2"), // }, // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## Import // // Data Factory Blob Event Trigger can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:datafactory/triggerBlobEvent:TriggerBlobEvent example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example/providers/Microsoft.DataFactory/factories/example/triggers/example // ``` type TriggerBlobEvent struct { pulumi.CustomResourceState // Specifies if the Data Factory Blob Event Trigger is activated. Defaults to `true`. Activated pulumi.BoolPtrOutput `pulumi:"activated"` // A map of additional properties to associate with the Data Factory Blob Event Trigger. AdditionalProperties pulumi.StringMapOutput `pulumi:"additionalProperties"` // List of tags that can be used for describing the Data Factory Blob Event Trigger. Annotations pulumi.StringArrayOutput `pulumi:"annotations"` // The pattern that blob path starts with for trigger to fire. BlobPathBeginsWith pulumi.StringPtrOutput `pulumi:"blobPathBeginsWith"` // The pattern that blob path ends with for trigger to fire. // // > **Note:** At least one of `blobPathBeginsWith` and `blobPathEndsWith` must be set. BlobPathEndsWith pulumi.StringPtrOutput `pulumi:"blobPathEndsWith"` // The ID of Data Factory in which to associate the Trigger with. Changing this forces a new resource. DataFactoryId pulumi.StringOutput `pulumi:"dataFactoryId"` // The description for the Data Factory Blob Event Trigger. Description pulumi.StringPtrOutput `pulumi:"description"` // List of events that will fire this trigger. Possible values are `Microsoft.Storage.BlobCreated` and `Microsoft.Storage.BlobDeleted`. Events pulumi.StringArrayOutput `pulumi:"events"` // are blobs with zero bytes ignored? IgnoreEmptyBlobs pulumi.BoolPtrOutput `pulumi:"ignoreEmptyBlobs"` // Specifies the name of the Data Factory Blob Event Trigger. Changing this forces a new resource to be created. Name pulumi.StringOutput `pulumi:"name"` // One or more `pipeline` blocks as defined below. Pipelines TriggerBlobEventPipelineArrayOutput `pulumi:"pipelines"` // The ID of Storage Account in which blob event will be listened. Changing this forces a new resource. StorageAccountId pulumi.StringOutput `pulumi:"storageAccountId"` } // NewTriggerBlobEvent registers a new resource with the given unique name, arguments, and options. func NewTriggerBlobEvent(ctx *pulumi.Context, name string, args *TriggerBlobEventArgs, opts ...pulumi.ResourceOption) (*TriggerBlobEvent, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.DataFactoryId == nil { return nil, errors.New("invalid value for required argument 'DataFactoryId'") } if args.Events == nil { return nil, errors.New("invalid value for required argument 'Events'") } if args.Pipelines == nil { return nil, errors.New("invalid value for required argument 'Pipelines'") } if args.StorageAccountId == nil { return nil, errors.New("invalid value for required argument 'StorageAccountId'") } opts = internal.PkgResourceDefaultOpts(opts) var resource TriggerBlobEvent err := ctx.RegisterResource("azure:datafactory/triggerBlobEvent:TriggerBlobEvent", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetTriggerBlobEvent gets an existing TriggerBlobEvent 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 GetTriggerBlobEvent(ctx *pulumi.Context, name string, id pulumi.IDInput, state *TriggerBlobEventState, opts ...pulumi.ResourceOption) (*TriggerBlobEvent, error) { var resource TriggerBlobEvent err := ctx.ReadResource("azure:datafactory/triggerBlobEvent:TriggerBlobEvent", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering TriggerBlobEvent resources. type triggerBlobEventState struct { // Specifies if the Data Factory Blob Event Trigger is activated. Defaults to `true`. Activated *bool `pulumi:"activated"` // A map of additional properties to associate with the Data Factory Blob Event Trigger. AdditionalProperties map[string]string `pulumi:"additionalProperties"` // List of tags that can be used for describing the Data Factory Blob Event Trigger. Annotations []string `pulumi:"annotations"` // The pattern that blob path starts with for trigger to fire. BlobPathBeginsWith *string `pulumi:"blobPathBeginsWith"` // The pattern that blob path ends with for trigger to fire. // // > **Note:** At least one of `blobPathBeginsWith` and `blobPathEndsWith` must be set. BlobPathEndsWith *string `pulumi:"blobPathEndsWith"` // The ID of Data Factory in which to associate the Trigger with. Changing this forces a new resource. DataFactoryId *string `pulumi:"dataFactoryId"` // The description for the Data Factory Blob Event Trigger. Description *string `pulumi:"description"` // List of events that will fire this trigger. Possible values are `Microsoft.Storage.BlobCreated` and `Microsoft.Storage.BlobDeleted`. Events []string `pulumi:"events"` // are blobs with zero bytes ignored? IgnoreEmptyBlobs *bool `pulumi:"ignoreEmptyBlobs"` // Specifies the name of the Data Factory Blob Event Trigger. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // One or more `pipeline` blocks as defined below. Pipelines []TriggerBlobEventPipeline `pulumi:"pipelines"` // The ID of Storage Account in which blob event will be listened. Changing this forces a new resource. StorageAccountId *string `pulumi:"storageAccountId"` } type TriggerBlobEventState struct { // Specifies if the Data Factory Blob Event Trigger is activated. Defaults to `true`. Activated pulumi.BoolPtrInput // A map of additional properties to associate with the Data Factory Blob Event Trigger. AdditionalProperties pulumi.StringMapInput // List of tags that can be used for describing the Data Factory Blob Event Trigger. Annotations pulumi.StringArrayInput // The pattern that blob path starts with for trigger to fire. BlobPathBeginsWith pulumi.StringPtrInput // The pattern that blob path ends with for trigger to fire. // // > **Note:** At least one of `blobPathBeginsWith` and `blobPathEndsWith` must be set. BlobPathEndsWith pulumi.StringPtrInput // The ID of Data Factory in which to associate the Trigger with. Changing this forces a new resource. DataFactoryId pulumi.StringPtrInput // The description for the Data Factory Blob Event Trigger. Description pulumi.StringPtrInput // List of events that will fire this trigger. Possible values are `Microsoft.Storage.BlobCreated` and `Microsoft.Storage.BlobDeleted`. Events pulumi.StringArrayInput // are blobs with zero bytes ignored? IgnoreEmptyBlobs pulumi.BoolPtrInput // Specifies the name of the Data Factory Blob Event Trigger. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // One or more `pipeline` blocks as defined below. Pipelines TriggerBlobEventPipelineArrayInput // The ID of Storage Account in which blob event will be listened. Changing this forces a new resource. StorageAccountId pulumi.StringPtrInput } func (TriggerBlobEventState) ElementType() reflect.Type { return reflect.TypeOf((*triggerBlobEventState)(nil)).Elem() } type triggerBlobEventArgs struct { // Specifies if the Data Factory Blob Event Trigger is activated. Defaults to `true`. Activated *bool `pulumi:"activated"` // A map of additional properties to associate with the Data Factory Blob Event Trigger. AdditionalProperties map[string]string `pulumi:"additionalProperties"` // List of tags that can be used for describing the Data Factory Blob Event Trigger. Annotations []string `pulumi:"annotations"` // The pattern that blob path starts with for trigger to fire. BlobPathBeginsWith *string `pulumi:"blobPathBeginsWith"` // The pattern that blob path ends with for trigger to fire. // // > **Note:** At least one of `blobPathBeginsWith` and `blobPathEndsWith` must be set. BlobPathEndsWith *string `pulumi:"blobPathEndsWith"` // The ID of Data Factory in which to associate the Trigger with. Changing this forces a new resource. DataFactoryId string `pulumi:"dataFactoryId"` // The description for the Data Factory Blob Event Trigger. Description *string `pulumi:"description"` // List of events that will fire this trigger. Possible values are `Microsoft.Storage.BlobCreated` and `Microsoft.Storage.BlobDeleted`. Events []string `pulumi:"events"` // are blobs with zero bytes ignored? IgnoreEmptyBlobs *bool `pulumi:"ignoreEmptyBlobs"` // Specifies the name of the Data Factory Blob Event Trigger. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // One or more `pipeline` blocks as defined below. Pipelines []TriggerBlobEventPipeline `pulumi:"pipelines"` // The ID of Storage Account in which blob event will be listened. Changing this forces a new resource. StorageAccountId string `pulumi:"storageAccountId"` } // The set of arguments for constructing a TriggerBlobEvent resource. type TriggerBlobEventArgs struct { // Specifies if the Data Factory Blob Event Trigger is activated. Defaults to `true`. Activated pulumi.BoolPtrInput // A map of additional properties to associate with the Data Factory Blob Event Trigger. AdditionalProperties pulumi.StringMapInput // List of tags that can be used for describing the Data Factory Blob Event Trigger. Annotations pulumi.StringArrayInput // The pattern that blob path starts with for trigger to fire. BlobPathBeginsWith pulumi.StringPtrInput // The pattern that blob path ends with for trigger to fire. // // > **Note:** At least one of `blobPathBeginsWith` and `blobPathEndsWith` must be set. BlobPathEndsWith pulumi.StringPtrInput // The ID of Data Factory in which to associate the Trigger with. Changing this forces a new resource. DataFactoryId pulumi.StringInput // The description for the Data Factory Blob Event Trigger. Description pulumi.StringPtrInput // List of events that will fire this trigger. Possible values are `Microsoft.Storage.BlobCreated` and `Microsoft.Storage.BlobDeleted`. Events pulumi.StringArrayInput // are blobs with zero bytes ignored? IgnoreEmptyBlobs pulumi.BoolPtrInput // Specifies the name of the Data Factory Blob Event Trigger. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // One or more `pipeline` blocks as defined below. Pipelines TriggerBlobEventPipelineArrayInput // The ID of Storage Account in which blob event will be listened. Changing this forces a new resource. StorageAccountId pulumi.StringInput } func (TriggerBlobEventArgs) ElementType() reflect.Type { return reflect.TypeOf((*triggerBlobEventArgs)(nil)).Elem() } type TriggerBlobEventInput interface { pulumi.Input ToTriggerBlobEventOutput() TriggerBlobEventOutput ToTriggerBlobEventOutputWithContext(ctx context.Context) TriggerBlobEventOutput } func (*TriggerBlobEvent) ElementType() reflect.Type { return reflect.TypeOf((**TriggerBlobEvent)(nil)).Elem() } func (i *TriggerBlobEvent) ToTriggerBlobEventOutput() TriggerBlobEventOutput { return i.ToTriggerBlobEventOutputWithContext(context.Background()) } func (i *TriggerBlobEvent) ToTriggerBlobEventOutputWithContext(ctx context.Context) TriggerBlobEventOutput { return pulumi.ToOutputWithContext(ctx, i).(TriggerBlobEventOutput) } // TriggerBlobEventArrayInput is an input type that accepts TriggerBlobEventArray and TriggerBlobEventArrayOutput values. // You can construct a concrete instance of `TriggerBlobEventArrayInput` via: // // TriggerBlobEventArray{ TriggerBlobEventArgs{...} } type TriggerBlobEventArrayInput interface { pulumi.Input ToTriggerBlobEventArrayOutput() TriggerBlobEventArrayOutput ToTriggerBlobEventArrayOutputWithContext(context.Context) TriggerBlobEventArrayOutput } type TriggerBlobEventArray []TriggerBlobEventInput func (TriggerBlobEventArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*TriggerBlobEvent)(nil)).Elem() } func (i TriggerBlobEventArray) ToTriggerBlobEventArrayOutput() TriggerBlobEventArrayOutput { return i.ToTriggerBlobEventArrayOutputWithContext(context.Background()) } func (i TriggerBlobEventArray) ToTriggerBlobEventArrayOutputWithContext(ctx context.Context) TriggerBlobEventArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(TriggerBlobEventArrayOutput) } // TriggerBlobEventMapInput is an input type that accepts TriggerBlobEventMap and TriggerBlobEventMapOutput values. // You can construct a concrete instance of `TriggerBlobEventMapInput` via: // // TriggerBlobEventMap{ "key": TriggerBlobEventArgs{...} } type TriggerBlobEventMapInput interface { pulumi.Input ToTriggerBlobEventMapOutput() TriggerBlobEventMapOutput ToTriggerBlobEventMapOutputWithContext(context.Context) TriggerBlobEventMapOutput } type TriggerBlobEventMap map[string]TriggerBlobEventInput func (TriggerBlobEventMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*TriggerBlobEvent)(nil)).Elem() } func (i TriggerBlobEventMap) ToTriggerBlobEventMapOutput() TriggerBlobEventMapOutput { return i.ToTriggerBlobEventMapOutputWithContext(context.Background()) } func (i TriggerBlobEventMap) ToTriggerBlobEventMapOutputWithContext(ctx context.Context) TriggerBlobEventMapOutput { return pulumi.ToOutputWithContext(ctx, i).(TriggerBlobEventMapOutput) } type TriggerBlobEventOutput struct{ *pulumi.OutputState } func (TriggerBlobEventOutput) ElementType() reflect.Type { return reflect.TypeOf((**TriggerBlobEvent)(nil)).Elem() } func (o TriggerBlobEventOutput) ToTriggerBlobEventOutput() TriggerBlobEventOutput { return o } func (o TriggerBlobEventOutput) ToTriggerBlobEventOutputWithContext(ctx context.Context) TriggerBlobEventOutput { return o } // Specifies if the Data Factory Blob Event Trigger is activated. Defaults to `true`. func (o TriggerBlobEventOutput) Activated() pulumi.BoolPtrOutput { return o.ApplyT(func(v *TriggerBlobEvent) pulumi.BoolPtrOutput { return v.Activated }).(pulumi.BoolPtrOutput) } // A map of additional properties to associate with the Data Factory Blob Event Trigger. func (o TriggerBlobEventOutput) AdditionalProperties() pulumi.StringMapOutput { return o.ApplyT(func(v *TriggerBlobEvent) pulumi.StringMapOutput { return v.AdditionalProperties }).(pulumi.StringMapOutput) } // List of tags that can be used for describing the Data Factory Blob Event Trigger. func (o TriggerBlobEventOutput) Annotations() pulumi.StringArrayOutput { return o.ApplyT(func(v *TriggerBlobEvent) pulumi.StringArrayOutput { return v.Annotations }).(pulumi.StringArrayOutput) } // The pattern that blob path starts with for trigger to fire. func (o TriggerBlobEventOutput) BlobPathBeginsWith() pulumi.StringPtrOutput { return o.ApplyT(func(v *TriggerBlobEvent) pulumi.StringPtrOutput { return v.BlobPathBeginsWith }).(pulumi.StringPtrOutput) } // The pattern that blob path ends with for trigger to fire. // // > **Note:** At least one of `blobPathBeginsWith` and `blobPathEndsWith` must be set. func (o TriggerBlobEventOutput) BlobPathEndsWith() pulumi.StringPtrOutput { return o.ApplyT(func(v *TriggerBlobEvent) pulumi.StringPtrOutput { return v.BlobPathEndsWith }).(pulumi.StringPtrOutput) } // The ID of Data Factory in which to associate the Trigger with. Changing this forces a new resource. func (o TriggerBlobEventOutput) DataFactoryId() pulumi.StringOutput { return o.ApplyT(func(v *TriggerBlobEvent) pulumi.StringOutput { return v.DataFactoryId }).(pulumi.StringOutput) } // The description for the Data Factory Blob Event Trigger. func (o TriggerBlobEventOutput) Description() pulumi.StringPtrOutput { return o.ApplyT(func(v *TriggerBlobEvent) pulumi.StringPtrOutput { return v.Description }).(pulumi.StringPtrOutput) } // List of events that will fire this trigger. Possible values are `Microsoft.Storage.BlobCreated` and `Microsoft.Storage.BlobDeleted`. func (o TriggerBlobEventOutput) Events() pulumi.StringArrayOutput { return o.ApplyT(func(v *TriggerBlobEvent) pulumi.StringArrayOutput { return v.Events }).(pulumi.StringArrayOutput) } // are blobs with zero bytes ignored? func (o TriggerBlobEventOutput) IgnoreEmptyBlobs() pulumi.BoolPtrOutput { return o.ApplyT(func(v *TriggerBlobEvent) pulumi.BoolPtrOutput { return v.IgnoreEmptyBlobs }).(pulumi.BoolPtrOutput) } // Specifies the name of the Data Factory Blob Event Trigger. Changing this forces a new resource to be created. func (o TriggerBlobEventOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *TriggerBlobEvent) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // One or more `pipeline` blocks as defined below. func (o TriggerBlobEventOutput) Pipelines() TriggerBlobEventPipelineArrayOutput { return o.ApplyT(func(v *TriggerBlobEvent) TriggerBlobEventPipelineArrayOutput { return v.Pipelines }).(TriggerBlobEventPipelineArrayOutput) } // The ID of Storage Account in which blob event will be listened. Changing this forces a new resource. func (o TriggerBlobEventOutput) StorageAccountId() pulumi.StringOutput { return o.ApplyT(func(v *TriggerBlobEvent) pulumi.StringOutput { return v.StorageAccountId }).(pulumi.StringOutput) } type TriggerBlobEventArrayOutput struct{ *pulumi.OutputState } func (TriggerBlobEventArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*TriggerBlobEvent)(nil)).Elem() } func (o TriggerBlobEventArrayOutput) ToTriggerBlobEventArrayOutput() TriggerBlobEventArrayOutput { return o } func (o TriggerBlobEventArrayOutput) ToTriggerBlobEventArrayOutputWithContext(ctx context.Context) TriggerBlobEventArrayOutput { return o } func (o TriggerBlobEventArrayOutput) Index(i pulumi.IntInput) TriggerBlobEventOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *TriggerBlobEvent { return vs[0].([]*TriggerBlobEvent)[vs[1].(int)] }).(TriggerBlobEventOutput) } type TriggerBlobEventMapOutput struct{ *pulumi.OutputState } func (TriggerBlobEventMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*TriggerBlobEvent)(nil)).Elem() } func (o TriggerBlobEventMapOutput) ToTriggerBlobEventMapOutput() TriggerBlobEventMapOutput { return o } func (o TriggerBlobEventMapOutput) ToTriggerBlobEventMapOutputWithContext(ctx context.Context) TriggerBlobEventMapOutput { return o } func (o TriggerBlobEventMapOutput) MapIndex(k pulumi.StringInput) TriggerBlobEventOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *TriggerBlobEvent { return vs[0].(map[string]*TriggerBlobEvent)[vs[1].(string)] }).(TriggerBlobEventOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*TriggerBlobEventInput)(nil)).Elem(), &TriggerBlobEvent{}) pulumi.RegisterInputType(reflect.TypeOf((*TriggerBlobEventArrayInput)(nil)).Elem(), TriggerBlobEventArray{}) pulumi.RegisterInputType(reflect.TypeOf((*TriggerBlobEventMapInput)(nil)).Elem(), TriggerBlobEventMap{}) pulumi.RegisterOutputType(TriggerBlobEventOutput{}) pulumi.RegisterOutputType(TriggerBlobEventArrayOutput{}) pulumi.RegisterOutputType(TriggerBlobEventMapOutput{}) }
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/datafactory/linkedServiceAzureFunction.go
sdk/go/azure/datafactory/linkedServiceAzureFunction.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 datafactory import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a Linked Service (connection) between an Azure Function and Azure Data Factory. // // ## Example Usage // // ```go // package main // // import ( // // "fmt" // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/appservice" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/datafactory" // "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 := appservice.LookupFunctionAppOutput(ctx, appservice.GetFunctionAppOutputArgs{ // Name: pulumi.String("test-azure-functions"), // ResourceGroupName: exampleResourceGroup.Name, // }, nil) // exampleFactory, err := datafactory.NewFactory(ctx, "example", &datafactory.FactoryArgs{ // Name: pulumi.String("example"), // Location: exampleResourceGroup.Location, // ResourceGroupName: exampleResourceGroup.Name, // }) // if err != nil { // return err // } // _, err = datafactory.NewLinkedServiceAzureFunction(ctx, "example", &datafactory.LinkedServiceAzureFunctionArgs{ // Name: pulumi.String("example"), // DataFactoryId: exampleFactory.ID(), // Url: example.ApplyT(func(example appservice.GetFunctionAppResult) (string, error) { // return fmt.Sprintf("https://%v", example.DefaultHostname), nil // }).(pulumi.StringOutput), // Key: pulumi.String("foo"), // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## Import // // Data Factory Linked Service's can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:datafactory/linkedServiceAzureFunction:LinkedServiceAzureFunction example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example/providers/Microsoft.DataFactory/factories/example/linkedservices/example // ``` type LinkedServiceAzureFunction struct { pulumi.CustomResourceState // A map of additional properties to associate with the Data Factory Linked Service. // // The following supported arguments are specific to Azure Function Linked Service: AdditionalProperties pulumi.StringMapOutput `pulumi:"additionalProperties"` // List of tags that can be used for describing the Data Factory Linked Service. Annotations pulumi.StringArrayOutput `pulumi:"annotations"` // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId pulumi.StringOutput `pulumi:"dataFactoryId"` // The description for the Data Factory Linked Service. Description pulumi.StringPtrOutput `pulumi:"description"` // The integration runtime reference to associate with the Data Factory Linked Service. IntegrationRuntimeName pulumi.StringPtrOutput `pulumi:"integrationRuntimeName"` // The system key of the Azure Function. Exactly one of either `key` or `keyVaultKey` is required Key pulumi.StringPtrOutput `pulumi:"key"` // A `keyVaultKey` block as defined below. Use this Argument to store the system key of the Azure Function in an existing Key Vault. It needs an existing Key Vault Data Factory Linked Service. Exactly one of either `key` or `keyVaultKey` is required. KeyVaultKey LinkedServiceAzureFunctionKeyVaultKeyPtrOutput `pulumi:"keyVaultKey"` // Specifies the name of the Data Factory Linked Service. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringOutput `pulumi:"name"` // A map of parameters to associate with the Data Factory Linked Service. Parameters pulumi.StringMapOutput `pulumi:"parameters"` // The url of the Azure Function. Url pulumi.StringOutput `pulumi:"url"` } // NewLinkedServiceAzureFunction registers a new resource with the given unique name, arguments, and options. func NewLinkedServiceAzureFunction(ctx *pulumi.Context, name string, args *LinkedServiceAzureFunctionArgs, opts ...pulumi.ResourceOption) (*LinkedServiceAzureFunction, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.DataFactoryId == nil { return nil, errors.New("invalid value for required argument 'DataFactoryId'") } if args.Url == nil { return nil, errors.New("invalid value for required argument 'Url'") } if args.Key != nil { args.Key = pulumi.ToSecret(args.Key).(pulumi.StringPtrInput) } secrets := pulumi.AdditionalSecretOutputs([]string{ "key", }) opts = append(opts, secrets) opts = internal.PkgResourceDefaultOpts(opts) var resource LinkedServiceAzureFunction err := ctx.RegisterResource("azure:datafactory/linkedServiceAzureFunction:LinkedServiceAzureFunction", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetLinkedServiceAzureFunction gets an existing LinkedServiceAzureFunction 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 GetLinkedServiceAzureFunction(ctx *pulumi.Context, name string, id pulumi.IDInput, state *LinkedServiceAzureFunctionState, opts ...pulumi.ResourceOption) (*LinkedServiceAzureFunction, error) { var resource LinkedServiceAzureFunction err := ctx.ReadResource("azure:datafactory/linkedServiceAzureFunction:LinkedServiceAzureFunction", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering LinkedServiceAzureFunction resources. type linkedServiceAzureFunctionState struct { // A map of additional properties to associate with the Data Factory Linked Service. // // The following supported arguments are specific to Azure Function Linked Service: AdditionalProperties map[string]string `pulumi:"additionalProperties"` // List of tags that can be used for describing the Data Factory Linked Service. Annotations []string `pulumi:"annotations"` // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId *string `pulumi:"dataFactoryId"` // The description for the Data Factory Linked Service. Description *string `pulumi:"description"` // The integration runtime reference to associate with the Data Factory Linked Service. IntegrationRuntimeName *string `pulumi:"integrationRuntimeName"` // The system key of the Azure Function. Exactly one of either `key` or `keyVaultKey` is required Key *string `pulumi:"key"` // A `keyVaultKey` block as defined below. Use this Argument to store the system key of the Azure Function in an existing Key Vault. It needs an existing Key Vault Data Factory Linked Service. Exactly one of either `key` or `keyVaultKey` is required. KeyVaultKey *LinkedServiceAzureFunctionKeyVaultKey `pulumi:"keyVaultKey"` // Specifies the name of the Data Factory Linked Service. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name *string `pulumi:"name"` // A map of parameters to associate with the Data Factory Linked Service. Parameters map[string]string `pulumi:"parameters"` // The url of the Azure Function. Url *string `pulumi:"url"` } type LinkedServiceAzureFunctionState struct { // A map of additional properties to associate with the Data Factory Linked Service. // // The following supported arguments are specific to Azure Function Linked Service: AdditionalProperties pulumi.StringMapInput // List of tags that can be used for describing the Data Factory Linked Service. Annotations pulumi.StringArrayInput // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId pulumi.StringPtrInput // The description for the Data Factory Linked Service. Description pulumi.StringPtrInput // The integration runtime reference to associate with the Data Factory Linked Service. IntegrationRuntimeName pulumi.StringPtrInput // The system key of the Azure Function. Exactly one of either `key` or `keyVaultKey` is required Key pulumi.StringPtrInput // A `keyVaultKey` block as defined below. Use this Argument to store the system key of the Azure Function in an existing Key Vault. It needs an existing Key Vault Data Factory Linked Service. Exactly one of either `key` or `keyVaultKey` is required. KeyVaultKey LinkedServiceAzureFunctionKeyVaultKeyPtrInput // Specifies the name of the Data Factory Linked Service. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringPtrInput // A map of parameters to associate with the Data Factory Linked Service. Parameters pulumi.StringMapInput // The url of the Azure Function. Url pulumi.StringPtrInput } func (LinkedServiceAzureFunctionState) ElementType() reflect.Type { return reflect.TypeOf((*linkedServiceAzureFunctionState)(nil)).Elem() } type linkedServiceAzureFunctionArgs struct { // A map of additional properties to associate with the Data Factory Linked Service. // // The following supported arguments are specific to Azure Function Linked Service: AdditionalProperties map[string]string `pulumi:"additionalProperties"` // List of tags that can be used for describing the Data Factory Linked Service. Annotations []string `pulumi:"annotations"` // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId string `pulumi:"dataFactoryId"` // The description for the Data Factory Linked Service. Description *string `pulumi:"description"` // The integration runtime reference to associate with the Data Factory Linked Service. IntegrationRuntimeName *string `pulumi:"integrationRuntimeName"` // The system key of the Azure Function. Exactly one of either `key` or `keyVaultKey` is required Key *string `pulumi:"key"` // A `keyVaultKey` block as defined below. Use this Argument to store the system key of the Azure Function in an existing Key Vault. It needs an existing Key Vault Data Factory Linked Service. Exactly one of either `key` or `keyVaultKey` is required. KeyVaultKey *LinkedServiceAzureFunctionKeyVaultKey `pulumi:"keyVaultKey"` // Specifies the name of the Data Factory Linked Service. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name *string `pulumi:"name"` // A map of parameters to associate with the Data Factory Linked Service. Parameters map[string]string `pulumi:"parameters"` // The url of the Azure Function. Url string `pulumi:"url"` } // The set of arguments for constructing a LinkedServiceAzureFunction resource. type LinkedServiceAzureFunctionArgs struct { // A map of additional properties to associate with the Data Factory Linked Service. // // The following supported arguments are specific to Azure Function Linked Service: AdditionalProperties pulumi.StringMapInput // List of tags that can be used for describing the Data Factory Linked Service. Annotations pulumi.StringArrayInput // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. DataFactoryId pulumi.StringInput // The description for the Data Factory Linked Service. Description pulumi.StringPtrInput // The integration runtime reference to associate with the Data Factory Linked Service. IntegrationRuntimeName pulumi.StringPtrInput // The system key of the Azure Function. Exactly one of either `key` or `keyVaultKey` is required Key pulumi.StringPtrInput // A `keyVaultKey` block as defined below. Use this Argument to store the system key of the Azure Function in an existing Key Vault. It needs an existing Key Vault Data Factory Linked Service. Exactly one of either `key` or `keyVaultKey` is required. KeyVaultKey LinkedServiceAzureFunctionKeyVaultKeyPtrInput // Specifies the name of the Data Factory Linked Service. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. Name pulumi.StringPtrInput // A map of parameters to associate with the Data Factory Linked Service. Parameters pulumi.StringMapInput // The url of the Azure Function. Url pulumi.StringInput } func (LinkedServiceAzureFunctionArgs) ElementType() reflect.Type { return reflect.TypeOf((*linkedServiceAzureFunctionArgs)(nil)).Elem() } type LinkedServiceAzureFunctionInput interface { pulumi.Input ToLinkedServiceAzureFunctionOutput() LinkedServiceAzureFunctionOutput ToLinkedServiceAzureFunctionOutputWithContext(ctx context.Context) LinkedServiceAzureFunctionOutput } func (*LinkedServiceAzureFunction) ElementType() reflect.Type { return reflect.TypeOf((**LinkedServiceAzureFunction)(nil)).Elem() } func (i *LinkedServiceAzureFunction) ToLinkedServiceAzureFunctionOutput() LinkedServiceAzureFunctionOutput { return i.ToLinkedServiceAzureFunctionOutputWithContext(context.Background()) } func (i *LinkedServiceAzureFunction) ToLinkedServiceAzureFunctionOutputWithContext(ctx context.Context) LinkedServiceAzureFunctionOutput { return pulumi.ToOutputWithContext(ctx, i).(LinkedServiceAzureFunctionOutput) } // LinkedServiceAzureFunctionArrayInput is an input type that accepts LinkedServiceAzureFunctionArray and LinkedServiceAzureFunctionArrayOutput values. // You can construct a concrete instance of `LinkedServiceAzureFunctionArrayInput` via: // // LinkedServiceAzureFunctionArray{ LinkedServiceAzureFunctionArgs{...} } type LinkedServiceAzureFunctionArrayInput interface { pulumi.Input ToLinkedServiceAzureFunctionArrayOutput() LinkedServiceAzureFunctionArrayOutput ToLinkedServiceAzureFunctionArrayOutputWithContext(context.Context) LinkedServiceAzureFunctionArrayOutput } type LinkedServiceAzureFunctionArray []LinkedServiceAzureFunctionInput func (LinkedServiceAzureFunctionArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*LinkedServiceAzureFunction)(nil)).Elem() } func (i LinkedServiceAzureFunctionArray) ToLinkedServiceAzureFunctionArrayOutput() LinkedServiceAzureFunctionArrayOutput { return i.ToLinkedServiceAzureFunctionArrayOutputWithContext(context.Background()) } func (i LinkedServiceAzureFunctionArray) ToLinkedServiceAzureFunctionArrayOutputWithContext(ctx context.Context) LinkedServiceAzureFunctionArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(LinkedServiceAzureFunctionArrayOutput) } // LinkedServiceAzureFunctionMapInput is an input type that accepts LinkedServiceAzureFunctionMap and LinkedServiceAzureFunctionMapOutput values. // You can construct a concrete instance of `LinkedServiceAzureFunctionMapInput` via: // // LinkedServiceAzureFunctionMap{ "key": LinkedServiceAzureFunctionArgs{...} } type LinkedServiceAzureFunctionMapInput interface { pulumi.Input ToLinkedServiceAzureFunctionMapOutput() LinkedServiceAzureFunctionMapOutput ToLinkedServiceAzureFunctionMapOutputWithContext(context.Context) LinkedServiceAzureFunctionMapOutput } type LinkedServiceAzureFunctionMap map[string]LinkedServiceAzureFunctionInput func (LinkedServiceAzureFunctionMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*LinkedServiceAzureFunction)(nil)).Elem() } func (i LinkedServiceAzureFunctionMap) ToLinkedServiceAzureFunctionMapOutput() LinkedServiceAzureFunctionMapOutput { return i.ToLinkedServiceAzureFunctionMapOutputWithContext(context.Background()) } func (i LinkedServiceAzureFunctionMap) ToLinkedServiceAzureFunctionMapOutputWithContext(ctx context.Context) LinkedServiceAzureFunctionMapOutput { return pulumi.ToOutputWithContext(ctx, i).(LinkedServiceAzureFunctionMapOutput) } type LinkedServiceAzureFunctionOutput struct{ *pulumi.OutputState } func (LinkedServiceAzureFunctionOutput) ElementType() reflect.Type { return reflect.TypeOf((**LinkedServiceAzureFunction)(nil)).Elem() } func (o LinkedServiceAzureFunctionOutput) ToLinkedServiceAzureFunctionOutput() LinkedServiceAzureFunctionOutput { return o } func (o LinkedServiceAzureFunctionOutput) ToLinkedServiceAzureFunctionOutputWithContext(ctx context.Context) LinkedServiceAzureFunctionOutput { return o } // A map of additional properties to associate with the Data Factory Linked Service. // // The following supported arguments are specific to Azure Function Linked Service: func (o LinkedServiceAzureFunctionOutput) AdditionalProperties() pulumi.StringMapOutput { return o.ApplyT(func(v *LinkedServiceAzureFunction) pulumi.StringMapOutput { return v.AdditionalProperties }).(pulumi.StringMapOutput) } // List of tags that can be used for describing the Data Factory Linked Service. func (o LinkedServiceAzureFunctionOutput) Annotations() pulumi.StringArrayOutput { return o.ApplyT(func(v *LinkedServiceAzureFunction) pulumi.StringArrayOutput { return v.Annotations }).(pulumi.StringArrayOutput) } // The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. func (o LinkedServiceAzureFunctionOutput) DataFactoryId() pulumi.StringOutput { return o.ApplyT(func(v *LinkedServiceAzureFunction) pulumi.StringOutput { return v.DataFactoryId }).(pulumi.StringOutput) } // The description for the Data Factory Linked Service. func (o LinkedServiceAzureFunctionOutput) Description() pulumi.StringPtrOutput { return o.ApplyT(func(v *LinkedServiceAzureFunction) pulumi.StringPtrOutput { return v.Description }).(pulumi.StringPtrOutput) } // The integration runtime reference to associate with the Data Factory Linked Service. func (o LinkedServiceAzureFunctionOutput) IntegrationRuntimeName() pulumi.StringPtrOutput { return o.ApplyT(func(v *LinkedServiceAzureFunction) pulumi.StringPtrOutput { return v.IntegrationRuntimeName }).(pulumi.StringPtrOutput) } // The system key of the Azure Function. Exactly one of either `key` or `keyVaultKey` is required func (o LinkedServiceAzureFunctionOutput) Key() pulumi.StringPtrOutput { return o.ApplyT(func(v *LinkedServiceAzureFunction) pulumi.StringPtrOutput { return v.Key }).(pulumi.StringPtrOutput) } // A `keyVaultKey` block as defined below. Use this Argument to store the system key of the Azure Function in an existing Key Vault. It needs an existing Key Vault Data Factory Linked Service. Exactly one of either `key` or `keyVaultKey` is required. func (o LinkedServiceAzureFunctionOutput) KeyVaultKey() LinkedServiceAzureFunctionKeyVaultKeyPtrOutput { return o.ApplyT(func(v *LinkedServiceAzureFunction) LinkedServiceAzureFunctionKeyVaultKeyPtrOutput { return v.KeyVaultKey }).(LinkedServiceAzureFunctionKeyVaultKeyPtrOutput) } // Specifies the name of the Data Factory Linked Service. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. func (o LinkedServiceAzureFunctionOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *LinkedServiceAzureFunction) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // A map of parameters to associate with the Data Factory Linked Service. func (o LinkedServiceAzureFunctionOutput) Parameters() pulumi.StringMapOutput { return o.ApplyT(func(v *LinkedServiceAzureFunction) pulumi.StringMapOutput { return v.Parameters }).(pulumi.StringMapOutput) } // The url of the Azure Function. func (o LinkedServiceAzureFunctionOutput) Url() pulumi.StringOutput { return o.ApplyT(func(v *LinkedServiceAzureFunction) pulumi.StringOutput { return v.Url }).(pulumi.StringOutput) } type LinkedServiceAzureFunctionArrayOutput struct{ *pulumi.OutputState } func (LinkedServiceAzureFunctionArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*LinkedServiceAzureFunction)(nil)).Elem() } func (o LinkedServiceAzureFunctionArrayOutput) ToLinkedServiceAzureFunctionArrayOutput() LinkedServiceAzureFunctionArrayOutput { return o } func (o LinkedServiceAzureFunctionArrayOutput) ToLinkedServiceAzureFunctionArrayOutputWithContext(ctx context.Context) LinkedServiceAzureFunctionArrayOutput { return o } func (o LinkedServiceAzureFunctionArrayOutput) Index(i pulumi.IntInput) LinkedServiceAzureFunctionOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *LinkedServiceAzureFunction { return vs[0].([]*LinkedServiceAzureFunction)[vs[1].(int)] }).(LinkedServiceAzureFunctionOutput) } type LinkedServiceAzureFunctionMapOutput struct{ *pulumi.OutputState } func (LinkedServiceAzureFunctionMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*LinkedServiceAzureFunction)(nil)).Elem() } func (o LinkedServiceAzureFunctionMapOutput) ToLinkedServiceAzureFunctionMapOutput() LinkedServiceAzureFunctionMapOutput { return o } func (o LinkedServiceAzureFunctionMapOutput) ToLinkedServiceAzureFunctionMapOutputWithContext(ctx context.Context) LinkedServiceAzureFunctionMapOutput { return o } func (o LinkedServiceAzureFunctionMapOutput) MapIndex(k pulumi.StringInput) LinkedServiceAzureFunctionOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *LinkedServiceAzureFunction { return vs[0].(map[string]*LinkedServiceAzureFunction)[vs[1].(string)] }).(LinkedServiceAzureFunctionOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*LinkedServiceAzureFunctionInput)(nil)).Elem(), &LinkedServiceAzureFunction{}) pulumi.RegisterInputType(reflect.TypeOf((*LinkedServiceAzureFunctionArrayInput)(nil)).Elem(), LinkedServiceAzureFunctionArray{}) pulumi.RegisterInputType(reflect.TypeOf((*LinkedServiceAzureFunctionMapInput)(nil)).Elem(), LinkedServiceAzureFunctionMap{}) pulumi.RegisterOutputType(LinkedServiceAzureFunctionOutput{}) pulumi.RegisterOutputType(LinkedServiceAzureFunctionArrayOutput{}) pulumi.RegisterOutputType(LinkedServiceAzureFunctionMapOutput{}) }
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/automanage/init.go
sdk/go/azure/automanage/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 automanage 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:automanage/configuration:Configuration": r = &Configuration{} 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", "automanage/configuration", &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/automanage/pulumiTypes.go
sdk/go/azure/automanage/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 automanage 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 ConfigurationAntimalware struct { // A `exclusions` block as defined below. Exclusions *ConfigurationAntimalwareExclusions `pulumi:"exclusions"` // Whether the real time protection is enabled. Defaults to `false`. RealTimeProtectionEnabled *bool `pulumi:"realTimeProtectionEnabled"` // The day of the scheduled scan. Possible values are `0` to `8` where `0` is daily, `1` to `7` are the days of the week and `8` is Disabled. Defaults to `8`. ScheduledScanDay *int `pulumi:"scheduledScanDay"` // Whether the scheduled scan is enabled. Defaults to `false`. ScheduledScanEnabled *bool `pulumi:"scheduledScanEnabled"` // The time of the scheduled scan in minutes. Possible values are `0` to `1439` where `0` is 12:00 AM and `1439` is 11:59 PM. ScheduledScanTimeInMinutes *int `pulumi:"scheduledScanTimeInMinutes"` // The type of the scheduled scan. Possible values are `Quick` and `Full`. Defaults to `Quick`. ScheduledScanType *string `pulumi:"scheduledScanType"` } // ConfigurationAntimalwareInput is an input type that accepts ConfigurationAntimalwareArgs and ConfigurationAntimalwareOutput values. // You can construct a concrete instance of `ConfigurationAntimalwareInput` via: // // ConfigurationAntimalwareArgs{...} type ConfigurationAntimalwareInput interface { pulumi.Input ToConfigurationAntimalwareOutput() ConfigurationAntimalwareOutput ToConfigurationAntimalwareOutputWithContext(context.Context) ConfigurationAntimalwareOutput } type ConfigurationAntimalwareArgs struct { // A `exclusions` block as defined below. Exclusions ConfigurationAntimalwareExclusionsPtrInput `pulumi:"exclusions"` // Whether the real time protection is enabled. Defaults to `false`. RealTimeProtectionEnabled pulumi.BoolPtrInput `pulumi:"realTimeProtectionEnabled"` // The day of the scheduled scan. Possible values are `0` to `8` where `0` is daily, `1` to `7` are the days of the week and `8` is Disabled. Defaults to `8`. ScheduledScanDay pulumi.IntPtrInput `pulumi:"scheduledScanDay"` // Whether the scheduled scan is enabled. Defaults to `false`. ScheduledScanEnabled pulumi.BoolPtrInput `pulumi:"scheduledScanEnabled"` // The time of the scheduled scan in minutes. Possible values are `0` to `1439` where `0` is 12:00 AM and `1439` is 11:59 PM. ScheduledScanTimeInMinutes pulumi.IntPtrInput `pulumi:"scheduledScanTimeInMinutes"` // The type of the scheduled scan. Possible values are `Quick` and `Full`. Defaults to `Quick`. ScheduledScanType pulumi.StringPtrInput `pulumi:"scheduledScanType"` } func (ConfigurationAntimalwareArgs) ElementType() reflect.Type { return reflect.TypeOf((*ConfigurationAntimalware)(nil)).Elem() } func (i ConfigurationAntimalwareArgs) ToConfigurationAntimalwareOutput() ConfigurationAntimalwareOutput { return i.ToConfigurationAntimalwareOutputWithContext(context.Background()) } func (i ConfigurationAntimalwareArgs) ToConfigurationAntimalwareOutputWithContext(ctx context.Context) ConfigurationAntimalwareOutput { return pulumi.ToOutputWithContext(ctx, i).(ConfigurationAntimalwareOutput) } func (i ConfigurationAntimalwareArgs) ToConfigurationAntimalwarePtrOutput() ConfigurationAntimalwarePtrOutput { return i.ToConfigurationAntimalwarePtrOutputWithContext(context.Background()) } func (i ConfigurationAntimalwareArgs) ToConfigurationAntimalwarePtrOutputWithContext(ctx context.Context) ConfigurationAntimalwarePtrOutput { return pulumi.ToOutputWithContext(ctx, i).(ConfigurationAntimalwareOutput).ToConfigurationAntimalwarePtrOutputWithContext(ctx) } // ConfigurationAntimalwarePtrInput is an input type that accepts ConfigurationAntimalwareArgs, ConfigurationAntimalwarePtr and ConfigurationAntimalwarePtrOutput values. // You can construct a concrete instance of `ConfigurationAntimalwarePtrInput` via: // // ConfigurationAntimalwareArgs{...} // // or: // // nil type ConfigurationAntimalwarePtrInput interface { pulumi.Input ToConfigurationAntimalwarePtrOutput() ConfigurationAntimalwarePtrOutput ToConfigurationAntimalwarePtrOutputWithContext(context.Context) ConfigurationAntimalwarePtrOutput } type configurationAntimalwarePtrType ConfigurationAntimalwareArgs func ConfigurationAntimalwarePtr(v *ConfigurationAntimalwareArgs) ConfigurationAntimalwarePtrInput { return (*configurationAntimalwarePtrType)(v) } func (*configurationAntimalwarePtrType) ElementType() reflect.Type { return reflect.TypeOf((**ConfigurationAntimalware)(nil)).Elem() } func (i *configurationAntimalwarePtrType) ToConfigurationAntimalwarePtrOutput() ConfigurationAntimalwarePtrOutput { return i.ToConfigurationAntimalwarePtrOutputWithContext(context.Background()) } func (i *configurationAntimalwarePtrType) ToConfigurationAntimalwarePtrOutputWithContext(ctx context.Context) ConfigurationAntimalwarePtrOutput { return pulumi.ToOutputWithContext(ctx, i).(ConfigurationAntimalwarePtrOutput) } type ConfigurationAntimalwareOutput struct{ *pulumi.OutputState } func (ConfigurationAntimalwareOutput) ElementType() reflect.Type { return reflect.TypeOf((*ConfigurationAntimalware)(nil)).Elem() } func (o ConfigurationAntimalwareOutput) ToConfigurationAntimalwareOutput() ConfigurationAntimalwareOutput { return o } func (o ConfigurationAntimalwareOutput) ToConfigurationAntimalwareOutputWithContext(ctx context.Context) ConfigurationAntimalwareOutput { return o } func (o ConfigurationAntimalwareOutput) ToConfigurationAntimalwarePtrOutput() ConfigurationAntimalwarePtrOutput { return o.ToConfigurationAntimalwarePtrOutputWithContext(context.Background()) } func (o ConfigurationAntimalwareOutput) ToConfigurationAntimalwarePtrOutputWithContext(ctx context.Context) ConfigurationAntimalwarePtrOutput { return o.ApplyTWithContext(ctx, func(_ context.Context, v ConfigurationAntimalware) *ConfigurationAntimalware { return &v }).(ConfigurationAntimalwarePtrOutput) } // A `exclusions` block as defined below. func (o ConfigurationAntimalwareOutput) Exclusions() ConfigurationAntimalwareExclusionsPtrOutput { return o.ApplyT(func(v ConfigurationAntimalware) *ConfigurationAntimalwareExclusions { return v.Exclusions }).(ConfigurationAntimalwareExclusionsPtrOutput) } // Whether the real time protection is enabled. Defaults to `false`. func (o ConfigurationAntimalwareOutput) RealTimeProtectionEnabled() pulumi.BoolPtrOutput { return o.ApplyT(func(v ConfigurationAntimalware) *bool { return v.RealTimeProtectionEnabled }).(pulumi.BoolPtrOutput) } // The day of the scheduled scan. Possible values are `0` to `8` where `0` is daily, `1` to `7` are the days of the week and `8` is Disabled. Defaults to `8`. func (o ConfigurationAntimalwareOutput) ScheduledScanDay() pulumi.IntPtrOutput { return o.ApplyT(func(v ConfigurationAntimalware) *int { return v.ScheduledScanDay }).(pulumi.IntPtrOutput) } // Whether the scheduled scan is enabled. Defaults to `false`. func (o ConfigurationAntimalwareOutput) ScheduledScanEnabled() pulumi.BoolPtrOutput { return o.ApplyT(func(v ConfigurationAntimalware) *bool { return v.ScheduledScanEnabled }).(pulumi.BoolPtrOutput) } // The time of the scheduled scan in minutes. Possible values are `0` to `1439` where `0` is 12:00 AM and `1439` is 11:59 PM. func (o ConfigurationAntimalwareOutput) ScheduledScanTimeInMinutes() pulumi.IntPtrOutput { return o.ApplyT(func(v ConfigurationAntimalware) *int { return v.ScheduledScanTimeInMinutes }).(pulumi.IntPtrOutput) } // The type of the scheduled scan. Possible values are `Quick` and `Full`. Defaults to `Quick`. func (o ConfigurationAntimalwareOutput) ScheduledScanType() pulumi.StringPtrOutput { return o.ApplyT(func(v ConfigurationAntimalware) *string { return v.ScheduledScanType }).(pulumi.StringPtrOutput) } type ConfigurationAntimalwarePtrOutput struct{ *pulumi.OutputState } func (ConfigurationAntimalwarePtrOutput) ElementType() reflect.Type { return reflect.TypeOf((**ConfigurationAntimalware)(nil)).Elem() } func (o ConfigurationAntimalwarePtrOutput) ToConfigurationAntimalwarePtrOutput() ConfigurationAntimalwarePtrOutput { return o } func (o ConfigurationAntimalwarePtrOutput) ToConfigurationAntimalwarePtrOutputWithContext(ctx context.Context) ConfigurationAntimalwarePtrOutput { return o } func (o ConfigurationAntimalwarePtrOutput) Elem() ConfigurationAntimalwareOutput { return o.ApplyT(func(v *ConfigurationAntimalware) ConfigurationAntimalware { if v != nil { return *v } var ret ConfigurationAntimalware return ret }).(ConfigurationAntimalwareOutput) } // A `exclusions` block as defined below. func (o ConfigurationAntimalwarePtrOutput) Exclusions() ConfigurationAntimalwareExclusionsPtrOutput { return o.ApplyT(func(v *ConfigurationAntimalware) *ConfigurationAntimalwareExclusions { if v == nil { return nil } return v.Exclusions }).(ConfigurationAntimalwareExclusionsPtrOutput) } // Whether the real time protection is enabled. Defaults to `false`. func (o ConfigurationAntimalwarePtrOutput) RealTimeProtectionEnabled() pulumi.BoolPtrOutput { return o.ApplyT(func(v *ConfigurationAntimalware) *bool { if v == nil { return nil } return v.RealTimeProtectionEnabled }).(pulumi.BoolPtrOutput) } // The day of the scheduled scan. Possible values are `0` to `8` where `0` is daily, `1` to `7` are the days of the week and `8` is Disabled. Defaults to `8`. func (o ConfigurationAntimalwarePtrOutput) ScheduledScanDay() pulumi.IntPtrOutput { return o.ApplyT(func(v *ConfigurationAntimalware) *int { if v == nil { return nil } return v.ScheduledScanDay }).(pulumi.IntPtrOutput) } // Whether the scheduled scan is enabled. Defaults to `false`. func (o ConfigurationAntimalwarePtrOutput) ScheduledScanEnabled() pulumi.BoolPtrOutput { return o.ApplyT(func(v *ConfigurationAntimalware) *bool { if v == nil { return nil } return v.ScheduledScanEnabled }).(pulumi.BoolPtrOutput) } // The time of the scheduled scan in minutes. Possible values are `0` to `1439` where `0` is 12:00 AM and `1439` is 11:59 PM. func (o ConfigurationAntimalwarePtrOutput) ScheduledScanTimeInMinutes() pulumi.IntPtrOutput { return o.ApplyT(func(v *ConfigurationAntimalware) *int { if v == nil { return nil } return v.ScheduledScanTimeInMinutes }).(pulumi.IntPtrOutput) } // The type of the scheduled scan. Possible values are `Quick` and `Full`. Defaults to `Quick`. func (o ConfigurationAntimalwarePtrOutput) ScheduledScanType() pulumi.StringPtrOutput { return o.ApplyT(func(v *ConfigurationAntimalware) *string { if v == nil { return nil } return v.ScheduledScanType }).(pulumi.StringPtrOutput) } type ConfigurationAntimalwareExclusions struct { // The extensions to exclude from the antimalware scan, separated by `;`. For example `.ext1;.ext2`. Extensions *string `pulumi:"extensions"` // The paths to exclude from the antimalware scan, separated by `;`. For example `C:\\Windows\\Temp;D:\\Temp`. Paths *string `pulumi:"paths"` // The processes to exclude from the antimalware scan, separated by `;`. For example `svchost.exe;notepad.exe`. Processes *string `pulumi:"processes"` } // ConfigurationAntimalwareExclusionsInput is an input type that accepts ConfigurationAntimalwareExclusionsArgs and ConfigurationAntimalwareExclusionsOutput values. // You can construct a concrete instance of `ConfigurationAntimalwareExclusionsInput` via: // // ConfigurationAntimalwareExclusionsArgs{...} type ConfigurationAntimalwareExclusionsInput interface { pulumi.Input ToConfigurationAntimalwareExclusionsOutput() ConfigurationAntimalwareExclusionsOutput ToConfigurationAntimalwareExclusionsOutputWithContext(context.Context) ConfigurationAntimalwareExclusionsOutput } type ConfigurationAntimalwareExclusionsArgs struct { // The extensions to exclude from the antimalware scan, separated by `;`. For example `.ext1;.ext2`. Extensions pulumi.StringPtrInput `pulumi:"extensions"` // The paths to exclude from the antimalware scan, separated by `;`. For example `C:\\Windows\\Temp;D:\\Temp`. Paths pulumi.StringPtrInput `pulumi:"paths"` // The processes to exclude from the antimalware scan, separated by `;`. For example `svchost.exe;notepad.exe`. Processes pulumi.StringPtrInput `pulumi:"processes"` } func (ConfigurationAntimalwareExclusionsArgs) ElementType() reflect.Type { return reflect.TypeOf((*ConfigurationAntimalwareExclusions)(nil)).Elem() } func (i ConfigurationAntimalwareExclusionsArgs) ToConfigurationAntimalwareExclusionsOutput() ConfigurationAntimalwareExclusionsOutput { return i.ToConfigurationAntimalwareExclusionsOutputWithContext(context.Background()) } func (i ConfigurationAntimalwareExclusionsArgs) ToConfigurationAntimalwareExclusionsOutputWithContext(ctx context.Context) ConfigurationAntimalwareExclusionsOutput { return pulumi.ToOutputWithContext(ctx, i).(ConfigurationAntimalwareExclusionsOutput) } func (i ConfigurationAntimalwareExclusionsArgs) ToConfigurationAntimalwareExclusionsPtrOutput() ConfigurationAntimalwareExclusionsPtrOutput { return i.ToConfigurationAntimalwareExclusionsPtrOutputWithContext(context.Background()) } func (i ConfigurationAntimalwareExclusionsArgs) ToConfigurationAntimalwareExclusionsPtrOutputWithContext(ctx context.Context) ConfigurationAntimalwareExclusionsPtrOutput { return pulumi.ToOutputWithContext(ctx, i).(ConfigurationAntimalwareExclusionsOutput).ToConfigurationAntimalwareExclusionsPtrOutputWithContext(ctx) } // ConfigurationAntimalwareExclusionsPtrInput is an input type that accepts ConfigurationAntimalwareExclusionsArgs, ConfigurationAntimalwareExclusionsPtr and ConfigurationAntimalwareExclusionsPtrOutput values. // You can construct a concrete instance of `ConfigurationAntimalwareExclusionsPtrInput` via: // // ConfigurationAntimalwareExclusionsArgs{...} // // or: // // nil type ConfigurationAntimalwareExclusionsPtrInput interface { pulumi.Input ToConfigurationAntimalwareExclusionsPtrOutput() ConfigurationAntimalwareExclusionsPtrOutput ToConfigurationAntimalwareExclusionsPtrOutputWithContext(context.Context) ConfigurationAntimalwareExclusionsPtrOutput } type configurationAntimalwareExclusionsPtrType ConfigurationAntimalwareExclusionsArgs func ConfigurationAntimalwareExclusionsPtr(v *ConfigurationAntimalwareExclusionsArgs) ConfigurationAntimalwareExclusionsPtrInput { return (*configurationAntimalwareExclusionsPtrType)(v) } func (*configurationAntimalwareExclusionsPtrType) ElementType() reflect.Type { return reflect.TypeOf((**ConfigurationAntimalwareExclusions)(nil)).Elem() } func (i *configurationAntimalwareExclusionsPtrType) ToConfigurationAntimalwareExclusionsPtrOutput() ConfigurationAntimalwareExclusionsPtrOutput { return i.ToConfigurationAntimalwareExclusionsPtrOutputWithContext(context.Background()) } func (i *configurationAntimalwareExclusionsPtrType) ToConfigurationAntimalwareExclusionsPtrOutputWithContext(ctx context.Context) ConfigurationAntimalwareExclusionsPtrOutput { return pulumi.ToOutputWithContext(ctx, i).(ConfigurationAntimalwareExclusionsPtrOutput) } type ConfigurationAntimalwareExclusionsOutput struct{ *pulumi.OutputState } func (ConfigurationAntimalwareExclusionsOutput) ElementType() reflect.Type { return reflect.TypeOf((*ConfigurationAntimalwareExclusions)(nil)).Elem() } func (o ConfigurationAntimalwareExclusionsOutput) ToConfigurationAntimalwareExclusionsOutput() ConfigurationAntimalwareExclusionsOutput { return o } func (o ConfigurationAntimalwareExclusionsOutput) ToConfigurationAntimalwareExclusionsOutputWithContext(ctx context.Context) ConfigurationAntimalwareExclusionsOutput { return o } func (o ConfigurationAntimalwareExclusionsOutput) ToConfigurationAntimalwareExclusionsPtrOutput() ConfigurationAntimalwareExclusionsPtrOutput { return o.ToConfigurationAntimalwareExclusionsPtrOutputWithContext(context.Background()) } func (o ConfigurationAntimalwareExclusionsOutput) ToConfigurationAntimalwareExclusionsPtrOutputWithContext(ctx context.Context) ConfigurationAntimalwareExclusionsPtrOutput { return o.ApplyTWithContext(ctx, func(_ context.Context, v ConfigurationAntimalwareExclusions) *ConfigurationAntimalwareExclusions { return &v }).(ConfigurationAntimalwareExclusionsPtrOutput) } // The extensions to exclude from the antimalware scan, separated by `;`. For example `.ext1;.ext2`. func (o ConfigurationAntimalwareExclusionsOutput) Extensions() pulumi.StringPtrOutput { return o.ApplyT(func(v ConfigurationAntimalwareExclusions) *string { return v.Extensions }).(pulumi.StringPtrOutput) } // The paths to exclude from the antimalware scan, separated by `;`. For example `C:\\Windows\\Temp;D:\\Temp`. func (o ConfigurationAntimalwareExclusionsOutput) Paths() pulumi.StringPtrOutput { return o.ApplyT(func(v ConfigurationAntimalwareExclusions) *string { return v.Paths }).(pulumi.StringPtrOutput) } // The processes to exclude from the antimalware scan, separated by `;`. For example `svchost.exe;notepad.exe`. func (o ConfigurationAntimalwareExclusionsOutput) Processes() pulumi.StringPtrOutput { return o.ApplyT(func(v ConfigurationAntimalwareExclusions) *string { return v.Processes }).(pulumi.StringPtrOutput) } type ConfigurationAntimalwareExclusionsPtrOutput struct{ *pulumi.OutputState } func (ConfigurationAntimalwareExclusionsPtrOutput) ElementType() reflect.Type { return reflect.TypeOf((**ConfigurationAntimalwareExclusions)(nil)).Elem() } func (o ConfigurationAntimalwareExclusionsPtrOutput) ToConfigurationAntimalwareExclusionsPtrOutput() ConfigurationAntimalwareExclusionsPtrOutput { return o } func (o ConfigurationAntimalwareExclusionsPtrOutput) ToConfigurationAntimalwareExclusionsPtrOutputWithContext(ctx context.Context) ConfigurationAntimalwareExclusionsPtrOutput { return o } func (o ConfigurationAntimalwareExclusionsPtrOutput) Elem() ConfigurationAntimalwareExclusionsOutput { return o.ApplyT(func(v *ConfigurationAntimalwareExclusions) ConfigurationAntimalwareExclusions { if v != nil { return *v } var ret ConfigurationAntimalwareExclusions return ret }).(ConfigurationAntimalwareExclusionsOutput) } // The extensions to exclude from the antimalware scan, separated by `;`. For example `.ext1;.ext2`. func (o ConfigurationAntimalwareExclusionsPtrOutput) Extensions() pulumi.StringPtrOutput { return o.ApplyT(func(v *ConfigurationAntimalwareExclusions) *string { if v == nil { return nil } return v.Extensions }).(pulumi.StringPtrOutput) } // The paths to exclude from the antimalware scan, separated by `;`. For example `C:\\Windows\\Temp;D:\\Temp`. func (o ConfigurationAntimalwareExclusionsPtrOutput) Paths() pulumi.StringPtrOutput { return o.ApplyT(func(v *ConfigurationAntimalwareExclusions) *string { if v == nil { return nil } return v.Paths }).(pulumi.StringPtrOutput) } // The processes to exclude from the antimalware scan, separated by `;`. For example `svchost.exe;notepad.exe`. func (o ConfigurationAntimalwareExclusionsPtrOutput) Processes() pulumi.StringPtrOutput { return o.ApplyT(func(v *ConfigurationAntimalwareExclusions) *string { if v == nil { return nil } return v.Processes }).(pulumi.StringPtrOutput) } type ConfigurationAzureSecurityBaseline struct { // The assignment type of the azure security baseline. Possible values are `ApplyAndAutoCorrect`, `ApplyAndMonitor`, `Audit` and `DeployAndAutoCorrect`. Defaults to `ApplyAndAutoCorrect`. AssignmentType *string `pulumi:"assignmentType"` } // ConfigurationAzureSecurityBaselineInput is an input type that accepts ConfigurationAzureSecurityBaselineArgs and ConfigurationAzureSecurityBaselineOutput values. // You can construct a concrete instance of `ConfigurationAzureSecurityBaselineInput` via: // // ConfigurationAzureSecurityBaselineArgs{...} type ConfigurationAzureSecurityBaselineInput interface { pulumi.Input ToConfigurationAzureSecurityBaselineOutput() ConfigurationAzureSecurityBaselineOutput ToConfigurationAzureSecurityBaselineOutputWithContext(context.Context) ConfigurationAzureSecurityBaselineOutput } type ConfigurationAzureSecurityBaselineArgs struct { // The assignment type of the azure security baseline. Possible values are `ApplyAndAutoCorrect`, `ApplyAndMonitor`, `Audit` and `DeployAndAutoCorrect`. Defaults to `ApplyAndAutoCorrect`. AssignmentType pulumi.StringPtrInput `pulumi:"assignmentType"` } func (ConfigurationAzureSecurityBaselineArgs) ElementType() reflect.Type { return reflect.TypeOf((*ConfigurationAzureSecurityBaseline)(nil)).Elem() } func (i ConfigurationAzureSecurityBaselineArgs) ToConfigurationAzureSecurityBaselineOutput() ConfigurationAzureSecurityBaselineOutput { return i.ToConfigurationAzureSecurityBaselineOutputWithContext(context.Background()) } func (i ConfigurationAzureSecurityBaselineArgs) ToConfigurationAzureSecurityBaselineOutputWithContext(ctx context.Context) ConfigurationAzureSecurityBaselineOutput { return pulumi.ToOutputWithContext(ctx, i).(ConfigurationAzureSecurityBaselineOutput) } func (i ConfigurationAzureSecurityBaselineArgs) ToConfigurationAzureSecurityBaselinePtrOutput() ConfigurationAzureSecurityBaselinePtrOutput { return i.ToConfigurationAzureSecurityBaselinePtrOutputWithContext(context.Background()) } func (i ConfigurationAzureSecurityBaselineArgs) ToConfigurationAzureSecurityBaselinePtrOutputWithContext(ctx context.Context) ConfigurationAzureSecurityBaselinePtrOutput { return pulumi.ToOutputWithContext(ctx, i).(ConfigurationAzureSecurityBaselineOutput).ToConfigurationAzureSecurityBaselinePtrOutputWithContext(ctx) } // ConfigurationAzureSecurityBaselinePtrInput is an input type that accepts ConfigurationAzureSecurityBaselineArgs, ConfigurationAzureSecurityBaselinePtr and ConfigurationAzureSecurityBaselinePtrOutput values. // You can construct a concrete instance of `ConfigurationAzureSecurityBaselinePtrInput` via: // // ConfigurationAzureSecurityBaselineArgs{...} // // or: // // nil type ConfigurationAzureSecurityBaselinePtrInput interface { pulumi.Input ToConfigurationAzureSecurityBaselinePtrOutput() ConfigurationAzureSecurityBaselinePtrOutput ToConfigurationAzureSecurityBaselinePtrOutputWithContext(context.Context) ConfigurationAzureSecurityBaselinePtrOutput } type configurationAzureSecurityBaselinePtrType ConfigurationAzureSecurityBaselineArgs func ConfigurationAzureSecurityBaselinePtr(v *ConfigurationAzureSecurityBaselineArgs) ConfigurationAzureSecurityBaselinePtrInput { return (*configurationAzureSecurityBaselinePtrType)(v) } func (*configurationAzureSecurityBaselinePtrType) ElementType() reflect.Type { return reflect.TypeOf((**ConfigurationAzureSecurityBaseline)(nil)).Elem() } func (i *configurationAzureSecurityBaselinePtrType) ToConfigurationAzureSecurityBaselinePtrOutput() ConfigurationAzureSecurityBaselinePtrOutput { return i.ToConfigurationAzureSecurityBaselinePtrOutputWithContext(context.Background()) } func (i *configurationAzureSecurityBaselinePtrType) ToConfigurationAzureSecurityBaselinePtrOutputWithContext(ctx context.Context) ConfigurationAzureSecurityBaselinePtrOutput { return pulumi.ToOutputWithContext(ctx, i).(ConfigurationAzureSecurityBaselinePtrOutput) } type ConfigurationAzureSecurityBaselineOutput struct{ *pulumi.OutputState } func (ConfigurationAzureSecurityBaselineOutput) ElementType() reflect.Type { return reflect.TypeOf((*ConfigurationAzureSecurityBaseline)(nil)).Elem() } func (o ConfigurationAzureSecurityBaselineOutput) ToConfigurationAzureSecurityBaselineOutput() ConfigurationAzureSecurityBaselineOutput { return o } func (o ConfigurationAzureSecurityBaselineOutput) ToConfigurationAzureSecurityBaselineOutputWithContext(ctx context.Context) ConfigurationAzureSecurityBaselineOutput { return o } func (o ConfigurationAzureSecurityBaselineOutput) ToConfigurationAzureSecurityBaselinePtrOutput() ConfigurationAzureSecurityBaselinePtrOutput { return o.ToConfigurationAzureSecurityBaselinePtrOutputWithContext(context.Background()) } func (o ConfigurationAzureSecurityBaselineOutput) ToConfigurationAzureSecurityBaselinePtrOutputWithContext(ctx context.Context) ConfigurationAzureSecurityBaselinePtrOutput { return o.ApplyTWithContext(ctx, func(_ context.Context, v ConfigurationAzureSecurityBaseline) *ConfigurationAzureSecurityBaseline { return &v }).(ConfigurationAzureSecurityBaselinePtrOutput) } // The assignment type of the azure security baseline. Possible values are `ApplyAndAutoCorrect`, `ApplyAndMonitor`, `Audit` and `DeployAndAutoCorrect`. Defaults to `ApplyAndAutoCorrect`. func (o ConfigurationAzureSecurityBaselineOutput) AssignmentType() pulumi.StringPtrOutput { return o.ApplyT(func(v ConfigurationAzureSecurityBaseline) *string { return v.AssignmentType }).(pulumi.StringPtrOutput) } type ConfigurationAzureSecurityBaselinePtrOutput struct{ *pulumi.OutputState } func (ConfigurationAzureSecurityBaselinePtrOutput) ElementType() reflect.Type { return reflect.TypeOf((**ConfigurationAzureSecurityBaseline)(nil)).Elem() } func (o ConfigurationAzureSecurityBaselinePtrOutput) ToConfigurationAzureSecurityBaselinePtrOutput() ConfigurationAzureSecurityBaselinePtrOutput { return o } func (o ConfigurationAzureSecurityBaselinePtrOutput) ToConfigurationAzureSecurityBaselinePtrOutputWithContext(ctx context.Context) ConfigurationAzureSecurityBaselinePtrOutput { return o } func (o ConfigurationAzureSecurityBaselinePtrOutput) Elem() ConfigurationAzureSecurityBaselineOutput { return o.ApplyT(func(v *ConfigurationAzureSecurityBaseline) ConfigurationAzureSecurityBaseline { if v != nil { return *v } var ret ConfigurationAzureSecurityBaseline return ret }).(ConfigurationAzureSecurityBaselineOutput) } // The assignment type of the azure security baseline. Possible values are `ApplyAndAutoCorrect`, `ApplyAndMonitor`, `Audit` and `DeployAndAutoCorrect`. Defaults to `ApplyAndAutoCorrect`. func (o ConfigurationAzureSecurityBaselinePtrOutput) AssignmentType() pulumi.StringPtrOutput { return o.ApplyT(func(v *ConfigurationAzureSecurityBaseline) *string { if v == nil { return nil } return v.AssignmentType }).(pulumi.StringPtrOutput) } type ConfigurationBackup struct { // The retention range in days of the backup policy. Defaults to `5`. InstantRpRetentionRangeInDays *int `pulumi:"instantRpRetentionRangeInDays"` // The name of the backup policy. PolicyName *string `pulumi:"policyName"` // A `retentionPolicy` block as defined below. RetentionPolicy *ConfigurationBackupRetentionPolicy `pulumi:"retentionPolicy"` // A `schedulePolicy` block as defined below. SchedulePolicy *ConfigurationBackupSchedulePolicy `pulumi:"schedulePolicy"` // The timezone of the backup policy. Defaults to `UTC`. TimeZone *string `pulumi:"timeZone"` } // ConfigurationBackupInput is an input type that accepts ConfigurationBackupArgs and ConfigurationBackupOutput values. // You can construct a concrete instance of `ConfigurationBackupInput` via: // // ConfigurationBackupArgs{...} type ConfigurationBackupInput interface { pulumi.Input ToConfigurationBackupOutput() ConfigurationBackupOutput ToConfigurationBackupOutputWithContext(context.Context) ConfigurationBackupOutput } type ConfigurationBackupArgs struct { // The retention range in days of the backup policy. Defaults to `5`. InstantRpRetentionRangeInDays pulumi.IntPtrInput `pulumi:"instantRpRetentionRangeInDays"` // The name of the backup policy. PolicyName pulumi.StringPtrInput `pulumi:"policyName"` // A `retentionPolicy` block as defined below. RetentionPolicy ConfigurationBackupRetentionPolicyPtrInput `pulumi:"retentionPolicy"` // A `schedulePolicy` block as defined below. SchedulePolicy ConfigurationBackupSchedulePolicyPtrInput `pulumi:"schedulePolicy"` // The timezone of the backup policy. Defaults to `UTC`. TimeZone pulumi.StringPtrInput `pulumi:"timeZone"` } func (ConfigurationBackupArgs) ElementType() reflect.Type { return reflect.TypeOf((*ConfigurationBackup)(nil)).Elem() } func (i ConfigurationBackupArgs) ToConfigurationBackupOutput() ConfigurationBackupOutput { return i.ToConfigurationBackupOutputWithContext(context.Background()) } func (i ConfigurationBackupArgs) ToConfigurationBackupOutputWithContext(ctx context.Context) ConfigurationBackupOutput { return pulumi.ToOutputWithContext(ctx, i).(ConfigurationBackupOutput) } func (i ConfigurationBackupArgs) ToConfigurationBackupPtrOutput() ConfigurationBackupPtrOutput { return i.ToConfigurationBackupPtrOutputWithContext(context.Background()) } func (i ConfigurationBackupArgs) ToConfigurationBackupPtrOutputWithContext(ctx context.Context) ConfigurationBackupPtrOutput { return pulumi.ToOutputWithContext(ctx, i).(ConfigurationBackupOutput).ToConfigurationBackupPtrOutputWithContext(ctx) } // ConfigurationBackupPtrInput is an input type that accepts ConfigurationBackupArgs, ConfigurationBackupPtr and ConfigurationBackupPtrOutput values. // You can construct a concrete instance of `ConfigurationBackupPtrInput` via: // // ConfigurationBackupArgs{...} // // or: // // nil type ConfigurationBackupPtrInput interface { pulumi.Input ToConfigurationBackupPtrOutput() ConfigurationBackupPtrOutput ToConfigurationBackupPtrOutputWithContext(context.Context) ConfigurationBackupPtrOutput } type configurationBackupPtrType ConfigurationBackupArgs func ConfigurationBackupPtr(v *ConfigurationBackupArgs) ConfigurationBackupPtrInput { return (*configurationBackupPtrType)(v) } func (*configurationBackupPtrType) ElementType() reflect.Type { return reflect.TypeOf((**ConfigurationBackup)(nil)).Elem() } func (i *configurationBackupPtrType) ToConfigurationBackupPtrOutput() ConfigurationBackupPtrOutput { return i.ToConfigurationBackupPtrOutputWithContext(context.Background()) } func (i *configurationBackupPtrType) ToConfigurationBackupPtrOutputWithContext(ctx context.Context) ConfigurationBackupPtrOutput { return pulumi.ToOutputWithContext(ctx, i).(ConfigurationBackupPtrOutput) } type ConfigurationBackupOutput struct{ *pulumi.OutputState } func (ConfigurationBackupOutput) ElementType() reflect.Type { return reflect.TypeOf((*ConfigurationBackup)(nil)).Elem() } func (o ConfigurationBackupOutput) ToConfigurationBackupOutput() ConfigurationBackupOutput { return o } func (o ConfigurationBackupOutput) ToConfigurationBackupOutputWithContext(ctx context.Context) ConfigurationBackupOutput { return o } func (o ConfigurationBackupOutput) ToConfigurationBackupPtrOutput() ConfigurationBackupPtrOutput { return o.ToConfigurationBackupPtrOutputWithContext(context.Background()) } func (o ConfigurationBackupOutput) ToConfigurationBackupPtrOutputWithContext(ctx context.Context) ConfigurationBackupPtrOutput { return o.ApplyTWithContext(ctx, func(_ context.Context, v ConfigurationBackup) *ConfigurationBackup { return &v }).(ConfigurationBackupPtrOutput) } // The retention range in days of the backup policy. Defaults to `5`. func (o ConfigurationBackupOutput) InstantRpRetentionRangeInDays() pulumi.IntPtrOutput { return o.ApplyT(func(v ConfigurationBackup) *int { return v.InstantRpRetentionRangeInDays }).(pulumi.IntPtrOutput) } // The name of the backup policy. func (o ConfigurationBackupOutput) PolicyName() pulumi.StringPtrOutput { return o.ApplyT(func(v ConfigurationBackup) *string { return v.PolicyName }).(pulumi.StringPtrOutput) } // A `retentionPolicy` block as defined below. func (o ConfigurationBackupOutput) RetentionPolicy() ConfigurationBackupRetentionPolicyPtrOutput { return o.ApplyT(func(v ConfigurationBackup) *ConfigurationBackupRetentionPolicy { return v.RetentionPolicy }).(ConfigurationBackupRetentionPolicyPtrOutput) } // A `schedulePolicy` block as defined below. func (o ConfigurationBackupOutput) SchedulePolicy() ConfigurationBackupSchedulePolicyPtrOutput { return o.ApplyT(func(v ConfigurationBackup) *ConfigurationBackupSchedulePolicy { return v.SchedulePolicy }).(ConfigurationBackupSchedulePolicyPtrOutput) } // The timezone of the backup policy. Defaults to `UTC`. func (o ConfigurationBackupOutput) TimeZone() pulumi.StringPtrOutput { return o.ApplyT(func(v ConfigurationBackup) *string { return v.TimeZone }).(pulumi.StringPtrOutput) } type ConfigurationBackupPtrOutput struct{ *pulumi.OutputState } func (ConfigurationBackupPtrOutput) ElementType() reflect.Type { return reflect.TypeOf((**ConfigurationBackup)(nil)).Elem() } func (o ConfigurationBackupPtrOutput) ToConfigurationBackupPtrOutput() ConfigurationBackupPtrOutput { 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/automanage/configuration.go
sdk/go/azure/automanage/configuration.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 automanage import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages an Automanage Configuration. // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/automanage" // "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-automanage"), // Location: pulumi.String("West Europe"), // }) // if err != nil { // return err // } // _, err = automanage.NewConfiguration(ctx, "example", &automanage.ConfigurationArgs{ // Name: pulumi.String("example-acmp"), // ResourceGroupName: example.Name, // Location: example.Location, // Antimalware: &automanage.ConfigurationAntimalwareArgs{ // Exclusions: &automanage.ConfigurationAntimalwareExclusionsArgs{ // Extensions: pulumi.String("exe;dll"), // Paths: pulumi.String("C:\\Windows\\Temp;D:\\Temp"), // Processes: pulumi.String("svchost.exe;notepad.exe"), // }, // RealTimeProtectionEnabled: pulumi.Bool(true), // ScheduledScanEnabled: pulumi.Bool(true), // ScheduledScanType: pulumi.String("Quick"), // ScheduledScanDay: pulumi.Int(1), // ScheduledScanTimeInMinutes: pulumi.Int(1339), // }, // AzureSecurityBaseline: &automanage.ConfigurationAzureSecurityBaselineArgs{ // AssignmentType: pulumi.String("ApplyAndAutoCorrect"), // }, // AutomationAccountEnabled: pulumi.Bool(true), // Backup: &automanage.ConfigurationBackupArgs{ // PolicyName: pulumi.String("acctest-backup-policy-%d"), // TimeZone: pulumi.String("UTC"), // InstantRpRetentionRangeInDays: pulumi.Int(2), // SchedulePolicy: &automanage.ConfigurationBackupSchedulePolicyArgs{ // ScheduleRunFrequency: pulumi.String("Daily"), // ScheduleRunDays: pulumi.StringArray{ // pulumi.String("Monday"), // pulumi.String("Tuesday"), // }, // ScheduleRunTimes: pulumi.StringArray{ // pulumi.String("12:00"), // }, // SchedulePolicyType: pulumi.String("SimpleSchedulePolicy"), // }, // RetentionPolicy: &automanage.ConfigurationBackupRetentionPolicyArgs{ // RetentionPolicyType: pulumi.String("LongTermRetentionPolicy"), // DailySchedule: &automanage.ConfigurationBackupRetentionPolicyDailyScheduleArgs{ // RetentionTimes: pulumi.StringArray{ // pulumi.String("12:00"), // }, // RetentionDuration: &automanage.ConfigurationBackupRetentionPolicyDailyScheduleRetentionDurationArgs{ // Count: pulumi.Int(7), // DurationType: pulumi.String("Days"), // }, // }, // WeeklySchedule: &automanage.ConfigurationBackupRetentionPolicyWeeklyScheduleArgs{ // RetentionTimes: pulumi.StringArray{ // pulumi.String("14:00"), // }, // RetentionDuration: &automanage.ConfigurationBackupRetentionPolicyWeeklyScheduleRetentionDurationArgs{ // Count: pulumi.Int(4), // DurationType: pulumi.String("Weeks"), // }, // }, // }, // }, // BootDiagnosticsEnabled: pulumi.Bool(true), // DefenderForCloudEnabled: pulumi.Bool(true), // GuestConfigurationEnabled: pulumi.Bool(true), // LogAnalyticsEnabled: pulumi.Bool(true), // StatusChangeAlertEnabled: pulumi.Bool(true), // Tags: pulumi.StringMap{ // "env": pulumi.String("test"), // }, // }) // 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.AutoManage` - 2022-05-04 // // ## Import // // Automanage Configuration can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:automanage/configuration:Configuration example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AutoManage/configurationProfiles/configurationProfile1 // ``` type Configuration struct { pulumi.CustomResourceState // A `antimalware` block as defined below. Antimalware ConfigurationAntimalwarePtrOutput `pulumi:"antimalware"` // Whether the automation account is enabled. Defaults to `false`. AutomationAccountEnabled pulumi.BoolPtrOutput `pulumi:"automationAccountEnabled"` // A `azureSecurityBaseline` block as defined below. AzureSecurityBaseline ConfigurationAzureSecurityBaselinePtrOutput `pulumi:"azureSecurityBaseline"` // A `backup` block as defined below. Backup ConfigurationBackupPtrOutput `pulumi:"backup"` // Whether the boot diagnostics are enabled. Defaults to `false`. BootDiagnosticsEnabled pulumi.BoolPtrOutput `pulumi:"bootDiagnosticsEnabled"` // Whether the defender for cloud is enabled. Defaults to `false`. DefenderForCloudEnabled pulumi.BoolPtrOutput `pulumi:"defenderForCloudEnabled"` // Whether the guest configuration is enabled. Defaults to `false`. GuestConfigurationEnabled pulumi.BoolPtrOutput `pulumi:"guestConfigurationEnabled"` // The Azure Region where the Automanage Configuration should exist. Changing this forces a new Automanage Configuration to be created. Location pulumi.StringOutput `pulumi:"location"` // Whether log analytics are enabled. Defaults to `false`. LogAnalyticsEnabled pulumi.BoolPtrOutput `pulumi:"logAnalyticsEnabled"` // The name which should be used for this Automanage Configuration. Changing this forces a new Automanage Configuration to be created. Name pulumi.StringOutput `pulumi:"name"` // The name of the Resource Group where the Automanage Configuration should exist. Changing this forces a new Automanage Configuration to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // Whether the status change alert is enabled. Defaults to `false`. StatusChangeAlertEnabled pulumi.BoolPtrOutput `pulumi:"statusChangeAlertEnabled"` Tags pulumi.StringMapOutput `pulumi:"tags"` } // NewConfiguration registers a new resource with the given unique name, arguments, and options. func NewConfiguration(ctx *pulumi.Context, name string, args *ConfigurationArgs, opts ...pulumi.ResourceOption) (*Configuration, 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 Configuration err := ctx.RegisterResource("azure:automanage/configuration:Configuration", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetConfiguration gets an existing Configuration 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 GetConfiguration(ctx *pulumi.Context, name string, id pulumi.IDInput, state *ConfigurationState, opts ...pulumi.ResourceOption) (*Configuration, error) { var resource Configuration err := ctx.ReadResource("azure:automanage/configuration:Configuration", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering Configuration resources. type configurationState struct { // A `antimalware` block as defined below. Antimalware *ConfigurationAntimalware `pulumi:"antimalware"` // Whether the automation account is enabled. Defaults to `false`. AutomationAccountEnabled *bool `pulumi:"automationAccountEnabled"` // A `azureSecurityBaseline` block as defined below. AzureSecurityBaseline *ConfigurationAzureSecurityBaseline `pulumi:"azureSecurityBaseline"` // A `backup` block as defined below. Backup *ConfigurationBackup `pulumi:"backup"` // Whether the boot diagnostics are enabled. Defaults to `false`. BootDiagnosticsEnabled *bool `pulumi:"bootDiagnosticsEnabled"` // Whether the defender for cloud is enabled. Defaults to `false`. DefenderForCloudEnabled *bool `pulumi:"defenderForCloudEnabled"` // Whether the guest configuration is enabled. Defaults to `false`. GuestConfigurationEnabled *bool `pulumi:"guestConfigurationEnabled"` // The Azure Region where the Automanage Configuration should exist. Changing this forces a new Automanage Configuration to be created. Location *string `pulumi:"location"` // Whether log analytics are enabled. Defaults to `false`. LogAnalyticsEnabled *bool `pulumi:"logAnalyticsEnabled"` // The name which should be used for this Automanage Configuration. Changing this forces a new Automanage Configuration to be created. Name *string `pulumi:"name"` // The name of the Resource Group where the Automanage Configuration should exist. Changing this forces a new Automanage Configuration to be created. ResourceGroupName *string `pulumi:"resourceGroupName"` // Whether the status change alert is enabled. Defaults to `false`. StatusChangeAlertEnabled *bool `pulumi:"statusChangeAlertEnabled"` Tags map[string]string `pulumi:"tags"` } type ConfigurationState struct { // A `antimalware` block as defined below. Antimalware ConfigurationAntimalwarePtrInput // Whether the automation account is enabled. Defaults to `false`. AutomationAccountEnabled pulumi.BoolPtrInput // A `azureSecurityBaseline` block as defined below. AzureSecurityBaseline ConfigurationAzureSecurityBaselinePtrInput // A `backup` block as defined below. Backup ConfigurationBackupPtrInput // Whether the boot diagnostics are enabled. Defaults to `false`. BootDiagnosticsEnabled pulumi.BoolPtrInput // Whether the defender for cloud is enabled. Defaults to `false`. DefenderForCloudEnabled pulumi.BoolPtrInput // Whether the guest configuration is enabled. Defaults to `false`. GuestConfigurationEnabled pulumi.BoolPtrInput // The Azure Region where the Automanage Configuration should exist. Changing this forces a new Automanage Configuration to be created. Location pulumi.StringPtrInput // Whether log analytics are enabled. Defaults to `false`. LogAnalyticsEnabled pulumi.BoolPtrInput // The name which should be used for this Automanage Configuration. Changing this forces a new Automanage Configuration to be created. Name pulumi.StringPtrInput // The name of the Resource Group where the Automanage Configuration should exist. Changing this forces a new Automanage Configuration to be created. ResourceGroupName pulumi.StringPtrInput // Whether the status change alert is enabled. Defaults to `false`. StatusChangeAlertEnabled pulumi.BoolPtrInput Tags pulumi.StringMapInput } func (ConfigurationState) ElementType() reflect.Type { return reflect.TypeOf((*configurationState)(nil)).Elem() } type configurationArgs struct { // A `antimalware` block as defined below. Antimalware *ConfigurationAntimalware `pulumi:"antimalware"` // Whether the automation account is enabled. Defaults to `false`. AutomationAccountEnabled *bool `pulumi:"automationAccountEnabled"` // A `azureSecurityBaseline` block as defined below. AzureSecurityBaseline *ConfigurationAzureSecurityBaseline `pulumi:"azureSecurityBaseline"` // A `backup` block as defined below. Backup *ConfigurationBackup `pulumi:"backup"` // Whether the boot diagnostics are enabled. Defaults to `false`. BootDiagnosticsEnabled *bool `pulumi:"bootDiagnosticsEnabled"` // Whether the defender for cloud is enabled. Defaults to `false`. DefenderForCloudEnabled *bool `pulumi:"defenderForCloudEnabled"` // Whether the guest configuration is enabled. Defaults to `false`. GuestConfigurationEnabled *bool `pulumi:"guestConfigurationEnabled"` // The Azure Region where the Automanage Configuration should exist. Changing this forces a new Automanage Configuration to be created. Location *string `pulumi:"location"` // Whether log analytics are enabled. Defaults to `false`. LogAnalyticsEnabled *bool `pulumi:"logAnalyticsEnabled"` // The name which should be used for this Automanage Configuration. Changing this forces a new Automanage Configuration to be created. Name *string `pulumi:"name"` // The name of the Resource Group where the Automanage Configuration should exist. Changing this forces a new Automanage Configuration to be created. ResourceGroupName string `pulumi:"resourceGroupName"` // Whether the status change alert is enabled. Defaults to `false`. StatusChangeAlertEnabled *bool `pulumi:"statusChangeAlertEnabled"` Tags map[string]string `pulumi:"tags"` } // The set of arguments for constructing a Configuration resource. type ConfigurationArgs struct { // A `antimalware` block as defined below. Antimalware ConfigurationAntimalwarePtrInput // Whether the automation account is enabled. Defaults to `false`. AutomationAccountEnabled pulumi.BoolPtrInput // A `azureSecurityBaseline` block as defined below. AzureSecurityBaseline ConfigurationAzureSecurityBaselinePtrInput // A `backup` block as defined below. Backup ConfigurationBackupPtrInput // Whether the boot diagnostics are enabled. Defaults to `false`. BootDiagnosticsEnabled pulumi.BoolPtrInput // Whether the defender for cloud is enabled. Defaults to `false`. DefenderForCloudEnabled pulumi.BoolPtrInput // Whether the guest configuration is enabled. Defaults to `false`. GuestConfigurationEnabled pulumi.BoolPtrInput // The Azure Region where the Automanage Configuration should exist. Changing this forces a new Automanage Configuration to be created. Location pulumi.StringPtrInput // Whether log analytics are enabled. Defaults to `false`. LogAnalyticsEnabled pulumi.BoolPtrInput // The name which should be used for this Automanage Configuration. Changing this forces a new Automanage Configuration to be created. Name pulumi.StringPtrInput // The name of the Resource Group where the Automanage Configuration should exist. Changing this forces a new Automanage Configuration to be created. ResourceGroupName pulumi.StringInput // Whether the status change alert is enabled. Defaults to `false`. StatusChangeAlertEnabled pulumi.BoolPtrInput Tags pulumi.StringMapInput } func (ConfigurationArgs) ElementType() reflect.Type { return reflect.TypeOf((*configurationArgs)(nil)).Elem() } type ConfigurationInput interface { pulumi.Input ToConfigurationOutput() ConfigurationOutput ToConfigurationOutputWithContext(ctx context.Context) ConfigurationOutput } func (*Configuration) ElementType() reflect.Type { return reflect.TypeOf((**Configuration)(nil)).Elem() } func (i *Configuration) ToConfigurationOutput() ConfigurationOutput { return i.ToConfigurationOutputWithContext(context.Background()) } func (i *Configuration) ToConfigurationOutputWithContext(ctx context.Context) ConfigurationOutput { return pulumi.ToOutputWithContext(ctx, i).(ConfigurationOutput) } // ConfigurationArrayInput is an input type that accepts ConfigurationArray and ConfigurationArrayOutput values. // You can construct a concrete instance of `ConfigurationArrayInput` via: // // ConfigurationArray{ ConfigurationArgs{...} } type ConfigurationArrayInput interface { pulumi.Input ToConfigurationArrayOutput() ConfigurationArrayOutput ToConfigurationArrayOutputWithContext(context.Context) ConfigurationArrayOutput } type ConfigurationArray []ConfigurationInput func (ConfigurationArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*Configuration)(nil)).Elem() } func (i ConfigurationArray) ToConfigurationArrayOutput() ConfigurationArrayOutput { return i.ToConfigurationArrayOutputWithContext(context.Background()) } func (i ConfigurationArray) ToConfigurationArrayOutputWithContext(ctx context.Context) ConfigurationArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(ConfigurationArrayOutput) } // ConfigurationMapInput is an input type that accepts ConfigurationMap and ConfigurationMapOutput values. // You can construct a concrete instance of `ConfigurationMapInput` via: // // ConfigurationMap{ "key": ConfigurationArgs{...} } type ConfigurationMapInput interface { pulumi.Input ToConfigurationMapOutput() ConfigurationMapOutput ToConfigurationMapOutputWithContext(context.Context) ConfigurationMapOutput } type ConfigurationMap map[string]ConfigurationInput func (ConfigurationMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*Configuration)(nil)).Elem() } func (i ConfigurationMap) ToConfigurationMapOutput() ConfigurationMapOutput { return i.ToConfigurationMapOutputWithContext(context.Background()) } func (i ConfigurationMap) ToConfigurationMapOutputWithContext(ctx context.Context) ConfigurationMapOutput { return pulumi.ToOutputWithContext(ctx, i).(ConfigurationMapOutput) } type ConfigurationOutput struct{ *pulumi.OutputState } func (ConfigurationOutput) ElementType() reflect.Type { return reflect.TypeOf((**Configuration)(nil)).Elem() } func (o ConfigurationOutput) ToConfigurationOutput() ConfigurationOutput { return o } func (o ConfigurationOutput) ToConfigurationOutputWithContext(ctx context.Context) ConfigurationOutput { return o } // A `antimalware` block as defined below. func (o ConfigurationOutput) Antimalware() ConfigurationAntimalwarePtrOutput { return o.ApplyT(func(v *Configuration) ConfigurationAntimalwarePtrOutput { return v.Antimalware }).(ConfigurationAntimalwarePtrOutput) } // Whether the automation account is enabled. Defaults to `false`. func (o ConfigurationOutput) AutomationAccountEnabled() pulumi.BoolPtrOutput { return o.ApplyT(func(v *Configuration) pulumi.BoolPtrOutput { return v.AutomationAccountEnabled }).(pulumi.BoolPtrOutput) } // A `azureSecurityBaseline` block as defined below. func (o ConfigurationOutput) AzureSecurityBaseline() ConfigurationAzureSecurityBaselinePtrOutput { return o.ApplyT(func(v *Configuration) ConfigurationAzureSecurityBaselinePtrOutput { return v.AzureSecurityBaseline }).(ConfigurationAzureSecurityBaselinePtrOutput) } // A `backup` block as defined below. func (o ConfigurationOutput) Backup() ConfigurationBackupPtrOutput { return o.ApplyT(func(v *Configuration) ConfigurationBackupPtrOutput { return v.Backup }).(ConfigurationBackupPtrOutput) } // Whether the boot diagnostics are enabled. Defaults to `false`. func (o ConfigurationOutput) BootDiagnosticsEnabled() pulumi.BoolPtrOutput { return o.ApplyT(func(v *Configuration) pulumi.BoolPtrOutput { return v.BootDiagnosticsEnabled }).(pulumi.BoolPtrOutput) } // Whether the defender for cloud is enabled. Defaults to `false`. func (o ConfigurationOutput) DefenderForCloudEnabled() pulumi.BoolPtrOutput { return o.ApplyT(func(v *Configuration) pulumi.BoolPtrOutput { return v.DefenderForCloudEnabled }).(pulumi.BoolPtrOutput) } // Whether the guest configuration is enabled. Defaults to `false`. func (o ConfigurationOutput) GuestConfigurationEnabled() pulumi.BoolPtrOutput { return o.ApplyT(func(v *Configuration) pulumi.BoolPtrOutput { return v.GuestConfigurationEnabled }).(pulumi.BoolPtrOutput) } // The Azure Region where the Automanage Configuration should exist. Changing this forces a new Automanage Configuration to be created. func (o ConfigurationOutput) Location() pulumi.StringOutput { return o.ApplyT(func(v *Configuration) pulumi.StringOutput { return v.Location }).(pulumi.StringOutput) } // Whether log analytics are enabled. Defaults to `false`. func (o ConfigurationOutput) LogAnalyticsEnabled() pulumi.BoolPtrOutput { return o.ApplyT(func(v *Configuration) pulumi.BoolPtrOutput { return v.LogAnalyticsEnabled }).(pulumi.BoolPtrOutput) } // The name which should be used for this Automanage Configuration. Changing this forces a new Automanage Configuration to be created. func (o ConfigurationOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *Configuration) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // The name of the Resource Group where the Automanage Configuration should exist. Changing this forces a new Automanage Configuration to be created. func (o ConfigurationOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v *Configuration) pulumi.StringOutput { return v.ResourceGroupName }).(pulumi.StringOutput) } // Whether the status change alert is enabled. Defaults to `false`. func (o ConfigurationOutput) StatusChangeAlertEnabled() pulumi.BoolPtrOutput { return o.ApplyT(func(v *Configuration) pulumi.BoolPtrOutput { return v.StatusChangeAlertEnabled }).(pulumi.BoolPtrOutput) } func (o ConfigurationOutput) Tags() pulumi.StringMapOutput { return o.ApplyT(func(v *Configuration) pulumi.StringMapOutput { return v.Tags }).(pulumi.StringMapOutput) } type ConfigurationArrayOutput struct{ *pulumi.OutputState } func (ConfigurationArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*Configuration)(nil)).Elem() } func (o ConfigurationArrayOutput) ToConfigurationArrayOutput() ConfigurationArrayOutput { return o } func (o ConfigurationArrayOutput) ToConfigurationArrayOutputWithContext(ctx context.Context) ConfigurationArrayOutput { return o } func (o ConfigurationArrayOutput) Index(i pulumi.IntInput) ConfigurationOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *Configuration { return vs[0].([]*Configuration)[vs[1].(int)] }).(ConfigurationOutput) } type ConfigurationMapOutput struct{ *pulumi.OutputState } func (ConfigurationMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*Configuration)(nil)).Elem() } func (o ConfigurationMapOutput) ToConfigurationMapOutput() ConfigurationMapOutput { return o } func (o ConfigurationMapOutput) ToConfigurationMapOutputWithContext(ctx context.Context) ConfigurationMapOutput { return o } func (o ConfigurationMapOutput) MapIndex(k pulumi.StringInput) ConfigurationOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *Configuration { return vs[0].(map[string]*Configuration)[vs[1].(string)] }).(ConfigurationOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*ConfigurationInput)(nil)).Elem(), &Configuration{}) pulumi.RegisterInputType(reflect.TypeOf((*ConfigurationArrayInput)(nil)).Elem(), ConfigurationArray{}) pulumi.RegisterInputType(reflect.TypeOf((*ConfigurationMapInput)(nil)).Elem(), ConfigurationMap{}) pulumi.RegisterOutputType(ConfigurationOutput{}) pulumi.RegisterOutputType(ConfigurationArrayOutput{}) pulumi.RegisterOutputType(ConfigurationMapOutput{}) }
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/authorization/init.go
sdk/go/azure/authorization/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 authorization 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:authorization/assignment:Assignment": r = &Assignment{} case "azure:authorization/roleDefinition:RoleDefinition": r = &RoleDefinition{} case "azure:authorization/userAssignedIdentity:UserAssignedIdentity": r = &UserAssignedIdentity{} 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", "authorization/assignment", &module{version}, ) pulumi.RegisterResourceModule( "azure", "authorization/roleDefinition", &module{version}, ) pulumi.RegisterResourceModule( "azure", "authorization/userAssignedIdentity", &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/authorization/pulumiTypes.go
sdk/go/azure/authorization/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 authorization 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 RoleDefinitionPermission struct { // One or more Allowed Actions, such as `*`, `Microsoft.Resources/subscriptions/resourceGroups/read`. See ['Azure Resource Manager resource provider operations'](https://docs.microsoft.com/azure/role-based-access-control/resource-provider-operations) for details. Actions []string `pulumi:"actions"` // One or more Allowed Data Actions, such as `*`, `Microsoft.Storage/storageAccounts/blobServices/containers/blobs/read`. See ['Azure Resource Manager resource provider operations'](https://docs.microsoft.com/azure/role-based-access-control/resource-provider-operations) for details. DataActions []string `pulumi:"dataActions"` // One or more Disallowed Actions, such as `*`, `Microsoft.Resources/subscriptions/resourceGroups/read`. See ['Azure Resource Manager resource provider operations'](https://docs.microsoft.com/azure/role-based-access-control/resource-provider-operations) for details. NotActions []string `pulumi:"notActions"` // One or more Disallowed Data Actions, such as `*`, `Microsoft.Resources/subscriptions/resourceGroups/read`. See ['Azure Resource Manager resource provider operations'](https://docs.microsoft.com/azure/role-based-access-control/resource-provider-operations) for details. NotDataActions []string `pulumi:"notDataActions"` } // RoleDefinitionPermissionInput is an input type that accepts RoleDefinitionPermissionArgs and RoleDefinitionPermissionOutput values. // You can construct a concrete instance of `RoleDefinitionPermissionInput` via: // // RoleDefinitionPermissionArgs{...} type RoleDefinitionPermissionInput interface { pulumi.Input ToRoleDefinitionPermissionOutput() RoleDefinitionPermissionOutput ToRoleDefinitionPermissionOutputWithContext(context.Context) RoleDefinitionPermissionOutput } type RoleDefinitionPermissionArgs struct { // One or more Allowed Actions, such as `*`, `Microsoft.Resources/subscriptions/resourceGroups/read`. See ['Azure Resource Manager resource provider operations'](https://docs.microsoft.com/azure/role-based-access-control/resource-provider-operations) for details. Actions pulumi.StringArrayInput `pulumi:"actions"` // One or more Allowed Data Actions, such as `*`, `Microsoft.Storage/storageAccounts/blobServices/containers/blobs/read`. See ['Azure Resource Manager resource provider operations'](https://docs.microsoft.com/azure/role-based-access-control/resource-provider-operations) for details. DataActions pulumi.StringArrayInput `pulumi:"dataActions"` // One or more Disallowed Actions, such as `*`, `Microsoft.Resources/subscriptions/resourceGroups/read`. See ['Azure Resource Manager resource provider operations'](https://docs.microsoft.com/azure/role-based-access-control/resource-provider-operations) for details. NotActions pulumi.StringArrayInput `pulumi:"notActions"` // One or more Disallowed Data Actions, such as `*`, `Microsoft.Resources/subscriptions/resourceGroups/read`. See ['Azure Resource Manager resource provider operations'](https://docs.microsoft.com/azure/role-based-access-control/resource-provider-operations) for details. NotDataActions pulumi.StringArrayInput `pulumi:"notDataActions"` } func (RoleDefinitionPermissionArgs) ElementType() reflect.Type { return reflect.TypeOf((*RoleDefinitionPermission)(nil)).Elem() } func (i RoleDefinitionPermissionArgs) ToRoleDefinitionPermissionOutput() RoleDefinitionPermissionOutput { return i.ToRoleDefinitionPermissionOutputWithContext(context.Background()) } func (i RoleDefinitionPermissionArgs) ToRoleDefinitionPermissionOutputWithContext(ctx context.Context) RoleDefinitionPermissionOutput { return pulumi.ToOutputWithContext(ctx, i).(RoleDefinitionPermissionOutput) } // RoleDefinitionPermissionArrayInput is an input type that accepts RoleDefinitionPermissionArray and RoleDefinitionPermissionArrayOutput values. // You can construct a concrete instance of `RoleDefinitionPermissionArrayInput` via: // // RoleDefinitionPermissionArray{ RoleDefinitionPermissionArgs{...} } type RoleDefinitionPermissionArrayInput interface { pulumi.Input ToRoleDefinitionPermissionArrayOutput() RoleDefinitionPermissionArrayOutput ToRoleDefinitionPermissionArrayOutputWithContext(context.Context) RoleDefinitionPermissionArrayOutput } type RoleDefinitionPermissionArray []RoleDefinitionPermissionInput func (RoleDefinitionPermissionArray) ElementType() reflect.Type { return reflect.TypeOf((*[]RoleDefinitionPermission)(nil)).Elem() } func (i RoleDefinitionPermissionArray) ToRoleDefinitionPermissionArrayOutput() RoleDefinitionPermissionArrayOutput { return i.ToRoleDefinitionPermissionArrayOutputWithContext(context.Background()) } func (i RoleDefinitionPermissionArray) ToRoleDefinitionPermissionArrayOutputWithContext(ctx context.Context) RoleDefinitionPermissionArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(RoleDefinitionPermissionArrayOutput) } type RoleDefinitionPermissionOutput struct{ *pulumi.OutputState } func (RoleDefinitionPermissionOutput) ElementType() reflect.Type { return reflect.TypeOf((*RoleDefinitionPermission)(nil)).Elem() } func (o RoleDefinitionPermissionOutput) ToRoleDefinitionPermissionOutput() RoleDefinitionPermissionOutput { return o } func (o RoleDefinitionPermissionOutput) ToRoleDefinitionPermissionOutputWithContext(ctx context.Context) RoleDefinitionPermissionOutput { return o } // One or more Allowed Actions, such as `*`, `Microsoft.Resources/subscriptions/resourceGroups/read`. See ['Azure Resource Manager resource provider operations'](https://docs.microsoft.com/azure/role-based-access-control/resource-provider-operations) for details. func (o RoleDefinitionPermissionOutput) Actions() pulumi.StringArrayOutput { return o.ApplyT(func(v RoleDefinitionPermission) []string { return v.Actions }).(pulumi.StringArrayOutput) } // One or more Allowed Data Actions, such as `*`, `Microsoft.Storage/storageAccounts/blobServices/containers/blobs/read`. See ['Azure Resource Manager resource provider operations'](https://docs.microsoft.com/azure/role-based-access-control/resource-provider-operations) for details. func (o RoleDefinitionPermissionOutput) DataActions() pulumi.StringArrayOutput { return o.ApplyT(func(v RoleDefinitionPermission) []string { return v.DataActions }).(pulumi.StringArrayOutput) } // One or more Disallowed Actions, such as `*`, `Microsoft.Resources/subscriptions/resourceGroups/read`. See ['Azure Resource Manager resource provider operations'](https://docs.microsoft.com/azure/role-based-access-control/resource-provider-operations) for details. func (o RoleDefinitionPermissionOutput) NotActions() pulumi.StringArrayOutput { return o.ApplyT(func(v RoleDefinitionPermission) []string { return v.NotActions }).(pulumi.StringArrayOutput) } // One or more Disallowed Data Actions, such as `*`, `Microsoft.Resources/subscriptions/resourceGroups/read`. See ['Azure Resource Manager resource provider operations'](https://docs.microsoft.com/azure/role-based-access-control/resource-provider-operations) for details. func (o RoleDefinitionPermissionOutput) NotDataActions() pulumi.StringArrayOutput { return o.ApplyT(func(v RoleDefinitionPermission) []string { return v.NotDataActions }).(pulumi.StringArrayOutput) } type RoleDefinitionPermissionArrayOutput struct{ *pulumi.OutputState } func (RoleDefinitionPermissionArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]RoleDefinitionPermission)(nil)).Elem() } func (o RoleDefinitionPermissionArrayOutput) ToRoleDefinitionPermissionArrayOutput() RoleDefinitionPermissionArrayOutput { return o } func (o RoleDefinitionPermissionArrayOutput) ToRoleDefinitionPermissionArrayOutputWithContext(ctx context.Context) RoleDefinitionPermissionArrayOutput { return o } func (o RoleDefinitionPermissionArrayOutput) Index(i pulumi.IntInput) RoleDefinitionPermissionOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) RoleDefinitionPermission { return vs[0].([]RoleDefinitionPermission)[vs[1].(int)] }).(RoleDefinitionPermissionOutput) } type GetRoleDefinitionPermission struct { // A list of actions supported by this role. Actions []string `pulumi:"actions"` // The conditions on this role definition, which limits the resources it can be assigned to. Condition string `pulumi:"condition"` // The version of the condition. ConditionVersion string `pulumi:"conditionVersion"` // A list of data actions allowed by this role. DataActions []string `pulumi:"dataActions"` // A list of actions which are denied by this role. NotActions []string `pulumi:"notActions"` // A list of data actions which are denied by this role. NotDataActions []string `pulumi:"notDataActions"` } // GetRoleDefinitionPermissionInput is an input type that accepts GetRoleDefinitionPermissionArgs and GetRoleDefinitionPermissionOutput values. // You can construct a concrete instance of `GetRoleDefinitionPermissionInput` via: // // GetRoleDefinitionPermissionArgs{...} type GetRoleDefinitionPermissionInput interface { pulumi.Input ToGetRoleDefinitionPermissionOutput() GetRoleDefinitionPermissionOutput ToGetRoleDefinitionPermissionOutputWithContext(context.Context) GetRoleDefinitionPermissionOutput } type GetRoleDefinitionPermissionArgs struct { // A list of actions supported by this role. Actions pulumi.StringArrayInput `pulumi:"actions"` // The conditions on this role definition, which limits the resources it can be assigned to. Condition pulumi.StringInput `pulumi:"condition"` // The version of the condition. ConditionVersion pulumi.StringInput `pulumi:"conditionVersion"` // A list of data actions allowed by this role. DataActions pulumi.StringArrayInput `pulumi:"dataActions"` // A list of actions which are denied by this role. NotActions pulumi.StringArrayInput `pulumi:"notActions"` // A list of data actions which are denied by this role. NotDataActions pulumi.StringArrayInput `pulumi:"notDataActions"` } func (GetRoleDefinitionPermissionArgs) ElementType() reflect.Type { return reflect.TypeOf((*GetRoleDefinitionPermission)(nil)).Elem() } func (i GetRoleDefinitionPermissionArgs) ToGetRoleDefinitionPermissionOutput() GetRoleDefinitionPermissionOutput { return i.ToGetRoleDefinitionPermissionOutputWithContext(context.Background()) } func (i GetRoleDefinitionPermissionArgs) ToGetRoleDefinitionPermissionOutputWithContext(ctx context.Context) GetRoleDefinitionPermissionOutput { return pulumi.ToOutputWithContext(ctx, i).(GetRoleDefinitionPermissionOutput) } // GetRoleDefinitionPermissionArrayInput is an input type that accepts GetRoleDefinitionPermissionArray and GetRoleDefinitionPermissionArrayOutput values. // You can construct a concrete instance of `GetRoleDefinitionPermissionArrayInput` via: // // GetRoleDefinitionPermissionArray{ GetRoleDefinitionPermissionArgs{...} } type GetRoleDefinitionPermissionArrayInput interface { pulumi.Input ToGetRoleDefinitionPermissionArrayOutput() GetRoleDefinitionPermissionArrayOutput ToGetRoleDefinitionPermissionArrayOutputWithContext(context.Context) GetRoleDefinitionPermissionArrayOutput } type GetRoleDefinitionPermissionArray []GetRoleDefinitionPermissionInput func (GetRoleDefinitionPermissionArray) ElementType() reflect.Type { return reflect.TypeOf((*[]GetRoleDefinitionPermission)(nil)).Elem() } func (i GetRoleDefinitionPermissionArray) ToGetRoleDefinitionPermissionArrayOutput() GetRoleDefinitionPermissionArrayOutput { return i.ToGetRoleDefinitionPermissionArrayOutputWithContext(context.Background()) } func (i GetRoleDefinitionPermissionArray) ToGetRoleDefinitionPermissionArrayOutputWithContext(ctx context.Context) GetRoleDefinitionPermissionArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(GetRoleDefinitionPermissionArrayOutput) } type GetRoleDefinitionPermissionOutput struct{ *pulumi.OutputState } func (GetRoleDefinitionPermissionOutput) ElementType() reflect.Type { return reflect.TypeOf((*GetRoleDefinitionPermission)(nil)).Elem() } func (o GetRoleDefinitionPermissionOutput) ToGetRoleDefinitionPermissionOutput() GetRoleDefinitionPermissionOutput { return o } func (o GetRoleDefinitionPermissionOutput) ToGetRoleDefinitionPermissionOutputWithContext(ctx context.Context) GetRoleDefinitionPermissionOutput { return o } // A list of actions supported by this role. func (o GetRoleDefinitionPermissionOutput) Actions() pulumi.StringArrayOutput { return o.ApplyT(func(v GetRoleDefinitionPermission) []string { return v.Actions }).(pulumi.StringArrayOutput) } // The conditions on this role definition, which limits the resources it can be assigned to. func (o GetRoleDefinitionPermissionOutput) Condition() pulumi.StringOutput { return o.ApplyT(func(v GetRoleDefinitionPermission) string { return v.Condition }).(pulumi.StringOutput) } // The version of the condition. func (o GetRoleDefinitionPermissionOutput) ConditionVersion() pulumi.StringOutput { return o.ApplyT(func(v GetRoleDefinitionPermission) string { return v.ConditionVersion }).(pulumi.StringOutput) } // A list of data actions allowed by this role. func (o GetRoleDefinitionPermissionOutput) DataActions() pulumi.StringArrayOutput { return o.ApplyT(func(v GetRoleDefinitionPermission) []string { return v.DataActions }).(pulumi.StringArrayOutput) } // A list of actions which are denied by this role. func (o GetRoleDefinitionPermissionOutput) NotActions() pulumi.StringArrayOutput { return o.ApplyT(func(v GetRoleDefinitionPermission) []string { return v.NotActions }).(pulumi.StringArrayOutput) } // A list of data actions which are denied by this role. func (o GetRoleDefinitionPermissionOutput) NotDataActions() pulumi.StringArrayOutput { return o.ApplyT(func(v GetRoleDefinitionPermission) []string { return v.NotDataActions }).(pulumi.StringArrayOutput) } type GetRoleDefinitionPermissionArrayOutput struct{ *pulumi.OutputState } func (GetRoleDefinitionPermissionArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]GetRoleDefinitionPermission)(nil)).Elem() } func (o GetRoleDefinitionPermissionArrayOutput) ToGetRoleDefinitionPermissionArrayOutput() GetRoleDefinitionPermissionArrayOutput { return o } func (o GetRoleDefinitionPermissionArrayOutput) ToGetRoleDefinitionPermissionArrayOutputWithContext(ctx context.Context) GetRoleDefinitionPermissionArrayOutput { return o } func (o GetRoleDefinitionPermissionArrayOutput) Index(i pulumi.IntInput) GetRoleDefinitionPermissionOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) GetRoleDefinitionPermission { return vs[0].([]GetRoleDefinitionPermission)[vs[1].(int)] }).(GetRoleDefinitionPermissionOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*RoleDefinitionPermissionInput)(nil)).Elem(), RoleDefinitionPermissionArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*RoleDefinitionPermissionArrayInput)(nil)).Elem(), RoleDefinitionPermissionArray{}) pulumi.RegisterInputType(reflect.TypeOf((*GetRoleDefinitionPermissionInput)(nil)).Elem(), GetRoleDefinitionPermissionArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*GetRoleDefinitionPermissionArrayInput)(nil)).Elem(), GetRoleDefinitionPermissionArray{}) pulumi.RegisterOutputType(RoleDefinitionPermissionOutput{}) pulumi.RegisterOutputType(RoleDefinitionPermissionArrayOutput{}) pulumi.RegisterOutputType(GetRoleDefinitionPermissionOutput{}) pulumi.RegisterOutputType(GetRoleDefinitionPermissionArrayOutput{}) }
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/authorization/userAssignedIdentity.go
sdk/go/azure/authorization/userAssignedIdentity.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 authorization 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 User Assigned Identity. // // ## 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/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 = authorization.NewUserAssignedIdentity(ctx, "example", &authorization.UserAssignedIdentityArgs{ // Location: example.Location, // Name: pulumi.String("example"), // ResourceGroupName: example.Name, // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## API Providers // // <!-- This section is generated, changes will be overwritten --> // This resource uses the following Azure API Providers: // // * `Microsoft.ManagedIdentity` - 2024-11-30 // // ## Import // // An existing User Assigned Identity can be imported into Pulumi using the `resource id`, e.g. // // ```sh // $ pulumi import azure:authorization/userAssignedIdentity:UserAssignedIdentity example /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{userAssignedIdentityName} // ``` // // * Where `{subscriptionId}` is the ID of the Azure Subscription where the User Assigned Identity exists. For example `12345678-1234-9876-4563-123456789012`. // // * Where `{resourceGroupName}` is the name of Resource Group where this User Assigned Identity exists. For example `example-resource-group`. // // * Where `{userAssignedIdentityName}` is the name of the User Assigned Identity. For example `userAssignedIdentityValue`. type UserAssignedIdentity struct { pulumi.CustomResourceState // The ID of the app associated with the Identity. ClientId pulumi.StringOutput `pulumi:"clientId"` // The Azure Region where the User Assigned Identity should exist. Changing this forces a new User Assigned Identity to be created. Location pulumi.StringOutput `pulumi:"location"` // Specifies the name of this User Assigned Identity. Changing this forces a new User Assigned Identity to be created. Name pulumi.StringOutput `pulumi:"name"` // The ID of the Service Principal object associated with the created Identity. PrincipalId pulumi.StringOutput `pulumi:"principalId"` // Specifies the name of the Resource Group within which this User Assigned Identity should exist. Changing this forces a new User Assigned Identity to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // A mapping of tags which should be assigned to the User Assigned Identity. Tags pulumi.StringMapOutput `pulumi:"tags"` // The ID of the Tenant which the Identity belongs to. TenantId pulumi.StringOutput `pulumi:"tenantId"` } // NewUserAssignedIdentity registers a new resource with the given unique name, arguments, and options. func NewUserAssignedIdentity(ctx *pulumi.Context, name string, args *UserAssignedIdentityArgs, opts ...pulumi.ResourceOption) (*UserAssignedIdentity, 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'") } aliases := pulumi.Aliases([]pulumi.Alias{ { Type: pulumi.String("azure:msi/userAssignedIdentity:UserAssignedIdentity"), }, }) opts = append(opts, aliases) opts = internal.PkgResourceDefaultOpts(opts) var resource UserAssignedIdentity err := ctx.RegisterResource("azure:authorization/userAssignedIdentity:UserAssignedIdentity", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetUserAssignedIdentity gets an existing UserAssignedIdentity 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 GetUserAssignedIdentity(ctx *pulumi.Context, name string, id pulumi.IDInput, state *UserAssignedIdentityState, opts ...pulumi.ResourceOption) (*UserAssignedIdentity, error) { var resource UserAssignedIdentity err := ctx.ReadResource("azure:authorization/userAssignedIdentity:UserAssignedIdentity", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering UserAssignedIdentity resources. type userAssignedIdentityState struct { // The ID of the app associated with the Identity. ClientId *string `pulumi:"clientId"` // The Azure Region where the User Assigned Identity should exist. Changing this forces a new User Assigned Identity to be created. Location *string `pulumi:"location"` // Specifies the name of this User Assigned Identity. Changing this forces a new User Assigned Identity to be created. Name *string `pulumi:"name"` // The ID of the Service Principal object associated with the created Identity. PrincipalId *string `pulumi:"principalId"` // Specifies the name of the Resource Group within which this User Assigned Identity should exist. Changing this forces a new User Assigned Identity to be created. ResourceGroupName *string `pulumi:"resourceGroupName"` // A mapping of tags which should be assigned to the User Assigned Identity. Tags map[string]string `pulumi:"tags"` // The ID of the Tenant which the Identity belongs to. TenantId *string `pulumi:"tenantId"` } type UserAssignedIdentityState struct { // The ID of the app associated with the Identity. ClientId pulumi.StringPtrInput // The Azure Region where the User Assigned Identity should exist. Changing this forces a new User Assigned Identity to be created. Location pulumi.StringPtrInput // Specifies the name of this User Assigned Identity. Changing this forces a new User Assigned Identity to be created. Name pulumi.StringPtrInput // The ID of the Service Principal object associated with the created Identity. PrincipalId pulumi.StringPtrInput // Specifies the name of the Resource Group within which this User Assigned Identity should exist. Changing this forces a new User Assigned Identity to be created. ResourceGroupName pulumi.StringPtrInput // A mapping of tags which should be assigned to the User Assigned Identity. Tags pulumi.StringMapInput // The ID of the Tenant which the Identity belongs to. TenantId pulumi.StringPtrInput } func (UserAssignedIdentityState) ElementType() reflect.Type { return reflect.TypeOf((*userAssignedIdentityState)(nil)).Elem() } type userAssignedIdentityArgs struct { // The Azure Region where the User Assigned Identity should exist. Changing this forces a new User Assigned Identity to be created. Location *string `pulumi:"location"` // Specifies the name of this User Assigned Identity. Changing this forces a new User Assigned Identity to be created. Name *string `pulumi:"name"` // Specifies the name of the Resource Group within which this User Assigned Identity should exist. Changing this forces a new User Assigned Identity to be created. ResourceGroupName string `pulumi:"resourceGroupName"` // A mapping of tags which should be assigned to the User Assigned Identity. Tags map[string]string `pulumi:"tags"` } // The set of arguments for constructing a UserAssignedIdentity resource. type UserAssignedIdentityArgs struct { // The Azure Region where the User Assigned Identity should exist. Changing this forces a new User Assigned Identity to be created. Location pulumi.StringPtrInput // Specifies the name of this User Assigned Identity. Changing this forces a new User Assigned Identity to be created. Name pulumi.StringPtrInput // Specifies the name of the Resource Group within which this User Assigned Identity should exist. Changing this forces a new User Assigned Identity to be created. ResourceGroupName pulumi.StringInput // A mapping of tags which should be assigned to the User Assigned Identity. Tags pulumi.StringMapInput } func (UserAssignedIdentityArgs) ElementType() reflect.Type { return reflect.TypeOf((*userAssignedIdentityArgs)(nil)).Elem() } type UserAssignedIdentityInput interface { pulumi.Input ToUserAssignedIdentityOutput() UserAssignedIdentityOutput ToUserAssignedIdentityOutputWithContext(ctx context.Context) UserAssignedIdentityOutput } func (*UserAssignedIdentity) ElementType() reflect.Type { return reflect.TypeOf((**UserAssignedIdentity)(nil)).Elem() } func (i *UserAssignedIdentity) ToUserAssignedIdentityOutput() UserAssignedIdentityOutput { return i.ToUserAssignedIdentityOutputWithContext(context.Background()) } func (i *UserAssignedIdentity) ToUserAssignedIdentityOutputWithContext(ctx context.Context) UserAssignedIdentityOutput { return pulumi.ToOutputWithContext(ctx, i).(UserAssignedIdentityOutput) } // UserAssignedIdentityArrayInput is an input type that accepts UserAssignedIdentityArray and UserAssignedIdentityArrayOutput values. // You can construct a concrete instance of `UserAssignedIdentityArrayInput` via: // // UserAssignedIdentityArray{ UserAssignedIdentityArgs{...} } type UserAssignedIdentityArrayInput interface { pulumi.Input ToUserAssignedIdentityArrayOutput() UserAssignedIdentityArrayOutput ToUserAssignedIdentityArrayOutputWithContext(context.Context) UserAssignedIdentityArrayOutput } type UserAssignedIdentityArray []UserAssignedIdentityInput func (UserAssignedIdentityArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*UserAssignedIdentity)(nil)).Elem() } func (i UserAssignedIdentityArray) ToUserAssignedIdentityArrayOutput() UserAssignedIdentityArrayOutput { return i.ToUserAssignedIdentityArrayOutputWithContext(context.Background()) } func (i UserAssignedIdentityArray) ToUserAssignedIdentityArrayOutputWithContext(ctx context.Context) UserAssignedIdentityArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(UserAssignedIdentityArrayOutput) } // UserAssignedIdentityMapInput is an input type that accepts UserAssignedIdentityMap and UserAssignedIdentityMapOutput values. // You can construct a concrete instance of `UserAssignedIdentityMapInput` via: // // UserAssignedIdentityMap{ "key": UserAssignedIdentityArgs{...} } type UserAssignedIdentityMapInput interface { pulumi.Input ToUserAssignedIdentityMapOutput() UserAssignedIdentityMapOutput ToUserAssignedIdentityMapOutputWithContext(context.Context) UserAssignedIdentityMapOutput } type UserAssignedIdentityMap map[string]UserAssignedIdentityInput func (UserAssignedIdentityMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*UserAssignedIdentity)(nil)).Elem() } func (i UserAssignedIdentityMap) ToUserAssignedIdentityMapOutput() UserAssignedIdentityMapOutput { return i.ToUserAssignedIdentityMapOutputWithContext(context.Background()) } func (i UserAssignedIdentityMap) ToUserAssignedIdentityMapOutputWithContext(ctx context.Context) UserAssignedIdentityMapOutput { return pulumi.ToOutputWithContext(ctx, i).(UserAssignedIdentityMapOutput) } type UserAssignedIdentityOutput struct{ *pulumi.OutputState } func (UserAssignedIdentityOutput) ElementType() reflect.Type { return reflect.TypeOf((**UserAssignedIdentity)(nil)).Elem() } func (o UserAssignedIdentityOutput) ToUserAssignedIdentityOutput() UserAssignedIdentityOutput { return o } func (o UserAssignedIdentityOutput) ToUserAssignedIdentityOutputWithContext(ctx context.Context) UserAssignedIdentityOutput { return o } // The ID of the app associated with the Identity. func (o UserAssignedIdentityOutput) ClientId() pulumi.StringOutput { return o.ApplyT(func(v *UserAssignedIdentity) pulumi.StringOutput { return v.ClientId }).(pulumi.StringOutput) } // The Azure Region where the User Assigned Identity should exist. Changing this forces a new User Assigned Identity to be created. func (o UserAssignedIdentityOutput) Location() pulumi.StringOutput { return o.ApplyT(func(v *UserAssignedIdentity) pulumi.StringOutput { return v.Location }).(pulumi.StringOutput) } // Specifies the name of this User Assigned Identity. Changing this forces a new User Assigned Identity to be created. func (o UserAssignedIdentityOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *UserAssignedIdentity) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // The ID of the Service Principal object associated with the created Identity. func (o UserAssignedIdentityOutput) PrincipalId() pulumi.StringOutput { return o.ApplyT(func(v *UserAssignedIdentity) pulumi.StringOutput { return v.PrincipalId }).(pulumi.StringOutput) } // Specifies the name of the Resource Group within which this User Assigned Identity should exist. Changing this forces a new User Assigned Identity to be created. func (o UserAssignedIdentityOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v *UserAssignedIdentity) pulumi.StringOutput { return v.ResourceGroupName }).(pulumi.StringOutput) } // A mapping of tags which should be assigned to the User Assigned Identity. func (o UserAssignedIdentityOutput) Tags() pulumi.StringMapOutput { return o.ApplyT(func(v *UserAssignedIdentity) pulumi.StringMapOutput { return v.Tags }).(pulumi.StringMapOutput) } // The ID of the Tenant which the Identity belongs to. func (o UserAssignedIdentityOutput) TenantId() pulumi.StringOutput { return o.ApplyT(func(v *UserAssignedIdentity) pulumi.StringOutput { return v.TenantId }).(pulumi.StringOutput) } type UserAssignedIdentityArrayOutput struct{ *pulumi.OutputState } func (UserAssignedIdentityArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*UserAssignedIdentity)(nil)).Elem() } func (o UserAssignedIdentityArrayOutput) ToUserAssignedIdentityArrayOutput() UserAssignedIdentityArrayOutput { return o } func (o UserAssignedIdentityArrayOutput) ToUserAssignedIdentityArrayOutputWithContext(ctx context.Context) UserAssignedIdentityArrayOutput { return o } func (o UserAssignedIdentityArrayOutput) Index(i pulumi.IntInput) UserAssignedIdentityOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *UserAssignedIdentity { return vs[0].([]*UserAssignedIdentity)[vs[1].(int)] }).(UserAssignedIdentityOutput) } type UserAssignedIdentityMapOutput struct{ *pulumi.OutputState } func (UserAssignedIdentityMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*UserAssignedIdentity)(nil)).Elem() } func (o UserAssignedIdentityMapOutput) ToUserAssignedIdentityMapOutput() UserAssignedIdentityMapOutput { return o } func (o UserAssignedIdentityMapOutput) ToUserAssignedIdentityMapOutputWithContext(ctx context.Context) UserAssignedIdentityMapOutput { return o } func (o UserAssignedIdentityMapOutput) MapIndex(k pulumi.StringInput) UserAssignedIdentityOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *UserAssignedIdentity { return vs[0].(map[string]*UserAssignedIdentity)[vs[1].(string)] }).(UserAssignedIdentityOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*UserAssignedIdentityInput)(nil)).Elem(), &UserAssignedIdentity{}) pulumi.RegisterInputType(reflect.TypeOf((*UserAssignedIdentityArrayInput)(nil)).Elem(), UserAssignedIdentityArray{}) pulumi.RegisterInputType(reflect.TypeOf((*UserAssignedIdentityMapInput)(nil)).Elem(), UserAssignedIdentityMap{}) pulumi.RegisterOutputType(UserAssignedIdentityOutput{}) pulumi.RegisterOutputType(UserAssignedIdentityArrayOutput{}) pulumi.RegisterOutputType(UserAssignedIdentityMapOutput{}) }
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/authorization/roleDefinition.go
sdk/go/azure/authorization/roleDefinition.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 authorization 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 Role Definition, used to assign Roles to Users/Principals. See ['Understand role definitions'](https://docs.microsoft.com/azure/role-based-access-control/role-definitions) in the Azure documentation for more details. // // ## 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/sdk/v3/go/pulumi" // // ) // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { // primary, err := core.LookupSubscription(ctx, &core.LookupSubscriptionArgs{}, nil) // if err != nil { // return err // } // _, err = authorization.NewRoleDefinition(ctx, "example", &authorization.RoleDefinitionArgs{ // Name: pulumi.String("my-custom-role"), // Scope: pulumi.String(primary.Id), // Description: pulumi.String("This is a custom role created"), // Permissions: authorization.RoleDefinitionPermissionArray{ // &authorization.RoleDefinitionPermissionArgs{ // Actions: pulumi.StringArray{ // pulumi.String("*"), // }, // NotActions: pulumi.StringArray{}, // }, // }, // AssignableScopes: pulumi.StringArray{ // pulumi.String(primary.Id), // }, // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ### With Management Group // ```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/management" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { // current, err := core.LookupSubscription(ctx, &core.LookupSubscriptionArgs{}, nil) // if err != nil { // return err // } // example, err := management.NewGroup(ctx, "example", &management.GroupArgs{ // DisplayName: pulumi.String("ParentGroup"), // SubscriptionIds: pulumi.StringArray{ // pulumi.String(current.SubscriptionId), // }, // }) // if err != nil { // return err // } // _, err = authorization.NewRoleDefinition(ctx, "example", &authorization.RoleDefinitionArgs{ // Name: pulumi.String("example-mg-role"), // Scope: example.ID(), // Description: pulumi.String("Example custom role scoped to a management group."), // Permissions: authorization.RoleDefinitionPermissionArray{ // &authorization.RoleDefinitionPermissionArgs{ // Actions: pulumi.StringArray{ // pulumi.String("Microsoft.Insights/alertRules/*"), // }, // NotActions: pulumi.StringArray{}, // }, // }, // AssignableScopes: pulumi.StringArray{ // example.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.Authorization` - 2022-05-01-preview // // ## Import // // Role Definitions can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:authorization/roleDefinition:RoleDefinition example "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/00000000-0000-0000-0000-000000000000|/subscriptions/00000000-0000-0000-0000-000000000000" // ``` type RoleDefinition struct { pulumi.CustomResourceState // One or more assignable scopes for this Role Definition, such as `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333`, `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333/resourceGroups/myGroup`, `/providers/Microsoft.Management/managementGroups/0b1f6471-1bf0-4dda-aec3-111122223333` , or `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333/resourceGroups/myGroup/providers/Microsoft.Compute/virtualMachines/myVM`. // // > **NOTE:** The value for `scope` is automatically included in this list if no other values supplied. AssignableScopes pulumi.StringArrayOutput `pulumi:"assignableScopes"` // A description of the Role Definition. Description pulumi.StringPtrOutput `pulumi:"description"` // The name of the Role Definition. Name pulumi.StringOutput `pulumi:"name"` // A `permissions` block as defined below. Permissions RoleDefinitionPermissionArrayOutput `pulumi:"permissions"` // A unique UUID/GUID which identifies this role - one will be generated if not specified. Changing this forces a new resource to be created. RoleDefinitionId pulumi.StringOutput `pulumi:"roleDefinitionId"` // The Azure Resource Manager ID for the resource. RoleDefinitionResourceId pulumi.StringOutput `pulumi:"roleDefinitionResourceId"` // The scope at which the Role Definition applies to, such as `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333`, `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333/resourceGroups/myGroup`, `/providers/Microsoft.Management/managementGroups/0b1f6471-1bf0-4dda-aec3-111122223333`, or `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333/resourceGroups/myGroup/providers/Microsoft.Compute/virtualMachines/myVM`. It is recommended to use the first entry of the `assignableScopes`. Changing this forces a new resource to be created. Scope pulumi.StringOutput `pulumi:"scope"` } // NewRoleDefinition registers a new resource with the given unique name, arguments, and options. func NewRoleDefinition(ctx *pulumi.Context, name string, args *RoleDefinitionArgs, opts ...pulumi.ResourceOption) (*RoleDefinition, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.Scope == nil { return nil, errors.New("invalid value for required argument 'Scope'") } aliases := pulumi.Aliases([]pulumi.Alias{ { Type: pulumi.String("azure:role/definition:Definition"), }, }) opts = append(opts, aliases) opts = internal.PkgResourceDefaultOpts(opts) var resource RoleDefinition err := ctx.RegisterResource("azure:authorization/roleDefinition:RoleDefinition", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetRoleDefinition gets an existing RoleDefinition 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 GetRoleDefinition(ctx *pulumi.Context, name string, id pulumi.IDInput, state *RoleDefinitionState, opts ...pulumi.ResourceOption) (*RoleDefinition, error) { var resource RoleDefinition err := ctx.ReadResource("azure:authorization/roleDefinition:RoleDefinition", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering RoleDefinition resources. type roleDefinitionState struct { // One or more assignable scopes for this Role Definition, such as `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333`, `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333/resourceGroups/myGroup`, `/providers/Microsoft.Management/managementGroups/0b1f6471-1bf0-4dda-aec3-111122223333` , or `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333/resourceGroups/myGroup/providers/Microsoft.Compute/virtualMachines/myVM`. // // > **NOTE:** The value for `scope` is automatically included in this list if no other values supplied. AssignableScopes []string `pulumi:"assignableScopes"` // A description of the Role Definition. Description *string `pulumi:"description"` // The name of the Role Definition. Name *string `pulumi:"name"` // A `permissions` block as defined below. Permissions []RoleDefinitionPermission `pulumi:"permissions"` // A unique UUID/GUID which identifies this role - one will be generated if not specified. Changing this forces a new resource to be created. RoleDefinitionId *string `pulumi:"roleDefinitionId"` // The Azure Resource Manager ID for the resource. RoleDefinitionResourceId *string `pulumi:"roleDefinitionResourceId"` // The scope at which the Role Definition applies to, such as `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333`, `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333/resourceGroups/myGroup`, `/providers/Microsoft.Management/managementGroups/0b1f6471-1bf0-4dda-aec3-111122223333`, or `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333/resourceGroups/myGroup/providers/Microsoft.Compute/virtualMachines/myVM`. It is recommended to use the first entry of the `assignableScopes`. Changing this forces a new resource to be created. Scope *string `pulumi:"scope"` } type RoleDefinitionState struct { // One or more assignable scopes for this Role Definition, such as `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333`, `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333/resourceGroups/myGroup`, `/providers/Microsoft.Management/managementGroups/0b1f6471-1bf0-4dda-aec3-111122223333` , or `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333/resourceGroups/myGroup/providers/Microsoft.Compute/virtualMachines/myVM`. // // > **NOTE:** The value for `scope` is automatically included in this list if no other values supplied. AssignableScopes pulumi.StringArrayInput // A description of the Role Definition. Description pulumi.StringPtrInput // The name of the Role Definition. Name pulumi.StringPtrInput // A `permissions` block as defined below. Permissions RoleDefinitionPermissionArrayInput // A unique UUID/GUID which identifies this role - one will be generated if not specified. Changing this forces a new resource to be created. RoleDefinitionId pulumi.StringPtrInput // The Azure Resource Manager ID for the resource. RoleDefinitionResourceId pulumi.StringPtrInput // The scope at which the Role Definition applies to, such as `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333`, `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333/resourceGroups/myGroup`, `/providers/Microsoft.Management/managementGroups/0b1f6471-1bf0-4dda-aec3-111122223333`, or `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333/resourceGroups/myGroup/providers/Microsoft.Compute/virtualMachines/myVM`. It is recommended to use the first entry of the `assignableScopes`. Changing this forces a new resource to be created. Scope pulumi.StringPtrInput } func (RoleDefinitionState) ElementType() reflect.Type { return reflect.TypeOf((*roleDefinitionState)(nil)).Elem() } type roleDefinitionArgs struct { // One or more assignable scopes for this Role Definition, such as `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333`, `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333/resourceGroups/myGroup`, `/providers/Microsoft.Management/managementGroups/0b1f6471-1bf0-4dda-aec3-111122223333` , or `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333/resourceGroups/myGroup/providers/Microsoft.Compute/virtualMachines/myVM`. // // > **NOTE:** The value for `scope` is automatically included in this list if no other values supplied. AssignableScopes []string `pulumi:"assignableScopes"` // A description of the Role Definition. Description *string `pulumi:"description"` // The name of the Role Definition. Name *string `pulumi:"name"` // A `permissions` block as defined below. Permissions []RoleDefinitionPermission `pulumi:"permissions"` // A unique UUID/GUID which identifies this role - one will be generated if not specified. Changing this forces a new resource to be created. RoleDefinitionId *string `pulumi:"roleDefinitionId"` // The scope at which the Role Definition applies to, such as `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333`, `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333/resourceGroups/myGroup`, `/providers/Microsoft.Management/managementGroups/0b1f6471-1bf0-4dda-aec3-111122223333`, or `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333/resourceGroups/myGroup/providers/Microsoft.Compute/virtualMachines/myVM`. It is recommended to use the first entry of the `assignableScopes`. Changing this forces a new resource to be created. Scope string `pulumi:"scope"` } // The set of arguments for constructing a RoleDefinition resource. type RoleDefinitionArgs struct { // One or more assignable scopes for this Role Definition, such as `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333`, `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333/resourceGroups/myGroup`, `/providers/Microsoft.Management/managementGroups/0b1f6471-1bf0-4dda-aec3-111122223333` , or `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333/resourceGroups/myGroup/providers/Microsoft.Compute/virtualMachines/myVM`. // // > **NOTE:** The value for `scope` is automatically included in this list if no other values supplied. AssignableScopes pulumi.StringArrayInput // A description of the Role Definition. Description pulumi.StringPtrInput // The name of the Role Definition. Name pulumi.StringPtrInput // A `permissions` block as defined below. Permissions RoleDefinitionPermissionArrayInput // A unique UUID/GUID which identifies this role - one will be generated if not specified. Changing this forces a new resource to be created. RoleDefinitionId pulumi.StringPtrInput // The scope at which the Role Definition applies to, such as `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333`, `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333/resourceGroups/myGroup`, `/providers/Microsoft.Management/managementGroups/0b1f6471-1bf0-4dda-aec3-111122223333`, or `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333/resourceGroups/myGroup/providers/Microsoft.Compute/virtualMachines/myVM`. It is recommended to use the first entry of the `assignableScopes`. Changing this forces a new resource to be created. Scope pulumi.StringInput } func (RoleDefinitionArgs) ElementType() reflect.Type { return reflect.TypeOf((*roleDefinitionArgs)(nil)).Elem() } type RoleDefinitionInput interface { pulumi.Input ToRoleDefinitionOutput() RoleDefinitionOutput ToRoleDefinitionOutputWithContext(ctx context.Context) RoleDefinitionOutput } func (*RoleDefinition) ElementType() reflect.Type { return reflect.TypeOf((**RoleDefinition)(nil)).Elem() } func (i *RoleDefinition) ToRoleDefinitionOutput() RoleDefinitionOutput { return i.ToRoleDefinitionOutputWithContext(context.Background()) } func (i *RoleDefinition) ToRoleDefinitionOutputWithContext(ctx context.Context) RoleDefinitionOutput { return pulumi.ToOutputWithContext(ctx, i).(RoleDefinitionOutput) } // RoleDefinitionArrayInput is an input type that accepts RoleDefinitionArray and RoleDefinitionArrayOutput values. // You can construct a concrete instance of `RoleDefinitionArrayInput` via: // // RoleDefinitionArray{ RoleDefinitionArgs{...} } type RoleDefinitionArrayInput interface { pulumi.Input ToRoleDefinitionArrayOutput() RoleDefinitionArrayOutput ToRoleDefinitionArrayOutputWithContext(context.Context) RoleDefinitionArrayOutput } type RoleDefinitionArray []RoleDefinitionInput func (RoleDefinitionArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*RoleDefinition)(nil)).Elem() } func (i RoleDefinitionArray) ToRoleDefinitionArrayOutput() RoleDefinitionArrayOutput { return i.ToRoleDefinitionArrayOutputWithContext(context.Background()) } func (i RoleDefinitionArray) ToRoleDefinitionArrayOutputWithContext(ctx context.Context) RoleDefinitionArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(RoleDefinitionArrayOutput) } // RoleDefinitionMapInput is an input type that accepts RoleDefinitionMap and RoleDefinitionMapOutput values. // You can construct a concrete instance of `RoleDefinitionMapInput` via: // // RoleDefinitionMap{ "key": RoleDefinitionArgs{...} } type RoleDefinitionMapInput interface { pulumi.Input ToRoleDefinitionMapOutput() RoleDefinitionMapOutput ToRoleDefinitionMapOutputWithContext(context.Context) RoleDefinitionMapOutput } type RoleDefinitionMap map[string]RoleDefinitionInput func (RoleDefinitionMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*RoleDefinition)(nil)).Elem() } func (i RoleDefinitionMap) ToRoleDefinitionMapOutput() RoleDefinitionMapOutput { return i.ToRoleDefinitionMapOutputWithContext(context.Background()) } func (i RoleDefinitionMap) ToRoleDefinitionMapOutputWithContext(ctx context.Context) RoleDefinitionMapOutput { return pulumi.ToOutputWithContext(ctx, i).(RoleDefinitionMapOutput) } type RoleDefinitionOutput struct{ *pulumi.OutputState } func (RoleDefinitionOutput) ElementType() reflect.Type { return reflect.TypeOf((**RoleDefinition)(nil)).Elem() } func (o RoleDefinitionOutput) ToRoleDefinitionOutput() RoleDefinitionOutput { return o } func (o RoleDefinitionOutput) ToRoleDefinitionOutputWithContext(ctx context.Context) RoleDefinitionOutput { return o } // One or more assignable scopes for this Role Definition, such as `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333`, `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333/resourceGroups/myGroup`, `/providers/Microsoft.Management/managementGroups/0b1f6471-1bf0-4dda-aec3-111122223333` , or `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333/resourceGroups/myGroup/providers/Microsoft.Compute/virtualMachines/myVM`. // // > **NOTE:** The value for `scope` is automatically included in this list if no other values supplied. func (o RoleDefinitionOutput) AssignableScopes() pulumi.StringArrayOutput { return o.ApplyT(func(v *RoleDefinition) pulumi.StringArrayOutput { return v.AssignableScopes }).(pulumi.StringArrayOutput) } // A description of the Role Definition. func (o RoleDefinitionOutput) Description() pulumi.StringPtrOutput { return o.ApplyT(func(v *RoleDefinition) pulumi.StringPtrOutput { return v.Description }).(pulumi.StringPtrOutput) } // The name of the Role Definition. func (o RoleDefinitionOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *RoleDefinition) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // A `permissions` block as defined below. func (o RoleDefinitionOutput) Permissions() RoleDefinitionPermissionArrayOutput { return o.ApplyT(func(v *RoleDefinition) RoleDefinitionPermissionArrayOutput { return v.Permissions }).(RoleDefinitionPermissionArrayOutput) } // A unique UUID/GUID which identifies this role - one will be generated if not specified. Changing this forces a new resource to be created. func (o RoleDefinitionOutput) RoleDefinitionId() pulumi.StringOutput { return o.ApplyT(func(v *RoleDefinition) pulumi.StringOutput { return v.RoleDefinitionId }).(pulumi.StringOutput) } // The Azure Resource Manager ID for the resource. func (o RoleDefinitionOutput) RoleDefinitionResourceId() pulumi.StringOutput { return o.ApplyT(func(v *RoleDefinition) pulumi.StringOutput { return v.RoleDefinitionResourceId }).(pulumi.StringOutput) } // The scope at which the Role Definition applies to, such as `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333`, `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333/resourceGroups/myGroup`, `/providers/Microsoft.Management/managementGroups/0b1f6471-1bf0-4dda-aec3-111122223333`, or `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333/resourceGroups/myGroup/providers/Microsoft.Compute/virtualMachines/myVM`. It is recommended to use the first entry of the `assignableScopes`. Changing this forces a new resource to be created. func (o RoleDefinitionOutput) Scope() pulumi.StringOutput { return o.ApplyT(func(v *RoleDefinition) pulumi.StringOutput { return v.Scope }).(pulumi.StringOutput) } type RoleDefinitionArrayOutput struct{ *pulumi.OutputState } func (RoleDefinitionArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*RoleDefinition)(nil)).Elem() } func (o RoleDefinitionArrayOutput) ToRoleDefinitionArrayOutput() RoleDefinitionArrayOutput { return o } func (o RoleDefinitionArrayOutput) ToRoleDefinitionArrayOutputWithContext(ctx context.Context) RoleDefinitionArrayOutput { return o } func (o RoleDefinitionArrayOutput) Index(i pulumi.IntInput) RoleDefinitionOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *RoleDefinition { return vs[0].([]*RoleDefinition)[vs[1].(int)] }).(RoleDefinitionOutput) } type RoleDefinitionMapOutput struct{ *pulumi.OutputState } func (RoleDefinitionMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*RoleDefinition)(nil)).Elem() } func (o RoleDefinitionMapOutput) ToRoleDefinitionMapOutput() RoleDefinitionMapOutput { return o } func (o RoleDefinitionMapOutput) ToRoleDefinitionMapOutputWithContext(ctx context.Context) RoleDefinitionMapOutput { return o } func (o RoleDefinitionMapOutput) MapIndex(k pulumi.StringInput) RoleDefinitionOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *RoleDefinition { return vs[0].(map[string]*RoleDefinition)[vs[1].(string)] }).(RoleDefinitionOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*RoleDefinitionInput)(nil)).Elem(), &RoleDefinition{}) pulumi.RegisterInputType(reflect.TypeOf((*RoleDefinitionArrayInput)(nil)).Elem(), RoleDefinitionArray{}) pulumi.RegisterInputType(reflect.TypeOf((*RoleDefinitionMapInput)(nil)).Elem(), RoleDefinitionMap{}) pulumi.RegisterOutputType(RoleDefinitionOutput{}) pulumi.RegisterOutputType(RoleDefinitionArrayOutput{}) pulumi.RegisterOutputType(RoleDefinitionMapOutput{}) }
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/authorization/assignment.go
sdk/go/azure/authorization/assignment.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 authorization import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Assigns a given Principal (User or Group) to a given Role. // // ## Example Usage // // ### Using A Built-In Role) // // ```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/sdk/v3/go/pulumi" // // ) // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { // primary, err := core.LookupSubscription(ctx, &core.LookupSubscriptionArgs{}, nil) // if err != nil { // return err // } // example, err := core.GetClientConfig(ctx, map[string]interface{}{}, nil) // if err != nil { // return err // } // _, err = authorization.NewAssignment(ctx, "example", &authorization.AssignmentArgs{ // Scope: pulumi.String(primary.Id), // RoleDefinitionName: pulumi.String("Reader"), // PrincipalId: pulumi.String(example.ObjectId), // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ### Custom Role & Service Principal) // // ```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/sdk/v3/go/pulumi" // // ) // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { // primary, err := core.LookupSubscription(ctx, &core.LookupSubscriptionArgs{}, nil) // if err != nil { // return err // } // example, err := core.GetClientConfig(ctx, map[string]interface{}{}, nil) // if err != nil { // return err // } // exampleRoleDefinition, err := authorization.NewRoleDefinition(ctx, "example", &authorization.RoleDefinitionArgs{ // RoleDefinitionId: pulumi.String("00000000-0000-0000-0000-000000000000"), // Name: pulumi.String("my-custom-role-definition"), // Scope: pulumi.String(primary.Id), // Permissions: authorization.RoleDefinitionPermissionArray{ // &authorization.RoleDefinitionPermissionArgs{ // Actions: pulumi.StringArray{ // pulumi.String("Microsoft.Resources/subscriptions/resourceGroups/read"), // }, // NotActions: pulumi.StringArray{}, // }, // }, // AssignableScopes: pulumi.StringArray{ // pulumi.String(primary.Id), // }, // }) // if err != nil { // return err // } // _, err = authorization.NewAssignment(ctx, "example", &authorization.AssignmentArgs{ // Name: pulumi.String("00000000-0000-0000-0000-000000000000"), // Scope: pulumi.String(primary.Id), // RoleDefinitionId: exampleRoleDefinition.RoleDefinitionResourceId, // PrincipalId: pulumi.String(example.ObjectId), // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ### Custom Role & User) // // ```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/sdk/v3/go/pulumi" // // ) // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { // primary, err := core.LookupSubscription(ctx, &core.LookupSubscriptionArgs{}, nil) // if err != nil { // return err // } // example, err := core.GetClientConfig(ctx, map[string]interface{}{}, nil) // if err != nil { // return err // } // exampleRoleDefinition, err := authorization.NewRoleDefinition(ctx, "example", &authorization.RoleDefinitionArgs{ // RoleDefinitionId: pulumi.String("00000000-0000-0000-0000-000000000000"), // Name: pulumi.String("my-custom-role-definition"), // Scope: pulumi.String(primary.Id), // Permissions: authorization.RoleDefinitionPermissionArray{ // &authorization.RoleDefinitionPermissionArgs{ // Actions: pulumi.StringArray{ // pulumi.String("Microsoft.Resources/subscriptions/resourceGroups/read"), // }, // NotActions: pulumi.StringArray{}, // }, // }, // AssignableScopes: pulumi.StringArray{ // pulumi.String(primary.Id), // }, // }) // if err != nil { // return err // } // _, err = authorization.NewAssignment(ctx, "example", &authorization.AssignmentArgs{ // Name: pulumi.String("00000000-0000-0000-0000-000000000000"), // Scope: pulumi.String(primary.Id), // RoleDefinitionId: exampleRoleDefinition.RoleDefinitionResourceId, // PrincipalId: pulumi.String(example.ObjectId), // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ### Custom Role & Management Group) // // ```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/management" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { // primary, err := core.LookupSubscription(ctx, &core.LookupSubscriptionArgs{}, nil) // if err != nil { // return err // } // example, err := core.GetClientConfig(ctx, map[string]interface{}{}, nil) // if err != nil { // return err // } // _, err = management.LookupGroup(ctx, &management.LookupGroupArgs{ // Name: pulumi.StringRef("00000000-0000-0000-0000-000000000000"), // }, nil) // if err != nil { // return err // } // exampleRoleDefinition, err := authorization.NewRoleDefinition(ctx, "example", &authorization.RoleDefinitionArgs{ // RoleDefinitionId: pulumi.String("00000000-0000-0000-0000-000000000000"), // Name: pulumi.String("my-custom-role-definition"), // Scope: pulumi.String(primary.Id), // Permissions: authorization.RoleDefinitionPermissionArray{ // &authorization.RoleDefinitionPermissionArgs{ // Actions: pulumi.StringArray{ // pulumi.String("Microsoft.Resources/subscriptions/resourceGroups/read"), // }, // NotActions: pulumi.StringArray{}, // }, // }, // AssignableScopes: pulumi.StringArray{ // pulumi.String(primary.Id), // }, // }) // if err != nil { // return err // } // _, err = authorization.NewAssignment(ctx, "example", &authorization.AssignmentArgs{ // Name: pulumi.String("00000000-0000-0000-0000-000000000000"), // Scope: pulumi.Any(primaryAzurermManagementGroup.Id), // RoleDefinitionId: exampleRoleDefinition.RoleDefinitionResourceId, // PrincipalId: pulumi.String(example.ObjectId), // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ### ABAC Condition) // // ```go // package main // // import ( // // "fmt" // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/authorization" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core" // "github.com/pulumi/pulumi-std/sdk/go/std" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { // primary, err := core.LookupSubscription(ctx, &core.LookupSubscriptionArgs{}, nil) // if err != nil { // return err // } // example, err := core.GetClientConfig(ctx, map[string]interface{}{}, nil) // if err != nil { // return err // } // builtin, err := authorization.LookupRoleDefinition(ctx, &authorization.LookupRoleDefinitionArgs{ // Name: pulumi.StringRef("Reader"), // }, nil) // if err != nil { // return err // } // invokeBasename, err := std.Basename(ctx, &std.BasenameArgs{ // Input: builtin.RoleDefinitionId, // }, nil) // if err != nil { // return err // } // invokeBasename1, err := std.Basename(ctx, &std.BasenameArgs{ // Input: builtin.RoleDefinitionId, // }, nil) // if err != nil { // return err // } // _, err = authorization.NewAssignment(ctx, "example", &authorization.AssignmentArgs{ // RoleDefinitionName: pulumi.String("Role Based Access Control Administrator"), // Scope: pulumi.String(primary.Id), // PrincipalId: pulumi.String(example.ObjectId), // PrincipalType: pulumi.String("ServicePrincipal"), // Description: pulumi.String("Role Based Access Control Administrator role assignment with ABAC Condition."), // ConditionVersion: pulumi.String("2.0"), // Condition: pulumi.Sprintf(`( // ( // !(ActionMatches{'Microsoft.Authorization/roleAssignments/write'}) // ) // OR // ( // @Request[Microsoft.Authorization/roleAssignments:RoleDefinitionId] ForAnyOfAnyValues:GuidEquals {%v} // ) // // ) // AND // ( // // ( // !(ActionMatches{'Microsoft.Authorization/roleAssignments/delete'}) // ) // OR // ( // @Resource[Microsoft.Authorization/roleAssignments:RoleDefinitionId] ForAnyOfAnyValues:GuidEquals {%v} // ) // // ) // `, invokeBasename.Result, invokeBasename1.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.Authorization` - 2022-05-01-preview, 2022-04-01 // // ## Import // // Role Assignments can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:authorization/assignment:Assignment example /subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleAssignments/00000000-0000-0000-0000-000000000000 // ``` // // * for scope `Subscription`, the id format is `/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleAssignments/00000000-0000-0000-0000-000000000000` // // * for scope `Resource Group`, the id format is `/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Authorization/roleAssignments/00000000-0000-0000-0000-000000000000` // // * for scope `Key Vault`, the id format is `/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.KeyVault/vaults/vault1/providers/Microsoft.Authorization/roleAssignments/00000000-0000-0000-0000-000000000000` // // * for scope `Storage Account`, the id format is `/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Storage/storageAccounts/storageAccount1/providers/Microsoft.Authorization/roleAssignments/00000000-0000-0000-0000-000000000000` // // text // // /subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleAssignments/00000000-0000-0000-0000-000000000000|00000000-0000-0000-0000-000000000000 type Assignment struct { pulumi.CustomResourceState // The condition that limits the resources that the role can be assigned to. Changing this forces a new resource to be created. Condition pulumi.StringPtrOutput `pulumi:"condition"` // The version of the condition. Possible values are `1.0` or `2.0`. Changing this forces a new resource to be created. // // > **Note:** `condition` is required when `conditionVersion` is set. ConditionVersion pulumi.StringOutput `pulumi:"conditionVersion"` // The delegated Azure Resource Id which contains a Managed Identity. Changing this forces a new resource to be created. // // > **Note:** This field is only used in cross tenant scenarios. DelegatedManagedIdentityResourceId pulumi.StringPtrOutput `pulumi:"delegatedManagedIdentityResourceId"` // The description for this Role Assignment. Changing this forces a new resource to be created. Description pulumi.StringPtrOutput `pulumi:"description"` // A unique UUID/GUID for this Role Assignment - one will be generated if not specified. Changing this forces a new resource to be created. Name pulumi.StringOutput `pulumi:"name"` // The ID of the Principal (User, Group or Service Principal) to assign the Role Definition to. Changing this forces a new resource to be created. // // > **Note:** The Principal ID is also known as the Object ID (i.e. not the "Application ID" for applications). PrincipalId pulumi.StringOutput `pulumi:"principalId"` // The type of the `principalId`. Possible values are `User`, `Group` and `ServicePrincipal`. Changing this forces a new resource to be created. It is necessary to explicitly set this attribute when creating role assignments if the principal creating the assignment is constrained by ABAC rules that filters on the PrincipalType attribute. PrincipalType pulumi.StringOutput `pulumi:"principalType"` // The Scoped-ID of the Role Definition. Changing this forces a new resource to be created. RoleDefinitionId pulumi.StringOutput `pulumi:"roleDefinitionId"` // The name of a built-in Role. Changing this forces a new resource to be created. // // > **Note:** Either `roleDefinitionId` or `roleDefinitionName` must be set. RoleDefinitionName pulumi.StringOutput `pulumi:"roleDefinitionName"` // The scope at which the Role Assignment applies to, such as `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333`, `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333/resourceGroups/myGroup`, or `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333/resourceGroups/myGroup/providers/Microsoft.Compute/virtualMachines/myVM`, or `/providers/Microsoft.Management/managementGroups/myMG`. Changing this forces a new resource to be created. Scope pulumi.StringOutput `pulumi:"scope"` // If the `principalId` is a newly provisioned `Service Principal` set this value to `true` to skip the `Azure Active Directory` check which may fail due to replication lag. This argument is only valid if the `principalId` is a `Service Principal` identity. Defaults to `false`. // // > **Note:** If it is not a `Service Principal` identity it will cause the role assignment to fail. SkipServicePrincipalAadCheck pulumi.BoolOutput `pulumi:"skipServicePrincipalAadCheck"` } // NewAssignment registers a new resource with the given unique name, arguments, and options. func NewAssignment(ctx *pulumi.Context, name string, args *AssignmentArgs, opts ...pulumi.ResourceOption) (*Assignment, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.PrincipalId == nil { return nil, errors.New("invalid value for required argument 'PrincipalId'") } if args.Scope == nil { return nil, errors.New("invalid value for required argument 'Scope'") } aliases := pulumi.Aliases([]pulumi.Alias{ { Type: pulumi.String("azure:role/assignment:Assignment"), }, }) opts = append(opts, aliases) opts = internal.PkgResourceDefaultOpts(opts) var resource Assignment err := ctx.RegisterResource("azure:authorization/assignment:Assignment", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetAssignment gets an existing Assignment 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 GetAssignment(ctx *pulumi.Context, name string, id pulumi.IDInput, state *AssignmentState, opts ...pulumi.ResourceOption) (*Assignment, error) { var resource Assignment err := ctx.ReadResource("azure:authorization/assignment:Assignment", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering Assignment resources. type assignmentState struct { // The condition that limits the resources that the role can be assigned to. Changing this forces a new resource to be created. Condition *string `pulumi:"condition"` // The version of the condition. Possible values are `1.0` or `2.0`. Changing this forces a new resource to be created. // // > **Note:** `condition` is required when `conditionVersion` is set. ConditionVersion *string `pulumi:"conditionVersion"` // The delegated Azure Resource Id which contains a Managed Identity. Changing this forces a new resource to be created. // // > **Note:** This field is only used in cross tenant scenarios. DelegatedManagedIdentityResourceId *string `pulumi:"delegatedManagedIdentityResourceId"` // The description for this Role Assignment. Changing this forces a new resource to be created. Description *string `pulumi:"description"` // A unique UUID/GUID for this Role Assignment - one will be generated if not specified. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // The ID of the Principal (User, Group or Service Principal) to assign the Role Definition to. Changing this forces a new resource to be created. // // > **Note:** The Principal ID is also known as the Object ID (i.e. not the "Application ID" for applications). PrincipalId *string `pulumi:"principalId"` // The type of the `principalId`. Possible values are `User`, `Group` and `ServicePrincipal`. Changing this forces a new resource to be created. It is necessary to explicitly set this attribute when creating role assignments if the principal creating the assignment is constrained by ABAC rules that filters on the PrincipalType attribute. PrincipalType *string `pulumi:"principalType"` // The Scoped-ID of the Role Definition. Changing this forces a new resource to be created. RoleDefinitionId *string `pulumi:"roleDefinitionId"` // The name of a built-in Role. Changing this forces a new resource to be created. // // > **Note:** Either `roleDefinitionId` or `roleDefinitionName` must be set. RoleDefinitionName *string `pulumi:"roleDefinitionName"` // The scope at which the Role Assignment applies to, such as `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333`, `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333/resourceGroups/myGroup`, or `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333/resourceGroups/myGroup/providers/Microsoft.Compute/virtualMachines/myVM`, or `/providers/Microsoft.Management/managementGroups/myMG`. Changing this forces a new resource to be created. Scope *string `pulumi:"scope"` // If the `principalId` is a newly provisioned `Service Principal` set this value to `true` to skip the `Azure Active Directory` check which may fail due to replication lag. This argument is only valid if the `principalId` is a `Service Principal` identity. Defaults to `false`. // // > **Note:** If it is not a `Service Principal` identity it will cause the role assignment to fail. SkipServicePrincipalAadCheck *bool `pulumi:"skipServicePrincipalAadCheck"` } type AssignmentState struct { // The condition that limits the resources that the role can be assigned to. Changing this forces a new resource to be created. Condition pulumi.StringPtrInput // The version of the condition. Possible values are `1.0` or `2.0`. Changing this forces a new resource to be created. // // > **Note:** `condition` is required when `conditionVersion` is set. ConditionVersion pulumi.StringPtrInput // The delegated Azure Resource Id which contains a Managed Identity. Changing this forces a new resource to be created. // // > **Note:** This field is only used in cross tenant scenarios. DelegatedManagedIdentityResourceId pulumi.StringPtrInput // The description for this Role Assignment. Changing this forces a new resource to be created. Description pulumi.StringPtrInput // A unique UUID/GUID for this Role Assignment - one will be generated if not specified. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // The ID of the Principal (User, Group or Service Principal) to assign the Role Definition to. Changing this forces a new resource to be created. // // > **Note:** The Principal ID is also known as the Object ID (i.e. not the "Application ID" for applications). PrincipalId pulumi.StringPtrInput // The type of the `principalId`. Possible values are `User`, `Group` and `ServicePrincipal`. Changing this forces a new resource to be created. It is necessary to explicitly set this attribute when creating role assignments if the principal creating the assignment is constrained by ABAC rules that filters on the PrincipalType attribute. PrincipalType pulumi.StringPtrInput // The Scoped-ID of the Role Definition. Changing this forces a new resource to be created. RoleDefinitionId pulumi.StringPtrInput // The name of a built-in Role. Changing this forces a new resource to be created. // // > **Note:** Either `roleDefinitionId` or `roleDefinitionName` must be set. RoleDefinitionName pulumi.StringPtrInput // The scope at which the Role Assignment applies to, such as `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333`, `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333/resourceGroups/myGroup`, or `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333/resourceGroups/myGroup/providers/Microsoft.Compute/virtualMachines/myVM`, or `/providers/Microsoft.Management/managementGroups/myMG`. Changing this forces a new resource to be created. Scope pulumi.StringPtrInput // If the `principalId` is a newly provisioned `Service Principal` set this value to `true` to skip the `Azure Active Directory` check which may fail due to replication lag. This argument is only valid if the `principalId` is a `Service Principal` identity. Defaults to `false`. // // > **Note:** If it is not a `Service Principal` identity it will cause the role assignment to fail. SkipServicePrincipalAadCheck pulumi.BoolPtrInput } func (AssignmentState) ElementType() reflect.Type { return reflect.TypeOf((*assignmentState)(nil)).Elem() } type assignmentArgs struct { // The condition that limits the resources that the role can be assigned to. Changing this forces a new resource to be created. Condition *string `pulumi:"condition"` // The version of the condition. Possible values are `1.0` or `2.0`. Changing this forces a new resource to be created. // // > **Note:** `condition` is required when `conditionVersion` is set. ConditionVersion *string `pulumi:"conditionVersion"` // The delegated Azure Resource Id which contains a Managed Identity. Changing this forces a new resource to be created. // // > **Note:** This field is only used in cross tenant scenarios. DelegatedManagedIdentityResourceId *string `pulumi:"delegatedManagedIdentityResourceId"` // The description for this Role Assignment. Changing this forces a new resource to be created. Description *string `pulumi:"description"` // A unique UUID/GUID for this Role Assignment - one will be generated if not specified. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // The ID of the Principal (User, Group or Service Principal) to assign the Role Definition to. Changing this forces a new resource to be created. // // > **Note:** The Principal ID is also known as the Object ID (i.e. not the "Application ID" for applications). PrincipalId string `pulumi:"principalId"` // The type of the `principalId`. Possible values are `User`, `Group` and `ServicePrincipal`. Changing this forces a new resource to be created. It is necessary to explicitly set this attribute when creating role assignments if the principal creating the assignment is constrained by ABAC rules that filters on the PrincipalType attribute. PrincipalType *string `pulumi:"principalType"` // The Scoped-ID of the Role Definition. Changing this forces a new resource to be created. RoleDefinitionId *string `pulumi:"roleDefinitionId"` // The name of a built-in Role. Changing this forces a new resource to be created. // // > **Note:** Either `roleDefinitionId` or `roleDefinitionName` must be set. RoleDefinitionName *string `pulumi:"roleDefinitionName"` // The scope at which the Role Assignment applies to, such as `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333`, `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333/resourceGroups/myGroup`, or `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333/resourceGroups/myGroup/providers/Microsoft.Compute/virtualMachines/myVM`, or `/providers/Microsoft.Management/managementGroups/myMG`. Changing this forces a new resource to be created. Scope string `pulumi:"scope"` // If the `principalId` is a newly provisioned `Service Principal` set this value to `true` to skip the `Azure Active Directory` check which may fail due to replication lag. This argument is only valid if the `principalId` is a `Service Principal` identity. Defaults to `false`. // // > **Note:** If it is not a `Service Principal` identity it will cause the role assignment to fail. SkipServicePrincipalAadCheck *bool `pulumi:"skipServicePrincipalAadCheck"` } // The set of arguments for constructing a Assignment resource. type AssignmentArgs struct { // The condition that limits the resources that the role can be assigned to. Changing this forces a new resource to be created. Condition pulumi.StringPtrInput // The version of the condition. Possible values are `1.0` or `2.0`. Changing this forces a new resource to be created. // // > **Note:** `condition` is required when `conditionVersion` is set. ConditionVersion pulumi.StringPtrInput // The delegated Azure Resource Id which contains a Managed Identity. Changing this forces a new resource to be created. // // > **Note:** This field is only used in cross tenant scenarios. DelegatedManagedIdentityResourceId pulumi.StringPtrInput // The description for this Role Assignment. Changing this forces a new resource to be created. Description pulumi.StringPtrInput // A unique UUID/GUID for this Role Assignment - one will be generated if not specified. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // The ID of the Principal (User, Group or Service Principal) to assign the Role Definition to. Changing this forces a new resource to be created. // // > **Note:** The Principal ID is also known as the Object ID (i.e. not the "Application ID" for applications). PrincipalId pulumi.StringInput // The type of the `principalId`. Possible values are `User`, `Group` and `ServicePrincipal`. Changing this forces a new resource to be created. It is necessary to explicitly set this attribute when creating role assignments if the principal creating the assignment is constrained by ABAC rules that filters on the PrincipalType attribute. PrincipalType pulumi.StringPtrInput // The Scoped-ID of the Role Definition. Changing this forces a new resource to be created. RoleDefinitionId pulumi.StringPtrInput // The name of a built-in Role. Changing this forces a new resource to be created. // // > **Note:** Either `roleDefinitionId` or `roleDefinitionName` must be set. RoleDefinitionName pulumi.StringPtrInput // The scope at which the Role Assignment applies to, such as `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333`, `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333/resourceGroups/myGroup`, or `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333/resourceGroups/myGroup/providers/Microsoft.Compute/virtualMachines/myVM`, or `/providers/Microsoft.Management/managementGroups/myMG`. Changing this forces a new resource to be created. Scope pulumi.StringInput // If the `principalId` is a newly provisioned `Service Principal` set this value to `true` to skip the `Azure Active Directory` check which may fail due to replication lag. This argument is only valid if the `principalId` is a `Service Principal` identity. Defaults to `false`. // // > **Note:** If it is not a `Service Principal` identity it will cause the role assignment to fail. SkipServicePrincipalAadCheck pulumi.BoolPtrInput } func (AssignmentArgs) ElementType() reflect.Type { return reflect.TypeOf((*assignmentArgs)(nil)).Elem() } type AssignmentInput interface { pulumi.Input ToAssignmentOutput() AssignmentOutput ToAssignmentOutputWithContext(ctx context.Context) AssignmentOutput } func (*Assignment) ElementType() reflect.Type { return reflect.TypeOf((**Assignment)(nil)).Elem() } func (i *Assignment) ToAssignmentOutput() AssignmentOutput { return i.ToAssignmentOutputWithContext(context.Background()) } func (i *Assignment) ToAssignmentOutputWithContext(ctx context.Context) AssignmentOutput { return pulumi.ToOutputWithContext(ctx, i).(AssignmentOutput) } // AssignmentArrayInput is an input type that accepts AssignmentArray and AssignmentArrayOutput values. // You can construct a concrete instance of `AssignmentArrayInput` via: // // AssignmentArray{ AssignmentArgs{...} } type AssignmentArrayInput interface { pulumi.Input ToAssignmentArrayOutput() AssignmentArrayOutput ToAssignmentArrayOutputWithContext(context.Context) AssignmentArrayOutput } type AssignmentArray []AssignmentInput func (AssignmentArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*Assignment)(nil)).Elem() } func (i AssignmentArray) ToAssignmentArrayOutput() AssignmentArrayOutput { return i.ToAssignmentArrayOutputWithContext(context.Background()) } func (i AssignmentArray) ToAssignmentArrayOutputWithContext(ctx context.Context) AssignmentArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(AssignmentArrayOutput) } // AssignmentMapInput is an input type that accepts AssignmentMap and AssignmentMapOutput values. // You can construct a concrete instance of `AssignmentMapInput` via: // // AssignmentMap{ "key": AssignmentArgs{...} } type AssignmentMapInput interface { pulumi.Input ToAssignmentMapOutput() AssignmentMapOutput ToAssignmentMapOutputWithContext(context.Context) AssignmentMapOutput } type AssignmentMap map[string]AssignmentInput func (AssignmentMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*Assignment)(nil)).Elem() } func (i AssignmentMap) ToAssignmentMapOutput() AssignmentMapOutput { return i.ToAssignmentMapOutputWithContext(context.Background()) } func (i AssignmentMap) ToAssignmentMapOutputWithContext(ctx context.Context) AssignmentMapOutput { return pulumi.ToOutputWithContext(ctx, i).(AssignmentMapOutput) } type AssignmentOutput struct{ *pulumi.OutputState } func (AssignmentOutput) ElementType() reflect.Type { return reflect.TypeOf((**Assignment)(nil)).Elem() } func (o AssignmentOutput) ToAssignmentOutput() AssignmentOutput { return o } func (o AssignmentOutput) ToAssignmentOutputWithContext(ctx context.Context) AssignmentOutput { return o } // The condition that limits the resources that the role can be assigned to. Changing this forces a new resource to be created. func (o AssignmentOutput) Condition() pulumi.StringPtrOutput { return o.ApplyT(func(v *Assignment) pulumi.StringPtrOutput { return v.Condition }).(pulumi.StringPtrOutput) } // The version of the condition. Possible values are `1.0` or `2.0`. Changing this forces a new resource to be created. // // > **Note:** `condition` is required when `conditionVersion` is set. func (o AssignmentOutput) ConditionVersion() pulumi.StringOutput { return o.ApplyT(func(v *Assignment) pulumi.StringOutput { return v.ConditionVersion }).(pulumi.StringOutput) } // The delegated Azure Resource Id which contains a Managed Identity. Changing this forces a new resource to be created. // // > **Note:** This field is only used in cross tenant scenarios. func (o AssignmentOutput) DelegatedManagedIdentityResourceId() pulumi.StringPtrOutput { return o.ApplyT(func(v *Assignment) pulumi.StringPtrOutput { return v.DelegatedManagedIdentityResourceId }).(pulumi.StringPtrOutput) } // The description for this Role Assignment. Changing this forces a new resource to be created. func (o AssignmentOutput) Description() pulumi.StringPtrOutput { return o.ApplyT(func(v *Assignment) pulumi.StringPtrOutput { return v.Description }).(pulumi.StringPtrOutput) } // A unique UUID/GUID for this Role Assignment - one will be generated if not specified. Changing this forces a new resource to be created. func (o AssignmentOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *Assignment) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // The ID of the Principal (User, Group or Service Principal) to assign the Role Definition to. Changing this forces a new resource to be created. // // > **Note:** The Principal ID is also known as the Object ID (i.e. not the "Application ID" for applications). func (o AssignmentOutput) PrincipalId() pulumi.StringOutput { return o.ApplyT(func(v *Assignment) pulumi.StringOutput { return v.PrincipalId }).(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/authorization/getRoleDefinition.go
sdk/go/azure/authorization/getRoleDefinition.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 authorization 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 Role Definition. // // ## 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/sdk/v3/go/pulumi" // // ) // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { // primary, err := core.LookupSubscription(ctx, &core.LookupSubscriptionArgs{}, nil) // if err != nil { // return err // } // customRoleDefinition, err := authorization.NewRoleDefinition(ctx, "custom", &authorization.RoleDefinitionArgs{ // RoleDefinitionId: pulumi.String("00000000-0000-0000-0000-000000000000"), // Name: pulumi.String("CustomRoleDef"), // Scope: pulumi.String(primary.Id), // }) // if err != nil { // return err // } // custom := customRoleDefinition.RoleDefinitionId.ApplyT(func(roleDefinitionId string) (authorization.GetRoleDefinitionResult, error) { // return authorization.GetRoleDefinitionResult(authorization.LookupRoleDefinition(ctx, &authorization.LookupRoleDefinitionArgs{ // RoleDefinitionId: pulumi.StringRef(pulumi.StringRef(roleDefinitionId)), // Scope: pulumi.StringRef(pulumi.StringRef(primary.Id)), // }, nil)), nil // }).(authorization.GetRoleDefinitionResultOutput) // _ = customRoleDefinition.Name.ApplyT(func(name string) (authorization.GetRoleDefinitionResult, error) { // return authorization.GetRoleDefinitionResult(authorization.LookupRoleDefinition(ctx, &authorization.LookupRoleDefinitionArgs{ // Name: pulumi.StringRef(pulumi.StringRef(name)), // Scope: pulumi.StringRef(pulumi.StringRef(primary.Id)), // }, nil)), nil // }).(authorization.GetRoleDefinitionResultOutput) // builtin, err := authorization.LookupRoleDefinition(ctx, &authorization.LookupRoleDefinitionArgs{ // Name: pulumi.StringRef("Contributor"), // }, nil) // if err != nil { // return err // } // ctx.Export("customRoleDefinitionId", custom.Id) // ctx.Export("contributorRoleDefinitionId", builtin.Id) // return nil // }) // } // // ``` // // ## API Providers // // <!-- This section is generated, changes will be overwritten --> // This data source uses the following Azure API Providers: // // * `Microsoft.Authorization` - 2022-05-01-preview func LookupRoleDefinition(ctx *pulumi.Context, args *LookupRoleDefinitionArgs, opts ...pulumi.InvokeOption) (*LookupRoleDefinitionResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupRoleDefinitionResult err := ctx.Invoke("azure:authorization/getRoleDefinition:getRoleDefinition", args, &rv, opts...) if err != nil { return nil, err } return &rv, nil } // A collection of arguments for invoking getRoleDefinition. type LookupRoleDefinitionArgs struct { // Specifies the Name of either a built-in or custom Role Definition. // // > **Note:** You can also use this for built-in roles such as `Contributor`, `Owner`, `Reader` and `Virtual Machine Contributor` Name *string `pulumi:"name"` // Specifies the ID of the Role Definition as a UUID/GUID. RoleDefinitionId *string `pulumi:"roleDefinitionId"` // Specifies the Scope at which the Custom Role Definition exists. // // > **Note:** One of `name` or `roleDefinitionId` must be specified. Scope *string `pulumi:"scope"` } // A collection of values returned by getRoleDefinition. type LookupRoleDefinitionResult struct { // One or more assignable scopes for this Role Definition, such as `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333`, `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333/resourceGroups/myGroup`, or `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333/resourceGroups/myGroup/providers/Microsoft.Compute/virtualMachines/myVM`. AssignableScopes []string `pulumi:"assignableScopes"` // The Description of the built-in Role. Description string `pulumi:"description"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` Name string `pulumi:"name"` // A `permissions` block as documented below. Permissions []GetRoleDefinitionPermission `pulumi:"permissions"` RoleDefinitionId string `pulumi:"roleDefinitionId"` Scope *string `pulumi:"scope"` // The Type of the Role. Type string `pulumi:"type"` } func LookupRoleDefinitionOutput(ctx *pulumi.Context, args LookupRoleDefinitionOutputArgs, opts ...pulumi.InvokeOption) LookupRoleDefinitionResultOutput { return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupRoleDefinitionResultOutput, error) { args := v.(LookupRoleDefinitionArgs) options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} return ctx.InvokeOutput("azure:authorization/getRoleDefinition:getRoleDefinition", args, LookupRoleDefinitionResultOutput{}, options).(LookupRoleDefinitionResultOutput), nil }).(LookupRoleDefinitionResultOutput) } // A collection of arguments for invoking getRoleDefinition. type LookupRoleDefinitionOutputArgs struct { // Specifies the Name of either a built-in or custom Role Definition. // // > **Note:** You can also use this for built-in roles such as `Contributor`, `Owner`, `Reader` and `Virtual Machine Contributor` Name pulumi.StringPtrInput `pulumi:"name"` // Specifies the ID of the Role Definition as a UUID/GUID. RoleDefinitionId pulumi.StringPtrInput `pulumi:"roleDefinitionId"` // Specifies the Scope at which the Custom Role Definition exists. // // > **Note:** One of `name` or `roleDefinitionId` must be specified. Scope pulumi.StringPtrInput `pulumi:"scope"` } func (LookupRoleDefinitionOutputArgs) ElementType() reflect.Type { return reflect.TypeOf((*LookupRoleDefinitionArgs)(nil)).Elem() } // A collection of values returned by getRoleDefinition. type LookupRoleDefinitionResultOutput struct{ *pulumi.OutputState } func (LookupRoleDefinitionResultOutput) ElementType() reflect.Type { return reflect.TypeOf((*LookupRoleDefinitionResult)(nil)).Elem() } func (o LookupRoleDefinitionResultOutput) ToLookupRoleDefinitionResultOutput() LookupRoleDefinitionResultOutput { return o } func (o LookupRoleDefinitionResultOutput) ToLookupRoleDefinitionResultOutputWithContext(ctx context.Context) LookupRoleDefinitionResultOutput { return o } // One or more assignable scopes for this Role Definition, such as `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333`, `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333/resourceGroups/myGroup`, or `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333/resourceGroups/myGroup/providers/Microsoft.Compute/virtualMachines/myVM`. func (o LookupRoleDefinitionResultOutput) AssignableScopes() pulumi.StringArrayOutput { return o.ApplyT(func(v LookupRoleDefinitionResult) []string { return v.AssignableScopes }).(pulumi.StringArrayOutput) } // The Description of the built-in Role. func (o LookupRoleDefinitionResultOutput) Description() pulumi.StringOutput { return o.ApplyT(func(v LookupRoleDefinitionResult) string { return v.Description }).(pulumi.StringOutput) } // The provider-assigned unique ID for this managed resource. func (o LookupRoleDefinitionResultOutput) Id() pulumi.StringOutput { return o.ApplyT(func(v LookupRoleDefinitionResult) string { return v.Id }).(pulumi.StringOutput) } func (o LookupRoleDefinitionResultOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v LookupRoleDefinitionResult) string { return v.Name }).(pulumi.StringOutput) } // A `permissions` block as documented below. func (o LookupRoleDefinitionResultOutput) Permissions() GetRoleDefinitionPermissionArrayOutput { return o.ApplyT(func(v LookupRoleDefinitionResult) []GetRoleDefinitionPermission { return v.Permissions }).(GetRoleDefinitionPermissionArrayOutput) } func (o LookupRoleDefinitionResultOutput) RoleDefinitionId() pulumi.StringOutput { return o.ApplyT(func(v LookupRoleDefinitionResult) string { return v.RoleDefinitionId }).(pulumi.StringOutput) } func (o LookupRoleDefinitionResultOutput) Scope() pulumi.StringPtrOutput { return o.ApplyT(func(v LookupRoleDefinitionResult) *string { return v.Scope }).(pulumi.StringPtrOutput) } // The Type of the Role. func (o LookupRoleDefinitionResultOutput) Type() pulumi.StringOutput { return o.ApplyT(func(v LookupRoleDefinitionResult) string { return v.Type }).(pulumi.StringOutput) } func init() { pulumi.RegisterOutputType(LookupRoleDefinitionResultOutput{}) }
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/authorization/getUserAssignedIdentity.go
sdk/go/azure/authorization/getUserAssignedIdentity.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 authorization 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 User Assigned Identity. // // ## Example Usage // // ### Reference An Existing) // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/authorization" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { // example, err := authorization.LookupUserAssignedIdentity(ctx, &authorization.LookupUserAssignedIdentityArgs{ // Name: "name_of_user_assigned_identity", // ResourceGroupName: "name_of_resource_group", // }, nil) // if err != nil { // return err // } // ctx.Export("uaiClientId", example.ClientId) // ctx.Export("uaiPrincipalId", example.PrincipalId) // ctx.Export("uaiTenantId", example.TenantId) // return nil // }) // } // // ``` // // ## API Providers // // <!-- This section is generated, changes will be overwritten --> // This data source uses the following Azure API Providers: // // * `Microsoft.ManagedIdentity` - 2024-11-30 func LookupUserAssignedIdentity(ctx *pulumi.Context, args *LookupUserAssignedIdentityArgs, opts ...pulumi.InvokeOption) (*LookupUserAssignedIdentityResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupUserAssignedIdentityResult err := ctx.Invoke("azure:authorization/getUserAssignedIdentity:getUserAssignedIdentity", args, &rv, opts...) if err != nil { return nil, err } return &rv, nil } // A collection of arguments for invoking getUserAssignedIdentity. type LookupUserAssignedIdentityArgs struct { // The name of the User Assigned Identity. Name string `pulumi:"name"` // The name of the Resource Group in which the User Assigned Identity exists. ResourceGroupName string `pulumi:"resourceGroupName"` } // A collection of values returned by getUserAssignedIdentity. type LookupUserAssignedIdentityResult struct { // The Client ID of the User Assigned Identity. ClientId string `pulumi:"clientId"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` // The Azure location where the User Assigned Identity exists. Location string `pulumi:"location"` Name string `pulumi:"name"` // The Service Principal ID of the User Assigned Identity. PrincipalId string `pulumi:"principalId"` ResourceGroupName string `pulumi:"resourceGroupName"` // A mapping of tags assigned to the User Assigned Identity. Tags map[string]string `pulumi:"tags"` // The Tenant ID of the User Assigned Identity. TenantId string `pulumi:"tenantId"` } func LookupUserAssignedIdentityOutput(ctx *pulumi.Context, args LookupUserAssignedIdentityOutputArgs, opts ...pulumi.InvokeOption) LookupUserAssignedIdentityResultOutput { return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupUserAssignedIdentityResultOutput, error) { args := v.(LookupUserAssignedIdentityArgs) options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} return ctx.InvokeOutput("azure:authorization/getUserAssignedIdentity:getUserAssignedIdentity", args, LookupUserAssignedIdentityResultOutput{}, options).(LookupUserAssignedIdentityResultOutput), nil }).(LookupUserAssignedIdentityResultOutput) } // A collection of arguments for invoking getUserAssignedIdentity. type LookupUserAssignedIdentityOutputArgs struct { // The name of the User Assigned Identity. Name pulumi.StringInput `pulumi:"name"` // The name of the Resource Group in which the User Assigned Identity exists. ResourceGroupName pulumi.StringInput `pulumi:"resourceGroupName"` } func (LookupUserAssignedIdentityOutputArgs) ElementType() reflect.Type { return reflect.TypeOf((*LookupUserAssignedIdentityArgs)(nil)).Elem() } // A collection of values returned by getUserAssignedIdentity. type LookupUserAssignedIdentityResultOutput struct{ *pulumi.OutputState } func (LookupUserAssignedIdentityResultOutput) ElementType() reflect.Type { return reflect.TypeOf((*LookupUserAssignedIdentityResult)(nil)).Elem() } func (o LookupUserAssignedIdentityResultOutput) ToLookupUserAssignedIdentityResultOutput() LookupUserAssignedIdentityResultOutput { return o } func (o LookupUserAssignedIdentityResultOutput) ToLookupUserAssignedIdentityResultOutputWithContext(ctx context.Context) LookupUserAssignedIdentityResultOutput { return o } // The Client ID of the User Assigned Identity. func (o LookupUserAssignedIdentityResultOutput) ClientId() pulumi.StringOutput { return o.ApplyT(func(v LookupUserAssignedIdentityResult) string { return v.ClientId }).(pulumi.StringOutput) } // The provider-assigned unique ID for this managed resource. func (o LookupUserAssignedIdentityResultOutput) Id() pulumi.StringOutput { return o.ApplyT(func(v LookupUserAssignedIdentityResult) string { return v.Id }).(pulumi.StringOutput) } // The Azure location where the User Assigned Identity exists. func (o LookupUserAssignedIdentityResultOutput) Location() pulumi.StringOutput { return o.ApplyT(func(v LookupUserAssignedIdentityResult) string { return v.Location }).(pulumi.StringOutput) } func (o LookupUserAssignedIdentityResultOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v LookupUserAssignedIdentityResult) string { return v.Name }).(pulumi.StringOutput) } // The Service Principal ID of the User Assigned Identity. func (o LookupUserAssignedIdentityResultOutput) PrincipalId() pulumi.StringOutput { return o.ApplyT(func(v LookupUserAssignedIdentityResult) string { return v.PrincipalId }).(pulumi.StringOutput) } func (o LookupUserAssignedIdentityResultOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v LookupUserAssignedIdentityResult) string { return v.ResourceGroupName }).(pulumi.StringOutput) } // A mapping of tags assigned to the User Assigned Identity. func (o LookupUserAssignedIdentityResultOutput) Tags() pulumi.StringMapOutput { return o.ApplyT(func(v LookupUserAssignedIdentityResult) map[string]string { return v.Tags }).(pulumi.StringMapOutput) } // The Tenant ID of the User Assigned Identity. func (o LookupUserAssignedIdentityResultOutput) TenantId() pulumi.StringOutput { return o.ApplyT(func(v LookupUserAssignedIdentityResult) string { return v.TenantId }).(pulumi.StringOutput) } func init() { pulumi.RegisterOutputType(LookupUserAssignedIdentityResultOutput{}) }
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/relay/init.go
sdk/go/azure/relay/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 relay 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:relay/hybridConnection:HybridConnection": r = &HybridConnection{} case "azure:relay/hybridConnectionAuthorizationRule:HybridConnectionAuthorizationRule": r = &HybridConnectionAuthorizationRule{} case "azure:relay/namespace:Namespace": r = &Namespace{} case "azure:relay/namespaceAuthorizationRule:NamespaceAuthorizationRule": r = &NamespaceAuthorizationRule{} 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", "relay/hybridConnection", &module{version}, ) pulumi.RegisterResourceModule( "azure", "relay/hybridConnectionAuthorizationRule", &module{version}, ) pulumi.RegisterResourceModule( "azure", "relay/namespace", &module{version}, ) pulumi.RegisterResourceModule( "azure", "relay/namespaceAuthorizationRule", &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/relay/namespace.go
sdk/go/azure/relay/namespace.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 relay 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 Relay Namespace. // // ## 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/relay" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { // example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{ // Name: pulumi.String("example-resources"), // Location: pulumi.String("West Europe"), // }) // if err != nil { // return err // } // _, err = relay.NewNamespace(ctx, "example", &relay.NamespaceArgs{ // Name: pulumi.String("example-relay"), // Location: example.Location, // ResourceGroupName: example.Name, // SkuName: pulumi.String("Standard"), // Tags: pulumi.StringMap{ // "source": pulumi.String("example"), // }, // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## API Providers // // <!-- This section is generated, changes will be overwritten --> // This resource uses the following Azure API Providers: // // * `Microsoft.Relay` - 2021-11-01 // // ## Import // // Azure Relay Namespace's can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:relay/namespace:Namespace relay1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Relay/namespaces/relay1 // ``` type Namespace struct { pulumi.CustomResourceState // Specifies the supported Azure location where the Azure Relay Namespace exists. Changing this forces a new resource to be created. Location pulumi.StringOutput `pulumi:"location"` // The Identifier for Azure Insights metrics. MetricId pulumi.StringOutput `pulumi:"metricId"` // Specifies the name of the Azure Relay Namespace. Changing this forces a new resource to be created. Name pulumi.StringOutput `pulumi:"name"` // The primary connection string for the authorization rule `RootManageSharedAccessKey`. PrimaryConnectionString pulumi.StringOutput `pulumi:"primaryConnectionString"` // The primary access key for the authorization rule `RootManageSharedAccessKey`. PrimaryKey pulumi.StringOutput `pulumi:"primaryKey"` // The name of the resource group in which to create the Azure Relay Namespace. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // The secondary connection string for the authorization rule `RootManageSharedAccessKey`. SecondaryConnectionString pulumi.StringOutput `pulumi:"secondaryConnectionString"` // The secondary access key for the authorization rule `RootManageSharedAccessKey`. SecondaryKey pulumi.StringOutput `pulumi:"secondaryKey"` // The name of the SKU to use. At this time the only supported value is `Standard`. SkuName pulumi.StringOutput `pulumi:"skuName"` // A mapping of tags to assign to the resource. Tags pulumi.StringMapOutput `pulumi:"tags"` } // NewNamespace registers a new resource with the given unique name, arguments, and options. func NewNamespace(ctx *pulumi.Context, name string, args *NamespaceArgs, opts ...pulumi.ResourceOption) (*Namespace, 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'") } secrets := pulumi.AdditionalSecretOutputs([]string{ "primaryConnectionString", "primaryKey", "secondaryConnectionString", "secondaryKey", }) opts = append(opts, secrets) opts = internal.PkgResourceDefaultOpts(opts) var resource Namespace err := ctx.RegisterResource("azure:relay/namespace:Namespace", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetNamespace gets an existing Namespace 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 GetNamespace(ctx *pulumi.Context, name string, id pulumi.IDInput, state *NamespaceState, opts ...pulumi.ResourceOption) (*Namespace, error) { var resource Namespace err := ctx.ReadResource("azure:relay/namespace:Namespace", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering Namespace resources. type namespaceState struct { // Specifies the supported Azure location where the Azure Relay Namespace exists. Changing this forces a new resource to be created. Location *string `pulumi:"location"` // The Identifier for Azure Insights metrics. MetricId *string `pulumi:"metricId"` // Specifies the name of the Azure Relay Namespace. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // The primary connection string for the authorization rule `RootManageSharedAccessKey`. PrimaryConnectionString *string `pulumi:"primaryConnectionString"` // The primary access key for the authorization rule `RootManageSharedAccessKey`. PrimaryKey *string `pulumi:"primaryKey"` // The name of the resource group in which to create the Azure Relay Namespace. Changing this forces a new resource to be created. ResourceGroupName *string `pulumi:"resourceGroupName"` // The secondary connection string for the authorization rule `RootManageSharedAccessKey`. SecondaryConnectionString *string `pulumi:"secondaryConnectionString"` // The secondary access key for the authorization rule `RootManageSharedAccessKey`. SecondaryKey *string `pulumi:"secondaryKey"` // The name of the SKU to use. At this time the only supported value is `Standard`. SkuName *string `pulumi:"skuName"` // A mapping of tags to assign to the resource. Tags map[string]string `pulumi:"tags"` } type NamespaceState struct { // Specifies the supported Azure location where the Azure Relay Namespace exists. Changing this forces a new resource to be created. Location pulumi.StringPtrInput // The Identifier for Azure Insights metrics. MetricId pulumi.StringPtrInput // Specifies the name of the Azure Relay Namespace. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // The primary connection string for the authorization rule `RootManageSharedAccessKey`. PrimaryConnectionString pulumi.StringPtrInput // The primary access key for the authorization rule `RootManageSharedAccessKey`. PrimaryKey pulumi.StringPtrInput // The name of the resource group in which to create the Azure Relay Namespace. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringPtrInput // The secondary connection string for the authorization rule `RootManageSharedAccessKey`. SecondaryConnectionString pulumi.StringPtrInput // The secondary access key for the authorization rule `RootManageSharedAccessKey`. SecondaryKey pulumi.StringPtrInput // The name of the SKU to use. At this time the only supported value is `Standard`. SkuName pulumi.StringPtrInput // A mapping of tags to assign to the resource. Tags pulumi.StringMapInput } func (NamespaceState) ElementType() reflect.Type { return reflect.TypeOf((*namespaceState)(nil)).Elem() } type namespaceArgs struct { // Specifies the supported Azure location where the Azure Relay Namespace exists. Changing this forces a new resource to be created. Location *string `pulumi:"location"` // Specifies the name of the Azure Relay Namespace. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // The name of the resource group in which to create the Azure Relay Namespace. Changing this forces a new resource to be created. ResourceGroupName string `pulumi:"resourceGroupName"` // The name of the SKU to use. At this time the only supported value is `Standard`. SkuName string `pulumi:"skuName"` // A mapping of tags to assign to the resource. Tags map[string]string `pulumi:"tags"` } // The set of arguments for constructing a Namespace resource. type NamespaceArgs struct { // Specifies the supported Azure location where the Azure Relay Namespace exists. Changing this forces a new resource to be created. Location pulumi.StringPtrInput // Specifies the name of the Azure Relay Namespace. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // The name of the resource group in which to create the Azure Relay Namespace. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringInput // The name of the SKU to use. At this time the only supported value is `Standard`. SkuName pulumi.StringInput // A mapping of tags to assign to the resource. Tags pulumi.StringMapInput } func (NamespaceArgs) ElementType() reflect.Type { return reflect.TypeOf((*namespaceArgs)(nil)).Elem() } type NamespaceInput interface { pulumi.Input ToNamespaceOutput() NamespaceOutput ToNamespaceOutputWithContext(ctx context.Context) NamespaceOutput } func (*Namespace) ElementType() reflect.Type { return reflect.TypeOf((**Namespace)(nil)).Elem() } func (i *Namespace) ToNamespaceOutput() NamespaceOutput { return i.ToNamespaceOutputWithContext(context.Background()) } func (i *Namespace) ToNamespaceOutputWithContext(ctx context.Context) NamespaceOutput { return pulumi.ToOutputWithContext(ctx, i).(NamespaceOutput) } // NamespaceArrayInput is an input type that accepts NamespaceArray and NamespaceArrayOutput values. // You can construct a concrete instance of `NamespaceArrayInput` via: // // NamespaceArray{ NamespaceArgs{...} } type NamespaceArrayInput interface { pulumi.Input ToNamespaceArrayOutput() NamespaceArrayOutput ToNamespaceArrayOutputWithContext(context.Context) NamespaceArrayOutput } type NamespaceArray []NamespaceInput func (NamespaceArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*Namespace)(nil)).Elem() } func (i NamespaceArray) ToNamespaceArrayOutput() NamespaceArrayOutput { return i.ToNamespaceArrayOutputWithContext(context.Background()) } func (i NamespaceArray) ToNamespaceArrayOutputWithContext(ctx context.Context) NamespaceArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(NamespaceArrayOutput) } // NamespaceMapInput is an input type that accepts NamespaceMap and NamespaceMapOutput values. // You can construct a concrete instance of `NamespaceMapInput` via: // // NamespaceMap{ "key": NamespaceArgs{...} } type NamespaceMapInput interface { pulumi.Input ToNamespaceMapOutput() NamespaceMapOutput ToNamespaceMapOutputWithContext(context.Context) NamespaceMapOutput } type NamespaceMap map[string]NamespaceInput func (NamespaceMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*Namespace)(nil)).Elem() } func (i NamespaceMap) ToNamespaceMapOutput() NamespaceMapOutput { return i.ToNamespaceMapOutputWithContext(context.Background()) } func (i NamespaceMap) ToNamespaceMapOutputWithContext(ctx context.Context) NamespaceMapOutput { return pulumi.ToOutputWithContext(ctx, i).(NamespaceMapOutput) } type NamespaceOutput struct{ *pulumi.OutputState } func (NamespaceOutput) ElementType() reflect.Type { return reflect.TypeOf((**Namespace)(nil)).Elem() } func (o NamespaceOutput) ToNamespaceOutput() NamespaceOutput { return o } func (o NamespaceOutput) ToNamespaceOutputWithContext(ctx context.Context) NamespaceOutput { return o } // Specifies the supported Azure location where the Azure Relay Namespace exists. Changing this forces a new resource to be created. func (o NamespaceOutput) Location() pulumi.StringOutput { return o.ApplyT(func(v *Namespace) pulumi.StringOutput { return v.Location }).(pulumi.StringOutput) } // The Identifier for Azure Insights metrics. func (o NamespaceOutput) MetricId() pulumi.StringOutput { return o.ApplyT(func(v *Namespace) pulumi.StringOutput { return v.MetricId }).(pulumi.StringOutput) } // Specifies the name of the Azure Relay Namespace. Changing this forces a new resource to be created. func (o NamespaceOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *Namespace) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // The primary connection string for the authorization rule `RootManageSharedAccessKey`. func (o NamespaceOutput) PrimaryConnectionString() pulumi.StringOutput { return o.ApplyT(func(v *Namespace) pulumi.StringOutput { return v.PrimaryConnectionString }).(pulumi.StringOutput) } // The primary access key for the authorization rule `RootManageSharedAccessKey`. func (o NamespaceOutput) PrimaryKey() pulumi.StringOutput { return o.ApplyT(func(v *Namespace) pulumi.StringOutput { return v.PrimaryKey }).(pulumi.StringOutput) } // The name of the resource group in which to create the Azure Relay Namespace. Changing this forces a new resource to be created. func (o NamespaceOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v *Namespace) pulumi.StringOutput { return v.ResourceGroupName }).(pulumi.StringOutput) } // The secondary connection string for the authorization rule `RootManageSharedAccessKey`. func (o NamespaceOutput) SecondaryConnectionString() pulumi.StringOutput { return o.ApplyT(func(v *Namespace) pulumi.StringOutput { return v.SecondaryConnectionString }).(pulumi.StringOutput) } // The secondary access key for the authorization rule `RootManageSharedAccessKey`. func (o NamespaceOutput) SecondaryKey() pulumi.StringOutput { return o.ApplyT(func(v *Namespace) pulumi.StringOutput { return v.SecondaryKey }).(pulumi.StringOutput) } // The name of the SKU to use. At this time the only supported value is `Standard`. func (o NamespaceOutput) SkuName() pulumi.StringOutput { return o.ApplyT(func(v *Namespace) pulumi.StringOutput { return v.SkuName }).(pulumi.StringOutput) } // A mapping of tags to assign to the resource. func (o NamespaceOutput) Tags() pulumi.StringMapOutput { return o.ApplyT(func(v *Namespace) pulumi.StringMapOutput { return v.Tags }).(pulumi.StringMapOutput) } type NamespaceArrayOutput struct{ *pulumi.OutputState } func (NamespaceArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*Namespace)(nil)).Elem() } func (o NamespaceArrayOutput) ToNamespaceArrayOutput() NamespaceArrayOutput { return o } func (o NamespaceArrayOutput) ToNamespaceArrayOutputWithContext(ctx context.Context) NamespaceArrayOutput { return o } func (o NamespaceArrayOutput) Index(i pulumi.IntInput) NamespaceOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *Namespace { return vs[0].([]*Namespace)[vs[1].(int)] }).(NamespaceOutput) } type NamespaceMapOutput struct{ *pulumi.OutputState } func (NamespaceMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*Namespace)(nil)).Elem() } func (o NamespaceMapOutput) ToNamespaceMapOutput() NamespaceMapOutput { return o } func (o NamespaceMapOutput) ToNamespaceMapOutputWithContext(ctx context.Context) NamespaceMapOutput { return o } func (o NamespaceMapOutput) MapIndex(k pulumi.StringInput) NamespaceOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *Namespace { return vs[0].(map[string]*Namespace)[vs[1].(string)] }).(NamespaceOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*NamespaceInput)(nil)).Elem(), &Namespace{}) pulumi.RegisterInputType(reflect.TypeOf((*NamespaceArrayInput)(nil)).Elem(), NamespaceArray{}) pulumi.RegisterInputType(reflect.TypeOf((*NamespaceMapInput)(nil)).Elem(), NamespaceMap{}) pulumi.RegisterOutputType(NamespaceOutput{}) pulumi.RegisterOutputType(NamespaceArrayOutput{}) pulumi.RegisterOutputType(NamespaceMapOutput{}) }
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/relay/hybridConnectionAuthorizationRule.go
sdk/go/azure/relay/hybridConnectionAuthorizationRule.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 relay 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 Relay Hybrid Connection Authorization 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/relay" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { // example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{ // Name: pulumi.String("example-resources"), // Location: pulumi.String("West Europe"), // }) // if err != nil { // return err // } // exampleNamespace, err := relay.NewNamespace(ctx, "example", &relay.NamespaceArgs{ // Name: pulumi.String("example-relay"), // Location: example.Location, // ResourceGroupName: example.Name, // SkuName: pulumi.String("Standard"), // Tags: pulumi.StringMap{ // "source": pulumi.String("terraform"), // }, // }) // if err != nil { // return err // } // exampleHybridConnection, err := relay.NewHybridConnection(ctx, "example", &relay.HybridConnectionArgs{ // Name: pulumi.String("acctestrnhc-%d"), // ResourceGroupName: example.Name, // RelayNamespaceName: exampleNamespace.Name, // RequiresClientAuthorization: pulumi.Bool(false), // UserMetadata: pulumi.String("testmetadata"), // }) // if err != nil { // return err // } // _, err = relay.NewHybridConnectionAuthorizationRule(ctx, "example", &relay.HybridConnectionAuthorizationRuleArgs{ // Name: pulumi.String("example"), // ResourceGroupName: example.Name, // HybridConnectionName: exampleHybridConnection.Name, // NamespaceName: exampleNamespace.Name, // Listen: pulumi.Bool(true), // Send: pulumi.Bool(true), // Manage: pulumi.Bool(false), // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## API Providers // // <!-- This section is generated, changes will be overwritten --> // This resource uses the following Azure API Providers: // // * `Microsoft.Relay` - 2021-11-01 // // ## Import // // Azure Relay Hybrid Connection Authorization Rules can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:relay/hybridConnectionAuthorizationRule:HybridConnectionAuthorizationRule example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Relay/namespaces/namespace1/hybridConnections/connection1/authorizationRules/rule1 // ``` type HybridConnectionAuthorizationRule struct { pulumi.CustomResourceState // Name of the Azure Relay Hybrid Connection for which this Azure Relay Hybrid Connection Authorization Rule will be created. Changing this forces a new Azure Relay Hybrid Connection Authorization Rule to be created. HybridConnectionName pulumi.StringOutput `pulumi:"hybridConnectionName"` // Grants listen access to this Authorization Rule. Defaults to `false`. Listen pulumi.BoolPtrOutput `pulumi:"listen"` // Grants manage access to this Authorization Rule. When this property is `true` - both `listen` and `send` must be set to `true` too. Defaults to `false`. Manage pulumi.BoolPtrOutput `pulumi:"manage"` // The name which should be used for this Azure Relay Hybrid Connection Authorization Rule. Changing this forces a new Azure Relay Hybrid Connection Authorization Rule to be created. Name pulumi.StringOutput `pulumi:"name"` // Name of the Azure Relay Namespace for which this Azure Relay Hybrid Connection Authorization Rule will be created. Changing this forces a new Azure Relay Hybrid Connection Authorization Rule to be created. NamespaceName pulumi.StringOutput `pulumi:"namespaceName"` // The Primary Connection String for the Azure Relay Hybrid Connection Authorization Rule. PrimaryConnectionString pulumi.StringOutput `pulumi:"primaryConnectionString"` // The Primary Key for the Azure Relay Hybrid Connection Authorization Rule. PrimaryKey pulumi.StringOutput `pulumi:"primaryKey"` // The name of the Resource Group where the Azure Relay Hybrid Connection Authorization Rule should exist. Changing this forces a new Azure Relay Hybrid Connection Authorization Rule to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // The Secondary Connection String for the Azure Relay Hybrid Connection Authorization Rule. SecondaryConnectionString pulumi.StringOutput `pulumi:"secondaryConnectionString"` // The Secondary Key for the Azure Relay Hybrid Connection Authorization Rule. SecondaryKey pulumi.StringOutput `pulumi:"secondaryKey"` // Grants send access to this Authorization Rule. Defaults to `false`. Send pulumi.BoolPtrOutput `pulumi:"send"` } // NewHybridConnectionAuthorizationRule registers a new resource with the given unique name, arguments, and options. func NewHybridConnectionAuthorizationRule(ctx *pulumi.Context, name string, args *HybridConnectionAuthorizationRuleArgs, opts ...pulumi.ResourceOption) (*HybridConnectionAuthorizationRule, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.HybridConnectionName == nil { return nil, errors.New("invalid value for required argument 'HybridConnectionName'") } if args.NamespaceName == nil { return nil, errors.New("invalid value for required argument 'NamespaceName'") } if args.ResourceGroupName == nil { return nil, errors.New("invalid value for required argument 'ResourceGroupName'") } secrets := pulumi.AdditionalSecretOutputs([]string{ "primaryConnectionString", "primaryKey", "secondaryConnectionString", "secondaryKey", }) opts = append(opts, secrets) opts = internal.PkgResourceDefaultOpts(opts) var resource HybridConnectionAuthorizationRule err := ctx.RegisterResource("azure:relay/hybridConnectionAuthorizationRule:HybridConnectionAuthorizationRule", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetHybridConnectionAuthorizationRule gets an existing HybridConnectionAuthorizationRule 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 GetHybridConnectionAuthorizationRule(ctx *pulumi.Context, name string, id pulumi.IDInput, state *HybridConnectionAuthorizationRuleState, opts ...pulumi.ResourceOption) (*HybridConnectionAuthorizationRule, error) { var resource HybridConnectionAuthorizationRule err := ctx.ReadResource("azure:relay/hybridConnectionAuthorizationRule:HybridConnectionAuthorizationRule", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering HybridConnectionAuthorizationRule resources. type hybridConnectionAuthorizationRuleState struct { // Name of the Azure Relay Hybrid Connection for which this Azure Relay Hybrid Connection Authorization Rule will be created. Changing this forces a new Azure Relay Hybrid Connection Authorization Rule to be created. HybridConnectionName *string `pulumi:"hybridConnectionName"` // Grants listen access to this Authorization Rule. Defaults to `false`. Listen *bool `pulumi:"listen"` // Grants manage access to this Authorization Rule. When this property is `true` - both `listen` and `send` must be set to `true` too. Defaults to `false`. Manage *bool `pulumi:"manage"` // The name which should be used for this Azure Relay Hybrid Connection Authorization Rule. Changing this forces a new Azure Relay Hybrid Connection Authorization Rule to be created. Name *string `pulumi:"name"` // Name of the Azure Relay Namespace for which this Azure Relay Hybrid Connection Authorization Rule will be created. Changing this forces a new Azure Relay Hybrid Connection Authorization Rule to be created. NamespaceName *string `pulumi:"namespaceName"` // The Primary Connection String for the Azure Relay Hybrid Connection Authorization Rule. PrimaryConnectionString *string `pulumi:"primaryConnectionString"` // The Primary Key for the Azure Relay Hybrid Connection Authorization Rule. PrimaryKey *string `pulumi:"primaryKey"` // The name of the Resource Group where the Azure Relay Hybrid Connection Authorization Rule should exist. Changing this forces a new Azure Relay Hybrid Connection Authorization Rule to be created. ResourceGroupName *string `pulumi:"resourceGroupName"` // The Secondary Connection String for the Azure Relay Hybrid Connection Authorization Rule. SecondaryConnectionString *string `pulumi:"secondaryConnectionString"` // The Secondary Key for the Azure Relay Hybrid Connection Authorization Rule. SecondaryKey *string `pulumi:"secondaryKey"` // Grants send access to this Authorization Rule. Defaults to `false`. Send *bool `pulumi:"send"` } type HybridConnectionAuthorizationRuleState struct { // Name of the Azure Relay Hybrid Connection for which this Azure Relay Hybrid Connection Authorization Rule will be created. Changing this forces a new Azure Relay Hybrid Connection Authorization Rule to be created. HybridConnectionName pulumi.StringPtrInput // Grants listen access to this Authorization Rule. Defaults to `false`. Listen pulumi.BoolPtrInput // Grants manage access to this Authorization Rule. When this property is `true` - both `listen` and `send` must be set to `true` too. Defaults to `false`. Manage pulumi.BoolPtrInput // The name which should be used for this Azure Relay Hybrid Connection Authorization Rule. Changing this forces a new Azure Relay Hybrid Connection Authorization Rule to be created. Name pulumi.StringPtrInput // Name of the Azure Relay Namespace for which this Azure Relay Hybrid Connection Authorization Rule will be created. Changing this forces a new Azure Relay Hybrid Connection Authorization Rule to be created. NamespaceName pulumi.StringPtrInput // The Primary Connection String for the Azure Relay Hybrid Connection Authorization Rule. PrimaryConnectionString pulumi.StringPtrInput // The Primary Key for the Azure Relay Hybrid Connection Authorization Rule. PrimaryKey pulumi.StringPtrInput // The name of the Resource Group where the Azure Relay Hybrid Connection Authorization Rule should exist. Changing this forces a new Azure Relay Hybrid Connection Authorization Rule to be created. ResourceGroupName pulumi.StringPtrInput // The Secondary Connection String for the Azure Relay Hybrid Connection Authorization Rule. SecondaryConnectionString pulumi.StringPtrInput // The Secondary Key for the Azure Relay Hybrid Connection Authorization Rule. SecondaryKey pulumi.StringPtrInput // Grants send access to this Authorization Rule. Defaults to `false`. Send pulumi.BoolPtrInput } func (HybridConnectionAuthorizationRuleState) ElementType() reflect.Type { return reflect.TypeOf((*hybridConnectionAuthorizationRuleState)(nil)).Elem() } type hybridConnectionAuthorizationRuleArgs struct { // Name of the Azure Relay Hybrid Connection for which this Azure Relay Hybrid Connection Authorization Rule will be created. Changing this forces a new Azure Relay Hybrid Connection Authorization Rule to be created. HybridConnectionName string `pulumi:"hybridConnectionName"` // Grants listen access to this Authorization Rule. Defaults to `false`. Listen *bool `pulumi:"listen"` // Grants manage access to this Authorization Rule. When this property is `true` - both `listen` and `send` must be set to `true` too. Defaults to `false`. Manage *bool `pulumi:"manage"` // The name which should be used for this Azure Relay Hybrid Connection Authorization Rule. Changing this forces a new Azure Relay Hybrid Connection Authorization Rule to be created. Name *string `pulumi:"name"` // Name of the Azure Relay Namespace for which this Azure Relay Hybrid Connection Authorization Rule will be created. Changing this forces a new Azure Relay Hybrid Connection Authorization Rule to be created. NamespaceName string `pulumi:"namespaceName"` // The name of the Resource Group where the Azure Relay Hybrid Connection Authorization Rule should exist. Changing this forces a new Azure Relay Hybrid Connection Authorization Rule to be created. ResourceGroupName string `pulumi:"resourceGroupName"` // Grants send access to this Authorization Rule. Defaults to `false`. Send *bool `pulumi:"send"` } // The set of arguments for constructing a HybridConnectionAuthorizationRule resource. type HybridConnectionAuthorizationRuleArgs struct { // Name of the Azure Relay Hybrid Connection for which this Azure Relay Hybrid Connection Authorization Rule will be created. Changing this forces a new Azure Relay Hybrid Connection Authorization Rule to be created. HybridConnectionName pulumi.StringInput // Grants listen access to this Authorization Rule. Defaults to `false`. Listen pulumi.BoolPtrInput // Grants manage access to this Authorization Rule. When this property is `true` - both `listen` and `send` must be set to `true` too. Defaults to `false`. Manage pulumi.BoolPtrInput // The name which should be used for this Azure Relay Hybrid Connection Authorization Rule. Changing this forces a new Azure Relay Hybrid Connection Authorization Rule to be created. Name pulumi.StringPtrInput // Name of the Azure Relay Namespace for which this Azure Relay Hybrid Connection Authorization Rule will be created. Changing this forces a new Azure Relay Hybrid Connection Authorization Rule to be created. NamespaceName pulumi.StringInput // The name of the Resource Group where the Azure Relay Hybrid Connection Authorization Rule should exist. Changing this forces a new Azure Relay Hybrid Connection Authorization Rule to be created. ResourceGroupName pulumi.StringInput // Grants send access to this Authorization Rule. Defaults to `false`. Send pulumi.BoolPtrInput } func (HybridConnectionAuthorizationRuleArgs) ElementType() reflect.Type { return reflect.TypeOf((*hybridConnectionAuthorizationRuleArgs)(nil)).Elem() } type HybridConnectionAuthorizationRuleInput interface { pulumi.Input ToHybridConnectionAuthorizationRuleOutput() HybridConnectionAuthorizationRuleOutput ToHybridConnectionAuthorizationRuleOutputWithContext(ctx context.Context) HybridConnectionAuthorizationRuleOutput } func (*HybridConnectionAuthorizationRule) ElementType() reflect.Type { return reflect.TypeOf((**HybridConnectionAuthorizationRule)(nil)).Elem() } func (i *HybridConnectionAuthorizationRule) ToHybridConnectionAuthorizationRuleOutput() HybridConnectionAuthorizationRuleOutput { return i.ToHybridConnectionAuthorizationRuleOutputWithContext(context.Background()) } func (i *HybridConnectionAuthorizationRule) ToHybridConnectionAuthorizationRuleOutputWithContext(ctx context.Context) HybridConnectionAuthorizationRuleOutput { return pulumi.ToOutputWithContext(ctx, i).(HybridConnectionAuthorizationRuleOutput) } // HybridConnectionAuthorizationRuleArrayInput is an input type that accepts HybridConnectionAuthorizationRuleArray and HybridConnectionAuthorizationRuleArrayOutput values. // You can construct a concrete instance of `HybridConnectionAuthorizationRuleArrayInput` via: // // HybridConnectionAuthorizationRuleArray{ HybridConnectionAuthorizationRuleArgs{...} } type HybridConnectionAuthorizationRuleArrayInput interface { pulumi.Input ToHybridConnectionAuthorizationRuleArrayOutput() HybridConnectionAuthorizationRuleArrayOutput ToHybridConnectionAuthorizationRuleArrayOutputWithContext(context.Context) HybridConnectionAuthorizationRuleArrayOutput } type HybridConnectionAuthorizationRuleArray []HybridConnectionAuthorizationRuleInput func (HybridConnectionAuthorizationRuleArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*HybridConnectionAuthorizationRule)(nil)).Elem() } func (i HybridConnectionAuthorizationRuleArray) ToHybridConnectionAuthorizationRuleArrayOutput() HybridConnectionAuthorizationRuleArrayOutput { return i.ToHybridConnectionAuthorizationRuleArrayOutputWithContext(context.Background()) } func (i HybridConnectionAuthorizationRuleArray) ToHybridConnectionAuthorizationRuleArrayOutputWithContext(ctx context.Context) HybridConnectionAuthorizationRuleArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(HybridConnectionAuthorizationRuleArrayOutput) } // HybridConnectionAuthorizationRuleMapInput is an input type that accepts HybridConnectionAuthorizationRuleMap and HybridConnectionAuthorizationRuleMapOutput values. // You can construct a concrete instance of `HybridConnectionAuthorizationRuleMapInput` via: // // HybridConnectionAuthorizationRuleMap{ "key": HybridConnectionAuthorizationRuleArgs{...} } type HybridConnectionAuthorizationRuleMapInput interface { pulumi.Input ToHybridConnectionAuthorizationRuleMapOutput() HybridConnectionAuthorizationRuleMapOutput ToHybridConnectionAuthorizationRuleMapOutputWithContext(context.Context) HybridConnectionAuthorizationRuleMapOutput } type HybridConnectionAuthorizationRuleMap map[string]HybridConnectionAuthorizationRuleInput func (HybridConnectionAuthorizationRuleMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*HybridConnectionAuthorizationRule)(nil)).Elem() } func (i HybridConnectionAuthorizationRuleMap) ToHybridConnectionAuthorizationRuleMapOutput() HybridConnectionAuthorizationRuleMapOutput { return i.ToHybridConnectionAuthorizationRuleMapOutputWithContext(context.Background()) } func (i HybridConnectionAuthorizationRuleMap) ToHybridConnectionAuthorizationRuleMapOutputWithContext(ctx context.Context) HybridConnectionAuthorizationRuleMapOutput { return pulumi.ToOutputWithContext(ctx, i).(HybridConnectionAuthorizationRuleMapOutput) } type HybridConnectionAuthorizationRuleOutput struct{ *pulumi.OutputState } func (HybridConnectionAuthorizationRuleOutput) ElementType() reflect.Type { return reflect.TypeOf((**HybridConnectionAuthorizationRule)(nil)).Elem() } func (o HybridConnectionAuthorizationRuleOutput) ToHybridConnectionAuthorizationRuleOutput() HybridConnectionAuthorizationRuleOutput { return o } func (o HybridConnectionAuthorizationRuleOutput) ToHybridConnectionAuthorizationRuleOutputWithContext(ctx context.Context) HybridConnectionAuthorizationRuleOutput { return o } // Name of the Azure Relay Hybrid Connection for which this Azure Relay Hybrid Connection Authorization Rule will be created. Changing this forces a new Azure Relay Hybrid Connection Authorization Rule to be created. func (o HybridConnectionAuthorizationRuleOutput) HybridConnectionName() pulumi.StringOutput { return o.ApplyT(func(v *HybridConnectionAuthorizationRule) pulumi.StringOutput { return v.HybridConnectionName }).(pulumi.StringOutput) } // Grants listen access to this Authorization Rule. Defaults to `false`. func (o HybridConnectionAuthorizationRuleOutput) Listen() pulumi.BoolPtrOutput { return o.ApplyT(func(v *HybridConnectionAuthorizationRule) pulumi.BoolPtrOutput { return v.Listen }).(pulumi.BoolPtrOutput) } // Grants manage access to this Authorization Rule. When this property is `true` - both `listen` and `send` must be set to `true` too. Defaults to `false`. func (o HybridConnectionAuthorizationRuleOutput) Manage() pulumi.BoolPtrOutput { return o.ApplyT(func(v *HybridConnectionAuthorizationRule) pulumi.BoolPtrOutput { return v.Manage }).(pulumi.BoolPtrOutput) } // The name which should be used for this Azure Relay Hybrid Connection Authorization Rule. Changing this forces a new Azure Relay Hybrid Connection Authorization Rule to be created. func (o HybridConnectionAuthorizationRuleOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *HybridConnectionAuthorizationRule) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // Name of the Azure Relay Namespace for which this Azure Relay Hybrid Connection Authorization Rule will be created. Changing this forces a new Azure Relay Hybrid Connection Authorization Rule to be created. func (o HybridConnectionAuthorizationRuleOutput) NamespaceName() pulumi.StringOutput { return o.ApplyT(func(v *HybridConnectionAuthorizationRule) pulumi.StringOutput { return v.NamespaceName }).(pulumi.StringOutput) } // The Primary Connection String for the Azure Relay Hybrid Connection Authorization Rule. func (o HybridConnectionAuthorizationRuleOutput) PrimaryConnectionString() pulumi.StringOutput { return o.ApplyT(func(v *HybridConnectionAuthorizationRule) pulumi.StringOutput { return v.PrimaryConnectionString }).(pulumi.StringOutput) } // The Primary Key for the Azure Relay Hybrid Connection Authorization Rule. func (o HybridConnectionAuthorizationRuleOutput) PrimaryKey() pulumi.StringOutput { return o.ApplyT(func(v *HybridConnectionAuthorizationRule) pulumi.StringOutput { return v.PrimaryKey }).(pulumi.StringOutput) } // The name of the Resource Group where the Azure Relay Hybrid Connection Authorization Rule should exist. Changing this forces a new Azure Relay Hybrid Connection Authorization Rule to be created. func (o HybridConnectionAuthorizationRuleOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v *HybridConnectionAuthorizationRule) pulumi.StringOutput { return v.ResourceGroupName }).(pulumi.StringOutput) } // The Secondary Connection String for the Azure Relay Hybrid Connection Authorization Rule. func (o HybridConnectionAuthorizationRuleOutput) SecondaryConnectionString() pulumi.StringOutput { return o.ApplyT(func(v *HybridConnectionAuthorizationRule) pulumi.StringOutput { return v.SecondaryConnectionString }).(pulumi.StringOutput) } // The Secondary Key for the Azure Relay Hybrid Connection Authorization Rule. func (o HybridConnectionAuthorizationRuleOutput) SecondaryKey() pulumi.StringOutput { return o.ApplyT(func(v *HybridConnectionAuthorizationRule) pulumi.StringOutput { return v.SecondaryKey }).(pulumi.StringOutput) } // Grants send access to this Authorization Rule. Defaults to `false`. func (o HybridConnectionAuthorizationRuleOutput) Send() pulumi.BoolPtrOutput { return o.ApplyT(func(v *HybridConnectionAuthorizationRule) pulumi.BoolPtrOutput { return v.Send }).(pulumi.BoolPtrOutput) } type HybridConnectionAuthorizationRuleArrayOutput struct{ *pulumi.OutputState } func (HybridConnectionAuthorizationRuleArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*HybridConnectionAuthorizationRule)(nil)).Elem() } func (o HybridConnectionAuthorizationRuleArrayOutput) ToHybridConnectionAuthorizationRuleArrayOutput() HybridConnectionAuthorizationRuleArrayOutput { return o } func (o HybridConnectionAuthorizationRuleArrayOutput) ToHybridConnectionAuthorizationRuleArrayOutputWithContext(ctx context.Context) HybridConnectionAuthorizationRuleArrayOutput { return o } func (o HybridConnectionAuthorizationRuleArrayOutput) Index(i pulumi.IntInput) HybridConnectionAuthorizationRuleOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *HybridConnectionAuthorizationRule { return vs[0].([]*HybridConnectionAuthorizationRule)[vs[1].(int)] }).(HybridConnectionAuthorizationRuleOutput) } type HybridConnectionAuthorizationRuleMapOutput struct{ *pulumi.OutputState } func (HybridConnectionAuthorizationRuleMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*HybridConnectionAuthorizationRule)(nil)).Elem() } func (o HybridConnectionAuthorizationRuleMapOutput) ToHybridConnectionAuthorizationRuleMapOutput() HybridConnectionAuthorizationRuleMapOutput { return o } func (o HybridConnectionAuthorizationRuleMapOutput) ToHybridConnectionAuthorizationRuleMapOutputWithContext(ctx context.Context) HybridConnectionAuthorizationRuleMapOutput { return o } func (o HybridConnectionAuthorizationRuleMapOutput) MapIndex(k pulumi.StringInput) HybridConnectionAuthorizationRuleOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *HybridConnectionAuthorizationRule { return vs[0].(map[string]*HybridConnectionAuthorizationRule)[vs[1].(string)] }).(HybridConnectionAuthorizationRuleOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*HybridConnectionAuthorizationRuleInput)(nil)).Elem(), &HybridConnectionAuthorizationRule{}) pulumi.RegisterInputType(reflect.TypeOf((*HybridConnectionAuthorizationRuleArrayInput)(nil)).Elem(), HybridConnectionAuthorizationRuleArray{}) pulumi.RegisterInputType(reflect.TypeOf((*HybridConnectionAuthorizationRuleMapInput)(nil)).Elem(), HybridConnectionAuthorizationRuleMap{}) pulumi.RegisterOutputType(HybridConnectionAuthorizationRuleOutput{}) pulumi.RegisterOutputType(HybridConnectionAuthorizationRuleArrayOutput{}) pulumi.RegisterOutputType(HybridConnectionAuthorizationRuleMapOutput{}) }
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/relay/namespaceAuthorizationRule.go
sdk/go/azure/relay/namespaceAuthorizationRule.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 relay 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 Relay Namespace Authorization 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/relay" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { // example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{ // Name: pulumi.String("example-resources"), // Location: pulumi.String("West Europe"), // }) // if err != nil { // return err // } // exampleNamespace, err := relay.NewNamespace(ctx, "example", &relay.NamespaceArgs{ // Name: pulumi.String("example-relay"), // Location: example.Location, // ResourceGroupName: example.Name, // SkuName: pulumi.String("Standard"), // Tags: pulumi.StringMap{ // "source": pulumi.String("terraform"), // }, // }) // if err != nil { // return err // } // _, err = relay.NewNamespaceAuthorizationRule(ctx, "example", &relay.NamespaceAuthorizationRuleArgs{ // Name: pulumi.String("example"), // ResourceGroupName: example.Name, // NamespaceName: exampleNamespace.Name, // Listen: pulumi.Bool(true), // Send: pulumi.Bool(true), // Manage: pulumi.Bool(false), // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## API Providers // // <!-- This section is generated, changes will be overwritten --> // This resource uses the following Azure API Providers: // // * `Microsoft.Relay` - 2021-11-01 // // ## Import // // Azure Relay Namespace Authorization Rules can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:relay/namespaceAuthorizationRule:NamespaceAuthorizationRule example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Relay/namespaces/namespace1/authorizationRules/rule1 // ``` type NamespaceAuthorizationRule struct { pulumi.CustomResourceState // Grants listen access to this Authorization Rule. Defaults to `false`. Listen pulumi.BoolPtrOutput `pulumi:"listen"` // Grants manage access to this Authorization Rule. When this property is `true` - both `listen` and `send` must be set to `true` too. Defaults to `false`. Manage pulumi.BoolPtrOutput `pulumi:"manage"` // The name which should be used for this Azure Relay Namespace Authorization Rule. Changing this forces a new Azure Relay Namespace Authorization Rule to be created. Name pulumi.StringOutput `pulumi:"name"` // Name of the Azure Relay Namespace for which this Azure Relay Namespace Authorization Rule will be created. Changing this forces a new Azure Relay Namespace Authorization Rule to be created. NamespaceName pulumi.StringOutput `pulumi:"namespaceName"` // The Primary Connection String for the Azure Relay Namespace Authorization Rule. PrimaryConnectionString pulumi.StringOutput `pulumi:"primaryConnectionString"` // The Primary Key for the Azure Relay Namespace Authorization Rule. PrimaryKey pulumi.StringOutput `pulumi:"primaryKey"` // The name of the Resource Group where the Azure Relay Namespace Authorization Rule should exist. Changing this forces a new Azure Relay Namespace Authorization Rule to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // The Secondary Connection String for the Azure Relay Namespace Authorization Rule. SecondaryConnectionString pulumi.StringOutput `pulumi:"secondaryConnectionString"` // The Secondary Key for the Azure Relay Namespace Authorization Rule. SecondaryKey pulumi.StringOutput `pulumi:"secondaryKey"` // Grants send access to this Authorization Rule. Defaults to `false`. Send pulumi.BoolPtrOutput `pulumi:"send"` } // NewNamespaceAuthorizationRule registers a new resource with the given unique name, arguments, and options. func NewNamespaceAuthorizationRule(ctx *pulumi.Context, name string, args *NamespaceAuthorizationRuleArgs, opts ...pulumi.ResourceOption) (*NamespaceAuthorizationRule, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.NamespaceName == nil { return nil, errors.New("invalid value for required argument 'NamespaceName'") } if args.ResourceGroupName == nil { return nil, errors.New("invalid value for required argument 'ResourceGroupName'") } secrets := pulumi.AdditionalSecretOutputs([]string{ "primaryConnectionString", "primaryKey", "secondaryConnectionString", "secondaryKey", }) opts = append(opts, secrets) opts = internal.PkgResourceDefaultOpts(opts) var resource NamespaceAuthorizationRule err := ctx.RegisterResource("azure:relay/namespaceAuthorizationRule:NamespaceAuthorizationRule", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetNamespaceAuthorizationRule gets an existing NamespaceAuthorizationRule 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 GetNamespaceAuthorizationRule(ctx *pulumi.Context, name string, id pulumi.IDInput, state *NamespaceAuthorizationRuleState, opts ...pulumi.ResourceOption) (*NamespaceAuthorizationRule, error) { var resource NamespaceAuthorizationRule err := ctx.ReadResource("azure:relay/namespaceAuthorizationRule:NamespaceAuthorizationRule", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering NamespaceAuthorizationRule resources. type namespaceAuthorizationRuleState struct { // Grants listen access to this Authorization Rule. Defaults to `false`. Listen *bool `pulumi:"listen"` // Grants manage access to this Authorization Rule. When this property is `true` - both `listen` and `send` must be set to `true` too. Defaults to `false`. Manage *bool `pulumi:"manage"` // The name which should be used for this Azure Relay Namespace Authorization Rule. Changing this forces a new Azure Relay Namespace Authorization Rule to be created. Name *string `pulumi:"name"` // Name of the Azure Relay Namespace for which this Azure Relay Namespace Authorization Rule will be created. Changing this forces a new Azure Relay Namespace Authorization Rule to be created. NamespaceName *string `pulumi:"namespaceName"` // The Primary Connection String for the Azure Relay Namespace Authorization Rule. PrimaryConnectionString *string `pulumi:"primaryConnectionString"` // The Primary Key for the Azure Relay Namespace Authorization Rule. PrimaryKey *string `pulumi:"primaryKey"` // The name of the Resource Group where the Azure Relay Namespace Authorization Rule should exist. Changing this forces a new Azure Relay Namespace Authorization Rule to be created. ResourceGroupName *string `pulumi:"resourceGroupName"` // The Secondary Connection String for the Azure Relay Namespace Authorization Rule. SecondaryConnectionString *string `pulumi:"secondaryConnectionString"` // The Secondary Key for the Azure Relay Namespace Authorization Rule. SecondaryKey *string `pulumi:"secondaryKey"` // Grants send access to this Authorization Rule. Defaults to `false`. Send *bool `pulumi:"send"` } type NamespaceAuthorizationRuleState struct { // Grants listen access to this Authorization Rule. Defaults to `false`. Listen pulumi.BoolPtrInput // Grants manage access to this Authorization Rule. When this property is `true` - both `listen` and `send` must be set to `true` too. Defaults to `false`. Manage pulumi.BoolPtrInput // The name which should be used for this Azure Relay Namespace Authorization Rule. Changing this forces a new Azure Relay Namespace Authorization Rule to be created. Name pulumi.StringPtrInput // Name of the Azure Relay Namespace for which this Azure Relay Namespace Authorization Rule will be created. Changing this forces a new Azure Relay Namespace Authorization Rule to be created. NamespaceName pulumi.StringPtrInput // The Primary Connection String for the Azure Relay Namespace Authorization Rule. PrimaryConnectionString pulumi.StringPtrInput // The Primary Key for the Azure Relay Namespace Authorization Rule. PrimaryKey pulumi.StringPtrInput // The name of the Resource Group where the Azure Relay Namespace Authorization Rule should exist. Changing this forces a new Azure Relay Namespace Authorization Rule to be created. ResourceGroupName pulumi.StringPtrInput // The Secondary Connection String for the Azure Relay Namespace Authorization Rule. SecondaryConnectionString pulumi.StringPtrInput // The Secondary Key for the Azure Relay Namespace Authorization Rule. SecondaryKey pulumi.StringPtrInput // Grants send access to this Authorization Rule. Defaults to `false`. Send pulumi.BoolPtrInput } func (NamespaceAuthorizationRuleState) ElementType() reflect.Type { return reflect.TypeOf((*namespaceAuthorizationRuleState)(nil)).Elem() } type namespaceAuthorizationRuleArgs struct { // Grants listen access to this Authorization Rule. Defaults to `false`. Listen *bool `pulumi:"listen"` // Grants manage access to this Authorization Rule. When this property is `true` - both `listen` and `send` must be set to `true` too. Defaults to `false`. Manage *bool `pulumi:"manage"` // The name which should be used for this Azure Relay Namespace Authorization Rule. Changing this forces a new Azure Relay Namespace Authorization Rule to be created. Name *string `pulumi:"name"` // Name of the Azure Relay Namespace for which this Azure Relay Namespace Authorization Rule will be created. Changing this forces a new Azure Relay Namespace Authorization Rule to be created. NamespaceName string `pulumi:"namespaceName"` // The name of the Resource Group where the Azure Relay Namespace Authorization Rule should exist. Changing this forces a new Azure Relay Namespace Authorization Rule to be created. ResourceGroupName string `pulumi:"resourceGroupName"` // Grants send access to this Authorization Rule. Defaults to `false`. Send *bool `pulumi:"send"` } // The set of arguments for constructing a NamespaceAuthorizationRule resource. type NamespaceAuthorizationRuleArgs struct { // Grants listen access to this Authorization Rule. Defaults to `false`. Listen pulumi.BoolPtrInput // Grants manage access to this Authorization Rule. When this property is `true` - both `listen` and `send` must be set to `true` too. Defaults to `false`. Manage pulumi.BoolPtrInput // The name which should be used for this Azure Relay Namespace Authorization Rule. Changing this forces a new Azure Relay Namespace Authorization Rule to be created. Name pulumi.StringPtrInput // Name of the Azure Relay Namespace for which this Azure Relay Namespace Authorization Rule will be created. Changing this forces a new Azure Relay Namespace Authorization Rule to be created. NamespaceName pulumi.StringInput // The name of the Resource Group where the Azure Relay Namespace Authorization Rule should exist. Changing this forces a new Azure Relay Namespace Authorization Rule to be created. ResourceGroupName pulumi.StringInput // Grants send access to this Authorization Rule. Defaults to `false`. Send pulumi.BoolPtrInput } func (NamespaceAuthorizationRuleArgs) ElementType() reflect.Type { return reflect.TypeOf((*namespaceAuthorizationRuleArgs)(nil)).Elem() } type NamespaceAuthorizationRuleInput interface { pulumi.Input ToNamespaceAuthorizationRuleOutput() NamespaceAuthorizationRuleOutput ToNamespaceAuthorizationRuleOutputWithContext(ctx context.Context) NamespaceAuthorizationRuleOutput } func (*NamespaceAuthorizationRule) ElementType() reflect.Type { return reflect.TypeOf((**NamespaceAuthorizationRule)(nil)).Elem() } func (i *NamespaceAuthorizationRule) ToNamespaceAuthorizationRuleOutput() NamespaceAuthorizationRuleOutput { return i.ToNamespaceAuthorizationRuleOutputWithContext(context.Background()) } func (i *NamespaceAuthorizationRule) ToNamespaceAuthorizationRuleOutputWithContext(ctx context.Context) NamespaceAuthorizationRuleOutput { return pulumi.ToOutputWithContext(ctx, i).(NamespaceAuthorizationRuleOutput) } // NamespaceAuthorizationRuleArrayInput is an input type that accepts NamespaceAuthorizationRuleArray and NamespaceAuthorizationRuleArrayOutput values. // You can construct a concrete instance of `NamespaceAuthorizationRuleArrayInput` via: // // NamespaceAuthorizationRuleArray{ NamespaceAuthorizationRuleArgs{...} } type NamespaceAuthorizationRuleArrayInput interface { pulumi.Input ToNamespaceAuthorizationRuleArrayOutput() NamespaceAuthorizationRuleArrayOutput ToNamespaceAuthorizationRuleArrayOutputWithContext(context.Context) NamespaceAuthorizationRuleArrayOutput } type NamespaceAuthorizationRuleArray []NamespaceAuthorizationRuleInput func (NamespaceAuthorizationRuleArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*NamespaceAuthorizationRule)(nil)).Elem() } func (i NamespaceAuthorizationRuleArray) ToNamespaceAuthorizationRuleArrayOutput() NamespaceAuthorizationRuleArrayOutput { return i.ToNamespaceAuthorizationRuleArrayOutputWithContext(context.Background()) } func (i NamespaceAuthorizationRuleArray) ToNamespaceAuthorizationRuleArrayOutputWithContext(ctx context.Context) NamespaceAuthorizationRuleArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(NamespaceAuthorizationRuleArrayOutput) } // NamespaceAuthorizationRuleMapInput is an input type that accepts NamespaceAuthorizationRuleMap and NamespaceAuthorizationRuleMapOutput values. // You can construct a concrete instance of `NamespaceAuthorizationRuleMapInput` via: // // NamespaceAuthorizationRuleMap{ "key": NamespaceAuthorizationRuleArgs{...} } type NamespaceAuthorizationRuleMapInput interface { pulumi.Input ToNamespaceAuthorizationRuleMapOutput() NamespaceAuthorizationRuleMapOutput ToNamespaceAuthorizationRuleMapOutputWithContext(context.Context) NamespaceAuthorizationRuleMapOutput } type NamespaceAuthorizationRuleMap map[string]NamespaceAuthorizationRuleInput func (NamespaceAuthorizationRuleMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*NamespaceAuthorizationRule)(nil)).Elem() } func (i NamespaceAuthorizationRuleMap) ToNamespaceAuthorizationRuleMapOutput() NamespaceAuthorizationRuleMapOutput { return i.ToNamespaceAuthorizationRuleMapOutputWithContext(context.Background()) } func (i NamespaceAuthorizationRuleMap) ToNamespaceAuthorizationRuleMapOutputWithContext(ctx context.Context) NamespaceAuthorizationRuleMapOutput { return pulumi.ToOutputWithContext(ctx, i).(NamespaceAuthorizationRuleMapOutput) } type NamespaceAuthorizationRuleOutput struct{ *pulumi.OutputState } func (NamespaceAuthorizationRuleOutput) ElementType() reflect.Type { return reflect.TypeOf((**NamespaceAuthorizationRule)(nil)).Elem() } func (o NamespaceAuthorizationRuleOutput) ToNamespaceAuthorizationRuleOutput() NamespaceAuthorizationRuleOutput { return o } func (o NamespaceAuthorizationRuleOutput) ToNamespaceAuthorizationRuleOutputWithContext(ctx context.Context) NamespaceAuthorizationRuleOutput { return o } // Grants listen access to this Authorization Rule. Defaults to `false`. func (o NamespaceAuthorizationRuleOutput) Listen() pulumi.BoolPtrOutput { return o.ApplyT(func(v *NamespaceAuthorizationRule) pulumi.BoolPtrOutput { return v.Listen }).(pulumi.BoolPtrOutput) } // Grants manage access to this Authorization Rule. When this property is `true` - both `listen` and `send` must be set to `true` too. Defaults to `false`. func (o NamespaceAuthorizationRuleOutput) Manage() pulumi.BoolPtrOutput { return o.ApplyT(func(v *NamespaceAuthorizationRule) pulumi.BoolPtrOutput { return v.Manage }).(pulumi.BoolPtrOutput) } // The name which should be used for this Azure Relay Namespace Authorization Rule. Changing this forces a new Azure Relay Namespace Authorization Rule to be created. func (o NamespaceAuthorizationRuleOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *NamespaceAuthorizationRule) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // Name of the Azure Relay Namespace for which this Azure Relay Namespace Authorization Rule will be created. Changing this forces a new Azure Relay Namespace Authorization Rule to be created. func (o NamespaceAuthorizationRuleOutput) NamespaceName() pulumi.StringOutput { return o.ApplyT(func(v *NamespaceAuthorizationRule) pulumi.StringOutput { return v.NamespaceName }).(pulumi.StringOutput) } // The Primary Connection String for the Azure Relay Namespace Authorization Rule. func (o NamespaceAuthorizationRuleOutput) PrimaryConnectionString() pulumi.StringOutput { return o.ApplyT(func(v *NamespaceAuthorizationRule) pulumi.StringOutput { return v.PrimaryConnectionString }).(pulumi.StringOutput) } // The Primary Key for the Azure Relay Namespace Authorization Rule. func (o NamespaceAuthorizationRuleOutput) PrimaryKey() pulumi.StringOutput { return o.ApplyT(func(v *NamespaceAuthorizationRule) pulumi.StringOutput { return v.PrimaryKey }).(pulumi.StringOutput) } // The name of the Resource Group where the Azure Relay Namespace Authorization Rule should exist. Changing this forces a new Azure Relay Namespace Authorization Rule to be created. func (o NamespaceAuthorizationRuleOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v *NamespaceAuthorizationRule) pulumi.StringOutput { return v.ResourceGroupName }).(pulumi.StringOutput) } // The Secondary Connection String for the Azure Relay Namespace Authorization Rule. func (o NamespaceAuthorizationRuleOutput) SecondaryConnectionString() pulumi.StringOutput { return o.ApplyT(func(v *NamespaceAuthorizationRule) pulumi.StringOutput { return v.SecondaryConnectionString }).(pulumi.StringOutput) } // The Secondary Key for the Azure Relay Namespace Authorization Rule. func (o NamespaceAuthorizationRuleOutput) SecondaryKey() pulumi.StringOutput { return o.ApplyT(func(v *NamespaceAuthorizationRule) pulumi.StringOutput { return v.SecondaryKey }).(pulumi.StringOutput) } // Grants send access to this Authorization Rule. Defaults to `false`. func (o NamespaceAuthorizationRuleOutput) Send() pulumi.BoolPtrOutput { return o.ApplyT(func(v *NamespaceAuthorizationRule) pulumi.BoolPtrOutput { return v.Send }).(pulumi.BoolPtrOutput) } type NamespaceAuthorizationRuleArrayOutput struct{ *pulumi.OutputState } func (NamespaceAuthorizationRuleArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*NamespaceAuthorizationRule)(nil)).Elem() } func (o NamespaceAuthorizationRuleArrayOutput) ToNamespaceAuthorizationRuleArrayOutput() NamespaceAuthorizationRuleArrayOutput { return o } func (o NamespaceAuthorizationRuleArrayOutput) ToNamespaceAuthorizationRuleArrayOutputWithContext(ctx context.Context) NamespaceAuthorizationRuleArrayOutput { return o } func (o NamespaceAuthorizationRuleArrayOutput) Index(i pulumi.IntInput) NamespaceAuthorizationRuleOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *NamespaceAuthorizationRule { return vs[0].([]*NamespaceAuthorizationRule)[vs[1].(int)] }).(NamespaceAuthorizationRuleOutput) } type NamespaceAuthorizationRuleMapOutput struct{ *pulumi.OutputState } func (NamespaceAuthorizationRuleMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*NamespaceAuthorizationRule)(nil)).Elem() } func (o NamespaceAuthorizationRuleMapOutput) ToNamespaceAuthorizationRuleMapOutput() NamespaceAuthorizationRuleMapOutput { return o } func (o NamespaceAuthorizationRuleMapOutput) ToNamespaceAuthorizationRuleMapOutputWithContext(ctx context.Context) NamespaceAuthorizationRuleMapOutput { return o } func (o NamespaceAuthorizationRuleMapOutput) MapIndex(k pulumi.StringInput) NamespaceAuthorizationRuleOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *NamespaceAuthorizationRule { return vs[0].(map[string]*NamespaceAuthorizationRule)[vs[1].(string)] }).(NamespaceAuthorizationRuleOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*NamespaceAuthorizationRuleInput)(nil)).Elem(), &NamespaceAuthorizationRule{}) pulumi.RegisterInputType(reflect.TypeOf((*NamespaceAuthorizationRuleArrayInput)(nil)).Elem(), NamespaceAuthorizationRuleArray{}) pulumi.RegisterInputType(reflect.TypeOf((*NamespaceAuthorizationRuleMapInput)(nil)).Elem(), NamespaceAuthorizationRuleMap{}) pulumi.RegisterOutputType(NamespaceAuthorizationRuleOutput{}) pulumi.RegisterOutputType(NamespaceAuthorizationRuleArrayOutput{}) pulumi.RegisterOutputType(NamespaceAuthorizationRuleMapOutput{}) }
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/relay/hybridConnection.go
sdk/go/azure/relay/hybridConnection.go
// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package relay 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 Relay Hybrid Connection. // // ## 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/relay" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { // example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{ // Name: pulumi.String("example-resources"), // Location: pulumi.String("West Europe"), // }) // if err != nil { // return err // } // exampleNamespace, err := relay.NewNamespace(ctx, "example", &relay.NamespaceArgs{ // Name: pulumi.String("example-relay"), // Location: example.Location, // ResourceGroupName: example.Name, // SkuName: pulumi.String("Standard"), // Tags: pulumi.StringMap{ // "source": pulumi.String("managed"), // }, // }) // if err != nil { // return err // } // _, err = relay.NewHybridConnection(ctx, "example", &relay.HybridConnectionArgs{ // Name: pulumi.String("acctestrnhc-%d"), // ResourceGroupName: example.Name, // RelayNamespaceName: exampleNamespace.Name, // RequiresClientAuthorization: pulumi.Bool(false), // UserMetadata: pulumi.String("testmetadata"), // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## API Providers // // <!-- This section is generated, changes will be overwritten --> // This resource uses the following Azure API Providers: // // * `Microsoft.Relay` - 2021-11-01 // // ## Import // // Relay Hybrid Connection's can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:relay/hybridConnection:HybridConnection relay1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Relay/namespaces/relay1/hybridConnections/hconn1 // ``` type HybridConnection struct { pulumi.CustomResourceState // Specifies the name of the Azure Relay Hybrid Connection. Changing this forces a new resource to be created. Name pulumi.StringOutput `pulumi:"name"` // The name of the Azure Relay in which to create the Azure Relay Hybrid Connection. Changing this forces a new resource to be created. RelayNamespaceName pulumi.StringOutput `pulumi:"relayNamespaceName"` // Specify if client authorization is needed for this hybrid connection. Changing this forces a new resource to be created. Defaults to `true`. RequiresClientAuthorization pulumi.BoolPtrOutput `pulumi:"requiresClientAuthorization"` // The name of the resource group in which to create the Azure Relay Hybrid Connection. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // The usermetadata is a placeholder to store user-defined string data for the hybrid connection endpoint. For example, it can be used to store descriptive data, such as a list of teams and their contact information. Also, user-defined configuration settings can be stored. UserMetadata pulumi.StringPtrOutput `pulumi:"userMetadata"` } // NewHybridConnection registers a new resource with the given unique name, arguments, and options. func NewHybridConnection(ctx *pulumi.Context, name string, args *HybridConnectionArgs, opts ...pulumi.ResourceOption) (*HybridConnection, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.RelayNamespaceName == nil { return nil, errors.New("invalid value for required argument 'RelayNamespaceName'") } if args.ResourceGroupName == nil { return nil, errors.New("invalid value for required argument 'ResourceGroupName'") } opts = internal.PkgResourceDefaultOpts(opts) var resource HybridConnection err := ctx.RegisterResource("azure:relay/hybridConnection:HybridConnection", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetHybridConnection gets an existing HybridConnection resource's state with the given name, ID, and optional // state properties that are used to uniquely qualify the lookup (nil if not required). func GetHybridConnection(ctx *pulumi.Context, name string, id pulumi.IDInput, state *HybridConnectionState, opts ...pulumi.ResourceOption) (*HybridConnection, error) { var resource HybridConnection err := ctx.ReadResource("azure:relay/hybridConnection:HybridConnection", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering HybridConnection resources. type hybridConnectionState struct { // Specifies the name of the Azure Relay Hybrid Connection. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // The name of the Azure Relay in which to create the Azure Relay Hybrid Connection. Changing this forces a new resource to be created. RelayNamespaceName *string `pulumi:"relayNamespaceName"` // Specify if client authorization is needed for this hybrid connection. Changing this forces a new resource to be created. Defaults to `true`. RequiresClientAuthorization *bool `pulumi:"requiresClientAuthorization"` // The name of the resource group in which to create the Azure Relay Hybrid Connection. Changing this forces a new resource to be created. ResourceGroupName *string `pulumi:"resourceGroupName"` // The usermetadata is a placeholder to store user-defined string data for the hybrid connection endpoint. For example, it can be used to store descriptive data, such as a list of teams and their contact information. Also, user-defined configuration settings can be stored. UserMetadata *string `pulumi:"userMetadata"` } type HybridConnectionState struct { // Specifies the name of the Azure Relay Hybrid Connection. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // The name of the Azure Relay in which to create the Azure Relay Hybrid Connection. Changing this forces a new resource to be created. RelayNamespaceName pulumi.StringPtrInput // Specify if client authorization is needed for this hybrid connection. Changing this forces a new resource to be created. Defaults to `true`. RequiresClientAuthorization pulumi.BoolPtrInput // The name of the resource group in which to create the Azure Relay Hybrid Connection. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringPtrInput // The usermetadata is a placeholder to store user-defined string data for the hybrid connection endpoint. For example, it can be used to store descriptive data, such as a list of teams and their contact information. Also, user-defined configuration settings can be stored. UserMetadata pulumi.StringPtrInput } func (HybridConnectionState) ElementType() reflect.Type { return reflect.TypeOf((*hybridConnectionState)(nil)).Elem() } type hybridConnectionArgs struct { // Specifies the name of the Azure Relay Hybrid Connection. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // The name of the Azure Relay in which to create the Azure Relay Hybrid Connection. Changing this forces a new resource to be created. RelayNamespaceName string `pulumi:"relayNamespaceName"` // Specify if client authorization is needed for this hybrid connection. Changing this forces a new resource to be created. Defaults to `true`. RequiresClientAuthorization *bool `pulumi:"requiresClientAuthorization"` // The name of the resource group in which to create the Azure Relay Hybrid Connection. Changing this forces a new resource to be created. ResourceGroupName string `pulumi:"resourceGroupName"` // The usermetadata is a placeholder to store user-defined string data for the hybrid connection endpoint. For example, it can be used to store descriptive data, such as a list of teams and their contact information. Also, user-defined configuration settings can be stored. UserMetadata *string `pulumi:"userMetadata"` } // The set of arguments for constructing a HybridConnection resource. type HybridConnectionArgs struct { // Specifies the name of the Azure Relay Hybrid Connection. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // The name of the Azure Relay in which to create the Azure Relay Hybrid Connection. Changing this forces a new resource to be created. RelayNamespaceName pulumi.StringInput // Specify if client authorization is needed for this hybrid connection. Changing this forces a new resource to be created. Defaults to `true`. RequiresClientAuthorization pulumi.BoolPtrInput // The name of the resource group in which to create the Azure Relay Hybrid Connection. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringInput // The usermetadata is a placeholder to store user-defined string data for the hybrid connection endpoint. For example, it can be used to store descriptive data, such as a list of teams and their contact information. Also, user-defined configuration settings can be stored. UserMetadata pulumi.StringPtrInput } func (HybridConnectionArgs) ElementType() reflect.Type { return reflect.TypeOf((*hybridConnectionArgs)(nil)).Elem() } type HybridConnectionInput interface { pulumi.Input ToHybridConnectionOutput() HybridConnectionOutput ToHybridConnectionOutputWithContext(ctx context.Context) HybridConnectionOutput } func (*HybridConnection) ElementType() reflect.Type { return reflect.TypeOf((**HybridConnection)(nil)).Elem() } func (i *HybridConnection) ToHybridConnectionOutput() HybridConnectionOutput { return i.ToHybridConnectionOutputWithContext(context.Background()) } func (i *HybridConnection) ToHybridConnectionOutputWithContext(ctx context.Context) HybridConnectionOutput { return pulumi.ToOutputWithContext(ctx, i).(HybridConnectionOutput) } // HybridConnectionArrayInput is an input type that accepts HybridConnectionArray and HybridConnectionArrayOutput values. // You can construct a concrete instance of `HybridConnectionArrayInput` via: // // HybridConnectionArray{ HybridConnectionArgs{...} } type HybridConnectionArrayInput interface { pulumi.Input ToHybridConnectionArrayOutput() HybridConnectionArrayOutput ToHybridConnectionArrayOutputWithContext(context.Context) HybridConnectionArrayOutput } type HybridConnectionArray []HybridConnectionInput func (HybridConnectionArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*HybridConnection)(nil)).Elem() } func (i HybridConnectionArray) ToHybridConnectionArrayOutput() HybridConnectionArrayOutput { return i.ToHybridConnectionArrayOutputWithContext(context.Background()) } func (i HybridConnectionArray) ToHybridConnectionArrayOutputWithContext(ctx context.Context) HybridConnectionArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(HybridConnectionArrayOutput) } // HybridConnectionMapInput is an input type that accepts HybridConnectionMap and HybridConnectionMapOutput values. // You can construct a concrete instance of `HybridConnectionMapInput` via: // // HybridConnectionMap{ "key": HybridConnectionArgs{...} } type HybridConnectionMapInput interface { pulumi.Input ToHybridConnectionMapOutput() HybridConnectionMapOutput ToHybridConnectionMapOutputWithContext(context.Context) HybridConnectionMapOutput } type HybridConnectionMap map[string]HybridConnectionInput func (HybridConnectionMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*HybridConnection)(nil)).Elem() } func (i HybridConnectionMap) ToHybridConnectionMapOutput() HybridConnectionMapOutput { return i.ToHybridConnectionMapOutputWithContext(context.Background()) } func (i HybridConnectionMap) ToHybridConnectionMapOutputWithContext(ctx context.Context) HybridConnectionMapOutput { return pulumi.ToOutputWithContext(ctx, i).(HybridConnectionMapOutput) } type HybridConnectionOutput struct{ *pulumi.OutputState } func (HybridConnectionOutput) ElementType() reflect.Type { return reflect.TypeOf((**HybridConnection)(nil)).Elem() } func (o HybridConnectionOutput) ToHybridConnectionOutput() HybridConnectionOutput { return o } func (o HybridConnectionOutput) ToHybridConnectionOutputWithContext(ctx context.Context) HybridConnectionOutput { return o } // Specifies the name of the Azure Relay Hybrid Connection. Changing this forces a new resource to be created. func (o HybridConnectionOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *HybridConnection) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // The name of the Azure Relay in which to create the Azure Relay Hybrid Connection. Changing this forces a new resource to be created. func (o HybridConnectionOutput) RelayNamespaceName() pulumi.StringOutput { return o.ApplyT(func(v *HybridConnection) pulumi.StringOutput { return v.RelayNamespaceName }).(pulumi.StringOutput) } // Specify if client authorization is needed for this hybrid connection. Changing this forces a new resource to be created. Defaults to `true`. func (o HybridConnectionOutput) RequiresClientAuthorization() pulumi.BoolPtrOutput { return o.ApplyT(func(v *HybridConnection) pulumi.BoolPtrOutput { return v.RequiresClientAuthorization }).(pulumi.BoolPtrOutput) } // The name of the resource group in which to create the Azure Relay Hybrid Connection. Changing this forces a new resource to be created. func (o HybridConnectionOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v *HybridConnection) pulumi.StringOutput { return v.ResourceGroupName }).(pulumi.StringOutput) } // The usermetadata is a placeholder to store user-defined string data for the hybrid connection endpoint. For example, it can be used to store descriptive data, such as a list of teams and their contact information. Also, user-defined configuration settings can be stored. func (o HybridConnectionOutput) UserMetadata() pulumi.StringPtrOutput { return o.ApplyT(func(v *HybridConnection) pulumi.StringPtrOutput { return v.UserMetadata }).(pulumi.StringPtrOutput) } type HybridConnectionArrayOutput struct{ *pulumi.OutputState } func (HybridConnectionArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*HybridConnection)(nil)).Elem() } func (o HybridConnectionArrayOutput) ToHybridConnectionArrayOutput() HybridConnectionArrayOutput { return o } func (o HybridConnectionArrayOutput) ToHybridConnectionArrayOutputWithContext(ctx context.Context) HybridConnectionArrayOutput { return o } func (o HybridConnectionArrayOutput) Index(i pulumi.IntInput) HybridConnectionOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *HybridConnection { return vs[0].([]*HybridConnection)[vs[1].(int)] }).(HybridConnectionOutput) } type HybridConnectionMapOutput struct{ *pulumi.OutputState } func (HybridConnectionMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*HybridConnection)(nil)).Elem() } func (o HybridConnectionMapOutput) ToHybridConnectionMapOutput() HybridConnectionMapOutput { return o } func (o HybridConnectionMapOutput) ToHybridConnectionMapOutputWithContext(ctx context.Context) HybridConnectionMapOutput { return o } func (o HybridConnectionMapOutput) MapIndex(k pulumi.StringInput) HybridConnectionOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *HybridConnection { return vs[0].(map[string]*HybridConnection)[vs[1].(string)] }).(HybridConnectionOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*HybridConnectionInput)(nil)).Elem(), &HybridConnection{}) pulumi.RegisterInputType(reflect.TypeOf((*HybridConnectionArrayInput)(nil)).Elem(), HybridConnectionArray{}) pulumi.RegisterInputType(reflect.TypeOf((*HybridConnectionMapInput)(nil)).Elem(), HybridConnectionMap{}) pulumi.RegisterOutputType(HybridConnectionOutput{}) pulumi.RegisterOutputType(HybridConnectionArrayOutput{}) pulumi.RegisterOutputType(HybridConnectionMapOutput{}) }
go
Apache-2.0
b66e1472775a89cca43f5050fef806854a7c3fa3
2026-01-07T09:44:27.619514Z
false
pulumi/pulumi-azure
https://github.com/pulumi/pulumi-azure/blob/b66e1472775a89cca43f5050fef806854a7c3fa3/sdk/go/azure/containerapp/init.go
sdk/go/azure/containerapp/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 containerapp 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:containerapp/app:App": r = &App{} case "azure:containerapp/customDomain:CustomDomain": r = &CustomDomain{} case "azure:containerapp/environment:Environment": r = &Environment{} case "azure:containerapp/environmentCertificate:EnvironmentCertificate": r = &EnvironmentCertificate{} case "azure:containerapp/environmentCustomDomain:EnvironmentCustomDomain": r = &EnvironmentCustomDomain{} case "azure:containerapp/environmentDaprComponent:EnvironmentDaprComponent": r = &EnvironmentDaprComponent{} case "azure:containerapp/environmentStorage:EnvironmentStorage": r = &EnvironmentStorage{} case "azure:containerapp/job:Job": r = &Job{} 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", "containerapp/app", &module{version}, ) pulumi.RegisterResourceModule( "azure", "containerapp/customDomain", &module{version}, ) pulumi.RegisterResourceModule( "azure", "containerapp/environment", &module{version}, ) pulumi.RegisterResourceModule( "azure", "containerapp/environmentCertificate", &module{version}, ) pulumi.RegisterResourceModule( "azure", "containerapp/environmentCustomDomain", &module{version}, ) pulumi.RegisterResourceModule( "azure", "containerapp/environmentDaprComponent", &module{version}, ) pulumi.RegisterResourceModule( "azure", "containerapp/environmentStorage", &module{version}, ) pulumi.RegisterResourceModule( "azure", "containerapp/job", &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/containerapp/pulumiTypes.go
sdk/go/azure/containerapp/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 containerapp 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 AppDapr struct { // The Dapr Application Identifier. AppId string `pulumi:"appId"` // The port which the application is listening on. This is the same as the `ingress` port. AppPort *int `pulumi:"appPort"` // The protocol for the app. Possible values include `http` and `grpc`. Defaults to `http`. AppProtocol *string `pulumi:"appProtocol"` } // AppDaprInput is an input type that accepts AppDaprArgs and AppDaprOutput values. // You can construct a concrete instance of `AppDaprInput` via: // // AppDaprArgs{...} type AppDaprInput interface { pulumi.Input ToAppDaprOutput() AppDaprOutput ToAppDaprOutputWithContext(context.Context) AppDaprOutput } type AppDaprArgs struct { // The Dapr Application Identifier. AppId pulumi.StringInput `pulumi:"appId"` // The port which the application is listening on. This is the same as the `ingress` port. AppPort pulumi.IntPtrInput `pulumi:"appPort"` // The protocol for the app. Possible values include `http` and `grpc`. Defaults to `http`. AppProtocol pulumi.StringPtrInput `pulumi:"appProtocol"` } func (AppDaprArgs) ElementType() reflect.Type { return reflect.TypeOf((*AppDapr)(nil)).Elem() } func (i AppDaprArgs) ToAppDaprOutput() AppDaprOutput { return i.ToAppDaprOutputWithContext(context.Background()) } func (i AppDaprArgs) ToAppDaprOutputWithContext(ctx context.Context) AppDaprOutput { return pulumi.ToOutputWithContext(ctx, i).(AppDaprOutput) } func (i AppDaprArgs) ToAppDaprPtrOutput() AppDaprPtrOutput { return i.ToAppDaprPtrOutputWithContext(context.Background()) } func (i AppDaprArgs) ToAppDaprPtrOutputWithContext(ctx context.Context) AppDaprPtrOutput { return pulumi.ToOutputWithContext(ctx, i).(AppDaprOutput).ToAppDaprPtrOutputWithContext(ctx) } // AppDaprPtrInput is an input type that accepts AppDaprArgs, AppDaprPtr and AppDaprPtrOutput values. // You can construct a concrete instance of `AppDaprPtrInput` via: // // AppDaprArgs{...} // // or: // // nil type AppDaprPtrInput interface { pulumi.Input ToAppDaprPtrOutput() AppDaprPtrOutput ToAppDaprPtrOutputWithContext(context.Context) AppDaprPtrOutput } type appDaprPtrType AppDaprArgs func AppDaprPtr(v *AppDaprArgs) AppDaprPtrInput { return (*appDaprPtrType)(v) } func (*appDaprPtrType) ElementType() reflect.Type { return reflect.TypeOf((**AppDapr)(nil)).Elem() } func (i *appDaprPtrType) ToAppDaprPtrOutput() AppDaprPtrOutput { return i.ToAppDaprPtrOutputWithContext(context.Background()) } func (i *appDaprPtrType) ToAppDaprPtrOutputWithContext(ctx context.Context) AppDaprPtrOutput { return pulumi.ToOutputWithContext(ctx, i).(AppDaprPtrOutput) } type AppDaprOutput struct{ *pulumi.OutputState } func (AppDaprOutput) ElementType() reflect.Type { return reflect.TypeOf((*AppDapr)(nil)).Elem() } func (o AppDaprOutput) ToAppDaprOutput() AppDaprOutput { return o } func (o AppDaprOutput) ToAppDaprOutputWithContext(ctx context.Context) AppDaprOutput { return o } func (o AppDaprOutput) ToAppDaprPtrOutput() AppDaprPtrOutput { return o.ToAppDaprPtrOutputWithContext(context.Background()) } func (o AppDaprOutput) ToAppDaprPtrOutputWithContext(ctx context.Context) AppDaprPtrOutput { return o.ApplyTWithContext(ctx, func(_ context.Context, v AppDapr) *AppDapr { return &v }).(AppDaprPtrOutput) } // The Dapr Application Identifier. func (o AppDaprOutput) AppId() pulumi.StringOutput { return o.ApplyT(func(v AppDapr) string { return v.AppId }).(pulumi.StringOutput) } // The port which the application is listening on. This is the same as the `ingress` port. func (o AppDaprOutput) AppPort() pulumi.IntPtrOutput { return o.ApplyT(func(v AppDapr) *int { return v.AppPort }).(pulumi.IntPtrOutput) } // The protocol for the app. Possible values include `http` and `grpc`. Defaults to `http`. func (o AppDaprOutput) AppProtocol() pulumi.StringPtrOutput { return o.ApplyT(func(v AppDapr) *string { return v.AppProtocol }).(pulumi.StringPtrOutput) } type AppDaprPtrOutput struct{ *pulumi.OutputState } func (AppDaprPtrOutput) ElementType() reflect.Type { return reflect.TypeOf((**AppDapr)(nil)).Elem() } func (o AppDaprPtrOutput) ToAppDaprPtrOutput() AppDaprPtrOutput { return o } func (o AppDaprPtrOutput) ToAppDaprPtrOutputWithContext(ctx context.Context) AppDaprPtrOutput { return o } func (o AppDaprPtrOutput) Elem() AppDaprOutput { return o.ApplyT(func(v *AppDapr) AppDapr { if v != nil { return *v } var ret AppDapr return ret }).(AppDaprOutput) } // The Dapr Application Identifier. func (o AppDaprPtrOutput) AppId() pulumi.StringPtrOutput { return o.ApplyT(func(v *AppDapr) *string { if v == nil { return nil } return &v.AppId }).(pulumi.StringPtrOutput) } // The port which the application is listening on. This is the same as the `ingress` port. func (o AppDaprPtrOutput) AppPort() pulumi.IntPtrOutput { return o.ApplyT(func(v *AppDapr) *int { if v == nil { return nil } return v.AppPort }).(pulumi.IntPtrOutput) } // The protocol for the app. Possible values include `http` and `grpc`. Defaults to `http`. func (o AppDaprPtrOutput) AppProtocol() pulumi.StringPtrOutput { return o.ApplyT(func(v *AppDapr) *string { if v == nil { return nil } return v.AppProtocol }).(pulumi.StringPtrOutput) } type AppIdentity struct { // A list of one or more Resource IDs for User Assigned Managed identities to assign. Required when `type` is set to `UserAssigned` or `SystemAssigned, UserAssigned`. IdentityIds []string `pulumi:"identityIds"` PrincipalId *string `pulumi:"principalId"` TenantId *string `pulumi:"tenantId"` // The type of managed identity to assign. Possible values are `SystemAssigned`, `UserAssigned`, and `SystemAssigned, UserAssigned` (to enable both). Type string `pulumi:"type"` } // AppIdentityInput is an input type that accepts AppIdentityArgs and AppIdentityOutput values. // You can construct a concrete instance of `AppIdentityInput` via: // // AppIdentityArgs{...} type AppIdentityInput interface { pulumi.Input ToAppIdentityOutput() AppIdentityOutput ToAppIdentityOutputWithContext(context.Context) AppIdentityOutput } type AppIdentityArgs struct { // A list of one or more Resource IDs for User Assigned Managed identities to assign. Required when `type` is set to `UserAssigned` or `SystemAssigned, UserAssigned`. IdentityIds pulumi.StringArrayInput `pulumi:"identityIds"` PrincipalId pulumi.StringPtrInput `pulumi:"principalId"` TenantId pulumi.StringPtrInput `pulumi:"tenantId"` // The type of managed identity to assign. Possible values are `SystemAssigned`, `UserAssigned`, and `SystemAssigned, UserAssigned` (to enable both). Type pulumi.StringInput `pulumi:"type"` } func (AppIdentityArgs) ElementType() reflect.Type { return reflect.TypeOf((*AppIdentity)(nil)).Elem() } func (i AppIdentityArgs) ToAppIdentityOutput() AppIdentityOutput { return i.ToAppIdentityOutputWithContext(context.Background()) } func (i AppIdentityArgs) ToAppIdentityOutputWithContext(ctx context.Context) AppIdentityOutput { return pulumi.ToOutputWithContext(ctx, i).(AppIdentityOutput) } func (i AppIdentityArgs) ToAppIdentityPtrOutput() AppIdentityPtrOutput { return i.ToAppIdentityPtrOutputWithContext(context.Background()) } func (i AppIdentityArgs) ToAppIdentityPtrOutputWithContext(ctx context.Context) AppIdentityPtrOutput { return pulumi.ToOutputWithContext(ctx, i).(AppIdentityOutput).ToAppIdentityPtrOutputWithContext(ctx) } // AppIdentityPtrInput is an input type that accepts AppIdentityArgs, AppIdentityPtr and AppIdentityPtrOutput values. // You can construct a concrete instance of `AppIdentityPtrInput` via: // // AppIdentityArgs{...} // // or: // // nil type AppIdentityPtrInput interface { pulumi.Input ToAppIdentityPtrOutput() AppIdentityPtrOutput ToAppIdentityPtrOutputWithContext(context.Context) AppIdentityPtrOutput } type appIdentityPtrType AppIdentityArgs func AppIdentityPtr(v *AppIdentityArgs) AppIdentityPtrInput { return (*appIdentityPtrType)(v) } func (*appIdentityPtrType) ElementType() reflect.Type { return reflect.TypeOf((**AppIdentity)(nil)).Elem() } func (i *appIdentityPtrType) ToAppIdentityPtrOutput() AppIdentityPtrOutput { return i.ToAppIdentityPtrOutputWithContext(context.Background()) } func (i *appIdentityPtrType) ToAppIdentityPtrOutputWithContext(ctx context.Context) AppIdentityPtrOutput { return pulumi.ToOutputWithContext(ctx, i).(AppIdentityPtrOutput) } type AppIdentityOutput struct{ *pulumi.OutputState } func (AppIdentityOutput) ElementType() reflect.Type { return reflect.TypeOf((*AppIdentity)(nil)).Elem() } func (o AppIdentityOutput) ToAppIdentityOutput() AppIdentityOutput { return o } func (o AppIdentityOutput) ToAppIdentityOutputWithContext(ctx context.Context) AppIdentityOutput { return o } func (o AppIdentityOutput) ToAppIdentityPtrOutput() AppIdentityPtrOutput { return o.ToAppIdentityPtrOutputWithContext(context.Background()) } func (o AppIdentityOutput) ToAppIdentityPtrOutputWithContext(ctx context.Context) AppIdentityPtrOutput { return o.ApplyTWithContext(ctx, func(_ context.Context, v AppIdentity) *AppIdentity { return &v }).(AppIdentityPtrOutput) } // A list of one or more Resource IDs for User Assigned Managed identities to assign. Required when `type` is set to `UserAssigned` or `SystemAssigned, UserAssigned`. func (o AppIdentityOutput) IdentityIds() pulumi.StringArrayOutput { return o.ApplyT(func(v AppIdentity) []string { return v.IdentityIds }).(pulumi.StringArrayOutput) } func (o AppIdentityOutput) PrincipalId() pulumi.StringPtrOutput { return o.ApplyT(func(v AppIdentity) *string { return v.PrincipalId }).(pulumi.StringPtrOutput) } func (o AppIdentityOutput) TenantId() pulumi.StringPtrOutput { return o.ApplyT(func(v AppIdentity) *string { return v.TenantId }).(pulumi.StringPtrOutput) } // The type of managed identity to assign. Possible values are `SystemAssigned`, `UserAssigned`, and `SystemAssigned, UserAssigned` (to enable both). func (o AppIdentityOutput) Type() pulumi.StringOutput { return o.ApplyT(func(v AppIdentity) string { return v.Type }).(pulumi.StringOutput) } type AppIdentityPtrOutput struct{ *pulumi.OutputState } func (AppIdentityPtrOutput) ElementType() reflect.Type { return reflect.TypeOf((**AppIdentity)(nil)).Elem() } func (o AppIdentityPtrOutput) ToAppIdentityPtrOutput() AppIdentityPtrOutput { return o } func (o AppIdentityPtrOutput) ToAppIdentityPtrOutputWithContext(ctx context.Context) AppIdentityPtrOutput { return o } func (o AppIdentityPtrOutput) Elem() AppIdentityOutput { return o.ApplyT(func(v *AppIdentity) AppIdentity { if v != nil { return *v } var ret AppIdentity return ret }).(AppIdentityOutput) } // A list of one or more Resource IDs for User Assigned Managed identities to assign. Required when `type` is set to `UserAssigned` or `SystemAssigned, UserAssigned`. func (o AppIdentityPtrOutput) IdentityIds() pulumi.StringArrayOutput { return o.ApplyT(func(v *AppIdentity) []string { if v == nil { return nil } return v.IdentityIds }).(pulumi.StringArrayOutput) } func (o AppIdentityPtrOutput) PrincipalId() pulumi.StringPtrOutput { return o.ApplyT(func(v *AppIdentity) *string { if v == nil { return nil } return v.PrincipalId }).(pulumi.StringPtrOutput) } func (o AppIdentityPtrOutput) TenantId() pulumi.StringPtrOutput { return o.ApplyT(func(v *AppIdentity) *string { if v == nil { return nil } return v.TenantId }).(pulumi.StringPtrOutput) } // The type of managed identity to assign. Possible values are `SystemAssigned`, `UserAssigned`, and `SystemAssigned, UserAssigned` (to enable both). func (o AppIdentityPtrOutput) Type() pulumi.StringPtrOutput { return o.ApplyT(func(v *AppIdentity) *string { if v == nil { return nil } return &v.Type }).(pulumi.StringPtrOutput) } type AppIngress struct { // Should this ingress allow insecure connections? AllowInsecureConnections *bool `pulumi:"allowInsecureConnections"` // The client certificate mode for the Ingress. Possible values are `require`, `accept`, and `ignore`. ClientCertificateMode *string `pulumi:"clientCertificateMode"` // A `cors` block as defined below. Cors *AppIngressCors `pulumi:"cors"` // One or more `customDomain` block as detailed below. CustomDomains []AppIngressCustomDomain `pulumi:"customDomains"` // The exposed port on the container for the Ingress traffic. // // > **Note:** `exposedPort` can only be specified when `transport` is set to `tcp`. ExposedPort *int `pulumi:"exposedPort"` // Are connections to this Ingress from outside the Container App Environment enabled? Defaults to `false`. ExternalEnabled *bool `pulumi:"externalEnabled"` // The FQDN of the ingress. Fqdn *string `pulumi:"fqdn"` // One or more `ipSecurityRestriction` blocks for IP-filtering rules as defined below. IpSecurityRestrictions []AppIngressIpSecurityRestriction `pulumi:"ipSecurityRestrictions"` // The target port on the container for the Ingress traffic. TargetPort int `pulumi:"targetPort"` // One or more `trafficWeight` blocks as detailed below. TrafficWeights []AppIngressTrafficWeight `pulumi:"trafficWeights"` // The transport method for the Ingress. Possible values are `auto`, `http`, `http2` and `tcp`. Defaults to `auto`. // // > **Note:** if `transport` is set to `tcp`, `exposedPort` and `targetPort` should be set at the same time. Transport *string `pulumi:"transport"` } // AppIngressInput is an input type that accepts AppIngressArgs and AppIngressOutput values. // You can construct a concrete instance of `AppIngressInput` via: // // AppIngressArgs{...} type AppIngressInput interface { pulumi.Input ToAppIngressOutput() AppIngressOutput ToAppIngressOutputWithContext(context.Context) AppIngressOutput } type AppIngressArgs struct { // Should this ingress allow insecure connections? AllowInsecureConnections pulumi.BoolPtrInput `pulumi:"allowInsecureConnections"` // The client certificate mode for the Ingress. Possible values are `require`, `accept`, and `ignore`. ClientCertificateMode pulumi.StringPtrInput `pulumi:"clientCertificateMode"` // A `cors` block as defined below. Cors AppIngressCorsPtrInput `pulumi:"cors"` // One or more `customDomain` block as detailed below. CustomDomains AppIngressCustomDomainArrayInput `pulumi:"customDomains"` // The exposed port on the container for the Ingress traffic. // // > **Note:** `exposedPort` can only be specified when `transport` is set to `tcp`. ExposedPort pulumi.IntPtrInput `pulumi:"exposedPort"` // Are connections to this Ingress from outside the Container App Environment enabled? Defaults to `false`. ExternalEnabled pulumi.BoolPtrInput `pulumi:"externalEnabled"` // The FQDN of the ingress. Fqdn pulumi.StringPtrInput `pulumi:"fqdn"` // One or more `ipSecurityRestriction` blocks for IP-filtering rules as defined below. IpSecurityRestrictions AppIngressIpSecurityRestrictionArrayInput `pulumi:"ipSecurityRestrictions"` // The target port on the container for the Ingress traffic. TargetPort pulumi.IntInput `pulumi:"targetPort"` // One or more `trafficWeight` blocks as detailed below. TrafficWeights AppIngressTrafficWeightArrayInput `pulumi:"trafficWeights"` // The transport method for the Ingress. Possible values are `auto`, `http`, `http2` and `tcp`. Defaults to `auto`. // // > **Note:** if `transport` is set to `tcp`, `exposedPort` and `targetPort` should be set at the same time. Transport pulumi.StringPtrInput `pulumi:"transport"` } func (AppIngressArgs) ElementType() reflect.Type { return reflect.TypeOf((*AppIngress)(nil)).Elem() } func (i AppIngressArgs) ToAppIngressOutput() AppIngressOutput { return i.ToAppIngressOutputWithContext(context.Background()) } func (i AppIngressArgs) ToAppIngressOutputWithContext(ctx context.Context) AppIngressOutput { return pulumi.ToOutputWithContext(ctx, i).(AppIngressOutput) } func (i AppIngressArgs) ToAppIngressPtrOutput() AppIngressPtrOutput { return i.ToAppIngressPtrOutputWithContext(context.Background()) } func (i AppIngressArgs) ToAppIngressPtrOutputWithContext(ctx context.Context) AppIngressPtrOutput { return pulumi.ToOutputWithContext(ctx, i).(AppIngressOutput).ToAppIngressPtrOutputWithContext(ctx) } // AppIngressPtrInput is an input type that accepts AppIngressArgs, AppIngressPtr and AppIngressPtrOutput values. // You can construct a concrete instance of `AppIngressPtrInput` via: // // AppIngressArgs{...} // // or: // // nil type AppIngressPtrInput interface { pulumi.Input ToAppIngressPtrOutput() AppIngressPtrOutput ToAppIngressPtrOutputWithContext(context.Context) AppIngressPtrOutput } type appIngressPtrType AppIngressArgs func AppIngressPtr(v *AppIngressArgs) AppIngressPtrInput { return (*appIngressPtrType)(v) } func (*appIngressPtrType) ElementType() reflect.Type { return reflect.TypeOf((**AppIngress)(nil)).Elem() } func (i *appIngressPtrType) ToAppIngressPtrOutput() AppIngressPtrOutput { return i.ToAppIngressPtrOutputWithContext(context.Background()) } func (i *appIngressPtrType) ToAppIngressPtrOutputWithContext(ctx context.Context) AppIngressPtrOutput { return pulumi.ToOutputWithContext(ctx, i).(AppIngressPtrOutput) } type AppIngressOutput struct{ *pulumi.OutputState } func (AppIngressOutput) ElementType() reflect.Type { return reflect.TypeOf((*AppIngress)(nil)).Elem() } func (o AppIngressOutput) ToAppIngressOutput() AppIngressOutput { return o } func (o AppIngressOutput) ToAppIngressOutputWithContext(ctx context.Context) AppIngressOutput { return o } func (o AppIngressOutput) ToAppIngressPtrOutput() AppIngressPtrOutput { return o.ToAppIngressPtrOutputWithContext(context.Background()) } func (o AppIngressOutput) ToAppIngressPtrOutputWithContext(ctx context.Context) AppIngressPtrOutput { return o.ApplyTWithContext(ctx, func(_ context.Context, v AppIngress) *AppIngress { return &v }).(AppIngressPtrOutput) } // Should this ingress allow insecure connections? func (o AppIngressOutput) AllowInsecureConnections() pulumi.BoolPtrOutput { return o.ApplyT(func(v AppIngress) *bool { return v.AllowInsecureConnections }).(pulumi.BoolPtrOutput) } // The client certificate mode for the Ingress. Possible values are `require`, `accept`, and `ignore`. func (o AppIngressOutput) ClientCertificateMode() pulumi.StringPtrOutput { return o.ApplyT(func(v AppIngress) *string { return v.ClientCertificateMode }).(pulumi.StringPtrOutput) } // A `cors` block as defined below. func (o AppIngressOutput) Cors() AppIngressCorsPtrOutput { return o.ApplyT(func(v AppIngress) *AppIngressCors { return v.Cors }).(AppIngressCorsPtrOutput) } // One or more `customDomain` block as detailed below. func (o AppIngressOutput) CustomDomains() AppIngressCustomDomainArrayOutput { return o.ApplyT(func(v AppIngress) []AppIngressCustomDomain { return v.CustomDomains }).(AppIngressCustomDomainArrayOutput) } // The exposed port on the container for the Ingress traffic. // // > **Note:** `exposedPort` can only be specified when `transport` is set to `tcp`. func (o AppIngressOutput) ExposedPort() pulumi.IntPtrOutput { return o.ApplyT(func(v AppIngress) *int { return v.ExposedPort }).(pulumi.IntPtrOutput) } // Are connections to this Ingress from outside the Container App Environment enabled? Defaults to `false`. func (o AppIngressOutput) ExternalEnabled() pulumi.BoolPtrOutput { return o.ApplyT(func(v AppIngress) *bool { return v.ExternalEnabled }).(pulumi.BoolPtrOutput) } // The FQDN of the ingress. func (o AppIngressOutput) Fqdn() pulumi.StringPtrOutput { return o.ApplyT(func(v AppIngress) *string { return v.Fqdn }).(pulumi.StringPtrOutput) } // One or more `ipSecurityRestriction` blocks for IP-filtering rules as defined below. func (o AppIngressOutput) IpSecurityRestrictions() AppIngressIpSecurityRestrictionArrayOutput { return o.ApplyT(func(v AppIngress) []AppIngressIpSecurityRestriction { return v.IpSecurityRestrictions }).(AppIngressIpSecurityRestrictionArrayOutput) } // The target port on the container for the Ingress traffic. func (o AppIngressOutput) TargetPort() pulumi.IntOutput { return o.ApplyT(func(v AppIngress) int { return v.TargetPort }).(pulumi.IntOutput) } // One or more `trafficWeight` blocks as detailed below. func (o AppIngressOutput) TrafficWeights() AppIngressTrafficWeightArrayOutput { return o.ApplyT(func(v AppIngress) []AppIngressTrafficWeight { return v.TrafficWeights }).(AppIngressTrafficWeightArrayOutput) } // The transport method for the Ingress. Possible values are `auto`, `http`, `http2` and `tcp`. Defaults to `auto`. // // > **Note:** if `transport` is set to `tcp`, `exposedPort` and `targetPort` should be set at the same time. func (o AppIngressOutput) Transport() pulumi.StringPtrOutput { return o.ApplyT(func(v AppIngress) *string { return v.Transport }).(pulumi.StringPtrOutput) } type AppIngressPtrOutput struct{ *pulumi.OutputState } func (AppIngressPtrOutput) ElementType() reflect.Type { return reflect.TypeOf((**AppIngress)(nil)).Elem() } func (o AppIngressPtrOutput) ToAppIngressPtrOutput() AppIngressPtrOutput { return o } func (o AppIngressPtrOutput) ToAppIngressPtrOutputWithContext(ctx context.Context) AppIngressPtrOutput { return o } func (o AppIngressPtrOutput) Elem() AppIngressOutput { return o.ApplyT(func(v *AppIngress) AppIngress { if v != nil { return *v } var ret AppIngress return ret }).(AppIngressOutput) } // Should this ingress allow insecure connections? func (o AppIngressPtrOutput) AllowInsecureConnections() pulumi.BoolPtrOutput { return o.ApplyT(func(v *AppIngress) *bool { if v == nil { return nil } return v.AllowInsecureConnections }).(pulumi.BoolPtrOutput) } // The client certificate mode for the Ingress. Possible values are `require`, `accept`, and `ignore`. func (o AppIngressPtrOutput) ClientCertificateMode() pulumi.StringPtrOutput { return o.ApplyT(func(v *AppIngress) *string { if v == nil { return nil } return v.ClientCertificateMode }).(pulumi.StringPtrOutput) } // A `cors` block as defined below. func (o AppIngressPtrOutput) Cors() AppIngressCorsPtrOutput { return o.ApplyT(func(v *AppIngress) *AppIngressCors { if v == nil { return nil } return v.Cors }).(AppIngressCorsPtrOutput) } // One or more `customDomain` block as detailed below. func (o AppIngressPtrOutput) CustomDomains() AppIngressCustomDomainArrayOutput { return o.ApplyT(func(v *AppIngress) []AppIngressCustomDomain { if v == nil { return nil } return v.CustomDomains }).(AppIngressCustomDomainArrayOutput) } // The exposed port on the container for the Ingress traffic. // // > **Note:** `exposedPort` can only be specified when `transport` is set to `tcp`. func (o AppIngressPtrOutput) ExposedPort() pulumi.IntPtrOutput { return o.ApplyT(func(v *AppIngress) *int { if v == nil { return nil } return v.ExposedPort }).(pulumi.IntPtrOutput) } // Are connections to this Ingress from outside the Container App Environment enabled? Defaults to `false`. func (o AppIngressPtrOutput) ExternalEnabled() pulumi.BoolPtrOutput { return o.ApplyT(func(v *AppIngress) *bool { if v == nil { return nil } return v.ExternalEnabled }).(pulumi.BoolPtrOutput) } // The FQDN of the ingress. func (o AppIngressPtrOutput) Fqdn() pulumi.StringPtrOutput { return o.ApplyT(func(v *AppIngress) *string { if v == nil { return nil } return v.Fqdn }).(pulumi.StringPtrOutput) } // One or more `ipSecurityRestriction` blocks for IP-filtering rules as defined below. func (o AppIngressPtrOutput) IpSecurityRestrictions() AppIngressIpSecurityRestrictionArrayOutput { return o.ApplyT(func(v *AppIngress) []AppIngressIpSecurityRestriction { if v == nil { return nil } return v.IpSecurityRestrictions }).(AppIngressIpSecurityRestrictionArrayOutput) } // The target port on the container for the Ingress traffic. func (o AppIngressPtrOutput) TargetPort() pulumi.IntPtrOutput { return o.ApplyT(func(v *AppIngress) *int { if v == nil { return nil } return &v.TargetPort }).(pulumi.IntPtrOutput) } // One or more `trafficWeight` blocks as detailed below. func (o AppIngressPtrOutput) TrafficWeights() AppIngressTrafficWeightArrayOutput { return o.ApplyT(func(v *AppIngress) []AppIngressTrafficWeight { if v == nil { return nil } return v.TrafficWeights }).(AppIngressTrafficWeightArrayOutput) } // The transport method for the Ingress. Possible values are `auto`, `http`, `http2` and `tcp`. Defaults to `auto`. // // > **Note:** if `transport` is set to `tcp`, `exposedPort` and `targetPort` should be set at the same time. func (o AppIngressPtrOutput) Transport() pulumi.StringPtrOutput { return o.ApplyT(func(v *AppIngress) *string { if v == nil { return nil } return v.Transport }).(pulumi.StringPtrOutput) } type AppIngressCors struct { // Whether user credentials are allowed in the cross-origin request is enabled. Defaults to `false`. AllowCredentialsEnabled *bool `pulumi:"allowCredentialsEnabled"` // Specifies the list of request headers that are permitted in the actual request. AllowedHeaders []string `pulumi:"allowedHeaders"` // Specifies the list of HTTP methods are allowed when accessing the resource in a cross-origin request. AllowedMethods []string `pulumi:"allowedMethods"` // Specifies the list of origins that are allowed to make cross-origin calls. AllowedOrigins []string `pulumi:"allowedOrigins"` // Specifies the list of headers exposed to the browser in the response to a cross-origin request. ExposedHeaders []string `pulumi:"exposedHeaders"` // Specifies the number of seconds that the browser can cache the results of a preflight request. MaxAgeInSeconds *int `pulumi:"maxAgeInSeconds"` } // AppIngressCorsInput is an input type that accepts AppIngressCorsArgs and AppIngressCorsOutput values. // You can construct a concrete instance of `AppIngressCorsInput` via: // // AppIngressCorsArgs{...} type AppIngressCorsInput interface { pulumi.Input ToAppIngressCorsOutput() AppIngressCorsOutput ToAppIngressCorsOutputWithContext(context.Context) AppIngressCorsOutput } type AppIngressCorsArgs struct { // Whether user credentials are allowed in the cross-origin request is enabled. Defaults to `false`. AllowCredentialsEnabled pulumi.BoolPtrInput `pulumi:"allowCredentialsEnabled"` // Specifies the list of request headers that are permitted in the actual request. AllowedHeaders pulumi.StringArrayInput `pulumi:"allowedHeaders"` // Specifies the list of HTTP methods are allowed when accessing the resource in a cross-origin request. AllowedMethods pulumi.StringArrayInput `pulumi:"allowedMethods"` // Specifies the list of origins that are allowed to make cross-origin calls. AllowedOrigins pulumi.StringArrayInput `pulumi:"allowedOrigins"` // Specifies the list of headers exposed to the browser in the response to a cross-origin request. ExposedHeaders pulumi.StringArrayInput `pulumi:"exposedHeaders"` // Specifies the number of seconds that the browser can cache the results of a preflight request. MaxAgeInSeconds pulumi.IntPtrInput `pulumi:"maxAgeInSeconds"` } func (AppIngressCorsArgs) ElementType() reflect.Type { return reflect.TypeOf((*AppIngressCors)(nil)).Elem() } func (i AppIngressCorsArgs) ToAppIngressCorsOutput() AppIngressCorsOutput { return i.ToAppIngressCorsOutputWithContext(context.Background()) } func (i AppIngressCorsArgs) ToAppIngressCorsOutputWithContext(ctx context.Context) AppIngressCorsOutput { return pulumi.ToOutputWithContext(ctx, i).(AppIngressCorsOutput) } func (i AppIngressCorsArgs) ToAppIngressCorsPtrOutput() AppIngressCorsPtrOutput { return i.ToAppIngressCorsPtrOutputWithContext(context.Background()) } func (i AppIngressCorsArgs) ToAppIngressCorsPtrOutputWithContext(ctx context.Context) AppIngressCorsPtrOutput { return pulumi.ToOutputWithContext(ctx, i).(AppIngressCorsOutput).ToAppIngressCorsPtrOutputWithContext(ctx) } // AppIngressCorsPtrInput is an input type that accepts AppIngressCorsArgs, AppIngressCorsPtr and AppIngressCorsPtrOutput values. // You can construct a concrete instance of `AppIngressCorsPtrInput` via: // // AppIngressCorsArgs{...} // // or: // // nil type AppIngressCorsPtrInput interface { pulumi.Input ToAppIngressCorsPtrOutput() AppIngressCorsPtrOutput ToAppIngressCorsPtrOutputWithContext(context.Context) AppIngressCorsPtrOutput } type appIngressCorsPtrType AppIngressCorsArgs func AppIngressCorsPtr(v *AppIngressCorsArgs) AppIngressCorsPtrInput { return (*appIngressCorsPtrType)(v) } func (*appIngressCorsPtrType) ElementType() reflect.Type { return reflect.TypeOf((**AppIngressCors)(nil)).Elem() } func (i *appIngressCorsPtrType) ToAppIngressCorsPtrOutput() AppIngressCorsPtrOutput { return i.ToAppIngressCorsPtrOutputWithContext(context.Background()) } func (i *appIngressCorsPtrType) ToAppIngressCorsPtrOutputWithContext(ctx context.Context) AppIngressCorsPtrOutput { return pulumi.ToOutputWithContext(ctx, i).(AppIngressCorsPtrOutput) } type AppIngressCorsOutput struct{ *pulumi.OutputState } func (AppIngressCorsOutput) ElementType() reflect.Type { return reflect.TypeOf((*AppIngressCors)(nil)).Elem() } func (o AppIngressCorsOutput) ToAppIngressCorsOutput() AppIngressCorsOutput { return o } func (o AppIngressCorsOutput) ToAppIngressCorsOutputWithContext(ctx context.Context) AppIngressCorsOutput { return o } func (o AppIngressCorsOutput) ToAppIngressCorsPtrOutput() AppIngressCorsPtrOutput { return o.ToAppIngressCorsPtrOutputWithContext(context.Background()) } func (o AppIngressCorsOutput) ToAppIngressCorsPtrOutputWithContext(ctx context.Context) AppIngressCorsPtrOutput { return o.ApplyTWithContext(ctx, func(_ context.Context, v AppIngressCors) *AppIngressCors { return &v }).(AppIngressCorsPtrOutput) } // Whether user credentials are allowed in the cross-origin request is enabled. Defaults to `false`. func (o AppIngressCorsOutput) AllowCredentialsEnabled() pulumi.BoolPtrOutput { return o.ApplyT(func(v AppIngressCors) *bool { return v.AllowCredentialsEnabled }).(pulumi.BoolPtrOutput) } // Specifies the list of request headers that are permitted in the actual request. func (o AppIngressCorsOutput) AllowedHeaders() pulumi.StringArrayOutput { return o.ApplyT(func(v AppIngressCors) []string { return v.AllowedHeaders }).(pulumi.StringArrayOutput) } // Specifies the list of HTTP methods are allowed when accessing the resource in a cross-origin request. func (o AppIngressCorsOutput) AllowedMethods() pulumi.StringArrayOutput { return o.ApplyT(func(v AppIngressCors) []string { return v.AllowedMethods }).(pulumi.StringArrayOutput) } // Specifies the list of origins that are allowed to make cross-origin calls. func (o AppIngressCorsOutput) AllowedOrigins() pulumi.StringArrayOutput { return o.ApplyT(func(v AppIngressCors) []string { return v.AllowedOrigins }).(pulumi.StringArrayOutput) } // Specifies the list of headers exposed to the browser in the response to a cross-origin request. func (o AppIngressCorsOutput) ExposedHeaders() pulumi.StringArrayOutput { return o.ApplyT(func(v AppIngressCors) []string { return v.ExposedHeaders }).(pulumi.StringArrayOutput) } // Specifies the number of seconds that the browser can cache the results of a preflight request. func (o AppIngressCorsOutput) MaxAgeInSeconds() pulumi.IntPtrOutput { return o.ApplyT(func(v AppIngressCors) *int { return v.MaxAgeInSeconds }).(pulumi.IntPtrOutput) } type AppIngressCorsPtrOutput struct{ *pulumi.OutputState } func (AppIngressCorsPtrOutput) ElementType() reflect.Type { return reflect.TypeOf((**AppIngressCors)(nil)).Elem() } func (o AppIngressCorsPtrOutput) ToAppIngressCorsPtrOutput() AppIngressCorsPtrOutput { return o } func (o AppIngressCorsPtrOutput) ToAppIngressCorsPtrOutputWithContext(ctx context.Context) AppIngressCorsPtrOutput { return o } func (o AppIngressCorsPtrOutput) Elem() AppIngressCorsOutput { return o.ApplyT(func(v *AppIngressCors) AppIngressCors { if v != nil { return *v } var ret AppIngressCors return ret }).(AppIngressCorsOutput) } // Whether user credentials are allowed in the cross-origin request is enabled. Defaults to `false`. func (o AppIngressCorsPtrOutput) AllowCredentialsEnabled() pulumi.BoolPtrOutput { return o.ApplyT(func(v *AppIngressCors) *bool { if v == nil { return nil } return v.AllowCredentialsEnabled }).(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/containerapp/job.go
sdk/go/azure/containerapp/job.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 containerapp import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a Container App Job. // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/containerapp" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/operationalinsights" // "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 // } // exampleAnalyticsWorkspace, err := operationalinsights.NewAnalyticsWorkspace(ctx, "example", &operationalinsights.AnalyticsWorkspaceArgs{ // Name: pulumi.String("example-log-analytics-workspace"), // Location: example.Location, // ResourceGroupName: example.Name, // Sku: pulumi.String("PerGB2018"), // RetentionInDays: pulumi.Int(30), // }) // if err != nil { // return err // } // exampleEnvironment, err := containerapp.NewEnvironment(ctx, "example", &containerapp.EnvironmentArgs{ // Name: pulumi.String("example-container-app-environment"), // Location: example.Location, // ResourceGroupName: example.Name, // LogAnalyticsWorkspaceId: exampleAnalyticsWorkspace.ID(), // }) // if err != nil { // return err // } // _, err = containerapp.NewJob(ctx, "example", &containerapp.JobArgs{ // Name: pulumi.String("example-container-app-job"), // Location: example.Location, // ResourceGroupName: example.Name, // ContainerAppEnvironmentId: exampleEnvironment.ID(), // ReplicaTimeoutInSeconds: pulumi.Int(10), // ReplicaRetryLimit: pulumi.Int(10), // ManualTriggerConfig: &containerapp.JobManualTriggerConfigArgs{ // Parallelism: pulumi.Int(4), // ReplicaCompletionCount: pulumi.Int(1), // }, // Template: &containerapp.JobTemplateArgs{ // Containers: containerapp.JobTemplateContainerArray{ // &containerapp.JobTemplateContainerArgs{ // Image: pulumi.String("repo/testcontainerAppsJob0:v1"), // Name: pulumi.String("testcontainerappsjob0"), // ReadinessProbes: containerapp.JobTemplateContainerReadinessProbeArray{ // &containerapp.JobTemplateContainerReadinessProbeArgs{ // Transport: pulumi.String("HTTP"), // Port: pulumi.Int(5000), // }, // }, // LivenessProbes: containerapp.JobTemplateContainerLivenessProbeArray{ // &containerapp.JobTemplateContainerLivenessProbeArgs{ // Transport: pulumi.String("HTTP"), // Port: pulumi.Int(5000), // Path: pulumi.String("/health"), // Headers: containerapp.JobTemplateContainerLivenessProbeHeaderArray{ // &containerapp.JobTemplateContainerLivenessProbeHeaderArgs{ // Name: pulumi.String("Cache-Control"), // Value: pulumi.String("no-cache"), // }, // }, // InitialDelay: pulumi.Int(5), // IntervalSeconds: pulumi.Int(20), // Timeout: pulumi.Int(2), // FailureCountThreshold: pulumi.Int(1), // }, // }, // StartupProbes: containerapp.JobTemplateContainerStartupProbeArray{ // &containerapp.JobTemplateContainerStartupProbeArgs{ // Transport: pulumi.String("TCP"), // Port: pulumi.Int(5000), // }, // }, // Cpu: pulumi.Float64(0.5), // Memory: pulumi.String("1Gi"), // }, // }, // }, // }) // 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.App` - 2025-07-01 // // ## Import // // A Container App Job can be imported using the resource id, e.g. // // ```sh // $ pulumi import azure:containerapp/job:Job example "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example-resources/providers/Microsoft.App/jobs/example-container-app-job" // ``` type Job struct { pulumi.CustomResourceState // The ID of the Container App Environment in which to create the Container App Job. Changing this forces a new resource to be created. ContainerAppEnvironmentId pulumi.StringOutput `pulumi:"containerAppEnvironmentId"` // The endpoint for the Container App Job event stream. EventStreamEndpoint pulumi.StringOutput `pulumi:"eventStreamEndpoint"` // A `eventTriggerConfig` block as defined below. Changing this forces a new resource to be created. EventTriggerConfig JobEventTriggerConfigPtrOutput `pulumi:"eventTriggerConfig"` // A `identity` block as defined below. Identity JobIdentityPtrOutput `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"` // A `manualTriggerConfig` block as defined below. Changing this forces a new resource to be created. ManualTriggerConfig JobManualTriggerConfigPtrOutput `pulumi:"manualTriggerConfig"` // Specifies the name of the Container App Job resource. Changing this forces a new resource to be created. Name pulumi.StringOutput `pulumi:"name"` // A list of the Public IP Addresses which the Container App uses for outbound network access. OutboundIpAddresses pulumi.StringArrayOutput `pulumi:"outboundIpAddresses"` // One or more `registry` blocks as defined below. Registries JobRegistryArrayOutput `pulumi:"registries"` // The maximum number of times a replica is allowed to retry. ReplicaRetryLimit pulumi.IntPtrOutput `pulumi:"replicaRetryLimit"` // The maximum number of seconds a replica is allowed to run. ReplicaTimeoutInSeconds pulumi.IntOutput `pulumi:"replicaTimeoutInSeconds"` // The name of the resource group in which to create the Container App Job. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // A `scheduleTriggerConfig` block as defined below. Changing this forces a new resource to be created. // // > **Note:** Only one of `manualTriggerConfig`, `eventTriggerConfig` or `scheduleTriggerConfig` can be specified. ScheduleTriggerConfig JobScheduleTriggerConfigPtrOutput `pulumi:"scheduleTriggerConfig"` // One or more `secret` blocks as defined below. Secrets JobSecretArrayOutput `pulumi:"secrets"` // A mapping of tags to assign to the resource. Tags pulumi.StringMapOutput `pulumi:"tags"` // A `template` block as defined below. Template JobTemplateOutput `pulumi:"template"` // The name of the workload profile to use for the Container App Job. WorkloadProfileName pulumi.StringPtrOutput `pulumi:"workloadProfileName"` } // NewJob registers a new resource with the given unique name, arguments, and options. func NewJob(ctx *pulumi.Context, name string, args *JobArgs, opts ...pulumi.ResourceOption) (*Job, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.ContainerAppEnvironmentId == nil { return nil, errors.New("invalid value for required argument 'ContainerAppEnvironmentId'") } if args.ReplicaTimeoutInSeconds == nil { return nil, errors.New("invalid value for required argument 'ReplicaTimeoutInSeconds'") } if args.ResourceGroupName == nil { return nil, errors.New("invalid value for required argument 'ResourceGroupName'") } if args.Template == nil { return nil, errors.New("invalid value for required argument 'Template'") } if args.Secrets != nil { args.Secrets = pulumi.ToSecret(args.Secrets).(JobSecretArrayInput) } secrets := pulumi.AdditionalSecretOutputs([]string{ "secrets", }) opts = append(opts, secrets) opts = internal.PkgResourceDefaultOpts(opts) var resource Job err := ctx.RegisterResource("azure:containerapp/job:Job", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetJob gets an existing Job 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 GetJob(ctx *pulumi.Context, name string, id pulumi.IDInput, state *JobState, opts ...pulumi.ResourceOption) (*Job, error) { var resource Job err := ctx.ReadResource("azure:containerapp/job:Job", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering Job resources. type jobState struct { // The ID of the Container App Environment in which to create the Container App Job. Changing this forces a new resource to be created. ContainerAppEnvironmentId *string `pulumi:"containerAppEnvironmentId"` // The endpoint for the Container App Job event stream. EventStreamEndpoint *string `pulumi:"eventStreamEndpoint"` // A `eventTriggerConfig` block as defined below. Changing this forces a new resource to be created. EventTriggerConfig *JobEventTriggerConfig `pulumi:"eventTriggerConfig"` // A `identity` block as defined below. Identity *JobIdentity `pulumi:"identity"` // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location *string `pulumi:"location"` // A `manualTriggerConfig` block as defined below. Changing this forces a new resource to be created. ManualTriggerConfig *JobManualTriggerConfig `pulumi:"manualTriggerConfig"` // Specifies the name of the Container App Job resource. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // A list of the Public IP Addresses which the Container App uses for outbound network access. OutboundIpAddresses []string `pulumi:"outboundIpAddresses"` // One or more `registry` blocks as defined below. Registries []JobRegistry `pulumi:"registries"` // The maximum number of times a replica is allowed to retry. ReplicaRetryLimit *int `pulumi:"replicaRetryLimit"` // The maximum number of seconds a replica is allowed to run. ReplicaTimeoutInSeconds *int `pulumi:"replicaTimeoutInSeconds"` // The name of the resource group in which to create the Container App Job. Changing this forces a new resource to be created. ResourceGroupName *string `pulumi:"resourceGroupName"` // A `scheduleTriggerConfig` block as defined below. Changing this forces a new resource to be created. // // > **Note:** Only one of `manualTriggerConfig`, `eventTriggerConfig` or `scheduleTriggerConfig` can be specified. ScheduleTriggerConfig *JobScheduleTriggerConfig `pulumi:"scheduleTriggerConfig"` // One or more `secret` blocks as defined below. Secrets []JobSecret `pulumi:"secrets"` // A mapping of tags to assign to the resource. Tags map[string]string `pulumi:"tags"` // A `template` block as defined below. Template *JobTemplate `pulumi:"template"` // The name of the workload profile to use for the Container App Job. WorkloadProfileName *string `pulumi:"workloadProfileName"` } type JobState struct { // The ID of the Container App Environment in which to create the Container App Job. Changing this forces a new resource to be created. ContainerAppEnvironmentId pulumi.StringPtrInput // The endpoint for the Container App Job event stream. EventStreamEndpoint pulumi.StringPtrInput // A `eventTriggerConfig` block as defined below. Changing this forces a new resource to be created. EventTriggerConfig JobEventTriggerConfigPtrInput // A `identity` block as defined below. Identity JobIdentityPtrInput // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location pulumi.StringPtrInput // A `manualTriggerConfig` block as defined below. Changing this forces a new resource to be created. ManualTriggerConfig JobManualTriggerConfigPtrInput // Specifies the name of the Container App Job resource. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // A list of the Public IP Addresses which the Container App uses for outbound network access. OutboundIpAddresses pulumi.StringArrayInput // One or more `registry` blocks as defined below. Registries JobRegistryArrayInput // The maximum number of times a replica is allowed to retry. ReplicaRetryLimit pulumi.IntPtrInput // The maximum number of seconds a replica is allowed to run. ReplicaTimeoutInSeconds pulumi.IntPtrInput // The name of the resource group in which to create the Container App Job. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringPtrInput // A `scheduleTriggerConfig` block as defined below. Changing this forces a new resource to be created. // // > **Note:** Only one of `manualTriggerConfig`, `eventTriggerConfig` or `scheduleTriggerConfig` can be specified. ScheduleTriggerConfig JobScheduleTriggerConfigPtrInput // One or more `secret` blocks as defined below. Secrets JobSecretArrayInput // A mapping of tags to assign to the resource. Tags pulumi.StringMapInput // A `template` block as defined below. Template JobTemplatePtrInput // The name of the workload profile to use for the Container App Job. WorkloadProfileName pulumi.StringPtrInput } func (JobState) ElementType() reflect.Type { return reflect.TypeOf((*jobState)(nil)).Elem() } type jobArgs struct { // The ID of the Container App Environment in which to create the Container App Job. Changing this forces a new resource to be created. ContainerAppEnvironmentId string `pulumi:"containerAppEnvironmentId"` // A `eventTriggerConfig` block as defined below. Changing this forces a new resource to be created. EventTriggerConfig *JobEventTriggerConfig `pulumi:"eventTriggerConfig"` // A `identity` block as defined below. Identity *JobIdentity `pulumi:"identity"` // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location *string `pulumi:"location"` // A `manualTriggerConfig` block as defined below. Changing this forces a new resource to be created. ManualTriggerConfig *JobManualTriggerConfig `pulumi:"manualTriggerConfig"` // Specifies the name of the Container App Job resource. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // One or more `registry` blocks as defined below. Registries []JobRegistry `pulumi:"registries"` // The maximum number of times a replica is allowed to retry. ReplicaRetryLimit *int `pulumi:"replicaRetryLimit"` // The maximum number of seconds a replica is allowed to run. ReplicaTimeoutInSeconds int `pulumi:"replicaTimeoutInSeconds"` // The name of the resource group in which to create the Container App Job. Changing this forces a new resource to be created. ResourceGroupName string `pulumi:"resourceGroupName"` // A `scheduleTriggerConfig` block as defined below. Changing this forces a new resource to be created. // // > **Note:** Only one of `manualTriggerConfig`, `eventTriggerConfig` or `scheduleTriggerConfig` can be specified. ScheduleTriggerConfig *JobScheduleTriggerConfig `pulumi:"scheduleTriggerConfig"` // One or more `secret` blocks as defined below. Secrets []JobSecret `pulumi:"secrets"` // A mapping of tags to assign to the resource. Tags map[string]string `pulumi:"tags"` // A `template` block as defined below. Template JobTemplate `pulumi:"template"` // The name of the workload profile to use for the Container App Job. WorkloadProfileName *string `pulumi:"workloadProfileName"` } // The set of arguments for constructing a Job resource. type JobArgs struct { // The ID of the Container App Environment in which to create the Container App Job. Changing this forces a new resource to be created. ContainerAppEnvironmentId pulumi.StringInput // A `eventTriggerConfig` block as defined below. Changing this forces a new resource to be created. EventTriggerConfig JobEventTriggerConfigPtrInput // A `identity` block as defined below. Identity JobIdentityPtrInput // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location pulumi.StringPtrInput // A `manualTriggerConfig` block as defined below. Changing this forces a new resource to be created. ManualTriggerConfig JobManualTriggerConfigPtrInput // Specifies the name of the Container App Job resource. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // One or more `registry` blocks as defined below. Registries JobRegistryArrayInput // The maximum number of times a replica is allowed to retry. ReplicaRetryLimit pulumi.IntPtrInput // The maximum number of seconds a replica is allowed to run. ReplicaTimeoutInSeconds pulumi.IntInput // The name of the resource group in which to create the Container App Job. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringInput // A `scheduleTriggerConfig` block as defined below. Changing this forces a new resource to be created. // // > **Note:** Only one of `manualTriggerConfig`, `eventTriggerConfig` or `scheduleTriggerConfig` can be specified. ScheduleTriggerConfig JobScheduleTriggerConfigPtrInput // One or more `secret` blocks as defined below. Secrets JobSecretArrayInput // A mapping of tags to assign to the resource. Tags pulumi.StringMapInput // A `template` block as defined below. Template JobTemplateInput // The name of the workload profile to use for the Container App Job. WorkloadProfileName pulumi.StringPtrInput } func (JobArgs) ElementType() reflect.Type { return reflect.TypeOf((*jobArgs)(nil)).Elem() } type JobInput interface { pulumi.Input ToJobOutput() JobOutput ToJobOutputWithContext(ctx context.Context) JobOutput } func (*Job) ElementType() reflect.Type { return reflect.TypeOf((**Job)(nil)).Elem() } func (i *Job) ToJobOutput() JobOutput { return i.ToJobOutputWithContext(context.Background()) } func (i *Job) ToJobOutputWithContext(ctx context.Context) JobOutput { return pulumi.ToOutputWithContext(ctx, i).(JobOutput) } // JobArrayInput is an input type that accepts JobArray and JobArrayOutput values. // You can construct a concrete instance of `JobArrayInput` via: // // JobArray{ JobArgs{...} } type JobArrayInput interface { pulumi.Input ToJobArrayOutput() JobArrayOutput ToJobArrayOutputWithContext(context.Context) JobArrayOutput } type JobArray []JobInput func (JobArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*Job)(nil)).Elem() } func (i JobArray) ToJobArrayOutput() JobArrayOutput { return i.ToJobArrayOutputWithContext(context.Background()) } func (i JobArray) ToJobArrayOutputWithContext(ctx context.Context) JobArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(JobArrayOutput) } // JobMapInput is an input type that accepts JobMap and JobMapOutput values. // You can construct a concrete instance of `JobMapInput` via: // // JobMap{ "key": JobArgs{...} } type JobMapInput interface { pulumi.Input ToJobMapOutput() JobMapOutput ToJobMapOutputWithContext(context.Context) JobMapOutput } type JobMap map[string]JobInput func (JobMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*Job)(nil)).Elem() } func (i JobMap) ToJobMapOutput() JobMapOutput { return i.ToJobMapOutputWithContext(context.Background()) } func (i JobMap) ToJobMapOutputWithContext(ctx context.Context) JobMapOutput { return pulumi.ToOutputWithContext(ctx, i).(JobMapOutput) } type JobOutput struct{ *pulumi.OutputState } func (JobOutput) ElementType() reflect.Type { return reflect.TypeOf((**Job)(nil)).Elem() } func (o JobOutput) ToJobOutput() JobOutput { return o } func (o JobOutput) ToJobOutputWithContext(ctx context.Context) JobOutput { return o } // The ID of the Container App Environment in which to create the Container App Job. Changing this forces a new resource to be created. func (o JobOutput) ContainerAppEnvironmentId() pulumi.StringOutput { return o.ApplyT(func(v *Job) pulumi.StringOutput { return v.ContainerAppEnvironmentId }).(pulumi.StringOutput) } // The endpoint for the Container App Job event stream. func (o JobOutput) EventStreamEndpoint() pulumi.StringOutput { return o.ApplyT(func(v *Job) pulumi.StringOutput { return v.EventStreamEndpoint }).(pulumi.StringOutput) } // A `eventTriggerConfig` block as defined below. Changing this forces a new resource to be created. func (o JobOutput) EventTriggerConfig() JobEventTriggerConfigPtrOutput { return o.ApplyT(func(v *Job) JobEventTriggerConfigPtrOutput { return v.EventTriggerConfig }).(JobEventTriggerConfigPtrOutput) } // A `identity` block as defined below. func (o JobOutput) Identity() JobIdentityPtrOutput { return o.ApplyT(func(v *Job) JobIdentityPtrOutput { return v.Identity }).(JobIdentityPtrOutput) } // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. func (o JobOutput) Location() pulumi.StringOutput { return o.ApplyT(func(v *Job) pulumi.StringOutput { return v.Location }).(pulumi.StringOutput) } // A `manualTriggerConfig` block as defined below. Changing this forces a new resource to be created. func (o JobOutput) ManualTriggerConfig() JobManualTriggerConfigPtrOutput { return o.ApplyT(func(v *Job) JobManualTriggerConfigPtrOutput { return v.ManualTriggerConfig }).(JobManualTriggerConfigPtrOutput) } // Specifies the name of the Container App Job resource. Changing this forces a new resource to be created. func (o JobOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *Job) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // A list of the Public IP Addresses which the Container App uses for outbound network access. func (o JobOutput) OutboundIpAddresses() pulumi.StringArrayOutput { return o.ApplyT(func(v *Job) pulumi.StringArrayOutput { return v.OutboundIpAddresses }).(pulumi.StringArrayOutput) } // One or more `registry` blocks as defined below. func (o JobOutput) Registries() JobRegistryArrayOutput { return o.ApplyT(func(v *Job) JobRegistryArrayOutput { return v.Registries }).(JobRegistryArrayOutput) } // The maximum number of times a replica is allowed to retry. func (o JobOutput) ReplicaRetryLimit() pulumi.IntPtrOutput { return o.ApplyT(func(v *Job) pulumi.IntPtrOutput { return v.ReplicaRetryLimit }).(pulumi.IntPtrOutput) } // The maximum number of seconds a replica is allowed to run. func (o JobOutput) ReplicaTimeoutInSeconds() pulumi.IntOutput { return o.ApplyT(func(v *Job) pulumi.IntOutput { return v.ReplicaTimeoutInSeconds }).(pulumi.IntOutput) } // The name of the resource group in which to create the Container App Job. Changing this forces a new resource to be created. func (o JobOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v *Job) pulumi.StringOutput { return v.ResourceGroupName }).(pulumi.StringOutput) } // A `scheduleTriggerConfig` block as defined below. Changing this forces a new resource to be created. // // > **Note:** Only one of `manualTriggerConfig`, `eventTriggerConfig` or `scheduleTriggerConfig` can be specified. func (o JobOutput) ScheduleTriggerConfig() JobScheduleTriggerConfigPtrOutput { return o.ApplyT(func(v *Job) JobScheduleTriggerConfigPtrOutput { return v.ScheduleTriggerConfig }).(JobScheduleTriggerConfigPtrOutput) } // One or more `secret` blocks as defined below. func (o JobOutput) Secrets() JobSecretArrayOutput { return o.ApplyT(func(v *Job) JobSecretArrayOutput { return v.Secrets }).(JobSecretArrayOutput) } // A mapping of tags to assign to the resource. func (o JobOutput) Tags() pulumi.StringMapOutput { return o.ApplyT(func(v *Job) pulumi.StringMapOutput { return v.Tags }).(pulumi.StringMapOutput) } // A `template` block as defined below. func (o JobOutput) Template() JobTemplateOutput { return o.ApplyT(func(v *Job) JobTemplateOutput { return v.Template }).(JobTemplateOutput) } // The name of the workload profile to use for the Container App Job. func (o JobOutput) WorkloadProfileName() pulumi.StringPtrOutput { return o.ApplyT(func(v *Job) pulumi.StringPtrOutput { return v.WorkloadProfileName }).(pulumi.StringPtrOutput) } type JobArrayOutput struct{ *pulumi.OutputState } func (JobArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*Job)(nil)).Elem() } func (o JobArrayOutput) ToJobArrayOutput() JobArrayOutput { return o } func (o JobArrayOutput) ToJobArrayOutputWithContext(ctx context.Context) JobArrayOutput { return o } func (o JobArrayOutput) Index(i pulumi.IntInput) JobOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *Job { return vs[0].([]*Job)[vs[1].(int)] }).(JobOutput) } type JobMapOutput struct{ *pulumi.OutputState } func (JobMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*Job)(nil)).Elem() } func (o JobMapOutput) ToJobMapOutput() JobMapOutput { return o } func (o JobMapOutput) ToJobMapOutputWithContext(ctx context.Context) JobMapOutput { return o } func (o JobMapOutput) MapIndex(k pulumi.StringInput) JobOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *Job { return vs[0].(map[string]*Job)[vs[1].(string)] }).(JobOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*JobInput)(nil)).Elem(), &Job{}) pulumi.RegisterInputType(reflect.TypeOf((*JobArrayInput)(nil)).Elem(), JobArray{}) pulumi.RegisterInputType(reflect.TypeOf((*JobMapInput)(nil)).Elem(), JobMap{}) pulumi.RegisterOutputType(JobOutput{}) pulumi.RegisterOutputType(JobArrayOutput{}) pulumi.RegisterOutputType(JobMapOutput{}) }
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/containerapp/environmentCertificate.go
sdk/go/azure/containerapp/environmentCertificate.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 containerapp import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a Container App Environment Certificate. // // ## Example Usage // // ### Certificate from .pfx file // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/containerapp" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/operationalinsights" // "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 // } // exampleAnalyticsWorkspace, err := operationalinsights.NewAnalyticsWorkspace(ctx, "example", &operationalinsights.AnalyticsWorkspaceArgs{ // Name: pulumi.String("acctest-01"), // Location: example.Location, // ResourceGroupName: example.Name, // Sku: pulumi.String("PerGB2018"), // RetentionInDays: pulumi.Int(30), // }) // if err != nil { // return err // } // exampleEnvironment, err := containerapp.NewEnvironment(ctx, "example", &containerapp.EnvironmentArgs{ // Name: pulumi.String("myEnvironment"), // Location: example.Location, // ResourceGroupName: example.Name, // LogAnalyticsWorkspaceId: exampleAnalyticsWorkspace.ID(), // }) // if err != nil { // return err // } // invokeFilebase64, err := std.Filebase64(ctx, &std.Filebase64Args{ // Input: "path/to/certificate_file.pfx", // }, nil) // if err != nil { // return err // } // _, err = containerapp.NewEnvironmentCertificate(ctx, "example", &containerapp.EnvironmentCertificateArgs{ // Name: pulumi.String("myfriendlyname"), // ContainerAppEnvironmentId: exampleEnvironment.ID(), // CertificateBlobBase64: pulumi.String(invokeFilebase64.Result), // CertificatePassword: pulumi.String("$3cretSqu1rreL"), // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ### Certificate from Key Vault // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/authorization" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/containerapp" // "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/operationalinsights" // "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 { // 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 // } // exampleAnalyticsWorkspace, err := operationalinsights.NewAnalyticsWorkspace(ctx, "example", &operationalinsights.AnalyticsWorkspaceArgs{ // Name: pulumi.String("example-workspace"), // Location: example.Location, // ResourceGroupName: example.Name, // Sku: pulumi.String("PerGB2018"), // RetentionInDays: pulumi.Int(30), // }) // if err != nil { // return err // } // exampleUserAssignedIdentity, err := authorization.NewUserAssignedIdentity(ctx, "example", &authorization.UserAssignedIdentityArgs{ // Name: pulumi.String("example-identity"), // ResourceGroupName: example.Name, // Location: example.Location, // }) // if err != nil { // return err // } // exampleEnvironment, err := containerapp.NewEnvironment(ctx, "example", &containerapp.EnvironmentArgs{ // Name: pulumi.String("example-environment"), // Location: example.Location, // ResourceGroupName: example.Name, // LogAnalyticsWorkspaceId: exampleAnalyticsWorkspace.ID(), // Identity: &containerapp.EnvironmentIdentityArgs{ // Type: pulumi.String("UserAssigned"), // IdentityIds: pulumi.StringArray{ // exampleUserAssignedIdentity.ID(), // }, // }, // }) // if err != nil { // return err // } // exampleKeyVault, err := keyvault.NewKeyVault(ctx, "example", &keyvault.KeyVaultArgs{ // Name: pulumi.String("example-keyvault"), // Location: example.Location, // ResourceGroupName: example.Name, // TenantId: pulumi.String(current.TenantId), // SkuName: pulumi.String("standard"), // EnableRbacAuthorization: pulumi.Bool(true), // }) // if err != nil { // return err // } // userKeyvaultAdmin, err := authorization.NewAssignment(ctx, "user_keyvault_admin", &authorization.AssignmentArgs{ // Scope: exampleKeyVault.ID(), // RoleDefinitionName: pulumi.String("Key Vault Administrator"), // PrincipalId: pulumi.String(current.ObjectId), // }) // if err != nil { // return err // } // exampleAssignment, err := authorization.NewAssignment(ctx, "example", &authorization.AssignmentArgs{ // Scope: exampleKeyVault.ID(), // RoleDefinitionName: pulumi.String("Key Vault Secrets User"), // PrincipalId: pulumi.String(exampleEnvironment.Identity.ApplyT(func(identity containerapp.EnvironmentIdentity) (*string, error) { // return &identity.PrincipalId, nil // }).(pulumi.StringPtrOutput)), // }) // if err != nil { // return err // } // invokeFilebase64, err := std.Filebase64(ctx, &std.Filebase64Args{ // Input: "path/to/certificate_file.pfx", // }, nil) // if err != nil { // return err // } // exampleCertificate, err := keyvault.NewCertificate(ctx, "example", &keyvault.CertificateArgs{ // Name: pulumi.String("example-certificate"), // KeyVaultId: exampleKeyVault.ID(), // Certificate: &keyvault.CertificateCertificateArgs{ // Contents: pulumi.String(invokeFilebase64.Result), // Password: pulumi.String(""), // }, // }, pulumi.DependsOn([]pulumi.Resource{ // userKeyvaultAdmin, // exampleAssignment, // })) // if err != nil { // return err // } // _, err = containerapp.NewEnvironmentCertificate(ctx, "example", &containerapp.EnvironmentCertificateArgs{ // Name: pulumi.String("example-certificate"), // ContainerAppEnvironmentId: exampleEnvironment.ID(), // CertificateKeyVault: &containerapp.EnvironmentCertificateCertificateKeyVaultArgs{ // Identity: exampleUserAssignedIdentity.ID(), // KeyVaultSecretId: exampleCertificate.VersionlessSecretId, // }, // }, pulumi.DependsOn([]pulumi.Resource{ // exampleAssignment, // })) // 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.App` - 2025-07-01 // // ## Import // // A Container App Environment Certificate can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:containerapp/environmentCertificate:EnvironmentCertificate example "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resGroup1/providers/Microsoft.App/managedEnvironments/myenv/certificates/mycertificate" // ``` type EnvironmentCertificate struct { pulumi.CustomResourceState // The Certificate Private Key as a base64 encoded PFX or PEM. Changing this forces a new resource to be created. // // > **Note:** One of `certificateBlobBase64` and `certificateKeyVault` must be set. CertificateBlobBase64 pulumi.StringPtrOutput `pulumi:"certificateBlobBase64"` // A `certificateKeyVault` block as defined below. Changing this forces a new resource to be created. // // > **Note:** one of `certificateBlobBase64` and `certificateKeyVault` must be set. CertificateKeyVault EnvironmentCertificateCertificateKeyVaultPtrOutput `pulumi:"certificateKeyVault"` // The password for the Certificate. Changing this forces a new resource to be created. // // > **Note:** required if `certificateBlobBase64` is specified. CertificatePassword pulumi.StringPtrOutput `pulumi:"certificatePassword"` // The Container App Managed Environment ID to configure this Certificate on. Changing this forces a new resource to be created. ContainerAppEnvironmentId pulumi.StringOutput `pulumi:"containerAppEnvironmentId"` // The expiration date for the Certificate. ExpirationDate pulumi.StringOutput `pulumi:"expirationDate"` // The date of issue for the Certificate. IssueDate pulumi.StringOutput `pulumi:"issueDate"` // The Certificate Issuer. Issuer pulumi.StringOutput `pulumi:"issuer"` // The name of the Container Apps Environment Certificate. Changing this forces a new resource to be created. Name pulumi.StringOutput `pulumi:"name"` // The Subject Name for the Certificate. SubjectName pulumi.StringOutput `pulumi:"subjectName"` // A mapping of tags to assign to the resource. Tags pulumi.StringMapOutput `pulumi:"tags"` // The Thumbprint of the Certificate. Thumbprint pulumi.StringOutput `pulumi:"thumbprint"` } // NewEnvironmentCertificate registers a new resource with the given unique name, arguments, and options. func NewEnvironmentCertificate(ctx *pulumi.Context, name string, args *EnvironmentCertificateArgs, opts ...pulumi.ResourceOption) (*EnvironmentCertificate, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.ContainerAppEnvironmentId == nil { return nil, errors.New("invalid value for required argument 'ContainerAppEnvironmentId'") } if args.CertificatePassword != nil { args.CertificatePassword = pulumi.ToSecret(args.CertificatePassword).(pulumi.StringPtrInput) } secrets := pulumi.AdditionalSecretOutputs([]string{ "certificatePassword", }) opts = append(opts, secrets) opts = internal.PkgResourceDefaultOpts(opts) var resource EnvironmentCertificate err := ctx.RegisterResource("azure:containerapp/environmentCertificate:EnvironmentCertificate", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetEnvironmentCertificate gets an existing EnvironmentCertificate 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 GetEnvironmentCertificate(ctx *pulumi.Context, name string, id pulumi.IDInput, state *EnvironmentCertificateState, opts ...pulumi.ResourceOption) (*EnvironmentCertificate, error) { var resource EnvironmentCertificate err := ctx.ReadResource("azure:containerapp/environmentCertificate:EnvironmentCertificate", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering EnvironmentCertificate resources. type environmentCertificateState struct { // The Certificate Private Key as a base64 encoded PFX or PEM. Changing this forces a new resource to be created. // // > **Note:** One of `certificateBlobBase64` and `certificateKeyVault` must be set. CertificateBlobBase64 *string `pulumi:"certificateBlobBase64"` // A `certificateKeyVault` block as defined below. Changing this forces a new resource to be created. // // > **Note:** one of `certificateBlobBase64` and `certificateKeyVault` must be set. CertificateKeyVault *EnvironmentCertificateCertificateKeyVault `pulumi:"certificateKeyVault"` // The password for the Certificate. Changing this forces a new resource to be created. // // > **Note:** required if `certificateBlobBase64` is specified. CertificatePassword *string `pulumi:"certificatePassword"` // The Container App Managed Environment ID to configure this Certificate on. Changing this forces a new resource to be created. ContainerAppEnvironmentId *string `pulumi:"containerAppEnvironmentId"` // The expiration date for the Certificate. ExpirationDate *string `pulumi:"expirationDate"` // The date of issue for the Certificate. IssueDate *string `pulumi:"issueDate"` // The Certificate Issuer. Issuer *string `pulumi:"issuer"` // The name of the Container Apps Environment Certificate. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // The Subject Name for the Certificate. SubjectName *string `pulumi:"subjectName"` // A mapping of tags to assign to the resource. Tags map[string]string `pulumi:"tags"` // The Thumbprint of the Certificate. Thumbprint *string `pulumi:"thumbprint"` } type EnvironmentCertificateState struct { // The Certificate Private Key as a base64 encoded PFX or PEM. Changing this forces a new resource to be created. // // > **Note:** One of `certificateBlobBase64` and `certificateKeyVault` must be set. CertificateBlobBase64 pulumi.StringPtrInput // A `certificateKeyVault` block as defined below. Changing this forces a new resource to be created. // // > **Note:** one of `certificateBlobBase64` and `certificateKeyVault` must be set. CertificateKeyVault EnvironmentCertificateCertificateKeyVaultPtrInput // The password for the Certificate. Changing this forces a new resource to be created. // // > **Note:** required if `certificateBlobBase64` is specified. CertificatePassword pulumi.StringPtrInput // The Container App Managed Environment ID to configure this Certificate on. Changing this forces a new resource to be created. ContainerAppEnvironmentId pulumi.StringPtrInput // The expiration date for the Certificate. ExpirationDate pulumi.StringPtrInput // The date of issue for the Certificate. IssueDate pulumi.StringPtrInput // The Certificate Issuer. Issuer pulumi.StringPtrInput // The name of the Container Apps Environment Certificate. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // The Subject Name for the Certificate. SubjectName pulumi.StringPtrInput // A mapping of tags to assign to the resource. Tags pulumi.StringMapInput // The Thumbprint of the Certificate. Thumbprint pulumi.StringPtrInput } func (EnvironmentCertificateState) ElementType() reflect.Type { return reflect.TypeOf((*environmentCertificateState)(nil)).Elem() } type environmentCertificateArgs struct { // The Certificate Private Key as a base64 encoded PFX or PEM. Changing this forces a new resource to be created. // // > **Note:** One of `certificateBlobBase64` and `certificateKeyVault` must be set. CertificateBlobBase64 *string `pulumi:"certificateBlobBase64"` // A `certificateKeyVault` block as defined below. Changing this forces a new resource to be created. // // > **Note:** one of `certificateBlobBase64` and `certificateKeyVault` must be set. CertificateKeyVault *EnvironmentCertificateCertificateKeyVault `pulumi:"certificateKeyVault"` // The password for the Certificate. Changing this forces a new resource to be created. // // > **Note:** required if `certificateBlobBase64` is specified. CertificatePassword *string `pulumi:"certificatePassword"` // The Container App Managed Environment ID to configure this Certificate on. Changing this forces a new resource to be created. ContainerAppEnvironmentId string `pulumi:"containerAppEnvironmentId"` // The name of the Container Apps Environment Certificate. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // A mapping of tags to assign to the resource. Tags map[string]string `pulumi:"tags"` } // The set of arguments for constructing a EnvironmentCertificate resource. type EnvironmentCertificateArgs struct { // The Certificate Private Key as a base64 encoded PFX or PEM. Changing this forces a new resource to be created. // // > **Note:** One of `certificateBlobBase64` and `certificateKeyVault` must be set. CertificateBlobBase64 pulumi.StringPtrInput // A `certificateKeyVault` block as defined below. Changing this forces a new resource to be created. // // > **Note:** one of `certificateBlobBase64` and `certificateKeyVault` must be set. CertificateKeyVault EnvironmentCertificateCertificateKeyVaultPtrInput // The password for the Certificate. Changing this forces a new resource to be created. // // > **Note:** required if `certificateBlobBase64` is specified. CertificatePassword pulumi.StringPtrInput // The Container App Managed Environment ID to configure this Certificate on. Changing this forces a new resource to be created. ContainerAppEnvironmentId pulumi.StringInput // The name of the Container Apps Environment Certificate. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // A mapping of tags to assign to the resource. Tags pulumi.StringMapInput } func (EnvironmentCertificateArgs) ElementType() reflect.Type { return reflect.TypeOf((*environmentCertificateArgs)(nil)).Elem() } type EnvironmentCertificateInput interface { pulumi.Input ToEnvironmentCertificateOutput() EnvironmentCertificateOutput ToEnvironmentCertificateOutputWithContext(ctx context.Context) EnvironmentCertificateOutput } func (*EnvironmentCertificate) ElementType() reflect.Type { return reflect.TypeOf((**EnvironmentCertificate)(nil)).Elem() } func (i *EnvironmentCertificate) ToEnvironmentCertificateOutput() EnvironmentCertificateOutput { return i.ToEnvironmentCertificateOutputWithContext(context.Background()) } func (i *EnvironmentCertificate) ToEnvironmentCertificateOutputWithContext(ctx context.Context) EnvironmentCertificateOutput { return pulumi.ToOutputWithContext(ctx, i).(EnvironmentCertificateOutput) } // EnvironmentCertificateArrayInput is an input type that accepts EnvironmentCertificateArray and EnvironmentCertificateArrayOutput values. // You can construct a concrete instance of `EnvironmentCertificateArrayInput` via: // // EnvironmentCertificateArray{ EnvironmentCertificateArgs{...} } type EnvironmentCertificateArrayInput interface { pulumi.Input ToEnvironmentCertificateArrayOutput() EnvironmentCertificateArrayOutput ToEnvironmentCertificateArrayOutputWithContext(context.Context) EnvironmentCertificateArrayOutput } type EnvironmentCertificateArray []EnvironmentCertificateInput func (EnvironmentCertificateArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*EnvironmentCertificate)(nil)).Elem() } func (i EnvironmentCertificateArray) ToEnvironmentCertificateArrayOutput() EnvironmentCertificateArrayOutput { return i.ToEnvironmentCertificateArrayOutputWithContext(context.Background()) } func (i EnvironmentCertificateArray) ToEnvironmentCertificateArrayOutputWithContext(ctx context.Context) EnvironmentCertificateArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(EnvironmentCertificateArrayOutput) } // EnvironmentCertificateMapInput is an input type that accepts EnvironmentCertificateMap and EnvironmentCertificateMapOutput values. // You can construct a concrete instance of `EnvironmentCertificateMapInput` via: // // EnvironmentCertificateMap{ "key": EnvironmentCertificateArgs{...} } type EnvironmentCertificateMapInput interface { pulumi.Input ToEnvironmentCertificateMapOutput() EnvironmentCertificateMapOutput ToEnvironmentCertificateMapOutputWithContext(context.Context) EnvironmentCertificateMapOutput } type EnvironmentCertificateMap map[string]EnvironmentCertificateInput func (EnvironmentCertificateMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*EnvironmentCertificate)(nil)).Elem() } func (i EnvironmentCertificateMap) ToEnvironmentCertificateMapOutput() EnvironmentCertificateMapOutput { return i.ToEnvironmentCertificateMapOutputWithContext(context.Background()) } func (i EnvironmentCertificateMap) ToEnvironmentCertificateMapOutputWithContext(ctx context.Context) EnvironmentCertificateMapOutput { return pulumi.ToOutputWithContext(ctx, i).(EnvironmentCertificateMapOutput) } type EnvironmentCertificateOutput struct{ *pulumi.OutputState } func (EnvironmentCertificateOutput) ElementType() reflect.Type { return reflect.TypeOf((**EnvironmentCertificate)(nil)).Elem() } func (o EnvironmentCertificateOutput) ToEnvironmentCertificateOutput() EnvironmentCertificateOutput { return o } func (o EnvironmentCertificateOutput) ToEnvironmentCertificateOutputWithContext(ctx context.Context) EnvironmentCertificateOutput { return o } // The Certificate Private Key as a base64 encoded PFX or PEM. Changing this forces a new resource to be created. // // > **Note:** One of `certificateBlobBase64` and `certificateKeyVault` must be set. func (o EnvironmentCertificateOutput) CertificateBlobBase64() pulumi.StringPtrOutput { return o.ApplyT(func(v *EnvironmentCertificate) pulumi.StringPtrOutput { return v.CertificateBlobBase64 }).(pulumi.StringPtrOutput) } // A `certificateKeyVault` block as defined below. Changing this forces a new resource to be created. // // > **Note:** one of `certificateBlobBase64` and `certificateKeyVault` must be set. func (o EnvironmentCertificateOutput) CertificateKeyVault() EnvironmentCertificateCertificateKeyVaultPtrOutput { return o.ApplyT(func(v *EnvironmentCertificate) EnvironmentCertificateCertificateKeyVaultPtrOutput { return v.CertificateKeyVault }).(EnvironmentCertificateCertificateKeyVaultPtrOutput) } // The password for the Certificate. Changing this forces a new resource to be created. // // > **Note:** required if `certificateBlobBase64` is specified. func (o EnvironmentCertificateOutput) CertificatePassword() pulumi.StringPtrOutput { return o.ApplyT(func(v *EnvironmentCertificate) pulumi.StringPtrOutput { return v.CertificatePassword }).(pulumi.StringPtrOutput) } // The Container App Managed Environment ID to configure this Certificate on. Changing this forces a new resource to be created. func (o EnvironmentCertificateOutput) ContainerAppEnvironmentId() pulumi.StringOutput { return o.ApplyT(func(v *EnvironmentCertificate) pulumi.StringOutput { return v.ContainerAppEnvironmentId }).(pulumi.StringOutput) } // The expiration date for the Certificate. func (o EnvironmentCertificateOutput) ExpirationDate() pulumi.StringOutput { return o.ApplyT(func(v *EnvironmentCertificate) pulumi.StringOutput { return v.ExpirationDate }).(pulumi.StringOutput) } // The date of issue for the Certificate. func (o EnvironmentCertificateOutput) IssueDate() pulumi.StringOutput { return o.ApplyT(func(v *EnvironmentCertificate) pulumi.StringOutput { return v.IssueDate }).(pulumi.StringOutput) } // The Certificate Issuer. func (o EnvironmentCertificateOutput) Issuer() pulumi.StringOutput { return o.ApplyT(func(v *EnvironmentCertificate) pulumi.StringOutput { return v.Issuer }).(pulumi.StringOutput) } // The name of the Container Apps Environment Certificate. Changing this forces a new resource to be created. func (o EnvironmentCertificateOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *EnvironmentCertificate) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // The Subject Name for the Certificate. func (o EnvironmentCertificateOutput) SubjectName() pulumi.StringOutput { return o.ApplyT(func(v *EnvironmentCertificate) pulumi.StringOutput { return v.SubjectName }).(pulumi.StringOutput) } // A mapping of tags to assign to the resource. func (o EnvironmentCertificateOutput) Tags() pulumi.StringMapOutput { return o.ApplyT(func(v *EnvironmentCertificate) pulumi.StringMapOutput { return v.Tags }).(pulumi.StringMapOutput) } // The Thumbprint of the Certificate. func (o EnvironmentCertificateOutput) Thumbprint() pulumi.StringOutput { return o.ApplyT(func(v *EnvironmentCertificate) pulumi.StringOutput { return v.Thumbprint }).(pulumi.StringOutput) } type EnvironmentCertificateArrayOutput struct{ *pulumi.OutputState } func (EnvironmentCertificateArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*EnvironmentCertificate)(nil)).Elem() } func (o EnvironmentCertificateArrayOutput) ToEnvironmentCertificateArrayOutput() EnvironmentCertificateArrayOutput { return o } func (o EnvironmentCertificateArrayOutput) ToEnvironmentCertificateArrayOutputWithContext(ctx context.Context) EnvironmentCertificateArrayOutput { return o } func (o EnvironmentCertificateArrayOutput) Index(i pulumi.IntInput) EnvironmentCertificateOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *EnvironmentCertificate { return vs[0].([]*EnvironmentCertificate)[vs[1].(int)] }).(EnvironmentCertificateOutput) } type EnvironmentCertificateMapOutput struct{ *pulumi.OutputState } func (EnvironmentCertificateMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*EnvironmentCertificate)(nil)).Elem() } func (o EnvironmentCertificateMapOutput) ToEnvironmentCertificateMapOutput() EnvironmentCertificateMapOutput { return o } func (o EnvironmentCertificateMapOutput) ToEnvironmentCertificateMapOutputWithContext(ctx context.Context) EnvironmentCertificateMapOutput { return o } func (o EnvironmentCertificateMapOutput) MapIndex(k pulumi.StringInput) EnvironmentCertificateOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *EnvironmentCertificate { return vs[0].(map[string]*EnvironmentCertificate)[vs[1].(string)] }).(EnvironmentCertificateOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*EnvironmentCertificateInput)(nil)).Elem(), &EnvironmentCertificate{}) pulumi.RegisterInputType(reflect.TypeOf((*EnvironmentCertificateArrayInput)(nil)).Elem(), EnvironmentCertificateArray{}) pulumi.RegisterInputType(reflect.TypeOf((*EnvironmentCertificateMapInput)(nil)).Elem(), EnvironmentCertificateMap{}) pulumi.RegisterOutputType(EnvironmentCertificateOutput{}) pulumi.RegisterOutputType(EnvironmentCertificateArrayOutput{}) pulumi.RegisterOutputType(EnvironmentCertificateMapOutput{}) }
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/containerapp/environmentDaprComponent.go
sdk/go/azure/containerapp/environmentDaprComponent.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 containerapp import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a Dapr Component for a Container App Environment. // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/containerapp" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/operationalinsights" // "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 // } // exampleAnalyticsWorkspace, err := operationalinsights.NewAnalyticsWorkspace(ctx, "example", &operationalinsights.AnalyticsWorkspaceArgs{ // Name: pulumi.String("acctest-01"), // Location: example.Location, // ResourceGroupName: example.Name, // Sku: pulumi.String("PerGB2018"), // RetentionInDays: pulumi.Int(30), // }) // if err != nil { // return err // } // exampleEnvironment, err := containerapp.NewEnvironment(ctx, "example", &containerapp.EnvironmentArgs{ // Name: pulumi.String("Example-Environment"), // Location: example.Location, // ResourceGroupName: example.Name, // LogAnalyticsWorkspaceId: exampleAnalyticsWorkspace.ID(), // }) // if err != nil { // return err // } // _, err = containerapp.NewEnvironmentDaprComponent(ctx, "example", &containerapp.EnvironmentDaprComponentArgs{ // Name: pulumi.String("example-component"), // ContainerAppEnvironmentId: exampleEnvironment.ID(), // ComponentType: pulumi.String("state.azure.blobstorage"), // Version: pulumi.String("v1"), // }) // 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.App` - 2025-07-01 // // ## Import // // A Dapr Component for a Container App Environment can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:containerapp/environmentDaprComponent:EnvironmentDaprComponent example "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resGroup1/providers/Microsoft.App/managedEnvironments/myenv/daprComponents/mydaprcomponent" // ``` type EnvironmentDaprComponent struct { pulumi.CustomResourceState // The Dapr Component Type. For example `state.azure.blobstorage`. Changing this forces a new resource to be created. ComponentType pulumi.StringOutput `pulumi:"componentType"` // The ID of the Container App Managed Environment for this Dapr Component. Changing this forces a new resource to be created. ContainerAppEnvironmentId pulumi.StringOutput `pulumi:"containerAppEnvironmentId"` // Should the Dapr sidecar to continue initialisation if the component fails to load. Defaults to `false` IgnoreErrors pulumi.BoolPtrOutput `pulumi:"ignoreErrors"` // The timeout for component initialisation as a `ISO8601` formatted string. e.g. `5s`, `2h`, `1m`. Defaults to `5s`. InitTimeout pulumi.StringPtrOutput `pulumi:"initTimeout"` // One or more `metadata` blocks as detailed below. Metadatas EnvironmentDaprComponentMetadataArrayOutput `pulumi:"metadatas"` // The name for this Dapr component. Changing this forces a new resource to be created. Name pulumi.StringOutput `pulumi:"name"` // A list of scopes to which this component applies. // // > **Note:** See the official docs for more information at https://learn.microsoft.com/en-us/azure/container-apps/dapr-overview?tabs=bicep1%2Cyaml#component-scopes Scopes pulumi.StringArrayOutput `pulumi:"scopes"` // A `secret` block as detailed below. Secrets EnvironmentDaprComponentSecretArrayOutput `pulumi:"secrets"` // The version of the component. Version pulumi.StringOutput `pulumi:"version"` } // NewEnvironmentDaprComponent registers a new resource with the given unique name, arguments, and options. func NewEnvironmentDaprComponent(ctx *pulumi.Context, name string, args *EnvironmentDaprComponentArgs, opts ...pulumi.ResourceOption) (*EnvironmentDaprComponent, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.ComponentType == nil { return nil, errors.New("invalid value for required argument 'ComponentType'") } if args.ContainerAppEnvironmentId == nil { return nil, errors.New("invalid value for required argument 'ContainerAppEnvironmentId'") } if args.Version == nil { return nil, errors.New("invalid value for required argument 'Version'") } if args.Secrets != nil { args.Secrets = pulumi.ToSecret(args.Secrets).(EnvironmentDaprComponentSecretArrayInput) } secrets := pulumi.AdditionalSecretOutputs([]string{ "secrets", }) opts = append(opts, secrets) opts = internal.PkgResourceDefaultOpts(opts) var resource EnvironmentDaprComponent err := ctx.RegisterResource("azure:containerapp/environmentDaprComponent:EnvironmentDaprComponent", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetEnvironmentDaprComponent gets an existing EnvironmentDaprComponent 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 GetEnvironmentDaprComponent(ctx *pulumi.Context, name string, id pulumi.IDInput, state *EnvironmentDaprComponentState, opts ...pulumi.ResourceOption) (*EnvironmentDaprComponent, error) { var resource EnvironmentDaprComponent err := ctx.ReadResource("azure:containerapp/environmentDaprComponent:EnvironmentDaprComponent", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering EnvironmentDaprComponent resources. type environmentDaprComponentState struct { // The Dapr Component Type. For example `state.azure.blobstorage`. Changing this forces a new resource to be created. ComponentType *string `pulumi:"componentType"` // The ID of the Container App Managed Environment for this Dapr Component. Changing this forces a new resource to be created. ContainerAppEnvironmentId *string `pulumi:"containerAppEnvironmentId"` // Should the Dapr sidecar to continue initialisation if the component fails to load. Defaults to `false` IgnoreErrors *bool `pulumi:"ignoreErrors"` // The timeout for component initialisation as a `ISO8601` formatted string. e.g. `5s`, `2h`, `1m`. Defaults to `5s`. InitTimeout *string `pulumi:"initTimeout"` // One or more `metadata` blocks as detailed below. Metadatas []EnvironmentDaprComponentMetadata `pulumi:"metadatas"` // The name for this Dapr component. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // A list of scopes to which this component applies. // // > **Note:** See the official docs for more information at https://learn.microsoft.com/en-us/azure/container-apps/dapr-overview?tabs=bicep1%2Cyaml#component-scopes Scopes []string `pulumi:"scopes"` // A `secret` block as detailed below. Secrets []EnvironmentDaprComponentSecret `pulumi:"secrets"` // The version of the component. Version *string `pulumi:"version"` } type EnvironmentDaprComponentState struct { // The Dapr Component Type. For example `state.azure.blobstorage`. Changing this forces a new resource to be created. ComponentType pulumi.StringPtrInput // The ID of the Container App Managed Environment for this Dapr Component. Changing this forces a new resource to be created. ContainerAppEnvironmentId pulumi.StringPtrInput // Should the Dapr sidecar to continue initialisation if the component fails to load. Defaults to `false` IgnoreErrors pulumi.BoolPtrInput // The timeout for component initialisation as a `ISO8601` formatted string. e.g. `5s`, `2h`, `1m`. Defaults to `5s`. InitTimeout pulumi.StringPtrInput // One or more `metadata` blocks as detailed below. Metadatas EnvironmentDaprComponentMetadataArrayInput // The name for this Dapr component. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // A list of scopes to which this component applies. // // > **Note:** See the official docs for more information at https://learn.microsoft.com/en-us/azure/container-apps/dapr-overview?tabs=bicep1%2Cyaml#component-scopes Scopes pulumi.StringArrayInput // A `secret` block as detailed below. Secrets EnvironmentDaprComponentSecretArrayInput // The version of the component. Version pulumi.StringPtrInput } func (EnvironmentDaprComponentState) ElementType() reflect.Type { return reflect.TypeOf((*environmentDaprComponentState)(nil)).Elem() } type environmentDaprComponentArgs struct { // The Dapr Component Type. For example `state.azure.blobstorage`. Changing this forces a new resource to be created. ComponentType string `pulumi:"componentType"` // The ID of the Container App Managed Environment for this Dapr Component. Changing this forces a new resource to be created. ContainerAppEnvironmentId string `pulumi:"containerAppEnvironmentId"` // Should the Dapr sidecar to continue initialisation if the component fails to load. Defaults to `false` IgnoreErrors *bool `pulumi:"ignoreErrors"` // The timeout for component initialisation as a `ISO8601` formatted string. e.g. `5s`, `2h`, `1m`. Defaults to `5s`. InitTimeout *string `pulumi:"initTimeout"` // One or more `metadata` blocks as detailed below. Metadatas []EnvironmentDaprComponentMetadata `pulumi:"metadatas"` // The name for this Dapr component. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // A list of scopes to which this component applies. // // > **Note:** See the official docs for more information at https://learn.microsoft.com/en-us/azure/container-apps/dapr-overview?tabs=bicep1%2Cyaml#component-scopes Scopes []string `pulumi:"scopes"` // A `secret` block as detailed below. Secrets []EnvironmentDaprComponentSecret `pulumi:"secrets"` // The version of the component. Version string `pulumi:"version"` } // The set of arguments for constructing a EnvironmentDaprComponent resource. type EnvironmentDaprComponentArgs struct { // The Dapr Component Type. For example `state.azure.blobstorage`. Changing this forces a new resource to be created. ComponentType pulumi.StringInput // The ID of the Container App Managed Environment for this Dapr Component. Changing this forces a new resource to be created. ContainerAppEnvironmentId pulumi.StringInput // Should the Dapr sidecar to continue initialisation if the component fails to load. Defaults to `false` IgnoreErrors pulumi.BoolPtrInput // The timeout for component initialisation as a `ISO8601` formatted string. e.g. `5s`, `2h`, `1m`. Defaults to `5s`. InitTimeout pulumi.StringPtrInput // One or more `metadata` blocks as detailed below. Metadatas EnvironmentDaprComponentMetadataArrayInput // The name for this Dapr component. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // A list of scopes to which this component applies. // // > **Note:** See the official docs for more information at https://learn.microsoft.com/en-us/azure/container-apps/dapr-overview?tabs=bicep1%2Cyaml#component-scopes Scopes pulumi.StringArrayInput // A `secret` block as detailed below. Secrets EnvironmentDaprComponentSecretArrayInput // The version of the component. Version pulumi.StringInput } func (EnvironmentDaprComponentArgs) ElementType() reflect.Type { return reflect.TypeOf((*environmentDaprComponentArgs)(nil)).Elem() } type EnvironmentDaprComponentInput interface { pulumi.Input ToEnvironmentDaprComponentOutput() EnvironmentDaprComponentOutput ToEnvironmentDaprComponentOutputWithContext(ctx context.Context) EnvironmentDaprComponentOutput } func (*EnvironmentDaprComponent) ElementType() reflect.Type { return reflect.TypeOf((**EnvironmentDaprComponent)(nil)).Elem() } func (i *EnvironmentDaprComponent) ToEnvironmentDaprComponentOutput() EnvironmentDaprComponentOutput { return i.ToEnvironmentDaprComponentOutputWithContext(context.Background()) } func (i *EnvironmentDaprComponent) ToEnvironmentDaprComponentOutputWithContext(ctx context.Context) EnvironmentDaprComponentOutput { return pulumi.ToOutputWithContext(ctx, i).(EnvironmentDaprComponentOutput) } // EnvironmentDaprComponentArrayInput is an input type that accepts EnvironmentDaprComponentArray and EnvironmentDaprComponentArrayOutput values. // You can construct a concrete instance of `EnvironmentDaprComponentArrayInput` via: // // EnvironmentDaprComponentArray{ EnvironmentDaprComponentArgs{...} } type EnvironmentDaprComponentArrayInput interface { pulumi.Input ToEnvironmentDaprComponentArrayOutput() EnvironmentDaprComponentArrayOutput ToEnvironmentDaprComponentArrayOutputWithContext(context.Context) EnvironmentDaprComponentArrayOutput } type EnvironmentDaprComponentArray []EnvironmentDaprComponentInput func (EnvironmentDaprComponentArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*EnvironmentDaprComponent)(nil)).Elem() } func (i EnvironmentDaprComponentArray) ToEnvironmentDaprComponentArrayOutput() EnvironmentDaprComponentArrayOutput { return i.ToEnvironmentDaprComponentArrayOutputWithContext(context.Background()) } func (i EnvironmentDaprComponentArray) ToEnvironmentDaprComponentArrayOutputWithContext(ctx context.Context) EnvironmentDaprComponentArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(EnvironmentDaprComponentArrayOutput) } // EnvironmentDaprComponentMapInput is an input type that accepts EnvironmentDaprComponentMap and EnvironmentDaprComponentMapOutput values. // You can construct a concrete instance of `EnvironmentDaprComponentMapInput` via: // // EnvironmentDaprComponentMap{ "key": EnvironmentDaprComponentArgs{...} } type EnvironmentDaprComponentMapInput interface { pulumi.Input ToEnvironmentDaprComponentMapOutput() EnvironmentDaprComponentMapOutput ToEnvironmentDaprComponentMapOutputWithContext(context.Context) EnvironmentDaprComponentMapOutput } type EnvironmentDaprComponentMap map[string]EnvironmentDaprComponentInput func (EnvironmentDaprComponentMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*EnvironmentDaprComponent)(nil)).Elem() } func (i EnvironmentDaprComponentMap) ToEnvironmentDaprComponentMapOutput() EnvironmentDaprComponentMapOutput { return i.ToEnvironmentDaprComponentMapOutputWithContext(context.Background()) } func (i EnvironmentDaprComponentMap) ToEnvironmentDaprComponentMapOutputWithContext(ctx context.Context) EnvironmentDaprComponentMapOutput { return pulumi.ToOutputWithContext(ctx, i).(EnvironmentDaprComponentMapOutput) } type EnvironmentDaprComponentOutput struct{ *pulumi.OutputState } func (EnvironmentDaprComponentOutput) ElementType() reflect.Type { return reflect.TypeOf((**EnvironmentDaprComponent)(nil)).Elem() } func (o EnvironmentDaprComponentOutput) ToEnvironmentDaprComponentOutput() EnvironmentDaprComponentOutput { return o } func (o EnvironmentDaprComponentOutput) ToEnvironmentDaprComponentOutputWithContext(ctx context.Context) EnvironmentDaprComponentOutput { return o } // The Dapr Component Type. For example `state.azure.blobstorage`. Changing this forces a new resource to be created. func (o EnvironmentDaprComponentOutput) ComponentType() pulumi.StringOutput { return o.ApplyT(func(v *EnvironmentDaprComponent) pulumi.StringOutput { return v.ComponentType }).(pulumi.StringOutput) } // The ID of the Container App Managed Environment for this Dapr Component. Changing this forces a new resource to be created. func (o EnvironmentDaprComponentOutput) ContainerAppEnvironmentId() pulumi.StringOutput { return o.ApplyT(func(v *EnvironmentDaprComponent) pulumi.StringOutput { return v.ContainerAppEnvironmentId }).(pulumi.StringOutput) } // Should the Dapr sidecar to continue initialisation if the component fails to load. Defaults to `false` func (o EnvironmentDaprComponentOutput) IgnoreErrors() pulumi.BoolPtrOutput { return o.ApplyT(func(v *EnvironmentDaprComponent) pulumi.BoolPtrOutput { return v.IgnoreErrors }).(pulumi.BoolPtrOutput) } // The timeout for component initialisation as a `ISO8601` formatted string. e.g. `5s`, `2h`, `1m`. Defaults to `5s`. func (o EnvironmentDaprComponentOutput) InitTimeout() pulumi.StringPtrOutput { return o.ApplyT(func(v *EnvironmentDaprComponent) pulumi.StringPtrOutput { return v.InitTimeout }).(pulumi.StringPtrOutput) } // One or more `metadata` blocks as detailed below. func (o EnvironmentDaprComponentOutput) Metadatas() EnvironmentDaprComponentMetadataArrayOutput { return o.ApplyT(func(v *EnvironmentDaprComponent) EnvironmentDaprComponentMetadataArrayOutput { return v.Metadatas }).(EnvironmentDaprComponentMetadataArrayOutput) } // The name for this Dapr component. Changing this forces a new resource to be created. func (o EnvironmentDaprComponentOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *EnvironmentDaprComponent) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // A list of scopes to which this component applies. // // > **Note:** See the official docs for more information at https://learn.microsoft.com/en-us/azure/container-apps/dapr-overview?tabs=bicep1%2Cyaml#component-scopes func (o EnvironmentDaprComponentOutput) Scopes() pulumi.StringArrayOutput { return o.ApplyT(func(v *EnvironmentDaprComponent) pulumi.StringArrayOutput { return v.Scopes }).(pulumi.StringArrayOutput) } // A `secret` block as detailed below. func (o EnvironmentDaprComponentOutput) Secrets() EnvironmentDaprComponentSecretArrayOutput { return o.ApplyT(func(v *EnvironmentDaprComponent) EnvironmentDaprComponentSecretArrayOutput { return v.Secrets }).(EnvironmentDaprComponentSecretArrayOutput) } // The version of the component. func (o EnvironmentDaprComponentOutput) Version() pulumi.StringOutput { return o.ApplyT(func(v *EnvironmentDaprComponent) pulumi.StringOutput { return v.Version }).(pulumi.StringOutput) } type EnvironmentDaprComponentArrayOutput struct{ *pulumi.OutputState } func (EnvironmentDaprComponentArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*EnvironmentDaprComponent)(nil)).Elem() } func (o EnvironmentDaprComponentArrayOutput) ToEnvironmentDaprComponentArrayOutput() EnvironmentDaprComponentArrayOutput { return o } func (o EnvironmentDaprComponentArrayOutput) ToEnvironmentDaprComponentArrayOutputWithContext(ctx context.Context) EnvironmentDaprComponentArrayOutput { return o } func (o EnvironmentDaprComponentArrayOutput) Index(i pulumi.IntInput) EnvironmentDaprComponentOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *EnvironmentDaprComponent { return vs[0].([]*EnvironmentDaprComponent)[vs[1].(int)] }).(EnvironmentDaprComponentOutput) } type EnvironmentDaprComponentMapOutput struct{ *pulumi.OutputState } func (EnvironmentDaprComponentMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*EnvironmentDaprComponent)(nil)).Elem() } func (o EnvironmentDaprComponentMapOutput) ToEnvironmentDaprComponentMapOutput() EnvironmentDaprComponentMapOutput { return o } func (o EnvironmentDaprComponentMapOutput) ToEnvironmentDaprComponentMapOutputWithContext(ctx context.Context) EnvironmentDaprComponentMapOutput { return o } func (o EnvironmentDaprComponentMapOutput) MapIndex(k pulumi.StringInput) EnvironmentDaprComponentOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *EnvironmentDaprComponent { return vs[0].(map[string]*EnvironmentDaprComponent)[vs[1].(string)] }).(EnvironmentDaprComponentOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*EnvironmentDaprComponentInput)(nil)).Elem(), &EnvironmentDaprComponent{}) pulumi.RegisterInputType(reflect.TypeOf((*EnvironmentDaprComponentArrayInput)(nil)).Elem(), EnvironmentDaprComponentArray{}) pulumi.RegisterInputType(reflect.TypeOf((*EnvironmentDaprComponentMapInput)(nil)).Elem(), EnvironmentDaprComponentMap{}) pulumi.RegisterOutputType(EnvironmentDaprComponentOutput{}) pulumi.RegisterOutputType(EnvironmentDaprComponentArrayOutput{}) pulumi.RegisterOutputType(EnvironmentDaprComponentMapOutput{}) }
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/containerapp/getEnvironmentCertificate.go
sdk/go/azure/containerapp/getEnvironmentCertificate.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 containerapp import ( "context" "reflect" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Use this data source to access information about an existing Container App Environment Certificate. // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/containerapp" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { // example, err := containerapp.LookupEnvironment(ctx, &containerapp.LookupEnvironmentArgs{ // Name: "example-environment", // ResourceGroupName: "example-resources", // }, nil) // if err != nil { // return err // } // _, err = containerapp.LookupEnvironmentCertificate(ctx, &containerapp.LookupEnvironmentCertificateArgs{ // Name: "mycertificate", // ContainerAppEnvironmentId: example.Id, // }, 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.App` - 2025-07-01 func LookupEnvironmentCertificate(ctx *pulumi.Context, args *LookupEnvironmentCertificateArgs, opts ...pulumi.InvokeOption) (*LookupEnvironmentCertificateResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupEnvironmentCertificateResult err := ctx.Invoke("azure:containerapp/getEnvironmentCertificate:getEnvironmentCertificate", args, &rv, opts...) if err != nil { return nil, err } return &rv, nil } // A collection of arguments for invoking getEnvironmentCertificate. type LookupEnvironmentCertificateArgs struct { // The ID of the Container App Environment to configure this Certificate on. Changing this forces a new resource to be created. ContainerAppEnvironmentId string `pulumi:"containerAppEnvironmentId"` // The name of the Container Apps Certificate. Changing this forces a new resource to be created. Name string `pulumi:"name"` } // A collection of values returned by getEnvironmentCertificate. type LookupEnvironmentCertificateResult struct { ContainerAppEnvironmentId string `pulumi:"containerAppEnvironmentId"` // The expiration date for the Certificate. ExpirationDate string `pulumi:"expirationDate"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` // The date of issue for the Certificate. IssueDate string `pulumi:"issueDate"` // The Certificate Issuer. Issuer string `pulumi:"issuer"` Name string `pulumi:"name"` // The Subject Name for the Certificate. SubjectName string `pulumi:"subjectName"` // A mapping of tags assigned to the resource. Tags map[string]string `pulumi:"tags"` // The Thumbprint of the Certificate. Thumbprint string `pulumi:"thumbprint"` } func LookupEnvironmentCertificateOutput(ctx *pulumi.Context, args LookupEnvironmentCertificateOutputArgs, opts ...pulumi.InvokeOption) LookupEnvironmentCertificateResultOutput { return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupEnvironmentCertificateResultOutput, error) { args := v.(LookupEnvironmentCertificateArgs) options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} return ctx.InvokeOutput("azure:containerapp/getEnvironmentCertificate:getEnvironmentCertificate", args, LookupEnvironmentCertificateResultOutput{}, options).(LookupEnvironmentCertificateResultOutput), nil }).(LookupEnvironmentCertificateResultOutput) } // A collection of arguments for invoking getEnvironmentCertificate. type LookupEnvironmentCertificateOutputArgs struct { // The ID of the Container App Environment to configure this Certificate on. Changing this forces a new resource to be created. ContainerAppEnvironmentId pulumi.StringInput `pulumi:"containerAppEnvironmentId"` // The name of the Container Apps Certificate. Changing this forces a new resource to be created. Name pulumi.StringInput `pulumi:"name"` } func (LookupEnvironmentCertificateOutputArgs) ElementType() reflect.Type { return reflect.TypeOf((*LookupEnvironmentCertificateArgs)(nil)).Elem() } // A collection of values returned by getEnvironmentCertificate. type LookupEnvironmentCertificateResultOutput struct{ *pulumi.OutputState } func (LookupEnvironmentCertificateResultOutput) ElementType() reflect.Type { return reflect.TypeOf((*LookupEnvironmentCertificateResult)(nil)).Elem() } func (o LookupEnvironmentCertificateResultOutput) ToLookupEnvironmentCertificateResultOutput() LookupEnvironmentCertificateResultOutput { return o } func (o LookupEnvironmentCertificateResultOutput) ToLookupEnvironmentCertificateResultOutputWithContext(ctx context.Context) LookupEnvironmentCertificateResultOutput { return o } func (o LookupEnvironmentCertificateResultOutput) ContainerAppEnvironmentId() pulumi.StringOutput { return o.ApplyT(func(v LookupEnvironmentCertificateResult) string { return v.ContainerAppEnvironmentId }).(pulumi.StringOutput) } // The expiration date for the Certificate. func (o LookupEnvironmentCertificateResultOutput) ExpirationDate() pulumi.StringOutput { return o.ApplyT(func(v LookupEnvironmentCertificateResult) string { return v.ExpirationDate }).(pulumi.StringOutput) } // The provider-assigned unique ID for this managed resource. func (o LookupEnvironmentCertificateResultOutput) Id() pulumi.StringOutput { return o.ApplyT(func(v LookupEnvironmentCertificateResult) string { return v.Id }).(pulumi.StringOutput) } // The date of issue for the Certificate. func (o LookupEnvironmentCertificateResultOutput) IssueDate() pulumi.StringOutput { return o.ApplyT(func(v LookupEnvironmentCertificateResult) string { return v.IssueDate }).(pulumi.StringOutput) } // The Certificate Issuer. func (o LookupEnvironmentCertificateResultOutput) Issuer() pulumi.StringOutput { return o.ApplyT(func(v LookupEnvironmentCertificateResult) string { return v.Issuer }).(pulumi.StringOutput) } func (o LookupEnvironmentCertificateResultOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v LookupEnvironmentCertificateResult) string { return v.Name }).(pulumi.StringOutput) } // The Subject Name for the Certificate. func (o LookupEnvironmentCertificateResultOutput) SubjectName() pulumi.StringOutput { return o.ApplyT(func(v LookupEnvironmentCertificateResult) string { return v.SubjectName }).(pulumi.StringOutput) } // A mapping of tags assigned to the resource. func (o LookupEnvironmentCertificateResultOutput) Tags() pulumi.StringMapOutput { return o.ApplyT(func(v LookupEnvironmentCertificateResult) map[string]string { return v.Tags }).(pulumi.StringMapOutput) } // The Thumbprint of the Certificate. func (o LookupEnvironmentCertificateResultOutput) Thumbprint() pulumi.StringOutput { return o.ApplyT(func(v LookupEnvironmentCertificateResult) string { return v.Thumbprint }).(pulumi.StringOutput) } func init() { pulumi.RegisterOutputType(LookupEnvironmentCertificateResultOutput{}) }
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/containerapp/customDomain.go
sdk/go/azure/containerapp/customDomain.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 containerapp import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a Container App Custom Domain. // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/containerapp" // "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/operationalinsights" // "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 // } // exampleZone, err := dns.NewZone(ctx, "example", &dns.ZoneArgs{ // Name: pulumi.String("contoso.com"), // ResourceGroupName: example.Name, // }) // if err != nil { // return err // } // exampleAnalyticsWorkspace, err := operationalinsights.NewAnalyticsWorkspace(ctx, "example", &operationalinsights.AnalyticsWorkspaceArgs{ // Name: pulumi.String("example"), // Location: example.Location, // ResourceGroupName: example.Name, // Sku: pulumi.String("PerGB2018"), // RetentionInDays: pulumi.Int(30), // }) // if err != nil { // return err // } // exampleEnvironment, err := containerapp.NewEnvironment(ctx, "example", &containerapp.EnvironmentArgs{ // Name: pulumi.String("Example-Environment"), // Location: example.Location, // ResourceGroupName: example.Name, // LogAnalyticsWorkspaceId: exampleAnalyticsWorkspace.ID(), // }) // if err != nil { // return err // } // exampleApp, err := containerapp.NewApp(ctx, "example", &containerapp.AppArgs{ // Name: pulumi.String("example-app"), // ContainerAppEnvironmentId: exampleEnvironment.ID(), // ResourceGroupName: example.Name, // RevisionMode: pulumi.String("Single"), // Template: &containerapp.AppTemplateArgs{ // Containers: containerapp.AppTemplateContainerArray{ // &containerapp.AppTemplateContainerArgs{ // Name: pulumi.String("examplecontainerapp"), // Image: pulumi.String("mcr.microsoft.com/k8se/quickstart:latest"), // Cpu: pulumi.Float64(0.25), // Memory: pulumi.String("0.5Gi"), // }, // }, // }, // Ingress: &containerapp.AppIngressArgs{ // AllowInsecureConnections: pulumi.Bool(false), // ExternalEnabled: pulumi.Bool(true), // TargetPort: pulumi.Int(5000), // Transport: pulumi.String("http"), // TrafficWeights: containerapp.AppIngressTrafficWeightArray{ // &containerapp.AppIngressTrafficWeightArgs{ // LatestRevision: pulumi.Bool(true), // Percentage: pulumi.Int(100), // }, // }, // }, // }) // if err != nil { // return err // } // _, err = dns.NewTxtRecord(ctx, "example", &dns.TxtRecordArgs{ // Name: pulumi.String("asuid.example"), // ResourceGroupName: exampleZone.ResourceGroupName, // ZoneName: exampleZone.Name, // Ttl: pulumi.Int(300), // Records: dns.TxtRecordRecordArray{ // &dns.TxtRecordRecordArgs{ // Value: exampleApp.CustomDomainVerificationId, // }, // }, // }) // if err != nil { // return err // } // invokeFilebase64, err := std.Filebase64(ctx, &std.Filebase64Args{ // Input: "path/to/certificate_file.pfx", // }, nil) // if err != nil { // return err // } // exampleEnvironmentCertificate, err := containerapp.NewEnvironmentCertificate(ctx, "example", &containerapp.EnvironmentCertificateArgs{ // Name: pulumi.String("myfriendlyname"), // ContainerAppEnvironmentId: exampleEnvironment.ID(), // CertificateBlob: invokeFilebase64.Result, // CertificatePassword: pulumi.String("$3cretSqu1rreL"), // }) // if err != nil { // return err // } // invokeTrimsuffix1, err := std.Trimsuffix(ctx, &std.TrimsuffixArgs{ // Input: std.Trimprefix(ctx, &std.TrimprefixArgs{ // Input: api.Fqdn, // Prefix: "asuid.", // }, nil).Result, // Suffix: ".", // }, nil) // if err != nil { // return err // } // _, err = containerapp.NewCustomDomain(ctx, "example", &containerapp.CustomDomainArgs{ // Name: pulumi.String(invokeTrimsuffix1.Result), // ContainerAppId: exampleApp.ID(), // ContainerAppEnvironmentCertificateId: exampleEnvironmentCertificate.ID(), // CertificateBindingType: pulumi.String("SniEnabled"), // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ### Managed Certificate // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/containerapp" // "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 { // invokeTrimsuffix, err := std.Trimsuffix(ctx, &std.TrimsuffixArgs{ // Input: std.Trimprefix(ctx, &std.TrimprefixArgs{ // Input: api.Fqdn, // Prefix: "asuid.", // }, nil).Result, // Suffix: ".", // }, nil) // if err != nil { // return err // } // _, err = containerapp.NewCustomDomain(ctx, "example", &containerapp.CustomDomainArgs{ // Name: pulumi.String(invokeTrimsuffix.Result), // ContainerAppId: pulumi.Any(exampleAzurermContainerApp.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.App` - 2025-07-01 // // ## Import // // A Container App Custom Domain can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:containerapp/customDomain:CustomDomain example "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resGroup1/providers/Microsoft.App/containerApps/myContainerApp/customDomainName/mycustomdomain.example.com" // ``` type CustomDomain struct { pulumi.CustomResourceState // The Binding type. Possible values include `Disabled` and `SniEnabled`. CertificateBindingType pulumi.StringPtrOutput `pulumi:"certificateBindingType"` // The ID of the Container App Environment Certificate to use. Changing this forces a new resource to be created. // // > **Note:** Omit this value if you wish to use an Azure Managed certificate. You must create the relevant DNS verification steps before this process will be successful. ContainerAppEnvironmentCertificateId pulumi.StringPtrOutput `pulumi:"containerAppEnvironmentCertificateId"` // The ID of the Container App Environment Managed Certificate to use. ContainerAppEnvironmentManagedCertificateId pulumi.StringOutput `pulumi:"containerAppEnvironmentManagedCertificateId"` // The ID of the Container App to which this Custom Domain should be bound. Changing this forces a new resource to be created. ContainerAppId pulumi.StringOutput `pulumi:"containerAppId"` // The fully qualified name of the Custom Domain. Must be the CN or a named SAN in the certificate specified by the `containerAppEnvironmentCertificateId`. Changing this forces a new resource to be created. // // > **Note:** The Custom Domain verification TXT record requires a prefix of `asuid.`, however, this must be trimmed from the `name` property here. See the [official docs](https://learn.microsoft.com/en-us/azure/container-apps/custom-domains-certificates) for more information. Name pulumi.StringOutput `pulumi:"name"` } // NewCustomDomain registers a new resource with the given unique name, arguments, and options. func NewCustomDomain(ctx *pulumi.Context, name string, args *CustomDomainArgs, opts ...pulumi.ResourceOption) (*CustomDomain, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.ContainerAppId == nil { return nil, errors.New("invalid value for required argument 'ContainerAppId'") } opts = internal.PkgResourceDefaultOpts(opts) var resource CustomDomain err := ctx.RegisterResource("azure:containerapp/customDomain:CustomDomain", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetCustomDomain gets an existing CustomDomain 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 GetCustomDomain(ctx *pulumi.Context, name string, id pulumi.IDInput, state *CustomDomainState, opts ...pulumi.ResourceOption) (*CustomDomain, error) { var resource CustomDomain err := ctx.ReadResource("azure:containerapp/customDomain:CustomDomain", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering CustomDomain resources. type customDomainState struct { // The Binding type. Possible values include `Disabled` and `SniEnabled`. CertificateBindingType *string `pulumi:"certificateBindingType"` // The ID of the Container App Environment Certificate to use. Changing this forces a new resource to be created. // // > **Note:** Omit this value if you wish to use an Azure Managed certificate. You must create the relevant DNS verification steps before this process will be successful. ContainerAppEnvironmentCertificateId *string `pulumi:"containerAppEnvironmentCertificateId"` // The ID of the Container App Environment Managed Certificate to use. ContainerAppEnvironmentManagedCertificateId *string `pulumi:"containerAppEnvironmentManagedCertificateId"` // The ID of the Container App to which this Custom Domain should be bound. Changing this forces a new resource to be created. ContainerAppId *string `pulumi:"containerAppId"` // The fully qualified name of the Custom Domain. Must be the CN or a named SAN in the certificate specified by the `containerAppEnvironmentCertificateId`. Changing this forces a new resource to be created. // // > **Note:** The Custom Domain verification TXT record requires a prefix of `asuid.`, however, this must be trimmed from the `name` property here. See the [official docs](https://learn.microsoft.com/en-us/azure/container-apps/custom-domains-certificates) for more information. Name *string `pulumi:"name"` } type CustomDomainState struct { // The Binding type. Possible values include `Disabled` and `SniEnabled`. CertificateBindingType pulumi.StringPtrInput // The ID of the Container App Environment Certificate to use. Changing this forces a new resource to be created. // // > **Note:** Omit this value if you wish to use an Azure Managed certificate. You must create the relevant DNS verification steps before this process will be successful. ContainerAppEnvironmentCertificateId pulumi.StringPtrInput // The ID of the Container App Environment Managed Certificate to use. ContainerAppEnvironmentManagedCertificateId pulumi.StringPtrInput // The ID of the Container App to which this Custom Domain should be bound. Changing this forces a new resource to be created. ContainerAppId pulumi.StringPtrInput // The fully qualified name of the Custom Domain. Must be the CN or a named SAN in the certificate specified by the `containerAppEnvironmentCertificateId`. Changing this forces a new resource to be created. // // > **Note:** The Custom Domain verification TXT record requires a prefix of `asuid.`, however, this must be trimmed from the `name` property here. See the [official docs](https://learn.microsoft.com/en-us/azure/container-apps/custom-domains-certificates) for more information. Name pulumi.StringPtrInput } func (CustomDomainState) ElementType() reflect.Type { return reflect.TypeOf((*customDomainState)(nil)).Elem() } type customDomainArgs struct { // The Binding type. Possible values include `Disabled` and `SniEnabled`. CertificateBindingType *string `pulumi:"certificateBindingType"` // The ID of the Container App Environment Certificate to use. Changing this forces a new resource to be created. // // > **Note:** Omit this value if you wish to use an Azure Managed certificate. You must create the relevant DNS verification steps before this process will be successful. ContainerAppEnvironmentCertificateId *string `pulumi:"containerAppEnvironmentCertificateId"` // The ID of the Container App to which this Custom Domain should be bound. Changing this forces a new resource to be created. ContainerAppId string `pulumi:"containerAppId"` // The fully qualified name of the Custom Domain. Must be the CN or a named SAN in the certificate specified by the `containerAppEnvironmentCertificateId`. Changing this forces a new resource to be created. // // > **Note:** The Custom Domain verification TXT record requires a prefix of `asuid.`, however, this must be trimmed from the `name` property here. See the [official docs](https://learn.microsoft.com/en-us/azure/container-apps/custom-domains-certificates) for more information. Name *string `pulumi:"name"` } // The set of arguments for constructing a CustomDomain resource. type CustomDomainArgs struct { // The Binding type. Possible values include `Disabled` and `SniEnabled`. CertificateBindingType pulumi.StringPtrInput // The ID of the Container App Environment Certificate to use. Changing this forces a new resource to be created. // // > **Note:** Omit this value if you wish to use an Azure Managed certificate. You must create the relevant DNS verification steps before this process will be successful. ContainerAppEnvironmentCertificateId pulumi.StringPtrInput // The ID of the Container App to which this Custom Domain should be bound. Changing this forces a new resource to be created. ContainerAppId pulumi.StringInput // The fully qualified name of the Custom Domain. Must be the CN or a named SAN in the certificate specified by the `containerAppEnvironmentCertificateId`. Changing this forces a new resource to be created. // // > **Note:** The Custom Domain verification TXT record requires a prefix of `asuid.`, however, this must be trimmed from the `name` property here. See the [official docs](https://learn.microsoft.com/en-us/azure/container-apps/custom-domains-certificates) for more information. Name pulumi.StringPtrInput } func (CustomDomainArgs) ElementType() reflect.Type { return reflect.TypeOf((*customDomainArgs)(nil)).Elem() } type CustomDomainInput interface { pulumi.Input ToCustomDomainOutput() CustomDomainOutput ToCustomDomainOutputWithContext(ctx context.Context) CustomDomainOutput } func (*CustomDomain) ElementType() reflect.Type { return reflect.TypeOf((**CustomDomain)(nil)).Elem() } func (i *CustomDomain) ToCustomDomainOutput() CustomDomainOutput { return i.ToCustomDomainOutputWithContext(context.Background()) } func (i *CustomDomain) ToCustomDomainOutputWithContext(ctx context.Context) CustomDomainOutput { return pulumi.ToOutputWithContext(ctx, i).(CustomDomainOutput) } // CustomDomainArrayInput is an input type that accepts CustomDomainArray and CustomDomainArrayOutput values. // You can construct a concrete instance of `CustomDomainArrayInput` via: // // CustomDomainArray{ CustomDomainArgs{...} } type CustomDomainArrayInput interface { pulumi.Input ToCustomDomainArrayOutput() CustomDomainArrayOutput ToCustomDomainArrayOutputWithContext(context.Context) CustomDomainArrayOutput } type CustomDomainArray []CustomDomainInput func (CustomDomainArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*CustomDomain)(nil)).Elem() } func (i CustomDomainArray) ToCustomDomainArrayOutput() CustomDomainArrayOutput { return i.ToCustomDomainArrayOutputWithContext(context.Background()) } func (i CustomDomainArray) ToCustomDomainArrayOutputWithContext(ctx context.Context) CustomDomainArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(CustomDomainArrayOutput) } // CustomDomainMapInput is an input type that accepts CustomDomainMap and CustomDomainMapOutput values. // You can construct a concrete instance of `CustomDomainMapInput` via: // // CustomDomainMap{ "key": CustomDomainArgs{...} } type CustomDomainMapInput interface { pulumi.Input ToCustomDomainMapOutput() CustomDomainMapOutput ToCustomDomainMapOutputWithContext(context.Context) CustomDomainMapOutput } type CustomDomainMap map[string]CustomDomainInput func (CustomDomainMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*CustomDomain)(nil)).Elem() } func (i CustomDomainMap) ToCustomDomainMapOutput() CustomDomainMapOutput { return i.ToCustomDomainMapOutputWithContext(context.Background()) } func (i CustomDomainMap) ToCustomDomainMapOutputWithContext(ctx context.Context) CustomDomainMapOutput { return pulumi.ToOutputWithContext(ctx, i).(CustomDomainMapOutput) } type CustomDomainOutput struct{ *pulumi.OutputState } func (CustomDomainOutput) ElementType() reflect.Type { return reflect.TypeOf((**CustomDomain)(nil)).Elem() } func (o CustomDomainOutput) ToCustomDomainOutput() CustomDomainOutput { return o } func (o CustomDomainOutput) ToCustomDomainOutputWithContext(ctx context.Context) CustomDomainOutput { return o } // The Binding type. Possible values include `Disabled` and `SniEnabled`. func (o CustomDomainOutput) CertificateBindingType() pulumi.StringPtrOutput { return o.ApplyT(func(v *CustomDomain) pulumi.StringPtrOutput { return v.CertificateBindingType }).(pulumi.StringPtrOutput) } // The ID of the Container App Environment Certificate to use. Changing this forces a new resource to be created. // // > **Note:** Omit this value if you wish to use an Azure Managed certificate. You must create the relevant DNS verification steps before this process will be successful. func (o CustomDomainOutput) ContainerAppEnvironmentCertificateId() pulumi.StringPtrOutput { return o.ApplyT(func(v *CustomDomain) pulumi.StringPtrOutput { return v.ContainerAppEnvironmentCertificateId }).(pulumi.StringPtrOutput) } // The ID of the Container App Environment Managed Certificate to use. func (o CustomDomainOutput) ContainerAppEnvironmentManagedCertificateId() pulumi.StringOutput { return o.ApplyT(func(v *CustomDomain) pulumi.StringOutput { return v.ContainerAppEnvironmentManagedCertificateId }).(pulumi.StringOutput) } // The ID of the Container App to which this Custom Domain should be bound. Changing this forces a new resource to be created. func (o CustomDomainOutput) ContainerAppId() pulumi.StringOutput { return o.ApplyT(func(v *CustomDomain) pulumi.StringOutput { return v.ContainerAppId }).(pulumi.StringOutput) } // The fully qualified name of the Custom Domain. Must be the CN or a named SAN in the certificate specified by the `containerAppEnvironmentCertificateId`. Changing this forces a new resource to be created. // // > **Note:** The Custom Domain verification TXT record requires a prefix of `asuid.`, however, this must be trimmed from the `name` property here. See the [official docs](https://learn.microsoft.com/en-us/azure/container-apps/custom-domains-certificates) for more information. func (o CustomDomainOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *CustomDomain) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } type CustomDomainArrayOutput struct{ *pulumi.OutputState } func (CustomDomainArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*CustomDomain)(nil)).Elem() } func (o CustomDomainArrayOutput) ToCustomDomainArrayOutput() CustomDomainArrayOutput { return o } func (o CustomDomainArrayOutput) ToCustomDomainArrayOutputWithContext(ctx context.Context) CustomDomainArrayOutput { return o } func (o CustomDomainArrayOutput) Index(i pulumi.IntInput) CustomDomainOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *CustomDomain { return vs[0].([]*CustomDomain)[vs[1].(int)] }).(CustomDomainOutput) } type CustomDomainMapOutput struct{ *pulumi.OutputState } func (CustomDomainMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*CustomDomain)(nil)).Elem() } func (o CustomDomainMapOutput) ToCustomDomainMapOutput() CustomDomainMapOutput { return o } func (o CustomDomainMapOutput) ToCustomDomainMapOutputWithContext(ctx context.Context) CustomDomainMapOutput { return o } func (o CustomDomainMapOutput) MapIndex(k pulumi.StringInput) CustomDomainOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *CustomDomain { return vs[0].(map[string]*CustomDomain)[vs[1].(string)] }).(CustomDomainOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*CustomDomainInput)(nil)).Elem(), &CustomDomain{}) pulumi.RegisterInputType(reflect.TypeOf((*CustomDomainArrayInput)(nil)).Elem(), CustomDomainArray{}) pulumi.RegisterInputType(reflect.TypeOf((*CustomDomainMapInput)(nil)).Elem(), CustomDomainMap{}) pulumi.RegisterOutputType(CustomDomainOutput{}) pulumi.RegisterOutputType(CustomDomainArrayOutput{}) pulumi.RegisterOutputType(CustomDomainMapOutput{}) }
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/containerapp/environmentCustomDomain.go
sdk/go/azure/containerapp/environmentCustomDomain.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 containerapp import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a Container App Environment Custom Domain Suffix. // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/containerapp" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/operationalinsights" // "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 // } // exampleAnalyticsWorkspace, err := operationalinsights.NewAnalyticsWorkspace(ctx, "example", &operationalinsights.AnalyticsWorkspaceArgs{ // Name: pulumi.String("acctest-01"), // Location: example.Location, // ResourceGroupName: example.Name, // Sku: pulumi.String("PerGB2018"), // RetentionInDays: pulumi.Int(30), // }) // if err != nil { // return err // } // exampleEnvironment, err := containerapp.NewEnvironment(ctx, "example", &containerapp.EnvironmentArgs{ // Name: pulumi.String("my-environment"), // Location: example.Location, // ResourceGroupName: example.Name, // LogAnalyticsWorkspaceId: exampleAnalyticsWorkspace.ID(), // }) // if err != nil { // return err // } // invokeFilebase64, err := std.Filebase64(ctx, &std.Filebase64Args{ // Input: "testacc.pfx", // }, nil) // if err != nil { // return err // } // _, err = containerapp.NewEnvironmentCustomDomain(ctx, "example", &containerapp.EnvironmentCustomDomainArgs{ // ContainerAppEnvironmentId: exampleEnvironment.ID(), // CertificateBlobBase64: pulumi.String(invokeFilebase64.Result), // CertificatePassword: pulumi.String("TestAcc"), // DnsSuffix: pulumi.String("acceptancetest.contoso.com"), // }) // 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.App` - 2025-07-01 // // * `Microsoft.OperationalInsights` - 2020-08-01 // // ## Import // // A Container App Environment Custom Domain Suffix can be imported using the `resource id` of its parent container App Environment, e.g. // // ```sh // $ pulumi import azure:containerapp/environmentCustomDomain:EnvironmentCustomDomain example "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resGroup1/providers/Microsoft.App/managedEnvironments/myEnvironment" // ``` type EnvironmentCustomDomain struct { pulumi.CustomResourceState // The bundle of Private Key and Certificate for the Custom DNS Suffix as a base64 encoded PFX or PEM. CertificateBlobBase64 pulumi.StringOutput `pulumi:"certificateBlobBase64"` // The password for the Certificate bundle. CertificatePassword pulumi.StringOutput `pulumi:"certificatePassword"` // The ID of the Container Apps Managed Environment. Changing this forces a new resource to be created. ContainerAppEnvironmentId pulumi.StringOutput `pulumi:"containerAppEnvironmentId"` // Custom DNS Suffix for the Container App Environment. DnsSuffix pulumi.StringOutput `pulumi:"dnsSuffix"` } // NewEnvironmentCustomDomain registers a new resource with the given unique name, arguments, and options. func NewEnvironmentCustomDomain(ctx *pulumi.Context, name string, args *EnvironmentCustomDomainArgs, opts ...pulumi.ResourceOption) (*EnvironmentCustomDomain, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.CertificateBlobBase64 == nil { return nil, errors.New("invalid value for required argument 'CertificateBlobBase64'") } if args.CertificatePassword == nil { return nil, errors.New("invalid value for required argument 'CertificatePassword'") } if args.ContainerAppEnvironmentId == nil { return nil, errors.New("invalid value for required argument 'ContainerAppEnvironmentId'") } if args.DnsSuffix == nil { return nil, errors.New("invalid value for required argument 'DnsSuffix'") } if args.CertificatePassword != nil { args.CertificatePassword = pulumi.ToSecret(args.CertificatePassword).(pulumi.StringInput) } secrets := pulumi.AdditionalSecretOutputs([]string{ "certificatePassword", }) opts = append(opts, secrets) opts = internal.PkgResourceDefaultOpts(opts) var resource EnvironmentCustomDomain err := ctx.RegisterResource("azure:containerapp/environmentCustomDomain:EnvironmentCustomDomain", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetEnvironmentCustomDomain gets an existing EnvironmentCustomDomain 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 GetEnvironmentCustomDomain(ctx *pulumi.Context, name string, id pulumi.IDInput, state *EnvironmentCustomDomainState, opts ...pulumi.ResourceOption) (*EnvironmentCustomDomain, error) { var resource EnvironmentCustomDomain err := ctx.ReadResource("azure:containerapp/environmentCustomDomain:EnvironmentCustomDomain", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering EnvironmentCustomDomain resources. type environmentCustomDomainState struct { // The bundle of Private Key and Certificate for the Custom DNS Suffix as a base64 encoded PFX or PEM. CertificateBlobBase64 *string `pulumi:"certificateBlobBase64"` // The password for the Certificate bundle. CertificatePassword *string `pulumi:"certificatePassword"` // The ID of the Container Apps Managed Environment. Changing this forces a new resource to be created. ContainerAppEnvironmentId *string `pulumi:"containerAppEnvironmentId"` // Custom DNS Suffix for the Container App Environment. DnsSuffix *string `pulumi:"dnsSuffix"` } type EnvironmentCustomDomainState struct { // The bundle of Private Key and Certificate for the Custom DNS Suffix as a base64 encoded PFX or PEM. CertificateBlobBase64 pulumi.StringPtrInput // The password for the Certificate bundle. CertificatePassword pulumi.StringPtrInput // The ID of the Container Apps Managed Environment. Changing this forces a new resource to be created. ContainerAppEnvironmentId pulumi.StringPtrInput // Custom DNS Suffix for the Container App Environment. DnsSuffix pulumi.StringPtrInput } func (EnvironmentCustomDomainState) ElementType() reflect.Type { return reflect.TypeOf((*environmentCustomDomainState)(nil)).Elem() } type environmentCustomDomainArgs struct { // The bundle of Private Key and Certificate for the Custom DNS Suffix as a base64 encoded PFX or PEM. CertificateBlobBase64 string `pulumi:"certificateBlobBase64"` // The password for the Certificate bundle. CertificatePassword string `pulumi:"certificatePassword"` // The ID of the Container Apps Managed Environment. Changing this forces a new resource to be created. ContainerAppEnvironmentId string `pulumi:"containerAppEnvironmentId"` // Custom DNS Suffix for the Container App Environment. DnsSuffix string `pulumi:"dnsSuffix"` } // The set of arguments for constructing a EnvironmentCustomDomain resource. type EnvironmentCustomDomainArgs struct { // The bundle of Private Key and Certificate for the Custom DNS Suffix as a base64 encoded PFX or PEM. CertificateBlobBase64 pulumi.StringInput // The password for the Certificate bundle. CertificatePassword pulumi.StringInput // The ID of the Container Apps Managed Environment. Changing this forces a new resource to be created. ContainerAppEnvironmentId pulumi.StringInput // Custom DNS Suffix for the Container App Environment. DnsSuffix pulumi.StringInput } func (EnvironmentCustomDomainArgs) ElementType() reflect.Type { return reflect.TypeOf((*environmentCustomDomainArgs)(nil)).Elem() } type EnvironmentCustomDomainInput interface { pulumi.Input ToEnvironmentCustomDomainOutput() EnvironmentCustomDomainOutput ToEnvironmentCustomDomainOutputWithContext(ctx context.Context) EnvironmentCustomDomainOutput } func (*EnvironmentCustomDomain) ElementType() reflect.Type { return reflect.TypeOf((**EnvironmentCustomDomain)(nil)).Elem() } func (i *EnvironmentCustomDomain) ToEnvironmentCustomDomainOutput() EnvironmentCustomDomainOutput { return i.ToEnvironmentCustomDomainOutputWithContext(context.Background()) } func (i *EnvironmentCustomDomain) ToEnvironmentCustomDomainOutputWithContext(ctx context.Context) EnvironmentCustomDomainOutput { return pulumi.ToOutputWithContext(ctx, i).(EnvironmentCustomDomainOutput) } // EnvironmentCustomDomainArrayInput is an input type that accepts EnvironmentCustomDomainArray and EnvironmentCustomDomainArrayOutput values. // You can construct a concrete instance of `EnvironmentCustomDomainArrayInput` via: // // EnvironmentCustomDomainArray{ EnvironmentCustomDomainArgs{...} } type EnvironmentCustomDomainArrayInput interface { pulumi.Input ToEnvironmentCustomDomainArrayOutput() EnvironmentCustomDomainArrayOutput ToEnvironmentCustomDomainArrayOutputWithContext(context.Context) EnvironmentCustomDomainArrayOutput } type EnvironmentCustomDomainArray []EnvironmentCustomDomainInput func (EnvironmentCustomDomainArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*EnvironmentCustomDomain)(nil)).Elem() } func (i EnvironmentCustomDomainArray) ToEnvironmentCustomDomainArrayOutput() EnvironmentCustomDomainArrayOutput { return i.ToEnvironmentCustomDomainArrayOutputWithContext(context.Background()) } func (i EnvironmentCustomDomainArray) ToEnvironmentCustomDomainArrayOutputWithContext(ctx context.Context) EnvironmentCustomDomainArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(EnvironmentCustomDomainArrayOutput) } // EnvironmentCustomDomainMapInput is an input type that accepts EnvironmentCustomDomainMap and EnvironmentCustomDomainMapOutput values. // You can construct a concrete instance of `EnvironmentCustomDomainMapInput` via: // // EnvironmentCustomDomainMap{ "key": EnvironmentCustomDomainArgs{...} } type EnvironmentCustomDomainMapInput interface { pulumi.Input ToEnvironmentCustomDomainMapOutput() EnvironmentCustomDomainMapOutput ToEnvironmentCustomDomainMapOutputWithContext(context.Context) EnvironmentCustomDomainMapOutput } type EnvironmentCustomDomainMap map[string]EnvironmentCustomDomainInput func (EnvironmentCustomDomainMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*EnvironmentCustomDomain)(nil)).Elem() } func (i EnvironmentCustomDomainMap) ToEnvironmentCustomDomainMapOutput() EnvironmentCustomDomainMapOutput { return i.ToEnvironmentCustomDomainMapOutputWithContext(context.Background()) } func (i EnvironmentCustomDomainMap) ToEnvironmentCustomDomainMapOutputWithContext(ctx context.Context) EnvironmentCustomDomainMapOutput { return pulumi.ToOutputWithContext(ctx, i).(EnvironmentCustomDomainMapOutput) } type EnvironmentCustomDomainOutput struct{ *pulumi.OutputState } func (EnvironmentCustomDomainOutput) ElementType() reflect.Type { return reflect.TypeOf((**EnvironmentCustomDomain)(nil)).Elem() } func (o EnvironmentCustomDomainOutput) ToEnvironmentCustomDomainOutput() EnvironmentCustomDomainOutput { return o } func (o EnvironmentCustomDomainOutput) ToEnvironmentCustomDomainOutputWithContext(ctx context.Context) EnvironmentCustomDomainOutput { return o } // The bundle of Private Key and Certificate for the Custom DNS Suffix as a base64 encoded PFX or PEM. func (o EnvironmentCustomDomainOutput) CertificateBlobBase64() pulumi.StringOutput { return o.ApplyT(func(v *EnvironmentCustomDomain) pulumi.StringOutput { return v.CertificateBlobBase64 }).(pulumi.StringOutput) } // The password for the Certificate bundle. func (o EnvironmentCustomDomainOutput) CertificatePassword() pulumi.StringOutput { return o.ApplyT(func(v *EnvironmentCustomDomain) pulumi.StringOutput { return v.CertificatePassword }).(pulumi.StringOutput) } // The ID of the Container Apps Managed Environment. Changing this forces a new resource to be created. func (o EnvironmentCustomDomainOutput) ContainerAppEnvironmentId() pulumi.StringOutput { return o.ApplyT(func(v *EnvironmentCustomDomain) pulumi.StringOutput { return v.ContainerAppEnvironmentId }).(pulumi.StringOutput) } // Custom DNS Suffix for the Container App Environment. func (o EnvironmentCustomDomainOutput) DnsSuffix() pulumi.StringOutput { return o.ApplyT(func(v *EnvironmentCustomDomain) pulumi.StringOutput { return v.DnsSuffix }).(pulumi.StringOutput) } type EnvironmentCustomDomainArrayOutput struct{ *pulumi.OutputState } func (EnvironmentCustomDomainArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*EnvironmentCustomDomain)(nil)).Elem() } func (o EnvironmentCustomDomainArrayOutput) ToEnvironmentCustomDomainArrayOutput() EnvironmentCustomDomainArrayOutput { return o } func (o EnvironmentCustomDomainArrayOutput) ToEnvironmentCustomDomainArrayOutputWithContext(ctx context.Context) EnvironmentCustomDomainArrayOutput { return o } func (o EnvironmentCustomDomainArrayOutput) Index(i pulumi.IntInput) EnvironmentCustomDomainOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *EnvironmentCustomDomain { return vs[0].([]*EnvironmentCustomDomain)[vs[1].(int)] }).(EnvironmentCustomDomainOutput) } type EnvironmentCustomDomainMapOutput struct{ *pulumi.OutputState } func (EnvironmentCustomDomainMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*EnvironmentCustomDomain)(nil)).Elem() } func (o EnvironmentCustomDomainMapOutput) ToEnvironmentCustomDomainMapOutput() EnvironmentCustomDomainMapOutput { return o } func (o EnvironmentCustomDomainMapOutput) ToEnvironmentCustomDomainMapOutputWithContext(ctx context.Context) EnvironmentCustomDomainMapOutput { return o } func (o EnvironmentCustomDomainMapOutput) MapIndex(k pulumi.StringInput) EnvironmentCustomDomainOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *EnvironmentCustomDomain { return vs[0].(map[string]*EnvironmentCustomDomain)[vs[1].(string)] }).(EnvironmentCustomDomainOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*EnvironmentCustomDomainInput)(nil)).Elem(), &EnvironmentCustomDomain{}) pulumi.RegisterInputType(reflect.TypeOf((*EnvironmentCustomDomainArrayInput)(nil)).Elem(), EnvironmentCustomDomainArray{}) pulumi.RegisterInputType(reflect.TypeOf((*EnvironmentCustomDomainMapInput)(nil)).Elem(), EnvironmentCustomDomainMap{}) pulumi.RegisterOutputType(EnvironmentCustomDomainOutput{}) pulumi.RegisterOutputType(EnvironmentCustomDomainArrayOutput{}) pulumi.RegisterOutputType(EnvironmentCustomDomainMapOutput{}) }
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/containerapp/environment.go
sdk/go/azure/containerapp/environment.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 containerapp import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a Container App Environment. // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/containerapp" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/operationalinsights" // "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 // } // exampleAnalyticsWorkspace, err := operationalinsights.NewAnalyticsWorkspace(ctx, "example", &operationalinsights.AnalyticsWorkspaceArgs{ // Name: pulumi.String("example-workspace"), // Location: example.Location, // ResourceGroupName: example.Name, // Sku: pulumi.String("PerGB2018"), // RetentionInDays: pulumi.Int(30), // }) // if err != nil { // return err // } // _, err = containerapp.NewEnvironment(ctx, "example", &containerapp.EnvironmentArgs{ // Name: pulumi.String("my-environment"), // Location: example.Location, // ResourceGroupName: example.Name, // LogsDestination: pulumi.String("log-analytics"), // LogAnalyticsWorkspaceId: exampleAnalyticsWorkspace.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.App` - 2025-07-01 // // * `Microsoft.OperationalInsights` - 2020-08-01 // // ## Import // // A Container App Environment can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:containerapp/environment:Environment example "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resGroup1/providers/Microsoft.App/managedEnvironments/myEnvironment" // ``` type Environment struct { pulumi.CustomResourceState // The ID of the Custom Domain Verification for this Container App Environment. CustomDomainVerificationId pulumi.StringOutput `pulumi:"customDomainVerificationId"` // Application Insights connection string used by Dapr to export Service to Service communication telemetry. Changing this forces a new resource to be created. DaprApplicationInsightsConnectionString pulumi.StringPtrOutput `pulumi:"daprApplicationInsightsConnectionString"` // The default, publicly resolvable, name of this Container App Environment. DefaultDomain pulumi.StringOutput `pulumi:"defaultDomain"` // The network addressing in which the Container Apps in this Container App Environment will reside in CIDR notation. DockerBridgeCidr pulumi.StringOutput `pulumi:"dockerBridgeCidr"` // An `identity` block as defined below. Identity EnvironmentIdentityPtrOutput `pulumi:"identity"` // Name of the platform-managed resource group created for the Managed Environment to host infrastructure resources. Changing this forces a new resource to be created. // // > **Note:** Only valid if a `workloadProfile` is specified. If `infrastructureSubnetId` is specified, this resource group will be created in the same subscription as `infrastructureSubnetId`. InfrastructureResourceGroupName pulumi.StringPtrOutput `pulumi:"infrastructureResourceGroupName"` // The existing Subnet to use for the Container Apps Control Plane. Changing this forces a new resource to be created. // // > **Note:** The Subnet must have a `/21` or larger address space. InfrastructureSubnetId pulumi.StringPtrOutput `pulumi:"infrastructureSubnetId"` // Should the Container Environment operate in Internal Load Balancing Mode? Defaults to `false`. Changing this forces a new resource to be created. // // > **Note:** can only be set to `true` if `infrastructureSubnetId` is specified. InternalLoadBalancerEnabled pulumi.BoolPtrOutput `pulumi:"internalLoadBalancerEnabled"` // Specifies the supported Azure location where the Container App Environment is to exist. Changing this forces a new resource to be created. Location pulumi.StringOutput `pulumi:"location"` // The ID for the Log Analytics Workspace to link this Container Apps Managed Environment to. // // > **Note:** required if `logsDestination` is set to `log-analytics`. Cannot be set if `logsDestination` is set to `azure-monitor`. LogAnalyticsWorkspaceId pulumi.StringPtrOutput `pulumi:"logAnalyticsWorkspaceId"` // Where the application logs will be saved for this Container Apps Managed Environment. Possible values include `log-analytics` and `azure-monitor`. Omitting this value will result in logs being streamed only. LogsDestination pulumi.StringOutput `pulumi:"logsDestination"` // Should mutual transport layer security (mTLS) be enabled? Defaults to `false`. // // > **Note:** This feature is in public preview. Enabling mTLS for your applications may increase response latency and reduce maximum throughput in high-load scenarios. MutualTlsEnabled pulumi.BoolPtrOutput `pulumi:"mutualTlsEnabled"` // The name of the Container Apps Managed Environment. Changing this forces a new resource to be created. Name pulumi.StringOutput `pulumi:"name"` // The IP range, in CIDR notation, that is reserved for environment infrastructure IP addresses. PlatformReservedCidr pulumi.StringOutput `pulumi:"platformReservedCidr"` // The IP address from the IP range defined by `platformReservedCidr` that is reserved for the internal DNS server. PlatformReservedDnsIpAddress pulumi.StringOutput `pulumi:"platformReservedDnsIpAddress"` // The public network access setting for the Container App Environment. Possible values are `Enabled` and `Disabled`. PublicNetworkAccess pulumi.StringOutput `pulumi:"publicNetworkAccess"` // The name of the resource group in which the Container App Environment is to be created. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // The Static IP address of the Environment. StaticIpAddress pulumi.StringOutput `pulumi:"staticIpAddress"` // A mapping of tags to assign to the resource. Tags pulumi.StringMapOutput `pulumi:"tags"` // One or more `workloadProfile` blocks as defined below. WorkloadProfiles EnvironmentWorkloadProfileArrayOutput `pulumi:"workloadProfiles"` // Should the Container App Environment be created with Zone Redundancy enabled? Defaults to `false`. Changing this forces a new resource to be created. // // > **Note:** can only be set to `true` if `infrastructureSubnetId` is specified. ZoneRedundancyEnabled pulumi.BoolPtrOutput `pulumi:"zoneRedundancyEnabled"` } // NewEnvironment registers a new resource with the given unique name, arguments, and options. func NewEnvironment(ctx *pulumi.Context, name string, args *EnvironmentArgs, opts ...pulumi.ResourceOption) (*Environment, 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.DaprApplicationInsightsConnectionString != nil { args.DaprApplicationInsightsConnectionString = pulumi.ToSecret(args.DaprApplicationInsightsConnectionString).(pulumi.StringPtrInput) } secrets := pulumi.AdditionalSecretOutputs([]string{ "daprApplicationInsightsConnectionString", }) opts = append(opts, secrets) opts = internal.PkgResourceDefaultOpts(opts) var resource Environment err := ctx.RegisterResource("azure:containerapp/environment:Environment", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetEnvironment gets an existing Environment 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 GetEnvironment(ctx *pulumi.Context, name string, id pulumi.IDInput, state *EnvironmentState, opts ...pulumi.ResourceOption) (*Environment, error) { var resource Environment err := ctx.ReadResource("azure:containerapp/environment:Environment", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering Environment resources. type environmentState struct { // The ID of the Custom Domain Verification for this Container App Environment. CustomDomainVerificationId *string `pulumi:"customDomainVerificationId"` // Application Insights connection string used by Dapr to export Service to Service communication telemetry. Changing this forces a new resource to be created. DaprApplicationInsightsConnectionString *string `pulumi:"daprApplicationInsightsConnectionString"` // The default, publicly resolvable, name of this Container App Environment. DefaultDomain *string `pulumi:"defaultDomain"` // The network addressing in which the Container Apps in this Container App Environment will reside in CIDR notation. DockerBridgeCidr *string `pulumi:"dockerBridgeCidr"` // An `identity` block as defined below. Identity *EnvironmentIdentity `pulumi:"identity"` // Name of the platform-managed resource group created for the Managed Environment to host infrastructure resources. Changing this forces a new resource to be created. // // > **Note:** Only valid if a `workloadProfile` is specified. If `infrastructureSubnetId` is specified, this resource group will be created in the same subscription as `infrastructureSubnetId`. InfrastructureResourceGroupName *string `pulumi:"infrastructureResourceGroupName"` // The existing Subnet to use for the Container Apps Control Plane. Changing this forces a new resource to be created. // // > **Note:** The Subnet must have a `/21` or larger address space. InfrastructureSubnetId *string `pulumi:"infrastructureSubnetId"` // Should the Container Environment operate in Internal Load Balancing Mode? Defaults to `false`. Changing this forces a new resource to be created. // // > **Note:** can only be set to `true` if `infrastructureSubnetId` is specified. InternalLoadBalancerEnabled *bool `pulumi:"internalLoadBalancerEnabled"` // Specifies the supported Azure location where the Container App Environment is to exist. Changing this forces a new resource to be created. Location *string `pulumi:"location"` // The ID for the Log Analytics Workspace to link this Container Apps Managed Environment to. // // > **Note:** required if `logsDestination` is set to `log-analytics`. Cannot be set if `logsDestination` is set to `azure-monitor`. LogAnalyticsWorkspaceId *string `pulumi:"logAnalyticsWorkspaceId"` // Where the application logs will be saved for this Container Apps Managed Environment. Possible values include `log-analytics` and `azure-monitor`. Omitting this value will result in logs being streamed only. LogsDestination *string `pulumi:"logsDestination"` // Should mutual transport layer security (mTLS) be enabled? Defaults to `false`. // // > **Note:** This feature is in public preview. Enabling mTLS for your applications may increase response latency and reduce maximum throughput in high-load scenarios. MutualTlsEnabled *bool `pulumi:"mutualTlsEnabled"` // The name of the Container Apps Managed Environment. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // The IP range, in CIDR notation, that is reserved for environment infrastructure IP addresses. PlatformReservedCidr *string `pulumi:"platformReservedCidr"` // The IP address from the IP range defined by `platformReservedCidr` that is reserved for the internal DNS server. PlatformReservedDnsIpAddress *string `pulumi:"platformReservedDnsIpAddress"` // The public network access setting for the Container App Environment. Possible values are `Enabled` and `Disabled`. PublicNetworkAccess *string `pulumi:"publicNetworkAccess"` // The name of the resource group in which the Container App Environment is to be created. Changing this forces a new resource to be created. ResourceGroupName *string `pulumi:"resourceGroupName"` // The Static IP address of the Environment. StaticIpAddress *string `pulumi:"staticIpAddress"` // A mapping of tags to assign to the resource. Tags map[string]string `pulumi:"tags"` // One or more `workloadProfile` blocks as defined below. WorkloadProfiles []EnvironmentWorkloadProfile `pulumi:"workloadProfiles"` // Should the Container App Environment be created with Zone Redundancy enabled? Defaults to `false`. Changing this forces a new resource to be created. // // > **Note:** can only be set to `true` if `infrastructureSubnetId` is specified. ZoneRedundancyEnabled *bool `pulumi:"zoneRedundancyEnabled"` } type EnvironmentState struct { // The ID of the Custom Domain Verification for this Container App Environment. CustomDomainVerificationId pulumi.StringPtrInput // Application Insights connection string used by Dapr to export Service to Service communication telemetry. Changing this forces a new resource to be created. DaprApplicationInsightsConnectionString pulumi.StringPtrInput // The default, publicly resolvable, name of this Container App Environment. DefaultDomain pulumi.StringPtrInput // The network addressing in which the Container Apps in this Container App Environment will reside in CIDR notation. DockerBridgeCidr pulumi.StringPtrInput // An `identity` block as defined below. Identity EnvironmentIdentityPtrInput // Name of the platform-managed resource group created for the Managed Environment to host infrastructure resources. Changing this forces a new resource to be created. // // > **Note:** Only valid if a `workloadProfile` is specified. If `infrastructureSubnetId` is specified, this resource group will be created in the same subscription as `infrastructureSubnetId`. InfrastructureResourceGroupName pulumi.StringPtrInput // The existing Subnet to use for the Container Apps Control Plane. Changing this forces a new resource to be created. // // > **Note:** The Subnet must have a `/21` or larger address space. InfrastructureSubnetId pulumi.StringPtrInput // Should the Container Environment operate in Internal Load Balancing Mode? Defaults to `false`. Changing this forces a new resource to be created. // // > **Note:** can only be set to `true` if `infrastructureSubnetId` is specified. InternalLoadBalancerEnabled pulumi.BoolPtrInput // Specifies the supported Azure location where the Container App Environment is to exist. Changing this forces a new resource to be created. Location pulumi.StringPtrInput // The ID for the Log Analytics Workspace to link this Container Apps Managed Environment to. // // > **Note:** required if `logsDestination` is set to `log-analytics`. Cannot be set if `logsDestination` is set to `azure-monitor`. LogAnalyticsWorkspaceId pulumi.StringPtrInput // Where the application logs will be saved for this Container Apps Managed Environment. Possible values include `log-analytics` and `azure-monitor`. Omitting this value will result in logs being streamed only. LogsDestination pulumi.StringPtrInput // Should mutual transport layer security (mTLS) be enabled? Defaults to `false`. // // > **Note:** This feature is in public preview. Enabling mTLS for your applications may increase response latency and reduce maximum throughput in high-load scenarios. MutualTlsEnabled pulumi.BoolPtrInput // The name of the Container Apps Managed Environment. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // The IP range, in CIDR notation, that is reserved for environment infrastructure IP addresses. PlatformReservedCidr pulumi.StringPtrInput // The IP address from the IP range defined by `platformReservedCidr` that is reserved for the internal DNS server. PlatformReservedDnsIpAddress pulumi.StringPtrInput // The public network access setting for the Container App Environment. Possible values are `Enabled` and `Disabled`. PublicNetworkAccess pulumi.StringPtrInput // The name of the resource group in which the Container App Environment is to be created. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringPtrInput // The Static IP address of the Environment. StaticIpAddress pulumi.StringPtrInput // A mapping of tags to assign to the resource. Tags pulumi.StringMapInput // One or more `workloadProfile` blocks as defined below. WorkloadProfiles EnvironmentWorkloadProfileArrayInput // Should the Container App Environment be created with Zone Redundancy enabled? Defaults to `false`. Changing this forces a new resource to be created. // // > **Note:** can only be set to `true` if `infrastructureSubnetId` is specified. ZoneRedundancyEnabled pulumi.BoolPtrInput } func (EnvironmentState) ElementType() reflect.Type { return reflect.TypeOf((*environmentState)(nil)).Elem() } type environmentArgs struct { // Application Insights connection string used by Dapr to export Service to Service communication telemetry. Changing this forces a new resource to be created. DaprApplicationInsightsConnectionString *string `pulumi:"daprApplicationInsightsConnectionString"` // An `identity` block as defined below. Identity *EnvironmentIdentity `pulumi:"identity"` // Name of the platform-managed resource group created for the Managed Environment to host infrastructure resources. Changing this forces a new resource to be created. // // > **Note:** Only valid if a `workloadProfile` is specified. If `infrastructureSubnetId` is specified, this resource group will be created in the same subscription as `infrastructureSubnetId`. InfrastructureResourceGroupName *string `pulumi:"infrastructureResourceGroupName"` // The existing Subnet to use for the Container Apps Control Plane. Changing this forces a new resource to be created. // // > **Note:** The Subnet must have a `/21` or larger address space. InfrastructureSubnetId *string `pulumi:"infrastructureSubnetId"` // Should the Container Environment operate in Internal Load Balancing Mode? Defaults to `false`. Changing this forces a new resource to be created. // // > **Note:** can only be set to `true` if `infrastructureSubnetId` is specified. InternalLoadBalancerEnabled *bool `pulumi:"internalLoadBalancerEnabled"` // Specifies the supported Azure location where the Container App Environment is to exist. Changing this forces a new resource to be created. Location *string `pulumi:"location"` // The ID for the Log Analytics Workspace to link this Container Apps Managed Environment to. // // > **Note:** required if `logsDestination` is set to `log-analytics`. Cannot be set if `logsDestination` is set to `azure-monitor`. LogAnalyticsWorkspaceId *string `pulumi:"logAnalyticsWorkspaceId"` // Where the application logs will be saved for this Container Apps Managed Environment. Possible values include `log-analytics` and `azure-monitor`. Omitting this value will result in logs being streamed only. LogsDestination *string `pulumi:"logsDestination"` // Should mutual transport layer security (mTLS) be enabled? Defaults to `false`. // // > **Note:** This feature is in public preview. Enabling mTLS for your applications may increase response latency and reduce maximum throughput in high-load scenarios. MutualTlsEnabled *bool `pulumi:"mutualTlsEnabled"` // The name of the Container Apps Managed Environment. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // The public network access setting for the Container App Environment. Possible values are `Enabled` and `Disabled`. PublicNetworkAccess *string `pulumi:"publicNetworkAccess"` // The name of the resource group in which the Container App Environment is to 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"` // One or more `workloadProfile` blocks as defined below. WorkloadProfiles []EnvironmentWorkloadProfile `pulumi:"workloadProfiles"` // Should the Container App Environment be created with Zone Redundancy enabled? Defaults to `false`. Changing this forces a new resource to be created. // // > **Note:** can only be set to `true` if `infrastructureSubnetId` is specified. ZoneRedundancyEnabled *bool `pulumi:"zoneRedundancyEnabled"` } // The set of arguments for constructing a Environment resource. type EnvironmentArgs struct { // Application Insights connection string used by Dapr to export Service to Service communication telemetry. Changing this forces a new resource to be created. DaprApplicationInsightsConnectionString pulumi.StringPtrInput // An `identity` block as defined below. Identity EnvironmentIdentityPtrInput // Name of the platform-managed resource group created for the Managed Environment to host infrastructure resources. Changing this forces a new resource to be created. // // > **Note:** Only valid if a `workloadProfile` is specified. If `infrastructureSubnetId` is specified, this resource group will be created in the same subscription as `infrastructureSubnetId`. InfrastructureResourceGroupName pulumi.StringPtrInput // The existing Subnet to use for the Container Apps Control Plane. Changing this forces a new resource to be created. // // > **Note:** The Subnet must have a `/21` or larger address space. InfrastructureSubnetId pulumi.StringPtrInput // Should the Container Environment operate in Internal Load Balancing Mode? Defaults to `false`. Changing this forces a new resource to be created. // // > **Note:** can only be set to `true` if `infrastructureSubnetId` is specified. InternalLoadBalancerEnabled pulumi.BoolPtrInput // Specifies the supported Azure location where the Container App Environment is to exist. Changing this forces a new resource to be created. Location pulumi.StringPtrInput // The ID for the Log Analytics Workspace to link this Container Apps Managed Environment to. // // > **Note:** required if `logsDestination` is set to `log-analytics`. Cannot be set if `logsDestination` is set to `azure-monitor`. LogAnalyticsWorkspaceId pulumi.StringPtrInput // Where the application logs will be saved for this Container Apps Managed Environment. Possible values include `log-analytics` and `azure-monitor`. Omitting this value will result in logs being streamed only. LogsDestination pulumi.StringPtrInput // Should mutual transport layer security (mTLS) be enabled? Defaults to `false`. // // > **Note:** This feature is in public preview. Enabling mTLS for your applications may increase response latency and reduce maximum throughput in high-load scenarios. MutualTlsEnabled pulumi.BoolPtrInput // The name of the Container Apps Managed Environment. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // The public network access setting for the Container App Environment. Possible values are `Enabled` and `Disabled`. PublicNetworkAccess pulumi.StringPtrInput // The name of the resource group in which the Container App Environment is to 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 // One or more `workloadProfile` blocks as defined below. WorkloadProfiles EnvironmentWorkloadProfileArrayInput // Should the Container App Environment be created with Zone Redundancy enabled? Defaults to `false`. Changing this forces a new resource to be created. // // > **Note:** can only be set to `true` if `infrastructureSubnetId` is specified. ZoneRedundancyEnabled pulumi.BoolPtrInput } func (EnvironmentArgs) ElementType() reflect.Type { return reflect.TypeOf((*environmentArgs)(nil)).Elem() } type EnvironmentInput interface { pulumi.Input ToEnvironmentOutput() EnvironmentOutput ToEnvironmentOutputWithContext(ctx context.Context) EnvironmentOutput } func (*Environment) ElementType() reflect.Type { return reflect.TypeOf((**Environment)(nil)).Elem() } func (i *Environment) ToEnvironmentOutput() EnvironmentOutput { return i.ToEnvironmentOutputWithContext(context.Background()) } func (i *Environment) ToEnvironmentOutputWithContext(ctx context.Context) EnvironmentOutput { return pulumi.ToOutputWithContext(ctx, i).(EnvironmentOutput) } // EnvironmentArrayInput is an input type that accepts EnvironmentArray and EnvironmentArrayOutput values. // You can construct a concrete instance of `EnvironmentArrayInput` via: // // EnvironmentArray{ EnvironmentArgs{...} } type EnvironmentArrayInput interface { pulumi.Input ToEnvironmentArrayOutput() EnvironmentArrayOutput ToEnvironmentArrayOutputWithContext(context.Context) EnvironmentArrayOutput } type EnvironmentArray []EnvironmentInput func (EnvironmentArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*Environment)(nil)).Elem() } func (i EnvironmentArray) ToEnvironmentArrayOutput() EnvironmentArrayOutput { return i.ToEnvironmentArrayOutputWithContext(context.Background()) } func (i EnvironmentArray) ToEnvironmentArrayOutputWithContext(ctx context.Context) EnvironmentArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(EnvironmentArrayOutput) } // EnvironmentMapInput is an input type that accepts EnvironmentMap and EnvironmentMapOutput values. // You can construct a concrete instance of `EnvironmentMapInput` via: // // EnvironmentMap{ "key": EnvironmentArgs{...} } type EnvironmentMapInput interface { pulumi.Input ToEnvironmentMapOutput() EnvironmentMapOutput ToEnvironmentMapOutputWithContext(context.Context) EnvironmentMapOutput } type EnvironmentMap map[string]EnvironmentInput func (EnvironmentMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*Environment)(nil)).Elem() } func (i EnvironmentMap) ToEnvironmentMapOutput() EnvironmentMapOutput { return i.ToEnvironmentMapOutputWithContext(context.Background()) } func (i EnvironmentMap) ToEnvironmentMapOutputWithContext(ctx context.Context) EnvironmentMapOutput { return pulumi.ToOutputWithContext(ctx, i).(EnvironmentMapOutput) } type EnvironmentOutput struct{ *pulumi.OutputState } func (EnvironmentOutput) ElementType() reflect.Type { return reflect.TypeOf((**Environment)(nil)).Elem() } func (o EnvironmentOutput) ToEnvironmentOutput() EnvironmentOutput { return o } func (o EnvironmentOutput) ToEnvironmentOutputWithContext(ctx context.Context) EnvironmentOutput { return o } // The ID of the Custom Domain Verification for this Container App Environment. func (o EnvironmentOutput) CustomDomainVerificationId() pulumi.StringOutput { return o.ApplyT(func(v *Environment) pulumi.StringOutput { return v.CustomDomainVerificationId }).(pulumi.StringOutput) } // Application Insights connection string used by Dapr to export Service to Service communication telemetry. Changing this forces a new resource to be created. func (o EnvironmentOutput) DaprApplicationInsightsConnectionString() pulumi.StringPtrOutput { return o.ApplyT(func(v *Environment) pulumi.StringPtrOutput { return v.DaprApplicationInsightsConnectionString }).(pulumi.StringPtrOutput) } // The default, publicly resolvable, name of this Container App Environment. func (o EnvironmentOutput) DefaultDomain() pulumi.StringOutput { return o.ApplyT(func(v *Environment) pulumi.StringOutput { return v.DefaultDomain }).(pulumi.StringOutput) } // The network addressing in which the Container Apps in this Container App Environment will reside in CIDR notation. func (o EnvironmentOutput) DockerBridgeCidr() pulumi.StringOutput { return o.ApplyT(func(v *Environment) pulumi.StringOutput { return v.DockerBridgeCidr }).(pulumi.StringOutput) } // An `identity` block as defined below. func (o EnvironmentOutput) Identity() EnvironmentIdentityPtrOutput { return o.ApplyT(func(v *Environment) EnvironmentIdentityPtrOutput { return v.Identity }).(EnvironmentIdentityPtrOutput) } // Name of the platform-managed resource group created for the Managed Environment to host infrastructure resources. Changing this forces a new resource to be created. // // > **Note:** Only valid if a `workloadProfile` is specified. If `infrastructureSubnetId` is specified, this resource group will be created in the same subscription as `infrastructureSubnetId`. func (o EnvironmentOutput) InfrastructureResourceGroupName() pulumi.StringPtrOutput { return o.ApplyT(func(v *Environment) pulumi.StringPtrOutput { return v.InfrastructureResourceGroupName }).(pulumi.StringPtrOutput) } // The existing Subnet to use for the Container Apps Control Plane. Changing this forces a new resource to be created. // // > **Note:** The Subnet must have a `/21` or larger address space. func (o EnvironmentOutput) InfrastructureSubnetId() pulumi.StringPtrOutput { return o.ApplyT(func(v *Environment) pulumi.StringPtrOutput { return v.InfrastructureSubnetId }).(pulumi.StringPtrOutput) } // Should the Container Environment operate in Internal Load Balancing Mode? Defaults to `false`. Changing this forces a new resource to be created. // // > **Note:** can only be set to `true` if `infrastructureSubnetId` is specified. func (o EnvironmentOutput) InternalLoadBalancerEnabled() pulumi.BoolPtrOutput { return o.ApplyT(func(v *Environment) pulumi.BoolPtrOutput { return v.InternalLoadBalancerEnabled }).(pulumi.BoolPtrOutput) } // Specifies the supported Azure location where the Container App Environment is to exist. Changing this forces a new resource to be created. func (o EnvironmentOutput) Location() pulumi.StringOutput { return o.ApplyT(func(v *Environment) pulumi.StringOutput { return v.Location }).(pulumi.StringOutput) } // The ID for the Log Analytics Workspace to link this Container Apps Managed Environment to. // // > **Note:** required if `logsDestination` is set to `log-analytics`. Cannot be set if `logsDestination` is set to `azure-monitor`. func (o EnvironmentOutput) LogAnalyticsWorkspaceId() pulumi.StringPtrOutput { return o.ApplyT(func(v *Environment) pulumi.StringPtrOutput { return v.LogAnalyticsWorkspaceId }).(pulumi.StringPtrOutput) } // Where the application logs will be saved for this Container Apps Managed Environment. Possible values include `log-analytics` and `azure-monitor`. Omitting this value will result in logs being streamed only. func (o EnvironmentOutput) LogsDestination() pulumi.StringOutput { return o.ApplyT(func(v *Environment) pulumi.StringOutput { return v.LogsDestination }).(pulumi.StringOutput) } // Should mutual transport layer security (mTLS) be enabled? Defaults to `false`. // // > **Note:** This feature is in public preview. Enabling mTLS for your applications may increase response latency and reduce maximum throughput in high-load scenarios. func (o EnvironmentOutput) MutualTlsEnabled() pulumi.BoolPtrOutput { return o.ApplyT(func(v *Environment) pulumi.BoolPtrOutput { return v.MutualTlsEnabled }).(pulumi.BoolPtrOutput) } // The name of the Container Apps Managed Environment. Changing this forces a new resource to be created. func (o EnvironmentOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *Environment) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // The IP range, in CIDR notation, that is reserved for environment infrastructure IP addresses. func (o EnvironmentOutput) PlatformReservedCidr() pulumi.StringOutput { return o.ApplyT(func(v *Environment) pulumi.StringOutput { return v.PlatformReservedCidr }).(pulumi.StringOutput) } // The IP address from the IP range defined by `platformReservedCidr` that is reserved for the internal DNS server. func (o EnvironmentOutput) PlatformReservedDnsIpAddress() pulumi.StringOutput { return o.ApplyT(func(v *Environment) pulumi.StringOutput { return v.PlatformReservedDnsIpAddress }).(pulumi.StringOutput) } // The public network access setting for the Container App Environment. Possible values are `Enabled` and `Disabled`. func (o EnvironmentOutput) PublicNetworkAccess() pulumi.StringOutput { return o.ApplyT(func(v *Environment) pulumi.StringOutput { return v.PublicNetworkAccess }).(pulumi.StringOutput) } // The name of the resource group in which the Container App Environment is to be created. Changing this forces a new resource to be created.
go
Apache-2.0
b66e1472775a89cca43f5050fef806854a7c3fa3
2026-01-07T09:44:27.619514Z
true
pulumi/pulumi-azure
https://github.com/pulumi/pulumi-azure/blob/b66e1472775a89cca43f5050fef806854a7c3fa3/sdk/go/azure/containerapp/app.go
sdk/go/azure/containerapp/app.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 containerapp import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a Container App. // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/containerapp" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/operationalinsights" // "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 // } // exampleAnalyticsWorkspace, err := operationalinsights.NewAnalyticsWorkspace(ctx, "example", &operationalinsights.AnalyticsWorkspaceArgs{ // Name: pulumi.String("acctest-01"), // Location: example.Location, // ResourceGroupName: example.Name, // Sku: pulumi.String("PerGB2018"), // RetentionInDays: pulumi.Int(30), // }) // if err != nil { // return err // } // exampleEnvironment, err := containerapp.NewEnvironment(ctx, "example", &containerapp.EnvironmentArgs{ // Name: pulumi.String("Example-Environment"), // Location: example.Location, // ResourceGroupName: example.Name, // LogAnalyticsWorkspaceId: exampleAnalyticsWorkspace.ID(), // }) // if err != nil { // return err // } // _, err = containerapp.NewApp(ctx, "example", &containerapp.AppArgs{ // Name: pulumi.String("example-app"), // ContainerAppEnvironmentId: exampleEnvironment.ID(), // ResourceGroupName: example.Name, // RevisionMode: pulumi.String("Single"), // Template: &containerapp.AppTemplateArgs{ // Containers: containerapp.AppTemplateContainerArray{ // &containerapp.AppTemplateContainerArgs{ // Name: pulumi.String("examplecontainerapp"), // Image: pulumi.String("mcr.microsoft.com/k8se/quickstart:latest"), // Cpu: pulumi.Float64(0.25), // Memory: pulumi.String("0.5Gi"), // }, // }, // }, // }) // 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.App` - 2025-07-01 // // ## Import // // A Container App can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:containerapp/app:App example "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resGroup1/providers/Microsoft.App/containerApps/myContainerApp" // ``` type App struct { pulumi.CustomResourceState // The ID of the Container App Environment within which this Container App should exist. Changing this forces a new resource to be created. ContainerAppEnvironmentId pulumi.StringOutput `pulumi:"containerAppEnvironmentId"` // The ID of the Custom Domain Verification for this Container App. CustomDomainVerificationId pulumi.StringOutput `pulumi:"customDomainVerificationId"` // A `dapr` block as detailed below. Dapr AppDaprPtrOutput `pulumi:"dapr"` // An `identity` block as detailed below. Identity AppIdentityPtrOutput `pulumi:"identity"` // An `ingress` block as detailed below. Ingress AppIngressPtrOutput `pulumi:"ingress"` // The FQDN of the Latest Revision of the Container App. LatestRevisionFqdn pulumi.StringOutput `pulumi:"latestRevisionFqdn"` // The name of the latest Container Revision. LatestRevisionName pulumi.StringOutput `pulumi:"latestRevisionName"` // The location this Container App is deployed in. This is the same as the Environment in which it is deployed. Location pulumi.StringOutput `pulumi:"location"` // The maximum of inactive revisions allowed for this Container App. MaxInactiveRevisions pulumi.IntPtrOutput `pulumi:"maxInactiveRevisions"` // The name for this Container App. Changing this forces a new resource to be created. Name pulumi.StringOutput `pulumi:"name"` // A list of the Public IP Addresses which the Container App uses for outbound network access. OutboundIpAddresses pulumi.StringArrayOutput `pulumi:"outboundIpAddresses"` // A `registry` block as detailed below. Registries AppRegistryArrayOutput `pulumi:"registries"` // The name of the resource group in which the Container App Environment is to be created. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // The revisions operational mode for the Container App. Possible values include `Single` and `Multiple`. In `Single` mode, a single revision is in operation at any given time. In `Multiple` mode, more than one revision can be active at a time and can be configured with load distribution via the `trafficWeight` block in the `ingress` configuration. RevisionMode pulumi.StringOutput `pulumi:"revisionMode"` // One or more `secret` block as detailed below. Secrets AppSecretArrayOutput `pulumi:"secrets"` // A mapping of tags to assign to the Container App. Tags pulumi.StringMapOutput `pulumi:"tags"` // A `template` block as detailed below. Template AppTemplateOutput `pulumi:"template"` // The name of the Workload Profile in the Container App Environment to place this Container App. // // > **Note:** Omit this value to use the default `Consumption` Workload Profile. WorkloadProfileName pulumi.StringPtrOutput `pulumi:"workloadProfileName"` } // NewApp registers a new resource with the given unique name, arguments, and options. func NewApp(ctx *pulumi.Context, name string, args *AppArgs, opts ...pulumi.ResourceOption) (*App, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.ContainerAppEnvironmentId == nil { return nil, errors.New("invalid value for required argument 'ContainerAppEnvironmentId'") } if args.ResourceGroupName == nil { return nil, errors.New("invalid value for required argument 'ResourceGroupName'") } if args.RevisionMode == nil { return nil, errors.New("invalid value for required argument 'RevisionMode'") } if args.Template == nil { return nil, errors.New("invalid value for required argument 'Template'") } if args.Secrets != nil { args.Secrets = pulumi.ToSecret(args.Secrets).(AppSecretArrayInput) } secrets := pulumi.AdditionalSecretOutputs([]string{ "customDomainVerificationId", "secrets", }) opts = append(opts, secrets) opts = internal.PkgResourceDefaultOpts(opts) var resource App err := ctx.RegisterResource("azure:containerapp/app:App", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetApp gets an existing App 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 GetApp(ctx *pulumi.Context, name string, id pulumi.IDInput, state *AppState, opts ...pulumi.ResourceOption) (*App, error) { var resource App err := ctx.ReadResource("azure:containerapp/app:App", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering App resources. type appState struct { // The ID of the Container App Environment within which this Container App should exist. Changing this forces a new resource to be created. ContainerAppEnvironmentId *string `pulumi:"containerAppEnvironmentId"` // The ID of the Custom Domain Verification for this Container App. CustomDomainVerificationId *string `pulumi:"customDomainVerificationId"` // A `dapr` block as detailed below. Dapr *AppDapr `pulumi:"dapr"` // An `identity` block as detailed below. Identity *AppIdentity `pulumi:"identity"` // An `ingress` block as detailed below. Ingress *AppIngress `pulumi:"ingress"` // The FQDN of the Latest Revision of the Container App. LatestRevisionFqdn *string `pulumi:"latestRevisionFqdn"` // The name of the latest Container Revision. LatestRevisionName *string `pulumi:"latestRevisionName"` // The location this Container App is deployed in. This is the same as the Environment in which it is deployed. Location *string `pulumi:"location"` // The maximum of inactive revisions allowed for this Container App. MaxInactiveRevisions *int `pulumi:"maxInactiveRevisions"` // The name for this Container App. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // A list of the Public IP Addresses which the Container App uses for outbound network access. OutboundIpAddresses []string `pulumi:"outboundIpAddresses"` // A `registry` block as detailed below. Registries []AppRegistry `pulumi:"registries"` // The name of the resource group in which the Container App Environment is to be created. Changing this forces a new resource to be created. ResourceGroupName *string `pulumi:"resourceGroupName"` // The revisions operational mode for the Container App. Possible values include `Single` and `Multiple`. In `Single` mode, a single revision is in operation at any given time. In `Multiple` mode, more than one revision can be active at a time and can be configured with load distribution via the `trafficWeight` block in the `ingress` configuration. RevisionMode *string `pulumi:"revisionMode"` // One or more `secret` block as detailed below. Secrets []AppSecret `pulumi:"secrets"` // A mapping of tags to assign to the Container App. Tags map[string]string `pulumi:"tags"` // A `template` block as detailed below. Template *AppTemplate `pulumi:"template"` // The name of the Workload Profile in the Container App Environment to place this Container App. // // > **Note:** Omit this value to use the default `Consumption` Workload Profile. WorkloadProfileName *string `pulumi:"workloadProfileName"` } type AppState struct { // The ID of the Container App Environment within which this Container App should exist. Changing this forces a new resource to be created. ContainerAppEnvironmentId pulumi.StringPtrInput // The ID of the Custom Domain Verification for this Container App. CustomDomainVerificationId pulumi.StringPtrInput // A `dapr` block as detailed below. Dapr AppDaprPtrInput // An `identity` block as detailed below. Identity AppIdentityPtrInput // An `ingress` block as detailed below. Ingress AppIngressPtrInput // The FQDN of the Latest Revision of the Container App. LatestRevisionFqdn pulumi.StringPtrInput // The name of the latest Container Revision. LatestRevisionName pulumi.StringPtrInput // The location this Container App is deployed in. This is the same as the Environment in which it is deployed. Location pulumi.StringPtrInput // The maximum of inactive revisions allowed for this Container App. MaxInactiveRevisions pulumi.IntPtrInput // The name for this Container App. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // A list of the Public IP Addresses which the Container App uses for outbound network access. OutboundIpAddresses pulumi.StringArrayInput // A `registry` block as detailed below. Registries AppRegistryArrayInput // The name of the resource group in which the Container App Environment is to be created. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringPtrInput // The revisions operational mode for the Container App. Possible values include `Single` and `Multiple`. In `Single` mode, a single revision is in operation at any given time. In `Multiple` mode, more than one revision can be active at a time and can be configured with load distribution via the `trafficWeight` block in the `ingress` configuration. RevisionMode pulumi.StringPtrInput // One or more `secret` block as detailed below. Secrets AppSecretArrayInput // A mapping of tags to assign to the Container App. Tags pulumi.StringMapInput // A `template` block as detailed below. Template AppTemplatePtrInput // The name of the Workload Profile in the Container App Environment to place this Container App. // // > **Note:** Omit this value to use the default `Consumption` Workload Profile. WorkloadProfileName pulumi.StringPtrInput } func (AppState) ElementType() reflect.Type { return reflect.TypeOf((*appState)(nil)).Elem() } type appArgs struct { // The ID of the Container App Environment within which this Container App should exist. Changing this forces a new resource to be created. ContainerAppEnvironmentId string `pulumi:"containerAppEnvironmentId"` // A `dapr` block as detailed below. Dapr *AppDapr `pulumi:"dapr"` // An `identity` block as detailed below. Identity *AppIdentity `pulumi:"identity"` // An `ingress` block as detailed below. Ingress *AppIngress `pulumi:"ingress"` // The maximum of inactive revisions allowed for this Container App. MaxInactiveRevisions *int `pulumi:"maxInactiveRevisions"` // The name for this Container App. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // A `registry` block as detailed below. Registries []AppRegistry `pulumi:"registries"` // The name of the resource group in which the Container App Environment is to be created. Changing this forces a new resource to be created. ResourceGroupName string `pulumi:"resourceGroupName"` // The revisions operational mode for the Container App. Possible values include `Single` and `Multiple`. In `Single` mode, a single revision is in operation at any given time. In `Multiple` mode, more than one revision can be active at a time and can be configured with load distribution via the `trafficWeight` block in the `ingress` configuration. RevisionMode string `pulumi:"revisionMode"` // One or more `secret` block as detailed below. Secrets []AppSecret `pulumi:"secrets"` // A mapping of tags to assign to the Container App. Tags map[string]string `pulumi:"tags"` // A `template` block as detailed below. Template AppTemplate `pulumi:"template"` // The name of the Workload Profile in the Container App Environment to place this Container App. // // > **Note:** Omit this value to use the default `Consumption` Workload Profile. WorkloadProfileName *string `pulumi:"workloadProfileName"` } // The set of arguments for constructing a App resource. type AppArgs struct { // The ID of the Container App Environment within which this Container App should exist. Changing this forces a new resource to be created. ContainerAppEnvironmentId pulumi.StringInput // A `dapr` block as detailed below. Dapr AppDaprPtrInput // An `identity` block as detailed below. Identity AppIdentityPtrInput // An `ingress` block as detailed below. Ingress AppIngressPtrInput // The maximum of inactive revisions allowed for this Container App. MaxInactiveRevisions pulumi.IntPtrInput // The name for this Container App. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // A `registry` block as detailed below. Registries AppRegistryArrayInput // The name of the resource group in which the Container App Environment is to be created. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringInput // The revisions operational mode for the Container App. Possible values include `Single` and `Multiple`. In `Single` mode, a single revision is in operation at any given time. In `Multiple` mode, more than one revision can be active at a time and can be configured with load distribution via the `trafficWeight` block in the `ingress` configuration. RevisionMode pulumi.StringInput // One or more `secret` block as detailed below. Secrets AppSecretArrayInput // A mapping of tags to assign to the Container App. Tags pulumi.StringMapInput // A `template` block as detailed below. Template AppTemplateInput // The name of the Workload Profile in the Container App Environment to place this Container App. // // > **Note:** Omit this value to use the default `Consumption` Workload Profile. WorkloadProfileName pulumi.StringPtrInput } func (AppArgs) ElementType() reflect.Type { return reflect.TypeOf((*appArgs)(nil)).Elem() } type AppInput interface { pulumi.Input ToAppOutput() AppOutput ToAppOutputWithContext(ctx context.Context) AppOutput } func (*App) ElementType() reflect.Type { return reflect.TypeOf((**App)(nil)).Elem() } func (i *App) ToAppOutput() AppOutput { return i.ToAppOutputWithContext(context.Background()) } func (i *App) ToAppOutputWithContext(ctx context.Context) AppOutput { return pulumi.ToOutputWithContext(ctx, i).(AppOutput) } // AppArrayInput is an input type that accepts AppArray and AppArrayOutput values. // You can construct a concrete instance of `AppArrayInput` via: // // AppArray{ AppArgs{...} } type AppArrayInput interface { pulumi.Input ToAppArrayOutput() AppArrayOutput ToAppArrayOutputWithContext(context.Context) AppArrayOutput } type AppArray []AppInput func (AppArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*App)(nil)).Elem() } func (i AppArray) ToAppArrayOutput() AppArrayOutput { return i.ToAppArrayOutputWithContext(context.Background()) } func (i AppArray) ToAppArrayOutputWithContext(ctx context.Context) AppArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(AppArrayOutput) } // AppMapInput is an input type that accepts AppMap and AppMapOutput values. // You can construct a concrete instance of `AppMapInput` via: // // AppMap{ "key": AppArgs{...} } type AppMapInput interface { pulumi.Input ToAppMapOutput() AppMapOutput ToAppMapOutputWithContext(context.Context) AppMapOutput } type AppMap map[string]AppInput func (AppMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*App)(nil)).Elem() } func (i AppMap) ToAppMapOutput() AppMapOutput { return i.ToAppMapOutputWithContext(context.Background()) } func (i AppMap) ToAppMapOutputWithContext(ctx context.Context) AppMapOutput { return pulumi.ToOutputWithContext(ctx, i).(AppMapOutput) } type AppOutput struct{ *pulumi.OutputState } func (AppOutput) ElementType() reflect.Type { return reflect.TypeOf((**App)(nil)).Elem() } func (o AppOutput) ToAppOutput() AppOutput { return o } func (o AppOutput) ToAppOutputWithContext(ctx context.Context) AppOutput { return o } // The ID of the Container App Environment within which this Container App should exist. Changing this forces a new resource to be created. func (o AppOutput) ContainerAppEnvironmentId() pulumi.StringOutput { return o.ApplyT(func(v *App) pulumi.StringOutput { return v.ContainerAppEnvironmentId }).(pulumi.StringOutput) } // The ID of the Custom Domain Verification for this Container App. func (o AppOutput) CustomDomainVerificationId() pulumi.StringOutput { return o.ApplyT(func(v *App) pulumi.StringOutput { return v.CustomDomainVerificationId }).(pulumi.StringOutput) } // A `dapr` block as detailed below. func (o AppOutput) Dapr() AppDaprPtrOutput { return o.ApplyT(func(v *App) AppDaprPtrOutput { return v.Dapr }).(AppDaprPtrOutput) } // An `identity` block as detailed below. func (o AppOutput) Identity() AppIdentityPtrOutput { return o.ApplyT(func(v *App) AppIdentityPtrOutput { return v.Identity }).(AppIdentityPtrOutput) } // An `ingress` block as detailed below. func (o AppOutput) Ingress() AppIngressPtrOutput { return o.ApplyT(func(v *App) AppIngressPtrOutput { return v.Ingress }).(AppIngressPtrOutput) } // The FQDN of the Latest Revision of the Container App. func (o AppOutput) LatestRevisionFqdn() pulumi.StringOutput { return o.ApplyT(func(v *App) pulumi.StringOutput { return v.LatestRevisionFqdn }).(pulumi.StringOutput) } // The name of the latest Container Revision. func (o AppOutput) LatestRevisionName() pulumi.StringOutput { return o.ApplyT(func(v *App) pulumi.StringOutput { return v.LatestRevisionName }).(pulumi.StringOutput) } // The location this Container App is deployed in. This is the same as the Environment in which it is deployed. func (o AppOutput) Location() pulumi.StringOutput { return o.ApplyT(func(v *App) pulumi.StringOutput { return v.Location }).(pulumi.StringOutput) } // The maximum of inactive revisions allowed for this Container App. func (o AppOutput) MaxInactiveRevisions() pulumi.IntPtrOutput { return o.ApplyT(func(v *App) pulumi.IntPtrOutput { return v.MaxInactiveRevisions }).(pulumi.IntPtrOutput) } // The name for this Container App. Changing this forces a new resource to be created. func (o AppOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *App) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // A list of the Public IP Addresses which the Container App uses for outbound network access. func (o AppOutput) OutboundIpAddresses() pulumi.StringArrayOutput { return o.ApplyT(func(v *App) pulumi.StringArrayOutput { return v.OutboundIpAddresses }).(pulumi.StringArrayOutput) } // A `registry` block as detailed below. func (o AppOutput) Registries() AppRegistryArrayOutput { return o.ApplyT(func(v *App) AppRegistryArrayOutput { return v.Registries }).(AppRegistryArrayOutput) } // The name of the resource group in which the Container App Environment is to be created. Changing this forces a new resource to be created. func (o AppOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v *App) pulumi.StringOutput { return v.ResourceGroupName }).(pulumi.StringOutput) } // The revisions operational mode for the Container App. Possible values include `Single` and `Multiple`. In `Single` mode, a single revision is in operation at any given time. In `Multiple` mode, more than one revision can be active at a time and can be configured with load distribution via the `trafficWeight` block in the `ingress` configuration. func (o AppOutput) RevisionMode() pulumi.StringOutput { return o.ApplyT(func(v *App) pulumi.StringOutput { return v.RevisionMode }).(pulumi.StringOutput) } // One or more `secret` block as detailed below. func (o AppOutput) Secrets() AppSecretArrayOutput { return o.ApplyT(func(v *App) AppSecretArrayOutput { return v.Secrets }).(AppSecretArrayOutput) } // A mapping of tags to assign to the Container App. func (o AppOutput) Tags() pulumi.StringMapOutput { return o.ApplyT(func(v *App) pulumi.StringMapOutput { return v.Tags }).(pulumi.StringMapOutput) } // A `template` block as detailed below. func (o AppOutput) Template() AppTemplateOutput { return o.ApplyT(func(v *App) AppTemplateOutput { return v.Template }).(AppTemplateOutput) } // The name of the Workload Profile in the Container App Environment to place this Container App. // // > **Note:** Omit this value to use the default `Consumption` Workload Profile. func (o AppOutput) WorkloadProfileName() pulumi.StringPtrOutput { return o.ApplyT(func(v *App) pulumi.StringPtrOutput { return v.WorkloadProfileName }).(pulumi.StringPtrOutput) } type AppArrayOutput struct{ *pulumi.OutputState } func (AppArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*App)(nil)).Elem() } func (o AppArrayOutput) ToAppArrayOutput() AppArrayOutput { return o } func (o AppArrayOutput) ToAppArrayOutputWithContext(ctx context.Context) AppArrayOutput { return o } func (o AppArrayOutput) Index(i pulumi.IntInput) AppOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *App { return vs[0].([]*App)[vs[1].(int)] }).(AppOutput) } type AppMapOutput struct{ *pulumi.OutputState } func (AppMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*App)(nil)).Elem() } func (o AppMapOutput) ToAppMapOutput() AppMapOutput { return o } func (o AppMapOutput) ToAppMapOutputWithContext(ctx context.Context) AppMapOutput { return o } func (o AppMapOutput) MapIndex(k pulumi.StringInput) AppOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *App { return vs[0].(map[string]*App)[vs[1].(string)] }).(AppOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*AppInput)(nil)).Elem(), &App{}) pulumi.RegisterInputType(reflect.TypeOf((*AppArrayInput)(nil)).Elem(), AppArray{}) pulumi.RegisterInputType(reflect.TypeOf((*AppMapInput)(nil)).Elem(), AppMap{}) pulumi.RegisterOutputType(AppOutput{}) pulumi.RegisterOutputType(AppArrayOutput{}) pulumi.RegisterOutputType(AppMapOutput{}) }
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/containerapp/environmentStorage.go
sdk/go/azure/containerapp/environmentStorage.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 containerapp import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a Container App Environment Storage. // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/containerapp" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/operationalinsights" // "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 // } // exampleAnalyticsWorkspace, err := operationalinsights.NewAnalyticsWorkspace(ctx, "example", &operationalinsights.AnalyticsWorkspaceArgs{ // Name: pulumi.String("acctest-01"), // Location: example.Location, // ResourceGroupName: example.Name, // Sku: pulumi.String("PerGB2018"), // RetentionInDays: pulumi.Int(30), // }) // if err != nil { // return err // } // exampleEnvironment, err := containerapp.NewEnvironment(ctx, "example", &containerapp.EnvironmentArgs{ // Name: pulumi.String("myEnvironment"), // Location: example.Location, // ResourceGroupName: example.Name, // LogAnalyticsWorkspaceId: exampleAnalyticsWorkspace.ID(), // }) // if err != nil { // return err // } // exampleAccount, err := storage.NewAccount(ctx, "example", &storage.AccountArgs{ // Name: pulumi.String("azureteststorage"), // ResourceGroupName: example.Name, // Location: example.Location, // AccountTier: pulumi.String("Standard"), // AccountReplicationType: pulumi.String("LRS"), // }) // if err != nil { // return err // } // exampleShare, err := storage.NewShare(ctx, "example", &storage.ShareArgs{ // Name: pulumi.String("sharename"), // StorageAccountName: exampleAccount.Name, // Quota: pulumi.Int(5), // }) // if err != nil { // return err // } // _, err = containerapp.NewEnvironmentStorage(ctx, "example", &containerapp.EnvironmentStorageArgs{ // Name: pulumi.String("mycontainerappstorage"), // ContainerAppEnvironmentId: exampleEnvironment.ID(), // AccountName: exampleAccount.Name, // ShareName: exampleShare.Name, // AccessKey: exampleAccount.PrimaryAccessKey, // AccessMode: pulumi.String("ReadOnly"), // }) // 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.App` - 2025-07-01 // // ## Import // // A Container App Environment Storage can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:containerapp/environmentStorage:EnvironmentStorage example "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resGroup1/providers/Microsoft.App/managedEnvironments/myEnvironment/storages/mystorage" // ``` type EnvironmentStorage struct { pulumi.CustomResourceState // The Storage Account Access Key. AccessKey pulumi.StringPtrOutput `pulumi:"accessKey"` // The access mode to connect this storage to the Container App. Possible values include `ReadOnly` and `ReadWrite`. Changing this forces a new resource to be created. AccessMode pulumi.StringOutput `pulumi:"accessMode"` // The Azure Storage Account in which the Share to be used is located. Changing this forces a new resource to be created. AccountName pulumi.StringPtrOutput `pulumi:"accountName"` // The ID of the Container App Environment to which this storage belongs. Changing this forces a new resource to be created. ContainerAppEnvironmentId pulumi.StringOutput `pulumi:"containerAppEnvironmentId"` // The name for this Container App Environment Storage. Changing this forces a new resource to be created. Name pulumi.StringOutput `pulumi:"name"` // The NFS server to use for the Azure File Share, the format will be `yourstorageaccountname.file.core.windows.net`. Changing this forces a new resource to be created. NfsServerUrl pulumi.StringPtrOutput `pulumi:"nfsServerUrl"` // The name of the Azure Storage Share to use. Changing this forces a new resource to be created. ShareName pulumi.StringOutput `pulumi:"shareName"` } // NewEnvironmentStorage registers a new resource with the given unique name, arguments, and options. func NewEnvironmentStorage(ctx *pulumi.Context, name string, args *EnvironmentStorageArgs, opts ...pulumi.ResourceOption) (*EnvironmentStorage, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.AccessMode == nil { return nil, errors.New("invalid value for required argument 'AccessMode'") } if args.ContainerAppEnvironmentId == nil { return nil, errors.New("invalid value for required argument 'ContainerAppEnvironmentId'") } if args.ShareName == nil { return nil, errors.New("invalid value for required argument 'ShareName'") } if args.AccessKey != nil { args.AccessKey = pulumi.ToSecret(args.AccessKey).(pulumi.StringPtrInput) } secrets := pulumi.AdditionalSecretOutputs([]string{ "accessKey", }) opts = append(opts, secrets) opts = internal.PkgResourceDefaultOpts(opts) var resource EnvironmentStorage err := ctx.RegisterResource("azure:containerapp/environmentStorage:EnvironmentStorage", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetEnvironmentStorage gets an existing EnvironmentStorage 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 GetEnvironmentStorage(ctx *pulumi.Context, name string, id pulumi.IDInput, state *EnvironmentStorageState, opts ...pulumi.ResourceOption) (*EnvironmentStorage, error) { var resource EnvironmentStorage err := ctx.ReadResource("azure:containerapp/environmentStorage:EnvironmentStorage", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering EnvironmentStorage resources. type environmentStorageState struct { // The Storage Account Access Key. AccessKey *string `pulumi:"accessKey"` // The access mode to connect this storage to the Container App. Possible values include `ReadOnly` and `ReadWrite`. Changing this forces a new resource to be created. AccessMode *string `pulumi:"accessMode"` // The Azure Storage Account in which the Share to be used is located. Changing this forces a new resource to be created. AccountName *string `pulumi:"accountName"` // The ID of the Container App Environment to which this storage belongs. Changing this forces a new resource to be created. ContainerAppEnvironmentId *string `pulumi:"containerAppEnvironmentId"` // The name for this Container App Environment Storage. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // The NFS server to use for the Azure File Share, the format will be `yourstorageaccountname.file.core.windows.net`. Changing this forces a new resource to be created. NfsServerUrl *string `pulumi:"nfsServerUrl"` // The name of the Azure Storage Share to use. Changing this forces a new resource to be created. ShareName *string `pulumi:"shareName"` } type EnvironmentStorageState struct { // The Storage Account Access Key. AccessKey pulumi.StringPtrInput // The access mode to connect this storage to the Container App. Possible values include `ReadOnly` and `ReadWrite`. Changing this forces a new resource to be created. AccessMode pulumi.StringPtrInput // The Azure Storage Account in which the Share to be used is located. Changing this forces a new resource to be created. AccountName pulumi.StringPtrInput // The ID of the Container App Environment to which this storage belongs. Changing this forces a new resource to be created. ContainerAppEnvironmentId pulumi.StringPtrInput // The name for this Container App Environment Storage. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // The NFS server to use for the Azure File Share, the format will be `yourstorageaccountname.file.core.windows.net`. Changing this forces a new resource to be created. NfsServerUrl pulumi.StringPtrInput // The name of the Azure Storage Share to use. Changing this forces a new resource to be created. ShareName pulumi.StringPtrInput } func (EnvironmentStorageState) ElementType() reflect.Type { return reflect.TypeOf((*environmentStorageState)(nil)).Elem() } type environmentStorageArgs struct { // The Storage Account Access Key. AccessKey *string `pulumi:"accessKey"` // The access mode to connect this storage to the Container App. Possible values include `ReadOnly` and `ReadWrite`. Changing this forces a new resource to be created. AccessMode string `pulumi:"accessMode"` // The Azure Storage Account in which the Share to be used is located. Changing this forces a new resource to be created. AccountName *string `pulumi:"accountName"` // The ID of the Container App Environment to which this storage belongs. Changing this forces a new resource to be created. ContainerAppEnvironmentId string `pulumi:"containerAppEnvironmentId"` // The name for this Container App Environment Storage. Changing this forces a new resource to be created. Name *string `pulumi:"name"` // The NFS server to use for the Azure File Share, the format will be `yourstorageaccountname.file.core.windows.net`. Changing this forces a new resource to be created. NfsServerUrl *string `pulumi:"nfsServerUrl"` // The name of the Azure Storage Share to use. Changing this forces a new resource to be created. ShareName string `pulumi:"shareName"` } // The set of arguments for constructing a EnvironmentStorage resource. type EnvironmentStorageArgs struct { // The Storage Account Access Key. AccessKey pulumi.StringPtrInput // The access mode to connect this storage to the Container App. Possible values include `ReadOnly` and `ReadWrite`. Changing this forces a new resource to be created. AccessMode pulumi.StringInput // The Azure Storage Account in which the Share to be used is located. Changing this forces a new resource to be created. AccountName pulumi.StringPtrInput // The ID of the Container App Environment to which this storage belongs. Changing this forces a new resource to be created. ContainerAppEnvironmentId pulumi.StringInput // The name for this Container App Environment Storage. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // The NFS server to use for the Azure File Share, the format will be `yourstorageaccountname.file.core.windows.net`. Changing this forces a new resource to be created. NfsServerUrl pulumi.StringPtrInput // The name of the Azure Storage Share to use. Changing this forces a new resource to be created. ShareName pulumi.StringInput } func (EnvironmentStorageArgs) ElementType() reflect.Type { return reflect.TypeOf((*environmentStorageArgs)(nil)).Elem() } type EnvironmentStorageInput interface { pulumi.Input ToEnvironmentStorageOutput() EnvironmentStorageOutput ToEnvironmentStorageOutputWithContext(ctx context.Context) EnvironmentStorageOutput } func (*EnvironmentStorage) ElementType() reflect.Type { return reflect.TypeOf((**EnvironmentStorage)(nil)).Elem() } func (i *EnvironmentStorage) ToEnvironmentStorageOutput() EnvironmentStorageOutput { return i.ToEnvironmentStorageOutputWithContext(context.Background()) } func (i *EnvironmentStorage) ToEnvironmentStorageOutputWithContext(ctx context.Context) EnvironmentStorageOutput { return pulumi.ToOutputWithContext(ctx, i).(EnvironmentStorageOutput) } // EnvironmentStorageArrayInput is an input type that accepts EnvironmentStorageArray and EnvironmentStorageArrayOutput values. // You can construct a concrete instance of `EnvironmentStorageArrayInput` via: // // EnvironmentStorageArray{ EnvironmentStorageArgs{...} } type EnvironmentStorageArrayInput interface { pulumi.Input ToEnvironmentStorageArrayOutput() EnvironmentStorageArrayOutput ToEnvironmentStorageArrayOutputWithContext(context.Context) EnvironmentStorageArrayOutput } type EnvironmentStorageArray []EnvironmentStorageInput func (EnvironmentStorageArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*EnvironmentStorage)(nil)).Elem() } func (i EnvironmentStorageArray) ToEnvironmentStorageArrayOutput() EnvironmentStorageArrayOutput { return i.ToEnvironmentStorageArrayOutputWithContext(context.Background()) } func (i EnvironmentStorageArray) ToEnvironmentStorageArrayOutputWithContext(ctx context.Context) EnvironmentStorageArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(EnvironmentStorageArrayOutput) } // EnvironmentStorageMapInput is an input type that accepts EnvironmentStorageMap and EnvironmentStorageMapOutput values. // You can construct a concrete instance of `EnvironmentStorageMapInput` via: // // EnvironmentStorageMap{ "key": EnvironmentStorageArgs{...} } type EnvironmentStorageMapInput interface { pulumi.Input ToEnvironmentStorageMapOutput() EnvironmentStorageMapOutput ToEnvironmentStorageMapOutputWithContext(context.Context) EnvironmentStorageMapOutput } type EnvironmentStorageMap map[string]EnvironmentStorageInput func (EnvironmentStorageMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*EnvironmentStorage)(nil)).Elem() } func (i EnvironmentStorageMap) ToEnvironmentStorageMapOutput() EnvironmentStorageMapOutput { return i.ToEnvironmentStorageMapOutputWithContext(context.Background()) } func (i EnvironmentStorageMap) ToEnvironmentStorageMapOutputWithContext(ctx context.Context) EnvironmentStorageMapOutput { return pulumi.ToOutputWithContext(ctx, i).(EnvironmentStorageMapOutput) } type EnvironmentStorageOutput struct{ *pulumi.OutputState } func (EnvironmentStorageOutput) ElementType() reflect.Type { return reflect.TypeOf((**EnvironmentStorage)(nil)).Elem() } func (o EnvironmentStorageOutput) ToEnvironmentStorageOutput() EnvironmentStorageOutput { return o } func (o EnvironmentStorageOutput) ToEnvironmentStorageOutputWithContext(ctx context.Context) EnvironmentStorageOutput { return o } // The Storage Account Access Key. func (o EnvironmentStorageOutput) AccessKey() pulumi.StringPtrOutput { return o.ApplyT(func(v *EnvironmentStorage) pulumi.StringPtrOutput { return v.AccessKey }).(pulumi.StringPtrOutput) } // The access mode to connect this storage to the Container App. Possible values include `ReadOnly` and `ReadWrite`. Changing this forces a new resource to be created. func (o EnvironmentStorageOutput) AccessMode() pulumi.StringOutput { return o.ApplyT(func(v *EnvironmentStorage) pulumi.StringOutput { return v.AccessMode }).(pulumi.StringOutput) } // The Azure Storage Account in which the Share to be used is located. Changing this forces a new resource to be created. func (o EnvironmentStorageOutput) AccountName() pulumi.StringPtrOutput { return o.ApplyT(func(v *EnvironmentStorage) pulumi.StringPtrOutput { return v.AccountName }).(pulumi.StringPtrOutput) } // The ID of the Container App Environment to which this storage belongs. Changing this forces a new resource to be created. func (o EnvironmentStorageOutput) ContainerAppEnvironmentId() pulumi.StringOutput { return o.ApplyT(func(v *EnvironmentStorage) pulumi.StringOutput { return v.ContainerAppEnvironmentId }).(pulumi.StringOutput) } // The name for this Container App Environment Storage. Changing this forces a new resource to be created. func (o EnvironmentStorageOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *EnvironmentStorage) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // The NFS server to use for the Azure File Share, the format will be `yourstorageaccountname.file.core.windows.net`. Changing this forces a new resource to be created. func (o EnvironmentStorageOutput) NfsServerUrl() pulumi.StringPtrOutput { return o.ApplyT(func(v *EnvironmentStorage) pulumi.StringPtrOutput { return v.NfsServerUrl }).(pulumi.StringPtrOutput) } // The name of the Azure Storage Share to use. Changing this forces a new resource to be created. func (o EnvironmentStorageOutput) ShareName() pulumi.StringOutput { return o.ApplyT(func(v *EnvironmentStorage) pulumi.StringOutput { return v.ShareName }).(pulumi.StringOutput) } type EnvironmentStorageArrayOutput struct{ *pulumi.OutputState } func (EnvironmentStorageArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*EnvironmentStorage)(nil)).Elem() } func (o EnvironmentStorageArrayOutput) ToEnvironmentStorageArrayOutput() EnvironmentStorageArrayOutput { return o } func (o EnvironmentStorageArrayOutput) ToEnvironmentStorageArrayOutputWithContext(ctx context.Context) EnvironmentStorageArrayOutput { return o } func (o EnvironmentStorageArrayOutput) Index(i pulumi.IntInput) EnvironmentStorageOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *EnvironmentStorage { return vs[0].([]*EnvironmentStorage)[vs[1].(int)] }).(EnvironmentStorageOutput) } type EnvironmentStorageMapOutput struct{ *pulumi.OutputState } func (EnvironmentStorageMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*EnvironmentStorage)(nil)).Elem() } func (o EnvironmentStorageMapOutput) ToEnvironmentStorageMapOutput() EnvironmentStorageMapOutput { return o } func (o EnvironmentStorageMapOutput) ToEnvironmentStorageMapOutputWithContext(ctx context.Context) EnvironmentStorageMapOutput { return o } func (o EnvironmentStorageMapOutput) MapIndex(k pulumi.StringInput) EnvironmentStorageOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *EnvironmentStorage { return vs[0].(map[string]*EnvironmentStorage)[vs[1].(string)] }).(EnvironmentStorageOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*EnvironmentStorageInput)(nil)).Elem(), &EnvironmentStorage{}) pulumi.RegisterInputType(reflect.TypeOf((*EnvironmentStorageArrayInput)(nil)).Elem(), EnvironmentStorageArray{}) pulumi.RegisterInputType(reflect.TypeOf((*EnvironmentStorageMapInput)(nil)).Elem(), EnvironmentStorageMap{}) pulumi.RegisterOutputType(EnvironmentStorageOutput{}) pulumi.RegisterOutputType(EnvironmentStorageArrayOutput{}) pulumi.RegisterOutputType(EnvironmentStorageMapOutput{}) }
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/containerapp/getApp.go
sdk/go/azure/containerapp/getApp.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 containerapp import ( "context" "reflect" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Use this data source to access information about an existing Container App. // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/containerapp" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { // _, err := containerapp.LookupApp(ctx, &containerapp.LookupAppArgs{ // Name: "example-app", // ResourceGroupName: "example-resources", // }, nil) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## API Providers // // <!-- This section is generated, changes will be overwritten --> // This data source uses the following Azure API Providers: // // * `Microsoft.App` - 2025-07-01 func LookupApp(ctx *pulumi.Context, args *LookupAppArgs, opts ...pulumi.InvokeOption) (*LookupAppResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupAppResult err := ctx.Invoke("azure:containerapp/getApp:getApp", args, &rv, opts...) if err != nil { return nil, err } return &rv, nil } // A collection of arguments for invoking getApp. type LookupAppArgs struct { // The name of the Container App. Name string `pulumi:"name"` // The name of the Resource Group where this Container App exists. ResourceGroupName string `pulumi:"resourceGroupName"` } // A collection of values returned by getApp. type LookupAppResult struct { // The ID of the Container App Environment this Container App is linked to. ContainerAppEnvironmentId string `pulumi:"containerAppEnvironmentId"` CustomDomainVerificationId string `pulumi:"customDomainVerificationId"` // A `dapr` block as detailed below. Daprs []GetAppDapr `pulumi:"daprs"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` // Resource ID for the User Assigned Managed identity to use when pulling from the Container Registry. Identities []GetAppIdentity `pulumi:"identities"` // An `ingress` block as detailed below. Ingresses []GetAppIngress `pulumi:"ingresses"` LatestRevisionFqdn string `pulumi:"latestRevisionFqdn"` LatestRevisionName string `pulumi:"latestRevisionName"` Location string `pulumi:"location"` // The max inactive revisions for this Container App. MaxInactiveRevisions int `pulumi:"maxInactiveRevisions"` // Name for the IP restriction rule. Name string `pulumi:"name"` OutboundIpAddresses []string `pulumi:"outboundIpAddresses"` // A `registry` block as detailed below. Registries []GetAppRegistry `pulumi:"registries"` ResourceGroupName string `pulumi:"resourceGroupName"` // The revision mode of the Container App. RevisionMode string `pulumi:"revisionMode"` // One or more `secret` block as detailed below. Secrets []GetAppSecret `pulumi:"secrets"` // A mapping of tags to assign to the Container App. Tags map[string]string `pulumi:"tags"` // A `template` block as detailed below. Templates []GetAppTemplate `pulumi:"templates"` // The name of the Workload Profile in the Container App Environment in which this Container App is running. WorkloadProfileName string `pulumi:"workloadProfileName"` } func LookupAppOutput(ctx *pulumi.Context, args LookupAppOutputArgs, opts ...pulumi.InvokeOption) LookupAppResultOutput { return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupAppResultOutput, error) { args := v.(LookupAppArgs) options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} return ctx.InvokeOutput("azure:containerapp/getApp:getApp", args, LookupAppResultOutput{}, options).(LookupAppResultOutput), nil }).(LookupAppResultOutput) } // A collection of arguments for invoking getApp. type LookupAppOutputArgs struct { // The name of the Container App. Name pulumi.StringInput `pulumi:"name"` // The name of the Resource Group where this Container App exists. ResourceGroupName pulumi.StringInput `pulumi:"resourceGroupName"` } func (LookupAppOutputArgs) ElementType() reflect.Type { return reflect.TypeOf((*LookupAppArgs)(nil)).Elem() } // A collection of values returned by getApp. type LookupAppResultOutput struct{ *pulumi.OutputState } func (LookupAppResultOutput) ElementType() reflect.Type { return reflect.TypeOf((*LookupAppResult)(nil)).Elem() } func (o LookupAppResultOutput) ToLookupAppResultOutput() LookupAppResultOutput { return o } func (o LookupAppResultOutput) ToLookupAppResultOutputWithContext(ctx context.Context) LookupAppResultOutput { return o } // The ID of the Container App Environment this Container App is linked to. func (o LookupAppResultOutput) ContainerAppEnvironmentId() pulumi.StringOutput { return o.ApplyT(func(v LookupAppResult) string { return v.ContainerAppEnvironmentId }).(pulumi.StringOutput) } func (o LookupAppResultOutput) CustomDomainVerificationId() pulumi.StringOutput { return o.ApplyT(func(v LookupAppResult) string { return v.CustomDomainVerificationId }).(pulumi.StringOutput) } // A `dapr` block as detailed below. func (o LookupAppResultOutput) Daprs() GetAppDaprArrayOutput { return o.ApplyT(func(v LookupAppResult) []GetAppDapr { return v.Daprs }).(GetAppDaprArrayOutput) } // The provider-assigned unique ID for this managed resource. func (o LookupAppResultOutput) Id() pulumi.StringOutput { return o.ApplyT(func(v LookupAppResult) string { return v.Id }).(pulumi.StringOutput) } // Resource ID for the User Assigned Managed identity to use when pulling from the Container Registry. func (o LookupAppResultOutput) Identities() GetAppIdentityArrayOutput { return o.ApplyT(func(v LookupAppResult) []GetAppIdentity { return v.Identities }).(GetAppIdentityArrayOutput) } // An `ingress` block as detailed below. func (o LookupAppResultOutput) Ingresses() GetAppIngressArrayOutput { return o.ApplyT(func(v LookupAppResult) []GetAppIngress { return v.Ingresses }).(GetAppIngressArrayOutput) } func (o LookupAppResultOutput) LatestRevisionFqdn() pulumi.StringOutput { return o.ApplyT(func(v LookupAppResult) string { return v.LatestRevisionFqdn }).(pulumi.StringOutput) } func (o LookupAppResultOutput) LatestRevisionName() pulumi.StringOutput { return o.ApplyT(func(v LookupAppResult) string { return v.LatestRevisionName }).(pulumi.StringOutput) } func (o LookupAppResultOutput) Location() pulumi.StringOutput { return o.ApplyT(func(v LookupAppResult) string { return v.Location }).(pulumi.StringOutput) } // The max inactive revisions for this Container App. func (o LookupAppResultOutput) MaxInactiveRevisions() pulumi.IntOutput { return o.ApplyT(func(v LookupAppResult) int { return v.MaxInactiveRevisions }).(pulumi.IntOutput) } // Name for the IP restriction rule. func (o LookupAppResultOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v LookupAppResult) string { return v.Name }).(pulumi.StringOutput) } func (o LookupAppResultOutput) OutboundIpAddresses() pulumi.StringArrayOutput { return o.ApplyT(func(v LookupAppResult) []string { return v.OutboundIpAddresses }).(pulumi.StringArrayOutput) } // A `registry` block as detailed below. func (o LookupAppResultOutput) Registries() GetAppRegistryArrayOutput { return o.ApplyT(func(v LookupAppResult) []GetAppRegistry { return v.Registries }).(GetAppRegistryArrayOutput) } func (o LookupAppResultOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v LookupAppResult) string { return v.ResourceGroupName }).(pulumi.StringOutput) } // The revision mode of the Container App. func (o LookupAppResultOutput) RevisionMode() pulumi.StringOutput { return o.ApplyT(func(v LookupAppResult) string { return v.RevisionMode }).(pulumi.StringOutput) } // One or more `secret` block as detailed below. func (o LookupAppResultOutput) Secrets() GetAppSecretArrayOutput { return o.ApplyT(func(v LookupAppResult) []GetAppSecret { return v.Secrets }).(GetAppSecretArrayOutput) } // A mapping of tags to assign to the Container App. func (o LookupAppResultOutput) Tags() pulumi.StringMapOutput { return o.ApplyT(func(v LookupAppResult) map[string]string { return v.Tags }).(pulumi.StringMapOutput) } // A `template` block as detailed below. func (o LookupAppResultOutput) Templates() GetAppTemplateArrayOutput { return o.ApplyT(func(v LookupAppResult) []GetAppTemplate { return v.Templates }).(GetAppTemplateArrayOutput) } // The name of the Workload Profile in the Container App Environment in which this Container App is running. func (o LookupAppResultOutput) WorkloadProfileName() pulumi.StringOutput { return o.ApplyT(func(v LookupAppResult) string { return v.WorkloadProfileName }).(pulumi.StringOutput) } func init() { pulumi.RegisterOutputType(LookupAppResultOutput{}) }
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/containerapp/getEnvironment.go
sdk/go/azure/containerapp/getEnvironment.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 containerapp import ( "context" "reflect" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Use this data source to access information about an existing Container App Environment. // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/containerapp" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { // _, err := containerapp.LookupEnvironment(ctx, &containerapp.LookupEnvironmentArgs{ // Name: "example-environment", // ResourceGroupName: "example-resources", // }, nil) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## API Providers // // <!-- This section is generated, changes will be overwritten --> // This data source uses the following Azure API Providers: // // * `Microsoft.App` - 2025-07-01 // // * `Microsoft.OperationalInsights` - 2020-08-01 func LookupEnvironment(ctx *pulumi.Context, args *LookupEnvironmentArgs, opts ...pulumi.InvokeOption) (*LookupEnvironmentResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupEnvironmentResult err := ctx.Invoke("azure:containerapp/getEnvironment:getEnvironment", args, &rv, opts...) if err != nil { return nil, err } return &rv, nil } // A collection of arguments for invoking getEnvironment. type LookupEnvironmentArgs struct { // The name of the Container Apps Managed Environment. Name string `pulumi:"name"` // The name of the Resource Group where this Container App Environment exists. ResourceGroupName string `pulumi:"resourceGroupName"` } // A collection of values returned by getEnvironment. type LookupEnvironmentResult struct { // The ID of the Custom Domain Verification for this Container App Environment. CustomDomainVerificationId string `pulumi:"customDomainVerificationId"` // The default publicly resolvable name of this Container App Environment. This is generated at creation time to be globally unique. DefaultDomain string `pulumi:"defaultDomain"` // The network addressing in which the Container Apps in this Container App Environment will reside in CIDR notation. DockerBridgeCidr string `pulumi:"dockerBridgeCidr"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` // The ID of the Subnet in use by the Container Apps Control Plane. InfrastructureSubnetId string `pulumi:"infrastructureSubnetId"` // Does the Container App Environment operate in Internal Load Balancing Mode? InternalLoadBalancerEnabled bool `pulumi:"internalLoadBalancerEnabled"` // The Azure Location where this Container App Environment exists. Location string `pulumi:"location"` // The name of the Log Analytics Workspace this Container Apps Managed Environment is linked to. LogAnalyticsWorkspaceName string `pulumi:"logAnalyticsWorkspaceName"` Name string `pulumi:"name"` // The IP range, in CIDR notation, that is reserved for environment infrastructure IP addresses. PlatformReservedCidr string `pulumi:"platformReservedCidr"` // The IP address from the IP range defined by `platformReservedCidr` that is reserved for the internal DNS server. PlatformReservedDnsIpAddress string `pulumi:"platformReservedDnsIpAddress"` // The public network access setting for this Container App Environment. PublicNetworkAccess string `pulumi:"publicNetworkAccess"` ResourceGroupName string `pulumi:"resourceGroupName"` // The Static IP address of the Environment. StaticIpAddress string `pulumi:"staticIpAddress"` // A mapping of tags assigned to the resource. Tags map[string]string `pulumi:"tags"` } func LookupEnvironmentOutput(ctx *pulumi.Context, args LookupEnvironmentOutputArgs, opts ...pulumi.InvokeOption) LookupEnvironmentResultOutput { return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupEnvironmentResultOutput, error) { args := v.(LookupEnvironmentArgs) options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} return ctx.InvokeOutput("azure:containerapp/getEnvironment:getEnvironment", args, LookupEnvironmentResultOutput{}, options).(LookupEnvironmentResultOutput), nil }).(LookupEnvironmentResultOutput) } // A collection of arguments for invoking getEnvironment. type LookupEnvironmentOutputArgs struct { // The name of the Container Apps Managed Environment. Name pulumi.StringInput `pulumi:"name"` // The name of the Resource Group where this Container App Environment exists. ResourceGroupName pulumi.StringInput `pulumi:"resourceGroupName"` } func (LookupEnvironmentOutputArgs) ElementType() reflect.Type { return reflect.TypeOf((*LookupEnvironmentArgs)(nil)).Elem() } // A collection of values returned by getEnvironment. type LookupEnvironmentResultOutput struct{ *pulumi.OutputState } func (LookupEnvironmentResultOutput) ElementType() reflect.Type { return reflect.TypeOf((*LookupEnvironmentResult)(nil)).Elem() } func (o LookupEnvironmentResultOutput) ToLookupEnvironmentResultOutput() LookupEnvironmentResultOutput { return o } func (o LookupEnvironmentResultOutput) ToLookupEnvironmentResultOutputWithContext(ctx context.Context) LookupEnvironmentResultOutput { return o } // The ID of the Custom Domain Verification for this Container App Environment. func (o LookupEnvironmentResultOutput) CustomDomainVerificationId() pulumi.StringOutput { return o.ApplyT(func(v LookupEnvironmentResult) string { return v.CustomDomainVerificationId }).(pulumi.StringOutput) } // The default publicly resolvable name of this Container App Environment. This is generated at creation time to be globally unique. func (o LookupEnvironmentResultOutput) DefaultDomain() pulumi.StringOutput { return o.ApplyT(func(v LookupEnvironmentResult) string { return v.DefaultDomain }).(pulumi.StringOutput) } // The network addressing in which the Container Apps in this Container App Environment will reside in CIDR notation. func (o LookupEnvironmentResultOutput) DockerBridgeCidr() pulumi.StringOutput { return o.ApplyT(func(v LookupEnvironmentResult) string { return v.DockerBridgeCidr }).(pulumi.StringOutput) } // The provider-assigned unique ID for this managed resource. func (o LookupEnvironmentResultOutput) Id() pulumi.StringOutput { return o.ApplyT(func(v LookupEnvironmentResult) string { return v.Id }).(pulumi.StringOutput) } // The ID of the Subnet in use by the Container Apps Control Plane. func (o LookupEnvironmentResultOutput) InfrastructureSubnetId() pulumi.StringOutput { return o.ApplyT(func(v LookupEnvironmentResult) string { return v.InfrastructureSubnetId }).(pulumi.StringOutput) } // Does the Container App Environment operate in Internal Load Balancing Mode? func (o LookupEnvironmentResultOutput) InternalLoadBalancerEnabled() pulumi.BoolOutput { return o.ApplyT(func(v LookupEnvironmentResult) bool { return v.InternalLoadBalancerEnabled }).(pulumi.BoolOutput) } // The Azure Location where this Container App Environment exists. func (o LookupEnvironmentResultOutput) Location() pulumi.StringOutput { return o.ApplyT(func(v LookupEnvironmentResult) string { return v.Location }).(pulumi.StringOutput) } // The name of the Log Analytics Workspace this Container Apps Managed Environment is linked to. func (o LookupEnvironmentResultOutput) LogAnalyticsWorkspaceName() pulumi.StringOutput { return o.ApplyT(func(v LookupEnvironmentResult) string { return v.LogAnalyticsWorkspaceName }).(pulumi.StringOutput) } func (o LookupEnvironmentResultOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v LookupEnvironmentResult) string { return v.Name }).(pulumi.StringOutput) } // The IP range, in CIDR notation, that is reserved for environment infrastructure IP addresses. func (o LookupEnvironmentResultOutput) PlatformReservedCidr() pulumi.StringOutput { return o.ApplyT(func(v LookupEnvironmentResult) string { return v.PlatformReservedCidr }).(pulumi.StringOutput) } // The IP address from the IP range defined by `platformReservedCidr` that is reserved for the internal DNS server. func (o LookupEnvironmentResultOutput) PlatformReservedDnsIpAddress() pulumi.StringOutput { return o.ApplyT(func(v LookupEnvironmentResult) string { return v.PlatformReservedDnsIpAddress }).(pulumi.StringOutput) } // The public network access setting for this Container App Environment. func (o LookupEnvironmentResultOutput) PublicNetworkAccess() pulumi.StringOutput { return o.ApplyT(func(v LookupEnvironmentResult) string { return v.PublicNetworkAccess }).(pulumi.StringOutput) } func (o LookupEnvironmentResultOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v LookupEnvironmentResult) string { return v.ResourceGroupName }).(pulumi.StringOutput) } // The Static IP address of the Environment. func (o LookupEnvironmentResultOutput) StaticIpAddress() pulumi.StringOutput { return o.ApplyT(func(v LookupEnvironmentResult) string { return v.StaticIpAddress }).(pulumi.StringOutput) } // A mapping of tags assigned to the resource. func (o LookupEnvironmentResultOutput) Tags() pulumi.StringMapOutput { return o.ApplyT(func(v LookupEnvironmentResult) map[string]string { return v.Tags }).(pulumi.StringMapOutput) } func init() { pulumi.RegisterOutputType(LookupEnvironmentResultOutput{}) }
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/graph/init.go
sdk/go/azure/graph/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 graph 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:graph/servicesAccount:ServicesAccount": r = &ServicesAccount{} 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", "graph/servicesAccount", &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/graph/getServicesAccount.go
sdk/go/azure/graph/getServicesAccount.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 graph 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 Graph Services Account. // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/graph" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { // example, err := graph.LookupServicesAccount(ctx, &graph.LookupServicesAccountArgs{ // Name: "example-graph-services-account", // ResourceGroupName: "example-resources", // }, nil) // if err != nil { // return err // } // ctx.Export("applicationId", example.ApplicationId) // return nil // }) // } // // ``` // // ## API Providers // // <!-- This section is generated, changes will be overwritten --> // This data source uses the following Azure API Providers: // // * `Microsoft.GraphServices` - 2023-04-13 func LookupServicesAccount(ctx *pulumi.Context, args *LookupServicesAccountArgs, opts ...pulumi.InvokeOption) (*LookupServicesAccountResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupServicesAccountResult err := ctx.Invoke("azure:graph/getServicesAccount:getServicesAccount", args, &rv, opts...) if err != nil { return nil, err } return &rv, nil } // A collection of arguments for invoking getServicesAccount. type LookupServicesAccountArgs struct { // The name of the Graph Services Account. Name string `pulumi:"name"` // The name of the Resource Group where the Graph Services Account exists. ResourceGroupName string `pulumi:"resourceGroupName"` } // A collection of values returned by getServicesAccount. type LookupServicesAccountResult struct { // The application ID associated with the Graph Services Account. ApplicationId string `pulumi:"applicationId"` // The billing plan ID for the Graph Services Account. BillingPlanId string `pulumi:"billingPlanId"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` Name string `pulumi:"name"` ResourceGroupName string `pulumi:"resourceGroupName"` // A mapping of tags assigned to the Graph Services Account. Tags map[string]string `pulumi:"tags"` } func LookupServicesAccountOutput(ctx *pulumi.Context, args LookupServicesAccountOutputArgs, opts ...pulumi.InvokeOption) LookupServicesAccountResultOutput { return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupServicesAccountResultOutput, error) { args := v.(LookupServicesAccountArgs) options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} return ctx.InvokeOutput("azure:graph/getServicesAccount:getServicesAccount", args, LookupServicesAccountResultOutput{}, options).(LookupServicesAccountResultOutput), nil }).(LookupServicesAccountResultOutput) } // A collection of arguments for invoking getServicesAccount. type LookupServicesAccountOutputArgs struct { // The name of the Graph Services Account. Name pulumi.StringInput `pulumi:"name"` // The name of the Resource Group where the Graph Services Account exists. ResourceGroupName pulumi.StringInput `pulumi:"resourceGroupName"` } func (LookupServicesAccountOutputArgs) ElementType() reflect.Type { return reflect.TypeOf((*LookupServicesAccountArgs)(nil)).Elem() } // A collection of values returned by getServicesAccount. type LookupServicesAccountResultOutput struct{ *pulumi.OutputState } func (LookupServicesAccountResultOutput) ElementType() reflect.Type { return reflect.TypeOf((*LookupServicesAccountResult)(nil)).Elem() } func (o LookupServicesAccountResultOutput) ToLookupServicesAccountResultOutput() LookupServicesAccountResultOutput { return o } func (o LookupServicesAccountResultOutput) ToLookupServicesAccountResultOutputWithContext(ctx context.Context) LookupServicesAccountResultOutput { return o } // The application ID associated with the Graph Services Account. func (o LookupServicesAccountResultOutput) ApplicationId() pulumi.StringOutput { return o.ApplyT(func(v LookupServicesAccountResult) string { return v.ApplicationId }).(pulumi.StringOutput) } // The billing plan ID for the Graph Services Account. func (o LookupServicesAccountResultOutput) BillingPlanId() pulumi.StringOutput { return o.ApplyT(func(v LookupServicesAccountResult) string { return v.BillingPlanId }).(pulumi.StringOutput) } // The provider-assigned unique ID for this managed resource. func (o LookupServicesAccountResultOutput) Id() pulumi.StringOutput { return o.ApplyT(func(v LookupServicesAccountResult) string { return v.Id }).(pulumi.StringOutput) } func (o LookupServicesAccountResultOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v LookupServicesAccountResult) string { return v.Name }).(pulumi.StringOutput) } func (o LookupServicesAccountResultOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v LookupServicesAccountResult) string { return v.ResourceGroupName }).(pulumi.StringOutput) } // A mapping of tags assigned to the Graph Services Account. func (o LookupServicesAccountResultOutput) Tags() pulumi.StringMapOutput { return o.ApplyT(func(v LookupServicesAccountResult) map[string]string { return v.Tags }).(pulumi.StringMapOutput) } func init() { pulumi.RegisterOutputType(LookupServicesAccountResultOutput{}) }
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/graph/servicesAccount.go
sdk/go/azure/graph/servicesAccount.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 graph import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages a Microsoft Graph Services Account. // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core" // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/graph" // "github.com/pulumi/pulumi-azuread/sdk/v6/go/azuread" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { // example, err := azuread.NewApplication(ctx, "example", &azuread.ApplicationArgs{ // DisplayName: pulumi.String("example-app"), // }) // if err != nil { // return err // } // exampleResourceGroup, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{ // Name: pulumi.String("example-resources"), // Location: pulumi.String("West Europe"), // }) // if err != nil { // return err // } // _, err = graph.NewServicesAccount(ctx, "example", &graph.ServicesAccountArgs{ // Name: pulumi.String("example"), // ResourceGroupName: exampleResourceGroup.Name, // ApplicationId: example.ApplicationId, // Tags: pulumi.StringMap{ // "environment": pulumi.String("Production"), // }, // }) // if err != nil { // return err // } // return nil // }) // } // // ``` // // ## API Providers // // <!-- This section is generated, changes will be overwritten --> // This resource uses the following Azure API Providers: // // * `Microsoft.GraphServices` - 2023-04-13 // // ## Import // // An existing Account can be imported into Pulumi using the `resource id`, e.g. // // ```sh // $ pulumi import azure:graph/servicesAccount:ServicesAccount example /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/example-resource-group/providers/Microsoft.GraphServices/accounts/account1 // ``` type ServicesAccount struct { pulumi.CustomResourceState // Customer owned application ID. Changing this forces a new Account to be created. ApplicationId pulumi.StringOutput `pulumi:"applicationId"` // Billing Plan Id. BillingPlanId pulumi.StringOutput `pulumi:"billingPlanId"` // Specifies the name of this Account. Changing this forces a new Account to be created. Name pulumi.StringOutput `pulumi:"name"` // Specifies the name of the Resource Group within which this Account should exist. Changing this forces a new Account to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // A mapping of tags which should be assigned to the Account. Tags pulumi.StringMapOutput `pulumi:"tags"` } // NewServicesAccount registers a new resource with the given unique name, arguments, and options. func NewServicesAccount(ctx *pulumi.Context, name string, args *ServicesAccountArgs, opts ...pulumi.ResourceOption) (*ServicesAccount, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.ApplicationId == nil { return nil, errors.New("invalid value for required argument 'ApplicationId'") } if args.ResourceGroupName == nil { return nil, errors.New("invalid value for required argument 'ResourceGroupName'") } aliases := pulumi.Aliases([]pulumi.Alias{ { Type: pulumi.String("azure:graph/account:Account"), }, }) opts = append(opts, aliases) opts = internal.PkgResourceDefaultOpts(opts) var resource ServicesAccount err := ctx.RegisterResource("azure:graph/servicesAccount:ServicesAccount", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetServicesAccount gets an existing ServicesAccount resource's state with the given name, ID, and optional // state properties that are used to uniquely qualify the lookup (nil if not required). func GetServicesAccount(ctx *pulumi.Context, name string, id pulumi.IDInput, state *ServicesAccountState, opts ...pulumi.ResourceOption) (*ServicesAccount, error) { var resource ServicesAccount err := ctx.ReadResource("azure:graph/servicesAccount:ServicesAccount", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering ServicesAccount resources. type servicesAccountState struct { // Customer owned application ID. Changing this forces a new Account to be created. ApplicationId *string `pulumi:"applicationId"` // Billing Plan Id. BillingPlanId *string `pulumi:"billingPlanId"` // Specifies the name of this Account. Changing this forces a new Account to be created. Name *string `pulumi:"name"` // Specifies the name of the Resource Group within which this Account should exist. Changing this forces a new Account to be created. ResourceGroupName *string `pulumi:"resourceGroupName"` // A mapping of tags which should be assigned to the Account. Tags map[string]string `pulumi:"tags"` } type ServicesAccountState struct { // Customer owned application ID. Changing this forces a new Account to be created. ApplicationId pulumi.StringPtrInput // Billing Plan Id. BillingPlanId pulumi.StringPtrInput // Specifies the name of this Account. Changing this forces a new Account to be created. Name pulumi.StringPtrInput // Specifies the name of the Resource Group within which this Account should exist. Changing this forces a new Account to be created. ResourceGroupName pulumi.StringPtrInput // A mapping of tags which should be assigned to the Account. Tags pulumi.StringMapInput } func (ServicesAccountState) ElementType() reflect.Type { return reflect.TypeOf((*servicesAccountState)(nil)).Elem() } type servicesAccountArgs struct { // Customer owned application ID. Changing this forces a new Account to be created. ApplicationId string `pulumi:"applicationId"` // Specifies the name of this Account. Changing this forces a new Account to be created. Name *string `pulumi:"name"` // Specifies the name of the Resource Group within which this Account should exist. Changing this forces a new Account to be created. ResourceGroupName string `pulumi:"resourceGroupName"` // A mapping of tags which should be assigned to the Account. Tags map[string]string `pulumi:"tags"` } // The set of arguments for constructing a ServicesAccount resource. type ServicesAccountArgs struct { // Customer owned application ID. Changing this forces a new Account to be created. ApplicationId pulumi.StringInput // Specifies the name of this Account. Changing this forces a new Account to be created. Name pulumi.StringPtrInput // Specifies the name of the Resource Group within which this Account should exist. Changing this forces a new Account to be created. ResourceGroupName pulumi.StringInput // A mapping of tags which should be assigned to the Account. Tags pulumi.StringMapInput } func (ServicesAccountArgs) ElementType() reflect.Type { return reflect.TypeOf((*servicesAccountArgs)(nil)).Elem() } type ServicesAccountInput interface { pulumi.Input ToServicesAccountOutput() ServicesAccountOutput ToServicesAccountOutputWithContext(ctx context.Context) ServicesAccountOutput } func (*ServicesAccount) ElementType() reflect.Type { return reflect.TypeOf((**ServicesAccount)(nil)).Elem() } func (i *ServicesAccount) ToServicesAccountOutput() ServicesAccountOutput { return i.ToServicesAccountOutputWithContext(context.Background()) } func (i *ServicesAccount) ToServicesAccountOutputWithContext(ctx context.Context) ServicesAccountOutput { return pulumi.ToOutputWithContext(ctx, i).(ServicesAccountOutput) } // ServicesAccountArrayInput is an input type that accepts ServicesAccountArray and ServicesAccountArrayOutput values. // You can construct a concrete instance of `ServicesAccountArrayInput` via: // // ServicesAccountArray{ ServicesAccountArgs{...} } type ServicesAccountArrayInput interface { pulumi.Input ToServicesAccountArrayOutput() ServicesAccountArrayOutput ToServicesAccountArrayOutputWithContext(context.Context) ServicesAccountArrayOutput } type ServicesAccountArray []ServicesAccountInput func (ServicesAccountArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*ServicesAccount)(nil)).Elem() } func (i ServicesAccountArray) ToServicesAccountArrayOutput() ServicesAccountArrayOutput { return i.ToServicesAccountArrayOutputWithContext(context.Background()) } func (i ServicesAccountArray) ToServicesAccountArrayOutputWithContext(ctx context.Context) ServicesAccountArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(ServicesAccountArrayOutput) } // ServicesAccountMapInput is an input type that accepts ServicesAccountMap and ServicesAccountMapOutput values. // You can construct a concrete instance of `ServicesAccountMapInput` via: // // ServicesAccountMap{ "key": ServicesAccountArgs{...} } type ServicesAccountMapInput interface { pulumi.Input ToServicesAccountMapOutput() ServicesAccountMapOutput ToServicesAccountMapOutputWithContext(context.Context) ServicesAccountMapOutput } type ServicesAccountMap map[string]ServicesAccountInput func (ServicesAccountMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*ServicesAccount)(nil)).Elem() } func (i ServicesAccountMap) ToServicesAccountMapOutput() ServicesAccountMapOutput { return i.ToServicesAccountMapOutputWithContext(context.Background()) } func (i ServicesAccountMap) ToServicesAccountMapOutputWithContext(ctx context.Context) ServicesAccountMapOutput { return pulumi.ToOutputWithContext(ctx, i).(ServicesAccountMapOutput) } type ServicesAccountOutput struct{ *pulumi.OutputState } func (ServicesAccountOutput) ElementType() reflect.Type { return reflect.TypeOf((**ServicesAccount)(nil)).Elem() } func (o ServicesAccountOutput) ToServicesAccountOutput() ServicesAccountOutput { return o } func (o ServicesAccountOutput) ToServicesAccountOutputWithContext(ctx context.Context) ServicesAccountOutput { return o } // Customer owned application ID. Changing this forces a new Account to be created. func (o ServicesAccountOutput) ApplicationId() pulumi.StringOutput { return o.ApplyT(func(v *ServicesAccount) pulumi.StringOutput { return v.ApplicationId }).(pulumi.StringOutput) } // Billing Plan Id. func (o ServicesAccountOutput) BillingPlanId() pulumi.StringOutput { return o.ApplyT(func(v *ServicesAccount) pulumi.StringOutput { return v.BillingPlanId }).(pulumi.StringOutput) } // Specifies the name of this Account. Changing this forces a new Account to be created. func (o ServicesAccountOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *ServicesAccount) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // Specifies the name of the Resource Group within which this Account should exist. Changing this forces a new Account to be created. func (o ServicesAccountOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v *ServicesAccount) pulumi.StringOutput { return v.ResourceGroupName }).(pulumi.StringOutput) } // A mapping of tags which should be assigned to the Account. func (o ServicesAccountOutput) Tags() pulumi.StringMapOutput { return o.ApplyT(func(v *ServicesAccount) pulumi.StringMapOutput { return v.Tags }).(pulumi.StringMapOutput) } type ServicesAccountArrayOutput struct{ *pulumi.OutputState } func (ServicesAccountArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*ServicesAccount)(nil)).Elem() } func (o ServicesAccountArrayOutput) ToServicesAccountArrayOutput() ServicesAccountArrayOutput { return o } func (o ServicesAccountArrayOutput) ToServicesAccountArrayOutputWithContext(ctx context.Context) ServicesAccountArrayOutput { return o } func (o ServicesAccountArrayOutput) Index(i pulumi.IntInput) ServicesAccountOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *ServicesAccount { return vs[0].([]*ServicesAccount)[vs[1].(int)] }).(ServicesAccountOutput) } type ServicesAccountMapOutput struct{ *pulumi.OutputState } func (ServicesAccountMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*ServicesAccount)(nil)).Elem() } func (o ServicesAccountMapOutput) ToServicesAccountMapOutput() ServicesAccountMapOutput { return o } func (o ServicesAccountMapOutput) ToServicesAccountMapOutputWithContext(ctx context.Context) ServicesAccountMapOutput { return o } func (o ServicesAccountMapOutput) MapIndex(k pulumi.StringInput) ServicesAccountOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *ServicesAccount { return vs[0].(map[string]*ServicesAccount)[vs[1].(string)] }).(ServicesAccountOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*ServicesAccountInput)(nil)).Elem(), &ServicesAccount{}) pulumi.RegisterInputType(reflect.TypeOf((*ServicesAccountArrayInput)(nil)).Elem(), ServicesAccountArray{}) pulumi.RegisterInputType(reflect.TypeOf((*ServicesAccountMapInput)(nil)).Elem(), ServicesAccountMap{}) pulumi.RegisterOutputType(ServicesAccountOutput{}) pulumi.RegisterOutputType(ServicesAccountArrayOutput{}) pulumi.RegisterOutputType(ServicesAccountMapOutput{}) }
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/communication/emailServiceDomain.go
sdk/go/azure/communication/emailServiceDomain.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 communication import ( "context" "reflect" "errors" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Manages an Email Communication Service Domain. // // ## Example Usage // // ```go // package main // // import ( // // "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/communication" // "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 // } // exampleEmailService, err := communication.NewEmailService(ctx, "example", &communication.EmailServiceArgs{ // Name: pulumi.String("example-emailcommunicationservice"), // ResourceGroupName: example.Name, // DataLocation: pulumi.String("United States"), // }) // if err != nil { // return err // } // _, err = communication.NewEmailServiceDomain(ctx, "example", &communication.EmailServiceDomainArgs{ // Name: pulumi.String("AzureManagedDomain"), // EmailServiceId: exampleEmailService.ID(), // DomainManagement: pulumi.String("AzureManaged"), // }) // 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.Communication` - 2023-03-31 // // ## Import // // Communication Services can be imported using the `resource id`, e.g. // // ```sh // $ pulumi import azure:communication/emailServiceDomain:EmailServiceDomain example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Communication/emailServices/emailCommunicationService1/domains/domain1 // ``` type EmailServiceDomain struct { pulumi.CustomResourceState // Describes how a Domains resource is being managed. Possible values are `AzureManaged`, `CustomerManaged`, `CustomerManagedInExchangeOnline`. Changing this forces a new Email Communication Service to be created. DomainManagement pulumi.StringOutput `pulumi:"domainManagement"` // The resource ID of the Email Communication Service where the Domain belongs to. Changing this forces a new Email Communication Service to be created. EmailServiceId pulumi.StringOutput `pulumi:"emailServiceId"` // P2 sender domain that is displayed to the email recipients [RFC 5322]. FromSenderDomain pulumi.StringOutput `pulumi:"fromSenderDomain"` // P1 sender domain that is present on the email envelope [RFC 5321]. MailFromSenderDomain pulumi.StringOutput `pulumi:"mailFromSenderDomain"` // The name of the Email Communication Service resource. If `domainManagement` is `AzureManaged`, the name must be `AzureManagedDomain`. Changing this forces a new Email Communication Service to be created. Name pulumi.StringOutput `pulumi:"name"` // A mapping of tags which should be assigned to the Email Communication Service. Tags pulumi.StringMapOutput `pulumi:"tags"` // Describes user engagement tracking is enabled or disabled. Defaults to `false`. UserEngagementTrackingEnabled pulumi.BoolPtrOutput `pulumi:"userEngagementTrackingEnabled"` // (Optional) An `verificationRecords` block as defined below. VerificationRecords EmailServiceDomainVerificationRecordArrayOutput `pulumi:"verificationRecords"` } // NewEmailServiceDomain registers a new resource with the given unique name, arguments, and options. func NewEmailServiceDomain(ctx *pulumi.Context, name string, args *EmailServiceDomainArgs, opts ...pulumi.ResourceOption) (*EmailServiceDomain, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.DomainManagement == nil { return nil, errors.New("invalid value for required argument 'DomainManagement'") } if args.EmailServiceId == nil { return nil, errors.New("invalid value for required argument 'EmailServiceId'") } opts = internal.PkgResourceDefaultOpts(opts) var resource EmailServiceDomain err := ctx.RegisterResource("azure:communication/emailServiceDomain:EmailServiceDomain", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetEmailServiceDomain gets an existing EmailServiceDomain 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 GetEmailServiceDomain(ctx *pulumi.Context, name string, id pulumi.IDInput, state *EmailServiceDomainState, opts ...pulumi.ResourceOption) (*EmailServiceDomain, error) { var resource EmailServiceDomain err := ctx.ReadResource("azure:communication/emailServiceDomain:EmailServiceDomain", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering EmailServiceDomain resources. type emailServiceDomainState struct { // Describes how a Domains resource is being managed. Possible values are `AzureManaged`, `CustomerManaged`, `CustomerManagedInExchangeOnline`. Changing this forces a new Email Communication Service to be created. DomainManagement *string `pulumi:"domainManagement"` // The resource ID of the Email Communication Service where the Domain belongs to. Changing this forces a new Email Communication Service to be created. EmailServiceId *string `pulumi:"emailServiceId"` // P2 sender domain that is displayed to the email recipients [RFC 5322]. FromSenderDomain *string `pulumi:"fromSenderDomain"` // P1 sender domain that is present on the email envelope [RFC 5321]. MailFromSenderDomain *string `pulumi:"mailFromSenderDomain"` // The name of the Email Communication Service resource. If `domainManagement` is `AzureManaged`, the name must be `AzureManagedDomain`. Changing this forces a new Email Communication Service to be created. Name *string `pulumi:"name"` // A mapping of tags which should be assigned to the Email Communication Service. Tags map[string]string `pulumi:"tags"` // Describes user engagement tracking is enabled or disabled. Defaults to `false`. UserEngagementTrackingEnabled *bool `pulumi:"userEngagementTrackingEnabled"` // (Optional) An `verificationRecords` block as defined below. VerificationRecords []EmailServiceDomainVerificationRecord `pulumi:"verificationRecords"` } type EmailServiceDomainState struct { // Describes how a Domains resource is being managed. Possible values are `AzureManaged`, `CustomerManaged`, `CustomerManagedInExchangeOnline`. Changing this forces a new Email Communication Service to be created. DomainManagement pulumi.StringPtrInput // The resource ID of the Email Communication Service where the Domain belongs to. Changing this forces a new Email Communication Service to be created. EmailServiceId pulumi.StringPtrInput // P2 sender domain that is displayed to the email recipients [RFC 5322]. FromSenderDomain pulumi.StringPtrInput // P1 sender domain that is present on the email envelope [RFC 5321]. MailFromSenderDomain pulumi.StringPtrInput // The name of the Email Communication Service resource. If `domainManagement` is `AzureManaged`, the name must be `AzureManagedDomain`. Changing this forces a new Email Communication Service to be created. Name pulumi.StringPtrInput // A mapping of tags which should be assigned to the Email Communication Service. Tags pulumi.StringMapInput // Describes user engagement tracking is enabled or disabled. Defaults to `false`. UserEngagementTrackingEnabled pulumi.BoolPtrInput // (Optional) An `verificationRecords` block as defined below. VerificationRecords EmailServiceDomainVerificationRecordArrayInput } func (EmailServiceDomainState) ElementType() reflect.Type { return reflect.TypeOf((*emailServiceDomainState)(nil)).Elem() } type emailServiceDomainArgs struct { // Describes how a Domains resource is being managed. Possible values are `AzureManaged`, `CustomerManaged`, `CustomerManagedInExchangeOnline`. Changing this forces a new Email Communication Service to be created. DomainManagement string `pulumi:"domainManagement"` // The resource ID of the Email Communication Service where the Domain belongs to. Changing this forces a new Email Communication Service to be created. EmailServiceId string `pulumi:"emailServiceId"` // The name of the Email Communication Service resource. If `domainManagement` is `AzureManaged`, the name must be `AzureManagedDomain`. Changing this forces a new Email Communication Service to be created. Name *string `pulumi:"name"` // A mapping of tags which should be assigned to the Email Communication Service. Tags map[string]string `pulumi:"tags"` // Describes user engagement tracking is enabled or disabled. Defaults to `false`. UserEngagementTrackingEnabled *bool `pulumi:"userEngagementTrackingEnabled"` } // The set of arguments for constructing a EmailServiceDomain resource. type EmailServiceDomainArgs struct { // Describes how a Domains resource is being managed. Possible values are `AzureManaged`, `CustomerManaged`, `CustomerManagedInExchangeOnline`. Changing this forces a new Email Communication Service to be created. DomainManagement pulumi.StringInput // The resource ID of the Email Communication Service where the Domain belongs to. Changing this forces a new Email Communication Service to be created. EmailServiceId pulumi.StringInput // The name of the Email Communication Service resource. If `domainManagement` is `AzureManaged`, the name must be `AzureManagedDomain`. Changing this forces a new Email Communication Service to be created. Name pulumi.StringPtrInput // A mapping of tags which should be assigned to the Email Communication Service. Tags pulumi.StringMapInput // Describes user engagement tracking is enabled or disabled. Defaults to `false`. UserEngagementTrackingEnabled pulumi.BoolPtrInput } func (EmailServiceDomainArgs) ElementType() reflect.Type { return reflect.TypeOf((*emailServiceDomainArgs)(nil)).Elem() } type EmailServiceDomainInput interface { pulumi.Input ToEmailServiceDomainOutput() EmailServiceDomainOutput ToEmailServiceDomainOutputWithContext(ctx context.Context) EmailServiceDomainOutput } func (*EmailServiceDomain) ElementType() reflect.Type { return reflect.TypeOf((**EmailServiceDomain)(nil)).Elem() } func (i *EmailServiceDomain) ToEmailServiceDomainOutput() EmailServiceDomainOutput { return i.ToEmailServiceDomainOutputWithContext(context.Background()) } func (i *EmailServiceDomain) ToEmailServiceDomainOutputWithContext(ctx context.Context) EmailServiceDomainOutput { return pulumi.ToOutputWithContext(ctx, i).(EmailServiceDomainOutput) } // EmailServiceDomainArrayInput is an input type that accepts EmailServiceDomainArray and EmailServiceDomainArrayOutput values. // You can construct a concrete instance of `EmailServiceDomainArrayInput` via: // // EmailServiceDomainArray{ EmailServiceDomainArgs{...} } type EmailServiceDomainArrayInput interface { pulumi.Input ToEmailServiceDomainArrayOutput() EmailServiceDomainArrayOutput ToEmailServiceDomainArrayOutputWithContext(context.Context) EmailServiceDomainArrayOutput } type EmailServiceDomainArray []EmailServiceDomainInput func (EmailServiceDomainArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*EmailServiceDomain)(nil)).Elem() } func (i EmailServiceDomainArray) ToEmailServiceDomainArrayOutput() EmailServiceDomainArrayOutput { return i.ToEmailServiceDomainArrayOutputWithContext(context.Background()) } func (i EmailServiceDomainArray) ToEmailServiceDomainArrayOutputWithContext(ctx context.Context) EmailServiceDomainArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(EmailServiceDomainArrayOutput) } // EmailServiceDomainMapInput is an input type that accepts EmailServiceDomainMap and EmailServiceDomainMapOutput values. // You can construct a concrete instance of `EmailServiceDomainMapInput` via: // // EmailServiceDomainMap{ "key": EmailServiceDomainArgs{...} } type EmailServiceDomainMapInput interface { pulumi.Input ToEmailServiceDomainMapOutput() EmailServiceDomainMapOutput ToEmailServiceDomainMapOutputWithContext(context.Context) EmailServiceDomainMapOutput } type EmailServiceDomainMap map[string]EmailServiceDomainInput func (EmailServiceDomainMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*EmailServiceDomain)(nil)).Elem() } func (i EmailServiceDomainMap) ToEmailServiceDomainMapOutput() EmailServiceDomainMapOutput { return i.ToEmailServiceDomainMapOutputWithContext(context.Background()) } func (i EmailServiceDomainMap) ToEmailServiceDomainMapOutputWithContext(ctx context.Context) EmailServiceDomainMapOutput { return pulumi.ToOutputWithContext(ctx, i).(EmailServiceDomainMapOutput) } type EmailServiceDomainOutput struct{ *pulumi.OutputState } func (EmailServiceDomainOutput) ElementType() reflect.Type { return reflect.TypeOf((**EmailServiceDomain)(nil)).Elem() } func (o EmailServiceDomainOutput) ToEmailServiceDomainOutput() EmailServiceDomainOutput { return o } func (o EmailServiceDomainOutput) ToEmailServiceDomainOutputWithContext(ctx context.Context) EmailServiceDomainOutput { return o } // Describes how a Domains resource is being managed. Possible values are `AzureManaged`, `CustomerManaged`, `CustomerManagedInExchangeOnline`. Changing this forces a new Email Communication Service to be created. func (o EmailServiceDomainOutput) DomainManagement() pulumi.StringOutput { return o.ApplyT(func(v *EmailServiceDomain) pulumi.StringOutput { return v.DomainManagement }).(pulumi.StringOutput) } // The resource ID of the Email Communication Service where the Domain belongs to. Changing this forces a new Email Communication Service to be created. func (o EmailServiceDomainOutput) EmailServiceId() pulumi.StringOutput { return o.ApplyT(func(v *EmailServiceDomain) pulumi.StringOutput { return v.EmailServiceId }).(pulumi.StringOutput) } // P2 sender domain that is displayed to the email recipients [RFC 5322]. func (o EmailServiceDomainOutput) FromSenderDomain() pulumi.StringOutput { return o.ApplyT(func(v *EmailServiceDomain) pulumi.StringOutput { return v.FromSenderDomain }).(pulumi.StringOutput) } // P1 sender domain that is present on the email envelope [RFC 5321]. func (o EmailServiceDomainOutput) MailFromSenderDomain() pulumi.StringOutput { return o.ApplyT(func(v *EmailServiceDomain) pulumi.StringOutput { return v.MailFromSenderDomain }).(pulumi.StringOutput) } // The name of the Email Communication Service resource. If `domainManagement` is `AzureManaged`, the name must be `AzureManagedDomain`. Changing this forces a new Email Communication Service to be created. func (o EmailServiceDomainOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *EmailServiceDomain) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // A mapping of tags which should be assigned to the Email Communication Service. func (o EmailServiceDomainOutput) Tags() pulumi.StringMapOutput { return o.ApplyT(func(v *EmailServiceDomain) pulumi.StringMapOutput { return v.Tags }).(pulumi.StringMapOutput) } // Describes user engagement tracking is enabled or disabled. Defaults to `false`. func (o EmailServiceDomainOutput) UserEngagementTrackingEnabled() pulumi.BoolPtrOutput { return o.ApplyT(func(v *EmailServiceDomain) pulumi.BoolPtrOutput { return v.UserEngagementTrackingEnabled }).(pulumi.BoolPtrOutput) } // (Optional) An `verificationRecords` block as defined below. func (o EmailServiceDomainOutput) VerificationRecords() EmailServiceDomainVerificationRecordArrayOutput { return o.ApplyT(func(v *EmailServiceDomain) EmailServiceDomainVerificationRecordArrayOutput { return v.VerificationRecords }).(EmailServiceDomainVerificationRecordArrayOutput) } type EmailServiceDomainArrayOutput struct{ *pulumi.OutputState } func (EmailServiceDomainArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*EmailServiceDomain)(nil)).Elem() } func (o EmailServiceDomainArrayOutput) ToEmailServiceDomainArrayOutput() EmailServiceDomainArrayOutput { return o } func (o EmailServiceDomainArrayOutput) ToEmailServiceDomainArrayOutputWithContext(ctx context.Context) EmailServiceDomainArrayOutput { return o } func (o EmailServiceDomainArrayOutput) Index(i pulumi.IntInput) EmailServiceDomainOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *EmailServiceDomain { return vs[0].([]*EmailServiceDomain)[vs[1].(int)] }).(EmailServiceDomainOutput) } type EmailServiceDomainMapOutput struct{ *pulumi.OutputState } func (EmailServiceDomainMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*EmailServiceDomain)(nil)).Elem() } func (o EmailServiceDomainMapOutput) ToEmailServiceDomainMapOutput() EmailServiceDomainMapOutput { return o } func (o EmailServiceDomainMapOutput) ToEmailServiceDomainMapOutputWithContext(ctx context.Context) EmailServiceDomainMapOutput { return o } func (o EmailServiceDomainMapOutput) MapIndex(k pulumi.StringInput) EmailServiceDomainOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *EmailServiceDomain { return vs[0].(map[string]*EmailServiceDomain)[vs[1].(string)] }).(EmailServiceDomainOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*EmailServiceDomainInput)(nil)).Elem(), &EmailServiceDomain{}) pulumi.RegisterInputType(reflect.TypeOf((*EmailServiceDomainArrayInput)(nil)).Elem(), EmailServiceDomainArray{}) pulumi.RegisterInputType(reflect.TypeOf((*EmailServiceDomainMapInput)(nil)).Elem(), EmailServiceDomainMap{}) pulumi.RegisterOutputType(EmailServiceDomainOutput{}) pulumi.RegisterOutputType(EmailServiceDomainArrayOutput{}) pulumi.RegisterOutputType(EmailServiceDomainMapOutput{}) }
go
Apache-2.0
b66e1472775a89cca43f5050fef806854a7c3fa3
2026-01-07T09:44:27.619514Z
false