AWS Native is in preview. AWS Classic is fully supported.
aws-native.codestarnotifications.NotificationRule
Explore with Pulumi AI
AWS Native is in preview. AWS Classic is fully supported.
Resource Type definition for AWS::CodeStarNotifications::NotificationRule
Create NotificationRule Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new NotificationRule(name: string, args: NotificationRuleArgs, opts?: CustomResourceOptions);
@overload
def NotificationRule(resource_name: str,
args: NotificationRuleArgs,
opts: Optional[ResourceOptions] = None)
@overload
def NotificationRule(resource_name: str,
opts: Optional[ResourceOptions] = None,
detail_type: Optional[NotificationRuleDetailType] = None,
event_type_ids: Optional[Sequence[str]] = None,
resource: Optional[str] = None,
targets: Optional[Sequence[NotificationRuleTargetArgs]] = None,
created_by: Optional[str] = None,
event_type_id: Optional[str] = None,
name: Optional[str] = None,
status: Optional[NotificationRuleStatus] = None,
tags: Optional[Mapping[str, str]] = None,
target_address: Optional[str] = None)
func NewNotificationRule(ctx *Context, name string, args NotificationRuleArgs, opts ...ResourceOption) (*NotificationRule, error)
public NotificationRule(string name, NotificationRuleArgs args, CustomResourceOptions? opts = null)
public NotificationRule(String name, NotificationRuleArgs args)
public NotificationRule(String name, NotificationRuleArgs args, CustomResourceOptions options)
type: aws-native:codestarnotifications:NotificationRule
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 NotificationRuleArgs
- 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 NotificationRuleArgs
- 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 NotificationRuleArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args NotificationRuleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args NotificationRuleArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Example
The following reference example uses placeholder values for all input properties.
Coming soon!
Coming soon!
Coming soon!
Coming soon!
const notificationRuleResource = new aws_native.codestarnotifications.NotificationRule("notificationRuleResource", {
detailType: aws_native.codestarnotifications.NotificationRuleDetailType.Basic,
eventTypeIds: ["string"],
resource: "string",
targets: [{
targetAddress: "string",
targetType: "string",
}],
createdBy: "string",
eventTypeId: "string",
name: "string",
status: aws_native.codestarnotifications.NotificationRuleStatus.Enabled,
tags: {
string: "string",
},
targetAddress: "string",
});
Coming soon!
NotificationRule Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The NotificationRule resource accepts the following input properties:
- Detail
Type Pulumi.Aws Native. Code Star Notifications. Notification Rule Detail Type - Event
Type List<string>Ids - Resource string
- Targets
List<Pulumi.
Aws Native. Code Star Notifications. Inputs. Notification Rule Target> - Created
By string - Event
Type stringId - Name string
- Status
Pulumi.
Aws Native. Code Star Notifications. Notification Rule Status - Dictionary<string, string>
- Target
Address string
- Detail
Type NotificationRule Detail Type - Event
Type []stringIds - Resource string
- Targets
[]Notification
Rule Target Args - Created
By string - Event
Type stringId - Name string
- Status
Notification
Rule Status - map[string]string
- Target
Address string
- detail
Type NotificationRule Detail Type - event
Type List<String>Ids - resource String
- targets
List<Notification
Rule Target> - created
By String - event
Type StringId - name String
- status
Notification
Rule Status - Map<String,String>
- target
Address String
- detail
Type NotificationRule Detail Type - event
Type string[]Ids - resource string
- targets
Notification
Rule Target[] - created
By string - event
Type stringId - name string
- status
Notification
Rule Status - {[key: string]: string}
- target
Address string
- detail_
type NotificationRule Detail Type - event_
type_ Sequence[str]ids - resource str
- targets
Sequence[Notification
Rule Target Args] - created_
by str - event_
type_ strid - name str
- status
Notification
Rule Status - Mapping[str, str]
- target_
address str
- detail
Type "BASIC" | "FULL" - event
Type List<String>Ids - resource String
- targets List<Property Map>
- created
By String - event
Type StringId - name String
- status "ENABLED" | "DISABLED"
- Map<String>
- target
Address String
Outputs
All input properties are implicitly available as output properties. Additionally, the NotificationRule resource produces the following output properties:
Supporting Types
NotificationRuleDetailType, NotificationRuleDetailTypeArgs
- Basic
- BASIC
- Full
- FULL
- Notification
Rule Detail Type Basic - BASIC
- Notification
Rule Detail Type Full - FULL
- Basic
- BASIC
- Full
- FULL
- Basic
- BASIC
- Full
- FULL
- BASIC
- BASIC
- FULL
- FULL
- "BASIC"
- BASIC
- "FULL"
- FULL
NotificationRuleStatus, NotificationRuleStatusArgs
- Enabled
- ENABLED
- Disabled
- DISABLED
- Notification
Rule Status Enabled - ENABLED
- Notification
Rule Status Disabled - DISABLED
- Enabled
- ENABLED
- Disabled
- DISABLED
- Enabled
- ENABLED
- Disabled
- DISABLED
- ENABLED
- ENABLED
- DISABLED
- DISABLED
- "ENABLED"
- ENABLED
- "DISABLED"
- DISABLED
NotificationRuleTarget, NotificationRuleTargetArgs
- Target
Address string - Target
Type string
- Target
Address string - Target
Type string
- target
Address String - target
Type String
- target
Address string - target
Type string
- target_
address str - target_
type str
- target
Address String - target
Type String
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
AWS Native is in preview. AWS Classic is fully supported.