azure-native.applicationinsights.AnalyticsItem
Explore with Pulumi AI
Properties that define an Analytics item that is associated to an Application Insights component.
Uses Azure REST API version 2015-05-01.
Create AnalyticsItem Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AnalyticsItem(name: string, args: AnalyticsItemArgs, opts?: CustomResourceOptions);
@overload
def AnalyticsItem(resource_name: str,
args: AnalyticsItemArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AnalyticsItem(resource_name: str,
opts: Optional[ResourceOptions] = None,
resource_group_name: Optional[str] = None,
resource_name_: Optional[str] = None,
scope_path: Optional[str] = None,
content: Optional[str] = None,
id: Optional[str] = None,
name: Optional[str] = None,
override_item: Optional[bool] = None,
properties: Optional[ApplicationInsightsComponentAnalyticsItemPropertiesArgs] = None,
scope: Optional[Union[str, ItemScope]] = None,
type: Optional[Union[str, ItemType]] = None)
func NewAnalyticsItem(ctx *Context, name string, args AnalyticsItemArgs, opts ...ResourceOption) (*AnalyticsItem, error)
public AnalyticsItem(string name, AnalyticsItemArgs args, CustomResourceOptions? opts = null)
public AnalyticsItem(String name, AnalyticsItemArgs args)
public AnalyticsItem(String name, AnalyticsItemArgs args, CustomResourceOptions options)
type: azure-native:applicationinsights:AnalyticsItem
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name
This property is required. string - The unique name of the resource.
- args
This property is required. AnalyticsItemArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name
This property is required. str - The unique name of the resource.
- args
This property is required. AnalyticsItemArgs - The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. AnalyticsItemArgs - The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. AnalyticsItemArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name
This property is required. String - The unique name of the resource.
- args
This property is required. AnalyticsItemArgs - 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 analyticsItemResource = new AzureNative.ApplicationInsights.AnalyticsItem("analyticsItemResource", new()
{
ResourceGroupName = "string",
ResourceName = "string",
ScopePath = "string",
Content = "string",
Id = "string",
Name = "string",
OverrideItem = false,
Properties = new AzureNative.ApplicationInsights.Inputs.ApplicationInsightsComponentAnalyticsItemPropertiesArgs
{
FunctionAlias = "string",
},
Scope = "string",
Type = "string",
});
example, err := applicationinsights.NewAnalyticsItem(ctx, "analyticsItemResource", &applicationinsights.AnalyticsItemArgs{
ResourceGroupName: pulumi.String("string"),
ResourceName: pulumi.String("string"),
ScopePath: pulumi.String("string"),
Content: pulumi.String("string"),
Id: pulumi.String("string"),
Name: pulumi.String("string"),
OverrideItem: pulumi.Bool(false),
Properties: &applicationinsights.ApplicationInsightsComponentAnalyticsItemPropertiesArgs{
FunctionAlias: pulumi.String("string"),
},
Scope: pulumi.String("string"),
Type: pulumi.String("string"),
})
var analyticsItemResource = new AnalyticsItem("analyticsItemResource", AnalyticsItemArgs.builder()
.resourceGroupName("string")
.resourceName("string")
.scopePath("string")
.content("string")
.id("string")
.name("string")
.overrideItem(false)
.properties(ApplicationInsightsComponentAnalyticsItemPropertiesArgs.builder()
.functionAlias("string")
.build())
.scope("string")
.type("string")
.build());
analytics_item_resource = azure_native.applicationinsights.AnalyticsItem("analyticsItemResource",
resource_group_name="string",
resource_name_="string",
scope_path="string",
content="string",
id="string",
name="string",
override_item=False,
properties={
"function_alias": "string",
},
scope="string",
type="string")
const analyticsItemResource = new azure_native.applicationinsights.AnalyticsItem("analyticsItemResource", {
resourceGroupName: "string",
resourceName: "string",
scopePath: "string",
content: "string",
id: "string",
name: "string",
overrideItem: false,
properties: {
functionAlias: "string",
},
scope: "string",
type: "string",
});
type: azure-native:applicationinsights:AnalyticsItem
properties:
content: string
id: string
name: string
overrideItem: false
properties:
functionAlias: string
resourceGroupName: string
resourceName: string
scope: string
scopePath: string
type: string
AnalyticsItem Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The AnalyticsItem resource accepts the following input properties:
- Resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group. The name is case insensitive.
- Resource
Name This property is required. Changes to this property will trigger replacement.
- The name of the Application Insights component resource.
- Scope
Path This property is required. Changes to this property will trigger replacement.
- Enum indicating if this item definition is owned by a specific user or is shared between all users with access to the Application Insights component.
- Content string
- The content of this item
- Id string
- Internally assigned unique id of the item definition.
- Name string
- The user-defined name of the item.
- Override
Item bool - Flag indicating whether or not to force save an item. This allows overriding an item if it already exists.
- Properties
Pulumi.
Azure Native. Application Insights. Inputs. Application Insights Component Analytics Item Properties - A set of properties that can be defined in the context of a specific item type. Each type may have its own properties.
- Scope
string | Pulumi.
Azure Native. Application Insights. Item Scope - Enum indicating if this item definition is owned by a specific user or is shared between all users with access to the Application Insights component.
- Type
string | Pulumi.
Azure Native. Application Insights. Item Type - Enum indicating the type of the Analytics item.
- Resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group. The name is case insensitive.
- Resource
Name This property is required. Changes to this property will trigger replacement.
- The name of the Application Insights component resource.
- Scope
Path This property is required. Changes to this property will trigger replacement.
- Enum indicating if this item definition is owned by a specific user or is shared between all users with access to the Application Insights component.
- Content string
- The content of this item
- Id string
- Internally assigned unique id of the item definition.
- Name string
- The user-defined name of the item.
- Override
Item bool - Flag indicating whether or not to force save an item. This allows overriding an item if it already exists.
- Properties
Application
Insights Component Analytics Item Properties Args - A set of properties that can be defined in the context of a specific item type. Each type may have its own properties.
- Scope
string | Item
Scope - Enum indicating if this item definition is owned by a specific user or is shared between all users with access to the Application Insights component.
- Type
string | Item
Type - Enum indicating the type of the Analytics item.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group. The name is case insensitive.
- resource
Name This property is required. Changes to this property will trigger replacement.
- The name of the Application Insights component resource.
- scope
Path This property is required. Changes to this property will trigger replacement.
- Enum indicating if this item definition is owned by a specific user or is shared between all users with access to the Application Insights component.
- content String
- The content of this item
- id String
- Internally assigned unique id of the item definition.
- name String
- The user-defined name of the item.
- override
Item Boolean - Flag indicating whether or not to force save an item. This allows overriding an item if it already exists.
- properties
Application
Insights Component Analytics Item Properties - A set of properties that can be defined in the context of a specific item type. Each type may have its own properties.
- scope
String | Item
Scope - Enum indicating if this item definition is owned by a specific user or is shared between all users with access to the Application Insights component.
- type
String | Item
Type - Enum indicating the type of the Analytics item.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group. The name is case insensitive.
- resource
Name This property is required. Changes to this property will trigger replacement.
- The name of the Application Insights component resource.
- scope
Path This property is required. Changes to this property will trigger replacement.
- Enum indicating if this item definition is owned by a specific user or is shared between all users with access to the Application Insights component.
- content string
- The content of this item
- id string
- Internally assigned unique id of the item definition.
- name string
- The user-defined name of the item.
- override
Item boolean - Flag indicating whether or not to force save an item. This allows overriding an item if it already exists.
- properties
Application
Insights Component Analytics Item Properties - A set of properties that can be defined in the context of a specific item type. Each type may have its own properties.
- scope
string | Item
Scope - Enum indicating if this item definition is owned by a specific user or is shared between all users with access to the Application Insights component.
- type
string | Item
Type - Enum indicating the type of the Analytics item.
- resource_
group_ name This property is required. Changes to this property will trigger replacement.
- The name of the resource group. The name is case insensitive.
- resource_
name This property is required. Changes to this property will trigger replacement.
- The name of the Application Insights component resource.
- scope_
path This property is required. Changes to this property will trigger replacement.
- Enum indicating if this item definition is owned by a specific user or is shared between all users with access to the Application Insights component.
- content str
- The content of this item
- id str
- Internally assigned unique id of the item definition.
- name str
- The user-defined name of the item.
- override_
item bool - Flag indicating whether or not to force save an item. This allows overriding an item if it already exists.
- properties
Application
Insights Component Analytics Item Properties Args - A set of properties that can be defined in the context of a specific item type. Each type may have its own properties.
- scope
str | Item
Scope - Enum indicating if this item definition is owned by a specific user or is shared between all users with access to the Application Insights component.
- type
str | Item
Type - Enum indicating the type of the Analytics item.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group. The name is case insensitive.
- resource
Name This property is required. Changes to this property will trigger replacement.
- The name of the Application Insights component resource.
- scope
Path This property is required. Changes to this property will trigger replacement.
- Enum indicating if this item definition is owned by a specific user or is shared between all users with access to the Application Insights component.
- content String
- The content of this item
- id String
- Internally assigned unique id of the item definition.
- name String
- The user-defined name of the item.
- override
Item Boolean - Flag indicating whether or not to force save an item. This allows overriding an item if it already exists.
- properties Property Map
- A set of properties that can be defined in the context of a specific item type. Each type may have its own properties.
- scope String | "shared" | "user"
- Enum indicating if this item definition is owned by a specific user or is shared between all users with access to the Application Insights component.
- type String | "none" | "query" | "recent" | "function"
- Enum indicating the type of the Analytics item.
Outputs
All input properties are implicitly available as output properties. Additionally, the AnalyticsItem resource produces the following output properties:
- Azure
Api stringVersion - The Azure API version of the resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Time
Created string - Date and time in UTC when this item was created.
- Time
Modified string - Date and time in UTC of the last modification that was made to this item.
- Version string
- This instance's version of the data model. This can change as new features are added.
- Azure
Api stringVersion - The Azure API version of the resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Time
Created string - Date and time in UTC when this item was created.
- Time
Modified string - Date and time in UTC of the last modification that was made to this item.
- Version string
- This instance's version of the data model. This can change as new features are added.
- azure
Api StringVersion - The Azure API version of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- time
Created String - Date and time in UTC when this item was created.
- time
Modified String - Date and time in UTC of the last modification that was made to this item.
- version String
- This instance's version of the data model. This can change as new features are added.
- azure
Api stringVersion - The Azure API version of the resource.
- id string
- The provider-assigned unique ID for this managed resource.
- time
Created string - Date and time in UTC when this item was created.
- time
Modified string - Date and time in UTC of the last modification that was made to this item.
- version string
- This instance's version of the data model. This can change as new features are added.
- azure_
api_ strversion - The Azure API version of the resource.
- id str
- The provider-assigned unique ID for this managed resource.
- time_
created str - Date and time in UTC when this item was created.
- time_
modified str - Date and time in UTC of the last modification that was made to this item.
- version str
- This instance's version of the data model. This can change as new features are added.
- azure
Api StringVersion - The Azure API version of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- time
Created String - Date and time in UTC when this item was created.
- time
Modified String - Date and time in UTC of the last modification that was made to this item.
- version String
- This instance's version of the data model. This can change as new features are added.
Supporting Types
ApplicationInsightsComponentAnalyticsItemProperties, ApplicationInsightsComponentAnalyticsItemPropertiesArgs
- Function
Alias string - A function alias, used when the type of the item is Function
- Function
Alias string - A function alias, used when the type of the item is Function
- function
Alias String - A function alias, used when the type of the item is Function
- function
Alias string - A function alias, used when the type of the item is Function
- function_
alias str - A function alias, used when the type of the item is Function
- function
Alias String - A function alias, used when the type of the item is Function
ApplicationInsightsComponentAnalyticsItemPropertiesResponse, ApplicationInsightsComponentAnalyticsItemPropertiesResponseArgs
- Function
Alias string - A function alias, used when the type of the item is Function
- Function
Alias string - A function alias, used when the type of the item is Function
- function
Alias String - A function alias, used when the type of the item is Function
- function
Alias string - A function alias, used when the type of the item is Function
- function_
alias str - A function alias, used when the type of the item is Function
- function
Alias String - A function alias, used when the type of the item is Function
ItemScope, ItemScopeArgs
- Shared
- shared
- User
- user
- Item
Scope Shared - shared
- Item
Scope User - user
- Shared
- shared
- User
- user
- Shared
- shared
- User
- user
- SHARED
- shared
- USER
- user
- "shared"
- shared
- "user"
- user
ItemType, ItemTypeArgs
- None
- none
- Query
- query
- Recent
- recent
- Function
- function
- Item
Type None - none
- Item
Type Query - query
- Item
Type Recent - recent
- Item
Type Function - function
- None
- none
- Query
- query
- Recent
- recent
- Function
- function
- None
- none
- Query
- query
- Recent
- recent
- Function
- function
- NONE
- none
- QUERY
- query
- RECENT
- recent
- FUNCTION
- function
- "none"
- none
- "query"
- query
- "recent"
- recent
- "function"
- function
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:applicationinsights:AnalyticsItem myresource1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/{scopePath}/item
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0