Skip to content

Latest commit

 

History

History
55 lines (41 loc) · 1.83 KB

File metadata and controls

55 lines (41 loc) · 1.83 KB

AWSExternalIDSettings

(AWSExternalIDSettings)

Available Operations

Get

Invokes the c1.api.settings.v1.AWSExternalIDSettings.Get method.

Example Usage

package main

import(
	"github.com/conductorone/conductorone-sdk-go/pkg/models/shared"
	conductoronesdkgo "github.com/conductorone/conductorone-sdk-go"
	"context"
	"log"
)

func main() {
    s := conductoronesdkgo.New(
        conductoronesdkgo.WithSecurity(shared.Security{
            BearerAuth: "<YOUR_BEARER_TOKEN_HERE>",
            Oauth: "Bearer <YOUR_ACCESS_TOKEN_HERE>",
        }),
    )

    ctx := context.Background()
    res, err := s.AWSExternalIDSettings.Get(ctx)
    if err != nil {
        log.Fatal(err)
    }
    if res.GetAWSExternalIDResponse != nil {
        // handle response
    }
}

Parameters

Parameter Type Required Description
ctx context.Context ✔️ The context to use for the request.

Response

*operations.C1APISettingsV1AWSExternalIDSettingsGetResponse, error

Error Object Status Code Content Type
sdkerrors.SDKError 4xx-5xx /