39 lines
1.2 KiB
TypeScript
39 lines
1.2 KiB
TypeScript
import type { Construct } from 'constructs';
|
|
import * as iam from '../../aws-iam';
|
|
import * as cr from '../../custom-resources';
|
|
/**
|
|
* Construction properties for OpenSearchAccessPolicy
|
|
*/
|
|
export interface OpenSearchAccessPolicyProps {
|
|
/**
|
|
* The OpenSearch Domain name
|
|
*/
|
|
readonly domainName: string;
|
|
/**
|
|
* The OpenSearch Domain ARN
|
|
*/
|
|
readonly domainArn: string;
|
|
/**
|
|
* The access policy statements for the OpenSearch cluster
|
|
*/
|
|
readonly accessPolicies: iam.PolicyStatement[];
|
|
/**
|
|
* Flag to control verbosity of OpenSearch policy custom resource result
|
|
* If verbose output is actively disabled it will only output specific fields
|
|
* This is can be used to limit the response body of the custom resource, in cases it exceeds the CFN 4k limit
|
|
* @default true
|
|
*/
|
|
readonly verboseOutput?: boolean;
|
|
}
|
|
/**
|
|
* Creates LogGroup resource policies.
|
|
*/
|
|
export declare class OpenSearchAccessPolicy extends cr.AwsCustomResource {
|
|
private accessPolicyStatements;
|
|
constructor(scope: Construct, id: string, props: OpenSearchAccessPolicyProps);
|
|
/**
|
|
* Add policy statements to the domain access policy
|
|
*/
|
|
addAccessPolicies(...accessPolicyStatements: iam.PolicyStatement[]): void;
|
|
}
|