Amazon CloudSearch
Developer Guide (API Version 2011-02-01)
« PreviousNext »
View the PDF for this guide.Go to the AWS Discussion Forum for this product.Go to the Kindle Store to download this guide in Kindle format.Did this page help you?  Yes | No |  Tell us about it...

UpdateServiceAccessPolicies

Description

Configures the policies that control access to the domain's document and search services. The maximum size of an access policy document is 100KB.

Request Parameters

For information about the common parameters that all actions use, see Common Query Parameters.

Name Description Required
AccessPolicies

An IAM access policy as described in The Access Policy Language in Using AWS Identity and Access Management. The maximum size of an access policy document is 100KB.

Example: {"Statement": [{"Effect":"Allow", "Action": "*", "Resource": "arn:aws:cs:us-east-1:1234567890:search/movies", "Condition": { "IpAddress": { "aws:SourceIp": ["203.0.113.1/32"] } }}, {"Effect":"Allow", "Action": "*", "Resource": "arn:aws:cs:us-east-1:1234567890:documents/movies", "Condition": { "IpAddress": { "aws:SourceIp": ["203.0.113.1/32"] } }} ] }

Type: String

Yes
DomainName

A string that represents the name of a domain. Domain names must be unique across the domains owned by an account within an AWS region. Domain names must start with a letter or number and can contain the following characters: a-z (lowercase), 0-9, and - (hyphen). Uppercase letters and underscores are not allowed.

Type: String

Length constraints: Minimum length of 3. Maximum length of 28.

Yes

Response Elements

The following elements come wrapped in an UpdateServiceAccessPoliciesResult structure.
NameDescription
AccessPolicies

A PolicyDocument that specifies access policies for the search domain's services, and the current status of those policies.

Type: AccessPoliciesStatus

Errors

For information about the common errors that all actions use, see Common Errors.

Error Description HTTP Status Code
Base

An error occurred while processing the request.

400
Internal

An internal error occurred while processing the request. If this problem persists, report an issue from the Service Health Dashboard.

500
InvalidType

The request was rejected because it specified an invalid type definition.

409
LimitExceeded

The request was rejected because a resource limit has already been met.

409
ResourceNotFound

The request was rejected because it attempted to reference a resource that does not exist.

409