azure-native.networkanalytics.DataType
Explore with Pulumi AI
The data type resource. Azure REST API version: 2023-11-15.
Example Usage
DataTypes_Create_MaximumSet_Gen
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var dataType = new AzureNative.NetworkAnalytics.DataType("dataType", new()
{
DataProductName = "dataproduct01",
DataTypeName = "datatypename",
DatabaseCacheRetention = 23,
DatabaseRetention = 6,
ResourceGroupName = "aoiresourceGroupName",
State = "STARTED",
StorageOutputRetention = 27,
});
});
package main
import (
networkanalytics "github.com/pulumi/pulumi-azure-native-sdk/networkanalytics/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := networkanalytics.NewDataType(ctx, "dataType", &networkanalytics.DataTypeArgs{
DataProductName: pulumi.String("dataproduct01"),
DataTypeName: pulumi.String("datatypename"),
DatabaseCacheRetention: pulumi.Int(23),
DatabaseRetention: pulumi.Int(6),
ResourceGroupName: pulumi.String("aoiresourceGroupName"),
State: pulumi.String("STARTED"),
StorageOutputRetention: pulumi.Int(27),
})
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.networkanalytics.DataType;
import com.pulumi.azurenative.networkanalytics.DataTypeArgs;
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 dataType = new DataType("dataType", DataTypeArgs.builder()
.dataProductName("dataproduct01")
.dataTypeName("datatypename")
.databaseCacheRetention(23)
.databaseRetention(6)
.resourceGroupName("aoiresourceGroupName")
.state("STARTED")
.storageOutputRetention(27)
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
data_type = azure_native.networkanalytics.DataType("dataType",
data_product_name="dataproduct01",
data_type_name="datatypename",
database_cache_retention=23,
database_retention=6,
resource_group_name="aoiresourceGroupName",
state="STARTED",
storage_output_retention=27)
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const dataType = new azure_native.networkanalytics.DataType("dataType", {
dataProductName: "dataproduct01",
dataTypeName: "datatypename",
databaseCacheRetention: 23,
databaseRetention: 6,
resourceGroupName: "aoiresourceGroupName",
state: "STARTED",
storageOutputRetention: 27,
});
resources:
dataType:
type: azure-native:networkanalytics:DataType
properties:
dataProductName: dataproduct01
dataTypeName: datatypename
databaseCacheRetention: 23
databaseRetention: 6
resourceGroupName: aoiresourceGroupName
state: STARTED
storageOutputRetention: 27
DataTypes_Create_MaximumSet_Gen - generated by [MinimumSet] rule_MinimumSet_Gen
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var dataType = new AzureNative.NetworkAnalytics.DataType("dataType", new()
{
DataProductName = "dataproduct01",
DataTypeName = "datatypename",
ResourceGroupName = "aoiresourceGroupName",
});
});
package main
import (
networkanalytics "github.com/pulumi/pulumi-azure-native-sdk/networkanalytics/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := networkanalytics.NewDataType(ctx, "dataType", &networkanalytics.DataTypeArgs{
DataProductName: pulumi.String("dataproduct01"),
DataTypeName: pulumi.String("datatypename"),
ResourceGroupName: pulumi.String("aoiresourceGroupName"),
})
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.networkanalytics.DataType;
import com.pulumi.azurenative.networkanalytics.DataTypeArgs;
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 dataType = new DataType("dataType", DataTypeArgs.builder()
.dataProductName("dataproduct01")
.dataTypeName("datatypename")
.resourceGroupName("aoiresourceGroupName")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
data_type = azure_native.networkanalytics.DataType("dataType",
data_product_name="dataproduct01",
data_type_name="datatypename",
resource_group_name="aoiresourceGroupName")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const dataType = new azure_native.networkanalytics.DataType("dataType", {
dataProductName: "dataproduct01",
dataTypeName: "datatypename",
resourceGroupName: "aoiresourceGroupName",
});
resources:
dataType:
type: azure-native:networkanalytics:DataType
properties:
dataProductName: dataproduct01
dataTypeName: datatypename
resourceGroupName: aoiresourceGroupName
Create DataType Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DataType(name: string, args: DataTypeArgs, opts?: CustomResourceOptions);
@overload
def DataType(resource_name: str,
args: DataTypeArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DataType(resource_name: str,
opts: Optional[ResourceOptions] = None,
data_product_name: Optional[str] = None,
resource_group_name: Optional[str] = None,
data_type_name: Optional[str] = None,
database_cache_retention: Optional[int] = None,
database_retention: Optional[int] = None,
state: Optional[Union[str, DataTypeState]] = None,
storage_output_retention: Optional[int] = None)
func NewDataType(ctx *Context, name string, args DataTypeArgs, opts ...ResourceOption) (*DataType, error)
public DataType(string name, DataTypeArgs args, CustomResourceOptions? opts = null)
public DataType(String name, DataTypeArgs args)
public DataType(String name, DataTypeArgs args, CustomResourceOptions options)
type: azure-native:networkanalytics:DataType
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 DataTypeArgs
- 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 DataTypeArgs
- 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 DataTypeArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DataTypeArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DataTypeArgs
- 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 dataTypeResource = new AzureNative.NetworkAnalytics.DataType("dataTypeResource", new()
{
DataProductName = "string",
ResourceGroupName = "string",
DataTypeName = "string",
DatabaseCacheRetention = 0,
DatabaseRetention = 0,
State = "string",
StorageOutputRetention = 0,
});
example, err := networkanalytics.NewDataType(ctx, "dataTypeResource", &networkanalytics.DataTypeArgs{
DataProductName: pulumi.String("string"),
ResourceGroupName: pulumi.String("string"),
DataTypeName: pulumi.String("string"),
DatabaseCacheRetention: pulumi.Int(0),
DatabaseRetention: pulumi.Int(0),
State: pulumi.String("string"),
StorageOutputRetention: pulumi.Int(0),
})
var dataTypeResource = new DataType("dataTypeResource", DataTypeArgs.builder()
.dataProductName("string")
.resourceGroupName("string")
.dataTypeName("string")
.databaseCacheRetention(0)
.databaseRetention(0)
.state("string")
.storageOutputRetention(0)
.build());
data_type_resource = azure_native.networkanalytics.DataType("dataTypeResource",
data_product_name="string",
resource_group_name="string",
data_type_name="string",
database_cache_retention=0,
database_retention=0,
state="string",
storage_output_retention=0)
const dataTypeResource = new azure_native.networkanalytics.DataType("dataTypeResource", {
dataProductName: "string",
resourceGroupName: "string",
dataTypeName: "string",
databaseCacheRetention: 0,
databaseRetention: 0,
state: "string",
storageOutputRetention: 0,
});
type: azure-native:networkanalytics:DataType
properties:
dataProductName: string
dataTypeName: string
databaseCacheRetention: 0
databaseRetention: 0
resourceGroupName: string
state: string
storageOutputRetention: 0
DataType 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 DataType resource accepts the following input properties:
- Data
Product stringName - The data product resource name
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Data
Type stringName - The data type name.
- Database
Cache intRetention - Field for database cache retention in days.
- Database
Retention int - Field for database data retention in days.
- State
string | Pulumi.
Azure Native. Network Analytics. Data Type State - State of data type.
- Storage
Output intRetention - Field for storage output retention in days.
- Data
Product stringName - The data product resource name
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Data
Type stringName - The data type name.
- Database
Cache intRetention - Field for database cache retention in days.
- Database
Retention int - Field for database data retention in days.
- State
string | Data
Type State Enum - State of data type.
- Storage
Output intRetention - Field for storage output retention in days.
- data
Product StringName - The data product resource name
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- data
Type StringName - The data type name.
- database
Cache IntegerRetention - Field for database cache retention in days.
- database
Retention Integer - Field for database data retention in days.
- state
String | Data
Type State - State of data type.
- storage
Output IntegerRetention - Field for storage output retention in days.
- data
Product stringName - The data product resource name
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- data
Type stringName - The data type name.
- database
Cache numberRetention - Field for database cache retention in days.
- database
Retention number - Field for database data retention in days.
- state
string | Data
Type State - State of data type.
- storage
Output numberRetention - Field for storage output retention in days.
- data_
product_ strname - The data product resource name
- resource_
group_ strname - The name of the resource group. The name is case insensitive.
- data_
type_ strname - The data type name.
- database_
cache_ intretention - Field for database cache retention in days.
- database_
retention int - Field for database data retention in days.
- state
str | Data
Type State - State of data type.
- storage_
output_ intretention - Field for storage output retention in days.
- data
Product StringName - The data product resource name
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- data
Type StringName - The data type name.
- database
Cache NumberRetention - Field for database cache retention in days.
- database
Retention Number - Field for database data retention in days.
- state String | "Stopped" | "Running"
- State of data type.
- storage
Output NumberRetention - Field for storage output retention in days.
Outputs
All input properties are implicitly available as output properties. Additionally, the DataType resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- Provisioning
State string - Latest provisioning state of data product.
- State
Reason string - Reason for the state of data type.
- System
Data Pulumi.Azure Native. Network Analytics. 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"
- Visualization
Url string - Url for data visualization.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- Provisioning
State string - Latest provisioning state of data product.
- State
Reason string - Reason for the state of data type.
- 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"
- Visualization
Url string - Url for data visualization.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- provisioning
State String - Latest provisioning state of data product.
- state
Reason String - Reason for the state of data type.
- 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"
- visualization
Url String - Url for data visualization.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The name of the resource
- provisioning
State string - Latest provisioning state of data product.
- state
Reason string - Reason for the state of data type.
- 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"
- visualization
Url string - Url for data visualization.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- The name of the resource
- provisioning_
state str - Latest provisioning state of data product.
- state_
reason str - Reason for the state of data type.
- 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"
- visualization_
url str - Url for data visualization.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- provisioning
State String - Latest provisioning state of data product.
- state
Reason String - Reason for the state of data type.
- 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"
- visualization
Url String - Url for data visualization.
Supporting Types
DataTypeState, DataTypeStateArgs
- Stopped
- StoppedField to specify stopped state.
- Running
- RunningField to specify running state.
- Data
Type State Stopped - StoppedField to specify stopped state.
- Data
Type State Running - RunningField to specify running state.
- Stopped
- StoppedField to specify stopped state.
- Running
- RunningField to specify running state.
- Stopped
- StoppedField to specify stopped state.
- Running
- RunningField to specify running state.
- STOPPED
- StoppedField to specify stopped state.
- RUNNING
- RunningField to specify running state.
- "Stopped"
- StoppedField to specify stopped state.
- "Running"
- RunningField to specify running state.
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:networkanalytics:DataType datatypeName /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes/{dataTypeName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0