Skip to main content

service_access_policies

Creates, updates, deletes, gets or lists a service_access_policies resource.

Overview

Nameservice_access_policies
TypeResource
Idaws.cloudsearch.service_access_policies

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
optionsstringAccess rules for a domain's document or search service endpoints. For more information, see Configuring Access for a Search Domain in the Amazon CloudSearch Developer Guide. The maximum size of a policy document is 100 KB.
statusstringThe status of domain configuration option.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_service_access_policiesselectDomainName, regionDeployedGets information about the access policies that control access to the domain's document and search endpoints. By default, shows the configuration with any pending changes. Set the Deployed option to true to show the active configuration and exclude pending changes. For more information, see Configuring Access for a Search Domain in the Amazon CloudSearch Developer Guide.
update_service_access_policiesupdateDomainName, AccessPolicies, regionConfigures the access rules that control access to the domain's document and search endpoints. For more information, see Configuring Access for an Amazon CloudSearch Domain.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
AccessPoliciesstringThe access rules you want to configure. These rules replace any existing rules.
DomainNamestring
regionstringAWS region (default: us-east-1)
DeployedbooleanWhether to display the deployed configuration (true) or include any pending changes (false). Defaults to false.

SELECT examples

Gets information about the access policies that control access to the domain's document and search endpoints. By default, shows the configuration with any pending changes. Set the Deployed option to true to show the active configuration and exclude pending changes. For more information, see Configuring Access for a Search Domain in the Amazon CloudSearch Developer Guide.

SELECT
options,
status
FROM aws.cloudsearch.service_access_policies
WHERE DomainName = '{{ DomainName }}' -- required
AND region = '{{ region }}' -- required
AND Deployed = '{{ Deployed }}'
;

UPDATE examples

Configures the access rules that control access to the domain's document and search endpoints. For more information, see Configuring Access for an Amazon CloudSearch Domain.

UPDATE aws.cloudsearch.service_access_policies
SET
-- No updatable properties
WHERE
DomainName = '{{ DomainName }}' --required
AND AccessPolicies = '{{ AccessPolicies }}' --required
AND region = '{{ region }}' --required
RETURNING
options,
status;