aquasec.NotificationSlack
Explore with Pulumi AI
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
- User
Name string - Webhook
Url string - Icon string
- Main
Text string - Name string
- Service
Key string
- Channel string
- Enabled bool
- Type string
- User
Name string - Webhook
Url string - Icon string
- Main
Text string - Name string
- Service
Key string
- channel String
- enabled Boolean
- type String
- user
Name String - webhook
Url String - icon String
- main
Text String - name String
- service
Key String
- channel string
- enabled boolean
- type string
- user
Name string - webhook
Url string - icon string
- main
Text string - name string
- service
Key string
- channel str
- enabled bool
- type str
- user_
name str - webhook_
url str - icon str
- main_
text str - name str
- service_
key str
- channel String
- enabled Boolean
- type String
- user
Name String - webhook
Url String - icon String
- main
Text String - name String
- service
Key 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.
- Channel string
- Enabled bool
- Icon string
- Main
Text string - Name string
- Service
Key string - Type string
- User
Name string - Webhook
Url string
- Channel string
- Enabled bool
- Icon string
- Main
Text string - Name string
- Service
Key string - Type string
- User
Name string - Webhook
Url string
- channel String
- enabled Boolean
- icon String
- main
Text String - name String
- service
Key String - type String
- user
Name String - webhook
Url String
- channel string
- enabled boolean
- icon string
- main
Text string - name string
- service
Key string - type string
- user
Name string - webhook
Url string
- channel str
- enabled bool
- icon str
- main_
text str - name str
- service_
key str - type str
- user_
name str - webhook_
url str
- channel String
- enabled Boolean
- icon String
- main
Text String - name String
- service
Key String - type String
- user
Name String - webhook
Url String
Package Details
- Repository
- aquasec pulumiverse/pulumi-aquasec
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aquasec
Terraform Provider.