AWS SDK for .NET Documentation
WithResources Method (resources)
Amazon ► Amazon.Auth.AccessControlPolicy ► Statement ► WithResources(array<Resource>[]()[][])
Did this page help you? Yes No Tell us about it...
Sets the resources associated with this policy statement and returns this updated Statement object so that additional method calls can be chained together.

Resources are what a policy statement is allowing or denying access to, such as an Amazon SQS queue or an Amazon SNS topic.

Note that some services allow only one resource to be specified per policy statement.

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 WithResources(
    	params Resource[] resources
    )

Parameters

resources (array<Resource>[]()[][])
  The resources associated with this policy statement.

Return Value
this instance

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