Sends a message to all of a topic's subscribed endpoints.
Declaration Syntax
C# |
public class PublishRequest : SNSRequest
Members
All Members | Constructors | Methods | Properties | ||
Icon | Member | Description |
---|---|---|
PublishRequest()()()() | Initializes a new instance of the PublishRequest class | |
Equals(Object) | (Inherited from Object.) | |
GetHashCode()()()() | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType()()()() | Gets the type of the current instance. (Inherited from Object.) | |
IsSetMessage()()()() |
Checks if Message property is set
| |
IsSetMessageAttributes()()()() |
Determines whether the target [P:MessageAttribute] is set in this request.
| |
IsSetMessageStructure()()()() |
Checks if MessageStructure property is set
| |
IsSetSubject()()()() |
Checks if Subject property is set
| |
IsSetTargetArn()()()() |
Checks if TargetArn property is set
| |
IsSetTopicArn()()()() |
Checks if TopicArn property is set
| |
Message |
The message you want to send to the topic.
| |
MessageAttributes |
Gets or sets the message attributes.
| |
MessageStructure |
The structure of the message.
Optional parameter. It can have only one valid value: "json".
| |
Subject |
Subject of the message.
| |
TargetArn |
Either TopicArn or EndpointArn, but not both.
| |
TopicArn |
The ARN of the topic you want to publish to.
| |
ToString()()()() | Returns a string that represents the current object. (Inherited from Object.) | |
WithAttribute(String, MessageAttributeValue) | Obsolete.
Modifies this request to include the specified message attribute. If an attribute already exists,
its value will be replaced with the new value.
| |
WithMessage(String) | Obsolete.
Sets the message you want to send to the topic.
| |
WithMessageAttribute(Dictionary<(Of <<'(String, MessageAttributeValue>)>>)) | Obsolete.
Modifies this request with the specified MessageAttributes.
| |
WithMessageStructure(String) | Obsolete.
Sets the structure of the message.
Valid values: "json"
| |
WithSubject(String) | Obsolete.
Sets the subject of the message.
| |
WithTargetArn(String) | Obsolete.
Sets the ARN of the target you want to publish to.
| |
WithTopicArn(String) | Obsolete.
Sets the ARN of the topic you want to publish to.
|
Remarks
When a messageId is returned, the message has been saved and Amazon SNS will
attempt to deliver it to the topic's subscribers shortly.
The format of the outgoing message to each subscribed endpoint depends on the
notification protocol selected.
Inheritance Hierarchy
Object | ||
SNSRequest | ||
PublishRequest |