azure-native.agfoodplatform.DataConnector
Explore with Pulumi AI
DataConnector Model. Azure REST API version: 2023-06-01-preview.
Example Usage
DataConnectors_CreateOrUpdate
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var dataConnector = new AzureNative.AgFoodPlatform.DataConnector("dataConnector", new()
{
DataConnectorName = "WeatherIBM",
DataManagerForAgricultureResourceName = "examples-dataManagerForAgricultureResourceName",
Properties = new AzureNative.AgFoodPlatform.Inputs.DataConnectorPropertiesArgs
{
Credentials = new AzureNative.AgFoodPlatform.Inputs.ApiKeyAuthCredentialsArgs
{
ApiKey = new AzureNative.AgFoodPlatform.Inputs.KeyVaultPropertiesArgs
{
KeyName = "abcApiKey",
KeyVaultUri = "https://testKeyVault.vault.azure.net/",
KeyVersion = "239c0475c7d44f20b0fc27d3fe90a41d",
},
Kind = "ApiKeyAuthCredentials",
},
},
ResourceGroupName = "examples-rg",
});
});
package main
import (
agfoodplatform "github.com/pulumi/pulumi-azure-native-sdk/agfoodplatform/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := agfoodplatform.NewDataConnector(ctx, "dataConnector", &agfoodplatform.DataConnectorArgs{
DataConnectorName: pulumi.String("WeatherIBM"),
DataManagerForAgricultureResourceName: pulumi.String("examples-dataManagerForAgricultureResourceName"),
Properties: &agfoodplatform.DataConnectorPropertiesArgs{
Credentials: agfoodplatform.ApiKeyAuthCredentials{
ApiKey: agfoodplatform.KeyVaultProperties{
KeyName: "abcApiKey",
KeyVaultUri: "https://testKeyVault.vault.azure.net/",
KeyVersion: "239c0475c7d44f20b0fc27d3fe90a41d",
},
Kind: "ApiKeyAuthCredentials",
},
},
ResourceGroupName: pulumi.String("examples-rg"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.agfoodplatform.DataConnector;
import com.pulumi.azurenative.agfoodplatform.DataConnectorArgs;
import com.pulumi.azurenative.agfoodplatform.inputs.DataConnectorPropertiesArgs;
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 dataConnector = new DataConnector("dataConnector", DataConnectorArgs.builder()
.dataConnectorName("WeatherIBM")
.dataManagerForAgricultureResourceName("examples-dataManagerForAgricultureResourceName")
.properties(DataConnectorPropertiesArgs.builder()
.credentials(ApiKeyAuthCredentialsArgs.builder()
.apiKey(KeyVaultPropertiesArgs.builder()
.keyName("abcApiKey")
.keyVaultUri("https://testKeyVault.vault.azure.net/")
.keyVersion("239c0475c7d44f20b0fc27d3fe90a41d")
.build())
.kind("ApiKeyAuthCredentials")
.build())
.build())
.resourceGroupName("examples-rg")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
data_connector = azure_native.agfoodplatform.DataConnector("dataConnector",
data_connector_name="WeatherIBM",
data_manager_for_agriculture_resource_name="examples-dataManagerForAgricultureResourceName",
properties={
"credentials": {
"api_key": {
"key_name": "abcApiKey",
"key_vault_uri": "https://testKeyVault.vault.azure.net/",
"key_version": "239c0475c7d44f20b0fc27d3fe90a41d",
},
"kind": "ApiKeyAuthCredentials",
},
},
resource_group_name="examples-rg")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const dataConnector = new azure_native.agfoodplatform.DataConnector("dataConnector", {
dataConnectorName: "WeatherIBM",
dataManagerForAgricultureResourceName: "examples-dataManagerForAgricultureResourceName",
properties: {
credentials: {
apiKey: {
keyName: "abcApiKey",
keyVaultUri: "https://testKeyVault.vault.azure.net/",
keyVersion: "239c0475c7d44f20b0fc27d3fe90a41d",
},
kind: "ApiKeyAuthCredentials",
},
},
resourceGroupName: "examples-rg",
});
resources:
dataConnector:
type: azure-native:agfoodplatform:DataConnector
properties:
dataConnectorName: WeatherIBM
dataManagerForAgricultureResourceName: examples-dataManagerForAgricultureResourceName
properties:
credentials:
apiKey:
keyName: abcApiKey
keyVaultUri: https://testKeyVault.vault.azure.net/
keyVersion: 239c0475c7d44f20b0fc27d3fe90a41d
kind: ApiKeyAuthCredentials
resourceGroupName: examples-rg
Create DataConnector Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DataConnector(name: string, args: DataConnectorArgs, opts?: CustomResourceOptions);
@overload
def DataConnector(resource_name: str,
args: DataConnectorArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DataConnector(resource_name: str,
opts: Optional[ResourceOptions] = None,
data_manager_for_agriculture_resource_name: Optional[str] = None,
properties: Optional[DataConnectorPropertiesArgs] = None,
resource_group_name: Optional[str] = None,
data_connector_name: Optional[str] = None)
func NewDataConnector(ctx *Context, name string, args DataConnectorArgs, opts ...ResourceOption) (*DataConnector, error)
public DataConnector(string name, DataConnectorArgs args, CustomResourceOptions? opts = null)
public DataConnector(String name, DataConnectorArgs args)
public DataConnector(String name, DataConnectorArgs args, CustomResourceOptions options)
type: azure-native:agfoodplatform:DataConnector
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 DataConnectorArgs
- 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 DataConnectorArgs
- 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 DataConnectorArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DataConnectorArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DataConnectorArgs
- 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 dataConnectorResource = new AzureNative.AgFoodPlatform.DataConnector("dataConnectorResource", new()
{
DataManagerForAgricultureResourceName = "string",
Properties = new AzureNative.AgFoodPlatform.Inputs.DataConnectorPropertiesArgs
{
Credentials = new AzureNative.AgFoodPlatform.Inputs.ApiKeyAuthCredentialsArgs
{
ApiKey = new AzureNative.AgFoodPlatform.Inputs.KeyVaultPropertiesArgs
{
KeyName = "string",
KeyVaultUri = "string",
KeyVersion = "string",
},
Kind = "ApiKeyAuthCredentials",
},
},
ResourceGroupName = "string",
DataConnectorName = "string",
});
example, err := agfoodplatform.NewDataConnector(ctx, "dataConnectorResource", &agfoodplatform.DataConnectorArgs{
DataManagerForAgricultureResourceName: pulumi.String("string"),
Properties: &agfoodplatform.DataConnectorPropertiesArgs{
Credentials: agfoodplatform.ApiKeyAuthCredentials{
ApiKey: agfoodplatform.KeyVaultProperties{
KeyName: "string",
KeyVaultUri: "string",
KeyVersion: "string",
},
Kind: "ApiKeyAuthCredentials",
},
},
ResourceGroupName: pulumi.String("string"),
DataConnectorName: pulumi.String("string"),
})
var dataConnectorResource = new DataConnector("dataConnectorResource", DataConnectorArgs.builder()
.dataManagerForAgricultureResourceName("string")
.properties(DataConnectorPropertiesArgs.builder()
.credentials(ApiKeyAuthCredentialsArgs.builder()
.apiKey(KeyVaultPropertiesArgs.builder()
.keyName("string")
.keyVaultUri("string")
.keyVersion("string")
.build())
.kind("ApiKeyAuthCredentials")
.build())
.build())
.resourceGroupName("string")
.dataConnectorName("string")
.build());
data_connector_resource = azure_native.agfoodplatform.DataConnector("dataConnectorResource",
data_manager_for_agriculture_resource_name="string",
properties={
"credentials": {
"apiKey": {
"keyName": "string",
"keyVaultUri": "string",
"keyVersion": "string",
},
"kind": "ApiKeyAuthCredentials",
},
},
resource_group_name="string",
data_connector_name="string")
const dataConnectorResource = new azure_native.agfoodplatform.DataConnector("dataConnectorResource", {
dataManagerForAgricultureResourceName: "string",
properties: {
credentials: {
apiKey: {
keyName: "string",
keyVaultUri: "string",
keyVersion: "string",
},
kind: "ApiKeyAuthCredentials",
},
},
resourceGroupName: "string",
dataConnectorName: "string",
});
type: azure-native:agfoodplatform:DataConnector
properties:
dataConnectorName: string
dataManagerForAgricultureResourceName: string
properties:
credentials:
apiKey:
keyName: string
keyVaultUri: string
keyVersion: string
kind: ApiKeyAuthCredentials
resourceGroupName: string
DataConnector 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 DataConnector resource accepts the following input properties:
- Data
Manager stringFor Agriculture Resource Name - DataManagerForAgriculture resource name.
- Properties
Pulumi.
Azure Native. Ag Food Platform. Inputs. Data Connector Properties - DataConnector Properties.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Data
Connector stringName - Connector name.
- Data
Manager stringFor Agriculture Resource Name - DataManagerForAgriculture resource name.
- Properties
Data
Connector Properties Args - DataConnector Properties.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Data
Connector stringName - Connector name.
- data
Manager StringFor Agriculture Resource Name - DataManagerForAgriculture resource name.
- properties
Data
Connector Properties - DataConnector Properties.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- data
Connector StringName - Connector name.
- data
Manager stringFor Agriculture Resource Name - DataManagerForAgriculture resource name.
- properties
Data
Connector Properties - DataConnector Properties.
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- data
Connector stringName - Connector name.
- data_
manager_ strfor_ agriculture_ resource_ name - DataManagerForAgriculture resource name.
- properties
Data
Connector Properties Args - DataConnector Properties.
- resource_
group_ strname - The name of the resource group. The name is case insensitive.
- data_
connector_ strname - Connector name.
- data
Manager StringFor Agriculture Resource Name - DataManagerForAgriculture resource name.
- properties Property Map
- DataConnector Properties.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- data
Connector StringName - Connector name.
Outputs
All input properties are implicitly available as output properties. Additionally, the DataConnector resource produces the following output properties:
- ETag string
- The ETag value to implement optimistic concurrency.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- System
Data Pulumi.Azure Native. Ag Food Platform. Outputs. System Data Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- ETag string
- The ETag value to implement optimistic concurrency.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- System
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- e
Tag String - The ETag value to implement optimistic concurrency.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- e
Tag string - The ETag value to implement optimistic concurrency.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The name of the resource
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- e_
tag str - The ETag value to implement optimistic concurrency.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- The name of the resource
- system_
data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type str
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- e
Tag String - The ETag value to implement optimistic concurrency.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- system
Data Property Map - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Supporting Types
ApiKeyAuthCredentials, ApiKeyAuthCredentialsArgs
- Api
Key Pulumi.Azure Native. Ag Food Platform. Inputs. Key Vault Properties - Properties of the key vault.
- Api
Key KeyVault Properties - Properties of the key vault.
- api
Key KeyVault Properties - Properties of the key vault.
- api
Key KeyVault Properties - Properties of the key vault.
- api_
key KeyVault Properties - Properties of the key vault.
- api
Key Property Map - Properties of the key vault.
ApiKeyAuthCredentialsResponse, ApiKeyAuthCredentialsResponseArgs
- Api
Key Pulumi.Azure Native. Ag Food Platform. Inputs. Key Vault Properties Response - Properties of the key vault.
- Api
Key KeyVault Properties Response - Properties of the key vault.
- api
Key KeyVault Properties Response - Properties of the key vault.
- api
Key KeyVault Properties Response - Properties of the key vault.
- api_
key KeyVault Properties Response - Properties of the key vault.
- api
Key Property Map - Properties of the key vault.
DataConnectorProperties, DataConnectorPropertiesArgs
- Credentials
Pulumi.
Azure | Pulumi.Native. Ag Food Platform. Inputs. Api Key Auth Credentials Azure Native. Ag Food Platform. Inputs. OAuth Client Credentials - AuthCredentials abstract base class for Auth Purpose.
- Credentials
Api
Key | OAuthAuth Credentials Client Credentials - AuthCredentials abstract base class for Auth Purpose.
- credentials
Api
Key | OAuthAuth Credentials Client Credentials - AuthCredentials abstract base class for Auth Purpose.
- credentials
Api
Key | OAuthAuth Credentials Client Credentials - AuthCredentials abstract base class for Auth Purpose.
- credentials
Api
Key | OAuthAuth Credentials Client Credentials - AuthCredentials abstract base class for Auth Purpose.
- credentials Property Map | Property Map
- AuthCredentials abstract base class for Auth Purpose.
DataConnectorPropertiesResponse, DataConnectorPropertiesResponseArgs
- Credentials
Pulumi.
Azure | Pulumi.Native. Ag Food Platform. Inputs. Api Key Auth Credentials Response Azure Native. Ag Food Platform. Inputs. OAuth Client Credentials Response - AuthCredentials abstract base class for Auth Purpose.
- Credentials
Api
Key | OAuthAuth Credentials Response Client Credentials Response - AuthCredentials abstract base class for Auth Purpose.
- credentials
Api
Key | OAuthAuth Credentials Response Client Credentials Response - AuthCredentials abstract base class for Auth Purpose.
- credentials
Api
Key | OAuthAuth Credentials Response Client Credentials Response - AuthCredentials abstract base class for Auth Purpose.
- credentials
Api
Key | OAuthAuth Credentials Response Client Credentials Response - AuthCredentials abstract base class for Auth Purpose.
- credentials Property Map | Property Map
- AuthCredentials abstract base class for Auth Purpose.
KeyVaultProperties, KeyVaultPropertiesArgs
- Key
Name string - Name of Key Vault key.
- Key
Vault stringUri - Uri of the key vault.
- Key
Version string - Version of Key Vault key.
- Key
Name string - Name of Key Vault key.
- Key
Vault stringUri - Uri of the key vault.
- Key
Version string - Version of Key Vault key.
- key
Name String - Name of Key Vault key.
- key
Vault StringUri - Uri of the key vault.
- key
Version String - Version of Key Vault key.
- key
Name string - Name of Key Vault key.
- key
Vault stringUri - Uri of the key vault.
- key
Version string - Version of Key Vault key.
- key_
name str - Name of Key Vault key.
- key_
vault_ struri - Uri of the key vault.
- key_
version str - Version of Key Vault key.
- key
Name String - Name of Key Vault key.
- key
Vault StringUri - Uri of the key vault.
- key
Version String - Version of Key Vault key.
KeyVaultPropertiesResponse, KeyVaultPropertiesResponseArgs
- Key
Name string - Name of Key Vault key.
- Key
Vault stringUri - Uri of the key vault.
- Key
Version string - Version of Key Vault key.
- Key
Name string - Name of Key Vault key.
- Key
Vault stringUri - Uri of the key vault.
- Key
Version string - Version of Key Vault key.
- key
Name String - Name of Key Vault key.
- key
Vault StringUri - Uri of the key vault.
- key
Version String - Version of Key Vault key.
- key
Name string - Name of Key Vault key.
- key
Vault stringUri - Uri of the key vault.
- key
Version string - Version of Key Vault key.
- key_
name str - Name of Key Vault key.
- key_
vault_ struri - Uri of the key vault.
- key_
version str - Version of Key Vault key.
- key
Name String - Name of Key Vault key.
- key
Vault StringUri - Uri of the key vault.
- key
Version String - Version of Key Vault key.
OAuthClientCredentials, OAuthClientCredentialsArgs
- Client
Id string - ClientId associated with the provider.
- Client
Secret Pulumi.Azure Native. Ag Food Platform. Inputs. Key Vault Properties - Properties of the key vault.
- Client
Id string - ClientId associated with the provider.
- Client
Secret KeyVault Properties - Properties of the key vault.
- client
Id String - ClientId associated with the provider.
- client
Secret KeyVault Properties - Properties of the key vault.
- client
Id string - ClientId associated with the provider.
- client
Secret KeyVault Properties - Properties of the key vault.
- client_
id str - ClientId associated with the provider.
- client_
secret KeyVault Properties - Properties of the key vault.
- client
Id String - ClientId associated with the provider.
- client
Secret Property Map - Properties of the key vault.
OAuthClientCredentialsResponse, OAuthClientCredentialsResponseArgs
- Client
Id string - ClientId associated with the provider.
- Client
Secret Pulumi.Azure Native. Ag Food Platform. Inputs. Key Vault Properties Response - Properties of the key vault.
- Client
Id string - ClientId associated with the provider.
- Client
Secret KeyVault Properties Response - Properties of the key vault.
- client
Id String - ClientId associated with the provider.
- client
Secret KeyVault Properties Response - Properties of the key vault.
- client
Id string - ClientId associated with the provider.
- client
Secret KeyVault Properties Response - Properties of the key vault.
- client_
id str - ClientId associated with the provider.
- client_
secret KeyVault Properties Response - Properties of the key vault.
- client
Id String - ClientId associated with the provider.
- client
Secret Property Map - Properties of the key vault.
SystemDataResponse, SystemDataResponseArgs
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The timestamp of resource last modification (UTC)
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified stringBy Type - The type of identity that last modified the resource.
- created_
at str - The timestamp of resource creation (UTC).
- created_
by str - The identity that created the resource.
- created_
by_ strtype - The type of identity that created the resource.
- last_
modified_ strat - The timestamp of resource last modification (UTC)
- last_
modified_ strby - The identity that last modified the resource.
- last_
modified_ strby_ type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:agfoodplatform:DataConnector SatelliteSentinelHub /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{dataManagerForAgricultureResourceName}/dataConnectors/{dataConnectorName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0