2024/11/22 - AWS User Notifications Contacts - 9 new api methods
Changes This release adds support for AWS User Notifications Contacts. You can now configure and view email contacts for AWS User Notifications using the AWS SDK.
Attaches a key-value pair to a resource, as identified by its Amazon Resource Name (ARN). Taggable resources in AWS User Notifications Contacts include email contacts.
See also: AWS API Documentation
Request Syntax
client.tag_resource( arn='string', tags={ 'string': 'string' } )
string
[REQUIRED]
The ARN of the configuration.
dict
[REQUIRED]
A list of tags to apply to the configuration.
(string) --
(string) --
dict
Response Syntax
{}
Response Structure
(dict) --
Returns an email contact.
See also: AWS API Documentation
Request Syntax
client.get_email_contact( arn='string' )
string
[REQUIRED]
The Amazon Resource Name (ARN) of the email contact to get.
dict
Response Syntax
{ 'emailContact': { 'arn': 'string', 'name': 'string', 'address': 'string', 'status': 'inactive'|'active', 'creationTime': datetime(2015, 1, 1), 'updateTime': datetime(2015, 1, 1) } }
Response Structure
(dict) --
emailContact (dict) --
The email contact for the provided email address.
arn (string) --
The Amazon Resource Name (ARN) of the email contact.
name (string) --
The name of the email contact.
address (string) --
The email address this email contact points to. The activation email and any subscribed emails are sent here.
status (string) --
The status of the email contact. Only activated email contacts receive emails.
creationTime (datetime) --
The creation time of the resource.
updateTime (datetime) --
The time the resource was last updated.
Detaches a key-value pair from a resource, as identified by its Amazon Resource Name (ARN). Taggable resources in AWS User Notifications Contacts include email contacts..
See also: AWS API Documentation
Request Syntax
client.untag_resource( arn='string', tagKeys=[ 'string', ] )
string
[REQUIRED]
The value of the resource that will have the tag removed. An Amazon Resource Name (ARN) is an identifier for a specific AWS resource, such as a server, user, or role.
list
[REQUIRED]
Specifies a list of tag keys that you want to remove from the specified resources.
(string) --
dict
Response Syntax
{}
Response Structure
(dict) --
Lists all email contacts created under the Account.
See also: AWS API Documentation
Request Syntax
client.list_email_contacts( maxResults=123, nextToken='string' )
integer
The maximum number of results to include in the response. If more results exist than the specified MaxResults value, a token is included in the response so that the remaining results can be retrieved.
string
An optional token returned from a prior request. Use this token for pagination of results from this action. If this parameter is specified, the response includes only results beyond the token, up to the value specified by MaxResults.
dict
Response Syntax
{ 'nextToken': 'string', 'emailContacts': [ { 'arn': 'string', 'name': 'string', 'address': 'string', 'status': 'inactive'|'active', 'creationTime': datetime(2015, 1, 1), 'updateTime': datetime(2015, 1, 1) }, ] }
Response Structure
(dict) --
nextToken (string) --
An optional token returned from a prior request. Use this token for pagination of results from this action. If this parameter is specified, the response includes only results beyond the token, up to the value specified by MaxResults.
emailContacts (list) --
A list of email contacts.
(dict) --
An email contact.
arn (string) --
The Amazon Resource Name (ARN) of the email contact.
name (string) --
The name of the email contact.
address (string) --
The email address this email contact points to. The activation email and any subscribed emails are sent here.
status (string) --
The status of the email contact. Only activated email contacts receive emails.
creationTime (datetime) --
The creation time of the resource.
updateTime (datetime) --
The time the resource was last updated.
Creates an email contact for the provided email address.
See also: AWS API Documentation
Request Syntax
client.create_email_contact( name='string', emailAddress='string', tags={ 'string': 'string' } )
string
[REQUIRED]
The name of the email contact.
string
[REQUIRED]
The email address this email contact points to. The activation email and any subscribed emails are sent here.
dict
A map of tags assigned to a resource. A tag is a string-to-string map of key-value pairs.
(string) --
(string) --
dict
Response Syntax
{ 'arn': 'string' }
Response Structure
(dict) --
arn (string) --
The Amazon Resource Name (ARN) of the resource.
Deletes an email contact.
See also: AWS API Documentation
Request Syntax
client.delete_email_contact( arn='string' )
string
[REQUIRED]
The Amazon Resource Name (ARN) of the resource.
dict
Response Syntax
{}
Response Structure
(dict) --
Lists all of the tags associated with the Amazon Resource Name (ARN) that you specify. The resource can be a user, server, or role.
See also: AWS API Documentation
Request Syntax
client.list_tags_for_resource( arn='string' )
string
[REQUIRED]
The ARN you specified to list the tags of.
dict
Response Syntax
{ 'tags': { 'string': 'string' } }
Response Structure
(dict) --
tags (dict) --
Key-value pairs that are assigned to a resource, usually for the purpose of grouping and searching for items. Tags are metadata that you define.
(string) --
(string) --
Sends an activation email to the email address associated with the specified email contact.
See also: AWS API Documentation
Request Syntax
client.send_activation_code( arn='string' )
string
[REQUIRED]
The Amazon Resource Name (ARN) of the resource.
dict
Response Syntax
{}
Response Structure
(dict) --
Activates an email contact using an activation code. This code is in the activation email sent to the email address associated with this email contact.
See also: AWS API Documentation
Request Syntax
client.activate_email_contact( arn='string', code='string' )
string
[REQUIRED]
The Amazon Resource Name (ARN) of the resource.
string
[REQUIRED]
The activation code for this email contact.
An email contact has a maximum of five activation attempts. Activation codes expire after 12 hours and are generated by the SendActivationCode API action.
dict
Response Syntax
{}
Response Structure
(dict) --