This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function main() { | |
const arnProp = new PropBuilder() | |
.setName("ARN") | |
.setKind("string") | |
.setWidget(new PropWidgetDefinitionBuilder().setKind("text") | |
.build()) | |
.build(); | |
const regionProp = new PropBuilder() | |
.setName("Region") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function main() { | |
const arnProp = new PropBuilder() | |
.setName("ARN") | |
.setKind("string") | |
.setWidget(new PropWidgetDefinitionBuilder().setKind("text") | |
.build()) | |
.build(); | |
const arnOutputSocket = new SocketDefinitionBuilder() | |
.setName("ARN") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#[async_trait] | |
impl ContainerEngine for PodmanEngine { | |
async fn ping(&self) -> CliResult<()> { | |
let ping_info = self.podman.ping().await?; | |
dbg!(&ping_info); | |
Ok(()) | |
} | |
async fn missing_containers(&self) -> Result<Vec<String>, SiCliError> { | |
todo!() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": 3, | |
"deployment": { | |
"manifest": { | |
"time": "2022-06-06T12:33:12.829159+03:00", | |
"magic": "e76047f7ace705d6449c16216c797ffbac14cdae65c525ae42f2fa11a1212b0e", | |
"version": "v3.33.1" | |
}, | |
"secrets_providers": { | |
"type": "service", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copyright 2016-2021, Pulumi Corporation. All rights reserved. | |
import * as docker from "@pulumi/docker"; | |
import * as pulumi from "@pulumi/pulumi"; | |
import * as containerregistry from "@pulumi/azure-native/containerregistry"; | |
import * as operationalinsights from "@pulumi/azure-native/operationalinsights"; | |
import * as resources from "@pulumi/azure-native/resources"; | |
import * as app from "@pulumi/azure-native/app"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as pulumi from "@pulumi/pulumi"; | |
import * as aws from "@pulumi/aws"; | |
const bucket = new aws.s3.Bucket("my-bucket"); | |
export const bucketArn = bucket.arn; | |
// Here it is important to point out that we autoname!! | |
// We can override that using the `bucket` property |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as pulumi from "@pulumi/pulumi"; | |
import * as random from "@pulumi/random"; | |
const username = new random.RandomString("my-string", { | |
length: 16, | |
special: true, | |
}, { | |
// RandomString has an output of 'result' where the string actually is stored | |
additionalSecretOutputs: ["result"] | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
siteBucket, err := s3.NewBucket(ctx, "s3-website-bucket", &s3.BucketArgs{ | |
Website: s3.BucketWebsiteArgs{ | |
IndexDocument: pulumi.String("index.html"), | |
}, | |
}) | |
if err != nil { | |
return err | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
object Project : Project({ | |
id("PlatformApps_SJC1_DC1") | |
name = "Region: SJC1 DC1" | |
description = "SJC1 DC1" | |
val vmCanary = Canary( | |
PlatformAppParams( | |
id = "PlatformApps_SJC1_DC1_Canary_VM_Deploy", | |
name = "Deploy Canary VM", | |
templateName = "plat-canary-vm", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func (f *Future) WaitForCompletionRef(ctx context.Context, client autorest.Client) error { | |
ctx, cancel := context.WithTimeout(ctx, client.PollingDuration) | |
defer cancel() | |
done, err := f.Done(client) | |
for attempts := 0; !done; done, err = f.Done(client) { | |
if attempts >= client.RetryAttempts { | |
return autorest.NewErrorWithError(err, "Future", "WaitForCompletion", f.pt.latestResponse(), "the number of retries has been exceeded") | |
} | |
// we want delayAttempt to be zero in the non-error case so | |
// that DelayForBackoff doesn't perform exponential back-off |
NewerOlder