Skip to content

Commit

Permalink
fix(clients-*): generate sdkId in serviceId and default to use arnNam…
Browse files Browse the repository at this point in the history
…espace as signingName
  • Loading branch information
AllanZhengYP committed Dec 14, 2020
1 parent 0902e26 commit 267d32d
Show file tree
Hide file tree
Showing 495 changed files with 540 additions and 540 deletions.
2 changes: 1 addition & 1 deletion clients/client-accessanalyzer/endpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,5 +77,5 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op
};
}
}
return Promise.resolve(regionInfo);
return Promise.resolve({ signingService: "access-analyzer", ...regionInfo });
};
2 changes: 1 addition & 1 deletion clients/client-accessanalyzer/runtimeConfig.shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ export const ClientSharedValues = {
disableHostPrefix: false,
logger: {} as __Logger,
regionInfoProvider: defaultRegionInfoProvider,
serviceId: "access-analyzer",
serviceId: "AccessAnalyzer",
};
2 changes: 1 addition & 1 deletion clients/client-acm-pca/endpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,5 +197,5 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op
};
}
}
return Promise.resolve(regionInfo);
return Promise.resolve({ signingService: "acm-pca", ...regionInfo });
};
2 changes: 1 addition & 1 deletion clients/client-acm-pca/runtimeConfig.shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ export const ClientSharedValues = {
disableHostPrefix: false,
logger: {} as __Logger,
regionInfoProvider: defaultRegionInfoProvider,
serviceId: "acm-pca",
serviceId: "ACM PCA",
};
2 changes: 1 addition & 1 deletion clients/client-acm/endpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,5 +197,5 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op
};
}
}
return Promise.resolve(regionInfo);
return Promise.resolve({ signingService: "acm", ...regionInfo });
};
2 changes: 1 addition & 1 deletion clients/client-acm/runtimeConfig.shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ export const ClientSharedValues = {
disableHostPrefix: false,
logger: {} as __Logger,
regionInfoProvider: defaultRegionInfoProvider,
serviceId: "acm",
serviceId: "ACM",
};
2 changes: 1 addition & 1 deletion clients/client-alexa-for-business/endpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,5 +83,5 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op
};
}
}
return Promise.resolve(regionInfo);
return Promise.resolve({ signingService: "a4b", ...regionInfo });
};
2 changes: 1 addition & 1 deletion clients/client-alexa-for-business/runtimeConfig.shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ export const ClientSharedValues = {
disableHostPrefix: false,
logger: {} as __Logger,
regionInfoProvider: defaultRegionInfoProvider,
serviceId: "a4b",
serviceId: "Alexa For Business",
};
2 changes: 1 addition & 1 deletion clients/client-amplify/endpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,5 +77,5 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op
};
}
}
return Promise.resolve(regionInfo);
return Promise.resolve({ signingService: "amplify", ...regionInfo });
};
2 changes: 1 addition & 1 deletion clients/client-amplify/runtimeConfig.shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ export const ClientSharedValues = {
disableHostPrefix: false,
logger: {} as __Logger,
regionInfoProvider: defaultRegionInfoProvider,
serviceId: "amplify",
serviceId: "Amplify",
};
2 changes: 1 addition & 1 deletion clients/client-amplifybackend/endpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,5 +77,5 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op
};
}
}
return Promise.resolve(regionInfo);
return Promise.resolve({ signingService: "amplifybackend", ...regionInfo });
};
2 changes: 1 addition & 1 deletion clients/client-amplifybackend/runtimeConfig.shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ export const ClientSharedValues = {
disableHostPrefix: false,
logger: {} as __Logger,
regionInfoProvider: defaultRegionInfoProvider,
serviceId: "amplifybackend",
serviceId: "AmplifyBackend",
};
2 changes: 1 addition & 1 deletion clients/client-api-gateway/endpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,5 +215,5 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op
};
}
}
return Promise.resolve(regionInfo);
return Promise.resolve({ signingService: "apigateway", ...regionInfo });
};
2 changes: 1 addition & 1 deletion clients/client-api-gateway/runtimeConfig.shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ export const ClientSharedValues = {
disableHostPrefix: false,
logger: {} as __Logger,
regionInfoProvider: defaultRegionInfoProvider,
serviceId: "apigateway",
serviceId: "API Gateway",
};
2 changes: 1 addition & 1 deletion clients/client-apigatewaymanagementapi/endpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,5 +77,5 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op
};
}
}
return Promise.resolve(regionInfo);
return Promise.resolve({ signingService: "apigateway", ...regionInfo });
};
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ export const ClientSharedValues = {
disableHostPrefix: false,
logger: {} as __Logger,
regionInfoProvider: defaultRegionInfoProvider,
serviceId: "apigateway",
serviceId: "ApiGatewayManagementApi",
};
2 changes: 1 addition & 1 deletion clients/client-apigatewayv2/endpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,5 +215,5 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op
};
}
}
return Promise.resolve(regionInfo);
return Promise.resolve({ signingService: "apigateway", ...regionInfo });
};
2 changes: 1 addition & 1 deletion clients/client-apigatewayv2/runtimeConfig.shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ export const ClientSharedValues = {
disableHostPrefix: false,
logger: {} as __Logger,
regionInfoProvider: defaultRegionInfoProvider,
serviceId: "apigateway",
serviceId: "ApiGatewayV2",
};
2 changes: 1 addition & 1 deletion clients/client-app-mesh/endpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,5 +161,5 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op
};
}
}
return Promise.resolve(regionInfo);
return Promise.resolve({ signingService: "appmesh", ...regionInfo });
};
2 changes: 1 addition & 1 deletion clients/client-app-mesh/runtimeConfig.shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ export const ClientSharedValues = {
disableHostPrefix: false,
logger: {} as __Logger,
regionInfoProvider: defaultRegionInfoProvider,
serviceId: "appmesh",
serviceId: "App Mesh",
};
2 changes: 1 addition & 1 deletion clients/client-appconfig/endpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,5 +77,5 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op
};
}
}
return Promise.resolve(regionInfo);
return Promise.resolve({ signingService: "appconfig", ...regionInfo });
};
2 changes: 1 addition & 1 deletion clients/client-appconfig/runtimeConfig.shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ export const ClientSharedValues = {
disableHostPrefix: false,
logger: {} as __Logger,
regionInfoProvider: defaultRegionInfoProvider,
serviceId: "appconfig",
serviceId: "AppConfig",
};
2 changes: 1 addition & 1 deletion clients/client-appflow/endpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,5 +77,5 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op
};
}
}
return Promise.resolve(regionInfo);
return Promise.resolve({ signingService: "appflow", ...regionInfo });
};
2 changes: 1 addition & 1 deletion clients/client-appflow/runtimeConfig.shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ export const ClientSharedValues = {
disableHostPrefix: false,
logger: {} as __Logger,
regionInfoProvider: defaultRegionInfoProvider,
serviceId: "appflow",
serviceId: "Appflow",
};
2 changes: 1 addition & 1 deletion clients/client-appintegrations/endpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,5 +77,5 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op
};
}
}
return Promise.resolve(regionInfo);
return Promise.resolve({ signingService: "app-integrations", ...regionInfo });
};
2 changes: 1 addition & 1 deletion clients/client-appintegrations/runtimeConfig.shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ export const ClientSharedValues = {
disableHostPrefix: false,
logger: {} as __Logger,
regionInfoProvider: defaultRegionInfoProvider,
serviceId: "app-integrations",
serviceId: "AppIntegrations",
};
2 changes: 1 addition & 1 deletion clients/client-application-auto-scaling/endpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -221,5 +221,5 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op
};
}
}
return Promise.resolve(regionInfo);
return Promise.resolve({ signingService: "application-autoscaling", ...regionInfo });
};
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ export const ClientSharedValues = {
disableHostPrefix: false,
logger: {} as __Logger,
regionInfoProvider: defaultRegionInfoProvider,
serviceId: "application-autoscaling",
serviceId: "Application Auto Scaling",
};
2 changes: 1 addition & 1 deletion clients/client-application-discovery-service/endpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,5 +89,5 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op
};
}
}
return Promise.resolve(regionInfo);
return Promise.resolve({ signingService: "discovery", ...regionInfo });
};
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ export const ClientSharedValues = {
disableHostPrefix: false,
logger: {} as __Logger,
regionInfoProvider: defaultRegionInfoProvider,
serviceId: "discovery",
serviceId: "Application Discovery Service",
};
2 changes: 1 addition & 1 deletion clients/client-application-insights/endpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,5 +77,5 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op
};
}
}
return Promise.resolve(regionInfo);
return Promise.resolve({ signingService: "applicationinsights", ...regionInfo });
};
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ export const ClientSharedValues = {
disableHostPrefix: false,
logger: {} as __Logger,
regionInfoProvider: defaultRegionInfoProvider,
serviceId: "applicationinsights",
serviceId: "Application Insights",
};
2 changes: 1 addition & 1 deletion clients/client-appstream/endpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,5 +150,5 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op
};
}
}
return Promise.resolve(regionInfo);
return Promise.resolve({ signingService: "appstream", ...regionInfo });
};
2 changes: 1 addition & 1 deletion clients/client-appstream/runtimeConfig.shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ export const ClientSharedValues = {
disableHostPrefix: false,
logger: {} as __Logger,
regionInfoProvider: defaultRegionInfoProvider,
serviceId: "appstream",
serviceId: "AppStream",
};
2 changes: 1 addition & 1 deletion clients/client-appsync/endpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,5 +143,5 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op
};
}
}
return Promise.resolve(regionInfo);
return Promise.resolve({ signingService: "appsync", ...regionInfo });
};
2 changes: 1 addition & 1 deletion clients/client-appsync/runtimeConfig.shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ export const ClientSharedValues = {
disableHostPrefix: false,
logger: {} as __Logger,
regionInfoProvider: defaultRegionInfoProvider,
serviceId: "appsync",
serviceId: "AppSync",
};
2 changes: 1 addition & 1 deletion clients/client-athena/endpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,5 +191,5 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op
};
}
}
return Promise.resolve(regionInfo);
return Promise.resolve({ signingService: "athena", ...regionInfo });
};
2 changes: 1 addition & 1 deletion clients/client-athena/runtimeConfig.shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ export const ClientSharedValues = {
disableHostPrefix: false,
logger: {} as __Logger,
regionInfoProvider: defaultRegionInfoProvider,
serviceId: "athena",
serviceId: "Athena",
};
2 changes: 1 addition & 1 deletion clients/client-auditmanager/endpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,5 +77,5 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op
};
}
}
return Promise.resolve(regionInfo);
return Promise.resolve({ signingService: "auditmanager", ...regionInfo });
};
2 changes: 1 addition & 1 deletion clients/client-auditmanager/runtimeConfig.shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ export const ClientSharedValues = {
disableHostPrefix: false,
logger: {} as __Logger,
regionInfoProvider: defaultRegionInfoProvider,
serviceId: "auditmanager",
serviceId: "AuditManager",
};
2 changes: 1 addition & 1 deletion clients/client-auto-scaling-plans/endpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,5 +155,5 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op
};
}
}
return Promise.resolve(regionInfo);
return Promise.resolve({ signingService: "autoscaling-plans", ...regionInfo });
};
2 changes: 1 addition & 1 deletion clients/client-auto-scaling-plans/runtimeConfig.shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ export const ClientSharedValues = {
disableHostPrefix: false,
logger: {} as __Logger,
regionInfoProvider: defaultRegionInfoProvider,
serviceId: "autoscaling-plans",
serviceId: "Auto Scaling Plans",
};
2 changes: 1 addition & 1 deletion clients/client-auto-scaling/endpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -221,5 +221,5 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op
};
}
}
return Promise.resolve(regionInfo);
return Promise.resolve({ signingService: "autoscaling", ...regionInfo });
};
2 changes: 1 addition & 1 deletion clients/client-auto-scaling/runtimeConfig.shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ export const ClientSharedValues = {
disableHostPrefix: false,
logger: {} as __Logger,
regionInfoProvider: defaultRegionInfoProvider,
serviceId: "autoscaling",
serviceId: "Auto Scaling",
};
2 changes: 1 addition & 1 deletion clients/client-backup/endpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,5 +185,5 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op
};
}
}
return Promise.resolve(regionInfo);
return Promise.resolve({ signingService: "backup", ...regionInfo });
};
2 changes: 1 addition & 1 deletion clients/client-backup/runtimeConfig.shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ export const ClientSharedValues = {
disableHostPrefix: false,
logger: {} as __Logger,
regionInfoProvider: defaultRegionInfoProvider,
serviceId: "backup",
serviceId: "Backup",
};
2 changes: 1 addition & 1 deletion clients/client-batch/endpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,5 +197,5 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op
};
}
}
return Promise.resolve(regionInfo);
return Promise.resolve({ signingService: "batch", ...regionInfo });
};
2 changes: 1 addition & 1 deletion clients/client-batch/runtimeConfig.shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ export const ClientSharedValues = {
disableHostPrefix: false,
logger: {} as __Logger,
regionInfoProvider: defaultRegionInfoProvider,
serviceId: "batch",
serviceId: "Batch",
};
2 changes: 1 addition & 1 deletion clients/client-braket/endpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,5 +77,5 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op
};
}
}
return Promise.resolve(regionInfo);
return Promise.resolve({ signingService: "braket", ...regionInfo });
};
2 changes: 1 addition & 1 deletion clients/client-braket/runtimeConfig.shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ export const ClientSharedValues = {
disableHostPrefix: false,
logger: {} as __Logger,
regionInfoProvider: defaultRegionInfoProvider,
serviceId: "braket",
serviceId: "Braket",
};
2 changes: 1 addition & 1 deletion clients/client-budgets/endpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,5 +78,5 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op
return defaultRegionInfoProvider("aws-global");
}
}
return Promise.resolve(regionInfo);
return Promise.resolve({ signingService: "budgets", ...regionInfo });
};
2 changes: 1 addition & 1 deletion clients/client-budgets/runtimeConfig.shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ export const ClientSharedValues = {
disableHostPrefix: false,
logger: {} as __Logger,
regionInfoProvider: defaultRegionInfoProvider,
serviceId: "budgets",
serviceId: "Budgets",
};
2 changes: 1 addition & 1 deletion clients/client-chime/endpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,5 +78,5 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op
return defaultRegionInfoProvider("aws-global");
}
}
return Promise.resolve(regionInfo);
return Promise.resolve({ signingService: "chime", ...regionInfo });
};
2 changes: 1 addition & 1 deletion clients/client-chime/runtimeConfig.shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ export const ClientSharedValues = {
disableHostPrefix: false,
logger: {} as __Logger,
regionInfoProvider: defaultRegionInfoProvider,
serviceId: "chime",
serviceId: "Chime",
};
2 changes: 1 addition & 1 deletion clients/client-cloud9/endpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,5 +119,5 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op
};
}
}
return Promise.resolve(regionInfo);
return Promise.resolve({ signingService: "cloud9", ...regionInfo });
};
2 changes: 1 addition & 1 deletion clients/client-cloud9/runtimeConfig.shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ export const ClientSharedValues = {
disableHostPrefix: false,
logger: {} as __Logger,
regionInfoProvider: defaultRegionInfoProvider,
serviceId: "cloud9",
serviceId: "Cloud9",
};
2 changes: 1 addition & 1 deletion clients/client-clouddirectory/endpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,5 +137,5 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op
};
}
}
return Promise.resolve(regionInfo);
return Promise.resolve({ signingService: "clouddirectory", ...regionInfo });
};
Loading

0 comments on commit 267d32d

Please sign in to comment.