Documentation ¶
Overview ¶
Package detective provides the API client, operations, and parameter types for Amazon Detective.
Detective uses machine learning and purpose-built visualizations to help you to analyze and investigate security issues across your Amazon Web Services (Amazon Web Services) workloads. Detective automatically extracts time-based events such as login attempts, API calls, and network traffic from CloudTrail and Amazon Virtual Private Cloud (Amazon VPC) flow logs. It also extracts findings detected by Amazon GuardDuty. The Detective API primarily supports the creation and management of behavior graphs. A behavior graph contains the extracted data from a set of member accounts, and is created and managed by an administrator account. To add a member account to the behavior graph, the administrator account sends an invitation to the account. When the account accepts the invitation, it becomes a member account in the behavior graph. Detective is also integrated with Organizations. The organization management account designates the Detective administrator account for the organization. That account becomes the administrator account for the organization behavior graph. The Detective administrator account can enable any organization account as a member account in the organization behavior graph. The organization accounts do not receive invitations. The Detective administrator account can also invite other accounts to the organization behavior graph. Every behavior graph is specific to a Region. You can only use the API to manage behavior graphs that belong to the Region that is associated with the currently selected endpoint. The administrator account for a behavior graph can use the Detective API to do the following:
* Enable and disable Detective. Enabling Detective creates a new behavior graph.
* View the list of member accounts in a behavior graph.
* Add member accounts to a behavior graph.
* Remove member accounts from a behavior graph.
* Apply tags to a behavior graph.
The organization management account can use the Detective API to select the delegated administrator for Detective. The Detective administrator account for an organization can use the Detective API to do the following:
* Perform all of the functions of an administrator account.
* Determine whether to automatically enable new organization accounts as member accounts in the organization behavior graph.
An invited member account can use the Detective API to do the following:
* View the list of behavior graphs that they are invited to.
* Accept an invitation to contribute to a behavior graph.
* Decline an invitation to contribute to a behavior graph.
* Remove their account from a behavior graph.
All API actions are logged as CloudTrail events. See Logging Detective API Calls with CloudTrail (https://docs.aws.amazon.com/detective/latest/adminguide/logging-using-cloudtrail.html). We replaced the term "master account" with the term "administrator account." An administrator account is used to centrally manage multiple accounts. In the case of Detective, the administrator account manages the accounts in their behavior graph.
Index ¶
- Constants
- func NewDefaultEndpointResolver() *internalendpoints.Resolver
- func WithAPIOptions(optFns ...func(*middleware.Stack) error) func(*Options)
- func WithEndpointResolver(v EndpointResolver) func(*Options)
- type AcceptInvitationInput
- type AcceptInvitationOutput
- type Client
- func (c *Client) AcceptInvitation(ctx context.Context, params *AcceptInvitationInput, optFns ...func(*Options)) (*AcceptInvitationOutput, error)
- func (c *Client) CreateGraph(ctx context.Context, params *CreateGraphInput, optFns ...func(*Options)) (*CreateGraphOutput, error)
- func (c *Client) CreateMembers(ctx context.Context, params *CreateMembersInput, optFns ...func(*Options)) (*CreateMembersOutput, error)
- func (c *Client) DeleteGraph(ctx context.Context, params *DeleteGraphInput, optFns ...func(*Options)) (*DeleteGraphOutput, error)
- func (c *Client) DeleteMembers(ctx context.Context, params *DeleteMembersInput, optFns ...func(*Options)) (*DeleteMembersOutput, error)
- func (c *Client) DescribeOrganizationConfiguration(ctx context.Context, params *DescribeOrganizationConfigurationInput, ...) (*DescribeOrganizationConfigurationOutput, error)
- func (c *Client) DisableOrganizationAdminAccount(ctx context.Context, params *DisableOrganizationAdminAccountInput, ...) (*DisableOrganizationAdminAccountOutput, error)
- func (c *Client) DisassociateMembership(ctx context.Context, params *DisassociateMembershipInput, ...) (*DisassociateMembershipOutput, error)
- func (c *Client) EnableOrganizationAdminAccount(ctx context.Context, params *EnableOrganizationAdminAccountInput, ...) (*EnableOrganizationAdminAccountOutput, error)
- func (c *Client) GetMembers(ctx context.Context, params *GetMembersInput, optFns ...func(*Options)) (*GetMembersOutput, error)
- func (c *Client) ListGraphs(ctx context.Context, params *ListGraphsInput, optFns ...func(*Options)) (*ListGraphsOutput, error)
- func (c *Client) ListInvitations(ctx context.Context, params *ListInvitationsInput, optFns ...func(*Options)) (*ListInvitationsOutput, error)
- func (c *Client) ListMembers(ctx context.Context, params *ListMembersInput, optFns ...func(*Options)) (*ListMembersOutput, error)
- func (c *Client) ListOrganizationAdminAccounts(ctx context.Context, params *ListOrganizationAdminAccountsInput, ...) (*ListOrganizationAdminAccountsOutput, error)
- func (c *Client) ListTagsForResource(ctx context.Context, params *ListTagsForResourceInput, ...) (*ListTagsForResourceOutput, error)
- func (c *Client) RejectInvitation(ctx context.Context, params *RejectInvitationInput, optFns ...func(*Options)) (*RejectInvitationOutput, error)
- func (c *Client) StartMonitoringMember(ctx context.Context, params *StartMonitoringMemberInput, ...) (*StartMonitoringMemberOutput, error)
- func (c *Client) TagResource(ctx context.Context, params *TagResourceInput, optFns ...func(*Options)) (*TagResourceOutput, error)
- func (c *Client) UntagResource(ctx context.Context, params *UntagResourceInput, optFns ...func(*Options)) (*UntagResourceOutput, error)
- func (c *Client) UpdateOrganizationConfiguration(ctx context.Context, params *UpdateOrganizationConfigurationInput, ...) (*UpdateOrganizationConfigurationOutput, error)
- type CreateGraphInput
- type CreateGraphOutput
- type CreateMembersInput
- type CreateMembersOutput
- type DeleteGraphInput
- type DeleteGraphOutput
- type DeleteMembersInput
- type DeleteMembersOutput
- type DescribeOrganizationConfigurationInput
- type DescribeOrganizationConfigurationOutput
- type DisableOrganizationAdminAccountInput
- type DisableOrganizationAdminAccountOutput
- type DisassociateMembershipInput
- type DisassociateMembershipOutput
- type EnableOrganizationAdminAccountInput
- type EnableOrganizationAdminAccountOutput
- type EndpointResolver
- type EndpointResolverFunc
- type EndpointResolverOptions
- type GetMembersInput
- type GetMembersOutput
- type HTTPClient
- type HTTPSignerV4
- type ListGraphsAPIClient
- type ListGraphsInput
- type ListGraphsOutput
- type ListGraphsPaginator
- type ListGraphsPaginatorOptions
- type ListInvitationsAPIClient
- type ListInvitationsInput
- type ListInvitationsOutput
- type ListInvitationsPaginator
- type ListInvitationsPaginatorOptions
- type ListMembersAPIClient
- type ListMembersInput
- type ListMembersOutput
- type ListMembersPaginator
- type ListMembersPaginatorOptions
- type ListOrganizationAdminAccountsAPIClient
- type ListOrganizationAdminAccountsInput
- type ListOrganizationAdminAccountsOutput
- type ListOrganizationAdminAccountsPaginator
- type ListOrganizationAdminAccountsPaginatorOptions
- type ListTagsForResourceInput
- type ListTagsForResourceOutput
- type Options
- type RejectInvitationInput
- type RejectInvitationOutput
- type ResolveEndpoint
- type StartMonitoringMemberInput
- type StartMonitoringMemberOutput
- type TagResourceInput
- type TagResourceOutput
- type UntagResourceInput
- type UntagResourceOutput
- type UpdateOrganizationConfigurationInput
- type UpdateOrganizationConfigurationOutput
Constants ¶
const ServiceAPIVersion = "2018-10-26"
const ServiceID = "Detective"
Variables ¶
This section is empty.
Functions ¶
func NewDefaultEndpointResolver ¶
func NewDefaultEndpointResolver() *internalendpoints.Resolver
NewDefaultEndpointResolver constructs a new service endpoint resolver
func WithAPIOptions ¶ added in v1.0.0
func WithAPIOptions(optFns ...func(*middleware.Stack) error) func(*Options)
WithAPIOptions returns a functional option for setting the Client's APIOptions option.
func WithEndpointResolver ¶
func WithEndpointResolver(v EndpointResolver) func(*Options)
WithEndpointResolver returns a functional option for setting the Client's EndpointResolver option.
Types ¶
type AcceptInvitationInput ¶
type AcceptInvitationInput struct { // The ARN of the behavior graph that the member account is accepting the // invitation for. The member account status in the behavior graph must be INVITED. // // This member is required. GraphArn *string // contains filtered or unexported fields }
type AcceptInvitationOutput ¶
type AcceptInvitationOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client provides the API client to make operations call for Amazon Detective.
func New ¶
New returns an initialized Client based on the functional options. Provide additional functional options to further configure the behavior of the client, such as changing the client's endpoint or adding custom middleware behavior.
func NewFromConfig ¶
NewFromConfig returns a new client from the provided config.
func (*Client) AcceptInvitation ¶
func (c *Client) AcceptInvitation(ctx context.Context, params *AcceptInvitationInput, optFns ...func(*Options)) (*AcceptInvitationOutput, error)
Accepts an invitation for the member account to contribute data to a behavior graph. This operation can only be called by an invited member account. The request provides the ARN of behavior graph. The member account status in the graph must be INVITED.
func (*Client) CreateGraph ¶
func (c *Client) CreateGraph(ctx context.Context, params *CreateGraphInput, optFns ...func(*Options)) (*CreateGraphOutput, error)
Creates a new behavior graph for the calling account, and sets that account as the administrator account. This operation is called by the account that is enabling Detective. Before you try to enable Detective, make sure that your account has been enrolled in Amazon GuardDuty for at least 48 hours. If you do not meet this requirement, you cannot enable Detective. If you do meet the GuardDuty prerequisite, then when you make the request to enable Detective, it checks whether your data volume is within the Detective quota. If it exceeds the quota, then you cannot enable Detective. The operation also enables Detective for the calling account in the currently selected Region. It returns the ARN of the new behavior graph. CreateGraph triggers a process to create the corresponding data tables for the new behavior graph. An account can only be the administrator account for one behavior graph within a Region. If the same account calls CreateGraph with the same administrator account, it always returns the same behavior graph ARN. It does not create a new behavior graph.
func (*Client) CreateMembers ¶
func (c *Client) CreateMembers(ctx context.Context, params *CreateMembersInput, optFns ...func(*Options)) (*CreateMembersOutput, error)
CreateMembers is used to send invitations to accounts. For the organization behavior graph, the Detective administrator account uses CreateMembers to enable organization accounts as member accounts. For invited accounts, CreateMembers sends a request to invite the specified Amazon Web Services accounts to be member accounts in the behavior graph. This operation can only be called by the administrator account for a behavior graph. CreateMembers verifies the accounts and then invites the verified accounts. The administrator can optionally specify to not send invitation emails to the member accounts. This would be used when the administrator manages their member accounts centrally. For organization accounts in the organization behavior graph, CreateMembers attempts to enable the accounts. The organization accounts do not receive invitations. The request provides the behavior graph ARN and the list of accounts to invite or to enable. The response separates the requested accounts into two lists:
* The accounts that CreateMembers was able to process. For invited accounts, includes member accounts that are being verified, that have passed verification and are to be invited, and that have failed verification. For organization accounts in the organization behavior graph, includes accounts that can be enabled and that cannot be enabled.
* The accounts that CreateMembers was unable to process. This list includes accounts that were already invited to be member accounts in the behavior graph.
func (*Client) DeleteGraph ¶
func (c *Client) DeleteGraph(ctx context.Context, params *DeleteGraphInput, optFns ...func(*Options)) (*DeleteGraphOutput, error)
Disables the specified behavior graph and queues it to be deleted. This operation removes the behavior graph from each member account's list of behavior graphs. DeleteGraph can only be called by the administrator account for a behavior graph.
func (*Client) DeleteMembers ¶
func (c *Client) DeleteMembers(ctx context.Context, params *DeleteMembersInput, optFns ...func(*Options)) (*DeleteMembersOutput, error)
Removes the specified member accounts from the behavior graph. The removed accounts no longer contribute data to the behavior graph. This operation can only be called by the administrator account for the behavior graph. For invited accounts, the removed accounts are deleted from the list of accounts in the behavior graph. To restore the account, the administrator account must send another invitation. For organization accounts in the organization behavior graph, the Detective administrator account can always enable the organization account again. Organization accounts that are not enabled as member accounts are not included in the ListMembers results for the organization behavior graph. An administrator account cannot use DeleteMembers to remove their own account from the behavior graph. To disable a behavior graph, the administrator account uses the DeleteGraph API method.
func (*Client) DescribeOrganizationConfiguration ¶ added in v1.12.0
func (c *Client) DescribeOrganizationConfiguration(ctx context.Context, params *DescribeOrganizationConfigurationInput, optFns ...func(*Options)) (*DescribeOrganizationConfigurationOutput, error)
Returns information about the configuration for the organization behavior graph. Currently indicates whether to automatically enable new organization accounts as member accounts. Can only be called by the Detective administrator account for the organization.
func (*Client) DisableOrganizationAdminAccount ¶ added in v1.12.0
func (c *Client) DisableOrganizationAdminAccount(ctx context.Context, params *DisableOrganizationAdminAccountInput, optFns ...func(*Options)) (*DisableOrganizationAdminAccountOutput, error)
Removes the Detective administrator account for the organization in the current Region. Deletes the behavior graph for that account. Can only be called by the organization management account. Before you can select a different Detective administrator account, you must remove the Detective administrator account in all Regions.
func (*Client) DisassociateMembership ¶
func (c *Client) DisassociateMembership(ctx context.Context, params *DisassociateMembershipInput, optFns ...func(*Options)) (*DisassociateMembershipOutput, error)
Removes the member account from the specified behavior graph. This operation can only be called by an invited member account that has the ENABLED status. DisassociateMembership cannot be called by an organization account in the organization behavior graph. For the organization behavior graph, the Detective administrator account determines which organization accounts to enable or disable as member accounts.
func (*Client) EnableOrganizationAdminAccount ¶ added in v1.12.0
func (c *Client) EnableOrganizationAdminAccount(ctx context.Context, params *EnableOrganizationAdminAccountInput, optFns ...func(*Options)) (*EnableOrganizationAdminAccountOutput, error)
Designates the Detective administrator account for the organization in the current Region. If the account does not have Detective enabled, then enables Detective for that account and creates a new behavior graph. Can only be called by the organization management account. The Detective administrator account for an organization must be the same in all Regions. If you already designated a Detective administrator account in another Region, then you must designate the same account.
func (*Client) GetMembers ¶
func (c *Client) GetMembers(ctx context.Context, params *GetMembersInput, optFns ...func(*Options)) (*GetMembersOutput, error)
Returns the membership details for specified member accounts for a behavior graph.
func (*Client) ListGraphs ¶
func (c *Client) ListGraphs(ctx context.Context, params *ListGraphsInput, optFns ...func(*Options)) (*ListGraphsOutput, error)
Returns the list of behavior graphs that the calling account is an administrator account of. This operation can only be called by an administrator account. Because an account can currently only be the administrator of one behavior graph within a Region, the results always contain a single behavior graph.
func (*Client) ListInvitations ¶
func (c *Client) ListInvitations(ctx context.Context, params *ListInvitationsInput, optFns ...func(*Options)) (*ListInvitationsOutput, error)
Retrieves the list of open and accepted behavior graph invitations for the member account. This operation can only be called by an invited member account. Open invitations are invitations that the member account has not responded to. The results do not include behavior graphs for which the member account declined the invitation. The results also do not include behavior graphs that the member account resigned from or was removed from.
func (*Client) ListMembers ¶
func (c *Client) ListMembers(ctx context.Context, params *ListMembersInput, optFns ...func(*Options)) (*ListMembersOutput, error)
Retrieves the list of member accounts for a behavior graph. For invited accounts, the results do not include member accounts that were removed from the behavior graph. For the organization behavior graph, the results do not include organization accounts that the Detective administrator account has not enabled as member accounts.
func (*Client) ListOrganizationAdminAccounts ¶ added in v1.12.0
func (c *Client) ListOrganizationAdminAccounts(ctx context.Context, params *ListOrganizationAdminAccountsInput, optFns ...func(*Options)) (*ListOrganizationAdminAccountsOutput, error)
Returns information about the Detective administrator account for an organization. Can only be called by the organization management account.
func (*Client) ListTagsForResource ¶ added in v1.3.0
func (c *Client) ListTagsForResource(ctx context.Context, params *ListTagsForResourceInput, optFns ...func(*Options)) (*ListTagsForResourceOutput, error)
Returns the tag values that are assigned to a behavior graph.
func (*Client) RejectInvitation ¶
func (c *Client) RejectInvitation(ctx context.Context, params *RejectInvitationInput, optFns ...func(*Options)) (*RejectInvitationOutput, error)
Rejects an invitation to contribute the account data to a behavior graph. This operation must be called by an invited member account that has the INVITED status. RejectInvitation cannot be called by an organization account in the organization behavior graph. In the organization behavior graph, organization accounts do not receive an invitation.
func (*Client) StartMonitoringMember ¶
func (c *Client) StartMonitoringMember(ctx context.Context, params *StartMonitoringMemberInput, optFns ...func(*Options)) (*StartMonitoringMemberOutput, error)
Sends a request to enable data ingest for a member account that has a status of ACCEPTED_BUT_DISABLED. For valid member accounts, the status is updated as follows.
* If Detective enabled the member account, then the new status is ENABLED.
* If Detective cannot enable the member account, the status remains ACCEPTED_BUT_DISABLED.
func (*Client) TagResource ¶ added in v1.3.0
func (c *Client) TagResource(ctx context.Context, params *TagResourceInput, optFns ...func(*Options)) (*TagResourceOutput, error)
Applies tag values to a behavior graph.
func (*Client) UntagResource ¶ added in v1.3.0
func (c *Client) UntagResource(ctx context.Context, params *UntagResourceInput, optFns ...func(*Options)) (*UntagResourceOutput, error)
Removes tags from a behavior graph.
func (*Client) UpdateOrganizationConfiguration ¶ added in v1.12.0
func (c *Client) UpdateOrganizationConfiguration(ctx context.Context, params *UpdateOrganizationConfigurationInput, optFns ...func(*Options)) (*UpdateOrganizationConfigurationOutput, error)
Updates the configuration for the Organizations integration in the current Region. Can only be called by the Detective administrator account for the organization.
type CreateGraphInput ¶
type CreateGraphInput struct { // The tags to assign to the new behavior graph. You can add up to 50 tags. For // each tag, you provide the tag key and the tag value. Each tag key can contain up // to 128 characters. Each tag value can contain up to 256 characters. Tags map[string]string // contains filtered or unexported fields }
type CreateGraphOutput ¶
type CreateGraphOutput struct { // The ARN of the new behavior graph. GraphArn *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type CreateMembersInput ¶
type CreateMembersInput struct { // The list of Amazon Web Services accounts to invite or to enable. You can invite // or enable up to 50 accounts at a time. For each invited account, the account // list contains the account identifier and the Amazon Web Services account root // user email address. For organization accounts in the organization behavior // graph, the email address is not required. // // This member is required. Accounts []types.Account // The ARN of the behavior graph. // // This member is required. GraphArn *string // if set to true, then the invited accounts do not receive email notifications. By // default, this is set to false, and the invited accounts receive email // notifications. Organization accounts in the organization behavior graph do not // receive email notifications. DisableEmailNotification bool // Customized message text to include in the invitation email message to the // invited member accounts. Message *string // contains filtered or unexported fields }
type CreateMembersOutput ¶
type CreateMembersOutput struct { // The set of member account invitation or enablement requests that Detective was // able to process. This includes accounts that are being verified, that failed // verification, and that passed verification and are being sent an invitation or // are being enabled. Members []types.MemberDetail // The list of accounts for which Detective was unable to process the invitation or // enablement request. For each account, the list provides the reason why the // request could not be processed. The list includes accounts that are already // member accounts in the behavior graph. UnprocessedAccounts []types.UnprocessedAccount // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type DeleteGraphInput ¶
type DeleteGraphInput struct { // The ARN of the behavior graph to disable. // // This member is required. GraphArn *string // contains filtered or unexported fields }
type DeleteGraphOutput ¶
type DeleteGraphOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type DeleteMembersInput ¶
type DeleteMembersInput struct { // The list of Amazon Web Services account identifiers for the member accounts to // remove from the behavior graph. You can remove up to 50 member accounts at a // time. // // This member is required. AccountIds []string // The ARN of the behavior graph to remove members from. // // This member is required. GraphArn *string // contains filtered or unexported fields }
type DeleteMembersOutput ¶
type DeleteMembersOutput struct { // The list of Amazon Web Services account identifiers for the member accounts that // Detective successfully removed from the behavior graph. AccountIds []string // The list of member accounts that Detective was not able to remove from the // behavior graph. For each member account, provides the reason that the deletion // could not be processed. UnprocessedAccounts []types.UnprocessedAccount // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type DescribeOrganizationConfigurationInput ¶ added in v1.12.0
type DescribeOrganizationConfigurationInput struct { // The ARN of the organization behavior graph. // // This member is required. GraphArn *string // contains filtered or unexported fields }
type DescribeOrganizationConfigurationOutput ¶ added in v1.12.0
type DescribeOrganizationConfigurationOutput struct { // Indicates whether to automatically enable new organization accounts as member // accounts in the organization behavior graph. AutoEnable bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type DisableOrganizationAdminAccountInput ¶ added in v1.12.0
type DisableOrganizationAdminAccountInput struct {
// contains filtered or unexported fields
}
type DisableOrganizationAdminAccountOutput ¶ added in v1.12.0
type DisableOrganizationAdminAccountOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type DisassociateMembershipInput ¶
type DisassociateMembershipInput struct { // The ARN of the behavior graph to remove the member account from. The member // account's member status in the behavior graph must be ENABLED. // // This member is required. GraphArn *string // contains filtered or unexported fields }
type DisassociateMembershipOutput ¶
type DisassociateMembershipOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type EnableOrganizationAdminAccountInput ¶ added in v1.12.0
type EnableOrganizationAdminAccountInput struct { // The Amazon Web Services account identifier of the account to designate as the // Detective administrator account for the organization. // // This member is required. AccountId *string // contains filtered or unexported fields }
type EnableOrganizationAdminAccountOutput ¶ added in v1.12.0
type EnableOrganizationAdminAccountOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type EndpointResolver ¶
type EndpointResolver interface {
ResolveEndpoint(region string, options EndpointResolverOptions) (aws.Endpoint, error)
}
EndpointResolver interface for resolving service endpoints.
func EndpointResolverFromURL ¶ added in v1.1.0
func EndpointResolverFromURL(url string, optFns ...func(*aws.Endpoint)) EndpointResolver
EndpointResolverFromURL returns an EndpointResolver configured using the provided endpoint url. By default, the resolved endpoint resolver uses the client region as signing region, and the endpoint source is set to EndpointSourceCustom.You can provide functional options to configure endpoint values for the resolved endpoint.
type EndpointResolverFunc ¶
type EndpointResolverFunc func(region string, options EndpointResolverOptions) (aws.Endpoint, error)
EndpointResolverFunc is a helper utility that wraps a function so it satisfies the EndpointResolver interface. This is useful when you want to add additional endpoint resolving logic, or stub out specific endpoints with custom values.
func (EndpointResolverFunc) ResolveEndpoint ¶
func (fn EndpointResolverFunc) ResolveEndpoint(region string, options EndpointResolverOptions) (endpoint aws.Endpoint, err error)
type EndpointResolverOptions ¶ added in v0.29.0
type EndpointResolverOptions = internalendpoints.Options
EndpointResolverOptions is the service endpoint resolver options
type GetMembersInput ¶
type GetMembersInput struct { // The list of Amazon Web Services account identifiers for the member account for // which to return member details. You can request details for up to 50 member // accounts at a time. You cannot use GetMembers to retrieve information about // member accounts that were removed from the behavior graph. // // This member is required. AccountIds []string // The ARN of the behavior graph for which to request the member details. // // This member is required. GraphArn *string // contains filtered or unexported fields }
type GetMembersOutput ¶
type GetMembersOutput struct { // The member account details that Detective is returning in response to the // request. MemberDetails []types.MemberDetail // The requested member accounts for which Detective was unable to return member // details. For each account, provides the reason why the request could not be // processed. UnprocessedAccounts []types.UnprocessedAccount // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type HTTPSignerV4 ¶
type ListGraphsAPIClient ¶ added in v0.30.0
type ListGraphsAPIClient interface {
ListGraphs(context.Context, *ListGraphsInput, ...func(*Options)) (*ListGraphsOutput, error)
}
ListGraphsAPIClient is a client that implements the ListGraphs operation.
type ListGraphsInput ¶
type ListGraphsInput struct { // The maximum number of graphs to return at a time. The total must be less than // the overall limit on the number of results to return, which is currently 200. MaxResults *int32 // For requests to get the next page of results, the pagination token that was // returned with the previous set of results. The initial request does not include // a pagination token. NextToken *string // contains filtered or unexported fields }
type ListGraphsOutput ¶
type ListGraphsOutput struct { // A list of behavior graphs that the account is an administrator account for. GraphList []types.Graph // If there are more behavior graphs remaining in the results, then this is the // pagination token to use to request the next page of behavior graphs. NextToken *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type ListGraphsPaginator ¶ added in v0.30.0
type ListGraphsPaginator struct {
// contains filtered or unexported fields
}
ListGraphsPaginator is a paginator for ListGraphs
func NewListGraphsPaginator ¶ added in v0.30.0
func NewListGraphsPaginator(client ListGraphsAPIClient, params *ListGraphsInput, optFns ...func(*ListGraphsPaginatorOptions)) *ListGraphsPaginator
NewListGraphsPaginator returns a new ListGraphsPaginator
func (*ListGraphsPaginator) HasMorePages ¶ added in v0.30.0
func (p *ListGraphsPaginator) HasMorePages() bool
HasMorePages returns a boolean indicating whether more pages are available
func (*ListGraphsPaginator) NextPage ¶ added in v0.30.0
func (p *ListGraphsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListGraphsOutput, error)
NextPage retrieves the next ListGraphs page.
type ListGraphsPaginatorOptions ¶ added in v0.30.0
type ListGraphsPaginatorOptions struct { // The maximum number of graphs to return at a time. The total must be less than // the overall limit on the number of results to return, which is currently 200. Limit int32 // Set to true if pagination should stop if the service returns a pagination token // that matches the most recent token provided to the service. StopOnDuplicateToken bool }
ListGraphsPaginatorOptions is the paginator options for ListGraphs
type ListInvitationsAPIClient ¶ added in v0.30.0
type ListInvitationsAPIClient interface {
ListInvitations(context.Context, *ListInvitationsInput, ...func(*Options)) (*ListInvitationsOutput, error)
}
ListInvitationsAPIClient is a client that implements the ListInvitations operation.
type ListInvitationsInput ¶
type ListInvitationsInput struct { // The maximum number of behavior graph invitations to return in the response. The // total must be less than the overall limit on the number of results to return, // which is currently 200. MaxResults *int32 // For requests to retrieve the next page of results, the pagination token that was // returned with the previous page of results. The initial request does not include // a pagination token. NextToken *string // contains filtered or unexported fields }
type ListInvitationsOutput ¶
type ListInvitationsOutput struct { // The list of behavior graphs for which the member account has open or accepted // invitations. Invitations []types.MemberDetail // If there are more behavior graphs remaining in the results, then this is the // pagination token to use to request the next page of behavior graphs. NextToken *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type ListInvitationsPaginator ¶ added in v0.30.0
type ListInvitationsPaginator struct {
// contains filtered or unexported fields
}
ListInvitationsPaginator is a paginator for ListInvitations
func NewListInvitationsPaginator ¶ added in v0.30.0
func NewListInvitationsPaginator(client ListInvitationsAPIClient, params *ListInvitationsInput, optFns ...func(*ListInvitationsPaginatorOptions)) *ListInvitationsPaginator
NewListInvitationsPaginator returns a new ListInvitationsPaginator
func (*ListInvitationsPaginator) HasMorePages ¶ added in v0.30.0
func (p *ListInvitationsPaginator) HasMorePages() bool
HasMorePages returns a boolean indicating whether more pages are available
func (*ListInvitationsPaginator) NextPage ¶ added in v0.30.0
func (p *ListInvitationsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListInvitationsOutput, error)
NextPage retrieves the next ListInvitations page.
type ListInvitationsPaginatorOptions ¶ added in v0.30.0
type ListInvitationsPaginatorOptions struct { // The maximum number of behavior graph invitations to return in the response. The // total must be less than the overall limit on the number of results to return, // which is currently 200. Limit int32 // Set to true if pagination should stop if the service returns a pagination token // that matches the most recent token provided to the service. StopOnDuplicateToken bool }
ListInvitationsPaginatorOptions is the paginator options for ListInvitations
type ListMembersAPIClient ¶ added in v0.30.0
type ListMembersAPIClient interface {
ListMembers(context.Context, *ListMembersInput, ...func(*Options)) (*ListMembersOutput, error)
}
ListMembersAPIClient is a client that implements the ListMembers operation.
type ListMembersInput ¶
type ListMembersInput struct { // The ARN of the behavior graph for which to retrieve the list of member accounts. // // This member is required. GraphArn *string // The maximum number of member accounts to include in the response. The total must // be less than the overall limit on the number of results to return, which is // currently 200. MaxResults *int32 // For requests to retrieve the next page of member account results, the pagination // token that was returned with the previous page of results. The initial request // does not include a pagination token. NextToken *string // contains filtered or unexported fields }
type ListMembersOutput ¶
type ListMembersOutput struct { // The list of member accounts in the behavior graph. For invited accounts, the // results include member accounts that did not pass verification and member // accounts that have not yet accepted the invitation to the behavior graph. The // results do not include member accounts that were removed from the behavior // graph. For the organization behavior graph, the results do not include // organization accounts that the Detective administrator account has not enabled // as member accounts. MemberDetails []types.MemberDetail // If there are more member accounts remaining in the results, then use this // pagination token to request the next page of member accounts. NextToken *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type ListMembersPaginator ¶ added in v0.30.0
type ListMembersPaginator struct {
// contains filtered or unexported fields
}
ListMembersPaginator is a paginator for ListMembers
func NewListMembersPaginator ¶ added in v0.30.0
func NewListMembersPaginator(client ListMembersAPIClient, params *ListMembersInput, optFns ...func(*ListMembersPaginatorOptions)) *ListMembersPaginator
NewListMembersPaginator returns a new ListMembersPaginator
func (*ListMembersPaginator) HasMorePages ¶ added in v0.30.0
func (p *ListMembersPaginator) HasMorePages() bool
HasMorePages returns a boolean indicating whether more pages are available
func (*ListMembersPaginator) NextPage ¶ added in v0.30.0
func (p *ListMembersPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListMembersOutput, error)
NextPage retrieves the next ListMembers page.
type ListMembersPaginatorOptions ¶ added in v0.30.0
type ListMembersPaginatorOptions struct { // The maximum number of member accounts to include in the response. The total must // be less than the overall limit on the number of results to return, which is // currently 200. Limit int32 // Set to true if pagination should stop if the service returns a pagination token // that matches the most recent token provided to the service. StopOnDuplicateToken bool }
ListMembersPaginatorOptions is the paginator options for ListMembers
type ListOrganizationAdminAccountsAPIClient ¶ added in v1.12.0
type ListOrganizationAdminAccountsAPIClient interface {
ListOrganizationAdminAccounts(context.Context, *ListOrganizationAdminAccountsInput, ...func(*Options)) (*ListOrganizationAdminAccountsOutput, error)
}
ListOrganizationAdminAccountsAPIClient is a client that implements the ListOrganizationAdminAccounts operation.
type ListOrganizationAdminAccountsInput ¶ added in v1.12.0
type ListOrganizationAdminAccountsInput struct { // The maximum number of results to return. MaxResults *int32 // For requests to get the next page of results, the pagination token that was // returned with the previous set of results. The initial request does not include // a pagination token. NextToken *string // contains filtered or unexported fields }
type ListOrganizationAdminAccountsOutput ¶ added in v1.12.0
type ListOrganizationAdminAccountsOutput struct { // The list of delegated administrator accounts. Administrators []types.Administrator // If there are more accounts remaining in the results, then this is the pagination // token to use to request the next page of accounts. NextToken *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type ListOrganizationAdminAccountsPaginator ¶ added in v1.12.0
type ListOrganizationAdminAccountsPaginator struct {
// contains filtered or unexported fields
}
ListOrganizationAdminAccountsPaginator is a paginator for ListOrganizationAdminAccounts
func NewListOrganizationAdminAccountsPaginator ¶ added in v1.12.0
func NewListOrganizationAdminAccountsPaginator(client ListOrganizationAdminAccountsAPIClient, params *ListOrganizationAdminAccountsInput, optFns ...func(*ListOrganizationAdminAccountsPaginatorOptions)) *ListOrganizationAdminAccountsPaginator
NewListOrganizationAdminAccountsPaginator returns a new ListOrganizationAdminAccountsPaginator
func (*ListOrganizationAdminAccountsPaginator) HasMorePages ¶ added in v1.12.0
func (p *ListOrganizationAdminAccountsPaginator) HasMorePages() bool
HasMorePages returns a boolean indicating whether more pages are available
func (*ListOrganizationAdminAccountsPaginator) NextPage ¶ added in v1.12.0
func (p *ListOrganizationAdminAccountsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListOrganizationAdminAccountsOutput, error)
NextPage retrieves the next ListOrganizationAdminAccounts page.
type ListOrganizationAdminAccountsPaginatorOptions ¶ added in v1.12.0
type ListOrganizationAdminAccountsPaginatorOptions struct { // The maximum number of results to return. Limit int32 // Set to true if pagination should stop if the service returns a pagination token // that matches the most recent token provided to the service. StopOnDuplicateToken bool }
ListOrganizationAdminAccountsPaginatorOptions is the paginator options for ListOrganizationAdminAccounts
type ListTagsForResourceInput ¶ added in v1.3.0
type ListTagsForResourceInput struct { // The ARN of the behavior graph for which to retrieve the tag values. // // This member is required. ResourceArn *string // contains filtered or unexported fields }
type ListTagsForResourceOutput ¶ added in v1.3.0
type ListTagsForResourceOutput struct { // The tag values that are assigned to the behavior graph. The request returns up // to 50 tag values. Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type Options ¶
type Options struct { // Set of options to modify how an operation is invoked. These apply to all // operations invoked for this client. Use functional options on operation call to // modify this list for per operation behavior. APIOptions []func(*middleware.Stack) error // Configures the events that will be sent to the configured logger. ClientLogMode aws.ClientLogMode // The credentials object to use when signing requests. Credentials aws.CredentialsProvider // The configuration DefaultsMode that the SDK should use when constructing the // clients initial default settings. DefaultsMode aws.DefaultsMode // The endpoint options to be used when attempting to resolve an endpoint. EndpointOptions EndpointResolverOptions // The service endpoint resolver. EndpointResolver EndpointResolver // Signature Version 4 (SigV4) Signer HTTPSignerV4 HTTPSignerV4 // The logger writer interface to write logging messages to. Logger logging.Logger // The region to send requests to. (Required) Region string // RetryMaxAttempts specifies the maximum number attempts an API client will call // an operation that fails with a retryable error. A value of 0 is ignored, and // will not be used to configure the API client created default retryer, or modify // per operation call's retry max attempts. When creating a new API Clients this // member will only be used if the Retryer Options member is nil. This value will // be ignored if Retryer is not nil. If specified in an operation call's functional // options with a value that is different than the constructed client's Options, // the Client's Retryer will be wrapped to use the operation's specific // RetryMaxAttempts value. RetryMaxAttempts int // RetryMode specifies the retry mode the API client will be created with, if // Retryer option is not also specified. When creating a new API Clients this // member will only be used if the Retryer Options member is nil. This value will // be ignored if Retryer is not nil. Currently does not support per operation call // overrides, may in the future. RetryMode aws.RetryMode // Retryer guides how HTTP requests should be retried in case of recoverable // failures. When nil the API client will use a default retryer. The kind of // default retry created by the API client can be changed with the RetryMode // option. Retryer aws.Retryer // The RuntimeEnvironment configuration, only populated if the DefaultsMode is set // to DefaultsModeAuto and is initialized using config.LoadDefaultConfig. You // should not populate this structure programmatically, or rely on the values here // within your applications. RuntimeEnvironment aws.RuntimeEnvironment // The HTTP client to invoke API calls with. Defaults to client's default HTTP // implementation if nil. HTTPClient HTTPClient // contains filtered or unexported fields }
type RejectInvitationInput ¶
type RejectInvitationInput struct { // The ARN of the behavior graph to reject the invitation to. The member account's // current member status in the behavior graph must be INVITED. // // This member is required. GraphArn *string // contains filtered or unexported fields }
type RejectInvitationOutput ¶
type RejectInvitationOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type ResolveEndpoint ¶
type ResolveEndpoint struct { Resolver EndpointResolver Options EndpointResolverOptions }
func (*ResolveEndpoint) HandleSerialize ¶
func (m *ResolveEndpoint) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, )
func (*ResolveEndpoint) ID ¶
func (*ResolveEndpoint) ID() string
type StartMonitoringMemberInput ¶
type StartMonitoringMemberInput struct { // The account ID of the member account to try to enable. The account must be an // invited member account with a status of ACCEPTED_BUT_DISABLED. // // This member is required. AccountId *string // The ARN of the behavior graph. // // This member is required. GraphArn *string // contains filtered or unexported fields }
type StartMonitoringMemberOutput ¶
type StartMonitoringMemberOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type TagResourceInput ¶ added in v1.3.0
type TagResourceInput struct { // The ARN of the behavior graph to assign the tags to. // // This member is required. ResourceArn *string // The tags to assign to the behavior graph. You can add up to 50 tags. For each // tag, you provide the tag key and the tag value. Each tag key can contain up to // 128 characters. Each tag value can contain up to 256 characters. // // This member is required. Tags map[string]string // contains filtered or unexported fields }
type TagResourceOutput ¶ added in v1.3.0
type TagResourceOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type UntagResourceInput ¶ added in v1.3.0
type UntagResourceInput struct { // The ARN of the behavior graph to remove the tags from. // // This member is required. ResourceArn *string // The tag keys of the tags to remove from the behavior graph. You can remove up to // 50 tags at a time. // // This member is required. TagKeys []string // contains filtered or unexported fields }
type UntagResourceOutput ¶ added in v1.3.0
type UntagResourceOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type UpdateOrganizationConfigurationInput ¶ added in v1.12.0
type UpdateOrganizationConfigurationInput struct { // The ARN of the organization behavior graph. // // This member is required. GraphArn *string // Indicates whether to automatically enable new organization accounts as member // accounts in the organization behavior graph. AutoEnable bool // contains filtered or unexported fields }
type UpdateOrganizationConfigurationOutput ¶ added in v1.12.0
type UpdateOrganizationConfigurationOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
Source Files ¶
- api_client.go
- api_op_AcceptInvitation.go
- api_op_CreateGraph.go
- api_op_CreateMembers.go
- api_op_DeleteGraph.go
- api_op_DeleteMembers.go
- api_op_DescribeOrganizationConfiguration.go
- api_op_DisableOrganizationAdminAccount.go
- api_op_DisassociateMembership.go
- api_op_EnableOrganizationAdminAccount.go
- api_op_GetMembers.go
- api_op_ListGraphs.go
- api_op_ListInvitations.go
- api_op_ListMembers.go
- api_op_ListOrganizationAdminAccounts.go
- api_op_ListTagsForResource.go
- api_op_RejectInvitation.go
- api_op_StartMonitoringMember.go
- api_op_TagResource.go
- api_op_UntagResource.go
- api_op_UpdateOrganizationConfiguration.go
- deserializers.go
- doc.go
- endpoints.go
- go_module_metadata.go
- serializers.go
- validators.go