Skip to content

Commit

Permalink
docs(aws-ecs): update documentation links (#3255)
Browse files Browse the repository at this point in the history
  • Loading branch information
piradeepk authored and rix0rrr committed Jul 10, 2019
1 parent 8541892 commit 032e170
Show file tree
Hide file tree
Showing 9 changed files with 35 additions and 35 deletions.
11 changes: 5 additions & 6 deletions packages/@aws-cdk/aws-ecs/lib/base/task-definition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ export interface ITaskDefinition extends IResource {
}

/**
* The common properties for all task definitions. For more information, see Task Definition Parameters:
* [https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definition_parameters.html]
* The common properties for all task definitions. For more information, see
* [Task Definition Parameters](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definition_parameters.html).
*/
export interface CommonTaskDefinitionProps {
/**
Expand All @@ -64,8 +64,8 @@ export interface CommonTaskDefinitionProps {
readonly taskRole?: iam.IRole;

/**
* The list of volume definitions for the task. For more information, see Task Definition Parameter Volumes:
* [https://docs.aws.amazon.com/AmazonECS/latest/developerguide//task_definition_parameters.html#volumes]
* The list of volume definitions for the task. For more information, see
* [Task Definition Parameter Volumes](https://docs.aws.amazon.com/AmazonECS/latest/developerguide//task_definition_parameters.html#volumes).
*
* @default - No volumes are passed to the Docker daemon on a container instance.
*/
Expand Down Expand Up @@ -418,8 +418,7 @@ export enum NetworkMode {
* For tasks that use a Docker volume, specify a DockerVolumeConfiguration.
* For tasks that use a bind mount host volume, specify a host and optional sourcePath.
*
* For more information, see Using Data Volumes in Tasks:
* [https://docs.aws.amazon.com/AmazonECS/latest/developerguide/using_data_volumes.html]
* For more information, see [Using Data Volumes in Tasks](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/using_data_volumes.html).
*/
export interface Volume {
/**
Expand Down
8 changes: 4 additions & 4 deletions packages/@aws-cdk/aws-ecs/lib/cluster.ts
Original file line number Diff line number Diff line change
Expand Up @@ -471,8 +471,8 @@ export interface AddCapacityOptions extends AddAutoScalingGroupCapacityOptions,
readonly instanceType: ec2.InstanceType;

/**
* The ECS-optimized AMI variant to use. For more information, see Amazon ECS-optimized AMIs:
* [https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html]
* The ECS-optimized AMI variant to use. For more information, see
* [Amazon ECS-optimized AMIs](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html).
*
* @default - Amazon Linux 2
*/
Expand Down Expand Up @@ -504,8 +504,8 @@ export interface CloudMapNamespaceOptions {
}

/**
* The ECS-optimized AMI variant to use. For more information, see Amazon ECS-optimized AMIs:
* [https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html].
* The ECS-optimized AMI variant to use. For more information, see
* [Amazon ECS-optimized AMIs](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html).
*/
export enum AmiHardwareType {

Expand Down
5 changes: 2 additions & 3 deletions packages/@aws-cdk/aws-ecs/lib/container-definition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ export interface ContainerDefinitionOptions {

/**
* Linux-specific modifications that are applied to the container, such as Linux kernel capabilities.
* For more information see KernelCapabilities. [https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_KernelCapabilities.html]
* For more information see [KernelCapabilities](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_KernelCapabilities.html).
*
* @default - No Linux paramters.
*/
Expand Down Expand Up @@ -546,8 +546,7 @@ export interface Ulimit {
/**
* The type of the ulimit.
*
* For more information, see UlimitName:
* [https://docs.aws.amazon.com/cdk/api/latest/typescript/api/aws-ecs/ulimitname.html#aws_ecs_UlimitName]
* For more information, see [UlimitName](https://docs.aws.amazon.com/cdk/api/latest/typescript/api/aws-ecs/ulimitname.html#aws_ecs_UlimitName).
*/
readonly name: UlimitName,

Expand Down
16 changes: 8 additions & 8 deletions packages/@aws-cdk/aws-ecs/lib/ec2/ec2-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,16 +46,16 @@ export interface Ec2ServiceProps extends BaseServiceOptions {
readonly securityGroup?: ec2.ISecurityGroup;

/**
* The placement constraints to use for tasks in the service. For more information, see Amazon ECS Task Placement Constraints:
* [https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-placement-constraints.html]
* The placement constraints to use for tasks in the service. For more information, see
* [Amazon ECS Task Placement Constraints](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-placement-constraints.html).
*
* @default - No constraints.
*/
readonly placementConstraints?: PlacementConstraint[];

/**
* The placement strategies to use for tasks in the service. For more information, see Amazon ECS Task Placement Constraints:
* [https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-placement-constraints.html]
* The placement strategies to use for tasks in the service. For more information, see
* [Amazon ECS Task Placement Strategies](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-placement-strategies.html).
*
* @default - No strategies.
*/
Expand Down Expand Up @@ -157,8 +157,8 @@ export class Ec2Service extends BaseService implements IEc2Service, elb.ILoadBal
}

/**
* Adds one or more placement strategies to use for tasks in the service. For more information, see Amazon ECS Task Placement Strategies:
* [https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-placement-strategies.html]
* Adds one or more placement strategies to use for tasks in the service. For more information, see
* [Amazon ECS Task Placement Strategies](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-placement-strategies.html).
*/
public addPlacementStrategies(...strategies: PlacementStrategy[]) {
if (strategies.length > 0 && this.daemon) {
Expand All @@ -171,8 +171,8 @@ export class Ec2Service extends BaseService implements IEc2Service, elb.ILoadBal
}

/**
* Adds one or more placement strategies to use for tasks in the service. For more information, see Amazon ECS Task Placement Constraints:
* [https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-placement-constraints.html]
* Adds one or more placement strategies to use for tasks in the service. For more information, see
* [Amazon ECS Task Placement Constraints](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-placement-constraints.html).
*/
public addPlacementConstraints(...constraints: PlacementConstraint[]) {
for (const constraint of constraints) {
Expand Down
5 changes: 3 additions & 2 deletions packages/@aws-cdk/aws-ecs/lib/fargate/fargate-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,9 @@ export interface FargateServiceProps extends BaseServiceOptions {
/**
* The platform version on which to run your service.
*
* If one is not specified, the LATEST platform version is used by default. For more information, see AWS Fargate Platform Versions:
* [https://docs.aws.amazon.com/AmazonECS/latest/developerguide/platform_versions.html] in the Amazon Elastic Container Service Developer Guide.
* If one is not specified, the LATEST platform version is used by default. For more information, see
* [AWS Fargate Platform Versions](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/platform_versions.html)
* in the Amazon Elastic Container Service Developer Guide.
*
* @default Latest
*/
Expand Down
4 changes: 2 additions & 2 deletions packages/@aws-cdk/aws-ecs/lib/images/repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ export interface RepositoryImageProps {
}

/**
* An image hosted in a public or private repository. For images hosted in Amazon ECR, see EcrImage:
* [https://docs.aws.amazon.com/AmazonECR/latest/userguide/images.html]
* An image hosted in a public or private repository. For images hosted in Amazon ECR, see
* [EcrImage](https://docs.aws.amazon.com/AmazonECR/latest/userguide/images.html).
*/
export class RepositoryImage extends ContainerImage {

Expand Down
4 changes: 2 additions & 2 deletions packages/@aws-cdk/aws-ecs/lib/linux-parameters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,8 @@ export interface Tmpfs {
readonly size: number,

/**
* The list of tmpfs volume mount options. For more information, see TmpfsMountOptions:
* [https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_Tmpfs.html]
* The list of tmpfs volume mount options. For more information, see
* [TmpfsMountOptions](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_Tmpfs.html).
*/
readonly mountOptions?: TmpfsMountOption[],
}
Expand Down
5 changes: 3 additions & 2 deletions packages/@aws-cdk/aws-ecs/lib/log-drivers/log-driver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,9 @@ export interface LogDriverConfig {
* For tasks using the Fargate launch type, the supported log drivers are awslogs and splunk.
* For tasks using the EC2 launch type, the supported log drivers are awslogs, syslog, gelf, fluentd, splunk, journald, and json-file.
*
* For more information about using the awslogs log driver, see Using the awslogs Log Driver:
* [https://docs.aws.amazon.com/AmazonECS/latest/developerguide/using_awslogs.html] in the Amazon Elastic Container Service Developer Guide.
* For more information about using the awslogs log driver, see
* [Using the awslogs Log Driver](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/using_awslogs.html)
* in the Amazon Elastic Container Service Developer Guide.
*/
readonly logDriver: string;

Expand Down
12 changes: 6 additions & 6 deletions packages/@aws-cdk/aws-ecs/lib/placement.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ export enum BinPackResource {
}

/**
* The placement strategies to use for tasks in the service. For more information, see Amazon ECS Task Placement Strategies:
* [https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-placement-strategies.html]
* The placement strategies to use for tasks in the service. For more information, see
* [Amazon ECS Task Placement Strategies](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-placement-strategies.html).
*
* Tasks will preferentially be placed on instances that match these rules.
*/
Expand Down Expand Up @@ -93,8 +93,8 @@ export class PlacementStrategy {
}

/**
* The placement constraints to use for tasks in the service. For more information, see Amazon ECS Task Placement Constraints.
* [https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-placement-constraints.html]
* The placement constraints to use for tasks in the service. For more information, see
* [Amazon ECS Task Placement Constraints](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-placement-constraints.html).
*
* Tasks will only be placed on instances that match these rules.
*/
Expand All @@ -109,8 +109,8 @@ export class PlacementConstraint {
/**
* Use memberOf to restrict the selection to a group of valid candidates specified by a query expression.
*
* Multiple expressions can be specified. For more information, see Cluster Query Language:
* [https://docs.aws.amazon.com/AmazonECS/latest/developerguide/cluster-query-language.html]
* Multiple expressions can be specified. For more information, see
* [Cluster Query Language](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/cluster-query-language.html).
*
* You can specify multiple expressions in one call. The tasks will only be placed on instances matching all expressions.
*
Expand Down

0 comments on commit 032e170

Please sign in to comment.