Skip to content

Latest commit

 

History

History
121 lines (92 loc) · 7.36 KB

README.md

File metadata and controls

121 lines (92 loc) · 7.36 KB

Aws

(Integrations.Aws)

Overview

Available Operations

GetCloudTrailBatch

Retrieve a single CloudTrail batch.

Example Usage

package main

import(
	"firehydrant"
	"context"
	"log"
)

func main() {
    s := firehydrant.New(
        firehydrant.WithSecurity("<YOUR_API_KEY_HERE>"),
    )

    ctx := context.Background()
    res, err := s.Integrations.Aws.GetCloudTrailBatch(ctx, "<id>")
    if err != nil {
        log.Fatal(err)
    }
    if res.IntegrationsAwsCloudtrailBatchEntity != nil {
        // handle response
    }
}

Parameters

Parameter Type Required Description
ctx context.Context ✔️ The context to use for the request.
id string ✔️ N/A
opts []operations.Option The options for this request.

Response

*operations.GetAwsCloudTrailBatchResponse, error

Errors

Error Type Status Code Content Type
sdkerrors.BadRequest 400, 413, 414, 415, 422, 431, 510 application/json
sdkerrors.Unauthorized 401, 403, 407, 511 application/json
sdkerrors.NotFound 404, 501, 505 application/json
sdkerrors.Timeout 408, 504 application/json
sdkerrors.RateLimited 429 application/json
sdkerrors.InternalServerError 500, 502, 503, 506, 507, 508 application/json
sdkerrors.SDKError 4XX, 5XX */*

UpdateConnection

Update the AWS connection with the provided data.

Example Usage

package main

import(
	"firehydrant"
	"context"
	"firehydrant/models/components"
	"log"
)

func main() {
    s := firehydrant.New(
        firehydrant.WithSecurity("<YOUR_API_KEY_HERE>"),
    )

    ctx := context.Background()
    res, err := s.Integrations.Aws.UpdateConnection(ctx, "<id>", components.PatchV1IntegrationsAwsConnectionsID{})
    if err != nil {
        log.Fatal(err)
    }
    if res.IntegrationsAwsConnectionEntity != nil {
        // handle response
    }
}

Parameters

Parameter Type Required Description
ctx context.Context ✔️ The context to use for the request.
id string ✔️ N/A
patchV1IntegrationsAwsConnectionsID components.PatchV1IntegrationsAwsConnectionsID ✔️ N/A
opts []operations.Option The options for this request.

Response

*operations.UpdateAwsConnectionResponse, error

Errors

Error Type Status Code Content Type
sdkerrors.BadRequest 400, 413, 414, 415, 422, 431, 510 application/json
sdkerrors.Unauthorized 401, 403, 407, 511 application/json
sdkerrors.NotFound 404, 501, 505 application/json
sdkerrors.Timeout 408, 504 application/json
sdkerrors.RateLimited 429 application/json
sdkerrors.InternalServerError 500, 502, 503, 506, 507, 508 application/json
sdkerrors.SDKError 4XX, 5XX */*