id stringlengths 2 7 | text stringlengths 17 51.2k | title stringclasses 1 value |
|---|---|---|
c1400 | *JobExecutionStatusDetails {
s.DetailsMap = v
return s
} | |
c1401 | *JobExecutionsRolloutConfig {
s.ExponentialRate = v
return s
} | |
c1402 | s.NumberOfCanceledThings = &v
return s
} | |
c1403 | s.NumberOfFailedThings = &v
return s
} | |
c1404 | s.NumberOfInProgressThings = &v
return s
} | |
c1405 | s.NumberOfQueuedThings = &v
return s
} | |
c1406 | s.NumberOfRejectedThings = &v
return s
} | |
c1407 | s.NumberOfRemovedThings = &v
return s
} | |
c1408 | s.NumberOfTimedOutThings = &v
return s
} | |
c1409 | s.ProcessingTargets = v
return s
} | |
c1410 | []*ActiveViolation) *ListActiveViolationsOutput {
s.ActiveViolations = v
return s
} | |
c1411 | *ListAuthorizersOutput {
s.Authorizers = v
return s
} | |
c1412 | []*GroupNameAndArn) *ListBillingGroupsOutput {
s.BillingGroups = v
return s
} | |
c1413 | {
s.IndexNames = v
return s
} | |
c1414 | *ListOTAUpdatesOutput {
s.OtaUpdates = v
return s
} | |
c1415 | []*OutgoingCertificate) *ListOutgoingCertificatesOutput {
s.OutgoingCertificates = v
return s
} | |
c1416 | []*PolicyVersion) *ListPolicyVersionsOutput {
s.PolicyVersions = v
return s
} | |
c1417 | []*string) *ListRoleAliasesOutput {
s.RoleAliases = v
return s
} | |
c1418 | *ListScheduledAuditsOutput {
s.ScheduledAudits = v
return s
} | |
c1419 | []*SecurityProfileTargetMapping) *ListSecurityProfilesForTargetOutput {
s.SecurityProfileTargetMappings = v
return s
} | |
c1420 | *ListSecurityProfilesOutput {
s.SecurityProfileIdentifiers = v
return s
} | |
c1421 | []*SecurityProfileTarget) *ListTargetsForSecurityProfileOutput {
s.SecurityProfileTargets = v
return s
} | |
c1422 | {
s.ParentGroup = &v
return s
} | |
c1423 | []*string) *ListThingRegistrationTaskReportsOutput {
s.ResourceLinks = v
return s
} | |
c1424 | *ListThingTypesOutput {
s.ThingTypes = v
return s
} | |
c1425 | *ListV2LoggingLevelsOutput {
s.LogTargetConfigurations = v
return s
} | |
c1426 | []*ViolationEvent) *ListViolationEventsOutput {
s.ViolationEvents = v
return s
} | |
c1427 |
s.Cidrs = v
return s
} | |
c1428 | *CodeSigning) *OTAUpdateFile {
s.CodeSigning = v
return s
} | |
c1429 |
s.FileLocation = v
return s
} | |
c1430 | s.FileVersion = &v
return s
} | |
c1431 | *ErrorInfo) *OTAUpdateInfo {
s.ErrorInfo = v
return s
} | |
c1432 |
s.OtaUpdateFiles = v
return s
} | |
c1433 | string) *OutgoingCertificate {
s.TransferredTo = &v
return s
} | |
c1434 | int64) *PresignedUrlConfig {
s.ExpiresInSec = &v
return s
} | |
c1435 | s.NumberOfNotifiedThings = &v
return s
} | |
c1436 | {
s.AllowAutoRegistration = &v
return s
} | |
c1437 | string) *RegisterCACertificateInput {
s.CaCertificate = &v
return s
} | |
c1438 | {
s.VerificationCertificate = &v
return s
} | |
c1439 | {
s.CaCertificatePem = &v
return s
} | |
c1440 | s.DeviceCertificateId = &v
return s
} | |
c1441 | *ResourceIdentifier {
s.PolicyVersionIdentifier = v
return s
} | |
c1442 | s.CannedAcl = &v
return s
} | |
c1443 | *SecurityProfileIdentifier) *SecurityProfileTargetMapping {
s.SecurityProfileIdentifier = v
return s
} | |
c1444 | *SetLoggingOptionsInput {
s.LoggingOptionsPayload = v
return s
} | |
c1445 | s.CertificatePathOnDevice = &v
return s
} | |
c1446 | s.UseBase64 = &v
return s
} | |
c1447 | {
s.SigningProfileName = &v
return s
} | |
c1448 | *StartSigningJobParameter {
s.SigningProfileParameter = v
return s
} | |
c1449 | s.ExecutionNamePrefix = &v
return s
} | |
c1450 | s.StateMachineName = &v
return s
} | |
c1451 | s.CanceledChecks = &v
return s
} | |
c1452 | s.CompliantChecks = &v
return s
} | |
c1453 | s.FailedChecks = &v
return s
} | |
c1454 | s.InProgressChecks = &v
return s
} | |
c1455 | s.NonCompliantChecks = &v
return s
} | |
c1456 | s.TotalChecks = &v
return s
} | |
c1457 | s.WaitingForDataCollectionChecks = &v
return s
} | |
c1458 | []*AuthInfo) *TestAuthorizationInput {
s.AuthInfos = v
return s
} | |
c1459 | []*string) *TestAuthorizationInput {
s.PolicyNamesToAdd = v
return s
} | |
c1460 | {
s.PolicyNamesToSkip = v
return s
} | |
c1461 | []*AuthResult) *TestAuthorizationOutput {
s.AuthResults = v
return s
} | |
c1462 | string) *TestInvokeAuthorizerInput {
s.TokenSignature = &v
return s
} | |
c1463 | int64) *TestInvokeAuthorizerOutput {
s.DisconnectAfterInSeconds = &v
return s
} | |
c1464 | bool) *TestInvokeAuthorizerOutput {
s.IsAuthenticated = &v
return s
} | |
c1465 | []*string) *TestInvokeAuthorizerOutput {
s.PolicyDocuments = v
return s
} | |
c1466 | {
s.RefreshAfterInSeconds = &v
return s
} | |
c1467 | bool) *ThingConnectivity {
s.Connected = &v
return s
} | |
c1468 | string) *ThingDocument {
s.Shadow = &v
return s
} | |
c1469 | s.ThingGroupNames = v
return s
} | |
c1470 | []*string) *ThingGroupDocument {
s.ParentGroupNames = v
return s
} | |
c1471 | string) *ThingGroupIndexingConfiguration {
s.ThingGroupIndexingMode = &v
return s
} | |
c1472 | []*GroupNameAndArn) *ThingGroupMetadata {
s.RootToParentThingGroups = v
return s
} | |
c1473 | s.ThingConnectivityIndexingMode = &v
return s
} | |
c1474 | string) *ThingIndexingConfiguration {
s.ThingIndexingMode = &v
return s
} | |
c1475 | bool) *ThingTypeMetadata {
s.Deprecated = &v
return s
} | |
c1476 | s.SearchableAttributes = v
return s
} | |
c1477 | s.ThingTypeDescription = &v
return s
} | |
c1478 | s.InProgressTimeoutInMinutes = &v
return s
} | |
c1479 | string) *TopicRuleListItem {
s.TopicPattern = &v
return s
} | |
c1480 | {
s.TargetAwsAccount = &v
return s
} | |
c1481 | s.TransferredCertificateArn = &v
return s
} | |
c1482 | s.AcceptDate = &v
return s
} | |
c1483 | s.RejectDate = &v
return s
} | |
c1484 | s.NewAutoRegistrationStatus = &v
return s
} | |
c1485 | s.RemoveAutoRegistration = &v
return s
} | |
c1486 | s.DeleteAdditionalMetricsToRetain = &v
return s
} | |
c1487 | {
s.DeleteAlertTargets = &v
return s
} | |
c1488 | bool) *UpdateSecurityProfileInput {
s.DeleteBehaviors = &v
return s
} | |
c1489 | []*string) *UpdateThingGroupsForThingInput {
s.ThingGroupsToAdd = v
return s
} | |
c1490 | []*string) *UpdateThingGroupsForThingInput {
s.ThingGroupsToRemove = v
return s
} | |
c1491 | s.RemoveThingType = &v
return s
} | |
c1492 | s.ViolationEventTime = &v
return s
} | |
c1493 | s.ViolationEventType = &v
return s
} | |
c1494 | request presigned S3 operation from.")
flag.StringVar(&filename, "f", "", "The `filename` of the file to upload and get from S3.")
flag.Parse()
var errs Errors
if len(serverURL) == 0 {
errs = append(errs, fmt.Errorf("server URL required"))
}
if !((len(getKey) != 0) != (len(putKey) != 0)) {
errs = append(errs, fmt.Errorf("either `get` or `put` can be provided, and one of the two is required."))
}
if len(getKey) > 0 {
method = GetMethod
key = getKey
} else {
method = PutMethod
key = putKey
}
if len(errs) > 0 {
fmt.Fprintf(os.Stderr, "Failed to load configuration:%v\n", errs)
flag.PrintDefaults()
os.Exit(1)
}
return method, filename, key, serverURL
} | |
c1495 |
resp, err := http.DefaultClient.Do(req)
if err != nil {
return fmt.Errorf("failed to do GET request, %v", err)
}
defer resp.Body.Close()
if resp.StatusCode != http.StatusOK {
return fmt.Errorf("failed to get S3 object, %d:%s",
resp.StatusCode, resp.Status)
}
if _, err = io.Copy(w, resp.Body); err != nil {
return fmt.Errorf("failed to write S3 object, %v", err)
}
return nil
} | |
c1496 | = int64(buf.Len())
r = ioutil.NopCloser(buf)
}
defer r.Close()
// Get the Presigned URL from the remote service. Pass in the file's
// size if it is known so that the presigned URL returned will be required
// to be used with the size of content requested.
req, err := getPresignedRequest(serverURL, "PUT", key, size)
if err != nil {
return fmt.Errorf("failed to get get presigned request, %v", err)
}
req.Body = r
// Upload the file contents to S3.
resp, err := http.DefaultClient.Do(req)
if err != nil {
return fmt.Errorf("failed to do GET request, %v", err)
}
defer resp.Body.Close()
if resp.StatusCode != http.StatusOK {
return fmt.Errorf("failed to put S3 object, %d:%s",
resp.StatusCode, resp.Status)
}
return nil
} | |
c1497 | req.Header.Add(k, v)
}
}
// Need to ensure that the content length member is set of the HTTP Request
// or the request will not be transmitted correctly with a content length
// value across the wire.
if contLen := req.Header.Get("Content-Length"); len(contLen) > 0 {
req.ContentLength, _ = strconv.ParseInt(contLen, 10, 64)
}
return req, nil
} | |
c1498 | c.WaitUntilNodeAssociatedWithContext(aws.BackgroundContext(), input)
} | |
c1499 | s.ConnectionRefusedCount = &v
return s
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.