AWS SDK for .NET Documentation
NewEndpointCondition Method (endpointPattern)
AmazonAmazon.Auth.AccessControlPolicyConditionFactoryNewEndpointCondition(String) Did this page help you?   Yes   No    Tell us about it...
Constructs a new access policy condition that compares the requested endpoint used to subscribe to an Amazon SNS topic with the specified endpoint pattern. The endpoint pattern may optionally contain the multi-character wildcard (*) or the single-character wildcard (?).

For example, this condition can restrict subscriptions to a topic to email addresses in a certain domain ("*@my-company.com").

CopyC#
Policy policy = new Policy("MyTopicPolicy");
policy.WithStatements(new Statement(Statement.StatementEffect.Allow)
       .WithPrincipals(new Principal("*")).WithActionIdentifiers(SNSActionIdentifiers.Subscribe)
       .WithResources(new Resource(myTopicArn))
       .WithConditions(ConditionFactory.NewEndpointCondition("*@my-company.com")));
Declaration Syntax
C#
public static Condition NewEndpointCondition(
	string endpointPattern
)
Parameters
endpointPattern (String)
The endpoint pattern against which to compare the requested endpoint for an Amazon SNS topic subscription.
Return Value
A new access control policy condition that compares the endpoint used in a request to subscribe to an Amazon SNS topic with the endpoint pattern specified.

Assembly: AWSSDK (Module: AWSSDK) Version: 1.5.60.0 (1.5.60.0)