@@ -8,7 +8,7 @@ module AWS {
8
8
/**
9
9
* Gets the name of a supported AWS service.
10
10
*/
11
- private string getAWSServiceName ( ) {
11
+ private string getAwsServiceName ( ) {
12
12
result =
13
13
[
14
14
"EC2" , "Lambda" , "ECS" , "EKS" , "Batch" , "ElasticBeanstalk" , "Lightsail" , "AppRunner" , "S3" ,
@@ -31,41 +31,41 @@ module AWS {
31
31
/**
32
32
* Gets a node representing an import of the AWS SDK.
33
33
*/
34
- private API:: Node getAWSImport ( ) { result = API:: moduleImport ( "aws-sdk" ) }
34
+ private API:: Node getAwsImport ( ) { result = API:: moduleImport ( "aws-sdk" ) }
35
35
36
36
/**
37
37
* Gets a data flow node representing an instantiation of an AWS service.
38
38
*/
39
39
private DataFlow:: Node getServiceInstantation ( ) {
40
40
result =
41
- getAWSImport ( ) .getMember ( getAWSServiceName ( ) ) .getAnInstantiation ( ) .getReturn ( ) .asSource ( )
41
+ getAwsImport ( ) .getMember ( getAwsServiceName ( ) ) .getAnInstantiation ( ) .getReturn ( ) .asSource ( )
42
42
}
43
43
44
44
/**
45
45
* Gets a node representing the AWS global config object.
46
46
*/
47
- private API:: Node getAWSConfig ( ) { result = getAWSImport ( ) .getMember ( "config" ) }
47
+ private API:: Node getAwsConfig ( ) { result = getAwsImport ( ) .getMember ( "config" ) }
48
48
49
49
/**
50
50
* Gets a property write to the AWS config object.
51
51
* This captures assignments to AWS.config properties.
52
52
*/
53
53
private DataFlow:: PropWrite configAssigment ( ) {
54
- result = getAWSConfig ( ) .asSource ( ) .getAPropertyWrite ( )
54
+ result = getAwsConfig ( ) .asSource ( ) .getAPropertyWrite ( )
55
55
}
56
56
57
57
/**
58
58
* Gets a data flow node representing an instance of `new AWS.Credentials(accessKeyId, secretAccessKey)`.
59
59
*/
60
60
private DataFlow:: Node getCredentialsCreationNode ( ) {
61
- result = getAWSImport ( ) .getMember ( "Credentials" ) .getAnInstantiation ( ) .getReturn ( ) .asSource ( )
61
+ result = getAwsImport ( ) .getMember ( "Credentials" ) .getAnInstantiation ( ) .getReturn ( ) .asSource ( )
62
62
}
63
63
64
64
/**
65
65
* Holds if the `i`th argument of `invk` is an object hash for `AWS.Config`.
66
66
*/
67
67
private predicate takesConfigurationObject ( DataFlow:: InvokeNode invk , int i ) {
68
- exists ( API:: Node mod | mod = getAWSImport ( ) |
68
+ exists ( API:: Node mod | mod = getAwsImport ( ) |
69
69
// `AWS.config.update(nd)`
70
70
invk = mod .getMember ( "config" ) .getMember ( "update" ) .getACall ( ) and
71
71
i = 0
0 commit comments