Documentation
¶
Index ¶
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 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 SubscriptionPricing ¶
type SubscriptionPricing struct { pulumi.CustomResourceState // 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{ 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 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 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