change indentation
MODIFY
aws-cs-assume-role/assume-role/AssumeRoleStack.cs
aws-cs-assume-role/assume-role/AssumeRoleStack.cs
@@ -12,7 +12,8 @@ class AssumeRoleStack : Stack
var awsConfig = new Pulumi.Config("aws");
var config = new Pulumi.Config();
var roleToAssumeARN = config.Require("roleToAssumeARN");
- var provider = new Aws.Provider("privileged", new Aws.ProviderArgs {
+ var provider = new Aws.Provider("privileged", new Aws.ProviderArgs
+ {
AssumeRole = new Aws.Inputs.ProviderAssumeRoleArgs
{
RoleArn = roleToAssumeARN,

ADD
aws-cs-assume-role/assume-role/assume-role.sln
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio 15
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "assume-role", "assume-role.csproj", "{A33F8284-FA5E-45B4-94F0-8F47CA263750}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {A33F8284-FA5E-45B4-94F0-8F47CA263750}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {A33F8284-FA5E-45B4-94F0-8F47CA263750}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {A33F8284-FA5E-45B4-94F0-8F47CA263750}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {A33F8284-FA5E-45B4-94F0-8F47CA263750}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+EndGlobal

MODIFY
aws-cs-assume-role/create-role/CreateRoleStack.cs
aws-cs-assume-role/create-role/CreateRoleStack.cs
@@ -25,7 +25,8 @@ class CreateRoleStack : Stack
// https://www.pulumi.com/docs/intro/concepts/programming-model/#additionalsecretoutputs
new CustomResourceOptions { AdditionalSecretOutputs = { "secret" } });
- var tempPolicy = unprivilegedUser.Arn.Apply((string arn) => {
+ var tempPolicy = unprivilegedUser.Arn.Apply((string arn) =>
+ {
AssumeRolePolicyArgs policyArgs = new AssumeRolePolicyArgs(arn);
return JsonSerializer.Serialize<AssumeRolePolicyArgs>(policyArgs);
});
@@ -62,7 +63,8 @@ class CreateRoleStack : Stack
public string Version => "2012-10-17";
public StatementArgs Statement { get; private set; }
- public AssumeRolePolicyArgs(string arn) {
+ public AssumeRolePolicyArgs(string arn)
+ {
Statement = new StatementArgs(arn);
}
@@ -75,7 +77,8 @@ class CreateRoleStack : Stack
public PrincipalArgs Principal { get; private set; }
public string Action => "sts:AssumeRole";
- public StatementArgs(string arn) {
+ public StatementArgs(string arn)
+ {
Principal = new PrincipalArgs(arn);
}
}

change indentation