| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145 |
- // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
- package acmpca
- import (
- "fmt"
- "time"
- "github.com/aws/aws-sdk-go/aws"
- "github.com/aws/aws-sdk-go/aws/awsutil"
- "github.com/aws/aws-sdk-go/aws/request"
- "github.com/aws/aws-sdk-go/private/protocol"
- "github.com/aws/aws-sdk-go/private/protocol/jsonrpc"
- )
- const opCreateCertificateAuthority = "CreateCertificateAuthority"
- // CreateCertificateAuthorityRequest generates a "aws/request.Request" representing the
- // client's request for the CreateCertificateAuthority operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // 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 CreateCertificateAuthority for more information on using the CreateCertificateAuthority
- // 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 CreateCertificateAuthorityRequest method.
- // req, resp := client.CreateCertificateAuthorityRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/acm-pca-2017-08-22/CreateCertificateAuthority
- func (c *ACMPCA) CreateCertificateAuthorityRequest(input *CreateCertificateAuthorityInput) (req *request.Request, output *CreateCertificateAuthorityOutput) {
- op := &request.Operation{
- Name: opCreateCertificateAuthority,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &CreateCertificateAuthorityInput{}
- }
- output = &CreateCertificateAuthorityOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // CreateCertificateAuthority API operation for AWS Certificate Manager Private Certificate Authority.
- //
- // Creates a private subordinate certificate authority (CA). You must specify
- // the CA configuration, the revocation configuration, the CA type, and an optional
- // idempotency token. The CA configuration specifies the name of the algorithm
- // and key size to be used to create the CA private key, the type of signing
- // algorithm that the CA uses to sign, and X.500 subject information. The CRL
- // (certificate revocation list) configuration specifies the CRL expiration
- // period in days (the validity period of the CRL), the Amazon S3 bucket that
- // will contain the CRL, and a CNAME alias for the S3 bucket that is included
- // in certificates issued by the CA. If successful, this operation returns the
- // Amazon Resource Name (ARN) of the CA.
- //
- // 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 AWS Certificate Manager Private Certificate Authority's
- // API operation CreateCertificateAuthority for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidArgsException "InvalidArgsException"
- // One or more of the specified arguments was not valid.
- //
- // * ErrCodeInvalidPolicyException "InvalidPolicyException"
- // The S3 bucket policy is not valid. The policy must give ACM PCA rights to
- // read from and write to the bucket and find the bucket location.
- //
- // * ErrCodeInvalidTagException "InvalidTagException"
- // The tag associated with the CA is not valid. The invalid argument is contained
- // in the message field.
- //
- // * ErrCodeLimitExceededException "LimitExceededException"
- // An ACM PCA limit has been exceeded. See the exception message returned to
- // determine the limit that was exceeded.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/acm-pca-2017-08-22/CreateCertificateAuthority
- func (c *ACMPCA) CreateCertificateAuthority(input *CreateCertificateAuthorityInput) (*CreateCertificateAuthorityOutput, error) {
- req, out := c.CreateCertificateAuthorityRequest(input)
- return out, req.Send()
- }
- // CreateCertificateAuthorityWithContext is the same as CreateCertificateAuthority with the addition of
- // the ability to pass a context and additional request options.
- //
- // See CreateCertificateAuthority 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 *ACMPCA) CreateCertificateAuthorityWithContext(ctx aws.Context, input *CreateCertificateAuthorityInput, opts ...request.Option) (*CreateCertificateAuthorityOutput, error) {
- req, out := c.CreateCertificateAuthorityRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opCreateCertificateAuthorityAuditReport = "CreateCertificateAuthorityAuditReport"
- // CreateCertificateAuthorityAuditReportRequest generates a "aws/request.Request" representing the
- // client's request for the CreateCertificateAuthorityAuditReport operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // 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 CreateCertificateAuthorityAuditReport for more information on using the CreateCertificateAuthorityAuditReport
- // 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 CreateCertificateAuthorityAuditReportRequest method.
- // req, resp := client.CreateCertificateAuthorityAuditReportRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/acm-pca-2017-08-22/CreateCertificateAuthorityAuditReport
- func (c *ACMPCA) CreateCertificateAuthorityAuditReportRequest(input *CreateCertificateAuthorityAuditReportInput) (req *request.Request, output *CreateCertificateAuthorityAuditReportOutput) {
- op := &request.Operation{
- Name: opCreateCertificateAuthorityAuditReport,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &CreateCertificateAuthorityAuditReportInput{}
- }
- output = &CreateCertificateAuthorityAuditReportOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // CreateCertificateAuthorityAuditReport API operation for AWS Certificate Manager Private Certificate Authority.
- //
- // Creates an audit report that lists every time that the your CA private key
- // is used. The report is saved in the Amazon S3 bucket that you specify on
- // input. The IssueCertificate and RevokeCertificate operations use the private
- // key. You can generate a new report every 30 minutes.
- //
- // 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 AWS Certificate Manager Private Certificate Authority's
- // API operation CreateCertificateAuthorityAuditReport for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeRequestInProgressException "RequestInProgressException"
- // Your request is already in progress.
- //
- // * ErrCodeRequestFailedException "RequestFailedException"
- // The request has failed for an unspecified reason.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // A resource such as a private CA, S3 bucket, certificate, or audit report
- // cannot be found.
- //
- // * ErrCodeInvalidArnException "InvalidArnException"
- // The requested Amazon Resource Name (ARN) does not refer to an existing resource.
- //
- // * ErrCodeInvalidArgsException "InvalidArgsException"
- // One or more of the specified arguments was not valid.
- //
- // * ErrCodeInvalidStateException "InvalidStateException"
- // The private CA is in a state during which a report or certificate cannot
- // be generated.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/acm-pca-2017-08-22/CreateCertificateAuthorityAuditReport
- func (c *ACMPCA) CreateCertificateAuthorityAuditReport(input *CreateCertificateAuthorityAuditReportInput) (*CreateCertificateAuthorityAuditReportOutput, error) {
- req, out := c.CreateCertificateAuthorityAuditReportRequest(input)
- return out, req.Send()
- }
- // CreateCertificateAuthorityAuditReportWithContext is the same as CreateCertificateAuthorityAuditReport with the addition of
- // the ability to pass a context and additional request options.
- //
- // See CreateCertificateAuthorityAuditReport 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 *ACMPCA) CreateCertificateAuthorityAuditReportWithContext(ctx aws.Context, input *CreateCertificateAuthorityAuditReportInput, opts ...request.Option) (*CreateCertificateAuthorityAuditReportOutput, error) {
- req, out := c.CreateCertificateAuthorityAuditReportRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDeleteCertificateAuthority = "DeleteCertificateAuthority"
- // DeleteCertificateAuthorityRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteCertificateAuthority operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // 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 DeleteCertificateAuthority for more information on using the DeleteCertificateAuthority
- // 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 DeleteCertificateAuthorityRequest method.
- // req, resp := client.DeleteCertificateAuthorityRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/acm-pca-2017-08-22/DeleteCertificateAuthority
- func (c *ACMPCA) DeleteCertificateAuthorityRequest(input *DeleteCertificateAuthorityInput) (req *request.Request, output *DeleteCertificateAuthorityOutput) {
- op := &request.Operation{
- Name: opDeleteCertificateAuthority,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DeleteCertificateAuthorityInput{}
- }
- output = &DeleteCertificateAuthorityOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // DeleteCertificateAuthority API operation for AWS Certificate Manager Private Certificate Authority.
- //
- // Deletes a private certificate authority (CA). You must provide the ARN (Amazon
- // Resource Name) of the private CA that you want to delete. You can find the
- // ARN by calling the ListCertificateAuthorities operation. Before you can delete
- // a CA, you must disable it. Call the UpdateCertificateAuthority operation
- // and set the CertificateAuthorityStatus parameter to DISABLED.
- //
- // Additionally, you can delete a CA if you are waiting for it to be created
- // (the Status field of the CertificateAuthority is CREATING). You can also
- // delete it if the CA has been created but you haven't yet imported the signed
- // certificate (the Status is PENDING_CERTIFICATE) into ACM PCA.
- //
- // If the CA is in one of the aforementioned states and you call DeleteCertificateAuthority,
- // the CA's status changes to DELETED. However, the CA won't be permentantly
- // deleted until the restoration period has passed. By default, if you do not
- // set the PermanentDeletionTimeInDays parameter, the CA remains restorable
- // for 30 days. You can set the parameter from 7 to 30 days. The DescribeCertificateAuthority
- // operation returns the time remaining in the restoration window of a Private
- // CA in the DELETED state. To restore an eligable CA, call the RestoreCertificateAuthority
- // operation.
- //
- // 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 AWS Certificate Manager Private Certificate Authority's
- // API operation DeleteCertificateAuthority for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeConcurrentModificationException "ConcurrentModificationException"
- // A previous update to your private CA is still ongoing.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // A resource such as a private CA, S3 bucket, certificate, or audit report
- // cannot be found.
- //
- // * ErrCodeInvalidArnException "InvalidArnException"
- // The requested Amazon Resource Name (ARN) does not refer to an existing resource.
- //
- // * ErrCodeInvalidStateException "InvalidStateException"
- // The private CA is in a state during which a report or certificate cannot
- // be generated.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/acm-pca-2017-08-22/DeleteCertificateAuthority
- func (c *ACMPCA) DeleteCertificateAuthority(input *DeleteCertificateAuthorityInput) (*DeleteCertificateAuthorityOutput, error) {
- req, out := c.DeleteCertificateAuthorityRequest(input)
- return out, req.Send()
- }
- // DeleteCertificateAuthorityWithContext is the same as DeleteCertificateAuthority with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DeleteCertificateAuthority 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 *ACMPCA) DeleteCertificateAuthorityWithContext(ctx aws.Context, input *DeleteCertificateAuthorityInput, opts ...request.Option) (*DeleteCertificateAuthorityOutput, error) {
- req, out := c.DeleteCertificateAuthorityRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDescribeCertificateAuthority = "DescribeCertificateAuthority"
- // DescribeCertificateAuthorityRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeCertificateAuthority operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // 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 DescribeCertificateAuthority for more information on using the DescribeCertificateAuthority
- // 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 DescribeCertificateAuthorityRequest method.
- // req, resp := client.DescribeCertificateAuthorityRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/acm-pca-2017-08-22/DescribeCertificateAuthority
- func (c *ACMPCA) DescribeCertificateAuthorityRequest(input *DescribeCertificateAuthorityInput) (req *request.Request, output *DescribeCertificateAuthorityOutput) {
- op := &request.Operation{
- Name: opDescribeCertificateAuthority,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DescribeCertificateAuthorityInput{}
- }
- output = &DescribeCertificateAuthorityOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // DescribeCertificateAuthority API operation for AWS Certificate Manager Private Certificate Authority.
- //
- // Lists information about your private certificate authority (CA). You specify
- // the private CA on input by its ARN (Amazon Resource Name). The output contains
- // the status of your CA. This can be any of the following:
- //
- // * CREATING - ACM PCA is creating your private certificate authority.
- //
- // * PENDING_CERTIFICATE - The certificate is pending. You must use your
- // on-premises root or subordinate CA to sign your private CA CSR and then
- // import it into PCA.
- //
- // * ACTIVE - Your private CA is active.
- //
- // * DISABLED - Your private CA has been disabled.
- //
- // * EXPIRED - Your private CA certificate has expired.
- //
- // * FAILED - Your private CA has failed. Your CA can fail because of problems
- // such a network outage or backend AWS failure or other errors. A failed
- // CA can never return to the pending state. You must create a new CA.
- //
- // * DELETED - Your private CA is within the restoration period, after which
- // it is permanently deleted. The length of time remaining in the CA's restoration
- // period is also included in this operation's output.
- //
- // 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 AWS Certificate Manager Private Certificate Authority's
- // API operation DescribeCertificateAuthority for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // A resource such as a private CA, S3 bucket, certificate, or audit report
- // cannot be found.
- //
- // * ErrCodeInvalidArnException "InvalidArnException"
- // The requested Amazon Resource Name (ARN) does not refer to an existing resource.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/acm-pca-2017-08-22/DescribeCertificateAuthority
- func (c *ACMPCA) DescribeCertificateAuthority(input *DescribeCertificateAuthorityInput) (*DescribeCertificateAuthorityOutput, error) {
- req, out := c.DescribeCertificateAuthorityRequest(input)
- return out, req.Send()
- }
- // DescribeCertificateAuthorityWithContext is the same as DescribeCertificateAuthority with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DescribeCertificateAuthority 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 *ACMPCA) DescribeCertificateAuthorityWithContext(ctx aws.Context, input *DescribeCertificateAuthorityInput, opts ...request.Option) (*DescribeCertificateAuthorityOutput, error) {
- req, out := c.DescribeCertificateAuthorityRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDescribeCertificateAuthorityAuditReport = "DescribeCertificateAuthorityAuditReport"
- // DescribeCertificateAuthorityAuditReportRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeCertificateAuthorityAuditReport operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // 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 DescribeCertificateAuthorityAuditReport for more information on using the DescribeCertificateAuthorityAuditReport
- // 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 DescribeCertificateAuthorityAuditReportRequest method.
- // req, resp := client.DescribeCertificateAuthorityAuditReportRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/acm-pca-2017-08-22/DescribeCertificateAuthorityAuditReport
- func (c *ACMPCA) DescribeCertificateAuthorityAuditReportRequest(input *DescribeCertificateAuthorityAuditReportInput) (req *request.Request, output *DescribeCertificateAuthorityAuditReportOutput) {
- op := &request.Operation{
- Name: opDescribeCertificateAuthorityAuditReport,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DescribeCertificateAuthorityAuditReportInput{}
- }
- output = &DescribeCertificateAuthorityAuditReportOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // DescribeCertificateAuthorityAuditReport API operation for AWS Certificate Manager Private Certificate Authority.
- //
- // Lists information about a specific audit report created by calling the CreateCertificateAuthorityAuditReport
- // operation. Audit information is created every time the certificate authority
- // (CA) private key is used. The private key is used when you call the IssueCertificate
- // operation or the RevokeCertificate operation.
- //
- // 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 AWS Certificate Manager Private Certificate Authority's
- // API operation DescribeCertificateAuthorityAuditReport for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // A resource such as a private CA, S3 bucket, certificate, or audit report
- // cannot be found.
- //
- // * ErrCodeInvalidArnException "InvalidArnException"
- // The requested Amazon Resource Name (ARN) does not refer to an existing resource.
- //
- // * ErrCodeInvalidArgsException "InvalidArgsException"
- // One or more of the specified arguments was not valid.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/acm-pca-2017-08-22/DescribeCertificateAuthorityAuditReport
- func (c *ACMPCA) DescribeCertificateAuthorityAuditReport(input *DescribeCertificateAuthorityAuditReportInput) (*DescribeCertificateAuthorityAuditReportOutput, error) {
- req, out := c.DescribeCertificateAuthorityAuditReportRequest(input)
- return out, req.Send()
- }
- // DescribeCertificateAuthorityAuditReportWithContext is the same as DescribeCertificateAuthorityAuditReport with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DescribeCertificateAuthorityAuditReport 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 *ACMPCA) DescribeCertificateAuthorityAuditReportWithContext(ctx aws.Context, input *DescribeCertificateAuthorityAuditReportInput, opts ...request.Option) (*DescribeCertificateAuthorityAuditReportOutput, error) {
- req, out := c.DescribeCertificateAuthorityAuditReportRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opGetCertificate = "GetCertificate"
- // GetCertificateRequest generates a "aws/request.Request" representing the
- // client's request for the GetCertificate operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // 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 GetCertificate for more information on using the GetCertificate
- // 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 GetCertificateRequest method.
- // req, resp := client.GetCertificateRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/acm-pca-2017-08-22/GetCertificate
- func (c *ACMPCA) GetCertificateRequest(input *GetCertificateInput) (req *request.Request, output *GetCertificateOutput) {
- op := &request.Operation{
- Name: opGetCertificate,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &GetCertificateInput{}
- }
- output = &GetCertificateOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // GetCertificate API operation for AWS Certificate Manager Private Certificate Authority.
- //
- // Retrieves a certificate from your private CA. The ARN of the certificate
- // is returned when you call the IssueCertificate operation. You must specify
- // both the ARN of your private CA and the ARN of the issued certificate when
- // calling the GetCertificate operation. You can retrieve the certificate if
- // it is in the ISSUED state. You can call the CreateCertificateAuthorityAuditReport
- // operation to create a report that contains information about all of the certificates
- // issued and revoked by your private CA.
- //
- // 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 AWS Certificate Manager Private Certificate Authority's
- // API operation GetCertificate for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeRequestInProgressException "RequestInProgressException"
- // Your request is already in progress.
- //
- // * ErrCodeRequestFailedException "RequestFailedException"
- // The request has failed for an unspecified reason.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // A resource such as a private CA, S3 bucket, certificate, or audit report
- // cannot be found.
- //
- // * ErrCodeInvalidArnException "InvalidArnException"
- // The requested Amazon Resource Name (ARN) does not refer to an existing resource.
- //
- // * ErrCodeInvalidStateException "InvalidStateException"
- // The private CA is in a state during which a report or certificate cannot
- // be generated.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/acm-pca-2017-08-22/GetCertificate
- func (c *ACMPCA) GetCertificate(input *GetCertificateInput) (*GetCertificateOutput, error) {
- req, out := c.GetCertificateRequest(input)
- return out, req.Send()
- }
- // GetCertificateWithContext is the same as GetCertificate with the addition of
- // the ability to pass a context and additional request options.
- //
- // See GetCertificate 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 *ACMPCA) GetCertificateWithContext(ctx aws.Context, input *GetCertificateInput, opts ...request.Option) (*GetCertificateOutput, error) {
- req, out := c.GetCertificateRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opGetCertificateAuthorityCertificate = "GetCertificateAuthorityCertificate"
- // GetCertificateAuthorityCertificateRequest generates a "aws/request.Request" representing the
- // client's request for the GetCertificateAuthorityCertificate operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // 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 GetCertificateAuthorityCertificate for more information on using the GetCertificateAuthorityCertificate
- // 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 GetCertificateAuthorityCertificateRequest method.
- // req, resp := client.GetCertificateAuthorityCertificateRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/acm-pca-2017-08-22/GetCertificateAuthorityCertificate
- func (c *ACMPCA) GetCertificateAuthorityCertificateRequest(input *GetCertificateAuthorityCertificateInput) (req *request.Request, output *GetCertificateAuthorityCertificateOutput) {
- op := &request.Operation{
- Name: opGetCertificateAuthorityCertificate,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &GetCertificateAuthorityCertificateInput{}
- }
- output = &GetCertificateAuthorityCertificateOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // GetCertificateAuthorityCertificate API operation for AWS Certificate Manager Private Certificate Authority.
- //
- // Retrieves the certificate and certificate chain for your private certificate
- // authority (CA). Both the certificate and the chain are base64 PEM-encoded.
- // The chain does not include the CA certificate. Each certificate in the chain
- // signs the one before it.
- //
- // 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 AWS Certificate Manager Private Certificate Authority's
- // API operation GetCertificateAuthorityCertificate for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // A resource such as a private CA, S3 bucket, certificate, or audit report
- // cannot be found.
- //
- // * ErrCodeInvalidStateException "InvalidStateException"
- // The private CA is in a state during which a report or certificate cannot
- // be generated.
- //
- // * ErrCodeInvalidArnException "InvalidArnException"
- // The requested Amazon Resource Name (ARN) does not refer to an existing resource.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/acm-pca-2017-08-22/GetCertificateAuthorityCertificate
- func (c *ACMPCA) GetCertificateAuthorityCertificate(input *GetCertificateAuthorityCertificateInput) (*GetCertificateAuthorityCertificateOutput, error) {
- req, out := c.GetCertificateAuthorityCertificateRequest(input)
- return out, req.Send()
- }
- // GetCertificateAuthorityCertificateWithContext is the same as GetCertificateAuthorityCertificate with the addition of
- // the ability to pass a context and additional request options.
- //
- // See GetCertificateAuthorityCertificate 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 *ACMPCA) GetCertificateAuthorityCertificateWithContext(ctx aws.Context, input *GetCertificateAuthorityCertificateInput, opts ...request.Option) (*GetCertificateAuthorityCertificateOutput, error) {
- req, out := c.GetCertificateAuthorityCertificateRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opGetCertificateAuthorityCsr = "GetCertificateAuthorityCsr"
- // GetCertificateAuthorityCsrRequest generates a "aws/request.Request" representing the
- // client's request for the GetCertificateAuthorityCsr operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // 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 GetCertificateAuthorityCsr for more information on using the GetCertificateAuthorityCsr
- // 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 GetCertificateAuthorityCsrRequest method.
- // req, resp := client.GetCertificateAuthorityCsrRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/acm-pca-2017-08-22/GetCertificateAuthorityCsr
- func (c *ACMPCA) GetCertificateAuthorityCsrRequest(input *GetCertificateAuthorityCsrInput) (req *request.Request, output *GetCertificateAuthorityCsrOutput) {
- op := &request.Operation{
- Name: opGetCertificateAuthorityCsr,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &GetCertificateAuthorityCsrInput{}
- }
- output = &GetCertificateAuthorityCsrOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // GetCertificateAuthorityCsr API operation for AWS Certificate Manager Private Certificate Authority.
- //
- // Retrieves the certificate signing request (CSR) for your private certificate
- // authority (CA). The CSR is created when you call the CreateCertificateAuthority
- // operation. Take the CSR to your on-premises X.509 infrastructure and sign
- // it by using your root or a subordinate CA. Then import the signed certificate
- // back into ACM PCA by calling the ImportCertificateAuthorityCertificate operation.
- // The CSR is returned as a base64 PEM-encoded string.
- //
- // 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 AWS Certificate Manager Private Certificate Authority's
- // API operation GetCertificateAuthorityCsr for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeRequestInProgressException "RequestInProgressException"
- // Your request is already in progress.
- //
- // * ErrCodeRequestFailedException "RequestFailedException"
- // The request has failed for an unspecified reason.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // A resource such as a private CA, S3 bucket, certificate, or audit report
- // cannot be found.
- //
- // * ErrCodeInvalidArnException "InvalidArnException"
- // The requested Amazon Resource Name (ARN) does not refer to an existing resource.
- //
- // * ErrCodeInvalidStateException "InvalidStateException"
- // The private CA is in a state during which a report or certificate cannot
- // be generated.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/acm-pca-2017-08-22/GetCertificateAuthorityCsr
- func (c *ACMPCA) GetCertificateAuthorityCsr(input *GetCertificateAuthorityCsrInput) (*GetCertificateAuthorityCsrOutput, error) {
- req, out := c.GetCertificateAuthorityCsrRequest(input)
- return out, req.Send()
- }
- // GetCertificateAuthorityCsrWithContext is the same as GetCertificateAuthorityCsr with the addition of
- // the ability to pass a context and additional request options.
- //
- // See GetCertificateAuthorityCsr 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 *ACMPCA) GetCertificateAuthorityCsrWithContext(ctx aws.Context, input *GetCertificateAuthorityCsrInput, opts ...request.Option) (*GetCertificateAuthorityCsrOutput, error) {
- req, out := c.GetCertificateAuthorityCsrRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opImportCertificateAuthorityCertificate = "ImportCertificateAuthorityCertificate"
- // ImportCertificateAuthorityCertificateRequest generates a "aws/request.Request" representing the
- // client's request for the ImportCertificateAuthorityCertificate operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // 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 ImportCertificateAuthorityCertificate for more information on using the ImportCertificateAuthorityCertificate
- // 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 ImportCertificateAuthorityCertificateRequest method.
- // req, resp := client.ImportCertificateAuthorityCertificateRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/acm-pca-2017-08-22/ImportCertificateAuthorityCertificate
- func (c *ACMPCA) ImportCertificateAuthorityCertificateRequest(input *ImportCertificateAuthorityCertificateInput) (req *request.Request, output *ImportCertificateAuthorityCertificateOutput) {
- op := &request.Operation{
- Name: opImportCertificateAuthorityCertificate,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &ImportCertificateAuthorityCertificateInput{}
- }
- output = &ImportCertificateAuthorityCertificateOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // ImportCertificateAuthorityCertificate API operation for AWS Certificate Manager Private Certificate Authority.
- //
- // Imports your signed private CA certificate into ACM PCA. Before you can call
- // this operation, you must create the private certificate authority by calling
- // the CreateCertificateAuthority operation. You must then generate a certificate
- // signing request (CSR) by calling the GetCertificateAuthorityCsr operation.
- // Take the CSR to your on-premises CA and use the root certificate or a subordinate
- // certificate to sign it. Create a certificate chain and copy the signed certificate
- // and the certificate chain to your working directory.
- //
- // Your certificate chain must not include the private CA certificate that you
- // are importing.
- //
- // Your on-premises CA certificate must be the last certificate in your chain.
- // The subordinate certificate, if any, that your root CA signed must be next
- // to last. The subordinate certificate signed by the preceding subordinate
- // CA must come next, and so on until your chain is built.
- //
- // The chain must be PEM-encoded.
- //
- // 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 AWS Certificate Manager Private Certificate Authority's
- // API operation ImportCertificateAuthorityCertificate for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeConcurrentModificationException "ConcurrentModificationException"
- // A previous update to your private CA is still ongoing.
- //
- // * ErrCodeRequestInProgressException "RequestInProgressException"
- // Your request is already in progress.
- //
- // * ErrCodeRequestFailedException "RequestFailedException"
- // The request has failed for an unspecified reason.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // A resource such as a private CA, S3 bucket, certificate, or audit report
- // cannot be found.
- //
- // * ErrCodeInvalidArnException "InvalidArnException"
- // The requested Amazon Resource Name (ARN) does not refer to an existing resource.
- //
- // * ErrCodeInvalidStateException "InvalidStateException"
- // The private CA is in a state during which a report or certificate cannot
- // be generated.
- //
- // * ErrCodeMalformedCertificateException "MalformedCertificateException"
- // One or more fields in the certificate are invalid.
- //
- // * ErrCodeCertificateMismatchException "CertificateMismatchException"
- // The certificate authority certificate you are importing does not comply with
- // conditions specified in the certificate that signed it.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/acm-pca-2017-08-22/ImportCertificateAuthorityCertificate
- func (c *ACMPCA) ImportCertificateAuthorityCertificate(input *ImportCertificateAuthorityCertificateInput) (*ImportCertificateAuthorityCertificateOutput, error) {
- req, out := c.ImportCertificateAuthorityCertificateRequest(input)
- return out, req.Send()
- }
- // ImportCertificateAuthorityCertificateWithContext is the same as ImportCertificateAuthorityCertificate with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ImportCertificateAuthorityCertificate 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 *ACMPCA) ImportCertificateAuthorityCertificateWithContext(ctx aws.Context, input *ImportCertificateAuthorityCertificateInput, opts ...request.Option) (*ImportCertificateAuthorityCertificateOutput, error) {
- req, out := c.ImportCertificateAuthorityCertificateRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opIssueCertificate = "IssueCertificate"
- // IssueCertificateRequest generates a "aws/request.Request" representing the
- // client's request for the IssueCertificate operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // 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 IssueCertificate for more information on using the IssueCertificate
- // 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 IssueCertificateRequest method.
- // req, resp := client.IssueCertificateRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/acm-pca-2017-08-22/IssueCertificate
- func (c *ACMPCA) IssueCertificateRequest(input *IssueCertificateInput) (req *request.Request, output *IssueCertificateOutput) {
- op := &request.Operation{
- Name: opIssueCertificate,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &IssueCertificateInput{}
- }
- output = &IssueCertificateOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // IssueCertificate API operation for AWS Certificate Manager Private Certificate Authority.
- //
- // Uses your private certificate authority (CA) to issue a client certificate.
- // This operation returns the Amazon Resource Name (ARN) of the certificate.
- // You can retrieve the certificate by calling the GetCertificate operation
- // and specifying the ARN.
- //
- // You cannot use the ACM ListCertificateAuthorities operation to retrieve the
- // ARNs of the certificates that you issue by using ACM PCA.
- //
- // 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 AWS Certificate Manager Private Certificate Authority's
- // API operation IssueCertificate for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeLimitExceededException "LimitExceededException"
- // An ACM PCA limit has been exceeded. See the exception message returned to
- // determine the limit that was exceeded.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // A resource such as a private CA, S3 bucket, certificate, or audit report
- // cannot be found.
- //
- // * ErrCodeInvalidStateException "InvalidStateException"
- // The private CA is in a state during which a report or certificate cannot
- // be generated.
- //
- // * ErrCodeInvalidArnException "InvalidArnException"
- // The requested Amazon Resource Name (ARN) does not refer to an existing resource.
- //
- // * ErrCodeInvalidArgsException "InvalidArgsException"
- // One or more of the specified arguments was not valid.
- //
- // * ErrCodeMalformedCSRException "MalformedCSRException"
- // The certificate signing request is invalid.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/acm-pca-2017-08-22/IssueCertificate
- func (c *ACMPCA) IssueCertificate(input *IssueCertificateInput) (*IssueCertificateOutput, error) {
- req, out := c.IssueCertificateRequest(input)
- return out, req.Send()
- }
- // IssueCertificateWithContext is the same as IssueCertificate with the addition of
- // the ability to pass a context and additional request options.
- //
- // See IssueCertificate 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 *ACMPCA) IssueCertificateWithContext(ctx aws.Context, input *IssueCertificateInput, opts ...request.Option) (*IssueCertificateOutput, error) {
- req, out := c.IssueCertificateRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opListCertificateAuthorities = "ListCertificateAuthorities"
- // ListCertificateAuthoritiesRequest generates a "aws/request.Request" representing the
- // client's request for the ListCertificateAuthorities operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // 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 ListCertificateAuthorities for more information on using the ListCertificateAuthorities
- // 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 ListCertificateAuthoritiesRequest method.
- // req, resp := client.ListCertificateAuthoritiesRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/acm-pca-2017-08-22/ListCertificateAuthorities
- func (c *ACMPCA) ListCertificateAuthoritiesRequest(input *ListCertificateAuthoritiesInput) (req *request.Request, output *ListCertificateAuthoritiesOutput) {
- op := &request.Operation{
- Name: opListCertificateAuthorities,
- HTTPMethod: "POST",
- HTTPPath: "/",
- Paginator: &request.Paginator{
- InputTokens: []string{"NextToken"},
- OutputTokens: []string{"NextToken"},
- LimitToken: "MaxResults",
- TruncationToken: "",
- },
- }
- if input == nil {
- input = &ListCertificateAuthoritiesInput{}
- }
- output = &ListCertificateAuthoritiesOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // ListCertificateAuthorities API operation for AWS Certificate Manager Private Certificate Authority.
- //
- // Lists the private certificate authorities that you created by using the CreateCertificateAuthority
- // operation.
- //
- // 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 AWS Certificate Manager Private Certificate Authority's
- // API operation ListCertificateAuthorities for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidNextTokenException "InvalidNextTokenException"
- // The token specified in the NextToken argument is not valid. Use the token
- // returned from your previous call to ListCertificateAuthorities.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/acm-pca-2017-08-22/ListCertificateAuthorities
- func (c *ACMPCA) ListCertificateAuthorities(input *ListCertificateAuthoritiesInput) (*ListCertificateAuthoritiesOutput, error) {
- req, out := c.ListCertificateAuthoritiesRequest(input)
- return out, req.Send()
- }
- // ListCertificateAuthoritiesWithContext is the same as ListCertificateAuthorities with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ListCertificateAuthorities 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 *ACMPCA) ListCertificateAuthoritiesWithContext(ctx aws.Context, input *ListCertificateAuthoritiesInput, opts ...request.Option) (*ListCertificateAuthoritiesOutput, error) {
- req, out := c.ListCertificateAuthoritiesRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- // ListCertificateAuthoritiesPages iterates over the pages of a ListCertificateAuthorities operation,
- // calling the "fn" function with the response data for each page. To stop
- // iterating, return false from the fn function.
- //
- // See ListCertificateAuthorities method for more information on how to use this operation.
- //
- // Note: This operation can generate multiple requests to a service.
- //
- // // Example iterating over at most 3 pages of a ListCertificateAuthorities operation.
- // pageNum := 0
- // err := client.ListCertificateAuthoritiesPages(params,
- // func(page *ListCertificateAuthoritiesOutput, lastPage bool) bool {
- // pageNum++
- // fmt.Println(page)
- // return pageNum <= 3
- // })
- //
- func (c *ACMPCA) ListCertificateAuthoritiesPages(input *ListCertificateAuthoritiesInput, fn func(*ListCertificateAuthoritiesOutput, bool) bool) error {
- return c.ListCertificateAuthoritiesPagesWithContext(aws.BackgroundContext(), input, fn)
- }
- // ListCertificateAuthoritiesPagesWithContext same as ListCertificateAuthoritiesPages except
- // it takes a Context and allows setting request options on the pages.
- //
- // 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 *ACMPCA) ListCertificateAuthoritiesPagesWithContext(ctx aws.Context, input *ListCertificateAuthoritiesInput, fn func(*ListCertificateAuthoritiesOutput, bool) bool, opts ...request.Option) error {
- p := request.Pagination{
- NewRequest: func() (*request.Request, error) {
- var inCpy *ListCertificateAuthoritiesInput
- if input != nil {
- tmp := *input
- inCpy = &tmp
- }
- req, _ := c.ListCertificateAuthoritiesRequest(inCpy)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return req, nil
- },
- }
- cont := true
- for p.Next() && cont {
- cont = fn(p.Page().(*ListCertificateAuthoritiesOutput), !p.HasNextPage())
- }
- return p.Err()
- }
- const opListTags = "ListTags"
- // ListTagsRequest generates a "aws/request.Request" representing the
- // client's request for the ListTags operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // 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 ListTags for more information on using the ListTags
- // 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 ListTagsRequest method.
- // req, resp := client.ListTagsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/acm-pca-2017-08-22/ListTags
- func (c *ACMPCA) ListTagsRequest(input *ListTagsInput) (req *request.Request, output *ListTagsOutput) {
- op := &request.Operation{
- Name: opListTags,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &ListTagsInput{}
- }
- output = &ListTagsOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // ListTags API operation for AWS Certificate Manager Private Certificate Authority.
- //
- // Lists the tags, if any, that are associated with your private CA. Tags are
- // labels that you can use to identify and organize your CAs. Each tag consists
- // of a key and an optional value. Call the TagCertificateAuthority operation
- // to add one or more tags to your CA. Call the UntagCertificateAuthority operation
- // to remove tags.
- //
- // 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 AWS Certificate Manager Private Certificate Authority's
- // API operation ListTags for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // A resource such as a private CA, S3 bucket, certificate, or audit report
- // cannot be found.
- //
- // * ErrCodeInvalidArnException "InvalidArnException"
- // The requested Amazon Resource Name (ARN) does not refer to an existing resource.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/acm-pca-2017-08-22/ListTags
- func (c *ACMPCA) ListTags(input *ListTagsInput) (*ListTagsOutput, error) {
- req, out := c.ListTagsRequest(input)
- return out, req.Send()
- }
- // ListTagsWithContext is the same as ListTags with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ListTags 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 *ACMPCA) ListTagsWithContext(ctx aws.Context, input *ListTagsInput, opts ...request.Option) (*ListTagsOutput, error) {
- req, out := c.ListTagsRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opRestoreCertificateAuthority = "RestoreCertificateAuthority"
- // RestoreCertificateAuthorityRequest generates a "aws/request.Request" representing the
- // client's request for the RestoreCertificateAuthority operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // 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 RestoreCertificateAuthority for more information on using the RestoreCertificateAuthority
- // 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 RestoreCertificateAuthorityRequest method.
- // req, resp := client.RestoreCertificateAuthorityRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/acm-pca-2017-08-22/RestoreCertificateAuthority
- func (c *ACMPCA) RestoreCertificateAuthorityRequest(input *RestoreCertificateAuthorityInput) (req *request.Request, output *RestoreCertificateAuthorityOutput) {
- op := &request.Operation{
- Name: opRestoreCertificateAuthority,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &RestoreCertificateAuthorityInput{}
- }
- output = &RestoreCertificateAuthorityOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // RestoreCertificateAuthority API operation for AWS Certificate Manager Private Certificate Authority.
- //
- // Restores a certificate authority (CA) that is in the DELETED state. You can
- // restore a CA during the period that you defined in the PermanentDeletionTimeInDays
- // parameter of the DeleteCertificateAuthority operation. Currently, you can
- // specify 7 to 30 days. If you did not specify a PermanentDeletionTimeInDays
- // value, by default you can restore the CA at any time in a 30 day period.
- // You can check the time remaining in the restoration period of a private CA
- // in the DELETED state by calling the DescribeCertificateAuthority or ListCertificateAuthorities
- // operations. The status of a restored CA is set to its pre-deletion status
- // when the RestoreCertificateAuthority operation returns. To change its status
- // to ACTIVE, call the UpdateCertificateAuthority operation. If the private
- // CA was in the PENDING_CERTIFICATE state at deletion, you must use the ImportCertificateAuthorityCertificate
- // operation to import a certificate authority into the private CA before it
- // can be activated. You cannot restore a CA after the restoration period has
- // ended.
- //
- // 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 AWS Certificate Manager Private Certificate Authority's
- // API operation RestoreCertificateAuthority for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // A resource such as a private CA, S3 bucket, certificate, or audit report
- // cannot be found.
- //
- // * ErrCodeInvalidStateException "InvalidStateException"
- // The private CA is in a state during which a report or certificate cannot
- // be generated.
- //
- // * ErrCodeInvalidArnException "InvalidArnException"
- // The requested Amazon Resource Name (ARN) does not refer to an existing resource.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/acm-pca-2017-08-22/RestoreCertificateAuthority
- func (c *ACMPCA) RestoreCertificateAuthority(input *RestoreCertificateAuthorityInput) (*RestoreCertificateAuthorityOutput, error) {
- req, out := c.RestoreCertificateAuthorityRequest(input)
- return out, req.Send()
- }
- // RestoreCertificateAuthorityWithContext is the same as RestoreCertificateAuthority with the addition of
- // the ability to pass a context and additional request options.
- //
- // See RestoreCertificateAuthority 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 *ACMPCA) RestoreCertificateAuthorityWithContext(ctx aws.Context, input *RestoreCertificateAuthorityInput, opts ...request.Option) (*RestoreCertificateAuthorityOutput, error) {
- req, out := c.RestoreCertificateAuthorityRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opRevokeCertificate = "RevokeCertificate"
- // RevokeCertificateRequest generates a "aws/request.Request" representing the
- // client's request for the RevokeCertificate operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // 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 RevokeCertificate for more information on using the RevokeCertificate
- // 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 RevokeCertificateRequest method.
- // req, resp := client.RevokeCertificateRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/acm-pca-2017-08-22/RevokeCertificate
- func (c *ACMPCA) RevokeCertificateRequest(input *RevokeCertificateInput) (req *request.Request, output *RevokeCertificateOutput) {
- op := &request.Operation{
- Name: opRevokeCertificate,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &RevokeCertificateInput{}
- }
- output = &RevokeCertificateOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // RevokeCertificate API operation for AWS Certificate Manager Private Certificate Authority.
- //
- // Revokes a certificate that you issued by calling the IssueCertificate operation.
- // If you enable a certificate revocation list (CRL) when you create or update
- // your private CA, information about the revoked certificates will be included
- // in the CRL. ACM PCA writes the CRL to an S3 bucket that you specify. For
- // more information about revocation, see the CrlConfiguration structure. ACM
- // PCA also writes revocation information to the audit report. For more information,
- // see CreateCertificateAuthorityAuditReport.
- //
- // 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 AWS Certificate Manager Private Certificate Authority's
- // API operation RevokeCertificate for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeConcurrentModificationException "ConcurrentModificationException"
- // A previous update to your private CA is still ongoing.
- //
- // * ErrCodeInvalidArnException "InvalidArnException"
- // The requested Amazon Resource Name (ARN) does not refer to an existing resource.
- //
- // * ErrCodeInvalidStateException "InvalidStateException"
- // The private CA is in a state during which a report or certificate cannot
- // be generated.
- //
- // * ErrCodeLimitExceededException "LimitExceededException"
- // An ACM PCA limit has been exceeded. See the exception message returned to
- // determine the limit that was exceeded.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // A resource such as a private CA, S3 bucket, certificate, or audit report
- // cannot be found.
- //
- // * ErrCodeRequestAlreadyProcessedException "RequestAlreadyProcessedException"
- // Your request has already been completed.
- //
- // * ErrCodeRequestInProgressException "RequestInProgressException"
- // Your request is already in progress.
- //
- // * ErrCodeRequestFailedException "RequestFailedException"
- // The request has failed for an unspecified reason.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/acm-pca-2017-08-22/RevokeCertificate
- func (c *ACMPCA) RevokeCertificate(input *RevokeCertificateInput) (*RevokeCertificateOutput, error) {
- req, out := c.RevokeCertificateRequest(input)
- return out, req.Send()
- }
- // RevokeCertificateWithContext is the same as RevokeCertificate with the addition of
- // the ability to pass a context and additional request options.
- //
- // See RevokeCertificate 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 *ACMPCA) RevokeCertificateWithContext(ctx aws.Context, input *RevokeCertificateInput, opts ...request.Option) (*RevokeCertificateOutput, error) {
- req, out := c.RevokeCertificateRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opTagCertificateAuthority = "TagCertificateAuthority"
- // TagCertificateAuthorityRequest generates a "aws/request.Request" representing the
- // client's request for the TagCertificateAuthority operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // 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 TagCertificateAuthority for more information on using the TagCertificateAuthority
- // 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 TagCertificateAuthorityRequest method.
- // req, resp := client.TagCertificateAuthorityRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/acm-pca-2017-08-22/TagCertificateAuthority
- func (c *ACMPCA) TagCertificateAuthorityRequest(input *TagCertificateAuthorityInput) (req *request.Request, output *TagCertificateAuthorityOutput) {
- op := &request.Operation{
- Name: opTagCertificateAuthority,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &TagCertificateAuthorityInput{}
- }
- output = &TagCertificateAuthorityOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // TagCertificateAuthority API operation for AWS Certificate Manager Private Certificate Authority.
- //
- // Adds one or more tags to your private CA. Tags are labels that you can use
- // to identify and organize your AWS resources. Each tag consists of a key and
- // an optional value. You specify the private CA on input by its Amazon Resource
- // Name (ARN). You specify the tag by using a key-value pair. You can apply
- // a tag to just one private CA if you want to identify a specific characteristic
- // of that CA, or you can apply the same tag to multiple private CAs if you
- // want to filter for a common relationship among those CAs. To remove one or
- // more tags, use the UntagCertificateAuthority operation. Call the ListTags
- // operation to see what tags are associated with your CA.
- //
- // 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 AWS Certificate Manager Private Certificate Authority's
- // API operation TagCertificateAuthority for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // A resource such as a private CA, S3 bucket, certificate, or audit report
- // cannot be found.
- //
- // * ErrCodeInvalidArnException "InvalidArnException"
- // The requested Amazon Resource Name (ARN) does not refer to an existing resource.
- //
- // * ErrCodeInvalidStateException "InvalidStateException"
- // The private CA is in a state during which a report or certificate cannot
- // be generated.
- //
- // * ErrCodeInvalidTagException "InvalidTagException"
- // The tag associated with the CA is not valid. The invalid argument is contained
- // in the message field.
- //
- // * ErrCodeTooManyTagsException "TooManyTagsException"
- // You can associate up to 50 tags with a private CA. Exception information
- // is contained in the exception message field.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/acm-pca-2017-08-22/TagCertificateAuthority
- func (c *ACMPCA) TagCertificateAuthority(input *TagCertificateAuthorityInput) (*TagCertificateAuthorityOutput, error) {
- req, out := c.TagCertificateAuthorityRequest(input)
- return out, req.Send()
- }
- // TagCertificateAuthorityWithContext is the same as TagCertificateAuthority with the addition of
- // the ability to pass a context and additional request options.
- //
- // See TagCertificateAuthority 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 *ACMPCA) TagCertificateAuthorityWithContext(ctx aws.Context, input *TagCertificateAuthorityInput, opts ...request.Option) (*TagCertificateAuthorityOutput, error) {
- req, out := c.TagCertificateAuthorityRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opUntagCertificateAuthority = "UntagCertificateAuthority"
- // UntagCertificateAuthorityRequest generates a "aws/request.Request" representing the
- // client's request for the UntagCertificateAuthority operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // 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 UntagCertificateAuthority for more information on using the UntagCertificateAuthority
- // 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 UntagCertificateAuthorityRequest method.
- // req, resp := client.UntagCertificateAuthorityRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/acm-pca-2017-08-22/UntagCertificateAuthority
- func (c *ACMPCA) UntagCertificateAuthorityRequest(input *UntagCertificateAuthorityInput) (req *request.Request, output *UntagCertificateAuthorityOutput) {
- op := &request.Operation{
- Name: opUntagCertificateAuthority,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &UntagCertificateAuthorityInput{}
- }
- output = &UntagCertificateAuthorityOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // UntagCertificateAuthority API operation for AWS Certificate Manager Private Certificate Authority.
- //
- // Remove one or more tags from your private CA. A tag consists of a key-value
- // pair. If you do not specify the value portion of the tag when calling this
- // operation, the tag will be removed regardless of value. If you specify a
- // value, the tag is removed only if it is associated with the specified value.
- // To add tags to a private CA, use the TagCertificateAuthority. Call the ListTags
- // operation to see what tags are associated with your CA.
- //
- // 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 AWS Certificate Manager Private Certificate Authority's
- // API operation UntagCertificateAuthority for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // A resource such as a private CA, S3 bucket, certificate, or audit report
- // cannot be found.
- //
- // * ErrCodeInvalidArnException "InvalidArnException"
- // The requested Amazon Resource Name (ARN) does not refer to an existing resource.
- //
- // * ErrCodeInvalidStateException "InvalidStateException"
- // The private CA is in a state during which a report or certificate cannot
- // be generated.
- //
- // * ErrCodeInvalidTagException "InvalidTagException"
- // The tag associated with the CA is not valid. The invalid argument is contained
- // in the message field.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/acm-pca-2017-08-22/UntagCertificateAuthority
- func (c *ACMPCA) UntagCertificateAuthority(input *UntagCertificateAuthorityInput) (*UntagCertificateAuthorityOutput, error) {
- req, out := c.UntagCertificateAuthorityRequest(input)
- return out, req.Send()
- }
- // UntagCertificateAuthorityWithContext is the same as UntagCertificateAuthority with the addition of
- // the ability to pass a context and additional request options.
- //
- // See UntagCertificateAuthority 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 *ACMPCA) UntagCertificateAuthorityWithContext(ctx aws.Context, input *UntagCertificateAuthorityInput, opts ...request.Option) (*UntagCertificateAuthorityOutput, error) {
- req, out := c.UntagCertificateAuthorityRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opUpdateCertificateAuthority = "UpdateCertificateAuthority"
- // UpdateCertificateAuthorityRequest generates a "aws/request.Request" representing the
- // client's request for the UpdateCertificateAuthority operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // 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 UpdateCertificateAuthority for more information on using the UpdateCertificateAuthority
- // 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 UpdateCertificateAuthorityRequest method.
- // req, resp := client.UpdateCertificateAuthorityRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/acm-pca-2017-08-22/UpdateCertificateAuthority
- func (c *ACMPCA) UpdateCertificateAuthorityRequest(input *UpdateCertificateAuthorityInput) (req *request.Request, output *UpdateCertificateAuthorityOutput) {
- op := &request.Operation{
- Name: opUpdateCertificateAuthority,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &UpdateCertificateAuthorityInput{}
- }
- output = &UpdateCertificateAuthorityOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // UpdateCertificateAuthority API operation for AWS Certificate Manager Private Certificate Authority.
- //
- // Updates the status or configuration of a private certificate authority (CA).
- // Your private CA must be in the ACTIVE or DISABLED state before you can update
- // it. You can disable a private CA that is in the ACTIVE state or make a CA
- // that is in the DISABLED state active again.
- //
- // 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 AWS Certificate Manager Private Certificate Authority's
- // API operation UpdateCertificateAuthority for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeConcurrentModificationException "ConcurrentModificationException"
- // A previous update to your private CA is still ongoing.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // A resource such as a private CA, S3 bucket, certificate, or audit report
- // cannot be found.
- //
- // * ErrCodeInvalidArgsException "InvalidArgsException"
- // One or more of the specified arguments was not valid.
- //
- // * ErrCodeInvalidArnException "InvalidArnException"
- // The requested Amazon Resource Name (ARN) does not refer to an existing resource.
- //
- // * ErrCodeInvalidStateException "InvalidStateException"
- // The private CA is in a state during which a report or certificate cannot
- // be generated.
- //
- // * ErrCodeInvalidPolicyException "InvalidPolicyException"
- // The S3 bucket policy is not valid. The policy must give ACM PCA rights to
- // read from and write to the bucket and find the bucket location.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/acm-pca-2017-08-22/UpdateCertificateAuthority
- func (c *ACMPCA) UpdateCertificateAuthority(input *UpdateCertificateAuthorityInput) (*UpdateCertificateAuthorityOutput, error) {
- req, out := c.UpdateCertificateAuthorityRequest(input)
- return out, req.Send()
- }
- // UpdateCertificateAuthorityWithContext is the same as UpdateCertificateAuthority with the addition of
- // the ability to pass a context and additional request options.
- //
- // See UpdateCertificateAuthority 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 *ACMPCA) UpdateCertificateAuthorityWithContext(ctx aws.Context, input *UpdateCertificateAuthorityInput, opts ...request.Option) (*UpdateCertificateAuthorityOutput, error) {
- req, out := c.UpdateCertificateAuthorityRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- // Contains information about the certificate subject. The certificate can be
- // one issued by your private certificate authority (CA) or it can be your private
- // CA certificate. The Subject field in the certificate identifies the entity
- // that owns or controls the public key in the certificate. The entity can be
- // a user, computer, device, or service. The Subject must contain an X.500 distinguished
- // name (DN). A DN is a sequence of relative distinguished names (RDNs). The
- // RDNs are separated by commas in the certificate. The DN must be unique for
- // each entity, but your private CA can issue more than one certificate with
- // the same DN to the same entity.
- type ASN1Subject struct {
- _ struct{} `type:"structure"`
- // Fully qualified domain name (FQDN) associated with the certificate subject.
- CommonName *string `type:"string"`
- // Two-digit code that specifies the country in which the certificate subject
- // located.
- Country *string `type:"string"`
- // Disambiguating information for the certificate subject.
- DistinguishedNameQualifier *string `type:"string"`
- // Typically a qualifier appended to the name of an individual. Examples include
- // Jr. for junior, Sr. for senior, and III for third.
- GenerationQualifier *string `type:"string"`
- // First name.
- GivenName *string `type:"string"`
- // Concatenation that typically contains the first letter of the GivenName,
- // the first letter of the middle name if one exists, and the first letter of
- // the SurName.
- Initials *string `type:"string"`
- // The locality (such as a city or town) in which the certificate subject is
- // located.
- Locality *string `type:"string"`
- // Legal name of the organization with which the certificate subject is affiliated.
- Organization *string `type:"string"`
- // A subdivision or unit of the organization (such as sales or finance) with
- // which the certificate subject is affiliated.
- OrganizationalUnit *string `type:"string"`
- // Typically a shortened version of a longer GivenName. For example, Jonathan
- // is often shortened to John. Elizabeth is often shortened to Beth, Liz, or
- // Eliza.
- Pseudonym *string `type:"string"`
- // The certificate serial number.
- SerialNumber *string `type:"string"`
- // State in which the subject of the certificate is located.
- State *string `type:"string"`
- // Family name. In the US and the UK, for example, the surname of an individual
- // is ordered last. In Asian cultures the surname is typically ordered first.
- Surname *string `type:"string"`
- // A title such as Mr. or Ms., which is pre-pended to the name to refer formally
- // to the certificate subject.
- Title *string `type:"string"`
- }
- // String returns the string representation
- func (s ASN1Subject) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ASN1Subject) GoString() string {
- return s.String()
- }
- // SetCommonName sets the CommonName field's value.
- func (s *ASN1Subject) SetCommonName(v string) *ASN1Subject {
- s.CommonName = &v
- return s
- }
- // SetCountry sets the Country field's value.
- func (s *ASN1Subject) SetCountry(v string) *ASN1Subject {
- s.Country = &v
- return s
- }
- // SetDistinguishedNameQualifier sets the DistinguishedNameQualifier field's value.
- func (s *ASN1Subject) SetDistinguishedNameQualifier(v string) *ASN1Subject {
- s.DistinguishedNameQualifier = &v
- return s
- }
- // SetGenerationQualifier sets the GenerationQualifier field's value.
- func (s *ASN1Subject) SetGenerationQualifier(v string) *ASN1Subject {
- s.GenerationQualifier = &v
- return s
- }
- // SetGivenName sets the GivenName field's value.
- func (s *ASN1Subject) SetGivenName(v string) *ASN1Subject {
- s.GivenName = &v
- return s
- }
- // SetInitials sets the Initials field's value.
- func (s *ASN1Subject) SetInitials(v string) *ASN1Subject {
- s.Initials = &v
- return s
- }
- // SetLocality sets the Locality field's value.
- func (s *ASN1Subject) SetLocality(v string) *ASN1Subject {
- s.Locality = &v
- return s
- }
- // SetOrganization sets the Organization field's value.
- func (s *ASN1Subject) SetOrganization(v string) *ASN1Subject {
- s.Organization = &v
- return s
- }
- // SetOrganizationalUnit sets the OrganizationalUnit field's value.
- func (s *ASN1Subject) SetOrganizationalUnit(v string) *ASN1Subject {
- s.OrganizationalUnit = &v
- return s
- }
- // SetPseudonym sets the Pseudonym field's value.
- func (s *ASN1Subject) SetPseudonym(v string) *ASN1Subject {
- s.Pseudonym = &v
- return s
- }
- // SetSerialNumber sets the SerialNumber field's value.
- func (s *ASN1Subject) SetSerialNumber(v string) *ASN1Subject {
- s.SerialNumber = &v
- return s
- }
- // SetState sets the State field's value.
- func (s *ASN1Subject) SetState(v string) *ASN1Subject {
- s.State = &v
- return s
- }
- // SetSurname sets the Surname field's value.
- func (s *ASN1Subject) SetSurname(v string) *ASN1Subject {
- s.Surname = &v
- return s
- }
- // SetTitle sets the Title field's value.
- func (s *ASN1Subject) SetTitle(v string) *ASN1Subject {
- s.Title = &v
- return s
- }
- // Contains information about your private certificate authority (CA). Your
- // private CA can issue and revoke X.509 digital certificates. Digital certificates
- // verify that the entity named in the certificate Subject field owns or controls
- // the public key contained in the Subject Public Key Info field. Call the CreateCertificateAuthority
- // operation to create your private CA. You must then call the GetCertificateAuthorityCertificate
- // operation to retrieve a private CA certificate signing request (CSR). Take
- // the CSR to your on-premises CA and sign it with the root CA certificate or
- // a subordinate certificate. Call the ImportCertificateAuthorityCertificate
- // operation to import the signed certificate into AWS Certificate Manager (ACM).
- type CertificateAuthority struct {
- _ struct{} `type:"structure"`
- // Amazon Resource Name (ARN) for your private certificate authority (CA). The
- // format is 12345678-1234-1234-1234-123456789012.
- Arn *string `min:"5" type:"string"`
- // Your private CA configuration.
- CertificateAuthorityConfiguration *CertificateAuthorityConfiguration `type:"structure"`
- // Date and time at which your private CA was created.
- CreatedAt *time.Time `type:"timestamp"`
- // Reason the request to create your private CA failed.
- FailureReason *string `type:"string" enum:"FailureReason"`
- // Date and time at which your private CA was last updated.
- LastStateChangeAt *time.Time `type:"timestamp"`
- // Date and time after which your private CA certificate is not valid.
- NotAfter *time.Time `type:"timestamp"`
- // Date and time before which your private CA certificate is not valid.
- NotBefore *time.Time `type:"timestamp"`
- // The period during which a deleted CA can be restored. For more information,
- // see the PermanentDeletionTimeInDays parameter of the DeleteCertificateAuthorityRequest
- // operation.
- RestorableUntil *time.Time `type:"timestamp"`
- // Information about the certificate revocation list (CRL) created and maintained
- // by your private CA.
- RevocationConfiguration *RevocationConfiguration `type:"structure"`
- // Serial number of your private CA.
- Serial *string `type:"string"`
- // Status of your private CA.
- Status *string `type:"string" enum:"CertificateAuthorityStatus"`
- // Type of your private CA.
- Type *string `type:"string" enum:"CertificateAuthorityType"`
- }
- // String returns the string representation
- func (s CertificateAuthority) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CertificateAuthority) GoString() string {
- return s.String()
- }
- // SetArn sets the Arn field's value.
- func (s *CertificateAuthority) SetArn(v string) *CertificateAuthority {
- s.Arn = &v
- return s
- }
- // SetCertificateAuthorityConfiguration sets the CertificateAuthorityConfiguration field's value.
- func (s *CertificateAuthority) SetCertificateAuthorityConfiguration(v *CertificateAuthorityConfiguration) *CertificateAuthority {
- s.CertificateAuthorityConfiguration = v
- return s
- }
- // SetCreatedAt sets the CreatedAt field's value.
- func (s *CertificateAuthority) SetCreatedAt(v time.Time) *CertificateAuthority {
- s.CreatedAt = &v
- return s
- }
- // SetFailureReason sets the FailureReason field's value.
- func (s *CertificateAuthority) SetFailureReason(v string) *CertificateAuthority {
- s.FailureReason = &v
- return s
- }
- // SetLastStateChangeAt sets the LastStateChangeAt field's value.
- func (s *CertificateAuthority) SetLastStateChangeAt(v time.Time) *CertificateAuthority {
- s.LastStateChangeAt = &v
- return s
- }
- // SetNotAfter sets the NotAfter field's value.
- func (s *CertificateAuthority) SetNotAfter(v time.Time) *CertificateAuthority {
- s.NotAfter = &v
- return s
- }
- // SetNotBefore sets the NotBefore field's value.
- func (s *CertificateAuthority) SetNotBefore(v time.Time) *CertificateAuthority {
- s.NotBefore = &v
- return s
- }
- // SetRestorableUntil sets the RestorableUntil field's value.
- func (s *CertificateAuthority) SetRestorableUntil(v time.Time) *CertificateAuthority {
- s.RestorableUntil = &v
- return s
- }
- // SetRevocationConfiguration sets the RevocationConfiguration field's value.
- func (s *CertificateAuthority) SetRevocationConfiguration(v *RevocationConfiguration) *CertificateAuthority {
- s.RevocationConfiguration = v
- return s
- }
- // SetSerial sets the Serial field's value.
- func (s *CertificateAuthority) SetSerial(v string) *CertificateAuthority {
- s.Serial = &v
- return s
- }
- // SetStatus sets the Status field's value.
- func (s *CertificateAuthority) SetStatus(v string) *CertificateAuthority {
- s.Status = &v
- return s
- }
- // SetType sets the Type field's value.
- func (s *CertificateAuthority) SetType(v string) *CertificateAuthority {
- s.Type = &v
- return s
- }
- // Contains configuration information for your private certificate authority
- // (CA). This includes information about the class of public key algorithm and
- // the key pair that your private CA creates when it issues a certificate, the
- // signature algorithm it uses used when issuing certificates, and its X.500
- // distinguished name. You must specify this information when you call the CreateCertificateAuthority
- // operation.
- type CertificateAuthorityConfiguration struct {
- _ struct{} `type:"structure"`
- // Type of the public key algorithm and size, in bits, of the key pair that
- // your key pair creates when it issues a certificate.
- //
- // KeyAlgorithm is a required field
- KeyAlgorithm *string `type:"string" required:"true" enum:"KeyAlgorithm"`
- // Name of the algorithm your private CA uses to sign certificate requests.
- //
- // SigningAlgorithm is a required field
- SigningAlgorithm *string `type:"string" required:"true" enum:"SigningAlgorithm"`
- // Structure that contains X.500 distinguished name information for your private
- // CA.
- //
- // Subject is a required field
- Subject *ASN1Subject `type:"structure" required:"true"`
- }
- // String returns the string representation
- func (s CertificateAuthorityConfiguration) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CertificateAuthorityConfiguration) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CertificateAuthorityConfiguration) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CertificateAuthorityConfiguration"}
- if s.KeyAlgorithm == nil {
- invalidParams.Add(request.NewErrParamRequired("KeyAlgorithm"))
- }
- if s.SigningAlgorithm == nil {
- invalidParams.Add(request.NewErrParamRequired("SigningAlgorithm"))
- }
- if s.Subject == nil {
- invalidParams.Add(request.NewErrParamRequired("Subject"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetKeyAlgorithm sets the KeyAlgorithm field's value.
- func (s *CertificateAuthorityConfiguration) SetKeyAlgorithm(v string) *CertificateAuthorityConfiguration {
- s.KeyAlgorithm = &v
- return s
- }
- // SetSigningAlgorithm sets the SigningAlgorithm field's value.
- func (s *CertificateAuthorityConfiguration) SetSigningAlgorithm(v string) *CertificateAuthorityConfiguration {
- s.SigningAlgorithm = &v
- return s
- }
- // SetSubject sets the Subject field's value.
- func (s *CertificateAuthorityConfiguration) SetSubject(v *ASN1Subject) *CertificateAuthorityConfiguration {
- s.Subject = v
- return s
- }
- type CreateCertificateAuthorityAuditReportInput struct {
- _ struct{} `type:"structure"`
- // Format in which to create the report. This can be either JSON or CSV.
- //
- // AuditReportResponseFormat is a required field
- AuditReportResponseFormat *string `type:"string" required:"true" enum:"AuditReportResponseFormat"`
- // Amazon Resource Name (ARN) of the CA to be audited. This is of the form:
- //
- // arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012.
- //
- // CertificateAuthorityArn is a required field
- CertificateAuthorityArn *string `min:"5" type:"string" required:"true"`
- // Name of the S3 bucket that will contain the audit report.
- //
- // S3BucketName is a required field
- S3BucketName *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s CreateCertificateAuthorityAuditReportInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateCertificateAuthorityAuditReportInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreateCertificateAuthorityAuditReportInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateCertificateAuthorityAuditReportInput"}
- if s.AuditReportResponseFormat == nil {
- invalidParams.Add(request.NewErrParamRequired("AuditReportResponseFormat"))
- }
- if s.CertificateAuthorityArn == nil {
- invalidParams.Add(request.NewErrParamRequired("CertificateAuthorityArn"))
- }
- if s.CertificateAuthorityArn != nil && len(*s.CertificateAuthorityArn) < 5 {
- invalidParams.Add(request.NewErrParamMinLen("CertificateAuthorityArn", 5))
- }
- if s.S3BucketName == nil {
- invalidParams.Add(request.NewErrParamRequired("S3BucketName"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetAuditReportResponseFormat sets the AuditReportResponseFormat field's value.
- func (s *CreateCertificateAuthorityAuditReportInput) SetAuditReportResponseFormat(v string) *CreateCertificateAuthorityAuditReportInput {
- s.AuditReportResponseFormat = &v
- return s
- }
- // SetCertificateAuthorityArn sets the CertificateAuthorityArn field's value.
- func (s *CreateCertificateAuthorityAuditReportInput) SetCertificateAuthorityArn(v string) *CreateCertificateAuthorityAuditReportInput {
- s.CertificateAuthorityArn = &v
- return s
- }
- // SetS3BucketName sets the S3BucketName field's value.
- func (s *CreateCertificateAuthorityAuditReportInput) SetS3BucketName(v string) *CreateCertificateAuthorityAuditReportInput {
- s.S3BucketName = &v
- return s
- }
- type CreateCertificateAuthorityAuditReportOutput struct {
- _ struct{} `type:"structure"`
- // An alphanumeric string that contains a report identifier.
- AuditReportId *string `min:"36" type:"string"`
- // The key that uniquely identifies the report file in your S3 bucket.
- S3Key *string `type:"string"`
- }
- // String returns the string representation
- func (s CreateCertificateAuthorityAuditReportOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateCertificateAuthorityAuditReportOutput) GoString() string {
- return s.String()
- }
- // SetAuditReportId sets the AuditReportId field's value.
- func (s *CreateCertificateAuthorityAuditReportOutput) SetAuditReportId(v string) *CreateCertificateAuthorityAuditReportOutput {
- s.AuditReportId = &v
- return s
- }
- // SetS3Key sets the S3Key field's value.
- func (s *CreateCertificateAuthorityAuditReportOutput) SetS3Key(v string) *CreateCertificateAuthorityAuditReportOutput {
- s.S3Key = &v
- return s
- }
- type CreateCertificateAuthorityInput struct {
- _ struct{} `type:"structure"`
- // Name and bit size of the private key algorithm, the name of the signing algorithm,
- // and X.500 certificate subject information.
- //
- // CertificateAuthorityConfiguration is a required field
- CertificateAuthorityConfiguration *CertificateAuthorityConfiguration `type:"structure" required:"true"`
- // The type of the certificate authority. Currently, this must be SUBORDINATE.
- //
- // CertificateAuthorityType is a required field
- CertificateAuthorityType *string `type:"string" required:"true" enum:"CertificateAuthorityType"`
- // Alphanumeric string that can be used to distinguish between calls to CreateCertificateAuthority.
- // Idempotency tokens time out after five minutes. Therefore, if you call CreateCertificateAuthority
- // multiple times with the same idempotency token within a five minute period,
- // ACM PCA recognizes that you are requesting only one certificate. As a result,
- // ACM PCA issues only one. If you change the idempotency token for each call,
- // however, ACM PCA recognizes that you are requesting multiple certificates.
- IdempotencyToken *string `min:"1" type:"string"`
- // Contains a Boolean value that you can use to enable a certification revocation
- // list (CRL) for the CA, the name of the S3 bucket to which ACM PCA will write
- // the CRL, and an optional CNAME alias that you can use to hide the name of
- // your bucket in the CRL Distribution Points extension of your CA certificate.
- // For more information, see the CrlConfiguration structure.
- RevocationConfiguration *RevocationConfiguration `type:"structure"`
- // Key-value pairs that will be attached to the new private CA. You can associate
- // up to 50 tags with a private CA.
- Tags []*Tag `min:"1" type:"list"`
- }
- // String returns the string representation
- func (s CreateCertificateAuthorityInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateCertificateAuthorityInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreateCertificateAuthorityInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateCertificateAuthorityInput"}
- if s.CertificateAuthorityConfiguration == nil {
- invalidParams.Add(request.NewErrParamRequired("CertificateAuthorityConfiguration"))
- }
- if s.CertificateAuthorityType == nil {
- invalidParams.Add(request.NewErrParamRequired("CertificateAuthorityType"))
- }
- if s.IdempotencyToken != nil && len(*s.IdempotencyToken) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("IdempotencyToken", 1))
- }
- if s.Tags != nil && len(s.Tags) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Tags", 1))
- }
- if s.CertificateAuthorityConfiguration != nil {
- if err := s.CertificateAuthorityConfiguration.Validate(); err != nil {
- invalidParams.AddNested("CertificateAuthorityConfiguration", err.(request.ErrInvalidParams))
- }
- }
- if s.RevocationConfiguration != nil {
- if err := s.RevocationConfiguration.Validate(); err != nil {
- invalidParams.AddNested("RevocationConfiguration", err.(request.ErrInvalidParams))
- }
- }
- if s.Tags != nil {
- for i, v := range s.Tags {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetCertificateAuthorityConfiguration sets the CertificateAuthorityConfiguration field's value.
- func (s *CreateCertificateAuthorityInput) SetCertificateAuthorityConfiguration(v *CertificateAuthorityConfiguration) *CreateCertificateAuthorityInput {
- s.CertificateAuthorityConfiguration = v
- return s
- }
- // SetCertificateAuthorityType sets the CertificateAuthorityType field's value.
- func (s *CreateCertificateAuthorityInput) SetCertificateAuthorityType(v string) *CreateCertificateAuthorityInput {
- s.CertificateAuthorityType = &v
- return s
- }
- // SetIdempotencyToken sets the IdempotencyToken field's value.
- func (s *CreateCertificateAuthorityInput) SetIdempotencyToken(v string) *CreateCertificateAuthorityInput {
- s.IdempotencyToken = &v
- return s
- }
- // SetRevocationConfiguration sets the RevocationConfiguration field's value.
- func (s *CreateCertificateAuthorityInput) SetRevocationConfiguration(v *RevocationConfiguration) *CreateCertificateAuthorityInput {
- s.RevocationConfiguration = v
- return s
- }
- // SetTags sets the Tags field's value.
- func (s *CreateCertificateAuthorityInput) SetTags(v []*Tag) *CreateCertificateAuthorityInput {
- s.Tags = v
- return s
- }
- type CreateCertificateAuthorityOutput struct {
- _ struct{} `type:"structure"`
- // If successful, the Amazon Resource Name (ARN) of the certificate authority
- // (CA). This is of the form:
- //
- // arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012.
- CertificateAuthorityArn *string `min:"5" type:"string"`
- }
- // String returns the string representation
- func (s CreateCertificateAuthorityOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateCertificateAuthorityOutput) GoString() string {
- return s.String()
- }
- // SetCertificateAuthorityArn sets the CertificateAuthorityArn field's value.
- func (s *CreateCertificateAuthorityOutput) SetCertificateAuthorityArn(v string) *CreateCertificateAuthorityOutput {
- s.CertificateAuthorityArn = &v
- return s
- }
- // Contains configuration information for a certificate revocation list (CRL).
- // Your private certificate authority (CA) creates base CRLs. Delta CRLs are
- // not supported. You can enable CRLs for your new or an existing private CA
- // by setting the Enabled parameter to true. Your private CA writes CRLs to
- // an S3 bucket that you specify in the S3BucketName parameter. You can hide
- // the name of your bucket by specifying a value for the CustomCname parameter.
- // Your private CA copies the CNAME or the S3 bucket name to the CRL Distribution
- // Points extension of each certificate it issues. Your S3 bucket policy must
- // give write permission to ACM PCA.
- //
- // Your private CA uses the value in the ExpirationInDays parameter to calculate
- // the nextUpdate field in the CRL. The CRL is refreshed at 1/2 the age of next
- // update or when a certificate is revoked. When a certificate is revoked, it
- // is recorded in the next CRL that is generated and in the next audit report.
- // Only time valid certificates are listed in the CRL. Expired certificates
- // are not included.
- //
- // CRLs contain the following fields:
- //
- // * Version: The current version number defined in RFC 5280 is V2. The integer
- // value is 0x1.
- //
- // * Signature Algorithm: The name of the algorithm used to sign the CRL.
- //
- // * Issuer: The X.500 distinguished name of your private CA that issued
- // the CRL.
- //
- // * Last Update: The issue date and time of this CRL.
- //
- // * Next Update: The day and time by which the next CRL will be issued.
- //
- // * Revoked Certificates: List of revoked certificates. Each list item contains
- // the following information.
- //
- // Serial Number: The serial number, in hexadecimal format, of the revoked certificate.
- //
- // Revocation Date: Date and time the certificate was revoked.
- //
- // CRL Entry Extensions: Optional extensions for the CRL entry.
- //
- // X509v3 CRL Reason Code: Reason the certificate was revoked.
- //
- // * CRL Extensions: Optional extensions for the CRL.
- //
- // X509v3 Authority Key Identifier: Identifies the public key associated with
- // the private key used to sign the certificate.
- //
- // X509v3 CRL Number:: Decimal sequence number for the CRL.
- //
- // * Signature Algorithm: Algorithm used by your private CA to sign the CRL.
- //
- // * Signature Value: Signature computed over the CRL.
- //
- // Certificate revocation lists created by ACM PCA are DER-encoded. You can
- // use the following OpenSSL command to list a CRL.
- //
- // openssl crl -inform DER -text -in crl_path -noout
- type CrlConfiguration struct {
- _ struct{} `type:"structure"`
- // Name inserted into the certificate CRL Distribution Points extension that
- // enables the use of an alias for the CRL distribution point. Use this value
- // if you don't want the name of your S3 bucket to be public.
- CustomCname *string `type:"string"`
- // Boolean value that specifies whether certificate revocation lists (CRLs)
- // are enabled. You can use this value to enable certificate revocation for
- // a new CA when you call the CreateCertificateAuthority operation or for an
- // existing CA when you call the UpdateCertificateAuthority operation.
- //
- // Enabled is a required field
- Enabled *bool `type:"boolean" required:"true"`
- // Number of days until a certificate expires.
- ExpirationInDays *int64 `min:"1" type:"integer"`
- // Name of the S3 bucket that contains the CRL. If you do not provide a value
- // for the CustomCname argument, the name of your S3 bucket is placed into the
- // CRL Distribution Points extension of the issued certificate. You can change
- // the name of your bucket by calling the UpdateCertificateAuthority operation.
- // You must specify a bucket policy that allows ACM PCA to write the CRL to
- // your bucket.
- S3BucketName *string `min:"3" type:"string"`
- }
- // String returns the string representation
- func (s CrlConfiguration) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CrlConfiguration) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CrlConfiguration) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CrlConfiguration"}
- if s.Enabled == nil {
- invalidParams.Add(request.NewErrParamRequired("Enabled"))
- }
- if s.ExpirationInDays != nil && *s.ExpirationInDays < 1 {
- invalidParams.Add(request.NewErrParamMinValue("ExpirationInDays", 1))
- }
- if s.S3BucketName != nil && len(*s.S3BucketName) < 3 {
- invalidParams.Add(request.NewErrParamMinLen("S3BucketName", 3))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetCustomCname sets the CustomCname field's value.
- func (s *CrlConfiguration) SetCustomCname(v string) *CrlConfiguration {
- s.CustomCname = &v
- return s
- }
- // SetEnabled sets the Enabled field's value.
- func (s *CrlConfiguration) SetEnabled(v bool) *CrlConfiguration {
- s.Enabled = &v
- return s
- }
- // SetExpirationInDays sets the ExpirationInDays field's value.
- func (s *CrlConfiguration) SetExpirationInDays(v int64) *CrlConfiguration {
- s.ExpirationInDays = &v
- return s
- }
- // SetS3BucketName sets the S3BucketName field's value.
- func (s *CrlConfiguration) SetS3BucketName(v string) *CrlConfiguration {
- s.S3BucketName = &v
- return s
- }
- type DeleteCertificateAuthorityInput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) that was returned when you called CreateCertificateAuthority.
- // This must have the following form:
- //
- // arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012.
- //
- // CertificateAuthorityArn is a required field
- CertificateAuthorityArn *string `min:"5" type:"string" required:"true"`
- // The number of days to make a CA restorable after it has been deleted. This
- // can be anywhere from 7 to 30 days, with 30 being the default.
- PermanentDeletionTimeInDays *int64 `min:"7" type:"integer"`
- }
- // String returns the string representation
- func (s DeleteCertificateAuthorityInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteCertificateAuthorityInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteCertificateAuthorityInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteCertificateAuthorityInput"}
- if s.CertificateAuthorityArn == nil {
- invalidParams.Add(request.NewErrParamRequired("CertificateAuthorityArn"))
- }
- if s.CertificateAuthorityArn != nil && len(*s.CertificateAuthorityArn) < 5 {
- invalidParams.Add(request.NewErrParamMinLen("CertificateAuthorityArn", 5))
- }
- if s.PermanentDeletionTimeInDays != nil && *s.PermanentDeletionTimeInDays < 7 {
- invalidParams.Add(request.NewErrParamMinValue("PermanentDeletionTimeInDays", 7))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetCertificateAuthorityArn sets the CertificateAuthorityArn field's value.
- func (s *DeleteCertificateAuthorityInput) SetCertificateAuthorityArn(v string) *DeleteCertificateAuthorityInput {
- s.CertificateAuthorityArn = &v
- return s
- }
- // SetPermanentDeletionTimeInDays sets the PermanentDeletionTimeInDays field's value.
- func (s *DeleteCertificateAuthorityInput) SetPermanentDeletionTimeInDays(v int64) *DeleteCertificateAuthorityInput {
- s.PermanentDeletionTimeInDays = &v
- return s
- }
- type DeleteCertificateAuthorityOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DeleteCertificateAuthorityOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteCertificateAuthorityOutput) GoString() string {
- return s.String()
- }
- type DescribeCertificateAuthorityAuditReportInput struct {
- _ struct{} `type:"structure"`
- // The report ID returned by calling the CreateCertificateAuthorityAuditReport
- // operation.
- //
- // AuditReportId is a required field
- AuditReportId *string `min:"36" type:"string" required:"true"`
- // The Amazon Resource Name (ARN) of the private CA. This must be of the form:
- //
- // arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012.
- //
- // CertificateAuthorityArn is a required field
- CertificateAuthorityArn *string `min:"5" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DescribeCertificateAuthorityAuditReportInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeCertificateAuthorityAuditReportInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DescribeCertificateAuthorityAuditReportInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DescribeCertificateAuthorityAuditReportInput"}
- if s.AuditReportId == nil {
- invalidParams.Add(request.NewErrParamRequired("AuditReportId"))
- }
- if s.AuditReportId != nil && len(*s.AuditReportId) < 36 {
- invalidParams.Add(request.NewErrParamMinLen("AuditReportId", 36))
- }
- if s.CertificateAuthorityArn == nil {
- invalidParams.Add(request.NewErrParamRequired("CertificateAuthorityArn"))
- }
- if s.CertificateAuthorityArn != nil && len(*s.CertificateAuthorityArn) < 5 {
- invalidParams.Add(request.NewErrParamMinLen("CertificateAuthorityArn", 5))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetAuditReportId sets the AuditReportId field's value.
- func (s *DescribeCertificateAuthorityAuditReportInput) SetAuditReportId(v string) *DescribeCertificateAuthorityAuditReportInput {
- s.AuditReportId = &v
- return s
- }
- // SetCertificateAuthorityArn sets the CertificateAuthorityArn field's value.
- func (s *DescribeCertificateAuthorityAuditReportInput) SetCertificateAuthorityArn(v string) *DescribeCertificateAuthorityAuditReportInput {
- s.CertificateAuthorityArn = &v
- return s
- }
- type DescribeCertificateAuthorityAuditReportOutput struct {
- _ struct{} `type:"structure"`
- // Specifies whether report creation is in progress, has succeeded, or has failed.
- AuditReportStatus *string `type:"string" enum:"AuditReportStatus"`
- // The date and time at which the report was created.
- CreatedAt *time.Time `type:"timestamp"`
- // Name of the S3 bucket that contains the report.
- S3BucketName *string `type:"string"`
- // S3 key that uniquely identifies the report file in your S3 bucket.
- S3Key *string `type:"string"`
- }
- // String returns the string representation
- func (s DescribeCertificateAuthorityAuditReportOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeCertificateAuthorityAuditReportOutput) GoString() string {
- return s.String()
- }
- // SetAuditReportStatus sets the AuditReportStatus field's value.
- func (s *DescribeCertificateAuthorityAuditReportOutput) SetAuditReportStatus(v string) *DescribeCertificateAuthorityAuditReportOutput {
- s.AuditReportStatus = &v
- return s
- }
- // SetCreatedAt sets the CreatedAt field's value.
- func (s *DescribeCertificateAuthorityAuditReportOutput) SetCreatedAt(v time.Time) *DescribeCertificateAuthorityAuditReportOutput {
- s.CreatedAt = &v
- return s
- }
- // SetS3BucketName sets the S3BucketName field's value.
- func (s *DescribeCertificateAuthorityAuditReportOutput) SetS3BucketName(v string) *DescribeCertificateAuthorityAuditReportOutput {
- s.S3BucketName = &v
- return s
- }
- // SetS3Key sets the S3Key field's value.
- func (s *DescribeCertificateAuthorityAuditReportOutput) SetS3Key(v string) *DescribeCertificateAuthorityAuditReportOutput {
- s.S3Key = &v
- return s
- }
- type DescribeCertificateAuthorityInput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) that was returned when you called CreateCertificateAuthority.
- // This must be of the form:
- //
- // arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012.
- //
- // CertificateAuthorityArn is a required field
- CertificateAuthorityArn *string `min:"5" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DescribeCertificateAuthorityInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeCertificateAuthorityInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DescribeCertificateAuthorityInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DescribeCertificateAuthorityInput"}
- if s.CertificateAuthorityArn == nil {
- invalidParams.Add(request.NewErrParamRequired("CertificateAuthorityArn"))
- }
- if s.CertificateAuthorityArn != nil && len(*s.CertificateAuthorityArn) < 5 {
- invalidParams.Add(request.NewErrParamMinLen("CertificateAuthorityArn", 5))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetCertificateAuthorityArn sets the CertificateAuthorityArn field's value.
- func (s *DescribeCertificateAuthorityInput) SetCertificateAuthorityArn(v string) *DescribeCertificateAuthorityInput {
- s.CertificateAuthorityArn = &v
- return s
- }
- type DescribeCertificateAuthorityOutput struct {
- _ struct{} `type:"structure"`
- // A CertificateAuthority structure that contains information about your private
- // CA.
- CertificateAuthority *CertificateAuthority `type:"structure"`
- }
- // String returns the string representation
- func (s DescribeCertificateAuthorityOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeCertificateAuthorityOutput) GoString() string {
- return s.String()
- }
- // SetCertificateAuthority sets the CertificateAuthority field's value.
- func (s *DescribeCertificateAuthorityOutput) SetCertificateAuthority(v *CertificateAuthority) *DescribeCertificateAuthorityOutput {
- s.CertificateAuthority = v
- return s
- }
- type GetCertificateAuthorityCertificateInput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of your private CA. This is of the form:
- //
- // arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012.
- //
- // CertificateAuthorityArn is a required field
- CertificateAuthorityArn *string `min:"5" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s GetCertificateAuthorityCertificateInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetCertificateAuthorityCertificateInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *GetCertificateAuthorityCertificateInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetCertificateAuthorityCertificateInput"}
- if s.CertificateAuthorityArn == nil {
- invalidParams.Add(request.NewErrParamRequired("CertificateAuthorityArn"))
- }
- if s.CertificateAuthorityArn != nil && len(*s.CertificateAuthorityArn) < 5 {
- invalidParams.Add(request.NewErrParamMinLen("CertificateAuthorityArn", 5))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetCertificateAuthorityArn sets the CertificateAuthorityArn field's value.
- func (s *GetCertificateAuthorityCertificateInput) SetCertificateAuthorityArn(v string) *GetCertificateAuthorityCertificateInput {
- s.CertificateAuthorityArn = &v
- return s
- }
- type GetCertificateAuthorityCertificateOutput struct {
- _ struct{} `type:"structure"`
- // Base64-encoded certificate authority (CA) certificate.
- Certificate *string `type:"string"`
- // Base64-encoded certificate chain that includes any intermediate certificates
- // and chains up to root on-premises certificate that you used to sign your
- // private CA certificate. The chain does not include your private CA certificate.
- CertificateChain *string `type:"string"`
- }
- // String returns the string representation
- func (s GetCertificateAuthorityCertificateOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetCertificateAuthorityCertificateOutput) GoString() string {
- return s.String()
- }
- // SetCertificate sets the Certificate field's value.
- func (s *GetCertificateAuthorityCertificateOutput) SetCertificate(v string) *GetCertificateAuthorityCertificateOutput {
- s.Certificate = &v
- return s
- }
- // SetCertificateChain sets the CertificateChain field's value.
- func (s *GetCertificateAuthorityCertificateOutput) SetCertificateChain(v string) *GetCertificateAuthorityCertificateOutput {
- s.CertificateChain = &v
- return s
- }
- type GetCertificateAuthorityCsrInput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) that was returned when you called the CreateCertificateAuthority
- // operation. This must be of the form:
- //
- // arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012
- //
- // CertificateAuthorityArn is a required field
- CertificateAuthorityArn *string `min:"5" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s GetCertificateAuthorityCsrInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetCertificateAuthorityCsrInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *GetCertificateAuthorityCsrInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetCertificateAuthorityCsrInput"}
- if s.CertificateAuthorityArn == nil {
- invalidParams.Add(request.NewErrParamRequired("CertificateAuthorityArn"))
- }
- if s.CertificateAuthorityArn != nil && len(*s.CertificateAuthorityArn) < 5 {
- invalidParams.Add(request.NewErrParamMinLen("CertificateAuthorityArn", 5))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetCertificateAuthorityArn sets the CertificateAuthorityArn field's value.
- func (s *GetCertificateAuthorityCsrInput) SetCertificateAuthorityArn(v string) *GetCertificateAuthorityCsrInput {
- s.CertificateAuthorityArn = &v
- return s
- }
- type GetCertificateAuthorityCsrOutput struct {
- _ struct{} `type:"structure"`
- // The base64 PEM-encoded certificate signing request (CSR) for your private
- // CA certificate.
- Csr *string `type:"string"`
- }
- // String returns the string representation
- func (s GetCertificateAuthorityCsrOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetCertificateAuthorityCsrOutput) GoString() string {
- return s.String()
- }
- // SetCsr sets the Csr field's value.
- func (s *GetCertificateAuthorityCsrOutput) SetCsr(v string) *GetCertificateAuthorityCsrOutput {
- s.Csr = &v
- return s
- }
- type GetCertificateInput struct {
- _ struct{} `type:"structure"`
- // The ARN of the issued certificate. The ARN contains the certificate serial
- // number and must be in the following form:
- //
- // arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012/certificate/286535153982981100925020015808220737245
- //
- // CertificateArn is a required field
- CertificateArn *string `min:"5" type:"string" required:"true"`
- // The Amazon Resource Name (ARN) that was returned when you called CreateCertificateAuthority.
- // This must be of the form:
- //
- // arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012.
- //
- // CertificateAuthorityArn is a required field
- CertificateAuthorityArn *string `min:"5" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s GetCertificateInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetCertificateInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *GetCertificateInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetCertificateInput"}
- if s.CertificateArn == nil {
- invalidParams.Add(request.NewErrParamRequired("CertificateArn"))
- }
- if s.CertificateArn != nil && len(*s.CertificateArn) < 5 {
- invalidParams.Add(request.NewErrParamMinLen("CertificateArn", 5))
- }
- if s.CertificateAuthorityArn == nil {
- invalidParams.Add(request.NewErrParamRequired("CertificateAuthorityArn"))
- }
- if s.CertificateAuthorityArn != nil && len(*s.CertificateAuthorityArn) < 5 {
- invalidParams.Add(request.NewErrParamMinLen("CertificateAuthorityArn", 5))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetCertificateArn sets the CertificateArn field's value.
- func (s *GetCertificateInput) SetCertificateArn(v string) *GetCertificateInput {
- s.CertificateArn = &v
- return s
- }
- // SetCertificateAuthorityArn sets the CertificateAuthorityArn field's value.
- func (s *GetCertificateInput) SetCertificateAuthorityArn(v string) *GetCertificateInput {
- s.CertificateAuthorityArn = &v
- return s
- }
- type GetCertificateOutput struct {
- _ struct{} `type:"structure"`
- // The base64 PEM-encoded certificate specified by the CertificateArn parameter.
- Certificate *string `type:"string"`
- // The base64 PEM-encoded certificate chain that chains up to the on-premises
- // root CA certificate that you used to sign your private CA certificate.
- CertificateChain *string `type:"string"`
- }
- // String returns the string representation
- func (s GetCertificateOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetCertificateOutput) GoString() string {
- return s.String()
- }
- // SetCertificate sets the Certificate field's value.
- func (s *GetCertificateOutput) SetCertificate(v string) *GetCertificateOutput {
- s.Certificate = &v
- return s
- }
- // SetCertificateChain sets the CertificateChain field's value.
- func (s *GetCertificateOutput) SetCertificateChain(v string) *GetCertificateOutput {
- s.CertificateChain = &v
- return s
- }
- type ImportCertificateAuthorityCertificateInput struct {
- _ struct{} `type:"structure"`
- // The PEM-encoded certificate for your private CA. This must be signed by using
- // your on-premises CA.
- //
- // Certificate is automatically base64 encoded/decoded by the SDK.
- //
- // Certificate is a required field
- Certificate []byte `min:"1" type:"blob" required:"true"`
- // The Amazon Resource Name (ARN) that was returned when you called CreateCertificateAuthority.
- // This must be of the form:
- //
- // arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012
- //
- // CertificateAuthorityArn is a required field
- CertificateAuthorityArn *string `min:"5" type:"string" required:"true"`
- // A PEM-encoded file that contains all of your certificates, other than the
- // certificate you're importing, chaining up to your root CA. Your on-premises
- // root certificate is the last in the chain, and each certificate in the chain
- // signs the one preceding.
- //
- // CertificateChain is automatically base64 encoded/decoded by the SDK.
- //
- // CertificateChain is a required field
- CertificateChain []byte `type:"blob" required:"true"`
- }
- // String returns the string representation
- func (s ImportCertificateAuthorityCertificateInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ImportCertificateAuthorityCertificateInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ImportCertificateAuthorityCertificateInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ImportCertificateAuthorityCertificateInput"}
- if s.Certificate == nil {
- invalidParams.Add(request.NewErrParamRequired("Certificate"))
- }
- if s.Certificate != nil && len(s.Certificate) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Certificate", 1))
- }
- if s.CertificateAuthorityArn == nil {
- invalidParams.Add(request.NewErrParamRequired("CertificateAuthorityArn"))
- }
- if s.CertificateAuthorityArn != nil && len(*s.CertificateAuthorityArn) < 5 {
- invalidParams.Add(request.NewErrParamMinLen("CertificateAuthorityArn", 5))
- }
- if s.CertificateChain == nil {
- invalidParams.Add(request.NewErrParamRequired("CertificateChain"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetCertificate sets the Certificate field's value.
- func (s *ImportCertificateAuthorityCertificateInput) SetCertificate(v []byte) *ImportCertificateAuthorityCertificateInput {
- s.Certificate = v
- return s
- }
- // SetCertificateAuthorityArn sets the CertificateAuthorityArn field's value.
- func (s *ImportCertificateAuthorityCertificateInput) SetCertificateAuthorityArn(v string) *ImportCertificateAuthorityCertificateInput {
- s.CertificateAuthorityArn = &v
- return s
- }
- // SetCertificateChain sets the CertificateChain field's value.
- func (s *ImportCertificateAuthorityCertificateInput) SetCertificateChain(v []byte) *ImportCertificateAuthorityCertificateInput {
- s.CertificateChain = v
- return s
- }
- type ImportCertificateAuthorityCertificateOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s ImportCertificateAuthorityCertificateOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ImportCertificateAuthorityCertificateOutput) GoString() string {
- return s.String()
- }
- type IssueCertificateInput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) that was returned when you called CreateCertificateAuthority.
- // This must be of the form:
- //
- // arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012
- //
- // CertificateAuthorityArn is a required field
- CertificateAuthorityArn *string `min:"5" type:"string" required:"true"`
- // The certificate signing request (CSR) for the certificate you want to issue.
- // You can use the following OpenSSL command to create the CSR and a 2048 bit
- // RSA private key.
- //
- // openssl req -new -newkey rsa:2048 -days 365 -keyout private/test_cert_priv_key.pem
- // -out csr/test_cert_.csr
- //
- // If you have a configuration file, you can use the following OpenSSL command.
- // The usr_cert block in the configuration file contains your X509 version 3
- // extensions.
- //
- // openssl req -new -config openssl_rsa.cnf -extensions usr_cert -newkey rsa:2048
- // -days -365 -keyout private/test_cert_priv_key.pem -out csr/test_cert_.csr
- //
- // Csr is automatically base64 encoded/decoded by the SDK.
- //
- // Csr is a required field
- Csr []byte `min:"1" type:"blob" required:"true"`
- // Custom string that can be used to distinguish between calls to the IssueCertificate
- // operation. Idempotency tokens time out after one hour. Therefore, if you
- // call IssueCertificate multiple times with the same idempotency token within
- // 5 minutes, ACM PCA recognizes that you are requesting only one certificate
- // and will issue only one. If you change the idempotency token for each call,
- // PCA recognizes that you are requesting multiple certificates.
- IdempotencyToken *string `min:"1" type:"string"`
- // The name of the algorithm that will be used to sign the certificate to be
- // issued.
- //
- // SigningAlgorithm is a required field
- SigningAlgorithm *string `type:"string" required:"true" enum:"SigningAlgorithm"`
- // The type of the validity period.
- //
- // Validity is a required field
- Validity *Validity `type:"structure" required:"true"`
- }
- // String returns the string representation
- func (s IssueCertificateInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s IssueCertificateInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *IssueCertificateInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "IssueCertificateInput"}
- if s.CertificateAuthorityArn == nil {
- invalidParams.Add(request.NewErrParamRequired("CertificateAuthorityArn"))
- }
- if s.CertificateAuthorityArn != nil && len(*s.CertificateAuthorityArn) < 5 {
- invalidParams.Add(request.NewErrParamMinLen("CertificateAuthorityArn", 5))
- }
- if s.Csr == nil {
- invalidParams.Add(request.NewErrParamRequired("Csr"))
- }
- if s.Csr != nil && len(s.Csr) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Csr", 1))
- }
- if s.IdempotencyToken != nil && len(*s.IdempotencyToken) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("IdempotencyToken", 1))
- }
- if s.SigningAlgorithm == nil {
- invalidParams.Add(request.NewErrParamRequired("SigningAlgorithm"))
- }
- if s.Validity == nil {
- invalidParams.Add(request.NewErrParamRequired("Validity"))
- }
- if s.Validity != nil {
- if err := s.Validity.Validate(); err != nil {
- invalidParams.AddNested("Validity", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetCertificateAuthorityArn sets the CertificateAuthorityArn field's value.
- func (s *IssueCertificateInput) SetCertificateAuthorityArn(v string) *IssueCertificateInput {
- s.CertificateAuthorityArn = &v
- return s
- }
- // SetCsr sets the Csr field's value.
- func (s *IssueCertificateInput) SetCsr(v []byte) *IssueCertificateInput {
- s.Csr = v
- return s
- }
- // SetIdempotencyToken sets the IdempotencyToken field's value.
- func (s *IssueCertificateInput) SetIdempotencyToken(v string) *IssueCertificateInput {
- s.IdempotencyToken = &v
- return s
- }
- // SetSigningAlgorithm sets the SigningAlgorithm field's value.
- func (s *IssueCertificateInput) SetSigningAlgorithm(v string) *IssueCertificateInput {
- s.SigningAlgorithm = &v
- return s
- }
- // SetValidity sets the Validity field's value.
- func (s *IssueCertificateInput) SetValidity(v *Validity) *IssueCertificateInput {
- s.Validity = v
- return s
- }
- type IssueCertificateOutput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the issued certificate and the certificate
- // serial number. This is of the form:
- //
- // arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012/certificate/286535153982981100925020015808220737245
- CertificateArn *string `min:"5" type:"string"`
- }
- // String returns the string representation
- func (s IssueCertificateOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s IssueCertificateOutput) GoString() string {
- return s.String()
- }
- // SetCertificateArn sets the CertificateArn field's value.
- func (s *IssueCertificateOutput) SetCertificateArn(v string) *IssueCertificateOutput {
- s.CertificateArn = &v
- return s
- }
- type ListCertificateAuthoritiesInput struct {
- _ struct{} `type:"structure"`
- // Use this parameter when paginating results to specify the maximum number
- // of items to return in the response on each page. If additional items exist
- // beyond the number you specify, the NextToken element is sent in the response.
- // Use this NextToken value in a subsequent request to retrieve additional items.
- MaxResults *int64 `min:"1" type:"integer"`
- // Use this parameter when paginating results in a subsequent request after
- // you receive a response with truncated results. Set it to the value of the
- // NextToken parameter from the response you just received.
- NextToken *string `min:"1" type:"string"`
- }
- // String returns the string representation
- func (s ListCertificateAuthoritiesInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListCertificateAuthoritiesInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListCertificateAuthoritiesInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListCertificateAuthoritiesInput"}
- if s.MaxResults != nil && *s.MaxResults < 1 {
- invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
- }
- if s.NextToken != nil && len(*s.NextToken) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetMaxResults sets the MaxResults field's value.
- func (s *ListCertificateAuthoritiesInput) SetMaxResults(v int64) *ListCertificateAuthoritiesInput {
- s.MaxResults = &v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListCertificateAuthoritiesInput) SetNextToken(v string) *ListCertificateAuthoritiesInput {
- s.NextToken = &v
- return s
- }
- type ListCertificateAuthoritiesOutput struct {
- _ struct{} `type:"structure"`
- // Summary information about each certificate authority you have created.
- CertificateAuthorities []*CertificateAuthority `type:"list"`
- // When the list is truncated, this value is present and should be used for
- // the NextToken parameter in a subsequent pagination request.
- NextToken *string `min:"1" type:"string"`
- }
- // String returns the string representation
- func (s ListCertificateAuthoritiesOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListCertificateAuthoritiesOutput) GoString() string {
- return s.String()
- }
- // SetCertificateAuthorities sets the CertificateAuthorities field's value.
- func (s *ListCertificateAuthoritiesOutput) SetCertificateAuthorities(v []*CertificateAuthority) *ListCertificateAuthoritiesOutput {
- s.CertificateAuthorities = v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListCertificateAuthoritiesOutput) SetNextToken(v string) *ListCertificateAuthoritiesOutput {
- s.NextToken = &v
- return s
- }
- type ListTagsInput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) that was returned when you called the CreateCertificateAuthority
- // operation. This must be of the form:
- //
- // arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012
- //
- // CertificateAuthorityArn is a required field
- CertificateAuthorityArn *string `min:"5" type:"string" required:"true"`
- // Use this parameter when paginating results to specify the maximum number
- // of items to return in the response. If additional items exist beyond the
- // number you specify, the NextToken element is sent in the response. Use this
- // NextToken value in a subsequent request to retrieve additional items.
- MaxResults *int64 `min:"1" type:"integer"`
- // Use this parameter when paginating results in a subsequent request after
- // you receive a response with truncated results. Set it to the value of NextToken
- // from the response you just received.
- NextToken *string `min:"1" type:"string"`
- }
- // String returns the string representation
- func (s ListTagsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListTagsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListTagsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListTagsInput"}
- if s.CertificateAuthorityArn == nil {
- invalidParams.Add(request.NewErrParamRequired("CertificateAuthorityArn"))
- }
- if s.CertificateAuthorityArn != nil && len(*s.CertificateAuthorityArn) < 5 {
- invalidParams.Add(request.NewErrParamMinLen("CertificateAuthorityArn", 5))
- }
- if s.MaxResults != nil && *s.MaxResults < 1 {
- invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
- }
- if s.NextToken != nil && len(*s.NextToken) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetCertificateAuthorityArn sets the CertificateAuthorityArn field's value.
- func (s *ListTagsInput) SetCertificateAuthorityArn(v string) *ListTagsInput {
- s.CertificateAuthorityArn = &v
- return s
- }
- // SetMaxResults sets the MaxResults field's value.
- func (s *ListTagsInput) SetMaxResults(v int64) *ListTagsInput {
- s.MaxResults = &v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListTagsInput) SetNextToken(v string) *ListTagsInput {
- s.NextToken = &v
- return s
- }
- type ListTagsOutput struct {
- _ struct{} `type:"structure"`
- // When the list is truncated, this value is present and should be used for
- // the NextToken parameter in a subsequent pagination request.
- NextToken *string `min:"1" type:"string"`
- // The tags associated with your private CA.
- Tags []*Tag `min:"1" type:"list"`
- }
- // String returns the string representation
- func (s ListTagsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListTagsOutput) GoString() string {
- return s.String()
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListTagsOutput) SetNextToken(v string) *ListTagsOutput {
- s.NextToken = &v
- return s
- }
- // SetTags sets the Tags field's value.
- func (s *ListTagsOutput) SetTags(v []*Tag) *ListTagsOutput {
- s.Tags = v
- return s
- }
- type RestoreCertificateAuthorityInput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) that was returned when you called the CreateCertificateAuthority
- // operation. This must be of the form:
- //
- // arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012
- //
- // CertificateAuthorityArn is a required field
- CertificateAuthorityArn *string `min:"5" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s RestoreCertificateAuthorityInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s RestoreCertificateAuthorityInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *RestoreCertificateAuthorityInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "RestoreCertificateAuthorityInput"}
- if s.CertificateAuthorityArn == nil {
- invalidParams.Add(request.NewErrParamRequired("CertificateAuthorityArn"))
- }
- if s.CertificateAuthorityArn != nil && len(*s.CertificateAuthorityArn) < 5 {
- invalidParams.Add(request.NewErrParamMinLen("CertificateAuthorityArn", 5))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetCertificateAuthorityArn sets the CertificateAuthorityArn field's value.
- func (s *RestoreCertificateAuthorityInput) SetCertificateAuthorityArn(v string) *RestoreCertificateAuthorityInput {
- s.CertificateAuthorityArn = &v
- return s
- }
- type RestoreCertificateAuthorityOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s RestoreCertificateAuthorityOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s RestoreCertificateAuthorityOutput) GoString() string {
- return s.String()
- }
- // Certificate revocation information used by the CreateCertificateAuthority
- // and UpdateCertificateAuthority operations. Your private certificate authority
- // (CA) can create and maintain a certificate revocation list (CRL). A CRL contains
- // information about certificates revoked by your CA. For more information,
- // see RevokeCertificate.
- type RevocationConfiguration struct {
- _ struct{} `type:"structure"`
- // Configuration of the certificate revocation list (CRL), if any, maintained
- // by your private CA.
- CrlConfiguration *CrlConfiguration `type:"structure"`
- }
- // String returns the string representation
- func (s RevocationConfiguration) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s RevocationConfiguration) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *RevocationConfiguration) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "RevocationConfiguration"}
- if s.CrlConfiguration != nil {
- if err := s.CrlConfiguration.Validate(); err != nil {
- invalidParams.AddNested("CrlConfiguration", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetCrlConfiguration sets the CrlConfiguration field's value.
- func (s *RevocationConfiguration) SetCrlConfiguration(v *CrlConfiguration) *RevocationConfiguration {
- s.CrlConfiguration = v
- return s
- }
- type RevokeCertificateInput struct {
- _ struct{} `type:"structure"`
- // Amazon Resource Name (ARN) of the private CA that issued the certificate
- // to be revoked. This must be of the form:
- //
- // arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012
- //
- // CertificateAuthorityArn is a required field
- CertificateAuthorityArn *string `min:"5" type:"string" required:"true"`
- // Serial number of the certificate to be revoked. This must be in hexadecimal
- // format. You can retrieve the serial number by calling GetCertificate with
- // the Amazon Resource Name (ARN) of the certificate you want and the ARN of
- // your private CA. The GetCertificate operation retrieves the certificate in
- // the PEM format. You can use the following OpenSSL command to list the certificate
- // in text format and copy the hexadecimal serial number.
- //
- // openssl x509 -in file_path -text -noout
- //
- // You can also copy the serial number from the console or use the DescribeCertificate
- // (https://docs.aws.amazon.com/acm/latest/APIReference/API_DescribeCertificate.html)
- // operation in the AWS Certificate Manager API Reference.
- //
- // CertificateSerial is a required field
- CertificateSerial *string `type:"string" required:"true"`
- // Specifies why you revoked the certificate.
- //
- // RevocationReason is a required field
- RevocationReason *string `type:"string" required:"true" enum:"RevocationReason"`
- }
- // String returns the string representation
- func (s RevokeCertificateInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s RevokeCertificateInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *RevokeCertificateInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "RevokeCertificateInput"}
- if s.CertificateAuthorityArn == nil {
- invalidParams.Add(request.NewErrParamRequired("CertificateAuthorityArn"))
- }
- if s.CertificateAuthorityArn != nil && len(*s.CertificateAuthorityArn) < 5 {
- invalidParams.Add(request.NewErrParamMinLen("CertificateAuthorityArn", 5))
- }
- if s.CertificateSerial == nil {
- invalidParams.Add(request.NewErrParamRequired("CertificateSerial"))
- }
- if s.RevocationReason == nil {
- invalidParams.Add(request.NewErrParamRequired("RevocationReason"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetCertificateAuthorityArn sets the CertificateAuthorityArn field's value.
- func (s *RevokeCertificateInput) SetCertificateAuthorityArn(v string) *RevokeCertificateInput {
- s.CertificateAuthorityArn = &v
- return s
- }
- // SetCertificateSerial sets the CertificateSerial field's value.
- func (s *RevokeCertificateInput) SetCertificateSerial(v string) *RevokeCertificateInput {
- s.CertificateSerial = &v
- return s
- }
- // SetRevocationReason sets the RevocationReason field's value.
- func (s *RevokeCertificateInput) SetRevocationReason(v string) *RevokeCertificateInput {
- s.RevocationReason = &v
- return s
- }
- type RevokeCertificateOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s RevokeCertificateOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s RevokeCertificateOutput) GoString() string {
- return s.String()
- }
- // Tags are labels that you can use to identify and organize your private CAs.
- // Each tag consists of a key and an optional value. You can associate up to
- // 50 tags with a private CA. To add one or more tags to a private CA, call
- // the TagCertificateAuthority operation. To remove a tag, call the UntagCertificateAuthority
- // operation.
- type Tag struct {
- _ struct{} `type:"structure"`
- // Key (name) of the tag.
- //
- // Key is a required field
- Key *string `min:"1" type:"string" required:"true"`
- // Value of the tag.
- Value *string `type:"string"`
- }
- // 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 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
- }
- type TagCertificateAuthorityInput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) that was returned when you called CreateCertificateAuthority.
- // This must be of the form:
- //
- // arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012
- //
- // CertificateAuthorityArn is a required field
- CertificateAuthorityArn *string `min:"5" type:"string" required:"true"`
- // List of tags to be associated with the CA.
- //
- // Tags is a required field
- Tags []*Tag `min:"1" type:"list" required:"true"`
- }
- // String returns the string representation
- func (s TagCertificateAuthorityInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s TagCertificateAuthorityInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *TagCertificateAuthorityInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "TagCertificateAuthorityInput"}
- if s.CertificateAuthorityArn == nil {
- invalidParams.Add(request.NewErrParamRequired("CertificateAuthorityArn"))
- }
- if s.CertificateAuthorityArn != nil && len(*s.CertificateAuthorityArn) < 5 {
- invalidParams.Add(request.NewErrParamMinLen("CertificateAuthorityArn", 5))
- }
- if s.Tags == nil {
- invalidParams.Add(request.NewErrParamRequired("Tags"))
- }
- if s.Tags != nil && len(s.Tags) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Tags", 1))
- }
- if s.Tags != nil {
- for i, v := range s.Tags {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetCertificateAuthorityArn sets the CertificateAuthorityArn field's value.
- func (s *TagCertificateAuthorityInput) SetCertificateAuthorityArn(v string) *TagCertificateAuthorityInput {
- s.CertificateAuthorityArn = &v
- return s
- }
- // SetTags sets the Tags field's value.
- func (s *TagCertificateAuthorityInput) SetTags(v []*Tag) *TagCertificateAuthorityInput {
- s.Tags = v
- return s
- }
- type TagCertificateAuthorityOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s TagCertificateAuthorityOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s TagCertificateAuthorityOutput) GoString() string {
- return s.String()
- }
- type UntagCertificateAuthorityInput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) that was returned when you called CreateCertificateAuthority.
- // This must be of the form:
- //
- // arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012
- //
- // CertificateAuthorityArn is a required field
- CertificateAuthorityArn *string `min:"5" type:"string" required:"true"`
- // List of tags to be removed from the CA.
- //
- // Tags is a required field
- Tags []*Tag `min:"1" type:"list" required:"true"`
- }
- // String returns the string representation
- func (s UntagCertificateAuthorityInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UntagCertificateAuthorityInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *UntagCertificateAuthorityInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "UntagCertificateAuthorityInput"}
- if s.CertificateAuthorityArn == nil {
- invalidParams.Add(request.NewErrParamRequired("CertificateAuthorityArn"))
- }
- if s.CertificateAuthorityArn != nil && len(*s.CertificateAuthorityArn) < 5 {
- invalidParams.Add(request.NewErrParamMinLen("CertificateAuthorityArn", 5))
- }
- if s.Tags == nil {
- invalidParams.Add(request.NewErrParamRequired("Tags"))
- }
- if s.Tags != nil && len(s.Tags) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Tags", 1))
- }
- if s.Tags != nil {
- for i, v := range s.Tags {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetCertificateAuthorityArn sets the CertificateAuthorityArn field's value.
- func (s *UntagCertificateAuthorityInput) SetCertificateAuthorityArn(v string) *UntagCertificateAuthorityInput {
- s.CertificateAuthorityArn = &v
- return s
- }
- // SetTags sets the Tags field's value.
- func (s *UntagCertificateAuthorityInput) SetTags(v []*Tag) *UntagCertificateAuthorityInput {
- s.Tags = v
- return s
- }
- type UntagCertificateAuthorityOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s UntagCertificateAuthorityOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UntagCertificateAuthorityOutput) GoString() string {
- return s.String()
- }
- type UpdateCertificateAuthorityInput struct {
- _ struct{} `type:"structure"`
- // Amazon Resource Name (ARN) of the private CA that issued the certificate
- // to be revoked. This must be of the form:
- //
- // arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012
- //
- // CertificateAuthorityArn is a required field
- CertificateAuthorityArn *string `min:"5" type:"string" required:"true"`
- // Revocation information for your private CA.
- RevocationConfiguration *RevocationConfiguration `type:"structure"`
- // Status of your private CA.
- Status *string `type:"string" enum:"CertificateAuthorityStatus"`
- }
- // String returns the string representation
- func (s UpdateCertificateAuthorityInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateCertificateAuthorityInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *UpdateCertificateAuthorityInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "UpdateCertificateAuthorityInput"}
- if s.CertificateAuthorityArn == nil {
- invalidParams.Add(request.NewErrParamRequired("CertificateAuthorityArn"))
- }
- if s.CertificateAuthorityArn != nil && len(*s.CertificateAuthorityArn) < 5 {
- invalidParams.Add(request.NewErrParamMinLen("CertificateAuthorityArn", 5))
- }
- if s.RevocationConfiguration != nil {
- if err := s.RevocationConfiguration.Validate(); err != nil {
- invalidParams.AddNested("RevocationConfiguration", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetCertificateAuthorityArn sets the CertificateAuthorityArn field's value.
- func (s *UpdateCertificateAuthorityInput) SetCertificateAuthorityArn(v string) *UpdateCertificateAuthorityInput {
- s.CertificateAuthorityArn = &v
- return s
- }
- // SetRevocationConfiguration sets the RevocationConfiguration field's value.
- func (s *UpdateCertificateAuthorityInput) SetRevocationConfiguration(v *RevocationConfiguration) *UpdateCertificateAuthorityInput {
- s.RevocationConfiguration = v
- return s
- }
- // SetStatus sets the Status field's value.
- func (s *UpdateCertificateAuthorityInput) SetStatus(v string) *UpdateCertificateAuthorityInput {
- s.Status = &v
- return s
- }
- type UpdateCertificateAuthorityOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s UpdateCertificateAuthorityOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateCertificateAuthorityOutput) GoString() string {
- return s.String()
- }
- // Length of time for which the certificate issued by your private certificate
- // authority (CA), or by the private CA itself, is valid in days, months, or
- // years. You can issue a certificate by calling the IssueCertificate operation.
- type Validity struct {
- _ struct{} `type:"structure"`
- // Specifies whether the Value parameter represents days, months, or years.
- //
- // Type is a required field
- Type *string `type:"string" required:"true" enum:"ValidityPeriodType"`
- // Time period.
- //
- // Value is a required field
- Value *int64 `min:"1" type:"long" required:"true"`
- }
- // String returns the string representation
- func (s Validity) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s Validity) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *Validity) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "Validity"}
- if s.Type == nil {
- invalidParams.Add(request.NewErrParamRequired("Type"))
- }
- if s.Value == nil {
- invalidParams.Add(request.NewErrParamRequired("Value"))
- }
- if s.Value != nil && *s.Value < 1 {
- invalidParams.Add(request.NewErrParamMinValue("Value", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetType sets the Type field's value.
- func (s *Validity) SetType(v string) *Validity {
- s.Type = &v
- return s
- }
- // SetValue sets the Value field's value.
- func (s *Validity) SetValue(v int64) *Validity {
- s.Value = &v
- return s
- }
- const (
- // AuditReportResponseFormatJson is a AuditReportResponseFormat enum value
- AuditReportResponseFormatJson = "JSON"
- // AuditReportResponseFormatCsv is a AuditReportResponseFormat enum value
- AuditReportResponseFormatCsv = "CSV"
- )
- const (
- // AuditReportStatusCreating is a AuditReportStatus enum value
- AuditReportStatusCreating = "CREATING"
- // AuditReportStatusSuccess is a AuditReportStatus enum value
- AuditReportStatusSuccess = "SUCCESS"
- // AuditReportStatusFailed is a AuditReportStatus enum value
- AuditReportStatusFailed = "FAILED"
- )
- const (
- // CertificateAuthorityStatusCreating is a CertificateAuthorityStatus enum value
- CertificateAuthorityStatusCreating = "CREATING"
- // CertificateAuthorityStatusPendingCertificate is a CertificateAuthorityStatus enum value
- CertificateAuthorityStatusPendingCertificate = "PENDING_CERTIFICATE"
- // CertificateAuthorityStatusActive is a CertificateAuthorityStatus enum value
- CertificateAuthorityStatusActive = "ACTIVE"
- // CertificateAuthorityStatusDeleted is a CertificateAuthorityStatus enum value
- CertificateAuthorityStatusDeleted = "DELETED"
- // CertificateAuthorityStatusDisabled is a CertificateAuthorityStatus enum value
- CertificateAuthorityStatusDisabled = "DISABLED"
- // CertificateAuthorityStatusExpired is a CertificateAuthorityStatus enum value
- CertificateAuthorityStatusExpired = "EXPIRED"
- // CertificateAuthorityStatusFailed is a CertificateAuthorityStatus enum value
- CertificateAuthorityStatusFailed = "FAILED"
- )
- const (
- // CertificateAuthorityTypeSubordinate is a CertificateAuthorityType enum value
- CertificateAuthorityTypeSubordinate = "SUBORDINATE"
- )
- const (
- // FailureReasonRequestTimedOut is a FailureReason enum value
- FailureReasonRequestTimedOut = "REQUEST_TIMED_OUT"
- // FailureReasonUnsupportedAlgorithm is a FailureReason enum value
- FailureReasonUnsupportedAlgorithm = "UNSUPPORTED_ALGORITHM"
- // FailureReasonOther is a FailureReason enum value
- FailureReasonOther = "OTHER"
- )
- const (
- // KeyAlgorithmRsa2048 is a KeyAlgorithm enum value
- KeyAlgorithmRsa2048 = "RSA_2048"
- // KeyAlgorithmRsa4096 is a KeyAlgorithm enum value
- KeyAlgorithmRsa4096 = "RSA_4096"
- // KeyAlgorithmEcPrime256v1 is a KeyAlgorithm enum value
- KeyAlgorithmEcPrime256v1 = "EC_prime256v1"
- // KeyAlgorithmEcSecp384r1 is a KeyAlgorithm enum value
- KeyAlgorithmEcSecp384r1 = "EC_secp384r1"
- )
- const (
- // RevocationReasonUnspecified is a RevocationReason enum value
- RevocationReasonUnspecified = "UNSPECIFIED"
- // RevocationReasonKeyCompromise is a RevocationReason enum value
- RevocationReasonKeyCompromise = "KEY_COMPROMISE"
- // RevocationReasonCertificateAuthorityCompromise is a RevocationReason enum value
- RevocationReasonCertificateAuthorityCompromise = "CERTIFICATE_AUTHORITY_COMPROMISE"
- // RevocationReasonAffiliationChanged is a RevocationReason enum value
- RevocationReasonAffiliationChanged = "AFFILIATION_CHANGED"
- // RevocationReasonSuperseded is a RevocationReason enum value
- RevocationReasonSuperseded = "SUPERSEDED"
- // RevocationReasonCessationOfOperation is a RevocationReason enum value
- RevocationReasonCessationOfOperation = "CESSATION_OF_OPERATION"
- // RevocationReasonPrivilegeWithdrawn is a RevocationReason enum value
- RevocationReasonPrivilegeWithdrawn = "PRIVILEGE_WITHDRAWN"
- // RevocationReasonAACompromise is a RevocationReason enum value
- RevocationReasonAACompromise = "A_A_COMPROMISE"
- )
- const (
- // SigningAlgorithmSha256withecdsa is a SigningAlgorithm enum value
- SigningAlgorithmSha256withecdsa = "SHA256WITHECDSA"
- // SigningAlgorithmSha384withecdsa is a SigningAlgorithm enum value
- SigningAlgorithmSha384withecdsa = "SHA384WITHECDSA"
- // SigningAlgorithmSha512withecdsa is a SigningAlgorithm enum value
- SigningAlgorithmSha512withecdsa = "SHA512WITHECDSA"
- // SigningAlgorithmSha256withrsa is a SigningAlgorithm enum value
- SigningAlgorithmSha256withrsa = "SHA256WITHRSA"
- // SigningAlgorithmSha384withrsa is a SigningAlgorithm enum value
- SigningAlgorithmSha384withrsa = "SHA384WITHRSA"
- // SigningAlgorithmSha512withrsa is a SigningAlgorithm enum value
- SigningAlgorithmSha512withrsa = "SHA512WITHRSA"
- )
- const (
- // ValidityPeriodTypeEndDate is a ValidityPeriodType enum value
- ValidityPeriodTypeEndDate = "END_DATE"
- // ValidityPeriodTypeAbsolute is a ValidityPeriodType enum value
- ValidityPeriodTypeAbsolute = "ABSOLUTE"
- // ValidityPeriodTypeDays is a ValidityPeriodType enum value
- ValidityPeriodTypeDays = "DAYS"
- // ValidityPeriodTypeMonths is a ValidityPeriodType enum value
- ValidityPeriodTypeMonths = "MONTHS"
- // ValidityPeriodTypeYears is a ValidityPeriodType enum value
- ValidityPeriodTypeYears = "YEARS"
- )
|