Skip to content

Commit

Permalink
feat(client-emr-containers): EMR on EKS StartJobRun Api will be suppo…
Browse files Browse the repository at this point in the history
…rting the configuration of log storage in AWS by using "managedLogs" under "MonitoringConfiguration".
  • Loading branch information
awstools committed Feb 18, 2025
1 parent 23d5fe8 commit bfd1030
Show file tree
Hide file tree
Showing 9 changed files with 4,836 additions and 4,726 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ export interface CreateManagedEndpointCommandOutput extends CreateManagedEndpoin
* },
* ],
* monitoringConfiguration: { // MonitoringConfiguration
* managedLogs: { // ManagedLogs
* allowAWSToRetainLogs: "ENABLED" || "DISABLED",
* encryptionKeyArn: "STRING_VALUE",
* },
* persistentAppUI: "ENABLED" || "DISABLED",
* cloudWatchMonitoringConfiguration: { // CloudWatchMonitoringConfiguration
* logGroupName: "STRING_VALUE", // required
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ export interface DescribeJobRunCommandOutput extends DescribeJobRunResponse, __M
* // },
* // ],
* // monitoringConfiguration: { // MonitoringConfiguration
* // managedLogs: { // ManagedLogs
* // allowAWSToRetainLogs: "ENABLED" || "DISABLED",
* // encryptionKeyArn: "STRING_VALUE",
* // },
* // persistentAppUI: "ENABLED" || "DISABLED",
* // cloudWatchMonitoringConfiguration: { // CloudWatchMonitoringConfiguration
* // logGroupName: "STRING_VALUE", // required
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ export interface DescribeManagedEndpointCommandOutput extends DescribeManagedEnd
* // },
* // ],
* // monitoringConfiguration: { // MonitoringConfiguration
* // managedLogs: { // ManagedLogs
* // allowAWSToRetainLogs: "ENABLED" || "DISABLED",
* // encryptionKeyArn: "STRING_VALUE",
* // },
* // persistentAppUI: "ENABLED" || "DISABLED",
* // cloudWatchMonitoringConfiguration: { // CloudWatchMonitoringConfiguration
* // logGroupName: "STRING_VALUE", // required
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ export interface ListJobRunsCommandOutput extends ListJobRunsResponse, __Metadat
* // },
* // ],
* // monitoringConfiguration: { // MonitoringConfiguration
* // managedLogs: { // ManagedLogs
* // allowAWSToRetainLogs: "ENABLED" || "DISABLED",
* // encryptionKeyArn: "STRING_VALUE",
* // },
* // persistentAppUI: "ENABLED" || "DISABLED",
* // cloudWatchMonitoringConfiguration: { // CloudWatchMonitoringConfiguration
* // logGroupName: "STRING_VALUE", // required
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,10 @@ export interface ListManagedEndpointsCommandOutput extends ListManagedEndpointsR
* // },
* // ],
* // monitoringConfiguration: { // MonitoringConfiguration
* // managedLogs: { // ManagedLogs
* // allowAWSToRetainLogs: "ENABLED" || "DISABLED",
* // encryptionKeyArn: "STRING_VALUE",
* // },
* // persistentAppUI: "ENABLED" || "DISABLED",
* // cloudWatchMonitoringConfiguration: { // CloudWatchMonitoringConfiguration
* // logGroupName: "STRING_VALUE", // required
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ export interface StartJobRunCommandOutput extends StartJobRunResponse, __Metadat
* },
* ],
* monitoringConfiguration: { // MonitoringConfiguration
* managedLogs: { // ManagedLogs
* allowAWSToRetainLogs: "ENABLED" || "DISABLED",
* encryptionKeyArn: "STRING_VALUE",
* },
* persistentAppUI: "ENABLED" || "DISABLED",
* cloudWatchMonitoringConfiguration: { // CloudWatchMonitoringConfiguration
* logGroupName: "STRING_VALUE", // required
Expand Down
38 changes: 38 additions & 0 deletions clients/client-emr-containers/src/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,20 @@ import { ExceptionOptionType as __ExceptionOptionType, SENSITIVE_STRING } from "

import { EMRContainersServiceException as __BaseException } from "./EMRContainersServiceException";

/**
* @public
* @enum
*/
export const AllowAWSToRetainLogs = {
DISABLED: "DISABLED",
ENABLED: "ENABLED",
} as const;

/**
* @public
*/
export type AllowAWSToRetainLogs = (typeof AllowAWSToRetainLogs)[keyof typeof AllowAWSToRetainLogs];

/**
* @public
* @enum
Expand Down Expand Up @@ -443,6 +457,24 @@ export interface ContainerLogRotationConfiguration {
maxFilesToKeep: number | undefined;
}

/**
* <p>The entity that provides configuration control over managed logs.</p>
* @public
*/
export interface ManagedLogs {
/**
* <p>Determines whether Amazon Web Services can retain logs.</p>
* @public
*/
allowAWSToRetainLogs?: AllowAWSToRetainLogs | undefined;

/**
* <p>The Amazon resource name (ARN) of the encryption key for logs.</p>
* @public
*/
encryptionKeyArn?: string | undefined;
}

/**
* @public
* @enum
Expand Down Expand Up @@ -475,6 +507,12 @@ export interface S3MonitoringConfiguration {
* @public
*/
export interface MonitoringConfiguration {
/**
* <p>The entity that controls configuration for managed logs.</p>
* @public
*/
managedLogs?: ManagedLogs | undefined;

/**
* <p>Monitoring configurations for the persistent application UI. </p>
* @public
Expand Down
5 changes: 5 additions & 0 deletions clients/client-emr-containers/src/protocols/Aws_restJson1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ import {
JobTemplate,
JobTemplateData,
LakeFormationConfiguration,
ManagedLogs,
MonitoringConfiguration,
ParametricCloudWatchMonitoringConfiguration,
ParametricConfigurationOverrides,
Expand Down Expand Up @@ -1320,6 +1321,8 @@ const se_JobTemplateData = (input: JobTemplateData, context: __SerdeContext): an

// se_LakeFormationConfiguration omitted.

// se_ManagedLogs omitted.

// se_MonitoringConfiguration omitted.

// se_ParametricCloudWatchMonitoringConfiguration omitted.
Expand Down Expand Up @@ -1540,6 +1543,8 @@ const de_JobTemplates = (output: any, context: __SerdeContext): JobTemplate[] =>

// de_LakeFormationConfiguration omitted.

// de_ManagedLogs omitted.

// de_MonitoringConfiguration omitted.

// de_ParametricCloudWatchMonitoringConfiguration omitted.
Expand Down
Loading

0 comments on commit bfd1030

Please sign in to comment.