AWSLogsPutQueryDefinitionRequest

Objective-C

@interface AWSLogsPutQueryDefinitionRequest

Swift

class AWSLogsPutQueryDefinitionRequest
  • Used as an idempotency token, to avoid returning an exception if the service receives the same request twice because of a network error.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *_Nullable clientToken;

    Swift

    var clientToken: String? { get set }
  • Use this parameter to include specific log groups as part of your query definition.

    If you are updating a query definition and you omit this parameter, then the updated definition will contain no log groups.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSArray<NSString *> *_Nullable logGroupNames;

    Swift

    var logGroupNames: [String]? { get set }
  • A name for the query definition. If you are saving numerous query definitions, we recommend that you name them. This way, you can find the ones you want by using the first part of the name as a filter in the queryDefinitionNamePrefix parameter of DescribeQueryDefinitions.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *_Nullable name;

    Swift

    var name: String? { get set }
  • If you are updating a query definition, use this parameter to specify the ID of the query definition that you want to update. You can use DescribeQueryDefinitions to retrieve the IDs of your saved query definitions.

    If you are creating a query definition, do not specify this parameter. CloudWatch generates a unique ID for the new query definition and include it in the response to this operation.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *_Nullable queryDefinitionId;

    Swift

    var queryDefinitionId: String? { get set }
  • The query string to use for this definition. For more information, see CloudWatch Logs Insights Query Syntax.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *_Nullable queryString;

    Swift

    var queryString: String? { get set }