Struct aws_sdk_codestarnotifications::operation::create_notification_rule::CreateNotificationRuleInput
source · #[non_exhaustive]pub struct CreateNotificationRuleInput {
pub name: Option<String>,
pub event_type_ids: Option<Vec<String>>,
pub resource: Option<String>,
pub targets: Option<Vec<Target>>,
pub detail_type: Option<DetailType>,
pub client_request_token: Option<String>,
pub tags: Option<HashMap<String, String>>,
pub status: Option<NotificationRuleStatus>,
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.name: Option<String>
The name for the notification rule. Notification rule names must be unique in your Amazon Web Services account.
event_type_ids: Option<Vec<String>>
A list of event types associated with this notification rule. For a list of allowed events, see EventTypeSummary
.
resource: Option<String>
The Amazon Resource Name (ARN) of the resource to associate with the notification rule. Supported resources include pipelines in CodePipeline, repositories in CodeCommit, and build projects in CodeBuild.
targets: Option<Vec<Target>>
A list of Amazon Resource Names (ARNs) of Amazon Simple Notification Service topics and Chatbot clients to associate with the notification rule.
detail_type: Option<DetailType>
The level of detail to include in the notifications for this resource. BASIC
will include only the contents of the event as it would appear in Amazon CloudWatch. FULL
will include any supplemental information provided by AWS CodeStar Notifications and/or the service for the resource for which the notification is created.
client_request_token: Option<String>
A unique, client-generated idempotency token that, when provided in a request, ensures the request cannot be repeated with a changed parameter. If a request with the same parameters is received and a token is included, the request returns information about the initial request that used that token.
The Amazon Web Services SDKs prepopulate client request tokens. If you are using an Amazon Web Services SDK, an idempotency token is created for you.
A list of tags to apply to this notification rule. Key names cannot start with "aws
".
status: Option<NotificationRuleStatus>
The status of the notification rule. The default value is ENABLED
. If the status is set to DISABLED
, notifications aren't sent for the notification rule.
Implementations§
source§impl CreateNotificationRuleInput
impl CreateNotificationRuleInput
sourcepub fn name(&self) -> Option<&str>
pub fn name(&self) -> Option<&str>
The name for the notification rule. Notification rule names must be unique in your Amazon Web Services account.
sourcepub fn event_type_ids(&self) -> Option<&[String]>
pub fn event_type_ids(&self) -> Option<&[String]>
A list of event types associated with this notification rule. For a list of allowed events, see EventTypeSummary
.
sourcepub fn resource(&self) -> Option<&str>
pub fn resource(&self) -> Option<&str>
The Amazon Resource Name (ARN) of the resource to associate with the notification rule. Supported resources include pipelines in CodePipeline, repositories in CodeCommit, and build projects in CodeBuild.
sourcepub fn targets(&self) -> Option<&[Target]>
pub fn targets(&self) -> Option<&[Target]>
A list of Amazon Resource Names (ARNs) of Amazon Simple Notification Service topics and Chatbot clients to associate with the notification rule.
sourcepub fn detail_type(&self) -> Option<&DetailType>
pub fn detail_type(&self) -> Option<&DetailType>
The level of detail to include in the notifications for this resource. BASIC
will include only the contents of the event as it would appear in Amazon CloudWatch. FULL
will include any supplemental information provided by AWS CodeStar Notifications and/or the service for the resource for which the notification is created.
sourcepub fn client_request_token(&self) -> Option<&str>
pub fn client_request_token(&self) -> Option<&str>
A unique, client-generated idempotency token that, when provided in a request, ensures the request cannot be repeated with a changed parameter. If a request with the same parameters is received and a token is included, the request returns information about the initial request that used that token.
The Amazon Web Services SDKs prepopulate client request tokens. If you are using an Amazon Web Services SDK, an idempotency token is created for you.
A list of tags to apply to this notification rule. Key names cannot start with "aws
".
sourcepub fn status(&self) -> Option<&NotificationRuleStatus>
pub fn status(&self) -> Option<&NotificationRuleStatus>
The status of the notification rule. The default value is ENABLED
. If the status is set to DISABLED
, notifications aren't sent for the notification rule.
source§impl CreateNotificationRuleInput
impl CreateNotificationRuleInput
sourcepub fn builder() -> CreateNotificationRuleInputBuilder
pub fn builder() -> CreateNotificationRuleInputBuilder
Creates a new builder-style object to manufacture CreateNotificationRuleInput
.
Trait Implementations§
source§impl Clone for CreateNotificationRuleInput
impl Clone for CreateNotificationRuleInput
source§fn clone(&self) -> CreateNotificationRuleInput
fn clone(&self) -> CreateNotificationRuleInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateNotificationRuleInput
impl Debug for CreateNotificationRuleInput
source§impl PartialEq<CreateNotificationRuleInput> for CreateNotificationRuleInput
impl PartialEq<CreateNotificationRuleInput> for CreateNotificationRuleInput
source§fn eq(&self, other: &CreateNotificationRuleInput) -> bool
fn eq(&self, other: &CreateNotificationRuleInput) -> bool
self
and other
values to be equal, and is used
by ==
.