Esempio n. 1
0
    public MyStack()
    {
        var currentRegion         = Output.Create(Aws.GetRegion.InvokeAsync());
        var currentCallerIdentity = Output.Create(Aws.GetCallerIdentity.InvokeAsync());
        var exampleContainer      = new Aws.MediaStore.Container("exampleContainer", new Aws.MediaStore.ContainerArgs
        {
        });
        var exampleContainerPolicy = new Aws.MediaStore.ContainerPolicy("exampleContainerPolicy", new Aws.MediaStore.ContainerPolicyArgs
        {
            ContainerName = exampleContainer.Name,
            Policy        = Output.Tuple(currentCallerIdentity, currentCallerIdentity, currentRegion, exampleContainer.Name).Apply(values =>
            {
                var currentCallerIdentity  = values.Item1;
                var currentCallerIdentity1 = values.Item2;
                var currentRegion          = values.Item3;
                var name = values.Item4;
                return(@$ "{{
	"     "Version" ": " "2012-10-17" ",
	"     "Statement" ": [{{
Esempio n. 2
0
 public MyStack()
 {
     var example = new Aws.MediaStore.Container("example", new Aws.MediaStore.ContainerArgs
     {
     });
 }