Struct CodeStarNotificationsClient

Source
pub struct CodeStarNotificationsClient { /* private fields */ }
Expand description

A client for the AWS CodeStar Notifications API.

Implementations§

Source§

impl CodeStarNotificationsClient

Source

pub fn new(region: Region) -> CodeStarNotificationsClient

Creates a client backed by the default tokio event loop.

The client will use the default credentials provider and tls client.

Source

pub fn new_with<P, D>( request_dispatcher: D, credentials_provider: P, region: Region, ) -> CodeStarNotificationsClient
where P: ProvideAwsCredentials + Send + Sync + 'static, D: DispatchSignedRequest + Send + Sync + 'static,

Source

pub fn new_with_client( client: Client, region: Region, ) -> CodeStarNotificationsClient

Trait Implementations§

Source§

impl Clone for CodeStarNotificationsClient

Source§

fn clone(&self) -> CodeStarNotificationsClient

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl CodeStarNotifications for CodeStarNotificationsClient

Source§

fn create_notification_rule<'life0, 'async_trait>( &'life0 self, input: CreateNotificationRuleRequest, ) -> Pin<Box<dyn Future<Output = Result<CreateNotificationRuleResult, RusotoError<CreateNotificationRuleError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Creates a notification rule for a resource. The rule specifies the events you want notifications about and the targets (such as SNS topics) where you want to receive them.

Source§

fn delete_notification_rule<'life0, 'async_trait>( &'life0 self, input: DeleteNotificationRuleRequest, ) -> Pin<Box<dyn Future<Output = Result<DeleteNotificationRuleResult, RusotoError<DeleteNotificationRuleError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Deletes a notification rule for a resource.

Source§

fn delete_target<'life0, 'async_trait>( &'life0 self, input: DeleteTargetRequest, ) -> Pin<Box<dyn Future<Output = Result<DeleteTargetResult, RusotoError<DeleteTargetError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Deletes a specified target for notifications.

Source§

fn describe_notification_rule<'life0, 'async_trait>( &'life0 self, input: DescribeNotificationRuleRequest, ) -> Pin<Box<dyn Future<Output = Result<DescribeNotificationRuleResult, RusotoError<DescribeNotificationRuleError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Returns information about a specified notification rule.

Source§

fn list_event_types<'life0, 'async_trait>( &'life0 self, input: ListEventTypesRequest, ) -> Pin<Box<dyn Future<Output = Result<ListEventTypesResult, RusotoError<ListEventTypesError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Returns information about the event types available for configuring notifications.

Source§

fn list_notification_rules<'life0, 'async_trait>( &'life0 self, input: ListNotificationRulesRequest, ) -> Pin<Box<dyn Future<Output = Result<ListNotificationRulesResult, RusotoError<ListNotificationRulesError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Returns a list of the notification rules for an AWS account.

Source§

fn list_tags_for_resource<'life0, 'async_trait>( &'life0 self, input: ListTagsForResourceRequest, ) -> Pin<Box<dyn Future<Output = Result<ListTagsForResourceResult, RusotoError<ListTagsForResourceError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Returns a list of the tags associated with a notification rule.

Source§

fn list_targets<'life0, 'async_trait>( &'life0 self, input: ListTargetsRequest, ) -> Pin<Box<dyn Future<Output = Result<ListTargetsResult, RusotoError<ListTargetsError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Returns a list of the notification rule targets for an AWS account.

Source§

fn subscribe<'life0, 'async_trait>( &'life0 self, input: SubscribeRequest, ) -> Pin<Box<dyn Future<Output = Result<SubscribeResult, RusotoError<SubscribeError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Creates an association between a notification rule and an SNS topic so that the associated target can receive notifications when the events described in the rule are triggered.

Source§

fn tag_resource<'life0, 'async_trait>( &'life0 self, input: TagResourceRequest, ) -> Pin<Box<dyn Future<Output = Result<TagResourceResult, RusotoError<TagResourceError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Associates a set of provided tags with a notification rule.

Source§

fn unsubscribe<'life0, 'async_trait>( &'life0 self, input: UnsubscribeRequest, ) -> Pin<Box<dyn Future<Output = Result<UnsubscribeResult, RusotoError<UnsubscribeError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Removes an association between a notification rule and an Amazon SNS topic so that subscribers to that topic stop receiving notifications when the events described in the rule are triggered.

Source§

fn untag_resource<'life0, 'async_trait>( &'life0 self, input: UntagResourceRequest, ) -> Pin<Box<dyn Future<Output = Result<UntagResourceResult, RusotoError<UntagResourceError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Removes the association between one or more provided tags and a notification rule.

Source§

fn update_notification_rule<'life0, 'async_trait>( &'life0 self, input: UpdateNotificationRuleRequest, ) -> Pin<Box<dyn Future<Output = Result<UpdateNotificationRuleResult, RusotoError<UpdateNotificationRuleError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Updates a notification rule for a resource. You can change the events that trigger the notification rule, the status of the rule, and the targets that receive the notifications.

To add or remove tags for a notification rule, you must use TagResource and UntagResource.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more