azure-native-v2.web.StaticSiteDatabaseConnection
Explore with Pulumi AI
Static Site Database Connection resource. Azure REST API version: 2022-09-01.
Other available API versions: 2023-01-01, 2023-12-01, 2024-04-01.
Create StaticSiteDatabaseConnection Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new StaticSiteDatabaseConnection(name: string, args: StaticSiteDatabaseConnectionArgs, opts?: CustomResourceOptions);
@overload
def StaticSiteDatabaseConnection(resource_name: str,
args: StaticSiteDatabaseConnectionArgs,
opts: Optional[ResourceOptions] = None)
@overload
def StaticSiteDatabaseConnection(resource_name: str,
opts: Optional[ResourceOptions] = None,
name: Optional[str] = None,
region: Optional[str] = None,
resource_group_name: Optional[str] = None,
resource_id: Optional[str] = None,
connection_identity: Optional[str] = None,
connection_string: Optional[str] = None,
database_connection_name: Optional[str] = None,
kind: Optional[str] = None)
func NewStaticSiteDatabaseConnection(ctx *Context, name string, args StaticSiteDatabaseConnectionArgs, opts ...ResourceOption) (*StaticSiteDatabaseConnection, error)
public StaticSiteDatabaseConnection(string name, StaticSiteDatabaseConnectionArgs args, CustomResourceOptions? opts = null)
public StaticSiteDatabaseConnection(String name, StaticSiteDatabaseConnectionArgs args)
public StaticSiteDatabaseConnection(String name, StaticSiteDatabaseConnectionArgs args, CustomResourceOptions options)
type: azure-native:web:StaticSiteDatabaseConnection
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name
This property is required. string - The unique name of the resource.
- args
This property is required. StaticSiteDatabaseConnectionArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name
This property is required. str - The unique name of the resource.
- args
This property is required. StaticSiteDatabaseConnectionArgs - The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. StaticSiteDatabaseConnectionArgs - The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. StaticSiteDatabaseConnectionArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name
This property is required. String - The unique name of the resource.
- args
This property is required. StaticSiteDatabaseConnectionArgs - 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 staticSiteDatabaseConnectionResource = new AzureNative.Web.StaticSiteDatabaseConnection("staticSiteDatabaseConnectionResource", new()
{
Name = "string",
Region = "string",
ResourceGroupName = "string",
ResourceId = "string",
ConnectionIdentity = "string",
ConnectionString = "string",
DatabaseConnectionName = "string",
Kind = "string",
});
example, err := web.NewStaticSiteDatabaseConnection(ctx, "staticSiteDatabaseConnectionResource", &web.StaticSiteDatabaseConnectionArgs{
Name: "string",
Region: "string",
ResourceGroupName: "string",
ResourceId: "string",
ConnectionIdentity: "string",
ConnectionString: "string",
DatabaseConnectionName: "string",
Kind: "string",
})
var staticSiteDatabaseConnectionResource = new StaticSiteDatabaseConnection("staticSiteDatabaseConnectionResource", StaticSiteDatabaseConnectionArgs.builder()
.name("string")
.region("string")
.resourceGroupName("string")
.resourceId("string")
.connectionIdentity("string")
.connectionString("string")
.databaseConnectionName("string")
.kind("string")
.build());
static_site_database_connection_resource = azure_native.web.StaticSiteDatabaseConnection("staticSiteDatabaseConnectionResource",
name=string,
region=string,
resource_group_name=string,
resource_id=string,
connection_identity=string,
connection_string=string,
database_connection_name=string,
kind=string)
const staticSiteDatabaseConnectionResource = new azure_native.web.StaticSiteDatabaseConnection("staticSiteDatabaseConnectionResource", {
name: "string",
region: "string",
resourceGroupName: "string",
resourceId: "string",
connectionIdentity: "string",
connectionString: "string",
databaseConnectionName: "string",
kind: "string",
});
type: azure-native:web:StaticSiteDatabaseConnection
properties:
connectionIdentity: string
connectionString: string
databaseConnectionName: string
kind: string
name: string
region: string
resourceGroupName: string
resourceId: string
StaticSiteDatabaseConnection Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The StaticSiteDatabaseConnection resource accepts the following input properties:
- Name
This property is required. Changes to this property will trigger replacement.
- Name of the static site
- Region
This property is required. string - The region of the database resource.
- Resource
Group Name This property is required. Changes to this property will trigger replacement.
- Name of the resource group to which the resource belongs.
- Resource
Id This property is required. string - The resource id of the database.
- Connection
Identity string - If present, the identity is used in conjunction with connection string to connect to the database. Use of the system-assigned managed identity is indicated with the string 'SystemAssigned', while use of a user-assigned managed identity is indicated with the resource id of the managed identity resource.
- Connection
String string - The connection string to use to connect to the database.
- Database
Connection Name Changes to this property will trigger replacement.
- Name of the database connection.
- Kind string
- Kind of resource.
- Name
This property is required. Changes to this property will trigger replacement.
- Name of the static site
- Region
This property is required. string - The region of the database resource.
- Resource
Group Name This property is required. Changes to this property will trigger replacement.
- Name of the resource group to which the resource belongs.
- Resource
Id This property is required. string - The resource id of the database.
- Connection
Identity string - If present, the identity is used in conjunction with connection string to connect to the database. Use of the system-assigned managed identity is indicated with the string 'SystemAssigned', while use of a user-assigned managed identity is indicated with the resource id of the managed identity resource.
- Connection
String string - The connection string to use to connect to the database.
- Database
Connection Name Changes to this property will trigger replacement.
- Name of the database connection.
- Kind string
- Kind of resource.
- name
This property is required. Changes to this property will trigger replacement.
- Name of the static site
- region
This property is required. String - The region of the database resource.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- Name of the resource group to which the resource belongs.
- resource
Id This property is required. String - The resource id of the database.
- connection
Identity String - If present, the identity is used in conjunction with connection string to connect to the database. Use of the system-assigned managed identity is indicated with the string 'SystemAssigned', while use of a user-assigned managed identity is indicated with the resource id of the managed identity resource.
- connection
String String - The connection string to use to connect to the database.
- database
Connection Name Changes to this property will trigger replacement.
- Name of the database connection.
- kind String
- Kind of resource.
- name
This property is required. Changes to this property will trigger replacement.
- Name of the static site
- region
This property is required. string - The region of the database resource.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- Name of the resource group to which the resource belongs.
- resource
Id This property is required. string - The resource id of the database.
- connection
Identity string - If present, the identity is used in conjunction with connection string to connect to the database. Use of the system-assigned managed identity is indicated with the string 'SystemAssigned', while use of a user-assigned managed identity is indicated with the resource id of the managed identity resource.
- connection
String string - The connection string to use to connect to the database.
- database
Connection Name Changes to this property will trigger replacement.
- Name of the database connection.
- kind string
- Kind of resource.
- name
This property is required. Changes to this property will trigger replacement.
- Name of the static site
- region
This property is required. str - The region of the database resource.
- resource_
group_ name This property is required. Changes to this property will trigger replacement.
- Name of the resource group to which the resource belongs.
- resource_
id This property is required. str - The resource id of the database.
- connection_
identity str - If present, the identity is used in conjunction with connection string to connect to the database. Use of the system-assigned managed identity is indicated with the string 'SystemAssigned', while use of a user-assigned managed identity is indicated with the resource id of the managed identity resource.
- connection_
string str - The connection string to use to connect to the database.
- database_
connection_ name Changes to this property will trigger replacement.
- Name of the database connection.
- kind str
- Kind of resource.
- name
This property is required. Changes to this property will trigger replacement.
- Name of the static site
- region
This property is required. String - The region of the database resource.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- Name of the resource group to which the resource belongs.
- resource
Id This property is required. String - The resource id of the database.
- connection
Identity String - If present, the identity is used in conjunction with connection string to connect to the database. Use of the system-assigned managed identity is indicated with the string 'SystemAssigned', while use of a user-assigned managed identity is indicated with the resource id of the managed identity resource.
- connection
String String - The connection string to use to connect to the database.
- database
Connection Name Changes to this property will trigger replacement.
- Name of the database connection.
- kind String
- Kind of resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the StaticSiteDatabaseConnection resource produces the following output properties:
- Configuration
Files List<Pulumi.Azure Native. Web. Outputs. Static Site Database Connection Configuration File Overview Response> - A list of configuration files associated with this database connection.
- Id string
- The provider-assigned unique ID for this managed resource.
- Type string
- Resource type.
- Configuration
Files []StaticSite Database Connection Configuration File Overview Response - A list of configuration files associated with this database connection.
- Id string
- The provider-assigned unique ID for this managed resource.
- Type string
- Resource type.
- configuration
Files List<StaticSite Database Connection Configuration File Overview Response> - A list of configuration files associated with this database connection.
- id String
- The provider-assigned unique ID for this managed resource.
- type String
- Resource type.
- configuration
Files StaticSite Database Connection Configuration File Overview Response[] - A list of configuration files associated with this database connection.
- id string
- The provider-assigned unique ID for this managed resource.
- type string
- Resource type.
- configuration_
files Sequence[StaticSite Database Connection Configuration File Overview Response] - A list of configuration files associated with this database connection.
- id str
- The provider-assigned unique ID for this managed resource.
- type str
- Resource type.
- configuration
Files List<Property Map> - A list of configuration files associated with this database connection.
- id String
- The provider-assigned unique ID for this managed resource.
- type String
- Resource type.
Supporting Types
StaticSiteDatabaseConnectionConfigurationFileOverviewResponse, StaticSiteDatabaseConnectionConfigurationFileOverviewResponseArgs
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:web:StaticSiteDatabaseConnection default /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/databaseConnections/{databaseConnectionName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- azure-native-v2 pulumi/pulumi-azure-native
- License
- Apache-2.0