azure-native.appplatform.Binding
Explore with Pulumi AI
Binding resource payload Azure REST API version: 2023-05-01-preview. Prior API version in Azure Native 1.x: 2020-07-01.
Other available API versions: 2023-07-01-preview, 2023-09-01-preview, 2023-11-01-preview, 2023-12-01, 2024-01-01-preview, 2024-05-01-preview.
Example Usage
Bindings_CreateOrUpdate
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var binding = new AzureNative.AppPlatform.Binding("binding", new()
{
AppName = "myapp",
BindingName = "mybinding",
Properties = new AzureNative.AppPlatform.Inputs.BindingResourcePropertiesArgs
{
BindingParameters =
{
{ "apiType", "SQL" },
{ "databaseName", "db1" },
},
Key = "xxxx",
ResourceId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.DocumentDB/databaseAccounts/my-cosmosdb-1",
},
ResourceGroupName = "myResourceGroup",
ServiceName = "myservice",
});
});
package main
import (
appplatform "github.com/pulumi/pulumi-azure-native-sdk/appplatform/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := appplatform.NewBinding(ctx, "binding", &appplatform.BindingArgs{
AppName: pulumi.String("myapp"),
BindingName: pulumi.String("mybinding"),
Properties: &appplatform.BindingResourcePropertiesArgs{
BindingParameters: pulumi.StringMap{
"apiType": pulumi.String("SQL"),
"databaseName": pulumi.String("db1"),
},
Key: pulumi.String("xxxx"),
ResourceId: pulumi.String("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.DocumentDB/databaseAccounts/my-cosmosdb-1"),
},
ResourceGroupName: pulumi.String("myResourceGroup"),
ServiceName: pulumi.String("myservice"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.appplatform.Binding;
import com.pulumi.azurenative.appplatform.BindingArgs;
import com.pulumi.azurenative.appplatform.inputs.BindingResourcePropertiesArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var binding = new Binding("binding", BindingArgs.builder()
.appName("myapp")
.bindingName("mybinding")
.properties(BindingResourcePropertiesArgs.builder()
.bindingParameters(Map.ofEntries(
Map.entry("apiType", "SQL"),
Map.entry("databaseName", "db1")
))
.key("xxxx")
.resourceId("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.DocumentDB/databaseAccounts/my-cosmosdb-1")
.build())
.resourceGroupName("myResourceGroup")
.serviceName("myservice")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
binding = azure_native.appplatform.Binding("binding",
app_name="myapp",
binding_name="mybinding",
properties={
"binding_parameters": {
"api_type": "SQL",
"database_name": "db1",
},
"key": "xxxx",
"resource_id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.DocumentDB/databaseAccounts/my-cosmosdb-1",
},
resource_group_name="myResourceGroup",
service_name="myservice")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const binding = new azure_native.appplatform.Binding("binding", {
appName: "myapp",
bindingName: "mybinding",
properties: {
bindingParameters: {
apiType: "SQL",
databaseName: "db1",
},
key: "xxxx",
resourceId: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.DocumentDB/databaseAccounts/my-cosmosdb-1",
},
resourceGroupName: "myResourceGroup",
serviceName: "myservice",
});
resources:
binding:
type: azure-native:appplatform:Binding
properties:
appName: myapp
bindingName: mybinding
properties:
bindingParameters:
apiType: SQL
databaseName: db1
key: xxxx
resourceId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.DocumentDB/databaseAccounts/my-cosmosdb-1
resourceGroupName: myResourceGroup
serviceName: myservice
Create Binding Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Binding(name: string, args: BindingArgs, opts?: CustomResourceOptions);
@overload
def Binding(resource_name: str,
args: BindingArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Binding(resource_name: str,
opts: Optional[ResourceOptions] = None,
app_name: Optional[str] = None,
resource_group_name: Optional[str] = None,
service_name: Optional[str] = None,
binding_name: Optional[str] = None,
properties: Optional[BindingResourcePropertiesArgs] = None)
func NewBinding(ctx *Context, name string, args BindingArgs, opts ...ResourceOption) (*Binding, error)
public Binding(string name, BindingArgs args, CustomResourceOptions? opts = null)
public Binding(String name, BindingArgs args)
public Binding(String name, BindingArgs args, CustomResourceOptions options)
type: azure-native:appplatform:Binding
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args BindingArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args BindingArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args BindingArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args BindingArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args BindingArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var bindingResource = new AzureNative.AppPlatform.Binding("bindingResource", new()
{
AppName = "string",
ResourceGroupName = "string",
ServiceName = "string",
BindingName = "string",
Properties = new AzureNative.AppPlatform.Inputs.BindingResourcePropertiesArgs
{
BindingParameters =
{
{ "string", "string" },
},
Key = "string",
ResourceId = "string",
},
});
example, err := appplatform.NewBinding(ctx, "bindingResource", &appplatform.BindingArgs{
AppName: pulumi.String("string"),
ResourceGroupName: pulumi.String("string"),
ServiceName: pulumi.String("string"),
BindingName: pulumi.String("string"),
Properties: &appplatform.BindingResourcePropertiesArgs{
BindingParameters: pulumi.StringMap{
"string": pulumi.String("string"),
},
Key: pulumi.String("string"),
ResourceId: pulumi.String("string"),
},
})
var bindingResource = new Binding("bindingResource", BindingArgs.builder()
.appName("string")
.resourceGroupName("string")
.serviceName("string")
.bindingName("string")
.properties(BindingResourcePropertiesArgs.builder()
.bindingParameters(Map.of("string", "string"))
.key("string")
.resourceId("string")
.build())
.build());
binding_resource = azure_native.appplatform.Binding("bindingResource",
app_name="string",
resource_group_name="string",
service_name="string",
binding_name="string",
properties={
"bindingParameters": {
"string": "string",
},
"key": "string",
"resourceId": "string",
})
const bindingResource = new azure_native.appplatform.Binding("bindingResource", {
appName: "string",
resourceGroupName: "string",
serviceName: "string",
bindingName: "string",
properties: {
bindingParameters: {
string: "string",
},
key: "string",
resourceId: "string",
},
});
type: azure-native:appplatform:Binding
properties:
appName: string
bindingName: string
properties:
bindingParameters:
string: string
key: string
resourceId: string
resourceGroupName: string
serviceName: string
Binding Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The Binding resource accepts the following input properties:
- App
Name string - The name of the App resource.
- Resource
Group stringName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- Service
Name string - The name of the Service resource.
- Binding
Name string - The name of the Binding resource.
- Properties
Pulumi.
Azure Native. App Platform. Inputs. Binding Resource Properties - Properties of the Binding resource
- App
Name string - The name of the App resource.
- Resource
Group stringName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- Service
Name string - The name of the Service resource.
- Binding
Name string - The name of the Binding resource.
- Properties
Binding
Resource Properties Args - Properties of the Binding resource
- app
Name String - The name of the App resource.
- resource
Group StringName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- service
Name String - The name of the Service resource.
- binding
Name String - The name of the Binding resource.
- properties
Binding
Resource Properties - Properties of the Binding resource
- app
Name string - The name of the App resource.
- resource
Group stringName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- service
Name string - The name of the Service resource.
- binding
Name string - The name of the Binding resource.
- properties
Binding
Resource Properties - Properties of the Binding resource
- app_
name str - The name of the App resource.
- resource_
group_ strname - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- service_
name str - The name of the Service resource.
- binding_
name str - The name of the Binding resource.
- properties
Binding
Resource Properties Args - Properties of the Binding resource
- app
Name String - The name of the App resource.
- resource
Group StringName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- service
Name String - The name of the Service resource.
- binding
Name String - The name of the Binding resource.
- properties Property Map
- Properties of the Binding resource
Outputs
All input properties are implicitly available as output properties. Additionally, the Binding resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource.
- System
Data Pulumi.Azure Native. App Platform. Outputs. System Data Response - Metadata pertaining to creation and last modification of the resource.
- Type string
- The type of the resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource.
- System
Data SystemData Response - Metadata pertaining to creation and last modification of the resource.
- Type string
- The type of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource.
- system
Data SystemData Response - Metadata pertaining to creation and last modification of the resource.
- type String
- The type of the resource.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The name of the resource.
- system
Data SystemData Response - Metadata pertaining to creation and last modification of the resource.
- type string
- The type of the resource.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- The name of the resource.
- system_
data SystemData Response - Metadata pertaining to creation and last modification of the resource.
- type str
- The type of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource.
- system
Data Property Map - Metadata pertaining to creation and last modification of the resource.
- type String
- The type of the resource.
Supporting Types
BindingResourceProperties, BindingResourcePropertiesArgs
- Binding
Parameters Dictionary<string, string> - Binding parameters of the Binding resource
- Key string
- The key of the bound resource
- Resource
Id string - The Azure resource id of the bound resource
- Binding
Parameters map[string]string - Binding parameters of the Binding resource
- Key string
- The key of the bound resource
- Resource
Id string - The Azure resource id of the bound resource
- binding
Parameters Map<String,String> - Binding parameters of the Binding resource
- key String
- The key of the bound resource
- resource
Id String - The Azure resource id of the bound resource
- binding
Parameters {[key: string]: string} - Binding parameters of the Binding resource
- key string
- The key of the bound resource
- resource
Id string - The Azure resource id of the bound resource
- binding_
parameters Mapping[str, str] - Binding parameters of the Binding resource
- key str
- The key of the bound resource
- resource_
id str - The Azure resource id of the bound resource
- binding
Parameters Map<String> - Binding parameters of the Binding resource
- key String
- The key of the bound resource
- resource
Id String - The Azure resource id of the bound resource
BindingResourcePropertiesResponse, BindingResourcePropertiesResponseArgs
- Created
At string - Creation time of the Binding resource
- Generated
Properties string - The generated Spring Boot property file for this binding. The secret will be deducted.
- Resource
Name string - The name of the bound resource
- Resource
Type string - The standard Azure resource type of the bound resource
- Updated
At string - Update time of the Binding resource
- Binding
Parameters Dictionary<string, string> - Binding parameters of the Binding resource
- Key string
- The key of the bound resource
- Resource
Id string - The Azure resource id of the bound resource
- Created
At string - Creation time of the Binding resource
- Generated
Properties string - The generated Spring Boot property file for this binding. The secret will be deducted.
- Resource
Name string - The name of the bound resource
- Resource
Type string - The standard Azure resource type of the bound resource
- Updated
At string - Update time of the Binding resource
- Binding
Parameters map[string]string - Binding parameters of the Binding resource
- Key string
- The key of the bound resource
- Resource
Id string - The Azure resource id of the bound resource
- created
At String - Creation time of the Binding resource
- generated
Properties String - The generated Spring Boot property file for this binding. The secret will be deducted.
- resource
Name String - The name of the bound resource
- resource
Type String - The standard Azure resource type of the bound resource
- updated
At String - Update time of the Binding resource
- binding
Parameters Map<String,String> - Binding parameters of the Binding resource
- key String
- The key of the bound resource
- resource
Id String - The Azure resource id of the bound resource
- created
At string - Creation time of the Binding resource
- generated
Properties string - The generated Spring Boot property file for this binding. The secret will be deducted.
- resource
Name string - The name of the bound resource
- resource
Type string - The standard Azure resource type of the bound resource
- updated
At string - Update time of the Binding resource
- binding
Parameters {[key: string]: string} - Binding parameters of the Binding resource
- key string
- The key of the bound resource
- resource
Id string - The Azure resource id of the bound resource
- created_
at str - Creation time of the Binding resource
- generated_
properties str - The generated Spring Boot property file for this binding. The secret will be deducted.
- resource_
name str - The name of the bound resource
- resource_
type str - The standard Azure resource type of the bound resource
- updated_
at str - Update time of the Binding resource
- binding_
parameters Mapping[str, str] - Binding parameters of the Binding resource
- key str
- The key of the bound resource
- resource_
id str - The Azure resource id of the bound resource
- created
At String - Creation time of the Binding resource
- generated
Properties String - The generated Spring Boot property file for this binding. The secret will be deducted.
- resource
Name String - The name of the bound resource
- resource
Type String - The standard Azure resource type of the bound resource
- updated
At String - Update time of the Binding resource
- binding
Parameters Map<String> - Binding parameters of the Binding resource
- key String
- The key of the bound resource
- resource
Id String - The Azure resource id of the bound resource
SystemDataResponse, SystemDataResponseArgs
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource modification (UTC).
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource modification (UTC).
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource modification (UTC).
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The timestamp of resource modification (UTC).
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified stringBy Type - The type of identity that last modified the resource.
- created_
at str - The timestamp of resource creation (UTC).
- created_
by str - The identity that created the resource.
- created_
by_ strtype - The type of identity that created the resource.
- last_
modified_ strat - The timestamp of resource modification (UTC).
- last_
modified_ strby - The identity that last modified the resource.
- last_
modified_ strby_ type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource modification (UTC).
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:appplatform:Binding mybinding /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings/{bindingName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0