1. Packages
  2. Aquasec
  3. API Docs
  4. NotificationSlack
Aquasec v0.8.29 published on Monday, Jul 22, 2024 by Pulumiverse

aquasec.NotificationSlack

Explore with Pulumi AI

aquasec logo
Aquasec v0.8.29 published on Monday, Jul 22, 2024 by Pulumiverse

    Provides an Aquasec Notification Slack resource

    Note about resource deprecation Resource aquasec.NotificationSlack is deprecated, please use aquasec.Notification instead

    Create NotificationSlack Resource

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

    Constructor syntax

    new NotificationSlack(name: string, args: NotificationSlackArgs, opts?: CustomResourceOptions);
    @overload
    def NotificationSlack(resource_name: str,
                          args: NotificationSlackArgs,
                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def NotificationSlack(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          channel: Optional[str] = None,
                          enabled: Optional[bool] = None,
                          type: Optional[str] = None,
                          user_name: Optional[str] = None,
                          webhook_url: Optional[str] = None,
                          icon: Optional[str] = None,
                          main_text: Optional[str] = None,
                          name: Optional[str] = None,
                          service_key: Optional[str] = None)
    func NewNotificationSlack(ctx *Context, name string, args NotificationSlackArgs, opts ...ResourceOption) (*NotificationSlack, error)
    public NotificationSlack(string name, NotificationSlackArgs args, CustomResourceOptions? opts = null)
    public NotificationSlack(String name, NotificationSlackArgs args)
    public NotificationSlack(String name, NotificationSlackArgs args, CustomResourceOptions options)
    
    type: aquasec:NotificationSlack
    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 NotificationSlackArgs
    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 NotificationSlackArgs
    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 NotificationSlackArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args NotificationSlackArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args NotificationSlackArgs
    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 notificationSlackResource = new Aquasec.NotificationSlack("notificationSlackResource", new()
    {
        Channel = "string",
        Enabled = false,
        Type = "string",
        UserName = "string",
        WebhookUrl = "string",
        Icon = "string",
        MainText = "string",
        Name = "string",
        ServiceKey = "string",
    });
    
    example, err := aquasec.NewNotificationSlack(ctx, "notificationSlackResource", &aquasec.NotificationSlackArgs{
    	Channel:    pulumi.String("string"),
    	Enabled:    pulumi.Bool(false),
    	Type:       pulumi.String("string"),
    	UserName:   pulumi.String("string"),
    	WebhookUrl: pulumi.String("string"),
    	Icon:       pulumi.String("string"),
    	MainText:   pulumi.String("string"),
    	Name:       pulumi.String("string"),
    	ServiceKey: pulumi.String("string"),
    })
    
    var notificationSlackResource = new NotificationSlack("notificationSlackResource", NotificationSlackArgs.builder()
        .channel("string")
        .enabled(false)
        .type("string")
        .userName("string")
        .webhookUrl("string")
        .icon("string")
        .mainText("string")
        .name("string")
        .serviceKey("string")
        .build());
    
    notification_slack_resource = aquasec.NotificationSlack("notificationSlackResource",
        channel="string",
        enabled=False,
        type="string",
        user_name="string",
        webhook_url="string",
        icon="string",
        main_text="string",
        name="string",
        service_key="string")
    
    const notificationSlackResource = new aquasec.NotificationSlack("notificationSlackResource", {
        channel: "string",
        enabled: false,
        type: "string",
        userName: "string",
        webhookUrl: "string",
        icon: "string",
        mainText: "string",
        name: "string",
        serviceKey: "string",
    });
    
    type: aquasec:NotificationSlack
    properties:
        channel: string
        enabled: false
        icon: string
        mainText: string
        name: string
        serviceKey: string
        type: string
        userName: string
        webhookUrl: string
    

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

    Channel string
    Enabled bool
    Type string
    UserName string
    WebhookUrl string
    Icon string
    MainText string
    Name string
    ServiceKey string
    Channel string
    Enabled bool
    Type string
    UserName string
    WebhookUrl string
    Icon string
    MainText string
    Name string
    ServiceKey string
    channel String
    enabled Boolean
    type String
    userName String
    webhookUrl String
    icon String
    mainText String
    name String
    serviceKey String
    channel string
    enabled boolean
    type string
    userName string
    webhookUrl string
    icon string
    mainText string
    name string
    serviceKey string
    channel String
    enabled Boolean
    type String
    userName String
    webhookUrl String
    icon String
    mainText String
    name String
    serviceKey String

    Outputs

    All input properties are implicitly available as output properties. Additionally, the NotificationSlack 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 NotificationSlack Resource

    Get an existing NotificationSlack 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?: NotificationSlackState, opts?: CustomResourceOptions): NotificationSlack
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            channel: Optional[str] = None,
            enabled: Optional[bool] = None,
            icon: Optional[str] = None,
            main_text: Optional[str] = None,
            name: Optional[str] = None,
            service_key: Optional[str] = None,
            type: Optional[str] = None,
            user_name: Optional[str] = None,
            webhook_url: Optional[str] = None) -> NotificationSlack
    func GetNotificationSlack(ctx *Context, name string, id IDInput, state *NotificationSlackState, opts ...ResourceOption) (*NotificationSlack, error)
    public static NotificationSlack Get(string name, Input<string> id, NotificationSlackState? state, CustomResourceOptions? opts = null)
    public static NotificationSlack get(String name, Output<String> id, NotificationSlackState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    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:
    Channel string
    Enabled bool
    Icon string
    MainText string
    Name string
    ServiceKey string
    Type string
    UserName string
    WebhookUrl string
    Channel string
    Enabled bool
    Icon string
    MainText string
    Name string
    ServiceKey string
    Type string
    UserName string
    WebhookUrl string
    channel String
    enabled Boolean
    icon String
    mainText String
    name String
    serviceKey String
    type String
    userName String
    webhookUrl String
    channel string
    enabled boolean
    icon string
    mainText string
    name string
    serviceKey string
    type string
    userName string
    webhookUrl string
    channel String
    enabled Boolean
    icon String
    mainText String
    name String
    serviceKey String
    type String
    userName String
    webhookUrl String

    Package Details

    Repository
    aquasec pulumiverse/pulumi-aquasec
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aquasec Terraform Provider.
    aquasec logo
    Aquasec v0.8.29 published on Monday, Jul 22, 2024 by Pulumiverse