PutQueryDefinitionRequest

public struct PutQueryDefinitionRequest : AWSShape

Undocumented

  • Declaration

    Swift

    public static var _members: [AWSShapeMember]
  • 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

    Swift

    public let logGroupNames: [String]?
  • A name for the query definition. If you are saving a lot of query definitions, we recommend that you name them so that you can easily find the ones you want by using the first part of the name as a filter in the queryDefinitionNamePrefix parameter of DescribeQueryDefinitions.

    Declaration

    Swift

    public let name: String
  • 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

    Swift

    public let queryDefinitionId: String?
  • The query string to use for this definition. For more information, see CloudWatch Logs Insights Query Syntax.

    Declaration

    Swift

    public let queryString: String
  • Undocumented

    Declaration

    Swift

    public init(logGroupNames: [String]? = nil, name: String, queryDefinitionId: String? = nil, queryString: String)
  • Declaration

    Swift

    public func validate(name: String) throws