// Creates a block storage disk from a manual or automatic snapshot of a disk. The
// resulting disk can be attached to an Amazon Lightsail instance in the same
// Availability Zone (e.g., us-east-2a). The create disk from snapshot operation
// supports tag-based access control via request tags and resource tags applied to
// the resource identified by disk snapshot name. For more information, see the
// Lightsail Dev Guide
// (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-controlling-access-using-tags).
Creates a block storage disk from a manual or automatic snapshot of a disk. The
resulting disk can be attached to an Amazon Lightsail instance in the same
Availability Zone . The create disk from snapshot operation
supports tag-based access control via request tags and resource tags applied to
the resource identified by disk snapshot name. For more information, see the
Lightsail Dev Guide
.
// Creates a block storage disk from a manual or automatic snapshot of a disk . The // resulting disk can be attached to an Amazon Lightsail instance in the same // Availability Zone ( e . g . us - east - 2a ) . The create disk from snapshot operation // supports tag - based access control via request tags and resource tags applied to // the resource identified by disk snapshot name . For more information see the // Lightsail Dev Guide // ( https : // lightsail . aws . amazon . com / ls / docs / en / articles / amazon - lightsail - controlling - access - using - tags ) .
func (c *Client) CreateDiskFromSnapshot(ctx context.Context, params *CreateDiskFromSnapshotInput, optFns ...func(*Options)) (*CreateDiskFromSnapshotOutput, error) {
	if params == nil {
		params = &CreateDiskFromSnapshotInput{}
	}
	result, metadata, err := c.invokeOperation(ctx, "CreateDiskFromSnapshot", params, optFns, addOperationCreateDiskFromSnapshotMiddlewares)
	if err != nil {
		return nil, err
	}
	out := result.(*CreateDiskFromSnapshotOutput)
	out.ResultMetadata = metadata
	return out, nil
}
func ( c * Client ) CreateDiskFromSnapshot ( ctx context . Context , params * CreateDiskFromSnapshotInput , optFns ... func ( * Options ) ) ( * CreateDiskFromSnapshotOutput , error ) { if params == nil { params = & CreateDiskFromSnapshotInput { } } result , metadata , err := c . invokeOperation ( ctx , " " , params , optFns , addOperationCreateDiskFromSnapshotMiddlewares ) if err != nil { return nil , err } out := result . ( * CreateDiskFromSnapshotOutput ) out . ResultMetadata = metadata return out , nil }
Creates a block storage disk from a manual or automatic snapshot of a disk.
Creates a block storage disk from a manual or automatic snapshot of a disk .