AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Creates a view that users can query by using the Search operation. Results from queries that you make using this view include only resources that match the view's Filters. For more information about Amazon Web Services Resource Explorer views, see Managing views in the Amazon Web Services Resource Explorer User Guide.

Only the principals with an IAM identity-based policy that grants Allow to the Search action on a Resource with the Amazon resource name (ARN) of this view can Search using views you create with this operation.

Note:

For .NET Core this operation is only available in asynchronous form. Please refer to CreateViewAsync.

Namespace: Amazon.ResourceExplorer2
Assembly: AWSSDK.ResourceExplorer2.dll
Version: 3.x.y.z

Syntax

C#
public abstract CreateViewResponse CreateView(
         CreateViewRequest request
)

Parameters

request
Type: Amazon.ResourceExplorer2.Model.CreateViewRequest

Container for the necessary parameters to execute the CreateView service method.

Return Value


The response from the CreateView service method, as returned by ResourceExplorer2.

Exceptions

ExceptionCondition
AccessDeniedException The credentials that you used to call this operation don't have the minimum required permissions.
ConflictException If you attempted to create a view, then the request failed because either you specified parameters that didn’t match the original request, or you attempted to create a view with a name that already exists in this Amazon Web Services Region. If you attempted to create an index, then the request failed because either you specified parameters that didn't match the original request, or an index already exists in the current Amazon Web Services Region. If you attempted to update an index type to AGGREGATOR, then the request failed because you already have an AGGREGATOR index in a different Amazon Web Services Region.
InternalServerException The request failed because of internal service error. Try your request again later.
ServiceQuotaExceededException The request failed because it exceeds a service quota.
ThrottlingException The request failed because you exceeded a rate limit for this operation. For more information, see Quotas for Resource Explorer.
UnauthorizedException The principal making the request isn't permitted to perform the operation.
ValidationException You provided an invalid value for one of the operation's parameters. Check the syntax for the operation, and try again.

Version Information

.NET Framework:
Supported in: 4.5 and newer, 3.5

See Also