id: 1 unit: func CreateDeviceFleetPolicy() file: aws/iam.go start line: 184 end line: 284 size: 92 LOC McCabe index: 5 number of parameters: 2 id: 2 unit: func main() file: main.go start line: 22 end line: 112 size: 73 LOC McCabe index: 3 number of parameters: 0 id: 3 unit: func ParseArgs() file: cli/cli_args.go start line: 71 end line: 161 size: 72 LOC McCabe index: 15 number of parameters: 1 id: 4 unit: func untar() file: common/utils.go start line: 153 end line: 215 size: 49 LOC McCabe index: 13 number of parameters: 2 id: 5 unit: func CreateDeviceFleetBucketPolicy() file: aws/iam.go start line: 131 end line: 182 size: 45 LOC McCabe index: 4 number of parameters: 2 id: 6 unit: func GetAgentRelease() file: common/utils.go start line: 31 end line: 71 size: 38 LOC McCabe index: 12 number of parameters: 3 id: 7 unit: func unzip() file: common/utils.go start line: 101 end line: 151 size: 35 LOC McCabe index: 9 number of parameters: 2 id: 8 unit: func RegisterDevice() file: aws/sagemaker.go start line: 77 end line: 114 size: 34 LOC McCabe index: 3 number of parameters: 5 id: 9 unit: func CreateDeviceFleetRole() file: aws/iam.go start line: 25 end line: 52 size: 25 LOC McCabe index: 2 number of parameters: 3 id: 10 unit: func CheckIfPolicyIsAlreadyAttachedToTheRole() file: aws/iam.go start line: 71 end line: 100 size: 25 LOC McCabe index: 6 number of parameters: 3 id: 11 unit: func CreateAndAttachRoleAliasPolicy() file: aws/iot.go start line: 189 end line: 216 size: 25 LOC McCabe index: 3 number of parameters: 4 id: 12 unit: func CreateIotThing() file: aws/iot.go start line: 101 end line: 127 size: 22 LOC McCabe index: 3 number of parameters: 3 id: 13 unit: func DownloadAgent() file: common/utils.go start line: 73 end line: 99 size: 22 LOC McCabe index: 10 number of parameters: 2 id: 14 unit: func CreateIotThingType() file: aws/iot.go start line: 49 end line: 74 size: 21 LOC McCabe index: 3 number of parameters: 2 id: 15 unit: func CreateS3Bucket() file: aws/s3.go start line: 23 end line: 45 size: 20 LOC McCabe index: 5 number of parameters: 3 id: 16 unit: func CreateDeviceFleet() file: aws/sagemaker.go start line: 39 end line: 62 size: 20 LOC McCabe index: 4 number of parameters: 4 id: 17 unit: func() file: common/agent_config.go start line: 31 end line: 49 size: 19 LOC McCabe index: 1 number of parameters: 1 id: 18 unit: func CreateDeviceFleetRoleIfNotExists() file: aws/iam.go start line: 286 end line: 305 size: 17 LOC McCabe index: 4 number of parameters: 5 id: 19 unit: func DownloadFileFromS3ToPath() file: aws/s3.go start line: 47 end line: 63 size: 16 LOC McCabe index: 3 number of parameters: 4 id: 20 unit: func() file: cli/cli_args.go start line: 27 end line: 42 size: 15 LOC McCabe index: 15 number of parameters: 1 id: 21 unit: func GetDeviceFleetRole() file: aws/iam.go start line: 54 end line: 69 size: 14 LOC McCabe index: 3 number of parameters: 3 id: 22 unit: func GetIotThing() file: aws/iot.go start line: 76 end line: 92 size: 14 LOC McCabe index: 3 number of parameters: 2 id: 23 unit: func DownloadFile() file: common/utils.go start line: 225 end line: 244 size: 14 LOC McCabe index: 3 number of parameters: 2 id: 24 unit: func GetIotThingType() file: aws/iot.go start line: 27 end line: 41 size: 13 LOC McCabe index: 3 number of parameters: 2 id: 25 unit: func() file: cli/cli_args.go start line: 58 end line: 69 size: 12 LOC McCabe index: 1 number of parameters: 1 id: 26 unit: func ListBucket() file: aws/s3.go start line: 74 end line: 85 size: 11 LOC McCabe index: 2 number of parameters: 3 id: 27 unit: func GetIotCredentialProviderEndpoint() file: aws/iot.go start line: 164 end line: 176 size: 11 LOC McCabe index: 2 number of parameters: 2 id: 28 unit: func GetDevice() file: aws/sagemaker.go start line: 64 end line: 75 size: 10 LOC McCabe index: 2 number of parameters: 3 id: 29 unit: func GetDeviceFleet() file: aws/sagemaker.go start line: 25 end line: 37 size: 9 LOC McCabe index: 2 number of parameters: 2 id: 30 unit: func GetRoleAliasArn() file: aws/sagemaker.go start line: 116 end line: 126 size: 9 LOC McCabe index: 2 number of parameters: 2 id: 31 unit: func AttachAmazonSageMakerEdgeDeviceFleetPolicy() file: aws/iam.go start line: 102 end line: 111 size: 9 LOC McCabe index: 2 number of parameters: 3 id: 32 unit: func CreateIOTCertificates() file: aws/iot.go start line: 129 end line: 138 size: 9 LOC McCabe index: 2 number of parameters: 1 id: 33 unit: func WriteCertificatesToFile() file: aws/iot.go start line: 153 end line: 162 size: 9 LOC McCabe index: 1 number of parameters: 4 id: 34 unit: func AttachThingToCertificate() file: aws/iot.go start line: 178 end line: 187 size: 9 LOC McCabe index: 2 number of parameters: 3 id: 35 unit: func DownloadFileFromS3() file: aws/s3.go start line: 65 end line: 72 size: 8 LOC McCabe index: 2 number of parameters: 3 id: 36 unit: func writeStringToFile() file: aws/iot.go start line: 140 end line: 151 size: 8 LOC McCabe index: 2 number of parameters: 2 id: 37 unit: func DownloadSigningRootCert() file: common/utils.go start line: 217 end line: 223 size: 7 LOC McCabe index: 1 number of parameters: 2 id: 38 unit: func() file: cli/cli_args.go start line: 20 end line: 25 size: 6 LOC McCabe index: 1 number of parameters: 1 id: 39 unit: func() file: common/agent_config.go start line: 51 end line: 55 size: 5 LOC McCabe index: 1 number of parameters: 1