Documentation
¶
Index ¶
- type AdvancedThreatProtection
- type AdvancedThreatProtectionArgs
- type AdvancedThreatProtectionState
- type AutoProvisioning
- type AutoProvisioningArgs
- type AutoProvisioningState
- type Contact
- type ContactArgs
- type ContactState
- type Setting
- type SettingArgs
- type SettingState
- type SubscriptionPricing
- type SubscriptionPricingArgs
- type SubscriptionPricingState
- type Workspace
- type WorkspaceArgs
- type WorkspaceState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdvancedThreatProtection ¶
type AdvancedThreatProtection struct { pulumi.CustomResourceState // Should Advanced Threat Protection be enabled on this resource? Enabled pulumi.BoolOutput `pulumi:"enabled"` // The ID of the Azure Resource which to enable Advanced Threat Protection on. Changing this forces a new resource to be created. TargetResourceId pulumi.StringOutput `pulumi:"targetResourceId"` }
Manages a resources Advanced Threat Protection setting.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/core" "github.com/pulumi/pulumi-azure/sdk/v3/go/azure/securitycenter" "github.com/pulumi/pulumi-azure/sdk/v3/go/azure/storage" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := core.NewResourceGroup(ctx, "rg", &core.ResourceGroupArgs{ Location: pulumi.String("northeurope"), }) if err != nil { return err } exampleAccount, err := storage.NewAccount(ctx, "exampleAccount", &storage.AccountArgs{ ResourceGroupName: pulumi.Any(azurerm_resource_group.Example.Name), Location: pulumi.Any(azurerm_resource_group.Example.Location), AccountTier: pulumi.String("Standard"), AccountReplicationType: pulumi.String("LRS"), Tags: pulumi.StringMap{ "environment": pulumi.String("example"), }, }) if err != nil { return err } _, err = securitycenter.NewAdvancedThreatProtection(ctx, "exampleAdvancedThreatProtection", &securitycenter.AdvancedThreatProtectionArgs{ TargetResourceId: exampleAccount.ID(), Enabled: pulumi.Bool(true), }) if err != nil { return err } return nil }) }
```
func GetAdvancedThreatProtection ¶
func GetAdvancedThreatProtection(ctx *pulumi.Context, name string, id pulumi.IDInput, state *AdvancedThreatProtectionState, opts ...pulumi.ResourceOption) (*AdvancedThreatProtection, error)
GetAdvancedThreatProtection gets an existing AdvancedThreatProtection resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewAdvancedThreatProtection ¶
func NewAdvancedThreatProtection(ctx *pulumi.Context, name string, args *AdvancedThreatProtectionArgs, opts ...pulumi.ResourceOption) (*AdvancedThreatProtection, error)
NewAdvancedThreatProtection registers a new resource with the given unique name, arguments, and options.
type AdvancedThreatProtectionArgs ¶
type AdvancedThreatProtectionArgs struct { // Should Advanced Threat Protection be enabled on this resource? Enabled pulumi.BoolInput // The ID of the Azure Resource which to enable Advanced Threat Protection on. Changing this forces a new resource to be created. TargetResourceId pulumi.StringInput }
The set of arguments for constructing a AdvancedThreatProtection resource.
func (AdvancedThreatProtectionArgs) ElementType ¶
func (AdvancedThreatProtectionArgs) ElementType() reflect.Type
type AdvancedThreatProtectionState ¶
type AdvancedThreatProtectionState struct { // Should Advanced Threat Protection be enabled on this resource? Enabled pulumi.BoolPtrInput // The ID of the Azure Resource which to enable Advanced Threat Protection on. Changing this forces a new resource to be created. TargetResourceId pulumi.StringPtrInput }
func (AdvancedThreatProtectionState) ElementType ¶
func (AdvancedThreatProtectionState) ElementType() reflect.Type
type AutoProvisioning ¶ added in v3.29.0
type AutoProvisioning struct { pulumi.CustomResourceState // Should the security agent be automatically provisioned on Virtual Machines in this subscription? Possible values are `On` (to install the security agent automatically, if it's missing) or `Off` (to not install the security agent automatically). AutoProvision pulumi.StringOutput `pulumi:"autoProvision"` }
Enables or disables the Security Center Auto Provisioning feature for the subscription
> **NOTE:** There is no resource name required, it will always be "default"
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/securitycenter" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := securitycenter.NewAutoProvisioning(ctx, "example", &securitycenter.AutoProvisioningArgs{ AutoProvision: pulumi.String("On"), }) if err != nil { return err } return nil }) }
```
func GetAutoProvisioning ¶ added in v3.29.0
func GetAutoProvisioning(ctx *pulumi.Context, name string, id pulumi.IDInput, state *AutoProvisioningState, opts ...pulumi.ResourceOption) (*AutoProvisioning, error)
GetAutoProvisioning gets an existing AutoProvisioning resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewAutoProvisioning ¶ added in v3.29.0
func NewAutoProvisioning(ctx *pulumi.Context, name string, args *AutoProvisioningArgs, opts ...pulumi.ResourceOption) (*AutoProvisioning, error)
NewAutoProvisioning registers a new resource with the given unique name, arguments, and options.
type AutoProvisioningArgs ¶ added in v3.29.0
type AutoProvisioningArgs struct { // Should the security agent be automatically provisioned on Virtual Machines in this subscription? Possible values are `On` (to install the security agent automatically, if it's missing) or `Off` (to not install the security agent automatically). AutoProvision pulumi.StringInput }
The set of arguments for constructing a AutoProvisioning resource.
func (AutoProvisioningArgs) ElementType ¶ added in v3.29.0
func (AutoProvisioningArgs) ElementType() reflect.Type
type AutoProvisioningState ¶ added in v3.29.0
type AutoProvisioningState struct { // Should the security agent be automatically provisioned on Virtual Machines in this subscription? Possible values are `On` (to install the security agent automatically, if it's missing) or `Off` (to not install the security agent automatically). AutoProvision pulumi.StringPtrInput }
func (AutoProvisioningState) ElementType ¶ added in v3.29.0
func (AutoProvisioningState) ElementType() reflect.Type
type Contact ¶
type Contact struct { pulumi.CustomResourceState // Whether to send security alerts notifications to the security contact. AlertNotifications pulumi.BoolOutput `pulumi:"alertNotifications"` // Whether to send security alerts notifications to subscription admins. AlertsToAdmins pulumi.BoolOutput `pulumi:"alertsToAdmins"` // The email of the Security Center Contact. Email pulumi.StringOutput `pulumi:"email"` // The phone number of the Security Center Contact. Phone pulumi.StringPtrOutput `pulumi:"phone"` }
Manages the subscription's Security Center Contact.
> **NOTE:** Owner access permission is required.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/securitycenter" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := securitycenter.NewContact(ctx, "example", &securitycenter.ContactArgs{ AlertNotifications: pulumi.Bool(true), AlertsToAdmins: pulumi.Bool(true), Email: pulumi.String("contact@example.com"), Phone: pulumi.String("+1-555-555-5555"), }) if err != nil { return err } return nil }) }
```
func GetContact ¶
func GetContact(ctx *pulumi.Context, name string, id pulumi.IDInput, state *ContactState, opts ...pulumi.ResourceOption) (*Contact, error)
GetContact gets an existing Contact resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewContact ¶
func NewContact(ctx *pulumi.Context, name string, args *ContactArgs, opts ...pulumi.ResourceOption) (*Contact, error)
NewContact registers a new resource with the given unique name, arguments, and options.
type ContactArgs ¶
type ContactArgs struct { // Whether to send security alerts notifications to the security contact. AlertNotifications pulumi.BoolInput // Whether to send security alerts notifications to subscription admins. AlertsToAdmins pulumi.BoolInput // The email of the Security Center Contact. Email pulumi.StringInput // The phone number of the Security Center Contact. Phone pulumi.StringPtrInput }
The set of arguments for constructing a Contact resource.
func (ContactArgs) ElementType ¶
func (ContactArgs) ElementType() reflect.Type
type ContactState ¶
type ContactState struct { // Whether to send security alerts notifications to the security contact. AlertNotifications pulumi.BoolPtrInput // Whether to send security alerts notifications to subscription admins. AlertsToAdmins pulumi.BoolPtrInput // The email of the Security Center Contact. Email pulumi.StringPtrInput // The phone number of the Security Center Contact. Phone pulumi.StringPtrInput }
func (ContactState) ElementType ¶
func (ContactState) ElementType() reflect.Type
type Setting ¶ added in v3.26.0
type Setting struct { pulumi.CustomResourceState // Boolean flag to enable/disable data access. Enabled pulumi.BoolOutput `pulumi:"enabled"` // The setting to manage. Possible values are `MCAS` and `WDATP`. SettingName pulumi.StringOutput `pulumi:"settingName"` }
Manages the Data Access Settings for Azure Security Center.
> **NOTE:** This resource requires the `Owner` permission on the Subscription.
> **NOTE:** Deletion of this resource does not change or reset the data access settings
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/securitycenter" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := securitycenter.NewSetting(ctx, "example", &securitycenter.SettingArgs{ Enabled: pulumi.Bool(true), SettingName: pulumi.String("MCAS"), }) if err != nil { return err } return nil }) }
```
func GetSetting ¶ added in v3.26.0
func GetSetting(ctx *pulumi.Context, name string, id pulumi.IDInput, state *SettingState, opts ...pulumi.ResourceOption) (*Setting, error)
GetSetting gets an existing Setting resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewSetting ¶ added in v3.26.0
func NewSetting(ctx *pulumi.Context, name string, args *SettingArgs, opts ...pulumi.ResourceOption) (*Setting, error)
NewSetting registers a new resource with the given unique name, arguments, and options.
type SettingArgs ¶ added in v3.26.0
type SettingArgs struct { // Boolean flag to enable/disable data access. Enabled pulumi.BoolInput // The setting to manage. Possible values are `MCAS` and `WDATP`. SettingName pulumi.StringInput }
The set of arguments for constructing a Setting resource.
func (SettingArgs) ElementType ¶ added in v3.26.0
func (SettingArgs) ElementType() reflect.Type
type SettingState ¶ added in v3.26.0
type SettingState struct { // Boolean flag to enable/disable data access. Enabled pulumi.BoolPtrInput // The setting to manage. Possible values are `MCAS` and `WDATP`. SettingName pulumi.StringPtrInput }
func (SettingState) ElementType ¶ added in v3.26.0
func (SettingState) ElementType() reflect.Type
type SubscriptionPricing ¶
type SubscriptionPricing struct { pulumi.CustomResourceState // The resource type this setting affects. Possible values are `AppServices`, `ContainerRegistry`, `KeyVaults`, `KubernetesService`, `SqlServers`, `SqlServerVirtualMachines`, `StorageAccounts`, and `VirtualMachines`. ResourceType pulumi.StringPtrOutput `pulumi:"resourceType"` // The pricing tier to use. Possible values are `Free` and `Standard`. Tier pulumi.StringOutput `pulumi:"tier"` }
Manages the Pricing Tier for Azure Security Center in the current subscription.
> **NOTE:** This resource requires the `Owner` permission on the Subscription.
> **NOTE:** Deletion of this resource does not change or reset the pricing tier to `Free`
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/securitycenter" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := securitycenter.NewSubscriptionPricing(ctx, "example", &securitycenter.SubscriptionPricingArgs{ ResourceType: pulumi.String("VirtualMachines"), Tier: pulumi.String("Standard"), }) if err != nil { return err } return nil }) }
```
func GetSubscriptionPricing ¶
func GetSubscriptionPricing(ctx *pulumi.Context, name string, id pulumi.IDInput, state *SubscriptionPricingState, opts ...pulumi.ResourceOption) (*SubscriptionPricing, error)
GetSubscriptionPricing gets an existing SubscriptionPricing resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewSubscriptionPricing ¶
func NewSubscriptionPricing(ctx *pulumi.Context, name string, args *SubscriptionPricingArgs, opts ...pulumi.ResourceOption) (*SubscriptionPricing, error)
NewSubscriptionPricing registers a new resource with the given unique name, arguments, and options.
type SubscriptionPricingArgs ¶
type SubscriptionPricingArgs struct { // The resource type this setting affects. Possible values are `AppServices`, `ContainerRegistry`, `KeyVaults`, `KubernetesService`, `SqlServers`, `SqlServerVirtualMachines`, `StorageAccounts`, and `VirtualMachines`. ResourceType pulumi.StringPtrInput // The pricing tier to use. Possible values are `Free` and `Standard`. Tier pulumi.StringInput }
The set of arguments for constructing a SubscriptionPricing resource.
func (SubscriptionPricingArgs) ElementType ¶
func (SubscriptionPricingArgs) ElementType() reflect.Type
type SubscriptionPricingState ¶
type SubscriptionPricingState struct { // The resource type this setting affects. Possible values are `AppServices`, `ContainerRegistry`, `KeyVaults`, `KubernetesService`, `SqlServers`, `SqlServerVirtualMachines`, `StorageAccounts`, and `VirtualMachines`. ResourceType pulumi.StringPtrInput // The pricing tier to use. Possible values are `Free` and `Standard`. Tier pulumi.StringPtrInput }
func (SubscriptionPricingState) ElementType ¶
func (SubscriptionPricingState) ElementType() reflect.Type
type Workspace ¶
type Workspace struct { pulumi.CustomResourceState // The scope of VMs to send their security data to the desired workspace, unless overridden by a setting with more specific scope. Scope pulumi.StringOutput `pulumi:"scope"` // The ID of the Log Analytics Workspace to save the data in. WorkspaceId pulumi.StringOutput `pulumi:"workspaceId"` }
Manages the subscription's Security Center Workspace.
> **NOTE:** Owner access permission is required.
> **NOTE:** The subscription's pricing model can not be `Free` for this to have any affect.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/core" "github.com/pulumi/pulumi-azure/sdk/v3/go/azure/operationalinsights" "github.com/pulumi/pulumi-azure/sdk/v3/go/azure/securitycenter" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{ Location: pulumi.String("westus"), }) if err != nil { return err } exampleAnalyticsWorkspace, err := operationalinsights.NewAnalyticsWorkspace(ctx, "exampleAnalyticsWorkspace", &operationalinsights.AnalyticsWorkspaceArgs{ Location: exampleResourceGroup.Location, ResourceGroupName: exampleResourceGroup.Name, Sku: pulumi.String("PerGB2018"), }) if err != nil { return err } _, err = securitycenter.NewWorkspace(ctx, "exampleWorkspace", &securitycenter.WorkspaceArgs{ Scope: pulumi.String("/subscriptions/00000000-0000-0000-0000-000000000000"), WorkspaceId: exampleAnalyticsWorkspace.ID(), }) if err != nil { return err } return nil }) }
```
func GetWorkspace ¶
func GetWorkspace(ctx *pulumi.Context, name string, id pulumi.IDInput, state *WorkspaceState, opts ...pulumi.ResourceOption) (*Workspace, error)
GetWorkspace gets an existing Workspace resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewWorkspace ¶
func NewWorkspace(ctx *pulumi.Context, name string, args *WorkspaceArgs, opts ...pulumi.ResourceOption) (*Workspace, error)
NewWorkspace registers a new resource with the given unique name, arguments, and options.
type WorkspaceArgs ¶
type WorkspaceArgs struct { // The scope of VMs to send their security data to the desired workspace, unless overridden by a setting with more specific scope. Scope pulumi.StringInput // The ID of the Log Analytics Workspace to save the data in. WorkspaceId pulumi.StringInput }
The set of arguments for constructing a Workspace resource.
func (WorkspaceArgs) ElementType ¶
func (WorkspaceArgs) ElementType() reflect.Type
type WorkspaceState ¶
type WorkspaceState struct { // The scope of VMs to send their security data to the desired workspace, unless overridden by a setting with more specific scope. Scope pulumi.StringPtrInput // The ID of the Log Analytics Workspace to save the data in. WorkspaceId pulumi.StringPtrInput }
func (WorkspaceState) ElementType ¶
func (WorkspaceState) ElementType() reflect.Type