1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126 |
- // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
- // Package ssm provides a client for Amazon Simple Systems Management Service.
- package ssm
- import (
- "time"
- "github.com/aws/aws-sdk-go/aws/awsutil"
- "github.com/aws/aws-sdk-go/aws/request"
- )
- const opCreateAssociation = "CreateAssociation"
- // CreateAssociationRequest generates a request for the CreateAssociation operation.
- func (c *SSM) CreateAssociationRequest(input *CreateAssociationInput) (req *request.Request, output *CreateAssociationOutput) {
- op := &request.Operation{
- Name: opCreateAssociation,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &CreateAssociationInput{}
- }
- req = c.newRequest(op, input, output)
- output = &CreateAssociationOutput{}
- req.Data = output
- return
- }
- // Associates the specified configuration document with the specified instance.
- //
- // When you associate a configuration document with an instance, the configuration
- // agent on the instance processes the configuration document and configures
- // the instance as specified.
- //
- // If you associate a configuration document with an instance that already
- // has an associated configuration document, we replace the current configuration
- // document with the new configuration document.
- func (c *SSM) CreateAssociation(input *CreateAssociationInput) (*CreateAssociationOutput, error) {
- req, out := c.CreateAssociationRequest(input)
- err := req.Send()
- return out, err
- }
- const opCreateAssociationBatch = "CreateAssociationBatch"
- // CreateAssociationBatchRequest generates a request for the CreateAssociationBatch operation.
- func (c *SSM) CreateAssociationBatchRequest(input *CreateAssociationBatchInput) (req *request.Request, output *CreateAssociationBatchOutput) {
- op := &request.Operation{
- Name: opCreateAssociationBatch,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &CreateAssociationBatchInput{}
- }
- req = c.newRequest(op, input, output)
- output = &CreateAssociationBatchOutput{}
- req.Data = output
- return
- }
- // Associates the specified configuration documents with the specified instances.
- //
- // When you associate a configuration document with an instance, the configuration
- // agent on the instance processes the configuration document and configures
- // the instance as specified.
- //
- // If you associate a configuration document with an instance that already
- // has an associated configuration document, we replace the current configuration
- // document with the new configuration document.
- func (c *SSM) CreateAssociationBatch(input *CreateAssociationBatchInput) (*CreateAssociationBatchOutput, error) {
- req, out := c.CreateAssociationBatchRequest(input)
- err := req.Send()
- return out, err
- }
- const opCreateDocument = "CreateDocument"
- // CreateDocumentRequest generates a request for the CreateDocument operation.
- func (c *SSM) CreateDocumentRequest(input *CreateDocumentInput) (req *request.Request, output *CreateDocumentOutput) {
- op := &request.Operation{
- Name: opCreateDocument,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &CreateDocumentInput{}
- }
- req = c.newRequest(op, input, output)
- output = &CreateDocumentOutput{}
- req.Data = output
- return
- }
- // Creates a configuration document.
- //
- // After you create a configuration document, you can use CreateAssociation
- // to associate it with one or more running instances.
- func (c *SSM) CreateDocument(input *CreateDocumentInput) (*CreateDocumentOutput, error) {
- req, out := c.CreateDocumentRequest(input)
- err := req.Send()
- return out, err
- }
- const opDeleteAssociation = "DeleteAssociation"
- // DeleteAssociationRequest generates a request for the DeleteAssociation operation.
- func (c *SSM) DeleteAssociationRequest(input *DeleteAssociationInput) (req *request.Request, output *DeleteAssociationOutput) {
- op := &request.Operation{
- Name: opDeleteAssociation,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DeleteAssociationInput{}
- }
- req = c.newRequest(op, input, output)
- output = &DeleteAssociationOutput{}
- req.Data = output
- return
- }
- // Disassociates the specified configuration document from the specified instance.
- //
- // When you disassociate a configuration document from an instance, it does
- // not change the configuration of the instance. To change the configuration
- // state of an instance after you disassociate a configuration document, you
- // must create a new configuration document with the desired configuration and
- // associate it with the instance.
- func (c *SSM) DeleteAssociation(input *DeleteAssociationInput) (*DeleteAssociationOutput, error) {
- req, out := c.DeleteAssociationRequest(input)
- err := req.Send()
- return out, err
- }
- const opDeleteDocument = "DeleteDocument"
- // DeleteDocumentRequest generates a request for the DeleteDocument operation.
- func (c *SSM) DeleteDocumentRequest(input *DeleteDocumentInput) (req *request.Request, output *DeleteDocumentOutput) {
- op := &request.Operation{
- Name: opDeleteDocument,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DeleteDocumentInput{}
- }
- req = c.newRequest(op, input, output)
- output = &DeleteDocumentOutput{}
- req.Data = output
- return
- }
- // Deletes the specified configuration document.
- //
- // You must use DeleteAssociation to disassociate all instances that are associated
- // with the configuration document before you can delete it.
- func (c *SSM) DeleteDocument(input *DeleteDocumentInput) (*DeleteDocumentOutput, error) {
- req, out := c.DeleteDocumentRequest(input)
- err := req.Send()
- return out, err
- }
- const opDescribeAssociation = "DescribeAssociation"
- // DescribeAssociationRequest generates a request for the DescribeAssociation operation.
- func (c *SSM) DescribeAssociationRequest(input *DescribeAssociationInput) (req *request.Request, output *DescribeAssociationOutput) {
- op := &request.Operation{
- Name: opDescribeAssociation,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DescribeAssociationInput{}
- }
- req = c.newRequest(op, input, output)
- output = &DescribeAssociationOutput{}
- req.Data = output
- return
- }
- // Describes the associations for the specified configuration document or instance.
- func (c *SSM) DescribeAssociation(input *DescribeAssociationInput) (*DescribeAssociationOutput, error) {
- req, out := c.DescribeAssociationRequest(input)
- err := req.Send()
- return out, err
- }
- const opDescribeDocument = "DescribeDocument"
- // DescribeDocumentRequest generates a request for the DescribeDocument operation.
- func (c *SSM) DescribeDocumentRequest(input *DescribeDocumentInput) (req *request.Request, output *DescribeDocumentOutput) {
- op := &request.Operation{
- Name: opDescribeDocument,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DescribeDocumentInput{}
- }
- req = c.newRequest(op, input, output)
- output = &DescribeDocumentOutput{}
- req.Data = output
- return
- }
- // Describes the specified configuration document.
- func (c *SSM) DescribeDocument(input *DescribeDocumentInput) (*DescribeDocumentOutput, error) {
- req, out := c.DescribeDocumentRequest(input)
- err := req.Send()
- return out, err
- }
- const opGetDocument = "GetDocument"
- // GetDocumentRequest generates a request for the GetDocument operation.
- func (c *SSM) GetDocumentRequest(input *GetDocumentInput) (req *request.Request, output *GetDocumentOutput) {
- op := &request.Operation{
- Name: opGetDocument,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &GetDocumentInput{}
- }
- req = c.newRequest(op, input, output)
- output = &GetDocumentOutput{}
- req.Data = output
- return
- }
- // Gets the contents of the specified configuration document.
- func (c *SSM) GetDocument(input *GetDocumentInput) (*GetDocumentOutput, error) {
- req, out := c.GetDocumentRequest(input)
- err := req.Send()
- return out, err
- }
- const opListAssociations = "ListAssociations"
- // ListAssociationsRequest generates a request for the ListAssociations operation.
- func (c *SSM) ListAssociationsRequest(input *ListAssociationsInput) (req *request.Request, output *ListAssociationsOutput) {
- op := &request.Operation{
- Name: opListAssociations,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &ListAssociationsInput{}
- }
- req = c.newRequest(op, input, output)
- output = &ListAssociationsOutput{}
- req.Data = output
- return
- }
- // Lists the associations for the specified configuration document or instance.
- func (c *SSM) ListAssociations(input *ListAssociationsInput) (*ListAssociationsOutput, error) {
- req, out := c.ListAssociationsRequest(input)
- err := req.Send()
- return out, err
- }
- const opListDocuments = "ListDocuments"
- // ListDocumentsRequest generates a request for the ListDocuments operation.
- func (c *SSM) ListDocumentsRequest(input *ListDocumentsInput) (req *request.Request, output *ListDocumentsOutput) {
- op := &request.Operation{
- Name: opListDocuments,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &ListDocumentsInput{}
- }
- req = c.newRequest(op, input, output)
- output = &ListDocumentsOutput{}
- req.Data = output
- return
- }
- // Describes one or more of your configuration documents.
- func (c *SSM) ListDocuments(input *ListDocumentsInput) (*ListDocumentsOutput, error) {
- req, out := c.ListDocumentsRequest(input)
- err := req.Send()
- return out, err
- }
- const opUpdateAssociationStatus = "UpdateAssociationStatus"
- // UpdateAssociationStatusRequest generates a request for the UpdateAssociationStatus operation.
- func (c *SSM) UpdateAssociationStatusRequest(input *UpdateAssociationStatusInput) (req *request.Request, output *UpdateAssociationStatusOutput) {
- op := &request.Operation{
- Name: opUpdateAssociationStatus,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &UpdateAssociationStatusInput{}
- }
- req = c.newRequest(op, input, output)
- output = &UpdateAssociationStatusOutput{}
- req.Data = output
- return
- }
- // Updates the status of the configuration document associated with the specified
- // instance.
- func (c *SSM) UpdateAssociationStatus(input *UpdateAssociationStatusInput) (*UpdateAssociationStatusOutput, error) {
- req, out := c.UpdateAssociationStatusRequest(input)
- err := req.Send()
- return out, err
- }
- // Describes an association of a configuration document and an instance.
- type Association struct {
- // The ID of the instance.
- InstanceId *string `type:"string"`
- // The name of the configuration document.
- Name *string `type:"string"`
- metadataAssociation `json:"-" xml:"-"`
- }
- type metadataAssociation struct {
- SDKShapeTraits bool `type:"structure"`
- }
- // String returns the string representation
- func (s Association) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s Association) GoString() string {
- return s.String()
- }
- // Describes an association.
- type AssociationDescription struct {
- // The date when the association was made.
- Date *time.Time `type:"timestamp" timestampFormat:"unix"`
- // The ID of the instance.
- InstanceId *string `type:"string"`
- // The name of the configuration document.
- Name *string `type:"string"`
- // The association status.
- Status *AssociationStatus `type:"structure"`
- metadataAssociationDescription `json:"-" xml:"-"`
- }
- type metadataAssociationDescription struct {
- SDKShapeTraits bool `type:"structure"`
- }
- // String returns the string representation
- func (s AssociationDescription) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AssociationDescription) GoString() string {
- return s.String()
- }
- // Describes a filter.
- type AssociationFilter struct {
- // The name of the filter.
- Key *string `locationName:"key" type:"string" required:"true" enum:"AssociationFilterKey"`
- // The filter value.
- Value *string `locationName:"value" type:"string" required:"true"`
- metadataAssociationFilter `json:"-" xml:"-"`
- }
- type metadataAssociationFilter struct {
- SDKShapeTraits bool `type:"structure"`
- }
- // String returns the string representation
- func (s AssociationFilter) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AssociationFilter) GoString() string {
- return s.String()
- }
- // Describes an association status.
- type AssociationStatus struct {
- // A user-defined string.
- AdditionalInfo *string `type:"string"`
- // The date when the status changed.
- Date *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"`
- // The reason for the status.
- Message *string `type:"string" required:"true"`
- // The status.
- Name *string `type:"string" required:"true" enum:"AssociationStatusName"`
- metadataAssociationStatus `json:"-" xml:"-"`
- }
- type metadataAssociationStatus struct {
- SDKShapeTraits bool `type:"structure"`
- }
- // String returns the string representation
- func (s AssociationStatus) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AssociationStatus) GoString() string {
- return s.String()
- }
- type CreateAssociationBatchInput struct {
- // One or more associations.
- Entries []*CreateAssociationBatchRequestEntry `locationNameList:"entries" type:"list" required:"true"`
- metadataCreateAssociationBatchInput `json:"-" xml:"-"`
- }
- type metadataCreateAssociationBatchInput struct {
- SDKShapeTraits bool `type:"structure"`
- }
- // String returns the string representation
- func (s CreateAssociationBatchInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateAssociationBatchInput) GoString() string {
- return s.String()
- }
- type CreateAssociationBatchOutput struct {
- // Information about the associations that failed.
- Failed []*FailedCreateAssociation `locationNameList:"FailedCreateAssociationEntry" type:"list"`
- // Information about the associations that succeeded.
- Successful []*AssociationDescription `locationNameList:"AssociationDescription" type:"list"`
- metadataCreateAssociationBatchOutput `json:"-" xml:"-"`
- }
- type metadataCreateAssociationBatchOutput struct {
- SDKShapeTraits bool `type:"structure"`
- }
- // String returns the string representation
- func (s CreateAssociationBatchOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateAssociationBatchOutput) GoString() string {
- return s.String()
- }
- // Describes the association of a configuration document and an instance.
- type CreateAssociationBatchRequestEntry struct {
- // The ID of the instance.
- InstanceId *string `type:"string"`
- // The name of the configuration document.
- Name *string `type:"string"`
- metadataCreateAssociationBatchRequestEntry `json:"-" xml:"-"`
- }
- type metadataCreateAssociationBatchRequestEntry struct {
- SDKShapeTraits bool `type:"structure"`
- }
- // String returns the string representation
- func (s CreateAssociationBatchRequestEntry) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateAssociationBatchRequestEntry) GoString() string {
- return s.String()
- }
- type CreateAssociationInput struct {
- // The ID of the instance.
- InstanceId *string `type:"string" required:"true"`
- // The name of the configuration document.
- Name *string `type:"string" required:"true"`
- metadataCreateAssociationInput `json:"-" xml:"-"`
- }
- type metadataCreateAssociationInput struct {
- SDKShapeTraits bool `type:"structure"`
- }
- // String returns the string representation
- func (s CreateAssociationInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateAssociationInput) GoString() string {
- return s.String()
- }
- type CreateAssociationOutput struct {
- // Information about the association.
- AssociationDescription *AssociationDescription `type:"structure"`
- metadataCreateAssociationOutput `json:"-" xml:"-"`
- }
- type metadataCreateAssociationOutput struct {
- SDKShapeTraits bool `type:"structure"`
- }
- // String returns the string representation
- func (s CreateAssociationOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateAssociationOutput) GoString() string {
- return s.String()
- }
- type CreateDocumentInput struct {
- // A valid JSON file. For more information about the contents of this file,
- // see Configuration Document (http://docs.aws.amazon.com/ssm/latest/APIReference/aws-ssm-document.html).
- Content *string `type:"string" required:"true"`
- // A name for the configuration document.
- Name *string `type:"string" required:"true"`
- metadataCreateDocumentInput `json:"-" xml:"-"`
- }
- type metadataCreateDocumentInput struct {
- SDKShapeTraits bool `type:"structure"`
- }
- // String returns the string representation
- func (s CreateDocumentInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateDocumentInput) GoString() string {
- return s.String()
- }
- type CreateDocumentOutput struct {
- // Information about the configuration document.
- DocumentDescription *DocumentDescription `type:"structure"`
- metadataCreateDocumentOutput `json:"-" xml:"-"`
- }
- type metadataCreateDocumentOutput struct {
- SDKShapeTraits bool `type:"structure"`
- }
- // String returns the string representation
- func (s CreateDocumentOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateDocumentOutput) GoString() string {
- return s.String()
- }
- type DeleteAssociationInput struct {
- // The ID of the instance.
- InstanceId *string `type:"string" required:"true"`
- // The name of the configuration document.
- Name *string `type:"string" required:"true"`
- metadataDeleteAssociationInput `json:"-" xml:"-"`
- }
- type metadataDeleteAssociationInput struct {
- SDKShapeTraits bool `type:"structure"`
- }
- // String returns the string representation
- func (s DeleteAssociationInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteAssociationInput) GoString() string {
- return s.String()
- }
- type DeleteAssociationOutput struct {
- metadataDeleteAssociationOutput `json:"-" xml:"-"`
- }
- type metadataDeleteAssociationOutput struct {
- SDKShapeTraits bool `type:"structure"`
- }
- // String returns the string representation
- func (s DeleteAssociationOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteAssociationOutput) GoString() string {
- return s.String()
- }
- type DeleteDocumentInput struct {
- // The name of the configuration document.
- Name *string `type:"string" required:"true"`
- metadataDeleteDocumentInput `json:"-" xml:"-"`
- }
- type metadataDeleteDocumentInput struct {
- SDKShapeTraits bool `type:"structure"`
- }
- // String returns the string representation
- func (s DeleteDocumentInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteDocumentInput) GoString() string {
- return s.String()
- }
- type DeleteDocumentOutput struct {
- metadataDeleteDocumentOutput `json:"-" xml:"-"`
- }
- type metadataDeleteDocumentOutput struct {
- SDKShapeTraits bool `type:"structure"`
- }
- // String returns the string representation
- func (s DeleteDocumentOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteDocumentOutput) GoString() string {
- return s.String()
- }
- type DescribeAssociationInput struct {
- // The ID of the instance.
- InstanceId *string `type:"string" required:"true"`
- // The name of the configuration document.
- Name *string `type:"string" required:"true"`
- metadataDescribeAssociationInput `json:"-" xml:"-"`
- }
- type metadataDescribeAssociationInput struct {
- SDKShapeTraits bool `type:"structure"`
- }
- // String returns the string representation
- func (s DescribeAssociationInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeAssociationInput) GoString() string {
- return s.String()
- }
- type DescribeAssociationOutput struct {
- // Information about the association.
- AssociationDescription *AssociationDescription `type:"structure"`
- metadataDescribeAssociationOutput `json:"-" xml:"-"`
- }
- type metadataDescribeAssociationOutput struct {
- SDKShapeTraits bool `type:"structure"`
- }
- // String returns the string representation
- func (s DescribeAssociationOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeAssociationOutput) GoString() string {
- return s.String()
- }
- type DescribeDocumentInput struct {
- // The name of the configuration document.
- Name *string `type:"string" required:"true"`
- metadataDescribeDocumentInput `json:"-" xml:"-"`
- }
- type metadataDescribeDocumentInput struct {
- SDKShapeTraits bool `type:"structure"`
- }
- // String returns the string representation
- func (s DescribeDocumentInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeDocumentInput) GoString() string {
- return s.String()
- }
- type DescribeDocumentOutput struct {
- // Information about the configuration document.
- Document *DocumentDescription `type:"structure"`
- metadataDescribeDocumentOutput `json:"-" xml:"-"`
- }
- type metadataDescribeDocumentOutput struct {
- SDKShapeTraits bool `type:"structure"`
- }
- // String returns the string representation
- func (s DescribeDocumentOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeDocumentOutput) GoString() string {
- return s.String()
- }
- // Describes a configuration document.
- type DocumentDescription struct {
- // The date when the configuration document was created.
- CreatedDate *time.Time `type:"timestamp" timestampFormat:"unix"`
- // The name of the configuration document.
- Name *string `type:"string"`
- // The SHA1 hash of the document, which you can use for verification purposes.
- Sha1 *string `type:"string"`
- // The status of the configuration document.
- Status *string `type:"string" enum:"DocumentStatus"`
- metadataDocumentDescription `json:"-" xml:"-"`
- }
- type metadataDocumentDescription struct {
- SDKShapeTraits bool `type:"structure"`
- }
- // String returns the string representation
- func (s DocumentDescription) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DocumentDescription) GoString() string {
- return s.String()
- }
- // Describes a filter.
- type DocumentFilter struct {
- // The name of the filter.
- Key *string `locationName:"key" type:"string" required:"true" enum:"DocumentFilterKey"`
- // The value of the filter.
- Value *string `locationName:"value" type:"string" required:"true"`
- metadataDocumentFilter `json:"-" xml:"-"`
- }
- type metadataDocumentFilter struct {
- SDKShapeTraits bool `type:"structure"`
- }
- // String returns the string representation
- func (s DocumentFilter) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DocumentFilter) GoString() string {
- return s.String()
- }
- // Describes the name of a configuration document.
- type DocumentIdentifier struct {
- // The name of the configuration document.
- Name *string `type:"string"`
- metadataDocumentIdentifier `json:"-" xml:"-"`
- }
- type metadataDocumentIdentifier struct {
- SDKShapeTraits bool `type:"structure"`
- }
- // String returns the string representation
- func (s DocumentIdentifier) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DocumentIdentifier) GoString() string {
- return s.String()
- }
- // Describes a failed association.
- type FailedCreateAssociation struct {
- // The association.
- Entry *CreateAssociationBatchRequestEntry `type:"structure"`
- // The source of the failure.
- Fault *string `type:"string" enum:"Fault"`
- // A description of the failure.
- Message *string `type:"string"`
- metadataFailedCreateAssociation `json:"-" xml:"-"`
- }
- type metadataFailedCreateAssociation struct {
- SDKShapeTraits bool `type:"structure"`
- }
- // String returns the string representation
- func (s FailedCreateAssociation) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s FailedCreateAssociation) GoString() string {
- return s.String()
- }
- type GetDocumentInput struct {
- // The name of the configuration document.
- Name *string `type:"string" required:"true"`
- metadataGetDocumentInput `json:"-" xml:"-"`
- }
- type metadataGetDocumentInput struct {
- SDKShapeTraits bool `type:"structure"`
- }
- // String returns the string representation
- func (s GetDocumentInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetDocumentInput) GoString() string {
- return s.String()
- }
- type GetDocumentOutput struct {
- // The contents of the configuration document.
- Content *string `type:"string"`
- // The name of the configuration document.
- Name *string `type:"string"`
- metadataGetDocumentOutput `json:"-" xml:"-"`
- }
- type metadataGetDocumentOutput struct {
- SDKShapeTraits bool `type:"structure"`
- }
- // String returns the string representation
- func (s GetDocumentOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetDocumentOutput) GoString() string {
- return s.String()
- }
- type ListAssociationsInput struct {
- // One or more filters. Use a filter to return a more specific list of results.
- AssociationFilterList []*AssociationFilter `locationNameList:"AssociationFilter" type:"list" required:"true"`
- // The maximum number of items to return for this call. The call also returns
- // a token that you can specify in a subsequent call to get the next set of
- // results.
- MaxResults *int64 `type:"integer"`
- // The token for the next set of items to return. (You received this token from
- // a previous call.)
- NextToken *string `type:"string"`
- metadataListAssociationsInput `json:"-" xml:"-"`
- }
- type metadataListAssociationsInput struct {
- SDKShapeTraits bool `type:"structure"`
- }
- // String returns the string representation
- func (s ListAssociationsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListAssociationsInput) GoString() string {
- return s.String()
- }
- type ListAssociationsOutput struct {
- // The associations.
- Associations []*Association `locationNameList:"Association" type:"list"`
- // The token to use when requesting the next set of items. If there are no additional
- // items to return, the string is empty.
- NextToken *string `type:"string"`
- metadataListAssociationsOutput `json:"-" xml:"-"`
- }
- type metadataListAssociationsOutput struct {
- SDKShapeTraits bool `type:"structure"`
- }
- // String returns the string representation
- func (s ListAssociationsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListAssociationsOutput) GoString() string {
- return s.String()
- }
- type ListDocumentsInput struct {
- // One or more filters. Use a filter to return a more specific list of results.
- DocumentFilterList []*DocumentFilter `locationNameList:"DocumentFilter" type:"list"`
- // The maximum number of items to return for this call. The call also returns
- // a token that you can specify in a subsequent call to get the next set of
- // results.
- MaxResults *int64 `type:"integer"`
- // The token for the next set of items to return. (You received this token from
- // a previous call.)
- NextToken *string `type:"string"`
- metadataListDocumentsInput `json:"-" xml:"-"`
- }
- type metadataListDocumentsInput struct {
- SDKShapeTraits bool `type:"structure"`
- }
- // String returns the string representation
- func (s ListDocumentsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListDocumentsInput) GoString() string {
- return s.String()
- }
- type ListDocumentsOutput struct {
- // The names of the configuration documents.
- DocumentIdentifiers []*DocumentIdentifier `locationNameList:"DocumentIdentifier" type:"list"`
- // The token to use when requesting the next set of items. If there are no additional
- // items to return, the string is empty.
- NextToken *string `type:"string"`
- metadataListDocumentsOutput `json:"-" xml:"-"`
- }
- type metadataListDocumentsOutput struct {
- SDKShapeTraits bool `type:"structure"`
- }
- // String returns the string representation
- func (s ListDocumentsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListDocumentsOutput) GoString() string {
- return s.String()
- }
- type UpdateAssociationStatusInput struct {
- // The association status.
- AssociationStatus *AssociationStatus `type:"structure" required:"true"`
- // The ID of the instance.
- InstanceId *string `type:"string" required:"true"`
- // The name of the configuration document.
- Name *string `type:"string" required:"true"`
- metadataUpdateAssociationStatusInput `json:"-" xml:"-"`
- }
- type metadataUpdateAssociationStatusInput struct {
- SDKShapeTraits bool `type:"structure"`
- }
- // String returns the string representation
- func (s UpdateAssociationStatusInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateAssociationStatusInput) GoString() string {
- return s.String()
- }
- type UpdateAssociationStatusOutput struct {
- // Information about the association.
- AssociationDescription *AssociationDescription `type:"structure"`
- metadataUpdateAssociationStatusOutput `json:"-" xml:"-"`
- }
- type metadataUpdateAssociationStatusOutput struct {
- SDKShapeTraits bool `type:"structure"`
- }
- // String returns the string representation
- func (s UpdateAssociationStatusOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateAssociationStatusOutput) GoString() string {
- return s.String()
- }
- const (
- // @enum AssociationFilterKey
- AssociationFilterKeyInstanceId = "InstanceId"
- // @enum AssociationFilterKey
- AssociationFilterKeyName = "Name"
- )
- const (
- // @enum AssociationStatusName
- AssociationStatusNamePending = "Pending"
- // @enum AssociationStatusName
- AssociationStatusNameSuccess = "Success"
- // @enum AssociationStatusName
- AssociationStatusNameFailed = "Failed"
- )
- const (
- // @enum DocumentFilterKey
- DocumentFilterKeyName = "Name"
- )
- const (
- // @enum DocumentStatus
- DocumentStatusCreating = "Creating"
- // @enum DocumentStatus
- DocumentStatusActive = "Active"
- // @enum DocumentStatus
- DocumentStatusDeleting = "Deleting"
- )
- const (
- // @enum Fault
- FaultClient = "Client"
- // @enum Fault
- FaultServer = "Server"
- // @enum Fault
- FaultUnknown = "Unknown"
- )
|