// This file is auto-generated, don't edit it import * as $dara from '@darabonba/typescript'; export class ModifyInstanceMetadataOptionsRequest extends $dara.Model { /** * @remarks * Specifies whether to enable the access channel for instance metadata. Valid values: * * * enabled * * disabled * * Default value: enabled. * * > For information about instance metadata, see [Obtain instance metadata](https://help.aliyun.com/document_detail/49122.html). * * This parameter is required. * * @example * enabled */ httpEndpoint?: string; /** * @remarks * > This parameter is not publicly available. * * @example * 1 */ httpPutResponseHopLimit?: number; /** * @remarks * Specifies whether to forcefully use the security hardening mode (IMDSv2) to access instance metadata. Valid values: * * * optional: does not forcefully use the security hardening mode (IMDSv2). * * required: forcefully uses the security hardening mode (IMDSv2). After you set this parameter to required, you cannot access instance metadata in normal mode. * * Default value: optional. * * > For more information about modes of accessing instance metadata, see [Obtain instance metadata](https://help.aliyun.com/document_detail/150575.html). * * @example * optional */ httpTokens?: string; /** * @remarks * The ID of the instance. * * @example * i-bp67acfmxaz**** */ instanceId?: string; /** * @remarks * Specifies whether to enable the access channel for instance metadata. Valid values: * * * enabled * * disabled * * Default value: disabled. * * > The tag key must be a combination of letters, digits, @, colons (:), underscores (_), hyphens (-), periods (.), equal signs (=), and commas (,). The tag key cannot be "." or "..". Otherwise, the tag key cannot be accessed in the metadata. * * @example * null */ instanceMetadataTags?: string; ownerId?: number; /** * @remarks * The region ID of the instance. You can call the [DescribeRegions](https://help.aliyun.com/document_detail/25609.html) operation to query the most recent region list. * * This parameter is required. * * @example * cn-hangzhou */ regionId?: string; resourceOwnerAccount?: string; resourceOwnerId?: number; static names(): { [key: string]: string } { return { httpEndpoint: 'HttpEndpoint', httpPutResponseHopLimit: 'HttpPutResponseHopLimit', httpTokens: 'HttpTokens', instanceId: 'InstanceId', instanceMetadataTags: 'InstanceMetadataTags', ownerId: 'OwnerId', regionId: 'RegionId', resourceOwnerAccount: 'ResourceOwnerAccount', resourceOwnerId: 'ResourceOwnerId', }; } static types(): { [key: string]: any } { return { httpEndpoint: 'string', httpPutResponseHopLimit: 'number', httpTokens: 'string', instanceId: 'string', instanceMetadataTags: 'string', ownerId: 'number', regionId: 'string', resourceOwnerAccount: 'string', resourceOwnerId: 'number', }; } validate() { super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } }