Skip to content

Commit

Permalink
added doc strings and rename argument
Browse files Browse the repository at this point in the history
  • Loading branch information
iliapolo committed Feb 29, 2020
1 parent 6ec4d50 commit 29f25e6
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,15 @@ export class PhysicalResourceId {
/**
* Construct a resource id from an explicit id.
*/
public static fromId(id: string): PhysicalResourceId {
return new PhysicalResourceId(undefined, id);
public static fromLiteralString(literalId: string): PhysicalResourceId {
return new PhysicalResourceId(undefined, literalId);
}

private constructor(public readonly responsePath?: string, public readonly id?: string) { }
/**
* @param responsePath Path to a response data element to be used as the physical id.
* @param literalId Literal string to be used as the physical id.
*/
private constructor(public readonly responsePath?: string, public readonly literalId?: string) { }
}

/**
Expand Down

0 comments on commit 29f25e6

Please sign in to comment.