We recommend using Azure Native.
azure.appplatform.SpringCloudConnection
Explore with Pulumi AI
Manages a service connector for spring cloud app.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new()
{
Location = "West Europe",
});
var exampleAccount = new Azure.CosmosDB.Account("exampleAccount", new()
{
Location = exampleResourceGroup.Location,
ResourceGroupName = exampleResourceGroup.Name,
OfferType = "Standard",
Kind = "GlobalDocumentDB",
ConsistencyPolicy = new Azure.CosmosDB.Inputs.AccountConsistencyPolicyArgs
{
ConsistencyLevel = "BoundedStaleness",
MaxIntervalInSeconds = 10,
MaxStalenessPrefix = 200,
},
GeoLocations = new[]
{
new Azure.CosmosDB.Inputs.AccountGeoLocationArgs
{
Location = exampleResourceGroup.Location,
FailoverPriority = 0,
},
},
});
var exampleSqlDatabase = new Azure.CosmosDB.SqlDatabase("exampleSqlDatabase", new()
{
ResourceGroupName = exampleAccount.ResourceGroupName,
AccountName = exampleAccount.Name,
Throughput = 400,
});
var exampleSqlContainer = new Azure.CosmosDB.SqlContainer("exampleSqlContainer", new()
{
ResourceGroupName = exampleAccount.ResourceGroupName,
AccountName = exampleAccount.Name,
DatabaseName = exampleSqlDatabase.Name,
PartitionKeyPath = "/definition",
});
var exampleSpringCloudService = new Azure.AppPlatform.SpringCloudService("exampleSpringCloudService", new()
{
ResourceGroupName = exampleResourceGroup.Name,
Location = exampleResourceGroup.Location,
});
var exampleSpringCloudApp = new Azure.AppPlatform.SpringCloudApp("exampleSpringCloudApp", new()
{
ResourceGroupName = exampleResourceGroup.Name,
ServiceName = exampleSpringCloudService.Name,
Identity = new Azure.AppPlatform.Inputs.SpringCloudAppIdentityArgs
{
Type = "SystemAssigned",
},
});
var exampleSpringCloudJavaDeployment = new Azure.AppPlatform.SpringCloudJavaDeployment("exampleSpringCloudJavaDeployment", new()
{
SpringCloudAppId = exampleSpringCloudApp.Id,
});
var exampleSpringCloudConnection = new Azure.AppPlatform.SpringCloudConnection("exampleSpringCloudConnection", new()
{
SpringCloudId = exampleSpringCloudJavaDeployment.Id,
TargetResourceId = exampleSqlDatabase.Id,
Authentication = new Azure.AppPlatform.Inputs.SpringCloudConnectionAuthenticationArgs
{
Type = "systemAssignedIdentity",
},
});
});
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/appplatform"
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/cosmosdb"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
Location: pulumi.String("West Europe"),
})
if err != nil {
return err
}
exampleAccount, err := cosmosdb.NewAccount(ctx, "exampleAccount", &cosmosdb.AccountArgs{
Location: exampleResourceGroup.Location,
ResourceGroupName: exampleResourceGroup.Name,
OfferType: pulumi.String("Standard"),
Kind: pulumi.String("GlobalDocumentDB"),
ConsistencyPolicy: &cosmosdb.AccountConsistencyPolicyArgs{
ConsistencyLevel: pulumi.String("BoundedStaleness"),
MaxIntervalInSeconds: pulumi.Int(10),
MaxStalenessPrefix: pulumi.Int(200),
},
GeoLocations: cosmosdb.AccountGeoLocationArray{
&cosmosdb.AccountGeoLocationArgs{
Location: exampleResourceGroup.Location,
FailoverPriority: pulumi.Int(0),
},
},
})
if err != nil {
return err
}
exampleSqlDatabase, err := cosmosdb.NewSqlDatabase(ctx, "exampleSqlDatabase", &cosmosdb.SqlDatabaseArgs{
ResourceGroupName: exampleAccount.ResourceGroupName,
AccountName: exampleAccount.Name,
Throughput: pulumi.Int(400),
})
if err != nil {
return err
}
_, err = cosmosdb.NewSqlContainer(ctx, "exampleSqlContainer", &cosmosdb.SqlContainerArgs{
ResourceGroupName: exampleAccount.ResourceGroupName,
AccountName: exampleAccount.Name,
DatabaseName: exampleSqlDatabase.Name,
PartitionKeyPath: pulumi.String("/definition"),
})
if err != nil {
return err
}
exampleSpringCloudService, err := appplatform.NewSpringCloudService(ctx, "exampleSpringCloudService", &appplatform.SpringCloudServiceArgs{
ResourceGroupName: exampleResourceGroup.Name,
Location: exampleResourceGroup.Location,
})
if err != nil {
return err
}
exampleSpringCloudApp, err := appplatform.NewSpringCloudApp(ctx, "exampleSpringCloudApp", &appplatform.SpringCloudAppArgs{
ResourceGroupName: exampleResourceGroup.Name,
ServiceName: exampleSpringCloudService.Name,
Identity: &appplatform.SpringCloudAppIdentityArgs{
Type: pulumi.String("SystemAssigned"),
},
})
if err != nil {
return err
}
exampleSpringCloudJavaDeployment, err := appplatform.NewSpringCloudJavaDeployment(ctx, "exampleSpringCloudJavaDeployment", &appplatform.SpringCloudJavaDeploymentArgs{
SpringCloudAppId: exampleSpringCloudApp.ID(),
})
if err != nil {
return err
}
_, err = appplatform.NewSpringCloudConnection(ctx, "exampleSpringCloudConnection", &appplatform.SpringCloudConnectionArgs{
SpringCloudId: exampleSpringCloudJavaDeployment.ID(),
TargetResourceId: exampleSqlDatabase.ID(),
Authentication: &appplatform.SpringCloudConnectionAuthenticationArgs{
Type: pulumi.String("systemAssignedIdentity"),
},
})
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.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.cosmosdb.Account;
import com.pulumi.azure.cosmosdb.AccountArgs;
import com.pulumi.azure.cosmosdb.inputs.AccountConsistencyPolicyArgs;
import com.pulumi.azure.cosmosdb.inputs.AccountGeoLocationArgs;
import com.pulumi.azure.cosmosdb.SqlDatabase;
import com.pulumi.azure.cosmosdb.SqlDatabaseArgs;
import com.pulumi.azure.cosmosdb.SqlContainer;
import com.pulumi.azure.cosmosdb.SqlContainerArgs;
import com.pulumi.azure.appplatform.SpringCloudService;
import com.pulumi.azure.appplatform.SpringCloudServiceArgs;
import com.pulumi.azure.appplatform.SpringCloudApp;
import com.pulumi.azure.appplatform.SpringCloudAppArgs;
import com.pulumi.azure.appplatform.inputs.SpringCloudAppIdentityArgs;
import com.pulumi.azure.appplatform.SpringCloudJavaDeployment;
import com.pulumi.azure.appplatform.SpringCloudJavaDeploymentArgs;
import com.pulumi.azure.appplatform.SpringCloudConnection;
import com.pulumi.azure.appplatform.SpringCloudConnectionArgs;
import com.pulumi.azure.appplatform.inputs.SpringCloudConnectionAuthenticationArgs;
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 exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
.location("West Europe")
.build());
var exampleAccount = new Account("exampleAccount", AccountArgs.builder()
.location(exampleResourceGroup.location())
.resourceGroupName(exampleResourceGroup.name())
.offerType("Standard")
.kind("GlobalDocumentDB")
.consistencyPolicy(AccountConsistencyPolicyArgs.builder()
.consistencyLevel("BoundedStaleness")
.maxIntervalInSeconds(10)
.maxStalenessPrefix(200)
.build())
.geoLocations(AccountGeoLocationArgs.builder()
.location(exampleResourceGroup.location())
.failoverPriority(0)
.build())
.build());
var exampleSqlDatabase = new SqlDatabase("exampleSqlDatabase", SqlDatabaseArgs.builder()
.resourceGroupName(exampleAccount.resourceGroupName())
.accountName(exampleAccount.name())
.throughput(400)
.build());
var exampleSqlContainer = new SqlContainer("exampleSqlContainer", SqlContainerArgs.builder()
.resourceGroupName(exampleAccount.resourceGroupName())
.accountName(exampleAccount.name())
.databaseName(exampleSqlDatabase.name())
.partitionKeyPath("/definition")
.build());
var exampleSpringCloudService = new SpringCloudService("exampleSpringCloudService", SpringCloudServiceArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.location(exampleResourceGroup.location())
.build());
var exampleSpringCloudApp = new SpringCloudApp("exampleSpringCloudApp", SpringCloudAppArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.serviceName(exampleSpringCloudService.name())
.identity(SpringCloudAppIdentityArgs.builder()
.type("SystemAssigned")
.build())
.build());
var exampleSpringCloudJavaDeployment = new SpringCloudJavaDeployment("exampleSpringCloudJavaDeployment", SpringCloudJavaDeploymentArgs.builder()
.springCloudAppId(exampleSpringCloudApp.id())
.build());
var exampleSpringCloudConnection = new SpringCloudConnection("exampleSpringCloudConnection", SpringCloudConnectionArgs.builder()
.springCloudId(exampleSpringCloudJavaDeployment.id())
.targetResourceId(exampleSqlDatabase.id())
.authentication(SpringCloudConnectionAuthenticationArgs.builder()
.type("systemAssignedIdentity")
.build())
.build());
}
}
import pulumi
import pulumi_azure as azure
example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="West Europe")
example_account = azure.cosmosdb.Account("exampleAccount",
location=example_resource_group.location,
resource_group_name=example_resource_group.name,
offer_type="Standard",
kind="GlobalDocumentDB",
consistency_policy=azure.cosmosdb.AccountConsistencyPolicyArgs(
consistency_level="BoundedStaleness",
max_interval_in_seconds=10,
max_staleness_prefix=200,
),
geo_locations=[azure.cosmosdb.AccountGeoLocationArgs(
location=example_resource_group.location,
failover_priority=0,
)])
example_sql_database = azure.cosmosdb.SqlDatabase("exampleSqlDatabase",
resource_group_name=example_account.resource_group_name,
account_name=example_account.name,
throughput=400)
example_sql_container = azure.cosmosdb.SqlContainer("exampleSqlContainer",
resource_group_name=example_account.resource_group_name,
account_name=example_account.name,
database_name=example_sql_database.name,
partition_key_path="/definition")
example_spring_cloud_service = azure.appplatform.SpringCloudService("exampleSpringCloudService",
resource_group_name=example_resource_group.name,
location=example_resource_group.location)
example_spring_cloud_app = azure.appplatform.SpringCloudApp("exampleSpringCloudApp",
resource_group_name=example_resource_group.name,
service_name=example_spring_cloud_service.name,
identity=azure.appplatform.SpringCloudAppIdentityArgs(
type="SystemAssigned",
))
example_spring_cloud_java_deployment = azure.appplatform.SpringCloudJavaDeployment("exampleSpringCloudJavaDeployment", spring_cloud_app_id=example_spring_cloud_app.id)
example_spring_cloud_connection = azure.appplatform.SpringCloudConnection("exampleSpringCloudConnection",
spring_cloud_id=example_spring_cloud_java_deployment.id,
target_resource_id=example_sql_database.id,
authentication=azure.appplatform.SpringCloudConnectionAuthenticationArgs(
type="systemAssignedIdentity",
))
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "West Europe"});
const exampleAccount = new azure.cosmosdb.Account("exampleAccount", {
location: exampleResourceGroup.location,
resourceGroupName: exampleResourceGroup.name,
offerType: "Standard",
kind: "GlobalDocumentDB",
consistencyPolicy: {
consistencyLevel: "BoundedStaleness",
maxIntervalInSeconds: 10,
maxStalenessPrefix: 200,
},
geoLocations: [{
location: exampleResourceGroup.location,
failoverPriority: 0,
}],
});
const exampleSqlDatabase = new azure.cosmosdb.SqlDatabase("exampleSqlDatabase", {
resourceGroupName: exampleAccount.resourceGroupName,
accountName: exampleAccount.name,
throughput: 400,
});
const exampleSqlContainer = new azure.cosmosdb.SqlContainer("exampleSqlContainer", {
resourceGroupName: exampleAccount.resourceGroupName,
accountName: exampleAccount.name,
databaseName: exampleSqlDatabase.name,
partitionKeyPath: "/definition",
});
const exampleSpringCloudService = new azure.appplatform.SpringCloudService("exampleSpringCloudService", {
resourceGroupName: exampleResourceGroup.name,
location: exampleResourceGroup.location,
});
const exampleSpringCloudApp = new azure.appplatform.SpringCloudApp("exampleSpringCloudApp", {
resourceGroupName: exampleResourceGroup.name,
serviceName: exampleSpringCloudService.name,
identity: {
type: "SystemAssigned",
},
});
const exampleSpringCloudJavaDeployment = new azure.appplatform.SpringCloudJavaDeployment("exampleSpringCloudJavaDeployment", {springCloudAppId: exampleSpringCloudApp.id});
const exampleSpringCloudConnection = new azure.appplatform.SpringCloudConnection("exampleSpringCloudConnection", {
springCloudId: exampleSpringCloudJavaDeployment.id,
targetResourceId: exampleSqlDatabase.id,
authentication: {
type: "systemAssignedIdentity",
},
});
resources:
exampleResourceGroup:
type: azure:core:ResourceGroup
properties:
location: West Europe
exampleAccount:
type: azure:cosmosdb:Account
properties:
location: ${exampleResourceGroup.location}
resourceGroupName: ${exampleResourceGroup.name}
offerType: Standard
kind: GlobalDocumentDB
consistencyPolicy:
consistencyLevel: BoundedStaleness
maxIntervalInSeconds: 10
maxStalenessPrefix: 200
geoLocations:
- location: ${exampleResourceGroup.location}
failoverPriority: 0
exampleSqlDatabase:
type: azure:cosmosdb:SqlDatabase
properties:
resourceGroupName: ${exampleAccount.resourceGroupName}
accountName: ${exampleAccount.name}
throughput: 400
exampleSqlContainer:
type: azure:cosmosdb:SqlContainer
properties:
resourceGroupName: ${exampleAccount.resourceGroupName}
accountName: ${exampleAccount.name}
databaseName: ${exampleSqlDatabase.name}
partitionKeyPath: /definition
exampleSpringCloudService:
type: azure:appplatform:SpringCloudService
properties:
resourceGroupName: ${exampleResourceGroup.name}
location: ${exampleResourceGroup.location}
exampleSpringCloudApp:
type: azure:appplatform:SpringCloudApp
properties:
resourceGroupName: ${exampleResourceGroup.name}
serviceName: ${exampleSpringCloudService.name}
identity:
type: SystemAssigned
exampleSpringCloudJavaDeployment:
type: azure:appplatform:SpringCloudJavaDeployment
properties:
springCloudAppId: ${exampleSpringCloudApp.id}
exampleSpringCloudConnection:
type: azure:appplatform:SpringCloudConnection
properties:
springCloudId: ${exampleSpringCloudJavaDeployment.id}
targetResourceId: ${exampleSqlDatabase.id}
authentication:
type: systemAssignedIdentity
Create SpringCloudConnection Resource
new SpringCloudConnection(name: string, args: SpringCloudConnectionArgs, opts?: CustomResourceOptions);
@overload
def SpringCloudConnection(resource_name: str,
opts: Optional[ResourceOptions] = None,
authentication: Optional[SpringCloudConnectionAuthenticationArgs] = None,
client_type: Optional[str] = None,
name: Optional[str] = None,
secret_store: Optional[SpringCloudConnectionSecretStoreArgs] = None,
spring_cloud_id: Optional[str] = None,
target_resource_id: Optional[str] = None,
vnet_solution: Optional[str] = None)
@overload
def SpringCloudConnection(resource_name: str,
args: SpringCloudConnectionArgs,
opts: Optional[ResourceOptions] = None)
func NewSpringCloudConnection(ctx *Context, name string, args SpringCloudConnectionArgs, opts ...ResourceOption) (*SpringCloudConnection, error)
public SpringCloudConnection(string name, SpringCloudConnectionArgs args, CustomResourceOptions? opts = null)
public SpringCloudConnection(String name, SpringCloudConnectionArgs args)
public SpringCloudConnection(String name, SpringCloudConnectionArgs args, CustomResourceOptions options)
type: azure:appplatform:SpringCloudConnection
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SpringCloudConnectionArgs
- 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 SpringCloudConnectionArgs
- 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 SpringCloudConnectionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SpringCloudConnectionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SpringCloudConnectionArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
SpringCloudConnection 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 SpringCloudConnection resource accepts the following input properties:
- Authentication
Spring
Cloud Connection Authentication The authentication info. An
authentication
block as defined below.- Spring
Cloud stringId The ID of the data source spring cloud. Changing this forces a new resource to be created.
- Target
Resource stringId The ID of the target resource. Changing this forces a new resource to be created. Possible target resources are
Postgres
,PostgresFlexible
,Mysql
,Sql
,Redis
,RedisEnterprise
,CosmosCassandra
,CosmosGremlin
,CosmosMongo
,CosmosSql
,CosmosTable
,StorageBlob
,StorageQueue
,StorageFile
,StorageTable
,AppConfig
,EventHub
,ServiceBus
,SignalR
,WebPubSub
,ConfluentKafka
. The integration guide can be found here.- Client
Type string The application client type. Possible values are
none
,dotnet
,java
,python
,go
,php
,ruby
,django
,nodejs
andspringBoot
.- Name string
The name of the service connection. Changing this forces a new resource to be created.
- Secret
Store SpringCloud Connection Secret Store An option to store secret value in secure place. An
secret_store
block as defined below.- Vnet
Solution string The type of the VNet solution. Possible values are
serviceEndpoint
,privateLink
.
- Authentication
Spring
Cloud Connection Authentication Args The authentication info. An
authentication
block as defined below.- Spring
Cloud stringId The ID of the data source spring cloud. Changing this forces a new resource to be created.
- Target
Resource stringId The ID of the target resource. Changing this forces a new resource to be created. Possible target resources are
Postgres
,PostgresFlexible
,Mysql
,Sql
,Redis
,RedisEnterprise
,CosmosCassandra
,CosmosGremlin
,CosmosMongo
,CosmosSql
,CosmosTable
,StorageBlob
,StorageQueue
,StorageFile
,StorageTable
,AppConfig
,EventHub
,ServiceBus
,SignalR
,WebPubSub
,ConfluentKafka
. The integration guide can be found here.- Client
Type string The application client type. Possible values are
none
,dotnet
,java
,python
,go
,php
,ruby
,django
,nodejs
andspringBoot
.- Name string
The name of the service connection. Changing this forces a new resource to be created.
- Secret
Store SpringCloud Connection Secret Store Args An option to store secret value in secure place. An
secret_store
block as defined below.- Vnet
Solution string The type of the VNet solution. Possible values are
serviceEndpoint
,privateLink
.
- authentication
Spring
Cloud Connection Authentication The authentication info. An
authentication
block as defined below.- spring
Cloud StringId The ID of the data source spring cloud. Changing this forces a new resource to be created.
- target
Resource StringId The ID of the target resource. Changing this forces a new resource to be created. Possible target resources are
Postgres
,PostgresFlexible
,Mysql
,Sql
,Redis
,RedisEnterprise
,CosmosCassandra
,CosmosGremlin
,CosmosMongo
,CosmosSql
,CosmosTable
,StorageBlob
,StorageQueue
,StorageFile
,StorageTable
,AppConfig
,EventHub
,ServiceBus
,SignalR
,WebPubSub
,ConfluentKafka
. The integration guide can be found here.- client
Type String The application client type. Possible values are
none
,dotnet
,java
,python
,go
,php
,ruby
,django
,nodejs
andspringBoot
.- name String
The name of the service connection. Changing this forces a new resource to be created.
- secret
Store SpringCloud Connection Secret Store An option to store secret value in secure place. An
secret_store
block as defined below.- vnet
Solution String The type of the VNet solution. Possible values are
serviceEndpoint
,privateLink
.
- authentication
Spring
Cloud Connection Authentication The authentication info. An
authentication
block as defined below.- spring
Cloud stringId The ID of the data source spring cloud. Changing this forces a new resource to be created.
- target
Resource stringId The ID of the target resource. Changing this forces a new resource to be created. Possible target resources are
Postgres
,PostgresFlexible
,Mysql
,Sql
,Redis
,RedisEnterprise
,CosmosCassandra
,CosmosGremlin
,CosmosMongo
,CosmosSql
,CosmosTable
,StorageBlob
,StorageQueue
,StorageFile
,StorageTable
,AppConfig
,EventHub
,ServiceBus
,SignalR
,WebPubSub
,ConfluentKafka
. The integration guide can be found here.- client
Type string The application client type. Possible values are
none
,dotnet
,java
,python
,go
,php
,ruby
,django
,nodejs
andspringBoot
.- name string
The name of the service connection. Changing this forces a new resource to be created.
- secret
Store SpringCloud Connection Secret Store An option to store secret value in secure place. An
secret_store
block as defined below.- vnet
Solution string The type of the VNet solution. Possible values are
serviceEndpoint
,privateLink
.
- authentication
Spring
Cloud Connection Authentication Args The authentication info. An
authentication
block as defined below.- spring_
cloud_ strid The ID of the data source spring cloud. Changing this forces a new resource to be created.
- target_
resource_ strid The ID of the target resource. Changing this forces a new resource to be created. Possible target resources are
Postgres
,PostgresFlexible
,Mysql
,Sql
,Redis
,RedisEnterprise
,CosmosCassandra
,CosmosGremlin
,CosmosMongo
,CosmosSql
,CosmosTable
,StorageBlob
,StorageQueue
,StorageFile
,StorageTable
,AppConfig
,EventHub
,ServiceBus
,SignalR
,WebPubSub
,ConfluentKafka
. The integration guide can be found here.- client_
type str The application client type. Possible values are
none
,dotnet
,java
,python
,go
,php
,ruby
,django
,nodejs
andspringBoot
.- name str
The name of the service connection. Changing this forces a new resource to be created.
- secret_
store SpringCloud Connection Secret Store Args An option to store secret value in secure place. An
secret_store
block as defined below.- vnet_
solution str The type of the VNet solution. Possible values are
serviceEndpoint
,privateLink
.
- authentication Property Map
The authentication info. An
authentication
block as defined below.- spring
Cloud StringId The ID of the data source spring cloud. Changing this forces a new resource to be created.
- target
Resource StringId The ID of the target resource. Changing this forces a new resource to be created. Possible target resources are
Postgres
,PostgresFlexible
,Mysql
,Sql
,Redis
,RedisEnterprise
,CosmosCassandra
,CosmosGremlin
,CosmosMongo
,CosmosSql
,CosmosTable
,StorageBlob
,StorageQueue
,StorageFile
,StorageTable
,AppConfig
,EventHub
,ServiceBus
,SignalR
,WebPubSub
,ConfluentKafka
. The integration guide can be found here.- client
Type String The application client type. Possible values are
none
,dotnet
,java
,python
,go
,php
,ruby
,django
,nodejs
andspringBoot
.- name String
The name of the service connection. Changing this forces a new resource to be created.
- secret
Store Property Map An option to store secret value in secure place. An
secret_store
block as defined below.- vnet
Solution String The type of the VNet solution. Possible values are
serviceEndpoint
,privateLink
.
Outputs
All input properties are implicitly available as output properties. Additionally, the SpringCloudConnection resource produces the following output properties:
- Id string
The provider-assigned unique ID for this managed resource.
- Id string
The provider-assigned unique ID for this managed resource.
- id String
The provider-assigned unique ID for this managed resource.
- id string
The provider-assigned unique ID for this managed resource.
- id str
The provider-assigned unique ID for this managed resource.
- id String
The provider-assigned unique ID for this managed resource.
Look up Existing SpringCloudConnection Resource
Get an existing SpringCloudConnection resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: SpringCloudConnectionState, opts?: CustomResourceOptions): SpringCloudConnection
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
authentication: Optional[SpringCloudConnectionAuthenticationArgs] = None,
client_type: Optional[str] = None,
name: Optional[str] = None,
secret_store: Optional[SpringCloudConnectionSecretStoreArgs] = None,
spring_cloud_id: Optional[str] = None,
target_resource_id: Optional[str] = None,
vnet_solution: Optional[str] = None) -> SpringCloudConnection
func GetSpringCloudConnection(ctx *Context, name string, id IDInput, state *SpringCloudConnectionState, opts ...ResourceOption) (*SpringCloudConnection, error)
public static SpringCloudConnection Get(string name, Input<string> id, SpringCloudConnectionState? state, CustomResourceOptions? opts = null)
public static SpringCloudConnection get(String name, Output<String> id, SpringCloudConnectionState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Authentication
Spring
Cloud Connection Authentication The authentication info. An
authentication
block as defined below.- Client
Type string The application client type. Possible values are
none
,dotnet
,java
,python
,go
,php
,ruby
,django
,nodejs
andspringBoot
.- Name string
The name of the service connection. Changing this forces a new resource to be created.
- Secret
Store SpringCloud Connection Secret Store An option to store secret value in secure place. An
secret_store
block as defined below.- Spring
Cloud stringId The ID of the data source spring cloud. Changing this forces a new resource to be created.
- Target
Resource stringId The ID of the target resource. Changing this forces a new resource to be created. Possible target resources are
Postgres
,PostgresFlexible
,Mysql
,Sql
,Redis
,RedisEnterprise
,CosmosCassandra
,CosmosGremlin
,CosmosMongo
,CosmosSql
,CosmosTable
,StorageBlob
,StorageQueue
,StorageFile
,StorageTable
,AppConfig
,EventHub
,ServiceBus
,SignalR
,WebPubSub
,ConfluentKafka
. The integration guide can be found here.- Vnet
Solution string The type of the VNet solution. Possible values are
serviceEndpoint
,privateLink
.
- Authentication
Spring
Cloud Connection Authentication Args The authentication info. An
authentication
block as defined below.- Client
Type string The application client type. Possible values are
none
,dotnet
,java
,python
,go
,php
,ruby
,django
,nodejs
andspringBoot
.- Name string
The name of the service connection. Changing this forces a new resource to be created.
- Secret
Store SpringCloud Connection Secret Store Args An option to store secret value in secure place. An
secret_store
block as defined below.- Spring
Cloud stringId The ID of the data source spring cloud. Changing this forces a new resource to be created.
- Target
Resource stringId The ID of the target resource. Changing this forces a new resource to be created. Possible target resources are
Postgres
,PostgresFlexible
,Mysql
,Sql
,Redis
,RedisEnterprise
,CosmosCassandra
,CosmosGremlin
,CosmosMongo
,CosmosSql
,CosmosTable
,StorageBlob
,StorageQueue
,StorageFile
,StorageTable
,AppConfig
,EventHub
,ServiceBus
,SignalR
,WebPubSub
,ConfluentKafka
. The integration guide can be found here.- Vnet
Solution string The type of the VNet solution. Possible values are
serviceEndpoint
,privateLink
.
- authentication
Spring
Cloud Connection Authentication The authentication info. An
authentication
block as defined below.- client
Type String The application client type. Possible values are
none
,dotnet
,java
,python
,go
,php
,ruby
,django
,nodejs
andspringBoot
.- name String
The name of the service connection. Changing this forces a new resource to be created.
- secret
Store SpringCloud Connection Secret Store An option to store secret value in secure place. An
secret_store
block as defined below.- spring
Cloud StringId The ID of the data source spring cloud. Changing this forces a new resource to be created.
- target
Resource StringId The ID of the target resource. Changing this forces a new resource to be created. Possible target resources are
Postgres
,PostgresFlexible
,Mysql
,Sql
,Redis
,RedisEnterprise
,CosmosCassandra
,CosmosGremlin
,CosmosMongo
,CosmosSql
,CosmosTable
,StorageBlob
,StorageQueue
,StorageFile
,StorageTable
,AppConfig
,EventHub
,ServiceBus
,SignalR
,WebPubSub
,ConfluentKafka
. The integration guide can be found here.- vnet
Solution String The type of the VNet solution. Possible values are
serviceEndpoint
,privateLink
.
- authentication
Spring
Cloud Connection Authentication The authentication info. An
authentication
block as defined below.- client
Type string The application client type. Possible values are
none
,dotnet
,java
,python
,go
,php
,ruby
,django
,nodejs
andspringBoot
.- name string
The name of the service connection. Changing this forces a new resource to be created.
- secret
Store SpringCloud Connection Secret Store An option to store secret value in secure place. An
secret_store
block as defined below.- spring
Cloud stringId The ID of the data source spring cloud. Changing this forces a new resource to be created.
- target
Resource stringId The ID of the target resource. Changing this forces a new resource to be created. Possible target resources are
Postgres
,PostgresFlexible
,Mysql
,Sql
,Redis
,RedisEnterprise
,CosmosCassandra
,CosmosGremlin
,CosmosMongo
,CosmosSql
,CosmosTable
,StorageBlob
,StorageQueue
,StorageFile
,StorageTable
,AppConfig
,EventHub
,ServiceBus
,SignalR
,WebPubSub
,ConfluentKafka
. The integration guide can be found here.- vnet
Solution string The type of the VNet solution. Possible values are
serviceEndpoint
,privateLink
.
- authentication
Spring
Cloud Connection Authentication Args The authentication info. An
authentication
block as defined below.- client_
type str The application client type. Possible values are
none
,dotnet
,java
,python
,go
,php
,ruby
,django
,nodejs
andspringBoot
.- name str
The name of the service connection. Changing this forces a new resource to be created.
- secret_
store SpringCloud Connection Secret Store Args An option to store secret value in secure place. An
secret_store
block as defined below.- spring_
cloud_ strid The ID of the data source spring cloud. Changing this forces a new resource to be created.
- target_
resource_ strid The ID of the target resource. Changing this forces a new resource to be created. Possible target resources are
Postgres
,PostgresFlexible
,Mysql
,Sql
,Redis
,RedisEnterprise
,CosmosCassandra
,CosmosGremlin
,CosmosMongo
,CosmosSql
,CosmosTable
,StorageBlob
,StorageQueue
,StorageFile
,StorageTable
,AppConfig
,EventHub
,ServiceBus
,SignalR
,WebPubSub
,ConfluentKafka
. The integration guide can be found here.- vnet_
solution str The type of the VNet solution. Possible values are
serviceEndpoint
,privateLink
.
- authentication Property Map
The authentication info. An
authentication
block as defined below.- client
Type String The application client type. Possible values are
none
,dotnet
,java
,python
,go
,php
,ruby
,django
,nodejs
andspringBoot
.- name String
The name of the service connection. Changing this forces a new resource to be created.
- secret
Store Property Map An option to store secret value in secure place. An
secret_store
block as defined below.- spring
Cloud StringId The ID of the data source spring cloud. Changing this forces a new resource to be created.
- target
Resource StringId The ID of the target resource. Changing this forces a new resource to be created. Possible target resources are
Postgres
,PostgresFlexible
,Mysql
,Sql
,Redis
,RedisEnterprise
,CosmosCassandra
,CosmosGremlin
,CosmosMongo
,CosmosSql
,CosmosTable
,StorageBlob
,StorageQueue
,StorageFile
,StorageTable
,AppConfig
,EventHub
,ServiceBus
,SignalR
,WebPubSub
,ConfluentKafka
. The integration guide can be found here.- vnet
Solution String The type of the VNet solution. Possible values are
serviceEndpoint
,privateLink
.
Supporting Types
SpringCloudConnectionAuthentication, SpringCloudConnectionAuthenticationArgs
- Type string
The authentication type. Possible values are
systemAssignedIdentity
,userAssignedIdentity
,servicePrincipalSecret
,servicePrincipalCertificate
,secret
. Changing this forces a new resource to be created.- Certificate string
Service principal certificate for
servicePrincipal
auth. Should be specified whentype
is set toservicePrincipalCertificate
.- Client
Id string Client ID for
userAssignedIdentity
orservicePrincipal
auth. Should be specified whentype
is set toservicePrincipalSecret
orservicePrincipalCertificate
. Whentype
is set touserAssignedIdentity
,client_id
andsubscription_id
should be either both specified or both not specified.- Name string
Username or account name for secret auth.
name
andsecret
should be either both specified or both not specified whentype
is set tosecret
.- Principal
Id string Principal ID for
servicePrincipal
auth. Should be specified whentype
is set toservicePrincipalSecret
orservicePrincipalCertificate
.- Secret string
Password or account key for secret auth.
secret
andname
should be either both specified or both not specified whentype
is set tosecret
.- Subscription
Id string Subscription ID for
userAssignedIdentity
.subscription_id
andclient_id
should be either both specified or both not specified.
- Type string
The authentication type. Possible values are
systemAssignedIdentity
,userAssignedIdentity
,servicePrincipalSecret
,servicePrincipalCertificate
,secret
. Changing this forces a new resource to be created.- Certificate string
Service principal certificate for
servicePrincipal
auth. Should be specified whentype
is set toservicePrincipalCertificate
.- Client
Id string Client ID for
userAssignedIdentity
orservicePrincipal
auth. Should be specified whentype
is set toservicePrincipalSecret
orservicePrincipalCertificate
. Whentype
is set touserAssignedIdentity
,client_id
andsubscription_id
should be either both specified or both not specified.- Name string
Username or account name for secret auth.
name
andsecret
should be either both specified or both not specified whentype
is set tosecret
.- Principal
Id string Principal ID for
servicePrincipal
auth. Should be specified whentype
is set toservicePrincipalSecret
orservicePrincipalCertificate
.- Secret string
Password or account key for secret auth.
secret
andname
should be either both specified or both not specified whentype
is set tosecret
.- Subscription
Id string Subscription ID for
userAssignedIdentity
.subscription_id
andclient_id
should be either both specified or both not specified.
- type String
The authentication type. Possible values are
systemAssignedIdentity
,userAssignedIdentity
,servicePrincipalSecret
,servicePrincipalCertificate
,secret
. Changing this forces a new resource to be created.- certificate String
Service principal certificate for
servicePrincipal
auth. Should be specified whentype
is set toservicePrincipalCertificate
.- client
Id String Client ID for
userAssignedIdentity
orservicePrincipal
auth. Should be specified whentype
is set toservicePrincipalSecret
orservicePrincipalCertificate
. Whentype
is set touserAssignedIdentity
,client_id
andsubscription_id
should be either both specified or both not specified.- name String
Username or account name for secret auth.
name
andsecret
should be either both specified or both not specified whentype
is set tosecret
.- principal
Id String Principal ID for
servicePrincipal
auth. Should be specified whentype
is set toservicePrincipalSecret
orservicePrincipalCertificate
.- secret String
Password or account key for secret auth.
secret
andname
should be either both specified or both not specified whentype
is set tosecret
.- subscription
Id String Subscription ID for
userAssignedIdentity
.subscription_id
andclient_id
should be either both specified or both not specified.
- type string
The authentication type. Possible values are
systemAssignedIdentity
,userAssignedIdentity
,servicePrincipalSecret
,servicePrincipalCertificate
,secret
. Changing this forces a new resource to be created.- certificate string
Service principal certificate for
servicePrincipal
auth. Should be specified whentype
is set toservicePrincipalCertificate
.- client
Id string Client ID for
userAssignedIdentity
orservicePrincipal
auth. Should be specified whentype
is set toservicePrincipalSecret
orservicePrincipalCertificate
. Whentype
is set touserAssignedIdentity
,client_id
andsubscription_id
should be either both specified or both not specified.- name string
Username or account name for secret auth.
name
andsecret
should be either both specified or both not specified whentype
is set tosecret
.- principal
Id string Principal ID for
servicePrincipal
auth. Should be specified whentype
is set toservicePrincipalSecret
orservicePrincipalCertificate
.- secret string
Password or account key for secret auth.
secret
andname
should be either both specified or both not specified whentype
is set tosecret
.- subscription
Id string Subscription ID for
userAssignedIdentity
.subscription_id
andclient_id
should be either both specified or both not specified.
- type str
The authentication type. Possible values are
systemAssignedIdentity
,userAssignedIdentity
,servicePrincipalSecret
,servicePrincipalCertificate
,secret
. Changing this forces a new resource to be created.- certificate str
Service principal certificate for
servicePrincipal
auth. Should be specified whentype
is set toservicePrincipalCertificate
.- client_
id str Client ID for
userAssignedIdentity
orservicePrincipal
auth. Should be specified whentype
is set toservicePrincipalSecret
orservicePrincipalCertificate
. Whentype
is set touserAssignedIdentity
,client_id
andsubscription_id
should be either both specified or both not specified.- name str
Username or account name for secret auth.
name
andsecret
should be either both specified or both not specified whentype
is set tosecret
.- principal_
id str Principal ID for
servicePrincipal
auth. Should be specified whentype
is set toservicePrincipalSecret
orservicePrincipalCertificate
.- secret str
Password or account key for secret auth.
secret
andname
should be either both specified or both not specified whentype
is set tosecret
.- subscription_
id str Subscription ID for
userAssignedIdentity
.subscription_id
andclient_id
should be either both specified or both not specified.
- type String
The authentication type. Possible values are
systemAssignedIdentity
,userAssignedIdentity
,servicePrincipalSecret
,servicePrincipalCertificate
,secret
. Changing this forces a new resource to be created.- certificate String
Service principal certificate for
servicePrincipal
auth. Should be specified whentype
is set toservicePrincipalCertificate
.- client
Id String Client ID for
userAssignedIdentity
orservicePrincipal
auth. Should be specified whentype
is set toservicePrincipalSecret
orservicePrincipalCertificate
. Whentype
is set touserAssignedIdentity
,client_id
andsubscription_id
should be either both specified or both not specified.- name String
Username or account name for secret auth.
name
andsecret
should be either both specified or both not specified whentype
is set tosecret
.- principal
Id String Principal ID for
servicePrincipal
auth. Should be specified whentype
is set toservicePrincipalSecret
orservicePrincipalCertificate
.- secret String
Password or account key for secret auth.
secret
andname
should be either both specified or both not specified whentype
is set tosecret
.- subscription
Id String Subscription ID for
userAssignedIdentity
.subscription_id
andclient_id
should be either both specified or both not specified.
SpringCloudConnectionSecretStore, SpringCloudConnectionSecretStoreArgs
- Key
Vault stringId The key vault id to store secret.
- Key
Vault stringId The key vault id to store secret.
- key
Vault StringId The key vault id to store secret.
- key
Vault stringId The key vault id to store secret.
- key_
vault_ strid The key vault id to store secret.
- key
Vault StringId The key vault id to store secret.
Import
Service Connector for spring cloud can be imported using the resource id
, e.g.
$ pulumi import azure:appplatform/springCloudConnection:SpringCloudConnection example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AppPlatform/Spring/springcloud/apps/springcloudapp/deployments/deployment/providers/Microsoft.ServiceLinker/linkers/serviceconnector1
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
azurerm
Terraform Provider.