// This file is auto-generated, don't edit it import * as $dara from '@darabonba/typescript'; export class CreatePolicyRequestTag extends $dara.Model { /** * @remarks * The key of the tag. * * @example * owner */ key?: string; /** * @remarks * The value of the tag. * * @example * alice */ value?: string; static names(): { [key: string]: string } { return { key: 'Key', value: 'Value', }; } static types(): { [key: string]: any } { return { key: 'string', value: 'string', }; } validate() { super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } } export class CreatePolicyRequest extends $dara.Model { /** * @remarks * The description of the policy. * * The description must be 1 to 1,024 characters in length. * * @example * Query ECS instances in a specific region */ description?: string; /** * @remarks * The document of the policy. * * The document must be 1 to 6,144 characters in length. * * For more information about policy elements and sample policies, see [Policy elements](https://help.aliyun.com/document_detail/93738.html) and [Overview of sample policies](https://help.aliyun.com/document_detail/210969.html). * * @example * {"Statement": [{"Effect": "Allow","Action": "ecs:Describe*","Resource": "acs:ecs:cn-qingdao:*:instance/*"}],"Version": "1"} */ policyDocument?: string; /** * @remarks * The name of the policy. * * The name must be 1 to 128 characters in length and can contain letters, digits, and hyphens (-). * * @example * View-ECS-instances-in-a-specific-region */ policyName?: string; /** * @remarks * The tags. */ tag?: CreatePolicyRequestTag[]; static names(): { [key: string]: string } { return { description: 'Description', policyDocument: 'PolicyDocument', policyName: 'PolicyName', tag: 'Tag', }; } static types(): { [key: string]: any } { return { description: 'string', policyDocument: 'string', policyName: 'string', tag: { 'type': 'array', 'itemType': CreatePolicyRequestTag }, }; } validate() { if(Array.isArray(this.tag)) { $dara.Model.validateArray(this.tag); } super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } }