iam-floyd
Version:
AWS IAM policy statement generator with fluent interface
1,486 lines (1,485 loc) • 225 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Lightsail = void 0;
const shared_1 = require("../../shared");
/**
* Statement provider for service [lightsail](https://docs.aws.amazon.com/service-authorization/latest/reference/list_amazonlightsail.html).
*
* @param sid [SID](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_sid.html) of the statement
*/
class Lightsail extends shared_1.PolicyStatement {
/**
* Statement provider for service [lightsail](https://docs.aws.amazon.com/service-authorization/latest/reference/list_amazonlightsail.html).
*
* @param sid [SID](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_sid.html) of the statement
*/
constructor(sid) {
super(sid);
this.servicePrefix = 'lightsail';
this.accessLevelList = {
Write: [
'AllocateStaticIp',
'AttachCertificateToDistribution',
'AttachDisk',
'AttachInstancesToLoadBalancer',
'AttachLoadBalancerTlsCertificate',
'AttachStaticIp',
'CloseInstancePublicPorts',
'CopySnapshot',
'CreateBucket',
'CreateBucketAccessKey',
'CreateCertificate',
'CreateCloudFormationStack',
'CreateContactMethod',
'CreateContainerService',
'CreateContainerServiceDeployment',
'CreateContainerServiceRegistryLogin',
'CreateDisk',
'CreateDiskFromSnapshot',
'CreateDiskSnapshot',
'CreateDistribution',
'CreateDomain',
'CreateDomainEntry',
'CreateGUISessionAccessDetails',
'CreateInstanceSnapshot',
'CreateInstances',
'CreateInstancesFromSnapshot',
'CreateKeyPair',
'CreateLoadBalancer',
'CreateLoadBalancerTlsCertificate',
'CreateRelationalDatabase',
'CreateRelationalDatabaseFromSnapshot',
'CreateRelationalDatabaseSnapshot',
'DeleteAlarm',
'DeleteAutoSnapshot',
'DeleteBucket',
'DeleteBucketAccessKey',
'DeleteCertificate',
'DeleteContactMethod',
'DeleteContainerImage',
'DeleteContainerService',
'DeleteDisk',
'DeleteDiskSnapshot',
'DeleteDistribution',
'DeleteDomain',
'DeleteDomainEntry',
'DeleteInstance',
'DeleteInstanceSnapshot',
'DeleteKeyPair',
'DeleteKnownHostKeys',
'DeleteLoadBalancer',
'DeleteLoadBalancerTlsCertificate',
'DeleteRelationalDatabase',
'DeleteRelationalDatabaseSnapshot',
'DetachCertificateFromDistribution',
'DetachDisk',
'DetachInstancesFromLoadBalancer',
'DetachStaticIp',
'DisableAddOn',
'DownloadDefaultKeyPair',
'EnableAddOn',
'ExportSnapshot',
'GetInstanceAccessDetails',
'GetRelationalDatabaseMasterUserPassword',
'ImportKeyPair',
'OpenInstancePublicPorts',
'PeerVpc',
'PutAlarm',
'PutInstancePublicPorts',
'RebootInstance',
'RebootRelationalDatabase',
'RegisterContainerImage',
'ReleaseStaticIp',
'ResetDistributionCache',
'SendContactMethodVerification',
'SetIpAddressType',
'SetResourceAccessForBucket',
'SetupInstanceHttps',
'StartGUISession',
'StartInstance',
'StartRelationalDatabase',
'StopGUISession',
'StopInstance',
'StopRelationalDatabase',
'TestAlarm',
'UnpeerVpc',
'UpdateBucket',
'UpdateBucketBundle',
'UpdateContainerService',
'UpdateDistribution',
'UpdateDistributionBundle',
'UpdateDomainEntry',
'UpdateInstanceMetadataOptions',
'UpdateLoadBalancerAttribute',
'UpdateRelationalDatabase',
'UpdateRelationalDatabaseParameters'
],
Read: [
'GetActiveNames',
'GetAlarms',
'GetAutoSnapshots',
'GetBlueprints',
'GetBucketAccessKeys',
'GetBucketBundles',
'GetBucketMetricData',
'GetBuckets',
'GetBundles',
'GetCertificates',
'GetCloudFormationStackRecords',
'GetContactMethods',
'GetContainerAPIMetadata',
'GetContainerImages',
'GetContainerLog',
'GetContainerServiceDeployments',
'GetContainerServiceMetricData',
'GetContainerServicePowers',
'GetContainerServices',
'GetCostEstimate',
'GetDisk',
'GetDiskSnapshot',
'GetDiskSnapshots',
'GetDisks',
'GetDistributionBundles',
'GetDistributionLatestCacheReset',
'GetDistributionMetricData',
'GetDistributions',
'GetDomain',
'GetDomains',
'GetExportSnapshotRecords',
'GetInstance',
'GetInstanceMetricData',
'GetInstancePortStates',
'GetInstanceSnapshot',
'GetInstanceSnapshots',
'GetInstanceState',
'GetInstances',
'GetKeyPair',
'GetKeyPairs',
'GetLoadBalancer',
'GetLoadBalancerMetricData',
'GetLoadBalancerTlsCertificates',
'GetLoadBalancerTlsPolicies',
'GetLoadBalancers',
'GetOperation',
'GetOperations',
'GetOperationsForResource',
'GetRegions',
'GetRelationalDatabase',
'GetRelationalDatabaseBlueprints',
'GetRelationalDatabaseBundles',
'GetRelationalDatabaseEvents',
'GetRelationalDatabaseLogEvents',
'GetRelationalDatabaseLogStreams',
'GetRelationalDatabaseMetricData',
'GetRelationalDatabaseParameters',
'GetRelationalDatabaseSnapshot',
'GetRelationalDatabaseSnapshots',
'GetRelationalDatabases',
'GetSetupHistory',
'GetStaticIp',
'GetStaticIps',
'IsVpcPeered'
],
Tagging: [
'TagResource',
'UntagResource'
]
};
}
/**
* Grants permission to create a static IP address that can be attached to an instance
*
* Access Level: Write
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_AllocateStaticIp.html
*/
toAllocateStaticIp() {
return this.to('AllocateStaticIp');
}
/**
* Grants permission to attach an SSL/TLS certificate to your Amazon Lightsail content delivery network (CDN) distribution
*
* Access Level: Write
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_AttachCertificateToDistribution.html
*/
toAttachCertificateToDistribution() {
return this.to('AttachCertificateToDistribution');
}
/**
* Grants permission to attach a disk to an instance
*
* Access Level: Write
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_AttachDisk.html
*/
toAttachDisk() {
return this.to('AttachDisk');
}
/**
* Grants permission to attach one or more instances to a load balancer
*
* Access Level: Write
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_AttachInstancesToLoadBalancer.html
*/
toAttachInstancesToLoadBalancer() {
return this.to('AttachInstancesToLoadBalancer');
}
/**
* Grants permission to attach a TLS certificate to a load balancer
*
* Access Level: Write
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_AttachLoadBalancerTlsCertificate.html
*/
toAttachLoadBalancerTlsCertificate() {
return this.to('AttachLoadBalancerTlsCertificate');
}
/**
* Grants permission to attach a static IP address to an instance
*
* Access Level: Write
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_AttachStaticIp.html
*/
toAttachStaticIp() {
return this.to('AttachStaticIp');
}
/**
* Grants permission to close a public port of an instance
*
* Access Level: Write
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_CloseInstancePublicPorts.html
*/
toCloseInstancePublicPorts() {
return this.to('CloseInstancePublicPorts');
}
/**
* Grants permission to copy a snapshot from one AWS Region to another in Amazon Lightsail
*
* Access Level: Write
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_CopySnapshot.html
*/
toCopySnapshot() {
return this.to('CopySnapshot');
}
/**
* Grants permission to create an Amazon Lightsail bucket
*
* Access Level: Write
*
* Possible conditions:
* - .ifAwsRequestTag()
* - .ifAwsTagKeys()
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_CreateBucket.html
*/
toCreateBucket() {
return this.to('CreateBucket');
}
/**
* Grants permission to create a new access key for the specified bucket
*
* Access Level: Write
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_CreateBucketAccessKey.html
*/
toCreateBucketAccessKey() {
return this.to('CreateBucketAccessKey');
}
/**
* Grants permission to create an SSL/TLS certificate
*
* Access Level: Write
*
* Possible conditions:
* - .ifAwsRequestTag()
* - .ifAwsTagKeys()
*
* Dependent actions:
* - lightsail:CreateDomainEntry
* - lightsail:GetDomains
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_CreateCertificate.html
*/
toCreateCertificate() {
return this.to('CreateCertificate');
}
/**
* Grants permission to create a new Amazon EC2 instance from an exported Amazon Lightsail snapshot
*
* Access Level: Write
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_CreateCloudFormationStack.html
*/
toCreateCloudFormationStack() {
return this.to('CreateCloudFormationStack');
}
/**
* Grants permission to create an email or SMS text message contact method
*
* Access Level: Write
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_CreateContactMethod.html
*/
toCreateContactMethod() {
return this.to('CreateContactMethod');
}
/**
* Grants permission to create an Amazon Lightsail container service
*
* Access Level: Write
*
* Possible conditions:
* - .ifAwsRequestTag()
* - .ifAwsTagKeys()
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_CreateContainerService.html
*/
toCreateContainerService() {
return this.to('CreateContainerService');
}
/**
* Grants permission to create a deployment for your Amazon Lightsail container service
*
* Access Level: Write
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_CreateContainerServiceDeployment.html
*/
toCreateContainerServiceDeployment() {
return this.to('CreateContainerServiceDeployment');
}
/**
* Grants permission to create a temporary set of log in credentials that you can use to log in to the Docker process on your local machine
*
* Access Level: Write
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_CreateContainerServiceRegistryLogin.html
*/
toCreateContainerServiceRegistryLogin() {
return this.to('CreateContainerServiceRegistryLogin');
}
/**
* Grants permission to create a disk
*
* Access Level: Write
*
* Possible conditions:
* - .ifAwsRequestTag()
* - .ifAwsTagKeys()
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_CreateDisk.html
*/
toCreateDisk() {
return this.to('CreateDisk');
}
/**
* Grants permission to create a disk from snapshot
*
* Access Level: Write
*
* Possible conditions:
* - .ifAwsRequestTag()
* - .ifAwsTagKeys()
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_CreateDiskFromSnapshot.html
*/
toCreateDiskFromSnapshot() {
return this.to('CreateDiskFromSnapshot');
}
/**
* Grants permission to create a disk snapshot
*
* Access Level: Write
*
* Possible conditions:
* - .ifAwsRequestTag()
* - .ifAwsTagKeys()
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_CreateDiskSnapshot.html
*/
toCreateDiskSnapshot() {
return this.to('CreateDiskSnapshot');
}
/**
* Grants permission to create an Amazon Lightsail content delivery network (CDN) distribution
*
* Access Level: Write
*
* Possible conditions:
* - .ifAwsRequestTag()
* - .ifAwsTagKeys()
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_CreateDistribution.html
*/
toCreateDistribution() {
return this.to('CreateDistribution');
}
/**
* Grants permission to create a domain resource for the specified domain name
*
* Access Level: Write
*
* Possible conditions:
* - .ifAwsRequestTag()
* - .ifAwsTagKeys()
*
* Dependent actions:
* - route53:DeleteHostedZone
* - route53:GetHostedZone
* - route53:ListHostedZonesByName
* - route53domains:GetDomainDetail
* - route53domains:GetOperationDetail
* - route53domains:ListDomains
* - route53domains:ListOperations
* - route53domains:UpdateDomainNameservers
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_CreateDomain.html
*/
toCreateDomain() {
return this.to('CreateDomain');
}
/**
* Grants permission to create one or more DNS record entries for a domain resource: Address (A), canonical name (CNAME), mail exchanger (MX), name server (NS), start of authority (SOA), service locator (SRV), or text (TXT)
*
* Access Level: Write
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_CreateDomainEntry.html
*/
toCreateDomainEntry() {
return this.to('CreateDomainEntry');
}
/**
* Grants permission to create URLs that are used to access an instance's graphical user interface (GUI) session
*
* Access Level: Write
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_CreateGUISessionAccessDetails.html
*/
toCreateGUISessionAccessDetails() {
return this.to('CreateGUISessionAccessDetails');
}
/**
* Grants permission to create an instance snapshot
*
* Access Level: Write
*
* Possible conditions:
* - .ifAwsRequestTag()
* - .ifAwsTagKeys()
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_CreateInstanceSnapshot.html
*/
toCreateInstanceSnapshot() {
return this.to('CreateInstanceSnapshot');
}
/**
* Grants permission to create one or more instances
*
* Access Level: Write
*
* Possible conditions:
* - .ifAwsRequestTag()
* - .ifAwsTagKeys()
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_CreateInstances.html
*/
toCreateInstances() {
return this.to('CreateInstances');
}
/**
* Grants permission to create one or more instances based on an instance snapshot
*
* Access Level: Write
*
* Possible conditions:
* - .ifAwsRequestTag()
* - .ifAwsTagKeys()
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_CreateInstancesFromSnapshot.html
*/
toCreateInstancesFromSnapshot() {
return this.to('CreateInstancesFromSnapshot');
}
/**
* Grants permission to create a key pair used to authenticate and connect to an instance
*
* Access Level: Write
*
* Possible conditions:
* - .ifAwsRequestTag()
* - .ifAwsTagKeys()
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_CreateKeyPair.html
*/
toCreateKeyPair() {
return this.to('CreateKeyPair');
}
/**
* Grants permission to create a load balancer
*
* Access Level: Write
*
* Possible conditions:
* - .ifAwsRequestTag()
* - .ifAwsTagKeys()
*
* Dependent actions:
* - lightsail:CreateDomainEntry
* - lightsail:GetDomains
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_CreateLoadBalancer.html
*/
toCreateLoadBalancer() {
return this.to('CreateLoadBalancer');
}
/**
* Grants permission to create a load balancer TLS certificate
*
* Access Level: Write
*
* Dependent actions:
* - lightsail:CreateDomainEntry
* - lightsail:GetDomains
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_CreateLoadBalancerTlsCertificate.html
*/
toCreateLoadBalancerTlsCertificate() {
return this.to('CreateLoadBalancerTlsCertificate');
}
/**
* Grants permission to create a new relational database
*
* Access Level: Write
*
* Possible conditions:
* - .ifAwsRequestTag()
* - .ifAwsTagKeys()
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_CreateRelationalDatabase.html
*/
toCreateRelationalDatabase() {
return this.to('CreateRelationalDatabase');
}
/**
* Grants permission to create a new relational database from a snapshot
*
* Access Level: Write
*
* Possible conditions:
* - .ifAwsRequestTag()
* - .ifAwsTagKeys()
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_CreateRelationalDatabaseFromSnapshot.html
*/
toCreateRelationalDatabaseFromSnapshot() {
return this.to('CreateRelationalDatabaseFromSnapshot');
}
/**
* Grants permission to create a relational database snapshot
*
* Access Level: Write
*
* Possible conditions:
* - .ifAwsRequestTag()
* - .ifAwsTagKeys()
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_CreateRelationalDatabaseSnapshot.html
*/
toCreateRelationalDatabaseSnapshot() {
return this.to('CreateRelationalDatabaseSnapshot');
}
/**
* Grants permission to delete an alarm
*
* Access Level: Write
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_DeleteAlarm.html
*/
toDeleteAlarm() {
return this.to('DeleteAlarm');
}
/**
* Grants permission to delete an automatic snapshot of an instance or disk
*
* Access Level: Write
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_DeleteAutoSnapshot.html
*/
toDeleteAutoSnapshot() {
return this.to('DeleteAutoSnapshot');
}
/**
* Grants permission to delete an Amazon Lightsail bucket
*
* Access Level: Write
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_DeleteBucket.html
*/
toDeleteBucket() {
return this.to('DeleteBucket');
}
/**
* Grants permission to delete an access key for the specified Amazon Lightsail bucket
*
* Access Level: Write
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_DeleteBucketAccessKey.html
*/
toDeleteBucketAccessKey() {
return this.to('DeleteBucketAccessKey');
}
/**
* Grants permission to delete an SSL/TLS certificate
*
* Access Level: Write
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_DeleteCertificate.html
*/
toDeleteCertificate() {
return this.to('DeleteCertificate');
}
/**
* Grants permission to delete a contact method
*
* Access Level: Write
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_DeleteContactMethod.html
*/
toDeleteContactMethod() {
return this.to('DeleteContactMethod');
}
/**
* Grants permission to delete a container image that is registered to your Amazon Lightsail container service
*
* Access Level: Write
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_DeleteContainerImage.html
*/
toDeleteContainerImage() {
return this.to('DeleteContainerImage');
}
/**
* Grants permission to delete your Amazon Lightsail container service
*
* Access Level: Write
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_DeleteContainerService.html
*/
toDeleteContainerService() {
return this.to('DeleteContainerService');
}
/**
* Grants permission to delete a disk
*
* Access Level: Write
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_DeleteDisk.html
*/
toDeleteDisk() {
return this.to('DeleteDisk');
}
/**
* Grants permission to delete a disk snapshot
*
* Access Level: Write
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_DeleteDiskSnapshot.html
*/
toDeleteDiskSnapshot() {
return this.to('DeleteDiskSnapshot');
}
/**
* Grants permission to delete your Amazon Lightsail content delivery network (CDN) distribution
*
* Access Level: Write
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_DeleteDistribution.html
*/
toDeleteDistribution() {
return this.to('DeleteDistribution');
}
/**
* Grants permission to delete a domain resource and all of its DNS records
*
* Access Level: Write
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_DeleteDomain.html
*/
toDeleteDomain() {
return this.to('DeleteDomain');
}
/**
* Grants permission to delete a DNS record entry for a domain resource
*
* Access Level: Write
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_DeleteDomainEntry.html
*/
toDeleteDomainEntry() {
return this.to('DeleteDomainEntry');
}
/**
* Grants permission to delete an instance
*
* Access Level: Write
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_DeleteInstance.html
*/
toDeleteInstance() {
return this.to('DeleteInstance');
}
/**
* Grants permission to delete an instance snapshot
*
* Access Level: Write
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_DeleteInstanceSnapshot.html
*/
toDeleteInstanceSnapshot() {
return this.to('DeleteInstanceSnapshot');
}
/**
* Grants permission to delete a key pair used to authenticate and connect to an instance
*
* Access Level: Write
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_DeleteKeyPair.html
*/
toDeleteKeyPair() {
return this.to('DeleteKeyPair');
}
/**
* Grants permission to delete the known host key or certificate used by the Amazon Lightsail browser-based SSH or RDP clients to authenticate an instance
*
* Access Level: Write
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_DeleteKnownHostKeys.html
*/
toDeleteKnownHostKeys() {
return this.to('DeleteKnownHostKeys');
}
/**
* Grants permission to delete a load balancer
*
* Access Level: Write
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_DeleteLoadBalancer.html
*/
toDeleteLoadBalancer() {
return this.to('DeleteLoadBalancer');
}
/**
* Grants permission to delete a load balancer TLS certificate
*
* Access Level: Write
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_DeleteLoadBalancerTlsCertificate.html
*/
toDeleteLoadBalancerTlsCertificate() {
return this.to('DeleteLoadBalancerTlsCertificate');
}
/**
* Grants permission to delete a relational database
*
* Access Level: Write
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_DeleteRelationalDatabase.html
*/
toDeleteRelationalDatabase() {
return this.to('DeleteRelationalDatabase');
}
/**
* Grants permission to delete a relational database snapshot
*
* Access Level: Write
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_DeleteRelationalDatabaseSnapshot.html
*/
toDeleteRelationalDatabaseSnapshot() {
return this.to('DeleteRelationalDatabaseSnapshot');
}
/**
* Grants permission to detach an SSL/TLS certificate from your Amazon Lightsail content delivery network (CDN) distribution
*
* Access Level: Write
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_DetachCertificateFromDistribution.html
*/
toDetachCertificateFromDistribution() {
return this.to('DetachCertificateFromDistribution');
}
/**
* Grants permission to detach a disk from an instance
*
* Access Level: Write
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_DetachDisk.html
*/
toDetachDisk() {
return this.to('DetachDisk');
}
/**
* Grants permission to detach one or more instances from a load balancer
*
* Access Level: Write
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_DetachInstancesFromLoadBalancer.html
*/
toDetachInstancesFromLoadBalancer() {
return this.to('DetachInstancesFromLoadBalancer');
}
/**
* Grants permission to detach a static IP from an instance to which it is attached
*
* Access Level: Write
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_DetachStaticIp.html
*/
toDetachStaticIp() {
return this.to('DetachStaticIp');
}
/**
* Grants permission to disable an add-on for an Amazon Lightsail resource
*
* Access Level: Write
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_DisableAddOn.html
*/
toDisableAddOn() {
return this.to('DisableAddOn');
}
/**
* Grants permission to download the default key pair used to authenticate and connect to instances in a specific AWS Region
*
* Access Level: Write
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_DownloadDefaultKeyPair.html
*/
toDownloadDefaultKeyPair() {
return this.to('DownloadDefaultKeyPair');
}
/**
* Grants permission to enable or modify an add-on for an Amazon Lightsail resource
*
* Access Level: Write
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_EnableAddOn.html
*/
toEnableAddOn() {
return this.to('EnableAddOn');
}
/**
* Grants permission to export an Amazon Lightsail snapshot to Amazon EC2
*
* Access Level: Write
*
* Dependent actions:
* - iam:CreateServiceLinkedRole
* - iam:PutRolePolicy
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_ExportSnapshot.html
*/
toExportSnapshot() {
return this.to('ExportSnapshot');
}
/**
* Grants permission to get the names of all active (not deleted) resources
*
* Access Level: Read
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_GetActiveNames.html
*/
toGetActiveNames() {
return this.to('GetActiveNames');
}
/**
* Grants permission to view information about the configured alarms
*
* Access Level: Read
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_GetAlarms.html
*/
toGetAlarms() {
return this.to('GetAlarms');
}
/**
* Grants permission to view the available automatic snapshots for an instance or disk
*
* Access Level: Read
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_GetAutoSnapshots.html
*/
toGetAutoSnapshots() {
return this.to('GetAutoSnapshots');
}
/**
* Grants permission to get a list of instance images, or blueprints. You can use a blueprint to create a new instance already running a specific operating system, as well as a pre-installed application or development stack. The software that runs on your instance depends on the blueprint you define when creating the instance
*
* Access Level: Read
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_GetBlueprints.html
*/
toGetBlueprints() {
return this.to('GetBlueprints');
}
/**
* Grants permission to get the existing access key IDs for the specified Amazon Lightsail bucket
*
* Access Level: Read
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_GetBucketAccessKeys.html
*/
toGetBucketAccessKeys() {
return this.to('GetBucketAccessKeys');
}
/**
* Grants permission to get the bundles that can be applied to an Amazon Lightsail bucket
*
* Access Level: Read
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_GetBucketBundles.html
*/
toGetBucketBundles() {
return this.to('GetBucketBundles');
}
/**
* Grants permission to get the data points of a specific metric for an Amazon Lightsail bucket
*
* Access Level: Read
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_GetBucketMetricData.html
*/
toGetBucketMetricData() {
return this.to('GetBucketMetricData');
}
/**
* Grants permission to get information about one or more Amazon Lightsail buckets
*
* Access Level: Read
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_GetBuckets.html
*/
toGetBuckets() {
return this.to('GetBuckets');
}
/**
* Grants permission to get a list of instance bundles. You can use a bundle to create a new instance with a set of performance specifications, such as CPU count, disk size, RAM size, and network transfer allowance. The cost of your instance depends on the bundle you define when creating the instance
*
* Access Level: Read
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_GetBundles.html
*/
toGetBundles() {
return this.to('GetBundles');
}
/**
* Grants permission to view information about one or more Amazon Lightsail SSL/TLS certificates
*
* Access Level: Read
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_GetCertificates.html
*/
toGetCertificates() {
return this.to('GetCertificates');
}
/**
* Grants permission to get information about all CloudFormation stacks used to create Amazon EC2 resources from exported Amazon Lightsail snapshots
*
* Access Level: Read
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_GetCloudFormationStackRecords.html
*/
toGetCloudFormationStackRecords() {
return this.to('GetCloudFormationStackRecords');
}
/**
* Grants permission to view information about the configured contact methods
*
* Access Level: Read
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_GetContactMethods.html
*/
toGetContactMethods() {
return this.to('GetContactMethods');
}
/**
* Grants permission to view information about Amazon Lightsail containers, such as the current version of the Lightsail Control (lightsailctl) plugin
*
* Access Level: Read
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_GetContainerAPIMetadata.html
*/
toGetContainerAPIMetadata() {
return this.to('GetContainerAPIMetadata');
}
/**
* Grants permission to view the container images that are registered to your Amazon Lightsail container service
*
* Access Level: Read
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_GetContainerImages.html
*/
toGetContainerImages() {
return this.to('GetContainerImages');
}
/**
* Grants permission to view the log events of a container of your Amazon Lightsail container service
*
* Access Level: Read
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_GetContainerLog.html
*/
toGetContainerLog() {
return this.to('GetContainerLog');
}
/**
* Grants permission to view the deployments for your Amazon Lightsail container service
*
* Access Level: Read
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_GetContainerServiceDeployments.html
*/
toGetContainerServiceDeployments() {
return this.to('GetContainerServiceDeployments');
}
/**
* Grants permission to view the data points of a specific metric of your Amazon Lightsail container service
*
* Access Level: Read
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_GetContainerServiceMetricData.html
*/
toGetContainerServiceMetricData() {
return this.to('GetContainerServiceMetricData');
}
/**
* Grants permission to view the list of powers that can be specified for your Amazon Lightsail container services
*
* Access Level: Read
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_GetContainerServicePowers.html
*/
toGetContainerServicePowers() {
return this.to('GetContainerServicePowers');
}
/**
* Grants permission to view information about one or more of your Amazon Lightsail container services
*
* Access Level: Read
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_GetContainerServices.html
*/
toGetContainerServices() {
return this.to('GetContainerServices');
}
/**
* Grants permission to get the information about the cost estimate for a specified resource
*
* Access Level: Read
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_GetCostEstimate.html
*/
toGetCostEstimate() {
return this.to('GetCostEstimate');
}
/**
* Grants permission to get information about a disk
*
* Access Level: Read
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_GetDisk.html
*/
toGetDisk() {
return this.to('GetDisk');
}
/**
* Grants permission to get information about a disk snapshot
*
* Access Level: Read
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_GetDiskSnapshot.html
*/
toGetDiskSnapshot() {
return this.to('GetDiskSnapshot');
}
/**
* Grants permission to get information about all disk snapshots
*
* Access Level: Read
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_GetDiskSnapshots.html
*/
toGetDiskSnapshots() {
return this.to('GetDiskSnapshots');
}
/**
* Grants permission to get information about all disks
*
* Access Level: Read
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_GetDisks.html
*/
toGetDisks() {
return this.to('GetDisks');
}
/**
* Grants permission to view the list of bundles that can be applied to you Amazon Lightsail content delivery network (CDN) distributions
*
* Access Level: Read
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_GetDistributionBundles.html
*/
toGetDistributionBundles() {
return this.to('GetDistributionBundles');
}
/**
* Grants permission to view the timestamp and status of the last cache reset of a specific Amazon Lightsail content delivery network (CDN) distribution
*
* Access Level: Read
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_GetDistributionLatestCacheReset.html
*/
toGetDistributionLatestCacheReset() {
return this.to('GetDistributionLatestCacheReset');
}
/**
* Grants permission to view the data points of a specific metric for an Amazon Lightsail content delivery network (CDN) distribution
*
* Access Level: Read
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_GetDistributionMetricData.html
*/
toGetDistributionMetricData() {
return this.to('GetDistributionMetricData');
}
/**
* Grants permission to view information about one or more of your Amazon Lightsail content delivery network (CDN) distributions
*
* Access Level: Read
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_GetDistributions.html
*/
toGetDistributions() {
return this.to('GetDistributions');
}
/**
* Grants permission to get DNS records for a domain resource
*
* Access Level: Read
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_GetDomain.html
*/
toGetDomain() {
return this.to('GetDomain');
}
/**
* Grants permission to get DNS records for all domain resources
*
* Access Level: Read
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_GetDomains.html
*/
toGetDomains() {
return this.to('GetDomains');
}
/**
* Grants permission to get information about all records of exported Amazon Lightsail snapshots to Amazon EC2
*
* Access Level: Read
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_GetExportSnapshotRecords.html
*/
toGetExportSnapshotRecords() {
return this.to('GetExportSnapshotRecords');
}
/**
* Grants permission to get information about an instance
*
* Access Level: Read
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_GetInstance.html
*/
toGetInstance() {
return this.to('GetInstance');
}
/**
* Grants permission to get temporary keys you can use to authenticate and connect to an instance
*
* Access Level: Write
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_GetInstanceAccessDetails.html
*/
toGetInstanceAccessDetails() {
return this.to('GetInstanceAccessDetails');
}
/**
* Grants permission to get the data points for the specified metric of an instance
*
* Access Level: Read
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_GetInstanceMetricData.html
*/
toGetInstanceMetricData() {
return this.to('GetInstanceMetricData');
}
/**
* Grants permission to get the port states of an instance
*
* Access Level: Read
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_GetInstancePortStates.html
*/
toGetInstancePortStates() {
return this.to('GetInstancePortStates');
}
/**
* Grants permission to get information about an instance snapshot
*
* Access Level: Read
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_GetInstanceSnapshot.html
*/
toGetInstanceSnapshot() {
return this.to('GetInstanceSnapshot');
}
/**
* Grants permission to get information about all instance snapshots
*
* Access Level: Read
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_GetInstanceSnapshots.html
*/
toGetInstanceSnapshots() {
return this.to('GetInstanceSnapshots');
}
/**
* Grants permission to get the state of an instance
*
* Access Level: Read
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_GetInstanceState.html
*/
toGetInstanceState() {
return this.to('GetInstanceState');
}
/**
* Grants permission to get information about all instances
*
* Access Level: Read
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_GetInstances.html
*/
toGetInstances() {
return this.to('GetInstances');
}
/**
* Grants permission to get information about a key pair
*
* Access Level: Read
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_GetKeyPair.html
*/
toGetKeyPair() {
return this.to('GetKeyPair');
}
/**
* Grants permission to get information about all key pairs
*
* Access Level: Read
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_GetKeyPairs.html
*/
toGetKeyPairs() {
return this.to('GetKeyPairs');
}
/**
* Grants permission to get information about a load balancer
*
* Access Level: Read
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_GetLoadBalancer.html
*/
toGetLoadBalancer() {
return this.to('GetLoadBalancer');
}
/**
* Grants permission to get the data points for the specified metric of a load balancer
*
* Access Level: Read
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_GetLoadBalancerMetricData.html
*/
toGetLoadBalancerMetricData() {
return this.to('GetLoadBalancerMetricData');
}
/**
* Grants permission to get information about a load balancer's TLS certificates
*
* Access Level: Read
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_GetLoadBalancerTlsCertificates.html
*/
toGetLoadBalancerTlsCertificates() {
return this.to('GetLoadBalancerTlsCertificates');
}
/**
* Grants permission to get a list of TLS security policies that you can apply to Lightsail load balancers
*
* Access Level: Read
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_GetLoadBalancerTlsPolicies.html
*/
toGetLoadBalancerTlsPolicies() {
return this.to('GetLoadBalancerTlsPolicies');
}
/**
* Grants permission to get information about load balancers
*
* Access Level: Read
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_GetLoadBalancers.html
*/
toGetLoadBalancers() {
return this.to('GetLoadBalancers');
}
/**
* Grants permission to get information about an operation. Operations include events such as when you create an instance, allocate a static IP, attach a static IP, and so on
*
* Access Level: Read
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_GetOperation.html
*/
toGetOperation() {
return this.to('GetOperation');
}
/**
* Grants permission to get information about all operations. Operations include events such as when you create an instance, allocate a static IP, attach a static IP, and so on
*
* Access Level: Read
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_GetOperations.html
*/
toGetOperations() {
return this.to('GetOperations');
}
/**
* Grants permission to get operations for a resource
*
* Access Level: Read
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_GetOperationsForResource.html
*/
toGetOperationsForResource() {
return this.to('GetOperationsForResource');
}
/**
* Grants permission to get a list of all valid AWS Regions for Amazon Lightsail
*
* Access Level: Read
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_GetRegions.html
*/
toGetRegions() {
return this.to('GetRegions');
}
/**
* Grants permission to get information about a relational database
*
* Access Level: Read
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_GetRelationalDatabase.html
*/
toGetRelationalDatabase() {
return this.to('GetRelationalDatabase');
}
/**
* Grants permission to get a list of relational database images, or blueprints. You can use a blueprint to create a new database running a specific database engine. The database engine that runs on your database depends on the blueprint you define when creating the relational database
*
* Access Level: Read
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_GetRelationalDatabaseBlueprints.html
*/
toGetRelationalDatabaseBlueprints() {
return this.to('GetRelationalDatabaseBlueprints');
}
/**
* Grants permission to get a list of relational database bundles. You can use a bundle to create a new database with a set of performance specifications, such as CPU count, disk size, RAM size, network transfer allowance, and standard of high availability. The cost of your database depends on the bundle you define when creating the relational database
*
* Access Level: Read
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_GetRelationalDatabaseBundles.html
*/
toGetRelationalDatabaseBundles() {
return this.to('GetRelationalDatabaseBundles');
}
/**
* Grants permission to get events for a relational database
*
* Access Level: Read
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_GetRelationalDatabaseEvents.html
*/
toGetRelationalDatabaseEvents() {
return this.to('GetRelationalDatabaseEvents');
}
/**
* Grants permission to get events for the specified log stream of a relational database
*
* Access Level: Read
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_GetRelationalDatabaseLogEvents.html
*/
toGetRelationalDatabaseLogEvents() {
return this.to('GetRelationalDatabaseLogEvents');
}
/**
* Grants permission to get the log streams available for a relational database
*
* Access Level: Read
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_GetRelationalDatabaseLogStreams.html
*/
toGetRelationalDatabaseLogStreams() {
return this.to('GetRelationalDatabaseLogStreams');
}
/**
* Grants permission to get the master user password of a relational database
*
* Access Level: Write
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_GetRelationalDatabaseMasterUserPassword.html
*/
toGetRelationalDatabaseMasterUserPassword() {
return this.to('GetRelationalDatabaseMasterUserPassword');
}
/**
* Grants permission to get the data points for the specified metric of a relational database
*
* Access Level: Read
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_GetRelationalDatabaseMetricData.html
*/
toGetRelationalDatabaseMetricData() {
return this.to('GetRelationalDatabaseMetricData');
}
/**
* Grants permission to get the parameters of a relational database
*
* Access Level: Read
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_GetRelationalDatabaseParameters.html
*/
toGetRelationalDatabaseParameters() {
return this.to('GetRelationalDatabaseParameters');
}
/**
* Grants permission to get information about a relational database snapshot
*
* Access Level: Read
*
* https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_GetRelationalDatabaseSnapshot.html
*/