1. Packages
  2. Spotinst Provider
  3. API Docs
  4. NotificationCenter
Spotinst v3.123.1 published on Thursday, Jul 24, 2025 by Pulumi

spotinst.NotificationCenter

Explore with Pulumi AI

spotinst logo
Spotinst v3.123.1 published on Thursday, Jul 24, 2025 by Pulumi

    Create NotificationCenter Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new NotificationCenter(name: string, args: NotificationCenterArgs, opts?: CustomResourceOptions);
    @overload
    def NotificationCenter(resource_name: str,
                           args: NotificationCenterArgs,
                           opts: Optional[ResourceOptions] = None)
    
    @overload
    def NotificationCenter(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           compute_policy_config: Optional[NotificationCenterComputePolicyConfigArgs] = None,
                           privacy_level: Optional[str] = None,
                           description: Optional[str] = None,
                           is_active: Optional[bool] = None,
                           name: Optional[str] = None,
                           registered_users: Optional[Sequence[NotificationCenterRegisteredUserArgs]] = None,
                           subscriptions: Optional[Sequence[NotificationCenterSubscriptionArgs]] = None)
    func NewNotificationCenter(ctx *Context, name string, args NotificationCenterArgs, opts ...ResourceOption) (*NotificationCenter, error)
    public NotificationCenter(string name, NotificationCenterArgs args, CustomResourceOptions? opts = null)
    public NotificationCenter(String name, NotificationCenterArgs args)
    public NotificationCenter(String name, NotificationCenterArgs args, CustomResourceOptions options)
    
    type: spotinst:NotificationCenter
    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 NotificationCenterArgs
    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 NotificationCenterArgs
    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 NotificationCenterArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args NotificationCenterArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args NotificationCenterArgs
    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 notificationCenterResource = new SpotInst.NotificationCenter("notificationCenterResource", new()
    {
        ComputePolicyConfig = new SpotInst.Inputs.NotificationCenterComputePolicyConfigArgs
        {
            Events = new[]
            {
                new SpotInst.Inputs.NotificationCenterComputePolicyConfigEventArgs
                {
                    Event = "string",
                    EventType = "string",
                },
            },
            DynamicRules = new[]
            {
                new SpotInst.Inputs.NotificationCenterComputePolicyConfigDynamicRuleArgs
                {
                    FilterConditions = new[]
                    {
                        new SpotInst.Inputs.NotificationCenterComputePolicyConfigDynamicRuleFilterConditionArgs
                        {
                            Expression = "string",
                            Identifier = "string",
                            Operator = "string",
                        },
                    },
                },
            },
            ResourceIds = new[]
            {
                "string",
            },
            ShouldIncludeAllResources = false,
        },
        PrivacyLevel = "string",
        Description = "string",
        IsActive = false,
        Name = "string",
        RegisteredUsers = new[]
        {
            new SpotInst.Inputs.NotificationCenterRegisteredUserArgs
            {
                SubscriptionTypes = new[]
                {
                    "string",
                },
                UserEmail = "string",
            },
        },
        Subscriptions = new[]
        {
            new SpotInst.Inputs.NotificationCenterSubscriptionArgs
            {
                Endpoint = "string",
                SubscriptionType = "string",
            },
        },
    });
    
    example, err := spotinst.NewNotificationCenter(ctx, "notificationCenterResource", &spotinst.NotificationCenterArgs{
    	ComputePolicyConfig: &spotinst.NotificationCenterComputePolicyConfigArgs{
    		Events: spotinst.NotificationCenterComputePolicyConfigEventArray{
    			&spotinst.NotificationCenterComputePolicyConfigEventArgs{
    				Event:     pulumi.String("string"),
    				EventType: pulumi.String("string"),
    			},
    		},
    		DynamicRules: spotinst.NotificationCenterComputePolicyConfigDynamicRuleArray{
    			&spotinst.NotificationCenterComputePolicyConfigDynamicRuleArgs{
    				FilterConditions: spotinst.NotificationCenterComputePolicyConfigDynamicRuleFilterConditionArray{
    					&spotinst.NotificationCenterComputePolicyConfigDynamicRuleFilterConditionArgs{
    						Expression: pulumi.String("string"),
    						Identifier: pulumi.String("string"),
    						Operator:   pulumi.String("string"),
    					},
    				},
    			},
    		},
    		ResourceIds: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    		ShouldIncludeAllResources: pulumi.Bool(false),
    	},
    	PrivacyLevel: pulumi.String("string"),
    	Description:  pulumi.String("string"),
    	IsActive:     pulumi.Bool(false),
    	Name:         pulumi.String("string"),
    	RegisteredUsers: spotinst.NotificationCenterRegisteredUserArray{
    		&spotinst.NotificationCenterRegisteredUserArgs{
    			SubscriptionTypes: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    			UserEmail: pulumi.String("string"),
    		},
    	},
    	Subscriptions: spotinst.NotificationCenterSubscriptionArray{
    		&spotinst.NotificationCenterSubscriptionArgs{
    			Endpoint:         pulumi.String("string"),
    			SubscriptionType: pulumi.String("string"),
    		},
    	},
    })
    
    var notificationCenterResource = new NotificationCenter("notificationCenterResource", NotificationCenterArgs.builder()
        .computePolicyConfig(NotificationCenterComputePolicyConfigArgs.builder()
            .events(NotificationCenterComputePolicyConfigEventArgs.builder()
                .event("string")
                .eventType("string")
                .build())
            .dynamicRules(NotificationCenterComputePolicyConfigDynamicRuleArgs.builder()
                .filterConditions(NotificationCenterComputePolicyConfigDynamicRuleFilterConditionArgs.builder()
                    .expression("string")
                    .identifier("string")
                    .operator("string")
                    .build())
                .build())
            .resourceIds("string")
            .shouldIncludeAllResources(false)
            .build())
        .privacyLevel("string")
        .description("string")
        .isActive(false)
        .name("string")
        .registeredUsers(NotificationCenterRegisteredUserArgs.builder()
            .subscriptionTypes("string")
            .userEmail("string")
            .build())
        .subscriptions(NotificationCenterSubscriptionArgs.builder()
            .endpoint("string")
            .subscriptionType("string")
            .build())
        .build());
    
    notification_center_resource = spotinst.NotificationCenter("notificationCenterResource",
        compute_policy_config={
            "events": [{
                "event": "string",
                "event_type": "string",
            }],
            "dynamic_rules": [{
                "filter_conditions": [{
                    "expression": "string",
                    "identifier": "string",
                    "operator": "string",
                }],
            }],
            "resource_ids": ["string"],
            "should_include_all_resources": False,
        },
        privacy_level="string",
        description="string",
        is_active=False,
        name="string",
        registered_users=[{
            "subscription_types": ["string"],
            "user_email": "string",
        }],
        subscriptions=[{
            "endpoint": "string",
            "subscription_type": "string",
        }])
    
    const notificationCenterResource = new spotinst.NotificationCenter("notificationCenterResource", {
        computePolicyConfig: {
            events: [{
                event: "string",
                eventType: "string",
            }],
            dynamicRules: [{
                filterConditions: [{
                    expression: "string",
                    identifier: "string",
                    operator: "string",
                }],
            }],
            resourceIds: ["string"],
            shouldIncludeAllResources: false,
        },
        privacyLevel: "string",
        description: "string",
        isActive: false,
        name: "string",
        registeredUsers: [{
            subscriptionTypes: ["string"],
            userEmail: "string",
        }],
        subscriptions: [{
            endpoint: "string",
            subscriptionType: "string",
        }],
    });
    
    type: spotinst:NotificationCenter
    properties:
        computePolicyConfig:
            dynamicRules:
                - filterConditions:
                    - expression: string
                      identifier: string
                      operator: string
            events:
                - event: string
                  eventType: string
            resourceIds:
                - string
            shouldIncludeAllResources: false
        description: string
        isActive: false
        name: string
        privacyLevel: string
        registeredUsers:
            - subscriptionTypes:
                - string
              userEmail: string
        subscriptions:
            - endpoint: string
              subscriptionType: string
    

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

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing NotificationCenter Resource

    Get an existing NotificationCenter resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: NotificationCenterState, opts?: CustomResourceOptions): NotificationCenter
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            compute_policy_config: Optional[NotificationCenterComputePolicyConfigArgs] = None,
            description: Optional[str] = None,
            is_active: Optional[bool] = None,
            name: Optional[str] = None,
            privacy_level: Optional[str] = None,
            registered_users: Optional[Sequence[NotificationCenterRegisteredUserArgs]] = None,
            subscriptions: Optional[Sequence[NotificationCenterSubscriptionArgs]] = None) -> NotificationCenter
    func GetNotificationCenter(ctx *Context, name string, id IDInput, state *NotificationCenterState, opts ...ResourceOption) (*NotificationCenter, error)
    public static NotificationCenter Get(string name, Input<string> id, NotificationCenterState? state, CustomResourceOptions? opts = null)
    public static NotificationCenter get(String name, Output<String> id, NotificationCenterState state, CustomResourceOptions options)
    resources:  _:    type: spotinst:NotificationCenter    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:

    Supporting Types

    NotificationCenterComputePolicyConfig, NotificationCenterComputePolicyConfigArgs

    NotificationCenterComputePolicyConfigDynamicRule, NotificationCenterComputePolicyConfigDynamicRuleArgs

    NotificationCenterComputePolicyConfigDynamicRuleFilterCondition, NotificationCenterComputePolicyConfigDynamicRuleFilterConditionArgs

    Expression string
    Identifier string
    Operator string
    Expression string
    Identifier string
    Operator string
    expression String
    identifier String
    operator String
    expression string
    identifier string
    operator string
    expression String
    identifier String
    operator String

    NotificationCenterComputePolicyConfigEvent, NotificationCenterComputePolicyConfigEventArgs

    Event string
    EventType string
    Event string
    EventType string
    event String
    eventType String
    event string
    eventType string
    event String
    eventType String

    NotificationCenterRegisteredUser, NotificationCenterRegisteredUserArgs

    SubscriptionTypes List<string>
    UserEmail string
    subscriptionTypes List<String>
    userEmail String
    subscriptionTypes List<String>
    userEmail String

    NotificationCenterSubscription, NotificationCenterSubscriptionArgs

    Package Details

    Repository
    Spotinst pulumi/pulumi-spotinst
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the spotinst Terraform Provider.
    spotinst logo
    Spotinst v3.123.1 published on Thursday, Jul 24, 2025 by Pulumi