AWS SDK for .NET Documentation
WithConditions Method (conditions)
AmazonAmazon.Auth.AccessControlPolicyStatementWithConditions(array<Condition>[]()[][]) Did this page help you?   Yes   No    Tell us about it...
Sets the conditions associated with this policy statement, and returns this updated Statement object so that additional method calls can be chained together.

Conditions allow policy statements to be conditionally evaluated based on the many available condition types.

For example, a statement that allows access to an Amazon SQS queue could use a condition to only apply the effect of that statement for requests that are made before a certain date, or that originate from a range of IP addresses.

Multiple conditions can be included in a single statement, and all conditions must evaluate to true in order for the statement to take effect.

Declaration Syntax
C#
[ObsoleteAttribute("The With methods are obsolete and will be removed in version 2 of the AWS SDK for .NET. See http://aws.amazon.com/sdkfornet/#version2 for more information.")]
public Statement WithConditions(
	params Condition[] conditions
)
Parameters
conditions (array<Condition>[]()[][])
The conditions associated with this policy statement.
Return Value
this instance

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