Documentation ¶
Overview ¶
Package iotevents provides the API client, operations, and parameter types for AWS IoT Events.
AWS IoT Events monitors your equipment or device fleets for failures or changes in operation, and triggers actions when such events occur. You can use AWS IoT Events API operations to create, read, update, and delete inputs and detector models, and to list their versions.
Index ¶
- Constants
- func NewDefaultEndpointResolver() *internalendpoints.Resolver
- func WithAPIOptions(optFns ...func(*middleware.Stack) error) func(*Options)
- func WithEndpointResolver(v EndpointResolver) func(*Options)deprecated
- func WithEndpointResolverV2(v EndpointResolverV2) func(*Options)
- func WithSigV4SigningName(name string) func(*Options)
- func WithSigV4SigningRegion(region string) func(*Options)
- type AuthResolverParameters
- type AuthSchemeResolver
- type Client
- func (c *Client) CreateAlarmModel(ctx context.Context, params *CreateAlarmModelInput, optFns ...func(*Options)) (*CreateAlarmModelOutput, error)
- func (c *Client) CreateDetectorModel(ctx context.Context, params *CreateDetectorModelInput, ...) (*CreateDetectorModelOutput, error)
- func (c *Client) CreateInput(ctx context.Context, params *CreateInputInput, optFns ...func(*Options)) (*CreateInputOutput, error)
- func (c *Client) DeleteAlarmModel(ctx context.Context, params *DeleteAlarmModelInput, optFns ...func(*Options)) (*DeleteAlarmModelOutput, error)
- func (c *Client) DeleteDetectorModel(ctx context.Context, params *DeleteDetectorModelInput, ...) (*DeleteDetectorModelOutput, error)
- func (c *Client) DeleteInput(ctx context.Context, params *DeleteInputInput, optFns ...func(*Options)) (*DeleteInputOutput, error)
- func (c *Client) DescribeAlarmModel(ctx context.Context, params *DescribeAlarmModelInput, optFns ...func(*Options)) (*DescribeAlarmModelOutput, error)
- func (c *Client) DescribeDetectorModel(ctx context.Context, params *DescribeDetectorModelInput, ...) (*DescribeDetectorModelOutput, error)
- func (c *Client) DescribeDetectorModelAnalysis(ctx context.Context, params *DescribeDetectorModelAnalysisInput, ...) (*DescribeDetectorModelAnalysisOutput, error)
- func (c *Client) DescribeInput(ctx context.Context, params *DescribeInputInput, optFns ...func(*Options)) (*DescribeInputOutput, error)
- func (c *Client) DescribeLoggingOptions(ctx context.Context, params *DescribeLoggingOptionsInput, ...) (*DescribeLoggingOptionsOutput, error)
- func (c *Client) GetDetectorModelAnalysisResults(ctx context.Context, params *GetDetectorModelAnalysisResultsInput, ...) (*GetDetectorModelAnalysisResultsOutput, error)
- func (c *Client) ListAlarmModelVersions(ctx context.Context, params *ListAlarmModelVersionsInput, ...) (*ListAlarmModelVersionsOutput, error)
- func (c *Client) ListAlarmModels(ctx context.Context, params *ListAlarmModelsInput, optFns ...func(*Options)) (*ListAlarmModelsOutput, error)
- func (c *Client) ListDetectorModelVersions(ctx context.Context, params *ListDetectorModelVersionsInput, ...) (*ListDetectorModelVersionsOutput, error)
- func (c *Client) ListDetectorModels(ctx context.Context, params *ListDetectorModelsInput, optFns ...func(*Options)) (*ListDetectorModelsOutput, error)
- func (c *Client) ListInputRoutings(ctx context.Context, params *ListInputRoutingsInput, optFns ...func(*Options)) (*ListInputRoutingsOutput, error)
- func (c *Client) ListInputs(ctx context.Context, params *ListInputsInput, optFns ...func(*Options)) (*ListInputsOutput, error)
- func (c *Client) ListTagsForResource(ctx context.Context, params *ListTagsForResourceInput, ...) (*ListTagsForResourceOutput, error)
- func (c *Client) Options() Options
- func (c *Client) PutLoggingOptions(ctx context.Context, params *PutLoggingOptionsInput, optFns ...func(*Options)) (*PutLoggingOptionsOutput, error)
- func (c *Client) StartDetectorModelAnalysis(ctx context.Context, params *StartDetectorModelAnalysisInput, ...) (*StartDetectorModelAnalysisOutput, 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) UpdateAlarmModel(ctx context.Context, params *UpdateAlarmModelInput, optFns ...func(*Options)) (*UpdateAlarmModelOutput, error)
- func (c *Client) UpdateDetectorModel(ctx context.Context, params *UpdateDetectorModelInput, ...) (*UpdateDetectorModelOutput, error)
- func (c *Client) UpdateInput(ctx context.Context, params *UpdateInputInput, optFns ...func(*Options)) (*UpdateInputOutput, error)
- type CreateAlarmModelInput
- type CreateAlarmModelOutput
- type CreateDetectorModelInput
- type CreateDetectorModelOutput
- type CreateInputInput
- type CreateInputOutput
- type DeleteAlarmModelInput
- type DeleteAlarmModelOutput
- type DeleteDetectorModelInput
- type DeleteDetectorModelOutput
- type DeleteInputInput
- type DeleteInputOutput
- type DescribeAlarmModelInput
- type DescribeAlarmModelOutput
- type DescribeDetectorModelAnalysisInput
- type DescribeDetectorModelAnalysisOutput
- type DescribeDetectorModelInput
- type DescribeDetectorModelOutput
- type DescribeInputInput
- type DescribeInputOutput
- type DescribeLoggingOptionsInput
- type DescribeLoggingOptionsOutput
- type EndpointParameters
- type EndpointResolver
- type EndpointResolverFunc
- type EndpointResolverOptions
- type EndpointResolverV2
- type GetDetectorModelAnalysisResultsInput
- type GetDetectorModelAnalysisResultsOutput
- type HTTPClient
- type HTTPSignerV4
- type ListAlarmModelVersionsInput
- type ListAlarmModelVersionsOutput
- type ListAlarmModelsInput
- type ListAlarmModelsOutput
- type ListDetectorModelVersionsInput
- type ListDetectorModelVersionsOutput
- type ListDetectorModelsInput
- type ListDetectorModelsOutput
- type ListInputRoutingsInput
- type ListInputRoutingsOutput
- type ListInputsInput
- type ListInputsOutput
- type ListTagsForResourceInput
- type ListTagsForResourceOutput
- type Options
- type PutLoggingOptionsInput
- type PutLoggingOptionsOutput
- type ResolveEndpoint
- type StartDetectorModelAnalysisInput
- type StartDetectorModelAnalysisOutput
- type TagResourceInput
- type TagResourceOutput
- type UntagResourceInput
- type UntagResourceOutput
- type UpdateAlarmModelInput
- type UpdateAlarmModelOutput
- type UpdateDetectorModelInput
- type UpdateDetectorModelOutput
- type UpdateInputInput
- type UpdateInputOutput
Constants ¶
const ServiceAPIVersion = "2018-07-27"
const ServiceID = "IoT Events"
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
deprecated
func WithEndpointResolver(v EndpointResolver) func(*Options)
Deprecated: EndpointResolver and WithEndpointResolver. Providing a value for this field will likely prevent you from using any endpoint-related service features released after the introduction of EndpointResolverV2 and BaseEndpoint.
To migrate an EndpointResolver implementation that uses a custom endpoint, set the client option BaseEndpoint instead.
func WithEndpointResolverV2 ¶ added in v1.16.0
func WithEndpointResolverV2(v EndpointResolverV2) func(*Options)
WithEndpointResolverV2 returns a functional option for setting the Client's EndpointResolverV2 option.
func WithSigV4SigningName ¶ added in v1.19.2
WithSigV4SigningName applies an override to the authentication workflow to use the given signing name for SigV4-authenticated operations.
This is an advanced setting. The value here is FINAL, taking precedence over the resolved signing name from both auth scheme resolution and endpoint resolution.
func WithSigV4SigningRegion ¶ added in v1.19.2
WithSigV4SigningRegion applies an override to the authentication workflow to use the given signing region for SigV4-authenticated operations.
This is an advanced setting. The value here is FINAL, taking precedence over the resolved signing region from both auth scheme resolution and endpoint resolution.
Types ¶
type AuthResolverParameters ¶ added in v1.19.2
type AuthResolverParameters struct { // The name of the operation being invoked. Operation string // The region in which the operation is being invoked. Region string }
AuthResolverParameters contains the set of inputs necessary for auth scheme resolution.
type AuthSchemeResolver ¶ added in v1.19.2
type AuthSchemeResolver interface {
ResolveAuthSchemes(context.Context, *AuthResolverParameters) ([]*smithyauth.Option, error)
}
AuthSchemeResolver returns a set of possible authentication options for an operation.
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client provides the API client to make operations call for AWS IoT Events.
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) CreateAlarmModel ¶ added in v1.4.0
func (c *Client) CreateAlarmModel(ctx context.Context, params *CreateAlarmModelInput, optFns ...func(*Options)) (*CreateAlarmModelOutput, error)
Creates an alarm model to monitor an AWS IoT Events input attribute. You can use the alarm to get notified when the value is outside a specified range. For more information, see Create an alarm modelin the AWS IoT Events Developer Guide.
func (*Client) CreateDetectorModel ¶
func (c *Client) CreateDetectorModel(ctx context.Context, params *CreateDetectorModelInput, optFns ...func(*Options)) (*CreateDetectorModelOutput, error)
Creates a detector model.
func (*Client) CreateInput ¶
func (c *Client) CreateInput(ctx context.Context, params *CreateInputInput, optFns ...func(*Options)) (*CreateInputOutput, error)
Creates an input.
func (*Client) DeleteAlarmModel ¶ added in v1.4.0
func (c *Client) DeleteAlarmModel(ctx context.Context, params *DeleteAlarmModelInput, optFns ...func(*Options)) (*DeleteAlarmModelOutput, error)
Deletes an alarm model. Any alarm instances that were created based on this alarm model are also deleted. This action can't be undone.
func (*Client) DeleteDetectorModel ¶
func (c *Client) DeleteDetectorModel(ctx context.Context, params *DeleteDetectorModelInput, optFns ...func(*Options)) (*DeleteDetectorModelOutput, error)
Deletes a detector model. Any active instances of the detector model are also deleted.
func (*Client) DeleteInput ¶
func (c *Client) DeleteInput(ctx context.Context, params *DeleteInputInput, optFns ...func(*Options)) (*DeleteInputOutput, error)
Deletes an input.
func (*Client) DescribeAlarmModel ¶ added in v1.4.0
func (c *Client) DescribeAlarmModel(ctx context.Context, params *DescribeAlarmModelInput, optFns ...func(*Options)) (*DescribeAlarmModelOutput, error)
Retrieves information about an alarm model. If you don't specify a value for the alarmModelVersion parameter, the latest version is returned.
func (*Client) DescribeDetectorModel ¶
func (c *Client) DescribeDetectorModel(ctx context.Context, params *DescribeDetectorModelInput, optFns ...func(*Options)) (*DescribeDetectorModelOutput, error)
Describes a detector model. If the version parameter is not specified, information about the latest version is returned.
func (*Client) DescribeDetectorModelAnalysis ¶ added in v1.2.0
func (c *Client) DescribeDetectorModelAnalysis(ctx context.Context, params *DescribeDetectorModelAnalysisInput, optFns ...func(*Options)) (*DescribeDetectorModelAnalysisOutput, error)
Retrieves runtime information about a detector model analysis.
After AWS IoT Events starts analyzing your detector model, you have up to 24 hours to retrieve the analysis results.
func (*Client) DescribeInput ¶
func (c *Client) DescribeInput(ctx context.Context, params *DescribeInputInput, optFns ...func(*Options)) (*DescribeInputOutput, error)
Describes an input.
func (*Client) DescribeLoggingOptions ¶
func (c *Client) DescribeLoggingOptions(ctx context.Context, params *DescribeLoggingOptionsInput, optFns ...func(*Options)) (*DescribeLoggingOptionsOutput, error)
Retrieves the current settings of the AWS IoT Events logging options.
func (*Client) GetDetectorModelAnalysisResults ¶ added in v1.2.0
func (c *Client) GetDetectorModelAnalysisResults(ctx context.Context, params *GetDetectorModelAnalysisResultsInput, optFns ...func(*Options)) (*GetDetectorModelAnalysisResultsOutput, error)
Retrieves one or more analysis results of the detector model.
After AWS IoT Events starts analyzing your detector model, you have up to 24 hours to retrieve the analysis results.
func (*Client) ListAlarmModelVersions ¶ added in v1.4.0
func (c *Client) ListAlarmModelVersions(ctx context.Context, params *ListAlarmModelVersionsInput, optFns ...func(*Options)) (*ListAlarmModelVersionsOutput, error)
Lists all the versions of an alarm model. The operation returns only the metadata associated with each alarm model version.
func (*Client) ListAlarmModels ¶ added in v1.4.0
func (c *Client) ListAlarmModels(ctx context.Context, params *ListAlarmModelsInput, optFns ...func(*Options)) (*ListAlarmModelsOutput, error)
Lists the alarm models that you created. The operation returns only the metadata associated with each alarm model.
func (*Client) ListDetectorModelVersions ¶
func (c *Client) ListDetectorModelVersions(ctx context.Context, params *ListDetectorModelVersionsInput, optFns ...func(*Options)) (*ListDetectorModelVersionsOutput, error)
Lists all the versions of a detector model. Only the metadata associated with each detector model version is returned.
func (*Client) ListDetectorModels ¶
func (c *Client) ListDetectorModels(ctx context.Context, params *ListDetectorModelsInput, optFns ...func(*Options)) (*ListDetectorModelsOutput, error)
Lists the detector models you have created. Only the metadata associated with each detector model is returned.
func (*Client) ListInputRoutings ¶ added in v1.4.0
func (c *Client) ListInputRoutings(ctx context.Context, params *ListInputRoutingsInput, optFns ...func(*Options)) (*ListInputRoutingsOutput, error)
Lists one or more input routings.
func (*Client) ListInputs ¶
func (c *Client) ListInputs(ctx context.Context, params *ListInputsInput, optFns ...func(*Options)) (*ListInputsOutput, error)
Lists the inputs you have created.
func (*Client) ListTagsForResource ¶
func (c *Client) ListTagsForResource(ctx context.Context, params *ListTagsForResourceInput, optFns ...func(*Options)) (*ListTagsForResourceOutput, error)
Lists the tags (metadata) you have assigned to the resource.
func (*Client) Options ¶ added in v1.20.0
Options returns a copy of the client configuration.
Callers SHOULD NOT perform mutations on any inner structures within client config. Config overrides should instead be made on a per-operation basis through functional options.
func (*Client) PutLoggingOptions ¶
func (c *Client) PutLoggingOptions(ctx context.Context, params *PutLoggingOptionsInput, optFns ...func(*Options)) (*PutLoggingOptionsOutput, error)
Sets or updates the AWS IoT Events logging options.
If you update the value of any loggingOptions field, it takes up to one minute for the change to take effect. If you change the policy attached to the role you specified in the roleArn field (for example, to correct an invalid policy), it takes up to five minutes for that change to take effect.
func (*Client) StartDetectorModelAnalysis ¶ added in v1.2.0
func (c *Client) StartDetectorModelAnalysis(ctx context.Context, params *StartDetectorModelAnalysisInput, optFns ...func(*Options)) (*StartDetectorModelAnalysisOutput, error)
Performs an analysis of your detector model. For more information, see Troubleshooting a detector model in the AWS IoT Events Developer Guide.
func (*Client) TagResource ¶
func (c *Client) TagResource(ctx context.Context, params *TagResourceInput, optFns ...func(*Options)) (*TagResourceOutput, error)
Adds to or modifies the tags of the given resource. Tags are metadata that can be used to manage a resource.
func (*Client) UntagResource ¶
func (c *Client) UntagResource(ctx context.Context, params *UntagResourceInput, optFns ...func(*Options)) (*UntagResourceOutput, error)
Removes the given tags (metadata) from the resource.
func (*Client) UpdateAlarmModel ¶ added in v1.4.0
func (c *Client) UpdateAlarmModel(ctx context.Context, params *UpdateAlarmModelInput, optFns ...func(*Options)) (*UpdateAlarmModelOutput, error)
Updates an alarm model. Any alarms that were created based on the previous version are deleted and then created again as new data arrives.
func (*Client) UpdateDetectorModel ¶
func (c *Client) UpdateDetectorModel(ctx context.Context, params *UpdateDetectorModelInput, optFns ...func(*Options)) (*UpdateDetectorModelOutput, error)
Updates a detector model. Detectors (instances) spawned by the previous version are deleted and then re-created as new inputs arrive.
func (*Client) UpdateInput ¶
func (c *Client) UpdateInput(ctx context.Context, params *UpdateInputInput, optFns ...func(*Options)) (*UpdateInputOutput, error)
Updates an input.
type CreateAlarmModelInput ¶ added in v1.4.0
type CreateAlarmModelInput struct { // A unique name that helps you identify the alarm model. You can't change this // name after you create the alarm model. // // This member is required. AlarmModelName *string // Defines when your alarm is invoked. // // This member is required. AlarmRule *types.AlarmRule // The ARN of the IAM role that allows the alarm to perform actions and access AWS // resources. For more information, see [Amazon Resource Names (ARNs)]in the AWS General Reference. // // [Amazon Resource Names (ARNs)]: https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html // // This member is required. RoleArn *string // Contains the configuration information of alarm state changes. AlarmCapabilities *types.AlarmCapabilities // Contains information about one or more alarm actions. AlarmEventActions *types.AlarmEventActions // A description that tells you what the alarm model detects. AlarmModelDescription *string // Contains information about one or more notification actions. AlarmNotification *types.AlarmNotification // An input attribute used as a key to create an alarm. AWS IoT Events routes [inputs] // associated with this key to the alarm. // // [inputs]: https://docs.aws.amazon.com/iotevents/latest/apireference/API_Input.html Key *string // A non-negative integer that reflects the severity level of the alarm. Severity *int32 // A list of key-value pairs that contain metadata for the alarm model. The tags // help you manage the alarm model. For more information, see [Tagging your AWS IoT Events resources]in the AWS IoT // Events Developer Guide. // // You can create up to 50 tags for one alarm model. // // [Tagging your AWS IoT Events resources]: https://docs.aws.amazon.com/iotevents/latest/developerguide/tagging-iotevents.html Tags []types.Tag // contains filtered or unexported fields }
type CreateAlarmModelOutput ¶ added in v1.4.0
type CreateAlarmModelOutput struct { // The ARN of the alarm model. For more information, see [Amazon Resource Names (ARNs)] in the AWS General // Reference. // // [Amazon Resource Names (ARNs)]: https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html AlarmModelArn *string // The version of the alarm model. AlarmModelVersion *string // The time the alarm model was created, in the Unix epoch format. CreationTime *time.Time // The time the alarm model was last updated, in the Unix epoch format. LastUpdateTime *time.Time // The status of the alarm model. The status can be one of the following values: // // - ACTIVE - The alarm model is active and it's ready to evaluate data. // // - ACTIVATING - AWS IoT Events is activating your alarm model. Activating an // alarm model can take up to a few minutes. // // - INACTIVE - The alarm model is inactive, so it isn't ready to evaluate data. // Check your alarm model information and update the alarm model. // // - FAILED - You couldn't create or update the alarm model. Check your alarm // model information and try again. Status types.AlarmModelVersionStatus // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type CreateDetectorModelInput ¶
type CreateDetectorModelInput struct { // Information that defines how the detectors operate. // // This member is required. DetectorModelDefinition *types.DetectorModelDefinition // The name of the detector model. // // This member is required. DetectorModelName *string // The ARN of the role that grants permission to AWS IoT Events to perform its // operations. // // This member is required. RoleArn *string // A brief description of the detector model. DetectorModelDescription *string // Information about the order in which events are evaluated and how actions are // executed. EvaluationMethod types.EvaluationMethod // The input attribute key used to identify a device or system to create a // detector (an instance of the detector model) and then to route each input // received to the appropriate detector (instance). This parameter uses a JSON-path // expression in the message payload of each input to specify the attribute-value // pair that is used to identify the device associated with the input. Key *string // Metadata that can be used to manage the detector model. Tags []types.Tag // contains filtered or unexported fields }
type CreateDetectorModelOutput ¶
type CreateDetectorModelOutput struct { // Information about how the detector model is configured. DetectorModelConfiguration *types.DetectorModelConfiguration // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type CreateInputInput ¶
type CreateInputInput struct { // The definition of the input. // // This member is required. InputDefinition *types.InputDefinition // The name you want to give to the input. // // This member is required. InputName *string // A brief description of the input. InputDescription *string // Metadata that can be used to manage the input. Tags []types.Tag // contains filtered or unexported fields }
type CreateInputOutput ¶
type CreateInputOutput struct { // Information about the configuration of the input. InputConfiguration *types.InputConfiguration // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type DeleteAlarmModelInput ¶ added in v1.4.0
type DeleteAlarmModelInput struct { // The name of the alarm model. // // This member is required. AlarmModelName *string // contains filtered or unexported fields }
type DeleteAlarmModelOutput ¶ added in v1.4.0
type DeleteAlarmModelOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type DeleteDetectorModelInput ¶
type DeleteDetectorModelInput struct { // The name of the detector model to be deleted. // // This member is required. DetectorModelName *string // contains filtered or unexported fields }
type DeleteDetectorModelOutput ¶
type DeleteDetectorModelOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type DeleteInputInput ¶
type DeleteInputInput struct { // The name of the input to delete. // // This member is required. InputName *string // contains filtered or unexported fields }
type DeleteInputOutput ¶
type DeleteInputOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type DescribeAlarmModelInput ¶ added in v1.4.0
type DescribeAlarmModelOutput ¶ added in v1.4.0
type DescribeAlarmModelOutput struct { // Contains the configuration information of alarm state changes. AlarmCapabilities *types.AlarmCapabilities // Contains information about one or more alarm actions. AlarmEventActions *types.AlarmEventActions // The ARN of the alarm model. For more information, see [Amazon Resource Names (ARNs)] in the AWS General // Reference. // // [Amazon Resource Names (ARNs)]: https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html AlarmModelArn *string // The description of the alarm model. AlarmModelDescription *string // The name of the alarm model. AlarmModelName *string // The version of the alarm model. AlarmModelVersion *string // Contains information about one or more notification actions. AlarmNotification *types.AlarmNotification // Defines when your alarm is invoked. AlarmRule *types.AlarmRule // The time the alarm model was created, in the Unix epoch format. CreationTime *time.Time // An input attribute used as a key to create an alarm. AWS IoT Events routes [inputs] // associated with this key to the alarm. // // [inputs]: https://docs.aws.amazon.com/iotevents/latest/apireference/API_Input.html Key *string // The time the alarm model was last updated, in the Unix epoch format. LastUpdateTime *time.Time // The ARN of the IAM role that allows the alarm to perform actions and access AWS // resources. For more information, see [Amazon Resource Names (ARNs)]in the AWS General Reference. // // [Amazon Resource Names (ARNs)]: https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html RoleArn *string // A non-negative integer that reflects the severity level of the alarm. Severity *int32 // The status of the alarm model. The status can be one of the following values: // // - ACTIVE - The alarm model is active and it's ready to evaluate data. // // - ACTIVATING - AWS IoT Events is activating your alarm model. Activating an // alarm model can take up to a few minutes. // // - INACTIVE - The alarm model is inactive, so it isn't ready to evaluate data. // Check your alarm model information and update the alarm model. // // - FAILED - You couldn't create or update the alarm model. Check your alarm // model information and try again. Status types.AlarmModelVersionStatus // Contains information about the status of the alarm model. StatusMessage *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type DescribeDetectorModelAnalysisInput ¶ added in v1.2.0
type DescribeDetectorModelAnalysisInput struct { // The ID of the analysis result that you want to retrieve. // // This member is required. AnalysisId *string // contains filtered or unexported fields }
type DescribeDetectorModelAnalysisOutput ¶ added in v1.2.0
type DescribeDetectorModelAnalysisOutput struct { // The status of the analysis activity. The status can be one of the following // values: // // - RUNNING - AWS IoT Events is analyzing your detector model. This process can // take several minutes to complete. // // - COMPLETE - AWS IoT Events finished analyzing your detector model. // // - FAILED - AWS IoT Events couldn't analyze your detector model. Try again // later. Status types.AnalysisStatus // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type DescribeDetectorModelOutput ¶
type DescribeDetectorModelOutput struct { // Information about the detector model. DetectorModel *types.DetectorModel // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type DescribeInputInput ¶
type DescribeInputInput struct { // The name of the input. // // This member is required. InputName *string // contains filtered or unexported fields }
type DescribeInputOutput ¶
type DescribeInputOutput struct { // Information about the input. Input *types.Input // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type DescribeLoggingOptionsInput ¶
type DescribeLoggingOptionsInput struct {
// contains filtered or unexported fields
}
type DescribeLoggingOptionsOutput ¶
type DescribeLoggingOptionsOutput struct { // The current settings of the AWS IoT Events logging options. LoggingOptions *types.LoggingOptions // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type EndpointParameters ¶ added in v1.16.0
type EndpointParameters struct { // The AWS region used to dispatch the request. // // Parameter is // required. // // AWS::Region Region *string // When true, use the dual-stack endpoint. If the configured endpoint does not // support dual-stack, dispatching the request MAY return an error. // // Defaults to // false if no value is provided. // // AWS::UseDualStack UseDualStack *bool // When true, send this request to the FIPS-compliant regional endpoint. If the // configured endpoint does not have a FIPS compliant endpoint, dispatching the // request will return an error. // // Defaults to false if no value is // provided. // // AWS::UseFIPS UseFIPS *bool // Override the endpoint used to send this request // // Parameter is // required. // // SDK::Endpoint Endpoint *string }
EndpointParameters provides the parameters that influence how endpoints are resolved.
func (EndpointParameters) ValidateRequired ¶ added in v1.16.0
func (p EndpointParameters) ValidateRequired() error
ValidateRequired validates required parameters are set.
func (EndpointParameters) WithDefaults ¶ added in v1.16.0
func (p EndpointParameters) WithDefaults() EndpointParameters
WithDefaults returns a shallow copy of EndpointParameterswith default values applied to members where applicable.
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 EndpointResolverV2 ¶ added in v1.16.0
type EndpointResolverV2 interface { // ResolveEndpoint attempts to resolve the endpoint with the provided options, // returning the endpoint if found. Otherwise an error is returned. ResolveEndpoint(ctx context.Context, params EndpointParameters) ( smithyendpoints.Endpoint, error, ) }
EndpointResolverV2 provides the interface for resolving service endpoints.
func NewDefaultEndpointResolverV2 ¶ added in v1.16.0
func NewDefaultEndpointResolverV2() EndpointResolverV2
type GetDetectorModelAnalysisResultsInput ¶ added in v1.2.0
type GetDetectorModelAnalysisResultsInput struct { // The ID of the analysis result that you want to retrieve. // // This member is required. AnalysisId *string // The maximum number of results to be returned per request. MaxResults *int32 // The token that you can use to return the next set of results. NextToken *string // contains filtered or unexported fields }
type GetDetectorModelAnalysisResultsOutput ¶ added in v1.2.0
type GetDetectorModelAnalysisResultsOutput struct { // Contains information about one or more analysis results. AnalysisResults []types.AnalysisResult // The token that you can use to return the next set of results, or null if there // are no more results. NextToken *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type HTTPSignerV4 ¶
type ListAlarmModelVersionsInput ¶ added in v1.4.0
type ListAlarmModelVersionsInput struct { // The name of the alarm model. // // This member is required. AlarmModelName *string // The maximum number of results to be returned per request. MaxResults *int32 // The token that you can use to return the next set of results. NextToken *string // contains filtered or unexported fields }
type ListAlarmModelVersionsOutput ¶ added in v1.4.0
type ListAlarmModelVersionsOutput struct { // A list that summarizes each alarm model version. AlarmModelVersionSummaries []types.AlarmModelVersionSummary // The token that you can use to return the next set of results, or null if there // are no more results. NextToken *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type ListAlarmModelsInput ¶ added in v1.4.0
type ListAlarmModelsOutput ¶ added in v1.4.0
type ListAlarmModelsOutput struct { // A list that summarizes each alarm model. AlarmModelSummaries []types.AlarmModelSummary // The token that you can use to return the next set of results, or null if there // are no more results. NextToken *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type ListDetectorModelVersionsInput ¶
type ListDetectorModelVersionsInput struct { // The name of the detector model whose versions are returned. // // This member is required. DetectorModelName *string // The maximum number of results to be returned per request. MaxResults *int32 // The token that you can use to return the next set of results. NextToken *string // contains filtered or unexported fields }
type ListDetectorModelVersionsOutput ¶
type ListDetectorModelVersionsOutput struct { // Summary information about the detector model versions. DetectorModelVersionSummaries []types.DetectorModelVersionSummary // The token that you can use to return the next set of results, or null if there // are no more results. NextToken *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type ListDetectorModelsInput ¶
type ListDetectorModelsOutput ¶
type ListDetectorModelsOutput struct { // Summary information about the detector models. DetectorModelSummaries []types.DetectorModelSummary // The token that you can use to return the next set of results, or null if there // are no more results. NextToken *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type ListInputRoutingsInput ¶ added in v1.4.0
type ListInputRoutingsInput struct { // The identifer of the routed input. // // This member is required. InputIdentifier *types.InputIdentifier // The maximum number of results to be returned per request. MaxResults *int32 // The token that you can use to return the next set of results. NextToken *string // contains filtered or unexported fields }
type ListInputRoutingsOutput ¶ added in v1.4.0
type ListInputRoutingsOutput struct { // The token that you can use to return the next set of results, or null if there // are no more results. NextToken *string // Summary information about the routed resources. RoutedResources []types.RoutedResource // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type ListInputsInput ¶
type ListInputsOutput ¶
type ListInputsOutput struct { // Summary information about the inputs. InputSummaries []types.InputSummary // The token that you can use to return the next set of results, or null if there // are no more results. NextToken *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type ListTagsForResourceInput ¶
type ListTagsForResourceInput struct { // The ARN of the resource. // // This member is required. ResourceArn *string // contains filtered or unexported fields }
type ListTagsForResourceOutput ¶
type ListTagsForResourceOutput struct { // The list of tags assigned to the resource. Tags []types.Tag // 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 // The optional application specific identifier appended to the User-Agent header. AppID string // This endpoint will be given as input to an EndpointResolverV2. It is used for // providing a custom base endpoint that is subject to modifications by the // processing EndpointResolverV2. BaseEndpoint *string // 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. // // Deprecated: Deprecated: EndpointResolver and WithEndpointResolver. Providing a // value for this field will likely prevent you from using any endpoint-related // service features released after the introduction of EndpointResolverV2 and // BaseEndpoint. // // To migrate an EndpointResolver implementation that uses a custom endpoint, set // the client option BaseEndpoint instead. EndpointResolver EndpointResolver // Resolves the endpoint used for a particular service operation. This should be // used over the deprecated EndpointResolver. EndpointResolverV2 EndpointResolverV2 // Signature Version 4 (SigV4) Signer HTTPSignerV4 HTTPSignerV4 // The logger writer interface to write logging messages to. Logger logging.Logger // The client meter provider. MeterProvider metrics.MeterProvider // 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. // // 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 client tracer provider. TracerProvider tracing.TracerProvider // The HTTP client to invoke API calls with. Defaults to client's default HTTP // implementation if nil. HTTPClient HTTPClient // The auth scheme resolver which determines how to authenticate for each // operation. AuthSchemeResolver AuthSchemeResolver // The list of auth schemes supported by the client. AuthSchemes []smithyhttp.AuthScheme // contains filtered or unexported fields }
func (Options) GetIdentityResolver ¶ added in v1.19.2
func (o Options) GetIdentityResolver(schemeID string) smithyauth.IdentityResolver
type PutLoggingOptionsInput ¶
type PutLoggingOptionsInput struct { // The new values of the AWS IoT Events logging options. // // This member is required. LoggingOptions *types.LoggingOptions // contains filtered or unexported fields }
type PutLoggingOptionsOutput ¶
type PutLoggingOptionsOutput 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 StartDetectorModelAnalysisInput ¶ added in v1.2.0
type StartDetectorModelAnalysisInput struct { // Information that defines how a detector operates. // // This member is required. DetectorModelDefinition *types.DetectorModelDefinition // contains filtered or unexported fields }
type StartDetectorModelAnalysisOutput ¶ added in v1.2.0
type StartDetectorModelAnalysisOutput struct { // The ID that you can use to retrieve the analysis result. AnalysisId *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type TagResourceInput ¶
type TagResourceOutput ¶
type TagResourceOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type UntagResourceInput ¶
type UntagResourceOutput ¶
type UntagResourceOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type UpdateAlarmModelInput ¶ added in v1.4.0
type UpdateAlarmModelInput struct { // The name of the alarm model. // // This member is required. AlarmModelName *string // Defines when your alarm is invoked. // // This member is required. AlarmRule *types.AlarmRule // The ARN of the IAM role that allows the alarm to perform actions and access AWS // resources. For more information, see [Amazon Resource Names (ARNs)]in the AWS General Reference. // // [Amazon Resource Names (ARNs)]: https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html // // This member is required. RoleArn *string // Contains the configuration information of alarm state changes. AlarmCapabilities *types.AlarmCapabilities // Contains information about one or more alarm actions. AlarmEventActions *types.AlarmEventActions // The description of the alarm model. AlarmModelDescription *string // Contains information about one or more notification actions. AlarmNotification *types.AlarmNotification // A non-negative integer that reflects the severity level of the alarm. Severity *int32 // contains filtered or unexported fields }
type UpdateAlarmModelOutput ¶ added in v1.4.0
type UpdateAlarmModelOutput struct { // The ARN of the alarm model. For more information, see [Amazon Resource Names (ARNs)] in the AWS General // Reference. // // [Amazon Resource Names (ARNs)]: https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html AlarmModelArn *string // The version of the alarm model. AlarmModelVersion *string // The time the alarm model was created, in the Unix epoch format. CreationTime *time.Time // The time the alarm model was last updated, in the Unix epoch format. LastUpdateTime *time.Time // The status of the alarm model. The status can be one of the following values: // // - ACTIVE - The alarm model is active and it's ready to evaluate data. // // - ACTIVATING - AWS IoT Events is activating your alarm model. Activating an // alarm model can take up to a few minutes. // // - INACTIVE - The alarm model is inactive, so it isn't ready to evaluate data. // Check your alarm model information and update the alarm model. // // - FAILED - You couldn't create or update the alarm model. Check your alarm // model information and try again. Status types.AlarmModelVersionStatus // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type UpdateDetectorModelInput ¶
type UpdateDetectorModelInput struct { // Information that defines how a detector operates. // // This member is required. DetectorModelDefinition *types.DetectorModelDefinition // The name of the detector model that is updated. // // This member is required. DetectorModelName *string // The ARN of the role that grants permission to AWS IoT Events to perform its // operations. // // This member is required. RoleArn *string // A brief description of the detector model. DetectorModelDescription *string // Information about the order in which events are evaluated and how actions are // executed. EvaluationMethod types.EvaluationMethod // contains filtered or unexported fields }
type UpdateDetectorModelOutput ¶
type UpdateDetectorModelOutput struct { // Information about how the detector model is configured. DetectorModelConfiguration *types.DetectorModelConfiguration // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type UpdateInputInput ¶
type UpdateInputInput struct { // The definition of the input. // // This member is required. InputDefinition *types.InputDefinition // The name of the input you want to update. // // This member is required. InputName *string // A brief description of the input. InputDescription *string // contains filtered or unexported fields }
type UpdateInputOutput ¶
type UpdateInputOutput struct { // Information about the configuration of the input. InputConfiguration *types.InputConfiguration // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
Source Files ¶
- api_client.go
- api_op_CreateAlarmModel.go
- api_op_CreateDetectorModel.go
- api_op_CreateInput.go
- api_op_DeleteAlarmModel.go
- api_op_DeleteDetectorModel.go
- api_op_DeleteInput.go
- api_op_DescribeAlarmModel.go
- api_op_DescribeDetectorModel.go
- api_op_DescribeDetectorModelAnalysis.go
- api_op_DescribeInput.go
- api_op_DescribeLoggingOptions.go
- api_op_GetDetectorModelAnalysisResults.go
- api_op_ListAlarmModelVersions.go
- api_op_ListAlarmModels.go
- api_op_ListDetectorModelVersions.go
- api_op_ListDetectorModels.go
- api_op_ListInputRoutings.go
- api_op_ListInputs.go
- api_op_ListTagsForResource.go
- api_op_PutLoggingOptions.go
- api_op_StartDetectorModelAnalysis.go
- api_op_TagResource.go
- api_op_UntagResource.go
- api_op_UpdateAlarmModel.go
- api_op_UpdateDetectorModel.go
- api_op_UpdateInput.go
- auth.go
- deserializers.go
- doc.go
- endpoints.go
- go_module_metadata.go
- options.go
- serializers.go
- validators.go