AWSLogsCreateLogGroupRequest

Objective-C

@interface AWSLogsCreateLogGroupRequest

Swift

class AWSLogsCreateLogGroupRequest
  • The Amazon Resource Name (ARN) of the KMS key to use when encrypting log data. For more information, see Amazon Resource Names.

    Declaration

    Objective-C

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

    Swift

    var kmsKeyId: String? { get set }
  • Use this parameter to specify the log group class for this log group. There are two classes:

    • The Standard log class supports all CloudWatch Logs features.

    • The Infrequent Access log class supports a subset of CloudWatch Logs features and incurs lower costs.

    If you omit this parameter, the default of STANDARD is used.

    The value of logGroupClass can’t be changed after a log group is created.

    For details about the features supported by each class, see Log classes

    Declaration

    Objective-C

    @property (nonatomic) AWSLogsLogGroupClass logGroupClass;

    Swift

    var logGroupClass: AWSLogsLogGroupClass { get set }
  • A name for the log group.

    Declaration

    Objective-C

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

    Swift

    var logGroupName: String? { get set }
  • The key-value pairs to use for the tags.

    You can grant users access to certain log groups while preventing them from accessing other log groups. To do so, tag your groups and use IAM policies that refer to those tags. To assign tags when you create a log group, you must have either the logs:TagResource or logs:TagLogGroup permission. For more information about tagging, see Tagging Amazon Web Services resources. For more information about using tags to control access, see Controlling access to Amazon Web Services resources using tags.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSDictionary<NSString *, NSString *> *_Nullable tags;

    Swift

    var tags: [String : String]? { get set }