Azure Native

Pulumi Official
Package maintained by Pulumi
v1.67.0 published on Tuesday, Jul 12, 2022 by Pulumi

Application

Security Application over a given scope API Version: 2022-07-01-preview.

Example Usage

Create application

using Pulumi;
using AzureNative = Pulumi.AzureNative;

class MyStack : Stack
{
    public MyStack()
    {
        var application = new AzureNative.Security.Application("application", new AzureNative.Security.ApplicationArgs
        {
            ApplicationId = "ad9a8e26-29d9-4829-bb30-e597a58cdbb8",
            ConditionSets = 
            {
                
                {
                    { "conditions", 
                    {
                        new AzureNative.Security.Inputs.ApplicationConditionArgs
                        {
                            Operator = "contains",
                            Property = "$.Id",
                            Value = "-bil-",
                        },
                    } },
                },
            },
            Description = "An application on critical recommendations",
            DisplayName = "Admin's application",
            SourceResourceType = "Assessments",
        });
    }

}
package main

import (
	"fmt"

	security "github.com/pulumi/pulumi-azure-native/sdk/go/azure/security"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := security.NewApplication(ctx, "application", &security.ApplicationArgs{
			ApplicationId: pulumi.String("ad9a8e26-29d9-4829-bb30-e597a58cdbb8"),
			ConditionSets: security.ApplicationConditionArrayArrayArray{
				security.ApplicationConditionArrayArray{
					Conditions: security.ApplicationConditionArray{
						&security.ApplicationConditionArgs{
							Operator: pulumi.String("contains"),
							Property: pulumi.String(fmt.Sprintf("$.Id")),
							Value:    pulumi.String("-bil-"),
						},
					},
				},
			},
			Description:        pulumi.String("An application on critical recommendations"),
			DisplayName:        pulumi.String("Admin's application"),
			SourceResourceType: pulumi.String("Assessments"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var application = new Application("application", ApplicationArgs.builder()        
            .applicationId("ad9a8e26-29d9-4829-bb30-e597a58cdbb8")
            .conditionSets(Map.of("conditions", Map.ofEntries(
                Map.entry("operator", "contains"),
                Map.entry("property", "$.Id"),
                Map.entry("value", "-bil-")
            )))
            .description("An application on critical recommendations")
            .displayName("Admin's application")
            .sourceResourceType("Assessments")
            .build());

    }
}
import pulumi
import pulumi_azure_native as azure_native

application = azure_native.security.Application("application",
    application_id="ad9a8e26-29d9-4829-bb30-e597a58cdbb8",
    condition_sets=[{
        "conditions": [azure_native.security.ApplicationConditionArgs(
            operator="contains",
            property="$.Id",
            value="-bil-",
        )],
    }],
    description="An application on critical recommendations",
    display_name="Admin's application",
    source_resource_type="Assessments")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const application = new azure_native.security.Application("application", {
    applicationId: "ad9a8e26-29d9-4829-bb30-e597a58cdbb8",
    conditionSets: [{
        conditions: [{
            operator: "contains",
            property: `$.Id`,
            value: "-bil-",
        }],
    }],
    description: "An application on critical recommendations",
    displayName: "Admin's application",
    sourceResourceType: "Assessments",
});
resources:
  application:
    type: azure-native:security:Application
    properties:
      applicationId: ad9a8e26-29d9-4829-bb30-e597a58cdbb8
      conditionSets:
        - conditions:
            - operator: contains
              property: $.Id
              value: -bil-
      description: An application on critical recommendations
      displayName: Admin's application
      sourceResourceType: Assessments

Create a Application Resource

new Application(name: string, args: ApplicationArgs, opts?: CustomResourceOptions);
@overload
def Application(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                application_id: Optional[str] = None,
                condition_sets: Optional[Sequence[Sequence[Sequence[ApplicationConditionArgs]]]] = None,
                description: Optional[str] = None,
                display_name: Optional[str] = None,
                source_resource_type: Optional[Union[str, ApplicationSourceResourceType]] = None)
@overload
def Application(resource_name: str,
                args: ApplicationArgs,
                opts: Optional[ResourceOptions] = None)
func NewApplication(ctx *Context, name string, args ApplicationArgs, opts ...ResourceOption) (*Application, error)
public Application(string name, ApplicationArgs args, CustomResourceOptions? opts = null)
public Application(String name, ApplicationArgs args)
public Application(String name, ApplicationArgs args, CustomResourceOptions options)
type: azure-native:security:Application
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args ApplicationArgs
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 ApplicationArgs
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 ApplicationArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args ApplicationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args ApplicationArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Application 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 Application resource accepts the following input properties:

ConditionSets List<ImmutableArray<ImmutableArray<Pulumi.AzureNative.Security.Inputs.ApplicationConditionArgs>>>

The application conditionSets - see examples

SourceResourceType string | Pulumi.AzureNative.Security.ApplicationSourceResourceType

The application source, what it affects, e.g. Assessments

ApplicationId string

The security Application key - unique key for the standard application

Description string

description of the application

DisplayName string

display name of the application

ConditionSets [][][]ApplicationConditionArgs

The application conditionSets - see examples

SourceResourceType string | ApplicationSourceResourceType

The application source, what it affects, e.g. Assessments

ApplicationId string

The security Application key - unique key for the standard application

Description string

description of the application

DisplayName string

display name of the application

conditionSets List<List<List<ApplicationConditionArgs>>>

The application conditionSets - see examples

sourceResourceType String | ApplicationSourceResourceType

The application source, what it affects, e.g. Assessments

applicationId String

The security Application key - unique key for the standard application

description String

description of the application

displayName String

display name of the application

conditionSets ApplicationConditionArgs[][][]

The application conditionSets - see examples

sourceResourceType string | ApplicationSourceResourceType

The application source, what it affects, e.g. Assessments

applicationId string

The security Application key - unique key for the standard application

description string

description of the application

displayName string

display name of the application

condition_sets Sequence[Sequence[Sequence[ApplicationConditionArgs]]]

The application conditionSets - see examples

source_resource_type str | ApplicationSourceResourceType

The application source, what it affects, e.g. Assessments

application_id str

The security Application key - unique key for the standard application

description str

description of the application

display_name str

display name of the application

conditionSets List<List<List<Property Map>>>

The application conditionSets - see examples

sourceResourceType String | "Assessments"

The application source, what it affects, e.g. Assessments

applicationId String

The security Application key - unique key for the standard application

description String

description of the application

displayName String

display name of the application

Outputs

All input properties are implicitly available as output properties. Additionally, the Application resource produces the following output properties:

Id string

The provider-assigned unique ID for this managed resource.

Name string

Resource name

Type string

Resource type

Id string

The provider-assigned unique ID for this managed resource.

Name string

Resource name

Type string

Resource type

id String

The provider-assigned unique ID for this managed resource.

name String

Resource name

type String

Resource type

id string

The provider-assigned unique ID for this managed resource.

name string

Resource name

type string

Resource type

id str

The provider-assigned unique ID for this managed resource.

name str

Resource name

type str

Resource type

id String

The provider-assigned unique ID for this managed resource.

name String

Resource name

type String

Resource type

Supporting Types

ApplicationCondition

Operator string | Pulumi.AzureNative.Security.ApplicationConditionOperator

The application Condition's Operator, for example Contains for id or In for list of possible IDs, see examples

Property string

The application Condition's Property, e.g. ID, see examples

Value string

The application Condition's Value like IDs that contain some string, see examples

Operator string | ApplicationConditionOperator

The application Condition's Operator, for example Contains for id or In for list of possible IDs, see examples

Property string

The application Condition's Property, e.g. ID, see examples

Value string

The application Condition's Value like IDs that contain some string, see examples

operator String | ApplicationConditionOperator

The application Condition's Operator, for example Contains for id or In for list of possible IDs, see examples

property String

The application Condition's Property, e.g. ID, see examples

value String

The application Condition's Value like IDs that contain some string, see examples

operator string | ApplicationConditionOperator

The application Condition's Operator, for example Contains for id or In for list of possible IDs, see examples

property string

The application Condition's Property, e.g. ID, see examples

value string

The application Condition's Value like IDs that contain some string, see examples

operator str | ApplicationConditionOperator

The application Condition's Operator, for example Contains for id or In for list of possible IDs, see examples

property str

The application Condition's Property, e.g. ID, see examples

value str

The application Condition's Value like IDs that contain some string, see examples

operator String | "Contains" | "In"

The application Condition's Operator, for example Contains for id or In for list of possible IDs, see examples

property String

The application Condition's Property, e.g. ID, see examples

value String

The application Condition's Value like IDs that contain some string, see examples

ApplicationConditionOperator

Contains
Contains

Checks that the string value of the data defined in Property contains the given value

In
In

Checks that the string value of the data defined in Property equals any of the given values (exact fit)

ApplicationConditionOperatorContains
Contains

Checks that the string value of the data defined in Property contains the given value

ApplicationConditionOperatorIn
In

Checks that the string value of the data defined in Property equals any of the given values (exact fit)

Contains
Contains

Checks that the string value of the data defined in Property contains the given value

In
In

Checks that the string value of the data defined in Property equals any of the given values (exact fit)

Contains
Contains

Checks that the string value of the data defined in Property contains the given value

In
In

Checks that the string value of the data defined in Property equals any of the given values (exact fit)

CONTAINS
Contains

Checks that the string value of the data defined in Property contains the given value

IN_
In

Checks that the string value of the data defined in Property equals any of the given values (exact fit)

"Contains"
Contains

Checks that the string value of the data defined in Property contains the given value

"In"
In

Checks that the string value of the data defined in Property equals any of the given values (exact fit)

ApplicationConditionResponse

Operator string

The application Condition's Operator, for example Contains for id or In for list of possible IDs, see examples

Property string

The application Condition's Property, e.g. ID, see examples

Value string

The application Condition's Value like IDs that contain some string, see examples

Operator string

The application Condition's Operator, for example Contains for id or In for list of possible IDs, see examples

Property string

The application Condition's Property, e.g. ID, see examples

Value string

The application Condition's Value like IDs that contain some string, see examples

operator String

The application Condition's Operator, for example Contains for id or In for list of possible IDs, see examples

property String

The application Condition's Property, e.g. ID, see examples

value String

The application Condition's Value like IDs that contain some string, see examples

operator string

The application Condition's Operator, for example Contains for id or In for list of possible IDs, see examples

property string

The application Condition's Property, e.g. ID, see examples

value string

The application Condition's Value like IDs that contain some string, see examples

operator str

The application Condition's Operator, for example Contains for id or In for list of possible IDs, see examples

property str

The application Condition's Property, e.g. ID, see examples

value str

The application Condition's Value like IDs that contain some string, see examples

operator String

The application Condition's Operator, for example Contains for id or In for list of possible IDs, see examples

property String

The application Condition's Property, e.g. ID, see examples

value String

The application Condition's Value like IDs that contain some string, see examples

ApplicationSourceResourceType

Assessments
Assessments

The source of the application is assessments

ApplicationSourceResourceTypeAssessments
Assessments

The source of the application is assessments

Assessments
Assessments

The source of the application is assessments

Assessments
Assessments

The source of the application is assessments

ASSESSMENTS
Assessments

The source of the application is assessments

"Assessments"
Assessments

The source of the application is assessments

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:security:Application 1f3afdf9-d0c9-4c3d-847f-89da613e70a8 subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.Security/applications/ad9a8e26-29d9-4829-bb30-e597a58cdbb8 

Package Details

Repository
https://github.com/pulumi/pulumi-azure-native
License
Apache-2.0