We recommend using Azure Native.
azure.appplatform.SpringCloudConnection
Explore with Pulumi AI
Manages a service connector for spring cloud app.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = new azure.core.ResourceGroup("example", {
name: "example-resources",
location: "West Europe",
});
const exampleAccount = new azure.cosmosdb.Account("example", {
name: "example-cosmosdb-account",
location: example.location,
resourceGroupName: example.name,
offerType: "Standard",
kind: "GlobalDocumentDB",
consistencyPolicy: {
consistencyLevel: "BoundedStaleness",
maxIntervalInSeconds: 10,
maxStalenessPrefix: 200,
},
geoLocations: [{
location: example.location,
failoverPriority: 0,
}],
});
const exampleSqlDatabase = new azure.cosmosdb.SqlDatabase("example", {
name: "cosmos-sql-db",
resourceGroupName: exampleAccount.resourceGroupName,
accountName: exampleAccount.name,
throughput: 400,
});
const exampleSqlContainer = new azure.cosmosdb.SqlContainer("example", {
name: "example-container",
resourceGroupName: exampleAccount.resourceGroupName,
accountName: exampleAccount.name,
databaseName: exampleSqlDatabase.name,
partitionKeyPath: "/definition",
});
const exampleSpringCloudService = new azure.appplatform.SpringCloudService("example", {
name: "examplespringcloud",
resourceGroupName: example.name,
location: example.location,
});
const exampleSpringCloudApp = new azure.appplatform.SpringCloudApp("example", {
name: "examplespringcloudapp",
resourceGroupName: example.name,
serviceName: exampleSpringCloudService.name,
identity: {
type: "SystemAssigned",
},
});
const exampleSpringCloudJavaDeployment = new azure.appplatform.SpringCloudJavaDeployment("example", {
name: "exampledeployment",
springCloudAppId: exampleSpringCloudApp.id,
});
const exampleSpringCloudConnection = new azure.appplatform.SpringCloudConnection("example", {
name: "example-serviceconnector",
springCloudId: exampleSpringCloudJavaDeployment.id,
targetResourceId: exampleSqlDatabase.id,
authentication: {
type: "systemAssignedIdentity",
},
});
import pulumi
import pulumi_azure as azure
example = azure.core.ResourceGroup("example",
name="example-resources",
location="West Europe")
example_account = azure.cosmosdb.Account("example",
name="example-cosmosdb-account",
location=example.location,
resource_group_name=example.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.location,
failover_priority=0,
)])
example_sql_database = azure.cosmosdb.SqlDatabase("example",
name="cosmos-sql-db",
resource_group_name=example_account.resource_group_name,
account_name=example_account.name,
throughput=400)
example_sql_container = azure.cosmosdb.SqlContainer("example",
name="example-container",
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("example",
name="examplespringcloud",
resource_group_name=example.name,
location=example.location)
example_spring_cloud_app = azure.appplatform.SpringCloudApp("example",
name="examplespringcloudapp",
resource_group_name=example.name,
service_name=example_spring_cloud_service.name,
identity=azure.appplatform.SpringCloudAppIdentityArgs(
type="SystemAssigned",
))
example_spring_cloud_java_deployment = azure.appplatform.SpringCloudJavaDeployment("example",
name="exampledeployment",
spring_cloud_app_id=example_spring_cloud_app.id)
example_spring_cloud_connection = azure.appplatform.SpringCloudConnection("example",
name="example-serviceconnector",
spring_cloud_id=example_spring_cloud_java_deployment.id,
target_resource_id=example_sql_database.id,
authentication=azure.appplatform.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 {
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 := cosmosdb.NewAccount(ctx, "example", &cosmosdb.AccountArgs{
Name: pulumi.String("example-cosmosdb-account"),
Location: example.Location,
ResourceGroupName: example.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: example.Location,
FailoverPriority: pulumi.Int(0),
},
},
})
if err != nil {
return err
}
exampleSqlDatabase, err := cosmosdb.NewSqlDatabase(ctx, "example", &cosmosdb.SqlDatabaseArgs{
Name: pulumi.String("cosmos-sql-db"),
ResourceGroupName: exampleAccount.ResourceGroupName,
AccountName: exampleAccount.Name,
Throughput: pulumi.Int(400),
})
if err != nil {
return err
}
_, err = cosmosdb.NewSqlContainer(ctx, "example", &cosmosdb.SqlContainerArgs{
Name: pulumi.String("example-container"),
ResourceGroupName: exampleAccount.ResourceGroupName,
AccountName: exampleAccount.Name,
DatabaseName: exampleSqlDatabase.Name,
PartitionKeyPath: pulumi.String("/definition"),
})
if err != nil {
return err
}
exampleSpringCloudService, err := appplatform.NewSpringCloudService(ctx, "example", &appplatform.SpringCloudServiceArgs{
Name: pulumi.String("examplespringcloud"),
ResourceGroupName: example.Name,
Location: example.Location,
})
if err != nil {
return err
}
exampleSpringCloudApp, err := appplatform.NewSpringCloudApp(ctx, "example", &appplatform.SpringCloudAppArgs{
Name: pulumi.String("examplespringcloudapp"),
ResourceGroupName: example.Name,
ServiceName: exampleSpringCloudService.Name,
Identity: &appplatform.SpringCloudAppIdentityArgs{
Type: pulumi.String("SystemAssigned"),
},
})
if err != nil {
return err
}
exampleSpringCloudJavaDeployment, err := appplatform.NewSpringCloudJavaDeployment(ctx, "example", &appplatform.SpringCloudJavaDeploymentArgs{
Name: pulumi.String("exampledeployment"),
SpringCloudAppId: exampleSpringCloudApp.ID(),
})
if err != nil {
return err
}
_, err = appplatform.NewSpringCloudConnection(ctx, "example", &appplatform.SpringCloudConnectionArgs{
Name: pulumi.String("example-serviceconnector"),
SpringCloudId: exampleSpringCloudJavaDeployment.ID(),
TargetResourceId: exampleSqlDatabase.ID(),
Authentication: &appplatform.SpringCloudConnectionAuthenticationArgs{
Type: pulumi.String("systemAssignedIdentity"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var example = new Azure.Core.ResourceGroup("example", new()
{
Name = "example-resources",
Location = "West Europe",
});
var exampleAccount = new Azure.CosmosDB.Account("example", new()
{
Name = "example-cosmosdb-account",
Location = example.Location,
ResourceGroupName = example.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 = example.Location,
FailoverPriority = 0,
},
},
});
var exampleSqlDatabase = new Azure.CosmosDB.SqlDatabase("example", new()
{
Name = "cosmos-sql-db",
ResourceGroupName = exampleAccount.ResourceGroupName,
AccountName = exampleAccount.Name,
Throughput = 400,
});
var exampleSqlContainer = new Azure.CosmosDB.SqlContainer("example", new()
{
Name = "example-container",
ResourceGroupName = exampleAccount.ResourceGroupName,
AccountName = exampleAccount.Name,
DatabaseName = exampleSqlDatabase.Name,
PartitionKeyPath = "/definition",
});
var exampleSpringCloudService = new Azure.AppPlatform.SpringCloudService("example", new()
{
Name = "examplespringcloud",
ResourceGroupName = example.Name,
Location = example.Location,
});
var exampleSpringCloudApp = new Azure.AppPlatform.SpringCloudApp("example", new()
{
Name = "examplespringcloudapp",
ResourceGroupName = example.Name,
ServiceName = exampleSpringCloudService.Name,
Identity = new Azure.AppPlatform.Inputs.SpringCloudAppIdentityArgs
{
Type = "SystemAssigned",
},
});
var exampleSpringCloudJavaDeployment = new Azure.AppPlatform.SpringCloudJavaDeployment("example", new()
{
Name = "exampledeployment",
SpringCloudAppId = exampleSpringCloudApp.Id,
});
var exampleSpringCloudConnection = new Azure.AppPlatform.SpringCloudConnection("example", new()
{
Name = "example-serviceconnector",
SpringCloudId = exampleSpringCloudJavaDeployment.Id,
TargetResourceId = exampleSqlDatabase.Id,
Authentication = new Azure.AppPlatform.Inputs.SpringCloudConnectionAuthenticationArgs
{
Type = "systemAssignedIdentity",
},
});
});
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 example = new ResourceGroup("example", ResourceGroupArgs.builder()
.name("example-resources")
.location("West Europe")
.build());
var exampleAccount = new Account("exampleAccount", AccountArgs.builder()
.name("example-cosmosdb-account")
.location(example.location())
.resourceGroupName(example.name())
.offerType("Standard")
.kind("GlobalDocumentDB")
.consistencyPolicy(AccountConsistencyPolicyArgs.builder()
.consistencyLevel("BoundedStaleness")
.maxIntervalInSeconds(10)
.maxStalenessPrefix(200)
.build())
.geoLocations(AccountGeoLocationArgs.builder()
.location(example.location())
.failoverPriority(0)
.build())
.build());
var exampleSqlDatabase = new SqlDatabase("exampleSqlDatabase", SqlDatabaseArgs.builder()
.name("cosmos-sql-db")
.resourceGroupName(exampleAccount.resourceGroupName())
.accountName(exampleAccount.name())
.throughput(400)
.build());
var exampleSqlContainer = new SqlContainer("exampleSqlContainer", SqlContainerArgs.builder()
.name("example-container")
.resourceGroupName(exampleAccount.resourceGroupName())
.accountName(exampleAccount.name())
.databaseName(exampleSqlDatabase.name())
.partitionKeyPath("/definition")
.build());
var exampleSpringCloudService = new SpringCloudService("exampleSpringCloudService", SpringCloudServiceArgs.builder()
.name("examplespringcloud")
.resourceGroupName(example.name())
.location(example.location())
.build());
var exampleSpringCloudApp = new SpringCloudApp("exampleSpringCloudApp", SpringCloudAppArgs.builder()
.name("examplespringcloudapp")
.resourceGroupName(example.name())
.serviceName(exampleSpringCloudService.name())
.identity(SpringCloudAppIdentityArgs.builder()
.type("SystemAssigned")
.build())
.build());
var exampleSpringCloudJavaDeployment = new SpringCloudJavaDeployment("exampleSpringCloudJavaDeployment", SpringCloudJavaDeploymentArgs.builder()
.name("exampledeployment")
.springCloudAppId(exampleSpringCloudApp.id())
.build());
var exampleSpringCloudConnection = new SpringCloudConnection("exampleSpringCloudConnection", SpringCloudConnectionArgs.builder()
.name("example-serviceconnector")
.springCloudId(exampleSpringCloudJavaDeployment.id())
.targetResourceId(exampleSqlDatabase.id())
.authentication(SpringCloudConnectionAuthenticationArgs.builder()
.type("systemAssignedIdentity")
.build())
.build());
}
}
resources:
example:
type: azure:core:ResourceGroup
properties:
name: example-resources
location: West Europe
exampleAccount:
type: azure:cosmosdb:Account
name: example
properties:
name: example-cosmosdb-account
location: ${example.location}
resourceGroupName: ${example.name}
offerType: Standard
kind: GlobalDocumentDB
consistencyPolicy:
consistencyLevel: BoundedStaleness
maxIntervalInSeconds: 10
maxStalenessPrefix: 200
geoLocations:
- location: ${example.location}
failoverPriority: 0
exampleSqlDatabase:
type: azure:cosmosdb:SqlDatabase
name: example
properties:
name: cosmos-sql-db
resourceGroupName: ${exampleAccount.resourceGroupName}
accountName: ${exampleAccount.name}
throughput: 400
exampleSqlContainer:
type: azure:cosmosdb:SqlContainer
name: example
properties:
name: example-container
resourceGroupName: ${exampleAccount.resourceGroupName}
accountName: ${exampleAccount.name}
databaseName: ${exampleSqlDatabase.name}
partitionKeyPath: /definition
exampleSpringCloudService:
type: azure:appplatform:SpringCloudService
name: example
properties:
name: examplespringcloud
resourceGroupName: ${example.name}
location: ${example.location}
exampleSpringCloudApp:
type: azure:appplatform:SpringCloudApp
name: example
properties:
name: examplespringcloudapp
resourceGroupName: ${example.name}
serviceName: ${exampleSpringCloudService.name}
identity:
type: SystemAssigned
exampleSpringCloudJavaDeployment:
type: azure:appplatform:SpringCloudJavaDeployment
name: example
properties:
name: exampledeployment
springCloudAppId: ${exampleSpringCloudApp.id}
exampleSpringCloudConnection:
type: azure:appplatform:SpringCloudConnection
name: example
properties:
name: example-serviceconnector
springCloudId: ${exampleSpringCloudJavaDeployment.id}
targetResourceId: ${exampleSqlDatabase.id}
authentication:
type: systemAssignedIdentity
Create SpringCloudConnection Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SpringCloudConnection(name: string, args: SpringCloudConnectionArgs, opts?: CustomResourceOptions);
@overload
def SpringCloudConnection(resource_name: str,
args: SpringCloudConnectionArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SpringCloudConnection(resource_name: str,
opts: Optional[ResourceOptions] = None,
authentication: Optional[SpringCloudConnectionAuthenticationArgs] = None,
spring_cloud_id: Optional[str] = None,
target_resource_id: Optional[str] = None,
client_type: Optional[str] = None,
name: Optional[str] = None,
secret_store: Optional[SpringCloudConnectionSecretStoreArgs] = None,
vnet_solution: Optional[str] = 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.
Parameters
- 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.
Constructor example
The following reference example uses placeholder values for all input properties.
var springCloudConnectionResource = new Azure.AppPlatform.SpringCloudConnection("springCloudConnectionResource", new()
{
Authentication = new Azure.AppPlatform.Inputs.SpringCloudConnectionAuthenticationArgs
{
Type = "string",
Certificate = "string",
ClientId = "string",
Name = "string",
PrincipalId = "string",
Secret = "string",
SubscriptionId = "string",
},
SpringCloudId = "string",
TargetResourceId = "string",
ClientType = "string",
Name = "string",
SecretStore = new Azure.AppPlatform.Inputs.SpringCloudConnectionSecretStoreArgs
{
KeyVaultId = "string",
},
VnetSolution = "string",
});
example, err := appplatform.NewSpringCloudConnection(ctx, "springCloudConnectionResource", &appplatform.SpringCloudConnectionArgs{
Authentication: &appplatform.SpringCloudConnectionAuthenticationArgs{
Type: pulumi.String("string"),
Certificate: pulumi.String("string"),
ClientId: pulumi.String("string"),
Name: pulumi.String("string"),
PrincipalId: pulumi.String("string"),
Secret: pulumi.String("string"),
SubscriptionId: pulumi.String("string"),
},
SpringCloudId: pulumi.String("string"),
TargetResourceId: pulumi.String("string"),
ClientType: pulumi.String("string"),
Name: pulumi.String("string"),
SecretStore: &appplatform.SpringCloudConnectionSecretStoreArgs{
KeyVaultId: pulumi.String("string"),
},
VnetSolution: pulumi.String("string"),
})
var springCloudConnectionResource = new SpringCloudConnection("springCloudConnectionResource", SpringCloudConnectionArgs.builder()
.authentication(SpringCloudConnectionAuthenticationArgs.builder()
.type("string")
.certificate("string")
.clientId("string")
.name("string")
.principalId("string")
.secret("string")
.subscriptionId("string")
.build())
.springCloudId("string")
.targetResourceId("string")
.clientType("string")
.name("string")
.secretStore(SpringCloudConnectionSecretStoreArgs.builder()
.keyVaultId("string")
.build())
.vnetSolution("string")
.build());
spring_cloud_connection_resource = azure.appplatform.SpringCloudConnection("springCloudConnectionResource",
authentication=azure.appplatform.SpringCloudConnectionAuthenticationArgs(
type="string",
certificate="string",
client_id="string",
name="string",
principal_id="string",
secret="string",
subscription_id="string",
),
spring_cloud_id="string",
target_resource_id="string",
client_type="string",
name="string",
secret_store=azure.appplatform.SpringCloudConnectionSecretStoreArgs(
key_vault_id="string",
),
vnet_solution="string")
const springCloudConnectionResource = new azure.appplatform.SpringCloudConnection("springCloudConnectionResource", {
authentication: {
type: "string",
certificate: "string",
clientId: "string",
name: "string",
principalId: "string",
secret: "string",
subscriptionId: "string",
},
springCloudId: "string",
targetResourceId: "string",
clientType: "string",
name: "string",
secretStore: {
keyVaultId: "string",
},
vnetSolution: "string",
});
type: azure:appplatform:SpringCloudConnection
properties:
authentication:
certificate: string
clientId: string
name: string
principalId: string
secret: string
subscriptionId: string
type: string
clientType: string
name: string
secretStore:
keyVaultId: string
springCloudId: string
targetResourceId: string
vnetSolution: string
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 - Name string
- The name of the service connection. Changing this forces a new resource to be created.
- Secret
Store SpringCloud Connection Secret Store - Vnet
Solution string
- 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 - Name string
- The name of the service connection. Changing this forces a new resource to be created.
- Secret
Store SpringCloud Connection Secret Store Args - Vnet
Solution string
- 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 - name String
- The name of the service connection. Changing this forces a new resource to be created.
- secret
Store SpringCloud Connection Secret Store - vnet
Solution String
- 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 - name string
- The name of the service connection. Changing this forces a new resource to be created.
- secret
Store SpringCloud Connection Secret Store - vnet
Solution string
- 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 - name str
- The name of the service connection. Changing this forces a new resource to be created.
- secret_
store SpringCloud Connection Secret Store Args - vnet_
solution str
- 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 - name String
- The name of the service connection. Changing this forces a new resource to be created.
- secret
Store Property Map - vnet
Solution String
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 - Name string
- The name of the service connection. Changing this forces a new resource to be created.
- Secret
Store SpringCloud Connection Secret Store - 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
- Authentication
Spring
Cloud Connection Authentication Args - The authentication info. An
authentication
block as defined below. - Client
Type string - Name string
- The name of the service connection. Changing this forces a new resource to be created.
- Secret
Store SpringCloud Connection Secret Store Args - 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
- authentication
Spring
Cloud Connection Authentication - The authentication info. An
authentication
block as defined below. - client
Type String - name String
- The name of the service connection. Changing this forces a new resource to be created.
- secret
Store SpringCloud Connection Secret Store - 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
- authentication
Spring
Cloud Connection Authentication - The authentication info. An
authentication
block as defined below. - client
Type string - name string
- The name of the service connection. Changing this forces a new resource to be created.
- secret
Store SpringCloud Connection Secret Store - 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
- authentication
Spring
Cloud Connection Authentication Args - The authentication info. An
authentication
block as defined below. - client_
type str - name str
- The name of the service connection. Changing this forces a new resource to be created.
- secret_
store SpringCloud Connection Secret Store Args - 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
- authentication Property Map
- The authentication info. An
authentication
block as defined below. - client
Type String - name String
- The name of the service connection. Changing this forces a new resource to be created.
- secret
Store Property Map - 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
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
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurerm
Terraform Provider.