3 Star 1 Fork 0

Gitee 极速下载 / aws-sdk-go

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/aws/aws-sdk-go
Clone or Download
api.go 127.27 KB
Copy Edit Raw Blame History
awssdkgo authored 2018-04-03 20:44 . Release v1.13.27
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package cloudhsm
import (
"fmt"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/awsutil"
"github.com/aws/aws-sdk-go/aws/request"
)
const opAddTagsToResource = "AddTagsToResource"
// AddTagsToResourceRequest generates a "aws/request.Request" representing the
// client's request for the AddTagsToResource operation. The "output" return
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See AddTagsToResource for more information on using the AddTagsToResource
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the AddTagsToResourceRequest method.
// req, resp := client.AddTagsToResourceRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/AddTagsToResource
func (c *CloudHSM) AddTagsToResourceRequest(input *AddTagsToResourceInput) (req *request.Request, output *AddTagsToResourceOutput) {
op := &request.Operation{
Name: opAddTagsToResource,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &AddTagsToResourceInput{}
}
output = &AddTagsToResourceOutput{}
req = c.newRequest(op, input, output)
return
}
// AddTagsToResource API operation for Amazon CloudHSM.
//
// This is documentation for AWS CloudHSM Classic. For more information, see
// AWS CloudHSM Classic FAQs (http://aws.amazon.com/cloudhsm/faqs-classic/),
// the AWS CloudHSM Classic User Guide (http://docs.aws.amazon.com/cloudhsm/classic/userguide/),
// and the AWS CloudHSM Classic API Reference (http://docs.aws.amazon.com/cloudhsm/classic/APIReference/).
//
// For information about the current version of AWS CloudHSM, see AWS CloudHSM
// (http://aws.amazon.com/cloudhsm/), the AWS CloudHSM User Guide (http://docs.aws.amazon.com/cloudhsm/latest/userguide/),
// and the AWS CloudHSM API Reference (http://docs.aws.amazon.com/cloudhsm/latest/APIReference/).
//
// Adds or overwrites one or more tags for the specified AWS CloudHSM resource.
//
// Each tag consists of a key and a value. Tag keys must be unique to each resource.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudHSM's
// API operation AddTagsToResource for usage and error information.
//
// Returned Error Codes:
// * ErrCodeCloudHsmServiceException "CloudHsmServiceException"
// Indicates that an exception occurred in the AWS CloudHSM service.
//
// * ErrCodeCloudHsmInternalException "CloudHsmInternalException"
// Indicates that an internal error occurred.
//
// * ErrCodeInvalidRequestException "InvalidRequestException"
// Indicates that one or more of the request parameters are not valid.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/AddTagsToResource
func (c *CloudHSM) AddTagsToResource(input *AddTagsToResourceInput) (*AddTagsToResourceOutput, error) {
req, out := c.AddTagsToResourceRequest(input)
return out, req.Send()
}
// AddTagsToResourceWithContext is the same as AddTagsToResource with the addition of
// the ability to pass a context and additional request options.
//
// See AddTagsToResource for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *CloudHSM) AddTagsToResourceWithContext(ctx aws.Context, input *AddTagsToResourceInput, opts ...request.Option) (*AddTagsToResourceOutput, error) {
req, out := c.AddTagsToResourceRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opCreateHapg = "CreateHapg"
// CreateHapgRequest generates a "aws/request.Request" representing the
// client's request for the CreateHapg operation. The "output" return
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See CreateHapg for more information on using the CreateHapg
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the CreateHapgRequest method.
// req, resp := client.CreateHapgRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/CreateHapg
func (c *CloudHSM) CreateHapgRequest(input *CreateHapgInput) (req *request.Request, output *CreateHapgOutput) {
op := &request.Operation{
Name: opCreateHapg,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &CreateHapgInput{}
}
output = &CreateHapgOutput{}
req = c.newRequest(op, input, output)
return
}
// CreateHapg API operation for Amazon CloudHSM.
//
// This is documentation for AWS CloudHSM Classic. For more information, see
// AWS CloudHSM Classic FAQs (http://aws.amazon.com/cloudhsm/faqs-classic/),
// the AWS CloudHSM Classic User Guide (http://docs.aws.amazon.com/cloudhsm/classic/userguide/),
// and the AWS CloudHSM Classic API Reference (http://docs.aws.amazon.com/cloudhsm/classic/APIReference/).
//
// For information about the current version of AWS CloudHSM, see AWS CloudHSM
// (http://aws.amazon.com/cloudhsm/), the AWS CloudHSM User Guide (http://docs.aws.amazon.com/cloudhsm/latest/userguide/),
// and the AWS CloudHSM API Reference (http://docs.aws.amazon.com/cloudhsm/latest/APIReference/).
//
// Creates a high-availability partition group. A high-availability partition
// group is a group of partitions that spans multiple physical HSMs.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudHSM's
// API operation CreateHapg for usage and error information.
//
// Returned Error Codes:
// * ErrCodeCloudHsmServiceException "CloudHsmServiceException"
// Indicates that an exception occurred in the AWS CloudHSM service.
//
// * ErrCodeCloudHsmInternalException "CloudHsmInternalException"
// Indicates that an internal error occurred.
//
// * ErrCodeInvalidRequestException "InvalidRequestException"
// Indicates that one or more of the request parameters are not valid.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/CreateHapg
func (c *CloudHSM) CreateHapg(input *CreateHapgInput) (*CreateHapgOutput, error) {
req, out := c.CreateHapgRequest(input)
return out, req.Send()
}
// CreateHapgWithContext is the same as CreateHapg with the addition of
// the ability to pass a context and additional request options.
//
// See CreateHapg for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *CloudHSM) CreateHapgWithContext(ctx aws.Context, input *CreateHapgInput, opts ...request.Option) (*CreateHapgOutput, error) {
req, out := c.CreateHapgRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opCreateHsm = "CreateHsm"
// CreateHsmRequest generates a "aws/request.Request" representing the
// client's request for the CreateHsm operation. The "output" return
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See CreateHsm for more information on using the CreateHsm
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the CreateHsmRequest method.
// req, resp := client.CreateHsmRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/CreateHsm
func (c *CloudHSM) CreateHsmRequest(input *CreateHsmInput) (req *request.Request, output *CreateHsmOutput) {
op := &request.Operation{
Name: opCreateHsm,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &CreateHsmInput{}
}
output = &CreateHsmOutput{}
req = c.newRequest(op, input, output)
return
}
// CreateHsm API operation for Amazon CloudHSM.
//
// This is documentation for AWS CloudHSM Classic. For more information, see
// AWS CloudHSM Classic FAQs (http://aws.amazon.com/cloudhsm/faqs-classic/),
// the AWS CloudHSM Classic User Guide (http://docs.aws.amazon.com/cloudhsm/classic/userguide/),
// and the AWS CloudHSM Classic API Reference (http://docs.aws.amazon.com/cloudhsm/classic/APIReference/).
//
// For information about the current version of AWS CloudHSM, see AWS CloudHSM
// (http://aws.amazon.com/cloudhsm/), the AWS CloudHSM User Guide (http://docs.aws.amazon.com/cloudhsm/latest/userguide/),
// and the AWS CloudHSM API Reference (http://docs.aws.amazon.com/cloudhsm/latest/APIReference/).
//
// Creates an uninitialized HSM instance.
//
// There is an upfront fee charged for each HSM instance that you create with
// the CreateHsm operation. If you accidentally provision an HSM and want to
// request a refund, delete the instance using the DeleteHsm operation, go to
// the AWS Support Center (https://console.aws.amazon.com/support/home), create
// a new case, and select Account and Billing Support.
//
// It can take up to 20 minutes to create and provision an HSM. You can monitor
// the status of the HSM with the DescribeHsm operation. The HSM is ready to
// be initialized when the status changes to RUNNING.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudHSM's
// API operation CreateHsm for usage and error information.
//
// Returned Error Codes:
// * ErrCodeCloudHsmServiceException "CloudHsmServiceException"
// Indicates that an exception occurred in the AWS CloudHSM service.
//
// * ErrCodeCloudHsmInternalException "CloudHsmInternalException"
// Indicates that an internal error occurred.
//
// * ErrCodeInvalidRequestException "InvalidRequestException"
// Indicates that one or more of the request parameters are not valid.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/CreateHsm
func (c *CloudHSM) CreateHsm(input *CreateHsmInput) (*CreateHsmOutput, error) {
req, out := c.CreateHsmRequest(input)
return out, req.Send()
}
// CreateHsmWithContext is the same as CreateHsm with the addition of
// the ability to pass a context and additional request options.
//
// See CreateHsm for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *CloudHSM) CreateHsmWithContext(ctx aws.Context, input *CreateHsmInput, opts ...request.Option) (*CreateHsmOutput, error) {
req, out := c.CreateHsmRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opCreateLunaClient = "CreateLunaClient"
// CreateLunaClientRequest generates a "aws/request.Request" representing the
// client's request for the CreateLunaClient operation. The "output" return
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See CreateLunaClient for more information on using the CreateLunaClient
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the CreateLunaClientRequest method.
// req, resp := client.CreateLunaClientRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/CreateLunaClient
func (c *CloudHSM) CreateLunaClientRequest(input *CreateLunaClientInput) (req *request.Request, output *CreateLunaClientOutput) {
op := &request.Operation{
Name: opCreateLunaClient,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &CreateLunaClientInput{}
}
output = &CreateLunaClientOutput{}
req = c.newRequest(op, input, output)
return
}
// CreateLunaClient API operation for Amazon CloudHSM.
//
// This is documentation for AWS CloudHSM Classic. For more information, see
// AWS CloudHSM Classic FAQs (http://aws.amazon.com/cloudhsm/faqs-classic/),
// the AWS CloudHSM Classic User Guide (http://docs.aws.amazon.com/cloudhsm/classic/userguide/),
// and the AWS CloudHSM Classic API Reference (http://docs.aws.amazon.com/cloudhsm/classic/APIReference/).
//
// For information about the current version of AWS CloudHSM, see AWS CloudHSM
// (http://aws.amazon.com/cloudhsm/), the AWS CloudHSM User Guide (http://docs.aws.amazon.com/cloudhsm/latest/userguide/),
// and the AWS CloudHSM API Reference (http://docs.aws.amazon.com/cloudhsm/latest/APIReference/).
//
// Creates an HSM client.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudHSM's
// API operation CreateLunaClient for usage and error information.
//
// Returned Error Codes:
// * ErrCodeCloudHsmServiceException "CloudHsmServiceException"
// Indicates that an exception occurred in the AWS CloudHSM service.
//
// * ErrCodeCloudHsmInternalException "CloudHsmInternalException"
// Indicates that an internal error occurred.
//
// * ErrCodeInvalidRequestException "InvalidRequestException"
// Indicates that one or more of the request parameters are not valid.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/CreateLunaClient
func (c *CloudHSM) CreateLunaClient(input *CreateLunaClientInput) (*CreateLunaClientOutput, error) {
req, out := c.CreateLunaClientRequest(input)
return out, req.Send()
}
// CreateLunaClientWithContext is the same as CreateLunaClient with the addition of
// the ability to pass a context and additional request options.
//
// See CreateLunaClient for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *CloudHSM) CreateLunaClientWithContext(ctx aws.Context, input *CreateLunaClientInput, opts ...request.Option) (*CreateLunaClientOutput, error) {
req, out := c.CreateLunaClientRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opDeleteHapg = "DeleteHapg"
// DeleteHapgRequest generates a "aws/request.Request" representing the
// client's request for the DeleteHapg operation. The "output" return
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See DeleteHapg for more information on using the DeleteHapg
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the DeleteHapgRequest method.
// req, resp := client.DeleteHapgRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DeleteHapg
func (c *CloudHSM) DeleteHapgRequest(input *DeleteHapgInput) (req *request.Request, output *DeleteHapgOutput) {
op := &request.Operation{
Name: opDeleteHapg,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DeleteHapgInput{}
}
output = &DeleteHapgOutput{}
req = c.newRequest(op, input, output)
return
}
// DeleteHapg API operation for Amazon CloudHSM.
//
// This is documentation for AWS CloudHSM Classic. For more information, see
// AWS CloudHSM Classic FAQs (http://aws.amazon.com/cloudhsm/faqs-classic/),
// the AWS CloudHSM Classic User Guide (http://docs.aws.amazon.com/cloudhsm/classic/userguide/),
// and the AWS CloudHSM Classic API Reference (http://docs.aws.amazon.com/cloudhsm/classic/APIReference/).
//
// For information about the current version of AWS CloudHSM, see AWS CloudHSM
// (http://aws.amazon.com/cloudhsm/), the AWS CloudHSM User Guide (http://docs.aws.amazon.com/cloudhsm/latest/userguide/),
// and the AWS CloudHSM API Reference (http://docs.aws.amazon.com/cloudhsm/latest/APIReference/).
//
// Deletes a high-availability partition group.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudHSM's
// API operation DeleteHapg for usage and error information.
//
// Returned Error Codes:
// * ErrCodeCloudHsmServiceException "CloudHsmServiceException"
// Indicates that an exception occurred in the AWS CloudHSM service.
//
// * ErrCodeCloudHsmInternalException "CloudHsmInternalException"
// Indicates that an internal error occurred.
//
// * ErrCodeInvalidRequestException "InvalidRequestException"
// Indicates that one or more of the request parameters are not valid.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DeleteHapg
func (c *CloudHSM) DeleteHapg(input *DeleteHapgInput) (*DeleteHapgOutput, error) {
req, out := c.DeleteHapgRequest(input)
return out, req.Send()
}
// DeleteHapgWithContext is the same as DeleteHapg with the addition of
// the ability to pass a context and additional request options.
//
// See DeleteHapg for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *CloudHSM) DeleteHapgWithContext(ctx aws.Context, input *DeleteHapgInput, opts ...request.Option) (*DeleteHapgOutput, error) {
req, out := c.DeleteHapgRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opDeleteHsm = "DeleteHsm"
// DeleteHsmRequest generates a "aws/request.Request" representing the
// client's request for the DeleteHsm operation. The "output" return
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See DeleteHsm for more information on using the DeleteHsm
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the DeleteHsmRequest method.
// req, resp := client.DeleteHsmRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DeleteHsm
func (c *CloudHSM) DeleteHsmRequest(input *DeleteHsmInput) (req *request.Request, output *DeleteHsmOutput) {
op := &request.Operation{
Name: opDeleteHsm,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DeleteHsmInput{}
}
output = &DeleteHsmOutput{}
req = c.newRequest(op, input, output)
return
}
// DeleteHsm API operation for Amazon CloudHSM.
//
// This is documentation for AWS CloudHSM Classic. For more information, see
// AWS CloudHSM Classic FAQs (http://aws.amazon.com/cloudhsm/faqs-classic/),
// the AWS CloudHSM Classic User Guide (http://docs.aws.amazon.com/cloudhsm/classic/userguide/),
// and the AWS CloudHSM Classic API Reference (http://docs.aws.amazon.com/cloudhsm/classic/APIReference/).
//
// For information about the current version of AWS CloudHSM, see AWS CloudHSM
// (http://aws.amazon.com/cloudhsm/), the AWS CloudHSM User Guide (http://docs.aws.amazon.com/cloudhsm/latest/userguide/),
// and the AWS CloudHSM API Reference (http://docs.aws.amazon.com/cloudhsm/latest/APIReference/).
//
// Deletes an HSM. After completion, this operation cannot be undone and your
// key material cannot be recovered.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudHSM's
// API operation DeleteHsm for usage and error information.
//
// Returned Error Codes:
// * ErrCodeCloudHsmServiceException "CloudHsmServiceException"
// Indicates that an exception occurred in the AWS CloudHSM service.
//
// * ErrCodeCloudHsmInternalException "CloudHsmInternalException"
// Indicates that an internal error occurred.
//
// * ErrCodeInvalidRequestException "InvalidRequestException"
// Indicates that one or more of the request parameters are not valid.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DeleteHsm
func (c *CloudHSM) DeleteHsm(input *DeleteHsmInput) (*DeleteHsmOutput, error) {
req, out := c.DeleteHsmRequest(input)
return out, req.Send()
}
// DeleteHsmWithContext is the same as DeleteHsm with the addition of
// the ability to pass a context and additional request options.
//
// See DeleteHsm for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *CloudHSM) DeleteHsmWithContext(ctx aws.Context, input *DeleteHsmInput, opts ...request.Option) (*DeleteHsmOutput, error) {
req, out := c.DeleteHsmRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opDeleteLunaClient = "DeleteLunaClient"
// DeleteLunaClientRequest generates a "aws/request.Request" representing the
// client's request for the DeleteLunaClient operation. The "output" return
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See DeleteLunaClient for more information on using the DeleteLunaClient
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the DeleteLunaClientRequest method.
// req, resp := client.DeleteLunaClientRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DeleteLunaClient
func (c *CloudHSM) DeleteLunaClientRequest(input *DeleteLunaClientInput) (req *request.Request, output *DeleteLunaClientOutput) {
op := &request.Operation{
Name: opDeleteLunaClient,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DeleteLunaClientInput{}
}
output = &DeleteLunaClientOutput{}
req = c.newRequest(op, input, output)
return
}
// DeleteLunaClient API operation for Amazon CloudHSM.
//
// This is documentation for AWS CloudHSM Classic. For more information, see
// AWS CloudHSM Classic FAQs (http://aws.amazon.com/cloudhsm/faqs-classic/),
// the AWS CloudHSM Classic User Guide (http://docs.aws.amazon.com/cloudhsm/classic/userguide/),
// and the AWS CloudHSM Classic API Reference (http://docs.aws.amazon.com/cloudhsm/classic/APIReference/).
//
// For information about the current version of AWS CloudHSM, see AWS CloudHSM
// (http://aws.amazon.com/cloudhsm/), the AWS CloudHSM User Guide (http://docs.aws.amazon.com/cloudhsm/latest/userguide/),
// and the AWS CloudHSM API Reference (http://docs.aws.amazon.com/cloudhsm/latest/APIReference/).
//
// Deletes a client.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudHSM's
// API operation DeleteLunaClient for usage and error information.
//
// Returned Error Codes:
// * ErrCodeCloudHsmServiceException "CloudHsmServiceException"
// Indicates that an exception occurred in the AWS CloudHSM service.
//
// * ErrCodeCloudHsmInternalException "CloudHsmInternalException"
// Indicates that an internal error occurred.
//
// * ErrCodeInvalidRequestException "InvalidRequestException"
// Indicates that one or more of the request parameters are not valid.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DeleteLunaClient
func (c *CloudHSM) DeleteLunaClient(input *DeleteLunaClientInput) (*DeleteLunaClientOutput, error) {
req, out := c.DeleteLunaClientRequest(input)
return out, req.Send()
}
// DeleteLunaClientWithContext is the same as DeleteLunaClient with the addition of
// the ability to pass a context and additional request options.
//
// See DeleteLunaClient for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *CloudHSM) DeleteLunaClientWithContext(ctx aws.Context, input *DeleteLunaClientInput, opts ...request.Option) (*DeleteLunaClientOutput, error) {
req, out := c.DeleteLunaClientRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opDescribeHapg = "DescribeHapg"
// DescribeHapgRequest generates a "aws/request.Request" representing the
// client's request for the DescribeHapg operation. The "output" return
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See DescribeHapg for more information on using the DescribeHapg
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the DescribeHapgRequest method.
// req, resp := client.DescribeHapgRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DescribeHapg
func (c *CloudHSM) DescribeHapgRequest(input *DescribeHapgInput) (req *request.Request, output *DescribeHapgOutput) {
op := &request.Operation{
Name: opDescribeHapg,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DescribeHapgInput{}
}
output = &DescribeHapgOutput{}
req = c.newRequest(op, input, output)
return
}
// DescribeHapg API operation for Amazon CloudHSM.
//
// This is documentation for AWS CloudHSM Classic. For more information, see
// AWS CloudHSM Classic FAQs (http://aws.amazon.com/cloudhsm/faqs-classic/),
// the AWS CloudHSM Classic User Guide (http://docs.aws.amazon.com/cloudhsm/classic/userguide/),
// and the AWS CloudHSM Classic API Reference (http://docs.aws.amazon.com/cloudhsm/classic/APIReference/).
//
// For information about the current version of AWS CloudHSM, see AWS CloudHSM
// (http://aws.amazon.com/cloudhsm/), the AWS CloudHSM User Guide (http://docs.aws.amazon.com/cloudhsm/latest/userguide/),
// and the AWS CloudHSM API Reference (http://docs.aws.amazon.com/cloudhsm/latest/APIReference/).
//
// Retrieves information about a high-availability partition group.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudHSM's
// API operation DescribeHapg for usage and error information.
//
// Returned Error Codes:
// * ErrCodeCloudHsmServiceException "CloudHsmServiceException"
// Indicates that an exception occurred in the AWS CloudHSM service.
//
// * ErrCodeCloudHsmInternalException "CloudHsmInternalException"
// Indicates that an internal error occurred.
//
// * ErrCodeInvalidRequestException "InvalidRequestException"
// Indicates that one or more of the request parameters are not valid.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DescribeHapg
func (c *CloudHSM) DescribeHapg(input *DescribeHapgInput) (*DescribeHapgOutput, error) {
req, out := c.DescribeHapgRequest(input)
return out, req.Send()
}
// DescribeHapgWithContext is the same as DescribeHapg with the addition of
// the ability to pass a context and additional request options.
//
// See DescribeHapg for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *CloudHSM) DescribeHapgWithContext(ctx aws.Context, input *DescribeHapgInput, opts ...request.Option) (*DescribeHapgOutput, error) {
req, out := c.DescribeHapgRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opDescribeHsm = "DescribeHsm"
// DescribeHsmRequest generates a "aws/request.Request" representing the
// client's request for the DescribeHsm operation. The "output" return
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See DescribeHsm for more information on using the DescribeHsm
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the DescribeHsmRequest method.
// req, resp := client.DescribeHsmRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DescribeHsm
func (c *CloudHSM) DescribeHsmRequest(input *DescribeHsmInput) (req *request.Request, output *DescribeHsmOutput) {
op := &request.Operation{
Name: opDescribeHsm,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DescribeHsmInput{}
}
output = &DescribeHsmOutput{}
req = c.newRequest(op, input, output)
return
}
// DescribeHsm API operation for Amazon CloudHSM.
//
// This is documentation for AWS CloudHSM Classic. For more information, see
// AWS CloudHSM Classic FAQs (http://aws.amazon.com/cloudhsm/faqs-classic/),
// the AWS CloudHSM Classic User Guide (http://docs.aws.amazon.com/cloudhsm/classic/userguide/),
// and the AWS CloudHSM Classic API Reference (http://docs.aws.amazon.com/cloudhsm/classic/APIReference/).
//
// For information about the current version of AWS CloudHSM, see AWS CloudHSM
// (http://aws.amazon.com/cloudhsm/), the AWS CloudHSM User Guide (http://docs.aws.amazon.com/cloudhsm/latest/userguide/),
// and the AWS CloudHSM API Reference (http://docs.aws.amazon.com/cloudhsm/latest/APIReference/).
//
// Retrieves information about an HSM. You can identify the HSM by its ARN or
// its serial number.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudHSM's
// API operation DescribeHsm for usage and error information.
//
// Returned Error Codes:
// * ErrCodeCloudHsmServiceException "CloudHsmServiceException"
// Indicates that an exception occurred in the AWS CloudHSM service.
//
// * ErrCodeCloudHsmInternalException "CloudHsmInternalException"
// Indicates that an internal error occurred.
//
// * ErrCodeInvalidRequestException "InvalidRequestException"
// Indicates that one or more of the request parameters are not valid.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DescribeHsm
func (c *CloudHSM) DescribeHsm(input *DescribeHsmInput) (*DescribeHsmOutput, error) {
req, out := c.DescribeHsmRequest(input)
return out, req.Send()
}
// DescribeHsmWithContext is the same as DescribeHsm with the addition of
// the ability to pass a context and additional request options.
//
// See DescribeHsm for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *CloudHSM) DescribeHsmWithContext(ctx aws.Context, input *DescribeHsmInput, opts ...request.Option) (*DescribeHsmOutput, error) {
req, out := c.DescribeHsmRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opDescribeLunaClient = "DescribeLunaClient"
// DescribeLunaClientRequest generates a "aws/request.Request" representing the
// client's request for the DescribeLunaClient operation. The "output" return
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See DescribeLunaClient for more information on using the DescribeLunaClient
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the DescribeLunaClientRequest method.
// req, resp := client.DescribeLunaClientRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DescribeLunaClient
func (c *CloudHSM) DescribeLunaClientRequest(input *DescribeLunaClientInput) (req *request.Request, output *DescribeLunaClientOutput) {
op := &request.Operation{
Name: opDescribeLunaClient,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DescribeLunaClientInput{}
}
output = &DescribeLunaClientOutput{}
req = c.newRequest(op, input, output)
return
}
// DescribeLunaClient API operation for Amazon CloudHSM.
//
// This is documentation for AWS CloudHSM Classic. For more information, see
// AWS CloudHSM Classic FAQs (http://aws.amazon.com/cloudhsm/faqs-classic/),
// the AWS CloudHSM Classic User Guide (http://docs.aws.amazon.com/cloudhsm/classic/userguide/),
// and the AWS CloudHSM Classic API Reference (http://docs.aws.amazon.com/cloudhsm/classic/APIReference/).
//
// For information about the current version of AWS CloudHSM, see AWS CloudHSM
// (http://aws.amazon.com/cloudhsm/), the AWS CloudHSM User Guide (http://docs.aws.amazon.com/cloudhsm/latest/userguide/),
// and the AWS CloudHSM API Reference (http://docs.aws.amazon.com/cloudhsm/latest/APIReference/).
//
// Retrieves information about an HSM client.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudHSM's
// API operation DescribeLunaClient for usage and error information.
//
// Returned Error Codes:
// * ErrCodeCloudHsmServiceException "CloudHsmServiceException"
// Indicates that an exception occurred in the AWS CloudHSM service.
//
// * ErrCodeCloudHsmInternalException "CloudHsmInternalException"
// Indicates that an internal error occurred.
//
// * ErrCodeInvalidRequestException "InvalidRequestException"
// Indicates that one or more of the request parameters are not valid.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DescribeLunaClient
func (c *CloudHSM) DescribeLunaClient(input *DescribeLunaClientInput) (*DescribeLunaClientOutput, error) {
req, out := c.DescribeLunaClientRequest(input)
return out, req.Send()
}
// DescribeLunaClientWithContext is the same as DescribeLunaClient with the addition of
// the ability to pass a context and additional request options.
//
// See DescribeLunaClient for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *CloudHSM) DescribeLunaClientWithContext(ctx aws.Context, input *DescribeLunaClientInput, opts ...request.Option) (*DescribeLunaClientOutput, error) {
req, out := c.DescribeLunaClientRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opGetConfig = "GetConfig"
// GetConfigRequest generates a "aws/request.Request" representing the
// client's request for the GetConfig operation. The "output" return
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See GetConfig for more information on using the GetConfig
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the GetConfigRequest method.
// req, resp := client.GetConfigRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/GetConfig
func (c *CloudHSM) GetConfigRequest(input *GetConfigInput) (req *request.Request, output *GetConfigOutput) {
op := &request.Operation{
Name: opGetConfig,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &GetConfigInput{}
}
output = &GetConfigOutput{}
req = c.newRequest(op, input, output)
return
}
// GetConfig API operation for Amazon CloudHSM.
//
// This is documentation for AWS CloudHSM Classic. For more information, see
// AWS CloudHSM Classic FAQs (http://aws.amazon.com/cloudhsm/faqs-classic/),
// the AWS CloudHSM Classic User Guide (http://docs.aws.amazon.com/cloudhsm/classic/userguide/),
// and the AWS CloudHSM Classic API Reference (http://docs.aws.amazon.com/cloudhsm/classic/APIReference/).
//
// For information about the current version of AWS CloudHSM, see AWS CloudHSM
// (http://aws.amazon.com/cloudhsm/), the AWS CloudHSM User Guide (http://docs.aws.amazon.com/cloudhsm/latest/userguide/),
// and the AWS CloudHSM API Reference (http://docs.aws.amazon.com/cloudhsm/latest/APIReference/).
//
// Gets the configuration files necessary to connect to all high availability
// partition groups the client is associated with.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudHSM's
// API operation GetConfig for usage and error information.
//
// Returned Error Codes:
// * ErrCodeCloudHsmServiceException "CloudHsmServiceException"
// Indicates that an exception occurred in the AWS CloudHSM service.
//
// * ErrCodeCloudHsmInternalException "CloudHsmInternalException"
// Indicates that an internal error occurred.
//
// * ErrCodeInvalidRequestException "InvalidRequestException"
// Indicates that one or more of the request parameters are not valid.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/GetConfig
func (c *CloudHSM) GetConfig(input *GetConfigInput) (*GetConfigOutput, error) {
req, out := c.GetConfigRequest(input)
return out, req.Send()
}
// GetConfigWithContext is the same as GetConfig with the addition of
// the ability to pass a context and additional request options.
//
// See GetConfig for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *CloudHSM) GetConfigWithContext(ctx aws.Context, input *GetConfigInput, opts ...request.Option) (*GetConfigOutput, error) {
req, out := c.GetConfigRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opListAvailableZones = "ListAvailableZones"
// ListAvailableZonesRequest generates a "aws/request.Request" representing the
// client's request for the ListAvailableZones operation. The "output" return
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See ListAvailableZones for more information on using the ListAvailableZones
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the ListAvailableZonesRequest method.
// req, resp := client.ListAvailableZonesRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListAvailableZones
func (c *CloudHSM) ListAvailableZonesRequest(input *ListAvailableZonesInput) (req *request.Request, output *ListAvailableZonesOutput) {
op := &request.Operation{
Name: opListAvailableZones,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &ListAvailableZonesInput{}
}
output = &ListAvailableZonesOutput{}
req = c.newRequest(op, input, output)
return
}
// ListAvailableZones API operation for Amazon CloudHSM.
//
// This is documentation for AWS CloudHSM Classic. For more information, see
// AWS CloudHSM Classic FAQs (http://aws.amazon.com/cloudhsm/faqs-classic/),
// the AWS CloudHSM Classic User Guide (http://docs.aws.amazon.com/cloudhsm/classic/userguide/),
// and the AWS CloudHSM Classic API Reference (http://docs.aws.amazon.com/cloudhsm/classic/APIReference/).
//
// For information about the current version of AWS CloudHSM, see AWS CloudHSM
// (http://aws.amazon.com/cloudhsm/), the AWS CloudHSM User Guide (http://docs.aws.amazon.com/cloudhsm/latest/userguide/),
// and the AWS CloudHSM API Reference (http://docs.aws.amazon.com/cloudhsm/latest/APIReference/).
//
// Lists the Availability Zones that have available AWS CloudHSM capacity.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudHSM's
// API operation ListAvailableZones for usage and error information.
//
// Returned Error Codes:
// * ErrCodeCloudHsmServiceException "CloudHsmServiceException"
// Indicates that an exception occurred in the AWS CloudHSM service.
//
// * ErrCodeCloudHsmInternalException "CloudHsmInternalException"
// Indicates that an internal error occurred.
//
// * ErrCodeInvalidRequestException "InvalidRequestException"
// Indicates that one or more of the request parameters are not valid.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListAvailableZones
func (c *CloudHSM) ListAvailableZones(input *ListAvailableZonesInput) (*ListAvailableZonesOutput, error) {
req, out := c.ListAvailableZonesRequest(input)
return out, req.Send()
}
// ListAvailableZonesWithContext is the same as ListAvailableZones with the addition of
// the ability to pass a context and additional request options.
//
// See ListAvailableZones for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *CloudHSM) ListAvailableZonesWithContext(ctx aws.Context, input *ListAvailableZonesInput, opts ...request.Option) (*ListAvailableZonesOutput, error) {
req, out := c.ListAvailableZonesRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opListHapgs = "ListHapgs"
// ListHapgsRequest generates a "aws/request.Request" representing the
// client's request for the ListHapgs operation. The "output" return
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See ListHapgs for more information on using the ListHapgs
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the ListHapgsRequest method.
// req, resp := client.ListHapgsRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListHapgs
func (c *CloudHSM) ListHapgsRequest(input *ListHapgsInput) (req *request.Request, output *ListHapgsOutput) {
op := &request.Operation{
Name: opListHapgs,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &ListHapgsInput{}
}
output = &ListHapgsOutput{}
req = c.newRequest(op, input, output)
return
}
// ListHapgs API operation for Amazon CloudHSM.
//
// This is documentation for AWS CloudHSM Classic. For more information, see
// AWS CloudHSM Classic FAQs (http://aws.amazon.com/cloudhsm/faqs-classic/),
// the AWS CloudHSM Classic User Guide (http://docs.aws.amazon.com/cloudhsm/classic/userguide/),
// and the AWS CloudHSM Classic API Reference (http://docs.aws.amazon.com/cloudhsm/classic/APIReference/).
//
// For information about the current version of AWS CloudHSM, see AWS CloudHSM
// (http://aws.amazon.com/cloudhsm/), the AWS CloudHSM User Guide (http://docs.aws.amazon.com/cloudhsm/latest/userguide/),
// and the AWS CloudHSM API Reference (http://docs.aws.amazon.com/cloudhsm/latest/APIReference/).
//
// Lists the high-availability partition groups for the account.
//
// This operation supports pagination with the use of the NextToken member.
// If more results are available, the NextToken member of the response contains
// a token that you pass in the next call to ListHapgs to retrieve the next
// set of items.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudHSM's
// API operation ListHapgs for usage and error information.
//
// Returned Error Codes:
// * ErrCodeCloudHsmServiceException "CloudHsmServiceException"
// Indicates that an exception occurred in the AWS CloudHSM service.
//
// * ErrCodeCloudHsmInternalException "CloudHsmInternalException"
// Indicates that an internal error occurred.
//
// * ErrCodeInvalidRequestException "InvalidRequestException"
// Indicates that one or more of the request parameters are not valid.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListHapgs
func (c *CloudHSM) ListHapgs(input *ListHapgsInput) (*ListHapgsOutput, error) {
req, out := c.ListHapgsRequest(input)
return out, req.Send()
}
// ListHapgsWithContext is the same as ListHapgs with the addition of
// the ability to pass a context and additional request options.
//
// See ListHapgs for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *CloudHSM) ListHapgsWithContext(ctx aws.Context, input *ListHapgsInput, opts ...request.Option) (*ListHapgsOutput, error) {
req, out := c.ListHapgsRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opListHsms = "ListHsms"
// ListHsmsRequest generates a "aws/request.Request" representing the
// client's request for the ListHsms operation. The "output" return
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See ListHsms for more information on using the ListHsms
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the ListHsmsRequest method.
// req, resp := client.ListHsmsRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListHsms
func (c *CloudHSM) ListHsmsRequest(input *ListHsmsInput) (req *request.Request, output *ListHsmsOutput) {
op := &request.Operation{
Name: opListHsms,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &ListHsmsInput{}
}
output = &ListHsmsOutput{}
req = c.newRequest(op, input, output)
return
}
// ListHsms API operation for Amazon CloudHSM.
//
// This is documentation for AWS CloudHSM Classic. For more information, see
// AWS CloudHSM Classic FAQs (http://aws.amazon.com/cloudhsm/faqs-classic/),
// the AWS CloudHSM Classic User Guide (http://docs.aws.amazon.com/cloudhsm/classic/userguide/),
// and the AWS CloudHSM Classic API Reference (http://docs.aws.amazon.com/cloudhsm/classic/APIReference/).
//
// For information about the current version of AWS CloudHSM, see AWS CloudHSM
// (http://aws.amazon.com/cloudhsm/), the AWS CloudHSM User Guide (http://docs.aws.amazon.com/cloudhsm/latest/userguide/),
// and the AWS CloudHSM API Reference (http://docs.aws.amazon.com/cloudhsm/latest/APIReference/).
//
// Retrieves the identifiers of all of the HSMs provisioned for the current
// customer.
//
// This operation supports pagination with the use of the NextToken member.
// If more results are available, the NextToken member of the response contains
// a token that you pass in the next call to ListHsms to retrieve the next set
// of items.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudHSM's
// API operation ListHsms for usage and error information.
//
// Returned Error Codes:
// * ErrCodeCloudHsmServiceException "CloudHsmServiceException"
// Indicates that an exception occurred in the AWS CloudHSM service.
//
// * ErrCodeCloudHsmInternalException "CloudHsmInternalException"
// Indicates that an internal error occurred.
//
// * ErrCodeInvalidRequestException "InvalidRequestException"
// Indicates that one or more of the request parameters are not valid.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListHsms
func (c *CloudHSM) ListHsms(input *ListHsmsInput) (*ListHsmsOutput, error) {
req, out := c.ListHsmsRequest(input)
return out, req.Send()
}
// ListHsmsWithContext is the same as ListHsms with the addition of
// the ability to pass a context and additional request options.
//
// See ListHsms for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *CloudHSM) ListHsmsWithContext(ctx aws.Context, input *ListHsmsInput, opts ...request.Option) (*ListHsmsOutput, error) {
req, out := c.ListHsmsRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opListLunaClients = "ListLunaClients"
// ListLunaClientsRequest generates a "aws/request.Request" representing the
// client's request for the ListLunaClients operation. The "output" return
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See ListLunaClients for more information on using the ListLunaClients
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the ListLunaClientsRequest method.
// req, resp := client.ListLunaClientsRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListLunaClients
func (c *CloudHSM) ListLunaClientsRequest(input *ListLunaClientsInput) (req *request.Request, output *ListLunaClientsOutput) {
op := &request.Operation{
Name: opListLunaClients,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &ListLunaClientsInput{}
}
output = &ListLunaClientsOutput{}
req = c.newRequest(op, input, output)
return
}
// ListLunaClients API operation for Amazon CloudHSM.
//
// This is documentation for AWS CloudHSM Classic. For more information, see
// AWS CloudHSM Classic FAQs (http://aws.amazon.com/cloudhsm/faqs-classic/),
// the AWS CloudHSM Classic User Guide (http://docs.aws.amazon.com/cloudhsm/classic/userguide/),
// and the AWS CloudHSM Classic API Reference (http://docs.aws.amazon.com/cloudhsm/classic/APIReference/).
//
// For information about the current version of AWS CloudHSM, see AWS CloudHSM
// (http://aws.amazon.com/cloudhsm/), the AWS CloudHSM User Guide (http://docs.aws.amazon.com/cloudhsm/latest/userguide/),
// and the AWS CloudHSM API Reference (http://docs.aws.amazon.com/cloudhsm/latest/APIReference/).
//
// Lists all of the clients.
//
// This operation supports pagination with the use of the NextToken member.
// If more results are available, the NextToken member of the response contains
// a token that you pass in the next call to ListLunaClients to retrieve the
// next set of items.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudHSM's
// API operation ListLunaClients for usage and error information.
//
// Returned Error Codes:
// * ErrCodeCloudHsmServiceException "CloudHsmServiceException"
// Indicates that an exception occurred in the AWS CloudHSM service.
//
// * ErrCodeCloudHsmInternalException "CloudHsmInternalException"
// Indicates that an internal error occurred.
//
// * ErrCodeInvalidRequestException "InvalidRequestException"
// Indicates that one or more of the request parameters are not valid.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListLunaClients
func (c *CloudHSM) ListLunaClients(input *ListLunaClientsInput) (*ListLunaClientsOutput, error) {
req, out := c.ListLunaClientsRequest(input)
return out, req.Send()
}
// ListLunaClientsWithContext is the same as ListLunaClients with the addition of
// the ability to pass a context and additional request options.
//
// See ListLunaClients for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *CloudHSM) ListLunaClientsWithContext(ctx aws.Context, input *ListLunaClientsInput, opts ...request.Option) (*ListLunaClientsOutput, error) {
req, out := c.ListLunaClientsRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opListTagsForResource = "ListTagsForResource"
// ListTagsForResourceRequest generates a "aws/request.Request" representing the
// client's request for the ListTagsForResource operation. The "output" return
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See ListTagsForResource for more information on using the ListTagsForResource
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the ListTagsForResourceRequest method.
// req, resp := client.ListTagsForResourceRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListTagsForResource
func (c *CloudHSM) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) {
op := &request.Operation{
Name: opListTagsForResource,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &ListTagsForResourceInput{}
}
output = &ListTagsForResourceOutput{}
req = c.newRequest(op, input, output)
return
}
// ListTagsForResource API operation for Amazon CloudHSM.
//
// This is documentation for AWS CloudHSM Classic. For more information, see
// AWS CloudHSM Classic FAQs (http://aws.amazon.com/cloudhsm/faqs-classic/),
// the AWS CloudHSM Classic User Guide (http://docs.aws.amazon.com/cloudhsm/classic/userguide/),
// and the AWS CloudHSM Classic API Reference (http://docs.aws.amazon.com/cloudhsm/classic/APIReference/).
//
// For information about the current version of AWS CloudHSM, see AWS CloudHSM
// (http://aws.amazon.com/cloudhsm/), the AWS CloudHSM User Guide (http://docs.aws.amazon.com/cloudhsm/latest/userguide/),
// and the AWS CloudHSM API Reference (http://docs.aws.amazon.com/cloudhsm/latest/APIReference/).
//
// Returns a list of all tags for the specified AWS CloudHSM resource.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudHSM's
// API operation ListTagsForResource for usage and error information.
//
// Returned Error Codes:
// * ErrCodeCloudHsmServiceException "CloudHsmServiceException"
// Indicates that an exception occurred in the AWS CloudHSM service.
//
// * ErrCodeCloudHsmInternalException "CloudHsmInternalException"
// Indicates that an internal error occurred.
//
// * ErrCodeInvalidRequestException "InvalidRequestException"
// Indicates that one or more of the request parameters are not valid.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListTagsForResource
func (c *CloudHSM) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) {
req, out := c.ListTagsForResourceRequest(input)
return out, req.Send()
}
// ListTagsForResourceWithContext is the same as ListTagsForResource with the addition of
// the ability to pass a context and additional request options.
//
// See ListTagsForResource for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *CloudHSM) ListTagsForResourceWithContext(ctx aws.Context, input *ListTagsForResourceInput, opts ...request.Option) (*ListTagsForResourceOutput, error) {
req, out := c.ListTagsForResourceRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opModifyHapg = "ModifyHapg"
// ModifyHapgRequest generates a "aws/request.Request" representing the
// client's request for the ModifyHapg operation. The "output" return
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See ModifyHapg for more information on using the ModifyHapg
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the ModifyHapgRequest method.
// req, resp := client.ModifyHapgRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ModifyHapg
func (c *CloudHSM) ModifyHapgRequest(input *ModifyHapgInput) (req *request.Request, output *ModifyHapgOutput) {
op := &request.Operation{
Name: opModifyHapg,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &ModifyHapgInput{}
}
output = &ModifyHapgOutput{}
req = c.newRequest(op, input, output)
return
}
// ModifyHapg API operation for Amazon CloudHSM.
//
// This is documentation for AWS CloudHSM Classic. For more information, see
// AWS CloudHSM Classic FAQs (http://aws.amazon.com/cloudhsm/faqs-classic/),
// the AWS CloudHSM Classic User Guide (http://docs.aws.amazon.com/cloudhsm/classic/userguide/),
// and the AWS CloudHSM Classic API Reference (http://docs.aws.amazon.com/cloudhsm/classic/APIReference/).
//
// For information about the current version of AWS CloudHSM, see AWS CloudHSM
// (http://aws.amazon.com/cloudhsm/), the AWS CloudHSM User Guide (http://docs.aws.amazon.com/cloudhsm/latest/userguide/),
// and the AWS CloudHSM API Reference (http://docs.aws.amazon.com/cloudhsm/latest/APIReference/).
//
// Modifies an existing high-availability partition group.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudHSM's
// API operation ModifyHapg for usage and error information.
//
// Returned Error Codes:
// * ErrCodeCloudHsmServiceException "CloudHsmServiceException"
// Indicates that an exception occurred in the AWS CloudHSM service.
//
// * ErrCodeCloudHsmInternalException "CloudHsmInternalException"
// Indicates that an internal error occurred.
//
// * ErrCodeInvalidRequestException "InvalidRequestException"
// Indicates that one or more of the request parameters are not valid.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ModifyHapg
func (c *CloudHSM) ModifyHapg(input *ModifyHapgInput) (*ModifyHapgOutput, error) {
req, out := c.ModifyHapgRequest(input)
return out, req.Send()
}
// ModifyHapgWithContext is the same as ModifyHapg with the addition of
// the ability to pass a context and additional request options.
//
// See ModifyHapg for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *CloudHSM) ModifyHapgWithContext(ctx aws.Context, input *ModifyHapgInput, opts ...request.Option) (*ModifyHapgOutput, error) {
req, out := c.ModifyHapgRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opModifyHsm = "ModifyHsm"
// ModifyHsmRequest generates a "aws/request.Request" representing the
// client's request for the ModifyHsm operation. The "output" return
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See ModifyHsm for more information on using the ModifyHsm
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the ModifyHsmRequest method.
// req, resp := client.ModifyHsmRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ModifyHsm
func (c *CloudHSM) ModifyHsmRequest(input *ModifyHsmInput) (req *request.Request, output *ModifyHsmOutput) {
op := &request.Operation{
Name: opModifyHsm,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &ModifyHsmInput{}
}
output = &ModifyHsmOutput{}
req = c.newRequest(op, input, output)
return
}
// ModifyHsm API operation for Amazon CloudHSM.
//
// This is documentation for AWS CloudHSM Classic. For more information, see
// AWS CloudHSM Classic FAQs (http://aws.amazon.com/cloudhsm/faqs-classic/),
// the AWS CloudHSM Classic User Guide (http://docs.aws.amazon.com/cloudhsm/classic/userguide/),
// and the AWS CloudHSM Classic API Reference (http://docs.aws.amazon.com/cloudhsm/classic/APIReference/).
//
// For information about the current version of AWS CloudHSM, see AWS CloudHSM
// (http://aws.amazon.com/cloudhsm/), the AWS CloudHSM User Guide (http://docs.aws.amazon.com/cloudhsm/latest/userguide/),
// and the AWS CloudHSM API Reference (http://docs.aws.amazon.com/cloudhsm/latest/APIReference/).
//
// Modifies an HSM.
//
// This operation can result in the HSM being offline for up to 15 minutes while
// the AWS CloudHSM service is reconfigured. If you are modifying a production
// HSM, you should ensure that your AWS CloudHSM service is configured for high
// availability, and consider executing this operation during a maintenance
// window.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudHSM's
// API operation ModifyHsm for usage and error information.
//
// Returned Error Codes:
// * ErrCodeCloudHsmServiceException "CloudHsmServiceException"
// Indicates that an exception occurred in the AWS CloudHSM service.
//
// * ErrCodeCloudHsmInternalException "CloudHsmInternalException"
// Indicates that an internal error occurred.
//
// * ErrCodeInvalidRequestException "InvalidRequestException"
// Indicates that one or more of the request parameters are not valid.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ModifyHsm
func (c *CloudHSM) ModifyHsm(input *ModifyHsmInput) (*ModifyHsmOutput, error) {
req, out := c.ModifyHsmRequest(input)
return out, req.Send()
}
// ModifyHsmWithContext is the same as ModifyHsm with the addition of
// the ability to pass a context and additional request options.
//
// See ModifyHsm for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *CloudHSM) ModifyHsmWithContext(ctx aws.Context, input *ModifyHsmInput, opts ...request.Option) (*ModifyHsmOutput, error) {
req, out := c.ModifyHsmRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opModifyLunaClient = "ModifyLunaClient"
// ModifyLunaClientRequest generates a "aws/request.Request" representing the
// client's request for the ModifyLunaClient operation. The "output" return
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See ModifyLunaClient for more information on using the ModifyLunaClient
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the ModifyLunaClientRequest method.
// req, resp := client.ModifyLunaClientRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ModifyLunaClient
func (c *CloudHSM) ModifyLunaClientRequest(input *ModifyLunaClientInput) (req *request.Request, output *ModifyLunaClientOutput) {
op := &request.Operation{
Name: opModifyLunaClient,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &ModifyLunaClientInput{}
}
output = &ModifyLunaClientOutput{}
req = c.newRequest(op, input, output)
return
}
// ModifyLunaClient API operation for Amazon CloudHSM.
//
// This is documentation for AWS CloudHSM Classic. For more information, see
// AWS CloudHSM Classic FAQs (http://aws.amazon.com/cloudhsm/faqs-classic/),
// the AWS CloudHSM Classic User Guide (http://docs.aws.amazon.com/cloudhsm/classic/userguide/),
// and the AWS CloudHSM Classic API Reference (http://docs.aws.amazon.com/cloudhsm/classic/APIReference/).
//
// For information about the current version of AWS CloudHSM, see AWS CloudHSM
// (http://aws.amazon.com/cloudhsm/), the AWS CloudHSM User Guide (http://docs.aws.amazon.com/cloudhsm/latest/userguide/),
// and the AWS CloudHSM API Reference (http://docs.aws.amazon.com/cloudhsm/latest/APIReference/).
//
// Modifies the certificate used by the client.
//
// This action can potentially start a workflow to install the new certificate
// on the client's HSMs.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudHSM's
// API operation ModifyLunaClient for usage and error information.
//
// Returned Error Codes:
// * ErrCodeCloudHsmServiceException "CloudHsmServiceException"
// Indicates that an exception occurred in the AWS CloudHSM service.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ModifyLunaClient
func (c *CloudHSM) ModifyLunaClient(input *ModifyLunaClientInput) (*ModifyLunaClientOutput, error) {
req, out := c.ModifyLunaClientRequest(input)
return out, req.Send()
}
// ModifyLunaClientWithContext is the same as ModifyLunaClient with the addition of
// the ability to pass a context and additional request options.
//
// See ModifyLunaClient for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *CloudHSM) ModifyLunaClientWithContext(ctx aws.Context, input *ModifyLunaClientInput, opts ...request.Option) (*ModifyLunaClientOutput, error) {
req, out := c.ModifyLunaClientRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opRemoveTagsFromResource = "RemoveTagsFromResource"
// RemoveTagsFromResourceRequest generates a "aws/request.Request" representing the
// client's request for the RemoveTagsFromResource operation. The "output" return
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See RemoveTagsFromResource for more information on using the RemoveTagsFromResource
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the RemoveTagsFromResourceRequest method.
// req, resp := client.RemoveTagsFromResourceRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/RemoveTagsFromResource
func (c *CloudHSM) RemoveTagsFromResourceRequest(input *RemoveTagsFromResourceInput) (req *request.Request, output *RemoveTagsFromResourceOutput) {
op := &request.Operation{
Name: opRemoveTagsFromResource,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &RemoveTagsFromResourceInput{}
}
output = &RemoveTagsFromResourceOutput{}
req = c.newRequest(op, input, output)
return
}
// RemoveTagsFromResource API operation for Amazon CloudHSM.
//
// This is documentation for AWS CloudHSM Classic. For more information, see
// AWS CloudHSM Classic FAQs (http://aws.amazon.com/cloudhsm/faqs-classic/),
// the AWS CloudHSM Classic User Guide (http://docs.aws.amazon.com/cloudhsm/classic/userguide/),
// and the AWS CloudHSM Classic API Reference (http://docs.aws.amazon.com/cloudhsm/classic/APIReference/).
//
// For information about the current version of AWS CloudHSM, see AWS CloudHSM
// (http://aws.amazon.com/cloudhsm/), the AWS CloudHSM User Guide (http://docs.aws.amazon.com/cloudhsm/latest/userguide/),
// and the AWS CloudHSM API Reference (http://docs.aws.amazon.com/cloudhsm/latest/APIReference/).
//
// Removes one or more tags from the specified AWS CloudHSM resource.
//
// To remove a tag, specify only the tag key to remove (not the value). To overwrite
// the value for an existing tag, use AddTagsToResource.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudHSM's
// API operation RemoveTagsFromResource for usage and error information.
//
// Returned Error Codes:
// * ErrCodeCloudHsmServiceException "CloudHsmServiceException"
// Indicates that an exception occurred in the AWS CloudHSM service.
//
// * ErrCodeCloudHsmInternalException "CloudHsmInternalException"
// Indicates that an internal error occurred.
//
// * ErrCodeInvalidRequestException "InvalidRequestException"
// Indicates that one or more of the request parameters are not valid.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/RemoveTagsFromResource
func (c *CloudHSM) RemoveTagsFromResource(input *RemoveTagsFromResourceInput) (*RemoveTagsFromResourceOutput, error) {
req, out := c.RemoveTagsFromResourceRequest(input)
return out, req.Send()
}
// RemoveTagsFromResourceWithContext is the same as RemoveTagsFromResource with the addition of
// the ability to pass a context and additional request options.
//
// See RemoveTagsFromResource for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *CloudHSM) RemoveTagsFromResourceWithContext(ctx aws.Context, input *RemoveTagsFromResourceInput, opts ...request.Option) (*RemoveTagsFromResourceOutput, error) {
req, out := c.RemoveTagsFromResourceRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type AddTagsToResourceInput struct {
_ struct{} `type:"structure"`
// The Amazon Resource Name (ARN) of the AWS CloudHSM resource to tag.
//
// ResourceArn is a required field
ResourceArn *string `type:"string" required:"true"`
// One or more tags.
//
// TagList is a required field
TagList []*Tag `type:"list" required:"true"`
}
// String returns the string representation
func (s AddTagsToResourceInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s AddTagsToResourceInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *AddTagsToResourceInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "AddTagsToResourceInput"}
if s.ResourceArn == nil {
invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
}
if s.TagList == nil {
invalidParams.Add(request.NewErrParamRequired("TagList"))
}
if s.TagList != nil {
for i, v := range s.TagList {
if v == nil {
continue
}
if err := v.Validate(); err != nil {
invalidParams.AddNested(fmt.Sprintf("%s[%v]", "TagList", i), err.(request.ErrInvalidParams))
}
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetResourceArn sets the ResourceArn field's value.
func (s *AddTagsToResourceInput) SetResourceArn(v string) *AddTagsToResourceInput {
s.ResourceArn = &v
return s
}
// SetTagList sets the TagList field's value.
func (s *AddTagsToResourceInput) SetTagList(v []*Tag) *AddTagsToResourceInput {
s.TagList = v
return s
}
type AddTagsToResourceOutput struct {
_ struct{} `type:"structure"`
// The status of the operation.
//
// Status is a required field
Status *string `type:"string" required:"true"`
}
// String returns the string representation
func (s AddTagsToResourceOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s AddTagsToResourceOutput) GoString() string {
return s.String()
}
// SetStatus sets the Status field's value.
func (s *AddTagsToResourceOutput) SetStatus(v string) *AddTagsToResourceOutput {
s.Status = &v
return s
}
// Contains the inputs for the CreateHapgRequest action.
type CreateHapgInput struct {
_ struct{} `type:"structure"`
// The label of the new high-availability partition group.
//
// Label is a required field
Label *string `type:"string" required:"true"`
}
// String returns the string representation
func (s CreateHapgInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s CreateHapgInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *CreateHapgInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "CreateHapgInput"}
if s.Label == nil {
invalidParams.Add(request.NewErrParamRequired("Label"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetLabel sets the Label field's value.
func (s *CreateHapgInput) SetLabel(v string) *CreateHapgInput {
s.Label = &v
return s
}
// Contains the output of the CreateHAPartitionGroup action.
type CreateHapgOutput struct {
_ struct{} `type:"structure"`
// The ARN of the high-availability partition group.
HapgArn *string `type:"string"`
}
// String returns the string representation
func (s CreateHapgOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s CreateHapgOutput) GoString() string {
return s.String()
}
// SetHapgArn sets the HapgArn field's value.
func (s *CreateHapgOutput) SetHapgArn(v string) *CreateHapgOutput {
s.HapgArn = &v
return s
}
// Contains the inputs for the CreateHsm operation.
type CreateHsmInput struct {
_ struct{} `locationName:"CreateHsmRequest" type:"structure"`
// A user-defined token to ensure idempotence. Subsequent calls to this operation
// with the same token will be ignored.
ClientToken *string `locationName:"ClientToken" type:"string"`
// The IP address to assign to the HSM's ENI.
//
// If an IP address is not specified, an IP address will be randomly chosen
// from the CIDR range of the subnet.
EniIp *string `locationName:"EniIp" type:"string"`
// The external ID from IamRoleArn, if present.
ExternalId *string `locationName:"ExternalId" type:"string"`
// The ARN of an IAM role to enable the AWS CloudHSM service to allocate an
// ENI on your behalf.
//
// IamRoleArn is a required field
IamRoleArn *string `locationName:"IamRoleArn" type:"string" required:"true"`
// The SSH public key to install on the HSM.
//
// SshKey is a required field
SshKey *string `locationName:"SshKey" type:"string" required:"true"`
// The identifier of the subnet in your VPC in which to place the HSM.
//
// SubnetId is a required field
SubnetId *string `locationName:"SubnetId" type:"string" required:"true"`
// Specifies the type of subscription for the HSM.
//
// * PRODUCTION - The HSM is being used in a production environment.
//
// * TRIAL - The HSM is being used in a product trial.
//
// SubscriptionType is a required field
SubscriptionType *string `locationName:"SubscriptionType" type:"string" required:"true" enum:"SubscriptionType"`
// The IP address for the syslog monitoring server. The AWS CloudHSM service
// only supports one syslog monitoring server.
SyslogIp *string `locationName:"SyslogIp" type:"string"`
}
// String returns the string representation
func (s CreateHsmInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s CreateHsmInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *CreateHsmInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "CreateHsmInput"}
if s.IamRoleArn == nil {
invalidParams.Add(request.NewErrParamRequired("IamRoleArn"))
}
if s.SshKey == nil {
invalidParams.Add(request.NewErrParamRequired("SshKey"))
}
if s.SubnetId == nil {
invalidParams.Add(request.NewErrParamRequired("SubnetId"))
}
if s.SubscriptionType == nil {
invalidParams.Add(request.NewErrParamRequired("SubscriptionType"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetClientToken sets the ClientToken field's value.
func (s *CreateHsmInput) SetClientToken(v string) *CreateHsmInput {
s.ClientToken = &v
return s
}
// SetEniIp sets the EniIp field's value.
func (s *CreateHsmInput) SetEniIp(v string) *CreateHsmInput {
s.EniIp = &v
return s
}
// SetExternalId sets the ExternalId field's value.
func (s *CreateHsmInput) SetExternalId(v string) *CreateHsmInput {
s.ExternalId = &v
return s
}
// SetIamRoleArn sets the IamRoleArn field's value.
func (s *CreateHsmInput) SetIamRoleArn(v string) *CreateHsmInput {
s.IamRoleArn = &v
return s
}
// SetSshKey sets the SshKey field's value.
func (s *CreateHsmInput) SetSshKey(v string) *CreateHsmInput {
s.SshKey = &v
return s
}
// SetSubnetId sets the SubnetId field's value.
func (s *CreateHsmInput) SetSubnetId(v string) *CreateHsmInput {
s.SubnetId = &v
return s
}
// SetSubscriptionType sets the SubscriptionType field's value.
func (s *CreateHsmInput) SetSubscriptionType(v string) *CreateHsmInput {
s.SubscriptionType = &v
return s
}
// SetSyslogIp sets the SyslogIp field's value.
func (s *CreateHsmInput) SetSyslogIp(v string) *CreateHsmInput {
s.SyslogIp = &v
return s
}
// Contains the output of the CreateHsm operation.
type CreateHsmOutput struct {
_ struct{} `type:"structure"`
// The ARN of the HSM.
HsmArn *string `type:"string"`
}
// String returns the string representation
func (s CreateHsmOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s CreateHsmOutput) GoString() string {
return s.String()
}
// SetHsmArn sets the HsmArn field's value.
func (s *CreateHsmOutput) SetHsmArn(v string) *CreateHsmOutput {
s.HsmArn = &v
return s
}
// Contains the inputs for the CreateLunaClient action.
type CreateLunaClientInput struct {
_ struct{} `type:"structure"`
// The contents of a Base64-Encoded X.509 v3 certificate to be installed on
// the HSMs used by this client.
//
// Certificate is a required field
Certificate *string `min:"600" type:"string" required:"true"`
// The label for the client.
Label *string `type:"string"`
}
// String returns the string representation
func (s CreateLunaClientInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s CreateLunaClientInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *CreateLunaClientInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "CreateLunaClientInput"}
if s.Certificate == nil {
invalidParams.Add(request.NewErrParamRequired("Certificate"))
}
if s.Certificate != nil && len(*s.Certificate) < 600 {
invalidParams.Add(request.NewErrParamMinLen("Certificate", 600))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetCertificate sets the Certificate field's value.
func (s *CreateLunaClientInput) SetCertificate(v string) *CreateLunaClientInput {
s.Certificate = &v
return s
}
// SetLabel sets the Label field's value.
func (s *CreateLunaClientInput) SetLabel(v string) *CreateLunaClientInput {
s.Label = &v
return s
}
// Contains the output of the CreateLunaClient action.
type CreateLunaClientOutput struct {
_ struct{} `type:"structure"`
// The ARN of the client.
ClientArn *string `type:"string"`
}
// String returns the string representation
func (s CreateLunaClientOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s CreateLunaClientOutput) GoString() string {
return s.String()
}
// SetClientArn sets the ClientArn field's value.
func (s *CreateLunaClientOutput) SetClientArn(v string) *CreateLunaClientOutput {
s.ClientArn = &v
return s
}
// Contains the inputs for the DeleteHapg action.
type DeleteHapgInput struct {
_ struct{} `type:"structure"`
// The ARN of the high-availability partition group to delete.
//
// HapgArn is a required field
HapgArn *string `type:"string" required:"true"`
}
// String returns the string representation
func (s DeleteHapgInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DeleteHapgInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *DeleteHapgInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "DeleteHapgInput"}
if s.HapgArn == nil {
invalidParams.Add(request.NewErrParamRequired("HapgArn"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetHapgArn sets the HapgArn field's value.
func (s *DeleteHapgInput) SetHapgArn(v string) *DeleteHapgInput {
s.HapgArn = &v
return s
}
// Contains the output of the DeleteHapg action.
type DeleteHapgOutput struct {
_ struct{} `type:"structure"`
// The status of the action.
//
// Status is a required field
Status *string `type:"string" required:"true"`
}
// String returns the string representation
func (s DeleteHapgOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DeleteHapgOutput) GoString() string {
return s.String()
}
// SetStatus sets the Status field's value.
func (s *DeleteHapgOutput) SetStatus(v string) *DeleteHapgOutput {
s.Status = &v
return s
}
// Contains the inputs for the DeleteHsm operation.
type DeleteHsmInput struct {
_ struct{} `locationName:"DeleteHsmRequest" type:"structure"`
// The ARN of the HSM to delete.
//
// HsmArn is a required field
HsmArn *string `locationName:"HsmArn" type:"string" required:"true"`
}
// String returns the string representation
func (s DeleteHsmInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DeleteHsmInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *DeleteHsmInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "DeleteHsmInput"}
if s.HsmArn == nil {
invalidParams.Add(request.NewErrParamRequired("HsmArn"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetHsmArn sets the HsmArn field's value.
func (s *DeleteHsmInput) SetHsmArn(v string) *DeleteHsmInput {
s.HsmArn = &v
return s
}
// Contains the output of the DeleteHsm operation.
type DeleteHsmOutput struct {
_ struct{} `type:"structure"`
// The status of the operation.
//
// Status is a required field
Status *string `type:"string" required:"true"`
}
// String returns the string representation
func (s DeleteHsmOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DeleteHsmOutput) GoString() string {
return s.String()
}
// SetStatus sets the Status field's value.
func (s *DeleteHsmOutput) SetStatus(v string) *DeleteHsmOutput {
s.Status = &v
return s
}
type DeleteLunaClientInput struct {
_ struct{} `type:"structure"`
// The ARN of the client to delete.
//
// ClientArn is a required field
ClientArn *string `type:"string" required:"true"`
}
// String returns the string representation
func (s DeleteLunaClientInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DeleteLunaClientInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *DeleteLunaClientInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "DeleteLunaClientInput"}
if s.ClientArn == nil {
invalidParams.Add(request.NewErrParamRequired("ClientArn"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetClientArn sets the ClientArn field's value.
func (s *DeleteLunaClientInput) SetClientArn(v string) *DeleteLunaClientInput {
s.ClientArn = &v
return s
}
type DeleteLunaClientOutput struct {
_ struct{} `type:"structure"`
// The status of the action.
//
// Status is a required field
Status *string `type:"string" required:"true"`
}
// String returns the string representation
func (s DeleteLunaClientOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DeleteLunaClientOutput) GoString() string {
return s.String()
}
// SetStatus sets the Status field's value.
func (s *DeleteLunaClientOutput) SetStatus(v string) *DeleteLunaClientOutput {
s.Status = &v
return s
}
// Contains the inputs for the DescribeHapg action.
type DescribeHapgInput struct {
_ struct{} `type:"structure"`
// The ARN of the high-availability partition group to describe.
//
// HapgArn is a required field
HapgArn *string `type:"string" required:"true"`
}
// String returns the string representation
func (s DescribeHapgInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribeHapgInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *DescribeHapgInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "DescribeHapgInput"}
if s.HapgArn == nil {
invalidParams.Add(request.NewErrParamRequired("HapgArn"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetHapgArn sets the HapgArn field's value.
func (s *DescribeHapgInput) SetHapgArn(v string) *DescribeHapgInput {
s.HapgArn = &v
return s
}
// Contains the output of the DescribeHapg action.
type DescribeHapgOutput struct {
_ struct{} `type:"structure"`
// The ARN of the high-availability partition group.
HapgArn *string `type:"string"`
// The serial number of the high-availability partition group.
HapgSerial *string `type:"string"`
// Contains a list of ARNs that identify the HSMs.
HsmsLastActionFailed []*string `type:"list"`
// Contains a list of ARNs that identify the HSMs.
HsmsPendingDeletion []*string `type:"list"`
// Contains a list of ARNs that identify the HSMs.
HsmsPendingRegistration []*string `type:"list"`
// The label for the high-availability partition group.
Label *string `type:"string"`
// The date and time the high-availability partition group was last modified.
LastModifiedTimestamp *string `type:"string"`
// The list of partition serial numbers that belong to the high-availability
// partition group.
PartitionSerialList []*string `type:"list"`
// The state of the high-availability partition group.
State *string `type:"string" enum:"CloudHsmObjectState"`
}
// String returns the string representation
func (s DescribeHapgOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribeHapgOutput) GoString() string {
return s.String()
}
// SetHapgArn sets the HapgArn field's value.
func (s *DescribeHapgOutput) SetHapgArn(v string) *DescribeHapgOutput {
s.HapgArn = &v
return s
}
// SetHapgSerial sets the HapgSerial field's value.
func (s *DescribeHapgOutput) SetHapgSerial(v string) *DescribeHapgOutput {
s.HapgSerial = &v
return s
}
// SetHsmsLastActionFailed sets the HsmsLastActionFailed field's value.
func (s *DescribeHapgOutput) SetHsmsLastActionFailed(v []*string) *DescribeHapgOutput {
s.HsmsLastActionFailed = v
return s
}
// SetHsmsPendingDeletion sets the HsmsPendingDeletion field's value.
func (s *DescribeHapgOutput) SetHsmsPendingDeletion(v []*string) *DescribeHapgOutput {
s.HsmsPendingDeletion = v
return s
}
// SetHsmsPendingRegistration sets the HsmsPendingRegistration field's value.
func (s *DescribeHapgOutput) SetHsmsPendingRegistration(v []*string) *DescribeHapgOutput {
s.HsmsPendingRegistration = v
return s
}
// SetLabel sets the Label field's value.
func (s *DescribeHapgOutput) SetLabel(v string) *DescribeHapgOutput {
s.Label = &v
return s
}
// SetLastModifiedTimestamp sets the LastModifiedTimestamp field's value.
func (s *DescribeHapgOutput) SetLastModifiedTimestamp(v string) *DescribeHapgOutput {
s.LastModifiedTimestamp = &v
return s
}
// SetPartitionSerialList sets the PartitionSerialList field's value.
func (s *DescribeHapgOutput) SetPartitionSerialList(v []*string) *DescribeHapgOutput {
s.PartitionSerialList = v
return s
}
// SetState sets the State field's value.
func (s *DescribeHapgOutput) SetState(v string) *DescribeHapgOutput {
s.State = &v
return s
}
// Contains the inputs for the DescribeHsm operation.
type DescribeHsmInput struct {
_ struct{} `type:"structure"`
// The ARN of the HSM. Either the HsmArn or the SerialNumber parameter must
// be specified.
HsmArn *string `type:"string"`
// The serial number of the HSM. Either the HsmArn or the HsmSerialNumber parameter
// must be specified.
HsmSerialNumber *string `type:"string"`
}
// String returns the string representation
func (s DescribeHsmInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribeHsmInput) GoString() string {
return s.String()
}
// SetHsmArn sets the HsmArn field's value.
func (s *DescribeHsmInput) SetHsmArn(v string) *DescribeHsmInput {
s.HsmArn = &v
return s
}
// SetHsmSerialNumber sets the HsmSerialNumber field's value.
func (s *DescribeHsmInput) SetHsmSerialNumber(v string) *DescribeHsmInput {
s.HsmSerialNumber = &v
return s
}
// Contains the output of the DescribeHsm operation.
type DescribeHsmOutput struct {
_ struct{} `type:"structure"`
// The Availability Zone that the HSM is in.
AvailabilityZone *string `type:"string"`
// The identifier of the elastic network interface (ENI) attached to the HSM.
EniId *string `type:"string"`
// The IP address assigned to the HSM's ENI.
EniIp *string `type:"string"`
// The ARN of the HSM.
HsmArn *string `type:"string"`
// The HSM model type.
HsmType *string `type:"string"`
// The ARN of the IAM role assigned to the HSM.
IamRoleArn *string `type:"string"`
// The list of partitions on the HSM.
Partitions []*string `type:"list"`
// The serial number of the HSM.
SerialNumber *string `type:"string"`
// The date and time that the server certificate was last updated.
ServerCertLastUpdated *string `type:"string"`
// The URI of the certificate server.
ServerCertUri *string `type:"string"`
// The HSM software version.
SoftwareVersion *string `type:"string"`
// The date and time that the SSH key was last updated.
SshKeyLastUpdated *string `type:"string"`
// The public SSH key.
SshPublicKey *string `type:"string"`
// The status of the HSM.
Status *string `type:"string" enum:"HsmStatus"`
// Contains additional information about the status of the HSM.
StatusDetails *string `type:"string"`
// The identifier of the subnet that the HSM is in.
SubnetId *string `type:"string"`
// The subscription end date.
SubscriptionEndDate *string `type:"string"`
// The subscription start date.
SubscriptionStartDate *string `type:"string"`
// Specifies the type of subscription for the HSM.
//
// * PRODUCTION - The HSM is being used in a production environment.
//
// * TRIAL - The HSM is being used in a product trial.
SubscriptionType *string `type:"string" enum:"SubscriptionType"`
// The name of the HSM vendor.
VendorName *string `type:"string"`
// The identifier of the VPC that the HSM is in.
VpcId *string `type:"string"`
}
// String returns the string representation
func (s DescribeHsmOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribeHsmOutput) GoString() string {
return s.String()
}
// SetAvailabilityZone sets the AvailabilityZone field's value.
func (s *DescribeHsmOutput) SetAvailabilityZone(v string) *DescribeHsmOutput {
s.AvailabilityZone = &v
return s
}
// SetEniId sets the EniId field's value.
func (s *DescribeHsmOutput) SetEniId(v string) *DescribeHsmOutput {
s.EniId = &v
return s
}
// SetEniIp sets the EniIp field's value.
func (s *DescribeHsmOutput) SetEniIp(v string) *DescribeHsmOutput {
s.EniIp = &v
return s
}
// SetHsmArn sets the HsmArn field's value.
func (s *DescribeHsmOutput) SetHsmArn(v string) *DescribeHsmOutput {
s.HsmArn = &v
return s
}
// SetHsmType sets the HsmType field's value.
func (s *DescribeHsmOutput) SetHsmType(v string) *DescribeHsmOutput {
s.HsmType = &v
return s
}
// SetIamRoleArn sets the IamRoleArn field's value.
func (s *DescribeHsmOutput) SetIamRoleArn(v string) *DescribeHsmOutput {
s.IamRoleArn = &v
return s
}
// SetPartitions sets the Partitions field's value.
func (s *DescribeHsmOutput) SetPartitions(v []*string) *DescribeHsmOutput {
s.Partitions = v
return s
}
// SetSerialNumber sets the SerialNumber field's value.
func (s *DescribeHsmOutput) SetSerialNumber(v string) *DescribeHsmOutput {
s.SerialNumber = &v
return s
}
// SetServerCertLastUpdated sets the ServerCertLastUpdated field's value.
func (s *DescribeHsmOutput) SetServerCertLastUpdated(v string) *DescribeHsmOutput {
s.ServerCertLastUpdated = &v
return s
}
// SetServerCertUri sets the ServerCertUri field's value.
func (s *DescribeHsmOutput) SetServerCertUri(v string) *DescribeHsmOutput {
s.ServerCertUri = &v
return s
}
// SetSoftwareVersion sets the SoftwareVersion field's value.
func (s *DescribeHsmOutput) SetSoftwareVersion(v string) *DescribeHsmOutput {
s.SoftwareVersion = &v
return s
}
// SetSshKeyLastUpdated sets the SshKeyLastUpdated field's value.
func (s *DescribeHsmOutput) SetSshKeyLastUpdated(v string) *DescribeHsmOutput {
s.SshKeyLastUpdated = &v
return s
}
// SetSshPublicKey sets the SshPublicKey field's value.
func (s *DescribeHsmOutput) SetSshPublicKey(v string) *DescribeHsmOutput {
s.SshPublicKey = &v
return s
}
// SetStatus sets the Status field's value.
func (s *DescribeHsmOutput) SetStatus(v string) *DescribeHsmOutput {
s.Status = &v
return s
}
// SetStatusDetails sets the StatusDetails field's value.
func (s *DescribeHsmOutput) SetStatusDetails(v string) *DescribeHsmOutput {
s.StatusDetails = &v
return s
}
// SetSubnetId sets the SubnetId field's value.
func (s *DescribeHsmOutput) SetSubnetId(v string) *DescribeHsmOutput {
s.SubnetId = &v
return s
}
// SetSubscriptionEndDate sets the SubscriptionEndDate field's value.
func (s *DescribeHsmOutput) SetSubscriptionEndDate(v string) *DescribeHsmOutput {
s.SubscriptionEndDate = &v
return s
}
// SetSubscriptionStartDate sets the SubscriptionStartDate field's value.
func (s *DescribeHsmOutput) SetSubscriptionStartDate(v string) *DescribeHsmOutput {
s.SubscriptionStartDate = &v
return s
}
// SetSubscriptionType sets the SubscriptionType field's value.
func (s *DescribeHsmOutput) SetSubscriptionType(v string) *DescribeHsmOutput {
s.SubscriptionType = &v
return s
}
// SetVendorName sets the VendorName field's value.
func (s *DescribeHsmOutput) SetVendorName(v string) *DescribeHsmOutput {
s.VendorName = &v
return s
}
// SetVpcId sets the VpcId field's value.
func (s *DescribeHsmOutput) SetVpcId(v string) *DescribeHsmOutput {
s.VpcId = &v
return s
}
type DescribeLunaClientInput struct {
_ struct{} `type:"structure"`
// The certificate fingerprint.
CertificateFingerprint *string `type:"string"`
// The ARN of the client.
ClientArn *string `type:"string"`
}
// String returns the string representation
func (s DescribeLunaClientInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribeLunaClientInput) GoString() string {
return s.String()
}
// SetCertificateFingerprint sets the CertificateFingerprint field's value.
func (s *DescribeLunaClientInput) SetCertificateFingerprint(v string) *DescribeLunaClientInput {
s.CertificateFingerprint = &v
return s
}
// SetClientArn sets the ClientArn field's value.
func (s *DescribeLunaClientInput) SetClientArn(v string) *DescribeLunaClientInput {
s.ClientArn = &v
return s
}
type DescribeLunaClientOutput struct {
_ struct{} `type:"structure"`
// The certificate installed on the HSMs used by this client.
Certificate *string `min:"600" type:"string"`
// The certificate fingerprint.
CertificateFingerprint *string `type:"string"`
// The ARN of the client.
ClientArn *string `type:"string"`
// The label of the client.
Label *string `type:"string"`
// The date and time the client was last modified.
LastModifiedTimestamp *string `type:"string"`
}
// String returns the string representation
func (s DescribeLunaClientOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribeLunaClientOutput) GoString() string {
return s.String()
}
// SetCertificate sets the Certificate field's value.
func (s *DescribeLunaClientOutput) SetCertificate(v string) *DescribeLunaClientOutput {
s.Certificate = &v
return s
}
// SetCertificateFingerprint sets the CertificateFingerprint field's value.
func (s *DescribeLunaClientOutput) SetCertificateFingerprint(v string) *DescribeLunaClientOutput {
s.CertificateFingerprint = &v
return s
}
// SetClientArn sets the ClientArn field's value.
func (s *DescribeLunaClientOutput) SetClientArn(v string) *DescribeLunaClientOutput {
s.ClientArn = &v
return s
}
// SetLabel sets the Label field's value.
func (s *DescribeLunaClientOutput) SetLabel(v string) *DescribeLunaClientOutput {
s.Label = &v
return s
}
// SetLastModifiedTimestamp sets the LastModifiedTimestamp field's value.
func (s *DescribeLunaClientOutput) SetLastModifiedTimestamp(v string) *DescribeLunaClientOutput {
s.LastModifiedTimestamp = &v
return s
}
type GetConfigInput struct {
_ struct{} `type:"structure"`
// The ARN of the client.
//
// ClientArn is a required field
ClientArn *string `type:"string" required:"true"`
// The client version.
//
// ClientVersion is a required field
ClientVersion *string `type:"string" required:"true" enum:"ClientVersion"`
// A list of ARNs that identify the high-availability partition groups that
// are associated with the client.
//
// HapgList is a required field
HapgList []*string `type:"list" required:"true"`
}
// String returns the string representation
func (s GetConfigInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s GetConfigInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *GetConfigInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "GetConfigInput"}
if s.ClientArn == nil {
invalidParams.Add(request.NewErrParamRequired("ClientArn"))
}
if s.ClientVersion == nil {
invalidParams.Add(request.NewErrParamRequired("ClientVersion"))
}
if s.HapgList == nil {
invalidParams.Add(request.NewErrParamRequired("HapgList"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetClientArn sets the ClientArn field's value.
func (s *GetConfigInput) SetClientArn(v string) *GetConfigInput {
s.ClientArn = &v
return s
}
// SetClientVersion sets the ClientVersion field's value.
func (s *GetConfigInput) SetClientVersion(v string) *GetConfigInput {
s.ClientVersion = &v
return s
}
// SetHapgList sets the HapgList field's value.
func (s *GetConfigInput) SetHapgList(v []*string) *GetConfigInput {
s.HapgList = v
return s
}
type GetConfigOutput struct {
_ struct{} `type:"structure"`
// The certificate file containing the server.pem files of the HSMs.
ConfigCred *string `type:"string"`
// The chrystoki.conf configuration file.
ConfigFile *string `type:"string"`
// The type of credentials.
ConfigType *string `type:"string"`
}
// String returns the string representation
func (s GetConfigOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s GetConfigOutput) GoString() string {
return s.String()
}
// SetConfigCred sets the ConfigCred field's value.
func (s *GetConfigOutput) SetConfigCred(v string) *GetConfigOutput {
s.ConfigCred = &v
return s
}
// SetConfigFile sets the ConfigFile field's value.
func (s *GetConfigOutput) SetConfigFile(v string) *GetConfigOutput {
s.ConfigFile = &v
return s
}
// SetConfigType sets the ConfigType field's value.
func (s *GetConfigOutput) SetConfigType(v string) *GetConfigOutput {
s.ConfigType = &v
return s
}
// Contains the inputs for the ListAvailableZones action.
type ListAvailableZonesInput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s ListAvailableZonesInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ListAvailableZonesInput) GoString() string {
return s.String()
}
type ListAvailableZonesOutput struct {
_ struct{} `type:"structure"`
// The list of Availability Zones that have available AWS CloudHSM capacity.
AZList []*string `type:"list"`
}
// String returns the string representation
func (s ListAvailableZonesOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ListAvailableZonesOutput) GoString() string {
return s.String()
}
// SetAZList sets the AZList field's value.
func (s *ListAvailableZonesOutput) SetAZList(v []*string) *ListAvailableZonesOutput {
s.AZList = v
return s
}
type ListHapgsInput struct {
_ struct{} `type:"structure"`
// The NextToken value from a previous call to ListHapgs. Pass null if this
// is the first call.
NextToken *string `type:"string"`
}
// String returns the string representation
func (s ListHapgsInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ListHapgsInput) GoString() string {
return s.String()
}
// SetNextToken sets the NextToken field's value.
func (s *ListHapgsInput) SetNextToken(v string) *ListHapgsInput {
s.NextToken = &v
return s
}
type ListHapgsOutput struct {
_ struct{} `type:"structure"`
// The list of high-availability partition groups.
//
// HapgList is a required field
HapgList []*string `type:"list" required:"true"`
// If not null, more results are available. Pass this value to ListHapgs to
// retrieve the next set of items.
NextToken *string `type:"string"`
}
// String returns the string representation
func (s ListHapgsOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ListHapgsOutput) GoString() string {
return s.String()
}
// SetHapgList sets the HapgList field's value.
func (s *ListHapgsOutput) SetHapgList(v []*string) *ListHapgsOutput {
s.HapgList = v
return s
}
// SetNextToken sets the NextToken field's value.
func (s *ListHapgsOutput) SetNextToken(v string) *ListHapgsOutput {
s.NextToken = &v
return s
}
type ListHsmsInput struct {
_ struct{} `type:"structure"`
// The NextToken value from a previous call to ListHsms. Pass null if this is
// the first call.
NextToken *string `type:"string"`
}
// String returns the string representation
func (s ListHsmsInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ListHsmsInput) GoString() string {
return s.String()
}
// SetNextToken sets the NextToken field's value.
func (s *ListHsmsInput) SetNextToken(v string) *ListHsmsInput {
s.NextToken = &v
return s
}
// Contains the output of the ListHsms operation.
type ListHsmsOutput struct {
_ struct{} `type:"structure"`
// The list of ARNs that identify the HSMs.
HsmList []*string `type:"list"`
// If not null, more results are available. Pass this value to ListHsms to retrieve
// the next set of items.
NextToken *string `type:"string"`
}
// String returns the string representation
func (s ListHsmsOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ListHsmsOutput) GoString() string {
return s.String()
}
// SetHsmList sets the HsmList field's value.
func (s *ListHsmsOutput) SetHsmList(v []*string) *ListHsmsOutput {
s.HsmList = v
return s
}
// SetNextToken sets the NextToken field's value.
func (s *ListHsmsOutput) SetNextToken(v string) *ListHsmsOutput {
s.NextToken = &v
return s
}
type ListLunaClientsInput struct {
_ struct{} `type:"structure"`
// The NextToken value from a previous call to ListLunaClients. Pass null if
// this is the first call.
NextToken *string `type:"string"`
}
// String returns the string representation
func (s ListLunaClientsInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ListLunaClientsInput) GoString() string {
return s.String()
}
// SetNextToken sets the NextToken field's value.
func (s *ListLunaClientsInput) SetNextToken(v string) *ListLunaClientsInput {
s.NextToken = &v
return s
}
type ListLunaClientsOutput struct {
_ struct{} `type:"structure"`
// The list of clients.
//
// ClientList is a required field
ClientList []*string `type:"list" required:"true"`
// If not null, more results are available. Pass this to ListLunaClients to
// retrieve the next set of items.
NextToken *string `type:"string"`
}
// String returns the string representation
func (s ListLunaClientsOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ListLunaClientsOutput) GoString() string {
return s.String()
}
// SetClientList sets the ClientList field's value.
func (s *ListLunaClientsOutput) SetClientList(v []*string) *ListLunaClientsOutput {
s.ClientList = v
return s
}
// SetNextToken sets the NextToken field's value.
func (s *ListLunaClientsOutput) SetNextToken(v string) *ListLunaClientsOutput {
s.NextToken = &v
return s
}
type ListTagsForResourceInput struct {
_ struct{} `type:"structure"`
// The Amazon Resource Name (ARN) of the AWS CloudHSM resource.
//
// ResourceArn is a required field
ResourceArn *string `type:"string" required:"true"`
}
// String returns the string representation
func (s ListTagsForResourceInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ListTagsForResourceInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *ListTagsForResourceInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "ListTagsForResourceInput"}
if s.ResourceArn == nil {
invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetResourceArn sets the ResourceArn field's value.
func (s *ListTagsForResourceInput) SetResourceArn(v string) *ListTagsForResourceInput {
s.ResourceArn = &v
return s
}
type ListTagsForResourceOutput struct {
_ struct{} `type:"structure"`
// One or more tags.
//
// TagList is a required field
TagList []*Tag `type:"list" required:"true"`
}
// String returns the string representation
func (s ListTagsForResourceOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ListTagsForResourceOutput) GoString() string {
return s.String()
}
// SetTagList sets the TagList field's value.
func (s *ListTagsForResourceOutput) SetTagList(v []*Tag) *ListTagsForResourceOutput {
s.TagList = v
return s
}
type ModifyHapgInput struct {
_ struct{} `type:"structure"`
// The ARN of the high-availability partition group to modify.
//
// HapgArn is a required field
HapgArn *string `type:"string" required:"true"`
// The new label for the high-availability partition group.
Label *string `type:"string"`
// The list of partition serial numbers to make members of the high-availability
// partition group.
PartitionSerialList []*string `type:"list"`
}
// String returns the string representation
func (s ModifyHapgInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ModifyHapgInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *ModifyHapgInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "ModifyHapgInput"}
if s.HapgArn == nil {
invalidParams.Add(request.NewErrParamRequired("HapgArn"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetHapgArn sets the HapgArn field's value.
func (s *ModifyHapgInput) SetHapgArn(v string) *ModifyHapgInput {
s.HapgArn = &v
return s
}
// SetLabel sets the Label field's value.
func (s *ModifyHapgInput) SetLabel(v string) *ModifyHapgInput {
s.Label = &v
return s
}
// SetPartitionSerialList sets the PartitionSerialList field's value.
func (s *ModifyHapgInput) SetPartitionSerialList(v []*string) *ModifyHapgInput {
s.PartitionSerialList = v
return s
}
type ModifyHapgOutput struct {
_ struct{} `type:"structure"`
// The ARN of the high-availability partition group.
HapgArn *string `type:"string"`
}
// String returns the string representation
func (s ModifyHapgOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ModifyHapgOutput) GoString() string {
return s.String()
}
// SetHapgArn sets the HapgArn field's value.
func (s *ModifyHapgOutput) SetHapgArn(v string) *ModifyHapgOutput {
s.HapgArn = &v
return s
}
// Contains the inputs for the ModifyHsm operation.
type ModifyHsmInput struct {
_ struct{} `locationName:"ModifyHsmRequest" type:"structure"`
// The new IP address for the elastic network interface (ENI) attached to the
// HSM.
//
// If the HSM is moved to a different subnet, and an IP address is not specified,
// an IP address will be randomly chosen from the CIDR range of the new subnet.
EniIp *string `locationName:"EniIp" type:"string"`
// The new external ID.
ExternalId *string `locationName:"ExternalId" type:"string"`
// The ARN of the HSM to modify.
//
// HsmArn is a required field
HsmArn *string `locationName:"HsmArn" type:"string" required:"true"`
// The new IAM role ARN.
IamRoleArn *string `locationName:"IamRoleArn" type:"string"`
// The new identifier of the subnet that the HSM is in. The new subnet must
// be in the same Availability Zone as the current subnet.
SubnetId *string `locationName:"SubnetId" type:"string"`
// The new IP address for the syslog monitoring server. The AWS CloudHSM service
// only supports one syslog monitoring server.
SyslogIp *string `locationName:"SyslogIp" type:"string"`
}
// String returns the string representation
func (s ModifyHsmInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ModifyHsmInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *ModifyHsmInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "ModifyHsmInput"}
if s.HsmArn == nil {
invalidParams.Add(request.NewErrParamRequired("HsmArn"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetEniIp sets the EniIp field's value.
func (s *ModifyHsmInput) SetEniIp(v string) *ModifyHsmInput {
s.EniIp = &v
return s
}
// SetExternalId sets the ExternalId field's value.
func (s *ModifyHsmInput) SetExternalId(v string) *ModifyHsmInput {
s.ExternalId = &v
return s
}
// SetHsmArn sets the HsmArn field's value.
func (s *ModifyHsmInput) SetHsmArn(v string) *ModifyHsmInput {
s.HsmArn = &v
return s
}
// SetIamRoleArn sets the IamRoleArn field's value.
func (s *ModifyHsmInput) SetIamRoleArn(v string) *ModifyHsmInput {
s.IamRoleArn = &v
return s
}
// SetSubnetId sets the SubnetId field's value.
func (s *ModifyHsmInput) SetSubnetId(v string) *ModifyHsmInput {
s.SubnetId = &v
return s
}
// SetSyslogIp sets the SyslogIp field's value.
func (s *ModifyHsmInput) SetSyslogIp(v string) *ModifyHsmInput {
s.SyslogIp = &v
return s
}
// Contains the output of the ModifyHsm operation.
type ModifyHsmOutput struct {
_ struct{} `type:"structure"`
// The ARN of the HSM.
HsmArn *string `type:"string"`
}
// String returns the string representation
func (s ModifyHsmOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ModifyHsmOutput) GoString() string {
return s.String()
}
// SetHsmArn sets the HsmArn field's value.
func (s *ModifyHsmOutput) SetHsmArn(v string) *ModifyHsmOutput {
s.HsmArn = &v
return s
}
type ModifyLunaClientInput struct {
_ struct{} `type:"structure"`
// The new certificate for the client.
//
// Certificate is a required field
Certificate *string `min:"600" type:"string" required:"true"`
// The ARN of the client.
//
// ClientArn is a required field
ClientArn *string `type:"string" required:"true"`
}
// String returns the string representation
func (s ModifyLunaClientInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ModifyLunaClientInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *ModifyLunaClientInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "ModifyLunaClientInput"}
if s.Certificate == nil {
invalidParams.Add(request.NewErrParamRequired("Certificate"))
}
if s.Certificate != nil && len(*s.Certificate) < 600 {
invalidParams.Add(request.NewErrParamMinLen("Certificate", 600))
}
if s.ClientArn == nil {
invalidParams.Add(request.NewErrParamRequired("ClientArn"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetCertificate sets the Certificate field's value.
func (s *ModifyLunaClientInput) SetCertificate(v string) *ModifyLunaClientInput {
s.Certificate = &v
return s
}
// SetClientArn sets the ClientArn field's value.
func (s *ModifyLunaClientInput) SetClientArn(v string) *ModifyLunaClientInput {
s.ClientArn = &v
return s
}
type ModifyLunaClientOutput struct {
_ struct{} `type:"structure"`
// The ARN of the client.
ClientArn *string `type:"string"`
}
// String returns the string representation
func (s ModifyLunaClientOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ModifyLunaClientOutput) GoString() string {
return s.String()
}
// SetClientArn sets the ClientArn field's value.
func (s *ModifyLunaClientOutput) SetClientArn(v string) *ModifyLunaClientOutput {
s.ClientArn = &v
return s
}
type RemoveTagsFromResourceInput struct {
_ struct{} `type:"structure"`
// The Amazon Resource Name (ARN) of the AWS CloudHSM resource.
//
// ResourceArn is a required field
ResourceArn *string `type:"string" required:"true"`
// The tag key or keys to remove.
//
// Specify only the tag key to remove (not the value). To overwrite the value
// for an existing tag, use AddTagsToResource.
//
// TagKeyList is a required field
TagKeyList []*string `type:"list" required:"true"`
}
// String returns the string representation
func (s RemoveTagsFromResourceInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s RemoveTagsFromResourceInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *RemoveTagsFromResourceInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "RemoveTagsFromResourceInput"}
if s.ResourceArn == nil {
invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
}
if s.TagKeyList == nil {
invalidParams.Add(request.NewErrParamRequired("TagKeyList"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetResourceArn sets the ResourceArn field's value.
func (s *RemoveTagsFromResourceInput) SetResourceArn(v string) *RemoveTagsFromResourceInput {
s.ResourceArn = &v
return s
}
// SetTagKeyList sets the TagKeyList field's value.
func (s *RemoveTagsFromResourceInput) SetTagKeyList(v []*string) *RemoveTagsFromResourceInput {
s.TagKeyList = v
return s
}
type RemoveTagsFromResourceOutput struct {
_ struct{} `type:"structure"`
// The status of the operation.
//
// Status is a required field
Status *string `type:"string" required:"true"`
}
// String returns the string representation
func (s RemoveTagsFromResourceOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s RemoveTagsFromResourceOutput) GoString() string {
return s.String()
}
// SetStatus sets the Status field's value.
func (s *RemoveTagsFromResourceOutput) SetStatus(v string) *RemoveTagsFromResourceOutput {
s.Status = &v
return s
}
// A key-value pair that identifies or specifies metadata about an AWS CloudHSM
// resource.
type Tag struct {
_ struct{} `type:"structure"`
// The key of the tag.
//
// Key is a required field
Key *string `min:"1" type:"string" required:"true"`
// The value of the tag.
//
// Value is a required field
Value *string `type:"string" required:"true"`
}
// String returns the string representation
func (s Tag) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s Tag) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *Tag) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "Tag"}
if s.Key == nil {
invalidParams.Add(request.NewErrParamRequired("Key"))
}
if s.Key != nil && len(*s.Key) < 1 {
invalidParams.Add(request.NewErrParamMinLen("Key", 1))
}
if s.Value == nil {
invalidParams.Add(request.NewErrParamRequired("Value"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetKey sets the Key field's value.
func (s *Tag) SetKey(v string) *Tag {
s.Key = &v
return s
}
// SetValue sets the Value field's value.
func (s *Tag) SetValue(v string) *Tag {
s.Value = &v
return s
}
const (
// ClientVersion51 is a ClientVersion enum value
ClientVersion51 = "5.1"
// ClientVersion53 is a ClientVersion enum value
ClientVersion53 = "5.3"
)
const (
// CloudHsmObjectStateReady is a CloudHsmObjectState enum value
CloudHsmObjectStateReady = "READY"
// CloudHsmObjectStateUpdating is a CloudHsmObjectState enum value
CloudHsmObjectStateUpdating = "UPDATING"
// CloudHsmObjectStateDegraded is a CloudHsmObjectState enum value
CloudHsmObjectStateDegraded = "DEGRADED"
)
const (
// HsmStatusPending is a HsmStatus enum value
HsmStatusPending = "PENDING"
// HsmStatusRunning is a HsmStatus enum value
HsmStatusRunning = "RUNNING"
// HsmStatusUpdating is a HsmStatus enum value
HsmStatusUpdating = "UPDATING"
// HsmStatusSuspended is a HsmStatus enum value
HsmStatusSuspended = "SUSPENDED"
// HsmStatusTerminating is a HsmStatus enum value
HsmStatusTerminating = "TERMINATING"
// HsmStatusTerminated is a HsmStatus enum value
HsmStatusTerminated = "TERMINATED"
// HsmStatusDegraded is a HsmStatus enum value
HsmStatusDegraded = "DEGRADED"
)
// Specifies the type of subscription for the HSM.
//
// * PRODUCTION - The HSM is being used in a production environment.
//
// * TRIAL - The HSM is being used in a product trial.
const (
// SubscriptionTypeProduction is a SubscriptionType enum value
SubscriptionTypeProduction = "PRODUCTION"
)
1
https://gitee.com/mirrors/aws-sdk-go.git
git@gitee.com:mirrors/aws-sdk-go.git
mirrors
aws-sdk-go
aws-sdk-go
v1.14.30

Search

53164aa7 5694891 3bd8fe86 5694891